/**
 * Minified by jsDelivr using Terser v5.37.0.
 * Original file: /npm/react-native-picker@4.3.7/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{Platform,NativeModules,NativeAppEventEmitter}from"react-native";const ios="ios"===Platform.OS,android="android"===Platform.OS,Picker=NativeModules.BEEPickerManager,options={isLoop:!1,pickerConfirmBtnText:"confirm",pickerCancelBtnText:"cancel",pickerTitleText:"pls select",pickerConfirmBtnColor:[1,186,245,1],pickerCancelBtnColor:[1,186,245,1],pickerTitleColor:[20,20,20,1],pickerToolBarBg:[232,232,232,1],pickerTextEllipsisLen:6,pickerBg:[196,199,206,1],pickerRowHeight:24,wheelFlex:[1,1,1],pickerData:[],selectedValue:[],onPickerConfirm(){},onPickerCancel(){},onPickerSelect(){},pickerToolBarFontSize:16,pickerFontSize:16,pickerFontColor:[31,31,31,1]};export default{init(e){const i={...options,...e},t={confirm:i.onPickerConfirm,cancel:i.onPickerCancel,select:i.onPickerSelect};Picker._init(i),this.listener&&this.listener.remove(),this.listener=NativeAppEventEmitter.addListener("pickerEvent",(e=>{t[e.type](e.selectedValue,e.selectedIndex)}))},show(){Picker.show()},hide(){Picker.hide()},select(e,i){ios?Picker.select(e):android&&Picker.select(e,(e=>{"function"==typeof i&&i(e)}))},toggle(){this.isPickerShow((e=>{e?this.hide():this.show()}))},isPickerShow(e){Picker.isPickerShow(((i,t)=>{let r=null;android?r=!i&&t:ios&&(r=!i),e&&e(r)}))}};
//# sourceMappingURL=/sm/1d9b9d2b683f9a9a01c4e59aca5371a2ef14242ce25d3f9f802d32bee8322e3d.map