mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
1 line
25 KiB
JSON
1 line
25 KiB
JSON
|
|
{"ast":null,"code":"export { c as createAnimation } from './animation-822d986b.js';\nexport { iosTransitionAnimation } from './ios.transition-7812dd37.js';\nexport { mdTransitionAnimation } from './md.transition-51c13987.js';\nexport { g as getTimeGivenProgression } from './cubic-bezier-eea9a7a9.js';\nexport { createGesture } from './index-34cb2743.js';\nexport { g as getPlatforms, i as initialize, a as isPlatform } from './ionic-global-63a97a32.js';\nimport { a as addEventListener, r as raf, b as removeEventListener } from './helpers-1457892a.js';\nexport { c as componentOnReady } from './helpers-1457892a.js';\nexport { I as IonicSafeString } from './index-9e3fe806.js';\nexport { a as LIFECYCLE_DID_ENTER, c as LIFECYCLE_DID_LEAVE, L as LIFECYCLE_WILL_ENTER, b as LIFECYCLE_WILL_LEAVE, d as LIFECYCLE_WILL_UNLOAD } from './index-a7711c1e.js';\nexport { m as menuController } from './index-1e16c550.js';\nexport { b as actionSheetController, a as alertController, l as loadingController, m as modalController, p as pickerController, c as popoverController, t as toastController } from './overlays-a62f858b.js';\nimport './gesture-controller-31cb6bb9.js';\nimport './index-7a8b7a1c.js';\nimport './hardware-back-button-4a6b37fb.js';\nconst setupConfig = config => {\n const win = window;\n const Ionic = win.Ionic;\n if (Ionic && Ionic.config && Ionic.config.constructor.name !== 'Object') {\n return;\n }\n win.Ionic = win.Ionic || {};\n win.Ionic.config = Object.assign(Object.assign({}, win.Ionic.config), config);\n return win.Ionic.config;\n};\nconst getMode = () => {\n const win = window;\n const config = win && win.Ionic && win.Ionic.config;\n if (config) {\n if (config.mode) {\n return config.mode;\n } else {\n return config.get('mode');\n }\n }\n return 'md';\n};\n\n/**\n * This is a plugin for Swiper that allows it to work\n * with Ionic Framework and the routing integrations.\n * Without this plugin, Swiper would be incapable of correctly\n * determining the dimensions of the slides component as\n * each view is initially hidden before transitioning in.\n */\nconst setupSwiperInIonic = (swiper, watchForIonPageChanges = true) => {\n if (typeof window === 'undefined') {\n return;\n }\n const swiperEl = swiper.el;\n const ionPage = swiperEl.closest('.ion-page');\n if (!ionPage) {\n if (watchForIonPageChanges) {\n /**\n * If no ion page found, it is possible\n * that we are in the overlay setup step\n * where the inner component has been\n * created but not attached to the DOM yet.\n * If so, wait for the .ion-page class to\n * appear on the root div and re-run setup.\n */\n const rootNode = swiperEl.getRootNode();\n if (rootNode.tagName === 'DIV') {\n const mo = new MutationObserver(m => {\n const mutation = m[0];\n const wasEmpty = mutation.oldValue === null;\n const hasIonPage = rootNode.classList.contains('ion-page');\n /**\n * Now that we have an .ion-page class\n * we can safely attempt setup again.\n */\n if (wasEmpty && hasIonPage) {\n mo.disconnect();\n /**\n * Set false here so we do not\n * get infinite loops\n */\n setupSwiperInIonic(swiper, false);\n }\n });\n mo.observe(rootNode, {\n attributeFilter: ['class'],\n attributeOldValue: true\n });\n }\n }\n return;\n }\n /**\n * If using slides in a modal or\n * popover we need to wait for the\n * overlay to be shown as these components\n * are hidden when they are initially created.\n */\n const modalOrPopover = swiperEl.closest('ion-modal, ion-popover');\n if (modalOrPopover) {\n const eventName = modalOrPopover.tagName === 'ION-MODAL' ? 'ionModalWillPresent' : 'ionPopoverWillPresent';\n const overlayCallback = () => {\n /**\n * We need an raf here so the update\n * is fired one tick after the overlay is shown.\n */\n
|