-
Notifications
You must be signed in to change notification settings - Fork 0
/
7701-es2015.fae278b79982d115b8ea.js
1 lines (1 loc) · 8.86 KB
/
7701-es2015.fae278b79982d115b8ea.js
1
(self.webpackChunkv2x_frontend=self.webpackChunkv2x_frontend||[]).push([[7701],{7701:function(i,n,t){"use strict";t.r(n),t.d(n,{ion_loading:function(){return m}});var e=t(1429),o=t(8931),a=t(9089),r=t(4221),s=t(4881),d=t(5296);t(1494);const l=i=>{const n=(0,d.c)(),t=(0,d.c)(),e=(0,d.c)();return t.addElement(i.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),n.addElement(i).easing("ease-in-out").duration(200).addAnimation([t,e])},c=i=>{const n=(0,d.c)(),t=(0,d.c)(),e=(0,d.c)();return t.addElement(i.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),e.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),n.addElement(i).easing("ease-in-out").duration(200).addAnimation([t,e])},p=i=>{const n=(0,d.c)(),t=(0,d.c)(),e=(0,d.c)();return t.addElement(i.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),n.addElement(i).easing("ease-in-out").duration(200).addAnimation([t,e])},g=i=>{const n=(0,d.c)(),t=(0,d.c)(),e=(0,d.c)();return t.addElement(i.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),e.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),n.addElement(i).easing("ease-in-out").duration(200).addAnimation([t,e])},m=class{constructor(i){(0,e.r)(this,i),this.didPresent=(0,e.e)(this,"ionLoadingDidPresent",7),this.willPresent=(0,e.e)(this,"ionLoadingWillPresent",7),this.willDismiss=(0,e.e)(this,"ionLoadingWillDismiss",7),this.didDismiss=(0,e.e)(this,"ionLoadingDidDismiss",7),this.customHTMLEnabled=o.c.get("innerHTMLTemplatesEnabled",a.E),this.presented=!1,this.keyboardClose=!0,this.duration=0,this.backdropDismiss=!1,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,r.B)}}connectedCallback(){(0,r.e)(this.el)}componentWillLoad(){if(void 0===this.spinner){const i=(0,o.b)(this);this.spinner=o.c.get("loadingSpinner",o.c.get("spinner","ios"===i?"lines":"crescent"))}}async present(){await(0,r.d)(this,"loadingEnter",l,p),this.duration>0&&(this.durationTimeout=setTimeout(()=>this.dismiss(),this.duration+10))}dismiss(i,n){return this.durationTimeout&&clearTimeout(this.durationTimeout),(0,r.f)(this,i,n,"loadingLeave",c,g)}onDidDismiss(){return(0,r.g)(this.el,"ionLoadingDidDismiss")}onWillDismiss(){return(0,r.g)(this.el,"ionLoadingWillDismiss")}renderLoadingMessage(i){const{customHTMLEnabled:n,message:t}=this;return n?(0,e.h)("div",{class:"loading-content",id:i,innerHTML:(0,a.a)(t)}):(0,e.h)("div",{class:"loading-content",id:i},t)}render(){const{message:i,spinner:n,htmlAttributes:t,overlayIndex:a}=this,r=(0,o.b)(this),d=`loading-${a}-msg`;return(0,e.h)(e.H,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":void 0!==i?d:null,tabindex:"-1"},t,{style:{zIndex:`${4e4+this.overlayIndex}`},onIonBackdropTap:this.onBackdropTap,class:Object.assign(Object.assign({},(0,s.g)(this.cssClass)),{[r]:!0,"overlay-hidden":!0,"loading-translucent":this.translucent})}),(0,e.h)("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),(0,e.h)("div",{tabindex:"0"}),(0,e.h)("div",{class:"loading-wrapper ion-overlay-wrapper"},n&&(0,e.h)("div",{class:"loading-spinner"},(0,e.h)("ion-spinner",{name:n,"aria-hidden":"true"})),void 0!==i&&this.renderLoadingMessage(d)),(0,e.h)("div",{tabindex:"0"}))}get el(){return(0,e.i)(this)}};m.style={ios:".sc-ion-loading-ios-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;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;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-loading-ios-h{display:none}.loading-wrapper.sc-ion-loading-ios{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;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);opacity:0;z-index:10}ion-spinner.sc-ion-loading-ios{color:var(--spinner-color)}.sc-ion-loading-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:270px;--max-height:90%;--spinner-color:var(--ion-color-step-600, #666666);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);color:var(--ion-text-color, #000);font-size:14px}.loading-wrapper.sc-ion-loading-ios{border-radius:8px;padding-left:34px;padding-right:34px;padding-top:24px;padding-bottom:24px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.loading-wrapper.sc-ion-loading-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:34px;padding-inline-start:34px;-webkit-padding-end:34px;padding-inline-end:34px}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.loading-translucent.sc-ion-loading-ios-h .loading-wrapper.sc-ion-loading-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.loading-content.sc-ion-loading-ios{font-weight:bold}.loading-spinner.sc-ion-loading-ios+.loading-content.sc-ion-loading-ios{margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.loading-spinner.sc-ion-loading-ios+.loading-content.sc-ion-loading-ios{margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}",md:".sc-ion-loading-md-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;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;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-loading-md-h{display:none}.loading-wrapper.sc-ion-loading-md{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;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);opacity:0;z-index:10}ion-spinner.sc-ion-loading-md{color:var(--spinner-color)}.sc-ion-loading-md-h{--background:var(--ion-color-step-50, #f2f2f2);--max-width:280px;--max-height:90%;--spinner-color:var(--ion-color-primary, #3880ff);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);color:var(--ion-color-step-850, #262626);font-size:14px}.loading-wrapper.sc-ion-loading-md{border-radius:2px;padding-left:24px;padding-right:24px;padding-top:24px;padding-bottom:24px;-webkit-box-shadow:0 16px 20px rgba(0, 0, 0, 0.4);box-shadow:0 16px 20px rgba(0, 0, 0, 0.4)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.loading-wrapper.sc-ion-loading-md{padding-left:unset;padding-right:unset;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px}}.loading-spinner.sc-ion-loading-md+.loading-content.sc-ion-loading-md{margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.loading-spinner.sc-ion-loading-md+.loading-content.sc-ion-loading-md{margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}"}},4881:function(i,n,t){"use strict";t.d(n,{c:function(){return o},g:function(){return a},h:function(){return e},o:function(){return s}});const e=(i,n)=>null!==n.closest(i),o=(i,n)=>"string"==typeof i&&i.length>0?Object.assign({"ion-color":!0,[`ion-color-${i}`]:!0},n):n,a=i=>{const n={};return(i=>void 0!==i?(Array.isArray(i)?i:i.split(" ")).filter(i=>null!=i).map(i=>i.trim()).filter(i=>""!==i):[])(i).forEach(i=>n[i]=!0),n},r=/^[a-z][a-z0-9+\-.]*:/,s=async(i,n,t,e)=>{if(null!=i&&"#"!==i[0]&&!r.test(i)){const o=document.querySelector("ion-router");if(o)return null!=n&&n.preventDefault(),o.push(i,t,e)}return!1}}}]);