-
Notifications
You must be signed in to change notification settings - Fork 0
/
8645-es5.8ecc506104b6b8f6641e.js
1 lines (1 loc) · 16.1 KB
/
8645-es5.8ecc506104b6b8f6641e.js
1
!function(){function t(t,e,r){return(e=o(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var t,r={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new O(n||[]);return o(a,"_invoke",{value:C(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var d="suspendedStart",f="executing",v="completed",m={};function g(){}function y(){}function b(){}var w={};u(w,c,function(){return this});var k=Object.getPrototypeOf,x=k&&k(k(P([])));x&&x!==n&&i.call(x,c)&&(w=x);var L=b.prototype=g.prototype=Object.create(w);function I(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){function r(n,o,a,c){var l=h(t[n],t,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&i.call(u,"__await")?e.resolve(u.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(u).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,c)})}c(l.arg)}var n;o(this,"_invoke",{value:function(t,i){function o(){return new e(function(e,n){r(t,i,e,n)})}return n=n?n.then(o,o):o()}})}function C(e,r,n){var i=d;return function(o,a){if(i===f)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var s=h(e,r,n);if("normal"===s.type){if(i=n.done?v:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=v,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=h(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n<e.length;)if(i.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},r.awrap=function(t){return{__await:t}},I(E.prototype),u(E.prototype,l,function(){return this}),r.AsyncIterator=E,r.async=function(t,e,n,i,o){void 0===o&&(o=Promise);var a=new E(p(t,e,n,i),o);return r.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},I(L),u(L,s,"Generator"),u(L,c,function(){return this}),u(L,"toString",function(){return"[object Generator]"}),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return c.type="throw",c.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}function r(t,e,r,n,i,o,a){try{var c=t[o](a),l=c.value}catch(s){return void r(s)}c.done?e(l):Promise.resolve(l).then(n,i)}function n(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function c(t){r(a,i,o,c,l,"next",t)}function l(t){r(a,i,o,c,l,"throw",t)}c(void 0)})}}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(self.webpackChunkv2x_frontend=self.webpackChunkv2x_frontend||[]).push([[8645],{8645:function(r,o,a){"use strict";a.r(o),a.d(o,{ion_picker_column_internal:function(){return h}});var c=a(1429),l=a(8931),s=a(1444),u=a(7744),p=a(4881),h=function(){function r(t){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(0,c.r)(this,t),this.ionChange=(0,c.e)(this,"ionChange",7),this.isScrolling=!1,this.isColumnVisible=!1,this.canExitInputMode=!0,this.isActive=!1,this.items=[],this.color="primary",this.numericInput=!1,this.centerPickerItemInView=function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=e.el,o=e.isColumnVisible;if(o){var a=t.offsetTop-3*t.clientHeight+t.clientHeight/2;i.scrollTop!==a&&(e.canExitInputMode=n,i.scroll({top:a,left:0,behavior:r?"smooth":void 0}))}},this.inputModeChange=function(t){if(e.numericInput){var r=t.detail,n=r.useInputMode,i=r.inputModeColumn;e.setInputModeActive(!(!n||void 0!==i&&i!==e.el))}},this.setInputModeActive=function(t){e.isScrolling?e.scrollEndCallback=function(){e.isActive=t}:e.isActive=t},this.initializeScrollListener=function(){var t,r=e.el,n=e.activeItem,i=function(){(0,s.r)(function(){t&&(clearTimeout(t),t=void 0),e.isScrolling||((0,u.a)(),e.isScrolling=!0);var i=r.getBoundingClientRect(),o=r.shadowRoot.elementFromPoint(i.x+i.width/2,i.y+i.height/2);null!==n&&n.classList.remove(d),null===o||o.disabled||(o!==n&&((0,u.b)(),e.canExitInputMode&&e.exitInputMode()),n=o,o.classList.add(d),t=setTimeout(function(){e.isScrolling=!1,(0,u.h)();var t=e.scrollEndCallback;t&&(t(),e.scrollEndCallback=void 0),e.canExitInputMode=!0;var r=o.getAttribute("data-index");if(null!==r){var n=parseInt(r,10),i=e.items[n];i.value!==e.value&&e.setValue(i.value)}},250))})};(0,s.r)(function(){r.addEventListener("scroll",i),e.destroyScrollListener=function(){r.removeEventListener("scroll",i)}})},this.exitInputMode=function(){var t=e.parentEl;null!=t&&(t.exitInputMode(),e.el.classList.remove("picker-column-active"))}}var o,a,h,f,v;return o=r,a=[{key:"valueChange",value:function(){this.isColumnVisible&&this.scrollActiveItemIntoView()}},{key:"componentWillLoad",value:function(){var t=this;new IntersectionObserver(function(e){var r;if(e[0].isIntersecting){t.isColumnVisible=!0;var n=(0,s.g)(t.el).querySelector(".".concat(d));null==n||n.classList.remove(d),t.scrollActiveItemIntoView(),null===(r=t.activeItem)||void 0===r||r.classList.add(d),t.initializeScrollListener()}else t.isColumnVisible=!1,t.destroyScrollListener&&(t.destroyScrollListener(),t.destroyScrollListener=void 0)},{threshold:.001}).observe(this.el);var e=this.parentEl=this.el.closest("ion-picker-internal");null!==e&&e.addEventListener("ionInputModeChange",function(e){return t.inputModeChange(e)})}},{key:"componentDidRender",value:function(){var t,e=this.activeItem,r=this.items,n=this.isColumnVisible,i=this.value;n&&(e?this.scrollActiveItemIntoView():(null===(t=r[0])||void 0===t?void 0:t.value)!==i&&this.setValue(r[0].value))}},{key:"scrollActiveItemIntoView",value:(v=n(e().mark(function t(){var r;return e().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(r=this.activeItem)&&this.centerPickerItemInView(r,!1,!1);case 2:case"end":return t.stop()}},t,this)})),function(){return v.apply(this,arguments)})},{key:"setValue",value:(f=n(e().mark(function t(r){var n,i;return e().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=this.items,this.value=r,(i=n.find(function(t){return t.value===r&&!0!==t.disabled}))&&this.ionChange.emit(i);case 4:case"end":return t.stop()}},t,this)})),function(t){return f.apply(this,arguments)})},{key:"activeItem",get:function(){return(0,s.g)(this.el).querySelector('.picker-item[data-value="'.concat(this.value,'"]:not([disabled])'))}},{key:"render",value:function(){var e=this,r=this.items,n=this.color,i=this.isActive,o=this.numericInput,a=(0,l.b)(this);return(0,c.h)(c.H,{tabindex:0,class:(0,p.c)(n,t(t(t({},a,!0),"picker-column-active",i),"picker-column-numeric-input",o))},(0,c.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,c.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,c.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),r.map(function(t,r){return(0,c.h)("button",{tabindex:"-1",class:{"picker-item":!0,"picker-item-disabled":t.disabled||!1},"data-value":t.value,"data-index":r,onClick:function(t){e.centerPickerItemInView(t.target,!0)},disabled:t.disabled},t.text)}),(0,c.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,c.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,c.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"))}},{key:"el",get:function(){return(0,c.i)(this)}}],h=[{key:"watchers",get:function(){return{value:["valueChange"]}}}],a&&i(o.prototype,a),h&&i(o,h),Object.defineProperty(o,"prototype",{writable:!1}),r}(),d="picker-item-active";h.style={ios:":host{padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}",md:":host{padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}:host .picker-item-active{color:var(--ion-color-base)}"}},4881:function(r,i,o){"use strict";o.d(i,{c:function(){return c},g:function(){return l},h:function(){return a},o:function(){return u}});var a=function(t,e){return null!==e.closest(t)},c=function(e,r){return"string"==typeof e&&e.length>0?Object.assign(t({"ion-color":!0},"ion-color-".concat(e),!0),r):r},l=function(t){var e={};return function(t){return void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(function(t){return null!=t}).map(function(t){return t.trim()}).filter(function(t){return""!==t}):[]}(t).forEach(function(t){return e[t]=!0}),e},s=/^[a-z][a-z0-9+\-.]*:/,u=function(){var t=n(e().mark(function t(r,n,i,o){var a;return e().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null==r||"#"===r[0]||s.test(r)){t.next=4;break}if(!(a=document.querySelector("ion-router"))){t.next=4;break}return t.abrupt("return",(null!=n&&n.preventDefault(),a.push(r,i,o)));case 4:return t.abrupt("return",!1);case 5:case"end":return t.stop()}},t)}));return function(e,r,n,i){return t.apply(this,arguments)}}()}}])}();