-
Notifications
You must be signed in to change notification settings - Fork 0
/
41-es5.b67d321802bb7adedf01.js
1 lines (1 loc) · 11.3 KB
/
41-es5.b67d321802bb7adedf01.js
1
!function(){function e(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function o(e,o,t,r,i,n,a){try{var p=e[n](a),s=p.value}catch(c){return void t(c)}p.done?o(s):Promise.resolve(s).then(r,i)}function t(e){return function(){var t=this,r=arguments;return new Promise((function(i,n){var a=e.apply(t,r);function p(e){o(a,i,n,p,s,"next",e)}function s(e){o(a,i,n,p,s,"throw",e)}p(void 0)}))}}function r(e,o){for(var t=0;t<o.length;t++){var r=o[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{qCuA:function(o,i,n){"use strict";n.r(i),n.d(i,"ion_popover",(function(){return x}));var a=n("OVxw"),p=n("vO0Z"),s=(n("gHap"),n("XnfD")),c=n("cXoa"),l=(n("x/Nk"),n("8ZMW")),d=n("hcCc"),v=n("NqGI"),h=function(e,o){var t="top",r="left",i=e.querySelector(".popover-content"),n=i.getBoundingClientRect(),a=n.width,p=n.height,c=e.ownerDocument.defaultView.innerWidth,l=e.ownerDocument.defaultView.innerHeight,d=o&&o.target&&o.target.getBoundingClientRect(),v=null!=d&&"top"in d?d.top:l/2-p/2,h=null!=d&&"left"in d?d.left:c/2,f=d&&d.width||0,b=d&&d.height||0,m=e.querySelector(".popover-arrow"),x=m.getBoundingClientRect(),w=x.width,g=x.height;null==d&&(m.style.display="none");var y={top:v+b,left:h+f/2-w/2},k={top:v+b+(g-1),left:h+f/2-a/2},O=!1,j=!1;k.left<u+25?(O=!0,k.left=u):a+u+k.left+25>c&&(j=!0,k.left=c-a-u,r="right"),v+b+p>l&&v-p>0?(y.top=v-(g+1),k.top=v-p-(g-1),e.className=e.className+" popover-bottom",t="bottom"):v+b+p>l&&(i.style.bottom=u+"%"),m.style.top=y.top+"px",m.style.left=y.left+"px",i.style.top=k.top+"px",i.style.left=k.left+"px",O&&(i.style.left="calc(".concat(k.left,"px + var(--ion-safe-area-left, 0px))")),j&&(i.style.left="calc(".concat(k.left,"px - var(--ion-safe-area-right, 0px))")),i.style.transformOrigin=t+" "+r;var D=Object(s.a)(),P=Object(s.a)(),E=Object(s.a)();return P.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),E.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.01,1),D.addElement(e).easing("ease").duration(100).addAnimation([P,E])},u=5,f=function(e){var o=Object(s.a)(),t=Object(s.a)(),r=Object(s.a)();return t.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),o.addElement(e).easing("ease").duration(500).addAnimation([t,r])},b=function(e,o){var t=e.ownerDocument,r="rtl"===t.dir,i="top",n=r?"right":"left",a=e.querySelector(".popover-content"),p=a.getBoundingClientRect(),c=p.width,l=p.height,d=t.defaultView.innerWidth,v=t.defaultView.innerHeight,h=o&&o.target&&o.target.getBoundingClientRect(),u=null!=h&&"bottom"in h?h.bottom:v/2-l/2,f=h&&h.height||0,b={top:u,left:null!=h&&"left"in h?r?h.left-c+h.width:h.left:d/2-c/2};b.left<12?(b.left=12,n="left"):c+12+b.left>d&&(b.left=d-c-12,n="right"),u+f+l>v&&u-l>0?(b.top=u-l-f,e.className=e.className+" popover-bottom",i="bottom"):u+f+l>v&&(a.style.bottom="12px");var m=Object(s.a)(),x=Object(s.a)(),w=Object(s.a)(),g=Object(s.a)(),y=Object(s.a)();return x.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),w.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.01,1),g.addElement(a).beforeStyles({top:b.top+"px",left:b.left+"px","transform-origin":"".concat(i," ").concat(n)}).fromTo("transform","scale(0.001)","scale(1)"),y.addElement(e.querySelector(".popover-viewport")).fromTo("opacity",.01,1),m.addElement(e).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).addAnimation([x,w,g,y])},m=function(e){var o=Object(s.a)(),t=Object(s.a)(),r=Object(s.a)();return t.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),o.addElement(e).easing("ease").duration(500).addAnimation([t,r])},x=function(){function o(e){var t=this;!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,o),Object(a.q)(this,e),this.didPresent=Object(a.i)(this,"ionPopoverDidPresent",7),this.willPresent=Object(a.i)(this,"ionPopoverWillPresent",7),this.willDismiss=Object(a.i)(this,"ionPopoverWillDismiss",7),this.didDismiss=Object(a.i)(this,"ionPopoverDidDismiss",7),this.presented=!1,this.keyboardClose=!0,this.backdropDismiss=!0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.onDismiss=function(e){e.stopPropagation(),e.preventDefault(),t.dismiss()},this.onBackdropTap=function(){t.dismiss(void 0,l.a)},this.onLifecycle=function(e){var o=t.usersElement,r=w[e.type];if(o&&r){var i=new CustomEvent(r,{bubbles:!1,cancelable:!1,detail:e.detail});o.dispatchEvent(i)}}}var i,n,s,u,x;return i=o,(n=[{key:"connectedCallback",value:function(){Object(l.f)(this.el)}},{key:"present",value:(x=t(regeneratorRuntime.mark((function e(){var o,t;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(o=this.el.querySelector(".popover-content")){e.next=5;break}throw new Error("container is undefined");case 5:return t=Object.assign(Object.assign({},this.componentProps),{popover:this.el}),e.next=8,Object(v.a)(this.delegate,o,this.component,["popover-viewport",this.el["s-sc"]],t);case 8:return this.usersElement=e.sent,e.next=11,Object(c.f)(this.usersElement);case 11:return e.abrupt("return",Object(l.e)(this,"popoverEnter",h,b,this.event));case 12:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"dismiss",value:(u=t(regeneratorRuntime.mark((function e(o,t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.g)(this,o,t,"popoverLeave",f,m,this.event);case 2:if(r=e.sent,e.t0=r,!e.t0){e.next=7;break}return e.next=7,Object(v.b)(this.delegate,this.usersElement);case 7:return e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e,o){return u.apply(this,arguments)})},{key:"onDidDismiss",value:function(){return Object(l.h)(this.el,"ionPopoverDidDismiss")}},{key:"onWillDismiss",value:function(){return Object(l.h)(this.el,"ionPopoverWillDismiss")}},{key:"render",value:function(){var o,t=Object(p.b)(this),r=this.onLifecycle;return Object(a.l)(a.c,{"aria-modal":"true","no-router":!0,tabindex:"-1",style:{zIndex:""+(2e4+this.overlayIndex)},class:Object.assign(Object.assign({},Object(d.b)(this.cssClass)),(o={},e(o,t,!0),e(o,"popover-translucent",this.translucent),o)),onIonPopoverDidPresent:r,onIonPopoverWillPresent:r,onIonPopoverWillDismiss:r,onIonPopoverDidDismiss:r,onIonDismiss:this.onDismiss,onIonBackdropTap:this.onBackdropTap},Object(a.l)("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop}),Object(a.l)("div",{tabindex:"0"}),Object(a.l)("div",{class:"popover-wrapper ion-overlay-wrapper"},Object(a.l)("div",{class:"popover-arrow"}),Object(a.l)("div",{class:"popover-content"})),Object(a.l)("div",{tabindex:"0"}))}},{key:"el",get:function(){return Object(a.m)(this)}}])&&r(i.prototype,n),s&&r(i,s),o}(),w={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};x.style={ios:'.sc-ion-popover-ios-h{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}.overlay-hidden.sc-ion-popover-ios-h{display:none}.popover-wrapper.sc-ion-popover-ios{opacity:0;z-index:10}.popover-content.sc-ion-popover-ios{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;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);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport.sc-ion-popover-ios{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px}.sc-ion-popover-ios-h{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}.popover-content.sc-ion-popover-ios{border-radius:10px}.popover-arrow.sc-ion-popover-ios{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow.sc-ion-popover-ios::after{left:3px;top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}[dir=rtl].sc-ion-popover-ios .popover-arrow.sc-ion-popover-ios::after,[dir=rtl].sc-ion-popover-ios-h .popover-arrow.sc-ion-popover-ios::after,[dir=rtl] .sc-ion-popover-ios-h .popover-arrow.sc-ion-popover-ios::after{left:unset;right:unset;right:3px}.popover-bottom.sc-ion-popover-ios-h .popover-arrow.sc-ion-popover-ios{top:auto;bottom:-10px}.popover-bottom.sc-ion-popover-ios-h .popover-arrow.sc-ion-popover-ios::after{top:-6px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.popover-translucent.sc-ion-popover-ios-h .popover-content.sc-ion-popover-ios,.popover-translucent.sc-ion-popover-ios-h .popover-arrow.sc-ion-popover-ios::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',md:".sc-ion-popover-md-h{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}.overlay-hidden.sc-ion-popover-md-h{display:none}.popover-wrapper.sc-ion-popover-md{opacity:0;z-index:10}.popover-content.sc-ion-popover-md{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;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);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport.sc-ion-popover-md{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px}.sc-ion-popover-md-h{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content.sc-ion-popover-md{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}[dir=rtl].sc-ion-popover-md .popover-content.sc-ion-popover-md,[dir=rtl].sc-ion-popover-md-h .popover-content.sc-ion-popover-md,[dir=rtl] .sc-ion-popover-md-h .popover-content.sc-ion-popover-md{-webkit-transform-origin:right top;transform-origin:right top}.popover-viewport.sc-ion-popover-md{-webkit-transition-delay:100ms;transition-delay:100ms}"}}}])}();