-
Notifications
You must be signed in to change notification settings - Fork 0
/
2992-es5.25114820e7ef4726b568.js
1 lines (1 loc) · 12.4 KB
/
2992-es5.25114820e7ef4726b568.js
1
!function(){function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),c=new T(r||[]);return i(a,"_invoke",{value:N(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var d="suspendedStart",v="executing",p="completed",y={};function m(){}function g(){}function w(){}var b={};l(b,c,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(j([])));x&&x!==r&&o.call(x,c)&&(b=x);var L=w.prototype=m.prototype=Object.create(b);function k(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function S(t,e){function n(r,i,a,c){var u=h(t[r],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&o.call(l,"__await")?e.resolve(l.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}var r;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,r){n(t,o,e,r)})}return r=r?r.then(i,i):i()}})}function N(t,n,r){var o=d;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===p){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=P(c,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var s=h(t,n,r);if("normal"===s.type){if(o=r.done?p:"suspendedYield",s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=p,r.method="throw",r.arg=s.arg)}}}function P(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function O(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return g.prototype=w,i(L,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:g,configurable:!0}),g.displayName=l(w,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},n.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,u,function(){return this}),n.AsyncIterator=S,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new S(f(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},k(L),l(L,s,"Generator"),l(L,c,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=j,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},n}function e(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void n(s)}c.done?e(u):Promise.resolve(u).then(r,o)}function n(t){return function(){var n=this,r=arguments;return new Promise(function(o,i){var a=t.apply(n,r);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)})}}(self.webpackChunkv2x_frontend=self.webpackChunkv2x_frontend||[]).push([[2992],{2992:function(e,r,o){"use strict";o.r(r),o.d(r,{startInputShims:function(){return v}});var i=o(5667),a=o(1444),c=new WeakMap,u=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];c.has(t)!==n&&(n?l(t,e,r,o):f(t,e))},s=function(t){return t===t.getRootNode().activeElement},l=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.parentNode,i=e.cloneNode(!1);i.classList.add("cloned-input"),i.tabIndex=-1,r&&(i.disabled=!0),o.appendChild(i),c.set(t,i);var a="rtl"===t.ownerDocument.dir?9999:-9999;t.style.pointerEvents="none",e.style.transform="translate3d(".concat(a,"px,").concat(n,"px,0) scale(0)")},f=function(t,e){var n=c.get(t);n&&(c.delete(t),n.remove()),t.style.pointerEvents="",e.style.transform=""},h="input, textarea, [no-blur], [contenteditable]",d=function(t,e){var n,r;if("INPUT"===t.tagName&&(!t.parentElement||"ION-INPUT"!==t.parentElement.tagName)&&"ION-SEARCHBAR"!==(null===(r=null===(n=t.parentElement)||void 0===n?void 0:n.parentElement)||void 0===r?void 0:r.tagName)){var o=(0,i.f)(t);if(null!==o){var a=o.$ionPaddingTimer;a&&clearTimeout(a),e>0?o.style.setProperty("--keyboard-offset","".concat(e,"px")):o.$ionPaddingTimer=setTimeout(function(){o.style.setProperty("--keyboard-offset","0px")},120)}}},v=function(e,r){var o=document,c="ios"===r,l="android"===r,f=e.getNumber("keyboardHeight",290),v=e.getBoolean("scrollAssist",!0),p=e.getBoolean("hideCaretOnScroll",c),y=e.getBoolean("inputBlurring",c),m=e.getBoolean("scrollPadding",!0),g=Array.from(o.querySelectorAll("ion-input, ion-textarea")),w=new WeakMap,b=new WeakMap,E=function(){var e=n(t().mark(function e(r){var o,c,h,d,y,m;return t().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(function(t){return(0,a.c)(r,t)});case 2:o=r.shadowRoot||r,c=o.querySelector("input")||o.querySelector("textarea"),h=(0,i.f)(r),d=h?null:r.closest("ion-footer"),c&&(h&&p&&!w.has(r)&&(y=function(t,e,n){if(!n||!e)return function(){};var r=function(n){s(e)&&u(t,e,n)},o=function(){return u(t,e,!1)},i=function(){return r(!0)},c=function(){return r(!1)};return(0,a.a)(n,"ionScrollStart",i),(0,a.a)(n,"ionScrollEnd",c),e.addEventListener("blur",o),function(){(0,a.b)(n,"ionScrollStart",i),(0,a.b)(n,"ionScrollEnd",c),e.removeEventListener("blur",o)}}(r,c,h),w.set(r,y)),"date"!==c.type&&"datetime-local"!==c.type&&(h||d)&&v&&!b.has(r)&&(m=function(e,r,o,c,l){var f,h=arguments.length>5&&void 0!==arguments[5]&&arguments[5],d=function(t){f=(0,a.p)(t)},v=function(d){if(f){var v,p=(0,a.p)(d);(function(t,e,n){if(e&&n){var r=e.x-n.x,o=e.y-n.y;return r*r+o*o>36}return!1})(0,f,p)||s(r)||(v=n(t().mark(function e(r,o,c,s,l){var f,h,d,v,p,y,m=arguments;return t().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(f=m.length>5&&void 0!==m[5]&&m[5],c||s){e.next=3;break}return e.abrupt("return");case 3:if(h=function(t,e,n){var r;return function(t,e,n,r){var o=t.top,i=t.bottom,a=e.top,c=a+15,u=.75*Math.min(e.bottom,r-n)-i,s=c-o,l=Math.round(u<0?-u:s>0?-s:0),f=Math.min(l,o-a),h=Math.abs(f);return{scrollAmount:f,scrollDuration:Math.min(400,Math.max(150,h/.3)),scrollPadding:n,inputSafeY:4-(o-c)}}((null!==(r=t.closest("ion-item,[ion-item]"))&&void 0!==r?r:t).getBoundingClientRect(),e.getBoundingClientRect(),n,t.ownerDocument.defaultView.innerHeight)}(r,c||s,l),!(c&&Math.abs(h.scrollAmount)<4)){e.next=8;break}o.focus(),e.next=17;break;case 8:if(u(r,o,!0,h.inputSafeY,f),o.focus(),(0,a.r)(function(){return r.click()}),"undefined"==typeof window){e.next=17;break}if(v=function(){var e=n(t().mark(function e(){return t().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==d&&clearTimeout(d),window.removeEventListener("ionKeyboardDidShow",p),window.removeEventListener("ionKeyboardDidShow",v),t.t0=c,!t.t0){t.next=7;break}return t.next=7,(0,i.c)(c,0,h.scrollAmount,h.scrollDuration);case 7:u(r,o,!1,h.inputSafeY),o.focus();case 9:case"end":return t.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),p=function t(){window.removeEventListener("ionKeyboardDidShow",t),window.addEventListener("ionKeyboardDidShow",v)},!c){e.next=16;break}return e.next=13,(0,i.g)(c);case 13:if(y=e.sent,!(h.scrollAmount>y.scrollHeight-y.clientHeight-y.scrollTop)){e.next=16;break}return e.abrupt("return",("password"===o.type?(h.scrollAmount+=50,window.addEventListener("ionKeyboardDidShow",p)):window.addEventListener("ionKeyboardDidShow",v),void(d=setTimeout(v,1e3))));case 16:v();case 17:case"end":return e.stop()}},e)})),function(t,e,n,r,o){return v.apply(this,arguments)})(e,r,o,c,l,h)}};return e.addEventListener("touchstart",d,{capture:!0,passive:!0}),e.addEventListener("touchend",v,!0),function(){e.removeEventListener("touchstart",d,!0),e.removeEventListener("touchend",v,!0)}}(r,c,h,d,f,l),b.set(r,m)));case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();y&&function(){var t=!0,e=!1,n=document;(0,a.a)(n,"ionScrollStart",function(){e=!0}),n.addEventListener("focusin",function(){t=!0},!0),n.addEventListener("touchend",function(r){if(e)e=!1;else{var o=n.activeElement;if(o&&!o.matches(h)){var i=r.target;i!==o&&(i.matches(h)||i.closest(h)||(t=!1,setTimeout(function(){t||o.blur()},50)))}}},!1)}(),m&&function(t){var e=document;e.addEventListener("focusin",function(e){d(e.target,t)}),e.addEventListener("focusout",function(t){d(t.target,0)})}(f);for(var x=0,L=g;x<L.length;x++){var k=L[x];E(k)}o.addEventListener("ionInputDidLoad",function(t){E(t.detail)}),o.addEventListener("ionInputDidUnload",function(t){!function(t){if(p){var e=w.get(t);e&&e(),w.delete(t)}if(v){var n=b.get(t);n&&n(),b.delete(t)}}(t.detail)})}}}])}();