Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
150 lines
4.4 KiB
JavaScript
150 lines
4.4 KiB
JavaScript
// Module ID: 9850
|
|
// Function ID: 9851
|
|
// Dependencies: [19, 17, 21, 9851, 9853]
|
|
|
|
// Module 9850
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import noop_mod from "module_19" /* 19 */;
|
|
import module_9851_mod from "module_9851" /* 9851 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
let noop = noop_mod;
|
|
({ useCallback: c2, useEffect: c3, useRef: closure_4 } = noop);
|
|
let noop = noop_mod;
|
|
const NativeEventEmitter = _mod17.NativeEventEmitter;
|
|
const jsx = jsxProd.jsx;
|
|
let module_9851 = module_9851_mod;
|
|
const nativeComponent = module_9851.getNativeComponent();
|
|
let module_9851 = module_9851_mod;
|
|
const nativeModule = module_9851.getNativeModule();
|
|
const memoResult = noop.memo((date) => {
|
|
_require = date;
|
|
const current = closure_4(Math.random().toString()).current;
|
|
const items = [date, current];
|
|
let tmp = closure_2((nativeEvent) => {
|
|
nativeEvent = nativeEvent.nativeEvent;
|
|
({ date, id } = nativeEvent);
|
|
if (null === id) {
|
|
if (typeof fromIsoWithTimeZoneOffset === "function") {
|
|
const _Date = Date;
|
|
const date1 = new Date(date);
|
|
if (date.onDateChange) {
|
|
obj.onDateChange(date1);
|
|
}
|
|
if (date.onDateStringChange) {
|
|
obj.onDateStringChange(tmp);
|
|
}
|
|
} else {
|
|
throw new TypeError("Trying to call a non-function");
|
|
}
|
|
}
|
|
}, items);
|
|
closure_2 = tmp;
|
|
const items1 = [date, current];
|
|
const tmp2 = closure_2((nativeEvent) => {
|
|
nativeEvent = nativeEvent.nativeEvent;
|
|
const id = nativeEvent.id;
|
|
let tmp = null !== id;
|
|
if (tmp) {
|
|
tmp = id !== current;
|
|
}
|
|
if (!tmp) {
|
|
if (date.onStateChange) {
|
|
obj.onStateChange(nativeEvent.spinnerState);
|
|
}
|
|
obj = date;
|
|
}
|
|
}, items1);
|
|
closure_3 = tmp2;
|
|
const items2 = [tmp, tmp2];
|
|
closure_3(() => {
|
|
const obj = new NativeEventEmitter(closure_8);
|
|
obj.addListener("dateChange", closure_2);
|
|
obj.addListener("spinnerStateChange", closure_3);
|
|
return () => {
|
|
obj.removeAllListeners("dateChange");
|
|
obj.removeAllListeners("spinnerStateChange");
|
|
};
|
|
}, items2);
|
|
let obj = {};
|
|
const merged = Object.assign(date);
|
|
if (typeof toIsoWithTimeZoneOffset === "function") {
|
|
let toISOStringResult;
|
|
if (date) {
|
|
toISOStringResult = date.toISOString();
|
|
}
|
|
obj.date = toISOStringResult;
|
|
obj.id = current;
|
|
const minimumDate = date.minimumDate;
|
|
if (typeof tmp5 === "function") {
|
|
let toISOStringResult1;
|
|
if (minimumDate) {
|
|
toISOStringResult1 = minimumDate.toISOString();
|
|
}
|
|
obj.minimumDate = toISOStringResult1;
|
|
const maximumDate = date.maximumDate;
|
|
if (typeof tmp5 === "function") {
|
|
let toISOStringResult2;
|
|
if (maximumDate) {
|
|
toISOStringResult2 = maximumDate.toISOString();
|
|
}
|
|
obj.maximumDate = toISOStringResult2;
|
|
if (typeof getTimezoneOffsetInMinutes === "function") {
|
|
let prop;
|
|
if (null != date.timeZoneOffsetInMinutes) {
|
|
prop = date.timeZoneOffsetInMinutes;
|
|
}
|
|
obj.timezoneOffsetInMinutes = prop;
|
|
if (typeof getStyle === "function") {
|
|
let num = 310;
|
|
if ("time" === date.mode) {
|
|
num = 240;
|
|
}
|
|
const size = { width: num, height: 180 };
|
|
const items3 = [size, date.style];
|
|
obj.style = items3;
|
|
obj.onChange = tmp;
|
|
obj.onStateChange = tmp2;
|
|
const obj2 = { props: obj, id: current };
|
|
const modal = require("module_9853").useModal(obj2);
|
|
let tmp16 = null;
|
|
if (!date.modal) {
|
|
const obj4 = {};
|
|
const merged1 = Object.assign(obj);
|
|
tmp16 = <closure_7 />;
|
|
}
|
|
return tmp16;
|
|
} else {
|
|
throw new TypeError("Trying to call a non-function");
|
|
}
|
|
} else {
|
|
throw new TypeError("Trying to call a non-function");
|
|
}
|
|
} else {
|
|
throw new TypeError("Trying to call a non-function");
|
|
}
|
|
} else {
|
|
throw new TypeError("Trying to call a non-function");
|
|
}
|
|
} else {
|
|
throw new TypeError("Trying to call a non-function");
|
|
}
|
|
const str = Math.random();
|
|
});
|
|
function getStyle(arg0) {
|
|
|
|
}
|
|
function getTimezoneOffsetInMinutes(arg0) {
|
|
|
|
}
|
|
function toIsoWithTimeZoneOffset(arg0) {
|
|
|
|
}
|
|
function fromIsoWithTimeZoneOffset(arg0) {
|
|
|
|
}
|
|
|
|
export default memoResult;
|
|
export const DatePickerAndroid = memoResult;
|