PageSourceSearch

https://skipres.com/9555-es2015.66c3d0805070f7f451eb.js

js skipres.com collected 2026-10-01 14:29:24 UTC 84,509 bytes, 1 lines download raw bytes

1(self.webpackChunkskipres=self.webpackChunkskipres||[]).push([[9555],{11524:function(t,e,i){var n;!function(o,s,r,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],h=s.createElement("div"),u=Math.round,p=Math.abs,d=Date.now;function g(t,e,i){return setTimeout(b(t,i),e)}function f(t,e,i){return!!Array.isArray(t)&&(m(t,i[e],i),!0)}function m(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function v(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=o.console&&(o.console.warn||o.console.log);return s&&s.call(o.console,n,i),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign;var S=v(function(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)(!i||i&&void 0===t[n[o]])&&(t[n[o]]=e[n[o]]),o++;return t},"extend","Use `assign`."),_=v(function(t,e){return S(t,e,!0)},"merge","Use `assign`.");function T(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&l(n,i)}function b(t,e){return function(){return t.apply(e,arguments)}}function y(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function C(t,e){return void 0===t?e:t}function O(t,e,i){m(Z(e),function(e){t.addEventListener(e,i,!1)})}function A(t,e,i){m(Z(e),function(e){t.removeEventListener(e,i,!1)})}function E(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function w(t,e){return t.indexOf(e)>-1}function Z(t){return t.trim().split(/\s+/g)}function x(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function I(t){return Array.prototype.slice.call(t,0)}function q(t,e,i){for(var n=[],o=[],s=0;s<t.length;){var r=e?t[s][e]:t[s];x(o,r)<0&&n.push(t[s]),o[s]=r,s++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function B(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),s=0;s<c.length;){if((n=(i=c[s])?i+o:e)in t)return n;s++}}var k=1;function R(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}var D="ontouchstart"in o,H=void 0!==B(o,"PointerEvent"),N=D&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),M=["x","y"],P=["clientX","clientY"];function W(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){y(t.options.enable,[t])&&i.handler(e)},this.init()}function U(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,s=1&e&&n-o==0,r=12&e&&n-o==0;i.isFirst=!!s,i.isFinal=!!r,s&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Y(e)),o>1&&!i.firstMultiple?i.firstMultiple=Y(e):1===o&&(i.firstMultiple=!1);var s=i.firstInput,r=i.firstMultiple,a=r?r.center:s.center,l=e.center=F(n);e.timeStamp=d(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=J(a,l),e.distance=z(a,l),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(o=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=Q(e.deltaX,e.deltaY);var c,h,u=L(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=p(u.x)>p(u.y)?u.x:u.y,e.scale=r?(c=r.pointers,z((h=n)[0],h[1],P)/z(c[0],c[1],P)):1,e.rotation=r?function(t,e){return J(e[1],e[0],P)+J(t[1],t[0],P)}(r.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,s,r=t.lastInterval||e,a=e.timeStamp-r.timeStamp;if(8!=e.eventType&&(a>25||void 0===r.velocity)){var l=e.deltaX-r.deltaX,c=e.deltaY-r.deltaY,h=L(a,l,c);n=h.x,o=h.y,i=p(h.x)>p(h.y)?h.x:h.y,s=Q(l,c),t.lastInterval=e}else i=r.velocity,n=r.velocityX,o=r.velocityY,s=r.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=s}(i,e);var g=t.element;E(e.srcEvent.target,g)&&(g=e.srcEvent.target),e.target=g}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function Y(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:u(t.pointers[i].clientX),clientY:u(t.pointers[i].clientY)},i++;return{timeStamp:d(),pointers:e,center:F(e),deltaX:t.deltaX,deltaY:t.deltaY}}function F(t){var e=t.length;if(1===e)return{x:u(t[0].clientX),y:u(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:u(i/e),y:u(n/e)}}function L(t,e,i){return{x:e/t||0,y:i/t||0}}function Q(t,e){return t===e?1:p(t)>=p(e)?t<0?2:4:e<0?8:16}function z(t,e,i){i||(i=M);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}
1function J(t,e,i){return i||(i=M),180*Math.atan2(e[i[1]]-t[i[1]],e[i[0]]-t[i[0]])/Math.PI}W.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(R(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function j(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,W.apply(this,arguments)}T(j,W,{handler:function(t){var e=G[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var X={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},V={2:"touch",3:"pen",4:"mouse",5:"kinect"},$="pointerdown",K="pointermove pointerup pointercancel";function tt(){this.evEl=$,this.evWin=K,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&($="MSPointerDown",K="MSPointerMove MSPointerUp MSPointerCancel"),T(tt,W,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=X[n],s=V[t.pointerType]||t.pointerType,r="touch"==s,a=x(e,t.pointerId,"pointerId");1&o&&(0===t.button||r)?a<0&&(e.push(t),a=e.length-1):12&o&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),i&&e.splice(a,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function it(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,W.apply(this,arguments)}function nt(t,e){var i=I(t.touches),n=I(t.changedTouches);return 12&e&&(i=q(i.concat(n),"identifier",!0)),[i,n]}T(it,W,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var i=nt.call(this,t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function st(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},W.apply(this,arguments)}function rt(t,e){var i=I(t.touches),n=this.targetIds;if(3&e&&1===i.length)return n[i[0].identifier]=!0,[i,i];var o,s,r=I(t.changedTouches),a=[],l=this.target;if(s=i.filter(function(t){return E(t.target,l)}),1===e)for(o=0;o<s.length;)n[s[o].identifier]=!0,o++;for(o=0;o<r.length;)n[r[o].identifier]&&a.push(r[o]),12&e&&delete n[r[o].identifier],o++;return a.length?[q(s.concat(a),"identifier",!0),a]:void 0}function at(){W.apply(this,arguments);var t=b(this.handler,this);this.touch=new st(this.manager,t),this.mouse=new j(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function lt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ct.call(this,e)):12&t&&ct.call(this,e)}function ct(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)},2500)}}function ht(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],s=Math.abs(e-o.x),r=Math.abs(i-o.y);if(s<=25&&r<=25)return!0}return!1}T(st,W,{handler:function(t){var e=ot[t.type],i=rt.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}}),T(at,W,{handler:function(t,e,i){var n="mouse"==i.pointerType;if(!(n&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if("touch"==i.pointerType)lt.call(this,e,i);else if(n&&ht.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ut=B(h.style,"touchAction"),pt=void 0!==ut,dt=function(){if(!pt)return!1;var t={},e=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){t[i]=!e||o.CSS.supports("touch-action",i)}),t}();function gt(t,e){this.manager=t,this.set(e)}function ft(t){this.options=l({},this.defaults,t||{}),this.id=k++,this.manager=null,this.options.enable=C(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function mt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function vt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function St(t,e){var i=e.manager;return i?i.get(t):t}function _t(){ft.apply(this,arguments)}function Tt(){_t.apply(this,arguments),this.pX=null,this.pY=null}function bt(){_t.apply(this,arguments)}function yt(){ft.apply(this,arguments),this._timer=null,this._input=null}function Ct(){_t.apply(this,arguments)}function Ot(){_t.apply(this,arguments)}function At(){ft.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Et(t,e){return(e=e||{}).recognizers=C(e.recognizers,Et.defaults.preset),new wt(t,e)}function wt(t,e){this.options=l({},Et.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(H?tt:N?st:D?at:j))(this,U),this.touchAction=new gt(this,this.options.touchAction),Zt(this,!0),m(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Zt(t,e){var i,n=t.element;n.style&&(m(t.options.cssProps,function(o,s){i=B(n.style,s),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={}))}gt.prototype={set:function(t){"compute"==t&&(t=this.compute()),pt&&this.manager.element.style&&dt[t]&&(this.manager.element.style[ut]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,function(e){y(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(w(t,"none"))return"none";var e=w(t,"pan-x"),i=w(t,"pan-y");return e&&i?"none":e||i?e?"pan-x":"pan-y":w(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();
vendor: 7,273 bytes, line 1
1else{var n=this.actions,o=w(n,"none")&&!dt.none,s=w(n,"pan-y")&&!dt["pan-y"],r=w(n,"pan-x")&&!dt["pan-x"];if(o&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!r||!s)return o||s&&6&i||r&&24&i?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}},ft.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(f(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=St(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return f(t,"dropRecognizeWith",this)||(t=St(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(f(t,"requireFailure",this))return this;var e=this.requireFail;return-1===x(e,t=St(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(f(t,"dropRequireFailure",this))return this;t=St(t,this);var e=x(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+mt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+mt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!y(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},T(_t,ft,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,o=this.attrTest(t);return n&&(8&i||!o)?16|e:n||o?4&i?8|e:2&e?4|e:2:32}}),T(Tt,_t,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,s=t.deltaX,r=t.deltaY;return o&e.direction||(6&e.direction?(o=0===s?1:s<0?2:4,i=s!=this.pX,n=Math.abs(t.deltaX)):(o=0===r?1:r<0?8:16,i=r!=this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},attrTest:function(t){return _t.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=vt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),T(bt,_t,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),T(yt,ft,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!n||!i||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=g(function(){this.state=8,this.tryEmit()},e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),T(Ct,_t,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),T(Ot,_t,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Tt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:6&i?e=t.overallVelocityX:24&i&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=vt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),T(At,ft,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(n&&o&&i){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,r=!this.pCenter||z(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,r&&s?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=g(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=g(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Et.VERSION="2.0.7",Et.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ct,{enable:!1}],[bt,{enable:!1},["rotate"]],[Ot,{direction:6}],[Tt,{direction:6},["swipe"]],[At],[At,{event:"doubletap",taps:2},["tap"]],[yt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},wt.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(o=e.curRecognizer=null);for(var s=0;s<n.length;)i=n[s],2===e.stopped||o&&i!=o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&14&i.state&&(o=e.curRecognizer=i),s++}},get:function(t){if(t instanceof ft)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(f(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(f(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=x(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var i=this.handlers;return m(Z(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this}},off:function(t,e){if(void 0!==t){var i=this.handlers;
1return m(Z(t),function(t){e?i[t]&&i[t].splice(x(i[t],e),1):delete i[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var i=s.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&Zt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Et,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:wt,Input:W,TouchAction:gt,TouchInput:st,MouseInput:j,PointerEventInput:tt,TouchMouseInput:at,SingleTouchInput:it,Recognizer:ft,AttrRecognizer:_t,Tap:At,Pan:Tt,Swipe:Ot,Pinch:bt,Rotate:Ct,Press:yt,on:O,off:A,each:m,merge:_,extend:S,assign:l,inherit:T,bindFn:b,prefixed:B}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Et,void 0===(n=(function(){return Et}).call(e,i,e,t))||(t.exports=n)}(window,document)},99555:function(t,e,i){"use strict";i.r(e),i.d(e,{WhenPageModule:function(){return Et}});var n=i(38583),o=i(3679),s=i(26623),r=i(78094),a=i(64762),l=i(28357),c=i(7497),h=i(88720),u=(()=>(function(t){t[t.Bottom=0]="Bottom",t[t.Docked=1]="Docked",t[t.Top=2]="Top"}(u||(u={})),u))(),p=i(11524),d=["*"],g=function(t,e,i,n){var o,s=arguments.length,r=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(e,i,r):o(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r},f=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=function(){function t(t,e,i,n){this._element=t,this._renderer=e,this._domCtrl=i,this._platform=n,this.dockedHeight=200,this.minHeight=0,this.topDistance=0,this.bounceDelta=30,this.canBounce=!0,this.roundBorder=!0,this.roundBorderOnTop=!1,this.shadowBorder=!0,this.shadowBorderOnTop=!1,this.disableDrag=!1,this.hideCloseButton=!1,this.hideCloseButtonOnTop=!1,this.hideDragIcon=!1,this.hideDragIconOnTop=!1,this.hideTitle=!1,this.hideHeader=!1,this.hideSeparator=!1,this.titleCentered=!1,this.titleSize="20px",this.titleFamily="inherit",this.transition="0.25s ease-out",this.state=u.Bottom,this.title="Header Title",this.enableScrollContent=!1,this.enableScrollContentOnlyOnTop=!1,this.enableShadowHeaderOnScrolling=!0,this.useSmoothScrolling=!0,this.stateChange=new h.vpe,this._startScroll=0,this._sheetTopAnimationHasBeenPerformed=!1,this._bottomShadowHeaderHasBeenPerformed=!1,this._scrollUpContentCheckHasBeenPerformed=!1,this._defaultScrollSetting=!1,this._scrollContent=!1,this._dyInitialScrollDown=0,this._dyInitialScrollUp=0,this._adjustForShadow()}return t.prototype.ngAfterViewInit=function(){this._loadForScroll(),this._loadEvents(),this._loadCssStyle(),this._loadContentGesture(),this._loadHeaderGesture()},t.prototype.ngOnChanges=function(t){t.state&&(this._restoreNativeContentSize(),this._enableTransition(),this._setSheetState(t.state.currentValue))},t.prototype._loadHeaderGesture=function(){var t=this;if(!this.disableDrag){var e=this.enableScrollContent?this._element.nativeElement.querySelector("#ibs-header"):this._element.nativeElement,i=new p(e);i.get("pan").set({enable:!0,direction:p.DIRECTION_VERTICAL}),i.on("panstart",function(){return t._onHeaderGestureStart()}),i.on("panend",function(e){return t._onHeaderGestureEnd(e)}),i.on("pan",function(e){return t._onHeaderGestureMove(e)})}},t.prototype._loadContentGesture=function(){var t=this;if(this.enableScrollContent){var e=new p(this._element.nativeElement.querySelector("#ibs-content-inner"));e.get("pan").set({enable:!0,direction:p.DIRECTION_VERTICAL}),e.on("panstart",function(){return t._onContentGestureStart()}),e.on("panend",function(e){return t._onContentGestureEnd(e)}),e.on("pan",function(e){return t._onContentGestureMove(e)})}},t.prototype._loadForScroll=function(){this._defaultScrollSetting=this.enableScrollContent&&(!this.enableScrollContentOnlyOnTop||!this.canBounce||this.disableDrag),this._scrollContent=this._defaultScrollSetting},t.prototype._adjustForShadow=function(){this.shadowBorder&&(this.minHeight>0||(this.minHeight=this.minHeight-10))},t.prototype._loadEvents=function(){this._renderer.listen(this._element.nativeElement,"transitionend",this._checkForAnimationOnTop.bind(this)),this.hideCloseButton||this._renderer.listen(this._element.nativeElement.querySelector("#close-button"),"click",this.closeSheet.bind(this)),this.enableScrollContent&&(this._renderer.listen(this._element.nativeElement,"transitionend",this._checkForScrolling.bind(this)),this._renderer.listen(this._element.nativeElement.querySelector("#ibs-content-inner"),"scroll",this._contentShadowOnScroll.bind(this)),this._renderer.listen(this._element.nativeElement,"transitionend",this._changeNativeContentSize.bind(this)))},t.prototype._loadCssStyle=function(){this._cssAutoManageClass("no-close-btn",this.hideCloseButton,this._element.nativeElement),this._cssAutoManageClass("no-drag-icon",this.hideDragIcon,this._element.nativeElement),this._cssAutoManageClass("no-title",this.hideTitle,this._element.nativeElement),this._cssAutoManageClass("no-header",this.hideHeader,this._element.nativeElement),this._cssAutoManageClass("separator",!this.hideSeparator,this._element.nativeElement.querySelector("#ibs-header")),this._cssAutoManageClass("round-border",this.roundBorder,this._element.nativeElement.querySelector("#ibs-container")),this._cssAutoManageClass("shadow-border",this.shadowBorder,this._element.nativeElement.querySelector("#ibs-container")),this._cssAutoManageClass("txt-center",this.titleCentered,this._element.nativeElement.querySelector("#t
1itle")),this._cssAutoManageClass("pd5",this.enableShadowHeaderOnScrolling,this._element.nativeElement.querySelector("#ibs-content")),this._setStyle("font-size",this.titleSize,this._element.nativeElement.querySelector("#title")),this._setStyle("font-family",this.titleFamily,this._element.nativeElement.querySelector("#title"))},t.prototype._setSheetState=function(t){switch(t){case u.Bottom:this._setTranslateY("calc(100vh - "+this.minHeight+"px)");break;case u.Docked:this._setTranslateY("calc(100vh - "+this.dockedHeight+"px)");break;case u.Top:this._setTranslateY(this.topDistance+"px")}},t.prototype._getPosition=function(t){switch(t){case u.Bottom:return this._platform.height()-this.minHeight;case u.Docked:return this._platform.height()-this.dockedHeight;case u.Top:return this.topDistance}},t.prototype._nextSate=function(t,e){switch(t){case u.Bottom:return e<0?u.Docked:u.Bottom;case u.Docked:return e<0?u.Top:u.Bottom;case u.Top:return e<0?u.Top:u.Docked}},t.prototype._checkForScrolling=function(){this._dyInitialScrollUp=this._dyInitialScrollDown=0,this._scrollContent=this._element.nativeElement.getBoundingClientRect().y!=this._getPosition(u.Top)?this._defaultScrollSetting:this.enableScrollContent},t.prototype._checkForAnimationOnTop=function(){if(this._element.nativeElement.getBoundingClientRect().y==this._getPosition(u.Top)){if(this._sheetTopAnimationHasBeenPerformed)return;this._sheetTopAnimationHasBeenPerformed=!0,this._scrollContent=this.enableScrollContent}else{if(!this._sheetTopAnimationHasBeenPerformed)return;this._sheetTopAnimationHasBeenPerformed=!1,this._scrollContent=!1,this.enableScrollContent&&this.enableScrollContentOnlyOnTop&&this._element.nativeElement.querySelector("#ibs-content-inner").scroll({top:0,behavior:this.useSmoothScrolling?"smooth":"auto"})}!this.roundBorderOnTop&&this.roundBorder&&this._cssAutoManageClass("round-border",!this._sheetTopAnimationHasBeenPerformed,this._element.nativeElement.querySelector("#ibs-container")),!this.shadowBorderOnTop&&this.shadowBorder&&this._cssAutoManageClass("shadow-border",!this._sheetTopAnimationHasBeenPerformed,this._element.nativeElement.querySelector("#ibs-container")),this.hideDragIconOnTop&&!this.hideDragIcon&&this._cssSwitchClass(this._sheetTopAnimationHasBeenPerformed?"fadeOut":"fadeIn",this._sheetTopAnimationHasBeenPerformed?"fadeIn":"fadeOut",this._element.nativeElement.querySelector("#drag-icon")),this.hideCloseButtonOnTop&&!this.hideCloseButton&&this._cssSwitchClass(this._sheetTopAnimationHasBeenPerformed?"fadeOut":"fadeIn",this._sheetTopAnimationHasBeenPerformed?"fadeIn":"fadeOut",this._element.nativeElement.querySelector("#close-button"))},t.prototype._cssSwitchClass=function(t,e,i){this._cssRemoveClass(e,i),this._cssAddClass(t,i)},t.prototype._cssAutoManageClass=function(t,e,i){var n=this;this._domCtrl.write(function(){e?n._cssAddClass(t,i):n._cssRemoveClass(t,i)})},t.prototype._cssAddClass=function(t,e){var i=this;this._domCtrl.write(function(){return i._renderer.addClass(e,t)})},t.prototype._cssRemoveClass=function(t,e){var i=this;this._domCtrl.write(function(){return i._renderer.removeClass(e,t)})},t.prototype._setStyle=function(t,e,i){var n=this;this._domCtrl.write(function(){return n._renderer.setStyle(i,t,e)})},t.prototype._enableTransition=function(){this._setStyle("transition",this.transition,this._element.nativeElement)},t.prototype._disableTransition=function(){this._setStyle("transition","none",this._element.nativeElement)},t.prototype._restoreNativeContentSize=function(){if(this._scrollContent){var t="calc(100vh - "+(this.topDistance+this._getHeaderHeight())+"px)";this._setStyle("height",t,this._element.nativeElement.querySelector("#ibs-content"))}},t.prototype._changeNativeContentSize=function(){if(this._scrollContent){var t="calc(100vh - "+(this._element.nativeElement.getBoundingClientRect().y+this._getHeaderHeight())+"px)";this._setStyle("height",t,this._element.nativeElement.querySelector("#ibs-content")),this._autoEnableContentScroll()}},t.prototype._getHeaderHeight=function(){return this.hideHeader?0:this._element.nativeElement.querySelector("#ibs-header").getBoundingClientRect().height},t.prototype._autoEnableContentScroll=function(){var t=this;this._domCtrl.read(function(){var e=t._element.nativeElement.querySelector("#ibs-content-inner").scrollHeight,i=t._element.nativeElement.querySelector("#ibs-content").getBoundingClientRect().height;t._scrollContent=i-e<0})},t.prototype._contentShadowOnScroll=function(){if(this._element.nativeElement.querySelector("#ibs-content-inner").scrollTop>0){if(this._bottomShadowHeaderHasBeenPerformed)return;this._bottomShadowHeaderHasBeenPerformed=!0}else{if(!this._bottomShadowHeaderHasBeenPerformed)return;this._bottomShadowHeaderHasBeenPerformed=!1}this.enableShadowHeaderOnScrolling&&this._cssAutoManageClass("bottom-header-shadow",this._bottomShadowHeaderHasBeenPerformed,this._element.nativeElement.querySelector("#ibs-header"))},t.prototype._setTranslateY=function(t){this._setStyle("transform","translateY("+t+")",this._element.nativeElement)},t.prototype.closeSheet=function(){this.stateChange.emit(this.state=u.Bottom)},t.prototype._onHeaderGestureStart=function(){this._startPosition=this._element.nativeElement.getBoundingClientRect().y,this._disableTransition(),this._restoreNativeContentSize()},t.prototype._onHeaderGestureEnd=function(t,e){void 0===e&&(e=0),this.canBounce&&(Math.abs(t.deltaY-e)>this.bounceDelta?this.stateChange.emit(this.state=this._nextSate(this.state,t.deltaY-e)):(this._enableTransition(),this._setTranslateY(this._getPosition(this.state)+"px")))},t.prototype._onHeaderGestureMove=function(t,e){void 0===e&&(e=0);var i=this._startPosition+t.deltaY-e;i<=this._getPosition(u.Top)&&t.deltaY-e<0&&(i=this._getPosition(u.Top)),i>=this._getPosition(u.Bottom)&&t.deltaY-e>0&&(i=this._getPosition(u.Bottom)),this._setTranslateY(i+"px"),this._changeNativeContentSize(),this._checkForAnimationOnTop()},t.prototype._onContentGestureStart=function(){this._scrollContent||this.disableDrag?this._startScroll=this._element.nativeElement.querySelector("#ibs-content-inner").scrollTop:this._onHeaderGestureStart()},t.prototype._onContentGestureEnd=function(t){if(!this._scrollContent&&!this.disableDrag)return this._onHeaderGestureEnd(t,this._dyInitialScrollDown),void(this._scrollContent=!0);this._dyInitialScrollUp=this._dyInitialScrollDown=0,this._scrollUpContentCheckHasBeenPerformed=!1;var e=this._element.nativeElement.querySelector("#ibs-content-inner").scrollTop,i=-Math.sign(t.deltaY)*(Math.exp(Math.round(Math.abs(t.velocityY)))-1),n=e+(this.useSmoothScrolling?i*Math.abs(t.deltaY):0);this._element.nativeElement.querySelector("#ibs-content-inner").scroll({top:n,behavior:this.useSmoothScrolling?"smooth":"auto"})},t.prototype._onContentGestureMove=function(t){if(this._scrollContent||this.disableDrag){this.state!=u.Top&&t.deltaY<0&&!this._scrollUpContentCheckHasBeenPerformed&&(this._dyInitialScrollUp=t.deltaY,this._scrollUpContentCheckHasBeenPerformed=!0);var e=this._startScroll-t.deltaY+this._dyInitialScrollUp;e<=0&&t.deltaY-this._dyInitialScrollUp>0&&(this._onHeaderGestureStart(),this._scrollContent=!1,e=0,this._dyInitialScrollUp=0,this._dyInitialScrollDown=t.deltaY,this._scrollUpContentCheckHasBeenPerformed=!1),this._element.nativeElement.querySelector("#ibs-content-inner").scroll(0,e)}else this._onHeaderGestureMove(t,this._dyInitialScrollDown)},g([(0,h.IIB)(),f("design:type",Number)],t.prototype,"dockedHeight",void 0),g([(0,h.IIB)(),f("design:type",Number)],t.prototype,"minHeight",void 0),g([(0,h.IIB)(),f("design:type",Number)],t.prototype,"topDistance",void 0),g([(0,h.IIB)(),f("design:type",Number)],t.prototype,"bounceDelta",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"canBounce",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"roundBorder",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"roundBorderOnTop",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"shadowBorder",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"shadowBorderOnTop",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"disableDrag",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"hideCloseButton",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"hideCloseButtonOnTop",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"hideDragIcon",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"hideDragIconOnTop",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"hideTitle",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"hideHeader",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"hideSeparator",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"titleCentered",void 0),g([(0,h.IIB)(),f("design:type",String)],t.prototype,"titleSize",void 0),g([(0,h.IIB)(),f("design:type",String)],t.prototype,"titleFamily",void 0),g([(0,h.IIB)(),f("design:type",String)],t.prototype,"transition",void 0),g([(0,h.IIB)(),f("design:type",Number)],t.prototype,"state",void 0),g([(0,h.IIB)(),f("design:type",String)],t.prototype,"title",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"enableScrollContent",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"enableScrollContentOnlyOnTop",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"enableShadowHeaderOnScrolling",void 0),g([(0,h.IIB)(),f("design:type",Boolean)],t.prototype,"useSmoothScrolling",void 0),g([(0,h.r_U)(),f("design:type",h.vpe)],t.prototype,"stateChange",void 0),(t=g([f("design:paramtypes",[h.SBq,h.Qsj,s.Cb,s.t4])],t)).\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(s.Cb),h.Y36(s.t4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["ion-bottom-sheet"]],inputs:{dockedHeight:"dockedHeight",minHeight:"minHeight",topDistance:"topDistance",bounceDelta:"bounceDelta",canBounce
1:"canBounce",roundBorder:"roundBorder",roundBorderOnTop:"roundBorderOnTop",shadowBorder:"shadowBorder",shadowBorderOnTop:"shadowBorderOnTop",disableDrag:"disableDrag",hideCloseButton:"hideCloseButton",hideCloseButtonOnTop:"hideCloseButtonOnTop",hideDragIcon:"hideDragIcon",hideDragIconOnTop:"hideDragIconOnTop",hideTitle:"hideTitle",hideHeader:"hideHeader",hideSeparator:"hideSeparator",titleCentered:"titleCentered",titleSize:"titleSize",titleFamily:"titleFamily",transition:"transition",state:"state",title:"title",enableScrollContent:"enableScrollContent",enableScrollContentOnlyOnTop:"enableScrollContentOnlyOnTop",enableShadowHeaderOnScrolling:"enableShadowHeaderOnScrolling",useSmoothScrolling:"useSmoothScrolling"},outputs:{stateChange:"stateChange"},features:[h.TTD],ngContentSelectors:d,decls:12,vars:1,consts:[["id","ibs-container"],["id","ibs-header"],["ibs_header",""],["id","drag-icon"],["id","title-button"],["id","title"],["id","close-button"],["id","ibs-content"],["ibs_content",""],["id","ibs-content-inner"]],template:function(t,e){1&t&&(h.F$t(),h.TgZ(0,"div",0),h.TgZ(1,"div",1,2),h._UZ(3,"div",3),h.TgZ(4,"div",4),h.TgZ(5,"div",5),h._uU(6),h.qZA(),h._UZ(7,"div",6),h.qZA(),h.qZA(),h.TgZ(8,"div",7,8),h.TgZ(10,"div",9),h.Hsn(11),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.xp6(6),h.Oqu(e.title))},styles:['[_nghost-%COMP%]  {\n  touch-action: none;\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  z-index: 999 !important;\n  background-color: transparent;\n  will-change: transform;\n}\n\n[_nghost-%COMP%]   #ibs-container[_ngcontent-%COMP%]{\n  position: relative;\n  background-color: white;\n  width: 100%;\n  height: 100%;\n}\n\n[_nghost-%COMP%]   #ibs-container.round-border[_ngcontent-%COMP%]{\n  border-top-left-radius: 15px;\n  border-top-right-radius: 15px;\n}\n\n[_nghost-%COMP%]   #ibs-container.shadow-border[_ngcontent-%COMP%]{\n  box-shadow: 0px -2px 10px  rgba(0, 0, 0, 0.12);\n}\n\n[_nghost-%COMP%]   #ibs-header.bottom-header-shadow[_ngcontent-%COMP%]{\n  box-shadow: 0 3px 3px -3px  rgba(0, 0, 0, 0.12);\n}\n\n[_nghost-%COMP%]   #ibs-header[_ngcontent-%COMP%]{\n  padding: 5px;\n  width: 100%;\n  min-height: 35px;\n}
1\n\n[_nghost-%COMP%]   .separator[_ngcontent-%COMP%]{\n  border-bottom-style: solid;\n  border-bottom-color: rgba(220, 220, 220, 1);\n  border-bottom-width: 1px;\n}\n\n[_nghost-%COMP%]   #drag-icon[_ngcontent-%COMP%]{\n  margin: 0 auto;\n  height: 5px;\n  width: 36px;\n  background-color: #c0c0c0;\n  border-radius: 4px;\n}\n\n[_nghost-%COMP%]   #title-button[_ngcontent-%COMP%]{\n  width: 100%;\n  height: 100%;\n  position: relative;\n  height: 26px;\n  margin-top: 5px;\n  margin-bottom: 5px;\n}\n\n[_nghost-%COMP%]   #close-button[_ngcontent-%COMP%]{\n  width: 26px;\n  height: 26px;\n  position: absolute;\n  right: 10px;\n  background: #c0c0c0;\n  border-radius: 100%;\n  content: url(\'data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <path fill="7a7a7e" d="M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z"/> </svg>\');\n}\n\n[_nghost-%COMP%]   #title[_ngcontent-%COMP%]{\n  position: absolute;\n  left: 10px;\n  padding: 0px;\n  margin: 0px;\n  font-size: 20px;\n  line-height: 26px;\n  color: inherit; \n}\n\n[_nghost-%COMP%]   .txt-center[_ngcontent-%COMP%]{\n  text-align: center;\n  width: 100%;\n  left: 0px !important;\n}\n\n[_nghost-%COMP%]   #ibs-content[_ngcontent-%COMP%]{\n  width: 100%;\n  height: 100%;\n  padding-left: 5px;\n  padding-right: 5px;\n}\n\n[_nghost-%COMP%]   .pd5[_ngcontent-%COMP%]{\n  padding-top: 5px;\n}\n\n[_nghost-%COMP%]   #ibs-content-inner[_ngcontent-%COMP%]{\n  touch-action: none;\n  overflow: hidden;\n  height: 100%;\n}\n\n[_nghost-%COMP%]   .fadeOut[_ngcontent-%COMP%] {\n  visibility: hidden;\n  opacity: 0;\n  transition: visibility 0s linear 700ms, opacity 700ms;  \n}\n\n[_nghost-%COMP%]   .fadeIn[_ngcontent-%COMP%] {\n  visibility: visible;\n  opacity: 1;\n  transition: visibility 0s linear 0s, opacity 300ms;\n}\n\n.no-drag-icon[_nghost-%COMP%]   #drag-icon[_ngcontent-%COMP%], .no-close-btn[_nghost-%COMP%]   #close-button[_ngcontent-%COMP%], .no-title[_nghost-%COMP%]   #title[_ngcontent-%COMP%], .no-header[_nghost-%COMP%]   #ibs-header[_ngcontent-%COMP%] {\n  display: none !important;\n}\n\n.no-title[_nghost-%COMP%]   #title-button[_ngcontent-%COMP%] {\n  margin-top: 0px;\n}\n\n.no-title.no-drag-icon[_nghost-%COMP%]   #title-button[_ngcontent-%COMP%] {\n  margin-top: 5px;\n}\n\n.no-title.no-close-btn[_nghost-%COMP%]   #title-button[_ngcontent-%COMP%] {\n  margin-bottom: 0px;\n}\n\n.no-drag-icon.no-title.no-close-btn[_nghost-%COMP%]   #title-button[_ngcontent-%COMP%] {\n  margin-top: 0px;\n  margin-bottom: 0px;\n}']}),t}(),v=function(){function t(){}return t.prototype.ibsProvider=function(){return"The Ionic Bootom Sheet Component"},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=h.Yz7({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),S=function(){function t(){}var e;return e=t,t.forRoot=function(){return{ngModule:e,providers:[v]}},t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({}),t}(),_=i(87415),T=i(53198),b=i(71056),y=i(65339),C=i(5469),O=i(50699),A=i(87764),E=i(78526),w=i(44994),Z=i(20381),x=i(56577),I=i(26867);let q=(()=>{class t{transform(t,...e){let i="0";const n=t.reduce((t,e)=>(i=e.startHtml?e.startHtml.split(":")[0]:"0",t[i]?t[i].push(e):t[i]=[e],t),{});let o=Object.keys(n).map(t=>({key:t,value:n[t],label:t+":00"}));return console.log(o),o.sort((t,e)=>Number(t.key)>Number(e.key)?1:-1),o}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=h.Yjl({name:"groupByHh",type:t,pure:!0}),t})();const B=["rangeContainer"],k=["noRangeContainer"],R=["withoutWaitingContainer"];function D(t,e){1&t&&(h.TgZ(0,"div",19),h.TgZ(1,"div",20),h._UZ(2,"div",21),h._UZ(3,"div",22),h.qZA(),h.qZA())}function H(t,e){if(1&t&&(h.TgZ(0,"ion-select-option",31),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.s9C("value",t.id),h.xp6(1),h.hij(" ",t.name,"")}}function N(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"ion-item",26),h.TgZ(1,"ion-label",27),h._UZ(2,"ion-icon",28),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"ion-select",29),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).idsOper=e})("ionChange",function(){return h.CHM(t),h.oxw(2).initSeachAvailable()}),h.YNc(6,H,2,2,"ion-select-option",30),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(3),h.hij(" ",h.lcZ(4,3,"OPERATOR_PREFER")," "),h.xp6(2),h.Q6J("ngModel",t.idsOper),h.xp6(1),h.Q6J("ngForOf",null==t.principal.currentOffice?null:t.principal.currentOffice.operators)}}function M(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"ion-row"),h.TgZ(1,"ion-col",14),h.TgZ(2,"div",23),h.TgZ(3,"a
1pp-custom-calendar-days",24),h.NdJ("changeDayFromDays",function(e){return h.CHM(t),h.oxw().onChangeCalendar(e)}),h.qZA(),h.YNc(4,N,7,5,"ion-item",25),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(3),h.Q6J("list",t.daysListCalendar)("currDate",t.date),h.xp6(1),h.Q6J("ngIf",null==t.principal.currentOffice?null:t.principal.currentOffice.showNameOperator)}}function P(t,e){if(1&t&&(h.TgZ(0,"span",46),h.TgZ(1,"b"),h._uU(2),h.ALo(3,"number"),h.ALo(4,"pipesCurrency"),h.TgZ(5,"small"),h._uU(6),h.ALo(7,"taxLabel"),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(3);h.xp6(2),h.AsE(" ",h.xi3(3,3,t.priceCustomized,"1.2-2"),"",h.lcZ(4,6,e.principal.currentOffice.currency),""),h.xp6(4),h.Oqu(h.lcZ(7,8,null==e.principal.currentOffice?null:e.principal.currentOffice.taxIncluded))}}function W(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.ALo(2,"translate"),h.YNc(3,P,8,10,"span",45),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.lnq(" ",h.lcZ(2,4,"WITH")," ",null==t?null:t.surnameOperator," ",null==t?null:t.nameOperator," "),h.xp6(2),h.Q6J("ngIf",t.priceCustomized)}}function U(t,e){if(1&t&&(h.TgZ(0,"span"),h.TgZ(1,"span",46),h.TgZ(2,"b"),h._uU(3),h.ALo(4,"pipesPrice"),h.TgZ(5,"small"),h._uU(6),h.ALo(7,"taxLabel"),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(3);h.xp6(3),h.hij(" ",h.Dn7(4,2,t,e.principal.currentOffice.currency,"NO_DISC"),""),h.xp6(3),h.Oqu(h.lcZ(7,6,null==e.principal.currentOffice?null:e.principal.currentOffice.taxIncluded))}}function Y(t,e){if(1&t&&(h.TgZ(0,"span",46),h.TgZ(1,"del"),h._uU(2),h.ALo(3,"number"),h.ALo(4,"pipesCurrency"),h.qZA(),h.TgZ(5,"b"),h._uU(6),h.ALo(7,"pipesPrice"),h.TgZ(8,"small"),h._uU(9),h.ALo(10,"taxLabel"),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(3);h.xp6(2),h.AsE("",h.xi3(3,4,t.price,"1.2-2")," ",h.lcZ(4,7,e.principal.currentOffice.currency),""),h.xp6(4),h.hij(" ",h.Dn7(7,9,t,e.principal.currentOffice.currency,"SI_DISC"),""),h.xp6(3),h.Oqu(h.lcZ(10,13,null==e.principal.currentOffice?null:e.principal.currentOffice.taxIncluded))}}function F(t,e){if(1&t&&(h.TgZ(0,"span"),h.YNc(1,Y,11,15,"span",45),h.qZA()),2&t){const t=h.oxw(2).$implicit;h.xp6(1),h.Q6J("ngIf",t.discountType&&t.price&&t.discount)}}function L(t,e){if(1&t&&(h.TgZ(0,"span"),h.TgZ(1,"span",46),h.TgZ(2,"b"),h._uU(3),h.ALo(4,"pipesPrice"),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(3);h.xp6(3),h.hij(" ",h.Dn7(4,1,t,e.principal.currentOffice.currency,"FREE")," ")}}function Q(t,e){if(1&t&&(h.TgZ(0,"ion-row"),h._UZ(1,"ion-col",38),h.TgZ(2,"ion-col",47),h.YNc(3,U,8,8,"span",13),h.YNc(4,F,2,1,"span",13),h.YNc(5,L,5,5,"span",13),h.qZA(),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(3),h.Q6J("ngIf",t.price>0&&!t.discountType),h.xp6(1),h.Q6J("ngIf",t.price>0&&t.discountType),h.xp6(1),h.Q6J("ngIf",!t.price||0===t.price)}}function z(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",51),h.NdJ("click",function(){const e=h.CHM(t).$implicit,i=h.oxw(2),n=i.$implicit,o=i.index;return h.oxw(3).selectHoursClassic(e,n,o)}),h._uU(1),h.qZA()}if(2&t){const t=e.$implicit;h.ekj("elem_horizontal_scroll_selected",t.isChecked)("backgroundAnimated1",t.isChecked)("elem_horizontal_scroll",!t.isChecked)("disabledHour",t.isDisalbed),h.xp6(1),h.hij(" ",t.start," ")}}function J(t,e){if(1&t&&(h.TgZ(0,"ion-col",48,49),h.YNc(2,z,2,9,"div",50),h.qZA()),2&t){const t=h.oxw().$implicit,e=h.oxw(3);h.ekj("horizontal_scroll",!e.forceFlatSlots)("wrap_slots_container",e.forceFlatSlots),h.xp6(2),h.Q6J("ngForOf",t.resultWithRange)}}function G(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",51),h.NdJ("click",function(){const e=h.CHM(t).$implicit,i=h.oxw(2),n=i.$implicit,o=i.index;return h.oxw(3).selectHoursClassic(e,n,o)}),h._uU(1),h.qZA()}if(2&t){const t=e.$implicit;h.ekj("elem_horizontal_scroll_selected",t.isChecked)("backgroundAnimated1",t.isChecked)("elem_horizontal_scroll",!t.isChecked)("disabledHour",t.isDisalbed),h.xp6(1),h.hij(" ",t.start," ")}}function j(t,e){if(1&t&&(h.TgZ(0,"ion-col",48,52),h.YNc(2,G,2,9,"div",50),h.qZA()),2&t){const t=h.oxw().$implicit,e=h.oxw(3);h.ekj("horizontal_scroll",!e.forceFlatSlots)("wrap_slots_container",e.forceFlatSlots),h.xp6(2),h.Q6J("ngForOf",t.result)}}function X(t,e){if(1&t&&(h.TgZ(0,"ion-item",37),h.TgZ(1,"ion-label"),h.TgZ(2,"ion-grid"),h.TgZ(3,"ion-row"),h.TgZ(4,"ion-col",38),h.TgZ(5,"div",39),h._uU(6),h.qZA(),h.qZA(),h.TgZ(7,"ion-col",40),h.TgZ(8,"span",41),h.TgZ(9,"b"),h._uU(10),h.qZA(),h.YNc(11,W,4,6,"span",13),h.qZA(),h.qZA(),h.qZA(),h.TgZ(12,"ion-row"),h._UZ(13,"ion-col",38),h.TgZ(14,"ion-col",42),h.TgZ(15,"h3",43),h._uU(16),h.ALo(17,"translate"),h.TgZ(18,"b"),h._uU(19),h.ALo(20,"pipesHours"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.YNc(21,Q,6,3,"ion-row",13),h.qZA(),h.TgZ(22,"ion-grid"),h.TgZ(23,"ion-row"),h.YNc(24,J,3,5,"ion-col",44),h.YNc(25,j,3,5,"ion-col",44),h.qZA(),h.qZA(),h.qZA(),h._UZ(26,"ion-reorder",7),h.qZA()),2&t){const t=e.$implicit,i=e.index,n=h.oxw(3);h.xp6(6),h.Oqu(i+1),h.xp6(4),h.Oqu(t.name),h.xp6(1),h.Q6J("ngIf",null==t?null:t.nameOperator),h.xp6(5),h.hij("",h.lcZ(17,8,"DURATION")," "),h.xp6(3),h.Oqu(h.xi3(20,10,t.duration,n.principal.actualLang)),h.xp6(2),h.Q6J("ngIf",(null==n.principal.currentOffice?null:n.principal.currentOffice.showPriceService)&&!t.priceCustomized),h.xp6(3),h.Q6J("ngIf",null==n.principal.currentOffice?null:n.principal.currentOffice.rangeSlot),h.xp6(1),h.Q6J("ngIf",!(null!=n.principal.currentOffice&&n.principal.currentOffice.rangeSlot))}}function V(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"ion-reorder-group",35),h.NdJ("ionItemReorder",function(e){return h.CHM(t),h.oxw(2).reorderItems(e)}
1),h.YNc(1,X,27,13,"ion-item",36),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("ngForOf",t.listAvailableClassic)}}function $(t,e){1&t&&(h.TgZ(0,"div"),h._UZ(1,"ion-icon",54),h._UZ(2,"br"),h.qZA())}function K(t,e){1&t&&h._UZ(0,"ion-icon",55)}function tt(t,e){if(1&t&&(h.TgZ(0,"div",4),h.YNc(1,$,3,0,"div",13),h.YNc(2,K,1,0,"ion-icon",53),h._uU(3),h.ALo(4,"translate"),h._UZ(5,"br"),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("ngIf",!(null!=t.principal&&t.principal.isApp)),h.xp6(1),h.Q6J("ngIf",null==t.principal?null:t.principal.isApp),h.xp6(1),h.hij(" ",h.lcZ(4,3,"ORARI_NOT_FOUND")," ")}}function et(t,e){if(1&t&&(h.TgZ(0,"div",23),h.TgZ(1,"div",32),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._UZ(4,"br"),h.YNc(5,V,2,1,"ion-reorder-group",33),h.YNc(6,tt,6,5,"div",34),h._UZ(7,"br"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(h.lcZ(3,3,"CHOOSE_HOUR")),h.xp6(3),h.Q6J("ngIf",t.listAvailableClassic&&(null==t.listAvailableClassic?null:t.listAvailableClassic.length)>0),h.xp6(1),h.Q6J("ngIf",t.listAvailableClassicNotFound)}}function it(t,e){1&t&&(h.TgZ(0,"div"),h._UZ(1,"ion-icon",60),h._UZ(2,"br"),h._uU(3,"\xa0 "),h._UZ(4,"br"),h.TgZ(5,"div"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.qZA()),2&t&&(h.xp6(6),h.hij(" ",h.lcZ(7,1,"ORARI_NOT_FOUND")," "))}function nt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",61),h._UZ(1,"ion-icon",60),h._UZ(2,"br"),h._uU(3,"\xa0 "),h._UZ(4,"br"),h.TgZ(5,"div"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h._UZ(8,"br"),h.TgZ(9,"ion-button",62),h.NdJ("click",function(){return h.CHM(t),h.oxw(3).addToQueueBooking()}),h._UZ(10,"ion-icon",63),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA()}2&t&&(h.xp6(6),h.hij(" ",h.lcZ(7,2,"NO_SERVS_AGREGATI"),""),h.xp6(5),h.hij(" ",h.lcZ(12,4,"ADD_TO_QUEUE_BOOKING")," "))}function ot(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",61),h._UZ(1,"ion-icon",60),h._UZ(2,"br"),h._uU(3,"\xa0 "),h._UZ(4,"br"),h.TgZ(5,"div"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h._UZ(8,"br"),h.TgZ(9,"ion-button",64),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(3);return e.sureDeleteQueueBooking(e.queueBookingService.queues[0].id)}),h._UZ(10,"ion-icon",65),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA()}2&t&&(h.xp6(6),h.Oqu(h.lcZ(7,2,"ACTIVE_QUEUE_BOOKING")),h.xp6(5),h.hij(" ",h.lcZ(12,4,"DELETE_QUEUE_BOOKING")," "))}function st(t,e){if(1&t&&(h.TgZ(0,"div",58),h.YNc(1,it,8,3,"div",13),h.YNc(2,nt,13,6,"div",59),h.YNc(3,ot,13,6,"div",59),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("ngIf",null==t.principal.currentOffice?null:t.principal.currentOffice.hideQueueBookingCus),h.xp6(1),h.Q6J("ngIf",!(null!=t.principal.currentOffice&&t.principal.currentOffice.hideQueueBookingCus)&&(!t.queueBookingService.queues||t.queueBookingService.queues&&t.queueBookingService.queues.length<1)),h.xp6(1),h.Q6J("ngIf",!(null!=t.principal.currentOffice&&t.principal.currentOffice.hideQueueBookingCus)&&t.queueBookingService.queues&&t.queueBookingService.queues.length>0&&0===t.queueBookingService.queues[0].startTime&&1440===t.queueBookingService.queues[0].endTime)}}function rt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",72),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw(4).selectHoursWithoutWaiting(e)}),h._uU(1),h.qZA()}if(2&t){const t=e.$implicit;h.ekj("elem_horizontal_scroll_selected",t.isChecked)("backgroundAnimated1",t.isChecked)("elem_horizontal_scroll",!t.isChecked),h.xp6(1),h.hij(" ",t.startHtml," ")}}function at(t,e){if(1&t&&(h.TgZ(0,"div",null,68),h._UZ(2,"hr",69),h.TgZ(3,"div",70),h.YNc(4,rt,2,7,"div",71),h.qZA(),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3);h.xp6(2),h.uIk("data-content",t.label),h.xp6(1),h.ekj("horizontal_scroll",!i.forceFlatSlots)("wrap_slots_container",i.forceFlatSlots),h.xp6(1),h.Q6J("ngForOf",t.value)}}function lt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"ion-list",66),h.NdJ("ionItemReorder",function(e){return h.CHM(t),h.oxw(2).reorderItems(e)}),h.TgZ(1,"ion-item-group"),h.YNc(2,at,5,6,"div",67),h.ALo(3,"groupByHh"),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("ngForOf",h.lcZ(3,1,t.listAvailableWithoutWaiting))}}function ct(t,e){if(1&t&&(h.TgZ(0,"div",23),h.TgZ(1,"div",32),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._UZ(4,"br"),h.YNc(5,st,4,3,"div",56),h.YNc(6,lt,4,3,"ion-list",57),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(h.lcZ(3,3,"CHOOSE_HOUR")),h.xp6(3),h.Q6J("ngIf",t.principal.servicesService.selectedServices&&t.listAvailableWithoutWaiting&&0===(null==t.listAvailableWithoutWaiting?null:t.listAvailableWithoutWaiting.length)),h.xp6(1),h.Q6J("ngIf",t.listAvailableWithoutWaiting&&(null==t.listAvailableWithoutWaiting?null:t.listAvailableWithoutWaiting.length)>0)}}
1function ht(t,e){1&t&&(h.TgZ(0,"div"),h._UZ(1,"ion-icon",54),h._UZ(2,"br"),h.qZA())}function ut(t,e){1&t&&h._UZ(0,"ion-icon",55)}function pt(t,e){if(1&t&&(h.TgZ(0,"div",73),h.TgZ(1,"div",32),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",74),h._UZ(5,"br"),h.YNc(6,ht,3,0,"div",13),h.YNc(7,ut,1,0,"ion-icon",53),h._uU(8),h.ALo(9,"translate"),h._UZ(10,"br"),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(h.lcZ(3,4,"CHIUSO")),h.xp6(4),h.Q6J("ngIf",!(null!=t.principal&&t.principal.isApp)),h.xp6(1),h.Q6J("ngIf",null==t.principal?null:t.principal.isApp),h.xp6(1),h.hij(" ",h.lcZ(9,6,"CHIUSO_DESC")," ")}}function dt(t,e){1&t&&(h.TgZ(0,"div"),h._UZ(1,"ion-icon",75),h._UZ(2,"br"),h.qZA())}function gt(t,e){1&t&&h._UZ(0,"ion-icon",55)}function ft(t,e){if(1&t&&(h.TgZ(0,"div",73),h.TgZ(1,"div",32),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",74),h._UZ(5,"br"),h.YNc(6,dt,3,0,"div",13),h.YNc(7,gt,1,0,"ion-icon",53),h._uU(8),h.ALo(9,"translate"),h._UZ(10,"br"),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(h.lcZ(3,4,"CHOOSE_HOUR")),h.xp6(4),h.Q6J("ngIf",!(null!=t.principal&&t.principal.isApp)),h.xp6(1),h.Q6J("ngIf",null==t.principal?null:t.principal.isApp),h.xp6(1),h.hij(" ",h.lcZ(9,6,"TICKET_DAY")," ")}}function mt(t,e){if(1&t&&(h.TgZ(0,"ion-select-option",31),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.id),h.xp6(1),h.hij("",t.value," ")}}const vt=function(){return{standalone:!0}};function St(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"ion-row",81),h.TgZ(1,"ion-col",82),h._uU(2),h.qZA(),h.TgZ(3,"ion-col",82),h.TgZ(4,"ion-select",83),h.NdJ("ngModelChange",function(e){return h.CHM(t).$implicit.opAndPriceChoised=e})("ionChange",function(){return h.CHM(t),h.oxw(2).updCart()}),h.YNc(5,mt,2,2,"ion-select-option",30),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit;h.xp6(2),h.hij(" ",t.name," "),h.xp6(2),h.Q6J("ngModelOptions",h.DdM(4,vt))("ngModel",t.opAndPriceChoised),h.xp6(1),h.Q6J("ngForOf",t.opAndPriceHtml)}}const _t=function(t){return{opacity:t}};function Tt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"ion-bottom-sheet",76),h.NdJ("stateChange",function(e){return h.CHM(t),h.oxw().sheetState=e}),h.TgZ(1,"ion-content"),h.TgZ(2,"ion-grid"),h.YNc(3,St,6,5,"ion-row",77),h.qZA(),h.TgZ(4,"ion-grid"),h.TgZ(5,"ion-row",78),h.TgZ(6,"ion-col",14),h.TgZ(7,"ion-button",79),h.NdJ("click",function(){return h.CHM(t),h.oxw().goCheckout()}),h._uU(8),h.ALo(9,"translate"),h._UZ(10,"ion-icon",80),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("ngStyle",h.VKq(13,_t,t.opacityVal))("state",t.sheetState)("dockedHeight",t.dockedHeight)("bounceDelta",t.bounceDelta)("enableScrollContent",t.enableScrollContent)("roundBorderOnTop",t.roundBorderOnTop)("hideTitle",t.hideTitle)("hideSeparator",t.hideSeparator)("hideCloseButton",t.hideCloseButton),h.xp6(3),h.Q6J("ngForOf",t.currentChoise),h.xp6(5),h.hij(" ",h.lcZ(9,11,"NEXT")," ")}}function bt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"ion-footer",84),h.TgZ(1,"div",85),h.TgZ(2,"ion-button",86),h.NdJ("click",function(){return h.CHM(t),h.oxw().goCheckout()}),h._uU(3),h.ALo(4,"translate"),h._UZ(5,"ion-icon",80),h.qZA(),h.qZA(),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"NEXT")," "))}const yt=[{path:"",component:(()=>{class t{constructor(t,e,i,n,o,s,r,a,l,c,h,p){this.principal=t,this.router=e,this.navCtrl=i,this.bookingService=n,this.alertController=o,this.webPaymentsService=s,this.modalController=r,this.translateService=a,this.queueBookingService=l,this.actionSheetCtrl=c,this.route=h,this.cdr=p,this.servicesIdsRequest=[],this.servicesIdsAssRequest=[],this.aggregatoOSeparato=2,this.showSearchAvailableButton=!0,this.jsonHour={},this.itemsRequestWithoutWaiting=[],this.listAvailableClassic=[],this.listAvailableWithoutWaiting=[],this.currentChoise=[],this.operatorsSelwithServ=[],this.arrHourMin=[],this.arrHourMax=[],this.sheetState=u.Bottom,this.bounceDelta=50,this.enableScrollContent=!0,this.roundBorderOnTop=!0,this.hideTitle=!0,this.dockedHeight=50,this.hideSeparator=!0,this.hideCloseButton=!0,this.opacityVal=0,this.daysListCalendar=[],this.forceFlatSlots=!1,this.inSignUp=!1,this.hideCloseButton=this.principal.isApp,this.servicesIdsRequest=[],this.servicesIdsAssRequest=[]}ngOnInit(){this.principal.start().then(t=>{this.load()})}load(){return(0,a.mG)(this,void 0,void 0,function*(){if(!this.principal.currentOffice)return this.goHome(),!1;this.servicesIdsRequest=[],this.servicesIdsAssRequest=[],this.orario="00:00",this.principal.servicesService.selectedServices.forEac
1h(t=>{this.servicesIdsRequest.push(t.serviceOfferedId),this.servicesIdsAssRequest.push(t.id)});let t=this.principal.currentOffice.rpWeek,e=new Date,i=new Date;if(this.principal.currentDate&&this.principal.convertLocalDateToDate(this.principal.currentDate)>=i&&(this.principal.convertLocalDateToDate(this.principal.currentDate),i=this.principal.convertLocalDateToDate(this.principal.currentDate),this.date=this.principal.convertLocalDateToDate(this.principal.currentDate),this.principal.currentDate=null),this.principal.idsOper&&(this.idsOper=this.listToString(this.principal.idsOper),this.principal.idsOper=[]),this.dayRequest=i.getDay(),this.dateToRequest=this.principal.formatDate(i),this.route.snapshot&&this.route.snapshot.params&&this.route.snapshot.params.event&&(this.isEvent=!0),this.route.snapshot.queryParams.byWidget&&(this.byWidget=!0),this.byWidget||(this.byWidget=Boolean(this.route.snapshot.paramMap.get("byWidget"))),this.hideEndTime||(this.hideEndTime=Boolean(this.route.snapshot.paramMap.get("hideEndTime"))),this.isEvent&&this.principal.servicesService.selectedServices){let i=new Date(this.principal.servicesService.selectedServices[0].dateEvent);t=1,e=new Date((new Date).setDate(i.getDate())),this.dayRequest=i.getDay(),this.dateToRequest=this.principal.formatDate(i)}this.generateListDays(e,t||1),this.initSeachAvailable()})}onChangeCalendar(t){if(!t||!t.date)return;let e=new Date(t.date);this.date=e,this.dayRequest=e.getDay(),this.dateToRequest=this.principal.formatDateRequestSlots(t.date),this.showSearchAvailableButton=!0,this.operatorsSelwithServ=[],this.showGoLastStep=!1,this.aggregatoOSeparato=2,this.initSeachAvailable()}reorderItems(t){this.listAvailableClassic=t.detail.complete(this.listAvailableClassic),this.operatorsSelwithServ=[],this.arrHourMin=[],this.arrHourMax=[],this.listAvailableClassic.forEach(t=>{t.priceCustomized=null,t.nameOperator="",t.result.forEach(t=>{t.isDisalbed=!1,t.isChecked=!1})}),this.principal.servicesService.selectedServices=this.principal.servicesService.selectedServices.sort((t,e)=>this.listAvailableClassic.findIndex(e=>e.soAssId===t.id)-this.listAvailableClassic.findIndex(t=>t.soAssId===e.id)),this.servicesIdsRequest=[],this.servicesIdsAssRequest=[],this.principal.servicesService.selectedServices.forEach(t=>{this.servicesIdsRequest.push(t.serviceOfferedId),this.servicesIdsAssRequest.push(t.id)}),this.classicSearch()}checkGoNext(){this.showGoLastStep=this.operatorsSelwithServ.length===this.listAvailableClassic.length&&this.operatorsSelwithServ.length>0||this.operatorsSelwithServ.length>0&&this.listAvailableWithoutWaiting.length>0}initSeachAvailable(){this.listAvailableClassic=[],this.listAvailableWithoutWaiting=[],this.operatorsSelwithServ=[],this.principal.cartBookService.cart=[],this.currentChoise=null,this.opacityVal=0,this.sheetState=u.Bottom,this.showSectionClassic=!1,this.showSectionWithoutWaiting=!1;let t=this.principal.currentOffice.openingHours.find(t=>t.day===this.dayRequest);t?(this.opened=!0,!t.enableQueueOper&&!t.enableQueue||this.isEvent?(this.currentOffTicket=!1,this.checkSearch()):this.currentOffTicket=!0):this.bookingService.checkOvers(this.principal.currentOffice.id,this.dateToRequest).subscribe(t=>{t&&t.body?(this.opened=!0,this.currentOffTicket=!1,this.checkSearch()):(this.opened=!1,this.currentOffTicket=!1)},t=>{this.opened=!1,this.currentOffTicket=!1})}checkSearch(){this.getQueueBooking(),this.aggregatoOSeparato?1===this.aggregatoOSeparato?this.classicSearch():2===this.aggregatoOSeparato&&this.withoutWaitingSearch():this.principal.servicesService.selectedServices.length>1?(this.aggregatoOSeparato=2,this.withoutWaitingSearch()):(this.aggregatoOSeparato=1,this.classicSearch())}classicSearch(){if(!this.showSearchAvailableButton)return this.principal.presentToastWithButton("SELECT_DAY_FOR_SEARCH","ERROR","danger","BOTTOM"),!1;this.listAvailableClassic=[],this.operatorsSelwithServ=[],this.showGoLastStep=!1,this.showSpinner=!0;let t=this.orario.split(":");this.orarioSplittato=60*Number(t[0])+Number(t[1]),this.requestAvailableClassic={date:this.dateToRequest,day:this.dayRequest,soIds:this.servicesIdsRequest,soAssIds:this.servicesIdsAssRequest,startTime:this.orarioSplittato,officeId:this.principal.currentOffice.id,locale:this.principal.actualLang,idsOper:this.listToNumber(this.idsOper)},this.principal.cartBookService.dataStart=this.dateToRequest,this.principal.cartBookService.officeId=this.principal.currentOffice.id,this.bookingService.getAvailableClassic(this.requestAvailableClassic).subscribe(t=>
1{if(this.listAvailableClassic=t.body,this.showSpinner=!1,this.showSectionClassic=!0,this.listAvailableClassic.length<1)this.listAvailableClassicNotFound=!0;else if(this.listAvailableClassic.forEach(t=>{t.result&&t.result.length>0&&(t.timeTec=t.result[0].timeTec);let e=this.principal.servicesService.selectedServices.find(e=>e.id===t.soAssId);e&&(t.gender=e.gender,t.priceTo=e.priceTo,t.range=e.range,t.showMax=e.showMax,t.priceWithDiscountHtml=c.iW(e),t.discountType=e.discountType,t.discount=e.discount,t.resOnlyPackage=e.resOnlyPackage,t.configPackages=e.configPackages,t.paymentRequired=e.paymentRequired)}),this.listAvailableClassicNotFound=!1,this.principal.currentOffice.rangeSlot){let t=this.principal.currentOffice.openingHours.filter(t=>Number(t.day)===this.dayRequest);t=t.sort((t,e)=>t.open>e.open?1:-1),this.listAvailableClassic.forEach(e=>{e.resultWithRange=new Array,t.forEach(t=>{let i=e.result.filter(e=>Number(e.start)>=t.open&&Number(e.start)<=t.close);if(i&&i.length>0){e.resultWithRange.push(i[0]);let t=i[0].start+this.principal.currentOffice.rangeSlot;i.forEach(i=>{for(;t<i.start;)t+=this.principal.currentOffice.rangeSlot;t==i.start&&(e.resultWithRange.push(i),t+=this.principal.currentOffice.rangeSlot)})}})}),this.listAvailableClassic.forEach(t=>{t.resultWithRange.forEach(t=>{t.start&&(t.start=this.principal.convertHours(t.start))})})}else this.listAvailableClassic.forEach(t=>{t.result.forEach(t=>{t.start&&(t.start=this.principal.convertHours(t.start))})});this.ensureSlotsVisible(),this.forceRepaintSlotContainers(),this.showSpinner=!1},t=>{this.showSpinner=!1;let e=!1;if(t&&t.error&&t.error.msgs&&t.error.msgs.forEach(t=>{"payment.pending"===t&&(e=!0)}),e)this.fixPending(!0);else{let e=this.principal.checkErrorsRequest(t);this.principal.presentToastWithButton(e,"ERROR","danger","BOTTOM"),this.showSpinner=!1}})}withoutWaitingSearch(){if(!this.showSearchAvailableButton)return this.principal.presentToastWithButton("SELECT_DAY_FOR_SEARCH","ERROR","danger","BOTTOM"),!1;if(this.operatorsSelwithServ=[],this.showGoLastStep=!1,this.showSpinner=!0,this.listAvailableWithoutWaiting=[],this.itemsRequestWithoutWaiting=[],this.principal.servicesService.selectedServices.forEach(t=>{this.itemsRequestWithoutWaiting.push({idOper:-1,soAssId:t.id,soId:t.serviceOfferedId,idsOper:this.listToNumber(this.idsOper)})}),!this.orario)return!1;if(!this.itemsRequestWithoutWaiting||0==this.itemsRequestWithoutWaiting.length)return void this.principal.presentToastWithButton("NO_SERVICE_SELECTED","ERROR","danger","BOTTOM");let t=this.orario.split(":");this.orarioSplittato=60*Number(t[0])+Number(t[1]),this.requestAvailableWithoutWaiting={date:this.dateToRequest,locale:this.translateService.store.currentLang,day:this.dayRequest,officeId:this.principal.currentOffice.id,startTime:this.orarioSplittato,items:this.itemsRequestWithoutWaiting,nPers:1},this.principal.cartBookService.dataStart=this.dateToRequest,this.principal.cartBookService.officeId=this.principal.currentOffice.id,this.bookingService.getAvailableWithoutWaiting(this.requestAvailableWithoutWaiting).subscribe(t=>{this.listAvailableWithoutWaiting=t.body,this.showSpinner=!1,this.showSectionWithoutWaiting=!0,this.listAvailableWithoutWaiting.length<1?this.listAvailableWithoutWaitingNotFound=!0:(this.listAvailableWithoutWaiting.forEach(t=>{t.slots.forEach(t=>{let e=this.principal.servicesService.selectedServices.find(e=>e.id===t.soAssId);e&&(t.gender=e.gender,t.priceTo=e.priceTo,t.range=e.range,t.priceWithDiscountHtml=c.rh(e),t.discountType=e.discountType,t.discount=e.discount,t.hideTime=e.hideTime,t.configPackages=e.configPackages,t.resOnlyPackage=e.resOnlyPackage,t.paymentRequired=e.paymentRequired)})}),this.listAvailableWithoutWaitingNotFound=!1,this.listAvailableWithoutWaiting.forEach(t=>{t.startHtml=this.principal.convertHours(t.start),t.endHtml=this.principal.convertHours(t.end)})),this.ensureSlotsVisible(),this.forceRepaintSlotContainers(),this.showSpinner=!1},t=>{this.showSpinner=!1;let e=!1;if(t&&t.error&&t.error.msgs&&t.error.msgs.forEach(t=>{"payment.pending"===t&&(e=!0)}),e)this.fixPending(!1);else{let e=this.principal.checkErrorsRequest(t);this.principal.presentToastWithButton(e,"ERROR","danger","BOTTOM"),this.showSpinner=!1}})}selectHoursClassic(t,e,i){if(!t.isDisalbed)if(this.operatorsSelwithServ.length<i)this.principal.presentToastWithButton("NEED_SELECT_ORDER","E
1RROR","danger","BOTTOM");else{if(t.isChecked){this.operatorsSelwithServ=this.operatorsSelwithServ.filter(t=>t.serviceOfferedAssId!==e.soAssId);let n=new l.JQ;return n.serviceOfferedId=e.soId,n.serviceOfferedAssId=e.soAssId,n.start=0,n.end=0,n.duration=0,t.isChecked=!1,this.disableMergedHours(n,i),e.priceCustomized=null,e.nameOperator="",void this.checkGoNext()}{let n=t.opAndPrice.split("#"),o=this.principal.currentOffice.serviceOfferedAsses.find(t=>t.id===e.soAssId),s=new Array,r=t.start.split(":"),a=60*Number(r[0])+Number(r[1]),l=e.duration;(n.length>1||!this.principal.currentOffice.showNameOperator)&&s.push({text:this.translateService.instant("CHIUNQUE"),handler:()=>{let s=n.length-1,r=Math.floor(Math.random()*(s-0+1)+0),c=n[r].split(";"),h=Number(c[0]);if(this.principal.currentOffice.operators.find(t=>t.id===Number(h))){let n=Number(c[1]),s=void 0!==n&&n!==o.price?n:null,r=this.translateService.instant("CHIUNQUE");this.addClassicCart(h,o,a,l,r,"",s,t,e,i,n)}}}),this.principal.currentOffice.showNameOperator&&n.forEach(n=>{let r=n.split(";"),h=Number(r[0]),u=this.principal.currentOffice.operators.find(t=>t.id===Number(h));if(u){let n=u.name,p=u.surname?this.translateService.instant(u.surname):"",d=Number(r[1]),g=void 0!==d&&d!==o.price?d:null,f=null==g?n+" "+p:n+" "+p+" "+g+c.zC(this.principal.currentOffice.currency);s.push({text:f,handler:()=>{this.addClassicCart(h,o,a,l,n,p,g,t,e,i,d)}})}}),this.chooseOperatorSelect(s)}}}
1addClassicCart(t,e,i,n,o,s,r,a,c,h,u){let p=new l.JQ;p.checkOp=!1,p.idOperator=t,p.serviceOfferedId=e.serviceOfferedId,p.serviceOfferedAssId=e.id,p.start=i,p.duration=n,p.end=a.end,p.timeTec=a.timeTec,p.hideTime=a.hideTime,p.range=a.range,p.paymentRequired=a.paymentRequired,c.nameOperator=o,c.surnameOperator=s,c.priceCustomized=r,p.nameOperator=c.nameOperator,p.surnameOperator=c.surnameOperator,p.nameService=c.name,p.priceDefault=c.price,p.priceOperator=u,p.priceWithDiscountHtml=c.priceWithDiscountHtml,p.discount=c.discount,p.discountType=c.discountType,p.gender=c.gender,p.configPackages=c.configPackages,p.resOnlyPackage=c.resOnlyPackage,c.result.forEach(t=>t.isChecked=!1),this.operatorsSelwithServ=this.operatorsSelwithServ.filter(t=>t.serviceOfferedAssId!==c.soAssId),this.operatorsSelwithServ.push(p),this.disableMergedHours(p,h),a.isChecked=!0,this.checkGoNext()}ensureSlotsVisible(){this.forceFlatSlots||setTimeout(()=>{var t,e,i;const n=[];null===(t=this.rangeContainers)||void 0===t||t.forEach(t=>(null==t?void 0:t.nativeElement)&&n.push(t.nativeElement)),null===(e=this.noRangeContainers)||void 0===e||e.forEach(t=>(null==t?void 0:t.nativeElement)&&n.push(t.nativeElement)),null===(i=this.withoutWaitingContainers)||void 0===i||i.forEach(t=>(null==t?void 0:t.nativeElement)&&n.push(t.nativeElement)),n.some(t=>{if(!t)return!1;const e=t.querySelector(".elem_horizontal_scroll, .elem_horizontal_scroll_selected");return!!e&&(t.clientHeight<8||e.clientHeight<1||e.clientWidth<1)})&&(this.forceFlatSlots=!0,this.cdr.detectChanges())},50)}forceRepaintSlotContainers(){requestAnimationFrame(()=>{var t,e,i;const n=[];null===(t=this.rangeContainers)||void 0===t||t.forEach(t=>(null==t?void 0:t.nativeElement)&&n.push(t.nativeElement)),null===(e=this.noRangeContainers)||void 0===e||e.forEach(t=>(null==t?void 0:t.nativeElement)&&n.push(t.nativeElement)),null===(i=this.withoutWaitingContainers)||void 0===i||i.forEach(t=>(null==t?void 0:t.nativeElement)&&n.push(t.nativeElement)),n.forEach(e=>{try{const t=e.style.transform,i=e.scrollLeft;e.scrollLeft=i+1,e.scrollLeft=i,e.style.transform="translateZ(0)",requestAnimationFrame(()=>{e.style.transform=t})}catch(t){}})})}chooseOperatorSelect(t){return(0,a.mG)(this,void 0,void 0,function*(){const e=yield this.actionSheetCtrl.create({header:this.translateService.instant("CHOOSE_OPERATOR"),buttons:t});yield e.present()})}disableMergedHours(t,e){let i=0;this.jsonHour[e]={start:t.start,end:t.end?t.end:t.start+t.duration,index:e},this.refreshDisabledHours(e),this.listAvailableClassic.forEach(t=>{if(i!==e){if(i>e)for(let e in this.jsonHour)if(parseInt(e)!=i){var n=this.jsonHour[e].start,o=this.jsonHour[e].end,s=n-(o-n);t.result.forEach(t=>{let e=";";e="number"!=typeof t.start?this.principal.convertHoursFromString(t.start):t.start,(e<=n||e>s&&e<=n||e>=n&&e<o)&&(t.isDisalbed=!0)})}i++}else i++})}refreshDisabledHours(t){for(let e in this.jsonHour)e>t&&delete this.jsonHour[e];this.listAvailableClassic.forEach(e=>{this.listAvailableClassic.indexOf(e)>t&&(this.operatorsSelwithServ=this.operatorsSelwithServ.filter(t=>t.serviceOfferedAssId!==e.soAssId),e.result.forEach(t=>{t.isDisalbed=!1,t.isChecked=!1}))})}selectHoursWithoutWaiting(t){var e;if(t.isChecked)t.isChecked=!1,this.currentChoise=[],this.principal.cartBookService.cart=[],this.operatorsSelwithServ=[],this.sheetState=u.Bottom;else{this.currentChoise=[],this.listAvailableWithoutWaiting.forEach(e=>e.isChecked=e.start==t.start),t.slots.forEach(t=>{const e=this.getSelect(t);t.opAndPriceHtml=!this.principal.currentOffice.showNameOperator&&e.length>0?new Array(e[0]):e,t.opAndPriceALLHtml=e,e&&e.length>0&&(t.opAndPriceChoised=e[0].id);const i=this.getSelectWp(t);i&&i.length>0&&(t.wtAndNameHtml=i,t.opAndPriceMacchinarioChoised=i[0].idMacchinario),this.currentChoise.push(t)});const i=50*(null===(e=this.currentChoise)||void 0===e?void 0:e.length)+150;this.dockedHeight=this.principal.platform.height()>i?i:this.principal.platform.height(),this.hideCloseButton=this.principal.isApp,this.opacityVal=1,this.sheetState=u.Docked}this.updCart()}getSelect(t){let e=new Array,i=t.opAndPrice.split("#");if(i){(i.length>1||!this.principal.currentOffice.showNameOperator)&&e.push({id:-1,value:this.translateService.instant("CHIUNQUE"),nameOperator:"",surnameOperator:"",nameService:t.name,priceWithDiscountHtml:null,priceDefault:0,priceOperator:0});let n=this.principal.currentOffice.serviceOfferedAsses.find(e=>e.id===t.soAssId);
1return i.forEach(i=>{let o=i.split(";"),s=Number(o[0]);if(this.principal.currentOffice.operators.find(t=>t.id===Number(s))){let o=i.split(";"),s=Number(o[0]),r=this.principal.currentOffice.operators.find(t=>t.id===Number(s));if(r){let i=r.name,a=r.surname?this.translateService.instant(r.surname):"",l=Number(o[1]),h=void 0!==l&&l!==n.price?l:null,u=null==h?i+" "+a:i+" "+a+" "+h+c.zC(this.principal.currentOffice.currency);e.push({id:s,value:u,nameOperator:i,surnameOperator:a,nameService:t.name,priceDefault:n.price,priceOperator:l,priceWithDiscountHtml:c.iW(n),discountType:n.discountType,discount:n.discount})}}}),e}return[]}getSelectWp(t){let e=new Array;return t.wtAndName&&t.wtAndName.split("#").forEach(t=>{let i=t.split(";"),n=Number(i[0]),o=String(i[1]),s=Number(i[2]),r=Number(i[3]);e.push({idMacchinario:n,timeStOpMacchinario:s,timeEndOpMacchinario:r,nameMacchinario:o})}),e}updCart(){this.operatorsSelwithServ=[],this.currentChoise.forEach(t=>{let e=Number(t.opAndPriceChoised);if(-1==t.opAndPriceChoised){let i=t.opAndPrice.split("#"),n=0,o=i.length-1,s=i[Math.floor(Math.random()*(o-n+1)+n)].split(";");e=Number(s[0])}let i=new l.JQ;i.checkOp=-1!=t.opAndPriceChoised,i.idOperator=e,i.serviceOfferedId=t.soId,i.serviceOfferedAssId=t.soAssId,i.start=t.start,i.end=t.end,i.duration=t.duration,i.timeTec=t.timeTec,i.gender=t.gender,i.hideTime=t.hideTime,i.configPackages=t.configPackages,i.resOnlyPackage=t.resOnlyPackage,i.range=t.range,i.paymentRequired=t.paymentRequired;let n=t.opAndPriceALLHtml.find(t=>t.id===e);if(i.nameOperator=n.nameOperator,i.surnameOperator=n.surnameOperator,i.nameService=n.nameService,i.priceDefault=n.priceDefault,i.priceOperator=n.priceOperator,i.priceWithDiscountHtml=n.priceWithDiscountHtml,i.discount=n.discount,i.discountType=n.discountType,t.opAndPriceMacchinarioChoised){let e=t.wtAndNameHtml.find(e=>e.idMacchinario===t.opAndPriceMacchinarioChoised);i.nameWt=String(e.nameMacchinario),i.wtId=e.idMacchinario,i.timeOpSt=e.timeStOpMacchinario,i.timeOpEnd=e.timeEndOpMacchinario}this.operatorsSelwithServ.push(i)}),this.checkGoNext()}fixPending(t){return(0,a.mG)(this,void 0,void 0,function*(){let e=!1;const i=yield this.alertController.create({message:this.translateService.instant("PAYMENT_PENDING"),backdropDismiss:!0,keyboardClose:!0,buttons:[{text:this.translateService.instant("DELETE_BOOK"),role:"ok",handler:()=>{e=!0,this.cancelPendindRes(t)}}]});i.onDidDismiss().then(i=>{e||(t?this.classicSearch():this.withoutWaitingSearch())}),yield i.present()})}cancelPendindRes(t){this.showSpinner=!0,this.webPaymentsService.inPaymentServer().subscribe(e=>{if(e&&e.body){let i=e.body;const n=i.length;i.forEach((e,i)=>{e&&this.bookingService.deletePaymentBooking(e.id).subscribe(e=>{this.principal.presentToastWithButton("SUCCESS","","success","BOTTOM"),this.showSpinner=!1,i===n-1&&(t?this.classicSearch():this.withoutWaitingSearch())},t=>{let e=this.principal.checkErrorsRequest(t);this.principal.presentToastWithButton(e,"ERROR","danger","BOTTOM"),this.showSpinner=!1})})}},t=>{let e=this.principal.checkErrorsRequest(t);this.principal.presentToastWithButton(e,"ERROR","danger","BOTTOM"),this.showSpinner=!1})}goCheckout(){this.principal.cartBookService.cart=this.operatorsSelwithServ,this.isEvent?this.router.navigate(["/checkout/event",{byWidget:this.byWidget,hideEndTime:this.hideEndTime}]):this.router.navigateByUrl("/checkout")}dismiss(){this.navCtrl.back()}goHome(){this.navCtrl.navigateRoot("")}generateListDays(t,e){let i=[],n=[];switch(this.principal.actualLang){case"it":i=this.principal.daysIt,n=this.principal.monthIt;break;case"es":i=this.principal.daysEs,n=this.principal.monthEs;break;default:i=this.principal.daysEn,n=this.principal.monthEn}var o=t;let s=[],r={};for(let a=0;a<=e;a++){const t=new Date(o),e=n[t.getMonth()]+" "+t.getFullYear();1!=t.getDate()&&0!=a||(r={},r.ggMonth=e,r.days=[],s.push(r)),r.days.push({date:t,dateStr:c.p6(t),dayStr:i[t.getDay()],dayNum:t.getDate(),groupMonth:e,isLabel:!1,numDayWeek:t.getDay(),selected:0==a}),o.setDate(o.getDate()+1)}this.daysListCalendar=s}goToSignup(){return(0,a.mG)(this,void 0,void 0,function*(){this.inSignUp=!0;const t=yield this.modalController.create({component:_.V,cssClass:"mediumModalSize",componentProps:{from:"CHECKOUT",byWidget:this.byWidget}});return t.onDidDismiss().then(t=>{this.inSignUp=!1,t&&t.data&&t.data.reload&&this.addToQueueBooking()}),yield t.present()})}addToQueueBooking(){if(!this.orario)return!1;this.itemsRequestWithoutWaiting&&0!=this.itemsRequestWithoutWaiting.length?(this.principal.checkGenderServices(),this.principal&&this.principal.session?this.principal.checkCompletedProfile().then(t=>{t<5?this.goToSignup():this.principal.errorGender?this.principal.alertGenderError("ERR_GENDER_INFO_QUEUE",()=>this.addToQueueBookingSend()):this.principal.errorGenderNotFound?this.principal.alertGenderNotFoundError("ERR_GENDER_NOT_FOUND_INFO_QUEUE",()=>this.addToQueueBooking(),t=>this.setSpinner(t)):this.addToQueueBookingSend()}):this.goToSignup()):this.principal.presentToastWithButton("NO_SERVICE_SELECTED","ERROR","danger","BOTTOM")}addToQueueBookingSend(){this.showSpinner=!0;let t=this.orario.split(":");this.orarioSplittato=60*Number(t[0])+Number(t[1]),this.queueBookingService.createQueueBooking({date:this.dateToRequest,locale:this.translateService.store.currentLang,day:this.dayRequest,officeId:this.principal.currentOffice.id,startTime:this.orarioSplittato,items:this.itemsRequestWithoutWaiting}).subscribe(t=>{this.queueBookingService.queues&&(this.queueBookingService.queues[0]=t.body),this.showSpinner=!1},t=>{let e=this.principal.checkErrorsRequest(t);this.principal.presentToastWithButton(e,"ERROR","danger","BOTTOM"),this.showSpinner=!1})}getQueueBooking(){if(!this.principal.session)return!1;if(!this.orario)return!1;this.showSpinnerQueueBooking=!0;let t=this.orario.split(":");this.orarioSplittato=60*Number(t[0])+Number(t[1]),this.queueBookingService.getQueueBooking(this.principal.currentOffice.id,this.dateToRequest,0,10).subscribe(t=>{var e;this.queueBookingService.queues=null===(e=t.body)||void 0===e?void 0:e.content,this.showSpinnerQueueBooking=!1},t=>{let e=this.principal.checkErrorsRequest(t);this.principal.presentToastWithButton(e,"ERROR","danger","BOTTOM"),this.showSpinnerQueueBooking=!1})}sureDeleteQueueBooking(t){return(0,a.mG)(this,void 0,void 0,function*(){const e=yield this.alertController.create({message:this.translateService.instant("SURE_DELETE_QUEUE_BOOKING"),backdropDismiss:!0,keyboardClose:!0,buttons:[{text:this.translateService.instant("CANCEL"),role:"cancel",handler:()=>{}},{text:this.translateService.instant("CONFIRM"),role:"ok",handler:()=>{this.deleteQueueBooking(t)}}]});yield e.present()})}deleteQueueBooking(t){this.showSpinner=!0,this.queueBookingService.deleteQueueBooking(t).subscribe(t=>{this.principal.presentToastWithButton("SUCCESS","","success","BOTTOM"),this.showSpinner=!1,this.checkSearch()},t=>{let e=this.principal.checkErrorsRequest(t);this.principal.presentToastWithButton(e,"ERROR","danger","BOTTOM"),this.showSpinner=!1})}listToNumber(t){let e=[];return t&&t.forEach(t=>e.push(Number(t))),e}listToString(t){let e=[];return t&&t.forEach(t=>e.push(""+t)),e}setSpinner(t){this.showSpinner=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(T.x),h.Y36(r.F0),h.Y36(s.SH),h.Y36(b.q),h.Y36(s.Br),h.Y36(y.P),h.Y36(s.IN),h.Y36(C.sK),h.Y36(O.O),h.Y36(s.BX),h.Y36(r.gz),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-when"]],viewQuery:function(t,e){if(1&t&&(h.Gf(s.oz,5),h.Gf(B,5),h.Gf(k,5),h.Gf(R,5)),2&t){let t;h.iGM(t=h.CRH())&&(e.reorderGroup=t.first),h.iGM(t=h.CRH())&&(e.rangeContainers=t),h.iGM(t=h.CRH())&&(e.noRangeContainers=t),h.iGM(t=h.CRH())&&(e.withoutWaitingContainers=t)}},decls:25,vars:12,consts:[[1,"ion-no-border"],["slot","start"],["fill","clear",3,"click"],["name","chevron-back-outline"],[1,"ion-text-center"],[1,"headerText"],["name","calendar-outline"],["slot","end"],[2,"--color","transparent"],["name","close"],[1,"ion-content-custom",3,"scrollbar"],["class","splash",4,"ngIf"],[1,"max-content"],[4,"ngIf"],["size","12"],["class","card",4,"ngIf"],["class","card ion-text-center",4,"ngIf"],[3,"ngStyle","state","dockedHeight","bounceDelta","enableScrollContent","roundBorderOnTop","hideTitle","hideSeparator","hideCloseButton","stateChange",4,"ngIf"],["class","ion-no-border max-content ion-text-center",4,"ngIf"],[1,"splash"],[1,"spinner"],[1,"dot1"],[1,"dot2"],[1,"card"],[3,"list","currDate","changeDayFromDays"],["style","--background: #222222;margin-top: 22px;",4,"ngIf"],[2,"--background","#222222","margin-top","22px"],[2,"color","#fff"],["name","people",2,"color","#fff!important"],["multiple","","name","idsOper",2,"color","#fff!important",3,"ngModel","ngModelChange","ionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"headerBox"],["id","downDiv","reorder","true","class","leftReorderButton","disabled","false",3,"ionItemReorder",4,"ngIf"],["class","ion-text-center",4,"ngIf"],["id","downDiv","reorder","true","disabled","false",1,"leftReorderButton",3,"ionItemReorder"],["lines","none","class","pointer margin-bottom10",4,"ngFor","ngForOf"],["lines","none",1,"pointer","margin-bottom10"],["size","2"],[1,"indiceList"],["size","10",1,"ion-text-wrap"],[2,"width","100%"],["size","10"],[1,"ion-text-wrap"],["size","12","class","scrollbar",3,"horizontal_scroll","wrap_slots_container",4,"ngIf"],["class","customTextColor",4,"ngIf"],[1,"customTextColor"],["size","10",2,"white-space","initial!important"],["size","12",1,"scrollbar"],["rangeContainer",""],[3,"elem_horizontal_scroll_selected","backgroundAnimated1","elem_horizontal_scroll","disabledHour","click",4,"ngFor","ngForOf"],[3,"click"],["noRangeContainer",""],["name","time-outline",4,"ngIf"],["name","time-outline",2,"font-size","200px"],["name","time-outline"],["class","ion-text-center ion-padding","id","downDiv",4,"ngIf"],["id","downDiv","reorder","true","class","leftReorderButton","class","ion-text-left",3,"ionItemReorder",4,"ngIf"],["id","downDiv",1,"ion-text-center","ion-padding"],["class","margin-top20",4,"ngIf"],["name","time-outline",2,"font-size","50px"],[1,"margin-top20"],["shape","round","color","secondary",1,"margin-top15",3,"click"],["name","hourglass-outline"],["shape","round","color","danger",1,"margin-top15",3,"click"],["name","trash-outline"],["id","downDiv","reorder","true",1,"ion-text-left",3,"ionItemReorder"],[4,"ngFor","ngForOf"],["withoutWaitingContainer",""],[1,"hr-text"],[1,"scrollbar","pointer"],["style","margin: 2px; ","class","item_linear_adv_search",3,"elem_horizontal_scroll_selected","backgroundAnimated1","elem_horizontal_scroll","click",4,"ngFor","ngForOf"],[1,"item_linear_adv_search",2,"margin","2px",3,"click"],[1,"card","ion-text-center"],[1,"ion-text-center","ion-padding"],["name","ticket-outline",2,"font-size","200px"],[3,"ngStyle","state","dockedHeight","bounceDelta","enableScrollContent","roundBorderOnTop","hideTitle","hideSeparator","hideCloseButton","stateChange"],["style","border-bottom:2px solid #eaeaea;",4,"ngFor","ngForOf"],[1,"ion-align-items-center",2,"text-align","center"],["shape","round",1,"buttonNextAlert",3,"click"],["name","chevron-forward-outline"],[2,"border-bottom","2px solid #eaeaea"],["size","6"],["name","opCh",2,"max-width","100% !important",3,"ngModelOptions","ngModel","ngModelChange","ionChange"],[1,"ion-no-border","max-content","ion-text-center"],[1,"padding-20"],["shape","round",1,"buttonNext",3,"click"]],template:function(t,e){1&t&&(h.TgZ(0,"ion-header",0),h.TgZ(1,"ion-toolbar"),h.TgZ(2,"ion-buttons",1),h.TgZ(3,"ion-button",2),h.NdJ("click",function(){return e.principal.backPage()}),h._UZ(4,"ion-icon",3),h.qZA(),h.qZA(),h.TgZ(5,"ion-title",4),h.TgZ(6,"h4",5),h._UZ(7,"ion-icon",6),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.qZA(),h.TgZ(10,"ion-buttons",7),h.TgZ(11,"ion-button",8),h._UZ(12,"ion-icon",9),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(13,"ion-content",10),h.YNc(14,D,4,0,"div",11),h.TgZ(15,"div",12),h.YNc(16,M,5,3,"ion-row",13),h.TgZ(17,"ion-row"),h.TgZ(18,"ion-col",14),h.YNc(19,et,8,5,"div",15),h.YNc(20,ct,7,5,"div",15),h.YNc(21,pt,11,8,"div",16),h.YNc(22,ft,11,8,"div",16),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.YNc(23,Tt,11,15,"ion-bottom-sheet",17),h.YNc(24,bt,6,3,"ion-footer",18)),2&t&&(h.xp6(8),h.hij(" ",h.lcZ(9,10,"WHEN")," ? "),h.xp6(5),h.Q6J("scrollbar",e.principal.isApp?"":e.principal.scrollbar),h.xp6(1),h.Q6J("ngIf",e.showSpinner),h.xp6(2),h.Q6J("ngIf",!e.isEvent),h.xp6(3),h.Q6J("ngIf",e.showSectionClassic),h.xp6(1),h.Q6J("ngIf",e.showSectionWithoutWaiting),h.xp6(1),h.Q6J("ngIf",!e.opened),h.xp6(1),h.Q6J("ngIf",e.currentOffTicket),h.xp6(1),h.Q6J("ngIf",e.showSectionWithoutWaiting&&(null==e.principal.currentOffice?null:e.principal.currentOffice.showNameOperator)),h.xp6(1),h.Q6J("ngIf",e.showGoLastStep))},directives:[s.Gu,s.sr,s.Sm,s.YG,s.gu,s.wd,s.W2,A.g,n.O5,s.Nd,s.wI,E.g,s.Ie,s.Q$,s.t9,s.QI,o.JJ,o.On,n.sg,s.n0,s.oz,s.jY,s.Nh,s.q_,s.Ub,m,n.PC,s.fr],pi
1pes:[C.X$,w.h,n.JJ,Z.G,x.c,I.r,q],styles:[""]}),t})()}];let Ct=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[r.Bz.forChild(yt)],r.Bz]}),t})();var Ot=i(35503),At=i(21580);let Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[n.ez,o.u5,s.Pc,Ct,A.O,C.aw.forChild(),Ot.D,S,At.P]]}),t})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.