1import{_ as ye,o as b,c as S,a as h,b9 as ve,aj as vt,ba as gt,b4 as bt,aa as St,F as ce,w as kt,B as $,e as E,f as N,n as z,d as xt,O as Ae,x as pe,A as Pt,r as wt,b as Et,P as At,a9 as fe,Y as Ve,g as Ot,j as Dt,h as Oe,bb as H}from"./BdFqHcNj.js";import{_ as Ce}from"./Bp8AWoA7.js";import{a as Rt}from"./CplCtXnR.js";const _t={name:"LogoTelex"},Vt={viewBox:"0 0 160 51","fill-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2",width:"0",class:"telex-logo"};function Ct(o,n,g,A,y,l){return b(),S("svg",Vt,[...n[0]||(n[0]=[h("path",{d:"M68.503 42.525V9.939c0-4.677-1.252-5.991-3.759-6.868L82.063.002v42.523c0 4.677 3.243 7.599 3.243 7.599H65.26s3.243-2.922 3.243-7.599zm-51.11-27.033h10.029l-.006-3.109-10.023 3.109zm4.569 29.662c-2.875 0-4.569-1.607-4.569-5.113V0L0 15.488c2.117 0 3.831 1.702 3.831 3.798V39.89c0 8.182 3.831 11.106 10.244 11.106 5.011 0 10.391-3.215 13.929-7.891 0 .006-2.46 2.049-6.043 2.049zm40.947-18.265c.442-9.499-4.717-15.928-14.592-15.928-11.94 0-19.456 9.352-19.456 20.751C28.861 41.794 34.536 51 46.475 51c8.623 0 13.192-4.896 16.435-10.74 0 0-3.33 4.456-9.949 4.456-7.59 0-10.317-6.575-10.54-17.827V25.72c0-6.503.81-13.735 5.601-13.735 4.127 0 4.348 4.86 3.685 13.261l-9.286 1.643h20.489zm58.876 0c.442-9.499-4.717-15.928-14.592-15.928-11.94 0-19.456 9.352-19.456 20.751C87.736 41.794 93.412 51 105.35 51c8.623 0 13.192-4.896 16.435-10.74 0 0-3.33 4.456-9.949 4.456-7.59 0-10.317-6.575-10.54-17.827V25.72c0-6.503.81-13.735 5.601-13.735 4.127 0 4.348 4.86 3.685 13.261l-9.286 1.643h20.489zM160 50.124h-19.456s2.58-2.703.884-5.699l-5.748-9.863s-5.527 10.375-5.527 12.859c0 2.703 1.989 2.703 1.989 2.703h-10.907l14.446-15.562-7.811-13.445c-2.654-4.603-6.339-9.28-6.339-9.28h19.456s-2.58 2.703-.884 5.699l5.306 9.061s4.79-9.571 4.79-12.056c0-2.703-1.989-2.703-1.989-2.703h10.761l-13.561 14.759 8.253 14.247c2.652 4.603 6.339 9.28 6.339 9.28z","fill-rule":"nonzero"},null,-1)])])}const Te=Object.assign(ye(_t,[["render",Ct]]),{__name:"LogoTelex"});var te={exports:{}},he={exports:{}},me={};const Tt=ve(Rt),zt=ve(vt),Mt=ve(gt);var De;function It(){return De||(De=1,(function(o){Object.defineProperty(o,"__esModule",{value:!0});var n=Tt,g=zt,A=Mt;function y(p){var f=Object.create(null);if(p)for(var r in p)f[r]=p[r];return f.default=p,Object.freeze(f)}var l=y(g);const C=Object.create(null);function v(p,f){if(!A.isString(p))if(p.nodeType)p=p.innerHTML;else return A.NOOP;const r=A.genCacheKey(p,f),u=C[r];if(u)return u;if(p[0]==="#"){const M=document.querySelector(p);p=M?M.innerHTML:""}const w=A.extend({hoistStatic:!0,onError:void 0,onWarn:A.NOOP},f);!w.isCustomElement&&typeof customElements<"u"&&(w.isCustomElement=M=>!!customElements.get(M));const{code:R}=n.compile(p,w),B=new Function("Vue",R)(l);return B._rc=!0,C[r]=B}g.registerRuntimeCompiler(v),o.compile=v,Object.keys(g).forEach(function(p){p!=="default"&&!Object.prototype.hasOwnProperty.call(o,p)&&(o[p]=g[p])})})(me)),me}var Re;function jt(){return Re||(Re=1,he.exports=It()),he.exports}var Nt=te.exports,_e;function Bt(){return _e||(_e=1,(function(o,n){(function(g,A){o.exports=A(jt())})(typeof self<"u"?self:Nt,(function(g){return(function(){var A={388:function(v,p){var f,r,u;(function(w,R){r=[],f=R,u=typeof f=="function"?f.apply(p,r):f,u===void 0||(v.exports=u)})(typeof self<"u"&&self,(function(){function w(){var R=Object.getOwnPropertyDescriptor(document,"currentScript");if(!R&&"currentScript"in document&&document.currentScript||R&&R.get!==w&&document.currentScript)return document.currentScript;try{throw new Error}catch(X){var B,M,Z,ie=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,U=/@([^@]*):(\d+):(\d+)\s*$/gi,W=ie.exec(X.stack)||U.exec(X.stack),F=W&&W[1]||!1,se=W&&W[2]||!1,Q=document.location.href.replace(document.location.hash,""),T=document.getElementsByTagName("script");F===Q&&(B=document.documentElement.outerHTML,M=new RegExp("(?:[^\\n]+?\\n){0,"+(se-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),Z=B.replace(M,"$1").trim());for(var x=0;x<T.length;x++)if(T[x].readyState==="interactive"||T[x].src===F||F===Q&&T[x].innerHTML&&T[x].innerHTML.trim()===Z)return T[x];return null}}return w}))},831:function(v,p){p.Z=(f,r)=>{const u=f.__vccOpts||f;for(const[w,R]of r)u[w]=R;return u}},927:function(v){v.exports=g}},y={};function l(v){var p=y[v];if(p!==void 0)return p.exports;var f=y[v]={exports:{}};return A[v].call(f.exports,f,f.exports,l),f.exports}(function(){l.d=function(v,p){for(var f in p)l.o(p,f)&&!l.o(v,f)&&Object.defineProperty(v,f,{enumerable:!0,get:p[f]})}})(),(function(){l.o=function(v,p){return Object.prototype.hasOwnProperty.call(v,p)}})(),(function(){l.p=""})();
1var C={};return(function(){if(l.d(C,{default:function(){return ht}}),typeof window<"u"){var v=window.document.currentScript,p=l(388);v=p(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:p});var f=v&&v.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);f&&(l.p=f[1])}var r=l(927);function u(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var w={key:0,class:"vue-slider-marks"};function R(e,t,i,s,a,d){var c=(0,r.resolveComponent)("vue-slider-mark"),D=(0,r.resolveComponent)("vue-slider-dot");return(0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)({ref:"container",class:e.containerClasses,style:e.containerStyles,onClick:t[2]||(t[2]=function(){return e.clickHandle&&e.clickHandle.apply(e,arguments)}),onTouchstartPassive:t[3]||(t[3]=function(){return e.dragStartOnProcess&&e.dragStartOnProcess.apply(e,arguments)}),onMousedownPassive:t[4]||(t[4]=function(){return e.dragStartOnProcess&&e.dragStartOnProcess.apply(e,arguments)})},e.$attrs),[(0,r.createElementVNode)("div",{class:"vue-slider-rail",style:(0,r.normalizeStyle)(e.railStyle)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.processArray,(function(m,P){return(0,r.renderSlot)(e.$slots,"process",(0,r.normalizeProps)((0,r.guardReactiveProps)(m)),(function(){return[((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-slider-process",key:"process-".concat(P),style:(0,r.normalizeStyle)(m.style)},null,4))]}))})),256)),e.sliderMarks&&e.control?((0,r.openBlock)(),(0,r.createElementBlock)("div",w,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.control.markList,(function(m,P){return(0,r.renderSlot)(e.$slots,"mark",(0,r.normalizeProps)((0,r.guardReactiveProps)(m)),(function(){var _;return[((0,r.openBlock)(),(0,r.createBlock)(c,{key:"mark-".concat(P),mark:m,hideLabel:e.hideLabel,style:(0,r.normalizeStyle)((_={},u(_,e.isHorizontal?"height":"width","100%"),u(_,e.isHorizontal?"width":"height",e.tailSize),u(_,e.mainDirection,"".concat(m.pos,"%")),_)),stepStyle:e.stepStyle,stepActiveStyle:e.stepActiveStyle,labelStyle:e.labelStyle,labelActiveStyle:e.labelActiveStyle,onPressLabel:t[0]||(t[0]=function(G){return e.clickable&&e.setValueByPos(G)})},{step:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"step",(0,r.normalizeProps)((0,r.guardReactiveProps)(m)))]})),label:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"label",(0,r.normalizeProps)((0,r.guardReactiveProps)(m)))]})),_:2},1032,["mark","hideLabel","style","stepStyle","stepActiveStyle","labelStyle","labelActiveStyle"]))]}))})),256))])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.dots,(function(m,P){var _;return(0,r.openBlock)(),(0,r.createBlock)(D,(0,r.mergeProps)({ref_for:!0,ref:"dot-".concat(P),key:"dot-".concat(P),value:m.value,disabled:m.disabled,focus:m.focus,"dot-style":[m.style,m.disabled?m.disabledStyle:null,m.focus?m.focusStyle:null],tooltip:m.tooltip||e.tooltip,"tooltip-style":[e.tooltipStyle,m.tooltipStyle,m.disabled?m.tooltipDisabledStyle:null,m.focus?m.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(e.sliderTooltipFormatter)?e.sliderTooltipFormatter[P]:e.sliderTooltipFormatter,"tooltip-placement":e.tooltipDirections[P],style:[e.dotBaseStyle,(_={},u(_,e.mainDirection,"".concat(m.pos,"%")),u(_,"transition","".concat(e.mainDirection," ").concat(e.animateTime,"s")),_)],onDragStart:function(){return e.dragStart(P)},role:"slider","aria-valuenow":m.value,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.isHorizontal?"horizontal":"vertical",tabindex:"0",onFocus:function(){return e.focus(m,P)},onBlur:t[1]||(t[1]=function(){return e.blur()})},e.dotAttrs),{dot:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"dot",(0,r.normalizeProps)((0,r.guardReactiveProps)(m)))]})),tooltip:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"tooltip",(0,r.normalizeProps)((0,r.guardReactiveProps)(m)))]})),_:2},1040,["value","disabled","focus","dot-style","tooltip","tooltip-style","tooltip-formatter","tooltip-placement","style","onDragStart","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","onFocus"])})),128))],4),(0,r.renderSlot)(e.$slots,"default",{value:e.getValue()})],16)}var B=["aria-valuetext"],M={class:"vue-slider-dot-tooltip-text"};function Z(e,t,i,s,a,d){var c;return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"dot",class:(0,r.normalizeClass)(e.dotClasses),"aria-valuetext":(c=e.tooltipValue)===null||c===void 0?void 0:c.toString(),onMousedownPassive:t[0]||(t[0]=function(){return e.dragStart&&e.dragStart.apply(e,arguments)}),onTouchstartPassive:t[1]||(t[1]=function(){return e.dragStart&&e.dragStart.apply(e,arguments)})},[(0,r.renderSlot)(e.$slots,"dot",{},(function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.handleClasses),style:(0,r.normalizeStyle)(e.dotStyle)},null,6)]})),e.tooltip!=="none"?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(e.tooltipClasses)},[(0,r.renderSlot)(e.$slots,"tooltip",{},(function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.tooltipInnerClasses),style:(0,r.normalizeStyle)(e.tooltipStyle)}
1,[(0,r.createElementVNode)("span",M,(0,r.toDisplayString)(e.tooltipValue),1)],6)]}))],2)):(0,r.createCommentVNode)("",!0)],42,B)}var ie=(0,r.defineComponent)({name:"VueSliderDot",emits:["drag-start"],props:{value:{type:[String,Number],default:0},tooltip:{type:String,required:!0},tooltipPlacement:{type:String,validator:function(e){return["top","right","bottom","left"].indexOf(e)>-1},required:!0},tooltipFormatter:{type:[String,Function]},focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dotStyle:{type:Object},tooltipStyle:{type:Object}},computed:{dotClasses:function(){return["vue-slider-dot",{"vue-slider-dot-hover":this.tooltip==="hover"||this.tooltip==="active","vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]},handleClasses:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]},tooltipClasses:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]},tooltipInnerClasses:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]},showTooltip:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}},tooltipValue:function(){return this.tooltipFormatter?typeof this.tooltipFormatter=="string"?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}},methods:{dragStart:function(){if(this.disabled)return!1;this.$emit("drag-start")}}}),U=l(831),F=(0,U.Z)(ie,[["render",Z]]);function se(e,t,i,s,a,d){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.marksClasses)},[(0,r.renderSlot)(e.$slots,"step",{},(function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.stepClasses),style:(0,r.normalizeStyle)([e.stepStyle,e.mark.style||{},e.mark.active&&e.stepActiveStyle?e.stepActiveStyle:{},e.mark.active&&e.mark.activeStyle?e.mark.activeStyle:{}])},null,6)]})),e.hideLabel?(0,r.createCommentVNode)("",!0):(0,r.renderSlot)(e.$slots,"label",{key:0},(function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.labelClasses),style:(0,r.normalizeStyle)([e.labelStyle,e.mark.labelStyle||{},e.mark.active&&e.labelActiveStyle?e.labelActiveStyle:{},e.mark.active&&e.mark.labelActiveStyle?e.mark.labelActiveStyle:{}]),onClick:t[0]||(t[0]=function(){return e.labelClickHandle&&e.labelClickHandle.apply(e,arguments)})},(0,r.toDisplayString)(e.mark.label),7)]}))],2)}var Q=(0,r.defineComponent)({name:"VueSliderMark",emits:["press-label"],props:{mark:{type:Object,required:!0},hideLabel:{type:Boolean},stepStyle:{type:Object,default:function(){return{}}},stepActiveStyle:{type:Object,default:function(){return{}}},labelStyle:{type:Object,default:function(){return{}}},labelActiveStyle:{type:Object,default:function(){return{}}}},computed:{marksClasses:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]},stepClasses:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]},labelClasses:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}},methods:{labelClickHandle:function(e){e.stopPropagation(),this.$emit("press-label",this.mark.pos)}}});const T=(0,U.Z)(Q,[["render",se]]);var x,X=T,Y=function(e){return typeof e=="number"?"".concat(e,"px"):e},ze=function(e){var t=document.documentElement,i=document.body,s=e.getBoundingClientRect(),a={y:s.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||i.clientTop||0),x:s.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||i.clientLeft||0)};return a},Me=function(e,t,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,a="targetTouches"in e?e.targetTouches[0]:e,d=ze(t),c={x:a.pageX-d.x,y:a.pageY-d.y};return{x:i?t.offsetWidth*s-c.x:c.x,y:i?t.offsetHeight*s-c.y:c.y}};(function(e){e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN"})(x||(x={}));var Ie=function(e,t){if(t.hook){var i=t.hook(e);if(typeof i=="function")return i;if(!i)return null}switch(e.keyCode){case x.UP:return function(s){return t.direction==="ttb"?s-1:s+1};case x.RIGHT:return function(s){return t.direction==="rtl"?s-1:s+1};case x.DOWN:return function(s){return t.direction==="ttb"?s+1:s-1};case x.LEFT:return function(s){return t.direction==="rtl"?s+1:s-1};case x.END:return function(){return t.max};case x.HOME:return function(){return t.min};case x.PAGE_UP:return function(s){return s+10};case x.PAGE_DOWN:return function(s){return s-10};default:return null}};function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function Be(e,t,i){return t&&Ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Le(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var L,V,I=(function(){function e(t){je(this,e),Le(this,"num",void 0),this.num=t}return Be(e,[{key:"decimal",value:function(t,i){var s=this.num,a=this.getDecimalLen(s),d=this.getDecimalLen(t),c=0;switch(i){case"+":c=this.getExponent(a,d),this.num=(this.safeRoundUp(s,c)+this.safeRoundUp(t,c))/c;break;case"-":c=this.getExponent(a,d),this.num=(this.safeRoundUp(s,c)-this.safeRoundUp(t,c))/c;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(s,this.getExponent(a)),this.safeRoundUp(t,this.getExponent(d)))/this.getExponent(a+d);break;case"/":c=this.getExponent(a,d),this.num=this.safeRoundUp(s,c)/this.safeRoundUp(t,c);break;case"%":c=this.getExponent(a,d),this.num=this.safeRoundUp(s,c)%this.safeRoundUp(t,c)/c;break}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var i="".concat(t).split("e");return("".concat(i[0]).split(".")[1]||"").length-(i[1]?+i[1]:0)}},{key:"getExponent",value:function(t,i){return Math.pow(10,i!==void 0?Math.max(t,i):t)}},{key:"safeRoundUp",value:function(t,i){return Math.round(t*i)}}]),e})();function $e(e,t){return Ue(e)||Fe(e,t)||be(e,t)||He()}
1function He(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,d=[],c=!0,D=!1;try{for(i=i.call(e);!(c=(s=i.next()).done)&&(d.push(s.value),!(t&&d.length===t));c=!0);}catch(m){D=!0,a=m}finally{try{c||i.return==null||i.return()}finally{if(D)throw a}}return d}}function Ue(e){if(Array.isArray(e))return e}function ge(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),i.push.apply(i,s)}return i}function We(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ge(Object(i),!0).forEach((function(s){k(e,s,i[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ge(Object(i)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))}))}return e}function q(e){return qe(e)||Ye(e)||be(e)||Xe()}function Xe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(e,t){if(e){if(typeof e=="string")return oe(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?oe(e,t):void 0}}function Ye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qe(e){if(Array.isArray(e))return oe(e)}function oe(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function Ke(e,t,i){return t&&Je(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}(function(e){e[e.VALUE=1]="VALUE",e[e.INTERVAL=2]="INTERVAL",e[e.MIN=3]="MIN",e[e.MAX=4]="MAX",e[e.ORDER=5]="ORDER"})(V||(V={}));var Ze=(L={},k(L,V.VALUE,'The type of the "value" is illegal'),k(L,V.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),k(L,V.MIN,'The "value" must be greater than or equal to the "min".'),k(L,V.MAX,'The "value" must be less than or equal to the "max".'),k(L,V.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),L),Qe=(function(){function e(t){Ge(this,e),k(this,"dotsPos",[]),k(this,"dotsValue",[]),k(this,"data",void 0),k(this,"enableCross",void 0),k(this,"fixed",void 0),k(this,"max",void 0),k(this,"min",void 0),k(this,"interval",void 0),k(this,"minRange",void 0),k(this,"maxRange",void 0),k(this,"order",void 0),k(this,"marks",void 0),k(this,"included",void 0),k(this,"process",void 0),k(this,"adsorb",void 0),k(this,"dotOptions",void 0),k(this,"onError",void 0),k(this,"cacheRangeDir",{}),this.data=t.data,this.max=t.max,this.min=t.min,this.interval=t.interval,this.order=t.order,this.marks=t.marks,this.included=t.included,this.process=t.process,this.adsorb=t.adsorb,this.dotOptions=t.dotOptions,this.onError=t.onError,this.order?(this.minRange=t.minRange||0,this.maxRange=t.maxRange||0,this.enableCross=t.enableCross,this.fixed=t.fixed):((t.minRange||t.maxRange||!t.enableCross||t.fixed)&&this.emitError(V.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(t.value)}return Ke(e,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?q(t):[t],!0)}},{key:"setDotsValue",value:function(t,i){this.dotsValue=t,i&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var i=this,s=this.order?q(t).sort((function(a,d){return a-d})):t;this.dotsPos=s,this.setDotsValue(s.map((function(a){return i.getValueByPos(a)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var i=this.parsePos(t);if(this.included){var s=100;this.markList.forEach((function(a){var d=Math.abs(a.pos-t);d<s&&(s=d,i=a.value)}))}return i}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(i){return t.parseValue(i)}))}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var i=function(s,a){var d=t.parseValue(s);return We({pos:d,value:s,label:s,active:t.isActiveByPos(d)},a)};return this.marks===!0?this.getValues().map((function(s){return i(s)})):Object.prototype.toString.call(this.marks)==="[object Object]"?Object.keys(this.marks).sort((function(s,a){return+s-+a})).map((function(s){var a=t.marks[s];return i(s,typeof a!="string"?a:{label:a})})):Array.isArray(this.marks)?this.marks.map((function(s){return i(s)})):typeof this.marks=="function"?this.getValues().map((function(s){return{value:s,result:t.marks(s)}})).filter((function(s){var a=s.result;return!!a})).map((function(s){var a=s.value,d=s.result;return i(a,d)})):[]}},{key:"getRecentDot",value:function(t){var i=this.dotsPos.map((function(s){return Math.abs(s-t)}));return i.indexOf(Math.min.apply(Math,q(i)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new I(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new I(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,i){t=this.getValidPos(t,i).pos;var s=t-this.dotsPos[i];if(s){var a=new Array(this.dotsPos.length);this.fixed?a=this.getFixedChangePosArr(s,i):this.minRange||this.maxRange?a=this.getLimitRangeChangePosArr(t,s,i):a[i]=s,this.setDotsPos(this.dotsPos.map((function(d,c){return d+(a[c]||0)}
3)))}}},{key:"getFixedChangePosArr",value:function(t,i){var s=this;return this.dotsPos.forEach((function(a,d){if(d!==i){var c=s.getValidPos(a+t,d),D=c.pos,m=c.inRange;m||(t=Math.min(Math.abs(D-a),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(a){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,i,s){var a=this,d=[{index:s,changePos:i}],c=i;return[this.minRange,this.maxRange].forEach((function(D,m){if(!D)return!1;var P=m===0,_=i>0,G=0;G=P?_?1:-1:_?-1:1;for(var mt=function(ft,yt){var Ee=Math.abs(ft-yt);return P?Ee<a.minRangeDir:Ee>a.maxRangeDir},J=s+G,K=a.dotsPos[J],Pe=t;a.isPos(K)&&mt(K,Pe);){var pt=a.getValidPos(K+c,J),we=pt.pos;d.push({index:J,changePos:we-K}),J+=G,Pe=we,K=a.dotsPos[J]}})),this.dotsPos.map((function(D,m){var P=d.filter((function(_){return _.index===m}));return P.length?P[0].changePos:0}))}},{key:"isPos",value:function(t){return typeof t=="number"}},{key:"getValidPos",value:function(t,i){var s=this.valuePosRange[i],a=!0;return t<s[0]?(t=s[0],a=!1):t>s[1]&&(t=s[1],a=!1),{pos:t,inRange:a}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if(typeof t=="number"||typeof t=="string"){if(t=+t,t<this.min)return this.emitError(V.MIN),0;if(t>this.max)return this.emitError(V.MAX),0;if(typeof t!="number"||t!==t)return this.emitError(V.VALUE),0;t=new I(t).minus(this.min).divide(this.interval).toNumber()}var i=new I(t).multiply(this.gap).toNumber();return i<0?0:i>100?100:i}},{key:"parsePos",value:function(t){var i=Math.round(t/this.gap);return this.getValueByIndex(i)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(i){var s=$e(i,2),a=s[0],d=s[1];return t>=a&&t<=d}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],i=0;i<=this.total;i++)t.push(new I(i).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new I(t).divide(new I(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,Ze[t])}},{key:"processArray",get:function(){if(this.process){if(typeof this.process=="function")return this.process(this.dotsPos);if(this.dotsPos.length===1)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,q(this.dotsPos)),Math.max.apply(Math,q(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new I(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!==0?(this.emitError(V.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"getDotRange",value:function(t,i,s){if(!this.dotOptions)return s;var a=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return a&&a[i]!==void 0?this.parseValue(a[i]):s}},{key:"valuePosRange",get:function(){var t=this,i=this.dotsPos,s=[];return i.forEach((function(a,d){s.push([Math.max(t.minRange?t.minRangeDir*d:0,t.enableCross?0:i[d-1]||0,t.getDotRange(d,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(i.length-1-d):100,t.enableCross?100:i[d+1]||100,t.getDotRange(d,"max",100))])})),s}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(i){return t.getIndexByValue(i)}))}}]),e})();function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function it(e,t,i){return t&&tt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Se(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var st=(function(){function e(t){et(this,e),Se(this,"map",void 0),Se(this,"states",0),this.map=t}return it(e,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),e})();function ne(e){return rt(e)||nt(e)||xe(e)||ot()}function ot(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rt(e){if(Array.isArray(e))return le(e)}function re(e){return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(e)}function ke(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),i.push.apply(i,s)}return i}function ee(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};
4t%2?ke(Object(i),!0).forEach((function(s){j(e,s,i[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ke(Object(i)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))}))}return e}function j(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ae(e,t){return ut(e)||lt(e,t)||xe(e,t)||at()}function at(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(e,t){if(e){if(typeof e=="string")return le(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?le(e,t):void 0}}function le(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function lt(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,d=[],c=!0,D=!1;try{for(i=i.call(e);!(c=(s=i.next()).done)&&(d.push(s.value),!(t&&d.length===t));c=!0);}catch(m){D=!0,a=m}finally{try{c||i.return==null||i.return()}finally{if(D)throw a}}return d}}function ut(e){if(Array.isArray(e))return e}var O={None:0,Drag:2,Focus:4},ue=4,dt=(0,r.defineComponent)({name:"VueSlider",components:{VueSliderDot:F,VueSliderMark:X},emits:["change","drag-start","dragging","drag-end","error","update:modelValue"],data:function(){return{control:null,states:new st(O),scale:1,focusDotIndex:0}},props:{modelValue:{type:[Number,String,Array],default:0},silent:{type:Boolean,default:!1},direction:{type:String,default:"ltr",validator:function(e){return["ltr","rtl","ttb","btt"].indexOf(e)>-1}},width:{type:[Number,String]},height:{type:[Number,String]},dotSize:{type:[Number,Array],default:14},contained:{type:Boolean,default:!1},min:{type:Number,default:0},max:{type:Number,default:100},interval:{type:Number,default:1},disabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!0},dragOnClick:{type:Boolean,default:!1},duration:{type:Number,default:.5},data:{type:[Object,Array]},dataValue:{type:String,default:"value"},dataLabel:{type:String,default:"label"},lazy:{type:Boolean,default:!1},tooltip:{type:String,default:"active",validator:function(e){return["none","always","focus","hover","active"].indexOf(e)>-1}},tooltipPlacement:{type:[String,Array],validator:function(e){return(Array.isArray(e)?e:[e]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}},tooltipFormatter:{type:[String,Array,Function]},useKeyboard:{type:Boolean,default:!0},keydownHook:{type:Function},enableCross:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},order:{type:Boolean,default:!0},minRange:{type:Number},maxRange:{type:Number},marks:{type:[Boolean,Object,Array,Function],default:!1},process:{type:[Boolean,Function],default:!0},zoom:{type:Number},included:{type:Boolean},adsorb:{type:Boolean},hideLabel:{type:Boolean},dotOptions:{type:[Object,Array]},dotAttrs:{type:Object},railStyle:{type:Object},processStyle:{type:Object},dotStyle:{type:Object},tooltipStyle:{type:Object},stepStyle:{type:Object},stepActiveStyle:{type:Object},labelStyle:{type:Object},labelActiveStyle:{type:Object}},computed:{isHorizontal:function(){return this.direction==="ltr"||this.direction==="rtl"},isReverse:function(){return this.direction==="rtl"||this.direction==="btt"},tailSize:function(){return Y((this.isHorizontal?this.height:this.width)||ue)},containerClasses:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]},containerStyles:function(){var e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],t=ae(e,2),i=t[0],s=t[1],a=this.width?Y(this.width):this.isHorizontal?"auto":Y(ue),d=this.height?Y(this.height):this.isHorizontal?Y(ue):"auto";return{padding:this.contained?"".concat(s/2,"px ").concat(i/2,"px"):this.isHorizontal?"".concat(s/2,"px 0"):"0 ".concat(i/2,"px"),width:a,height:d}},processArray:function(){var e=this;return this.control.processArray.map((function(t,i){var s,a=ae(t,3),d=a[0],c=a[1],D=a[2];if(d>c){var m=[c,d];d=m[0],c=m[1]}var P=e.isHorizontal?"width":"height";return{start:d,end:c,index:i,style:ee(ee((s={},j(s,e.isHorizontal?"height":"width","100%"),j(s,e.isHorizontal?"top":"left",0),j(s,e.mainDirection,"".concat(d,"%")),j(s,P,"".concat(c-d,"%")),j(s,"transitionProperty","".concat(P,",").concat(e.mainDirection)),j(s,"transitionDuration","".concat(e.animateTime,"s")),s),e.processStyle),D)}}))},dotBaseStyle:function(){var e,t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],i=ae(t,2),s=i[0],a=i[1];return e=this.isHorizontal?j({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"}
5,this.direction==="ltr"?"left":"right","0"):j({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},this.direction==="btt"?"bottom":"top","0"),ee({width:"".concat(s,"px"),height:"".concat(a,"px")},e)},mainDirection:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top";default:return"left"}},tooltipDirections:function(){var e=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(e)?e:this.dots.map((function(){return e}))},dots:function(){var e=this;return this.control.dotsPos.map((function(t,i){return ee({pos:t,index:i,value:e.control.dotsValue[i],focus:e.states.has(O.Focus)&&e.focusDotIndex===i,disabled:e.disabled,style:e.dotStyle},(Array.isArray(e.dotOptions)?e.dotOptions[i]:e.dotOptions)||{})}))},animateTime:function(){return this.states.has(O.Drag)?0:this.duration},canSort:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross},sliderData:function(){var e=this;return this.isObjectArrayData(this.data)?this.data.map((function(t){return t[e.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data},sliderMarks:function(){var e=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(t){var i={label:t};return e.data.some((function(s){return s[e.dataValue]===t&&(i.label=s[e.dataLabel],!0)})),i}:this.isObjectData(this.data)?this.data:void 0},sliderTooltipFormatter:function(){var e=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(i){var s=""+i;return e.data.some((function(a){return a[e.dataValue]===i&&(s=a[e.dataLabel],!0)})),s};if(this.isObjectData(this.data)){var t=this.data;return function(i){return t[i]}}},isNotSync:function(){var e=this.control.dotsValue;return Array.isArray(this.modelValue)?this.modelValue.length!==e.length||this.modelValue.some((function(t,i){return t!==e[i]})):this.modelValue!==e[0]},dragRange:function(){var e=this.dots[this.focusDotIndex-1],t=this.dots[this.focusDotIndex+1];return[e?e.pos:-1/0,t?t.pos:1/0]}},watch:{modelValue:function(){this.control&&!this.states.has(O.Drag)&&this.isNotSync&&this.control.setValue(this.modelValue)}},methods:{isObjectData:function(e){return!!e&&Object.prototype.toString.call(e)==="[object Object]"},isObjectArrayData:function(e){return!!e&&Array.isArray(e)&&e.length>0&&re(e[0])==="object"},bindEvent:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)},unbindEvent:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)},setScale:function(){this.scale=new I(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).multiply(this.zoom||1).divide(100).toNumber()},initControl:function(){var e=this;this.control=new Qe({value:this.modelValue,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(t){e.$watch(t,(function(i){if(t==="data"&&Array.isArray(e.control.data)&&Array.isArray(i)&&e.control.data.length===i.length&&i.every((function(s,a){return s===e.control.data[a]})))return!1;switch(t){case"data":case"dataLabel":case"dataValue":e.control.data=e.sliderData;break;case"mark":e.control.marks=e.sliderMarks;break;default:e.control[t]=i}["data","max","min","interval"].indexOf(t)>-1&&e.control.syncDotsPos()}))}))},syncValueByPos:function(){var e=this.control.dotsValue;if(this.isDiff(e,Array.isArray(this.modelValue)?this.modelValue:[this.modelValue])){var t=e.length===1?e[0]:ne(e);this.$emit("change",t,this.focusDotIndex),this.$emit("update:modelValue",t)}},isDiff:function(e,t){return e.length!==t.length||e.some((function(i,s){return i!==t[s]}))},emitError:function(e,t){this.silent||console.error("[VueSlider error]: ".concat(t)),this.$emit("error",e,t)},dragStartOnProcess:function(e){if(this.dragOnClick){this.setScale();var t=this.getPosByEvent(e),i=this.control.getRecentDot(t);if(this.dots[i].disabled)return;this.dragStart(i),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos()}},dragStart:function(e){this.focusDotIndex=e,this.setScale(),this.states.add(O.Drag),this.states.add(O.Focus),this.$emit("drag-start",this.focusDotIndex)},dragMove:function(e){if(!this.states.has(O.Drag))return!1;e.preventDefault();var t=this.getPosByEvent(e);this.isCrossDot(t),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos();var i=this.control.dotsValue;this.$emit("dragging",i.length===1?i[0]:ne(i),this.focusDotIndex)},isCrossDot:function(e){if(this.canSort){var t=this.focusDotIndex,i=e;if(i>this.dragRange[1]?(i=this.dragRange[1],this.focusDotIndex++):i<this.dragRange[0]&&(i=this.dragRange[0],this.focusDotIndex--),t!==this.focusDotIndex){var s=this.$refs["dot-".concat(this.focusDotIndex)];s&&s.$el&&s.$el.focus(),this.control.setDotPos(i,t)}}},dragEnd:function(e){var t=this;if(!this.states.has(O.Drag))return!1;setTimeout((function(){t.lazy&&t.syncValueByPos(),t.included&&t.isNotSync?t.control.setValue(t.modelValue):t.control.syncDotsPos(),t.states.delete(O.Drag),t.useKeyboard&&!("targetTouches"in e)||t.states.delete(O.Focus),t.$emit("drag-end",t.focusDotIndex)}))},blurHandle:function(e){if(!this.states.has(O.Focus)||!this.$refs.container||this.$refs.container.contains(e.target))return!1;this.states.delete(O.Focus)},clickHandle:function(e){if(!this.clickable||this.disabled)return!1;if(!this.states.has(O.Drag)){this.setScale();var t=this.getPosByEvent(e);this.setValueByPos(t)}},focus:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;e.disabled||(this.states.add(O.Focus),this.focusDotIndex=t)},blur:function(){this.states.delete(O.Focus)},getValue:function(){var e=this.control.dotsValue;return e.length===1?e[0]:e},getIndex:function(){var e=this.control.dotsIndex;return e.length===1?e[0]:e},setValue:function(e){this.control.setValue(Array.isArray(e)?ne(e):[e]),this.syncValueByPos()},setIndex:function(e){var t=this,i=Array.isArray(e)?e.map((function(s){return t.control.getValueByIndex(s)})):this.control.getValueByIndex(e);this.setValue(i)},setValueByPos:function(e){var t=this,i=this.control.getRecentDot(e);
5if(this.disabled||this.dots[i].disabled)return!1;this.focusDotIndex=i,this.control.setDotPos(e,i),this.syncValueByPos(),this.useKeyboard&&this.states.add(O.Focus),setTimeout((function(){t.included&&t.isNotSync?t.control.setValue(t.modelValue):t.control.syncDotsPos()}))},keydownHandle:function(e){var t=this;if(!this.useKeyboard||!this.states.has(O.Focus))return!1;var i=this.included&&this.marks,s=Ie(e,{direction:this.direction,max:i?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(s){e.preventDefault();var a=-1,d=0;i?(this.control.markList.some((function(c,D){return c.value===t.control.dotsValue[t.focusDotIndex]&&(a=s(D),!0)})),a<0?a=0:a>this.control.markList.length-1&&(a=this.control.markList.length-1),d=this.control.markList[a].pos):(a=s(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),d=this.control.parseValue(this.control.getValueByIndex(a))),this.isCrossDot(d),this.control.setDotPos(d,this.focusDotIndex),this.syncValueByPos()}},getPosByEvent:function(e){return Me(e,this.$el,this.isReverse,this.zoom)[this.isHorizontal?"x":"y"]/this.scale},renderSlot:function(e,t,i){var s=this.$slots[e];return s?s(t):i}},created:function(){this.initControl()},mounted:function(){this.bindEvent()},beforeUnmount:function(){this.unbindEvent()}}),de=(0,U.Z)(dt,[["render",R]]);de.VueSliderMark=X,de.VueSliderDot=F;var ct=de,ht=ct})(),C=C.default,C})()}))})(te)),te.exports}var Lt=Bt();const $t=bt(Lt),Ht={components:{IconPodcast:Ce,VueSlider:$t,LogoTelex:Te},props:{episode:{type:Object,default:null},isEmbed:{type:Boolean,default:!1},hideExceptActionSlot:{type:Boolean,default:!1}},emits:{onTouchStart:null,onTouchMove:null,onTouchEnd:null,onPause:null,onPlay:null},data:()=>({currentSeconds:0,episodeDurationSeconds:0,adDurationSeconds:0,loaded:!1,adPlayed:!1,isInAdPlayerMode:!1,audioNode:null,audioContext:null,showVolume:!1,isDragging:!1,dragValue:null,volume:100,playbackRate:1,playbackRates:[1,1.2,1.5,1.8,2],gainNode:null,isAlreadyStarted:!0,listeningReportTimer:null,processStyle:{background:"var(--color-podcast"},playlist:[],playlistVisible:!1}),computed:{...Ot(Dt,["isMobile","windowWidth"]),...Ve(fe,{podcastPlayerVisible:"visible",autoPlay:"autoPlay",playing:"playing"}),muted(){return this.volume/100===0},preEpisodeAd(){return this.episode.ads?.preEpisode},title(){return this.isInAdPlayerMode?this.preEpisodeAd?.title:this.episode?.title},image(){return this.isInAdPlayerMode?this.preEpisodeAd?.image:this.episode?.image},durationSeconds(){return this.isInAdPlayerMode?this.adDurationSeconds:this.episodeDurationSeconds}},watch:{playing(o){if(o){this.startAudioPlay();return}this.pauseAudioPlay()},volume(){this.gainNode.gain.value=this.volume/100},dragValue(){this.isDragging||this.dragEnd()},playbackRate(o){this.setAudioSpeed(o),this.savePlaybackRateToStorage(o)},episode(o,n){o?.slug!==n?.slug&&(this.dragValue=0),this.$nextTick(()=>this.setAudioNode())},inAdPlayerMode(){this.setAudioNode()}},mounted(){this.updatePlaylist();const o=this.loadPlaybackRateFromStorage();o&&(this.playbackRate=o),this.$bus.$on("podcast-play-clicked",this.play),this.$bus.$on("podcast-pause-clicked",this.pause),this.$bus.$on("podcast-forward-clicked",this.forward),this.$bus.$on("podcast-rewind-clicked",this.rewind),this.$bus.$on("playlist-updated",this.updatePlaylist),this.measureEvent("opened"),this.setAudioNode()},beforeUnmount(){this.stopMeasureListening(),this.$bus.$off("podcast-play-clicked"),this.$bus.$off("podcast-pause-clicked"),this.$bus.$off("podcast-forward-clicked"),this.$bus.$off("podcast-rewind-clicked"),this.$bus.$off("playlist-updated"),document.removeEventListener("keyup",this.handleKeyUp)},methods:{logMizu(){console.log("mizu")},closePlayer(){this.pause(),this.podcastPlayerVisible=!1,this.$bus.$emit("podcast-pause-clicked"),this.$bus.$emit("podcast-player-closed"),window.localStorage.removeItem("telex.podcast.episode"),window.localStorage.removeItem("telex.podcast.seconds"),window.localStorage.removeItem("telex.podcast.playlist")},togglePlaylist(){this.playlist.length>0&&(this.playlistVisible=!this.playlistVisible)},nextPlaybackRate(){const o=Number(this.playbackRate),n=this.playbackRates.findIndex(l=>Number(l)===o),g=n===-1?0:(n+1)%this.playbackRates.length,A=this.playbackRates[g],y=this.clampRate(A);y&&(this.playbackRate=y)},clampRate(o){const n=typeof o=="number"?o:parseFloat(o);return isFinite(n)?Math.min(2,Math.max(1,n)):null},loadPlaybackRateFromStorage(){try{if(typeof window>"u"||!window.localStorage)return null;const o=window.localStorage.getItem("telex.podcast.playbackRate");return o||this.clampRate(parseFloat(o)),this.clampRate(parseFloat(o))}catch{return null}},savePlaybackRateToStorage(o){try{if(typeof window>"u"||!window.localStorage)return;const n=this.clampRate(o);n&&window.localStorage.setItem("telex.podcast.playbackRate",String(n))}catch{console.error("Failed to save playback rate to storage.")}},setAudioNode(){this.audioNode=this.isInAdPlayerMode?this.$refs.adAudio:this.$refs.audio},async startAudioPlay(){if(!this.isInAdPlayerMode){const o=this.loadPlaybackRateFromStorage();o&&(this.playbackRate=o,this.$refs.audio.playbackRate=o)}this.listeningReportTimer=setTimeout(this.measureListeningEvent,30*1e3),this.$emit("onPlay"),!this.audioContext&&!this.gainNode&&(this.audioContext=new window.AudioContext,this.audioContext.crossOrigin="anonymous",this.gainNode=this.audioContext.createGain(),this.gainNode.gain.value=1,this.audioContext.createMediaElementSource(this.audioNode).connect(this.gainNode).connect(this.audioContext.destination)),await this.audioNode.play();try{navigator&&"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.title,artist:"Telex.hu",album:this.episode.podcast.name,artwork:[{src:this.$getTypedImage(this.image,"media-metadata-podcast","xs"),sizes:"96x96",type:"image/png"},{src:this.$getTypedImage(this.image,"media-metadata-podcast","s"),sizes:"128x128",type:"image/png"},{src:this.$getTypedImage(this.image,"media-metadata-podcast","m"),sizes:"192x192",type:"image/png"},{src:this.$getTypedImage(this.image,"media-metadata-podcast","l"),sizes:"256x256",type:"image/png"},{src:this.$getTypedImage(this.image,"media-metadata-podcast","xl"),sizes:"384x384",type:"image/png"},{src:this.$getTypedImage(this.image,"media-metadata-podcast","xxl"),sizes:"512x512",type:"image/png"}]}),navigator.mediaSession.playbackState="playing",navigator.mediaSession.setActionHandler("play",()=>{this.play()}),navigator.mediaSession.setActionHandler("pause",()=>{this.pause()}),navigator.mediaSession.setActionHandler("stop",()=>{this.pause()}),navigator.mediaSession.setActionHandler("seekbackward",()=>{this.rewind()}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.forward()}),navigator.mediaSession.setActionHandler("seekto",o=>
5{this.audioNode.currentTime=o.seekTime}))}catch{}},pauseAudioPlay(){this.stopMeasureListening(),this.$emit("onPause"),this.audioNode.pause();try{navigator&&"mediaSession"in navigator&&(navigator.mediaSession.playbackState="paused")}catch{}},load(){if(this.$refs.audio.readyState>=2){this.loaded=!0,this.episodeDurationSeconds=parseInt(this.$refs.audio.duration),localStorage.getItem("telex.podcast.seconds")&&(this.$refs.audio.currentTime=parseInt(localStorage.getItem("telex.podcast.seconds")),this.currentSeconds=parseInt(localStorage.getItem("telex.podcast.seconds"))),this.$bus.$emit("podcast-core-set-audio",{episode:this.episode,duration:this.durationSeconds,current:this.currentSeconds}),this.autoPlay&&(this.play(),this.$emit("onPlay")),this.autoPlay=!0;return}throw new Error("Failed to load sound file.")},seekStart(){this.dragValue=this.currentSeconds,this.isDragging=!0},dragEnd(){this.currentSeconds=this.dragValue,this.$refs.audio.currentTime=parseInt(this.dragValue),this.isDragging=!1,this.$bus.$emit("podcast-core-seek",{current:this.currentSeconds})},mute(){if(this.muted){this.volume=this.previousVolume;return}this.previousVolume=this.volume,this.volume=0},seek(o){this.loaded&&(this.$refs.audio.currentTime=parseInt(o.target.value))},onPauseClick(o){o.stopPropagation(),o.preventDefault(),this.pause()},onPlayClick(o){o.stopPropagation(),o.preventDefault(),this.play()},onAdEnded(){this.currentSeconds=0,this.adPlayed=!0,this.isInAdPlayerMode=!1,setTimeout(()=>this.startAudioPlay(),800)},onEnded(){this.$bus.$emit("podcast-core-ended",{current:this.currentSeconds}),this.onEpisodeEnded()},positionChange(o){this.$refs.audio.currentTime=o,this.$bus.$emit("podcast-core-seek",{current:o})},play(){this.isInAdPlayerMode=this.preEpisodeAd&&!this.adPlayed,this.playing=!0,this.$bus.$emit("podcast-core-play",{current:this.currentSeconds})},pause(){this.playing=!1,this.$bus.$emit("podcast-core-pause",{current:this.currentSeconds})},forward(){this.isInAdPlayerMode||(this.$refs.audio.currentTime=this.currentSeconds+15)},rewind(){this.isInAdPlayerMode||(this.$refs.audio.currentTime=this.currentSeconds-15)},stopMeasureListening(){this.listeningReportTimer&&clearTimeout(this.listeningReportTimer)},measureListeningEvent(){this.measureEvent("listened",{duration:30}),this.listeningReportTimer=setTimeout(this.measureListeningEvent,30*1e3)},measureEvent(o,n={}){window.remplib.tracker.trackEvent("podcast-episode",o,{},{episodeTitle:this.episode.title,episodeSlug:this.episode.slug,podcastName:this.episode.podcast.name,podcastSlug:this.episode.podcast.slug,...n})},update(){if(this.currentSeconds=parseInt(this.$refs.audio?.currentTime),this.currentSeconds%10===0&&(localStorage.setItem("telex.podcast.episode",JSON.stringify(this.episode)),localStorage.setItem("telex.podcast.seconds",this.currentSeconds)),navigator&&"mediaSession"in navigator&&this.$refs.audio)try{navigator.mediaSession.setPositionState({duration:this.$refs.audio.duration,playbackRate:this.$refs.audio.playbackRate,position:this.$refs.audio.currentTime})}catch{}},convertTimeHHMMSS(o){const n=new Date(o*1e3).toISOString().substr(11,8);return n.indexOf("00:")===0?n.substr(3):n},setAudioSpeed(o){this.$refs.audio.playbackRate=o},updatePlaylist(){this.playlist=JSON.parse(localStorage.getItem("telex.podcast.playlist"))?.reverse()??[]},playEpisode(o){this.currentSeconds=0,this.playing=!1,this.adPlayed=!1,this.isInAdPlayerMode=!1,fe().episode=o,this.playlist=this.playlist.filter(n=>n.slug!==o.slug),localStorage.setItem("telex.podcast.playlist",JSON.stringify(this.playlist)),this.$bus.$emit("playlist-updated"),this.playlistVisible=this.playlist.length>0,this.sendClickAnalyticsEvent("speech-played"),this.play()},onEpisodeEnded(){this.playlist=this.playlist.filter(o=>o.slug!==this.episode.slug),localStorage.setItem("telex.podcast.playlist",JSON.stringify(this.playlist)),this.$bus.$emit("playlist-updated"),this.playlist.length>0&&this.playEpisode(this.playlist.at(-1))},sendClickAnalyticsEvent(o){window.remplib.tracker.trackEvent(o,"click-from-article",{},{fromPath:(this._.provides[At]||this.$route).fullPath,toPath:null})},playItem(o){this.playEpisode(this.playlist.at(o))},deleteItem(o){this.playlist.splice(o,1),localStorage.setItem("telex.podcast.playlist",JSON.stringify(this.playlist)),this.$bus.$emit("playlist-updated"),this.playlistVisible=this.playlist.length>0},moveUp(o){this.playlist.splice(o-1,0,this.playlist.splice(o,1)[0]),localStorage.setItem("telex.podcast.playlist",JSON.stringify(this.playlist))},moveDown(o){this.playlist.splice(o+1,0,this.playlist.splice(o,1)[0]),localStorage.setItem("telex.podcast.playlist",JSON.stringify(this.playlist))}}},Ft={class:"telex-podcast"},Ut={key:0,class:"telex-podcast__playlist"},Wt=["onClick"],Xt=["onClick"],Yt=["onClick"],qt=["onClick"],Gt={key:1,class:"telex-podcast__more"},Jt={href:"https://telex.hu",class:"telex-podcast__more__telex"},Kt={href:"https://telex.hu/dokumentum/telex-podcast",class:"telex-podcast__more__episodes"},Zt={class:"telex-podcast__episode__info__image"},Qt={class:"telex-podcast__episode__sliders"},ei={class:"telex-podcast__timeline"},ti={class:"player-time"},ii={class:"player-time-current"},si={class:"player-time-total"},oi={class:"seek-container"},ni={id:"mute"},ri={key:0,class:"mdi mdi-volume-high"},ai={key:1,class:"mdi mdi-volume-off"},li={class:"telex-podcast__actions"},ui={class:"telex-podcast__container"},di={class:"telex-podcast__button__stepper"},ci={class:"telex-podcast__button__playing"},hi={class:"telex-podcast__button__stepper"},mi={key:0}
5,pi={key:1,class:"telex-podcast__speed__toggle"},fi=["src"],yi=["src"];function vi(o,n,g,A,y,l){const C=Te,v=Ce,p=xt,f=St("vue-slider"),r=Pt;return b(),S("div",Ft,[o.playlistVisible&&!g.hideExceptActionSlot?(b(),S("div",Ut,[(b(!0),S(ce,null,kt(o.playlist,(u,w)=>(b(),S("div",{key:u.slug,class:"telex-podcast__playlist__item"},[h("span",{class:"telex-podcast__playlist__item__title",onClick:R=>l.playItem(w)},$(o.$stringHelper.truncate(u.title,60,!1)),9,Wt),h("span",null,[w<o.playlist.length-1?(b(),S("i",{key:0,class:"mdi mdi-chevron-down",onClick:R=>l.moveDown(w)},null,8,Xt)):E("",!0)]),h("span",null,[w>0?(b(),S("i",{key:0,class:"mdi mdi-chevron-up",onClick:R=>l.moveUp(w)},null,8,Yt)):E("",!0)]),h("span",{class:"telex-podcast__playlist__item__close",onClick:R=>l.deleteItem(w)},[...n[27]||(n[27]=[h("i",{class:"mdi mdi-close"},null,-1)])],8,qt)]))),128))])):E("",!0),g.isEmbed&&!g.hideExceptActionSlot?(b(),S("div",Gt,[h("a",Jt,[N(C)]),h("a",Kt,[N(v),n[28]||(n[28]=h("span",null," Telex Podcastok ",-1))])])):E("",!0),h("div",{class:z([{hidden:g.hideExceptActionSlot},"telex-podcast__episode"])},[o.isMobile?(b(),S("div",{key:0,class:"floating-close--fixed--mobile",onClick:n[0]||(n[0]=(...u)=>l.closePlayer&&l.closePlayer(...u))},[...n[29]||(n[29]=[h("i",{class:"mdi mdi-close"},null,-1)])])):E("",!0),h("div",{class:z([{"telex-podcast__episode__info--floating":!g.isEmbed},"telex-podcast__episode__info"]),onTouchstart:n[1]||(n[1]=u=>o.$emit("onTouchStart",u)),onTouchmove:n[2]||(n[2]=u=>o.$emit("onTouchMove",u)),onTouchend:n[3]||(n[3]=u=>o.$emit("onTouchEnd",u))},[h("span",Zt,[N(p,{src:l.image,type:"podcast-player",breakpoint:""},null,8,["src"])]),h("div",{class:z(["telex-podcast__episode__info__title",{"telex-podcast__episode__info__title--mobile":!o.touchDevice}])},[h("span",null,$(l.title),1)],2)],34),h("div",Qt,[h("div",ei,[h("div",ti,[h("div",ii,[o.isDragging?(b(),S(ce,{key:1},[Ae($(l.convertTimeHHMMSS(o.dragValue)),1)],64)):(b(),S(ce,{key:0},[Ae($(l.convertTimeHHMMSS(o.currentSeconds)),1)],64))]),h("div",si,$(l.convertTimeHHMMSS(l.durationSeconds)),1)]),h("div",oi,[N(r,null,{default:pe(()=>[N(f,{modelValue:o.currentSeconds,"onUpdate:modelValue":n[4]||(n[4]=u=>o.currentSeconds=u),modelModifiers:{lazy:!0,number:!0},min:0,max:l.durationSeconds,"process-style":o.processStyle,disabled:o.isInAdPlayerMode,tooltip:"none",onDragStart:l.seekStart,onDragging:n[5]||(n[5]=u=>o.dragValue=u),onDragEnd:l.dragEnd,onChange:l.positionChange},null,8,["modelValue","max","process-style","disabled","onDragStart","onDragEnd","onChange"])]),_:1})])]),h("div",{id:"volume",class:"telex-podcast__volume",onMouseenter:n[8]||(n[8]=u=>o.showVolume=!0),onMouseleave:n[9]||(n[9]=u=>o.showVolume=!1)},[h("div",ni,[h("div",{class:"telex-podcast__volume__icon",onClick:n[6]||(n[6]=(...u)=>l.mute&&l.mute(...u))},[l.muted?(b(),S("i",ri)):E("",!0),l.muted?E("",!0):(b(),S("i",ai))])]),N(r,null,{default:pe(()=>[N(f,{modelValue:o.volume,"onUpdate:modelValue":n[7]||(n[7]=u=>o.volume=u),modelModifiers:{lazy:!0,number:!0},min:0,max:100,"process-style":o.processStyle,tooltip:"none"},null,8,["modelValue","process-style"])]),_:1})],32)])],2),h("div",li,[h("div",ui,[h("div",{class:z([{hidden:g.hideExceptActionSlot},"telex-podcast__button"])},[h("div",di,[h("i",{class:"mdi mdi-rewind",onClick:n[10]||(n[10]=u=>l.rewind())})]),h("div",ci,[o.playing?E("",!0):(b(),S("div",{key:0,onClick:n[11]||(n[11]=(...u)=>l.onPlayClick&&l.onPlayClick(...u))},[...n[30]||(n[30]=[h("i",{class:"mdi mdi-play"},null,-1)])])),o.playing?(b(),S("div",{key:1,onClick:n[12]||(n[12]=(...u)=>l.onPauseClick&&l.onPauseClick(...u))},[...n[31]||(n[31]=[h("i",{class:"mdi mdi-pause"},null,-1)])])):E("",!0)]),h("div",hi,[h("i",{class:"mdi mdi-fast-forward",onClick:n[13]||(n[13]=u=>l.forward())})])],2),wt(o.$slots,"extraActions"),g.hideExceptActionSlot?E("",!0):(b(),S("div",mi,[(b(),S("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24","fill-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2",class:z(["telex-podcast__playlist__toggle",{"telex-podcast__playlist__toggle--inactive":o.playlist.length===0}]),onClick:n[14]||(n[14]=(...u)=>l.togglePlaylist&&l.togglePlaylist(...u))},[...n[32]||(n[32]=[h("path",{d:"M17 22v-8l7 4-7 4zm7-18H0V2h24v2zM13 16H0v-2h13v2zm11-6H0V8h24v2zM13 22H0v-2h13v2z"},null,-1)])],2)),h("span",{class:z(["telex-podcast__playlist__info",{"telex-podcast__playlist__info--inactive":o.playlist.length===0}]),onClick:n[15]||(n[15]=u=>o.playlistVisible=!o.playlistVisible)},$(o.playlist.length),3)])),g.hideExceptActionSlot?E("",!0):(b(),S("div",pi,[h("span",{onClick:n[16]||(n[16]=(...u)=>l.nextPlaybackRate&&l.nextPlaybackRate(...u))},$(o.playbackRate)+"x ",1)]))])]),l.preEpisodeAd?(b(),S("audio",{key:2,ref:"adAudio",crossorigin:"anonymous",src:l.preEpisodeAd.sourceUrl,preload:"auto",style:{display:"none"},onLoadeddata:n[17]||(n[17]=u=>o.adDurationSeconds=parseInt(o.$refs.adAudio.duration)),onTimeupdate:n[18]||(n[18]=u=>o.currentSeconds=parseInt(o.$refs.adAudio?.currentTime)),onEnded:n[19]||(n[19]=(...u)=>l.onAdEnded&&l.onAdEnded(...u)),onPause:n[20]||(n[20]=u=>o.playing=!1),onPlay:n[21]||(n[21]=u=>o.playing=!0)},null,40,fi)):E("",!0),(b(),S("audio",{ref:"audio",key:g.episode.slug,crossorigin:"anonymous",src:g.episode.sourceUrl,preload:"auto",style:{display:"none"}
5,onTimeupdate:n[22]||(n[22]=(...u)=>l.update&&l.update(...u)),onLoadeddata:n[23]||(n[23]=(...u)=>l.load&&l.load(...u)),onPause:n[24]||(n[24]=u=>o.playing=!1),onPlay:n[25]||(n[25]=u=>o.playing=!0),onEnded:n[26]||(n[26]=(...u)=>l.onEnded&&l.onEnded(...u))},null,40,yi)),g.hideExceptActionSlot?E("",!0):(b(),Et(p,{key:3,src:g.episode.image,type:"podcast-player-bg",class:"telex-podcast__bg"},null,8,["src"]))])}const gi=Object.assign(ye(Ht,[["render",vi]]),{__name:"PodcastPlayerCore"}),bi={data(){return{positions:{clientX:void 0,clientY:void 0,movementX:0,movementY:0},bottom:null,right:null,windowWidth:null,windowHeight:null,isMoveActive:!1,movementAxis:null,minimalizedOptions:H,touchDevice:!1}},computed:{...Ve(fe,["minimalized","episode","playing","visible","autoPlay"])},mounted(){window.addEventListener("resize",this.refreshDimensions),this.touchDevice="ontouchstart"in window||navigator.msMaxTouchPoints,this.refreshDimensions(),this.bottom=this.defaultBottom,this.right=this.defaultRight,this.windowWidth=window.innerWidth,window.addEventListener("resize",this.updateWidth),localStorage.getItem("telex.podcast.episode")!==null&&(this.autoPlay=!1,setTimeout(()=>{this.episode=JSON.parse(localStorage.getItem("telex.podcast.episode")),this.visible=!0},1e3))},beforeUnmount(){window.removeEventListener("resize",this.refreshDimensions),document.removeEventListener("keyup",this.handleKeyUp),window.removeEventListener("resize",this.updateWidth)},methods:{refreshDimensions(){this.windowWidth=document.documentElement.clientWidth,this.windowHeight=document.documentElement.clientHeight,this.setPosition()},onTouchStart(o){this.isMoveActive=!0,this.positions.clientX=o.changedTouches[0].clientX,this.positions.clientY=o.changedTouches[0].clientY},onTouchMove(o){o.preventDefault();const n=o.changedTouches[0].clientX,g=o.changedTouches[0].clientY;if(!this.isMoveActive)return;const A=this.positions.clientX-n,y=this.positions.clientY-g;this.movementAxis==null&&(this.movementAxis=Math.abs(y)>Math.abs(A)?"Y":"X"),this.movementAxis==="X"&&(this.positions.movementX=A,this.positions.clientX=n,this.right=this.right+this.positions.movementX),this.movementAxis==="Y"&&(this.positions.movementY=y,this.positions.clientY=g,this.bottom=this.bottom+this.positions.movementY)},minimalizedClicked(){this.setNotMinimalized()},onTouchEnd(o){o.preventDefault(),this.minimalized===H.None&&(this.movementAxis==="X"&&(this.right-this.defaultRight>30&&(this.minimalized=H.Left),this.defaultRight-this.right>30&&(this.minimalized=H.Right)),this.movementAxis==="Y"&&this.bottom<this.defaultBottom+30&&this.closePlayer()),this.movementAxis=null,this.isMoveActive=!1,this.setPosition()},setPosition(){this.bottom=this.defaultBottom,this.right=this.defaultRight},setMinimalizedToRight(){this.minimalized=H.Right},setNotMinimalized(){this.minimalized!==H.None&&(this.minimalized=H.None,this.setPosition())},onPlay(){this.playing=!0},onPause(){this.playing=!1,this.$bus.$emit("podcast-pause-clicked")},closePlayer(){this.onPause(),this.$bus.$emit("podcast-player-closed"),localStorage.removeItem("telex.podcast.episode"),localStorage.removeItem("telex.podcast.seconds"),localStorage.removeItem("telex.podcast.playlist"),this.episode=null},updateWidth(){this.windowWidth=window.innerWidth}}},Si={class:"audio-pip"},ki={class:"telex-podcast__minimize"},xi={key:0,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24","fill-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2",class:"telex-podcast__bigger"};function Pi(o,n,g,A,y,l){const C=gi;return b(),S("div",{class:z(["floating-podcasts",{floatingpodcastsmini:o.minimalized!==y.minimalizedOptions.None}])},[o.episode&&y.bottom!==null&&y.right!==null?(b(),S("div",{key:0,ref:"floatingPodcastContainer",class:z(["floating-podcast-container",{minimalized:o.minimalized!==y.minimalizedOptions.None,"minimalized-left":o.minimalized===y.minimalizedOptions.Left,"minimalized-right":o.minimalized===y.minimalizedOptions.Right}]),style:Oe({bottom:y.bottom+"px",right:y.right+"px",opacity:y.isMoveActive?.7:1})},[h("div",Si,[!y.touchDevice&&o.minimalized===y.minimalizedOptions.None?(b(),S("div",{key:0,class:z(["floating-close--fi
5xed"]),onClick:n[0]||(n[0]=(...v)=>l.closePlayer&&l.closePlayer(...v))},[...n[3]||(n[3]=[h("i",{class:"mdi mdi-close"},null,-1),h("span",null,"Bezárás",-1)])])):E("",!0),N(C,{"is-embed":!1,"hide-except-action-slot":o.minimalized!==y.minimalizedOptions.None,episode:o.episode,class:z({"telex-podcast--desktop":!y.touchDevice}),onOnPlay:l.onPlay,onOnPause:l.onPause,onOnTouchStart:l.onTouchStart,onOnTouchMove:l.onTouchMove,onOnTouchEnd:l.onTouchEnd},{extraActions:pe(()=>[h("div",ki,[o.minimalized?E("",!0):(b(),S("span",{key:0,onClick:n[1]||(n[1]=(...v)=>l.setMinimalizedToRight&&l.setMinimalizedToRight(...v))},[...n[4]||(n[4]=[h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24","fill-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2",class:"telex-podcast__smaller"},[h("path",{d:"M20 18.586L7.72 6.306 6.306 7.72 18.586 20H14v2h8v-8h-2v4.586z",class:"telex-podcast__arrow"}),h("path",{d:"M20 11h2V2H2v20h9v-2H4V4h16v7z",class:"telex-podcast__frame"})],-1)])])),h("span",{onClick:n[2]||(n[2]=(...v)=>l.minimalizedClicked&&l.minimalizedClicked(...v))},[o.minimalized?(b(),S("svg",xi,[...n[5]||(n[5]=[h("path",{d:"M4 5.414l12.28 12.28 1.414-1.414L5.414 4H10V2H2v8h2V5.414z",class:"telex-podcast__arrow"},null,-1),h("path",{d:"M4 13H2v9h20V2h-9v2h7v16H4v-7z",class:"telex-podcast__frame"},null,-1)])])):E("",!0)])])]),_:1},8,["hide-except-action-slot","episode","class","onOnPlay","onOnPause","onOnTouchStart","onOnTouchMove","onOnTouchEnd"])])],6)):E("",!0),y.isMoveActive&&y.bottom<o.defaultBottom?(b(),S("div",{key:1,style:Oe({bottom:o.defaultBottom+30+"px"}),class:"floating-close"},[...n[6]||(n[6]=[h("i",{class:"mdi mdi-close"},null,-1)])],4)):E("",!0)],2)}const Di=Object.assign(ye(bi,[["render",Pi]]),{__name:"FloatingPodcastPlayer"});export{Di as default};
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.