-
Notifications
You must be signed in to change notification settings - Fork 0
/
39-es5.18ad3b1ebb11e9c7db6d.js
1 lines (1 loc) · 15.7 KB
/
39-es5.18ad3b1ebb11e9c7db6d.js
1
!function(){function e(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function t(e,t,o,a,i,r,n){try{var s=e[r](n),d=s.value}catch(l){return void o(l)}s.done?t(d):Promise.resolve(d).then(a,i)}function o(e){return function(){var o=this,a=arguments;return new Promise((function(i,r){var n=e.apply(o,a);function s(e){t(n,i,r,s,d,"next",e)}function d(e){t(n,i,r,s,d,"throw",e)}s(void 0)}))}}function a(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{TvZU:function(t,i,r){"use strict";r.r(i),r.d(i,"ion_modal",(function(){return y}));var n=r("OVxw"),s=r("vO0Z"),d=r("gHap"),l=r("XnfD"),c=r("cXoa"),m=r("PLvT"),p=(r("rxGk"),r("ItpF")),h=(r("x/Nk"),r("8ZMW")),f=r("hcCc"),u=r("NqGI"),b=function(e,t){var o=Object(l.a)().addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),a=Object(l.a)().addElement(e.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1}).fromTo("transform","translateY(100vh)","translateY(0vh)"),i=Object(l.a)().addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(a);if(t){var r=window.innerWidth<768,n="ION-MODAL"===t.tagName&&void 0!==t.presentingElement,s=Object(l.a)().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),d=document.body;if(r){var c=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",m="translateY(".concat(n?"-10px":c,") scale(0.93)");s.afterStyles({transform:m}).beforeAddWrite((function(){return d.style.setProperty("background-color","black")})).addElement(t).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:m,borderRadius:"10px 10px 0 0"}]),i.addAnimation(s)}else if(i.addAnimation(o),n){var p="translateY(-10px) scale(".concat(n?.93:1,")");s.afterStyles({transform:p}).addElement(t.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:p}]);var h=Object(l.a)().afterStyles({transform:p}).addElement(t.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:p}]);i.addAnimation([s,h])}else a.fromTo("opacity","0","1")}else i.addAnimation(o);return i},x=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,a=Object(l.a)().addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i=Object(l.a)().addElement(e.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1}).fromTo("transform","translateY(0vh)","translateY(100vh)"),r=Object(l.a)().addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(o).addAnimation(i);if(t){var n=window.innerWidth<768,s="ION-MODAL"===t.tagName&&void 0!==t.presentingElement,d=Object(l.a)().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((function(e){1===e&&(t.style.setProperty("overflow",""),Array.from(c.querySelectorAll("ion-modal")).filter((function(e){return void 0!==e.presentingElement})).length<=1&&c.style.setProperty("background-color",""))})),c=document.body;if(n){var m=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",p="translateY(".concat(s?"-10px":m,") scale(0.93)");d.addElement(t).keyframes([{offset:0,filter:"contrast(0.85)",transform:p,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),r.addAnimation(d)}else if(r.addAnimation(a),s){var h="translateY(-10px) scale(".concat(s?.93:1,")");d.addElement(t.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:h},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);var f=Object(l.a)().addElement(t.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:h},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);r.addAnimation([d,f])}else i.fromTo("opacity","1","0")}else r.addAnimation(a);return r},w=function(e){var t=Object(l.a)(),o=Object(l.a)(),a=Object(l.a)();return o.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),a.addElement(e.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]),t.addElement(e).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([o,a])},v=function(e){var t=Object(l.a)(),o=Object(l.a)(),a=Object(l.a)(),i=e.querySelector(".modal-wrapper");return o.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(i).keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]),t.addElement(e).easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([o,a])},y=function(){function t(e){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Object(n.q)(this,e),this.didPresent=Object(n.i)(this,"ionModalDidPresent",7),this.willPresent=Object(n.i)(this,"ionModalWillPresent",7),this.willDismiss=Object(n.i)(this,"ionModalWillDismiss",7),this.didDismiss=Object(n.i)(this,"ionModalDidDismiss",7),this.gestureAnimationDismissing=!1,this.presented=!1,this.keyboardClose=!0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.swipeToClose=!1,this.onBackdropTap=function(){o.dismiss(void 0,h.a)},this.onDismiss=function(e){e.stopPropagation(),e.preventDefault(),o.dismiss()},this.onLifecycle=function(e){var t=o.usersElement,a=g[e.type];if(t&&a){var i=new CustomEvent(a,{bubbles:!1,cancelable:!1,detail:e.detail});t.dispatchEvent(i)}}}var i,r,l,y,k;return i=t,r=[{key:"swipeToCloseChanged",value:function(e){this.gesture?this.gesture.enable(e):e&&this.initSwipeToClose()}},{key:"connectedCallback",value:function(){Object(h.f)(this.el)}},{key:"present",value:(k=o(regeneratorRuntime.mark((function e(){var t,o,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.presented){e.next=2;break}return e.abrupt("return");case 2:if(t=this.el.querySelector(".modal-wrapper")){e.next=5;break}throw new Error("container is undefined");case 5:return o=Object.assign(Object.assign({},this.componentProps),{modal:this.el}),e.next=8,Object(u.a)(this.delegate,t,this.component,["ion-page"],o);case 8:return this.usersElement=e.sent,e.next=11,Object(c.f)(this.usersElement);case 11:return Object(n.g)((function(){return a.el.classList.add("show-modal")})),e.next=14,Object(h.e)(this,"modalEnter",b,w,this.presentingElement);case 14:this.swipeToClose&&this.initSwipeToClose();case 15:case"end":return e.stop()}}),e,this)}))),function(){return k.apply(this,arguments)})},{key:"initSwipeToClose",value:function(){var e=this;if("ios"===Object(s.b)(this)){var t,a,i,r,n,l=this.leaveAnimation||s.c.get("modalLeave",x),c=this.animation=l(this.el,this.presentingElement);this.gesture=(t=this.el,a=c,i=t.offsetHeight,r=!1,n=Object(p.createGesture)({el:t,gestureName:"modalSwipeToClose",gesturePriority:40,direction:"y",threshold:10,canStart:function(e){var t=e.event.target;return null===t||!t.closest||null===t.closest("ion-content")},onStart:function(){a.progressStart(!0,r?1:0)},onMove:function(e){var t=Object(d.c)(1e-4,e.deltaY/i,.9999);a.progressStep(t)},onEnd:function(t){var s=t.velocityY,l=Object(d.c)(1e-4,t.deltaY/i,.9999),c=(t.deltaY+1e3*s)/i>=.5,p=c?-.001:.001;c?(a.easing("cubic-bezier(0.32, 0.72, 0, 1)"),p+=Object(m.a)([0,0],[.32,.72],[0,1],[1,1],l)[0]):(a.easing("cubic-bezier(1, 0, 0.68, 0.28)"),p+=Object(m.a)([0,0],[1,0],[.68,.28],[1,1],l)[0]);var h=function(e,t){return Object(d.c)(400,e/Math.abs(1.1*t),500)}(c?l*i:(1-l)*i,s);r=c,n.enable(!1),a.onFinish((function(){c||n.enable(!0)})).progressEnd(c?1:0,p,h),c&&(e.gestureAnimationDismissing=!0,e.animation.onFinish(o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dismiss(void 0,"gesture");case 2:e.gestureAnimationDismissing=!1;case 3:case"end":return t.stop()}}),t)})))))}})),this.gesture.enable(!0)}}},{key:"dismiss",value:(y=o(regeneratorRuntime.mark((function e(t,o){var a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.gestureAnimationDismissing||"gesture"===o){e.next=2;break}return e.abrupt("return",!1);case 2:return a=h.i.get(this)||[],e.next=5,Object(h.g)(this,t,o,"modalLeave",x,v,this.presentingElement);case 5:if(i=e.sent,e.t0=i,!e.t0){e.next=12;break}return e.next=10,Object(u.b)(this.delegate,this.usersElement);case 10:this.animation&&this.animation.destroy(),a.forEach((function(e){return e.destroy()}));case 12:return this.animation=void 0,e.abrupt("return",i);case 14:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"onDidDismiss",value:function(){return Object(h.h)(this.el,"ionModalDidDismiss")}},{key:"onWillDismiss",value:function(){return Object(h.h)(this.el,"ionModalWillDismiss")}},{key:"render",value:function(){var t,o=Object(s.b)(this);return Object(n.l)(n.c,{"no-router":!0,"aria-modal":"true",tabindex:"-1",class:Object.assign((t={},e(t,o,!0),e(t,"modal-card",void 0!==this.presentingElement&&"ios"===o),t),Object(f.b)(this.cssClass)),style:{zIndex:""+(2e4+this.overlayIndex)},onIonBackdropTap:this.onBackdropTap,onIonDismiss:this.onDismiss,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle},Object(n.l)("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),"ios"===o&&Object(n.l)("div",{class:"modal-shadow"}),Object(n.l)("div",{tabindex:"0"}),Object(n.l)("div",{role:"dialog",class:"modal-wrapper ion-overlay-wrapper"}),Object(n.l)("div",{tabindex:"0"}))}},{key:"el",get:function(){return Object(n.m)(this)}}],l=[{key:"watchers",get:function(){return{swipeToClose:["swipeToCloseChanged"]}}}],r&&a(i.prototype,r),l&&a(i,l),t}(),g={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};y.style={ios:".sc-ion-modal-ios-h{--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;contain:strict}.overlay-hidden.sc-ion-modal-ios-h{display:none}.modal-wrapper.sc-ion-modal-ios,.modal-shadow.sc-ion-modal-ios{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.sc-ion-modal-ios{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){.sc-ion-modal-ios-h{--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){.sc-ion-modal-ios-h{--width:600px;--height:600px}}.sc-ion-modal-ios-h:first-of-type{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}@media only screen and (min-width: 768px) and (min-height: 600px){.sc-ion-modal-ios-h{--border-radius:10px}}.modal-wrapper.sc-ion-modal-ios{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){.modal-card.sc-ion-modal-ios-h{--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){.modal-card.sc-ion-modal-ios-h{--height:calc(100% - 40px)}}.modal-card.sc-ion-modal-ios-h .modal-wrapper.sc-ion-modal-ios{border-top-left-radius:10px;border-top-right-radius:10px;border-bottom-right-radius:0;border-bottom-left-radius:0}[dir=rtl].sc-ion-modal-ios-h -no-combinator.modal-card.sc-ion-modal-ios-h .modal-wrapper.sc-ion-modal-ios,[dir=rtl] .sc-ion-modal-ios-h -no-combinator.modal-card.sc-ion-modal-ios-h .modal-wrapper.sc-ion-modal-ios,[dir=rtl].modal-card.sc-ion-modal-ios-h .modal-wrapper.sc-ion-modal-ios,[dir=rtl] .modal-card.sc-ion-modal-ios-h .modal-wrapper.sc-ion-modal-ios{border-top-left-radius:10px;border-top-right-radius:10px;border-bottom-right-radius:0;border-bottom-left-radius:0}.modal-card.sc-ion-modal-ios-h{--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}.modal-card.sc-ion-modal-ios-h .modal-shadow.sc-ion-modal-ios{display:none}.modal-card.sc-ion-modal-ios-h ion-backdrop.sc-ion-modal-ios{pointer-events:none}}@media screen and (min-width: 768px){.modal-card.sc-ion-modal-ios-h{--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px}.modal-card.sc-ion-modal-ios-h{--backdrop-opacity:0;-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}.modal-card.sc-ion-modal-ios-h:first-of-type{--backdrop-opacity:0.18}.modal-card.sc-ion-modal-ios-h .modal-shadow.sc-ion-modal-ios{-webkit-box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1)}}",md:".sc-ion-modal-md-h{--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;contain:strict}.overlay-hidden.sc-ion-modal-md-h{display:none}.modal-wrapper.sc-ion-modal-md,.modal-shadow.sc-ion-modal-md{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.sc-ion-modal-md{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){.sc-ion-modal-md-h{--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){.sc-ion-modal-md-h{--width:600px;--height:600px}}.sc-ion-modal-md-h:first-of-type{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){.sc-ion-modal-md-h{--border-radius:2px}.sc-ion-modal-md-h:first-of-type{--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper.sc-ion-modal-md{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}"}}}])}();