This repository has been archived by the owner on Feb 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path22.120cbca3d3ee3e34c07f.js
1 lines (1 loc) · 14.4 KB
/
22.120cbca3d3ee3e34c07f.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{"sXw/":function(o,t,n){"use strict";n.r(t),n.d(t,"IonButton",function(){return a}),n.d(t,"IonIcon",function(){return l});var i=n("cBjU"),e=n("k5vO"),r=n("HHlg"),a=function(){function o(){var o=this;this.keyFocus=!1,this.buttonType="button",this.disabled=!1,this.strong=!1,this.type="button",this.onFocus=function(){o.ionFocus.emit()},this.onKeyUp=function(){o.keyFocus=!0},this.onBlur=function(){o.keyFocus=!1,o.ionBlur.emit()},this.onClick=function(t){if("button"===o.type)return Object(r.i)(o.win,o.href,t,o.routerDirection);if(Object(e.c)(o.el)){var n=o.el.closest("form");if(n){t.preventDefault();var i=document.createElement("button");i.type=o.type,i.style.display="none",n.appendChild(i),i.click(),i.remove()}}return Promise.resolve(!1)}}return o.prototype.componentWillLoad=function(){void 0===this.fill&&(this.fill=this.el.closest("ion-buttons")?"clear":"solid")},o.prototype.hostData=function(){var o,t=this,n=t.buttonType,i=t.keyFocus,e=t.disabled,a=t.expand,s=t.fill,c=t.shape,l=t.size,u=t.strong;return{"ion-activatable":!0,class:Object.assign({},Object(r.h)(t.color),(o={},o[n]=!0,o[n+"-"+a]=!!a,o[n+"-"+l]=!!l,o[n+"-"+c]=!!c,o[n+"-"+s]=!!s,o[n+"-strong"]=u,o.focused=i,o["button-disabled"]=e,o))}},o.prototype.render=function(){var o=void 0===this.href?"button":"a";return Object(i.b)(o,Object.assign({},"button"===o?{type:this.type}:{href:this.href},{class:"button-native",disabled:this.disabled,onFocus:this.onFocus,onKeyUp:this.onKeyUp,onBlur:this.onBlur,onClick:this.onClick}),Object(i.b)("span",{class:"button-inner"},Object(i.b)("slot",{name:"icon-only"}),Object(i.b)("slot",{name:"start"}),Object(i.b)("slot",null),Object(i.b)("slot",{name:"end"})),"md"===this.mode&&Object(i.b)("ion-ripple-effect",null))},Object.defineProperty(o,"is",{get:function(){return"ion-button"},enumerable:!0,configurable:!0}),Object.defineProperty(o,"encapsulation",{get:function(){return"shadow"},enumerable:!0,configurable:!0}),Object.defineProperty(o,"properties",{get:function(){return{buttonType:{type:String,attr:"button-type",mutable:!0},color:{type:String,attr:"color"},disabled:{type:Boolean,attr:"disabled",reflectToAttr:!0},el:{elementRef:!0},expand:{type:String,attr:"expand",reflectToAttr:!0},fill:{type:String,attr:"fill",reflectToAttr:!0,mutable:!0},href:{type:String,attr:"href"},keyFocus:{state:!0},mode:{type:String,attr:"mode"},routerDirection:{type:String,attr:"router-direction"},shape:{type:String,attr:"shape",reflectToAttr:!0},size:{type:String,attr:"size",reflectToAttr:!0},strong:{type:Boolean,attr:"strong"},type:{type:String,attr:"type"},win:{context:"window"}}},enumerable:!0,configurable:!0}),Object.defineProperty(o,"events",{get:function(){return[{name:"ionFocus",method:"ionFocus",bubbles:!0,cancelable:!0,composed:!0},{name:"ionBlur",method:"ionBlur",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(o,"style",{get:function(){return".sc-ion-button-ios-h{--width:auto;--overflow:hidden;--ripple-color:currentColor;display:inline-block;color:var(--color);font-family:var(--ion-font-family,inherit);pointer-events:auto;text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}.button-disabled.sc-ion-button-ios-h{pointer-events:none}.button-solid.sc-ion-button-ios-h{--background:var(--ion-color-primary,#3880ff);--background-activated:var(--ion-color-primary-shade,#3171e0);--background-focused:var(--ion-color-primary-shade,#3171e0);--color:var(--ion-color-primary-contrast,#fff);--color-activated:var(--ion-color-primary-contrast,#fff);--color-focused:var(--ion-color-primary-contrast,#fff)}.button-solid.ion-color.sc-ion-button-ios-h .button-native.sc-ion-button-ios{background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-solid.ion-color.activated.sc-ion-button-ios-h .button-native.sc-ion-button-ios, .button-solid.ion-color.focused.sc-ion-button-ios-h .button-native.sc-ion-button-ios{background:var(--ion-color-shade)}.button-outline.sc-ion-button-ios-h{--border-color:var(--ion-color-primary,#3880ff);--background:transparent;--color:var(--ion-color-primary,#3880ff);--color-focused:var(--ion-color-primary,#3880ff)}.button-outline.ion-color.sc-ion-button-ios-h .button-native.sc-ion-button-ios{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}.button-outline.focused.ion-color.sc-ion-button-ios-h .button-native.sc-ion-button-ios{background:rgba(var(--ion-color-base-rgb),.1);color:var(--ion-color-base)}.button-clear.sc-ion-button-ios-h{--border-width:0;--background:transparent;--color:var(--ion-color-primary,#3880ff)}.button-clear.ion-color.sc-ion-button-ios-h .button-native.sc-ion-button-ios{background:transparent;color:var(--ion-color-base)}.button-clear.focused.ion-color.sc-ion-button-ios-h .button-native.sc-ion-button-ios{background:rgba(var(--ion-color-base-rgb),.1);color:var(--ion-color-base)}.button-clear.activated.ion-color.sc-ion-button-ios-h .button-native.sc-ion-button-ios{background:transparent}.button-block.sc-ion-button-ios-h{display:block}.button-block.sc-ion-button-ios-h .button-native.sc-ion-button-ios{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:strict}.button-block.sc-ion-button-ios-h .button-native.sc-ion-button-ios:after{clear:both}.button-full.sc-ion-button-ios-h{display:block}.button-full.sc-ion-button-ios-h .button-native.sc-ion-button-ios{margin-left:0;margin-right:0;display:block;width:100%;contain:strict}.button-full.sc-ion-button-ios-h:not(.button-round) .button-native.sc-ion-button-ios{border-radius:0;border-right-width:0;border-left-width:0}.button-native.sc-ion-button-ios{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:var(--margin-top) var(--margin-end) var(--margin-bottom) var(--margin-start);padding:var(--padding-top) var(--padding-end) var(--padding-bottom) var(--padding-start);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:var(--width);height:var(--height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:content;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native[disabled].sc-ion-button-ios{cursor:default;opacity:.5;pointer-events:none}.focused.sc-ion-button-ios-h .button-native.sc-ion-button-ios{background:var(--background-focused);color:var(--color-focused)}.activated.sc-ion-button-ios-h .button-native.sc-ion-button-ios{background:var(--background-activated);color:var(--color-activated)}.button-inner.sc-ion-button-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.sc-ion-button-ios-s > ion-icon{font-size:1.4em;pointer-events:none}.sc-ion-button-ios-s > ion-icon[slot=start]{margin:0 .3em 0 -.3em}.sc-ion-button-ios-s > ion-icon[slot=end]{margin:0 -.2em 0 .3em}.sc-ion-button-ios-s > ion-icon[slot=icon-only]{font-size:1.8em}ion-ripple-effect.sc-ion-button-ios{color:var(--ripple-color)}.sc-ion-button-ios-h{--border-radius:12px;--margin-top:4px;--margin-bottom:4px;--margin-start:2px;--margin-end:2px;--padding-top:0;--padding-bottom:0;--padding-start:1em;--padding-end:1em;--height:2.8em;--transition:background-color,opacity 100ms linear;font-size:16px;font-weight:500;letter-spacing:-.03em}@media (any-hover:hover){.button-solid.sc-ion-button-ios-h:hover{--opacity:0.8}}.button-solid.activated.sc-ion-button-ios-h{--opacity:1}.button-outline.sc-ion-button-ios-h{--border-radius:12px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary,#3880ff);--background-focused:rgba(var(--ion-color-primary-rgb,56,128,255),0.1);--color-activated:var(--ion-color-primary-contrast,#fff)}.button-outline.activated.ion-color.sc-ion-button-ios-h .button-native.sc-ion-button-ios{background:var(--ion-color-base);color:var(--ion-color-contrast)}@media (any-hover:hover){.button-clear.sc-ion-button-ios-h:hover{--opacity:0.6}}.button-clear.activated.sc-ion-button-ios-h{--opacity:0.4}.button-clear.sc-ion-button-ios-h{--background-activated:transparent;--background-focused:rgba(var(--ion-color-primary-rgb,56,128,255),0.1);--color-activated:var(--ion-color-primary,#3880ff);--color-focused:var(--ion-color-primary,#3880ff)}.button-round.sc-ion-button-ios-h{--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}.button-large.sc-ion-button-ios-h{--border-radius:14px;--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;--height:2.8em;font-size:20px}.button-small.sc-ion-button-ios-h{--border-radius:8px;--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;--height:2.1em;font-size:13px}.button-strong.sc-ion-button-ios-h{font-weight:600}"},enumerable:!0,configurable:!0}),Object.defineProperty(o,"styleMode",{get:function(){return"ios"},enumerable:!0,configurable:!0}),o}();function s(o,t,n,i){return t=(t||"md").toLowerCase(),n&&"ios"===t?o=n.toLowerCase():i&&"md"===t?o=i.toLowerCase():o&&(o=o.toLowerCase(),/^md-|^ios-|^logo-/.test(o)||(o=t+"-"+o)),"string"!=typeof o||""===o.trim()?null:""!==o.replace(/[a-z]|-|\d/gi,"")?null:o}function c(o){return"string"==typeof o&&(o=o.trim()).length>0&&/(\/|\.)/.test(o)?o:null}var l=function(){function o(){this.isVisible=!1,this.lazy=!1}return o.prototype.componentWillLoad=function(){var o=this;this.waitUntilVisible(this.el,"50px",function(){o.isVisible=!0,o.loadIcon()})},o.prototype.componentDidUnload=function(){this.io&&(this.io.disconnect(),this.io=void 0)},o.prototype.waitUntilVisible=function(o,t,n){var i=this;if(this.lazy&&this.win&&this.win.IntersectionObserver){var e=this.io=new this.win.IntersectionObserver(function(o){o[0].isIntersecting&&(e.disconnect(),i.io=void 0,n())},{rootMargin:t});e.observe(o)}else n()},o.prototype.loadIcon=function(){var o=this;if(!this.isServer&&this.isVisible){var t=this.getUrl();t&&function(o,t,n){var i=u.get(t);return i||(i=fetch(t,{cache:"force-cache"}).then(function(o){return o.ok?o.text():Promise.resolve(null)}).then(function(t){return function(o,t,n){if(t){var i=o.createDocumentFragment(),e=o.createElement("div");e.innerHTML=t,i.appendChild(e);for(var r=e.childNodes.length-1;r>=0;r--)"svg"!==e.childNodes[r].nodeName.toLowerCase()&&e.removeChild(e.childNodes[r]);var a=e.firstElementChild;if(a&&"svg"===a.nodeName.toLowerCase()&&(a.setAttribute("class","s-ion-icon"),function o(t){if(1===t.nodeType){if("script"===t.nodeName.toLowerCase())return!1;for(var n=0;n<t.attributes.length;n++){var i=t.attributes[n].value;if("string"==typeof i&&0===i.toLowerCase().indexOf("on"))return!1}for(n=0;n<t.childNodes.length;n++)if(!o(t.childNodes[n]))return!1}return!0}(a)))return e.innerHTML}return""}(o,t)}),u.set(t,i)),i}(this.doc,t).then(function(t){return o.svgContent=t})}if(!this.ariaLabel){var n=s(this.name,this.mode,this.ios,this.md);n&&(this.ariaLabel=n.replace("ios-","").replace("md-","").replace(/\-/g," "))}},o.prototype.getUrl=function(){var o=c(this.src);return o||((o=s(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(o):(o=c(this.icon))?o:(o=s(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(o):null)},o.prototype.getNamedUrl=function(o){return this.resourcesUrl+"svg/"+o+".svg"},o.prototype.hostData=function(){var o;return{role:"img",class:Object.assign({},function(o){var t;return o?((t={"ion-color":!0})["ion-color-"+o]=!0,t):null}(this.color),(o={},o["icon-"+this.size]=!!this.size,o))}},o.prototype.render=function(){return Object(i.b)("div",!this.isServer&&this.svgContent?{class:"icon-inner",innerHTML:this.svgContent}:{class:"icon-inner"})},Object.defineProperty(o,"is",{get:function(){return"ion-icon"},enumerable:!0,configurable:!0}),Object.defineProperty(o,"encapsulation",{get:function(){return"shadow"},enumerable:!0,configurable:!0}),Object.defineProperty(o,"properties",{get:function(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},lazy:{type:Boolean,attr:"lazy"},md:{type:String,attr:"md"},mode:{type:String,attr:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}},enumerable:!0,configurable:!0}),Object.defineProperty(o,"style",{get:function(){return".sc-ion-icon-h{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.ion-color.sc-ion-icon-h{color:var(--ion-color-base)!important}.icon-small.sc-ion-icon-h{font-size:var(--ion-icon-size-small,18px)!important}.icon-large.sc-ion-icon-h{font-size:var(--ion-icon-size-large,32px)!important}.icon-inner.sc-ion-icon, svg.sc-ion-icon{display:block;fill:currentColor;stroke:currentColor;height:100%;width:100%}.ion-color-primary.sc-ion-icon-h{--ion-color-base:var(--ion-color-primary,#3880ff)}.ion-color-secondary.sc-ion-icon-h{--ion-color-base:var(--ion-color-secondary,#0cd1e8)}.ion-color-tertiary.sc-ion-icon-h{--ion-color-base:var(--ion-color-tertiary,#f4a942)}.ion-color-success.sc-ion-icon-h{--ion-color-base:var(--ion-color-success,#10dc60)}.ion-color-warning.sc-ion-icon-h{--ion-color-base:var(--ion-color-warning,#ffce00)}.ion-color-danger.sc-ion-icon-h{--ion-color-base:var(--ion-color-danger,#f14141)}.ion-color-light.sc-ion-icon-h{--ion-color-base:var(--ion-color-light,#f4f5f8)}.ion-color-medium.sc-ion-icon-h{--ion-color-base:var(--ion-color-medium,#989aa2)}.ion-color-dark.sc-ion-icon-h{--ion-color-base:var(--ion-color-dark,#222428)}"},enumerable:!0,configurable:!0}),o}(),u=new Map}}]);