@ionic/core 8.5.5-dev.11744657662.1cc389c0 → 8.5.5-dev.11744665184.1ec1e7e9
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/animation.js +1 -1
- package/components/button.js +1 -1
- package/components/capacitor.js +1 -1
- package/components/data.js +1 -1
- package/components/hardware-back-button.js +1 -1
- package/components/index.js +2 -1
- package/components/index2.js +1 -1
- package/components/index4.js +28 -290
- package/components/index5.js +302 -3
- package/components/index6.js +3 -40
- package/components/index8.js +1 -1
- package/components/index9.js +1 -1
- package/components/input-shims.js +1 -1
- package/components/input.utils.js +2 -2
- package/components/ion-accordion-group.js +1 -1
- package/components/ion-app.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu-toggle.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-picker-legacy.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-toast.js +2 -2
- package/components/keyboard-controller.js +1 -1
- package/components/menu-toggle-util.js +1 -1
- package/components/modal.js +2 -2
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +2 -2
- package/components/picker-column.js +1 -1
- package/components/popover.js +1 -1
- package/dist/cjs/index.cjs.js +5 -3
- package/dist/collection/index.js +1 -0
- package/dist/docs.json +1 -1
- package/dist/esm/{data-302621c9.js → data-e24ae812.js} +1 -1
- package/dist/esm/{index-e2539bac.js → index-3ee2dbd5.js} +1 -1
- package/dist/esm/{index-6665a73d.js → index-7981a992.js} +1 -1
- package/dist/esm/{index-0d85d3fc.js → index-f438077f.js} +3 -3
- package/dist/esm/{index-68373335.js → index-fe70a837.js} +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-shims-263e9d5f.js → input-shims-4ceed1d8.js} +2 -2
- package/dist/esm/{input.utils-10798a99.js → input.utils-8b9046b7.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +2 -2
- package/dist/esm/ion-alert.entry.js +2 -2
- package/dist/esm/ion-app_8.entry.js +5 -5
- package/dist/esm/ion-button_2.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +3 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +3 -3
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +3 -3
- 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-select-modal.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/{ios.transition-a2481ace.js → ios.transition-b8b60b46.js} +2 -2
- package/dist/esm/{md.transition-6da8f97b.js → md.transition-75b978a8.js} +2 -2
- package/dist/esm/{overlays-a6c5ed23.js → overlays-fb9f8b68.js} +1 -1
- package/dist/esm/{status-tap-b51e6525.js → status-tap-d7b90d63.js} +2 -2
- package/dist/esm-es5/{data-302621c9.js → data-e24ae812.js} +1 -1
- package/dist/esm-es5/{index-e2539bac.js → index-3ee2dbd5.js} +1 -1
- package/dist/esm-es5/{index-6665a73d.js → index-7981a992.js} +1 -1
- package/dist/esm-es5/index-f438077f.js +4 -0
- package/dist/esm-es5/{index-68373335.js → index-fe70a837.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{input-shims-263e9d5f.js → input-shims-4ceed1d8.js} +1 -1
- package/dist/esm-es5/{input.utils-10798a99.js → input.utils-8b9046b7.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-button_2.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-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.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-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-popover.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-select-modal.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.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/{ios.transition-a2481ace.js → ios.transition-b8b60b46.js} +1 -1
- package/dist/esm-es5/{md.transition-6da8f97b.js → md.transition-75b978a8.js} +1 -1
- package/dist/esm-es5/{overlays-a6c5ed23.js → overlays-fb9f8b68.js} +1 -1
- package/dist/esm-es5/{status-tap-b51e6525.js → status-tap-d7b90d63.js} +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-bafe4dae.entry.js → p-0176e46f.entry.js} +1 -1
- package/dist/ionic/p-053e4c10.js +4 -0
- package/dist/ionic/{p-d06b9b0f.system.entry.js → p-05e6ae38.system.entry.js} +1 -1
- package/dist/ionic/{p-71de32fa.js → p-061a7fc7.js} +1 -1
- package/dist/ionic/{p-17979cab.system.entry.js → p-11dab837.system.entry.js} +1 -1
- package/dist/ionic/{p-eea40c96.entry.js → p-12614d54.entry.js} +1 -1
- package/dist/ionic/{p-8f1976b3.system.entry.js → p-14100bae.system.entry.js} +1 -1
- package/dist/ionic/{p-cfde2b20.system.entry.js → p-16844125.system.entry.js} +2 -2
- package/dist/ionic/{p-9aa70fd5.entry.js → p-1848b7c3.entry.js} +1 -1
- package/dist/ionic/{p-b78d9e04.entry.js → p-22656e0c.entry.js} +1 -1
- package/dist/ionic/{p-8860c530.entry.js → p-235d368d.entry.js} +1 -1
- package/dist/ionic/{p-f9fa4b82.system.js → p-2685241d.system.js} +1 -1
- package/dist/ionic/{p-095c7374.entry.js → p-281c32d3.entry.js} +1 -1
- package/dist/ionic/{p-6aad4971.js → p-281d022a.js} +1 -1
- package/dist/ionic/{p-db014aa1.entry.js → p-2dfd125c.entry.js} +1 -1
- package/dist/ionic/{p-69fd3f83.system.js → p-32a0756f.system.js} +1 -1
- package/dist/ionic/{p-8f42868c.system.entry.js → p-32cdf2de.system.entry.js} +1 -1
- package/dist/ionic/p-36cfa9e8.system.js +4 -0
- package/dist/ionic/{p-8cae36b5.system.entry.js → p-3723b544.system.entry.js} +1 -1
- package/dist/ionic/{p-88b88159.system.entry.js → p-3d98fc29.system.entry.js} +1 -1
- package/dist/ionic/{p-fefd0960.entry.js → p-3ee33601.entry.js} +1 -1
- package/dist/ionic/{p-dd23a2f5.entry.js → p-457509cd.entry.js} +1 -1
- package/dist/ionic/{p-a359fb7d.system.js → p-4748aa16.system.js} +1 -1
- package/dist/ionic/{p-fa86492c.entry.js → p-4a019528.entry.js} +1 -1
- package/dist/ionic/{p-c3b9d5c1.entry.js → p-4bf48f96.entry.js} +1 -1
- package/dist/ionic/{p-0aaadcda.system.entry.js → p-56bab0a5.system.entry.js} +1 -1
- package/dist/ionic/{p-2b008a3c.entry.js → p-5c906a14.entry.js} +1 -1
- package/dist/ionic/{p-debaf54b.entry.js → p-616f888a.entry.js} +1 -1
- package/dist/ionic/p-6181e1c3.js +4 -0
- package/dist/ionic/{p-7c5877de.entry.js → p-61f2de6f.entry.js} +1 -1
- package/dist/ionic/{p-42a8be6b.system.entry.js → p-624b0ee3.system.entry.js} +1 -1
- package/dist/ionic/{p-ff3ea028.system.js → p-68609395.system.js} +1 -1
- package/dist/ionic/{p-ab7377b4.system.entry.js → p-68dcebd9.system.entry.js} +1 -1
- package/dist/ionic/{p-850e8863.entry.js → p-783865ab.entry.js} +1 -1
- package/dist/ionic/{p-f5fe94d8.js → p-78574140.js} +1 -1
- package/dist/ionic/{p-4eb98234.entry.js → p-7e0ed182.entry.js} +1 -1
- package/dist/ionic/{p-776c94bd.js → p-85c82728.js} +1 -1
- package/dist/ionic/{p-baade1b9.system.entry.js → p-8a2080c8.system.entry.js} +1 -1
- package/dist/ionic/{p-4b204190.system.entry.js → p-8bdb12a6.system.entry.js} +1 -1
- package/dist/ionic/{p-03b2fe79.entry.js → p-8c54309e.entry.js} +1 -1
- package/dist/ionic/{p-76084ccf.system.js → p-8dfe9d69.system.js} +1 -1
- package/dist/ionic/{p-6415cf4e.entry.js → p-8e86ffce.entry.js} +1 -1
- package/dist/ionic/{p-627f572f.system.entry.js → p-96ff4d01.system.entry.js} +1 -1
- package/dist/ionic/{p-202ca950.js → p-a243b90c.js} +1 -1
- package/dist/ionic/{p-60ebdc35.system.entry.js → p-a37fd0d0.system.entry.js} +1 -1
- package/dist/ionic/{p-41b6c2c4.system.js → p-a59e8fd6.system.js} +1 -1
- package/dist/ionic/{p-b51a5ac0.system.entry.js → p-a856757d.system.entry.js} +1 -1
- package/dist/ionic/{p-06c7482c.system.entry.js → p-aa81c2ba.system.entry.js} +1 -1
- package/dist/ionic/p-aa8c1b2f.system.js +4 -0
- package/dist/ionic/{p-f6f59bef.system.js → p-b2a242bd.system.js} +1 -1
- package/dist/ionic/{p-9372d499.system.entry.js → p-b677558c.system.entry.js} +1 -1
- package/dist/ionic/p-bf64af90.system.js +1 -1
- package/dist/ionic/p-c1dd88dd.entry.js +4 -0
- package/dist/ionic/p-c88783e6.js +4 -0
- package/dist/ionic/p-ce371c44.entry.js +4 -0
- package/dist/ionic/{p-f5920715.entry.js → p-d2168294.entry.js} +1 -1
- package/dist/ionic/{p-76019099.system.js → p-d3a54968.system.js} +1 -1
- package/dist/ionic/{p-dc185cd9.entry.js → p-d83a61be.entry.js} +1 -1
- package/dist/ionic/{p-d896c3c5.system.js → p-d8de0a14.system.js} +1 -1
- package/dist/ionic/{p-a24e40c6.system.entry.js → p-d9bf6f6f.system.entry.js} +1 -1
- package/dist/ionic/{p-1480802e.js → p-d9f64fb5.js} +1 -1
- package/dist/ionic/{p-8b342516.system.entry.js → p-de46ce9a.system.entry.js} +1 -1
- package/dist/ionic/{p-df40a7d3.entry.js → p-df9d4b4a.entry.js} +1 -1
- package/dist/ionic/{p-b32e4409.system.entry.js → p-e1765627.system.entry.js} +1 -1
- package/dist/ionic/{p-089363d0.js → p-eb9c5d61.js} +1 -1
- package/dist/ionic/{p-033dd7ee.system.entry.js → p-ec70313c.system.entry.js} +1 -1
- package/dist/ionic/{p-b2a49640.js → p-ec9d3e18.js} +1 -1
- package/dist/ionic/{p-b7b29b46.system.entry.js → p-f13019e9.system.entry.js} +2 -2
- package/dist/ionic/p-f56dfbf7.system.js +4 -0
- package/dist/ionic/{p-f8934a8c.system.entry.js → p-f92b151c.system.entry.js} +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/index-0d85d3fc.js +0 -4
- package/dist/ionic/p-0cf84eb2.system.js +0 -4
- package/dist/ionic/p-423127b1.entry.js +0 -4
- package/dist/ionic/p-4b578b82.entry.js +0 -4
- package/dist/ionic/p-5e58e425.system.js +0 -4
- package/dist/ionic/p-5ee674ed.js +0 -4
- package/dist/ionic/p-9956cc69.js +0 -4
- package/dist/ionic/p-a98198d2.js +0 -4
- package/dist/ionic/p-e0fb7218.system.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,c as i,h as s,f as e,e as o}from"./p-66a5d6a8.js";import{g as n}from"./p-2408c236.js";import{n as r,s as a}from"./p-ece78e7b.js";import{b as h,c}from"./p-597ff9af.js";import{l as d,t as l,s as u,d as v,b as f,c as m}from"./p-b2a49640.js";import{a as p}from"./p-b9fa7882.js";import"./p-71de32fa.js";class w{constructor(t,i){this.component=t,this.params=i,this.state=1}async init(t){if(this.state=2,!this.element){const i=this.component;this.element=await p(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)}}_destroy(){r(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const b=(t,i,s)=>!!t&&t.component===i&&a(t.params,s),g=(t,i)=>t?t instanceof w?t:new w(t,i):null,y=class{constructor(s){t(this,s),this.ionNavWillLoad=i(this,"ionNavWillLoad",7),this.ionNavWillChange=i(this,"ionNavWillChange",3),this.ionNavDidChange=i(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const t=h(this);this.swipeGesture=c.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await import("./p-c63d8dc1.js")).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)d(t.element,v),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,i,s,e){return this.insert(-1,t,i,s,e)}insert(t,i,s,e,o){return this.insertPages(t,[{component:i,componentProps:s}],e,o)}insertPages(t,i,s,e){return this.queueTrns({insertStart:t,insertViews:i,opts:s},e)}pop(t,i){return this.removeIndex(-1,1,t,i)}popTo(t,i,s){const e={removeStart:-1,removeCount:-1,opts:i};return"object"==typeof t&&t.component?(e.removeView=t,e.removeStart=1):"number"==typeof t&&(e.removeStart=t+1),this.queueTrns(e,s)}popToRoot(t,i){return this.removeIndex(1,-1,t,i)}removeIndex(t,i=1,s,e){return this.queueTrns({removeStart:t,removeCount:i,opts:s},e)}setRoot(t,i,s,e){return this.setPages([{component:t,componentProps:i}],s,e)}setPages(t,i,s){return null!=i||(i={}),!0!==i.animated&&(i.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},s)}setRouteId(t,i,s,e){const o=this.getActiveSync();if(b(o,t,i))return Promise.resolve({changed:!1,element:o.element});let n;const r=new Promise((t=>n=t));let a;const h={updateURL:!1,viewIsReady:t=>{let i;const s=new Promise((t=>i=t));return n({changed:!0,element:t,markVisible:async()=>{i(),await a}}),s}};if("root"===s)a=this.setRoot(t,i,h);else{const o=this.views.find((s=>b(s,t,i)));o?a=this.popTo(o,Object.assign(Object.assign({},h),{direction:"back",animationBuilder:e})):"forward"===s?a=this.push(t,i,Object.assign(Object.assign({},h),{animationBuilder:e})):"back"===s&&(a=this.setRoot(t,i,Object.assign(Object.assign({},h),{direction:"back",animated:!0,animationBuilder:e})))}return r}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}async getLength(){return Promise.resolve(this.views.length)}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!(!t||!this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const i=this.views,s=i.indexOf(t);return s>0?i[s-1]:void 0}async queueTrns(t,i){var s,e;if(this.isTransitioning&&(null===(s=t.opts)||void 0===s?void 0:s.skipIfBusy))return!1;const o=new Promise(((i,s)=>{t.resolve=i,t.reject=s}));if(t.done=i,t.opts&&!1!==t.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");if(i){const s=await i.canTransition();if(!1===s)return!1;if("string"==typeof s)return i.push(s,t.opts.direction||"back"),!1}}return 0===(null===(e=t.insertViews)||void 0===e?void 0:e.length)&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),o}success(t,i){if(this.destroyed)this.fireError("nav controller was destroyed",i);else if(i.done&&i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),i.resolve(t.hasCompleted),!1!==i.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");i&&i.navChanged("back"===t.direction?"back":"forward")}}failed(t,i){this.destroyed?this.fireError("nav controller was destroyed",i):(this.transInstr.length=0,this.fireError(t,i))}fireError(t,i){i.done&&i.done(!1,!1,t),i.reject&&!this.destroyed?i.reject(t):i.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return!!t&&(this.runTransition(t),!0)}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const i=this.getActiveSync(),s=this.getEnteringView(t,i);if(!i&&!s)throw new Error("no views in the stack to be removed");s&&1===s.state&&await s.init(this.el),this.postViewInit(s,i,t);const e=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&s!==i;let o;e&&t.opts&&i&&("back"===t.opts.direction&&(t.opts.animationBuilder=t.opts.animationBuilder||(null==s?void 0:s.animationBuilder)),i.animationBuilder=t.opts.animationBuilder),o=e?await this.transition(s,i,t):{hasCompleted:!0,requiresTransition:!1},this.success(o,t),this.ionNavDidChange.emit()}catch(i){this.failed(i,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var i,s,e;const o=this.views.length;if(null!==(i=t.opts)&&void 0!==i||(t.opts={}),null!==(s=(e=t.opts).delegate)&&void 0!==s||(e.delegate=this.delegate),void 0!==t.removeView){r(void 0!==t.removeStart,"removeView needs removeStart"),r(void 0!==t.removeCount,"removeView needs removeCount");const i=this.views.indexOf(t.removeView);if(i<0)throw new Error("removeView was not found");t.removeStart+=i}void 0!==t.removeStart&&(t.removeStart<0&&(t.removeStart=o-1),t.removeCount<0&&(t.removeCount=o-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===o),t.insertViews&&((t.insertStart<0||t.insertStart>o)&&(t.insertStart=o),t.enteringRequiresTransition=t.insertStart===o);const n=t.insertViews;if(!n)return;r(n.length>0,"length can not be zero");const a=n.map((t=>t instanceof w?t:"component"in t?g(t.component,null===t.componentProps?void 0:t.componentProps):g(t,void 0))).filter((t=>null!==t));if(0===a.length)throw new Error("invalid views to insert");for(const i of a){i.delegate=t.opts.delegate;const s=i.nav;if(s&&s!==this)throw new Error("inserted view was already inserted");if(3===i.state)throw new Error("inserted view was already destroyed")}t.insertViews=a}getEnteringView(t,i){const s=t.insertViews;if(void 0!==s)return s[s.length-1];const e=t.removeStart;if(void 0!==e){const s=this.views,o=e+t.removeCount;for(let t=s.length-1;t>=0;t--){const n=s[t];if((t<e||t>=o)&&n!==i)return n}}}postViewInit(t,i,s){var e,o,n;r(i||t,"Both leavingView and enteringView are null"),r(s.resolve,"resolve must be valid"),r(s.reject,"reject must be valid");const a=s.opts,{insertViews:h,removeStart:c,removeCount:l}=s;let u;if(void 0!==c&&void 0!==l){r(c>=0,"removeStart can not be negative"),r(l>=0,"removeCount can not be negative"),u=[];for(let s=c;s<c+l;s++){const e=this.views[s];void 0!==e&&e!==t&&e!==i&&u.push(e)}null!==(e=a.direction)&&void 0!==e||(a.direction="back")}const p=this.views.length+(null!==(o=null==h?void 0:h.length)&&void 0!==o?o:0)-(null!=l?l:0);if(r(p>=0,"final balance can not be negative"),0===p)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(h){let t=s.insertStart;for(const i of h)this.insertViewAt(i,t),t++;s.enteringRequiresTransition&&(null!==(n=a.direction)&&void 0!==n||(a.direction="forward"))}if(u&&u.length>0){for(const t of u)d(t.element,f),d(t.element,m),d(t.element,v);for(const t of u)this.destroyView(t)}}async transition(t,i,s){const e=s.opts,o=e.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.sbAni=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0,n=h(this),r=t.element,a=i&&i.element,d=Object.assign(Object.assign({mode:n,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:o,animated:this.animated&&c.getBoolean("animated",!0),enteringEl:r,leavingEl:a},e),{animationBuilder:e.animationBuilder||this.animation||c.get("navAnimation")}),{hasCompleted:u}=await l(d);return this.transitionFinish(u,t,i,e)}transitionFinish(t,i,s,e){const o=t?i:s;return o&&this.unmountInactiveViews(o),{hasCompleted:t,requiresTransition:!0,enteringView:i,leavingView:s,direction:e.direction}}insertViewAt(t,i){const s=this.views,e=s.indexOf(t);e>-1?(r(t.nav===this,"view is not part of the nav"),s.splice(e,1),s.splice(i,0,t)):(r(!t.nav,"nav is used"),t.nav=this,s.splice(i,0,t))}removeView(t){r(2===t.state||3===t.state,"view state should be loaded or destroyed");const i=this.views,s=i.indexOf(t);r(s>-1,"view must be part of the stack"),s>=0&&i.splice(s,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const i=this.views,s=i.indexOf(t);for(let t=i.length-1;t>=0;t--){const e=i[t],o=e.element;o&&(t>s?(d(o,v),this.destroyView(e)):t<s&&u(o,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&0===this.transInstr.length&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(t){this.sbAni&&this.sbAni.progressStep(t)}onEnd(t,i,s){if(this.sbAni){this.sbAni.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0});let e=t?-.001:.001;t?e+=n([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),e+=n([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.sbAni.progressEnd(t?1:0,e,s)}else this.gestureOrAnimationInProgress=!1}render(){return s("slot",{key:"71e9b5d07fc90ca5534197a63a003a4154aabd59"})}get el(){return e(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};y.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";const k=class{constructor(i){t(this,i),this.onClick=()=>((t,i,s,e,o)=>{const n=this.el.closest("ion-nav");if(n)if("forward"===i){if(void 0!==s)return n.push(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("root"===i){if(void 0!==s)return n.setRoot(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("back"===i)return n.pop({skipIfBusy:!0,animationBuilder:o});return Promise.resolve(!1)})(0,this.routerDirection,this.component,this.componentProps,this.routerAnimation),this.component=void 0,this.componentProps=void 0,this.routerDirection="forward",this.routerAnimation=void 0}render(){return s(o,{key:"9ba170d1b10e08e8a6b5e6a30d363871d455a0a9",onClick:this.onClick})}get el(){return e(this)}};export{y as ion_nav,k as ion_nav_link}
|
|
4
|
+
import{r as t,c as i,h as s,f as e,e as o}from"./p-66a5d6a8.js";import{g as n}from"./p-2408c236.js";import{n as r,s as a}from"./p-ece78e7b.js";import{b as h,c}from"./p-597ff9af.js";import{l as d,t as l,s as u,d as v,b as f,c as m}from"./p-ec9d3e18.js";import{a as p}from"./p-b9fa7882.js";import"./p-061a7fc7.js";class w{constructor(t,i){this.component=t,this.params=i,this.state=1}async init(t){if(this.state=2,!this.element){const i=this.component;this.element=await p(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)}}_destroy(){r(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const b=(t,i,s)=>!!t&&t.component===i&&a(t.params,s),g=(t,i)=>t?t instanceof w?t:new w(t,i):null,y=class{constructor(s){t(this,s),this.ionNavWillLoad=i(this,"ionNavWillLoad",7),this.ionNavWillChange=i(this,"ionNavWillChange",3),this.ionNavDidChange=i(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const t=h(this);this.swipeGesture=c.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await import("./p-c63d8dc1.js")).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)d(t.element,v),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,i,s,e){return this.insert(-1,t,i,s,e)}insert(t,i,s,e,o){return this.insertPages(t,[{component:i,componentProps:s}],e,o)}insertPages(t,i,s,e){return this.queueTrns({insertStart:t,insertViews:i,opts:s},e)}pop(t,i){return this.removeIndex(-1,1,t,i)}popTo(t,i,s){const e={removeStart:-1,removeCount:-1,opts:i};return"object"==typeof t&&t.component?(e.removeView=t,e.removeStart=1):"number"==typeof t&&(e.removeStart=t+1),this.queueTrns(e,s)}popToRoot(t,i){return this.removeIndex(1,-1,t,i)}removeIndex(t,i=1,s,e){return this.queueTrns({removeStart:t,removeCount:i,opts:s},e)}setRoot(t,i,s,e){return this.setPages([{component:t,componentProps:i}],s,e)}setPages(t,i,s){return null!=i||(i={}),!0!==i.animated&&(i.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},s)}setRouteId(t,i,s,e){const o=this.getActiveSync();if(b(o,t,i))return Promise.resolve({changed:!1,element:o.element});let n;const r=new Promise((t=>n=t));let a;const h={updateURL:!1,viewIsReady:t=>{let i;const s=new Promise((t=>i=t));return n({changed:!0,element:t,markVisible:async()=>{i(),await a}}),s}};if("root"===s)a=this.setRoot(t,i,h);else{const o=this.views.find((s=>b(s,t,i)));o?a=this.popTo(o,Object.assign(Object.assign({},h),{direction:"back",animationBuilder:e})):"forward"===s?a=this.push(t,i,Object.assign(Object.assign({},h),{animationBuilder:e})):"back"===s&&(a=this.setRoot(t,i,Object.assign(Object.assign({},h),{direction:"back",animated:!0,animationBuilder:e})))}return r}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}async getLength(){return Promise.resolve(this.views.length)}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!(!t||!this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const i=this.views,s=i.indexOf(t);return s>0?i[s-1]:void 0}async queueTrns(t,i){var s,e;if(this.isTransitioning&&(null===(s=t.opts)||void 0===s?void 0:s.skipIfBusy))return!1;const o=new Promise(((i,s)=>{t.resolve=i,t.reject=s}));if(t.done=i,t.opts&&!1!==t.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");if(i){const s=await i.canTransition();if(!1===s)return!1;if("string"==typeof s)return i.push(s,t.opts.direction||"back"),!1}}return 0===(null===(e=t.insertViews)||void 0===e?void 0:e.length)&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),o}success(t,i){if(this.destroyed)this.fireError("nav controller was destroyed",i);else if(i.done&&i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),i.resolve(t.hasCompleted),!1!==i.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");i&&i.navChanged("back"===t.direction?"back":"forward")}}failed(t,i){this.destroyed?this.fireError("nav controller was destroyed",i):(this.transInstr.length=0,this.fireError(t,i))}fireError(t,i){i.done&&i.done(!1,!1,t),i.reject&&!this.destroyed?i.reject(t):i.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return!!t&&(this.runTransition(t),!0)}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const i=this.getActiveSync(),s=this.getEnteringView(t,i);if(!i&&!s)throw new Error("no views in the stack to be removed");s&&1===s.state&&await s.init(this.el),this.postViewInit(s,i,t);const e=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&s!==i;let o;e&&t.opts&&i&&("back"===t.opts.direction&&(t.opts.animationBuilder=t.opts.animationBuilder||(null==s?void 0:s.animationBuilder)),i.animationBuilder=t.opts.animationBuilder),o=e?await this.transition(s,i,t):{hasCompleted:!0,requiresTransition:!1},this.success(o,t),this.ionNavDidChange.emit()}catch(i){this.failed(i,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var i,s,e;const o=this.views.length;if(null!==(i=t.opts)&&void 0!==i||(t.opts={}),null!==(s=(e=t.opts).delegate)&&void 0!==s||(e.delegate=this.delegate),void 0!==t.removeView){r(void 0!==t.removeStart,"removeView needs removeStart"),r(void 0!==t.removeCount,"removeView needs removeCount");const i=this.views.indexOf(t.removeView);if(i<0)throw new Error("removeView was not found");t.removeStart+=i}void 0!==t.removeStart&&(t.removeStart<0&&(t.removeStart=o-1),t.removeCount<0&&(t.removeCount=o-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===o),t.insertViews&&((t.insertStart<0||t.insertStart>o)&&(t.insertStart=o),t.enteringRequiresTransition=t.insertStart===o);const n=t.insertViews;if(!n)return;r(n.length>0,"length can not be zero");const a=n.map((t=>t instanceof w?t:"component"in t?g(t.component,null===t.componentProps?void 0:t.componentProps):g(t,void 0))).filter((t=>null!==t));if(0===a.length)throw new Error("invalid views to insert");for(const i of a){i.delegate=t.opts.delegate;const s=i.nav;if(s&&s!==this)throw new Error("inserted view was already inserted");if(3===i.state)throw new Error("inserted view was already destroyed")}t.insertViews=a}getEnteringView(t,i){const s=t.insertViews;if(void 0!==s)return s[s.length-1];const e=t.removeStart;if(void 0!==e){const s=this.views,o=e+t.removeCount;for(let t=s.length-1;t>=0;t--){const n=s[t];if((t<e||t>=o)&&n!==i)return n}}}postViewInit(t,i,s){var e,o,n;r(i||t,"Both leavingView and enteringView are null"),r(s.resolve,"resolve must be valid"),r(s.reject,"reject must be valid");const a=s.opts,{insertViews:h,removeStart:c,removeCount:l}=s;let u;if(void 0!==c&&void 0!==l){r(c>=0,"removeStart can not be negative"),r(l>=0,"removeCount can not be negative"),u=[];for(let s=c;s<c+l;s++){const e=this.views[s];void 0!==e&&e!==t&&e!==i&&u.push(e)}null!==(e=a.direction)&&void 0!==e||(a.direction="back")}const p=this.views.length+(null!==(o=null==h?void 0:h.length)&&void 0!==o?o:0)-(null!=l?l:0);if(r(p>=0,"final balance can not be negative"),0===p)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(h){let t=s.insertStart;for(const i of h)this.insertViewAt(i,t),t++;s.enteringRequiresTransition&&(null!==(n=a.direction)&&void 0!==n||(a.direction="forward"))}if(u&&u.length>0){for(const t of u)d(t.element,f),d(t.element,m),d(t.element,v);for(const t of u)this.destroyView(t)}}async transition(t,i,s){const e=s.opts,o=e.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.sbAni=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0,n=h(this),r=t.element,a=i&&i.element,d=Object.assign(Object.assign({mode:n,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:o,animated:this.animated&&c.getBoolean("animated",!0),enteringEl:r,leavingEl:a},e),{animationBuilder:e.animationBuilder||this.animation||c.get("navAnimation")}),{hasCompleted:u}=await l(d);return this.transitionFinish(u,t,i,e)}transitionFinish(t,i,s,e){const o=t?i:s;return o&&this.unmountInactiveViews(o),{hasCompleted:t,requiresTransition:!0,enteringView:i,leavingView:s,direction:e.direction}}insertViewAt(t,i){const s=this.views,e=s.indexOf(t);e>-1?(r(t.nav===this,"view is not part of the nav"),s.splice(e,1),s.splice(i,0,t)):(r(!t.nav,"nav is used"),t.nav=this,s.splice(i,0,t))}removeView(t){r(2===t.state||3===t.state,"view state should be loaded or destroyed");const i=this.views,s=i.indexOf(t);r(s>-1,"view must be part of the stack"),s>=0&&i.splice(s,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const i=this.views,s=i.indexOf(t);for(let t=i.length-1;t>=0;t--){const e=i[t],o=e.element;o&&(t>s?(d(o,v),this.destroyView(e)):t<s&&u(o,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&0===this.transInstr.length&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(t){this.sbAni&&this.sbAni.progressStep(t)}onEnd(t,i,s){if(this.sbAni){this.sbAni.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0});let e=t?-.001:.001;t?e+=n([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),e+=n([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.sbAni.progressEnd(t?1:0,e,s)}else this.gestureOrAnimationInProgress=!1}render(){return s("slot",{key:"71e9b5d07fc90ca5534197a63a003a4154aabd59"})}get el(){return e(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};y.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";const k=class{constructor(i){t(this,i),this.onClick=()=>((t,i,s,e,o)=>{const n=this.el.closest("ion-nav");if(n)if("forward"===i){if(void 0!==s)return n.push(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("root"===i){if(void 0!==s)return n.setRoot(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("back"===i)return n.pop({skipIfBusy:!0,animationBuilder:o});return Promise.resolve(!1)})(0,this.routerDirection,this.component,this.componentProps,this.routerAnimation),this.component=void 0,this.componentProps=void 0,this.routerDirection="forward",this.routerAnimation=void 0}render(){return s(o,{key:"9ba170d1b10e08e8a6b5e6a30d363871d455a0a9",onClick:this.onClick})}get el(){return e(this)}};export{y as ion_nav,k as ion_nav_link}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var u=0,t=n.length,a;u<t;u++){if(a||!(u in n)){if(!a)a=Array.prototype.slice.call(n,0,u);a[u]=n[u]}}return r.concat(a||Array.prototype.slice.call(n))};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-76019099.system.js"],(function(r){"use strict";var n;return{setters:[function(r){n=r.p}],execute:function(){r({s:h,u:T});var e=r("c",(function(r,n){return r.month===n.month&&r.day===n.day&&r.year===n.year}));var u=r("i",(function(r,n){return!!(r.year<n.year||r.year===n.year&&r.month<n.month||r.year===n.year&&r.month===n.month&&r.day!==null&&r.day<n.day)}));var t=r("b",(function(r,n){return!!(r.year>n.year||r.year===n.year&&r.month>n.month||r.year===n.year&&r.month===n.month&&r.day!==null&&r.day>n.day)}));var a=r("w",(function(r,e,a){var i=Array.isArray(r)?r:[r];for(var f=0,d=i;f<d.length;f++){var v=d[f];if(e!==undefined&&u(v,e)||a!==undefined&&t(v,a)){n("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(e),"\n")+"Max: ".concat(JSON.stringify(a),"\n")+"Value: ".concat(JSON.stringify(r)));break}}}));var i=function(r){return r%4===0&&r%100!==0||r%400===0};var f=r("L",(function(r,n){if(n!==undefined){return n}var e=new Intl.DateTimeFormat(r,{hour:"numeric"});var u=e.resolvedOptions();if(u.hourCycle!==undefined){return u.hourCycle}var t=new Date("5/18/2021 00:00");var a=e.formatToParts(t);var i=a.find((function(r){return r.type==="hour"}));if(!i){throw new Error("Hour value not found from DateTimeFormat")}switch(i.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}));var d=function(r){return r==="h23"||r==="h24"};var v=r("A",(function(r,n){return r===4||r===6||r===9||r===11?30:r===2?i(n)?29:28:31}));var o=r("F",(function(r,n){if(n===void 0){n={month:"numeric",year:"numeric"}}var e=new Intl.DateTimeFormat(r,n).formatToParts(new Date);return e[0].type==="month"}));var l=r("H",(function(r){var n=new Intl.DateTimeFormat(r,{hour:"numeric"}).formatToParts(new Date);return n[0].type==="dayPeriod"}));var c=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var m=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var y=r("t",(function(r){if(r===undefined){return}var n=r;if(typeof r==="string"){n=r.replace(/\[|\]|\s/g,"").split(",")}var e;if(Array.isArray(n)){e=n.map((function(r){return parseInt(r,10)})).filter(isFinite)}else{e=[n]}return e}));var s=r("f",(function(r){return{month:parseInt(r.getAttribute("data-month"),10),day:parseInt(r.getAttribute("data-day"),10),year:parseInt(r.getAttribute("data-year"),10),dayOfWeek:parseInt(r.getAttribute("data-day-of-week"),10)}}));function h(r){if(Array.isArray(r)){var e=[];for(var u=0,t=r;u<t.length;u++){var a=t[u];var i=h(a);if(!i){return undefined}e.push(i)}return e}var f=null;if(r!=null&&r!==""){f=m.exec(r);if(f){f.unshift(undefined,undefined);f[2]=f[3]=undefined}else{f=c.exec(r)}}if(f===null){n("Unable to parse date string: ".concat(r,". Please provide a valid ISO 8601 datetime string."));return undefined}for(var d=1;d<8;d++){f[d]=f[d]!==undefined?parseInt(f[d],10):undefined}return{year:f[1],month:f[2],day:f[3],hour:f[4],minute:f[5],ampm:f[4]<12?"am":"pm"}}var w=r("P",(function(r,n,e){if(n&&u(r,n)){return n}else if(e&&t(r,e)){return e}return r}));var p=r("Q",(function(r){return r>=12?"pm":"am"}));var O=r("r",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;var d=a!==null&&a!==void 0?a:n.year;var o=u!==null&&u!==void 0?u:12;return{month:o,day:t!==null&&t!==void 0?t:v(o,d),year:d,hour:i!==null&&i!==void 0?i:23,minute:f!==null&&f!==void 0?f:59}}));var b=r("q",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;return{month:u!==null&&u!==void 0?u:1,day:t!==null&&t!==void 0?t:1,year:a!==null&&a!==void 0?a:n.year,hour:i!==null&&i!==void 0?i:0,minute:f!==null&&f!==void 0?f:0}}));var I=function(r){return("0"+(r!==undefined?Math.abs(r):"0")).slice(-2)};var j=function(r){return("000"+(r!==undefined?Math.abs(r):"0")).slice(-4)};function T(r){if(Array.isArray(r)){return r.map((function(r){return T(r)}))}var n="";if(r.year!==undefined){n=j(r.year);if(r.month!==undefined){n+="-"+I(r.month);if(r.day!==undefined){n+="-"+I(r.day);if(r.hour!==undefined){n+="T".concat(I(r.hour),":").concat(I(r.minute),":00")}}}}else if(r.hour!==undefined){n=I(r.hour)+":"+I(r.minute)}return n}var D=function(r,n){if(n===undefined){return r}if(n==="am"){if(r===12){return 0}return r}if(r===12){return 12}return r+12};var A=r("l",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return C(r,n)}));var _=r("k",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return U(r,6-n)}));var x=r("n",(function(r){return U(r,1)}));var M=r("m",(function(r){return C(r,1)}));var Z=r("o",(function(r){return C(r,7)}));var k=r("p",(function(r){return U(r,7)}));var C=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};a.day=u-n;if(a.day<1){a.month-=1}if(a.month<1){a.month=12;a.year-=1}if(a.day<1){var i=v(a.month,a.year);a.day=i+a.day}return a};var U=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};var i=v(e,t);a.day=u+n;if(a.day>i){a.day-=i;a.month+=1}if(a.month>12){a.month=1;a.year+=1}return a};var g=r("d",(function(r){var n=r.month===1?12:r.month-1;var e=r.month===1?r.year-1:r.year;var u=v(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var E=r("e",(function(r){var n=r.month===12?1:r.month+1;var e=r.month===12?r.year+1:r.year;var u=v(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var N=function(r,n){var e=r.month;var u=r.year+n;var t=v(e,u);var a=t<r.day?t:r.day;return{month:e,year:u,day:a}};var G=r("j",(function(r){return N(r,-1)}));var P=r("h",(function(r){return N(r,1)}));var S=function(r,n,e){if(n){return r}return D(r,e)};var F=r("R",(function(r,n){var e=r.ampm,u=r.hour;var t=u;if(e==="am"&&n==="pm"){t=D(t,"pm")}else if(e==="pm"&&n==="am"){t=Math.abs(t-12)}return t}));var J=r("v",(function(r,n,u){var t=r.month,a=r.day,i=r.year;var f=w(Object.assign({},r),n,u);var d=v(t,i);if(a!==null&&d<a){f.day=d}if(n!==undefined&&e(f,n)){if(f.hour!==undefined&&n.hour!==undefined){if(f.hour<n.hour){f.hour=n.hour;f.minute=n.minute}else if(f.hour===n.hour&&f.minute!==undefined&&n.minute!==undefined&&f.minute<n.minute){f.minute=n.minute}}}if(u!==undefined&&e(r,u)){if(f.hour!==undefined&&u.hour!==undefined){if(f.hour>u.hour){f.hour=u.hour;f.minute=u.minute}else if(f.hour===u.hour&&f.minute!==undefined&&u.minute!==undefined&&f.minute>u.minute){f.minute=u.minute}}}return f}));var W=r("y",(function(r){var n=r.refParts,a=r.monthValues,i=r.dayValues,f=r.yearValues,d=r.hourValues,v=r.minuteValues,o=r.minParts,l=r.maxParts;var c=n.hour,m=n.minute,y=n.day,s=n.month,h=n.year;var w=Object.assign(Object.assign({},n),{dayOfWeek:undefined});if(f!==undefined){var O=f.filter((function(r){if(o!==undefined&&r<o.year){return false}if(l!==undefined&&r>l.year){return false}return true}));w.year=H(h,O)}if(a!==undefined){var b=a.filter((function(r){if(o!==undefined&&w.year===o.year&&r<o.month){return false}if(l!==undefined&&w.year===l.year&&r>l.month){return false}return true}));w.month=H(s,b)}if(y!==null&&i!==undefined){var I=i.filter((function(r){if(o!==undefined&&u(Object.assign(Object.assign({},w),{day:r}),o)){return false}if(l!==undefined&&t(Object.assign(Object.assign({},w),{day:r}),l)){return false}return true}));w.day=H(y,I)}if(c!==undefined&&d!==undefined){var j=d.filter((function(r){if((o===null||o===void 0?void 0:o.hour)!==undefined&&e(w,o)&&r<o.hour){return false}if((l===null||l===void 0?void 0:l.hour)!==undefined&&e(w,l)&&r>l.hour){return false}return true}));w.hour=H(c,j);w.ampm=p(w.hour)}if(m!==undefined&&v!==undefined){var T=v.filter((function(r){if((o===null||o===void 0?void 0:o.minute)!==undefined&&e(w,o)&&w.hour===o.hour&&r<o.minute){return false}if((l===null||l===void 0?void 0:l.minute)!==undefined&&e(w,l)&&w.hour===l.hour&&r>l.minute){return false}return true}));w.minute=H(m,T)}return w}));var H=function(r,n){var e=n[0];var u=Math.abs(e-r);for(var t=1;t<n.length;t++){var a=n[t];var i=Math.abs(a-r);if(i<u){e=a;u=i}}return e};var R=function(r){if(r===undefined){return""}return r.toUpperCase()};var $=function(r){return Object.assign(Object.assign({},r),{timeZone:"UTC",timeZoneName:undefined})};var q=r("M",(function(r,n,e,u){if(u===void 0){u={hour:"numeric",minute:"numeric"}}var t={hour:n.hour,minute:n.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}return new Intl.DateTimeFormat(r,Object.assign(Object.assign({},$(u)),{hourCycle:e})).format(new Date(T(Object.assign({year:2023,day:1,month:1},t))+"Z"))}));var z=function(r){var n=r.toString();if(n.length>1){return n}return"0".concat(n)};var B=function(r,n){if(r===0){switch(n){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}var e=d(n);if(e){return z(r)}return r.toString()};var K=r("g",(function(r,n,e){if(e.day===null){return null}var u=X(e);var t=new Intl.DateTimeFormat(r,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(u);return n?"Today, ".concat(t):t}));var L=r("J",(function(r,n){var e=X(n);return new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:"UTC"}).format(e)}));var Q=r("a",(function(r,n){return rr(r,n,{day:"numeric"}).find((function(r){return r.type==="day"})).value}));var V=function(r,n){return Y(r,n,{year:"numeric"})};var X=function(r){var n,e,u;var t=r.hour!==undefined&&r.minute!==undefined?" ".concat(r.hour,":").concat(r.minute):"";return new Date("".concat((n=r.month)!==null&&n!==void 0?n:1,"/").concat((e=r.day)!==null&&e!==void 0?e:1,"/").concat((u=r.year)!==null&&u!==void 0?u:2023).concat(t," GMT+0000"))};var Y=r("N",(function(r,n,e){var u=X(n);return nr(r,$(e)).format(u)}));var rr=function(r,n,e){var u=X(n);return nr(r,e).formatToParts(u)};var nr=function(r,n){return new Intl.DateTimeFormat(r,Object.assign(Object.assign({},n),{timeZone:"UTC"}))};var er=function(r){if("RelativeTimeFormat"in Intl){var n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(0,"day");return n.charAt(0).toUpperCase()+n.slice(1)}else{return"Today"}};var ur=function(r){var n=r.getTimezoneOffset();r.setMinutes(r.getMinutes()-n);return r};var tr=ur(new Date("2022T01:00"));var ar=ur(new Date("2022T13:00"));var ir=function(r,n){var e=n==="am"?tr:ar;var u=new Intl.DateTimeFormat(r,{hour:"numeric",timeZone:"UTC"}).formatToParts(e).find((function(r){return r.type==="dayPeriod"}));if(u){return u.value}return R(n)};var fr=r("O",(function(r){return Array.isArray(r)?r.join(","):r}));var dr=r("x",(function(){return ur(new Date).toISOString()}));var vr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59];var or=[0,1,2,3,4,5,6,7,8,9,10,11];var lr=[0,1,2,3,4,5,6,7,8,9,10,11];var cr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];var mr=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0];var yr=r("I",(function(r,n,e){if(e===void 0){e=0}var u=n==="ios"?"short":"narrow";var t=new Intl.DateTimeFormat(r,{weekday:u});var a=new Date("11/01/2020");var i=[];for(var f=e;f<e+7;f++){var d=new Date(a);d.setDate(d.getDate()+f);i.push(t.format(d))}return i}));var sr=r("K",(function(r,n,e){var u=v(r,n);var t=new Date("".concat(r,"/1/").concat(n)).getDay();var a=t>=e?t-(e+1):6-(e-t);var i=[];for(var f=1;f<=u;f++){i.push({day:f,dayOfWeek:(a+f)%7})}for(var f=0;f<=a;f++){i=__spreadArray([{day:null,dayOfWeek:null}],i,true)}return i}));var hr=function(r){switch(r){case"h11":return or;case"h12":return lr;case"h23":return cr;case"h24":return mr;default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}};var wr=function(r,n,a,i,v,o,l){if(a===void 0){a="h12"}var c=f(r,a);var m=d(c);var y=hr(c);var s=vr;var h=true;var w=true;if(o){y=y.filter((function(r){return o.includes(r)}))}if(l){s=s.filter((function(r){return l.includes(r)}))}if(i){if(e(n,i)){if(i.hour!==undefined){y=y.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(m?r:e)>=i.hour}));h=i.hour<13}if(i.minute!==undefined){var p=false;if(i.hour!==undefined&&n.hour!==undefined){if(n.hour>i.hour){p=true}}s=s.filter((function(r){if(p){return true}return r>=i.minute}))}}else if(u(n,i)){y=[];s=[];h=w=false}}if(v){if(e(n,v)){if(v.hour!==undefined){y=y.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(m?r:e)<=v.hour}));w=v.hour>=12}if(v.minute!==undefined&&n.hour===v.hour){s=s.filter((function(r){return r<=v.minute}))}}else if(t(n,v)){y=[];s=[];h=w=false}}return{hours:y,minutes:s,am:h,pm:w}};var pr=r("z",(function(r,n){var e={month:r.month,year:r.year,day:r.day};if(n!==undefined&&(r.month!==n.month||r.year!==n.year)){var t={month:n.month,year:n.year,day:n.day};var a=u(t,e);return a?[t,e,E(r)]:[g(r),e,t]}return[g(r),e,E(r)]}));var Or=r("C",(function(r,n,e,u,t,a){if(a===void 0){a={month:"long"}}var i=n.year;var f=[];if(t!==undefined){var d=t;if((u===null||u===void 0?void 0:u.month)!==undefined){d=d.filter((function(r){return r<=u.month}))}if((e===null||e===void 0?void 0:e.month)!==undefined){d=d.filter((function(r){return r>=e.month}))}d.forEach((function(n){var e=new Date("".concat(n,"/1/").concat(i," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);f.push({text:u,value:n})}))}else{var v=u&&u.year===i?u.month:12;var o=e&&e.year===i?e.month:1;for(var l=o;l<=v;l++){var c=new Date("".concat(l,"/1/").concat(i," GMT+0000"));var m=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(c);f.push({text:m,value:l})}}return f}));var br=r("D",(function(r,n,e,u,t,a){if(a===void 0){a={day:"numeric"}}var i=n.month,f=n.year;var d=[];var o=v(i,f);var l=(u===null||u===void 0?void 0:u.day)!==null&&(u===null||u===void 0?void 0:u.day)!==undefined&&u.year===f&&u.month===i?u.day:o;var c=(e===null||e===void 0?void 0:e.day)!==null&&(e===null||e===void 0?void 0:e.day)!==undefined&&e.year===f&&e.month===i?e.day:1;if(t!==undefined){var m=t;m=m.filter((function(r){return r>=c&&r<=l}));m.forEach((function(n){var e=new Date("".concat(i,"/").concat(n,"/").concat(f," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);d.push({text:u,value:n})}))}else{for(var y=c;y<=l;y++){var s=new Date("".concat(i,"/").concat(y,"/").concat(f," GMT+0000"));var h=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(s);d.push({text:h,value:y})}}return d}));var Ir=r("E",(function(r,n,e,u,t){var a,i;var f=[];if(t!==undefined){f=t;if((u===null||u===void 0?void 0:u.year)!==undefined){f=f.filter((function(r){return r<=u.year}))}if((e===null||e===void 0?void 0:e.year)!==undefined){f=f.filter((function(r){return r>=e.year}))}}else{var d=n.year;var v=(a=u===null||u===void 0?void 0:u.year)!==null&&a!==void 0?a:d;var o=(i=e===null||e===void 0?void 0:e.year)!==null&&i!==void 0?i:d-100;for(var l=o;l<=v;l++){f.push(l)}}return f.map((function(e){return{text:V(r,{year:e,month:n.month,day:n.day}),value:e}}))}));var jr=function(r,n){if(r.month===n.month&&r.year===n.year){return[r]}return __spreadArray([r],jr(E(r),n),true)};var Tr=r("B",(function(r,n,u,t,a,i){var f=[];var d=[];var v=jr(u,t);if(i){v=v.filter((function(r){var n=r.month;return i.includes(n)}))}v.forEach((function(i){var v={month:i.month,day:null,year:i.year};var o=br(r,v,u,t,a,{month:"short",day:"numeric",weekday:"short"});var l=[];var c=[];o.forEach((function(u){var t=e(Object.assign(Object.assign({},v),{day:u.value}),n);c.push({text:t?er(r):u.text,value:"".concat(v.year,"-").concat(v.month,"-").concat(u.value)});l.push({month:v.month,year:v.year,day:u.value})}));d=__spreadArray(__spreadArray([],d,true),l,true);f=__spreadArray(__spreadArray([],f,true),c,true)}));return{parts:d,items:f}}));var Dr=r("G",(function(r,n,e,u,t,a,i){var v=f(r,e);var o=d(v);var l=wr(r,n,v,u,t,a,i),c=l.hours,m=l.minutes,y=l.am,s=l.pm;var h=c.map((function(r){return{text:B(r,v),value:S(r,o,n.ampm)}}));var w=m.map((function(r){return{text:z(r),value:r}}));var p=[];if(y&&!o){p.push({text:ir(r,"am"),value:"am"})}if(s&&!o){p.push({text:ir(r,"pm"),value:"pm"})}return{minutesData:w,hoursData:h,dayPeriodData:p}}))}}}));
|
|
4
|
+
*/System.register(["./p-d3a54968.system.js"],(function(r){"use strict";var n;return{setters:[function(r){n=r.a}],execute:function(){r({s:h,u:T});var e=r("c",(function(r,n){return r.month===n.month&&r.day===n.day&&r.year===n.year}));var u=r("i",(function(r,n){return!!(r.year<n.year||r.year===n.year&&r.month<n.month||r.year===n.year&&r.month===n.month&&r.day!==null&&r.day<n.day)}));var t=r("b",(function(r,n){return!!(r.year>n.year||r.year===n.year&&r.month>n.month||r.year===n.year&&r.month===n.month&&r.day!==null&&r.day>n.day)}));var a=r("w",(function(r,e,a){var i=Array.isArray(r)?r:[r];for(var f=0,d=i;f<d.length;f++){var v=d[f];if(e!==undefined&&u(v,e)||a!==undefined&&t(v,a)){n("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(e),"\n")+"Max: ".concat(JSON.stringify(a),"\n")+"Value: ".concat(JSON.stringify(r)));break}}}));var i=function(r){return r%4===0&&r%100!==0||r%400===0};var f=r("L",(function(r,n){if(n!==undefined){return n}var e=new Intl.DateTimeFormat(r,{hour:"numeric"});var u=e.resolvedOptions();if(u.hourCycle!==undefined){return u.hourCycle}var t=new Date("5/18/2021 00:00");var a=e.formatToParts(t);var i=a.find((function(r){return r.type==="hour"}));if(!i){throw new Error("Hour value not found from DateTimeFormat")}switch(i.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}));var d=function(r){return r==="h23"||r==="h24"};var v=r("A",(function(r,n){return r===4||r===6||r===9||r===11?30:r===2?i(n)?29:28:31}));var o=r("F",(function(r,n){if(n===void 0){n={month:"numeric",year:"numeric"}}var e=new Intl.DateTimeFormat(r,n).formatToParts(new Date);return e[0].type==="month"}));var l=r("H",(function(r){var n=new Intl.DateTimeFormat(r,{hour:"numeric"}).formatToParts(new Date);return n[0].type==="dayPeriod"}));var c=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var m=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var y=r("t",(function(r){if(r===undefined){return}var n=r;if(typeof r==="string"){n=r.replace(/\[|\]|\s/g,"").split(",")}var e;if(Array.isArray(n)){e=n.map((function(r){return parseInt(r,10)})).filter(isFinite)}else{e=[n]}return e}));var s=r("f",(function(r){return{month:parseInt(r.getAttribute("data-month"),10),day:parseInt(r.getAttribute("data-day"),10),year:parseInt(r.getAttribute("data-year"),10),dayOfWeek:parseInt(r.getAttribute("data-day-of-week"),10)}}));function h(r){if(Array.isArray(r)){var e=[];for(var u=0,t=r;u<t.length;u++){var a=t[u];var i=h(a);if(!i){return undefined}e.push(i)}return e}var f=null;if(r!=null&&r!==""){f=m.exec(r);if(f){f.unshift(undefined,undefined);f[2]=f[3]=undefined}else{f=c.exec(r)}}if(f===null){n("Unable to parse date string: ".concat(r,". Please provide a valid ISO 8601 datetime string."));return undefined}for(var d=1;d<8;d++){f[d]=f[d]!==undefined?parseInt(f[d],10):undefined}return{year:f[1],month:f[2],day:f[3],hour:f[4],minute:f[5],ampm:f[4]<12?"am":"pm"}}var w=r("P",(function(r,n,e){if(n&&u(r,n)){return n}else if(e&&t(r,e)){return e}return r}));var p=r("Q",(function(r){return r>=12?"pm":"am"}));var O=r("r",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;var d=a!==null&&a!==void 0?a:n.year;var o=u!==null&&u!==void 0?u:12;return{month:o,day:t!==null&&t!==void 0?t:v(o,d),year:d,hour:i!==null&&i!==void 0?i:23,minute:f!==null&&f!==void 0?f:59}}));var b=r("q",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;return{month:u!==null&&u!==void 0?u:1,day:t!==null&&t!==void 0?t:1,year:a!==null&&a!==void 0?a:n.year,hour:i!==null&&i!==void 0?i:0,minute:f!==null&&f!==void 0?f:0}}));var I=function(r){return("0"+(r!==undefined?Math.abs(r):"0")).slice(-2)};var j=function(r){return("000"+(r!==undefined?Math.abs(r):"0")).slice(-4)};function T(r){if(Array.isArray(r)){return r.map((function(r){return T(r)}))}var n="";if(r.year!==undefined){n=j(r.year);if(r.month!==undefined){n+="-"+I(r.month);if(r.day!==undefined){n+="-"+I(r.day);if(r.hour!==undefined){n+="T".concat(I(r.hour),":").concat(I(r.minute),":00")}}}}else if(r.hour!==undefined){n=I(r.hour)+":"+I(r.minute)}return n}var D=function(r,n){if(n===undefined){return r}if(n==="am"){if(r===12){return 0}return r}if(r===12){return 12}return r+12};var A=r("l",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return C(r,n)}));var _=r("k",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return U(r,6-n)}));var x=r("n",(function(r){return U(r,1)}));var M=r("m",(function(r){return C(r,1)}));var Z=r("o",(function(r){return C(r,7)}));var k=r("p",(function(r){return U(r,7)}));var C=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};a.day=u-n;if(a.day<1){a.month-=1}if(a.month<1){a.month=12;a.year-=1}if(a.day<1){var i=v(a.month,a.year);a.day=i+a.day}return a};var U=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};var i=v(e,t);a.day=u+n;if(a.day>i){a.day-=i;a.month+=1}if(a.month>12){a.month=1;a.year+=1}return a};var g=r("d",(function(r){var n=r.month===1?12:r.month-1;var e=r.month===1?r.year-1:r.year;var u=v(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var E=r("e",(function(r){var n=r.month===12?1:r.month+1;var e=r.month===12?r.year+1:r.year;var u=v(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var N=function(r,n){var e=r.month;var u=r.year+n;var t=v(e,u);var a=t<r.day?t:r.day;return{month:e,year:u,day:a}};var G=r("j",(function(r){return N(r,-1)}));var P=r("h",(function(r){return N(r,1)}));var S=function(r,n,e){if(n){return r}return D(r,e)};var F=r("R",(function(r,n){var e=r.ampm,u=r.hour;var t=u;if(e==="am"&&n==="pm"){t=D(t,"pm")}else if(e==="pm"&&n==="am"){t=Math.abs(t-12)}return t}));var J=r("v",(function(r,n,u){var t=r.month,a=r.day,i=r.year;var f=w(Object.assign({},r),n,u);var d=v(t,i);if(a!==null&&d<a){f.day=d}if(n!==undefined&&e(f,n)){if(f.hour!==undefined&&n.hour!==undefined){if(f.hour<n.hour){f.hour=n.hour;f.minute=n.minute}else if(f.hour===n.hour&&f.minute!==undefined&&n.minute!==undefined&&f.minute<n.minute){f.minute=n.minute}}}if(u!==undefined&&e(r,u)){if(f.hour!==undefined&&u.hour!==undefined){if(f.hour>u.hour){f.hour=u.hour;f.minute=u.minute}else if(f.hour===u.hour&&f.minute!==undefined&&u.minute!==undefined&&f.minute>u.minute){f.minute=u.minute}}}return f}));var W=r("y",(function(r){var n=r.refParts,a=r.monthValues,i=r.dayValues,f=r.yearValues,d=r.hourValues,v=r.minuteValues,o=r.minParts,l=r.maxParts;var c=n.hour,m=n.minute,y=n.day,s=n.month,h=n.year;var w=Object.assign(Object.assign({},n),{dayOfWeek:undefined});if(f!==undefined){var O=f.filter((function(r){if(o!==undefined&&r<o.year){return false}if(l!==undefined&&r>l.year){return false}return true}));w.year=H(h,O)}if(a!==undefined){var b=a.filter((function(r){if(o!==undefined&&w.year===o.year&&r<o.month){return false}if(l!==undefined&&w.year===l.year&&r>l.month){return false}return true}));w.month=H(s,b)}if(y!==null&&i!==undefined){var I=i.filter((function(r){if(o!==undefined&&u(Object.assign(Object.assign({},w),{day:r}),o)){return false}if(l!==undefined&&t(Object.assign(Object.assign({},w),{day:r}),l)){return false}return true}));w.day=H(y,I)}if(c!==undefined&&d!==undefined){var j=d.filter((function(r){if((o===null||o===void 0?void 0:o.hour)!==undefined&&e(w,o)&&r<o.hour){return false}if((l===null||l===void 0?void 0:l.hour)!==undefined&&e(w,l)&&r>l.hour){return false}return true}));w.hour=H(c,j);w.ampm=p(w.hour)}if(m!==undefined&&v!==undefined){var T=v.filter((function(r){if((o===null||o===void 0?void 0:o.minute)!==undefined&&e(w,o)&&w.hour===o.hour&&r<o.minute){return false}if((l===null||l===void 0?void 0:l.minute)!==undefined&&e(w,l)&&w.hour===l.hour&&r>l.minute){return false}return true}));w.minute=H(m,T)}return w}));var H=function(r,n){var e=n[0];var u=Math.abs(e-r);for(var t=1;t<n.length;t++){var a=n[t];var i=Math.abs(a-r);if(i<u){e=a;u=i}}return e};var R=function(r){if(r===undefined){return""}return r.toUpperCase()};var $=function(r){return Object.assign(Object.assign({},r),{timeZone:"UTC",timeZoneName:undefined})};var q=r("M",(function(r,n,e,u){if(u===void 0){u={hour:"numeric",minute:"numeric"}}var t={hour:n.hour,minute:n.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}return new Intl.DateTimeFormat(r,Object.assign(Object.assign({},$(u)),{hourCycle:e})).format(new Date(T(Object.assign({year:2023,day:1,month:1},t))+"Z"))}));var z=function(r){var n=r.toString();if(n.length>1){return n}return"0".concat(n)};var B=function(r,n){if(r===0){switch(n){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}var e=d(n);if(e){return z(r)}return r.toString()};var K=r("g",(function(r,n,e){if(e.day===null){return null}var u=X(e);var t=new Intl.DateTimeFormat(r,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(u);return n?"Today, ".concat(t):t}));var L=r("J",(function(r,n){var e=X(n);return new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:"UTC"}).format(e)}));var Q=r("a",(function(r,n){return rr(r,n,{day:"numeric"}).find((function(r){return r.type==="day"})).value}));var V=function(r,n){return Y(r,n,{year:"numeric"})};var X=function(r){var n,e,u;var t=r.hour!==undefined&&r.minute!==undefined?" ".concat(r.hour,":").concat(r.minute):"";return new Date("".concat((n=r.month)!==null&&n!==void 0?n:1,"/").concat((e=r.day)!==null&&e!==void 0?e:1,"/").concat((u=r.year)!==null&&u!==void 0?u:2023).concat(t," GMT+0000"))};var Y=r("N",(function(r,n,e){var u=X(n);return nr(r,$(e)).format(u)}));var rr=function(r,n,e){var u=X(n);return nr(r,e).formatToParts(u)};var nr=function(r,n){return new Intl.DateTimeFormat(r,Object.assign(Object.assign({},n),{timeZone:"UTC"}))};var er=function(r){if("RelativeTimeFormat"in Intl){var n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(0,"day");return n.charAt(0).toUpperCase()+n.slice(1)}else{return"Today"}};var ur=function(r){var n=r.getTimezoneOffset();r.setMinutes(r.getMinutes()-n);return r};var tr=ur(new Date("2022T01:00"));var ar=ur(new Date("2022T13:00"));var ir=function(r,n){var e=n==="am"?tr:ar;var u=new Intl.DateTimeFormat(r,{hour:"numeric",timeZone:"UTC"}).formatToParts(e).find((function(r){return r.type==="dayPeriod"}));if(u){return u.value}return R(n)};var fr=r("O",(function(r){return Array.isArray(r)?r.join(","):r}));var dr=r("x",(function(){return ur(new Date).toISOString()}));var vr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59];var or=[0,1,2,3,4,5,6,7,8,9,10,11];var lr=[0,1,2,3,4,5,6,7,8,9,10,11];var cr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];var mr=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0];var yr=r("I",(function(r,n,e){if(e===void 0){e=0}var u=n==="ios"?"short":"narrow";var t=new Intl.DateTimeFormat(r,{weekday:u});var a=new Date("11/01/2020");var i=[];for(var f=e;f<e+7;f++){var d=new Date(a);d.setDate(d.getDate()+f);i.push(t.format(d))}return i}));var sr=r("K",(function(r,n,e){var u=v(r,n);var t=new Date("".concat(r,"/1/").concat(n)).getDay();var a=t>=e?t-(e+1):6-(e-t);var i=[];for(var f=1;f<=u;f++){i.push({day:f,dayOfWeek:(a+f)%7})}for(var f=0;f<=a;f++){i=__spreadArray([{day:null,dayOfWeek:null}],i,true)}return i}));var hr=function(r){switch(r){case"h11":return or;case"h12":return lr;case"h23":return cr;case"h24":return mr;default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}};var wr=function(r,n,a,i,v,o,l){if(a===void 0){a="h12"}var c=f(r,a);var m=d(c);var y=hr(c);var s=vr;var h=true;var w=true;if(o){y=y.filter((function(r){return o.includes(r)}))}if(l){s=s.filter((function(r){return l.includes(r)}))}if(i){if(e(n,i)){if(i.hour!==undefined){y=y.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(m?r:e)>=i.hour}));h=i.hour<13}if(i.minute!==undefined){var p=false;if(i.hour!==undefined&&n.hour!==undefined){if(n.hour>i.hour){p=true}}s=s.filter((function(r){if(p){return true}return r>=i.minute}))}}else if(u(n,i)){y=[];s=[];h=w=false}}if(v){if(e(n,v)){if(v.hour!==undefined){y=y.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(m?r:e)<=v.hour}));w=v.hour>=12}if(v.minute!==undefined&&n.hour===v.hour){s=s.filter((function(r){return r<=v.minute}))}}else if(t(n,v)){y=[];s=[];h=w=false}}return{hours:y,minutes:s,am:h,pm:w}};var pr=r("z",(function(r,n){var e={month:r.month,year:r.year,day:r.day};if(n!==undefined&&(r.month!==n.month||r.year!==n.year)){var t={month:n.month,year:n.year,day:n.day};var a=u(t,e);return a?[t,e,E(r)]:[g(r),e,t]}return[g(r),e,E(r)]}));var Or=r("C",(function(r,n,e,u,t,a){if(a===void 0){a={month:"long"}}var i=n.year;var f=[];if(t!==undefined){var d=t;if((u===null||u===void 0?void 0:u.month)!==undefined){d=d.filter((function(r){return r<=u.month}))}if((e===null||e===void 0?void 0:e.month)!==undefined){d=d.filter((function(r){return r>=e.month}))}d.forEach((function(n){var e=new Date("".concat(n,"/1/").concat(i," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);f.push({text:u,value:n})}))}else{var v=u&&u.year===i?u.month:12;var o=e&&e.year===i?e.month:1;for(var l=o;l<=v;l++){var c=new Date("".concat(l,"/1/").concat(i," GMT+0000"));var m=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(c);f.push({text:m,value:l})}}return f}));var br=r("D",(function(r,n,e,u,t,a){if(a===void 0){a={day:"numeric"}}var i=n.month,f=n.year;var d=[];var o=v(i,f);var l=(u===null||u===void 0?void 0:u.day)!==null&&(u===null||u===void 0?void 0:u.day)!==undefined&&u.year===f&&u.month===i?u.day:o;var c=(e===null||e===void 0?void 0:e.day)!==null&&(e===null||e===void 0?void 0:e.day)!==undefined&&e.year===f&&e.month===i?e.day:1;if(t!==undefined){var m=t;m=m.filter((function(r){return r>=c&&r<=l}));m.forEach((function(n){var e=new Date("".concat(i,"/").concat(n,"/").concat(f," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);d.push({text:u,value:n})}))}else{for(var y=c;y<=l;y++){var s=new Date("".concat(i,"/").concat(y,"/").concat(f," GMT+0000"));var h=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(s);d.push({text:h,value:y})}}return d}));var Ir=r("E",(function(r,n,e,u,t){var a,i;var f=[];if(t!==undefined){f=t;if((u===null||u===void 0?void 0:u.year)!==undefined){f=f.filter((function(r){return r<=u.year}))}if((e===null||e===void 0?void 0:e.year)!==undefined){f=f.filter((function(r){return r>=e.year}))}}else{var d=n.year;var v=(a=u===null||u===void 0?void 0:u.year)!==null&&a!==void 0?a:d;var o=(i=e===null||e===void 0?void 0:e.year)!==null&&i!==void 0?i:d-100;for(var l=o;l<=v;l++){f.push(l)}}return f.map((function(e){return{text:V(r,{year:e,month:n.month,day:n.day}),value:e}}))}));var jr=function(r,n){if(r.month===n.month&&r.year===n.year){return[r]}return __spreadArray([r],jr(E(r),n),true)};var Tr=r("B",(function(r,n,u,t,a,i){var f=[];var d=[];var v=jr(u,t);if(i){v=v.filter((function(r){var n=r.month;return i.includes(n)}))}v.forEach((function(i){var v={month:i.month,day:null,year:i.year};var o=br(r,v,u,t,a,{month:"short",day:"numeric",weekday:"short"});var l=[];var c=[];o.forEach((function(u){var t=e(Object.assign(Object.assign({},v),{day:u.value}),n);c.push({text:t?er(r):u.text,value:"".concat(v.year,"-").concat(v.month,"-").concat(u.value)});l.push({month:v.month,year:v.year,day:u.value})}));d=__spreadArray(__spreadArray([],d,true),l,true);f=__spreadArray(__spreadArray([],f,true),c,true)}));return{parts:d,items:f}}));var Dr=r("G",(function(r,n,e,u,t,a,i){var v=f(r,e);var o=d(v);var l=wr(r,n,v,u,t,a,i),c=l.hours,m=l.minutes,y=l.am,s=l.pm;var h=c.map((function(r){return{text:B(r,v),value:S(r,o,n.ampm)}}));var w=m.map((function(r){return{text:z(r),value:r}}));var p=[];if(y&&!o){p.push({text:ir(r,"am"),value:"am"})}if(s&&!o){p.push({text:ir(r,"pm"),value:"pm"})}return{minutesData:w,hoursData:h,dayPeriodData:p}}))}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,r,n,i){function t(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,s){function o(e){try{a(i.next(e))}catch(e){s(e)}}function f(e){try{a(i["throw"](e))}catch(e){s(e)}}function a(e){e.done?n(e.value):t(e.value).then(o,f)}a((i=i.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,t,s,o;return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(e){return function(r){return a([e,r])}}function a(f){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,f[0]&&(n=0)),n)try{if(i=1,t&&(s=f[0]&2?t["return"]:f[0]?t["throw"]||((s=t["return"])&&s.call(t),0):t.next)&&!(s=s.call(t,f[1])).done)return s;if(t=0,s)f=[f[0]&2,s.value];switch(f[0]){case 0:case 1:s=f;break;case 4:n.label++;return{value:f[1],done:false};case 5:n.label++;t=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1];s=f;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(f);break}if(s[2])n.ops.pop();n.trys.pop();continue}f=r.call(e,n)}catch(e){f=[6,e];t=0}finally{i=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-f11a9436.system.js","./p-e673a0a2.system.js","./p-5e58e425.system.js","./p-455cd7cc.system.js","./p-a93873de.system.js","./p-f201b53a.system.js","./p-9146695e.system.js","./p-f233f1e0.system.js","./p-1e955a45.system.js","./p-d8d84afa.system.js","./p-76019099.system.js","./p-8985cdb6.system.js","./p-792919fd.system.js"],(function(e,r){"use strict";var n,i,t,s,o,f,a,h,c,l,u,d,p,g,m,v,b,x,y,w,k,_,j,S,z,Y,P;return{setters:[function(e){n=e.w;i=e.r;t=e.c;s=e.d;o=e.h;f=e.f;a=e.e},function(e){h=e.g},function(e){c=e.I;l=e.b;u=e.p;d=e.g},function(e){p=e.t;g=e.c;m=e.j;v=e.g;b=e.r},function(e){x=e.d;y=e.I},function(e){w=e.b;k=e.c},function(e){_=e.c},function(e){j=e.E;S=e.a},function(e){z=e.h;Y=e.i},function(e){P=e.S},function(){},function(){},function(){}],execute:function(){var M=this;var E=function(e){var r=e.previousElementSibling;var n=r!==null&&r.tagName==="ION-HEADER";return n?"translate":"scale"};var T=function(e,r,n){return e==="scale"?N(r,n):X(r,n)};var D=function(e){var r=e.querySelector("ion-spinner");var n=r.shadowRoot.querySelector("circle");var i=e.querySelector(".spinner-arrow-container");var t=e.querySelector(".arrow-container");var s=t?t.querySelector("ion-icon"):null;var o=_().duration(1e3).easing("ease-out");var f=_().addElement(i).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]);var a=_().addElement(n).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]);var h=_().addElement(r).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(t&&s){var c=_().addElement(t).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]);var l=_().addElement(s).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);o.addAnimation([c,l])}return o.addAnimation([f,a,h])};var N=function(e,r){var n=r.clientHeight;var i=_().addElement(e).keyframes([{offset:0,transform:"scale(0) translateY(-".concat(n,"px)")},{offset:1,transform:"scale(1) translateY(100px)"}]);return D(e).addAnimation([i])};var X=function(e,r){var n=r.clientHeight;var i=_().addElement(e).keyframes([{offset:0,transform:"translateY(-".concat(n,"px)")},{offset:1,transform:"translateY(100px)"}]);return D(e).addAnimation([i])};var H=function(e){return _().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)")};var O=function(e,r){e.style.setProperty("opacity",r.toString())};var L=function(e,r,i){var t=1;n((function(){e.forEach((function(e,n){var s=n*(t/r);var o=t-s;var f=i-s;var a=m(0,f/o,1);e.style.setProperty("opacity",a.toString())}))}))};var C=function(e,r){n((function(){e.style.setProperty("--refreshing-rotation-duration",r>=1?"0.5s":"2s");e.style.setProperty("opacity","1")}))};var I=function(e,r,i){if(i===void 0){i=200}if(!e){return Promise.resolve()}var t=p(e,i);n((function(){e.style.setProperty("transition","".concat(i,"ms all ease-out"));if(r===undefined){e.style.removeProperty("transform")}else{e.style.setProperty("transform","translate3d(0px, ".concat(r,", 0px)"))}}));return t};var R=function(){return navigator.maxTouchPoints>0&&CSS.supports("background: -webkit-named-image(apple-pay-logo-black)")};var A=function(e,r){return __awaiter(M,void 0,void 0,(function(){var n,i,t;return __generator(this,(function(s){switch(s.label){case 0:n=e.querySelector("ion-refresher-content");if(!n){return[2,Promise.resolve(false)]}return[4,new Promise((function(e){return g(n,e)}))];case 1:s.sent();i=e.querySelector("ion-refresher-content .refresher-pulling ion-spinner");t=e.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return[2,i!==null&&t!==null&&(r==="ios"&&R()||r==="md")]}}))}))};var G="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, var(--ion-background-color-step-450, #747577))}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}";var Z=G;var q="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #0054e9)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #0054e9);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec));background:var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff));-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}";var B=q;var F=e("ion_refresher",function(){function e(e){i(this,e);this.ionRefresh=t(this,"ionRefresh",7);this.ionPull=t(this,"ionPull",7);this.ionStart=t(this,"ionStart",7);this.appliedStyles=false;this.didStart=false;this.progress=0;this.pointerDown=false;this.needsCompletion=false;this.didRefresh=false;this.contentFullscreen=false;this.lastVelocityY=0;this.animations=[];this.nativeRefresher=false;this.state=1;this.pullMin=60;this.pullMax=this.pullMin+60;this.closeDuration="280ms";this.snapbackDuration="280ms";this.pullFactor=1;this.disabled=false}e.prototype.disabledChanged=function(){if(this.gesture){this.gesture.enable(!this.disabled)}};e.prototype.checkNativeRefresher=function(){return __awaiter(this,void 0,void 0,(function(){var e,r;return __generator(this,(function(n){switch(n.label){case 0:return[4,A(this.el,w(this))];case 1:e=n.sent();if(e&&!this.nativeRefresher){r=this.el.closest("ion-content");this.setupNativeRefresher(r)}else if(!e){this.destroyNativeRefresher()}return[2]}}))}))};e.prototype.destroyNativeRefresher=function(){if(this.scrollEl&&this.scrollListenerCallback){this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback);this.scrollListenerCallback=undefined}this.nativeRefresher=false};e.prototype.resetNativeRefresher=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:this.state=r;if(!(w(this)==="ios"))return[3,2];return[4,I(e,undefined,300)];case 1:n.sent();return[3,4];case 2:return[4,p(this.el.querySelector(".refresher-refreshing-icon"),200)];case 3:n.sent();n.label=4;case 4:this.didRefresh=false;this.needsCompletion=false;this.pointerDown=false;this.animations.forEach((function(e){return e.destroy()}));this.animations=[];this.progress=0;this.state=1;return[2]}}))}))};e.prototype.setupiOSNativeRefresher=function(e,i){return __awaiter(this,void 0,void 0,(function(){var t,o,f,a;var h=this;return __generator(this,(function(c){switch(c.label){case 0:this.elementToTransform=this.scrollEl;t=e.shadowRoot.querySelectorAll("svg");o=this.scrollEl.clientHeight*.16;f=t.length;n((function(){return t.forEach((function(e){return e.style.setProperty("animation","none")}))}));this.scrollListenerCallback=function(){if(!h.pointerDown&&h.state===1){return}s((function(){var e=h.scrollEl.scrollTop;var r=h.el.clientHeight;if(e>0){if(h.state===8){var s=m(0,e/(r*.5),1);n((function(){return O(i,1-s)}));return}return}if(h.pointerDown){if(!h.didStart){h.didStart=true;h.ionStart.emit()}if(h.pointerDown){h.ionPull.emit()}}var a=h.didStart?30:0;var c=h.progress=m(0,(Math.abs(e)-a)/o,1);var l=h.state===8||c===1;if(l){if(h.pointerDown){C(i,h.lastVelocityY)}if(!h.didRefresh){h.beginRefresh();h.didRefresh=true;x({style:y.Light});if(!h.pointerDown){I(h.elementToTransform,"".concat(r,"px"))}}}else{h.state=2;L(t,f,c)}}))};this.scrollEl.addEventListener("scroll",this.scrollListenerCallback);a=this;return[4,r.import("./p-3e1e14d9.system.js")];case 1:a.gesture=c.sent().createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:function(){h.pointerDown=true;if(!h.didRefresh){I(h.elementToTransform,"0px")}if(o===0){o=h.scrollEl.clientHeight*.16}},onMove:function(e){h.lastVelocityY=e.velocityY},onEnd:function(){h.pointerDown=false;h.didStart=false;if(h.needsCompletion){h.resetNativeRefresher(h.elementToTransform,32);h.needsCompletion=false}else if(h.didRefresh){s((function(){return I(h.elementToTransform,"".concat(h.el.clientHeight,"px"))}))}}});this.disabledChanged();return[2]}}))}))};e.prototype.setupMDNativeRefresher=function(e,i,t){return __awaiter(this,void 0,void 0,(function(){var s,o,f,a;var l=this;return __generator(this,(function(u){switch(u.label){case 0:s=v(i).querySelector("circle");o=this.el.querySelector("ion-refresher-content .refresher-pulling-icon");f=v(t).querySelector("circle");if(s!==null&&f!==null){n((function(){s.style.setProperty("animation","none");t.style.setProperty("animation-delay","-655ms");f.style.setProperty("animation-delay","-655ms")}))}a=this;return[4,r.import("./p-3e1e14d9.system.js")];case 1:a.gesture=u.sent().createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:function(){return l.state!==8&&l.state!==32&&l.scrollEl.scrollTop===0},onStart:function(e){l.progress=0;e.data={animation:undefined,didStart:false,cancelled:false}},onMove:function(r){if(r.velocityY<0&&l.progress===0&&!r.data.didStart||r.data.cancelled){r.data.cancelled=true;return}if(!r.data.didStart){r.data.didStart=true;l.state=2;var i=l.scrollEl;var t=i.matches(c)?"overflow":"--overflow";n((function(){return i.style.setProperty(t,"hidden")}));var s=E(e);var f=T(s,o,l.el);r.data.animation=f;f.progressStart(false,0);l.ionStart.emit();l.animations.push(f);return}l.progress=m(0,r.deltaY/180*.5,1);r.data.animation.progressStep(l.progress);l.ionPull.emit()},onEnd:function(e){if(!e.data.didStart){return}l.gesture.enable(false);var r=l.scrollEl;var i=r.matches(c)?"overflow":"--overflow";n((function(){return r.style.removeProperty(i)}));if(l.progress<=.4){e.data.animation.progressEnd(0,l.progress,500).onFinish((function(){l.animations.forEach((function(e){return e.destroy()}));l.animations=[];l.gesture.enable(true);l.state=1}));return}var t=h([0,0],[0,0],[1,1],[1,1],l.progress)[0];var s=H(o);l.animations.push(s);n((function(){return __awaiter(l,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:o.style.setProperty("--ion-pulling-refresher-translate","".concat(t*100,"px"));e.data.animation.progressEnd();return[4,s.play()];case 1:r.sent();this.beginRefresh();e.data.animation.destroy();this.gesture.enable(true);return[2]}}))}))}))}});this.disabledChanged();return[2]}}))}))};e.prototype.setupNativeRefresher=function(e){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){if(this.scrollListenerCallback||!e||this.nativeRefresher||!this.scrollEl){return[2]}this.setCss(0,"",false,"");this.nativeRefresher=true;r=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner");n=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");if(w(this)==="ios"){this.setupiOSNativeRefresher(r,n)}else{this.setupMDNativeRefresher(e,r,n)}return[2]}))}))};e.prototype.componentDidUpdate=function(){this.checkNativeRefresher()};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e;var n=this;return __generator(this,(function(i){if(this.el.getAttribute("slot")!=="fixed"){console.error('Make sure you use: <ion-refresher slot="fixed">');return[2]}e=this.el.closest(l);if(!e){u(this.el);return[2]}g(e,(function(){return __awaiter(n,void 0,void 0,(function(){var n,i,t,s;var o=this;return __generator(this,(function(f){switch(f.label){case 0:n=e.querySelector(c);i=this;return[4,d(n!==null&&n!==void 0?n:e)];case 1:i.scrollEl=f.sent();t=this;return[4,e.getBackgroundElement()];case 2:t.backgroundContentEl=f.sent();this.contentFullscreen=e.fullscreen;return[4,A(this.el,w(this))];case 3:if(!f.sent())return[3,4];this.setupNativeRefresher(e);return[3,6];case 4:s=this;return[4,r.import("./p-3e1e14d9.system.js")];case 5:s.gesture=f.sent().createGesture({el:e,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:false,canStart:function(){return o.canStart()},onStart:function(){return o.onStart()},onMove:function(e){return o.onMove(e)},onEnd:function(){return o.onEnd()}});this.disabledChanged();f.label=6;case 6:return[2]}}))}))}));return[2]}))}))};e.prototype.disconnectedCallback=function(){this.destroyNativeRefresher();this.scrollEl=undefined;if(this.gesture){this.gesture.destroy();this.gesture=undefined}};e.prototype.complete=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){if(this.nativeRefresher){this.needsCompletion=true;if(!this.pointerDown){b((function(){return b((function(){return e.resetNativeRefresher(e.elementToTransform,32)}))}))}}else{this.close(32,"120ms")}return[2]}))}))};e.prototype.cancel=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){if(this.nativeRefresher){if(!this.pointerDown){b((function(){return b((function(){return e.resetNativeRefresher(e.elementToTransform,16)}))}))}}else{this.close(16,"")}return[2]}))}))};e.prototype.getProgress=function(){return Promise.resolve(this.progress)};e.prototype.canStart=function(){if(!this.scrollEl){return false}if(this.state!==1){return false}if(this.scrollEl.scrollTop>0){return false}return true};e.prototype.onStart=function(){this.progress=0;this.state=1;this.memoizeOverflowStyle();if(this.contentFullscreen&&this.backgroundContentEl){this.backgroundContentEl.style.setProperty("--offset-top","0px")}};e.prototype.onMove=function(e){if(!this.scrollEl){return}var r=e.event;if(r.touches!==undefined&&r.touches.length>1){return}if((this.state&56)!==0){return}var n=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor;var i=e.deltaY*n;if(i<=0){this.progress=0;this.state=1;if(this.appliedStyles){this.setCss(0,"",false,"");return}return}if(this.state===1){var t=this.scrollEl.scrollTop;if(t>0){this.progress=0;return}this.state=2}if(r.cancelable){r.preventDefault()}this.setCss(i,"0ms",true,"");if(i===0){this.progress=0;return}var s=this.pullMin;this.progress=i/s;if(!this.didStart){this.didStart=true;this.ionStart.emit()}this.ionPull.emit();if(i<s){this.state=2;return}if(i>this.pullMax){this.beginRefresh();return}this.state=4;return};e.prototype.onEnd=function(){if(this.state===4){this.beginRefresh()}else if(this.state===2){this.cancel()}else if(this.state===1){this.restoreOverflowStyle()}};e.prototype.beginRefresh=function(){this.state=8;this.setCss(this.pullMin,this.snapbackDuration,true,"");this.ionRefresh.emit({complete:this.complete.bind(this)})};e.prototype.close=function(e,r){var n=this;setTimeout((function(){var e;n.state=1;n.progress=0;n.didStart=false;n.setCss(0,"0ms",false,"",true);if(n.contentFullscreen&&n.backgroundContentEl){(e=n.backgroundContentEl)===null||e===void 0?void 0:e.style.removeProperty("--offset-top")}}),600);this.state=e;this.setCss(0,this.closeDuration,true,r)};e.prototype.setCss=function(e,r,i,t,s){var o=this;if(s===void 0){s=false}if(this.nativeRefresher){return}this.appliedStyles=e>0;n((function(){if(o.scrollEl&&o.backgroundContentEl){var n=o.scrollEl.style;var f=o.backgroundContentEl.style;n.transform=f.transform=e>0?"translateY(".concat(e,"px) translateZ(0px)"):"";n.transitionDuration=f.transitionDuration=r;n.transitionDelay=f.transitionDelay=t;n.overflow=i?"hidden":""}if(s){o.restoreOverflowStyle()}}))};e.prototype.memoizeOverflowStyle=function(){if(this.scrollEl){var e=this.scrollEl.style,r=e.overflow,n=e.overflowX,i=e.overflowY;this.overflowStyles={overflow:r!==null&&r!==void 0?r:"",overflowX:n!==null&&n!==void 0?n:"",overflowY:i!==null&&i!==void 0?i:""}}};e.prototype.restoreOverflowStyle=function(){if(this.overflowStyles!==undefined&&this.scrollEl!==undefined){var e=this.overflowStyles,r=e.overflow,n=e.overflowX,i=e.overflowY;this.scrollEl.style.overflow=r;this.scrollEl.style.overflowX=n;this.scrollEl.style.overflowY=i;this.overflowStyles=undefined}};e.prototype.render=function(){var e;var r=w(this);return o(a,{key:"4c36bffbfa32ef1bd28a60f4455c125842880659",slot:"fixed",class:(e={},e[r]=true,e["refresher-".concat(r)]=true,e["refresher-native"]=this.nativeRefresher,e["refresher-active"]=this.state!==1,e["refresher-pulling"]=this.state===2,e["refresher-ready"]=this.state===4,e["refresher-refreshing"]=this.state===8,e["refresher-cancelling"]=this.state===16,e["refresher-completing"]=this.state===32,e)})};Object.defineProperty(e.prototype,"el",{get:function(){return f(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledChanged"]}},enumerable:false,configurable:true});return e}());F.style={ios:Z,md:B};var J=e("ion_refresher_content",function(){function e(e){i(this,e);this.customHTMLEnabled=k.get("innerHTMLTemplatesEnabled",j);this.pullingIcon=undefined;this.pullingText=undefined;this.refreshingSpinner=undefined;this.refreshingText=undefined}e.prototype.componentWillLoad=function(){if(this.pullingIcon===undefined){var e=R();var r=w(this);var n=e?"lines":Y;this.pullingIcon=k.get("refreshingIcon",r==="ios"&&e?k.get("spinner",n):"circular")}if(this.refreshingSpinner===undefined){var r=w(this);this.refreshingSpinner=k.get("refreshingSpinner",k.get("spinner",r==="ios"?"lines":"circular"))}};e.prototype.renderPullingText=function(){var e=this,r=e.customHTMLEnabled,n=e.pullingText;if(r){return o("div",{class:"refresher-pulling-text",innerHTML:S(n)})}return o("div",{class:"refresher-pulling-text"},n)};e.prototype.renderRefreshingText=function(){var e=this,r=e.customHTMLEnabled,n=e.refreshingText;if(r){return o("div",{class:"refresher-refreshing-text",innerHTML:S(n)})}return o("div",{class:"refresher-refreshing-text"},n)};e.prototype.render=function(){var e=this.pullingIcon;var r=e!=null&&P[e]!==undefined;var n=w(this);return o(a,{key:"fb78d7e31f8feb31025e58903eb9de85cb928dbd",class:n},o("div",{key:"23f67800f09765ef8fde8cf85a843e19e667f337",class:"refresher-pulling"},this.pullingIcon&&r&&o("div",{key:"5a08d3b69762f8b51dcd3dcfbaf3fddb707257fa",class:"refresher-pulling-icon"},o("div",{key:"42a613b029e092acdff7fe613a429375d89f157e",class:"spinner-arrow-container"},o("ion-spinner",{key:"2f9cdc75938c4d306de7a717ed67901daef71c2c",name:this.pullingIcon,paused:true}),n==="md"&&this.pullingIcon==="circular"&&o("div",{key:"1f8a6347b4a46417ba55286a79f1a41f04bf9c91",class:"arrow-container"},o("ion-icon",{key:"326713d11d482d420ba5a739ff4528400a37e9ca",icon:z,"aria-hidden":"true"})))),this.pullingIcon&&!r&&o("div",{key:"ab18c7cbea7bcbfa034f90f317652af4d93660ed",class:"refresher-pulling-icon"},o("ion-icon",{key:"f488acd54acc8a61b6c5a279f0d7f9a437c370c0",icon:this.pullingIcon,lazy:false,"aria-hidden":"true"})),this.pullingText!==undefined&&this.renderPullingText()),o("div",{key:"914ad6139442dac53af47120ea821fa11c309a38",class:"refresher-refreshing"},this.refreshingSpinner&&o("div",{key:"7eba732f5e2d72b90399d68a3e89617d8979b3d1",class:"refresher-refreshing-icon"},o("ion-spinner",{key:"838d66d8bef6f56622c62b1068e7fed29e094302",name:this.refreshingSpinner})),this.refreshingText!==undefined&&this.renderRefreshingText()))};Object.defineProperty(e.prototype,"el",{get:function(){return f(this)},enumerable:false,configurable:true});return e}())}}}));
|
|
4
|
+
*/System.register(["./p-f11a9436.system.js","./p-e673a0a2.system.js","./p-f56dfbf7.system.js","./p-455cd7cc.system.js","./p-a93873de.system.js","./p-f201b53a.system.js","./p-9146695e.system.js","./p-f233f1e0.system.js","./p-1e955a45.system.js","./p-d8d84afa.system.js","./p-d3a54968.system.js","./p-8985cdb6.system.js","./p-792919fd.system.js"],(function(e,r){"use strict";var n,i,t,s,o,f,a,h,c,l,u,d,p,g,m,v,b,x,y,w,k,_,j,S,z,Y,P;return{setters:[function(e){n=e.w;i=e.r;t=e.c;s=e.d;o=e.h;f=e.f;a=e.e},function(e){h=e.g},function(e){c=e.I;l=e.b;u=e.p;d=e.g},function(e){p=e.t;g=e.c;m=e.j;v=e.g;b=e.r},function(e){x=e.d;y=e.I},function(e){w=e.b;k=e.c},function(e){_=e.c},function(e){j=e.E;S=e.a},function(e){z=e.h;Y=e.i},function(e){P=e.S},function(){},function(){},function(){}],execute:function(){var M=this;var E=function(e){var r=e.previousElementSibling;var n=r!==null&&r.tagName==="ION-HEADER";return n?"translate":"scale"};var T=function(e,r,n){return e==="scale"?N(r,n):X(r,n)};var D=function(e){var r=e.querySelector("ion-spinner");var n=r.shadowRoot.querySelector("circle");var i=e.querySelector(".spinner-arrow-container");var t=e.querySelector(".arrow-container");var s=t?t.querySelector("ion-icon"):null;var o=_().duration(1e3).easing("ease-out");var f=_().addElement(i).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]);var a=_().addElement(n).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]);var h=_().addElement(r).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(t&&s){var c=_().addElement(t).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]);var l=_().addElement(s).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);o.addAnimation([c,l])}return o.addAnimation([f,a,h])};var N=function(e,r){var n=r.clientHeight;var i=_().addElement(e).keyframes([{offset:0,transform:"scale(0) translateY(-".concat(n,"px)")},{offset:1,transform:"scale(1) translateY(100px)"}]);return D(e).addAnimation([i])};var X=function(e,r){var n=r.clientHeight;var i=_().addElement(e).keyframes([{offset:0,transform:"translateY(-".concat(n,"px)")},{offset:1,transform:"translateY(100px)"}]);return D(e).addAnimation([i])};var H=function(e){return _().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)")};var O=function(e,r){e.style.setProperty("opacity",r.toString())};var L=function(e,r,i){var t=1;n((function(){e.forEach((function(e,n){var s=n*(t/r);var o=t-s;var f=i-s;var a=m(0,f/o,1);e.style.setProperty("opacity",a.toString())}))}))};var C=function(e,r){n((function(){e.style.setProperty("--refreshing-rotation-duration",r>=1?"0.5s":"2s");e.style.setProperty("opacity","1")}))};var I=function(e,r,i){if(i===void 0){i=200}if(!e){return Promise.resolve()}var t=p(e,i);n((function(){e.style.setProperty("transition","".concat(i,"ms all ease-out"));if(r===undefined){e.style.removeProperty("transform")}else{e.style.setProperty("transform","translate3d(0px, ".concat(r,", 0px)"))}}));return t};var R=function(){return navigator.maxTouchPoints>0&&CSS.supports("background: -webkit-named-image(apple-pay-logo-black)")};var A=function(e,r){return __awaiter(M,void 0,void 0,(function(){var n,i,t;return __generator(this,(function(s){switch(s.label){case 0:n=e.querySelector("ion-refresher-content");if(!n){return[2,Promise.resolve(false)]}return[4,new Promise((function(e){return g(n,e)}))];case 1:s.sent();i=e.querySelector("ion-refresher-content .refresher-pulling ion-spinner");t=e.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return[2,i!==null&&t!==null&&(r==="ios"&&R()||r==="md")]}}))}))};var G="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, var(--ion-background-color-step-450, #747577))}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}";var Z=G;var q="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #0054e9)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #0054e9);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec));background:var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff));-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}";var B=q;var F=e("ion_refresher",function(){function e(e){i(this,e);this.ionRefresh=t(this,"ionRefresh",7);this.ionPull=t(this,"ionPull",7);this.ionStart=t(this,"ionStart",7);this.appliedStyles=false;this.didStart=false;this.progress=0;this.pointerDown=false;this.needsCompletion=false;this.didRefresh=false;this.contentFullscreen=false;this.lastVelocityY=0;this.animations=[];this.nativeRefresher=false;this.state=1;this.pullMin=60;this.pullMax=this.pullMin+60;this.closeDuration="280ms";this.snapbackDuration="280ms";this.pullFactor=1;this.disabled=false}e.prototype.disabledChanged=function(){if(this.gesture){this.gesture.enable(!this.disabled)}};e.prototype.checkNativeRefresher=function(){return __awaiter(this,void 0,void 0,(function(){var e,r;return __generator(this,(function(n){switch(n.label){case 0:return[4,A(this.el,w(this))];case 1:e=n.sent();if(e&&!this.nativeRefresher){r=this.el.closest("ion-content");this.setupNativeRefresher(r)}else if(!e){this.destroyNativeRefresher()}return[2]}}))}))};e.prototype.destroyNativeRefresher=function(){if(this.scrollEl&&this.scrollListenerCallback){this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback);this.scrollListenerCallback=undefined}this.nativeRefresher=false};e.prototype.resetNativeRefresher=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:this.state=r;if(!(w(this)==="ios"))return[3,2];return[4,I(e,undefined,300)];case 1:n.sent();return[3,4];case 2:return[4,p(this.el.querySelector(".refresher-refreshing-icon"),200)];case 3:n.sent();n.label=4;case 4:this.didRefresh=false;this.needsCompletion=false;this.pointerDown=false;this.animations.forEach((function(e){return e.destroy()}));this.animations=[];this.progress=0;this.state=1;return[2]}}))}))};e.prototype.setupiOSNativeRefresher=function(e,i){return __awaiter(this,void 0,void 0,(function(){var t,o,f,a;var h=this;return __generator(this,(function(c){switch(c.label){case 0:this.elementToTransform=this.scrollEl;t=e.shadowRoot.querySelectorAll("svg");o=this.scrollEl.clientHeight*.16;f=t.length;n((function(){return t.forEach((function(e){return e.style.setProperty("animation","none")}))}));this.scrollListenerCallback=function(){if(!h.pointerDown&&h.state===1){return}s((function(){var e=h.scrollEl.scrollTop;var r=h.el.clientHeight;if(e>0){if(h.state===8){var s=m(0,e/(r*.5),1);n((function(){return O(i,1-s)}));return}return}if(h.pointerDown){if(!h.didStart){h.didStart=true;h.ionStart.emit()}if(h.pointerDown){h.ionPull.emit()}}var a=h.didStart?30:0;var c=h.progress=m(0,(Math.abs(e)-a)/o,1);var l=h.state===8||c===1;if(l){if(h.pointerDown){C(i,h.lastVelocityY)}if(!h.didRefresh){h.beginRefresh();h.didRefresh=true;x({style:y.Light});if(!h.pointerDown){I(h.elementToTransform,"".concat(r,"px"))}}}else{h.state=2;L(t,f,c)}}))};this.scrollEl.addEventListener("scroll",this.scrollListenerCallback);a=this;return[4,r.import("./p-3e1e14d9.system.js")];case 1:a.gesture=c.sent().createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:function(){h.pointerDown=true;if(!h.didRefresh){I(h.elementToTransform,"0px")}if(o===0){o=h.scrollEl.clientHeight*.16}},onMove:function(e){h.lastVelocityY=e.velocityY},onEnd:function(){h.pointerDown=false;h.didStart=false;if(h.needsCompletion){h.resetNativeRefresher(h.elementToTransform,32);h.needsCompletion=false}else if(h.didRefresh){s((function(){return I(h.elementToTransform,"".concat(h.el.clientHeight,"px"))}))}}});this.disabledChanged();return[2]}}))}))};e.prototype.setupMDNativeRefresher=function(e,i,t){return __awaiter(this,void 0,void 0,(function(){var s,o,f,a;var l=this;return __generator(this,(function(u){switch(u.label){case 0:s=v(i).querySelector("circle");o=this.el.querySelector("ion-refresher-content .refresher-pulling-icon");f=v(t).querySelector("circle");if(s!==null&&f!==null){n((function(){s.style.setProperty("animation","none");t.style.setProperty("animation-delay","-655ms");f.style.setProperty("animation-delay","-655ms")}))}a=this;return[4,r.import("./p-3e1e14d9.system.js")];case 1:a.gesture=u.sent().createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:function(){return l.state!==8&&l.state!==32&&l.scrollEl.scrollTop===0},onStart:function(e){l.progress=0;e.data={animation:undefined,didStart:false,cancelled:false}},onMove:function(r){if(r.velocityY<0&&l.progress===0&&!r.data.didStart||r.data.cancelled){r.data.cancelled=true;return}if(!r.data.didStart){r.data.didStart=true;l.state=2;var i=l.scrollEl;var t=i.matches(c)?"overflow":"--overflow";n((function(){return i.style.setProperty(t,"hidden")}));var s=E(e);var f=T(s,o,l.el);r.data.animation=f;f.progressStart(false,0);l.ionStart.emit();l.animations.push(f);return}l.progress=m(0,r.deltaY/180*.5,1);r.data.animation.progressStep(l.progress);l.ionPull.emit()},onEnd:function(e){if(!e.data.didStart){return}l.gesture.enable(false);var r=l.scrollEl;var i=r.matches(c)?"overflow":"--overflow";n((function(){return r.style.removeProperty(i)}));if(l.progress<=.4){e.data.animation.progressEnd(0,l.progress,500).onFinish((function(){l.animations.forEach((function(e){return e.destroy()}));l.animations=[];l.gesture.enable(true);l.state=1}));return}var t=h([0,0],[0,0],[1,1],[1,1],l.progress)[0];var s=H(o);l.animations.push(s);n((function(){return __awaiter(l,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:o.style.setProperty("--ion-pulling-refresher-translate","".concat(t*100,"px"));e.data.animation.progressEnd();return[4,s.play()];case 1:r.sent();this.beginRefresh();e.data.animation.destroy();this.gesture.enable(true);return[2]}}))}))}))}});this.disabledChanged();return[2]}}))}))};e.prototype.setupNativeRefresher=function(e){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){if(this.scrollListenerCallback||!e||this.nativeRefresher||!this.scrollEl){return[2]}this.setCss(0,"",false,"");this.nativeRefresher=true;r=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner");n=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");if(w(this)==="ios"){this.setupiOSNativeRefresher(r,n)}else{this.setupMDNativeRefresher(e,r,n)}return[2]}))}))};e.prototype.componentDidUpdate=function(){this.checkNativeRefresher()};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e;var n=this;return __generator(this,(function(i){if(this.el.getAttribute("slot")!=="fixed"){console.error('Make sure you use: <ion-refresher slot="fixed">');return[2]}e=this.el.closest(l);if(!e){u(this.el);return[2]}g(e,(function(){return __awaiter(n,void 0,void 0,(function(){var n,i,t,s;var o=this;return __generator(this,(function(f){switch(f.label){case 0:n=e.querySelector(c);i=this;return[4,d(n!==null&&n!==void 0?n:e)];case 1:i.scrollEl=f.sent();t=this;return[4,e.getBackgroundElement()];case 2:t.backgroundContentEl=f.sent();this.contentFullscreen=e.fullscreen;return[4,A(this.el,w(this))];case 3:if(!f.sent())return[3,4];this.setupNativeRefresher(e);return[3,6];case 4:s=this;return[4,r.import("./p-3e1e14d9.system.js")];case 5:s.gesture=f.sent().createGesture({el:e,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:false,canStart:function(){return o.canStart()},onStart:function(){return o.onStart()},onMove:function(e){return o.onMove(e)},onEnd:function(){return o.onEnd()}});this.disabledChanged();f.label=6;case 6:return[2]}}))}))}));return[2]}))}))};e.prototype.disconnectedCallback=function(){this.destroyNativeRefresher();this.scrollEl=undefined;if(this.gesture){this.gesture.destroy();this.gesture=undefined}};e.prototype.complete=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){if(this.nativeRefresher){this.needsCompletion=true;if(!this.pointerDown){b((function(){return b((function(){return e.resetNativeRefresher(e.elementToTransform,32)}))}))}}else{this.close(32,"120ms")}return[2]}))}))};e.prototype.cancel=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){if(this.nativeRefresher){if(!this.pointerDown){b((function(){return b((function(){return e.resetNativeRefresher(e.elementToTransform,16)}))}))}}else{this.close(16,"")}return[2]}))}))};e.prototype.getProgress=function(){return Promise.resolve(this.progress)};e.prototype.canStart=function(){if(!this.scrollEl){return false}if(this.state!==1){return false}if(this.scrollEl.scrollTop>0){return false}return true};e.prototype.onStart=function(){this.progress=0;this.state=1;this.memoizeOverflowStyle();if(this.contentFullscreen&&this.backgroundContentEl){this.backgroundContentEl.style.setProperty("--offset-top","0px")}};e.prototype.onMove=function(e){if(!this.scrollEl){return}var r=e.event;if(r.touches!==undefined&&r.touches.length>1){return}if((this.state&56)!==0){return}var n=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor;var i=e.deltaY*n;if(i<=0){this.progress=0;this.state=1;if(this.appliedStyles){this.setCss(0,"",false,"");return}return}if(this.state===1){var t=this.scrollEl.scrollTop;if(t>0){this.progress=0;return}this.state=2}if(r.cancelable){r.preventDefault()}this.setCss(i,"0ms",true,"");if(i===0){this.progress=0;return}var s=this.pullMin;this.progress=i/s;if(!this.didStart){this.didStart=true;this.ionStart.emit()}this.ionPull.emit();if(i<s){this.state=2;return}if(i>this.pullMax){this.beginRefresh();return}this.state=4;return};e.prototype.onEnd=function(){if(this.state===4){this.beginRefresh()}else if(this.state===2){this.cancel()}else if(this.state===1){this.restoreOverflowStyle()}};e.prototype.beginRefresh=function(){this.state=8;this.setCss(this.pullMin,this.snapbackDuration,true,"");this.ionRefresh.emit({complete:this.complete.bind(this)})};e.prototype.close=function(e,r){var n=this;setTimeout((function(){var e;n.state=1;n.progress=0;n.didStart=false;n.setCss(0,"0ms",false,"",true);if(n.contentFullscreen&&n.backgroundContentEl){(e=n.backgroundContentEl)===null||e===void 0?void 0:e.style.removeProperty("--offset-top")}}),600);this.state=e;this.setCss(0,this.closeDuration,true,r)};e.prototype.setCss=function(e,r,i,t,s){var o=this;if(s===void 0){s=false}if(this.nativeRefresher){return}this.appliedStyles=e>0;n((function(){if(o.scrollEl&&o.backgroundContentEl){var n=o.scrollEl.style;var f=o.backgroundContentEl.style;n.transform=f.transform=e>0?"translateY(".concat(e,"px) translateZ(0px)"):"";n.transitionDuration=f.transitionDuration=r;n.transitionDelay=f.transitionDelay=t;n.overflow=i?"hidden":""}if(s){o.restoreOverflowStyle()}}))};e.prototype.memoizeOverflowStyle=function(){if(this.scrollEl){var e=this.scrollEl.style,r=e.overflow,n=e.overflowX,i=e.overflowY;this.overflowStyles={overflow:r!==null&&r!==void 0?r:"",overflowX:n!==null&&n!==void 0?n:"",overflowY:i!==null&&i!==void 0?i:""}}};e.prototype.restoreOverflowStyle=function(){if(this.overflowStyles!==undefined&&this.scrollEl!==undefined){var e=this.overflowStyles,r=e.overflow,n=e.overflowX,i=e.overflowY;this.scrollEl.style.overflow=r;this.scrollEl.style.overflowX=n;this.scrollEl.style.overflowY=i;this.overflowStyles=undefined}};e.prototype.render=function(){var e;var r=w(this);return o(a,{key:"4c36bffbfa32ef1bd28a60f4455c125842880659",slot:"fixed",class:(e={},e[r]=true,e["refresher-".concat(r)]=true,e["refresher-native"]=this.nativeRefresher,e["refresher-active"]=this.state!==1,e["refresher-pulling"]=this.state===2,e["refresher-ready"]=this.state===4,e["refresher-refreshing"]=this.state===8,e["refresher-cancelling"]=this.state===16,e["refresher-completing"]=this.state===32,e)})};Object.defineProperty(e.prototype,"el",{get:function(){return f(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledChanged"]}},enumerable:false,configurable:true});return e}());F.style={ios:Z,md:B};var J=e("ion_refresher_content",function(){function e(e){i(this,e);this.customHTMLEnabled=k.get("innerHTMLTemplatesEnabled",j);this.pullingIcon=undefined;this.pullingText=undefined;this.refreshingSpinner=undefined;this.refreshingText=undefined}e.prototype.componentWillLoad=function(){if(this.pullingIcon===undefined){var e=R();var r=w(this);var n=e?"lines":Y;this.pullingIcon=k.get("refreshingIcon",r==="ios"&&e?k.get("spinner",n):"circular")}if(this.refreshingSpinner===undefined){var r=w(this);this.refreshingSpinner=k.get("refreshingSpinner",k.get("spinner",r==="ios"?"lines":"circular"))}};e.prototype.renderPullingText=function(){var e=this,r=e.customHTMLEnabled,n=e.pullingText;if(r){return o("div",{class:"refresher-pulling-text",innerHTML:S(n)})}return o("div",{class:"refresher-pulling-text"},n)};e.prototype.renderRefreshingText=function(){var e=this,r=e.customHTMLEnabled,n=e.refreshingText;if(r){return o("div",{class:"refresher-refreshing-text",innerHTML:S(n)})}return o("div",{class:"refresher-refreshing-text"},n)};e.prototype.render=function(){var e=this.pullingIcon;var r=e!=null&&P[e]!==undefined;var n=w(this);return o(a,{key:"fb78d7e31f8feb31025e58903eb9de85cb928dbd",class:n},o("div",{key:"23f67800f09765ef8fde8cf85a843e19e667f337",class:"refresher-pulling"},this.pullingIcon&&r&&o("div",{key:"5a08d3b69762f8b51dcd3dcfbaf3fddb707257fa",class:"refresher-pulling-icon"},o("div",{key:"42a613b029e092acdff7fe613a429375d89f157e",class:"spinner-arrow-container"},o("ion-spinner",{key:"2f9cdc75938c4d306de7a717ed67901daef71c2c",name:this.pullingIcon,paused:true}),n==="md"&&this.pullingIcon==="circular"&&o("div",{key:"1f8a6347b4a46417ba55286a79f1a41f04bf9c91",class:"arrow-container"},o("ion-icon",{key:"326713d11d482d420ba5a739ff4528400a37e9ca",icon:z,"aria-hidden":"true"})))),this.pullingIcon&&!r&&o("div",{key:"ab18c7cbea7bcbfa034f90f317652af4d93660ed",class:"refresher-pulling-icon"},o("ion-icon",{key:"f488acd54acc8a61b6c5a279f0d7f9a437c370c0",icon:this.pullingIcon,lazy:false,"aria-hidden":"true"})),this.pullingText!==undefined&&this.renderPullingText()),o("div",{key:"914ad6139442dac53af47120ea821fa11c309a38",class:"refresher-refreshing"},this.refreshingSpinner&&o("div",{key:"7eba732f5e2d72b90399d68a3e89617d8979b3d1",class:"refresher-refreshing-icon"},o("ion-spinner",{key:"838d66d8bef6f56622c62b1068e7fed29e094302",name:this.refreshingSpinner})),this.refreshingText!==undefined&&this.renderRefreshingText()))};Object.defineProperty(e.prototype,"el",{get:function(){return f(this)},enumerable:false,configurable:true});return e}())}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{p as e}from"./p-71de32fa.js";const t=(e,t)=>e.month===t.month&&e.day===t.day&&e.year===t.year,n=(e,t)=>!!(e.year<t.year||e.year===t.year&&e.month<t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day<t.day),o=(e,t)=>!!(e.year>t.year||e.year===t.year&&e.month>t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day>t.day),r=(t,r,a)=>{const i=Array.isArray(t)?t:[t];for(const d of i)if(void 0!==r&&n(d,r)||void 0!==a&&o(d,a)){e(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(r)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(t)}`);break}},a=(e,t)=>{if(void 0!==t)return t;const n=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=n.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const r=new Date("5/18/2021 00:00"),a=n.formatToParts(r).find((e=>"hour"===e.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${t}"`)}},i=e=>"h23"===e||"h24"===e,d=(e,t)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(t)?29:28:31,u=(e,t={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,t).formatToParts(new Date)[0].type,l=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,s=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,v=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map((e=>parseInt(e,10))).filter(isFinite):[n],t},m=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function y(t){if(Array.isArray(t)){const e=[];for(const n of t){const t=y(n);if(!t)return;e.push(t)}return e}let n=null;if(null!=t&&""!==t&&(n=c.exec(t),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=s.exec(t)),null!==n){for(let e=1;e<8;e++)n[e]=void 0!==n[e]?parseInt(n[e],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}e(`Unable to parse date string: ${t}. Please provide a valid ISO 8601 datetime string.`)}const h=(e,t,r)=>t&&n(e,t)?t:r&&o(e,r)?r:e,f=e=>e>=12?"pm":"am",w=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:u}=n,l=null!=a?a:t.year,s=null!=o?o:12;return{month:s,day:null!=r?r:d(s,l),year:l,hour:null!=i?i:23,minute:null!=u?u:59}},O=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:d}=n;return{month:null!=o?o:1,day:null!=r?r:1,year:null!=a?a:t.year,hour:null!=i?i:0,minute:null!=d?d:0}},$=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2);function p(e){if(Array.isArray(e))return e.map((e=>p(e)));let t="";var n;return void 0!==e.year?(t=("000"+(void 0!==(n=e.year)?Math.abs(n):"0")).slice(-4),void 0!==e.month&&(t+="-"+$(e.month),void 0!==e.day&&(t+="-"+$(e.day),void 0!==e.hour&&(t+=`T${$(e.hour)}:${$(e.minute)}:00`)))):void 0!==e.hour&&(t=$(e.hour)+":"+$(e.minute)),t}const b=(e,t)=>void 0===t?e:"am"===t?12===e?0:e:12===e?12:e+12,I=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return M(e,t)},j=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return Z(e,6-t)},T=e=>Z(e,1),D=e=>M(e,1),k=e=>M(e,7),x=e=>Z(e,7),M=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r};if(a.day=o-t,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const e=d(a.month,a.year);a.day=e+a.day}return a},Z=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r},i=d(n,r);return a.day=o+t,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},C=e=>{const t=1===e.month?12:e.month-1,n=1===e.month?e.year-1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},U=e=>{const t=12===e.month?1:e.month+1,n=12===e.month?e.year+1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},g=(e,t)=>{const n=e.month,o=e.year+t,r=d(n,o);return{month:n,year:o,day:r<e.day?r:e.day}},E=e=>g(e,-1),N=e=>g(e,1),P=(e,t,n)=>t?e:b(e,n),A=(e,t)=>{const{ampm:n,hour:o}=e;let r=o;return"am"===n&&"pm"===t?r=b(r,"pm"):"pm"===n&&"am"===t&&(r=Math.abs(r-12)),r},G=(e,n,o)=>{const{month:r,day:a,year:i}=e,u=h(Object.assign({},e),n,o),l=d(r,i);return null!==a&&l<a&&(u.day=l),void 0!==n&&t(u,n)&&void 0!==u.hour&&void 0!==n.hour&&(u.hour<n.hour?(u.hour=n.hour,u.minute=n.minute):u.hour===n.hour&&void 0!==u.minute&&void 0!==n.minute&&u.minute<n.minute&&(u.minute=n.minute)),void 0!==o&&t(e,o)&&void 0!==u.hour&&void 0!==o.hour&&(u.hour>o.hour?(u.hour=o.hour,u.minute=o.minute):u.hour===o.hour&&void 0!==u.minute&&void 0!==o.minute&&u.minute>o.minute&&(u.minute=o.minute)),u},V=({refParts:e,monthValues:r,dayValues:a,yearValues:i,hourValues:d,minuteValues:u,minParts:l,maxParts:s})=>{const{hour:c,minute:v,day:m,month:y,year:h}=e,w=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(void 0!==i){const e=i.filter((e=>!(void 0!==l&&e<l.year||void 0!==s&&e>s.year)));w.year=W(h,e)}if(void 0!==r){const e=r.filter((e=>!(void 0!==l&&w.year===l.year&&e<l.month||void 0!==s&&w.year===s.year&&e>s.month)));w.month=W(y,e)}if(null!==m&&void 0!==a){const e=a.filter((e=>!(void 0!==l&&n(Object.assign(Object.assign({},w),{day:e}),l)||void 0!==s&&o(Object.assign(Object.assign({},w),{day:e}),s))));w.day=W(m,e)}if(void 0!==c&&void 0!==d){const e=d.filter((e=>!(void 0!==(null==l?void 0:l.hour)&&t(w,l)&&e<l.hour||void 0!==(null==s?void 0:s.hour)&&t(w,s)&&e>s.hour)));w.hour=W(c,e),w.ampm=f(w.hour)}if(void 0!==v&&void 0!==u){const e=u.filter((e=>!(void 0!==(null==l?void 0:l.minute)&&t(w,l)&&w.hour===l.hour&&e<l.minute||void 0!==(null==s?void 0:s.minute)&&t(w,s)&&w.hour===s.hour&&e>s.minute)));w.minute=W(v,e)}return w},W=(e,t)=>{let n=t[0],o=Math.abs(n-e);for(let r=1;r<t.length;r++){const a=t[r],i=Math.abs(a-e);i<o&&(n=a,o=i)}return n},F=e=>Object.assign(Object.assign({},e),{timeZone:"UTC",timeZoneName:void 0}),J=(e,t,n,o={hour:"numeric",minute:"numeric"})=>{const r={hour:t.hour,minute:t.minute};return void 0===r.hour||void 0===r.minute?"Invalid Time":new Intl.DateTimeFormat(e,Object.assign(Object.assign({},F(o)),{hourCycle:n})).format(new Date(p(Object.assign({year:2023,day:1,month:1},r))+"Z"))},S=e=>{const t=e.toString();return t.length>1?t:`0${t}`},H=(e,t)=>{if(0===e)switch(t){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${t}"`)}return i(t)?S(e):e.toString()},R=(e,t,n)=>{if(null===n.day)return null;const o=K(n),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return t?`Today, ${r}`:r},q=(e,t)=>{const n=K(t);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)},z=(e,t)=>Q(e,t,{day:"numeric"}).find((e=>"day"===e.type)).value,B=(e,t)=>L(e,t,{year:"numeric"}),K=e=>{var t,n,o;return new Date(`${null!==(t=e.month)&&void 0!==t?t:1}/${null!==(n=e.day)&&void 0!==n?n:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},L=(e,t,n)=>{const o=K(t);return X(e,F(n)).format(o)},Q=(e,t,n)=>{const o=K(t);return X(e,n).formatToParts(o)},X=(e,t)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},t),{timeZone:"UTC"})),Y=e=>{if("RelativeTimeFormat"in Intl){const t=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return t.charAt(0).toUpperCase()+t.slice(1)}return"Today"},_=e=>{const t=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-t),e},ee=_(new Date("2022T01:00")),te=_(new Date("2022T13:00")),ne=(e,t)=>{const n="am"===t?ee:te,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((e=>"dayPeriod"===e.type));return o?o.value:(e=>void 0===e?"":e.toUpperCase())(t)},oe=e=>Array.isArray(e)?e.join(","):e,re=()=>_(new Date).toISOString(),ae=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],ie=[0,1,2,3,4,5,6,7,8,9,10,11],de=[0,1,2,3,4,5,6,7,8,9,10,11],ue=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],le=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],se=(e,t,n=0)=>{const o=new Intl.DateTimeFormat(e,{weekday:"ios"===t?"short":"narrow"}),r=new Date("11/01/2020"),a=[];for(let e=n;e<n+7;e++){const t=new Date(r);t.setDate(t.getDate()+e),a.push(o.format(t))}return a},ce=(e,t,n)=>{const o=d(e,t),r=new Date(`${e}/1/${t}`).getDay(),a=r>=n?r-(n+1):6-(n-r);let i=[];for(let e=1;e<=o;e++)i.push({day:e,dayOfWeek:(a+e)%7});for(let e=0;e<=a;e++)i=[{day:null,dayOfWeek:null},...i];return i},ve=(e,r,d="h12",u,l,s,c)=>{const v=a(e,d),m=i(v);let y=(e=>{switch(e){case"h11":return ie;case"h12":return de;case"h23":return ue;case"h24":return le;default:throw new Error(`Invalid hour cycle "${e}"`)}})(v),h=ae,f=!0,w=!0;if(s&&(y=y.filter((e=>s.includes(e)))),c&&(h=h.filter((e=>c.includes(e)))),u)if(t(r,u)){if(void 0!==u.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)>=u.hour)),f=u.hour<13),void 0!==u.minute){let e=!1;void 0!==u.hour&&void 0!==r.hour&&r.hour>u.hour&&(e=!0),h=h.filter((t=>!!e||t>=u.minute))}}else n(r,u)&&(y=[],h=[],f=w=!1);return l&&(t(r,l)?(void 0!==l.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)<=l.hour)),w=l.hour>=12),void 0!==l.minute&&r.hour===l.hour&&(h=h.filter((e=>e<=l.minute)))):o(r,l)&&(y=[],h=[],f=w=!1)),{hours:y,minutes:h,am:f,pm:w}},me=(e,t)=>{const o={month:e.month,year:e.year,day:e.day};if(void 0!==t&&(e.month!==t.month||e.year!==t.year)){const r={month:t.month,year:t.year,day:t.day};return n(r,o)?[r,o,U(e)]:[C(e),o,r]}return[C(e),o,U(e)]},ye=(e,t,n,o,r,a={month:"long"})=>{const{year:i}=t,d=[];if(void 0!==r){let t=r;void 0!==(null==o?void 0:o.month)&&(t=t.filter((e=>e<=o.month))),void 0!==(null==n?void 0:n.month)&&(t=t.filter((e=>e>=n.month))),t.forEach((t=>{const n=new Date(`${t}/1/${i} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);d.push({text:o,value:t})}))}else{const t=o&&o.year===i?o.month:12;for(let o=n&&n.year===i?n.month:1;o<=t;o++){const t=new Date(`${o}/1/${i} GMT+0000`),n=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);d.push({text:n,value:o})}}return d},he=(e,t,n,o,r,a={day:"numeric"})=>{const{month:i,year:u}=t,l=[],s=d(i,u),c=null!=(null==o?void 0:o.day)&&o.year===u&&o.month===i?o.day:s,v=null!=(null==n?void 0:n.day)&&n.year===u&&n.month===i?n.day:1;if(void 0!==r){let t=r;t=t.filter((e=>e>=v&&e<=c)),t.forEach((t=>{const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}))}else for(let t=v;t<=c;t++){const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}return l},fe=(e,t,n,o,r)=>{var a,i;let d=[];if(void 0!==r)d=r,void 0!==(null==o?void 0:o.year)&&(d=d.filter((e=>e<=o.year))),void 0!==(null==n?void 0:n.year)&&(d=d.filter((e=>e>=n.year)));else{const{year:e}=t,r=null!==(a=null==o?void 0:o.year)&&void 0!==a?a:e;for(let t=null!==(i=null==n?void 0:n.year)&&void 0!==i?i:e-100;t<=r;t++)d.push(t)}return d.map((n=>({text:B(e,{year:n,month:t.month,day:t.day}),value:n})))},we=(e,t)=>e.month===t.month&&e.year===t.year?[e]:[e,...we(U(e),t)],Oe=(e,n,o,r,a,i)=>{let d=[],u=[],l=we(o,r);return i&&(l=l.filter((({month:e})=>i.includes(e)))),l.forEach((i=>{const l={month:i.month,day:null,year:i.year},s=he(e,l,o,r,a,{month:"short",day:"numeric",weekday:"short"}),c=[],v=[];s.forEach((o=>{const r=t(Object.assign(Object.assign({},l),{day:o.value}),n);v.push({text:r?Y(e):o.text,value:`${l.year}-${l.month}-${o.value}`}),c.push({month:l.month,year:l.year,day:o.value})})),u=[...u,...c],d=[...d,...v]})),{parts:u,items:d}},$e=(e,t,n,o,r,d,u)=>{const l=a(e,n),s=i(l),{hours:c,minutes:v,am:m,pm:y}=ve(e,t,l,o,r,d,u),h=c.map((e=>({text:H(e,l),value:P(e,s,t.ampm)}))),f=v.map((e=>({text:S(e),value:e}))),w=[];return m&&!s&&w.push({text:ne(e,"am"),value:"am"}),y&&!s&&w.push({text:ne(e,"pm"),value:"pm"}),{minutesData:f,hoursData:h,dayPeriodData:w}};export{d as A,Oe as B,ye as C,he as D,fe as E,u as F,$e as G,l as H,se as I,q as J,ce as K,a as L,J as M,L as N,oe as O,h as P,f as Q,A as R,z as a,o as b,t as c,C as d,U as e,m as f,R as g,N as h,n as i,E as j,j as k,I as l,D as m,T as n,k as o,x as p,O as q,w as r,y as s,v as t,p as u,G as v,r as w,re as x,V as y,me as z}
|
|
4
|
+
import{a as e}from"./p-061a7fc7.js";const t=(e,t)=>e.month===t.month&&e.day===t.day&&e.year===t.year,n=(e,t)=>!!(e.year<t.year||e.year===t.year&&e.month<t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day<t.day),o=(e,t)=>!!(e.year>t.year||e.year===t.year&&e.month>t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day>t.day),r=(t,r,a)=>{const i=Array.isArray(t)?t:[t];for(const d of i)if(void 0!==r&&n(d,r)||void 0!==a&&o(d,a)){e(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(r)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(t)}`);break}},a=(e,t)=>{if(void 0!==t)return t;const n=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=n.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const r=new Date("5/18/2021 00:00"),a=n.formatToParts(r).find((e=>"hour"===e.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${t}"`)}},i=e=>"h23"===e||"h24"===e,d=(e,t)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(t)?29:28:31,u=(e,t={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,t).formatToParts(new Date)[0].type,l=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,s=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,v=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map((e=>parseInt(e,10))).filter(isFinite):[n],t},m=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function y(t){if(Array.isArray(t)){const e=[];for(const n of t){const t=y(n);if(!t)return;e.push(t)}return e}let n=null;if(null!=t&&""!==t&&(n=c.exec(t),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=s.exec(t)),null!==n){for(let e=1;e<8;e++)n[e]=void 0!==n[e]?parseInt(n[e],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}e(`Unable to parse date string: ${t}. Please provide a valid ISO 8601 datetime string.`)}const h=(e,t,r)=>t&&n(e,t)?t:r&&o(e,r)?r:e,f=e=>e>=12?"pm":"am",w=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:u}=n,l=null!=a?a:t.year,s=null!=o?o:12;return{month:s,day:null!=r?r:d(s,l),year:l,hour:null!=i?i:23,minute:null!=u?u:59}},O=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:d}=n;return{month:null!=o?o:1,day:null!=r?r:1,year:null!=a?a:t.year,hour:null!=i?i:0,minute:null!=d?d:0}},$=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2);function p(e){if(Array.isArray(e))return e.map((e=>p(e)));let t="";var n;return void 0!==e.year?(t=("000"+(void 0!==(n=e.year)?Math.abs(n):"0")).slice(-4),void 0!==e.month&&(t+="-"+$(e.month),void 0!==e.day&&(t+="-"+$(e.day),void 0!==e.hour&&(t+=`T${$(e.hour)}:${$(e.minute)}:00`)))):void 0!==e.hour&&(t=$(e.hour)+":"+$(e.minute)),t}const b=(e,t)=>void 0===t?e:"am"===t?12===e?0:e:12===e?12:e+12,I=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return M(e,t)},j=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return Z(e,6-t)},T=e=>Z(e,1),D=e=>M(e,1),k=e=>M(e,7),x=e=>Z(e,7),M=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r};if(a.day=o-t,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const e=d(a.month,a.year);a.day=e+a.day}return a},Z=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r},i=d(n,r);return a.day=o+t,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},C=e=>{const t=1===e.month?12:e.month-1,n=1===e.month?e.year-1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},U=e=>{const t=12===e.month?1:e.month+1,n=12===e.month?e.year+1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},g=(e,t)=>{const n=e.month,o=e.year+t,r=d(n,o);return{month:n,year:o,day:r<e.day?r:e.day}},E=e=>g(e,-1),N=e=>g(e,1),P=(e,t,n)=>t?e:b(e,n),A=(e,t)=>{const{ampm:n,hour:o}=e;let r=o;return"am"===n&&"pm"===t?r=b(r,"pm"):"pm"===n&&"am"===t&&(r=Math.abs(r-12)),r},G=(e,n,o)=>{const{month:r,day:a,year:i}=e,u=h(Object.assign({},e),n,o),l=d(r,i);return null!==a&&l<a&&(u.day=l),void 0!==n&&t(u,n)&&void 0!==u.hour&&void 0!==n.hour&&(u.hour<n.hour?(u.hour=n.hour,u.minute=n.minute):u.hour===n.hour&&void 0!==u.minute&&void 0!==n.minute&&u.minute<n.minute&&(u.minute=n.minute)),void 0!==o&&t(e,o)&&void 0!==u.hour&&void 0!==o.hour&&(u.hour>o.hour?(u.hour=o.hour,u.minute=o.minute):u.hour===o.hour&&void 0!==u.minute&&void 0!==o.minute&&u.minute>o.minute&&(u.minute=o.minute)),u},V=({refParts:e,monthValues:r,dayValues:a,yearValues:i,hourValues:d,minuteValues:u,minParts:l,maxParts:s})=>{const{hour:c,minute:v,day:m,month:y,year:h}=e,w=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(void 0!==i){const e=i.filter((e=>!(void 0!==l&&e<l.year||void 0!==s&&e>s.year)));w.year=W(h,e)}if(void 0!==r){const e=r.filter((e=>!(void 0!==l&&w.year===l.year&&e<l.month||void 0!==s&&w.year===s.year&&e>s.month)));w.month=W(y,e)}if(null!==m&&void 0!==a){const e=a.filter((e=>!(void 0!==l&&n(Object.assign(Object.assign({},w),{day:e}),l)||void 0!==s&&o(Object.assign(Object.assign({},w),{day:e}),s))));w.day=W(m,e)}if(void 0!==c&&void 0!==d){const e=d.filter((e=>!(void 0!==(null==l?void 0:l.hour)&&t(w,l)&&e<l.hour||void 0!==(null==s?void 0:s.hour)&&t(w,s)&&e>s.hour)));w.hour=W(c,e),w.ampm=f(w.hour)}if(void 0!==v&&void 0!==u){const e=u.filter((e=>!(void 0!==(null==l?void 0:l.minute)&&t(w,l)&&w.hour===l.hour&&e<l.minute||void 0!==(null==s?void 0:s.minute)&&t(w,s)&&w.hour===s.hour&&e>s.minute)));w.minute=W(v,e)}return w},W=(e,t)=>{let n=t[0],o=Math.abs(n-e);for(let r=1;r<t.length;r++){const a=t[r],i=Math.abs(a-e);i<o&&(n=a,o=i)}return n},F=e=>Object.assign(Object.assign({},e),{timeZone:"UTC",timeZoneName:void 0}),J=(e,t,n,o={hour:"numeric",minute:"numeric"})=>{const r={hour:t.hour,minute:t.minute};return void 0===r.hour||void 0===r.minute?"Invalid Time":new Intl.DateTimeFormat(e,Object.assign(Object.assign({},F(o)),{hourCycle:n})).format(new Date(p(Object.assign({year:2023,day:1,month:1},r))+"Z"))},S=e=>{const t=e.toString();return t.length>1?t:`0${t}`},H=(e,t)=>{if(0===e)switch(t){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${t}"`)}return i(t)?S(e):e.toString()},R=(e,t,n)=>{if(null===n.day)return null;const o=K(n),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return t?`Today, ${r}`:r},q=(e,t)=>{const n=K(t);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)},z=(e,t)=>Q(e,t,{day:"numeric"}).find((e=>"day"===e.type)).value,B=(e,t)=>L(e,t,{year:"numeric"}),K=e=>{var t,n,o;return new Date(`${null!==(t=e.month)&&void 0!==t?t:1}/${null!==(n=e.day)&&void 0!==n?n:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},L=(e,t,n)=>{const o=K(t);return X(e,F(n)).format(o)},Q=(e,t,n)=>{const o=K(t);return X(e,n).formatToParts(o)},X=(e,t)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},t),{timeZone:"UTC"})),Y=e=>{if("RelativeTimeFormat"in Intl){const t=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return t.charAt(0).toUpperCase()+t.slice(1)}return"Today"},_=e=>{const t=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-t),e},ee=_(new Date("2022T01:00")),te=_(new Date("2022T13:00")),ne=(e,t)=>{const n="am"===t?ee:te,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((e=>"dayPeriod"===e.type));return o?o.value:(e=>void 0===e?"":e.toUpperCase())(t)},oe=e=>Array.isArray(e)?e.join(","):e,re=()=>_(new Date).toISOString(),ae=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],ie=[0,1,2,3,4,5,6,7,8,9,10,11],de=[0,1,2,3,4,5,6,7,8,9,10,11],ue=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],le=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],se=(e,t,n=0)=>{const o=new Intl.DateTimeFormat(e,{weekday:"ios"===t?"short":"narrow"}),r=new Date("11/01/2020"),a=[];for(let e=n;e<n+7;e++){const t=new Date(r);t.setDate(t.getDate()+e),a.push(o.format(t))}return a},ce=(e,t,n)=>{const o=d(e,t),r=new Date(`${e}/1/${t}`).getDay(),a=r>=n?r-(n+1):6-(n-r);let i=[];for(let e=1;e<=o;e++)i.push({day:e,dayOfWeek:(a+e)%7});for(let e=0;e<=a;e++)i=[{day:null,dayOfWeek:null},...i];return i},ve=(e,r,d="h12",u,l,s,c)=>{const v=a(e,d),m=i(v);let y=(e=>{switch(e){case"h11":return ie;case"h12":return de;case"h23":return ue;case"h24":return le;default:throw new Error(`Invalid hour cycle "${e}"`)}})(v),h=ae,f=!0,w=!0;if(s&&(y=y.filter((e=>s.includes(e)))),c&&(h=h.filter((e=>c.includes(e)))),u)if(t(r,u)){if(void 0!==u.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)>=u.hour)),f=u.hour<13),void 0!==u.minute){let e=!1;void 0!==u.hour&&void 0!==r.hour&&r.hour>u.hour&&(e=!0),h=h.filter((t=>!!e||t>=u.minute))}}else n(r,u)&&(y=[],h=[],f=w=!1);return l&&(t(r,l)?(void 0!==l.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)<=l.hour)),w=l.hour>=12),void 0!==l.minute&&r.hour===l.hour&&(h=h.filter((e=>e<=l.minute)))):o(r,l)&&(y=[],h=[],f=w=!1)),{hours:y,minutes:h,am:f,pm:w}},me=(e,t)=>{const o={month:e.month,year:e.year,day:e.day};if(void 0!==t&&(e.month!==t.month||e.year!==t.year)){const r={month:t.month,year:t.year,day:t.day};return n(r,o)?[r,o,U(e)]:[C(e),o,r]}return[C(e),o,U(e)]},ye=(e,t,n,o,r,a={month:"long"})=>{const{year:i}=t,d=[];if(void 0!==r){let t=r;void 0!==(null==o?void 0:o.month)&&(t=t.filter((e=>e<=o.month))),void 0!==(null==n?void 0:n.month)&&(t=t.filter((e=>e>=n.month))),t.forEach((t=>{const n=new Date(`${t}/1/${i} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);d.push({text:o,value:t})}))}else{const t=o&&o.year===i?o.month:12;for(let o=n&&n.year===i?n.month:1;o<=t;o++){const t=new Date(`${o}/1/${i} GMT+0000`),n=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);d.push({text:n,value:o})}}return d},he=(e,t,n,o,r,a={day:"numeric"})=>{const{month:i,year:u}=t,l=[],s=d(i,u),c=null!=(null==o?void 0:o.day)&&o.year===u&&o.month===i?o.day:s,v=null!=(null==n?void 0:n.day)&&n.year===u&&n.month===i?n.day:1;if(void 0!==r){let t=r;t=t.filter((e=>e>=v&&e<=c)),t.forEach((t=>{const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}))}else for(let t=v;t<=c;t++){const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}return l},fe=(e,t,n,o,r)=>{var a,i;let d=[];if(void 0!==r)d=r,void 0!==(null==o?void 0:o.year)&&(d=d.filter((e=>e<=o.year))),void 0!==(null==n?void 0:n.year)&&(d=d.filter((e=>e>=n.year)));else{const{year:e}=t,r=null!==(a=null==o?void 0:o.year)&&void 0!==a?a:e;for(let t=null!==(i=null==n?void 0:n.year)&&void 0!==i?i:e-100;t<=r;t++)d.push(t)}return d.map((n=>({text:B(e,{year:n,month:t.month,day:t.day}),value:n})))},we=(e,t)=>e.month===t.month&&e.year===t.year?[e]:[e,...we(U(e),t)],Oe=(e,n,o,r,a,i)=>{let d=[],u=[],l=we(o,r);return i&&(l=l.filter((({month:e})=>i.includes(e)))),l.forEach((i=>{const l={month:i.month,day:null,year:i.year},s=he(e,l,o,r,a,{month:"short",day:"numeric",weekday:"short"}),c=[],v=[];s.forEach((o=>{const r=t(Object.assign(Object.assign({},l),{day:o.value}),n);v.push({text:r?Y(e):o.text,value:`${l.year}-${l.month}-${o.value}`}),c.push({month:l.month,year:l.year,day:o.value})})),u=[...u,...c],d=[...d,...v]})),{parts:u,items:d}},$e=(e,t,n,o,r,d,u)=>{const l=a(e,n),s=i(l),{hours:c,minutes:v,am:m,pm:y}=ve(e,t,l,o,r,d,u),h=c.map((e=>({text:H(e,l),value:P(e,s,t.ampm)}))),f=v.map((e=>({text:S(e),value:e}))),w=[];return m&&!s&&w.push({text:ne(e,"am"),value:"am"}),y&&!s&&w.push({text:ne(e,"pm"),value:"pm"}),{minutesData:f,hoursData:h,dayPeriodData:w}};export{d as A,Oe as B,ye as C,he as D,fe as E,u as F,$e as G,l as H,se as I,q as J,ce as K,a as L,J as M,L as N,oe as O,h as P,f as Q,A as R,z as a,o as b,t as c,C as d,U as e,m as f,R as g,N as h,n as i,E as j,j as k,I as l,D as m,T as n,k as o,x as p,O as q,w as r,y as s,v as t,p as u,G as v,r as w,re as x,V as y,me as z}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function o(t){try{d(i.next(t))}catch(t){a(t)}}function s(t){try{d(i["throw"](t))}catch(t){a(t)}}function d(t){t.done?n(t.value):r(t.value).then(o,s)}d((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return d([t,e])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-f11a9436.system.js","./p-f233f1e0.system.js","./p-455cd7cc.system.js","./p-4f255d5a.system.js","./p-76019099.system.js","./p-a359fb7d.system.js","./p-4609d030.system.js","./p-f201b53a.system.js","./p-9146695e.system.js","./p-792919fd.system.js","./p-3e1e14d9.system.js","./p-7cc33a9a.system.js","./p-3855fef7.system.js","./p-20d469d0.system.js"],(function(t){"use strict";var e,n,i,r,a,o,s,d,u,c,l,f,h,p,b,m,v,g,x,w,y,k,j,_,T,Y,z,D,M;return{setters:[function(t){e=t.r;n=t.c;i=t.h;r=t.e;a=t.f},function(t){o=t.E;s=t.a},function(t){d=t.g;u=t.r},function(t){c=t.c},function(t){l=t.p},function(t){f=t.O;h=t.d;p=t.e;b=t.i;m=t.j;v=t.k;g=t.f;x=t.g;w=t.h;y=t.s;k=t.G},function(t){j=t.c;_=t.g},function(t){T=t.c;Y=t.b},function(t){z=t.c},function(t){D=t.w},function(t){M=t.createGesture},function(){},function(){},function(){}],execute:function(){function O(t,e,n,i){var r;if(n==="md"){r=t==="top"?8:-8}else{r=t==="top"?10:-10}if(e&&D){P(e,i);var a=e.getBoundingClientRect();if(t==="top"){r+=a.bottom}else if(t==="bottom"){r-=D.innerHeight-a.top}return{top:"".concat(r,"px"),bottom:"".concat(r,"px")}}else{return{top:"calc(".concat(r,"px + var(--ion-safe-area-top, 0px))"),bottom:"calc(".concat(r,"px - var(--ion-safe-area-bottom, 0px))")}}}function P(t,e){if(t.offsetParent===null){l("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.",e)}}var I=function(t,e){return Math.floor(t/2-e/2)};var C=function(t,e){var n=z();var i=z();var r=e.position,a=e.top,o=e.bottom;var s=d(t);var u=s.querySelector(".toast-wrapper");i.addElement(u);switch(r){case"top":i.fromTo("transform","translateY(-100%)","translateY(".concat(a,")"));break;case"middle":var c=I(t.clientHeight,u.clientHeight);u.style.top="".concat(c,"px");i.fromTo("opacity",.01,1);break;default:i.fromTo("transform","translateY(100%)","translateY(".concat(o,")"));break}return n.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(i)};var E=function(t,e){var n=z();var i=z();var r=e.position,a=e.top,o=e.bottom;var s=d(t);var u=s.querySelector(".toast-wrapper");i.addElement(u);switch(r){case"top":i.fromTo("transform","translateY(".concat(a,")"),"translateY(-100%)");break;case"middle":i.fromTo("opacity",.99,0);break;default:i.fromTo("transform","translateY(".concat(o,")"),"translateY(100%)");break}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(i)};var W=function(t,e){var n=z();var i=z();var r=e.position,a=e.top,o=e.bottom;var s=d(t);var u=s.querySelector(".toast-wrapper");i.addElement(u);switch(r){case"top":u.style.setProperty("transform","translateY(".concat(a,")"));i.fromTo("opacity",.01,1);break;case"middle":var c=I(t.clientHeight,u.clientHeight);u.style.top="".concat(c,"px");i.fromTo("opacity",.01,1);break;default:u.style.setProperty("transform","translateY(".concat(o,")"));i.fromTo("opacity",.01,1);break}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(i)};var A=function(t){var e=z();var n=z();var i=d(t);var r=i.querySelector(".toast-wrapper");n.addElement(r).fromTo("opacity",.99,0);return e.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(n)};var H=function(t,e,n){var i=d(t).querySelector(".toast-wrapper");var r=t.clientHeight;var a=i.getBoundingClientRect();var o=0;var s=.5;var u=t.position==="middle"?.5:0;var c=t.position==="top"?-1:1;var l=I(r,a.height);var h=[{offset:0,transform:"translateY(-".concat(l+a.height,"px)")},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:"translateY(".concat(l+a.height,"px)")}];var p=z("toast-swipe-to-dismiss-animation").addElement(i).duration(100);switch(t.position){case"middle":o=r+a.height;p.keyframes(h);p.progressStart(true,.5);break;case"top":o=a.bottom;p.keyframes([{offset:0,transform:"translateY(".concat(e.top,")")},{offset:1,transform:"translateY(-100%)"}]);p.progressStart(true,0);break;case"bottom":default:o=r-a.top;p.keyframes([{offset:0,transform:"translateY(".concat(e.bottom,")")},{offset:1,transform:"translateY(100%)"}]);p.progressStart(true,0);break}var b=function(t){return t*c/o};var m=function(t){var e=u+b(t.deltaY);p.progressStep(e)};var v=function(e){var r=e.velocityY;var a=(e.deltaY+r*1e3)/o*c;g.enable(false);var d=true;var u=1;var f=0;var m=0;if(t.position==="middle"){d=a>=s/2||a<=-s/2;u=1;f=0;var v=i.getBoundingClientRect();var x=v.top-l;var w="".concat(x,"px");var y=e.deltaY<=0?-1:1;var k=(l+v.height)*y;var j=d?"".concat(k,"px"):"0px";var _=[{offset:0,transform:"translateY(".concat(w,")")},{offset:1,transform:"translateY(".concat(j,")")}];p.keyframes(_);m=k-x}else{d=a>=s;u=d?1:0;f=b(e.deltaY);var T=d?1-f:f;m=T*o}var Y=Math.min(Math.abs(m)/Math.abs(r),200);p.onFinish((function(){if(d){n();p.destroy()}else{if(t.position==="middle"){p.keyframes(h).progressStart(true,.5)}else{p.progressStart(true,0)}g.enable(true)}}),{oneTimeCallback:true}).progressEnd(u,f,Y)};var g=M({el:i,gestureName:"toast-swipe-to-dismiss",gesturePriority:f,direction:"y",onMove:m,onEnd:v});return g};var L=":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}:host{inset-inline-start: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);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.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;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, var(--ion-background-color-step-50, #f2f2f2));--border-radius:14px;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #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}}";var G=L;var S=":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}:host{inset-inline-start: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);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.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;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, var(--ion-background-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, #0054e9);--color:var(--ion-color-step-50, var(--ion-text-color-step-950, #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, var(--ion-text-color-step-900, #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, 0, 84, 233), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}";var N=S;var q=t("ion_toast",function(){function t(t){var i=this;e(this,t);this.didPresent=n(this,"ionToastDidPresent",7);this.willPresent=n(this,"ionToastWillPresent",7);this.willDismiss=n(this,"ionToastWillDismiss",7);this.didDismiss=n(this,"ionToastDidDismiss",7);this.didPresentShorthand=n(this,"didPresent",7);this.willPresentShorthand=n(this,"willPresent",7);this.willDismissShorthand=n(this,"willDismiss",7);this.didDismissShorthand=n(this,"didDismiss",7);this.delegateController=h(this);this.lockController=c();this.triggerController=p();this.customHTMLEnabled=T.get("innerHTMLTemplatesEnabled",o);this.presented=false;this.dispatchCancelHandler=function(t){var e=t.detail.role;if(b(e)){var n=i.getButtons().find((function(t){return t.role==="cancel"}));i.callButtonHandler(n)}};this.createSwipeGesture=function(t){var e=i.gesture=H(i.el,t,(function(){i.dismiss(undefined,k)}));e.enable(true)};this.destroySwipeGesture=function(){var t=i.gesture;if(t===undefined){return}t.destroy();i.gesture=undefined};this.prefersSwipeGesture=function(){var t=i.swipeGesture;return t==="vertical"};this.revealContentToScreenReader=false;this.overlayIndex=undefined;this.delegate=undefined;this.hasController=false;this.color=undefined;this.enterAnimation=undefined;this.leaveAnimation=undefined;this.cssClass=undefined;this.duration=T.getNumber("toastDuration",0);this.header=undefined;this.layout="baseline";this.message=undefined;this.keyboardClose=false;this.position="bottom";this.positionAnchor=undefined;this.buttons=undefined;this.translucent=false;this.animated=true;this.icon=undefined;this.htmlAttributes=undefined;this.swipeGesture=undefined;this.isOpen=false;this.trigger=undefined}t.prototype.swipeGestureChanged=function(){this.destroySwipeGesture();if(this.presented&&this.prefersSwipeGesture()){this.createSwipeGesture(this.lastPresentedPosition)}};t.prototype.onIsOpenChange=function(t,e){if(t===true&&e===false){this.present()}else if(t===false&&e===true){this.dismiss()}};t.prototype.triggerChanged=function(){var t=this,e=t.trigger,n=t.el,i=t.triggerController;if(e){i.addClickListener(n,e)}};t.prototype.connectedCallback=function(){m(this.el);this.triggerChanged()};t.prototype.disconnectedCallback=function(){this.triggerController.removeClickListener()};t.prototype.componentWillLoad=function(){var t;if(!((t=this.htmlAttributes)===null||t===void 0?void 0:t.id)){v(this.el)}};t.prototype.componentDidLoad=function(){var t=this;if(this.isOpen===true){u((function(){return t.present()}))}this.triggerChanged()};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,i,r,a;var o=this;return __generator(this,(function(s){switch(s.label){case 0:return[4,this.lockController.lock()];case 1:t=s.sent();return[4,this.delegateController.attachViewToDom()];case 2:s.sent();e=this,n=e.el,i=e.position;r=this.getAnchorElement();a=O(i,r,Y(this),n);this.lastPresentedPosition=a;return[4,g(this,"toastEnter",C,W,{position:i,top:a.top,bottom:a.bottom})];case 3:s.sent();this.revealContentToScreenReader=true;if(this.duration>0){this.durationTimeout=setTimeout((function(){return o.dismiss(undefined,"timeout")}),this.duration)}if(this.prefersSwipeGesture()){this.createSwipeGesture(a)}t();return[2]}}))}))};t.prototype.dismiss=function(t,e){return __awaiter(this,void 0,void 0,(function(){var n,i,r,a,o,s,d,u;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.lockController.lock()];case 1:r=c.sent();a=this,o=a.durationTimeout,s=a.position,d=a.lastPresentedPosition;if(o){clearTimeout(o)}return[4,x(this,t,e,"toastLeave",E,A,{position:s,top:(n=d===null||d===void 0?void 0:d.top)!==null&&n!==void 0?n:"",bottom:(i=d===null||d===void 0?void 0:d.bottom)!==null&&i!==void 0?i:""})];case 2:u=c.sent();if(u){this.delegateController.removeViewFromDom();this.revealContentToScreenReader=false}this.lastPresentedPosition=undefined;this.destroySwipeGesture();r();return[2,u]}}))}))};t.prototype.onDidDismiss=function(){return w(this.el,"ionToastDidDismiss")};t.prototype.onWillDismiss=function(){return w(this.el,"ionToastWillDismiss")};t.prototype.getButtons=function(){var t=this.buttons?this.buttons.map((function(t){return typeof t==="string"?{text:t}:t})):[];return t};t.prototype.getAnchorElement=function(){var t=this,e=t.position,n=t.positionAnchor,i=t.el;if(n===undefined){return}if(e==="middle"&&n!==undefined){l('The positionAnchor property is ignored when using position="middle".',this.el);return undefined}if(typeof n==="string"){var r=document.getElementById(n);if(r===null){l('An anchor element with an ID of "'.concat(n,'" was not found in the DOM.'),i);return undefined}return r}if(n instanceof HTMLElement){return n}l("Invalid positionAnchor value:",n,i);return undefined};t.prototype.buttonClick=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(i){switch(i.label){case 0:e=t.role;if(b(e)){return[2,this.dismiss(undefined,e)]}return[4,this.callButtonHandler(t)];case 1:n=i.sent();if(n){return[2,this.dismiss(undefined,e)]}return[2,Promise.resolve()]}}))}))};t.prototype.callButtonHandler=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(i){switch(i.label){case 0:if(!(t===null||t===void 0?void 0:t.handler))return[3,4];i.label=1;case 1:i.trys.push([1,3,,4]);return[4,y(t.handler)];case 2:e=i.sent();if(e===false){return[2,false]}return[3,4];case 3:n=i.sent();console.error(n);return[3,4];case 4:return[2,true]}}))}))};t.prototype.renderButtons=function(t,e){var n;var r=this;if(t.length===0){return}var a=Y(this);var o=(n={"toast-button-group":true},n["toast-button-group-".concat(e)]=true,n);return i("div",{class:o},t.map((function(t){return i("button",Object.assign({},t.htmlAttributes,{type:"button",class:B(t),tabIndex:0,onClick:function(){return r.buttonClick(t)},part:F(t)}),i("div",{class:"toast-button-inner"},t.icon&&i("ion-icon",{"aria-hidden":"true",icon:t.icon,slot:t.text===undefined?"icon-only":undefined,class:"toast-button-icon"}),t.text),a==="md"&&i("ion-ripple-effect",{type:t.icon!==undefined&&t.text===undefined?"unbounded":"bounded"}))})))};t.prototype.renderToastMessage=function(t,e){if(e===void 0){e=null}var n=this,r=n.customHTMLEnabled,a=n.message;if(r){return i("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message",innerHTML:s(a)})}return i("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message"},a)};t.prototype.renderHeader=function(t,e){if(e===void 0){e=null}return i("div",{key:t,class:"toast-header","aria-hidden":e,part:"header"},this.header)};t.prototype.render=function(){var t,e;var n=this,a=n.layout,o=n.el,s=n.revealContentToScreenReader,d=n.header,u=n.message;var c=this.getButtons();var f=c.filter((function(t){return t.side==="start"}));var h=c.filter((function(t){return t.side!=="start"}));var p=Y(this);var b=(t={"toast-wrapper":true},t["toast-".concat(this.position)]=true,t["toast-layout-".concat(a)]=true,t);if(a==="stacked"&&f.length>0&&h.length>0){l("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)}return i(r,Object.assign({key:"34036afc0701173d51c9c11ea4a2e1d65685ba41",tabindex:"-1"},this.htmlAttributes,{style:{zIndex:"".concat(6e4+this.overlayIndex)},class:j(this.color,Object.assign(Object.assign((e={},e[p]=true,e),_(this.cssClass)),{"overlay-hidden":true,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),i("div",{key:"d927e43957f47888ce4e64f1e99c935d55757af7",class:b},i("div",{key:"ca43bc42478181acdf8cdea6601a85fa95d12216",class:"toast-container",part:"container"},this.renderButtons(f,"start"),this.icon!==undefined&&i("ion-icon",{key:"fdd6fb8f6e947ed002bd2e63fdc8ec7e764f4a7d",class:"toast-icon",part:"icon",icon:this.icon,lazy:false,"aria-hidden":"true"}),i("div",{key:"37c16c81ee3e4304379dfbcabdffe73db73e4653",class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!s&&d!==undefined&&this.renderHeader("oldHeader","true"),!s&&u!==undefined&&this.renderToastMessage("oldMessage","true"),s&&d!==undefined&&this.renderHeader("header"),s&&u!==undefined&&this.renderToastMessage("header")),this.renderButtons(h,"end"))))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}},enumerable:false,configurable:true});return t}());var B=function(t){var e;return e={"toast-button":true,"toast-button-icon-only":t.icon!==undefined&&t.text===undefined},e["toast-button-".concat(t.role)]=t.role!==undefined,e["ion-focusable"]=true,e["ion-activatable"]=true,e};var F=function(t){return b(t.role)?"button cancel":"button"};q.style={ios:G,md:N}}}}));
|
|
4
|
+
*/System.register(["./p-f11a9436.system.js","./p-f233f1e0.system.js","./p-455cd7cc.system.js","./p-4f255d5a.system.js","./p-d3a54968.system.js","./p-4748aa16.system.js","./p-4609d030.system.js","./p-f201b53a.system.js","./p-9146695e.system.js","./p-792919fd.system.js","./p-3e1e14d9.system.js","./p-7cc33a9a.system.js","./p-3855fef7.system.js","./p-20d469d0.system.js"],(function(t){"use strict";var e,n,i,r,a,o,s,d,u,c,l,f,h,p,b,m,v,g,x,w,y,k,j,_,T,Y,z,D,M;return{setters:[function(t){e=t.r;n=t.c;i=t.h;r=t.e;a=t.f},function(t){o=t.E;s=t.a},function(t){d=t.g;u=t.r},function(t){c=t.c},function(t){l=t.a},function(t){f=t.O;h=t.d;p=t.e;b=t.i;m=t.j;v=t.k;g=t.f;x=t.g;w=t.h;y=t.s;k=t.G},function(t){j=t.c;_=t.g},function(t){T=t.c;Y=t.b},function(t){z=t.c},function(t){D=t.w},function(t){M=t.createGesture},function(){},function(){},function(){}],execute:function(){function O(t,e,n,i){var r;if(n==="md"){r=t==="top"?8:-8}else{r=t==="top"?10:-10}if(e&&D){P(e,i);var a=e.getBoundingClientRect();if(t==="top"){r+=a.bottom}else if(t==="bottom"){r-=D.innerHeight-a.top}return{top:"".concat(r,"px"),bottom:"".concat(r,"px")}}else{return{top:"calc(".concat(r,"px + var(--ion-safe-area-top, 0px))"),bottom:"calc(".concat(r,"px - var(--ion-safe-area-bottom, 0px))")}}}function P(t,e){if(t.offsetParent===null){l("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.",e)}}var I=function(t,e){return Math.floor(t/2-e/2)};var C=function(t,e){var n=z();var i=z();var r=e.position,a=e.top,o=e.bottom;var s=d(t);var u=s.querySelector(".toast-wrapper");i.addElement(u);switch(r){case"top":i.fromTo("transform","translateY(-100%)","translateY(".concat(a,")"));break;case"middle":var c=I(t.clientHeight,u.clientHeight);u.style.top="".concat(c,"px");i.fromTo("opacity",.01,1);break;default:i.fromTo("transform","translateY(100%)","translateY(".concat(o,")"));break}return n.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(i)};var E=function(t,e){var n=z();var i=z();var r=e.position,a=e.top,o=e.bottom;var s=d(t);var u=s.querySelector(".toast-wrapper");i.addElement(u);switch(r){case"top":i.fromTo("transform","translateY(".concat(a,")"),"translateY(-100%)");break;case"middle":i.fromTo("opacity",.99,0);break;default:i.fromTo("transform","translateY(".concat(o,")"),"translateY(100%)");break}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(i)};var W=function(t,e){var n=z();var i=z();var r=e.position,a=e.top,o=e.bottom;var s=d(t);var u=s.querySelector(".toast-wrapper");i.addElement(u);switch(r){case"top":u.style.setProperty("transform","translateY(".concat(a,")"));i.fromTo("opacity",.01,1);break;case"middle":var c=I(t.clientHeight,u.clientHeight);u.style.top="".concat(c,"px");i.fromTo("opacity",.01,1);break;default:u.style.setProperty("transform","translateY(".concat(o,")"));i.fromTo("opacity",.01,1);break}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(i)};var A=function(t){var e=z();var n=z();var i=d(t);var r=i.querySelector(".toast-wrapper");n.addElement(r).fromTo("opacity",.99,0);return e.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(n)};var H=function(t,e,n){var i=d(t).querySelector(".toast-wrapper");var r=t.clientHeight;var a=i.getBoundingClientRect();var o=0;var s=.5;var u=t.position==="middle"?.5:0;var c=t.position==="top"?-1:1;var l=I(r,a.height);var h=[{offset:0,transform:"translateY(-".concat(l+a.height,"px)")},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:"translateY(".concat(l+a.height,"px)")}];var p=z("toast-swipe-to-dismiss-animation").addElement(i).duration(100);switch(t.position){case"middle":o=r+a.height;p.keyframes(h);p.progressStart(true,.5);break;case"top":o=a.bottom;p.keyframes([{offset:0,transform:"translateY(".concat(e.top,")")},{offset:1,transform:"translateY(-100%)"}]);p.progressStart(true,0);break;case"bottom":default:o=r-a.top;p.keyframes([{offset:0,transform:"translateY(".concat(e.bottom,")")},{offset:1,transform:"translateY(100%)"}]);p.progressStart(true,0);break}var b=function(t){return t*c/o};var m=function(t){var e=u+b(t.deltaY);p.progressStep(e)};var v=function(e){var r=e.velocityY;var a=(e.deltaY+r*1e3)/o*c;g.enable(false);var d=true;var u=1;var f=0;var m=0;if(t.position==="middle"){d=a>=s/2||a<=-s/2;u=1;f=0;var v=i.getBoundingClientRect();var x=v.top-l;var w="".concat(x,"px");var y=e.deltaY<=0?-1:1;var k=(l+v.height)*y;var j=d?"".concat(k,"px"):"0px";var _=[{offset:0,transform:"translateY(".concat(w,")")},{offset:1,transform:"translateY(".concat(j,")")}];p.keyframes(_);m=k-x}else{d=a>=s;u=d?1:0;f=b(e.deltaY);var T=d?1-f:f;m=T*o}var Y=Math.min(Math.abs(m)/Math.abs(r),200);p.onFinish((function(){if(d){n();p.destroy()}else{if(t.position==="middle"){p.keyframes(h).progressStart(true,.5)}else{p.progressStart(true,0)}g.enable(true)}}),{oneTimeCallback:true}).progressEnd(u,f,Y)};var g=M({el:i,gestureName:"toast-swipe-to-dismiss",gesturePriority:f,direction:"y",onMove:m,onEnd:v});return g};var L=":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}:host{inset-inline-start: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);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.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;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, var(--ion-background-color-step-50, #f2f2f2));--border-radius:14px;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #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}}";var G=L;var S=":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}:host{inset-inline-start: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);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.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;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, var(--ion-background-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, #0054e9);--color:var(--ion-color-step-50, var(--ion-text-color-step-950, #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, var(--ion-text-color-step-900, #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, 0, 84, 233), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}";var N=S;var q=t("ion_toast",function(){function t(t){var i=this;e(this,t);this.didPresent=n(this,"ionToastDidPresent",7);this.willPresent=n(this,"ionToastWillPresent",7);this.willDismiss=n(this,"ionToastWillDismiss",7);this.didDismiss=n(this,"ionToastDidDismiss",7);this.didPresentShorthand=n(this,"didPresent",7);this.willPresentShorthand=n(this,"willPresent",7);this.willDismissShorthand=n(this,"willDismiss",7);this.didDismissShorthand=n(this,"didDismiss",7);this.delegateController=h(this);this.lockController=c();this.triggerController=p();this.customHTMLEnabled=T.get("innerHTMLTemplatesEnabled",o);this.presented=false;this.dispatchCancelHandler=function(t){var e=t.detail.role;if(b(e)){var n=i.getButtons().find((function(t){return t.role==="cancel"}));i.callButtonHandler(n)}};this.createSwipeGesture=function(t){var e=i.gesture=H(i.el,t,(function(){i.dismiss(undefined,k)}));e.enable(true)};this.destroySwipeGesture=function(){var t=i.gesture;if(t===undefined){return}t.destroy();i.gesture=undefined};this.prefersSwipeGesture=function(){var t=i.swipeGesture;return t==="vertical"};this.revealContentToScreenReader=false;this.overlayIndex=undefined;this.delegate=undefined;this.hasController=false;this.color=undefined;this.enterAnimation=undefined;this.leaveAnimation=undefined;this.cssClass=undefined;this.duration=T.getNumber("toastDuration",0);this.header=undefined;this.layout="baseline";this.message=undefined;this.keyboardClose=false;this.position="bottom";this.positionAnchor=undefined;this.buttons=undefined;this.translucent=false;this.animated=true;this.icon=undefined;this.htmlAttributes=undefined;this.swipeGesture=undefined;this.isOpen=false;this.trigger=undefined}t.prototype.swipeGestureChanged=function(){this.destroySwipeGesture();if(this.presented&&this.prefersSwipeGesture()){this.createSwipeGesture(this.lastPresentedPosition)}};t.prototype.onIsOpenChange=function(t,e){if(t===true&&e===false){this.present()}else if(t===false&&e===true){this.dismiss()}};t.prototype.triggerChanged=function(){var t=this,e=t.trigger,n=t.el,i=t.triggerController;if(e){i.addClickListener(n,e)}};t.prototype.connectedCallback=function(){m(this.el);this.triggerChanged()};t.prototype.disconnectedCallback=function(){this.triggerController.removeClickListener()};t.prototype.componentWillLoad=function(){var t;if(!((t=this.htmlAttributes)===null||t===void 0?void 0:t.id)){v(this.el)}};t.prototype.componentDidLoad=function(){var t=this;if(this.isOpen===true){u((function(){return t.present()}))}this.triggerChanged()};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,i,r,a;var o=this;return __generator(this,(function(s){switch(s.label){case 0:return[4,this.lockController.lock()];case 1:t=s.sent();return[4,this.delegateController.attachViewToDom()];case 2:s.sent();e=this,n=e.el,i=e.position;r=this.getAnchorElement();a=O(i,r,Y(this),n);this.lastPresentedPosition=a;return[4,g(this,"toastEnter",C,W,{position:i,top:a.top,bottom:a.bottom})];case 3:s.sent();this.revealContentToScreenReader=true;if(this.duration>0){this.durationTimeout=setTimeout((function(){return o.dismiss(undefined,"timeout")}),this.duration)}if(this.prefersSwipeGesture()){this.createSwipeGesture(a)}t();return[2]}}))}))};t.prototype.dismiss=function(t,e){return __awaiter(this,void 0,void 0,(function(){var n,i,r,a,o,s,d,u;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.lockController.lock()];case 1:r=c.sent();a=this,o=a.durationTimeout,s=a.position,d=a.lastPresentedPosition;if(o){clearTimeout(o)}return[4,x(this,t,e,"toastLeave",E,A,{position:s,top:(n=d===null||d===void 0?void 0:d.top)!==null&&n!==void 0?n:"",bottom:(i=d===null||d===void 0?void 0:d.bottom)!==null&&i!==void 0?i:""})];case 2:u=c.sent();if(u){this.delegateController.removeViewFromDom();this.revealContentToScreenReader=false}this.lastPresentedPosition=undefined;this.destroySwipeGesture();r();return[2,u]}}))}))};t.prototype.onDidDismiss=function(){return w(this.el,"ionToastDidDismiss")};t.prototype.onWillDismiss=function(){return w(this.el,"ionToastWillDismiss")};t.prototype.getButtons=function(){var t=this.buttons?this.buttons.map((function(t){return typeof t==="string"?{text:t}:t})):[];return t};t.prototype.getAnchorElement=function(){var t=this,e=t.position,n=t.positionAnchor,i=t.el;if(n===undefined){return}if(e==="middle"&&n!==undefined){l('The positionAnchor property is ignored when using position="middle".',this.el);return undefined}if(typeof n==="string"){var r=document.getElementById(n);if(r===null){l('An anchor element with an ID of "'.concat(n,'" was not found in the DOM.'),i);return undefined}return r}if(n instanceof HTMLElement){return n}l("Invalid positionAnchor value:",n,i);return undefined};t.prototype.buttonClick=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(i){switch(i.label){case 0:e=t.role;if(b(e)){return[2,this.dismiss(undefined,e)]}return[4,this.callButtonHandler(t)];case 1:n=i.sent();if(n){return[2,this.dismiss(undefined,e)]}return[2,Promise.resolve()]}}))}))};t.prototype.callButtonHandler=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(i){switch(i.label){case 0:if(!(t===null||t===void 0?void 0:t.handler))return[3,4];i.label=1;case 1:i.trys.push([1,3,,4]);return[4,y(t.handler)];case 2:e=i.sent();if(e===false){return[2,false]}return[3,4];case 3:n=i.sent();console.error(n);return[3,4];case 4:return[2,true]}}))}))};t.prototype.renderButtons=function(t,e){var n;var r=this;if(t.length===0){return}var a=Y(this);var o=(n={"toast-button-group":true},n["toast-button-group-".concat(e)]=true,n);return i("div",{class:o},t.map((function(t){return i("button",Object.assign({},t.htmlAttributes,{type:"button",class:B(t),tabIndex:0,onClick:function(){return r.buttonClick(t)},part:F(t)}),i("div",{class:"toast-button-inner"},t.icon&&i("ion-icon",{"aria-hidden":"true",icon:t.icon,slot:t.text===undefined?"icon-only":undefined,class:"toast-button-icon"}),t.text),a==="md"&&i("ion-ripple-effect",{type:t.icon!==undefined&&t.text===undefined?"unbounded":"bounded"}))})))};t.prototype.renderToastMessage=function(t,e){if(e===void 0){e=null}var n=this,r=n.customHTMLEnabled,a=n.message;if(r){return i("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message",innerHTML:s(a)})}return i("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message"},a)};t.prototype.renderHeader=function(t,e){if(e===void 0){e=null}return i("div",{key:t,class:"toast-header","aria-hidden":e,part:"header"},this.header)};t.prototype.render=function(){var t,e;var n=this,a=n.layout,o=n.el,s=n.revealContentToScreenReader,d=n.header,u=n.message;var c=this.getButtons();var f=c.filter((function(t){return t.side==="start"}));var h=c.filter((function(t){return t.side!=="start"}));var p=Y(this);var b=(t={"toast-wrapper":true},t["toast-".concat(this.position)]=true,t["toast-layout-".concat(a)]=true,t);if(a==="stacked"&&f.length>0&&h.length>0){l("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)}return i(r,Object.assign({key:"34036afc0701173d51c9c11ea4a2e1d65685ba41",tabindex:"-1"},this.htmlAttributes,{style:{zIndex:"".concat(6e4+this.overlayIndex)},class:j(this.color,Object.assign(Object.assign((e={},e[p]=true,e),_(this.cssClass)),{"overlay-hidden":true,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),i("div",{key:"d927e43957f47888ce4e64f1e99c935d55757af7",class:b},i("div",{key:"ca43bc42478181acdf8cdea6601a85fa95d12216",class:"toast-container",part:"container"},this.renderButtons(f,"start"),this.icon!==undefined&&i("ion-icon",{key:"fdd6fb8f6e947ed002bd2e63fdc8ec7e764f4a7d",class:"toast-icon",part:"icon",icon:this.icon,lazy:false,"aria-hidden":"true"}),i("div",{key:"37c16c81ee3e4304379dfbcabdffe73db73e4653",class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!s&&d!==undefined&&this.renderHeader("oldHeader","true"),!s&&u!==undefined&&this.renderToastMessage("oldMessage","true"),s&&d!==undefined&&this.renderHeader("header"),s&&u!==undefined&&this.renderToastMessage("header")),this.renderButtons(h,"end"))))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}},enumerable:false,configurable:true});return t}());var B=function(t){var e;return e={"toast-button":true,"toast-button-icon-only":t.icon!==undefined&&t.text===undefined},e["toast-button-".concat(t.role)]=t.role!==undefined,e["ion-focusable"]=true,e["ion-activatable"]=true,e};var F=function(t){return b(t.role)?"button cancel":"button"};q.style={ios:G,md:N}}}}));
|