@ionic/core 7.6.5-nightly.20240116 → 7.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ion-back-button.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/list.js +1 -1
- package/dist/cjs/{app-globals-107f0aa8.js → app-globals-07127773.js} +1 -1
- package/dist/cjs/{button-active-58b56740.js → button-active-85665616.js} +1 -1
- package/dist/cjs/{index-2a6bca71.js → index-6bb6b651.js} +3 -3
- package/dist/cjs/{index-a3a64d73.js → index-71f41461.js} +1 -11
- package/dist/cjs/{index-d3357bf4.js → index-96a721a7.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
- package/dist/cjs/ion-alert.cjs.entry.js +4 -4
- package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +3 -3
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
- package/dist/cjs/ion-loading.cjs.entry.js +3 -3
- package/dist/cjs/ion-menu_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-nav_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column-internal.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-internal.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +4 -4
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +3 -3
- package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{ionic-global-ba1bd66f.js → ionic-global-c70c3fb5.js} +1 -1
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-337c89fc.js → ios.transition-9624a175.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-2ea6b248.js → md.transition-786baf9a.js} +2 -2
- package/dist/cjs/{overlays-b4525688.js → overlays-8285b485.js} +1 -1
- package/dist/cjs/{status-tap-1958acfd.js → status-tap-66296dcb.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/back-button/back-button.js +1 -1
- package/dist/collection/components/datetime/test/highlighted-dates/datetime.e2e.js +1 -1
- package/dist/collection/components/list/list.md.css +1 -21
- package/dist/collection/components/menu-button/menu-button.js +1 -1
- package/dist/docs.json +3 -3
- package/dist/esm/{app-globals-ea8ee7a0.js → app-globals-52c78291.js} +1 -1
- package/dist/esm/{button-active-225d3c6b.js → button-active-b62776db.js} +1 -1
- package/dist/esm/{index-2f8a2df6.js → index-01cb9192.js} +1 -1
- package/dist/esm/{index-db215ebe.js → index-27668d5b.js} +1 -11
- package/dist/esm/{index-89cbcdab.js → index-a97c95a7.js} +3 -3
- package/dist/esm/index.js +7 -7
- package/dist/esm/ion-accordion_2.entry.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +4 -4
- package/dist/esm/ion-alert.entry.js +4 -4
- package/dist/esm/ion-app_8.entry.js +4 -4
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +3 -3
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +2 -2
- package/dist/esm/ion-card_5.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +2 -2
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +3 -3
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu_3.entry.js +5 -5
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav_2.entry.js +3 -3
- package/dist/esm/ion-picker-column-internal.entry.js +2 -2
- package/dist/esm/ion-picker-internal.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +4 -4
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +3 -3
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +2 -2
- package/dist/esm/ion-tab_2.entry.js +1 -1
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +2 -2
- package/dist/esm/{ionic-global-fb3f9f73.js → ionic-global-8fa0f940.js} +1 -1
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-41ff786a.js → ios.transition-62fd50ab.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-92606aa8.js → md.transition-7e56966a.js} +2 -2
- package/dist/esm/{overlays-9d7511dd.js → overlays-bb824d56.js} +1 -1
- package/dist/esm/{status-tap-6b89eaa1.js → status-tap-129c01cf.js} +1 -1
- package/dist/esm-es5/app-globals-52c78291.js +4 -0
- package/dist/esm-es5/{button-active-225d3c6b.js → button-active-b62776db.js} +1 -1
- package/dist/esm-es5/{index-2f8a2df6.js → index-01cb9192.js} +1 -1
- package/dist/esm-es5/index-27668d5b.js +5 -0
- package/dist/esm-es5/{index-89cbcdab.js → index-a97c95a7.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-internal.entry.js +1 -1
- package/dist/esm-es5/ion-picker-internal.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/{ionic-global-fb3f9f73.js → ionic-global-8fa0f940.js} +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-41ff786a.js → ios.transition-62fd50ab.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-7e56966a.js +4 -0
- package/dist/esm-es5/{overlays-9d7511dd.js → overlays-bb824d56.js} +1 -1
- package/dist/esm-es5/{status-tap-6b89eaa1.js → status-tap-129c01cf.js} +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/p-005e0ad0.js +4 -0
- package/dist/ionic/{p-6138238d.entry.js → p-01438d78.entry.js} +1 -1
- package/dist/ionic/{p-f397ec0d.system.js → p-02e530f5.system.js} +1 -1
- package/dist/ionic/{p-6ce901dc.js → p-03e00f90.js} +1 -1
- package/dist/ionic/{p-8b76f6a5.entry.js → p-06128c8c.entry.js} +1 -1
- package/dist/ionic/{p-69464723.entry.js → p-0abedd22.entry.js} +1 -1
- package/dist/ionic/{p-ae5ea8e5.entry.js → p-0d2b6901.entry.js} +1 -1
- package/dist/ionic/{p-2845da20.entry.js → p-1052ef2b.entry.js} +1 -1
- package/dist/ionic/{p-071f21c1.entry.js → p-127ff448.entry.js} +1 -1
- package/dist/ionic/{p-943c550c.entry.js → p-13387c28.entry.js} +1 -1
- package/dist/ionic/{p-50f9bf6b.system.entry.js → p-1a0bf247.system.entry.js} +1 -1
- package/dist/ionic/{p-bebab173.system.js → p-1a5f0313.system.js} +1 -1
- package/dist/ionic/{p-7898cbc4.entry.js → p-1af32f1e.entry.js} +1 -1
- package/dist/ionic/{p-edde4687.entry.js → p-1f7fc88d.entry.js} +1 -1
- package/dist/ionic/{p-0a076467.js → p-23ce95e8.js} +1 -1
- package/dist/ionic/{p-fd615185.entry.js → p-249633a4.entry.js} +1 -1
- package/dist/ionic/{p-fe49f26b.js → p-25221a73.js} +1 -1
- package/dist/ionic/{p-f078e3d3.system.entry.js → p-2c3842e8.system.entry.js} +1 -1
- package/dist/ionic/{p-231aed90.system.js → p-32b8e50d.system.js} +1 -1
- package/dist/ionic/{p-7aca59df.system.entry.js → p-35e1a80f.system.entry.js} +1 -1
- package/dist/ionic/{p-a3477254.system.entry.js → p-3b83e483.system.entry.js} +1 -1
- package/dist/ionic/{p-db704ea9.system.js → p-3c33dc30.system.js} +1 -1
- package/dist/ionic/{p-27a52669.system.entry.js → p-3dbaaa5b.system.entry.js} +1 -1
- package/dist/ionic/{p-3000371d.system.entry.js → p-41040a92.system.entry.js} +1 -1
- package/dist/ionic/{p-1d9f48aa.entry.js → p-41aa2662.entry.js} +1 -1
- package/dist/ionic/{p-21981a04.entry.js → p-436bd99a.entry.js} +1 -1
- package/dist/ionic/{p-b974256c.entry.js → p-44ef0dd6.entry.js} +1 -1
- package/dist/ionic/{p-1756a4b5.system.entry.js → p-49c52149.system.entry.js} +1 -1
- package/dist/ionic/{p-5c56f52d.system.js → p-4a4bbcc5.system.js} +2 -2
- package/dist/ionic/{p-649fdbbe.system.entry.js → p-4cd6a04c.system.entry.js} +1 -1
- package/dist/ionic/{p-dd178970.system.entry.js → p-525b6ac4.system.entry.js} +1 -1
- package/dist/ionic/{p-ab2adbdc.entry.js → p-54c92c77.entry.js} +1 -1
- package/dist/ionic/{p-5e68d0eb.entry.js → p-5a85d71d.entry.js} +1 -1
- package/dist/ionic/{p-a061ea28.system.entry.js → p-5aecd304.system.entry.js} +1 -1
- package/dist/ionic/{p-27bdd8de.system.entry.js → p-5c2da581.system.entry.js} +1 -1
- package/dist/ionic/{p-1937f959.system.entry.js → p-61bf9f6f.system.entry.js} +1 -1
- package/dist/ionic/p-677cb2f7.js +4 -0
- package/dist/ionic/p-67c3a2a8.system.js +5 -0
- package/dist/ionic/{p-837f5fa9.entry.js → p-688a36c7.entry.js} +1 -1
- package/dist/ionic/{p-af33559e.system.entry.js → p-6b9eee40.system.entry.js} +1 -1
- package/dist/ionic/{p-dad74d27.system.entry.js → p-6ba863b1.system.entry.js} +1 -1
- package/dist/ionic/{p-68c4df4f.system.entry.js → p-6e165986.system.entry.js} +1 -1
- package/dist/ionic/{p-a52f3b88.entry.js → p-73547cf9.entry.js} +1 -1
- package/dist/ionic/{p-6991ba0c.entry.js → p-7510e462.entry.js} +1 -1
- package/dist/ionic/{p-9e152b00.system.js → p-770f5b43.system.js} +1 -1
- package/dist/ionic/{p-679a39f2.system.entry.js → p-7751def0.system.entry.js} +1 -1
- package/dist/ionic/{p-2f49e176.system.entry.js → p-77ba0e3b.system.entry.js} +1 -1
- package/dist/ionic/{p-31ac823f.system.entry.js → p-7a02dd61.system.entry.js} +1 -1
- package/dist/ionic/{p-defb3bf5.entry.js → p-7bae84aa.entry.js} +1 -1
- package/dist/ionic/{p-69a318ef.system.js → p-7ffe791a.system.js} +1 -1
- package/dist/ionic/{p-387ce51d.entry.js → p-8084e9cb.entry.js} +1 -1
- package/dist/ionic/{p-0550de3f.entry.js → p-80ddd0c1.entry.js} +1 -1
- package/dist/ionic/{p-fc7a5f07.system.entry.js → p-818169b1.system.entry.js} +1 -1
- package/dist/ionic/{p-8f5c5099.entry.js → p-85e04029.entry.js} +1 -1
- package/dist/ionic/{p-c5814564.system.entry.js → p-87e10168.system.entry.js} +1 -1
- package/dist/ionic/{p-cd9a2075.system.entry.js → p-88d99112.system.entry.js} +1 -1
- package/dist/ionic/{p-db2160f5.system.entry.js → p-89c28901.system.entry.js} +1 -1
- package/dist/ionic/{p-56480fca.system.entry.js → p-8e317a5a.system.entry.js} +1 -1
- package/dist/ionic/{p-e8c2d8ac.system.js → p-8f1ebb7d.system.js} +1 -1
- package/dist/ionic/{p-0a114fbd.js → p-90000ff6.js} +1 -1
- package/dist/ionic/{p-a15f2bc4.system.entry.js → p-928e945d.system.entry.js} +1 -1
- package/dist/ionic/{p-95c06042.system.entry.js → p-978c6799.system.entry.js} +1 -1
- package/dist/ionic/{p-e5799bb3.system.entry.js → p-99f87e63.system.entry.js} +1 -1
- package/dist/ionic/{p-8cf8e711.entry.js → p-a2d75455.entry.js} +1 -1
- package/dist/ionic/{p-33da0b8a.system.entry.js → p-a706cf11.system.entry.js} +1 -1
- package/dist/ionic/{p-f9a28b5f.entry.js → p-aca77953.entry.js} +1 -1
- package/dist/ionic/{p-242b42aa.system.js → p-ae638cb5.system.js} +1 -1
- package/dist/ionic/{p-9639d107.entry.js → p-afafbba0.entry.js} +1 -1
- package/dist/ionic/{p-9d0eeef3.entry.js → p-b09c8228.entry.js} +1 -1
- package/dist/ionic/{p-715fa872.entry.js → p-b43cf55f.entry.js} +1 -1
- package/dist/ionic/{p-5e28ea2e.entry.js → p-b6f6f00e.entry.js} +1 -1
- package/dist/ionic/{p-93a39e03.entry.js → p-ba330a42.entry.js} +1 -1
- package/dist/ionic/{p-832eee5d.system.entry.js → p-ba4890eb.system.entry.js} +1 -1
- package/dist/ionic/{p-6be9511a.system.entry.js → p-bb41c476.system.entry.js} +1 -1
- package/dist/ionic/{p-9a05022b.system.entry.js → p-bc59962f.system.entry.js} +1 -1
- package/dist/ionic/{p-eb0c99dd.entry.js → p-bc6d16ca.entry.js} +1 -1
- package/dist/ionic/{p-b41695f4.entry.js → p-bedbc2de.entry.js} +1 -1
- package/dist/ionic/{p-351d9fe1.system.entry.js → p-beeceaf5.system.entry.js} +1 -1
- package/dist/ionic/{p-eeb157dc.system.entry.js → p-bf595ef8.system.entry.js} +1 -1
- package/dist/ionic/p-c16d9f2c.system.entry.js +4 -0
- package/dist/ionic/{p-10304a49.system.entry.js → p-c1c57873.system.entry.js} +1 -1
- package/dist/ionic/{p-26458576.entry.js → p-c3bfe92d.entry.js} +1 -1
- package/dist/ionic/{p-928e375c.entry.js → p-c3ef6da5.entry.js} +1 -1
- package/dist/ionic/{p-a55770fc.entry.js → p-c4177035.entry.js} +1 -1
- package/dist/ionic/{p-302d56a6.system.entry.js → p-c48a9ef3.system.entry.js} +1 -1
- package/dist/ionic/{p-677a45f6.entry.js → p-c9219299.entry.js} +1 -1
- package/dist/ionic/{p-6465cc15.system.entry.js → p-cd6bb7f5.system.entry.js} +1 -1
- package/dist/ionic/{p-44f3e2a7.system.entry.js → p-cdce5ba3.system.entry.js} +1 -1
- package/dist/ionic/{p-851e35f2.system.js → p-d2707f9d.system.js} +1 -1
- package/dist/ionic/p-d6129c6e.js +5 -0
- package/dist/ionic/{p-62cafa91.system.entry.js → p-d6beb1c9.system.entry.js} +1 -1
- package/dist/ionic/{p-b0a5b316.system.entry.js → p-d9585c3f.system.entry.js} +1 -1
- package/dist/ionic/{p-8f3c0221.system.entry.js → p-db798370.system.entry.js} +1 -1
- package/dist/ionic/{p-bdf5f596.system.entry.js → p-dc1d883c.system.entry.js} +1 -1
- package/dist/ionic/{p-70093a9c.entry.js → p-dd9dff11.entry.js} +1 -1
- package/dist/ionic/{p-c9a13689.entry.js → p-df62accd.entry.js} +1 -1
- package/dist/ionic/{p-19344c25.entry.js → p-e150f8fc.entry.js} +1 -1
- package/dist/ionic/{p-55f0799f.system.entry.js → p-e1e05489.system.entry.js} +1 -1
- package/dist/ionic/{p-ed707e95.entry.js → p-e814f9c0.entry.js} +1 -1
- package/dist/ionic/{p-da519368.entry.js → p-e87564bc.entry.js} +1 -1
- package/dist/ionic/{p-11307018.system.entry.js → p-eb210b21.system.entry.js} +1 -1
- package/dist/ionic/{p-f08358f9.entry.js → p-eb80ca40.entry.js} +1 -1
- package/dist/ionic/{p-7bb41eee.system.entry.js → p-eba17ff5.system.entry.js} +1 -1
- package/dist/ionic/{p-b8f6c01f.system.js → p-ef3a6b51.system.js} +1 -1
- package/dist/ionic/{p-7fcd904c.entry.js → p-efcc4b66.entry.js} +1 -1
- package/dist/ionic/{p-35709704.js → p-f08d8865.js} +1 -1
- package/dist/ionic/{p-615f01d3.system.entry.js → p-f3478ed6.system.entry.js} +1 -1
- package/dist/ionic/{p-83e4e3a1.system.entry.js → p-f48a49ae.system.entry.js} +1 -1
- package/dist/ionic/{p-67c0230d.entry.js → p-f4bf2448.entry.js} +1 -1
- package/dist/ionic/{p-737c9ab7.entry.js → p-f4e37ba7.entry.js} +1 -1
- package/dist/ionic/{p-e1028dcd.entry.js → p-f56d53bd.entry.js} +1 -1
- package/dist/ionic/{p-dc38c00c.entry.js → p-f865bc9a.entry.js} +1 -1
- package/dist/ionic/p-fd1a0431.js +4 -0
- package/dist/ionic/{p-052ad394.js → p-fd41bd8a.js} +1 -1
- package/hydrate/index.d.ts +1 -1
- package/hydrate/index.js +40 -41
- package/package.json +3 -3
- package/dist/esm-es5/app-globals-ea8ee7a0.js +0 -4
- package/dist/esm-es5/index-db215ebe.js +0 -5
- package/dist/esm-es5/md.transition-92606aa8.js +0 -4
- package/dist/ionic/p-260ea580.system.entry.js +0 -4
- package/dist/ionic/p-50d8647b.system.js +0 -5
- package/dist/ionic/p-5954606c.js +0 -5
- package/dist/ionic/p-6940bf9b.js +0 -4
- package/dist/ionic/p-b6fbd89e.js +0 -4
- package/dist/ionic/p-c3bb096f.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(n,t,i,a){function e(n){return n instanceof i?n:new i((function(t){t(n)}))}return new(i||(i=Promise))((function(i,r){function o(n){try{f(a.next(n))}catch(n){r(n)}}function c(n){try{f(a["throw"](n))}catch(n){r(n)}}function f(n){n.done?i(n.value):e(n.value).then(o,c)}f((a=a.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,e,r,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(n){return function(t){return f([n,t])}}function f(c){if(a)throw new TypeError("Generator is already executing.");while(o&&(o=0,c[0]&&(i=0)),i)try{if(a=1,e&&(r=c[0]&2?e["return"]:c[0]?e["throw"]||((r=e["return"])&&r.call(e),0):e.next)&&!(r=r.call(e,c[1])).done)return r;if(e=0,r)c=[c[0]&2,r.value];switch(c[0]){case 0:case 1:r=c;break;case 4:i.label++;return{value:c[1],done:false};case 5:i.label++;e=c[1];c=[0];continue;case 7:c=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(c[0]===6&&i.label<r[1]){i.label=r[1];r=c;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(c);break}if(r[2])i.ops.pop();i.trys.pop();continue}c=t.call(n,i)}catch(n){c=[6,n];e=0}finally{a=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-
|
|
4
|
+
*/System.register(["./p-67c3a2a8.system.js","./p-ef3a6b51.system.js"],(function(n){"use strict";var t,i,a,e,r,o,c;return{setters:[function(n){t=n.r;i=n.e;a=n.w;e=n.h;r=n.f;o=n.H},function(n){c=n.b}],execute:function(){var f=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}";var s=n("ion_ripple_effect",function(){function n(n){t(this,n);this.type="bounded"}n.prototype.addRipple=function(n,t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){return[2,new Promise((function(r){i((function(){var i=e.el.getBoundingClientRect();var o=i.width;var c=i.height;var f=Math.sqrt(o*o+c*c);var s=Math.max(c,o);var v=e.unbounded?s:f+l;var b=Math.floor(s*m);var d=v/b;var p=n-i.left;var w=t-i.top;if(e.unbounded){p=o*.5;w=c*.5}var h=p-b*.5;var y=w-b*.5;var k=o*.5-p;var g=c*.5-w;a((function(){var n=document.createElement("div");n.classList.add("ripple-effect");var t=n.style;t.top=y+"px";t.left=h+"px";t.width=t.height=b+"px";t.setProperty("--final-scale","".concat(d));t.setProperty("--translate-end","".concat(k,"px, ").concat(g,"px"));var i=e.el.shadowRoot||e.el;i.appendChild(n);setTimeout((function(){r((function(){u(n)}))}),225+100)}))}))}))]}))}))};Object.defineProperty(n.prototype,"unbounded",{get:function(){return this.type==="unbounded"},enumerable:false,configurable:true});n.prototype.render=function(){var n;var t=c(this);return e(o,{role:"presentation",class:(n={},n[t]=true,n.unbounded=this.unbounded,n)})};Object.defineProperty(n.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return n}());var u=function(n){n.classList.add("fade-out");setTimeout((function(){n.remove()}),200)};var l=10;var m=.5;s.style=f}}}));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
System.register(["./p-67c3a2a8.system.js","./p-4609d030.system.js","./p-ef3a6b51.system.js"],(function(t){"use strict";var n,s,e,o,r;return{setters:[function(t){n=t.r;s=t.h;e=t.H},function(t){o=t.c},function(t){r=t.b}],execute:function(){var i=":host(.ion-color){color:var(--ion-color-base)}";var u=t("ion_text",function(){function t(t){n(this,t);this.color=undefined}t.prototype.render=function(){var t;var n=r(this);return s(e,{class:o(this.color,(t={},t[n]=true,t))},s("slot",null))};return t}());u.style=i}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(r,t,n,e){function i(r){return r instanceof n?r:new n((function(t){t(r)}))}return new(n||(n=Promise))((function(n,u){function o(r){try{f(e.next(r))}catch(r){u(r)}}function a(r){try{f(e["throw"](r))}catch(r){u(r)}}function f(r){r.done?n(r.value):i(r.value).then(o,a)}f((e=e.apply(r,t||[])).next())}))};var __generator=this&&this.__generator||function(r,t){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},e,i,u,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(r){return function(t){return f([r,t])}}function f(a){if(e)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(n=0)),n)try{if(e=1,i&&(u=a[0]&2?i["return"]:a[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,a[1])).done)return u;if(i=0,u)a=[a[0]&2,u.value];switch(a[0]){case 0:case 1:u=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(u=n.trys,u=u.length>0&&u[u.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!u||a[1]>u[0]&&a[1]<u[3])){n.label=a[1];break}if(a[0]===6&&n.label<u[1]){n.label=u[1];u=a;break}if(u&&n.label<u[2]){n.label=u[2];n.ops.push(a);break}if(u[2])n.ops.pop();n.trys.pop();continue}a=t.call(r,n)}catch(r){a=[6,r];i=0}finally{e=u=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var e=0,i=t.length,u;e<i;e++){if(u||!(e in t)){if(!u)u=Array.prototype.slice.call(t,0,e);u[e]=t[e]}}return r.concat(u||Array.prototype.slice.call(t))};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-50d8647b.system.js","./p-32ad210f.system.js","./p-4609d030.system.js","./p-b8f6c01f.system.js"],(function(r){"use strict";var t,n,e,i,u,o,a,f,s,c;return{setters:[function(r){t=r.r;n=r.d;e=r.f;i=r.h;u=r.H},function(r){o=r.c;a=r.q},function(r){f=r.o;s=r.c},function(r){c=r.b}],execute:function(){var h=this;var v=r("ion_route",function(){function r(r){t(this,r);this.ionRouteDataChanged=n(this,"ionRouteDataChanged",7);this.url="";this.component=undefined;this.componentProps=undefined;this.beforeLeave=undefined;this.beforeEnter=undefined}r.prototype.onUpdate=function(r){this.ionRouteDataChanged.emit(r)};r.prototype.onComponentProps=function(r,t){if(r===t){return}var n=r?Object.keys(r):[];var e=t?Object.keys(t):[];if(n.length!==e.length){this.onUpdate(r);return}for(var i=0,u=n;i<u.length;i++){var o=u[i];if(r[o]!==t[o]){this.onUpdate(r);return}}};r.prototype.connectedCallback=function(){this.ionRouteDataChanged.emit()};Object.defineProperty(r,"watchers",{get:function(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}},enumerable:false,configurable:true});return r}());var l=r("ion_route_redirect",function(){function r(r){t(this,r);this.ionRouteRedirectChanged=n(this,"ionRouteRedirectChanged",7);this.from=undefined;this.to=undefined}r.prototype.propDidChange=function(){this.ionRouteRedirectChanged.emit()};r.prototype.connectedCallback=function(){this.ionRouteRedirectChanged.emit()};Object.defineProperty(r,"watchers",{get:function(){return{from:["propDidChange"],to:["propDidChange"]}},enumerable:false,configurable:true});return r}());var d="root";var _="forward";var w="back";var g=function(r){var t=r.filter((function(r){return r.length>0})).join("/");return"/"+t};var b=function(r,t,n){var e=g(r);if(t){e="#"+e}if(n!==undefined){e+="?"+n}return e};var m=function(r,t,n,e,i,u,o){var a=b(__spreadArray(__spreadArray([],j(t).segments,true),e,true),n,o);if(i===_){r.pushState(u,"",a)}else{r.replaceState(u,"",a)}};var p=function(r){var t=[];for(var n=0,e=r;n<e.length;n++){var i=e[n];for(var u=0,o=i.segments;u<o.length;u++){var a=o[u];if(a[0]===":"){var f=i.params&&i.params[a.slice(1)];if(!f){return null}t.push(f)}else if(a!==""){t.push(a)}}}return t};var y=function(r,t){if(r.length>t.length){return null}if(r.length<=1&&r[0]===""){return t}for(var n=0;n<r.length;n++){if(r[n]!==t[n]){return null}}if(t.length===r.length){return[""]}return t.slice(r.length)};var R=function(r,t,n){var e=j(t).segments;var i=n?r.hash.slice(1):r.pathname;var u=j(i).segments;return y(e,u)};var j=function(r){var t=[""];var n;if(r!=null){var e=r.indexOf("?");if(e>-1){n=r.substring(e+1);r=r.substring(0,e)}t=r.split("/").map((function(r){return r.trim()})).filter((function(r){return r.length>0}));if(t.length===0){t=[""]}}return{segments:t,queryString:n}};var O=function(r){console.group("[ion-core] ROUTES[".concat(r.length,"]"));var t=function(r){var t=[];r.forEach((function(r){return t.push.apply(t,r.segments)}));var n=r.map((function(r){return r.id}));console.debug("%c ".concat(g(t)),"font-weight: bold; padding-left: 20px","=>\t","(".concat(n.join(", "),")"))};for(var n=0,e=r;n<e.length;n++){var i=e[n];t(i)}console.groupEnd()};var C=function(r){console.group("[ion-core] REDIRECTS[".concat(r.length,"]"));for(var t=0,n=r;t<n.length;t++){var e=n[t];if(e.to){console.debug("FROM: ","$c ".concat(g(e.from)),"font-weight: bold"," TO: ","$c ".concat(g(e.to.segments)),"font-weight: bold")}}console.groupEnd()};var k=function(r,t,n,e,i,u){if(i===void 0){i=false}return __awaiter(h,void 0,void 0,(function(){var a,f,s,c;return __generator(this,(function(h){switch(h.label){case 0:h.trys.push([0,6,,7]);a=P(r);if(e>=t.length||!a){return[2,i]}return[4,new Promise((function(r){return o(a,r)}))];case 1:h.sent();f=t[e];return[4,a.setRouteId(f.id,f.params,n,u)];case 2:s=h.sent();if(s.changed){n=d;i=true}return[4,k(s.element,t,n,e+1,i,u)];case 3:i=h.sent();if(!s.markVisible)return[3,5];return[4,s.markVisible()];case 4:h.sent();h.label=5;case 5:return[2,i];case 6:c=h.sent();console.error(c);return[2,false];case 7:return[2]}}))}))};var E=function(r){return __awaiter(h,void 0,void 0,(function(){var t,n,e,i;return __generator(this,(function(u){switch(u.label){case 0:t=[];e=r;u.label=1;case 1:if(!(n=P(e)))return[3,3];return[4,n.getRouteId()];case 2:i=u.sent();if(i){e=i.element;i.element=undefined;t.push(i)}else{return[3,3]}return[3,1];case 3:return[2,{ids:t,outlet:n}]}}))}))};var x=function(){if(P(document.body)){return Promise.resolve()}return new Promise((function(r){window.addEventListener("ionNavWillLoad",(function(){return r()}),{once:true})}))};var A=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet";var P=function(r){if(!r){return undefined}if(r.matches(A)){return r}var t=r.querySelector(A);return t!==null&&t!==void 0?t:undefined};var U=function(r,t){var n=t.from,e=t.to;if(e===undefined){return false}if(n.length>r.length){return false}for(var i=0;i<n.length;i++){var u=n[i];if(u==="*"){return true}if(u!==r[i]){return false}}return n.length===r.length};var D=function(r,t){return t.find((function(t){return U(r,t)}))};var L=function(r,t){var n=Math.min(r.length,t.length);var e=0;for(var i=0;i<n;i++){var u=r[i];var o=t[i];if(u.id.toLowerCase()!==o.id){break}if(u.params){var a=Object.keys(u.params);if(a.length===o.segments.length){var f=a.map((function(r){return":".concat(r)}));for(var s=0;s<f.length;s++){if(f[s].toLowerCase()!==o.segments[s]){break}e++}}}e++}return e};var T=function(r,t){var n=new q(r);var e=false;var i;for(var u=0;u<t.length;u++){var o=t[u].segments;if(o[0]===""){e=true}else{for(var a=0,f=o;a<f.length;a++){var s=f[a];var c=n.next();if(s[0]===":"){if(c===""){return null}i=i||[];var h=i[u]||(i[u]={});h[s.slice(1)]=c}else if(c!==s){return null}}e=false}}var v=e?e===(n.next()===""):true;if(!v){return null}if(i){return t.map((function(r,t){return{id:r.id,segments:r.segments,params:S(r.params,i[t]),beforeEnter:r.beforeEnter,beforeLeave:r.beforeLeave}}))}return t};var S=function(r,t){return r||t?Object.assign(Object.assign({},r),t):undefined};var I=function(r,t){var n=null;var e=0;for(var i=0,u=t;i<u.length;i++){var o=u[i];var a=L(r,o);if(a>e){n=o;e=a}}if(n){return n.map((function(t,n){var e;return{id:t.id,segments:t.segments,params:S(t.params,(e=r[n])===null||e===void 0?void 0:e.params)}}))}return null};var M=function(r,t){var n=null;var e=0;for(var i=0,u=t;i<u.length;i++){var o=u[i];var a=T(r,o);if(a!==null){var f=N(a);if(f>e){e=f;n=a}}}return n};var N=function(r){var t=1;var n=1;for(var e=0,i=r;e<i.length;e++){var u=i[e];for(var o=0,a=u.segments;o<a.length;o++){var f=a[o];if(f[0]===":"){t+=Math.pow(1,n)}else if(f!==""){t+=Math.pow(2,n)}n++}}return t};var q=function(){function r(r){this.segments=r.slice()}r.prototype.next=function(){if(this.segments.length>0){return this.segments.shift()}return""};return r}();var F=function(r,t){if(t in r){return r[t]}if(r.hasAttribute(t)){return r.getAttribute(t)}return null};var W=function(r){return Array.from(r.children).filter((function(r){return r.tagName==="ION-ROUTE-REDIRECT"})).map((function(r){var t=F(r,"to");return{from:j(F(r,"from")).segments,to:t==null?undefined:j(t)}}))};var $=function(r){return G(z(r))};var z=function(r){return Array.from(r.children).filter((function(r){return r.tagName==="ION-ROUTE"&&r.component})).map((function(r){var t=F(r,"component");return{segments:j(F(r,"url")).segments,id:t.toLowerCase(),params:r.componentProps,beforeLeave:r.beforeLeave,beforeEnter:r.beforeEnter,children:z(r)}}))};var G=function(r){var t=[];for(var n=0,e=r;n<e.length;n++){var i=e[n];B([],t,i)}return t};var B=function(r,t,n){r=__spreadArray(__spreadArray([],r,true),[{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],false);if(n.children.length===0){t.push(r);return}for(var e=0,i=n.children;e<i.length;e++){var u=i[e];B(r,t,u)}};var H=r("ion_router",function(){function r(r){t(this,r);this.ionRouteWillChange=n(this,"ionRouteWillChange",7);this.ionRouteDidChange=n(this,"ionRouteDidChange",7);this.previousPath=null;this.busy=false;this.state=0;this.lastState=0;this.root="/";this.useHash=true}r.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var r,t,n;return __generator(this,(function(e){switch(e.label){case 0:return[4,x()];case 1:e.sent();return[4,this.runGuards(this.getSegments())];case 2:r=e.sent();if(!(r!==true))return[3,5];if(!(typeof r==="object"))return[3,4];t=r.redirect;n=j(t);this.setSegments(n.segments,d,n.queryString);return[4,this.writeNavStateRoot(n.segments,d)];case 3:e.sent();e.label=4;case 4:return[3,7];case 5:return[4,this.onRoutesChanged()];case 6:e.sent();e.label=7;case 7:return[2]}}))}))};r.prototype.componentDidLoad=function(){window.addEventListener("ionRouteRedirectChanged",a(this.onRedirectChanged.bind(this),10));window.addEventListener("ionRouteDataChanged",a(this.onRoutesChanged.bind(this),100))};r.prototype.onPopState=function(){return __awaiter(this,void 0,void 0,(function(){var r,t,n;return __generator(this,(function(e){switch(e.label){case 0:r=this.historyDirection();t=this.getSegments();return[4,this.runGuards(t)];case 1:n=e.sent();if(n!==true){if(typeof n==="object"){t=j(n.redirect).segments}else{return[2,false]}}return[2,this.writeNavStateRoot(t,r)]}}))}))};r.prototype.onBackButton=function(r){var t=this;r.detail.register(0,(function(r){t.back();r()}))};r.prototype.canTransition=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.runGuards()];case 1:r=t.sent();if(r!==true){if(typeof r==="object"){return[2,r.redirect]}else{return[2,false]}}return[2,true]}}))}))};r.prototype.push=function(r,t,n){if(t===void 0){t="forward"}return __awaiter(this,void 0,void 0,(function(){var e,i,u,o,a;return __generator(this,(function(f){switch(f.label){case 0:if(r.startsWith(".")){i=(e=this.previousPath)!==null&&e!==void 0?e:"/";u=new URL(r,"https://host/".concat(i));r=u.pathname+u.search}o=j(r);return[4,this.runGuards(o.segments)];case 1:a=f.sent();if(a!==true){if(typeof a==="object"){o=j(a.redirect)}else{return[2,false]}}this.setSegments(o.segments,t,o.queryString);return[2,this.writeNavStateRoot(o.segments,t,n)]}}))}))};r.prototype.back=function(){window.history.back();return Promise.resolve(this.waitPromise)};r.prototype.printDebug=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){O($(this.el));C(W(this.el));return[2]}))}))};r.prototype.navChanged=function(r){return __awaiter(this,void 0,void 0,(function(){var t,n,e,i,u,o;return __generator(this,(function(a){switch(a.label){case 0:if(this.busy){console.warn("[ion-router] router is busy, navChanged was cancelled");return[2,false]}return[4,E(window.document.body)];case 1:t=a.sent(),n=t.ids,e=t.outlet;i=$(this.el);u=I(n,i);if(!u){console.warn("[ion-router] no matching URL for ",n.map((function(r){return r.id})));return[2,false]}o=p(u);if(!o){console.warn("[ion-router] router could not match path because some required param is missing");return[2,false]}this.setSegments(o,r);return[4,this.safeWriteNavState(e,u,d,o,null,n.length)];case 2:a.sent();return[2,true]}}))}))};r.prototype.onRedirectChanged=function(){var r=this.getSegments();if(r&&D(r,W(this.el))){this.writeNavStateRoot(r,d)}};r.prototype.onRoutesChanged=function(){return this.writeNavStateRoot(this.getSegments(),d)};r.prototype.historyDirection=function(){var r;var t=window;if(t.history.state===null){this.state++;t.history.replaceState(this.state,t.document.title,(r=t.document.location)===null||r===void 0?void 0:r.href)}var n=t.history.state;var e=this.lastState;this.lastState=n;if(n>e||n>=e&&e>0){return _}if(n<e){return w}return d};r.prototype.writeNavStateRoot=function(r,t,n){return __awaiter(this,void 0,void 0,(function(){var e,i,u,o,a,f,s,c;return __generator(this,(function(h){if(!r){console.error("[ion-router] URL is not part of the routing set");return[2,false]}e=W(this.el);i=D(r,e);u=null;if(i){o=i.to,a=o.segments,f=o.queryString;this.setSegments(a,t,f);u=i.from;r=a}s=$(this.el);c=M(r,s);if(!c){console.error("[ion-router] the path does not match any route");return[2,false]}return[2,this.safeWriteNavState(document.body,c,t,r,u,0,n)]}))}))};r.prototype.safeWriteNavState=function(r,t,n,e,i,u,o){if(u===void 0){u=0}return __awaiter(this,void 0,void 0,(function(){var a,f,s;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.lock()];case 1:a=c.sent();f=false;c.label=2;case 2:c.trys.push([2,4,,5]);return[4,this.writeNavState(r,t,n,e,i,u,o)];case 3:f=c.sent();return[3,5];case 4:s=c.sent();console.error(s);return[3,5];case 5:a();return[2,f]}}))}))};r.prototype.lock=function(){return __awaiter(this,void 0,void 0,(function(){var r,t;return __generator(this,(function(n){switch(n.label){case 0:r=this.waitPromise;this.waitPromise=new Promise((function(r){return t=r}));if(!(r!==undefined))return[3,2];return[4,r];case 1:n.sent();n.label=2;case 2:return[2,t]}}))}))};r.prototype.runGuards=function(r,t){if(r===void 0){r=this.getSegments()}return __awaiter(this,void 0,void 0,(function(){var n,e,i,u,o,a,f;return __generator(this,(function(s){switch(s.label){case 0:if(t===undefined){t=j(this.previousPath).segments}if(!r||!t){return[2,true]}n=$(this.el);e=M(t,n);i=e&&e[e.length-1].beforeLeave;if(!i)return[3,2];return[4,i()];case 1:o=s.sent();return[3,3];case 2:o=true;s.label=3;case 3:u=o;if(u===false||typeof u==="object"){return[2,u]}a=M(r,n);f=a&&a[a.length-1].beforeEnter;return[2,f?f():true]}}))}))};r.prototype.writeNavState=function(r,t,n,e,i,u,o){if(u===void 0){u=0}return __awaiter(this,void 0,void 0,(function(){var a,f;return __generator(this,(function(s){switch(s.label){case 0:if(this.busy){console.warn("[ion-router] router is busy, transition was cancelled");return[2,false]}this.busy=true;a=this.routeChangeEvent(e,i);if(a){this.ionRouteWillChange.emit(a)}return[4,k(r,t,n,u,false,o)];case 1:f=s.sent();this.busy=false;if(a){this.ionRouteDidChange.emit(a)}return[2,f]}}))}))};r.prototype.setSegments=function(r,t,n){this.state++;m(window.history,this.root,this.useHash,r,t,this.state,n)};r.prototype.getSegments=function(){return R(window.location,this.root,this.useHash)};r.prototype.routeChangeEvent=function(r,t){var n=this.previousPath;var e=g(r);this.previousPath=e;if(e===n){return null}var i=t?g(t):null;return{from:n,redirectedFrom:i,to:e}};Object.defineProperty(r.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});return r}());var J=":host{--background:transparent;--color:var(--ion-color-primary, #3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}";var K=r("ion_router_link",function(){function r(r){var n=this;t(this,r);this.onClick=function(r){f(n.href,r,n.routerDirection,n.routerAnimation)};this.color=undefined;this.href=undefined;this.rel=undefined;this.routerDirection="forward";this.routerAnimation=undefined;this.target=undefined}r.prototype.render=function(){var r;var t=c(this);var n={href:this.href,rel:this.rel,target:this.target};return i(u,{onClick:this.onClick,class:s(this.color,(r={},r[t]=true,r["ion-activatable"]=true,r))},i("a",Object.assign({},n),i("slot",null)))};return r}());K.style=J}}}));
|
|
4
|
+
*/System.register(["./p-67c3a2a8.system.js","./p-32ad210f.system.js","./p-4609d030.system.js","./p-ef3a6b51.system.js"],(function(r){"use strict";var t,n,e,i,u,o,a,f,s,c;return{setters:[function(r){t=r.r;n=r.d;e=r.f;i=r.h;u=r.H},function(r){o=r.c;a=r.q},function(r){f=r.o;s=r.c},function(r){c=r.b}],execute:function(){var h=this;var v=r("ion_route",function(){function r(r){t(this,r);this.ionRouteDataChanged=n(this,"ionRouteDataChanged",7);this.url="";this.component=undefined;this.componentProps=undefined;this.beforeLeave=undefined;this.beforeEnter=undefined}r.prototype.onUpdate=function(r){this.ionRouteDataChanged.emit(r)};r.prototype.onComponentProps=function(r,t){if(r===t){return}var n=r?Object.keys(r):[];var e=t?Object.keys(t):[];if(n.length!==e.length){this.onUpdate(r);return}for(var i=0,u=n;i<u.length;i++){var o=u[i];if(r[o]!==t[o]){this.onUpdate(r);return}}};r.prototype.connectedCallback=function(){this.ionRouteDataChanged.emit()};Object.defineProperty(r,"watchers",{get:function(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}},enumerable:false,configurable:true});return r}());var l=r("ion_route_redirect",function(){function r(r){t(this,r);this.ionRouteRedirectChanged=n(this,"ionRouteRedirectChanged",7);this.from=undefined;this.to=undefined}r.prototype.propDidChange=function(){this.ionRouteRedirectChanged.emit()};r.prototype.connectedCallback=function(){this.ionRouteRedirectChanged.emit()};Object.defineProperty(r,"watchers",{get:function(){return{from:["propDidChange"],to:["propDidChange"]}},enumerable:false,configurable:true});return r}());var d="root";var _="forward";var w="back";var g=function(r){var t=r.filter((function(r){return r.length>0})).join("/");return"/"+t};var b=function(r,t,n){var e=g(r);if(t){e="#"+e}if(n!==undefined){e+="?"+n}return e};var m=function(r,t,n,e,i,u,o){var a=b(__spreadArray(__spreadArray([],j(t).segments,true),e,true),n,o);if(i===_){r.pushState(u,"",a)}else{r.replaceState(u,"",a)}};var p=function(r){var t=[];for(var n=0,e=r;n<e.length;n++){var i=e[n];for(var u=0,o=i.segments;u<o.length;u++){var a=o[u];if(a[0]===":"){var f=i.params&&i.params[a.slice(1)];if(!f){return null}t.push(f)}else if(a!==""){t.push(a)}}}return t};var y=function(r,t){if(r.length>t.length){return null}if(r.length<=1&&r[0]===""){return t}for(var n=0;n<r.length;n++){if(r[n]!==t[n]){return null}}if(t.length===r.length){return[""]}return t.slice(r.length)};var R=function(r,t,n){var e=j(t).segments;var i=n?r.hash.slice(1):r.pathname;var u=j(i).segments;return y(e,u)};var j=function(r){var t=[""];var n;if(r!=null){var e=r.indexOf("?");if(e>-1){n=r.substring(e+1);r=r.substring(0,e)}t=r.split("/").map((function(r){return r.trim()})).filter((function(r){return r.length>0}));if(t.length===0){t=[""]}}return{segments:t,queryString:n}};var O=function(r){console.group("[ion-core] ROUTES[".concat(r.length,"]"));var t=function(r){var t=[];r.forEach((function(r){return t.push.apply(t,r.segments)}));var n=r.map((function(r){return r.id}));console.debug("%c ".concat(g(t)),"font-weight: bold; padding-left: 20px","=>\t","(".concat(n.join(", "),")"))};for(var n=0,e=r;n<e.length;n++){var i=e[n];t(i)}console.groupEnd()};var C=function(r){console.group("[ion-core] REDIRECTS[".concat(r.length,"]"));for(var t=0,n=r;t<n.length;t++){var e=n[t];if(e.to){console.debug("FROM: ","$c ".concat(g(e.from)),"font-weight: bold"," TO: ","$c ".concat(g(e.to.segments)),"font-weight: bold")}}console.groupEnd()};var k=function(r,t,n,e,i,u){if(i===void 0){i=false}return __awaiter(h,void 0,void 0,(function(){var a,f,s,c;return __generator(this,(function(h){switch(h.label){case 0:h.trys.push([0,6,,7]);a=P(r);if(e>=t.length||!a){return[2,i]}return[4,new Promise((function(r){return o(a,r)}))];case 1:h.sent();f=t[e];return[4,a.setRouteId(f.id,f.params,n,u)];case 2:s=h.sent();if(s.changed){n=d;i=true}return[4,k(s.element,t,n,e+1,i,u)];case 3:i=h.sent();if(!s.markVisible)return[3,5];return[4,s.markVisible()];case 4:h.sent();h.label=5;case 5:return[2,i];case 6:c=h.sent();console.error(c);return[2,false];case 7:return[2]}}))}))};var E=function(r){return __awaiter(h,void 0,void 0,(function(){var t,n,e,i;return __generator(this,(function(u){switch(u.label){case 0:t=[];e=r;u.label=1;case 1:if(!(n=P(e)))return[3,3];return[4,n.getRouteId()];case 2:i=u.sent();if(i){e=i.element;i.element=undefined;t.push(i)}else{return[3,3]}return[3,1];case 3:return[2,{ids:t,outlet:n}]}}))}))};var x=function(){if(P(document.body)){return Promise.resolve()}return new Promise((function(r){window.addEventListener("ionNavWillLoad",(function(){return r()}),{once:true})}))};var A=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet";var P=function(r){if(!r){return undefined}if(r.matches(A)){return r}var t=r.querySelector(A);return t!==null&&t!==void 0?t:undefined};var U=function(r,t){var n=t.from,e=t.to;if(e===undefined){return false}if(n.length>r.length){return false}for(var i=0;i<n.length;i++){var u=n[i];if(u==="*"){return true}if(u!==r[i]){return false}}return n.length===r.length};var D=function(r,t){return t.find((function(t){return U(r,t)}))};var L=function(r,t){var n=Math.min(r.length,t.length);var e=0;for(var i=0;i<n;i++){var u=r[i];var o=t[i];if(u.id.toLowerCase()!==o.id){break}if(u.params){var a=Object.keys(u.params);if(a.length===o.segments.length){var f=a.map((function(r){return":".concat(r)}));for(var s=0;s<f.length;s++){if(f[s].toLowerCase()!==o.segments[s]){break}e++}}}e++}return e};var T=function(r,t){var n=new q(r);var e=false;var i;for(var u=0;u<t.length;u++){var o=t[u].segments;if(o[0]===""){e=true}else{for(var a=0,f=o;a<f.length;a++){var s=f[a];var c=n.next();if(s[0]===":"){if(c===""){return null}i=i||[];var h=i[u]||(i[u]={});h[s.slice(1)]=c}else if(c!==s){return null}}e=false}}var v=e?e===(n.next()===""):true;if(!v){return null}if(i){return t.map((function(r,t){return{id:r.id,segments:r.segments,params:S(r.params,i[t]),beforeEnter:r.beforeEnter,beforeLeave:r.beforeLeave}}))}return t};var S=function(r,t){return r||t?Object.assign(Object.assign({},r),t):undefined};var I=function(r,t){var n=null;var e=0;for(var i=0,u=t;i<u.length;i++){var o=u[i];var a=L(r,o);if(a>e){n=o;e=a}}if(n){return n.map((function(t,n){var e;return{id:t.id,segments:t.segments,params:S(t.params,(e=r[n])===null||e===void 0?void 0:e.params)}}))}return null};var M=function(r,t){var n=null;var e=0;for(var i=0,u=t;i<u.length;i++){var o=u[i];var a=T(r,o);if(a!==null){var f=N(a);if(f>e){e=f;n=a}}}return n};var N=function(r){var t=1;var n=1;for(var e=0,i=r;e<i.length;e++){var u=i[e];for(var o=0,a=u.segments;o<a.length;o++){var f=a[o];if(f[0]===":"){t+=Math.pow(1,n)}else if(f!==""){t+=Math.pow(2,n)}n++}}return t};var q=function(){function r(r){this.segments=r.slice()}r.prototype.next=function(){if(this.segments.length>0){return this.segments.shift()}return""};return r}();var F=function(r,t){if(t in r){return r[t]}if(r.hasAttribute(t)){return r.getAttribute(t)}return null};var W=function(r){return Array.from(r.children).filter((function(r){return r.tagName==="ION-ROUTE-REDIRECT"})).map((function(r){var t=F(r,"to");return{from:j(F(r,"from")).segments,to:t==null?undefined:j(t)}}))};var $=function(r){return G(z(r))};var z=function(r){return Array.from(r.children).filter((function(r){return r.tagName==="ION-ROUTE"&&r.component})).map((function(r){var t=F(r,"component");return{segments:j(F(r,"url")).segments,id:t.toLowerCase(),params:r.componentProps,beforeLeave:r.beforeLeave,beforeEnter:r.beforeEnter,children:z(r)}}))};var G=function(r){var t=[];for(var n=0,e=r;n<e.length;n++){var i=e[n];B([],t,i)}return t};var B=function(r,t,n){r=__spreadArray(__spreadArray([],r,true),[{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],false);if(n.children.length===0){t.push(r);return}for(var e=0,i=n.children;e<i.length;e++){var u=i[e];B(r,t,u)}};var H=r("ion_router",function(){function r(r){t(this,r);this.ionRouteWillChange=n(this,"ionRouteWillChange",7);this.ionRouteDidChange=n(this,"ionRouteDidChange",7);this.previousPath=null;this.busy=false;this.state=0;this.lastState=0;this.root="/";this.useHash=true}r.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var r,t,n;return __generator(this,(function(e){switch(e.label){case 0:return[4,x()];case 1:e.sent();return[4,this.runGuards(this.getSegments())];case 2:r=e.sent();if(!(r!==true))return[3,5];if(!(typeof r==="object"))return[3,4];t=r.redirect;n=j(t);this.setSegments(n.segments,d,n.queryString);return[4,this.writeNavStateRoot(n.segments,d)];case 3:e.sent();e.label=4;case 4:return[3,7];case 5:return[4,this.onRoutesChanged()];case 6:e.sent();e.label=7;case 7:return[2]}}))}))};r.prototype.componentDidLoad=function(){window.addEventListener("ionRouteRedirectChanged",a(this.onRedirectChanged.bind(this),10));window.addEventListener("ionRouteDataChanged",a(this.onRoutesChanged.bind(this),100))};r.prototype.onPopState=function(){return __awaiter(this,void 0,void 0,(function(){var r,t,n;return __generator(this,(function(e){switch(e.label){case 0:r=this.historyDirection();t=this.getSegments();return[4,this.runGuards(t)];case 1:n=e.sent();if(n!==true){if(typeof n==="object"){t=j(n.redirect).segments}else{return[2,false]}}return[2,this.writeNavStateRoot(t,r)]}}))}))};r.prototype.onBackButton=function(r){var t=this;r.detail.register(0,(function(r){t.back();r()}))};r.prototype.canTransition=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.runGuards()];case 1:r=t.sent();if(r!==true){if(typeof r==="object"){return[2,r.redirect]}else{return[2,false]}}return[2,true]}}))}))};r.prototype.push=function(r,t,n){if(t===void 0){t="forward"}return __awaiter(this,void 0,void 0,(function(){var e,i,u,o,a;return __generator(this,(function(f){switch(f.label){case 0:if(r.startsWith(".")){i=(e=this.previousPath)!==null&&e!==void 0?e:"/";u=new URL(r,"https://host/".concat(i));r=u.pathname+u.search}o=j(r);return[4,this.runGuards(o.segments)];case 1:a=f.sent();if(a!==true){if(typeof a==="object"){o=j(a.redirect)}else{return[2,false]}}this.setSegments(o.segments,t,o.queryString);return[2,this.writeNavStateRoot(o.segments,t,n)]}}))}))};r.prototype.back=function(){window.history.back();return Promise.resolve(this.waitPromise)};r.prototype.printDebug=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){O($(this.el));C(W(this.el));return[2]}))}))};r.prototype.navChanged=function(r){return __awaiter(this,void 0,void 0,(function(){var t,n,e,i,u,o;return __generator(this,(function(a){switch(a.label){case 0:if(this.busy){console.warn("[ion-router] router is busy, navChanged was cancelled");return[2,false]}return[4,E(window.document.body)];case 1:t=a.sent(),n=t.ids,e=t.outlet;i=$(this.el);u=I(n,i);if(!u){console.warn("[ion-router] no matching URL for ",n.map((function(r){return r.id})));return[2,false]}o=p(u);if(!o){console.warn("[ion-router] router could not match path because some required param is missing");return[2,false]}this.setSegments(o,r);return[4,this.safeWriteNavState(e,u,d,o,null,n.length)];case 2:a.sent();return[2,true]}}))}))};r.prototype.onRedirectChanged=function(){var r=this.getSegments();if(r&&D(r,W(this.el))){this.writeNavStateRoot(r,d)}};r.prototype.onRoutesChanged=function(){return this.writeNavStateRoot(this.getSegments(),d)};r.prototype.historyDirection=function(){var r;var t=window;if(t.history.state===null){this.state++;t.history.replaceState(this.state,t.document.title,(r=t.document.location)===null||r===void 0?void 0:r.href)}var n=t.history.state;var e=this.lastState;this.lastState=n;if(n>e||n>=e&&e>0){return _}if(n<e){return w}return d};r.prototype.writeNavStateRoot=function(r,t,n){return __awaiter(this,void 0,void 0,(function(){var e,i,u,o,a,f,s,c;return __generator(this,(function(h){if(!r){console.error("[ion-router] URL is not part of the routing set");return[2,false]}e=W(this.el);i=D(r,e);u=null;if(i){o=i.to,a=o.segments,f=o.queryString;this.setSegments(a,t,f);u=i.from;r=a}s=$(this.el);c=M(r,s);if(!c){console.error("[ion-router] the path does not match any route");return[2,false]}return[2,this.safeWriteNavState(document.body,c,t,r,u,0,n)]}))}))};r.prototype.safeWriteNavState=function(r,t,n,e,i,u,o){if(u===void 0){u=0}return __awaiter(this,void 0,void 0,(function(){var a,f,s;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.lock()];case 1:a=c.sent();f=false;c.label=2;case 2:c.trys.push([2,4,,5]);return[4,this.writeNavState(r,t,n,e,i,u,o)];case 3:f=c.sent();return[3,5];case 4:s=c.sent();console.error(s);return[3,5];case 5:a();return[2,f]}}))}))};r.prototype.lock=function(){return __awaiter(this,void 0,void 0,(function(){var r,t;return __generator(this,(function(n){switch(n.label){case 0:r=this.waitPromise;this.waitPromise=new Promise((function(r){return t=r}));if(!(r!==undefined))return[3,2];return[4,r];case 1:n.sent();n.label=2;case 2:return[2,t]}}))}))};r.prototype.runGuards=function(r,t){if(r===void 0){r=this.getSegments()}return __awaiter(this,void 0,void 0,(function(){var n,e,i,u,o,a,f;return __generator(this,(function(s){switch(s.label){case 0:if(t===undefined){t=j(this.previousPath).segments}if(!r||!t){return[2,true]}n=$(this.el);e=M(t,n);i=e&&e[e.length-1].beforeLeave;if(!i)return[3,2];return[4,i()];case 1:o=s.sent();return[3,3];case 2:o=true;s.label=3;case 3:u=o;if(u===false||typeof u==="object"){return[2,u]}a=M(r,n);f=a&&a[a.length-1].beforeEnter;return[2,f?f():true]}}))}))};r.prototype.writeNavState=function(r,t,n,e,i,u,o){if(u===void 0){u=0}return __awaiter(this,void 0,void 0,(function(){var a,f;return __generator(this,(function(s){switch(s.label){case 0:if(this.busy){console.warn("[ion-router] router is busy, transition was cancelled");return[2,false]}this.busy=true;a=this.routeChangeEvent(e,i);if(a){this.ionRouteWillChange.emit(a)}return[4,k(r,t,n,u,false,o)];case 1:f=s.sent();this.busy=false;if(a){this.ionRouteDidChange.emit(a)}return[2,f]}}))}))};r.prototype.setSegments=function(r,t,n){this.state++;m(window.history,this.root,this.useHash,r,t,this.state,n)};r.prototype.getSegments=function(){return R(window.location,this.root,this.useHash)};r.prototype.routeChangeEvent=function(r,t){var n=this.previousPath;var e=g(r);this.previousPath=e;if(e===n){return null}var i=t?g(t):null;return{from:n,redirectedFrom:i,to:e}};Object.defineProperty(r.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});return r}());var J=":host{--background:transparent;--color:var(--ion-color-primary, #3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}";var K=r("ion_router_link",function(){function r(r){var n=this;t(this,r);this.onClick=function(r){f(n.href,r,n.routerDirection,n.routerAnimation)};this.color=undefined;this.href=undefined;this.rel=undefined;this.routerDirection="forward";this.routerAnimation=undefined;this.target=undefined}r.prototype.render=function(){var r;var t=c(this);var n={href:this.href,rel:this.rel,target:this.target};return i(u,{onClick:this.onClick,class:s(this.color,(r={},r[t]=true,r["ion-activatable"]=true,r))},i("a",Object.assign({},n),i("slot",null)))};return r}());K.style=J}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,d as o,h as i,H as e,f as a}from"./p-5954606c.js";import{E as s,a as r}from"./p-41d5544e.js";import{g as n,r as d}from"./p-23a9d086.js";import{c as l}from"./p-ccd02320.js";import{p}from"./p-06fee233.js";import{O as h,d as c,e as u,i as m,j as b,k as g,f,g as x,h as v,s as w,G as y}from"./p-0a114fbd.js";import{g as k,c as $}from"./p-47794def.js";import{c as j,b as T}from"./p-052ad394.js";import{c as Y}from"./p-29d03b3a.js";import{w as z}from"./p-7b30edcc.js";import{createGesture as D}from"./p-f5d2dc9b.js";import"./p-4180a747.js";import"./p-4b3623da.js";import"./p-bb3615f7.js";const C=(t,o)=>Math.floor(t/2-o/2),M=(t,o)=>{const i=Y(),e=Y(),{position:a,top:s,bottom:r}=o,d=n(t).querySelector(".toast-wrapper");switch(e.addElement(d),a){case"top":e.fromTo("transform","translateY(-100%)",`translateY(${s})`);break;case"middle":const o=C(t.clientHeight,d.clientHeight);d.style.top=`${o}px`,e.fromTo("opacity",.01,1);break;default:e.fromTo("transform","translateY(100%)",`translateY(${r})`)}return i.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(e)},O=(t,o)=>{const i=Y(),e=Y(),{position:a,top:s,bottom:r}=o,d=n(t).querySelector(".toast-wrapper");switch(e.addElement(d),a){case"top":e.fromTo("transform",`translateY(${s})`,"translateY(-100%)");break;case"middle":e.fromTo("opacity",.99,0);break;default:e.fromTo("transform",`translateY(${r})`,"translateY(100%)")}return i.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(e)},H=(t,o)=>{const i=Y(),e=Y(),{position:a,top:s,bottom:r}=o,d=n(t).querySelector(".toast-wrapper");switch(e.addElement(d),a){case"top":d.style.setProperty("transform",`translateY(${s})`),e.fromTo("opacity",.01,1);break;case"middle":const o=C(t.clientHeight,d.clientHeight);d.style.top=`${o}px`,e.fromTo("opacity",.01,1);break;default:d.style.setProperty("transform",`translateY(${r})`),e.fromTo("opacity",.01,1)}return i.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(e)},P=t=>{const o=Y(),i=Y(),e=n(t).querySelector(".toast-wrapper");return i.addElement(e).fromTo("opacity",.99,0),o.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(i)},E=class{constructor(i){t(this,i),this.didPresent=o(this,"ionToastDidPresent",7),this.willPresent=o(this,"ionToastWillPresent",7),this.willDismiss=o(this,"ionToastWillDismiss",7),this.didDismiss=o(this,"ionToastDidDismiss",7),this.didPresentShorthand=o(this,"didPresent",7),this.willPresentShorthand=o(this,"willPresent",7),this.willDismissShorthand=o(this,"willDismiss",7),this.didDismissShorthand=o(this,"didDismiss",7),this.delegateController=c(this),this.lockController=l(),this.triggerController=u(),this.customHTMLEnabled=j.get("innerHTMLTemplatesEnabled",s),this.presented=!1,this.dispatchCancelHandler=t=>{if(m(t.detail.role)){const t=this.getButtons().find((t=>"cancel"===t.role));this.callButtonHandler(t)}},this.createSwipeGesture=t=>{const o=this.gesture=((t,o,i)=>{const e=n(t).querySelector(".toast-wrapper"),a=t.clientHeight,s=e.getBoundingClientRect();let r=0;const d="middle"===t.position?.5:0,l="top"===t.position?-1:1,p=C(a,s.height),c=[{offset:0,transform:`translateY(-${p+s.height}px)`},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:`translateY(${p+s.height}px)`}],u=Y("toast-swipe-to-dismiss-animation").addElement(e).duration(100);switch(t.position){case"middle":r=a+s.height,u.keyframes(c),u.progressStart(!0,.5);break;case"top":r=s.bottom,u.keyframes([{offset:0,transform:`translateY(${o.top})`},{offset:1,transform:"translateY(-100%)"}]),u.progressStart(!0,0);break;default:r=a-s.top,u.keyframes([{offset:0,transform:`translateY(${o.bottom})`},{offset:1,transform:"translateY(100%)"}]),u.progressStart(!0,0)}const m=t=>t*l/r,b=D({el:e,gestureName:"toast-swipe-to-dismiss",gesturePriority:h,direction:"y",onMove:t=>{const o=d+m(t.deltaY);u.progressStep(o)},onEnd:o=>{const a=o.velocityY,s=(o.deltaY+1e3*a)/r*l;b.enable(!1);let n=!0,d=1,h=0,g=0;if("middle"===t.position){n=s>=.25||s<=-.25,d=1,h=0;const t=e.getBoundingClientRect(),i=t.top-p,a=(p+t.height)*(o.deltaY<=0?-1:1);u.keyframes([{offset:0,transform:`translateY(${i}px)`},{offset:1,transform:`translateY(${n?`${a}px`:"0px"})`}]),g=a-i}else n=s>=.5,d=n?1:0,h=m(o.deltaY),g=(n?1-h:h)*r;const f=Math.min(Math.abs(g)/Math.abs(a),200);u.onFinish((()=>{n?(i(),u.destroy()):("middle"===t.position?u.keyframes(c).progressStart(!0,.5):u.progressStart(!0,0),b.enable(!0))}),{oneTimeCallback:!0}).progressEnd(d,h,f)}});return b})(this.el,t,(()=>{this.dismiss(void 0,y)}));o.enable(!0)},this.destroySwipeGesture=()=>{const{gesture:t}=this;void 0!==t&&(t.destroy(),this.gesture=void 0)},this.prefersSwipeGesture=()=>{const{swipeGesture:t}=this;return"vertical"===t},this.revealContentToScreenReader=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.color=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.duration=j.getNumber("toastDuration",0),this.header=void 0,this.layout="baseline",this.message=void 0,this.keyboardClose=!1,this.position="bottom",this.positionAnchor=void 0,this.buttons=void 0,this.translucent=!1,this.animated=!0,this.icon=void 0,this.htmlAttributes=void 0,this.swipeGesture=void 0,this.isOpen=!1,this.trigger=void 0}swipeGestureChanged(){this.destroySwipeGesture(),this.presented&&this.prefersSwipeGesture()&&this.createSwipeGesture(this.lastPresentedPosition)}onIsOpenChange(t,o){!0===t&&!1===o?this.present():!1===t&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:t,el:o,triggerController:i}=this;t&&i.addClickListener(o,t)}connectedCallback(){b(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){g(this.el)}componentDidLoad(){!0===this.isOpen&&d((()=>this.present())),this.triggerChanged()}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom();const{el:o,position:i}=this,e=function(t,o,i,e){let a;if(a="md"===i?"top"===t?8:-8:"top"===t?10:-10,o&&z){!function(t,o){null===t.offsetParent&&p("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",o)}(o,e);const i=o.getBoundingClientRect();return"top"===t?a+=i.bottom:"bottom"===t&&(a-=z.innerHeight-i.top),{top:`${a}px`,bottom:`${a}px`}}return{top:`calc(${a}px + var(--ion-safe-area-top, 0px))`,bottom:`calc(${a}px - var(--ion-safe-area-bottom, 0px))`}}(i,this.getAnchorElement(),T(this),o);this.lastPresentedPosition=e,await f(this,"toastEnter",M,H,{position:i,top:e.top,bottom:e.bottom}),this.revealContentToScreenReader=!0,this.duration>0&&(this.durationTimeout=setTimeout((()=>this.dismiss(void 0,"timeout")),this.duration)),this.prefersSwipeGesture()&&this.createSwipeGesture(e),t()}async dismiss(t,o){var i,e;const a=await this.lockController.lock(),{durationTimeout:s,position:r,lastPresentedPosition:n}=this;s&&clearTimeout(s);const d=await x(this,t,o,"toastLeave",O,P,{position:r,top:null!==(i=null==n?void 0:n.top)&&void 0!==i?i:"",bottom:null!==(e=null==n?void 0:n.bottom)&&void 0!==e?e:""});return d&&(this.delegateController.removeViewFromDom(),this.revealContentToScreenReader=!1),this.lastPresentedPosition=void 0,this.destroySwipeGesture(),a(),d}onDidDismiss(){return v(this.el,"ionToastDidDismiss")}onWillDismiss(){return v(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map((t=>"string"==typeof t?{text:t}:t)):[]}getAnchorElement(){const{position:t,positionAnchor:o,el:i}=this;if(void 0!==o)if("middle"!==t||void 0===o){if("string"==typeof o){const t=document.getElementById(o);return null===t?void p(`An anchor element with an ID of "${o}" was not found in the DOM.`,i):t}if(o instanceof HTMLElement)return o;p("Invalid positionAnchor value:",o,i)}else p('The positionAnchor property is ignored when using position="middle".',this.el)}async buttonClick(t){const o=t.role;return m(o)||await this.callButtonHandler(t)?this.dismiss(void 0,o):Promise.resolve()}async callButtonHandler(t){if(null==t?void 0:t.handler)try{if(!1===await w(t.handler))return!1}catch(t){console.error(t)}return!0}renderButtons(t,o){if(0===t.length)return;const e=T(this);return i("div",{class:{"toast-button-group":!0,[`toast-button-group-${o}`]:!0}},t.map((t=>i("button",Object.assign({},t.htmlAttributes,{type:"button",class:I(t),tabIndex:0,onClick:()=>this.buttonClick(t),part:L(t)}),i("div",{class:"toast-button-inner"},t.icon&&i("ion-icon",{"aria-hidden":"true",icon:t.icon,slot:void 0===t.text?"icon-only":void 0,class:"toast-button-icon"}),t.text),"md"===e&&i("ion-ripple-effect",{type:void 0!==t.icon&&void 0===t.text?"unbounded":"bounded"})))))}renderToastMessage(t,o=null){const{customHTMLEnabled:e,message:a}=this;return e?i("div",{key:t,"aria-hidden":o,class:"toast-message",part:"message",innerHTML:r(a)}):i("div",{key:t,"aria-hidden":o,class:"toast-message",part:"message"},a)}renderHeader(t,o=null){return i("div",{key:t,class:"toast-header","aria-hidden":o,part:"header"},this.header)}render(){const{layout:t,el:o,revealContentToScreenReader:a,header:s,message:r}=this,n=this.getButtons(),d=n.filter((t=>"start"===t.side)),l=n.filter((t=>"start"!==t.side)),h=T(this),c={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${t}`]:!0};return"stacked"===t&&d.length>0&&l.length>0&&p("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",o),i(e,Object.assign({tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:$(this.color,Object.assign(Object.assign({[h]:!0},k(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),i("div",{class:c},i("div",{class:"toast-container",part:"container"},this.renderButtons(d,"start"),void 0!==this.icon&&i("ion-icon",{class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),i("div",{class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!a&&void 0!==s&&this.renderHeader("oldHeader","true"),!a&&void 0!==r&&this.renderToastMessage("oldMessage","true"),a&&void 0!==s&&this.renderHeader("header"),a&&void 0!==r&&this.renderToastMessage("header")),this.renderButtons(l,"end"))))}get el(){return a(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},I=t=>Object.assign({"toast-button":!0,"toast-button-icon-only":void 0!==t.icon&&void 0===t.text,[`toast-button-${t.role}`]:void 0!==t.role,"ion-focusable":!0,"ion-activatable":!0},k(t.cssClass)),L=t=>m(t.role)?"button cancel":"button";E.style={ios:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",md:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}"};export{E as ion_toast}
|
|
4
|
+
import{r as t,d as o,h as i,H as e,f as a}from"./p-d6129c6e.js";import{E as s,a as r}from"./p-41d5544e.js";import{g as n,r as d}from"./p-23a9d086.js";import{c as l}from"./p-ccd02320.js";import{p}from"./p-06fee233.js";import{O as h,d as c,e as u,i as m,j as b,k as g,f,g as x,h as v,s as w,G as y}from"./p-90000ff6.js";import{g as k,c as $}from"./p-47794def.js";import{c as j,b as T}from"./p-fd41bd8a.js";import{c as Y}from"./p-29d03b3a.js";import{w as z}from"./p-7b30edcc.js";import{createGesture as D}from"./p-f5d2dc9b.js";import"./p-4180a747.js";import"./p-4b3623da.js";import"./p-bb3615f7.js";const C=(t,o)=>Math.floor(t/2-o/2),M=(t,o)=>{const i=Y(),e=Y(),{position:a,top:s,bottom:r}=o,d=n(t).querySelector(".toast-wrapper");switch(e.addElement(d),a){case"top":e.fromTo("transform","translateY(-100%)",`translateY(${s})`);break;case"middle":const o=C(t.clientHeight,d.clientHeight);d.style.top=`${o}px`,e.fromTo("opacity",.01,1);break;default:e.fromTo("transform","translateY(100%)",`translateY(${r})`)}return i.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(e)},O=(t,o)=>{const i=Y(),e=Y(),{position:a,top:s,bottom:r}=o,d=n(t).querySelector(".toast-wrapper");switch(e.addElement(d),a){case"top":e.fromTo("transform",`translateY(${s})`,"translateY(-100%)");break;case"middle":e.fromTo("opacity",.99,0);break;default:e.fromTo("transform",`translateY(${r})`,"translateY(100%)")}return i.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(e)},H=(t,o)=>{const i=Y(),e=Y(),{position:a,top:s,bottom:r}=o,d=n(t).querySelector(".toast-wrapper");switch(e.addElement(d),a){case"top":d.style.setProperty("transform",`translateY(${s})`),e.fromTo("opacity",.01,1);break;case"middle":const o=C(t.clientHeight,d.clientHeight);d.style.top=`${o}px`,e.fromTo("opacity",.01,1);break;default:d.style.setProperty("transform",`translateY(${r})`),e.fromTo("opacity",.01,1)}return i.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(e)},P=t=>{const o=Y(),i=Y(),e=n(t).querySelector(".toast-wrapper");return i.addElement(e).fromTo("opacity",.99,0),o.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(i)},E=class{constructor(i){t(this,i),this.didPresent=o(this,"ionToastDidPresent",7),this.willPresent=o(this,"ionToastWillPresent",7),this.willDismiss=o(this,"ionToastWillDismiss",7),this.didDismiss=o(this,"ionToastDidDismiss",7),this.didPresentShorthand=o(this,"didPresent",7),this.willPresentShorthand=o(this,"willPresent",7),this.willDismissShorthand=o(this,"willDismiss",7),this.didDismissShorthand=o(this,"didDismiss",7),this.delegateController=c(this),this.lockController=l(),this.triggerController=u(),this.customHTMLEnabled=j.get("innerHTMLTemplatesEnabled",s),this.presented=!1,this.dispatchCancelHandler=t=>{if(m(t.detail.role)){const t=this.getButtons().find((t=>"cancel"===t.role));this.callButtonHandler(t)}},this.createSwipeGesture=t=>{const o=this.gesture=((t,o,i)=>{const e=n(t).querySelector(".toast-wrapper"),a=t.clientHeight,s=e.getBoundingClientRect();let r=0;const d="middle"===t.position?.5:0,l="top"===t.position?-1:1,p=C(a,s.height),c=[{offset:0,transform:`translateY(-${p+s.height}px)`},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:`translateY(${p+s.height}px)`}],u=Y("toast-swipe-to-dismiss-animation").addElement(e).duration(100);switch(t.position){case"middle":r=a+s.height,u.keyframes(c),u.progressStart(!0,.5);break;case"top":r=s.bottom,u.keyframes([{offset:0,transform:`translateY(${o.top})`},{offset:1,transform:"translateY(-100%)"}]),u.progressStart(!0,0);break;default:r=a-s.top,u.keyframes([{offset:0,transform:`translateY(${o.bottom})`},{offset:1,transform:"translateY(100%)"}]),u.progressStart(!0,0)}const m=t=>t*l/r,b=D({el:e,gestureName:"toast-swipe-to-dismiss",gesturePriority:h,direction:"y",onMove:t=>{const o=d+m(t.deltaY);u.progressStep(o)},onEnd:o=>{const a=o.velocityY,s=(o.deltaY+1e3*a)/r*l;b.enable(!1);let n=!0,d=1,h=0,g=0;if("middle"===t.position){n=s>=.25||s<=-.25,d=1,h=0;const t=e.getBoundingClientRect(),i=t.top-p,a=(p+t.height)*(o.deltaY<=0?-1:1);u.keyframes([{offset:0,transform:`translateY(${i}px)`},{offset:1,transform:`translateY(${n?`${a}px`:"0px"})`}]),g=a-i}else n=s>=.5,d=n?1:0,h=m(o.deltaY),g=(n?1-h:h)*r;const f=Math.min(Math.abs(g)/Math.abs(a),200);u.onFinish((()=>{n?(i(),u.destroy()):("middle"===t.position?u.keyframes(c).progressStart(!0,.5):u.progressStart(!0,0),b.enable(!0))}),{oneTimeCallback:!0}).progressEnd(d,h,f)}});return b})(this.el,t,(()=>{this.dismiss(void 0,y)}));o.enable(!0)},this.destroySwipeGesture=()=>{const{gesture:t}=this;void 0!==t&&(t.destroy(),this.gesture=void 0)},this.prefersSwipeGesture=()=>{const{swipeGesture:t}=this;return"vertical"===t},this.revealContentToScreenReader=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.color=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.duration=j.getNumber("toastDuration",0),this.header=void 0,this.layout="baseline",this.message=void 0,this.keyboardClose=!1,this.position="bottom",this.positionAnchor=void 0,this.buttons=void 0,this.translucent=!1,this.animated=!0,this.icon=void 0,this.htmlAttributes=void 0,this.swipeGesture=void 0,this.isOpen=!1,this.trigger=void 0}swipeGestureChanged(){this.destroySwipeGesture(),this.presented&&this.prefersSwipeGesture()&&this.createSwipeGesture(this.lastPresentedPosition)}onIsOpenChange(t,o){!0===t&&!1===o?this.present():!1===t&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:t,el:o,triggerController:i}=this;t&&i.addClickListener(o,t)}connectedCallback(){b(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){g(this.el)}componentDidLoad(){!0===this.isOpen&&d((()=>this.present())),this.triggerChanged()}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom();const{el:o,position:i}=this,e=function(t,o,i,e){let a;if(a="md"===i?"top"===t?8:-8:"top"===t?10:-10,o&&z){!function(t,o){null===t.offsetParent&&p("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",o)}(o,e);const i=o.getBoundingClientRect();return"top"===t?a+=i.bottom:"bottom"===t&&(a-=z.innerHeight-i.top),{top:`${a}px`,bottom:`${a}px`}}return{top:`calc(${a}px + var(--ion-safe-area-top, 0px))`,bottom:`calc(${a}px - var(--ion-safe-area-bottom, 0px))`}}(i,this.getAnchorElement(),T(this),o);this.lastPresentedPosition=e,await f(this,"toastEnter",M,H,{position:i,top:e.top,bottom:e.bottom}),this.revealContentToScreenReader=!0,this.duration>0&&(this.durationTimeout=setTimeout((()=>this.dismiss(void 0,"timeout")),this.duration)),this.prefersSwipeGesture()&&this.createSwipeGesture(e),t()}async dismiss(t,o){var i,e;const a=await this.lockController.lock(),{durationTimeout:s,position:r,lastPresentedPosition:n}=this;s&&clearTimeout(s);const d=await x(this,t,o,"toastLeave",O,P,{position:r,top:null!==(i=null==n?void 0:n.top)&&void 0!==i?i:"",bottom:null!==(e=null==n?void 0:n.bottom)&&void 0!==e?e:""});return d&&(this.delegateController.removeViewFromDom(),this.revealContentToScreenReader=!1),this.lastPresentedPosition=void 0,this.destroySwipeGesture(),a(),d}onDidDismiss(){return v(this.el,"ionToastDidDismiss")}onWillDismiss(){return v(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map((t=>"string"==typeof t?{text:t}:t)):[]}getAnchorElement(){const{position:t,positionAnchor:o,el:i}=this;if(void 0!==o)if("middle"!==t||void 0===o){if("string"==typeof o){const t=document.getElementById(o);return null===t?void p(`An anchor element with an ID of "${o}" was not found in the DOM.`,i):t}if(o instanceof HTMLElement)return o;p("Invalid positionAnchor value:",o,i)}else p('The positionAnchor property is ignored when using position="middle".',this.el)}async buttonClick(t){const o=t.role;return m(o)||await this.callButtonHandler(t)?this.dismiss(void 0,o):Promise.resolve()}async callButtonHandler(t){if(null==t?void 0:t.handler)try{if(!1===await w(t.handler))return!1}catch(t){console.error(t)}return!0}renderButtons(t,o){if(0===t.length)return;const e=T(this);return i("div",{class:{"toast-button-group":!0,[`toast-button-group-${o}`]:!0}},t.map((t=>i("button",Object.assign({},t.htmlAttributes,{type:"button",class:I(t),tabIndex:0,onClick:()=>this.buttonClick(t),part:L(t)}),i("div",{class:"toast-button-inner"},t.icon&&i("ion-icon",{"aria-hidden":"true",icon:t.icon,slot:void 0===t.text?"icon-only":void 0,class:"toast-button-icon"}),t.text),"md"===e&&i("ion-ripple-effect",{type:void 0!==t.icon&&void 0===t.text?"unbounded":"bounded"})))))}renderToastMessage(t,o=null){const{customHTMLEnabled:e,message:a}=this;return e?i("div",{key:t,"aria-hidden":o,class:"toast-message",part:"message",innerHTML:r(a)}):i("div",{key:t,"aria-hidden":o,class:"toast-message",part:"message"},a)}renderHeader(t,o=null){return i("div",{key:t,class:"toast-header","aria-hidden":o,part:"header"},this.header)}render(){const{layout:t,el:o,revealContentToScreenReader:a,header:s,message:r}=this,n=this.getButtons(),d=n.filter((t=>"start"===t.side)),l=n.filter((t=>"start"!==t.side)),h=T(this),c={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${t}`]:!0};return"stacked"===t&&d.length>0&&l.length>0&&p("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",o),i(e,Object.assign({tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:$(this.color,Object.assign(Object.assign({[h]:!0},k(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),i("div",{class:c},i("div",{class:"toast-container",part:"container"},this.renderButtons(d,"start"),void 0!==this.icon&&i("ion-icon",{class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),i("div",{class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!a&&void 0!==s&&this.renderHeader("oldHeader","true"),!a&&void 0!==r&&this.renderToastMessage("oldMessage","true"),a&&void 0!==s&&this.renderHeader("header"),a&&void 0!==r&&this.renderToastMessage("header")),this.renderButtons(l,"end"))))}get el(){return a(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},I=t=>Object.assign({"toast-button":!0,"toast-button-icon-only":void 0!==t.icon&&void 0===t.text,[`toast-button-${t.role}`]:void 0!==t.role,"ion-focusable":!0,"ion-activatable":!0},k(t.cssClass)),L=t=>m(t.role)?"button cancel":"button";E.style={ios:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",md:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}"};export{E as ion_toast}
|