@ionic/core 8.0.2-nightly.20240430 → 8.0.2
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/ios.transition.js +94 -67
- package/dist/cjs/{index-1a575e52.js → index-6047957b.js} +2 -2
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/ion-app_8.cjs.entry.js +1 -1
- package/dist/cjs/ion-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-nav_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +1 -1
- package/dist/cjs/{ios.transition-2b4db49c.js → ios.transition-59b0e1d9.js} +95 -68
- package/dist/cjs/{md.transition-8f3e1081.js → md.transition-0cc7c831.js} +1 -1
- package/dist/collection/utils/transition/ios.transition.js +94 -67
- package/dist/docs.json +1 -1
- package/dist/esm/{index-4db06e9f.js → index-f4460246.js} +2 -2
- package/dist/esm/index.js +3 -3
- package/dist/esm/ion-app_8.entry.js +1 -1
- package/dist/esm/ion-modal.entry.js +1 -1
- package/dist/esm/ion-nav_2.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +1 -1
- package/dist/esm/{ios.transition-f4d34857.js → ios.transition-72f59adb.js} +95 -68
- package/dist/esm/{md.transition-995aadd3.js → md.transition-ef0437fe.js} +1 -1
- package/dist/esm-es5/{index-4db06e9f.js → index-f4460246.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ios.transition-72f59adb.js +4 -0
- package/dist/esm-es5/{md.transition-995aadd3.js → md.transition-ef0437fe.js} +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-c4c33a40.system.entry.js → p-16b35bc9.system.entry.js} +1 -1
- package/dist/ionic/{p-112831e6.system.entry.js → p-19d50867.system.entry.js} +1 -1
- package/dist/ionic/p-30baae57.system.js +1 -1
- package/dist/ionic/{p-f59976c0.entry.js → p-3bece4aa.entry.js} +1 -1
- package/dist/ionic/{p-7b6b80ac.system.entry.js → p-439b8b3c.system.entry.js} +1 -1
- package/dist/ionic/{p-4a01da1d.entry.js → p-657157d7.entry.js} +1 -1
- package/dist/ionic/p-6636ef29.js +4 -0
- package/dist/ionic/p-6a5fe8b0.js +4 -0
- package/dist/ionic/{p-aec59006.entry.js → p-99c42ae3.entry.js} +1 -1
- package/dist/ionic/p-aa71aee7.js +4 -0
- package/dist/ionic/p-b4a034c8.system.js +4 -0
- package/dist/ionic/{p-adb59652.system.entry.js → p-b6d4e78d.system.entry.js} +1 -1
- package/dist/ionic/{p-505b2f62.system.js → p-cab332d1.system.js} +1 -1
- package/dist/ionic/{p-c1842a35.entry.js → p-e95ac94c.entry.js} +1 -1
- package/dist/ionic/{p-8cfb179c.system.js → p-f14daa66.system.js} +1 -1
- package/dist/ionic/{p-e0b881ae.system.js → p-f2026596.system.js} +1 -1
- package/hydrate/index.js +100 -73
- package/package.json +1 -1
- package/dist/esm-es5/ios.transition-f4d34857.js +0 -4
- package/dist/ionic/p-1dc1efbd.system.js +0 -4
- package/dist/ionic/p-82a0493a.js +0 -4
- package/dist/ionic/p-ad445168.js +0 -4
- package/dist/ionic/p-b73d33a9.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import{c as t}from"./p-c7e16491.js";import{g as o}from"./p-6636ef29.js";import"./p-7b30edcc.js";import"./p-dba5cb84.js";import"./p-b51e4004.js";const n=t=>document.querySelector(`${t}.ion-cloned-element`),a=t=>t.shadowRoot||t,s=t=>{const o="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=o){const t=o.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=t?t.querySelector(n):null}return t.querySelector(n)},e=(t,o)=>{const n="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs");let a=[];if(null!=n){const t=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=t&&(a=t.querySelectorAll("ion-buttons"))}else a=t.querySelectorAll("ion-buttons");for(const t of a){const n=t.closest("ion-header"),a=n&&!n.classList.contains("header-collapse-condense-inactive"),s=t.querySelector("ion-back-button"),e=t.classList.contains("buttons-collapse");if(null!==s&&("start"===t.slot||""===t.slot)&&(e&&a&&o||!e))return s}return null},r=(o,s,e,r,i,l,f,p,d)=>{var $,u;const b=s?`calc(100% - ${i.right+4}px)`:i.left-4+"px",m=s?"right":"left",y=s?"left":"right",X=s?"right":"left";let x=1,v=1,h=`scale(${v})`;const g="scale(1)";if(l&&f){const t=(null===($=l.textContent)||void 0===$?void 0:$.trim())===(null===(u=p.textContent)||void 0===u?void 0:u.trim());x=d.width/f.width,v=(d.height-c)/f.height,h=t?`scale(${x}, ${v})`:`scale(${v})`}const w=a(r).querySelector("ion-icon").getBoundingClientRect(),k=s?w.width/2-(w.right-i.right)+"px":i.left-w.width/2+"px",T=s?`-${window.innerWidth-i.right}px`:`${i.left}px`,j=`${d.top}px`,A=`${i.top}px`,B=e?[{offset:0,transform:`translate3d(${T}, ${A}, 0)`},{offset:1,transform:`translate3d(${k}, ${j}, 0)`}]:[{offset:0,transform:`translate3d(${k}, ${j}, 0)`},{offset:1,transform:`translate3d(${T}, ${A}, 0)`}],I=e?[{offset:0,opacity:1,transform:g},{offset:1,opacity:0,transform:h}]:[{offset:0,opacity:0,transform:h},{offset:1,opacity:1,transform:g}],N=e?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],O=t(),S=t(),z=t(),q=n("ion-back-button"),C=a(q).querySelector(".button-text"),D=a(q).querySelector("ion-icon");q.text=r.text,q.mode=r.mode,q.icon=r.icon,q.color=r.color,q.disabled=r.disabled,q.style.setProperty("display","block"),q.style.setProperty("position","fixed"),S.addElement(D),O.addElement(C),z.addElement(q),z.beforeStyles({position:"absolute",top:"0px",[X]:"0px"}).beforeAddWrite((()=>{r.style.setProperty("display","none"),q.style.setProperty(m,b)})).afterAddWrite((()=>{r.style.setProperty("display",""),q.style.setProperty("display","none"),q.style.removeProperty(m)})).keyframes(B),O.beforeStyles({"transform-origin":`${m} top`}).keyframes(I),S.beforeStyles({"transform-origin":`${y} center`}).keyframes(N),o.addAnimation([O,S,z])},i=(o,a,s,e,r,i,l,f,p)=>{var d,$;const u=a?"right":"left",b=a?`calc(100% - ${r.right}px)`:`${r.left}px`,m=`${r.top}px`;let y=a?`-${window.innerWidth-l.right-8}px`:`${l.x+8}px`,X=.5;const x="scale(1)";let v=`scale(${X})`;if(f&&p){y=a?`-${window.innerWidth-p.right-8}px`:p.x-8+"px";const t=(null===(d=f.textContent)||void 0===d?void 0:d.trim())===(null===($=e.textContent)||void 0===$?void 0:$.trim());X=p.height/(i.height-c),v=t?`scale(${p.width/i.width}, ${X})`:`scale(${X})`}const h=l.top+l.height/2-r.height*X/2+"px",g=s?[{offset:0,opacity:0,transform:`translate3d(${y}, ${h}, 0) ${v}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${m}, 0) ${x}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${m}, 0) ${x}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${y}, ${h}, 0) ${v}`}],w=n("ion-title"),k=t();w.innerText=e.innerText,w.size=e.size,w.color=e.color,k.addElement(w),k.beforeStyles({"transform-origin":`${u} top`,height:`${r.height}px`,display:"",position:"relative",[u]:b}).beforeAddWrite((()=>{e.style.setProperty("opacity","0")})).afterAddWrite((()=>{e.style.setProperty("opacity",""),w.style.setProperty("display","none")})).keyframes(g),o.addAnimation(k)},l=(n,l)=>{var c;try{const f="cubic-bezier(0.32,0.72,0,1)",p="opacity",d="transform",$="0%",u=.8,b="rtl"===n.ownerDocument.dir,m=b?"-99.5%":"99.5%",y=b?"33%":"-33%",X=l.enteringEl,x=l.leavingEl,v="back"===l.direction,h=X.querySelector(":scope > ion-content"),g=X.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),w=X.querySelectorAll(":scope > ion-header > ion-toolbar"),k=t(),T=t();if(k.addElement(X).duration((null!==(c=l.duration)&&void 0!==c?c:0)||540).easing(l.easing||f).fill("both").beforeRemoveClass("ion-page-invisible"),x&&null!=n){const o=t();o.addElement(n),k.addAnimation(o)}if(h||0!==w.length||0!==g.length?(T.addElement(h),T.addElement(g)):T.addElement(X.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),k.addAnimation(T),v?T.beforeClearStyles([p]).fromTo("transform",`translateX(${y})`,`translateX(${$})`).fromTo(p,u,1):T.beforeClearStyles([p]).fromTo("transform",`translateX(${m})`,`translateX(${$})`),h){const o=a(h).querySelector(".transition-effect");if(o){const n=o.querySelector(".transition-cover"),a=o.querySelector(".transition-shadow"),s=t(),e=t(),r=t();s.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),e.addElement(n).beforeClearStyles([p]).fromTo(p,0,.1),r.addElement(a).beforeClearStyles([p]).fromTo(p,.03,.7),s.addAnimation([e,r]),T.addAnimation([s])}}const j=X.querySelector("ion-header.header-collapse-condense"),{forward:A,backward:B}=((t,o,n,l,c)=>{const f=e(l,n),p=s(c),d=s(l),$=e(c,n),u=null!==f&&null!==p&&!n,b=null!==d&&null!==$&&n;if(u){const s=p.getBoundingClientRect(),e=f.getBoundingClientRect(),l=a(f).querySelector(".button-text"),c=null==l?void 0:l.getBoundingClientRect(),d=a(p).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,p,s,d,e,l,c),r(t,o,n,f,e,l,c,p,d)}else if(b){const s=d.getBoundingClientRect(),e=$.getBoundingClientRect(),l=a($).querySelector(".button-text"),c=null==l?void 0:l.getBoundingClientRect(),f=a(d).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,d,s,f,e,l,c),r(t,o,n,$,e,l,c,d,f)}return{forward:u,backward:b}})(k,b,v,X,x);if(w.forEach((o=>{const n=t();n.addElement(o),k.addAnimation(n);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=Array.from(o.querySelectorAll("ion-buttons,[menuToggle]")),i=o.closest("ion-header"),l=null==i?void 0:i.classList.contains("header-collapse-condense-inactive");let c;c=r.filter(v?t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}:t=>!t.classList.contains("buttons-collapse")),e.addElement(c);const f=t();f.addElement(o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const d=t();d.addElement(a(o).querySelector(".toolbar-background"));const u=t(),X=o.querySelector("ion-back-button");if(X&&u.addElement(X),n.addAnimation([s,e,f,d,u]),e.fromTo(p,.01,1),f.fromTo(p,.01,1),v)l||s.fromTo("transform",`translateX(${y})`,`translateX(${$})`).fromTo(p,.01,1),f.fromTo("transform",`translateX(${y})`,`translateX(${$})`),u.fromTo(p,.01,1);else if(j||s.fromTo("transform",`translateX(${m})`,`translateX(${$})`).fromTo(p,.01,1),f.fromTo("transform",`translateX(${m})`,`translateX(${$})`),d.beforeClearStyles([p,"transform"]),(null==i?void 0:i.translucent)?d.fromTo("transform",b?"translateX(-100%)":"translateX(100%)","translateX(0px)"):d.fromTo(p,.01,"var(--opacity)"),A||u.fromTo(p,.01,1),X&&!A){const o=t();o.addElement(a(X).querySelector(".button-text")).fromTo("transform",b?"translateX(-100px)":"translateX(100px)","translateX(0px)"),n.addAnimation(o)}})),x){const n=t(),s=x.querySelector(":scope > ion-content"),e=x.querySelectorAll(":scope > ion-header > ion-toolbar"),r=x.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(s||0!==e.length||0!==r.length?(n.addElement(s),n.addElement(r)):n.addElement(x.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),k.addAnimation(n),v){n.beforeClearStyles([p]).fromTo("transform",`translateX(${$})`,b?"translateX(-100%)":"translateX(100%)");const t=o(x);k.afterAddWrite((()=>{"normal"===k.getDirection()&&t.style.setProperty("display","none")}))}else n.fromTo("transform",`translateX(${$})`,`translateX(${y})`).fromTo(p,1,u);if(s){const o=a(s).querySelector(".transition-effect");if(o){const a=o.querySelector(".transition-cover"),s=o.querySelector(".transition-shadow"),e=t(),r=t(),i=t();e.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),r.addElement(a).beforeClearStyles([p]).fromTo(p,.1,0),i.addElement(s).beforeClearStyles([p]).fromTo(p,.7,.03),e.addAnimation([r,i]),n.addAnimation([e])}}e.forEach((o=>{const n=t();n.addElement(o);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=o.querySelectorAll("ion-buttons,[menuToggle]"),i=o.closest("ion-header"),l=null==i?void 0:i.classList.contains("header-collapse-condense-inactive"),c=Array.from(r).filter((t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}));e.addElement(c);const f=t(),u=o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");u.length>0&&f.addElement(u);const m=t();m.addElement(a(o).querySelector(".toolbar-background"));const X=t(),x=o.querySelector("ion-back-button");if(x&&X.addElement(x),n.addAnimation([s,e,f,X,m]),k.addAnimation(n),X.fromTo(p,.99,0),e.fromTo(p,.99,0),f.fromTo(p,.99,0),v){if(l||s.fromTo("transform",`translateX(${$})`,b?"translateX(-100%)":"translateX(100%)").fromTo(p,.99,0),f.fromTo("transform",`translateX(${$})`,b?"translateX(-100%)":"translateX(100%)"),m.beforeClearStyles([p,"transform"]),(null==i?void 0:i.translucent)?m.fromTo("transform","translateX(0px)",b?"translateX(-100%)":"translateX(100%)"):m.fromTo(p,"var(--opacity)",0),x&&!B){const o=t();o.addElement(a(x).querySelector(".button-text")).fromTo("transform",`translateX(${$})`,`translateX(${(b?-124:124)+"px"})`),n.addAnimation(o)}}else l||s.fromTo("transform",`translateX(${$})`,`translateX(${y})`).fromTo(p,.99,0).afterClearStyles([d,p]),f.fromTo("transform",`translateX(${$})`,`translateX(${y})`).afterClearStyles([d,p]),X.afterClearStyles([p]),s.afterClearStyles([p]),e.afterClearStyles([p])}))}return k}catch(t){throw t}},c=10;export{l as iosTransitionAnimation,a as shadow}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
System.register(["./p-9146695e.system.js","./p-f2026596.system.js","./p-792919fd.system.js","./p-3d015cdb.system.js","./p-3ad285e3.system.js"],(function(a){"use strict";var t,r;return{setters:[function(a){t=a.c},function(a){r=a.g},function(){},function(){},function(){}],execute:function(){var n=540;var o=function(a){return document.querySelector("".concat(a,".ion-cloned-element"))};var e=a("shadow",(function(a){return a.shadowRoot||a}));var i=function(a){var t=a.tagName==="ION-TABS"?a:a.querySelector("ion-tabs");var r="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(t!=null){var n=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return n!=null?n.querySelector(r):null}return a.querySelector(r)};var s=function(a,t){var r=a.tagName==="ION-TABS"?a:a.querySelector("ion-tabs");var n=[];if(r!=null){var o=r.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");if(o!=null){n=o.querySelectorAll("ion-buttons")}}else{n=a.querySelectorAll("ion-buttons")}for(var e=0,i=n;e<i.length;e++){var s=i[e];var v=s.closest("ion-header");var l=v&&!v.classList.contains("header-collapse-condense-inactive");var f=s.querySelector("ion-back-button");var c=s.classList.contains("buttons-collapse");var p=s.slot==="start"||s.slot==="";if(f!==null&&p&&(c&&l&&t||!c)){return f}}return null};var v=function(a,t,r,n,o){var v=s(n,r);var c=i(o);var p=i(n);var u=s(o,r);var d=v!==null&&c!==null&&!r;var m=p!==null&&u!==null&&r;if(d){var b=c.getBoundingClientRect();var y=v.getBoundingClientRect();var X=e(v).querySelector(".button-text");var x=X===null||X===void 0?void 0:X.getBoundingClientRect();var h=e(c).querySelector(".toolbar-title");var g=h.getBoundingClientRect();f(a,t,r,c,b,g,y,X,x);l(a,t,r,v,y,X,x,c,g)}else if(m){var w=p.getBoundingClientRect();var k=u.getBoundingClientRect();var T=e(u).querySelector(".button-text");var j=T===null||T===void 0?void 0:T.getBoundingClientRect();var A=e(p).querySelector(".toolbar-title");var S=A.getBoundingClientRect();f(a,t,r,p,w,S,k,T,j);l(a,t,r,u,k,T,j,p,S)}return{forward:d,backward:m}};var l=function(a,r,n,i,s,v,l,f,c){var u;var d,m;var b=r?"calc(100% - ".concat(s.right+4,"px)"):"".concat(s.left-4,"px");var y=r?"right":"left";var X=r?"left":"right";var x=r?"right":"left";var h=1;var g=1;var w="scale(".concat(g,")");var k="scale(1)";if(v&&l){var T=((d=v.textContent)===null||d===void 0?void 0:d.trim())===((m=f.textContent)===null||m===void 0?void 0:m.trim());h=c.width/l.width;g=(c.height-p)/l.height;w=T?"scale(".concat(h,", ").concat(g,")"):"scale(".concat(g,")")}var j=e(i).querySelector("ion-icon");var A=j.getBoundingClientRect();var S=r?"".concat(A.width/2-(A.right-s.right),"px"):"".concat(s.left-A.width/2,"px");var B=r?"-".concat(window.innerWidth-s.right,"px"):"".concat(s.left,"px");var I="".concat(c.top,"px");var N="".concat(s.top,"px");var O=[{offset:0,transform:"translate3d(".concat(S,", ").concat(I,", 0)")},{offset:1,transform:"translate3d(".concat(B,", ").concat(N,", 0)")}];var z=[{offset:0,transform:"translate3d(".concat(B,", ").concat(N,", 0)")},{offset:1,transform:"translate3d(".concat(S,", ").concat(I,", 0)")}];var q=n?z:O;var C=[{offset:0,opacity:0,transform:w},{offset:1,opacity:1,transform:k}];var D=[{offset:0,opacity:1,transform:k},{offset:1,opacity:0,transform:w}];var E=n?D:C;var F=[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}];var G=[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}];var H=n?G:F;var J=t();var K=t();var L=t();var M=o("ion-back-button");var P=e(M).querySelector(".button-text");var Q=e(M).querySelector("ion-icon");M.text=i.text;M.mode=i.mode;M.icon=i.icon;M.color=i.color;M.disabled=i.disabled;M.style.setProperty("display","block");M.style.setProperty("position","fixed");K.addElement(Q);J.addElement(P);L.addElement(M);L.beforeStyles((u={position:"absolute",top:"0px"},u[x]="0px",u)).beforeAddWrite((function(){i.style.setProperty("display","none");M.style.setProperty(y,b)})).afterAddWrite((function(){i.style.setProperty("display","");M.style.setProperty("display","none");M.style.removeProperty(y)})).keyframes(q);J.beforeStyles({"transform-origin":"".concat(y," top")}).keyframes(E);K.beforeStyles({"transform-origin":"".concat(X," center")}).keyframes(H);a.addAnimation([J,K,L])};var f=function(a,r,n,e,i,s,v,l,f){var c;var u,d;var m=r?"right":"left";var b=r?"calc(100% - ".concat(i.right,"px)"):"".concat(i.left,"px");var y="0px";var X="".concat(i.top,"px");var x=8;var h=r?"-".concat(window.innerWidth-v.right-x,"px"):"".concat(v.x+x,"px");var g=.5;var w="scale(1)";var k="scale(".concat(g,")");if(l&&f){h=r?"-".concat(window.innerWidth-f.right-x,"px"):"".concat(f.x-x,"px");var T=((u=l.textContent)===null||u===void 0?void 0:u.trim())===((d=e.textContent)===null||d===void 0?void 0:d.trim());var j=f.width/s.width;g=f.height/(s.height-p);k=T?"scale(".concat(j,", ").concat(g,")"):"scale(".concat(g,")")}var A=v.top+v.height/2;var S=i.height*g/2;var B="".concat(A-S,"px");var I=[{offset:0,opacity:0,transform:"translate3d(".concat(h,", ").concat(B,", 0) ").concat(k)},{offset:.1,opacity:0},{offset:1,opacity:1,transform:"translate3d(".concat(y,", ").concat(X,", 0) ").concat(w)}];var N=[{offset:0,opacity:.99,transform:"translate3d(".concat(y,", ").concat(X,", 0) ").concat(w)},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(h,", ").concat(B,", 0) ").concat(k)}];var O=n?I:N;var z=o("ion-title");var q=t();z.innerText=e.innerText;z.size=e.size;z.color=e.color;q.addElement(z);q.beforeStyles((c={"transform-origin":"".concat(m," top"),height:"".concat(i.height,"px"),display:"",position:"relative"},c[m]=b,c)).beforeAddWrite((function(){e.style.setProperty("opacity","0")})).afterAddWrite((function(){e.style.setProperty("opacity","");z.style.setProperty("display","none")})).keyframes(O);a.addAnimation(q)};var c=a("iosTransitionAnimation",(function(a,o){var i;try{var s="cubic-bezier(0.32,0.72,0,1)";var l="opacity";var f="transform";var c="0%";var p=.8;var u=a.ownerDocument.dir==="rtl";var d=u?"-99.5%":"99.5%";var m=u?"33%":"-33%";var b=o.enteringEl;var y=o.leavingEl;var X=o.direction==="back";var x=b.querySelector(":scope > ion-content");var h=b.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");var g=b.querySelectorAll(":scope > ion-header > ion-toolbar");var w=t();var k=t();w.addElement(b).duration(((i=o.duration)!==null&&i!==void 0?i:0)||n).easing(o.easing||s).fill("both").beforeRemoveClass("ion-page-invisible");if(y&&a!==null&&a!==undefined){var T=t();T.addElement(a);w.addAnimation(T)}if(!x&&g.length===0&&h.length===0){k.addElement(b.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs"))}else{k.addElement(x);k.addElement(h)}w.addAnimation(k);if(X){k.beforeClearStyles([l]).fromTo("transform","translateX(".concat(m,")"),"translateX(".concat(c,")")).fromTo(l,p,1)}else{k.beforeClearStyles([l]).fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(c,")"))}if(x){var j=e(x).querySelector(".transition-effect");if(j){var A=j.querySelector(".transition-cover");var S=j.querySelector(".transition-shadow");var B=t();var I=t();var N=t();B.addElement(j).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""});I.addElement(A).beforeClearStyles([l]).fromTo(l,0,.1);N.addElement(S).beforeClearStyles([l]).fromTo(l,.03,.7);B.addAnimation([I,N]);k.addAnimation([B])}}var O=b.querySelector("ion-header.header-collapse-condense");var z=v(w,u,X,b,y),q=z.forward,C=z.backward;g.forEach((function(a){var r=t();r.addElement(a);w.addAnimation(r);var n=t();n.addElement(a.querySelector("ion-title"));var o=t();var i=Array.from(a.querySelectorAll("ion-buttons,[menuToggle]"));var s=a.closest("ion-header");var v=s===null||s===void 0?void 0:s.classList.contains("header-collapse-condense-inactive");var f;if(X){f=i.filter((function(a){var t=a.classList.contains("buttons-collapse");return t&&!v||!t}))}else{f=i.filter((function(a){return!a.classList.contains("buttons-collapse")}))}o.addElement(f);var p=t();p.addElement(a.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));var b=t();b.addElement(e(a).querySelector(".toolbar-background"));var y=t();var x=a.querySelector("ion-back-button");if(x){y.addElement(x)}r.addAnimation([n,o,p,b,y]);o.fromTo(l,.01,1);p.fromTo(l,.01,1);if(X){if(!v){n.fromTo("transform","translateX(".concat(m,")"),"translateX(".concat(c,")")).fromTo(l,.01,1)}p.fromTo("transform","translateX(".concat(m,")"),"translateX(".concat(c,")"));y.fromTo(l,.01,1)}else{if(!O){n.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(c,")")).fromTo(l,.01,1)}p.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(c,")"));b.beforeClearStyles([l,"transform"]);var h=s===null||s===void 0?void 0:s.translucent;if(!h){b.fromTo(l,.01,"var(--opacity)")}else{b.fromTo("transform",u?"translateX(-100%)":"translateX(100%)","translateX(0px)")}if(!q){y.fromTo(l,.01,1)}if(x&&!q){var g=t();g.addElement(e(x).querySelector(".button-text")).fromTo("transform",u?"translateX(-100px)":"translateX(100px)","translateX(0px)");r.addAnimation(g)}}}));if(y){var D=t();var E=y.querySelector(":scope > ion-content");var F=y.querySelectorAll(":scope > ion-header > ion-toolbar");var G=y.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(!E&&F.length===0&&G.length===0){D.addElement(y.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs"))}else{D.addElement(E);D.addElement(G)}w.addAnimation(D);if(X){D.beforeClearStyles([l]).fromTo("transform","translateX(".concat(c,")"),u?"translateX(-100%)":"translateX(100%)");var H=r(y);w.afterAddWrite((function(){if(w.getDirection()==="normal"){H.style.setProperty("display","none")}}))}else{D.fromTo("transform","translateX(".concat(c,")"),"translateX(".concat(m,")")).fromTo(l,1,p)}if(E){var J=e(E).querySelector(".transition-effect");if(J){var K=J.querySelector(".transition-cover");var L=J.querySelector(".transition-shadow");var M=t();var P=t();var Q=t();M.addElement(J).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""});P.addElement(K).beforeClearStyles([l]).fromTo(l,.1,0);Q.addElement(L).beforeClearStyles([l]).fromTo(l,.7,.03);M.addAnimation([P,Q]);D.addAnimation([M])}}F.forEach((function(a){var r=t();r.addElement(a);var n=t();n.addElement(a.querySelector("ion-title"));var o=t();var i=a.querySelectorAll("ion-buttons,[menuToggle]");var s=a.closest("ion-header");var v=s===null||s===void 0?void 0:s.classList.contains("header-collapse-condense-inactive");var p=Array.from(i).filter((function(a){var t=a.classList.contains("buttons-collapse");return t&&!v||!t}));o.addElement(p);var d=t();var b=a.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");if(b.length>0){d.addElement(b)}var y=t();y.addElement(e(a).querySelector(".toolbar-background"));var x=t();var h=a.querySelector("ion-back-button");if(h){x.addElement(h)}r.addAnimation([n,o,d,x,y]);w.addAnimation(r);x.fromTo(l,.99,0);o.fromTo(l,.99,0);d.fromTo(l,.99,0);if(X){if(!v){n.fromTo("transform","translateX(".concat(c,")"),u?"translateX(-100%)":"translateX(100%)").fromTo(l,.99,0)}d.fromTo("transform","translateX(".concat(c,")"),u?"translateX(-100%)":"translateX(100%)");y.beforeClearStyles([l,"transform"]);var g=s===null||s===void 0?void 0:s.translucent;if(!g){y.fromTo(l,"var(--opacity)",0)}else{y.fromTo("transform","translateX(0px)",u?"translateX(-100%)":"translateX(100%)")}if(h&&!C){var k=t();k.addElement(e(h).querySelector(".button-text")).fromTo("transform","translateX(".concat(c,")"),"translateX(".concat((u?-124:124)+"px",")"));r.addAnimation(k)}}else{if(!v){n.fromTo("transform","translateX(".concat(c,")"),"translateX(".concat(m,")")).fromTo(l,.99,0).afterClearStyles([f,l])}d.fromTo("transform","translateX(".concat(c,")"),"translateX(".concat(m,")")).afterClearStyles([f,l]);x.afterClearStyles([l]);n.afterClearStyles([l]);o.afterClearStyles([l])}}))}return w}catch(a){throw a}}));var p=10}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function u(t){try{a(n.next(t))}catch(t){s(t)}}function o(t){try{a(n["throw"](t))}catch(t){s(t)}}function a(t){t.done?e(t.value):r(t.value).then(u,o)}a((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(i){return a([t,i])}}function a(o){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(e=0)),e)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;r=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-3d015cdb.system.js","./p-e673a0a2.system.js","./p-3ad285e3.system.js","./p-e0b881ae.system.js","./p-31d27232.system.js","./p-8635f5e6.system.js"],(function(t,i){"use strict";var e,n,r,s,u,o,a,f,h,c,d,v,l,w,m,b,_;return{setters:[function(t){e=t.r;n=t.d;r=t.h;s=t.i;u=t.f},function(t){o=t.g},function(t){a=t.m;f=t.s},function(t){h=t.l;c=t.t;d=t.s;v=t.d;l=t.b;w=t.c},function(t){m=t.b;b=t.c},function(t){_=t.a}],execute:function(){var p=1;var g=2;var y=3;var k=function(){function t(t,i){this.component=t;this.params=i;this.state=p}t.prototype.init=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e;return __generator(this,(function(n){switch(n.label){case 0:this.state=g;if(!!this.element)return[3,2];i=this.component;e=this;return[4,_(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)];case 1:e.element=n.sent();n.label=2;case 2:return[2]}}))}))};t.prototype._destroy=function(){a(this.state!==y,"view state must be ATTACHED");var t=this.element;if(t){if(this.delegate){this.delegate.removeViewFromDom(t.parentElement,t)}else{t.remove()}}this.nav=undefined;this.state=y};return t}();var j=function(t,i,e){if(!t){return false}if(t.component!==i){return false}return f(t.params,e)};var C=function(t,i){if(!t){return null}if(t instanceof k){return t}return new k(t,i)};var B=function(t){return t.map((function(t){if(t instanceof k){return t}if("component"in t){return C(t.component,t.componentProps===null?undefined:t.componentProps)}return C(t,undefined)})).filter((function(t){return t!==null}))};var E=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";var O=E;var S=t("ion_nav",function(){function t(t){e(this,t);this.ionNavWillLoad=n(this,"ionNavWillLoad",7);this.ionNavWillChange=n(this,"ionNavWillChange",3);this.ionNavDidChange=n(this,"ionNavDidChange",3);this.transInstr=[];this.gestureOrAnimationInProgress=false;this.useRouter=false;this.isTransitioning=false;this.destroyed=false;this.views=[];this.didLoad=false;this.delegate=undefined;this.swipeGesture=undefined;this.animated=true;this.animation=undefined;this.rootParams=undefined;this.root=undefined}t.prototype.swipeGestureChanged=function(){if(this.gesture){this.gesture.enable(this.swipeGesture===true)}};t.prototype.rootChanged=function(){if(this.root===undefined){return}if(this.didLoad===false){return}if(!this.useRouter){if(this.root!==undefined){this.setRoot(this.root,this.rootParams)}}};t.prototype.componentWillLoad=function(){this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null;if(this.swipeGesture===undefined){var t=m(this);this.swipeGesture=b.getBoolean("swipeBackEnabled",t==="ios")}this.ionNavWillLoad.emit()};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.didLoad=true;this.rootChanged();t=this;return[4,i.import("./p-4c2d5b80.system.js")];case 1:t.gesture=e.sent().createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this));this.swipeGestureChanged();return[2]}}))}))};t.prototype.connectedCallback=function(){this.destroyed=false};t.prototype.disconnectedCallback=function(){for(var t=0,i=this.views;t<i.length;t++){var e=i[t];h(e.element,v);e._destroy()}if(this.gesture){this.gesture.destroy();this.gesture=undefined}this.transInstr.length=0;this.views.length=0;this.destroyed=true};t.prototype.push=function(t,i,e,n){return this.insert(-1,t,i,e,n)};t.prototype.insert=function(t,i,e,n,r){return this.insertPages(t,[{component:i,componentProps:e}],n,r)};t.prototype.insertPages=function(t,i,e,n){return this.queueTrns({insertStart:t,insertViews:i,opts:e},n)};t.prototype.pop=function(t,i){return this.removeIndex(-1,1,t,i)};t.prototype.popTo=function(t,i,e){var n={removeStart:-1,removeCount:-1,opts:i};if(typeof t==="object"&&t.component){n.removeView=t;n.removeStart=1}else if(typeof t==="number"){n.removeStart=t+1}return this.queueTrns(n,e)};t.prototype.popToRoot=function(t,i){return this.removeIndex(1,-1,t,i)};t.prototype.removeIndex=function(t,i,e,n){if(i===void 0){i=1}return this.queueTrns({removeStart:t,removeCount:i,opts:e},n)};t.prototype.setRoot=function(t,i,e,n){return this.setPages([{component:t,componentProps:i}],e,n)};t.prototype.setPages=function(t,i,e){i!==null&&i!==void 0?i:i={};if(i.animated!==true){i.animated=false}return this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},e)};t.prototype.setRouteId=function(t,i,e,n){var r=this;var s=this.getActiveSync();if(j(s,t,i)){return Promise.resolve({changed:false,element:s.element})}var u;var o=new Promise((function(t){return u=t}));var a;var f={updateURL:false,viewIsReady:function(t){var i;var e=new Promise((function(t){return i=t}));u({changed:true,element:t,markVisible:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:i();return[4,a];case 1:t.sent();return[2]}}))}))}});return e}};if(e==="root"){a=this.setRoot(t,i,f)}else{var h=this.views.find((function(e){return j(e,t,i)}));if(h){a=this.popTo(h,Object.assign(Object.assign({},f),{direction:"back",animationBuilder:n}))}else if(e==="forward"){a=this.push(t,i,Object.assign(Object.assign({},f),{animationBuilder:n}))}else if(e==="back"){a=this.setRoot(t,i,Object.assign(Object.assign({},f),{direction:"back",animated:true,animationBuilder:n}))}}return o};t.prototype.getRouteId=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.getActiveSync();if(t){return[2,{id:t.element.tagName,params:t.params,element:t.element}]}return[2,undefined]}))}))};t.prototype.getActive=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.getActiveSync()]}))}))};t.prototype.getByIndex=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.views[t]]}))}))};t.prototype.canGoBack=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.canGoBackSync(t)]}))}))};t.prototype.getPrevious=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.getPreviousSync(t)]}))}))};t.prototype.getLength=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.views.length)]}))}))};t.prototype.getActiveSync=function(){return this.views[this.views.length-1]};t.prototype.canGoBackSync=function(t){if(t===void 0){t=this.getActiveSync()}return!!(t&&this.getPreviousSync(t))};t.prototype.getPreviousSync=function(t){if(t===void 0){t=this.getActiveSync()}if(!t){return undefined}var i=this.views;var e=i.indexOf(t);return e>0?i[e-1]:undefined};t.prototype.queueTrns=function(t,i){return __awaiter(this,void 0,void 0,(function(){var e,n,r,s,u;return __generator(this,(function(o){switch(o.label){case 0:if(this.isTransitioning&&((e=t.opts)===null||e===void 0?void 0:e.skipIfBusy)){return[2,false]}r=new Promise((function(i,e){t.resolve=i;t.reject=e}));t.done=i;if(!(t.opts&&t.opts.updateURL!==false&&this.useRouter))return[3,2];s=document.querySelector("ion-router");if(!s)return[3,2];return[4,s.canTransition()];case 1:u=o.sent();if(u===false){return[2,false]}if(typeof u==="string"){s.push(u,t.opts.direction||"back");return[2,false]}o.label=2;case 2:if(((n=t.insertViews)===null||n===void 0?void 0:n.length)===0){t.insertViews=undefined}this.transInstr.push(t);this.nextTrns();return[2,r]}}))}))};t.prototype.success=function(t,i){if(this.destroyed){this.fireError("nav controller was destroyed",i);return}if(i.done){i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction)}i.resolve(t.hasCompleted);if(i.opts.updateURL!==false&&this.useRouter){var e=document.querySelector("ion-router");if(e){var n=t.direction==="back"?"back":"forward";e.navChanged(n)}}};t.prototype.failed=function(t,i){if(this.destroyed){this.fireError("nav controller was destroyed",i);return}this.transInstr.length=0;this.fireError(t,i)};t.prototype.fireError=function(t,i){if(i.done){i.done(false,false,t)}if(i.reject&&!this.destroyed){i.reject(t)}else{i.resolve(false)}};t.prototype.nextTrns=function(){if(this.isTransitioning){return false}var t=this.transInstr.shift();if(!t){return false}this.runTransition(t);return true};t.prototype.runTransition=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e,n,r,s,u;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,6,,7]);this.ionNavWillChange.emit();this.isTransitioning=true;this.prepareTI(t);i=this.getActiveSync();e=this.getEnteringView(t,i);if(!i&&!e){throw new Error("no views in the stack to be removed")}if(!(e&&e.state===p))return[3,2];return[4,e.init(this.el)];case 1:o.sent();o.label=2;case 2:this.postViewInit(e,i,t);n=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&e!==i;if(n&&t.opts&&i){r=t.opts.direction==="back";if(r){t.opts.animationBuilder=t.opts.animationBuilder||(e===null||e===void 0?void 0:e.animationBuilder)}i.animationBuilder=t.opts.animationBuilder}s=void 0;if(!n)return[3,4];return[4,this.transition(e,i,t)];case 3:s=o.sent();return[3,5];case 4:s={hasCompleted:true,requiresTransition:false};o.label=5;case 5:this.success(s,t);this.ionNavDidChange.emit();return[3,7];case 6:u=o.sent();this.failed(u,t);return[3,7];case 7:this.isTransitioning=false;this.nextTrns();return[2]}}))}))};t.prototype.prepareTI=function(t){var i,e;var n;var r=this.views.length;(i=t.opts)!==null&&i!==void 0?i:t.opts={};(e=(n=t.opts).delegate)!==null&&e!==void 0?e:n.delegate=this.delegate;if(t.removeView!==undefined){a(t.removeStart!==undefined,"removeView needs removeStart");a(t.removeCount!==undefined,"removeView needs removeCount");var s=this.views.indexOf(t.removeView);if(s<0){throw new Error("removeView was not found")}t.removeStart+=s}if(t.removeStart!==undefined){if(t.removeStart<0){t.removeStart=r-1}if(t.removeCount<0){t.removeCount=r-t.removeStart}t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===r}if(t.insertViews){if(t.insertStart<0||t.insertStart>r){t.insertStart=r}t.enteringRequiresTransition=t.insertStart===r}var u=t.insertViews;if(!u){return}a(u.length>0,"length can not be zero");var o=B(u);if(o.length===0){throw new Error("invalid views to insert")}for(var f=0,h=o;f<h.length;f++){var c=h[f];c.delegate=t.opts.delegate;var d=c.nav;if(d&&d!==this){throw new Error("inserted view was already inserted")}if(c.state===y){throw new Error("inserted view was already destroyed")}}t.insertViews=o};t.prototype.getEnteringView=function(t,i){var e=t.insertViews;if(e!==undefined){return e[e.length-1]}var n=t.removeStart;if(n!==undefined){var r=this.views;var s=n+t.removeCount;for(var u=r.length-1;u>=0;u--){var o=r[u];if((u<n||u>=s)&&o!==i){return o}}}return undefined};t.prototype.postViewInit=function(t,i,e){var n,r,s;a(i||t,"Both leavingView and enteringView are null");a(e.resolve,"resolve must be valid");a(e.reject,"reject must be valid");var u=e.opts;var o=e.insertViews,f=e.removeStart,c=e.removeCount;var d;if(f!==undefined&&c!==undefined){a(f>=0,"removeStart can not be negative");a(c>=0,"removeCount can not be negative");d=[];for(var m=f;m<f+c;m++){var b=this.views[m];if(b!==undefined&&b!==t&&b!==i){d.push(b)}}(n=u.direction)!==null&&n!==void 0?n:u.direction="back"}var _=this.views.length+((r=o===null||o===void 0?void 0:o.length)!==null&&r!==void 0?r:0)-(c!==null&&c!==void 0?c:0);a(_>=0,"final balance can not be negative");if(_===0){console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el);throw new Error("navigation stack needs at least one root page")}if(o){var p=e.insertStart;for(var g=0,y=o;g<y.length;g++){var b=y[g];this.insertViewAt(b,p);p++}if(e.enteringRequiresTransition){(s=u.direction)!==null&&s!==void 0?s:u.direction="forward"}}if(d&&d.length>0){for(var k=0,j=d;k<j.length;k++){var b=j[k];h(b.element,l);h(b.element,w);h(b.element,v)}for(var C=0,B=d;C<B.length;C++){var b=B[C];this.destroyView(b)}}};t.prototype.transition=function(t,i,e){return __awaiter(this,void 0,void 0,(function(){var n,r,s,u,o,a,f;var h=this;return __generator(this,(function(d){switch(d.label){case 0:n=e.opts;r=n.progressAnimation?function(t){if(t!==undefined&&!h.gestureOrAnimationInProgress){h.gestureOrAnimationInProgress=true;t.onFinish((function(){h.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});t.progressEnd(0,0,0)}else{h.sbAni=t}}:undefined;s=m(this);u=t.element;o=i&&i.element;a=Object.assign(Object.assign({mode:s,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:r,animated:this.animated&&b.getBoolean("animated",true),enteringEl:u,leavingEl:o},n),{animationBuilder:n.animationBuilder||this.animation||b.get("navAnimation")});return[4,c(a)];case 1:f=d.sent().hasCompleted;return[2,this.transitionFinish(f,t,i,n)]}}))}))};t.prototype.transitionFinish=function(t,i,e,n){var r=t?i:e;if(r){this.unmountInactiveViews(r)}return{hasCompleted:t,requiresTransition:true,enteringView:i,leavingView:e,direction:n.direction}};t.prototype.insertViewAt=function(t,i){var e=this.views;var n=e.indexOf(t);if(n>-1){a(t.nav===this,"view is not part of the nav");e.splice(n,1);e.splice(i,0,t)}else{a(!t.nav,"nav is used");t.nav=this;e.splice(i,0,t)}};t.prototype.removeView=function(t){a(t.state===g||t.state===y,"view state should be loaded or destroyed");var i=this.views;var e=i.indexOf(t);a(e>-1,"view must be part of the stack");if(e>=0){i.splice(e,1)}};t.prototype.destroyView=function(t){t._destroy();this.removeView(t)};t.prototype.unmountInactiveViews=function(t){if(this.destroyed){return}var i=this.views;var e=i.indexOf(t);for(var n=i.length-1;n>=0;n--){var r=i[n];var s=r.element;if(s){if(n>e){h(s,v);this.destroyView(r)}else if(n<e){d(s,true)}}}};t.prototype.canStart=function(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()};t.prototype.onStart=function(){this.gestureOrAnimationInProgress=true;this.pop({direction:"back",progressAnimation:true})};t.prototype.onMove=function(t){if(this.sbAni){this.sbAni.progressStep(t)}};t.prototype.onEnd=function(t,i,e){var n=this;if(this.sbAni){this.sbAni.onFinish((function(){n.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});var r=t?-.001:.001;if(!t){this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)");r+=o([0,0],[1,0],[.68,.28],[1,1],i)[0]}else{r+=o([0,0],[.32,.72],[0,1],[1,1],i)[0]}this.sbAni.progressEnd(t?1:0,r,e)}else{this.gestureOrAnimationInProgress=false}};t.prototype.render=function(){return r("slot",{key:"dfe98cb6604a2015a49f41beffebdd2da957dfff"})};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}},enumerable:false,configurable:true});return t}());S.style=O;var V=function(t,i,e,n,r){var s=t.closest("ion-nav");if(s){if(i==="forward"){if(e!==undefined){return s.push(e,n,{skipIfBusy:true,animationBuilder:r})}}else if(i==="root"){if(e!==undefined){return s.setRoot(e,n,{skipIfBusy:true,animationBuilder:r})}}else if(i==="back"){return s.pop({skipIfBusy:true,animationBuilder:r})}}return Promise.resolve(false)};var P=t("ion_nav_link",function(){function t(t){var i=this;e(this,t);this.onClick=function(){return V(i.el,i.routerDirection,i.component,i.componentProps,i.routerAnimation)};this.component=undefined;this.componentProps=undefined;this.routerDirection="forward";this.routerAnimation=undefined}t.prototype.render=function(){return r(u,{key:"d2f8545b4fbd5aa25ef36eb01dffbc5d35ccfbb9",onClick:this.onClick})};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return t}())}}}));
|
|
4
|
+
*/System.register(["./p-3d015cdb.system.js","./p-e673a0a2.system.js","./p-3ad285e3.system.js","./p-f2026596.system.js","./p-31d27232.system.js","./p-8635f5e6.system.js"],(function(t,i){"use strict";var e,n,r,s,u,o,a,f,h,c,d,v,l,w,m,b,_;return{setters:[function(t){e=t.r;n=t.d;r=t.h;s=t.i;u=t.f},function(t){o=t.g},function(t){a=t.m;f=t.s},function(t){h=t.l;c=t.t;d=t.s;v=t.d;l=t.b;w=t.c},function(t){m=t.b;b=t.c},function(t){_=t.a}],execute:function(){var p=1;var g=2;var y=3;var k=function(){function t(t,i){this.component=t;this.params=i;this.state=p}t.prototype.init=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e;return __generator(this,(function(n){switch(n.label){case 0:this.state=g;if(!!this.element)return[3,2];i=this.component;e=this;return[4,_(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)];case 1:e.element=n.sent();n.label=2;case 2:return[2]}}))}))};t.prototype._destroy=function(){a(this.state!==y,"view state must be ATTACHED");var t=this.element;if(t){if(this.delegate){this.delegate.removeViewFromDom(t.parentElement,t)}else{t.remove()}}this.nav=undefined;this.state=y};return t}();var j=function(t,i,e){if(!t){return false}if(t.component!==i){return false}return f(t.params,e)};var C=function(t,i){if(!t){return null}if(t instanceof k){return t}return new k(t,i)};var B=function(t){return t.map((function(t){if(t instanceof k){return t}if("component"in t){return C(t.component,t.componentProps===null?undefined:t.componentProps)}return C(t,undefined)})).filter((function(t){return t!==null}))};var E=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";var O=E;var S=t("ion_nav",function(){function t(t){e(this,t);this.ionNavWillLoad=n(this,"ionNavWillLoad",7);this.ionNavWillChange=n(this,"ionNavWillChange",3);this.ionNavDidChange=n(this,"ionNavDidChange",3);this.transInstr=[];this.gestureOrAnimationInProgress=false;this.useRouter=false;this.isTransitioning=false;this.destroyed=false;this.views=[];this.didLoad=false;this.delegate=undefined;this.swipeGesture=undefined;this.animated=true;this.animation=undefined;this.rootParams=undefined;this.root=undefined}t.prototype.swipeGestureChanged=function(){if(this.gesture){this.gesture.enable(this.swipeGesture===true)}};t.prototype.rootChanged=function(){if(this.root===undefined){return}if(this.didLoad===false){return}if(!this.useRouter){if(this.root!==undefined){this.setRoot(this.root,this.rootParams)}}};t.prototype.componentWillLoad=function(){this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null;if(this.swipeGesture===undefined){var t=m(this);this.swipeGesture=b.getBoolean("swipeBackEnabled",t==="ios")}this.ionNavWillLoad.emit()};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.didLoad=true;this.rootChanged();t=this;return[4,i.import("./p-4c2d5b80.system.js")];case 1:t.gesture=e.sent().createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this));this.swipeGestureChanged();return[2]}}))}))};t.prototype.connectedCallback=function(){this.destroyed=false};t.prototype.disconnectedCallback=function(){for(var t=0,i=this.views;t<i.length;t++){var e=i[t];h(e.element,v);e._destroy()}if(this.gesture){this.gesture.destroy();this.gesture=undefined}this.transInstr.length=0;this.views.length=0;this.destroyed=true};t.prototype.push=function(t,i,e,n){return this.insert(-1,t,i,e,n)};t.prototype.insert=function(t,i,e,n,r){return this.insertPages(t,[{component:i,componentProps:e}],n,r)};t.prototype.insertPages=function(t,i,e,n){return this.queueTrns({insertStart:t,insertViews:i,opts:e},n)};t.prototype.pop=function(t,i){return this.removeIndex(-1,1,t,i)};t.prototype.popTo=function(t,i,e){var n={removeStart:-1,removeCount:-1,opts:i};if(typeof t==="object"&&t.component){n.removeView=t;n.removeStart=1}else if(typeof t==="number"){n.removeStart=t+1}return this.queueTrns(n,e)};t.prototype.popToRoot=function(t,i){return this.removeIndex(1,-1,t,i)};t.prototype.removeIndex=function(t,i,e,n){if(i===void 0){i=1}return this.queueTrns({removeStart:t,removeCount:i,opts:e},n)};t.prototype.setRoot=function(t,i,e,n){return this.setPages([{component:t,componentProps:i}],e,n)};t.prototype.setPages=function(t,i,e){i!==null&&i!==void 0?i:i={};if(i.animated!==true){i.animated=false}return this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},e)};t.prototype.setRouteId=function(t,i,e,n){var r=this;var s=this.getActiveSync();if(j(s,t,i)){return Promise.resolve({changed:false,element:s.element})}var u;var o=new Promise((function(t){return u=t}));var a;var f={updateURL:false,viewIsReady:function(t){var i;var e=new Promise((function(t){return i=t}));u({changed:true,element:t,markVisible:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:i();return[4,a];case 1:t.sent();return[2]}}))}))}});return e}};if(e==="root"){a=this.setRoot(t,i,f)}else{var h=this.views.find((function(e){return j(e,t,i)}));if(h){a=this.popTo(h,Object.assign(Object.assign({},f),{direction:"back",animationBuilder:n}))}else if(e==="forward"){a=this.push(t,i,Object.assign(Object.assign({},f),{animationBuilder:n}))}else if(e==="back"){a=this.setRoot(t,i,Object.assign(Object.assign({},f),{direction:"back",animated:true,animationBuilder:n}))}}return o};t.prototype.getRouteId=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.getActiveSync();if(t){return[2,{id:t.element.tagName,params:t.params,element:t.element}]}return[2,undefined]}))}))};t.prototype.getActive=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.getActiveSync()]}))}))};t.prototype.getByIndex=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.views[t]]}))}))};t.prototype.canGoBack=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.canGoBackSync(t)]}))}))};t.prototype.getPrevious=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.getPreviousSync(t)]}))}))};t.prototype.getLength=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.views.length)]}))}))};t.prototype.getActiveSync=function(){return this.views[this.views.length-1]};t.prototype.canGoBackSync=function(t){if(t===void 0){t=this.getActiveSync()}return!!(t&&this.getPreviousSync(t))};t.prototype.getPreviousSync=function(t){if(t===void 0){t=this.getActiveSync()}if(!t){return undefined}var i=this.views;var e=i.indexOf(t);return e>0?i[e-1]:undefined};t.prototype.queueTrns=function(t,i){return __awaiter(this,void 0,void 0,(function(){var e,n,r,s,u;return __generator(this,(function(o){switch(o.label){case 0:if(this.isTransitioning&&((e=t.opts)===null||e===void 0?void 0:e.skipIfBusy)){return[2,false]}r=new Promise((function(i,e){t.resolve=i;t.reject=e}));t.done=i;if(!(t.opts&&t.opts.updateURL!==false&&this.useRouter))return[3,2];s=document.querySelector("ion-router");if(!s)return[3,2];return[4,s.canTransition()];case 1:u=o.sent();if(u===false){return[2,false]}if(typeof u==="string"){s.push(u,t.opts.direction||"back");return[2,false]}o.label=2;case 2:if(((n=t.insertViews)===null||n===void 0?void 0:n.length)===0){t.insertViews=undefined}this.transInstr.push(t);this.nextTrns();return[2,r]}}))}))};t.prototype.success=function(t,i){if(this.destroyed){this.fireError("nav controller was destroyed",i);return}if(i.done){i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction)}i.resolve(t.hasCompleted);if(i.opts.updateURL!==false&&this.useRouter){var e=document.querySelector("ion-router");if(e){var n=t.direction==="back"?"back":"forward";e.navChanged(n)}}};t.prototype.failed=function(t,i){if(this.destroyed){this.fireError("nav controller was destroyed",i);return}this.transInstr.length=0;this.fireError(t,i)};t.prototype.fireError=function(t,i){if(i.done){i.done(false,false,t)}if(i.reject&&!this.destroyed){i.reject(t)}else{i.resolve(false)}};t.prototype.nextTrns=function(){if(this.isTransitioning){return false}var t=this.transInstr.shift();if(!t){return false}this.runTransition(t);return true};t.prototype.runTransition=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e,n,r,s,u;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,6,,7]);this.ionNavWillChange.emit();this.isTransitioning=true;this.prepareTI(t);i=this.getActiveSync();e=this.getEnteringView(t,i);if(!i&&!e){throw new Error("no views in the stack to be removed")}if(!(e&&e.state===p))return[3,2];return[4,e.init(this.el)];case 1:o.sent();o.label=2;case 2:this.postViewInit(e,i,t);n=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&e!==i;if(n&&t.opts&&i){r=t.opts.direction==="back";if(r){t.opts.animationBuilder=t.opts.animationBuilder||(e===null||e===void 0?void 0:e.animationBuilder)}i.animationBuilder=t.opts.animationBuilder}s=void 0;if(!n)return[3,4];return[4,this.transition(e,i,t)];case 3:s=o.sent();return[3,5];case 4:s={hasCompleted:true,requiresTransition:false};o.label=5;case 5:this.success(s,t);this.ionNavDidChange.emit();return[3,7];case 6:u=o.sent();this.failed(u,t);return[3,7];case 7:this.isTransitioning=false;this.nextTrns();return[2]}}))}))};t.prototype.prepareTI=function(t){var i,e;var n;var r=this.views.length;(i=t.opts)!==null&&i!==void 0?i:t.opts={};(e=(n=t.opts).delegate)!==null&&e!==void 0?e:n.delegate=this.delegate;if(t.removeView!==undefined){a(t.removeStart!==undefined,"removeView needs removeStart");a(t.removeCount!==undefined,"removeView needs removeCount");var s=this.views.indexOf(t.removeView);if(s<0){throw new Error("removeView was not found")}t.removeStart+=s}if(t.removeStart!==undefined){if(t.removeStart<0){t.removeStart=r-1}if(t.removeCount<0){t.removeCount=r-t.removeStart}t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===r}if(t.insertViews){if(t.insertStart<0||t.insertStart>r){t.insertStart=r}t.enteringRequiresTransition=t.insertStart===r}var u=t.insertViews;if(!u){return}a(u.length>0,"length can not be zero");var o=B(u);if(o.length===0){throw new Error("invalid views to insert")}for(var f=0,h=o;f<h.length;f++){var c=h[f];c.delegate=t.opts.delegate;var d=c.nav;if(d&&d!==this){throw new Error("inserted view was already inserted")}if(c.state===y){throw new Error("inserted view was already destroyed")}}t.insertViews=o};t.prototype.getEnteringView=function(t,i){var e=t.insertViews;if(e!==undefined){return e[e.length-1]}var n=t.removeStart;if(n!==undefined){var r=this.views;var s=n+t.removeCount;for(var u=r.length-1;u>=0;u--){var o=r[u];if((u<n||u>=s)&&o!==i){return o}}}return undefined};t.prototype.postViewInit=function(t,i,e){var n,r,s;a(i||t,"Both leavingView and enteringView are null");a(e.resolve,"resolve must be valid");a(e.reject,"reject must be valid");var u=e.opts;var o=e.insertViews,f=e.removeStart,c=e.removeCount;var d;if(f!==undefined&&c!==undefined){a(f>=0,"removeStart can not be negative");a(c>=0,"removeCount can not be negative");d=[];for(var m=f;m<f+c;m++){var b=this.views[m];if(b!==undefined&&b!==t&&b!==i){d.push(b)}}(n=u.direction)!==null&&n!==void 0?n:u.direction="back"}var _=this.views.length+((r=o===null||o===void 0?void 0:o.length)!==null&&r!==void 0?r:0)-(c!==null&&c!==void 0?c:0);a(_>=0,"final balance can not be negative");if(_===0){console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el);throw new Error("navigation stack needs at least one root page")}if(o){var p=e.insertStart;for(var g=0,y=o;g<y.length;g++){var b=y[g];this.insertViewAt(b,p);p++}if(e.enteringRequiresTransition){(s=u.direction)!==null&&s!==void 0?s:u.direction="forward"}}if(d&&d.length>0){for(var k=0,j=d;k<j.length;k++){var b=j[k];h(b.element,l);h(b.element,w);h(b.element,v)}for(var C=0,B=d;C<B.length;C++){var b=B[C];this.destroyView(b)}}};t.prototype.transition=function(t,i,e){return __awaiter(this,void 0,void 0,(function(){var n,r,s,u,o,a,f;var h=this;return __generator(this,(function(d){switch(d.label){case 0:n=e.opts;r=n.progressAnimation?function(t){if(t!==undefined&&!h.gestureOrAnimationInProgress){h.gestureOrAnimationInProgress=true;t.onFinish((function(){h.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});t.progressEnd(0,0,0)}else{h.sbAni=t}}:undefined;s=m(this);u=t.element;o=i&&i.element;a=Object.assign(Object.assign({mode:s,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:r,animated:this.animated&&b.getBoolean("animated",true),enteringEl:u,leavingEl:o},n),{animationBuilder:n.animationBuilder||this.animation||b.get("navAnimation")});return[4,c(a)];case 1:f=d.sent().hasCompleted;return[2,this.transitionFinish(f,t,i,n)]}}))}))};t.prototype.transitionFinish=function(t,i,e,n){var r=t?i:e;if(r){this.unmountInactiveViews(r)}return{hasCompleted:t,requiresTransition:true,enteringView:i,leavingView:e,direction:n.direction}};t.prototype.insertViewAt=function(t,i){var e=this.views;var n=e.indexOf(t);if(n>-1){a(t.nav===this,"view is not part of the nav");e.splice(n,1);e.splice(i,0,t)}else{a(!t.nav,"nav is used");t.nav=this;e.splice(i,0,t)}};t.prototype.removeView=function(t){a(t.state===g||t.state===y,"view state should be loaded or destroyed");var i=this.views;var e=i.indexOf(t);a(e>-1,"view must be part of the stack");if(e>=0){i.splice(e,1)}};t.prototype.destroyView=function(t){t._destroy();this.removeView(t)};t.prototype.unmountInactiveViews=function(t){if(this.destroyed){return}var i=this.views;var e=i.indexOf(t);for(var n=i.length-1;n>=0;n--){var r=i[n];var s=r.element;if(s){if(n>e){h(s,v);this.destroyView(r)}else if(n<e){d(s,true)}}}};t.prototype.canStart=function(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()};t.prototype.onStart=function(){this.gestureOrAnimationInProgress=true;this.pop({direction:"back",progressAnimation:true})};t.prototype.onMove=function(t){if(this.sbAni){this.sbAni.progressStep(t)}};t.prototype.onEnd=function(t,i,e){var n=this;if(this.sbAni){this.sbAni.onFinish((function(){n.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});var r=t?-.001:.001;if(!t){this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)");r+=o([0,0],[1,0],[.68,.28],[1,1],i)[0]}else{r+=o([0,0],[.32,.72],[0,1],[1,1],i)[0]}this.sbAni.progressEnd(t?1:0,r,e)}else{this.gestureOrAnimationInProgress=false}};t.prototype.render=function(){return r("slot",{key:"dfe98cb6604a2015a49f41beffebdd2da957dfff"})};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}},enumerable:false,configurable:true});return t}());S.style=O;var V=function(t,i,e,n,r){var s=t.closest("ion-nav");if(s){if(i==="forward"){if(e!==undefined){return s.push(e,n,{skipIfBusy:true,animationBuilder:r})}}else if(i==="root"){if(e!==undefined){return s.setRoot(e,n,{skipIfBusy:true,animationBuilder:r})}}else if(i==="back"){return s.pop({skipIfBusy:true,animationBuilder:r})}}return Promise.resolve(false)};var P=t("ion_nav_link",function(){function t(t){var i=this;e(this,t);this.onClick=function(){return V(i.el,i.routerDirection,i.component,i.componentProps,i.routerAnimation)};this.component=undefined;this.componentProps=undefined;this.routerDirection="forward";this.routerAnimation=undefined}t.prototype.render=function(){return r(u,{key:"d2f8545b4fbd5aa25ef36eb01dffbc5d35ccfbb9",onClick:this.onClick})};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return t}())}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-9146695e.system.js","./p-
|
|
4
|
+
System.register(["./p-9146695e.system.js","./p-f2026596.system.js","./p-792919fd.system.js","./p-3d015cdb.system.js","./p-3ad285e3.system.js"],(function(n){"use strict";var t,i;return{setters:[function(n){t=n.c},function(n){i=n.g},function(){},function(){},function(){}],execute:function(){var a=n("mdTransitionAnimation",(function(n,a){var r,e,s;var o="40px";var c="0px";var u=a.direction==="back";var f=a.enteringEl;var v=a.leavingEl;var l=i(f);var b=l.querySelector("ion-toolbar");var p=t();p.addElement(l).fill("both").beforeRemoveClass("ion-page-invisible");if(u){p.duration(((r=a.duration)!==null&&r!==void 0?r:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)")}else{p.duration(((e=a.duration)!==null&&e!==void 0?e:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(".concat(o,")"),"translateY(".concat(c,")")).fromTo("opacity",.01,1)}if(b){var m=t();m.addElement(b);p.addAnimation(m)}if(v&&u){p.duration(((s=a.duration)!==null&&s!==void 0?s:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var d=t();d.addElement(i(v)).onFinish((function(n){if(n===1&&d.elements.length>0){d.elements[0].style.setProperty("display","none")}})).fromTo("transform","translateY(".concat(c,")"),"translateY(".concat(o,")")).fromTo("opacity",1,0);p.addAnimation(d)}return p}))}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,d as o,w as i,h as a,f as e,i as r}from"./p-dba5cb84.js";import{f as s,i as n,d,r as h,a as p,p as l}from"./p-06e58c4e.js";import{C as c,a as m,d as f}from"./p-3cc276f4.js";import{g as b,j as u,r as w,h as v,k as x}from"./p-b51e4004.js";import{c as k}from"./p-ccd02320.js";import{p as g}from"./p-06fee233.js";import{g as y}from"./p-c61cc894.js";import{G as A,O as D,e as B,B as Y,j,k as M,f as E,g as C,h as S}from"./p-00d9d02d.js";import{g as O}from"./p-47794def.js";import{e as P,w as $}from"./p-b73d33a9.js";import{b as T,c as z}from"./p-9ec42be0.js";import{KEYBOARD_DID_OPEN as I}from"./p-2b7827c7.js";import{c as W}from"./p-c7e16491.js";import{g as L}from"./p-2408c236.js";import{createGesture as R}from"./p-8ededb41.js";import{w as N}from"./p-7b30edcc.js";import"./p-a953ef66.js";import"./p-9b97df10.js";import"./p-27281edd.js";var K;!function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"}(K||(K={}));const V={getEngine(){const t=y();if(null==t?void 0:t.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},setStyle(t){const o=this.getEngine();o&&o.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return K.Default;const{style:o}=await t.getInfo();return o}},Z=(t,o)=>{if(1===o)return 0;const i=1/(1-o);return t*i+-o*i},F=()=>{!N||N.innerWidth>=768||V.setStyle({style:K.Dark})},G=(t=K.Default)=>{!N||N.innerWidth>=768||V.setStyle({style:t})},_=async(t,o)=>{"function"==typeof t.canDismiss&&await t.canDismiss(void 0,A)&&(o.isRunning()?o.onFinish((()=>{t.dismiss(void 0,"handler")}),{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},H=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,U=.915,q=(t,o)=>u(400,t/Math.abs(1.1*o),500),J=t=>{const{currentBreakpoint:o,backdropBreakpoint:i}=t,a=void 0===i||i<o,e=a?`calc(var(--backdrop-opacity) * ${o})`:"0",r=W("backdropAnimation").fromTo("opacity",0,e);return a&&r.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:W("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-100*o}%)`}]),backdropAnimation:r}},Q=t=>{const{currentBreakpoint:o,backdropBreakpoint:i}=t,a=`calc(var(--backdrop-opacity) * ${Z(o,i)})`,e=[{offset:0,opacity:a},{offset:1,opacity:0}],r=[{offset:0,opacity:a},{offset:i,opacity:0},{offset:1,opacity:0}],s=W("backdropAnimation").keyframes(0!==i?r:e);return{wrapperAnimation:W("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*o}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},X=(t,o)=>{const{presentingEl:i,currentBreakpoint:a}=o,e=b(t),{wrapperAnimation:r,backdropAnimation:s}=void 0!==a?J(o):{backdropAnimation:W().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:W().fromTo("transform","translateY(100vh)","translateY(0vh)")};s.addElement(e.querySelector("ion-backdrop")),r.addElement(e.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const n=W("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(r);if(i){const t=window.innerWidth<768,o="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,a=b(i),e=W().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),d=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",a=`translateY(${o?"-10px":t}) scale(0.915)`;e.afterStyles({transform:a}).beforeAddWrite((()=>d.style.setProperty("background-color","black"))).addElement(i).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:a,borderRadius:"10px 10px 0 0"}]),n.addAnimation(e)}else if(n.addAnimation(s),o){const t=`translateY(-10px) scale(${o?U:1})`;e.afterStyles({transform:t}).addElement(a.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:t}]);const i=W().afterStyles({transform:t}).addElement(a.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:t}]);n.addAnimation([e,i])}else r.fromTo("opacity","0","1")}else n.addAnimation(s);return n},tt=(t,o,i=500)=>{const{presentingEl:a,currentBreakpoint:e}=o,r=b(t),{wrapperAnimation:s,backdropAnimation:n}=void 0!==e?Q(o):{backdropAnimation:W().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:W().fromTo("transform","translateY(0vh)","translateY(100vh)")};n.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=W("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(i).addAnimation(s);if(a){const t=window.innerWidth<768,o="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,i=b(a),e=W().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((t=>{1===t&&(a.style.setProperty("overflow",""),Array.from(r.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((t=>void 0!==t.presentingElement)).length<=1&&r.style.setProperty("background-color",""))})),r=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",i=`translateY(${o?"-10px":t}) scale(0.915)`;e.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:i,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),d.addAnimation(e)}else if(d.addAnimation(n),o){const t=`translateY(-10px) scale(${o?U:1})`;e.addElement(i.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:t},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const a=W().addElement(i.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:t},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);d.addAnimation([e,a])}else s.fromTo("opacity","1","0")}else d.addAnimation(n);return d},ot=(t,o)=>{const{currentBreakpoint:i}=o,a=b(t),{wrapperAnimation:e,backdropAnimation:r}=void 0!==i?J(o):{backdropAnimation:W().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:W().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}])};return r.addElement(a.querySelector("ion-backdrop")),e.addElement(a.querySelector(".modal-wrapper")),W().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([r,e])},it=(t,o)=>{const{currentBreakpoint:i}=o,a=b(t),{wrapperAnimation:e,backdropAnimation:r}=void 0!==i?Q(o):{backdropAnimation:W().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:W().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return r.addElement(a.querySelector("ion-backdrop")),e.addElement(a.querySelector(".modal-wrapper")),W().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,e])},at=class{constructor(i){t(this,i),this.didPresent=o(this,"ionModalDidPresent",7),this.willPresent=o(this,"ionModalWillPresent",7),this.willDismiss=o(this,"ionModalWillDismiss",7),this.didDismiss=o(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=o(this,"ionBreakpointDidChange",7),this.didPresentShorthand=o(this,"didPresent",7),this.willPresentShorthand=o(this,"willPresent",7),this.willDismissShorthand=o(this,"willDismiss",7),this.didDismissShorthand=o(this,"didDismiss",7),this.ionMount=o(this,"ionMount",7),this.lockController=k(),this.triggerController=B(),this.coreDelegate=c(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:o}=this;"cycle"===o&&void 0===t&&this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;void 0===t&&this.dismiss(void 0,Y)},this.onLifecycle=t=>{const o=this.usersElement,i=et[t.type];if(o&&i){const a=new CustomEvent(i,{bubbles:!1,cancelable:!1,detail:t.detail});o.dispatchEvent(a)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}onIsOpenChange(t,o){!0===t&&!1===o?this.present():!1===t&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:t,el:o,triggerController:i}=this;t&&i.addClickListener(o,t)}breakpointsChanged(t){void 0!==t&&(this.sortedBreakpoints=t.sort(((t,o)=>t-o)))}connectedCallback(){const{el:t}=this;j(t),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:o,el:i,htmlAttributes:a}=this,e=this.isSheetModal=void 0!==t&&void 0!==o,r=["aria-label","role"];this.inheritedAttributes=v(i,r),void 0!==a&&r.forEach((t=>{a[t]&&(this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:a[t]}),delete a[t])})),e&&(this.currentBreakpoint=this.initialBreakpoint),void 0===t||void 0===o||t.includes(o)||g("Your breakpoints array must include the initialBreakpoint value."),M(i)}componentDidLoad(){!0===this.isOpen&&w((()=>this.present())),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const o=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:o,delegate:this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate}}async checkCanDismiss(t,o){const{canDismiss:i}=this;return"function"==typeof i?i(t,o):i}async present(){const t=await this.lockController.lock();if(this.presented)return void t();const{presentingElement:o,el:a}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:e,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await m(r,a,this.component,["ion-page"],this.componentProps,e),x(a)?await P(this.usersElement):this.keepContentsMounted||await $(),i((()=>this.el.classList.add("show-modal")));const s=void 0!==o;s&&"ios"===T(this)&&(this.statusBarStyle=await V.getStyle(),F()),await E(this,"modalEnter",X,ot,{presentingEl:o,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),"undefined"!=typeof window&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),w((()=>{this.gesture&&this.gesture.enable(!0)})))},window.addEventListener(I,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():s&&this.initSwipeToClose(),t()}initSwipeToClose(){var t;if("ios"!==T(this))return;const{el:o}=this,i=this.leaveAnimation||z.get("modalLeave",tt),a=this.animation=i(o,{presentingEl:this.presentingElement});if(!p(o))return void l(o);const e=null!==(t=this.statusBarStyle)&&void 0!==t?t:K.Default;this.gesture=((t,o,i,a)=>{const e=.5,r=t.offsetHeight;let p=!1,l=!1,c=null,m=null,f=!0,w=0;const v=R({el:t,gestureName:"modalSwipeToClose",gesturePriority:D,direction:"y",threshold:10,canStart:t=>{const o=t.event.target;if(null===o||!o.closest)return!0;if(c=s(o),c){if(n(c)){const t=b(c);m=t.querySelector(".inner-scroll")}else m=c;return!c.querySelector("ion-refresher")&&0===m.scrollTop}return null===o.closest("ion-footer")},onStart:i=>{const{deltaY:a}=i;f=!c||!n(c)||c.scrollY,l=void 0!==t.canDismiss&&!0!==t.canDismiss,a>0&&c&&d(c),o.progressStart(!0,p?1:0)},onMove:t=>{const{deltaY:a}=t;a>0&&c&&d(c);const s=t.deltaY/r,n=s>=0&&l,h=n?.2:.9999,p=n?H(s/h):s,m=u(1e-4,p,h);o.progressStep(m),m>=e&&w<e?G(i):m<e&&w>=e&&F(),w=m},onEnd:i=>{const s=i.velocityY,n=i.deltaY/r,d=n>=0&&l,m=d?.2:.9999,b=d?H(n/m):n,w=u(1e-4,b,m),x=!d&&(i.deltaY+1e3*s)/r>=e;let k=x?-.001:.001;x?(o.easing("cubic-bezier(0.32, 0.72, 0, 1)"),k+=L([0,0],[.32,.72],[0,1],[1,1],w)[0]):(o.easing("cubic-bezier(1, 0, 0.68, 0.28)"),k+=L([0,0],[1,0],[.68,.28],[1,1],w)[0]);const g=q(x?n*r:(1-w)*r,s);p=x,v.enable(!1),c&&h(c,f),o.onFinish((()=>{x||v.enable(!0)})).progressEnd(x?1:0,k,g),d&&w>m/4?_(t,o):x&&a()}});return v})(o,a,e,(()=>{this.gestureAnimationDismissing=!0,G(this.statusBarStyle),this.animation.onFinish((async()=>{await this.dismiss(void 0,A),this.gestureAnimationDismissing=!1}))})),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:o,backdropBreakpoint:i}=this;if(!t||void 0===o)return;const a=this.enterAnimation||z.get("modalEnter",X),e=this.animation=a(this.el,{presentingEl:this.presentingElement,currentBreakpoint:o,backdropBreakpoint:i});e.progressStart(!0,1);const{gesture:r,moveSheetToBreakpoint:d}=((t,o,i,a,e,r,d=[],h,p,l)=>{const c={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==e?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-e,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},m=t.querySelector("ion-content"),f=i.clientHeight;let v=a,x=0,k=!1;const g=r.childAnimations.find((t=>"wrapperAnimation"===t.id)),y=r.childAnimations.find((t=>"backdropAnimation"===t.id)),A=d[d.length-1],D=d[0],B=()=>{t.style.setProperty("pointer-events","auto"),o.style.setProperty("pointer-events","auto"),t.classList.remove("ion-disable-focus-trap")},Y=()=>{t.style.setProperty("pointer-events","none"),o.style.setProperty("pointer-events","none"),t.classList.add("ion-disable-focus-trap")};g&&y&&(g.keyframes([...c.WRAPPER_KEYFRAMES]),y.keyframes([...c.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-v),v>e?B():Y()),m&&v!==A&&(m.scrollY=!1);const j=o=>{const{breakpoint:i,canDismiss:a,breakpointOffset:s,animated:n}=o,h=a&&0===i,f=h?v:i,b=0!==f;return v=0,g&&y&&(g.keyframes([{offset:0,transform:`translateY(${100*s}%)`},{offset:1,transform:`translateY(${100*(1-f)}%)`}]),y.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${Z(1-s,e)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${Z(f,e)})`}]),r.progressStep(0)),M.enable(!1),h?_(t,r):b||p(),m&&f===d[d.length-1]&&(m.scrollY=!0),new Promise((t=>{r.onFinish((()=>{b?g&&y?w((()=>{g.keyframes([...c.WRAPPER_KEYFRAMES]),y.keyframes([...c.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-f),v=f,l(v),v>e?B():Y(),M.enable(!0),t()})):(M.enable(!0),t()):t()}),{oneTimeCallback:!0}).progressEnd(1,0,n?500:0)}))},M=R({el:i,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:t=>{const o=s(t.event.target);if(v=h(),1===v&&o){const t=n(o)?b(o).querySelector(".inner-scroll"):o;return!o.querySelector("ion-refresher")&&0===t.scrollTop}return!0},onStart:o=>{k=void 0!==t.canDismiss&&!0!==t.canDismiss&&0===D,o.deltaY>0&&m&&(m.scrollY=!1),w((()=>{t.focus()})),r.progressStart(!0,1-v)},onMove:t=>{t.deltaY>0&&m&&(m.scrollY=!1);const o=d.length>1?1-d[1]:void 0,i=1-v+t.deltaY/f,a=void 0!==o&&i>=o&&k,e=a?.95:.9999,s=a&&void 0!==o?o+H((i-o)/(e-o)):i;x=u(1e-4,s,e),r.progressStep(x)},onEnd:t=>{const o=v-(t.deltaY+350*t.velocityY)/f,i=d.reduce(((t,i)=>Math.abs(i-o)<Math.abs(t-o)?i:t));j({breakpoint:i,breakpointOffset:x,canDismiss:k,animated:!0})}});return{gesture:M,moveSheetToBreakpoint:j}})(this.el,this.backdropEl,t,o,i,e,this.sortedBreakpoints,(()=>{var t;return null!==(t=this.currentBreakpoint)&&void 0!==t?t:0}),(()=>this.sheetOnDismiss()),(t=>{this.currentBreakpoint!==t&&(this.currentBreakpoint=t,this.ionBreakpointDidChange.emit({breakpoint:t}))}));this.gesture=r,this.moveSheetToBreakpoint=d,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish((async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,A),this.gestureAnimationDismissing=!1}))}async dismiss(t,o){var a;if(this.gestureAnimationDismissing&&o!==A)return!1;const e=await this.lockController.lock();if("handler"!==o&&!await this.checkCanDismiss(t,o))return e(),!1;const{presentingElement:r}=this;void 0!==r&&"ios"===T(this)&&G(this.statusBarStyle),"undefined"!=typeof window&&this.keyboardOpenCallback&&(window.removeEventListener(I,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const s=await C(this,t,o,"modalLeave",tt,it,{presentingEl:r,currentBreakpoint:null!==(a=this.currentBreakpoint)&&void 0!==a?a:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(s){const{delegate:t}=this.getDelegate();await f(t,this.usersElement),i((()=>this.el.classList.remove("show-modal"))),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy()}return this.currentBreakpoint=void 0,this.animation=void 0,e(),s}onDidDismiss(){return S(this.el,"ionModalDidDismiss")}onWillDismiss(){return S(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal)return void g("setCurrentBreakpoint is only supported on sheet modals.");if(!this.breakpoints.includes(t))return void g(`Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:o,moveSheetToBreakpoint:i,canDismiss:a,breakpoints:e,animated:r}=this;o!==t&&i&&(this.sheetTransition=i({breakpoint:t,breakpointOffset:1-o,canDismiss:void 0!==a&&!0!==a&&0===e[0],animated:r}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:o}=this;if(!t||null==o)return!1;const i=t.filter((t=>0!==t)),a=i.indexOf(o),e=i[(a+1)%i.length];return await this.setCurrentBreakpoint(e),!0}render(){const{handle:t,isSheetModal:o,presentingElement:i,htmlAttributes:r,handleBehavior:s,inheritedAttributes:n}=this,d=!1!==t&&o,h=T(this),p=void 0!==i&&"ios"===h,l="cycle"===s;return a(e,Object.assign({key:"bb00efb8cbbdb2d1bbcc5e9c638586e2904882a8","no-router":!0,tabindex:"-1"},r,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[h]:!0,"modal-default":!p&&!o,"modal-card":p,"modal-sheet":o,"overlay-hidden":!0},O(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),a("ion-backdrop",{key:"d2d50f736fdc34b933c00309fe0b67e4aff7ee63",ref:t=>this.backdropEl=t,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===h&&a("div",{key:"5d3523a04da9350ae435a4f3247198095b71f206",class:"modal-shadow"}),a("div",Object.assign({key:"09b3c4b629155f8c32f5c896cf689ffbe7004de8",role:"dialog"},n,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:t=>this.wrapperEl=t}),d&&a("button",{key:"e47d90068927f3a518e4144e17f18ac326126712",class:"modal-handle",tabIndex:l?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:l?this.onHandleClick:void 0,part:"handle"}),a("slot",{key:"5733e94b3ecc4ed9bfb6aec5cd254cd0e43ee8f7"})))}get el(){return r(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},et={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};at.style={ios:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}',md:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}'};export{at as ion_modal}
|
|
4
|
+
import{r as t,d as o,w as i,h as a,f as e,i as r}from"./p-dba5cb84.js";import{f as s,i as n,d,r as h,a as p,p as l}from"./p-06e58c4e.js";import{C as c,a as m,d as f}from"./p-3cc276f4.js";import{g as b,j as u,r as w,h as v,k as x}from"./p-b51e4004.js";import{c as k}from"./p-ccd02320.js";import{p as g}from"./p-06fee233.js";import{g as y}from"./p-c61cc894.js";import{G as A,O as D,e as B,B as Y,j,k as M,f as E,g as C,h as S}from"./p-00d9d02d.js";import{g as O}from"./p-47794def.js";import{e as P,w as $}from"./p-6636ef29.js";import{b as T,c as z}from"./p-9ec42be0.js";import{KEYBOARD_DID_OPEN as I}from"./p-2b7827c7.js";import{c as W}from"./p-c7e16491.js";import{g as L}from"./p-2408c236.js";import{createGesture as R}from"./p-8ededb41.js";import{w as N}from"./p-7b30edcc.js";import"./p-a953ef66.js";import"./p-9b97df10.js";import"./p-27281edd.js";var K;!function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"}(K||(K={}));const V={getEngine(){const t=y();if(null==t?void 0:t.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},setStyle(t){const o=this.getEngine();o&&o.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return K.Default;const{style:o}=await t.getInfo();return o}},Z=(t,o)=>{if(1===o)return 0;const i=1/(1-o);return t*i+-o*i},F=()=>{!N||N.innerWidth>=768||V.setStyle({style:K.Dark})},G=(t=K.Default)=>{!N||N.innerWidth>=768||V.setStyle({style:t})},_=async(t,o)=>{"function"==typeof t.canDismiss&&await t.canDismiss(void 0,A)&&(o.isRunning()?o.onFinish((()=>{t.dismiss(void 0,"handler")}),{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},H=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,U=.915,q=(t,o)=>u(400,t/Math.abs(1.1*o),500),J=t=>{const{currentBreakpoint:o,backdropBreakpoint:i}=t,a=void 0===i||i<o,e=a?`calc(var(--backdrop-opacity) * ${o})`:"0",r=W("backdropAnimation").fromTo("opacity",0,e);return a&&r.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:W("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-100*o}%)`}]),backdropAnimation:r}},Q=t=>{const{currentBreakpoint:o,backdropBreakpoint:i}=t,a=`calc(var(--backdrop-opacity) * ${Z(o,i)})`,e=[{offset:0,opacity:a},{offset:1,opacity:0}],r=[{offset:0,opacity:a},{offset:i,opacity:0},{offset:1,opacity:0}],s=W("backdropAnimation").keyframes(0!==i?r:e);return{wrapperAnimation:W("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*o}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},X=(t,o)=>{const{presentingEl:i,currentBreakpoint:a}=o,e=b(t),{wrapperAnimation:r,backdropAnimation:s}=void 0!==a?J(o):{backdropAnimation:W().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:W().fromTo("transform","translateY(100vh)","translateY(0vh)")};s.addElement(e.querySelector("ion-backdrop")),r.addElement(e.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const n=W("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(r);if(i){const t=window.innerWidth<768,o="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,a=b(i),e=W().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),d=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",a=`translateY(${o?"-10px":t}) scale(0.915)`;e.afterStyles({transform:a}).beforeAddWrite((()=>d.style.setProperty("background-color","black"))).addElement(i).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:a,borderRadius:"10px 10px 0 0"}]),n.addAnimation(e)}else if(n.addAnimation(s),o){const t=`translateY(-10px) scale(${o?U:1})`;e.afterStyles({transform:t}).addElement(a.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:t}]);const i=W().afterStyles({transform:t}).addElement(a.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:t}]);n.addAnimation([e,i])}else r.fromTo("opacity","0","1")}else n.addAnimation(s);return n},tt=(t,o,i=500)=>{const{presentingEl:a,currentBreakpoint:e}=o,r=b(t),{wrapperAnimation:s,backdropAnimation:n}=void 0!==e?Q(o):{backdropAnimation:W().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:W().fromTo("transform","translateY(0vh)","translateY(100vh)")};n.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=W("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(i).addAnimation(s);if(a){const t=window.innerWidth<768,o="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,i=b(a),e=W().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((t=>{1===t&&(a.style.setProperty("overflow",""),Array.from(r.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((t=>void 0!==t.presentingElement)).length<=1&&r.style.setProperty("background-color",""))})),r=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",i=`translateY(${o?"-10px":t}) scale(0.915)`;e.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:i,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),d.addAnimation(e)}else if(d.addAnimation(n),o){const t=`translateY(-10px) scale(${o?U:1})`;e.addElement(i.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:t},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const a=W().addElement(i.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:t},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);d.addAnimation([e,a])}else s.fromTo("opacity","1","0")}else d.addAnimation(n);return d},ot=(t,o)=>{const{currentBreakpoint:i}=o,a=b(t),{wrapperAnimation:e,backdropAnimation:r}=void 0!==i?J(o):{backdropAnimation:W().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:W().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}])};return r.addElement(a.querySelector("ion-backdrop")),e.addElement(a.querySelector(".modal-wrapper")),W().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([r,e])},it=(t,o)=>{const{currentBreakpoint:i}=o,a=b(t),{wrapperAnimation:e,backdropAnimation:r}=void 0!==i?Q(o):{backdropAnimation:W().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:W().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return r.addElement(a.querySelector("ion-backdrop")),e.addElement(a.querySelector(".modal-wrapper")),W().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,e])},at=class{constructor(i){t(this,i),this.didPresent=o(this,"ionModalDidPresent",7),this.willPresent=o(this,"ionModalWillPresent",7),this.willDismiss=o(this,"ionModalWillDismiss",7),this.didDismiss=o(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=o(this,"ionBreakpointDidChange",7),this.didPresentShorthand=o(this,"didPresent",7),this.willPresentShorthand=o(this,"willPresent",7),this.willDismissShorthand=o(this,"willDismiss",7),this.didDismissShorthand=o(this,"didDismiss",7),this.ionMount=o(this,"ionMount",7),this.lockController=k(),this.triggerController=B(),this.coreDelegate=c(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:o}=this;"cycle"===o&&void 0===t&&this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;void 0===t&&this.dismiss(void 0,Y)},this.onLifecycle=t=>{const o=this.usersElement,i=et[t.type];if(o&&i){const a=new CustomEvent(i,{bubbles:!1,cancelable:!1,detail:t.detail});o.dispatchEvent(a)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}onIsOpenChange(t,o){!0===t&&!1===o?this.present():!1===t&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:t,el:o,triggerController:i}=this;t&&i.addClickListener(o,t)}breakpointsChanged(t){void 0!==t&&(this.sortedBreakpoints=t.sort(((t,o)=>t-o)))}connectedCallback(){const{el:t}=this;j(t),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:o,el:i,htmlAttributes:a}=this,e=this.isSheetModal=void 0!==t&&void 0!==o,r=["aria-label","role"];this.inheritedAttributes=v(i,r),void 0!==a&&r.forEach((t=>{a[t]&&(this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:a[t]}),delete a[t])})),e&&(this.currentBreakpoint=this.initialBreakpoint),void 0===t||void 0===o||t.includes(o)||g("Your breakpoints array must include the initialBreakpoint value."),M(i)}componentDidLoad(){!0===this.isOpen&&w((()=>this.present())),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const o=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:o,delegate:this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate}}async checkCanDismiss(t,o){const{canDismiss:i}=this;return"function"==typeof i?i(t,o):i}async present(){const t=await this.lockController.lock();if(this.presented)return void t();const{presentingElement:o,el:a}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:e,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await m(r,a,this.component,["ion-page"],this.componentProps,e),x(a)?await P(this.usersElement):this.keepContentsMounted||await $(),i((()=>this.el.classList.add("show-modal")));const s=void 0!==o;s&&"ios"===T(this)&&(this.statusBarStyle=await V.getStyle(),F()),await E(this,"modalEnter",X,ot,{presentingEl:o,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),"undefined"!=typeof window&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),w((()=>{this.gesture&&this.gesture.enable(!0)})))},window.addEventListener(I,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():s&&this.initSwipeToClose(),t()}initSwipeToClose(){var t;if("ios"!==T(this))return;const{el:o}=this,i=this.leaveAnimation||z.get("modalLeave",tt),a=this.animation=i(o,{presentingEl:this.presentingElement});if(!p(o))return void l(o);const e=null!==(t=this.statusBarStyle)&&void 0!==t?t:K.Default;this.gesture=((t,o,i,a)=>{const e=.5,r=t.offsetHeight;let p=!1,l=!1,c=null,m=null,f=!0,w=0;const v=R({el:t,gestureName:"modalSwipeToClose",gesturePriority:D,direction:"y",threshold:10,canStart:t=>{const o=t.event.target;if(null===o||!o.closest)return!0;if(c=s(o),c){if(n(c)){const t=b(c);m=t.querySelector(".inner-scroll")}else m=c;return!c.querySelector("ion-refresher")&&0===m.scrollTop}return null===o.closest("ion-footer")},onStart:i=>{const{deltaY:a}=i;f=!c||!n(c)||c.scrollY,l=void 0!==t.canDismiss&&!0!==t.canDismiss,a>0&&c&&d(c),o.progressStart(!0,p?1:0)},onMove:t=>{const{deltaY:a}=t;a>0&&c&&d(c);const s=t.deltaY/r,n=s>=0&&l,h=n?.2:.9999,p=n?H(s/h):s,m=u(1e-4,p,h);o.progressStep(m),m>=e&&w<e?G(i):m<e&&w>=e&&F(),w=m},onEnd:i=>{const s=i.velocityY,n=i.deltaY/r,d=n>=0&&l,m=d?.2:.9999,b=d?H(n/m):n,w=u(1e-4,b,m),x=!d&&(i.deltaY+1e3*s)/r>=e;let k=x?-.001:.001;x?(o.easing("cubic-bezier(0.32, 0.72, 0, 1)"),k+=L([0,0],[.32,.72],[0,1],[1,1],w)[0]):(o.easing("cubic-bezier(1, 0, 0.68, 0.28)"),k+=L([0,0],[1,0],[.68,.28],[1,1],w)[0]);const g=q(x?n*r:(1-w)*r,s);p=x,v.enable(!1),c&&h(c,f),o.onFinish((()=>{x||v.enable(!0)})).progressEnd(x?1:0,k,g),d&&w>m/4?_(t,o):x&&a()}});return v})(o,a,e,(()=>{this.gestureAnimationDismissing=!0,G(this.statusBarStyle),this.animation.onFinish((async()=>{await this.dismiss(void 0,A),this.gestureAnimationDismissing=!1}))})),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:o,backdropBreakpoint:i}=this;if(!t||void 0===o)return;const a=this.enterAnimation||z.get("modalEnter",X),e=this.animation=a(this.el,{presentingEl:this.presentingElement,currentBreakpoint:o,backdropBreakpoint:i});e.progressStart(!0,1);const{gesture:r,moveSheetToBreakpoint:d}=((t,o,i,a,e,r,d=[],h,p,l)=>{const c={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==e?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-e,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},m=t.querySelector("ion-content"),f=i.clientHeight;let v=a,x=0,k=!1;const g=r.childAnimations.find((t=>"wrapperAnimation"===t.id)),y=r.childAnimations.find((t=>"backdropAnimation"===t.id)),A=d[d.length-1],D=d[0],B=()=>{t.style.setProperty("pointer-events","auto"),o.style.setProperty("pointer-events","auto"),t.classList.remove("ion-disable-focus-trap")},Y=()=>{t.style.setProperty("pointer-events","none"),o.style.setProperty("pointer-events","none"),t.classList.add("ion-disable-focus-trap")};g&&y&&(g.keyframes([...c.WRAPPER_KEYFRAMES]),y.keyframes([...c.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-v),v>e?B():Y()),m&&v!==A&&(m.scrollY=!1);const j=o=>{const{breakpoint:i,canDismiss:a,breakpointOffset:s,animated:n}=o,h=a&&0===i,f=h?v:i,b=0!==f;return v=0,g&&y&&(g.keyframes([{offset:0,transform:`translateY(${100*s}%)`},{offset:1,transform:`translateY(${100*(1-f)}%)`}]),y.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${Z(1-s,e)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${Z(f,e)})`}]),r.progressStep(0)),M.enable(!1),h?_(t,r):b||p(),m&&f===d[d.length-1]&&(m.scrollY=!0),new Promise((t=>{r.onFinish((()=>{b?g&&y?w((()=>{g.keyframes([...c.WRAPPER_KEYFRAMES]),y.keyframes([...c.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-f),v=f,l(v),v>e?B():Y(),M.enable(!0),t()})):(M.enable(!0),t()):t()}),{oneTimeCallback:!0}).progressEnd(1,0,n?500:0)}))},M=R({el:i,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:t=>{const o=s(t.event.target);if(v=h(),1===v&&o){const t=n(o)?b(o).querySelector(".inner-scroll"):o;return!o.querySelector("ion-refresher")&&0===t.scrollTop}return!0},onStart:o=>{k=void 0!==t.canDismiss&&!0!==t.canDismiss&&0===D,o.deltaY>0&&m&&(m.scrollY=!1),w((()=>{t.focus()})),r.progressStart(!0,1-v)},onMove:t=>{t.deltaY>0&&m&&(m.scrollY=!1);const o=d.length>1?1-d[1]:void 0,i=1-v+t.deltaY/f,a=void 0!==o&&i>=o&&k,e=a?.95:.9999,s=a&&void 0!==o?o+H((i-o)/(e-o)):i;x=u(1e-4,s,e),r.progressStep(x)},onEnd:t=>{const o=v-(t.deltaY+350*t.velocityY)/f,i=d.reduce(((t,i)=>Math.abs(i-o)<Math.abs(t-o)?i:t));j({breakpoint:i,breakpointOffset:x,canDismiss:k,animated:!0})}});return{gesture:M,moveSheetToBreakpoint:j}})(this.el,this.backdropEl,t,o,i,e,this.sortedBreakpoints,(()=>{var t;return null!==(t=this.currentBreakpoint)&&void 0!==t?t:0}),(()=>this.sheetOnDismiss()),(t=>{this.currentBreakpoint!==t&&(this.currentBreakpoint=t,this.ionBreakpointDidChange.emit({breakpoint:t}))}));this.gesture=r,this.moveSheetToBreakpoint=d,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish((async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,A),this.gestureAnimationDismissing=!1}))}async dismiss(t,o){var a;if(this.gestureAnimationDismissing&&o!==A)return!1;const e=await this.lockController.lock();if("handler"!==o&&!await this.checkCanDismiss(t,o))return e(),!1;const{presentingElement:r}=this;void 0!==r&&"ios"===T(this)&&G(this.statusBarStyle),"undefined"!=typeof window&&this.keyboardOpenCallback&&(window.removeEventListener(I,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const s=await C(this,t,o,"modalLeave",tt,it,{presentingEl:r,currentBreakpoint:null!==(a=this.currentBreakpoint)&&void 0!==a?a:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(s){const{delegate:t}=this.getDelegate();await f(t,this.usersElement),i((()=>this.el.classList.remove("show-modal"))),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy()}return this.currentBreakpoint=void 0,this.animation=void 0,e(),s}onDidDismiss(){return S(this.el,"ionModalDidDismiss")}onWillDismiss(){return S(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal)return void g("setCurrentBreakpoint is only supported on sheet modals.");if(!this.breakpoints.includes(t))return void g(`Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:o,moveSheetToBreakpoint:i,canDismiss:a,breakpoints:e,animated:r}=this;o!==t&&i&&(this.sheetTransition=i({breakpoint:t,breakpointOffset:1-o,canDismiss:void 0!==a&&!0!==a&&0===e[0],animated:r}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:o}=this;if(!t||null==o)return!1;const i=t.filter((t=>0!==t)),a=i.indexOf(o),e=i[(a+1)%i.length];return await this.setCurrentBreakpoint(e),!0}render(){const{handle:t,isSheetModal:o,presentingElement:i,htmlAttributes:r,handleBehavior:s,inheritedAttributes:n}=this,d=!1!==t&&o,h=T(this),p=void 0!==i&&"ios"===h,l="cycle"===s;return a(e,Object.assign({key:"bb00efb8cbbdb2d1bbcc5e9c638586e2904882a8","no-router":!0,tabindex:"-1"},r,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[h]:!0,"modal-default":!p&&!o,"modal-card":p,"modal-sheet":o,"overlay-hidden":!0},O(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),a("ion-backdrop",{key:"d2d50f736fdc34b933c00309fe0b67e4aff7ee63",ref:t=>this.backdropEl=t,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===h&&a("div",{key:"5d3523a04da9350ae435a4f3247198095b71f206",class:"modal-shadow"}),a("div",Object.assign({key:"09b3c4b629155f8c32f5c896cf689ffbe7004de8",role:"dialog"},n,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:t=>this.wrapperEl=t}),d&&a("button",{key:"e47d90068927f3a518e4144e17f18ac326126712",class:"modal-handle",tabIndex:l?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:l?this.onHandleClick:void 0,part:"handle"}),a("slot",{key:"5733e94b3ecc4ed9bfb6aec5cd254cd0e43ee8f7"})))}get el(){return r(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},et={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};at.style={ios:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}',md:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}'};export{at as ion_modal}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-9146695e.system.js","./p-
|
|
4
|
+
System.register(["./p-9146695e.system.js","./p-f2026596.system.js","./p-b4a034c8.system.js","./p-cab332d1.system.js","./p-e673a0a2.system.js","./p-3e1e14d9.system.js","./p-31d27232.system.js","./p-3ad285e3.system.js","./p-f233f1e0.system.js","./p-4609d030.system.js","./p-842c9fca.system.js","./p-3b185894.system.js","./p-792919fd.system.js","./p-3d015cdb.system.js","./p-20d469d0.system.js","./p-2ff0e0aa.system.js","./p-ff4b7e40.system.js","./p-8635f5e6.system.js"],(function(e){"use strict";return{setters:[function(s){e("createAnimation",s.c)},function(s){var t={};t.LIFECYCLE_DID_ENTER=s.a;t.LIFECYCLE_DID_LEAVE=s.c;t.LIFECYCLE_WILL_ENTER=s.L;t.LIFECYCLE_WILL_LEAVE=s.b;t.LIFECYCLE_WILL_UNLOAD=s.d;t.getIonPageElement=s.g;e(t)},function(s){e("iosTransitionAnimation",s.iosTransitionAnimation)},function(s){e("mdTransitionAnimation",s.mdTransitionAnimation)},function(s){e("getTimeGivenProgression",s.g)},function(s){e("createGesture",s.createGesture)},function(s){var t={};t.getPlatforms=s.g;t.initialize=s.i;t.isPlatform=s.a;e(t)},function(s){e("componentOnReady",s.c)},function(s){var t={};t.IonicSafeString=s.I;t.getMode=s.g;t.setupConfig=s.s;e(t)},function(s){e("openURL",s.o)},function(s){e("menuController",s.m)},function(s){var t={};t.actionSheetController=s.b;t.alertController=s.a;t.loadingController=s.l;t.modalController=s.m;t.pickerController=s.p;t.popoverController=s.c;t.toastController=s.t;e(t)},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var s=e("IonicSlides",(function(e){var s=e.swiper,t=e.extendParams;var i={effect:undefined,direction:"horizontal",initialSlide:0,loop:false,parallax:false,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:false,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",freeMode:false,freeModeMomentum:true,freeModeMomentumRatio:1,freeModeMomentumBounce:true,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:false,freeModeMinimumVelocity:.02,autoHeight:false,setWrapperSize:false,zoom:{maxRatio:3,minRatio:1,toggle:false},touchRatio:1,touchAngle:45,simulateTouch:true,touchStartPreventDefault:false,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,threshold:0,touchMoveStopPropagation:true,touchReleaseOnEdges:false,iOSEdgeSwipeDetection:false,iOSEdgeSwipeThreshold:20,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,watchSlidesVisibility:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,loopAdditionalSlides:0,noSwiping:true,runCallbacksOnInit:true,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:true},flipEffect:{slideShadows:true,limitRotation:true},cubeEffect:{slideShadows:true,shadow:true,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:false},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};if(s.pagination){i.pagination={type:"bullets",clickable:false,hideOnClick:false}}if(s.scrollbar){i.scrollbar={hide:true}}t(i)}))}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(n,e,r,t){function i(n){return n instanceof r?n:new r((function(e){e(n)}))}return new(r||(r=Promise))((function(r,u){function a(n){try{c(t.next(n))}catch(n){u(n)}}function o(n){try{c(t["throw"](n))}catch(n){u(n)}}function c(n){n.done?r(n.value):i(n.value).then(a,o)}c((t=t.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},t,i,u,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(n){return function(e){return c([n,e])}}function c(o){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(r=0)),r)try{if(t=1,i&&(u=o[0]&2?i["return"]:o[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,o[1])).done)return u;if(i=0,u)o=[o[0]&2,u.value];switch(o[0]){case 0:case 1:u=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(u=r.trys,u=u.length>0&&u[u.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!u||o[1]>u[0]&&o[1]<u[3])){r.label=o[1];break}if(o[0]===6&&r.label<u[1]){r.label=u[1];u=o;break}if(u&&r.label<u[2]){r.label=u[2];r.ops.push(o);break}if(u[2])r.ops.pop();r.trys.pop();continue}o=e.call(n,r)}catch(n){o=[6,n];i=0}finally{t=u=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-3d015cdb.system.js","./p-3ad285e3.system.js"],(function(n,e){"use strict";var r,t,i;return{setters:[function(n){r=n.w;t=n.B},function(n){i=n.r}],execute:function(){var u=this;var a=n("L","ionViewWillEnter");var o=n("a","ionViewDidEnter");var c=n("b","ionViewWillLeave");var f=n("c","ionViewDidLeave");var s=n("d","ionViewWillUnload");var v=function(){return e.import("./p-
|
|
4
|
+
*/System.register(["./p-3d015cdb.system.js","./p-3ad285e3.system.js"],(function(n,e){"use strict";var r,t,i;return{setters:[function(n){r=n.w;t=n.B},function(n){i=n.r}],execute:function(){var u=this;var a=n("L","ionViewWillEnter");var o=n("a","ionViewDidEnter");var c=n("b","ionViewWillLeave");var f=n("c","ionViewDidLeave");var s=n("d","ionViewWillUnload");var v=function(){return e.import("./p-b4a034c8.system.js")};var d=function(){return e.import("./p-cab332d1.system.js")};var l=n("t",(function(n){return new Promise((function(e,t){r((function(){h(n);w(n).then((function(r){if(r.animation){r.animation.destroy()}_(n);e(r)}),(function(e){_(n);t(e)}))}))}))}));var h=function(n){var e=n.enteringEl;var r=n.leavingEl;L(e,r,n.direction);if(n.showGoBack){e.classList.add("can-go-back")}else{e.classList.remove("can-go-back")}C(e,false);e.style.setProperty("pointer-events","none");if(r){C(r,false);r.style.setProperty("pointer-events","none")}};var w=function(n){return __awaiter(u,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:return[4,p(n)];case 1:e=i.sent();r=e&&t.isBrowser?b(e,n):g(n);return[2,r]}}))}))};var _=function(n){var e=n.enteringEl;var r=n.leavingEl;e.classList.remove("ion-page-invisible");e.style.removeProperty("pointer-events");if(r!==undefined){r.classList.remove("ion-page-invisible");r.style.removeProperty("pointer-events")}};var p=function(n){return __awaiter(u,void 0,void 0,(function(){var e,r;return __generator(this,(function(t){switch(t.label){case 0:if(!n.leavingEl||!n.animated||n.duration===0){return[2,undefined]}if(n.animationBuilder){return[2,n.animationBuilder]}if(!(n.mode==="ios"))return[3,2];return[4,v()];case 1:r=t.sent().iosTransitionAnimation;return[3,4];case 2:return[4,d()];case 3:r=t.sent().mdTransitionAnimation;t.label=4;case 4:e=r;return[2,e]}}))}))};var b=function(n,e){return __awaiter(u,void 0,void 0,(function(){var r,t;return __generator(this,(function(i){switch(i.label){case 0:return[4,m(e,true)];case 1:i.sent();r=n(e.baseEl,e);P(e.enteringEl,e.leavingEl);return[4,k(r,e)];case 2:t=i.sent();if(e.progressCallback){e.progressCallback(undefined)}if(t){V(e.enteringEl,e.leavingEl)}return[2,{hasCompleted:t,animation:r}]}}))}))};var g=function(n){return __awaiter(u,void 0,void 0,(function(){var e,r;return __generator(this,(function(t){switch(t.label){case 0:e=n.enteringEl;r=n.leavingEl;return[4,m(n,false)];case 1:t.sent();P(e,r);V(e,r);return[2,{hasCompleted:true}]}}))}))};var m=function(n,e){return __awaiter(u,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:r=n.deepWait!==undefined?n.deepWait:e;if(!r)return[3,2];return[4,Promise.all([x(n.enteringEl),x(n.leavingEl)])];case 1:t.sent();t.label=2;case 2:return[4,y(n.viewIsReady,n.enteringEl)];case 3:t.sent();return[2]}}))}))};var y=function(n,e){return __awaiter(u,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(!n)return[3,2];return[4,n(e)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};var k=function(n,e){var r=e.progressCallback;var t=new Promise((function(e){n.onFinish((function(n){return e(n===1)}))}));if(r){n.progressStart(true);r(n)}else{n.play()}return t};var P=function(n,e){j(e,c);j(n,a)};var V=function(n,e){j(n,o);j(e,f)};var j=n("l",(function(n,e){if(n){var r=new CustomEvent(e,{bubbles:false,cancelable:false});n.dispatchEvent(r)}}));var E=n("w",(function(){return new Promise((function(n){return i((function(){return i((function(){return n()}))}))}))}));var x=n("e",(function(n){return __awaiter(u,void 0,void 0,(function(){var e,r,t;return __generator(this,(function(u){switch(u.label){case 0:e=n;if(!e)return[3,6];if(!(e.componentOnReady!=null))return[3,2];return[4,e.componentOnReady()];case 1:r=u.sent();if(r!=null){return[2]}return[3,4];case 2:if(!(e.__registerHost!=null))return[3,4];t=new Promise((function(n){return i(n)}));return[4,t];case 3:u.sent();return[2];case 4:return[4,Promise.all(Array.from(e.children).map(x))];case 5:u.sent();u.label=6;case 6:return[2]}}))}))}));var C=n("s",(function(n,e){if(e){n.setAttribute("aria-hidden","true");n.classList.add("ion-page-hidden")}else{n.hidden=false;n.removeAttribute("aria-hidden");n.classList.remove("ion-page-hidden")}}));var L=function(n,e,r){if(n!==undefined){n.style.zIndex=r==="back"?"99":"101"}if(e!==undefined){e.style.zIndex="100"}};var S=n("g",(function(n){if(n.classList.contains("ion-page")){return n}var e=n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");if(e){return e}return n}))}}}));
|
package/hydrate/index.js
CHANGED
|
@@ -31999,20 +31999,22 @@ const createLargeTitleTransition = (rootAnimation, rtl, backDirection, enteringE
|
|
|
31999
31999
|
const leavingLargeTitleBox = leavingLargeTitle.getBoundingClientRect();
|
|
32000
32000
|
const enteringBackButtonBox = enteringBackButton.getBoundingClientRect();
|
|
32001
32001
|
const enteringBackButtonTextEl = shadow(enteringBackButton).querySelector('.button-text');
|
|
32002
|
-
|
|
32002
|
+
// Text element not rendered if developers pass text="" to the back button
|
|
32003
|
+
const enteringBackButtonTextBox = enteringBackButtonTextEl === null || enteringBackButtonTextEl === void 0 ? void 0 : enteringBackButtonTextEl.getBoundingClientRect();
|
|
32003
32004
|
const leavingLargeTitleTextEl = shadow(leavingLargeTitle).querySelector('.toolbar-title');
|
|
32004
32005
|
const leavingLargeTitleTextBox = leavingLargeTitleTextEl.getBoundingClientRect();
|
|
32005
|
-
animateLargeTitle(rootAnimation, rtl, backDirection, leavingLargeTitle, leavingLargeTitleBox, leavingLargeTitleTextBox, enteringBackButtonTextEl, enteringBackButtonTextBox);
|
|
32006
|
+
animateLargeTitle(rootAnimation, rtl, backDirection, leavingLargeTitle, leavingLargeTitleBox, leavingLargeTitleTextBox, enteringBackButtonBox, enteringBackButtonTextEl, enteringBackButtonTextBox);
|
|
32006
32007
|
animateBackButton(rootAnimation, rtl, backDirection, enteringBackButton, enteringBackButtonBox, enteringBackButtonTextEl, enteringBackButtonTextBox, leavingLargeTitle, leavingLargeTitleTextBox);
|
|
32007
32008
|
}
|
|
32008
32009
|
else if (shouldAnimationBackward) {
|
|
32009
32010
|
const enteringLargeTitleBox = enteringLargeTitle.getBoundingClientRect();
|
|
32010
32011
|
const leavingBackButtonBox = leavingBackButton.getBoundingClientRect();
|
|
32011
32012
|
const leavingBackButtonTextEl = shadow(leavingBackButton).querySelector('.button-text');
|
|
32012
|
-
|
|
32013
|
+
// Text element not rendered if developers pass text="" to the back button
|
|
32014
|
+
const leavingBackButtonTextBox = leavingBackButtonTextEl === null || leavingBackButtonTextEl === void 0 ? void 0 : leavingBackButtonTextEl.getBoundingClientRect();
|
|
32013
32015
|
const enteringLargeTitleTextEl = shadow(enteringLargeTitle).querySelector('.toolbar-title');
|
|
32014
32016
|
const enteringLargeTitleTextBox = enteringLargeTitleTextEl.getBoundingClientRect();
|
|
32015
|
-
animateLargeTitle(rootAnimation, rtl, backDirection, enteringLargeTitle, enteringLargeTitleBox, enteringLargeTitleTextBox, leavingBackButtonTextEl, leavingBackButtonTextBox);
|
|
32017
|
+
animateLargeTitle(rootAnimation, rtl, backDirection, enteringLargeTitle, enteringLargeTitleBox, enteringLargeTitleTextBox, leavingBackButtonBox, leavingBackButtonTextEl, leavingBackButtonTextBox);
|
|
32016
32018
|
animateBackButton(rootAnimation, rtl, backDirection, leavingBackButton, leavingBackButtonBox, leavingBackButtonTextEl, leavingBackButtonTextBox, enteringLargeTitle, enteringLargeTitleTextBox);
|
|
32017
32019
|
}
|
|
32018
32020
|
return {
|
|
@@ -32026,26 +32028,31 @@ const animateBackButton = (rootAnimation, rtl, backDirection, backButtonEl, back
|
|
|
32026
32028
|
const TEXT_ORIGIN_X = rtl ? 'right' : 'left';
|
|
32027
32029
|
const ICON_ORIGIN_X = rtl ? 'left' : 'right';
|
|
32028
32030
|
const CONTAINER_ORIGIN_X = rtl ? 'right' : 'left';
|
|
32029
|
-
|
|
32030
|
-
|
|
32031
|
-
|
|
32032
|
-
* If the texts do not match up then the back button text scale adjusts
|
|
32033
|
-
* to not perfectly match the large title text otherwise the
|
|
32034
|
-
* proportions will be incorrect.
|
|
32035
|
-
* When the texts match we scale both the width and height to account for
|
|
32036
|
-
* font weight differences between the title and back button.
|
|
32037
|
-
*/
|
|
32038
|
-
const doTitleAndButtonTextsMatch = ((_a = backButtonTextEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === ((_b = largeTitleEl.textContent) === null || _b === void 0 ? void 0 : _b.trim());
|
|
32039
|
-
const WIDTH_SCALE = largeTitleTextBox.width / backButtonTextBox.width;
|
|
32040
|
-
/**
|
|
32041
|
-
* We subtract an offset to account for slight sizing/padding
|
|
32042
|
-
* differences between the title and the back button.
|
|
32043
|
-
*/
|
|
32044
|
-
const HEIGHT_SCALE = (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET) / backButtonTextBox.height;
|
|
32045
|
-
const TEXT_START_SCALE = doTitleAndButtonTextsMatch
|
|
32046
|
-
? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})`
|
|
32047
|
-
: `scale(${HEIGHT_SCALE})`;
|
|
32031
|
+
let WIDTH_SCALE = 1;
|
|
32032
|
+
let HEIGHT_SCALE = 1;
|
|
32033
|
+
let TEXT_START_SCALE = `scale(${HEIGHT_SCALE})`;
|
|
32048
32034
|
const TEXT_END_SCALE = 'scale(1)';
|
|
32035
|
+
if (backButtonTextEl && backButtonTextBox) {
|
|
32036
|
+
/**
|
|
32037
|
+
* When the title and back button texts match then they should overlap during the
|
|
32038
|
+
* page transition. If the texts do not match up then the back button text scale
|
|
32039
|
+
* adjusts to not perfectly match the large title text otherwise the proportions
|
|
32040
|
+
* will be incorrect. When the texts match we scale both the width and height to
|
|
32041
|
+
* account for font weight differences between the title and back button.
|
|
32042
|
+
*/
|
|
32043
|
+
const doTitleAndButtonTextsMatch = ((_a = backButtonTextEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === ((_b = largeTitleEl.textContent) === null || _b === void 0 ? void 0 : _b.trim());
|
|
32044
|
+
WIDTH_SCALE = largeTitleTextBox.width / backButtonTextBox.width;
|
|
32045
|
+
/**
|
|
32046
|
+
* Subtract an offset to account for slight sizing/padding differences between the
|
|
32047
|
+
* title and the back button.
|
|
32048
|
+
*/
|
|
32049
|
+
HEIGHT_SCALE = (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET) / backButtonTextBox.height;
|
|
32050
|
+
/**
|
|
32051
|
+
* Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
|
|
32052
|
+
* to re-compute this here since the HEIGHT_SCALE may have changed.
|
|
32053
|
+
*/
|
|
32054
|
+
TEXT_START_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
|
|
32055
|
+
}
|
|
32049
32056
|
const backButtonIconEl = shadow(backButtonEl).querySelector('ion-icon');
|
|
32050
32057
|
const backButtonIconBox = backButtonIconEl.getBoundingClientRect();
|
|
32051
32058
|
/**
|
|
@@ -32142,11 +32149,11 @@ const animateBackButton = (rootAnimation, rtl, backDirection, backButtonEl, back
|
|
|
32142
32149
|
top: '0px',
|
|
32143
32150
|
[CONTAINER_ORIGIN_X]: '0px',
|
|
32144
32151
|
})
|
|
32145
|
-
|
|
32146
|
-
|
|
32147
|
-
|
|
32148
|
-
|
|
32149
|
-
|
|
32152
|
+
/**
|
|
32153
|
+
* The write hooks must be set on this animation as it is guaranteed to run. Other
|
|
32154
|
+
* animations such as the back button text animation will not run if the back button
|
|
32155
|
+
* has no visible text.
|
|
32156
|
+
*/
|
|
32150
32157
|
.beforeAddWrite(() => {
|
|
32151
32158
|
backButtonEl.style.setProperty('display', 'none');
|
|
32152
32159
|
clonedBackButtonEl.style.setProperty(TEXT_ORIGIN_X, BACK_BUTTON_START_OFFSET);
|
|
@@ -32155,6 +32162,11 @@ const animateBackButton = (rootAnimation, rtl, backDirection, backButtonEl, back
|
|
|
32155
32162
|
backButtonEl.style.setProperty('display', '');
|
|
32156
32163
|
clonedBackButtonEl.style.setProperty('display', 'none');
|
|
32157
32164
|
clonedBackButtonEl.style.removeProperty(TEXT_ORIGIN_X);
|
|
32165
|
+
})
|
|
32166
|
+
.keyframes(CONTAINER_KEYFRAMES);
|
|
32167
|
+
enteringBackButtonTextAnimation
|
|
32168
|
+
.beforeStyles({
|
|
32169
|
+
'transform-origin': `${TEXT_ORIGIN_X} top`,
|
|
32158
32170
|
})
|
|
32159
32171
|
.keyframes(TEXT_KEYFRAMES);
|
|
32160
32172
|
enteringBackButtonIconAnimation
|
|
@@ -32168,7 +32180,7 @@ const animateBackButton = (rootAnimation, rtl, backDirection, backButtonEl, back
|
|
|
32168
32180
|
enteringBackButtonAnimation,
|
|
32169
32181
|
]);
|
|
32170
32182
|
};
|
|
32171
|
-
const animateLargeTitle = (rootAnimation, rtl, backDirection, largeTitleEl, largeTitleBox, largeTitleTextBox, backButtonTextEl, backButtonTextBox) => {
|
|
32183
|
+
const animateLargeTitle = (rootAnimation, rtl, backDirection, largeTitleEl, largeTitleBox, largeTitleTextBox, backButtonBox, backButtonTextEl, backButtonTextBox) => {
|
|
32172
32184
|
var _a, _b;
|
|
32173
32185
|
/**
|
|
32174
32186
|
* The horizontal transform origin for the large title
|
|
@@ -32188,52 +32200,67 @@ const animateLargeTitle = (rootAnimation, rtl, backDirection, largeTitleEl, larg
|
|
|
32188
32200
|
* title and the back button due to padding and font weight.
|
|
32189
32201
|
*/
|
|
32190
32202
|
const LARGE_TITLE_TRANSLATION_OFFSET = 8;
|
|
32203
|
+
let END_TRANSLATE_X = rtl
|
|
32204
|
+
? `-${window.innerWidth - backButtonBox.right - LARGE_TITLE_TRANSLATION_OFFSET}px`
|
|
32205
|
+
: `${backButtonBox.x + LARGE_TITLE_TRANSLATION_OFFSET}px`;
|
|
32191
32206
|
/**
|
|
32192
|
-
*
|
|
32193
|
-
|
|
32194
|
-
|
|
32195
|
-
|
|
32196
|
-
*
|
|
32197
|
-
|
|
32198
|
-
*/
|
|
32199
|
-
const END_TRANSLATE_X = rtl
|
|
32200
|
-
? `-${window.innerWidth - backButtonTextBox.right - LARGE_TITLE_TRANSLATION_OFFSET}px`
|
|
32201
|
-
: `${backButtonTextBox.x - LARGE_TITLE_TRANSLATION_OFFSET}px`;
|
|
32202
|
-
/**
|
|
32203
|
-
* The top of the scaled large title
|
|
32204
|
-
* should match with the top of the
|
|
32205
|
-
* back button text element.
|
|
32206
|
-
* We subtract 2px to account for the top padding
|
|
32207
|
-
* on the large title element.
|
|
32208
|
-
*/
|
|
32209
|
-
const LARGE_TITLE_TOP_PADDING = 2;
|
|
32210
|
-
const END_TRANSLATE_Y = `${backButtonTextBox.y - LARGE_TITLE_TOP_PADDING}px`;
|
|
32211
|
-
/**
|
|
32212
|
-
* In the forward direction, the large title should start at its
|
|
32213
|
-
* normal size and then scale down to be (roughly) the size of the
|
|
32214
|
-
* back button on the other view. In the backward direction, the
|
|
32215
|
-
* large title should start at (roughly) the size of the back button
|
|
32216
|
-
* and then scale up to its original size.
|
|
32217
|
-
*
|
|
32218
|
-
* Note that since both elements either fade in
|
|
32219
|
-
* or fade out over the course of the animation, neither element
|
|
32220
|
-
* will be fully visible on top of the other. As a result, the overlap
|
|
32221
|
-
* does not need to be perfect, so approximate values are acceptable here.
|
|
32222
|
-
*/
|
|
32223
|
-
/**
|
|
32224
|
-
* When the title and back button texts match
|
|
32225
|
-
* then they should overlap during the page transition.
|
|
32226
|
-
* If the texts do not match up then the large title text scale adjusts
|
|
32227
|
-
* to not perfectly match the back button text otherwise the
|
|
32228
|
-
* proportions will be incorrect.
|
|
32229
|
-
* When the texts match we scale both the width and height to account for
|
|
32230
|
-
* font weight differences between the title and back button.
|
|
32231
|
-
*/
|
|
32232
|
-
const doTitleAndButtonTextsMatch = ((_a = backButtonTextEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === ((_b = largeTitleEl.textContent) === null || _b === void 0 ? void 0 : _b.trim());
|
|
32233
|
-
const WIDTH_SCALE = backButtonTextBox.width / largeTitleTextBox.width;
|
|
32234
|
-
const HEIGHT_SCALE = backButtonTextBox.height / (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET);
|
|
32207
|
+
* How much to scale the large title up/down by.
|
|
32208
|
+
*/
|
|
32209
|
+
let HEIGHT_SCALE = 0.5;
|
|
32210
|
+
/**
|
|
32211
|
+
* The large title always starts full size.
|
|
32212
|
+
*/
|
|
32235
32213
|
const START_SCALE = 'scale(1)';
|
|
32236
|
-
|
|
32214
|
+
/**
|
|
32215
|
+
* By default, we don't worry about having the large title scaled to perfectly
|
|
32216
|
+
* match the back button because we don't know if the back button's text matches
|
|
32217
|
+
* the large title's text.
|
|
32218
|
+
*/
|
|
32219
|
+
let END_SCALE = `scale(${HEIGHT_SCALE})`;
|
|
32220
|
+
// Text element not rendered if developers pass text="" to the back button
|
|
32221
|
+
if (backButtonTextEl && backButtonTextBox) {
|
|
32222
|
+
/**
|
|
32223
|
+
* The scaled title should (roughly) overlap the back button. This ensures that
|
|
32224
|
+
* the back button and title overlap during the animation. Note that since both
|
|
32225
|
+
* elements either fade in or fade out over the course of the animation, neither
|
|
32226
|
+
* element will be fully visible on top of the other. As a result, the overlap
|
|
32227
|
+
* does not need to be perfect, so approximate values are acceptable here.
|
|
32228
|
+
*/
|
|
32229
|
+
END_TRANSLATE_X = rtl
|
|
32230
|
+
? `-${window.innerWidth - backButtonTextBox.right - LARGE_TITLE_TRANSLATION_OFFSET}px`
|
|
32231
|
+
: `${backButtonTextBox.x - LARGE_TITLE_TRANSLATION_OFFSET}px`;
|
|
32232
|
+
/**
|
|
32233
|
+
* In the forward direction, the large title should start at its normal size and
|
|
32234
|
+
* then scale down to be (roughly) the size of the back button on the other view.
|
|
32235
|
+
* In the backward direction, the large title should start at (roughly) the size
|
|
32236
|
+
* of the back button and then scale up to its original size.
|
|
32237
|
+
* Note that since both elements either fade in or fade out over the course of the
|
|
32238
|
+
* animation, neither element will be fully visible on top of the other. As a result,
|
|
32239
|
+
* the overlap does not need to be perfect, so approximate values are acceptable here.
|
|
32240
|
+
*/
|
|
32241
|
+
/**
|
|
32242
|
+
* When the title and back button texts match then they should overlap during the
|
|
32243
|
+
* page transition. If the texts do not match up then the large title text scale
|
|
32244
|
+
* adjusts to not perfectly match the back button text otherwise the proportions
|
|
32245
|
+
* will be incorrect. When the texts match we scale both the width and height to
|
|
32246
|
+
* account for font weight differences between the title and back button.
|
|
32247
|
+
*/
|
|
32248
|
+
const doTitleAndButtonTextsMatch = ((_a = backButtonTextEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === ((_b = largeTitleEl.textContent) === null || _b === void 0 ? void 0 : _b.trim());
|
|
32249
|
+
const WIDTH_SCALE = backButtonTextBox.width / largeTitleTextBox.width;
|
|
32250
|
+
HEIGHT_SCALE = backButtonTextBox.height / (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET);
|
|
32251
|
+
/**
|
|
32252
|
+
* Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
|
|
32253
|
+
* to re-compute this here since the HEIGHT_SCALE may have changed.
|
|
32254
|
+
*/
|
|
32255
|
+
END_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
|
|
32256
|
+
}
|
|
32257
|
+
/**
|
|
32258
|
+
* The midpoints of the back button and the title should align such that the back
|
|
32259
|
+
* button and title appear to be centered with each other.
|
|
32260
|
+
*/
|
|
32261
|
+
const backButtonMidPoint = backButtonBox.top + backButtonBox.height / 2;
|
|
32262
|
+
const titleMidPoint = (largeTitleBox.height * HEIGHT_SCALE) / 2;
|
|
32263
|
+
const END_TRANSLATE_Y = `${backButtonMidPoint - titleMidPoint}px`;
|
|
32237
32264
|
const BACKWARDS_KEYFRAMES = [
|
|
32238
32265
|
{ offset: 0, opacity: 0, transform: `translate3d(${END_TRANSLATE_X}, ${END_TRANSLATE_Y}, 0) ${END_SCALE}` },
|
|
32239
32266
|
{ offset: 0.1, opacity: 0 },
|