@ionic/core 7.4.3 → 7.4.4-dev.11696537016.1e5ce7a3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ion-content.js +51 -5
- package/components/ion-header.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-router-outlet.js +4 -12
- package/components/ion-segment.js +35 -23
- package/components/ion-tab-bar.js +4 -0
- package/css/core.css +0 -1
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +54 -16
- package/dist/cjs/ion-nav_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_2.cjs.entry.js +35 -24
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -0
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/content/content.js +50 -10
- package/dist/collection/components/header/header.ios.css +25 -0
- package/dist/collection/components/nav/nav.css +0 -1
- package/dist/collection/components/router-outlet/router-outlet.css +0 -1
- package/dist/collection/components/router-outlet/router-outlet.js +3 -11
- package/dist/collection/components/segment/segment.js +35 -23
- package/dist/collection/components/segment/test/scrollable/segment.e2e.js +40 -1
- package/dist/collection/components/tab-bar/tab-bar.js +21 -0
- package/dist/collection/components/tab-bar/test/translucent/tab-bar.e2e.js +30 -0
- package/dist/docs.json +1 -7
- package/dist/esm/ion-app_8.entry.js +55 -17
- package/dist/esm/ion-nav_2.entry.js +1 -1
- package/dist/esm/ion-segment_2.entry.js +35 -24
- package/dist/esm/ion-tab-bar_2.entry.js +4 -0
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-6b3784a2.system.entry.js +4 -0
- package/dist/ionic/p-6d5c54f2.system.entry.js +4 -0
- package/dist/ionic/p-73eba881.system.js +1 -1
- package/dist/ionic/p-7b15d413.entry.js +4 -0
- package/dist/ionic/p-8f36cde3.system.entry.js +4 -0
- package/dist/ionic/p-b79eb3cd.entry.js +4 -0
- package/dist/ionic/p-c6f41736.entry.js +4 -0
- package/dist/ionic/p-e263255c.system.entry.js +4 -0
- package/dist/ionic/{p-1d67e7cb.entry.js → p-e7d69cad.entry.js} +1 -1
- package/dist/types/components/content/content.d.ts +2 -1
- package/dist/types/components/router-outlet/router-outlet.d.ts +1 -2
- package/dist/types/components/segment/segment.d.ts +1 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +8 -0
- package/hydrate/index.js +93 -41
- package/package.json +2 -2
- package/dist/ionic/p-26e8b917.system.entry.js +0 -4
- package/dist/ionic/p-414a1506.entry.js +0 -4
- package/dist/ionic/p-4603df44.system.entry.js +0 -4
- package/dist/ionic/p-50327060.entry.js +0 -4
- package/dist/ionic/p-8f245bb0.system.entry.js +0 -4
- package/dist/ionic/p-afafb6bf.system.entry.js +0 -4
- package/dist/ionic/p-c112f687.entry.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,o,n){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,r){function a(t){try{c(n.next(t))}catch(t){r(t)}}function s(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?o(t.value):i(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,i&&(r=s[0]&2?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;if(i=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;i=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(s[0]===6&&o.label<r[1]){o.label=r[1];r=s;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(s);break}if(r[2])o.ops.pop();o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t];i=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
|
|
2
|
+
/*!
|
|
3
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
+
*/System.register(["./p-26fbffd4.system.js","./p-815c2fba.system.js","./p-819ff3b9.system.js","./p-44bc8b45.system.js","./p-9f9efb31.system.js"],(function(t,e){"use strict";var o,n,i,r,a,s,c,l,d,u,h,b,g,m,f;return{setters:[function(t){o=t.r;n=t.d;i=t.w;r=t.h;a=t.H;s=t.f;c=t.i},function(t){l=t.r;d=t.a;u=t.b;h=t.k},function(t){b=t.i},function(t){g=t.c;m=t.h},function(t){f=t.b}],execute:function(){var v=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.065);border-radius:8px;overflow:hidden;z-index:0}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.065)}:host(.in-toolbar){-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:auto}:host(.in-toolbar:not(.ion-color)){background:var(--ion-toolbar-segment-background, var(--background))}:host(.in-toolbar-color:not(.ion-color)){background:rgba(var(--ion-color-contrast-rgb), 0.11)}";var p=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:transparent;grid-auto-columns:minmax(auto, 360px)}:host(.in-toolbar){min-height:var(--min-height)}:host(.segment-scrollable) ::slotted(ion-segment-button){min-width:auto}";var k=t("ion_segment",function(){function t(t){var e=this;o(this,t);this.ionChange=n(this,"ionChange",7);this.ionSelect=n(this,"ionSelect",7);this.ionStyle=n(this,"ionStyle",7);this.onClick=function(t){var o=t.target;var n=e.checked;if(o.tagName==="ION-SEGMENT"){return}e.value=o.value;if(o!==n){e.emitValueChange()}if(e.scrollable||!e.swipeGesture){if(n){e.checkButton(n,o)}else{e.setCheckedClasses()}}};this.getSegmentButton=function(t){var o,n;var i=e.getButtons().filter((function(t){return!t.disabled}));var r=i.findIndex((function(t){return t===document.activeElement}));switch(t){case"first":return i[0];case"last":return i[i.length-1];case"next":return(o=i[r+1])!==null&&o!==void 0?o:i[0];case"previous":return(n=i[r-1])!==null&&n!==void 0?n:i[i.length-1];default:return null}};this.activated=false;this.color=undefined;this.disabled=false;this.scrollable=false;this.swipeGesture=true;this.value=undefined;this.selectOnFocus=false}t.prototype.colorChanged=function(t,e){if(e===undefined&&t!==undefined||e!==undefined&&t===undefined){this.emitStyle()}};t.prototype.swipeGestureChanged=function(){this.gestureChanged()};t.prototype.valueChanged=function(t){this.ionSelect.emit({value:t});this.scrollActiveButtonIntoView()};t.prototype.disabledChanged=function(){this.gestureChanged();var t=this.getButtons();for(var e=0,o=t;e<o.length;e++){var n=o[e];n.disabled=this.disabled}};t.prototype.gestureChanged=function(){if(this.gesture){this.gesture.enable(!this.scrollable&&!this.disabled&&this.swipeGesture)}};t.prototype.connectedCallback=function(){this.emitStyle()};t.prototype.componentWillLoad=function(){this.emitStyle()};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;var o=this;return __generator(this,(function(n){switch(n.label){case 0:this.setCheckedClasses();l((function(){o.scrollActiveButtonIntoView()}));t=this;return[4,e.import("./p-fa8d4788.system.js")];case 1:t.gesture=n.sent().createGesture({el:this.el,gestureName:"segment",gesturePriority:100,threshold:0,passive:false,onStart:function(t){return o.onStart(t)},onMove:function(t){return o.onMove(t)},onEnd:function(t){return o.onEnd(t)}});this.gestureChanged();if(this.disabled){this.disabledChanged()}return[2]}}))}))};t.prototype.onStart=function(t){this.valueBeforeGesture=this.value;this.activate(t)};t.prototype.onMove=function(t){this.setNextIndex(t)};t.prototype.onEnd=function(t){this.setActivated(false);this.setNextIndex(t,true);t.event.stopImmediatePropagation();var e=this.value;if(e!==undefined){if(this.valueBeforeGesture!==e){this.emitValueChange()}}this.valueBeforeGesture=undefined};t.prototype.emitValueChange=function(){var t=this.value;this.ionChange.emit({value:t})};t.prototype.getButtons=function(){return Array.from(this.el.querySelectorAll("ion-segment-button"))};Object.defineProperty(t.prototype,"checked",{get:function(){var t=this;return this.getButtons().find((function(e){return e.value===t.value}))},enumerable:false,configurable:true});t.prototype.setActivated=function(t){var e=this.getButtons();e.forEach((function(e){if(t){e.classList.add("segment-button-activated")}else{e.classList.remove("segment-button-activated")}}));this.activated=t};t.prototype.activate=function(t){var e=this;var o=t.event.target;var n=this.getButtons();var i=n.find((function(t){return t.value===e.value}));if(o.tagName!=="ION-SEGMENT-BUTTON"){return}if(!i){this.value=o.value;this.setCheckedClasses()}if(this.value===o.value){this.setActivated(true)}};t.prototype.getIndicator=function(t){var e=t.shadowRoot||t;return e.querySelector(".segment-button-indicator")};t.prototype.checkButton=function(t,e){var o=this.getIndicator(t);var n=this.getIndicator(e);if(o===null||n===null){return}var r=o.getBoundingClientRect();var a=n.getBoundingClientRect();var s=r.width/a.width;var c=r.left-a.left;var l="translate3d(".concat(c,"px, 0, 0) scaleX(").concat(s,")");i((function(){n.classList.remove("segment-button-indicator-animated");n.style.setProperty("transform",l);n.getBoundingClientRect();n.classList.add("segment-button-indicator-animated");n.style.setProperty("transform","")}));this.value=e.value;this.setCheckedClasses()};t.prototype.setCheckedClasses=function(){var t=this;var e=this.getButtons();var o=e.findIndex((function(e){return e.value===t.value}));var n=o+1;for(var i=0,r=e;i<r.length;i++){var a=r[i];a.classList.remove("segment-button-after-checked")}if(n<e.length){e[n].classList.add("segment-button-after-checked")}};t.prototype.scrollActiveButtonIntoView=function(){var t=this,e=t.scrollable,o=t.value;if(e){var n=this.getButtons();var i=n.find((function(t){return t.value===o}));if(i!==undefined){i.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}};t.prototype.setNextIndex=function(t,e){var o=this;if(e===void 0){e=false}var n=b(this.el);var i=this.activated;var r=this.getButtons();var a=r.findIndex((function(t){return t.value===o.value}));var s=r[a];var c;var l;if(a===-1){return}var d=s.getBoundingClientRect();var u=d.left;var h=d.width;var g=t.currentX;var m=d.top+d.height/2;var f=this.el.getRootNode();var v=f.elementFromPoint(g,m);var p=n?g>u+h:g<u;var k=n?g<u:g>u+h;if(i&&!e){if(p){var x=a-1;if(x>=0){l=x}}else if(k){if(i&&!e){var x=a+1;if(x<r.length){l=x}}}if(l!==undefined&&!r[l].disabled){c=r[l]}}if(!i&&e){c=v}if(c!=null){if(c.tagName==="ION-SEGMENT"){return false}if(s!==c){this.checkButton(s,c)}}return true};t.prototype.emitStyle=function(){this.ionStyle.emit({segment:true})};t.prototype.onKeyDown=function(t){var e=b(this.el);var o=this.selectOnFocus;var n;switch(t.key){case"ArrowRight":t.preventDefault();n=e?this.getSegmentButton("previous"):this.getSegmentButton("next");break;case"ArrowLeft":t.preventDefault();n=e?this.getSegmentButton("next"):this.getSegmentButton("previous");break;case"Home":t.preventDefault();n=this.getSegmentButton("first");break;case"End":t.preventDefault();n=this.getSegmentButton("last");break;case" ":case"Enter":t.preventDefault();n=document.activeElement;o=true}if(!n){return}if(o){var i=this.checked;this.checkButton(i||n,n);if(n!==i){this.emitValueChange()}}n.setFocus()};t.prototype.render=function(){var t;var e=f(this);return r(a,{role:"tablist",onClick:this.onClick,class:g(this.color,(t={},t[e]=true,t["in-toolbar"]=m("ion-toolbar",this.el),t["in-toolbar-color"]=m("ion-toolbar[color]",this.el),t["segment-activated"]=this.activated,t["segment-disabled"]=this.disabled,t["segment-scrollable"]=this.scrollable,t))},r("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{color:["colorChanged"],swipeGesture:["swipeGestureChanged"],value:["valueChanged"],disabled:["disabledChanged"]}},enumerable:false,configurable:true});return t}());k.style={ios:v,md:p};var x=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;-ms-flex-direction:row;flex-direction:row;min-width:70px;min-height:28px;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;-webkit-transition:160ms opacity ease-in-out;transition:160ms opacity ease-in-out;-webkit-transition-delay:100ms;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}.segment-button-indicator{-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;left:0;right:0;top:0;bottom:0}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:var(--ion-color-contrast)}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}';var y=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}';var w=0;var C=t("ion_segment_button",function(){function t(t){var e=this;o(this,t);this.segmentEl=null;this.inheritedAttributes={};this.updateStyle=function(){c(e)};this.updateState=function(){var t=e.segmentEl;if(t){e.checked=t.value===e.value;if(t.disabled){e.disabled=true}}};this.checked=false;this.disabled=false;this.layout="icon-top";this.type="button";this.value="ion-sb-"+w++}t.prototype.valueChanged=function(){this.updateState()};t.prototype.connectedCallback=function(){var t=this.segmentEl=this.el.closest("ion-segment");if(t){this.updateState();d(t,"ionSelect",this.updateState);d(t,"ionStyle",this.updateStyle)}};t.prototype.disconnectedCallback=function(){var t=this.segmentEl;if(t){u(t,"ionSelect",this.updateState);u(t,"ionStyle",this.updateStyle);this.segmentEl=null}};t.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign({},h(this.el,["aria-label"]))};Object.defineProperty(t.prototype,"hasLabel",{get:function(){return!!this.el.querySelector("ion-label")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasIcon",{get:function(){return!!this.el.querySelector("ion-icon")},enumerable:false,configurable:true});t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.nativeEl;if(t!==undefined){t.focus()}return[2]}))}))};t.prototype.render=function(){var t;var e=this;var o=this,n=o.checked,i=o.type,s=o.disabled,c=o.hasIcon,l=o.hasLabel,d=o.layout,u=o.segmentEl;var h=f(this);var b=function(){return(u===null||u===void 0?void 0:u.color)!==undefined};return r(a,{class:(t={},t[h]=true,t["in-toolbar"]=m("ion-toolbar",this.el),t["in-toolbar-color"]=m("ion-toolbar[color]",this.el),t["in-segment"]=m("ion-segment",this.el),t["in-segment-color"]=b(),t["segment-button-has-label"]=l,t["segment-button-has-icon"]=c,t["segment-button-has-label-only"]=l&&!c,t["segment-button-has-icon-only"]=c&&!l,t["segment-button-disabled"]=s,t["segment-button-checked"]=n,t["segment-button-layout-".concat(d)]=true,t["ion-activatable"]=true,t["ion-activatable-instant"]=true,t["ion-focusable"]=true,t)},r("button",Object.assign({"aria-selected":n?"true":"false",role:"tab",ref:function(t){return e.nativeEl=t},type:i,class:"button-native",part:"native",disabled:s},this.inheritedAttributes),r("span",{class:"button-inner"},r("slot",null)),h==="md"&&r("ion-ripple-effect",null)),r("div",{part:"indicator",class:{"segment-button-indicator":true,"segment-button-indicator-animated":true}},r("div",{part:"indicator-background",class:"segment-button-indicator-background"})))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());C.style={ios:x,md:y}}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,d as i,h as s,f as e,H as o}from"./p-903c36fe.js";import{g as n}from"./p-7c2bac85.js";import{o as r,s as a}from"./p-63eb0acd.js";import{l as h,t as c,s as d,d as l,b as u,c as v}from"./p-9649c54e.js";import{b as f,c as m}from"./p-7a590a28.js";import{a as p}from"./p-b287ab05.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=f(this);this.swipeGesture=m.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await import("./p-df7357c5.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)h(t.element,l),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)}getLength(){return 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:c,removeStart:d,removeCount:f}=s;let m;if(void 0!==d&&void 0!==f){r(d>=0,"removeStart can not be negative"),r(f>=0,"removeCount can not be negative"),m=[];for(let s=d;s<d+f;s++){const e=this.views[s];void 0!==e&&e!==t&&e!==i&&m.push(e)}null!==(e=a.direction)&&void 0!==e||(a.direction="back")}const p=this.views.length+(null!==(o=null==c?void 0:c.length)&&void 0!==o?o:0)-(null!=f?f: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(c){let t=s.insertStart;for(const i of c)this.insertViewAt(i,t),t++;s.enteringRequiresTransition&&(null!==(n=a.direction)&&void 0!==n||(a.direction="forward"))}if(m&&m.length>0){for(const t of m)h(t.element,u),h(t.element,v),h(t.element,l);for(const t of m)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=f(this),r=t.element,a=i&&i.element,h=Object.assign(Object.assign({mode:n,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:o,animated:this.animated&&m.getBoolean("animated",!0),enteringEl:r,leavingEl:a},e),{animationBuilder:e.animationBuilder||this.animation||m.get("navAnimation")}),{hasCompleted:d}=await c(h);return this.transitionFinish(d,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?(h(o,l),this.destroyView(e)):t<s&&d(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",null)}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;overflow:hidden;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,{onClick:this.onClick})}get el(){return e(this)}};export{y as ion_nav,k as ion_nav_link}
|
|
4
|
+
import{r as t,d as i,h as s,f as e,H as o}from"./p-903c36fe.js";import{g as n}from"./p-7c2bac85.js";import{o as r,s as a}from"./p-63eb0acd.js";import{l as h,t as c,s as d,d as l,b as u,c as v}from"./p-9649c54e.js";import{b as m,c as f}from"./p-7a590a28.js";import{a as p}from"./p-b287ab05.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=m(this);this.swipeGesture=f.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await import("./p-df7357c5.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)h(t.element,l),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)}getLength(){return 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:c,removeStart:d,removeCount:m}=s;let f;if(void 0!==d&&void 0!==m){r(d>=0,"removeStart can not be negative"),r(m>=0,"removeCount can not be negative"),f=[];for(let s=d;s<d+m;s++){const e=this.views[s];void 0!==e&&e!==t&&e!==i&&f.push(e)}null!==(e=a.direction)&&void 0!==e||(a.direction="back")}const p=this.views.length+(null!==(o=null==c?void 0:c.length)&&void 0!==o?o:0)-(null!=m?m: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(c){let t=s.insertStart;for(const i of c)this.insertViewAt(i,t),t++;s.enteringRequiresTransition&&(null!==(n=a.direction)&&void 0!==n||(a.direction="forward"))}if(f&&f.length>0){for(const t of f)h(t.element,u),h(t.element,v),h(t.element,l);for(const t of f)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=m(this),r=t.element,a=i&&i.element,h=Object.assign(Object.assign({mode:n,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:o,animated:this.animated&&f.getBoolean("animated",!0),enteringEl:r,leavingEl:a},e),{animationBuilder:e.animationBuilder||this.animation||f.get("navAnimation")}),{hasCompleted:d}=await c(h);return this.transitionFinish(d,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?(h(o,l),this.destroyView(e)):t<s&&d(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",null)}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,{onClick:this.onClick})}get el(){return e(this)}};export{y as ion_nav,k as ion_nav_link}
|
|
@@ -19,6 +19,8 @@ export declare class Content implements ComponentInterface {
|
|
|
19
19
|
private backgroundContentEl?;
|
|
20
20
|
private isMainContent;
|
|
21
21
|
private resizeTimeout;
|
|
22
|
+
private tabsElement;
|
|
23
|
+
private tabsLoadCallback?;
|
|
22
24
|
private detail;
|
|
23
25
|
el: HTMLIonContentElement;
|
|
24
26
|
/**
|
|
@@ -69,7 +71,6 @@ export declare class Content implements ComponentInterface {
|
|
|
69
71
|
ionScrollEnd: EventEmitter<ScrollBaseDetail>;
|
|
70
72
|
connectedCallback(): void;
|
|
71
73
|
disconnectedCallback(): void;
|
|
72
|
-
onAppLoad(): void;
|
|
73
74
|
/**
|
|
74
75
|
* Rotating certain devices can update
|
|
75
76
|
* the safe area insets. As a result,
|
|
@@ -3,10 +3,10 @@ import type { AnimationBuilder, ComponentProps, FrameworkDelegate } from '../../
|
|
|
3
3
|
import type { RouterOutletOptions, SwipeGestureHandler } from '../nav/nav-interface';
|
|
4
4
|
import type { RouteID, RouterDirection, RouteWrite, NavOutlet } from '../router/utils/interface';
|
|
5
5
|
export declare class RouterOutlet implements ComponentInterface, NavOutlet {
|
|
6
|
+
private readonly lockController;
|
|
6
7
|
private activeEl;
|
|
7
8
|
private activeComponent;
|
|
8
9
|
private activeParams;
|
|
9
|
-
private waitPromise?;
|
|
10
10
|
private gesture?;
|
|
11
11
|
private ani?;
|
|
12
12
|
private gestureOrAnimationInProgress;
|
|
@@ -43,6 +43,5 @@ export declare class RouterOutlet implements ComponentInterface, NavOutlet {
|
|
|
43
43
|
getRouteId(): Promise<RouteID | undefined>;
|
|
44
44
|
private setRoot;
|
|
45
45
|
private transition;
|
|
46
|
-
private lock;
|
|
47
46
|
render(): any;
|
|
48
47
|
}
|
|
@@ -27,8 +27,16 @@ export declare class TabBar implements ComponentInterface {
|
|
|
27
27
|
translucent: boolean;
|
|
28
28
|
/** @internal */
|
|
29
29
|
ionTabBarChanged: EventEmitter<TabBarChangedEventDetail>;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* This event is used in IonContent to correctly
|
|
33
|
+
* calculate the fullscreen content offsets
|
|
34
|
+
* when IonTabBar is used.
|
|
35
|
+
*/
|
|
36
|
+
ionTabBarLoaded: EventEmitter<void>;
|
|
30
37
|
componentWillLoad(): void;
|
|
31
38
|
connectedCallback(): Promise<void>;
|
|
32
39
|
disconnectedCallback(): void;
|
|
40
|
+
componentDidLoad(): void;
|
|
33
41
|
render(): any;
|
|
34
42
|
}
|
package/hydrate/index.js
CHANGED
|
@@ -12503,6 +12503,7 @@ class Content {
|
|
|
12503
12503
|
this.cBottom = -1;
|
|
12504
12504
|
this.isMainContent = true;
|
|
12505
12505
|
this.resizeTimeout = null;
|
|
12506
|
+
this.tabsElement = null;
|
|
12506
12507
|
// Detail is used in a hot loop in the scroll event, by allocating it here
|
|
12507
12508
|
// V8 will be able to inline any read/write to it since it's a monomorphic class.
|
|
12508
12509
|
// https://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.html
|
|
@@ -12533,12 +12534,57 @@ class Content {
|
|
|
12533
12534
|
}
|
|
12534
12535
|
connectedCallback() {
|
|
12535
12536
|
this.isMainContent = this.el.closest('ion-menu, ion-popover, ion-modal') === null;
|
|
12537
|
+
/**
|
|
12538
|
+
* The fullscreen content offsets need to be
|
|
12539
|
+
* computed after the tab bar has loaded. Since
|
|
12540
|
+
* lazy evaluation means components are not hydrated
|
|
12541
|
+
* at the same time, we need to wait for the ionTabBarLoaded
|
|
12542
|
+
* event to fire. This does not impact dist-custom-elements
|
|
12543
|
+
* because there is no hydration there.
|
|
12544
|
+
*/
|
|
12545
|
+
if (hasLazyBuild(this.el)) {
|
|
12546
|
+
/**
|
|
12547
|
+
* We need to cache the reference to the tabs.
|
|
12548
|
+
* If just the content is unmounted then we won't
|
|
12549
|
+
* be able to query for the closest tabs on disconnectedCallback
|
|
12550
|
+
* since the content has been removed from the DOM tree.
|
|
12551
|
+
*/
|
|
12552
|
+
const closestTabs = (this.tabsElement = this.el.closest('ion-tabs'));
|
|
12553
|
+
if (closestTabs !== null) {
|
|
12554
|
+
/**
|
|
12555
|
+
* When adding and removing the event listener
|
|
12556
|
+
* we need to make sure we pass the same function reference
|
|
12557
|
+
* otherwise the event listener will not be removed properly.
|
|
12558
|
+
* We can't only pass `this.resize` because "this" in the function
|
|
12559
|
+
* context becomes a reference to IonTabs instead of IonContent.
|
|
12560
|
+
*
|
|
12561
|
+
* Additionally, we listen for ionTabBarLoaded on the IonTabs
|
|
12562
|
+
* instance rather than the IonTabBar instance. It's possible for
|
|
12563
|
+
* a tab bar to be conditionally rendered/mounted. Since ionTabBarLoaded
|
|
12564
|
+
* bubbles, we can catch any instances of child tab bars loading by listening
|
|
12565
|
+
* on IonTabs.
|
|
12566
|
+
*/
|
|
12567
|
+
this.tabsLoadCallback = () => this.resize();
|
|
12568
|
+
closestTabs.addEventListener('ionTabBarLoaded', this.tabsLoadCallback);
|
|
12569
|
+
}
|
|
12570
|
+
}
|
|
12536
12571
|
}
|
|
12537
12572
|
disconnectedCallback() {
|
|
12538
12573
|
this.onScrollEnd();
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12574
|
+
if (hasLazyBuild(this.el)) {
|
|
12575
|
+
/**
|
|
12576
|
+
* The event listener and tabs caches need to
|
|
12577
|
+
* be cleared otherwise this will create a memory
|
|
12578
|
+
* leak where the IonTabs instance can never be
|
|
12579
|
+
* garbage collected.
|
|
12580
|
+
*/
|
|
12581
|
+
const { tabsElement, tabsLoadCallback } = this;
|
|
12582
|
+
if (tabsElement !== null && tabsLoadCallback !== undefined) {
|
|
12583
|
+
tabsElement.removeEventListener('ionTabBarLoaded', tabsLoadCallback);
|
|
12584
|
+
}
|
|
12585
|
+
this.tabsElement = null;
|
|
12586
|
+
this.tabsLoadCallback = undefined;
|
|
12587
|
+
}
|
|
12542
12588
|
}
|
|
12543
12589
|
/**
|
|
12544
12590
|
* Rotating certain devices can update
|
|
@@ -12785,7 +12831,7 @@ class Content {
|
|
|
12785
12831
|
"scrollByPoint": [64],
|
|
12786
12832
|
"scrollToPoint": [64]
|
|
12787
12833
|
},
|
|
12788
|
-
"$listeners$": [[
|
|
12834
|
+
"$listeners$": [[9, "resize", "onResize"]],
|
|
12789
12835
|
"$lazyBundleId$": "-",
|
|
12790
12836
|
"$attrsToReflect$": [["color", "color"]]
|
|
12791
12837
|
}; }
|
|
@@ -17417,7 +17463,7 @@ const handleHeaderFade = (scrollEl, baseEl, condenseHeader) => {
|
|
|
17417
17463
|
});
|
|
17418
17464
|
};
|
|
17419
17465
|
|
|
17420
|
-
const headerIosCss = "ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:1px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{height:48px;padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}";
|
|
17466
|
+
const headerIosCss = "ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:1px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{height:48px;padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}ion-header:not(.header-collapse-main):has(~ion-content ion-header[collapse=condense]){opacity:0}";
|
|
17421
17467
|
|
|
17422
17468
|
const headerMdCss = "ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.header-collapse-condense{display:none}.header-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}";
|
|
17423
17469
|
|
|
@@ -23181,7 +23227,7 @@ const convertToViews = (pages) => {
|
|
|
23181
23227
|
.filter((v) => v !== null);
|
|
23182
23228
|
};
|
|
23183
23229
|
|
|
23184
|
-
const navCss = "/*!@:host*/.sc-ion-nav-h{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;
|
|
23230
|
+
const navCss = "/*!@:host*/.sc-ion-nav-h{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";
|
|
23185
23231
|
|
|
23186
23232
|
class Nav {
|
|
23187
23233
|
constructor(hostRef) {
|
|
@@ -30411,7 +30457,7 @@ class RouterLink {
|
|
|
30411
30457
|
}; }
|
|
30412
30458
|
}
|
|
30413
30459
|
|
|
30414
|
-
const routerOutletCss = "/*!@:host*/.sc-ion-router-outlet-h{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;
|
|
30460
|
+
const routerOutletCss = "/*!@:host*/.sc-ion-router-outlet-h{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";
|
|
30415
30461
|
|
|
30416
30462
|
class RouterOutlet {
|
|
30417
30463
|
constructor(hostRef) {
|
|
@@ -30419,6 +30465,7 @@ class RouterOutlet {
|
|
|
30419
30465
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
30420
30466
|
this.ionNavWillChange = createEvent(this, "ionNavWillChange", 3);
|
|
30421
30467
|
this.ionNavDidChange = createEvent(this, "ionNavDidChange", 3);
|
|
30468
|
+
this.lockController = createLockController();
|
|
30422
30469
|
this.gestureOrAnimationInProgress = false;
|
|
30423
30470
|
this.mode = getIonMode$1(this);
|
|
30424
30471
|
this.delegate = undefined;
|
|
@@ -30482,7 +30529,7 @@ class RouterOutlet {
|
|
|
30482
30529
|
}
|
|
30483
30530
|
/** @internal */
|
|
30484
30531
|
async commit(enteringEl, leavingEl, opts) {
|
|
30485
|
-
const unlock = await this.lock();
|
|
30532
|
+
const unlock = await this.lockController.lock();
|
|
30486
30533
|
let changed = false;
|
|
30487
30534
|
try {
|
|
30488
30535
|
changed = await this.transition(enteringEl, leavingEl, opts);
|
|
@@ -30583,16 +30630,6 @@ class RouterOutlet {
|
|
|
30583
30630
|
this.ionNavDidChange.emit();
|
|
30584
30631
|
return true;
|
|
30585
30632
|
}
|
|
30586
|
-
// TODO: FW-5048 - Remove this code in favor of using lock controller from utils
|
|
30587
|
-
async lock() {
|
|
30588
|
-
const p = this.waitPromise;
|
|
30589
|
-
let resolve;
|
|
30590
|
-
this.waitPromise = new Promise((r) => (resolve = r));
|
|
30591
|
-
if (p !== undefined) {
|
|
30592
|
-
await p;
|
|
30593
|
-
}
|
|
30594
|
-
return resolve;
|
|
30595
|
-
}
|
|
30596
30633
|
render() {
|
|
30597
30634
|
return hAsync("slot", null);
|
|
30598
30635
|
}
|
|
@@ -31130,29 +31167,7 @@ class Segment {
|
|
|
31130
31167
|
* Used by `ion-segment-button` to determine if the button should be checked.
|
|
31131
31168
|
*/
|
|
31132
31169
|
this.ionSelect.emit({ value });
|
|
31133
|
-
|
|
31134
|
-
const buttons = this.getButtons();
|
|
31135
|
-
const activeButton = buttons.find((button) => button.value === value);
|
|
31136
|
-
if (activeButton !== undefined) {
|
|
31137
|
-
/**
|
|
31138
|
-
* Scrollable segment buttons should be
|
|
31139
|
-
* centered within the view including
|
|
31140
|
-
* buttons that are partially offscreen.
|
|
31141
|
-
*/
|
|
31142
|
-
activeButton.scrollIntoView({
|
|
31143
|
-
behavior: 'smooth',
|
|
31144
|
-
inline: 'center',
|
|
31145
|
-
/**
|
|
31146
|
-
* Segment should scroll on the
|
|
31147
|
-
* horizontal axis. `block: 'nearest'`
|
|
31148
|
-
* ensures that the vertical axis
|
|
31149
|
-
* does not scroll if the segment
|
|
31150
|
-
* as a whole is already in view.
|
|
31151
|
-
*/
|
|
31152
|
-
block: 'nearest',
|
|
31153
|
-
});
|
|
31154
|
-
}
|
|
31155
|
-
}
|
|
31170
|
+
this.scrollActiveButtonIntoView();
|
|
31156
31171
|
}
|
|
31157
31172
|
disabledChanged() {
|
|
31158
31173
|
this.gestureChanged();
|
|
@@ -31174,6 +31189,13 @@ class Segment {
|
|
|
31174
31189
|
}
|
|
31175
31190
|
async componentDidLoad() {
|
|
31176
31191
|
this.setCheckedClasses();
|
|
31192
|
+
/**
|
|
31193
|
+
* We need to wait for the buttons to all be rendered
|
|
31194
|
+
* before we can scroll.
|
|
31195
|
+
*/
|
|
31196
|
+
raf(() => {
|
|
31197
|
+
this.scrollActiveButtonIntoView();
|
|
31198
|
+
});
|
|
31177
31199
|
this.gesture = (await Promise.resolve().then(function () { return index; })).createGesture({
|
|
31178
31200
|
el: this.el,
|
|
31179
31201
|
gestureName: 'segment',
|
|
@@ -31302,6 +31324,32 @@ class Segment {
|
|
|
31302
31324
|
buttons[next].classList.add('segment-button-after-checked');
|
|
31303
31325
|
}
|
|
31304
31326
|
}
|
|
31327
|
+
scrollActiveButtonIntoView() {
|
|
31328
|
+
const { scrollable, value } = this;
|
|
31329
|
+
if (scrollable) {
|
|
31330
|
+
const buttons = this.getButtons();
|
|
31331
|
+
const activeButton = buttons.find((button) => button.value === value);
|
|
31332
|
+
if (activeButton !== undefined) {
|
|
31333
|
+
/**
|
|
31334
|
+
* Scrollable segment buttons should be
|
|
31335
|
+
* centered within the view including
|
|
31336
|
+
* buttons that are partially offscreen.
|
|
31337
|
+
*/
|
|
31338
|
+
activeButton.scrollIntoView({
|
|
31339
|
+
behavior: 'smooth',
|
|
31340
|
+
inline: 'center',
|
|
31341
|
+
/**
|
|
31342
|
+
* Segment should scroll on the
|
|
31343
|
+
* horizontal axis. `block: 'nearest'`
|
|
31344
|
+
* ensures that the vertical axis
|
|
31345
|
+
* does not scroll if the segment
|
|
31346
|
+
* as a whole is already in view.
|
|
31347
|
+
*/
|
|
31348
|
+
block: 'nearest',
|
|
31349
|
+
});
|
|
31350
|
+
}
|
|
31351
|
+
}
|
|
31352
|
+
}
|
|
31305
31353
|
setNextIndex(detail, isEnd = false) {
|
|
31306
31354
|
const rtl = isRTL$1(this.el);
|
|
31307
31355
|
const activated = this.activated;
|
|
@@ -32712,6 +32760,7 @@ class TabBar {
|
|
|
32712
32760
|
constructor(hostRef) {
|
|
32713
32761
|
registerInstance(this, hostRef);
|
|
32714
32762
|
this.ionTabBarChanged = createEvent(this, "ionTabBarChanged", 7);
|
|
32763
|
+
this.ionTabBarLoaded = createEvent(this, "ionTabBarLoaded", 7);
|
|
32715
32764
|
this.keyboardCtrl = null;
|
|
32716
32765
|
this.keyboardVisible = false;
|
|
32717
32766
|
this.color = undefined;
|
|
@@ -32746,6 +32795,9 @@ class TabBar {
|
|
|
32746
32795
|
this.keyboardCtrl.destroy();
|
|
32747
32796
|
}
|
|
32748
32797
|
}
|
|
32798
|
+
componentDidLoad() {
|
|
32799
|
+
this.ionTabBarLoaded.emit();
|
|
32800
|
+
}
|
|
32749
32801
|
render() {
|
|
32750
32802
|
const { color, translucent, keyboardVisible } = this;
|
|
32751
32803
|
const mode = getIonMode$1(this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/core",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.4-dev.11696537016.1e5ce7a3",
|
|
4
4
|
"description": "Base components for Ionic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@axe-core/playwright": "^4.7.3",
|
|
40
|
-
"@capacitor/core": "^5.4.
|
|
40
|
+
"@capacitor/core": "^5.4.2",
|
|
41
41
|
"@capacitor/haptics": "^5.0.6",
|
|
42
42
|
"@capacitor/keyboard": "^5.0.6",
|
|
43
43
|
"@capacitor/status-bar": "^5.0.6",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,o,e,n){function r(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function s(t){try{l(n["throw"](t))}catch(t){i(t)}}function l(t){t.done?e(t.value):r(t.value).then(a,s)}l((n=n.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(o){return l([t,o])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(e=0)),e)try{if(n=1,r&&(i=s[0]&2?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;r=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1];i=s;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(s);break}if(i[2])e.ops.pop();e.trys.pop();continue}s=o.call(t,e)}catch(t){s=[6,t];r=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-26fbffd4.system.js","./p-9f9efb31.system.js","./p-815c2fba.system.js","./p-819ff3b9.system.js","./p-44bc8b45.system.js","./p-64475ab5.system.js","./p-ff5a10f9.system.js","./p-c4f2dce7.system.js","./p-613d4042.system.js","./p-a760fd9a.system.js","./p-479cdbf8.system.js","./p-0e94957a.system.js","./p-bba2ce59.system.js","./p-ccdcb022.system.js"],(function(t,o){"use strict";var e,n,r,i,a,s,l,c,d,u,p,f,b,h,g,v,m,y,x,w,k,_,S,z,C,E,T;return{setters:[function(t){e=t.r;n=t.h;r=t.H;i=t.f;a=t.d;s=t.e;l=t.i;c=t.w},function(t){d=t.b;u=t.c;p=t.a},function(t){f=t.c;b=t.l;h=t.i;g=t.s;v=t.m},function(t){m=t.i},function(t){y=t.c;x=t.h},function(t){w=t.a;k=t.p;_=t.g},function(t){S=t.c},function(t){z=t.g},function(t){C=t.a;E=t.d},function(t){T=t.t},function(){},function(){},function(){},function(){}],execute:function(){var P="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";var H=t("ion_app",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){var t=this;{O((function(){return __awaiter(t,void 0,void 0,(function(){var t,e,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:t=p(window,"hybrid");if(!u.getBoolean("_testing")){o.import("./p-9ab6f3e6.system.js").then((function(t){return t.startTapClick(u)}))}if(u.getBoolean("statusTap",t)){o.import("./p-5c24c115.system.js").then((function(t){return t.startStatusTap()}))}if(u.getBoolean("inputShims",j())){e=p(window,"ios")?"ios":"android";o.import("./p-b132c2c0.system.js").then((function(t){return t.startInputShims(u,e)}))}return[4,o.import("./p-8c15eda7.system.js")];case 1:n=i.sent();if(u.getBoolean("hardwareBackButton",t)){n.startHardwareBackButton()}else{n.blockHardwareBackButton()}if(typeof window!=="undefined"){o.import("./p-41477ad9.system.js").then((function(t){return t.startKeyboardAssist(window)}))}o.import("./p-87411e39.system.js").then((function(t){return r.focusVisible=t.startFocusVisible()}));return[2]}}))}))}))}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){if(this.focusVisible){this.focusVisible.setFocus(t)}return[2]}))}))};t.prototype.render=function(){var t;var o=d(this);return n(r,{class:(t={},t[o]=true,t["ion-page"]=true,t["force-statusbar-padding"]=u.getBoolean("_forceStatusbarPadding"),t)})};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());var j=function(){var t=p(window,"ios")&&p(window,"mobile");if(t){return true}var o=p(window,"android")&&p(window,"mobileweb");if(o){return true}return false};var O=function(t){if("requestIdleCallback"in window){window.requestIdleCallback(t)}else{setTimeout(t,32)}};H.style=P;var L=".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-ios-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:24px;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:24px;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:28px;line-height:0.67}";var B=".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:8px;--padding-end:8px;--box-shadow:none;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-md-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:48px;height:48px}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}";var A=t("ion_buttons",function(){function t(t){e(this,t);this.collapse=false}t.prototype.render=function(){var t;var o=d(this);return n(r,{class:(t={},t[o]=true,t["buttons-collapse"]=this.collapse,t)})};return t}());A.style={ios:L,md:B};var F=':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}';var I=t("ion_content",function(){function t(t){e(this,t);this.ionScrollStart=a(this,"ionScrollStart",7);this.ionScroll=a(this,"ionScroll",7);this.ionScrollEnd=a(this,"ionScrollEnd",7);this.watchDog=null;this.isScrolling=false;this.lastScroll=0;this.queued=false;this.cTop=-1;this.cBottom=-1;this.isMainContent=true;this.resizeTimeout=null;this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:undefined,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:undefined,isScrolling:true};this.color=undefined;this.fullscreen=false;this.forceOverscroll=undefined;this.scrollX=false;this.scrollY=true;this.scrollEvents=false}t.prototype.connectedCallback=function(){this.isMainContent=this.el.closest("ion-menu, ion-popover, ion-modal")===null};t.prototype.disconnectedCallback=function(){this.onScrollEnd()};t.prototype.onAppLoad=function(){this.resize()};t.prototype.onResize=function(){var t=this;if(this.resizeTimeout){clearTimeout(this.resizeTimeout);this.resizeTimeout=null}this.resizeTimeout=setTimeout((function(){if(t.el.offsetParent===null){return}t.resize()}),100)};t.prototype.shouldForceOverscroll=function(){var t=this.forceOverscroll;var o=d(this);return t===undefined?o==="ios"&&p("ios"):t};t.prototype.resize=function(){var t=this;{if(this.fullscreen){s((function(){return t.readDimensions()}))}else if(this.cTop!==0||this.cBottom!==0){this.cTop=this.cBottom=0;l(this)}}};t.prototype.readDimensions=function(){var t=q(this.el);var o=Math.max(this.el.offsetTop,0);var e=Math.max(t.offsetHeight-o-this.el.offsetHeight,0);var n=o!==this.cTop||e!==this.cBottom;if(n){this.cTop=o;this.cBottom=e;l(this)}};t.prototype.onScroll=function(t){var o=this;var e=Date.now();var n=!this.isScrolling;this.lastScroll=e;if(n){this.onScrollStart()}if(!this.queued&&this.scrollEvents){this.queued=true;s((function(e){o.queued=false;o.detail.event=t;D(o.detail,o.scrollEl,e,n);o.ionScroll.emit(o.detail)}))}};t.prototype.getScrollElement=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){switch(o.label){case 0:if(!!this.scrollEl)return[3,2];return[4,new Promise((function(o){return f(t.el,o)}))];case 1:o.sent();o.label=2;case 2:return[2,Promise.resolve(this.scrollEl)]}}))}))};t.prototype.getBackgroundElement=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){switch(o.label){case 0:if(!!this.backgroundContentEl)return[3,2];return[4,new Promise((function(o){return f(t.el,o)}))];case 1:o.sent();o.label=2;case 2:return[2,Promise.resolve(this.backgroundContentEl)]}}))}))};t.prototype.scrollToTop=function(t){if(t===void 0){t=0}return this.scrollToPoint(undefined,0,t)};t.prototype.scrollToBottom=function(t){if(t===void 0){t=0}return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.getScrollElement()];case 1:o=n.sent();e=o.scrollHeight-o.clientHeight;return[2,this.scrollToPoint(undefined,e,t)]}}))}))};t.prototype.scrollByPoint=function(t,o,e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getScrollElement()];case 1:n=r.sent();return[2,this.scrollToPoint(t+n.scrollLeft,o+n.scrollTop,e)]}}))}))};t.prototype.scrollToPoint=function(t,o,e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var n,r,i,a,s,l,c,d,u;return __generator(this,(function(p){switch(p.label){case 0:return[4,this.getScrollElement()];case 1:n=p.sent();if(e<32){if(o!=null){n.scrollTop=o}if(t!=null){n.scrollLeft=t}return[2]}i=0;a=new Promise((function(t){return r=t}));s=n.scrollTop;l=n.scrollLeft;c=o!=null?o-s:0;d=t!=null?t-l:0;u=function(t){var o=Math.min(1,(t-i)/e)-1;var a=Math.pow(o,3)+1;if(c!==0){n.scrollTop=Math.floor(a*c+s)}if(d!==0){n.scrollLeft=Math.floor(a*d+l)}if(a<1){requestAnimationFrame(u)}else{r()}};requestAnimationFrame((function(t){i=t;u(t)}));return[2,a]}}))}))};t.prototype.onScrollStart=function(){var t=this;this.isScrolling=true;this.ionScrollStart.emit({isScrolling:true});if(this.watchDog){clearInterval(this.watchDog)}this.watchDog=setInterval((function(){if(t.lastScroll<Date.now()-120){t.onScrollEnd()}}),100)};t.prototype.onScrollEnd=function(){if(this.watchDog)clearInterval(this.watchDog);this.watchDog=null;if(this.isScrolling){this.isScrolling=false;this.ionScrollEnd.emit({isScrolling:false})}};t.prototype.render=function(){var t;var o=this;var e=this,i=e.isMainContent,a=e.scrollX,s=e.scrollY,l=e.el;var c=m(l)?"rtl":"ltr";var u=d(this);var p=this.shouldForceOverscroll();var f=u==="ios";var b=i?"main":"div";this.resize();return n(r,{class:y(this.color,(t={},t[u]=true,t["content-sizing"]=x("ion-popover",this.el),t.overscroll=p,t["content-".concat(c)]=true,t)),style:{"--offset-top":"".concat(this.cTop,"px"),"--offset-bottom":"".concat(this.cBottom,"px")}},n("div",{ref:function(t){return o.backgroundContentEl=t},id:"background-content",part:"background"}),n(b,{class:{"inner-scroll":true,"scroll-x":a,"scroll-y":s,overscroll:(a||s)&&p},ref:function(t){return o.scrollEl=t},onScroll:this.scrollEvents?function(t){return o.onScroll(t)}:undefined,part:"scroll"},n("slot",null)),f?n("div",{class:"transition-effect"},n("div",{class:"transition-cover"}),n("div",{class:"transition-shadow"})):null,n("slot",{name:"fixed"}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());var M=function(t){var o;if(t.parentElement){return t.parentElement}if((o=t.parentNode)===null||o===void 0?void 0:o.host){return t.parentNode.host}return null};var q=function(t){var o=t.closest("ion-tabs");if(o){return o}var e=t.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content");if(e){return e}return M(t)};var D=function(t,o,e,n){var r=t.currentX;var i=t.currentY;var a=t.currentTime;var s=o.scrollLeft;var l=o.scrollTop;var c=e-a;if(n){t.startTime=e;t.startX=s;t.startY=l;t.velocityX=t.velocityY=0}t.currentTime=e;t.currentX=t.scrollLeft=s;t.currentY=t.scrollTop=l;t.deltaX=s-t.startX;t.deltaY=l-t.startY;if(c>0&&c<100){var d=(s-r)/c;var u=(l-i)/c;t.velocityX=d*.7+t.velocityX*.3;t.velocityY=u*.7+t.velocityY*.3}};I.style=F;var X=function(t,o){s((function(){var e=t.scrollTop;var n=t.scrollHeight-t.clientHeight;var r=10;var i=n-r;var a=e-i;var s=b(0,1-a/r,1);c((function(){o.style.setProperty("--opacity-scale",s.toString())}))}))};var Z="ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-ios ion-toolbar:first-of-type{--border-width:0.55px 0 0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.footer-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.footer-translucent-ios ion-toolbar{--opacity:.8}}.footer-ios.ion-no-border ion-toolbar:first-of-type{--border-width:0}.footer-collapse-fade ion-toolbar{--opacity-scale:inherit}";var Y="ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.footer-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}";var N=t("ion_footer",function(){function t(t){var o=this;e(this,t);this.keyboardCtrl=null;this.checkCollapsibleFooter=function(){var t=d(o);if(t!=="ios"){return}var e=o.collapse;var n=e==="fade";o.destroyCollapsibleFooter();if(n){var r=o.el.closest("ion-app,ion-page,.ion-page,page-inner");var i=r?w(r):null;if(!i){k(o.el);return}o.setupFadeFooter(i)}};this.setupFadeFooter=function(t){return __awaiter(o,void 0,void 0,(function(){var o,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:e=this;return[4,_(t)];case 1:o=e.scrollEl=r.sent();this.contentScrollCallback=function(){X(o,n.el)};o.addEventListener("scroll",this.contentScrollCallback);X(o,this.el);return[2]}}))}))};this.keyboardVisible=false;this.collapse=undefined;this.translucent=false}t.prototype.componentDidLoad=function(){this.checkCollapsibleFooter()};t.prototype.componentDidUpdate=function(){this.checkCollapsibleFooter()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t;var o=this;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,S((function(t,e){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!(t===false&&e!==undefined))return[3,2];return[4,e];case 1:o.sent();o.label=2;case 2:this.keyboardVisible=t;return[2]}}))}))}))];case 1:t.keyboardCtrl=e.sent();return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.keyboardCtrl){this.keyboardCtrl.destroy()}};t.prototype.destroyCollapsibleFooter=function(){if(this.scrollEl&&this.contentScrollCallback){this.scrollEl.removeEventListener("scroll",this.contentScrollCallback);this.contentScrollCallback=undefined}};t.prototype.render=function(){var t;var o=this,e=o.translucent,i=o.collapse;var a=d(this);var s=this.el.closest("ion-tabs");var l=s===null||s===void 0?void 0:s.querySelector(":scope > ion-tab-bar");return n(r,{role:"contentinfo",class:(t={},t[a]=true,t["footer-".concat(a)]=true,t["footer-translucent"]=e,t["footer-translucent-".concat(a)]=e,t["footer-toolbar-padding"]=!this.keyboardVisible&&(!l||l.slot!=="bottom"),t["footer-collapse-".concat(i)]=i!==undefined,t)},a==="ios"&&e&&n("div",{class:"footer-background"}),n("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());N.style={ios:Z,md:Y};var R="all 0.2s ease-in-out";var W=function(t){var o=document.querySelector("".concat(t,".ion-cloned-element"));if(o!==null){return o}var e=document.createElement(t);e.classList.add("ion-cloned-element");e.style.setProperty("display","none");document.body.appendChild(e);return e};var V=function(t){if(!t){return}var o=t.querySelectorAll("ion-toolbar");return{el:t,toolbars:Array.from(o).map((function(t){var o=t.querySelector("ion-title");return{el:t,background:t.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:o,innerTitleEl:o?o.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(t.querySelectorAll("ion-buttons"))}}))}};var G=function(t,o,e){s((function(){var n=t.scrollTop;var r=b(1,1+-n/500,1.1);var i=e.querySelector("ion-refresher.refresher-native");if(i===null){c((function(){$(o.toolbars,r)}))}}))};var U=function(t,o){if(t.collapse==="fade"){return}if(o===undefined){t.style.removeProperty("--opacity-scale")}else{t.style.setProperty("--opacity-scale",o.toString())}};var K=function(t,o,e){if(!t[0].isIntersecting){return}var n=t[0].intersectionRatio>.9||e<=0?0:(1-t[0].intersectionRatio)*100/75;U(o.el,n===1?undefined:n)};var J=function(t,o,e,n){c((function(){var r=n.scrollTop;K(t,o,r);var i=t[0];var a=i.intersectionRect;var s=a.width*a.height;var l=i.rootBounds.width*i.rootBounds.height;var c=s===0&&l===0;var d=Math.abs(a.left-i.boundingClientRect.left);var u=Math.abs(a.right-i.boundingClientRect.right);var p=s>0&&(d>=5||u>=5);if(c||p){return}if(i.isIntersecting){Q(o,false);Q(e)}else{var f=a.x===0&&a.y===0||a.width!==0&&a.height!==0;if(f&&r>0){Q(o);Q(e,false);U(o.el)}}}))};var Q=function(t,o){if(o===void 0){o=true}var e=t.el;if(o){e.classList.remove("header-collapse-condense-inactive");e.removeAttribute("aria-hidden")}else{e.classList.add("header-collapse-condense-inactive");e.setAttribute("aria-hidden","true")}};var $=function(t,o,e){if(t===void 0){t=[]}if(o===void 0){o=1}if(e===void 0){e=false}t.forEach((function(t){var n=t.ionTitleEl;var r=t.innerTitleEl;if(!n||n.size!=="large"){return}r.style.transition=e?R:"";r.style.transform="scale3d(".concat(o,", ").concat(o,", 1)")}))};var tt=function(t,o,e){s((function(){var n=t.scrollTop;var r=o.clientHeight;var i=e?e.clientHeight:0;if(e!==null&&n<i){o.style.setProperty("--opacity-scale","0");t.style.setProperty("clip-path","inset(".concat(r,"px 0px 0px 0px)"));return}var a=n-i;var s=10;var l=b(0,a/s,1);c((function(){t.style.removeProperty("clip-path");o.style.setProperty("--opacity-scale",l.toString())}))}))};var ot="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:1px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{height:48px;padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}";var et="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.header-collapse-condense{display:none}.header-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}";var nt=t("ion_header",function(){function t(t){var o=this;e(this,t);this.inheritedAttributes={};this.setupFadeHeader=function(t,e){return __awaiter(o,void 0,void 0,(function(){var o,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:n=this;return[4,_(t)];case 1:o=n.scrollEl=i.sent();this.contentScrollCallback=function(){tt(r.scrollEl,r.el,e)};o.addEventListener("scroll",this.contentScrollCallback);tt(this.scrollEl,this.el,e);return[2]}}))}))};this.collapse=undefined;this.translucent=false}t.prototype.componentWillLoad=function(){this.inheritedAttributes=h(this.el)};t.prototype.componentDidLoad=function(){this.checkCollapsibleHeader()};t.prototype.componentDidUpdate=function(){this.checkCollapsibleHeader()};t.prototype.disconnectedCallback=function(){this.destroyCollapsibleHeader()};t.prototype.checkCollapsibleHeader=function(){return __awaiter(this,void 0,void 0,(function(){var t,o,e,n,r,i,r,i,a;return __generator(this,(function(s){switch(s.label){case 0:t=d(this);if(t!=="ios"){return[2]}o=this.collapse;e=o==="condense";n=o==="fade";this.destroyCollapsibleHeader();if(!e)return[3,2];r=this.el.closest("ion-app,ion-page,.ion-page,page-inner");i=r?w(r):null;c((function(){var t=W("ion-title");t.size="large";W("ion-back-button")}));return[4,this.setupCondenseHeader(i,r)];case 1:s.sent();return[3,4];case 2:if(!n)return[3,4];r=this.el.closest("ion-app,ion-page,.ion-page,page-inner");i=r?w(r):null;if(!i){k(this.el);return[2]}a=i.querySelector('ion-header[collapse="condense"]');return[4,this.setupFadeHeader(i,a)];case 3:s.sent();s.label=4;case 4:return[2]}}))}))};t.prototype.destroyCollapsibleHeader=function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=undefined}if(this.scrollEl&&this.contentScrollCallback){this.scrollEl.removeEventListener("scroll",this.contentScrollCallback);this.contentScrollCallback=undefined}if(this.collapsibleMainHeader){this.collapsibleMainHeader.classList.remove("header-collapse-main");this.collapsibleMainHeader=undefined}};t.prototype.setupCondenseHeader=function(t,o){return __awaiter(this,void 0,void 0,(function(){var e,n,r,i,a;var s=this;return __generator(this,(function(l){switch(l.label){case 0:if(!t||!o){k(this.el);return[2]}if(typeof IntersectionObserver==="undefined"){return[2]}e=this;return[4,_(t)];case 1:e.scrollEl=l.sent();n=o.querySelectorAll("ion-header");this.collapsibleMainHeader=Array.from(n).find((function(t){return t.collapse!=="condense"}));if(!this.collapsibleMainHeader){return[2]}r=V(this.collapsibleMainHeader);i=V(this.el);if(!r||!i){return[2]}Q(r,false);U(r.el,0);a=function(t){J(t,r,i,s.scrollEl)};this.intersectionObserver=new IntersectionObserver(a,{root:t,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]});this.intersectionObserver.observe(i.toolbars[i.toolbars.length-1].el);this.contentScrollCallback=function(){G(s.scrollEl,i,t)};this.scrollEl.addEventListener("scroll",this.contentScrollCallback);c((function(){if(s.collapsibleMainHeader!==undefined){s.collapsibleMainHeader.classList.add("header-collapse-main")}}));return[2]}}))}))};t.prototype.render=function(){var t;var o=this,e=o.translucent,i=o.inheritedAttributes;var a=d(this);var s=this.collapse||"none";var l=x("ion-menu",this.el)?"none":"banner";return n(r,Object.assign({role:l,class:(t={},t[a]=true,t["header-".concat(a)]=true,t["header-translucent"]=this.translucent,t["header-collapse-".concat(s)]=true,t["header-translucent-".concat(a)]=this.translucent,t)},i),a==="ios"&&e&&n("div",{class:"header-background"}),n("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());nt.style={ios:ot,md:et};var rt=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";var it=t("ion_router_outlet",function(){function t(t){e(this,t);this.ionNavWillLoad=a(this,"ionNavWillLoad",7);this.ionNavWillChange=a(this,"ionNavWillChange",3);this.ionNavDidChange=a(this,"ionNavDidChange",3);this.gestureOrAnimationInProgress=false;this.mode=d(this);this.delegate=undefined;this.animated=true;this.animation=undefined;this.swipeHandler=undefined}t.prototype.swipeHandlerChanged=function(){if(this.gesture){this.gesture.enable(this.swipeHandler!==undefined)}};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:t=function(){n.gestureOrAnimationInProgress=true;if(n.swipeHandler){n.swipeHandler.onStart()}};e=this;return[4,o.import("./p-c57cde35.system.js")];case 1:e.gesture=r.sent().createSwipeBackGesture(this.el,(function(){return!n.gestureOrAnimationInProgress&&!!n.swipeHandler&&n.swipeHandler.canStart()}),(function(){return t()}),(function(t){var o;return(o=n.ani)===null||o===void 0?void 0:o.progressStep(t)}),(function(t,o,e){if(n.ani){n.ani.onFinish((function(){n.gestureOrAnimationInProgress=false;if(n.swipeHandler){n.swipeHandler.onEnd(t)}}),{oneTimeCallback:true});var r=t?-.001:.001;if(!t){n.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)");r+=z([0,0],[1,0],[.68,.28],[1,1],o)[0]}else{r+=z([0,0],[.32,.72],[0,1],[1,1],o)[0]}n.ani.progressEnd(t?1:0,r,e)}else{n.gestureOrAnimationInProgress=false}}));this.swipeHandlerChanged();return[2]}}))}))};t.prototype.componentWillLoad=function(){this.ionNavWillLoad.emit()};t.prototype.disconnectedCallback=function(){if(this.gesture){this.gesture.destroy();this.gesture=undefined}};t.prototype.commit=function(t,o,e){return __awaiter(this,void 0,void 0,(function(){var n,r,i;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.lock()];case 1:n=a.sent();r=false;a.label=2;case 2:a.trys.push([2,4,,5]);return[4,this.transition(t,o,e)];case 3:r=a.sent();return[3,5];case 4:i=a.sent();console.error(i);return[3,5];case 5:n();return[2,r]}}))}))};t.prototype.setRouteId=function(t,o,e,n){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.setRoot(t,o,{duration:e==="root"?0:undefined,direction:e==="back"?"back":"forward",animationBuilder:n})];case 1:r=i.sent();return[2,{changed:r,element:this.activeEl}]}}))}))};t.prototype.getRouteId=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(o){t=this.activeEl;return[2,t?{id:t.tagName,element:t,params:this.activeParams}:undefined]}))}))};t.prototype.setRoot=function(t,o,e){return __awaiter(this,void 0,void 0,(function(){var n,r;return __generator(this,(function(i){switch(i.label){case 0:if(this.activeComponent===t&&g(o,this.activeParams)){return[2,false]}n=this.activeEl;return[4,C(this.delegate,this.el,t,["ion-page","ion-page-invisible"],o)];case 1:r=i.sent();this.activeComponent=t;this.activeEl=r;this.activeParams=o;return[4,this.commit(r,n,e)];case 2:i.sent();return[4,E(this.delegate,n)];case 3:i.sent();return[2,true]}}))}))};t.prototype.transition=function(t,o,e){if(e===void 0){e={}}return __awaiter(this,void 0,void 0,(function(){var n,r,i,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:if(o===t){return[2,false]}this.ionNavWillChange.emit();n=this,r=n.el,i=n.mode;a=this.animated&&u.getBoolean("animated",true);s=e.animationBuilder||this.animation||u.get("navAnimation");return[4,T(Object.assign(Object.assign({mode:i,animated:a,enteringEl:t,leavingEl:o,baseEl:r,deepWait:v(r),progressCallback:e.progressAnimation?function(t){if(t!==undefined&&!l.gestureOrAnimationInProgress){l.gestureOrAnimationInProgress=true;t.onFinish((function(){l.gestureOrAnimationInProgress=false;if(l.swipeHandler){l.swipeHandler.onEnd(false)}}),{oneTimeCallback:true});t.progressEnd(0,0,0)}else{l.ani=t}}:undefined},e),{animationBuilder:s}))];case 1:c.sent();this.ionNavDidChange.emit();return[2,true]}}))}))};t.prototype.lock=function(){return __awaiter(this,void 0,void 0,(function(){var t,o;return __generator(this,(function(e){switch(e.label){case 0:t=this.waitPromise;this.waitPromise=new Promise((function(t){return o=t}));if(!(t!==undefined))return[3,2];return[4,t];case 1:e.sent();e.label=2;case 2:return[2,o]}}))}))};t.prototype.render=function(){return n("slot",null)};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeHandler:["swipeHandlerChanged"]}},enumerable:false,configurable:true});return t}());it.style=rt;var at=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{top:0;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:17px;font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host:dir(rtl){left:unset;right:unset;right:0}}}:host(.title-small){-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:13px;font-weight:normal}:host(.title-large){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-webkit-transform-origin:left center;transform-origin:left center;bottom:0;-ms-flex-align:end;align-items:flex-end;min-width:100%;font-size:34px;font-weight:700;text-align:start}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000);font-family:var(--ion-font-family)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}@supports selector(:dir(rtl)){:host(.title-large) .toolbar-title:dir(rtl){-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}}";var st=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;letter-spacing:0.0125em}:host(.title-small){width:100%;height:100%;font-size:15px;font-weight:normal}";var lt=t("ion_title",function(){function t(t){e(this,t);this.ionStyle=a(this,"ionStyle",7);this.color=undefined;this.size=undefined}t.prototype.sizeChanged=function(){this.emitStyle()};t.prototype.connectedCallback=function(){this.emitStyle()};t.prototype.emitStyle=function(){var t;var o=this.getSize();this.ionStyle.emit((t={},t["title-".concat(o)]=true,t))};t.prototype.getSize=function(){return this.size!==undefined?this.size:"default"};t.prototype.render=function(){var t;var o=d(this);var e=this.getSize();return n(r,{class:y(this.color,(t={},t[o]=true,t["title-".concat(e)]=true,t["title-rtl"]=document.dir==="rtl",t))},n("div",{class:"toolbar-title"},n("slot",null)))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{size:["sizeChanged"]}},enumerable:false,configurable:true});return t}());lt.style={ios:at,md:st};var ct=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}:host(.toolbar-searchbar) ::slotted(ion-back-button){height:38px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large){padding-bottom:7px}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}";var dt=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){-webkit-margin-start:4px;margin-inline-start:4px}::slotted(.buttons-last-slot){-webkit-margin-end:4px;margin-inline-end:4px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}";var ut=t("ion_toolbar",function(){function t(t){e(this,t);this.childrenStyles=new Map;this.color=undefined}t.prototype.componentWillLoad=function(){var t=Array.from(this.el.querySelectorAll("ion-buttons"));var o=t.find((function(t){return t.slot==="start"}));if(o){o.classList.add("buttons-first-slot")}var e=t.reverse();var n=e.find((function(t){return t.slot==="end"}))||e.find((function(t){return t.slot==="primary"}))||e.find((function(t){return t.slot==="secondary"}));if(n){n.classList.add("buttons-last-slot")}};t.prototype.childrenStyle=function(t){t.stopPropagation();var o=t.target.tagName;var e=t.detail;var n={};var r=this.childrenStyles.get(o)||{};var i=false;Object.keys(e).forEach((function(t){var o="toolbar-".concat(t);var a=e[t];if(a!==r[o]){i=true}if(a){n[o]=true}}));if(i){this.childrenStyles.set(o,n);l(this)}};t.prototype.render=function(){var t;var o=d(this);var e={};this.childrenStyles.forEach((function(t){Object.assign(e,t)}));return n(r,{class:Object.assign(Object.assign({},e),y(this.color,(t={},t[o]=true,t["in-toolbar"]=x("ion-toolbar",this.el),t)))},n("div",{class:"toolbar-background"}),n("div",{class:"toolbar-container"},n("slot",{name:"start"}),n("slot",{name:"secondary"}),n("div",{class:"toolbar-content"},n("slot",null)),n("slot",{name:"primary"}),n("slot",{name:"end"})))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());ut.style={ios:ct,md:dt}}}}));
|