2325bea1286070b1711b3dfa07c7b4cc1ff2f4f2dd625b7de89189ad81318b51.json 15 KB

1
  1. {"ast":null,"code":"import _asyncToGenerator from \"F:/workspace/202226701027/huinongbao-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\n/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { proxyCustomElement, HTMLElement, Build, h, Host } from '@stencil/core/internal/client';\nimport { shouldUseCloseWatcher } from './hardware-back-button.js';\nimport { p as printIonWarning } from './index6.js';\nimport { b as getIonMode, c as config, a as isPlatform } from './ionic-global.js';\nconst appCss = \"html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}\";\nconst IonAppStyle0 = appCss;\nconst App = /*@__PURE__*/proxyCustomElement(class App extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n }\n componentDidLoad() {\n var _this = this;\n if (Build.isBrowser) {\n rIC( /*#__PURE__*/_asyncToGenerator(function* () {\n const isHybrid = isPlatform(window, 'hybrid');\n if (!config.getBoolean('_testing')) {\n import('./index9.js').then(module => module.startTapClick(config));\n }\n if (config.getBoolean('statusTap', isHybrid)) {\n import('./status-tap.js').then(module => module.startStatusTap());\n }\n if (config.getBoolean('inputShims', needInputShims())) {\n /**\n * needInputShims() ensures that only iOS and Android\n * platforms proceed into this block.\n */\n const platform = isPlatform(window, 'ios') ? 'ios' : 'android';\n import('./input-shims.js').then(module => module.startInputShims(config, platform));\n }\n const hardwareBackButtonModule = yield import('./hardware-back-button.js');\n const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();\n if (config.getBoolean('hardwareBackButton', supportsHardwareBackButtonEvents)) {\n hardwareBackButtonModule.startHardwareBackButton();\n } else {\n /**\n * If an app sets hardwareBackButton: false and experimentalCloseWatcher: true\n * then the close watcher will not be used.\n */\n if (shouldUseCloseWatcher()) {\n printIonWarning('experimentalCloseWatcher was set to `true`, but hardwareBackButton was set to `false`. Both config options must be `true` for the Close Watcher API to be used.');\n }\n hardwareBackButtonModule.blockHardwareBackButton();\n }\n if (typeof window !== 'undefined') {\n import('./keyboard2.js').then(module => module.startKeyboardAssist(window));\n }\n import('./focus-visible.js').then(module => _this.focusVisible = module.startFocusVisible());\n }));\n }\n }\n /**\n * Used to set focus on an element that uses `ion-focusable`.\n * Do not use this if focusing the element as a result of a keyboard\n * event as the focus utility should handle this for us. This method\n * should be used when we want to programmatically focus an element as\n * a result of another user action. (Ex: We focus the first element\n * inside of a popover when the user presents it, but the popover is not always\n * presented as a result of keyboard action.)\n */\n setFocus(elements) {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n if (_this2.focusVisible) {\n _this2.focusVisible.setFocus(elements);\n }\n })();\n }\n render() {\n const mode = getIonMode(this);\n return h(Host, {\n key: '96715520fd05d6f0e6fa26a8ba78792cfccd4c0a',\n class: {\n [mode]: true,\n 'ion-page': true,\n 'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding')\n }\n });\n }\n get el() {\n return this;\n }\n static get style() {\n return IonAppStyle0;\n }\n}, [0, \"ion-app\", {\n \"setFocus\": [64]\n}]);\nconst needInputShims = () => {\n /**\n * iOS always needs input shims\n */\n const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');\n if (needsShimsIOS) {\n return true;\n }\n /**\n * Android only needs input shims when running\n * in the browser and only if the browser is using the\n * new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/\n */\n const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');\n if (isAndroidMobileWeb) {\n return true;\n }\n return false;\n};\nconst rIC = callback => {\n if ('requestIdleCallback' in window) {\n window.requestIdleCallback(callback);\n } else {\n setTimeout(callback, 32);\n }\n};\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-app\"];\n components.forEach(tagName => {\n switch (tagName) {\n case \"ion-app\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, App);\n }\n break;\n }\n });\n}\nconst IonApp = App;\nconst defineCustomElement = defineCustomElement$1;\nexport { IonApp, defineCustomElement };","map":{"version":3,"names":["proxyCustomElement","HTMLElement","Build","h","Host","shouldUseCloseWatcher","p","printIonWarning","b","getIonMode","c","config","a","isPlatform","appCss","IonAppStyle0","App","constructor","__registerHost","componentDidLoad","_this","isBrowser","rIC","_asyncToGenerator","isHybrid","window","getBoolean","then","module","startTapClick","startStatusTap","needInputShims","platform","startInputShims","hardwareBackButtonModule","supportsHardwareBackButtonEvents","startHardwareBackButton","blockHardwareBackButton","startKeyboardAssist","focusVisible","startFocusVisible","setFocus","elements","_this2","render","mode","key","class","el","style","needsShimsIOS","isAndroidMobileWeb","callback","requestIdleCallback","setTimeout","defineCustomElement$1","customElements","components","forEach","tagName","get","define","IonApp","defineCustomElement"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@ionic/core/components/ion-app.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { proxyCustomElement, HTMLElement, Build, h, Host } from '@stencil/core/internal/client';\nimport { shouldUseCloseWatcher } from './hardware-back-button.js';\nimport { p as printIonWarning } from './index6.js';\nimport { b as getIonMode, c as config, a as isPlatform } from './ionic-global.js';\n\nconst appCss = \"html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}\";\nconst IonAppStyle0 = appCss;\n\nconst App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n }\n componentDidLoad() {\n if (Build.isBrowser) {\n rIC(async () => {\n const isHybrid = isPlatform(window, 'hybrid');\n if (!config.getBoolean('_testing')) {\n import('./index9.js').then((module) => module.startTapClick(config));\n }\n if (config.getBoolean('statusTap', isHybrid)) {\n import('./status-tap.js').then((module) => module.startStatusTap());\n }\n if (config.getBoolean('inputShims', needInputShims())) {\n /**\n * needInputShims() ensures that only iOS and Android\n * platforms proceed into this block.\n */\n const platform = isPlatform(window, 'ios') ? 'ios' : 'android';\n import('./input-shims.js').then((module) => module.startInputShims(config, platform));\n }\n const hardwareBackButtonModule = await import('./hardware-back-button.js');\n const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();\n if (config.getBoolean('hardwareBackButton', supportsHardwareBackButtonEvents)) {\n hardwareBackButtonModule.startHardwareBackButton();\n }\n else {\n /**\n * If an app sets hardwareBackButton: false and experimentalCloseWatcher: true\n * then the close watcher will not be used.\n */\n if (shouldUseCloseWatcher()) {\n printIonWarning('experimentalCloseWatcher was set to `true`, but hardwareBackButton was set to `false`. Both config options must be `true` for the Close Watcher API to be used.');\n }\n hardwareBackButtonModule.blockHardwareBackButton();\n }\n if (typeof window !== 'undefined') {\n import('./keyboard2.js').then((module) => module.startKeyboardAssist(window));\n }\n import('./focus-visible.js').then((module) => (this.focusVisible = module.startFocusVisible()));\n });\n }\n }\n /**\n * Used to set focus on an element that uses `ion-focusable`.\n * Do not use this if focusing the element as a result of a keyboard\n * event as the focus utility should handle this for us. This method\n * should be used when we want to programmatically focus an element as\n * a result of another user action. (Ex: We focus the first element\n * inside of a popover when the user presents it, but the popover is not always\n * presented as a result of keyboard action.)\n */\n async setFocus(elements) {\n if (this.focusVisible) {\n this.focusVisible.setFocus(elements);\n }\n }\n render() {\n const mode = getIonMode(this);\n return (h(Host, { key: '96715520fd05d6f0e6fa26a8ba78792cfccd4c0a', class: {\n [mode]: true,\n 'ion-page': true,\n 'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding'),\n } }));\n }\n get el() { return this; }\n static get style() { return IonAppStyle0; }\n}, [0, \"ion-app\", {\n \"setFocus\": [64]\n }]);\nconst needInputShims = () => {\n /**\n * iOS always needs input shims\n */\n const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');\n if (needsShimsIOS) {\n return true;\n }\n /**\n * Android only needs input shims when running\n * in the browser and only if the browser is using the\n * new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/\n */\n const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');\n if (isAndroidMobileWeb) {\n return true;\n }\n return false;\n};\nconst rIC = (callback) => {\n if ('requestIdleCallback' in window) {\n window.requestIdleCallback(callback);\n }\n else {\n setTimeout(callback, 32);\n }\n};\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-app\"];\n components.forEach(tagName => { switch (tagName) {\n case \"ion-app\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, App);\n }\n break;\n } });\n}\n\nconst IonApp = App;\nconst defineCustomElement = defineCustomElement$1;\n\nexport { IonApp, defineCustomElement };\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,kBAAkB,EAAEC,WAAW,EAAEC,KAAK,EAAEC,CAAC,EAAEC,IAAI,QAAQ,+BAA+B;AAC/F,SAASC,qBAAqB,QAAQ,2BAA2B;AACjE,SAASC,CAAC,IAAIC,eAAe,QAAQ,aAAa;AAClD,SAASC,CAAC,IAAIC,UAAU,EAAEC,CAAC,IAAIC,MAAM,EAAEC,CAAC,IAAIC,UAAU,QAAQ,mBAAmB;AAEjF,MAAMC,MAAM,GAAG,uSAAuS;AACtT,MAAMC,YAAY,GAAGD,MAAM;AAE3B,MAAME,GAAG,GAAG,aAAchB,kBAAkB,CAAC,MAAMgB,GAAG,SAASf,WAAW,CAAC;EACvEgB,WAAWA,CAAA,EAAG;IACV,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,cAAc,CAAC,CAAC;EACzB;EACAC,gBAAgBA,CAAA,EAAG;IAAA,IAAAC,KAAA;IACf,IAAIlB,KAAK,CAACmB,SAAS,EAAE;MACjBC,GAAG,eAAAC,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