1"use strict";(self.webpackChunkxcams=self.webpackChunkxcams||[]).push([[4214,8301,8924],{85144(e,t,a){a.d(t,{Q:()=>f});var n;a(3362),a(62953),a(48408);function i(e,t,a){o(e,t),t.set(e,a)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function s(e,t){return e.get(c(e,t))}function r(e,t,a){return e.set(c(e,t),a),a}function c(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,u=new WeakMap,v=new WeakMap,p=new WeakSet;class f{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";var t,a;if(o(t=this,a=p),a.add(t),i(this,d,"application/x-www-form-urlencoded"),i(this,u,"application/json"),i(this,v,f.CONTENT_TYPE_URL_ENCODED),_._)throw new Error("Use HttpClient.getInstance() to get an instance");this.baseUrl=e,this.defaultHeaders={"X-Requested-With":"XMLHttpRequest",Accept:"application/json"},this.defaultCredentials="include"}setContentTypeModeUrlEncoded(){r(v,this,f.CONTENT_TYPE_URL_ENCODED)}setContentTypeModeJson(){r(v,this,f.CONTENT_TYPE_JSON)}static getInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _._||(_._=new f(e)),_._}async request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a="".concat(this.baseUrl).concat(e),n=c(p,this,h).call(this,t),i=this.defaultCredentials,o={...t,headers:n,credentials:i};try{const e=await fetch(a,o);if(!e.ok)throw new Error("HTTP error! status: ".concat(e.status));return await e.json()}catch(l){throw window._local.log("Request failed:",l),l}}async get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(e,{...t,method:"GET"})}async post(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(e,{...a,method:"POST",body:c(p,this,m).call(this,t)})}async put(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(e,{...a,method:"PUT",body:c(p,this,m).call(this,t)})}async patch(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(e,{...a,method:"PATCH",body:c(p,this,m).call(this,t)})}async delete(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(e,{...t,method:"DELETE"})}}function m(e){let t="";return t=s(v,this)===n.CONTENT_TYPE_URL_ENCODED?new URLSearchParams(e):JSON.stringify(e),t}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s(d,this);s(v,this)===n.CONTENT_TYPE_JSON&&(t=s(u,this));const a={"Content-Type":t};return{...this.defaultHeaders,...a,...e.headers}}n=f;var _={_:null};l(f,"CONTENT_TYPE_URL_ENCODED",1),l(f,"CONTENT_TYPE_JSON",2)},58301(e,t,a){a.r(t),a.d(t,{MediaSlider:()=>f});a(62953);var n=a(76334),i=a.n(n);function o(e,t,a){l(e,t),t.set(e,a)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(e,t){return e.get(d(e,t))}function c(e,t,a){return e.set(d(e,t),a),a}function d(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,v=new WeakMap,p=new WeakSet;class f{constructor(e,t,a){var n,i;return l(n=this,i=p),i.add(n),s(this,"container",void 0),s(this,"slideSelector",void 0),s(this,"slides",void 0),o(this,u,void 0),o(this,v,{}),this.container=e,this.slideSelector=t,c(v,this,{...r(v,this),...a}),d(p,this,m).call(this)}}function m(){c(u,this,"string"==typeof this.container?document.querySelector(this.container):this.container);const e=new(i())(r(u,this),r(v,this));return this.slides=r(u,this).querySelectorAll(this.slideSelector),this.slides&&this.slides.length>
10&&this.slides.forEach((e=>e.querySelector("img").style.visibility="visible")),e.init(),e}},96213(e,t,a){var n=a(53751),i=a(20641),o=a(90033),l=a(50953);a(62953);const s={xmlns:"http://www.w3.org/2000/svg",width:"35",height:"2",viewBox:"0 0 35 2",fill:"none"};var r=a(66262);const c={},d=(0,r.A)(c,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",s,[...t[0]||(t[0]=[(0,i.Lk)("path",{d:"M1.5 1.00006H33.5",stroke:"white","stroke-width":"2","stroke-linecap":"round"},null,-1)])])}]]);var u=a(97729);const v="virtual-gifts",p="votes",f="toy",m="toy-intensity",h="emojis",_="auto-translation",g="profile",C="reaction",b="overlay",y="action",k="popover";var w=a(17083);const E=["😊","😛","😀","🤩","🤗","😉","😎","😘","😍","🤤","😂","😠","😞","😟","😳","😨","😥","😱","😇","😴","🤭","🤐","🤫","🙈","👍","👎","🤞","🙌","👏","🙏","🍑","🍆","🍒","🌮","💦","🫦","👅","❤️","💘","💔","🎉","👠","💋","🌹","💥","👑","🔥","⭐","🚀","💯"],L=E.length,x=(0,l.KR)(null),A=(0,i.EW)((()=>x.value?" ".concat(F(x.value)," "):""));function R(e){x.value=e}function I(){x.value=null}const F=e=>{const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""};function M(){return{EMOJI_LIST:E,EMOJIS_NUMBER_ITEMS:L,emojiSelected:A,selectEmoji:R,removeEmoji:I}}const S=(0,w.I)(),T=S.getNumberOfVirtualGifts,B=S.hasSeasonalGifts,O=M().EMOJIS_NUMBER_ITEMS,P={[v]:74,[h]:40,[p]:92},W={[v]:"pickAGift",[h]:"pickAnEmoji",[p]:"pickAVote"};function X(e){var t;return null!==(t=W[e])&&void 0!==t?t:""}function D(e){var t;return null!==(t={[v]:T(),[h]:O,[p]:6}[e])&&void 0!==t?t:0}function H(e){var t;return null!==(t={[v]:B(),[h]:!1}[e])&&void 0!==t&&t}function N(){return{CHAT_BODY_OVERLAY_HEIGHT_ITEM:P,CHAT_BODY_OVERLAY_SIZE_OF_GAP:4,CHAT_BODY_OVERLAY_ITEM_PER_LINE:5,CHAT_BODY_OVERLAY_TITLE:W,CHAT_BODY_OVERLAY_HEADER_SIZE:55,CHAT_BODY_OVERLAY_SEPARATOR:30,getNumberOfItems:D,hasSeparator:H,getChatBodyOverlayTitle:X}}a(89463),a(74423),a(27495);const G=["width","height"],U=["fill"],V=["fill"],K=["fill"],j={__name:"GiftIcon",props:{width:{type:Number,default:20},height:{type:Number,default:20},fillColor:{type:String}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height,viewBox:"0 0 20 20",fill:"none"},[(0,i.Lk)("path",{opacity:"0.4","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 2.18718C9.15537 0.871621 7.67947 0 6 0C4.48122 0 3.25 1.23122 3.25 2.75C3.25 4.26878 4.48122 5.5 6 5.5H10H14C15.5188 5.5 16.75 4.26878 16.75 2.75C16.75 1.23122 15.5188 0 14 0C12.3205 0 10.8446 0.871621 10 2.18718ZM6 4H9.16303C8.82445 2.56665 7.53679 1.5 6 1.5C5.30964 1.5 4.75 2.05964 4.75 2.75C4.75 3.44036 5.30964 4 6 4ZM14 4H10.837C11.1755 2.56665 12.4632 1.5 14 1.5C14.6904 1.5 15.25 2.05964 15.25 2.75C15.25 3.44036 14.6904 4 14 4Z",fill:e.fillColor},null,8,U),(0,i.Lk)("path",{d:"M0 6C0 4.89543 0.895431 4 2 4H18C19.1046 4 20 4.89543 20 6V8C20 9.10457 19.1046 10 18 10H2C0.895431 10 0 9.10457 0 8V6Z",fill:e.fillColor},null,8,V),(0,i.Lk)("path",{opacity:"0.4",d:"M2 10H18V18C18 19.1046 17.1046 20 16 20H4C2.89543 20 2 19.1046 2 18V10Z",fill:e.fillColor},null,8,K)],8,G))},Q=(0,r.A)(j,[["__scopeId","data-v-164a07c8"]]);a(3362);var z=a(9928),Y=a(36134),Z=a(1513);const q={key:0,class:"virtual-gifts__item--free"},$={class:"virtual-gifts__item--text"},J={__name:"VirtualGiftItem",props:{item:{type:Object,require:!0}},setup(e){const t=e,a=(0,z.P)(),n=a.state,l=a.getCammerAccount,s=a.updateUserCredits,r=a.showTransitionScreen,c=Zt().closeActionMenu,d=(0,w.I)(),u=d.decrementTotalFreeGifts,v=d.getRealPriceOfGift,p=Y.VisitorService.getInstance();return(a,d)=>((0,i.uX)(),(0,i.CE)("div",{class:"virtual-gifts__item",onClick:d[0]||(d[0]=e=>(async()=>{if(c(),!1===n.value.user.loggedIn)return void r(Z.U9.CONNECT);const e=await p.consumeVirtualGift(l(),t.item.id);if(!1===e.success)snackbar.error(e.error,{timeout:10});else{_local.ga("dl:chat:spend-credits",{value:v(t.item.id),virtual_currency_name:"credits",item_name:t.item.code,item_category:"gift",show_price:t.item.credits});const e=n.value.user.credits-v(t.item.id);u(t.item.id),s(e)}})())},[e.item.number?((0,i.uX)(),(0,i.CE)("div",q,(0,o.v_)(e.item.number),1)):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",{class:(0,o.C4)(["virtual-gifts__item--img","virtual-gift-straight-58-".concat(e.item.id)]),"data-exclude-click-outside":"1"},null,2),(0,i.Lk)("div",$,(0,o.v_)(e.item.credits)+" credits",1)]))}},ee=(0,r.A)(J,[["__scopeId","data-v-3dac84fa"]]),te={key:0,xmlns:"http://www.w3.org/2000/svg",width:"2",height:"32",viewBox:"0 0 2 32",fill:"none"},ae={key:1,xmlns:"http://www.w3.org/2000/svg",width:"2",height:"20",viewBox:"0 0 2 20",fill:"none"},ne={key:2,xmlns:"http://www.w3.org/2000/svg",width:"307",height:"2",viewBox:"0 0 307 2",fill:"none"},ie={key:3,xmlns:"http://www.w3.org/2000/svg",width:"2",height:"24",viewBox:"0 0 2 24",fill:"none"},oe={key:4,xmlns:"http://www.w3.org/2000/svg",width:"1",height:"40",viewBox:"0 0 1 40",fill:"none"},le={__name:"SeparatorIcon",props:{style:{type:String,default:"buttons"}},setup:e=>(t,a)=>"input"===e.style?((0,i.uX)(),(0,i.CE)("svg",te,[...a[0]||(a[0]=[(0,i.Fv)('<path d="M1 0V32" stroke="url
1(#paint0_linear_10978_24772)" stroke-opacity="0.2" data-v-4edae0eb></path><defs data-v-4edae0eb><linearGradient id="paint0_linear_10978_24772" x1="1.5" y1="0" x2="1.5" y2="32" gradientUnits="userSpaceOnUse" data-v-4edae0eb><stop stop-color="white" stop-opacity="0" data-v-4edae0eb></stop><stop offset="0.495" stop-color="white" data-v-4edae0eb></stop><stop offset="1" stop-color="white" stop-opacity="0" data-v-4edae0eb></stop></linearGradient></defs>',2)])])):"toy"===e.style?((0,i.uX)(),(0,i.CE)("svg",ae,[...a[1]||(a[1]=[(0,i.Fv)('<path d="M0.5 0V40" stroke="url(#paint0_linear_11195_33341)" stroke-opacity="0.2" data-v-4edae0eb></path><defs data-v-4edae0eb><linearGradient id="paint0_linear_11195_33341" x1="1" y1="0" x2="1" y2="20" gradientUnits="userSpaceOnUse" data-v-4edae0eb><stop stop-opacity="0" data-v-4edae0eb></stop><stop offset="0.495" data-v-4edae0eb></stop><stop offset="1" stop-opacity="0" data-v-4edae0eb></stop></linearGradient></defs>',2)])])):"profile-menu"===e.style?((0,i.uX)(),(0,i.CE)("svg",ne,[...a[2]||(a[2]=[(0,i.Fv)('<path d="M0 1H307" stroke="url(#paint0_linear_12925_24702)" stroke-opacity="0.2" data-v-4edae0eb></path><defs data-v-4edae0eb><linearGradient id="paint0_linear_12925_24702" x1="0" y1="1.5" x2="307" y2="1.5" gradientUnits="userSpaceOnUse" data-v-4edae0eb><stop stop-color="white" stop-opacity="0" data-v-4edae0eb></stop><stop offset="0.505" stop-color="white" data-v-4edae0eb></stop><stop offset="1" stop-color="white" stop-opacity="0" data-v-4edae0eb></stop></linearGradient></defs>',2)])])):"nav-bar"===e.style?((0,i.uX)(),(0,i.CE)("svg",ie,[...a[3]||(a[3]=[(0,i.Lk)("path",{d:"M1 0V24","stroke-opacity":"0.2"},null,-1)])])):((0,i.uX)(),(0,i.CE)("svg",oe,[...a[4]||(a[4]=[(0,i.Fv)('<path d="M0.5 0V40" stroke="url(#paint0_linear_11195_33341)" stroke-opacity="0.2" data-v-4edae0eb></path><defs data-v-4edae0eb><linearGradient id="paint0_linear_11195_33341" x1="1" y1="0" x2="1" y2="40" gradientUnits="userSpaceOnUse" data-v-4edae0eb><stop stop-opacity="0" data-v-4edae0eb></stop><stop offset="0.495" data-v-4edae0eb></stop><stop offset="1" stop-opacity="0" data-v-4edae0eb></stop></linearGradient></defs>',2)])]))},se=(0,r.A)(le,[["__scopeId","data-v-4edae0eb"]]),re={key:0,class:"virtual-gifts__separator"},ce={__name:"VirtualGiftsOverlay",setup(e){(0,n.$9)((e=>({v2e53fc94:(0,l.R1)(p),v2b369465:f.value})));const t=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,a=(0,w.I)(),s=a.getVirtualGifts,r=a.getSeasonalGifts,c=a.hasSeasonalGifts,d=N(),v=d.CHAT_BODY_OVERLAY_SIZE_OF_GAP,p=d.CHAT_BODY_OVERLAY_ITEM_PER_LINE,f=(0,i.EW)((()=>v+"px"));return(e,a)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["virtual-gifts",{"virtual-gifts--boxed":(0,l.R1)(t)}])},[(0,i.Q3)(" Seasonal gifts first "),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,l.R1)(r)(),((e,t)=>((0,i.uX)(),(0,i.Wv)(ee,{key:t,item:e},null,8,["item"])))),128)),(0,l.R1)(c)()?((0,i.uX)(),(0,i.CE)("div",re,[(0,i.bF)(se,{style:"profile-menu"})])):(0,i.Q3)("v-if",!0),(0,i.Q3)(" Then regular gifts "),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,l.R1)(s)(),((e,t)=>((0,i.uX)(),(0,i.Wv)(ee,{key:t,item:e},null,8,["item"])))),128))],2))}},de=(0,r.A)(ce,[["__scopeId","data-v-50f5848e"]]),ue={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"};const ve={},pe=(0,r.A)(ve,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",ue,[...t[0]||(t[0]=[(0,i.Lk)("path",{d:"M19.9999 3.00081C19.8911 10.388 13.1671 21.6388 3.48346 19.7999C-1.43086 18.8667 -0.168869 12.9792 1.39617 9.75323C2.58563 7.30151 8.27218 2.29513 6.35124 8.1274C5.33124 11.2243 0.220733 12.228 0.795373 15.7568C1.55399 20.4155 6.60902 18.1707 8.29502 15.4924C10.4828 12.017 10.5165 7.6306 13.07 4.16379C14.8928 1.68902 20 -3.1672 20 3.00081H19.9999Z",fill:"white"},null,-1)])])}]]),fe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};const me={},he=(0,r.A)(me,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",fe,[...t[0]||(t[0]=[(0,i.Lk)("path",{d:"M7 17L17 7",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),(0,i.Lk)("path",{d:"M17 17L7 7",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}]]);var _e=a(19385);const ge={class:"toy__intensity--countdown"},Ce={class:"intensity__countdown--duration"},be={__name:"ToyCountdown",props:{duration:{type:Number,required:!0}},emits:["end-countdown"],setup(e,t){const a=t.emit,n=(0,z.P)().state,s=(0,l.KR)(n.value.toy.duration);let r=null;return(0,i.sV)((()=>{r=setInterval((()=>{s.value>0?s.value--:(clearInterval(r),a("end-countdown"))}),1e3)})),(0,i.hi)((()=>{r&&clearInterval(r)})),(e,t)=>((0,i.uX)(),(0,i.CE)("div",ge,[t[0]||(t[0]=(0,i.Fv)('<div class="intensity__countdown--icon" data-v-24cccae9><svg xmlns="http://www.w3.org/2000/svg" width="25" height="24" viewBox="0 0 25 24" fill="none" data-v-24cccae9><path d="M21.5447 12.0004C21.5447 14.4139 20.586 16.7285 18.8794 18.4351C17.1728 20.1416 14.8582 21.1004 12.4447 21.1004" stroke="white" stroke-opacity="0.8" stroke-linecap="round" data-v-24cccae9></path><path d="M3.34473 12.0004C3.34473 10.8054 3.58011 9.62203 4.03743 8.51796C4.49475 7.41389 5.16506 6.41071 6.01007 5.5657C6.85509 4.72069 7.85828 4.05039 8.96234 3.59307C10.0664 3.13576 11.2497 2.90038 12.4448 2.90039" stroke="white" stroke-opacity="0.8" stroke-linecap="round" data-v-24cccae9></path><path d="M23.9448 12C23.9448 15.05 22.7332 17.9751 20.5766 20.1317C18.4199 22.2884 15.4948 23.5 12.4448 23.5" stroke="white" stroke-opacity="0.5" stroke-linecap="round" data-v-24cccae9></path><path d="M0.944824 12C0.944824 10.4898 1.24228 8.99437 1.82022 7.59912C2.39815 6.20388 3.24524 4.93612 4.31312 3.86825C5.381 2.80037 6.64876 1.95329 8.04401 1.37537C9.43926 0.797441 10.9347 0.499991 12.4449 0.5" stroke="white" stroke-opacity="0.5" stroke-linecap="round" data-v-24cccae9></path></svg></div>',1)),(0,i.Lk)("div",Ce,(0,o.v_)(s.value),1)]))}},ye=(0,r.A)(be,[["__scopeId","data-v-24cccae9"]]);var ke=a(94835);const we={class:"toy__intensity","data-exclude-click-outside":"1"},Ee=["data-intensity"],Le={__name:"ToyIntensity",setup(e){const t=(0,z.P)().state,a=Zt().closeActionMenu,n=(0,ke.K)(),o=n.nextIntensityLevel,s=n.toySessionStopped,r=(0,l.KR)(!1);function c(){r.value=!0,a(f),s()}(0,i.hi)((()=>{!1===r.value&&c()}));const d=Object.keys(_e.RO),u=(0,l.KR)(0),v=(0,i.EW)((()=>d[u.value]));const p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,a=!1;return function(){a||(e(...arguments),a=!0,setTimeout((()=>{a=!1}),t))}}((function(){u.value=(u.value+1)%d.length,o(v.value,t.value.toy.duration)}),2e3);return(e,a)=>((0,i.uX)(),(0,i.CE)("div",we,[(0,i.bF)(ye,{duration:(0,l.R1)(t).toy.duration,onEndCountdown:c},null,8,["duration"]),(0,i.Lk)("div",{class:"toy__intensity--step",onClick:a[0]||(a[0]=function(){return(0,l.R1)(p)&&(0,l.R1)(p)(...arguments)})},[a[1]||(a[1]=(0,i.Fv)('<svg xmlns="http://www.w3.org/2000/svg" width="36" height="148" viewBox="0 0 36 148" fill="none" data-v-7b62c2a4>
1<g filter="url(#filter0_b_11526_27524)" data-v-7b62c2a4><path fill-rule="evenodd" clip-rule="evenodd" d="M36.0002 0H16.8986C6.36379 0 -1.29586 10.0046 1.45276 20.1745L5.59477 35.5H36.0002L36.0002 0ZM36.0002 38.5H6.40559L15.5948 72.5H36.0002V38.5ZM25.5948 109.5L16.4056 75.5H36.0002V109.5H25.5948ZM36.0002 112.5H26.4056L36.0002 148L36.0002 112.5Z" fill="white" fill-opacity="0.2" data-v-7b62c2a4></path><path fill-rule="evenodd" clip-rule="evenodd" d="M36.0002 0H16.8986C6.36379 0 -1.29586 10.0046 1.45276 20.1745L5.59477 35.5H36.0002L36.0002 0ZM36.0002 38.5H6.40559L15.5948 72.5H36.0002V38.5ZM25.5948 109.5L16.4056 75.5H36.0002V109.5H25.5948ZM36.0002 112.5H26.4056L36.0002 148L36.0002 112.5Z" fill="url(#paint0_linear_11526_27524)" fill-opacity="0.8" data-v-7b62c2a4></path></g><defs data-v-7b62c2a4><filter id="filter0_b_11526_27524" x="-3.11035" y="-4" width="43.1104" height="156" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-7b62c2a4><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-7b62c2a4></feFlood><feGaussianBlur in="BackgroundImageFix" stdDeviation="2" data-v-7b62c2a4></feGaussianBlur><feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_11526_27524" data-v-7b62c2a4></feComposite><feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_11526_27524" result="shape" data-v-7b62c2a4></feBlend></filter><linearGradient id="paint0_linear_11526_27524" x1="18.4449" y1="0" x2="18.4449" y2="148" gradientUnits="userSpaceOnUse" data-v-7b62c2a4><stop offset="0.2" stop-color="#FF005C" data-v-7b62c2a4></stop><stop offset="0.8" stop-color="#FFD123" data-v-7b62c2a4></stop></linearGradient></defs></svg>',1)),(0,i.Lk)("div",{class:"intensity__step--cursor","data-intensity":v.value},[(0,i.bF)(pe)],8,Ee)])]))}},xe=(0,r.A)(Le,[["__scopeId","data-v-7b62c2a4"]]),Ae={class:"toy__buttons--duration"},Re={class:"time"},Ie={key:0,class:"price__old"},Fe={class:"price"},Me={__name:"ToyButton",props:{item:{type:Object,required:!0}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)("div",Ae,[(0,i.Lk)("span",Re,(0,o.v_)(e.item.DURATION),1),a[0]||(a[0]=(0,i.Lk)("span",{class:"time__unit"},"sec.",-1)),e.item.OLD_PRICE?((0,i.uX)(),(0,i.CE)("span",Ie,(0,o.v_)(e.item.OLD_PRICE),1)):(0,i.Q3)("v-if",!0),(0,i.Lk)("span",Fe,(0,o.v_)(e.item.PRICE),1),a[1]||(a[1]=(0,i.Lk)("span",{class:"price__unit"},"cr",-1))]))},Se=(0,r.A)(Me,[["__scopeId","data-v-31be4a1e"]]);var Te=a(25069),Be=a(73120),Oe=a(18804);const Pe={class:"toy"},We={key:1,class:"toy__buttons","data-exclude-click-outside":"1"},Xe={class:"toy__buttons--icon"},De={__name:"ToyAction",setup(e){const t=Be.W.getInstance(),a=(0,z.P)(),n=a.state,o=a.updateToyDuration,s=a.chatModeIsActive,r=a.updateToyPrice,c=a.showTransitionScreen,d=Zt(),u=d.state,v=d.closeActionMenu,p=(0,ke.K)().requestToySession,h=(0,i.EW)((()=>u.value[m]));return(e,a)=>((0,i.uX)(),(0,i.CE)("div",Pe,[h.value?((0,i.uX)(),(0,i.Wv)(xe,{key:0})):((0,i.uX)(),(0,i.CE)("div",We,[(0,i.Lk)("div",{class:"toy__buttons--close",onClick:a[0]||(a[0]=e=>(0,l.R1)(v)((0,l.R1)(f)))},[(0,i.bF)(he)]),(0,i.bF)(se,{style:"toy"}),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,l.R1)(_e.Gs),((e,a)=>((0,i.uX)(),(0,i.Wv)(Se,{item:e,key:a,onClick:a=>function(e){let a=e.DURATION,i=e.PRICE;if(n.value.user.role!==Te.A.ROLE_USER)return c(Z.U9.CONNECT),!1;if(s(Oe.wz.FREE)&&n.value.toy.visible===_e.w0.PAY)return snackbar.warning(t.translate("interactiveToyOnlyForPaying",{"%nickname%":n.value.cammer.nickname}),{timeout:10}),!1;if(n.value.user.credits<5&&0===n.value.toy.balance)return snackbar.error(t.translate("interactiveToyNotEnoughCredits"),{timeout:10}),!1;if(i>5*n.value.toy.balance+n.value.user.credits)return snackbar.warning(t.translate("interactiveToyNotEnoughCredits"),{timeout:10}),!1;o(a),r(i),p(a)}(e)},null,8,["item","onClick"])))),128)),(0,i.Lk)("div",Xe,[(0,i.bF)(pe)])]))]))}},He=(0,r.A)(De,[["__scopeId","data-v-55a600be"]]),Ne={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"};const Ge={},Ue=(0,r.A)(Ge,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",Ne,[...t[0]||(t[0]=[(0,i.Lk)("path",{d:"M3.53254 3.53919C7.68365 -0.513062 14.3097 -0.513062 18.4608 3.53919C22.5131 7.6903 22.5131 14.3164 18.4608 18.4675C14.315 22.5109 7.57598 22.5109 3.53254 18.4675C-0.510848 14.3216 -0.510848 7.58262 3.53254 3.53919ZM10.9967 1.77922C9.78646 1.77923 8.58825 2.01965 7.47165 2.48652C6.35506 2.9534 5.34233 3.63743 4.49226 4.49891C0.899902 8.09122 0.899902 13.9155 4.49226 17.5078C8.08457 21.1002 13.9089 21.1002 17.5012 17.5078C21.0202 13.8854 21.0202 8.12127 17.5012 4.49886C16.6512 3.63738 15.6384 2.95335 14.5218 2.48648C13.4052 2.01961 12.207 1.77921 10.9967 1.77922ZM15.1695 12.4967C15.5954 12.4967 15.7087 12.9226 15.5954 13.2434H15.5793C14.8427 15.0287 13.0599 16.1034 11.0575 16.1247L10.9967 16.125C9.03585 16.1479 7.24317 15.0207 6.41423 13.2434C6.38088 13.174 6.36278 13.0983 6.36115 13.0213C6.35952 12.9443 6.3744 12.8679 6.4048 12.7971C6.43519 12.7264 6.48038 12.663 6.53734 12.6111C6.5943 12.5593 6.6617 12.5203 6.735 12.4967H6.95334C7.06433 12.4938 7.17388 12.5224 7.26929 12.5792C7.3647 12.6359 7.44207 12.7186 7.49245 12.8175C8.03156 14.0979 9.4117 14.9497 11.0102 14.9497C12.5036 14.9497 13.8891 14.0979 14.4229 12.8175C14.5447 12.5269 14.8749 12.3851 15.1695 12.4967ZM8.33076 6.84406C9.03787 6.84406 9.61115 7.41734 9.61115 8.12445C9.61115 8.83161 9.03787 9.40489 8.33076 9.40489C8.16078 9.41173 7.99122 9.3833 7.83278 9.32137C7.67433 9.25945 7.53043 9.16537 7.41013 9.04508C7.28984 8.92479 7.19577 8.78088 7.13384 8.62244C7.07192 8.46399 7.04348 8.29443 7.05032 8.12445C7.05032 7.4173 7.62361 6.84406 8.33076 6.84406ZM13.8756 6.84406C14.5828 6.84406 15.156 7.41734 15.156 8.12445C15.156 8.83161 14.5827 9.40489 13.8756 9.40489C13.1721 9.39617 12.6039 8.82795 12.5952 8.12445C12.5952 7.4173 13.1684 6.84406 13.8756 6.84406Z",fill:"white"},null,-1)])])}]]),Ve=["innerHTML"],Ke={__name:"EmojisItem",props:{item:{type:String,required:!0}},setup(e){const t=M().selectEmoji;return(a,n)=>((0,i.uX)(),(0,i.CE)("div",{class:"emojis__item",onClick:n[0]||(n[0]=a=>(0,l.R1)(t)(e.item))},[(0,i.Lk)("div",{innerHTML:e.item},null,8,Ve)]))}},je=(0,r.A)(Ke,[["__scopeId","data-v-0bcca25e"]]),Qe={__name:"EmojisOverlay",emits:["close"],setup(e,t){let a=t.emit;(0,n.$9)((e=>({v643ac4b0:(0,l.R1)(v),v40ba44c9:f.value})));
1const s=a,r=M().EMOJI_LIST,c=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,d=N(),v=d.CHAT_BODY_OVERLAY_ITEM_PER_LINE,p=d.CHAT_BODY_OVERLAY_SIZE_OF_GAP,f=(0,i.EW)((()=>p+"px"));return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["emojis-overlay",{"emojis--boxed":(0,l.R1)(c)}])},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,l.R1)(r),((e,a)=>((0,i.uX)(),(0,i.Wv)(je,{key:a,item:e,onClose:t[0]||(t[0]=e=>s("close"))},null,8,["item"])))),128))],2))}},ze=(0,r.A)(Qe,[["__scopeId","data-v-42456df0"]]),Ye=["width","height"],Ze=["stroke"],qe={__name:"TranslationIcon",props:{width:{type:Number,default:24},height:{type:Number,default:24},strokeColor:{type:String,default:"white"}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height,viewBox:"0 0 24 24",fill:"none"},[(0,i.Lk)("path",{d:"M12.913 17H20.087M12.913 17L11 21M12.913 17L15.7783 11.009C16.0092 10.5263 16.1246 10.2849 16.2826 10.2086C16.4199 10.1423 16.5801 10.1423 16.7174 10.2086C16.8754 10.2849 16.9908 10.5263 17.2217 11.009L20.087 17M20.087 17L22 21M2 5H8M8 5H11.5M8 5V3M11.5 5H14M11.5 5C11.0039 7.95729 9.85259 10.6362 8.16555 12.8844M10 14C9.38747 13.7248 8.76265 13.3421 8.16555 12.8844M8.16555 12.8844C6.81302 11.8478 5.60276 10.4266 5 9M8.16555 12.8844C6.56086 15.0229 4.47143 16.7718 2 18",stroke:e.strokeColor,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ze)],8,Ye))},$e={FR:"Français",EN:"English",IT:"Italiano",ES:"Español",DE:"Deutsch",JA:"æ¥æ¬èª",NL:"Nederlands",PT:"Português",ZH:"䏿"},Je={class:"translation__container"},et={class:"translation__inner"},tt={class:"translation__header"},at={class:"translation__languages"},nt=["onClick"],it={__name:"AutoTranslatePopover",props:{selectedLanguage:{type:[String,null]}},setup(e){var t;const a=e,n=(0,z.P)(),s=n.state,r=n.changeTranslationLanguage,c=Be.W.getInstance(),d={autoTranslation:c.translate("autoTranslation.translateInto"),off:c.translate("autoTranslation.off")},u={...$e,OFF:d.off},v=(0,l.KR)(null!==(t=a.selectedLanguage)&&void 0!==t?t:u.OFF),p=Y.VisitorService.getInstance();return(e,t)=>((0,i.uX)(),(0,i.CE)("div",Je,[(0,i.Lk)("div",et,[(0,i.Lk)("div",tt,(0,o.v_)(d.autoTranslation),1),(0,i.Lk)("div",at,[((0,i.uX)(),(0,i.CE)(i.FK,null,(0,i.pI)(u,((e,t)=>(0,i.Lk)("span",{class:(0,o.C4)(["translation__language",{"is-selected":v.value===t}]),onClick:e=>(async e=>{v.value=e,s.value.user.loggedIn&&await p.updateTranslationLanguage("OFF"===e?"":e),r("OFF"===e?null:e)})(t)},(0,o.v_)(e),11,nt))),64))])])]))}},ot=(0,r.A)(it,[["__scopeId","data-v-adfa03a4"]]),lt={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",viewBox:"0 0 22 16",fill:"none"};const st={},rt=(0,r.A)(st,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",lt,[...t[0]||(t[0]=[(0,i.Lk)("path",{d:"M22 7.74983C20.812 9.80039 19.8542 13.719 19.1839 15.9997C13.7129 14.747 8.25954 14.7675 2.81326 15.9818C2.00703 13.7611 1.08471 9.84242 0 7.74993C1.72528 8.11234 3.07941 9.5394 3.89571 11.2388C4.23399 12.2557 5.83899 12.1841 5.59348 10.9945C5.12762 9.36972 4.86408 7.75841 5.36458 6.05968C6.91506 7.03082 7.91749 8.55749 8.04062 10.581C8.2379 11.855 10.2298 11.6086 9.75282 10.1737C8.59791 6.71092 8.90196 3.03809 10.964 0C12.9884 2.91874 13.4073 6.638 12.2078 10.0697C11.5966 11.5187 13.5944 11.8969 13.8533 10.6377C14.0194 8.61602 14.9904 6.96381 16.5965 6.10163C16.9256 7.66461 16.8694 9.23656 16.3725 10.7401C15.9524 11.7127 17.0169 12.3308 17.6826 11.717C18.7754 9.89647 19.9464 8.13054 22 7.74983Z",fill:"white"},null,-1)])])}]]);a(25440);var ct=a(95209),dt=a(85144),ut=a(52275),vt=a(20174),pt=a(60419),ft=a(80646),mt=a(28169),ht=a(9515),_t=a(71252);const gt={key:0,class:"camsfactor-votes__locked"},Ct={class:"camsfactor-votes__locked-icon"},bt={class:"camsfactor-votes__locked-title"},yt={class:"camsfactor-votes__locked-subtitle"},kt={class:"camsfactor-votes__wrapper"},wt={class:"camsfactor-votes__texts"},Et={class:"camsfactor-votes__text"},Lt=["innerHTML"],xt={class:"camsfactor-votes__rules"},At={class:"camsfactor-votes__items"},Rt={class:"camsfactor-votes__items-grid"},It={__name:"CamsFactorOverlay",setup(e){const t=(0,z.P)(),a=t.state,s=t.getCammerAccount,r=t.updateUserCredits,c=t.showTransitionScreen,d=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,v=Zt().closeActionMenu,p=(0,_t.u)({userCredits:(0,i.EW)((()=>a.value.user.credits)),userRole:(0,i.EW)((()=>a.value.user.role)),cammerId:()=>s(),onVoteSuccess:e=>
1{let t=e.product,a=e.priceOfVote,n=e.remainingCredits;R.value=null,v(),_local.ga("dl:chat:spend-credits",{value:a,virtual_currency_name:"credits",item_name:t.code,item_category:"vote",show_price:t.credits}),r(n)},onVoteError:e=>{var t,a;let n=e.error,i=e.productId;R.value=null,snackbar.error(n,{timeout:10,actionLabel:null!==(t=null===(a=P.value)||void 0===a?void 0:a.retry)&&void 0!==t?t:"Retry",onActionCallback:()=>I(i)})}}),f=p.askForConfirmation,m=p.warnInsufficientCredits,h=p.targetedVotes,_=p.missingCredits,g=p.showConfirmation,C=p.cancelVote,b=p.cancelRefill,y=p.insufficientCreditsConfirmHandler,k=p.isAudiotelUser,w=p.confirmVote,E=p.notEnoughCreditForProduct,L=p.getCamsfactorItems,x=p.getRealPriceOfVote,A=p.getTotalFreeVotes,R=(0,l.KR)(null);(0,i.wB)(m,(e=>{e&&(R.value=null)}));const I=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;"loading"!==R.value&&(R.value="loading",await w(e))},F=()=>{c(Z.U9.CONNECT)},M=(0,i.EW)((()=>a.value.user.loggedIn&&!a.value.user.payingUser)),S=()=>{v(),vt.o.getInstance().navigate("/payment2018")},T=(0,l.KR)(!1),B=ut.h.getInstance(),O=(0,l.KR)(null),P=(0,i.EW)((()=>{var e,t;return null!==(e=null===(t=O.value)||void 0===t?void 0:t.translations)&&void 0!==e?e:{}})),W=(0,i.EW)((()=>{var e,t;let n=B.replace(null!==(e=null===(t=P.value)||void 0===t?void 0:t.textHeadline)&&void 0!==e?e:"",{"%model_name%":a.value.cammer.nickname});return"xcams"!==a.value.user.brandName&&(n=n.replace("XcamsFactor","CamsFactor")),n})),X=(0,i.EW)((()=>"xcams"===a.value.user.brandName?"XCAMS FACTOR":"CAMS FACTOR")),D=(0,i.EW)((()=>k()?P.value.insufficientCreditTextSublineAudioVisitor:P.value.insufficientCreditTextSubline)),H=(0,i.EW)((()=>k()?"Ok":P.value.insufficientCreditButtonRefill));return(0,i.sV)((async()=>{const e=dt.Q.getInstance();O.value=await e.get("/chat-overlay/cams-factor"),T.value=!0})),(e,t)=>{var s,r,c;return(0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["camsfactor-votes",{"camsfactor-votes--boxed":(0,l.R1)(d),"is-visible":T.value}])}
1,[(0,i.Q3)(" State: Locked (non-paying user) "),M.value?((0,i.uX)(),(0,i.CE)("div",gt,[(0,i.Lk)("div",Ct,[(0,i.bF)(ht.A,{color:"rgba(255, 255, 255, 0.8)"})]),(0,i.Lk)("p",bt,(0,o.v_)(null!==(s=P.value.votingLockedTitle)&&void 0!==s?s:"Locked"),1),(0,i.Lk)("p",yt,(0,o.v_)(null!==(r=P.value.votingLockedSubtitle)&&void 0!==r?r:"Unlock and vote on your favourite girl with your first purchase. Free votes everyday."),1),(0,i.Lk)("button",{class:"camsfactor-votes__locked-cta",onClick:S},[(0,i.bF)(ht.A,{color:"white"}),(0,i.eW)(" "+(0,o.v_)(null!==(c=P.value.votingLockedCta)&&void 0!==c?c:"Unlock now"),1)])])):((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[(0,i.Q3)(" State: Default (vote selection) "),(0,i.bo)((0,i.Lk)("div",kt,[(0,i.Lk)("div",wt,[(0,i.Lk)("p",null,[(0,i.eW)((0,o.v_)(X.value),1),t[5]||(t[5]=(0,i.Lk)("br",null,null,-1)),t[6]||(t[6]=(0,i.Lk)("span",{class:"camsfactor-votes__year"},"2026",-1))]),(0,i.Lk)("div",Et,[(0,i.Lk)("p",{innerHTML:W.value},null,8,Lt),(0,i.Lk)("ul",xt,[(0,i.Lk)("li",null,(0,o.v_)(P.value.textListItem1),1),(0,i.Lk)("li",null,(0,o.v_)(P.value.textListItem2),1)])])]),t[7]||(t[7]=(0,i.Lk)("div",{class:"camsfactor__separator"},null,-1)),(0,i.Lk)("div",At,[(0,i.Lk)("div",Rt,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,l.R1)(L)(),((e,n)=>((0,i.uX)(),(0,i.Wv)(pt.A,{key:n,id:e.id,quantity:e.credits,balance:1==+e.credits?(0,l.R1)(A)():0,"is-logged-in":(0,l.R1)(a).user.loggedIn,"user-credits":(0,l.R1)(a).user.credits,"get-real-price-of-vote":(0,l.R1)(x),"get-camsfactor-items":(0,l.R1)(L),onNeedsConfirmation:t[0]||(t[0]=e=>(0,l.R1)(g)(e)),onConfirmVote:t=>I(e.id),onNotEnoughCredits:(0,l.R1)(E),onNotLoggedIn:F},null,8,["id","quantity","balance","is-logged-in","user-credits","get-real-price-of-vote","get-camsfactor-items","onConfirmVote","onNotEnoughCredits"])))),128))])])],512),[[n.aG,!(0,l.R1)(f)&&!(0,l.R1)(m)]]),(0,i.bo)((0,i.bF)(ft.A,{translations:{headline:P.value.confirmTextHeadline,subline:P.value.confirmTextSubline,cancelButton:P.value.confirmButtonCancel,confirmButton:P.value.confirmButtonConfirm},"model-nickname":(0,l.R1)(a).cammer.nickname,"brand-name":(0,l.R1)(a).user.brandName,"vote-quantity":(0,l.R1)(h),onCancel:t[1]||(t[1]=e=>(0,l.R1)(C)()),onConfirm:t[2]||(t[2]=e=>I())},null,8,["translations","model-nickname","brand-name","vote-quantity"]),[[n.aG,(0,l.R1)(f)]]),(0,i.bo)((0,i.bF)(mt.A,{credits:(0,l.R1)(_),votes:(0,l.R1)(h),translations:{headline:P.value.insufficientCreditTextHeadline,subline:D.value,cancelButton:P.value.insufficientCreditButtonCancel,okButton:H.value},"model-nickname":(0,l.R1)(a).cammer.nickname,"brand-name":(0,l.R1)(a).user.brandName,onCancel:t[3]||(t[3]=e=>(0,l.R1)(b)()),onConfirm:t[4]||(t[4]=e=>(0,l.R1)(y)())},null,8,["credits","votes","translations","model-nickname","brand-name"]),[[n.aG,(0,l.R1)(m)]])],64)),(0,i.Q3)(" Overlay: Loading (voting in progress) "),(0,i.bF)(ct.A,{"is-visible":"loading"===R.value,translations:P.value},null,8,["is-visible","translations"])],2)}}},Ft=(0,r.A)(It,[["__scopeId","data-v-fec39c9c"]]);function Mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,o,l,s=[],r=!0,c=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;r=!1}else for(;!(r=(n=o.call(a)).done)&&(s.push(n.value),s.length!==t);r=!0);}catch(e){c=!0,i=e}finally{try{if(!r&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return St(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?St(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}const Tt=(0,z.P)(),Bt=Tt.state,Ot=Tt.showTransitionScreen,Pt=Object.freeze({[v]:{name:v,icon:Q,component:de,type:b,persistent:!1},[p]:{name:p,icon:rt,component:Ft,type:b,persistent:!1,preventAction:()=>!Bt.value.user.loggedIn&&(Ot(Z.U9.CONNECT),!0)},[f]:{name:f,icon:pe,component:He,type:k,persistent:!0},[h]:{name:h,icon:Ue,component:ze,type:b,persistent:!1},[_]:{name:_,icon:qe,component:ot,type:k,persistent:!1},[g]:{name:g,icon:null,component:null,type:y,persistent:!1},[C]:{name:C,icon:null,component:null,type:k,persistent:!1}}),Wt=(0,l.KR)({displayed:null,[v]:!1,[f]:!1,[m]:(0,i.EW)((()=>"TOY_IN_USE_BY_USER"===Bt.value.toy.status)),[h]:!1,[_]:!1,[g]:!1,[C]:!1});function Xt(e){return Object.keys(Pt).includes(e)}function Dt(e){return Wt.value[e]}function Ht(){return Wt.value.displayed}function Nt(){var e;return(null===(e=Pt[Ht()])||void 0===e?void 0:e.type)===b}function Gt(){var e;return(null===(e=Pt[Ht()])||void 0===e?void 0:e.type)===k}function Ut(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;var n,i;return null===a?null!==(n=null===(i=Pt[Wt.value.displayed])||void 0===i?void 0:i.icon)&&void 0!==n?n:null:null!==(e=null===(t=Pt[a])||void 0===t?void 0:t.icon)&&void 0!==e?e:null}function Vt(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;var n,i;return null===a?null!==(n=null===(i=Pt[Wt.value.displayed])||void 0===i?void 0:i.name)&&void 0!==n?n:null:null!==(e=null===(t=Pt[a])||void 0===t?void 0:t.name)&&void 0!==e?e:null}function Kt(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;var n,i;return null===a?null!==(n=null===(i=Pt[Wt.value.displayed])||void 0===i?void 0:i.component)&&void 0!==n?n:null:null!==(e=null===(t=Pt[a])||void 0===t?void 0:t.component)&&void 0!==e?e:null}function jt(){return Object.entries(Wt.value).some((e=>{let t=Mt(e,2),a=t[0],n=t[1];const i=Pt[a];return!(!i||i.persistent)&&("boolean"==typeof n?n:"function"==typeof n&&n())}))}function Qt(e){if(Xt(e)){if(Pt[e].hasOwnProperty("preventAction")&&"function"==typeof Pt[e].preventAction){if(Pt[e].preventAction())return}Object.keys(Pt).forEach((t=>{t!==e&&(Pt[t].persistent||zt(Pt[t].name))})),Wt.value.displayed=e,Wt.value[e]=!0}}function zt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=()=>document.dispatchEvent(new CustomEvent("hide:popover"));Wt.value[e]&&(Wt.value[e]=!1,Wt.value.displayed=null,e===C&&t()),null===e&&(Object.keys(Pt).forEach((e=>{Pt[e].persistent||(Pt[e].name===C&&t(),Wt.value[e]=!1)})),Wt.value.displayed=null)}function Yt(){Wt.value.displayed=null,Object.keys(Pt).forEach((e=>{Wt.value[e]=!1}))}function Zt(){return{state:Wt,showActionMenu:Qt,closeActionMenu:zt,isActionMenuDisplayed:Dt,getActionMenuIcon:Ut,getActionMenuName:Vt,getActionMenuComponent:Kt,hasChatBodyOverlayDisplayed:Nt,hasPopoverActionDisplayed:Gt,resetActionMenu:Yt,hasActiveNonPersistentAction:jt}}const qt=Zt(),$t=qt.hasChatBodyOverlayDisplayed,Jt=qt.getActionMenuName,ea=N(),ta=ea.CHAT_BODY_OVERLAY_ITEM_PER_LINE,aa=ea.CHAT_BODY_OVERLAY_SIZE_OF_GAP,na=ea.CHAT_BODY_OVERLAY_HEIGHT_ITEM,ia=ea.CHAT_BODY_OVERLAY_HEADER_SIZE,oa=ea.CHAT_BODY_OVERLAY_SEPARATOR,la=ea.getNumberOfItems,sa=ea.hasSeparator,ra={desktop:606,mobile:30*window.innerHeight/100+124}
1,ca=80*window.innerHeight/100,da=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,ua=(0,i.EW)((()=>da.value?ra.desktop:ra.mobile)),va=(0,l.KR)(ua.value);function pa(e){va.value=e}const fa=(0,i.EW)((()=>{if($t()){const e=function(){const e=la(Jt()),t=na[Jt()];if(!Number.isFinite(e)||e<0)return console.error("Invalid number of item."),va.value;const a=Math.ceil(e/ta),n=(a-1)*aa;let i=124+ia;return sa(Jt())&&(i+=oa),Jt()===p&&(i+=190),a*t+n+i}();return"".concat(e,"px")}return"".concat(va.value,"px")}));function ma(){return{MIN_HEIGHT:260,MAX_HEIGHT:ca,getCurrentHeight:ua,currentHeightDisplayed:fa,resizeChatBodyContainerHeight:pa}}const ha={__name:"ResizeHandle",props:{containerRef:{type:Object}},emits:["is-resizing"],setup(e,t){let a=t.emit;const n=e,o=a,s=(0,l.KR)(!1),r=(0,l.KR)({startY:0,startHeight:0}),c=e=>{s.value=!0,r.value.startY=e.clientY,r.value.startHeight=n.containerRef.offsetHeight,o("is-resizing",!0),document.addEventListener("pointermove",m),document.addEventListener("pointerup",h)},u=ma(),v=u.MIN_HEIGHT,p=u.MAX_HEIGHT,f=u.resizeChatBodyContainerHeight,m=e=>{if(!s.value)return;const t=r.value.startY-e.clientY,a=r.value.startHeight+t;a>v&&a<p&&f(a)},h=()=>{s.value=!1,o("is-resizing",!1),document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",h)};return(0,i.xo)((()=>{document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",h)})),(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"resize-handle",onPointerdown:c},[(0,i.bF)(d)],32))}},_a=(0,r.A)(ha,[["__scopeId","data-v-524abb1e"]]);var ga=a(82268),Ca=a(38731),ba=a(54758),ya=a(28427);const ka={class:"vip-button-wrapper"},wa={__name:"VIPButton",props:{price:{type:[Number,null]},isLoading:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){const t=(0,z.P)().state,a=Be.W.getInstance(),n=e,s=(0,i.EW)((()=>n.disabled&&t.value.user.role===Te.A.ROLE_AUDIOTEL)),r=(0,i.EW)((()=>s.value?ya.A:"span")),c=(0,i.EW)((()=>s.value?a.translate("privateShowsNotAccessibleByPhone"):void 0));return(t,n)=>((0,i.uX)(),(0,i.CE)("div",ka,[((0,i.uX)(),(0,i.Wv)((0,i.$y)(r.value),{content:c.value,position:"top"},{default:(0,i.k6)((()=>[(0,i.bF)(ba.A,{class:(0,o.C4)({disabled:e.disabled,active:e.active}),price:e.price,color:"#FF8B32","is-loading":e.isLoading,active:e.active},{text:(0,i.k6)((()=>[(0,i.eW)((0,o.v_)((0,l.R1)(a).translate("chatMode.vip")),1)])),price:(0,i.k6)((()=>[(0,i.eW)((0,o.v_)(e.price),1)])),_:1},8,["class","price","is-loading","active"])])),_:1},8,["content"]))]))}},Ea=(0,r.A)(wa,[["__scopeId","data-v-32df18b0"]]);var La=a(40421);const xa={__name:"GoButtons",setup(e){const t=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,a=(0,z.P)(),n=a.state,s=a.chatModeIsActive,r=a.joinPaidShow,c=a.requestVIPShow,d=a.voyeurButtonVisible,v=a.isChatButtonDisabled,p=(0,i.EW)((()=>({free:{visible:s(Oe.wz.FREE),active:s(Oe.wz.FREE),disabled:v(Oe.wz.FREE),loading:!1},private:{visible:!0,active:s(Oe.wz.PRIVATE),disabled:v(Oe.wz.PRIVATE),loading:!1},vip:{visible:!d(),active:s(Oe.wz.VIP),disabled:v(Oe.wz.VIP),loading:!1},voyeur:{visible:d(),active:s(Oe.wz.VOYEUR),disabled:v(Oe.wz.VOYEUR),loading:!1}})));function f(){n.value.chatButtonLoading||p.value.free.active||p.value.free.disabled}function m(){n.value.chatButtonLoading||p.value.private.active||p.value.private.disabled||[Oe.wz.VIP,Oe.wz.VOYEUR].includes(n.value.chatMode)&&n.value.chatModeJoined||r()}function h(){n.value.chatButtonLoading||p.value.vip.active||p.value.vip.disabled||c()}return(e,a)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["chat__go-buttons",{"chat__go-buttons--boxed":(0,l.R1)(t)}])},[p.value.free.visible?((0,i.uX)(),(0,i.Wv)(ga.A,{key:0,class:(0,o.C4)({active:p.value.free.active,disabled:p.value.free.disabled}),active:p.value.free.active,"is-loading":(0,l.R1)(n).chatButtonLoading===(0,l.R1)(Oe.wz).FREE,onClick:f},null,8,["class","active","is-loading"])):(0,i.Q3)("v-if",!0),p.value.free.visible?((0,i.uX)(),(0,i.Wv)(se,{key:1})):(0,i.Q3)("v-if",!0),p.value.private.visible?((0,i.uX)(),(0,i.Wv)(Ca.A,{key:2,class:(0,o.C4)({active:p.value.private.active,disabled:p.value.private.disabled}),price:(0,l.R1)(n).cammer.tariffs.private,active:p.value.private.active,"is-loading":(0,l.R1)(n).chatButtonLoading===(0,l.R1)(Oe.wz).PRIVATE,onClick:m},null,8,["class","price","active","is-loading"])):(0,i.Q3)("v-if",!0),p.value.private.visible?((0,i.uX)(),(0,i.Wv)(se,{key:3})):(0,i.Q3)("v-if",!0),p.value.vip.visible?((0,i.uX)(),(0,i.Wv)(Ea,{key:4,class:(0,o.C4)({active:p.value.vip.active,disabled:p.value.vip.disabled}),price:(0,l.R1)(n).cammer.tariffs.vip,active:p.value.vip.active,disabled:p.value.vip.disabled,"is-loading":(0,l.R1)(n).chatButtonLoading===(0,l.R1)(Oe.wz).VIP,onClick:h},null,8,["class","price","active","disabled","is-loading"])):(0,i.Q3)("v-if",!0),p.value.voyeur.visible?((0,i.uX)(),(0,i.Wv)(La.A,{key:5,class:(0,o.C4)({active:p.value.voyeur.active,disabled:p.value.voyeur.disabled}),active:p.value.voyeur.active,price:(0,l.R1)(n).cammer.tariffs.voyeur,"is-loading":(0,l.R1)(n).chatButtonLoading===(0,l.R1)(Oe.wz).VOYEUR},null,8,["class","active","price","is-loading"])):(0,i.Q3)("v-if",!0)],2))}},Aa=(0,r.A)(xa,[["__scopeId","data-v-54c9464c"]]),Ra={__name:"ChatRoom",props:{isDisabled:{type:Boolean}},setup(e){const t=Zt(),a=(t.state,t.closeActionMenu);return(0,i.sV)((()=>{document.addEventListener("hide:popover",(e=>a(C)))})),(t,a)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["chat__room",{"is-disabled":e.isDisabled}])},[(0,i.RG)(t.$slots,"content")],2))}},Ia=(0,r.A)(Ra,[["__scopeId","data-v-0a3f457c"]]);var Fa=a(1023),Ma=a(59824);const Sa={class:"message__container info-message__container"},Ta=["id"],Ba={class:"info-message__icon"},Oa=["innerHTML"],Pa={__name:"InfoMessage",props:{message:{type:Object,required:!0}},setup:e=>(t,a)=>{var n;return(0,i.uX)(),(0,i.CE)("div",Sa,[(0,i.Lk)("div",{id:"message-".concat(e.message.uuid),class:(0,o.C4)(["info-message",{"info-message--camsfactor":e.message.metadata.context===(0,l.R1)(Ma.A).CAMSFACTOR}])},[(0,i.Lk)("div",Ba,[(0,i.bF)(Fa.A)]),(0,i.Lk)("p",{class:"info-message__content",innerHTML:e.message.text},null,8,Oa),e.message.metadata.suffixIcon?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,o.C4)(["info-message__suffix_icon",
1null===(n=e.message.metadata.suffixIcon)||void 0===n?void 0:n.class])},null,2)):(0,i.Q3)("v-if",!0)],10,Ta)])}},Wa=(0,r.A)(Pa,[["__scopeId","data-v-0668a7ad"]]),Xa={xmlns:"http://www.w3.org/2000/svg",width:"150",height:"32",viewBox:"0 0 150 32",fill:"none"},Da=["fill"],Ha=["id"],Na=["stop-color"],Ga=["stop-color"],Ua={__name:"WelcomeMessageShape",props:{color:{type:String,required:!0}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)("svg",Xa,[(0,i.Lk)("path",{d:"M9.91821e-05 32.0005L-2.62266e-06 2.00077L0.000142336 0.000732422L150.001 0.000707864L150.001 2.00075L144.981 2.00071C55.4939 2.00072 68.7254 32.0005 2.21813 32.0005L9.91821e-05 32.0005Z",fill:"url(#117016-".concat(e.color,")")},null,8,Da),(0,i.Lk)("defs",null,[(0,i.Lk)("linearGradient",{id:"117016-".concat(e.color),x1:"-1.39875e-06",y1:"16.0006",x2:"150.001",y2:"16.0005",gradientUnits:"userSpaceOnUse"},[(0,i.Lk)("stop",{offset:"0.705","stop-color":e.color},null,8,Na),(0,i.Lk)("stop",{offset:"1","stop-color":e.color,"stop-opacity":"0"},null,8,Ga)],8,Ha)])]))},Va={class:"message__container welcome-message__container"},Ka=["id"],ja={class:"welcome-message__header"},Qa={class:"chat-mode-status-container"},za={class:"chat-mode-status"},Ya={class:"status__text"},Za={class:"chat-mode-shape"},qa={key:0,class:"chat-mode-price price__container"},$a={class:"price__number"},Ja=["innerHTML"],en={__name:"WelcomeMessage",props:{message:{type:Object,required:!0}},setup(e){(0,n.$9)((e=>({da91fda0:l.value.color})));const t=e,a=Be.W.getInstance(),l=(0,i.EW)((()=>{let e="",n=t.message.chatModeJoined,i=t.message.chatModeJoined;switch(t.message.chatModeJoined){case Oe.wz.FREE:e="#06C36A";break;case Oe.wz.PRIVATE:case Oe.wz.PRIVATE_PREVIEW:e="#FFD123",n=a.translate("privateCTA"),i=Oe.wz.PRIVATE;break;case Oe.wz.VIP:e="#FF8B32";break;case Oe.wz.VOYEUR:e="#A194E5"}return{color:e,statusText:n.toUpperCase(),theme:i.toUpperCase()}}));return(t,a)=>((0,i.uX)(),(0,i.CE)("div",Va,[(0,i.Lk)("div",{id:"message-".concat(e.message.uuid),class:(0,o.C4)(["welcome-message","welcome-message--".concat(l.value.theme)])},[(0,i.Lk)("div",ja,[(0,i.Lk)("div",Qa,[(0,i.Lk)("div",za,[a[0]||(a[0]=(0,i.Lk)("div",{class:"status__bullet"},null,-1)),(0,i.Lk)("div",Ya,(0,o.v_)(l.value.statusText),1)]),(0,i.Lk)("div",Za,[(0,i.bF)(Ua,{color:l.value.color},null,8,["color"])])]),e.message.price>0?((0,i.uX)(),(0,i.CE)("div",qa,[(0,i.Lk)("div",$a,(0,o.v_)(e.message.price),1),a[1]||(a[1]=(0,i.Fv)('<div class="price__unit" data-v-5f5a6fe2><div class="unit__credits" data-v-5f5a6fe2><span class="unit__credit" data-v-5f5a6fe2>cr</span><span class="unit__separator" data-v-5f5a6fe2>/</span></div><div class="unit__minute" data-v-5f5a6fe2>min.</div></div>',1))])):(0,i.Q3)("v-if",!0)]),(0,i.Lk)("p",{class:"welcome-message__content",innerHTML:e.message.text},null,8,Ja)],10,Ka)]))}},tn=(0,r.A)(en,[["__scopeId","data-v-5f5a6fe2"]]),an=Object.freeze({ME:Symbol("me"),CAMMER:Symbol("cammer"),OTHER:Symbol("other")}),nn={class:"reaction__container--counter"},on={__name:"Reaction",props:{emoji:{type:String,required:!0},count:{type:Number,default:1},senderRole:{type:String}},setup(e){const t=e,a=ut.h.getInstance(),n=(0,i.EW)((()=>{try{const e=a.htmlHexToJsHex(t.emoji);return String.fromCodePoint(e)}catch(zs){return a.decimalToJsHex(t.emoji)}}));return(t,a)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["reaction__container","reaction__container--".concat(e.senderRole.toLowerCase())])},[(0,i.Lk)("div",null,(0,o.v_)(n.value),1),(0,i.Lk)("div",nn,(0,o.v_)(e.count),1)],2))}},ln=(0,r.A)(on,[["__scopeId","data-v-2b64ba94"]]),sn={class:"reactions__container"},rn={__name:"Reactions",props:{reactions:{type:Object},senderRole:{type:String},messageId:{type:String}},setup(e){const t=e;return(a,n)=>((0,i.uX)(),(0,i.CE)("div",sn,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.reactions,((a,n)=>((0,i.uX)(),(0,i.Wv)(ln,{emoji:n,count:Object.keys(a).length,"sender-role":e.senderRole,onClick:e=>{return a=n,void document.dispatchEvent(new CustomEvent("send:reaction",{detail:{messageId:t.messageId,reaction:a}}));var a}},null,8,["emoji","count","sender-role","onClick"])))),256))]))}},cn=(0,r.A)(rn,[["__scopeId","data-v-4094a2dc"]]);var dn=a(29925),un=a(28769),vn=a(61547);const pn={class:"translation-info__container"},fn={__name:"TranslationInfo",props:{translationLocale:{type:String,required:!0}},setup(e){const t=e;return(e,a)=>((0,i.uX)(),(0,i.CE)("div",pn,[(0,i.bF)(qe,{width:16,height:"16"}),(0,i.Lk)("p",null,(0,o.v_)(t.translationLocale),1)]))}},mn=(0,r.A)(fn,[["__scopeId","data-v-03972ee4"]]),hn=["id"],_n={class:"message_title"},gn={key:0,id:"icon-crown-svg"},Cn=["innerHTML"],bn={key:2,class:"message-contextual-infos"},yn=["innerHTML"],kn={__name:"Message",props:{message:{type:[un.A,dn.A,vn.A],required:!0},previous:{type:Object,default:null}},setup(e){const t=e,a=(0,i.rk)("message"),l=(0,i.EW)((()=>!!t.previous&&t.previous.senderId===t.message.senderId)),s=(0,i.EW)((()=>{const e=Object.keys(an).find((e=>e===t.message.senderRole));return e?an[e].description:null})),r=(0,i.EW)((()=>"message__container__".concat(s.value))),c=(0,i.EW)((()=>Object.keys(t.message.reactions).length)),d=(0,i.EW)((()=>{const e=40*c.value;return"min-width: ".concat(e,"px")})),u=(0,z.P)().state,v=(0,i.EW)((()=>u.value.seasonalEvent===Ma.A.CAMSFACTOR&&+u.value.bestTipper.visitorId==+t.message.senderId)),p=Zt().showActionMenu,f=e=>{if(null!==e.target.closest(".reactions__container"))return;const n=a.value.getBoundingClientRect();s.value!==an.ME.description&&(p(C),document.dispatchEvent(new CustomEvent("show:popover",{detail:{messageId:t.message.uuid,messageBoundingRect:n,popoverSize:{width:340,height:40}}})))};return(t,a)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["message__container",[{"message__container__with-reactions":Object.keys(e.message.reactions).length>0,message__container__translated:null!==e.message.translatedLocale,"message__container--best-tipper":v.value},r.value]])},[(0,i.Lk)("div",{id:"message-".concat(e.message.uuid),ref:"message",class:(0,o.C4)(["message",{"message__with-same-sender":l.value}]),"data-exclude-click-outside":"1",style:(0,o.Tr)(d.value),onClick:f},[(0,i.Lk)("div",_n,[v.value?((0,i.uX)(),(0,i.CE)("svg",gn,[...a[0]||(a[0]=[(0,i.Lk)("use",{"xlink:href":"#icon-crown"},null,-1)])])):(0,i.Q3)("v-if",!0),l.value?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)("span",{key:1,innerHTML:e.message.senderNickname,class:"sender-nickname"},null,8,Cn)),null===e.message.translatedLocale||l.value?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)("div",bn,[(0,i.bF)(mn,{"translation-locale":e.message.translatedLocale}
1,null,8,["translation-locale"])]))]),(0,i.Lk)("p",{class:"message-content",innerHTML:e.message.text},null,8,yn),(0,i.bF)(n.eB,null,{default:(0,i.k6)((()=>[Object.keys(e.message.reactions).length>0?((0,i.uX)(),(0,i.Wv)(cn,{key:0,reactions:e.message.reactions,senderRole:e.message.senderRole,messageId:e.message.uuid,class:"message-reactions"},null,8,["reactions","senderRole","messageId"])):(0,i.Q3)("v-if",!0)])),_:1})],14,hn)],2))}},wn=(0,r.A)(kn,[["__scopeId","data-v-7f6ffc52"]]);var En=a(64430);function Ln(e){let t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];n&&!t&&e(...o),clearTimeout(t),t=setTimeout((()=>{e(...o)}),a)}}var xn=a(75724);const An={__name:"PublicRoom",props:{isDisabled:{type:Boolean}},setup(e){const t=(0,z.P)(),a=t.state,o=t.getPublicMessages,s=(0,l.KR)(null);function r(){s.value.scrollTop=s.value.scrollHeight}(0,i.wB)((()=>a.value.messages[xn.w.PUBLIC].size),(()=>{(0,i.dY)((()=>{r()}))})),(0,i.wB)((()=>a.value.scrollToLastMessage[xn.w.PUBLIC]),((e,t)=>{e&&(0,i.dY)((()=>{r(),a.value.scrollToLastMessage[xn.w.PUBLIC]=!1}))}));const c=Zt().closeActionMenu,d=Ln((()=>c(C)),200);return(t,a)=>((0,i.uX)(),(0,i.Wv)(Ia,{isDisabled:e.isDisabled},{content:(0,i.k6)((()=>[(0,i.Q3)(" the container of PS is the secret_room "),(0,i.bF)(En.A,{"container-element":s.value,onPsScrollY:(0,l.R1)(d)},{default:(0,i.k6)((()=>[(0,i.Lk)("div",{class:"public_room",ref_key:"messageContainer",ref:s},[(0,i.bF)(n.F,{name:"messages"},{default:(0,i.k6)((()=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,l.R1)(o)(),((e,t)=>((0,i.uX)(),(0,i.CE)(i.FK,null,["InfoMessage"===e.type?((0,i.uX)(),(0,i.Wv)(Wa,{key:0,message:e},null,8,["message"])):"WelcomeMessage"===e.type?((0,i.uX)(),(0,i.Wv)(tn,{key:1,message:e},null,8,["message"])):((0,i.uX)(),(0,i.Wv)(wn,{key:2,message:e,previous:t>0?[...(0,l.R1)(o)()][t-1]:null},null,8,["message","previous"]))],64)))),256))])),_:1})],512)])),_:1},8,["container-element","onPsScrollY"])])),_:1},8,["isDisabled"]))}},Rn=(0,r.A)(An,[["__scopeId","data-v-a28f0b32"]]),In={__name:"SecretRoom",props:{isDisabled:{type:Boolean}},setup(e){const t=(0,z.P)(),a=t.state,o=t.getSecretMessages,s=(0,l.KR)(null);function r(){s.value.scrollTop=s.value.scrollHeight}(0,i.wB)((()=>a.value.messages[xn.w.SECRET].size),(()=>{(0,i.dY)((()=>{r()}))})),(0,i.wB)((()=>a.value.scrollToLastMessage[xn.w.SECRET]),((e,t)=>{e&&(0,i.dY)((()=>{r(),a.value.scrollToLastMessage[xn.w.SECRET]=!1}))}));const c=Zt().closeActionMenu,d=Ln((()=>c(C)),200);return(t,a)=>((0,i.uX)(),(0,i.Wv)(Ia,{isDisabled:e.isDisabled},{content:(0,i.k6)((()=>[(0,i.Q3)(" the container of PS is the secret_room "),(0,i.bF)(En.A,{"container-element":s.value,onPsScrollY:(0,l.R1)(d)},{default:(0,i.k6)((()=>[(0,i.Lk)("div",{class:"secret_room",ref_key:"messageContainer",ref:s},[(0,i.bF)(n.F,{name:"messages"},{default:(0,i.k6)((()=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,l.R1)(o)(),((e,t)=>((0,i.uX)(),(0,i.CE)(i.FK,null,["InfoMessage"===e.type?((0,i.uX)(),(0,i.Wv)(Wa,{key:0,message:e},null,8,["message"])):"WelcomeMessage"===e.type?((0,i.uX)(),(0,i.Wv)(tn,{key:1,message:e},null,8,["message"])):((0,i.uX)(),(0,i.Wv)(wn,{key:2,message:e,previous:t>0?[...(0,l.R1)(o)()][t-1]:null},null,8,["message","previous"]))],64)))),256))])),_:1})],512)])),_:1},8,["container-element","onPsScrollY"])])),_:1},8,["isDisabled"]))}},Fn=(0,r.A)(In,[["__scopeId","data-v-5aef95da"]]),Mn={__name:"ChatRooms",setup(e){const t=(0,z.P)(),a=t.state,o=t.isSecretRoomEnabled,s=t.isPublicRoomEnabled;return(e,t)=>((0,i.uX)(),(0,i.CE)(i.FK,null,[(0,i.Q3)("\n Previous attempt to prefer v-if over v-show on chat rooms to anticipate paid secret chat and possibility\n to hack the dom to see the private messages without paying extra\n\n Stick to v-show to avoid PerfectScrollbar to re-create new instances whenever changing rooms\n and also losing previous scroll position\n "),(0,i.bo)((0,i.bF)(Rn,{isDisabled:!1===(0,l.R1)(s)()},null,8,["isDisabled"]),[[n.aG,(0,l.R1)(a).currentChatRoom===(0,l.R1)(xn.w).PUBLIC]]),(0,i.bo)((0,i.bF)(Fn,{isDisabled:!1===(0,l.R1)(o)()},null,8,["isDisabled"]),[[n.aG,(0,l.R1)(a).currentChatRoom===(0,l.R1)(xn.w).SECRET]])],64))}},Sn=Mn;a(42762);const Tn=["width","height"],Bn={__name:"PublicIcon",props:{width:{type:Number,default:15},height:{type:Number,default:12},fill:{type:String,default:"black"},fillOpacity:{type:Number,default:.5}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height,viewBox:"0 0 16 12",fill:"none"},[...a[0]||(a[0]=[(0,i.Fv)('<path d="M11.9172 4.13428C12.9529 4.13428 13.7925 3.2947 13.7925 2.25903C13.7925 1.22337 12.9529 0.383789 11.9172 0.383789C10.8816 0.383789 10.042 1.22337 10.042 2.25903C10.042 3.2947 10.8816 4.13428 11.9172 4.13428Z" fill="black" fill-opacity="0.4"></path><path d="M7.99927 6.96778C9.03494 6.96778 9.87451 6.1282 9.87451 5.09253C9.87451 4.05686 9.03494 3.21729 7.99927 3.21729C6.9636 3.21729 6.12402 4.05686 6.12402 5.09253C6.12402 6.1282 6.9636 6.96778 7.99927 6.96778Z" fill="black" fill-opacity="0.5"></path><path d="M9.38903 7.0682C8.99579 7.34589 8.51651 7.50967 7.9991 7.50967C7.48184 7.50967 7.00223 7.34573 6.60867 7.06787C4.63027 7.46681 4.58285 8.98761 4.58203 10.4867C4.58203 10.6438 4.63874 10.7022 4.71273 10.7569C5.55852 11.3795 6.98659 11.6161 7.99763 11.6161C9.00997 11.6161 10.438 11.3795 11.2838 10.7569C11.358 10.7022
111.4147 10.6438 11.4147 10.4869C11.4139 8.98809 11.3666 7.46763 9.38903 7.0682Z" fill="black" fill-opacity="0.5"></path><path d="M13.3069 4.23405C12.9135 4.51191 12.4342 4.67569 11.917 4.67569C11.3996 4.67569 10.9201 4.51174 10.5266 4.23389C10.4405 4.25132 10.359 4.27169 10.2797 4.29321C10.3677 4.54352 10.4161 4.81258 10.4161 5.09239C10.4161 5.67548 10.2088 6.21066 9.86328 6.62834C10.7482 6.89316 11.3538 7.42427 11.6655 8.21123C11.7384 8.39554 11.7931 8.58621 11.834 8.78095C11.8611 8.78128 11.8891 8.78226 11.9155 8.78226C12.928 8.78226 14.3561 8.54563 15.2019 7.92294C15.2759 7.86818 15.3326 7.8087 15.3326 7.65307C15.3318 6.15427 15.2843 4.63364 13.3069 4.23405Z" fill="black" fill-opacity="0.4"></path><path d="M4.0813 4.13428C5.11697 4.13428 5.95655 3.2947 5.95655 2.25903C5.95655 1.22337 5.11697 0.383789 4.0813 0.383789C3.04563 0.383789 2.20605 1.22337 2.20605 2.25903C2.20605 3.2947 3.04563 4.13428 4.0813 4.13428Z" fill="black" fill-opacity="0.4"></path><path d="M6.13514 6.62834C5.79031 6.21066 5.58253 5.67532 5.58253 5.09239C5.58253 4.81258 5.63093 4.54352 5.71893 4.29321C5.63973 4.27169 5.55841 4.25132 5.47204 4.23389C5.07864 4.51174 4.59903 4.67569 4.08178 4.67569C3.56452 4.67569 3.08508 4.51191 2.69168 4.23405C0.714254 4.63364 0.66683 6.15427 0.666016 7.65307C0.666016 7.8087 0.722728 7.86818 0.796877 7.92294C1.64267 8.54563 3.07074 8.78226 4.08308 8.78226C4.10948 8.78226 4.13751 8.78128 4.16456 8.78095C4.20563 8.58621 4.26022 8.39554 4.33307 8.21123C4.64466 7.42427 5.25024 6.89316 6.13514 6.62834Z" fill="black" fill-opacity="0.4"></path>',6)])],8,Tn))};var On=a(26431);const Pn={class:"icon-container"},Wn={__name:"PublicSecretToggle",setup(e){const t=(0,z.P)(),a=t.state,l=t.toggleChatRoom,s=(0,i.EW)((()=>a.value.currentChatRoom===xn.w.PUBLIC));function r(){a.value.user.loggedIn&&a.value.chatMode!==Oe.wz.FREE?l():window.modal.secretChatDisclaimer()}const c=(0,i.EW)((()=>a.value.hasUnreadPrivateMessages>0)),d=(0,i.EW)((()=>{const e=a.value.hasUnreadPrivateMessages;return e>9?"9+":e.toString()}));return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["toggle",{"toggle--secret":!1===s.value}]),onClick:r},[(0,i.Lk)("div",Pn,[(0,i.bo)((0,i.bF)(Bn,null,null,512),[[n.aG,s.value]]),(0,i.bo)((0,i.bF)(On.A,null,null,512),[[n.aG,!1===s.value]])]),(0,i.bo)((0,i.Lk)("div",{class:"unread-messages-bullet"},(0,o.v_)(d.value),513),[[n.aG,c.value]])],2))}},Xn=(0,r.A)(Wn,[["__scopeId","data-v-436300f3"]]),Dn={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};const Hn={},Nn=(0,r.A)(Hn,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",Dn,[...t[0]||(t[0]=[(0,i.Lk)("path",{d:"M7.01344 12L11.8808 12M6.86563 11.4297L3.15356 4.74999C2.59273 3.74079 3.67268 2.61318 4.70559 3.12948L20.3507 10.9497C21.2164 11.3825 21.2164 12.6175 20.3507 13.0503L4.70559 20.8705C3.67268 21.3868 2.59272 20.2592 3.15356 19.25L6.86563 12.5702C7.06271 12.2156 7.06271 11.7844 6.86563 11.4297Z",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])}]]),Gn={__name:"SendMessageButton",emits:["buttonClicked"],setup:e=>(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"send-button","data-exclude-click-outside":"1",onClick:t[0]||(t[0]=t=>e.$emit("buttonClicked"))},[(0,i.bF)(Nn)]))},Un=(0,r.A)(Gn,[["__scopeId","data-v-3af2567e"]]),Vn={class:"language-active__container"},Kn={class:"language-active"},jn={__name:"TranslationActive",props:{translationLanguage:{type:String}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)("div",Vn,[(0,i.Lk)("div",Kn,(0,o.v_)(e.translationLanguage),
11)]))},Qn=(0,r.A)(jn,[["__scopeId","data-v-7633f324"]]),zn=["placeholder","disabled","value"],Yn={class:"contextual-buttons"},Zn={__name:"ChatInput",setup(e){const t=(0,z.P)(),a=t.state,s=t.isCurrentChatRoomEnabled,r=t.isFreeChatMessagingBlocked,c=t.isChangeNicknameNeeded,d=t.updateKeyboardState,u=(0,ke.K)().sendMessageChatEvent,v=Be.W.getInstance(),p={public:v.translate("chatInputPlaceholderPublic"),secret:v.translate("chatInputPlaceholderSecret"),disabled:v.translate("chatInputPlaceholderNotAvail")},f=(0,i.EW)((()=>m.value&&!r()?p.disabled:a.value.currentChatRoom===xn.w.PUBLIC?p.public:p.secret)),m=(0,i.EW)((()=>!1===s()||r())),g=(0,l.KR)("");function C(e){g.value=e.target.value}const b=(0,i.EW)((()=>g.value.length>0)),y=Zt(),k=y.showActionMenu,w=y.closeActionMenu,E=y.isActionMenuDisplayed;function L(){w(),setTimeout((()=>d(!1)),0)}function x(){w(),d(!0)}function A(){c()||(_local.ga("dl:chat:send-message",{chatModel:a.value.cammer.nickname,chatTranslationLanguage:a.value.user.translationLanguage,chatModelLanguages:a.value.cammer.spokenLanguages.isoCode,chatNbVisitors:a.value.numberOfVisitorsInTheRoom}),u(g.value,a.value.currentChatRoom),g.value="",w())}function R(){m.value||r()||(g.value.length>0&&c()?window.modal.show("nickname",{options:{backdropVisible:!1,callback:A}}):A())}function I(){E(_)?w():k(_)}const F=(0,i.EW)((()=>null!==a.value.user.translationLanguage)),S=(0,i.EW)((()=>a.value.user.translationLanguage));const T=M(),B=T.emojiSelected,O=T.removeEmoji;return(0,i.wB)((()=>B),(e=>{""!==e.value&&(g.value=g.value.trim()+e.value,O())}),{deep:!0,immediate:!0}),(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["chat__input-container",{"is-disabled":m.value,"is-secret":(0,l.R1)(a).currentChatRoom===(0,l.R1)(xn.w).SECRET}])},[(0,i.bF)(Xn),(0,i.Lk)("input",{type:"text",class:"swiper-no-swiping",placeholder:f.value,disabled:m.value,value:g.value,onInput:C,onKeyup:(0,n.jR)(R,["enter"]),onFocus:x,onBlur:L},null,40,zn),(0,i.Lk)("div",Yn,[(0,i.Lk)("div",{class:"contextual-button","data-exclude-click-outside":"1",onClick:t[0]||(t[0]=e=>{E(h)?w():k(h)})},[(0,i.bF)(Ue)]),(0,i.bF)(se,{style:"input"}),b.value?((0,i.uX)(),(0,i.Wv)(Un,{key:0,onButtonClicked:R})):((0,i.uX)(),(0,i.CE)("div",{key:1,class:"contextual-button","data-exclude-click-outside":"1",style:(0,o.Tr)({padding:F.value?"0px":"4px"}),onClick:I},[F.value?((0,i.uX)(),(0,i.Wv)(Qn,{key:1,translationLanguage:S.value},null,8,["translationLanguage"])):((0,i.uX)(),(0,i.Wv)(qe,{key:0})),(0,i.bo)((0,i.bF)(ot,{selectedLanguage:S.value},null,8,["selectedLanguage"]),[[n.aG,(0,l.R1)(E)((0,l.R1)(_))]])],4))])],2))}},qn=(0,r.A)(Zn,[["__scopeId","data-v-de871a6c"]]),$n={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};const Jn={},ei=(0,r.A)(Jn,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",$n,[...t[0]||(t[0]=[(0,i.Lk)("path",{d:"M4.51924 8.48172C4.52083 8.48861 4.52229 8.49552 4.52362 8.50247C4.66689 9.17783 4.91213 10.0744 5.18204 10.9851C5.53361 12.1713 5.9138 13.3383 6.12595 13.9779L6.13364 14.0011L6.15751 13.9962C6.81602 13.8606 8.01412 13.6072 9.21452 13.3194C10.4288 13.0282 11.6005 12.7121 12.232 12.4544C13.6422 11.8789 14.3617 10.3308 13.8185 8.85615C13.2896 7.42017 11.8487 6.87554 10.45 7.371C10.2934 7.42645 10.1205 7.41045 9.9767 7.32722C9.83291 7.24398 9.73264 7.10184 9.70226 6.93818C9.62373 6.5151 9.46762 6.13174 9.24979 5.80689C9.23236 5.78529 9.21664 5.76255 9.20268 5.73889C8.65892 4.97902 7.76581 4.56413 6.74277 4.75445C5.19761 5.0419 4.21357 6.42839 4.42045 7.93252C4.44217 8.09048 4.47585 8.27555 4.51924 8.48172Z",fill:"white","fill-opacity":"0.7"},null,-1),(0,i.Lk)("path",{d:"M6.53558 3.63442C7.74273 3.40986 8.80383 3.76824 9.57652 4.46357C9.68116 4.25854 9.76797 4.07569 9.83305 3.92088C10.4243 2.51414 9.84131 0.909422 8.41724 0.251748C7.03053 -0.388673 5.62754 0.247774 4.98788 1.5898C4.91629 1.74 4.78275 1.85127 4.62237 1.89436C4.462 1.93745 4.29085 1.90802 4.15395 1.81384C2.9253 0.968545 1.37309 1.12456 0.521184 2.36788C-0.368686 3.6666 -0.0866756 5.34466 1.1204 6.26157C1.57339 6.60567 2.37451 7.08384 3.25707 7.57517C3.23693 5.66796 4.5743 3.99928 6.53558 3.63442Z",fill:"white","fill-opacity":"0.5"},null,-1)])])}]]),ti={class:"best-tipper"},ai={class:"best-tipper__king"},ni={class:"best-tipper__icon"},ii={key:0,id:"icon-crown-svg"},oi={class:"best-tipper__king--information"},li={class:"best-tipper__nickname"},si=["innerHTML"],ri={class:"best-tipper__user"},ci={class:"best-tipper__nickname"},di={class:"best-tipper__vote"},ui=["innerHTML"],vi={__name:"BestTipper",setup(e){const t=(0,z.P)().state,a=Be.W.getInstance(),n=(0,i.EW)((()=>{let e=a.translate("votes");return"valentine"===t.value.bestTipper.context&&(e="cr."),"".concat(t.value.bestTipper.visitorCredits," ").concat(e)})),s=(0,i.EW)((()=>{let e="votesToday";return"valentine"===t.value.bestTipper.context&&(e="tippedToday"),a.translate(e,{"%st1%":"<strong>","%et1%":"</strong>","%st2%":'<span class="best-tipper__vote--number">',"%et2%":"</span>","%nb%":t.value.bestTipper.credits})}));return(e,r)=>((0,i.uX)(),(0,i.CE)("div",ti,[(0,i.Lk)("div",ai,[(0,i.Lk)("div",ni,["camsfactor"===(0,l.R1)(t).bestTipper.context?((0,i.uX)(),(0,i.CE)("svg",ii,[...r[0]||(r[0]=[(0,i.Lk)("use",{"xlink:href":"#icon-crown"},null,-1)])])):((0,i.uX)(),(0,i.Wv)(ei,{key:1}))]),(0,i.Lk)("div",oi,[(0,i.Lk)("div",li,(0,o.v_)((0,l.R1)(t).bestTipper.nickname),1),(0,i.Lk)("div",{class:"best-tipper__vote",innerHTML:s.value},null,8,si)])]),(0,i.Lk)("div",ri,[(0,i.Lk)("div",ci,(0,o.v_)((0,l.R1)(a).translate("you")),1),(0,i.Lk)("div",di,[(0,i.Lk)("span",{class:"best-tipper__vote--number",innerHTML:n.value},null,8,ui)])])]))}},pi=(0,r.A)(vi,[["__scopeId","data-v-7f1748a0"]]);var fi=a(67761);const mi=Symbol("promotions");var hi=a(16e3);const _i={class:"action"},gi={key:0,class:"action__free-action"},Ci={key:1,class:"action__content"},bi={key:1,class:"action__button--disabled"},yi={__name:"ActionButton",props:{color:{type:String,default:"#0000004C"},freeAction:{type:Number,default:0},name:{type:String},isDisabled:{type:Boolean,default:!1},isFixed:{type:Boolean,default:!1},hasPromotion:{type:Boolean,default:!1}},setup(e){(0,n.$9)((t=>({v102d1fb8:e.color})));const t=e,a=(0,z.P)().state,s=Zt(),r=s.showActionMenu,c=s.isActionMenuDisplayed,d=s.getActionMenuIcon,u="userHasOpenAction_".concat(t.name);function v(e){hi.AvsService.guardPaidAction((()=>v(e)))||(r(e),t.hasPromotion&&localStorage.setItem(u,"1"))}const p=(0,i.EW)((()=>!h.value&&(t.name===f?!c(t.name):!1===t.hasPromotion||!(!0===t.hasPromotion&&!0===m.value))));if(t.hasPromotion){const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const a=(0,i.WQ)(mi);if(!a)throw new Error("useActionButtonPromotion() must be used in a component that is a child of a component using providePromotionsContext()");a.registerPromotion(e),t&&"function"==typeof t&&a.setTriggerPromotion(e,t);const n=a.promotionsState;return{isPromotionClosed:(0,i.EW)((()=>{var t;return null===(t=n[e])||void 0===t?void 0:t.isPromotionClosed})),closePromotion:function(){a.closePromotion(e)},resetPromotionState:function(){a.resetPromotionState(e)}}}(t.name,v),a=e.isPromotionClosed,n=e.resetPromotionState;(0,i.wB)(a,(e=>{e&&(m.value=!1,n())}))}const m=(0,l.KR)(!1),h=(0,l.KR)(!1);function _(){h.value=!0}function g(){h.value=!1}let C=null,b=null;return(0,i.wB)((()=>a.value.chatModeJoined),(e=>{if(!e)return;t.hasPromotion&&!t.isDisabled&&a.value.user.loggedIn&&(C=setTimeout((()=>{"1"===localStorage.getItem(u)||(m.value=!0,localStorage.setItem(u,"1"),b=setTimeout((()=>{m.value=!1}),5e3))}),5e3))})),(0,i.hi)((()=>{C&&clearTimeout(C),b&&clearTimeout(b)})),(a,s)=>((0,i.uX)(),(0,i.CE)("div",_i,[e.isDisabled?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[e.freeAction>0&&p.value?((0,i.uX)(),(0,i.CE)("div",gi,(0,o.v_)(e.freeAction),1)):(0,i.Q3)("v-if",!0),(0,i.bF)(n.eB,{type:"animation",name:"fade",duration:1e3},{default:(0,i.k6)((()=>[p.value?((0,i.uX)(),(0,i.CE)("div",{key:0,class:"action__button","data-exclude-click-outside":"1",onClick:s[0]||(s[0]=t=>v(e.name))},[((0,i.uX)(),(0,i.Wv)((0,i.$y)((0,l.R1)(d)(e.name))))])):(0,i.Q3)("v-if",!0)])),_:1}),(0,l.R1)(c)(e.name)?((0,i.uX)(),(0,i.CE)("div",Ci,[(0,i.RG)(a.$slots,"action-content")])):(0,i.Q3)("v-if",!0)],64)),e.isDisabled?((0,i.uX)(),(0,i.CE)("div",bi,[(0,i.RG)(a.$slots,"action-disabled")])):(0,i.Q3)("v-if",!0),(0,i.Q3)(" PROMOTION SECTION "),t.hasPromotion?((0,i.uX)(),(0,i.Wv)(n.eB,{key:2,name:"expand",type:"animation",duration:600,onLeave:_,onEnter:_,onAfterLeave:g,onAfterEnter:g,persisted:""},{default:(0,i.k6)((()=>[(0,i.bo)((0,i.Lk)("div",{class:(0,o.C4)(["action__button--promotion",{"is-visible":m.value}])},[(0,i.RG)(a.$slots,"action-promotion")],2),[[n.aG,m.value]])])),_:3})):(0,i.Q3)("v-if",!0)]))}},ki=(0,r.A)(yi,[["__scopeId","data-v-3a2e2f11"]]),wi={class:"toy__button--used"},Ei={key:0,class:"button__used--duration"},Li={__name:"ToyDisabled",setup(e){const t=(0,z.P)().state,a=(0,i.EW)((()=>t.value.toy.duration));return(e,t)=>((0,i.uX)(),(0,i.CE)("div",wi,[a.value>0?((0,i.uX)(),(0,i.CE)("div",Ei,[(0,i.bF)(ye,{duration:a.value},null,8,["duration"])])):((0,i.uX)(),(0,i.Wv)(pe,{key:1}))]))}},xi=(0,r.A)(Li,[["__scopeId","data-v-52f09b44"]]),Ai={class:"camsfactor__promotion--title"},Ri={class:"camsfactor__promotion--icon"},Ii={__name:"CamsFactorPromotion",props:{isVisible:{type:Boolean,default:!1},name:{type:String}},setup(e){const t=Be.W.getInstance(),a=function(e){const t=(0,i.WQ)(mi);if(!t)throw new Error("usePromotionControl() must be used in a component that is a child of a component using providePromotionsContext()");function a(){t.closePromotion(e)}return{closePromotion:a,triggerPromotion:function(){var n;const i=null===(n=t.promotionsState[e])||void 0===n?void 0:n.triggerPromotion;"function"==typeof i&&(i(...arguments),a())}}}(e.name),n=a.closePromotion,s=a.triggerPromotion,r=(0,z.P)().state,c=(new Date).getFullYear(),d=(0,i.EW)((()=>"xcams"===r.value.user.brandName?"XCAMSFACTOR":"CAMSFACTOR"));return(a,r)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["camsfactor__promotion",{"is-visible":e.isVisible}])},[(0,i.Lk)("div",{class:"camsfactor__promotion--close",onClick:r[0]||(r[0]=function(){return(0,l.R1)(n)&&(0,l.R1)(n)(...arguments)})},[(0,i.bF)(he)]),r[2]||(r[2]=(0,i.Lk)("div",{class:"camsfactor__promotion--separator"},null,-1)),(0,i.Lk)("div",{class:"camsfactor__promotion--button",onClick:r[1]||(r[1]=t=>(0,l.R1)(s)(e.name))},(0,o.v_)((0,l.R1)(t).translate("vote")),1),(0,i.Lk)("div",Ai,[(0,i.eW)((0,o.v_)(d.value)+" ",1),(0,i.Lk)("span",null,(0,o.v_)((0,l.R1)(c)),1)]),(0,i.Lk)("div",Ri,[(0,i.bF)(rt)])],2))}},Fi=(0,r.A)(Ii,[["__scopeId","data-v-492e5e79"]]),Mi={class:"camsfactor__button--disabled"},Si={__name:"CamsFactorDisabled",setup:e=>(e,t)=>
1((0,i.uX)(),(0,i.CE)("div",Mi,[(0,i.bF)(rt)]))},Ti=(0,r.A)(Si,[["__scopeId","data-v-37a0fb66"]]),Bi={__name:"ChatActions",setup(e){const t=(0,w.I)(),a=t.getTotalFreeVirtualGift,n=t.getTotalFreeVotes,s=(0,z.P)(),r=s.state,c=s.chatModeIsActive,d=(0,i.EW)((()=>r.value.toy.balance>0)),u=(0,i.EW)((()=>r.value.toy.status===_e.sQ.USE_BY_OTHER_VISITOR||r.value.user.role===Te.A.ROLE_AUDIOTEL&&!d.value)),m=(0,i.EW)((()=>!1===r.value.cammer.isOnline||!1===r.value.chatModeJoined||c(Oe.wz.PRIVATE_PREVIEW))),h=(0,i.EW)((()=>r.value.toy.status!==_e.sQ.NOT_AVAILABLE)),_=(0,i.EW)((()=>r.value.seasonalEvent===Ma.A.CAMSFACTOR)),g=(0,i.EW)((()=>_.value));return function(){const e=(0,l.Kh)({});function t(t){return e[t]||(e[t]={isPromotionClosed:!1,triggerPromotion:null}),e[t]}function a(a,n){e[a]||t(a),e[a].triggerPromotion=n}function n(t){e[t]&&(e[t].isPromotionClosed=!0)}function o(t){e[t]&&(e[t].isPromotionClosed=!1)}(0,i.Gt)(mi,{promotionsState:e,registerPromotion:t,closePromotion:n,resetPromotionState:o,setTriggerPromotion:a})}(),(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["chat-action",{"chat-action--best-tipper":(0,l.R1)(r).bestTipper.display}])},[(0,i.bF)(ki,{color:"#289FEFB2",freeAction:(0,l.R1)(a)(),name:(0,l.R1)(v)},null,8,["freeAction","name"]),h.value?((0,i.uX)(),(0,i.Wv)(ki,{key:0,color:"#FF008AB2",name:(0,l.R1)(f),freeAction:(0,l.R1)(r).toy.balance,"is-disabled":u.value,"is-fixed":!0},{"action-content":(0,i.k6)((()=>[(0,i.bF)(He)])),"action-disabled":(0,i.k6)((()=>[(0,i.bF)(xi)])),_:1},8,["name","freeAction","is-disabled"])):(0,i.Q3)("v-if",!0),g.value?((0,i.uX)(),(0,i.Wv)(ki,{key:1,color:"linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%), linear-gradient(136deg, #D2AB66 0%, #FFEFC2 24.81%, #D2AB66 99.23%)",freeAction:(0,l.R1)(n)(),name:(0,l.R1)(p),"has-promotion":!0,class:"chat-action--votes","is-disabled":m.value},{"action-disabled":(0,i.k6)((()=>[(0,i.bF)(Ti)])),"action-promotion":(0,i.k6)((()=>[(0,i.bF)(Fi,{name:(0,l.R1)(p)},null,8,["name"])])),_:1},8,["freeAction","name","is-disabled"])):(0,i.Q3)("v-if",!0)],2))}},Oi=(0,r.A)(Bi,[["__scopeId","data-v-17dfbd37"]]),Pi={key:0,class:"overlays","data-exclude-click-outside":"1"},Wi={class:"overlays__header"},Xi={class:"overlays__header--title"},Di={class:"overlays__header--icon"},Hi={class:"overlays__content"},Ni={__name:"ChatBodyOverlays",setup(e){const t=N().getChatBodyOverlayTitle,a=(0,w.I)(),n=a.addVirtualGifts,s=a.addCamsfactorItems,r=a.setTotalFreeVotes,c=Zt(),d=c.hasChatBodyOverlayDisplayed,u=c.getActionMenuIcon,v=c.getActionMenuName,p=c.getActionMenuComponent,f=c.closeActionMenu,m=Y.VisitorService.getInstance(),h=Be.W.getInstance();return(0,i.sV)((async()=>{var e,t,a;const i=await m.getVirtualGifts();n(null!==(e=i["virtual-gifts"])&&void 0!==e?e:[]),s(null!==(t=i.votes)&&void 0!==t?t:[]),r(null!==(a=i.votes_number)&&void 0!==a?a:0)})),(e,a)=>(0,l.R1)(d)()?((0,i.uX)(),(0,i.CE)("div",Pi,[(0,i.Lk)("div",Wi,[(0,i.Lk)("div",Xi,[(0,i.Lk)("span",Di,[((0,i.uX)(),(0,i.Wv)((0,i.$y)((0,l.R1)(u)())))]),(0,i.Lk)("span",null,(0,o.v_)((0,l.R1)(h).translate((0,l.R1)(t)((0,l.R1)(v)()))),1)]),(0,i.Lk)("div",{class:"overlays__header--close",onClick:a[0]||(a[0]=e=>(0,l.R1)(f)())},[(0,i.bF)(he)])]),(0,i.Lk)("div",Hi,[((0,i.uX)(),(0,i.Wv)((0,i.$y)((0,l.R1)(p)()),{onClose:a[1]||(a[1]=e=>(0,l.R1)(f)())},null,32))])])):(0,i.Q3)("v-if",!0)}},Gi=(0,r.A)(Ni,[["__scopeId","data-v-3342e4d9"]]),Ui={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};const Vi={},Ki=(0,r.A)(Vi,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",Ui,[...t[0]||(t[0]=[(0,i.Lk)("path",{d:"M5.99992 1.33301C4.25325 1.33301 2.83325 2.75301 2.83325 4.49967C2.83325 6.21301 4.17325 7.59967 5.91992 7.65967C5.97325 7.65301 6.02659 7.65301 6.06659 7.65967C6.07992 7.65967 6.08659 7.65967 6.09992 7.65967C6.10659 7.65967 6.10659 7.65967 6.11325 7.65967C7.81992 7.59967 9.15992 6.21301 9.16659 4.49967C9.16659 2.75301 7.74659 1.33301 5.99992 1.33301Z",fill:"white"},null,-1),(0,i.Lk)("path",{d:"M9.38664 9.43293C7.52664 8.19293 4.49331 8.19293 2.61997 9.43293C1.77331 9.9996 1.30664 10.7663 1.30664 11.5863C1.30664 12.4063 1.77331 13.1663 2.61331 13.7263C3.54664 14.3529 4.77331 14.6663 5.99997 14.6663C7.22664 14.6663 8.45331 14.3529 9.38664 13.7263C10.2266 13.1596 10.6933 12.3996 10.6933 11.5729C10.6866 10.7529 10.2266 9.99293 9.38664 9.43293Z",fill:"white"},null,-1),(0,i.Lk)("path",{d:"M13.3267 4.89307C13.4334 6.18641 12.5134 7.31974 11.2401 7.47307C11.2334 7.47307 11.2334 7.47307 11.2267 7.47307H11.2067C11.1667 7.47307 11.1267 7.47307 11.0934 7.48641C10.4467 7.51974 9.8534 7.31307 9.40674 6.93307C10.0934 6.31974 10.4867 5.39974 10.4067 4.39974C10.3601 3.85974 10.1734 3.36641 9.89341 2.94641C10.1467 2.81974 10.4401 2.73974 10.7401 2.71307C12.0467 2.59974 13.2134 3.57307 13.3267 4.89307Z",fill:"white"},null,-1),(0,i.Lk)("path",{d:"M14.66 11.0599C14.6067 11.7066 14.1933 12.2666 13.5 12.6466C12.8333 13.0133 11.9933 13.1866 11.16 13.1666C11.64 12.7333 11.92 12.1933 11.9733 11.6199C12.04 10.7933 11.6467 9.99994 10.86 9.36661C10.4133 9.01327 9.89333 8.73327 9.32666 8.52661C10.8 8.09994 12.6533 8.38661 13.7933 9.30661C14.4067 9.79994 14.72 10.4199 14.66 11.0599Z",fill:"white"},null,-1)])])}]]),ji={class:"visitors-room"},Qi={class:"visitors-room__count"},zi={__name:"VisitorsInTheRoom",setup(e){const t=(0,z.P)().state;return(e,a)=>((0,i.uX)(),(0,i.CE)("div",ji,[(0,i.bF)(Ki),(0,i.Lk)("span",Qi,(0,o.v_)((0,l.R1)(t).numberOfVisitorsInTheRoom),1)]))}},Yi=(0,r.A)(zi,[["__scopeId","data-v-63ac707c"]]),Zi={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};const qi={},$i=(0,r.A)(qi,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",Zi,[...t[0]||(t[0]=[(0,i.Lk)("circle",{cx:"4",cy:"12",r:"2",fill:"white"},null,-1),(0,i.Lk)("circle",{cx:"12",cy:"12",r:"2",fill:"white"},null,-1),(0,i.Lk)("circle",{cx:"20",cy:"12",r:"2",fill:"white"},null,-1)])])}]]),Ji=["width","height"],eo=["fill"],to={__name:"HeartIcon",props:{width:{type:Number,default:16},height:{type:Number,default:16},color:{type:String}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height,viewBox:"0 0 16 16",fill:"none"},[(0,i.Lk)("path",{d:"M8.41301 13.8736C8.18634 13.9536 7.81301 13.9536 7.58634 13.8736C5.65301 13.2136 1.33301 10.4602 1.33301 5.79356C1.33301 3.73356 2.99301 2.06689 5.03967 2.06689C6.25301 2.06689 7.32634 2.65356 7.99967 3.56023C8.67301 2.65356 9.75301 2.06689 10.9597 2.06689C13.0063 2.06689 14.6663 3.73356 14.6663 5.79356C14.6663 10.4602 10.3463 13.2136 8.41301 13.8736Z",fill:e.color},null,8,eo)],8,Ji))},ao=(0,r.A)(to,[["__scopeId","data-v-c114a662"]]),no={class:"model-info__picture"},io=["alt","height","src","width"],oo={__name:"ProfileAvatar",props:{src:String,alt:String,width:Number,height:Number},setup(e){(0,n.$9)((t=>({b6ffcff8:e.width,v5c9822ae:e.height})));const t=hi.AvsService.isContentBlurred();return(a,n)=>((0,i.uX)(),(0,i.CE)("div",no,[(0,i.Lk)("img",{alt:e.alt,class:(0,o.C4)({"is-avs-content-blurred":(0,l.R1)(t)}),height:e.height,src:e.src,width:e.width},null,10,io)]))}},lo=(0,r.A)(oo,[["__scopeId","data-v-3bece7c0"]]),so={key:0,class:"top-badge"},ro=["src","alt"],co={__name:"TopBadge",props:{status:{type:String,default:"none"},label:{type:String,default:""}},setup(e){const t=["gold","silver","bronze"],a=e,n=(0,i.EW)((()=>t.includes(a.status))),o=(0,i.EW)((()=>"/bundles/dnxmobile/img/common/badges/top-".concat(a.status,".svg")));return(t,a)=>n.value?((0,i.uX)(),(0,i.CE)("span",so,[(0,i.Lk)("img",{src:o.value,alt:e.label,width:"44",height:"16","data-testid":"top-badge"},null,8,ro)])):(0,i.Q3)("v-if",!0)}},uo=(0,r.A)(co,[["__scopeId","data-v-5eca12ce"]]);var vo=a(27607),po=a(92798),fo=a(81864),mo=a.n(fo);const ho={class:"model-info-container"},_o={class:"model-info__left"},go={class:"model-info"},Co={class:"model-nickname-container"},bo=["href"],yo={key:1,class:"model-info__camsfactor"},ko={class:"camsfactor--place"},wo={class:"model-info__spoken-languages"},Eo=["innerHTML"],Lo={key:0,class:"model-info__age"},xo={__name:"ModelInfo",props:{showProfilePicture:{type:Boolean,default:!1},showAge:{type:Boolean,default:!1},buttonType:{type:String,validator:(e,t)=>
1["menu","close"].includes(e)}},setup(e){const t=Be.W.getInstance(),a=e,s=(0,z.P)(),r=s.state,c=s.getCammerSpokenLanguagesTextual,d=s.updateChatMinimizedOnProfilePage,u=Zt(),v=u.showActionMenu,p=u.closeActionMenu,f=(0,vo.m)().getRedirectUrl,m=(0,i.EW)((()=>f(po.A.PROFILE)));function h(){document.dispatchEvent(new Event("chat:minimize")),d(!0),mo().navigate(m.value,{trigger:!0})}function _(){"menu"===a.buttonType?v(g):p(g)}const C=t.translate("yearsOld"),b=(0,i.EW)((()=>{const e=Object.keys(c()).slice(0,3).map((e=>{const t=c()[e];return e===r.value.cammer.firstLanguage?"<strong>".concat(t,"</strong>"):t})),a=t.translate("ISpeak");return"".concat(a," ").concat(e.join(", "))})),y=(0,i.EW)((()=>{if(r.value.cammer.country)return"background-image:url('/bundles/dnxmobile/img/common/flags/".concat(r.value.cammer.country.toLowerCase(),".svg')")})),k=(0,i.EW)((()=>{const e=r.value.seasonalEvent===Ma.A.CAMSFACTOR,t=r.value.cammer.camsFactorRanking;return e&&(t>=1&&t<=100)}));return(t,a)=>((0,i.uX)(),(0,i.CE)("div",ho,[(0,i.Lk)("div",_o,[e.showProfilePicture?((0,i.uX)(),(0,i.Wv)(lo,{key:0,src:(0,l.R1)(r).cammer.snapshot,alt:(0,l.R1)(r).cammer.nickname,width:64,height:64},null,8,["src","alt"])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",go,[(0,i.Lk)("div",Co,[(0,l.R1)(r).cammer.isFavorite?((0,i.uX)(),(0,i.Wv)(ao,{key:0})):(0,i.Q3)("v-if",!0),(0,i.Lk)("a",{class:"model-info__nickname",href:m.value,onClick:(0,n.D$)(h,["prevent"])},(0,o.v_)((0,l.R1)(r).cammer.nickname),9,bo),(0,i.bo)((0,i.Lk)("span",{class:"model-info__flag",style:(0,o.Tr)(y.value)},null,4),[[n.aG,(0,l.R1)(r).cammer.showCountryFlag]]),(0,i.bF)(uo,{status:(0,l.R1)(r).cammer.topBadgeStatus,label:(0,l.R1)(r).cammer.topBadgeLabel},null,8,["status","label"]),k.value?((0,i.uX)(),(0,i.CE)("div",yo,[(0,i.Lk)("span",ko,(0,o.v_)((0,l.R1)(r).cammer.camsFactorRanking),1)])):(0,i.Q3)("v-if",!0)]),(0,i.Lk)("div",wo,[(0,i.Lk)("div",{class:"model-info__languages",innerHTML:b.value},null,8,Eo)]),e.showAge?((0,i.uX)(),(0,i.CE)("div",Lo,[(0,i.Lk)("b",null,(0,o.v_)((0,l.R1)(r).cammer.age),1),(0,i.eW)(" "+(0,o.v_)((0,l.R1)(C)),1)])):(0,i.Q3)("v-if",!0)])]),(0,i.Lk)("div",{class:"model-info__menu-icon","data-exclude-click-outside":"1",onClick:_},["menu"===e.buttonType?((0,i.uX)(),(0,i.Wv)($i,{key:0})):((0,i.uX)(),(0,i.Wv)(he,{key:1,onClick:a[0]||(a[0]=e=>(0,l.R1)(p)((0,l.R1)(g)))}))])]))}},Ao=(0,r.A)(xo,[["__scopeId","data-v-45cc0ec2"]]),Ro={__name:"SubHeader",setup(e){const t=(0,z.P)().state,a=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed;return(e,n)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)([{"header__sub-header-full-width":!(0,l.R1)(a)},"header__sub-header swiper-no-swiping"])},[(0,i.bF)(Yi,{class:(0,o.C4)({"visibility-hidden":(0,l.R1)(t).chatMode===(0,l.R1)(Oe.wz).PRIVATE_PREVIEW||(0,l.R1)(a)})},null,8,["class"]),(0,i.bF)(Ao,{"button-type":"menu"})],2))}},Io=(0,r.A)(Ro,[["__scopeId","data-v-13ec7f8f"]]),Fo=4/3,Mo={__name:"VisitorCamContainer",setup(e){const t=(0,z.P)().state,a=(0,u.U)([u.e.MOBILE]).isMobile,n={x:8,y:52},s=(0,l.KR)(null),r=(0,l.KR)(!1),c=(0,l.KR)(!1),d=(0,l.KR)({x:0,y:0}),v=(0,l.KR)({...n}),p=(0,l.KR)({width:160,height:120}),f=(0,l.KR)(!1),m=(0,l.KR)(!1),h=(0,i.EW)((()=>({left:"".concat(v.value.x,"px"),top:"".concat(v.value.y,"px"),width:"".concat(p.value.width,"px"),height:"".concat(p.value.height,"px")}))),_=(0,i.EW)((()=>{var e,a;return null!==(e=null===(a=t.value.visitorCam)||void 0===a?void 0:a.visible)&&void 0!==e&&e}));function g(){return{maxWidth:Math.min(400,.4*window.innerWidth),maxHeight:Math.min(400,.4*window.innerHeight)}}function C(e,t){const a=window.innerWidth-p.value.width-8,n=window.innerHeight-p.value.height-8;return{x:Math.max(8,Math.min(e,a)),y:Math.max(8,Math.min(t,n))}}function b(){const e=C(v.value.x,v.value.y);v.value.x=e.x,v.value.y=e.y}const y=e=>{if(f.value)return;const t=e.detail||e.target;t&&(t.videoWidth||t.videoHeight)&&(m.value?function(e){I(e)}(t):function(e){I(e,{reposition:!0})}(t))};function k(e){var t,a;if(c.value)return;e.preventDefault(),r.value=!0,m.value=!0;const n=e.clientX||(null===(t=e.touches)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.clientX)||0,i=e.clientY||(null===(a=e.touches)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.clientY)||0;d.value={x:n-v.value.x,y:i-v.value.y}}function w(e){var t,a;if(!r.value&&!c.value)return;e.preventDefault();const n=e.clientX||(null===(t=e.touches)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.clientX)||0,i=e.clientY||(null===(a=e.touches)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.clientY)||0;if(r.value){const e=C(n-d.value.x,i-d.value.y);v.value={x:e.x,y:e.y}}else if(c.value){var o;const e=null===(o=s.value)||void 0===o?void 0:o.getBoundingClientRect();if(e){const t=g(),a=t.maxWidth,o=t.maxHeight,l=Math.max(80,Math.min(a,n-e.left)),s=Math.max(60,Math.min(o,i-e.top)),r=function(){var e;
1const t=document.getElementById("visitor-cam-swf"),a="VIDEO"===(null==t?void 0:t.nodeName)?t:null==t||null===(e=t.querySelector)||void 0===e?void 0:e.call(t,"video"),n=null==a?void 0:a.videoWidth,i=null==a?void 0:a.videoHeight;return n&&i?n/i:Fo}(),c=l/r,d=s*r;p.value=c<=o?{width:l,height:c}:{width:d,height:s},b()}}}function E(){(r.value||c.value)&&(r.value=!1,c.value=!1,m.value=!0,R())}function L(e){e.preventDefault(),e.stopPropagation(),c.value=!0,m.value=!0}function x(e){r.value&&(e.preventDefault(),e.stopPropagation())}function A(){b()}function R(){const e={position:v.value,size:p.value};localStorage.setItem("visitor-cam-position",JSON.stringify(e))}function I(e,t){var a;if(!e||!e.videoWidth||!e.videoHeight)return;const n=null!==(a=null==t?void 0:t.reposition)&&void 0!==a&&a;f.value=!0;try{const t=e.videoWidth/e.videoHeight,a=.6*Math.min(window.innerWidth,window.innerHeight);let i,o;t>=1?(o=Math.round(a),i=Math.round(o*t),n&&(v.value.y=70)):(i=Math.round(a),o=Math.round(i/t),n&&(v.value.y=45)),n&&(v.value.x=8);const l=function(e,t){const a=g(),n=a.maxWidth,i=a.maxHeight,o=Math.min(1,n/e,i/t);return{width:Math.max(80,Math.round(e*o)),height:Math.max(60,Math.round(t*o))}}(i,o);p.value.width=l.width,p.value.height=l.height,n&&(b(),m.value||(m.value=!0,R()))}finally{setTimeout((()=>{f.value=!1}),100)}}return(0,i.sV)((()=>{!function(){const e=localStorage.getItem("visitor-cam-position");if(e){const t=JSON.parse(e);t.position&&(v.value=t.position),t.size&&(p.value=t.size),m.value=!0}b()}(),document.addEventListener("pointermove",w),document.addEventListener("pointerup",E),window.addEventListener("resize",A),document.addEventListener("visitorCamLoadedData.dnxChat",y),document.addEventListener("visitorCamSizeChanged.dnxChat",y),b()})),(0,i.hi)((()=>{document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",E),window.removeEventListener("resize",A),document.removeEventListener("visitorCamLoadedData.dnxChat",y),document.removeEventListener("visitorCamSizeChanged.dnxChat",y)})),(e,t)=>((0,i.uX)(),(0,i.CE)("div",{id:"visitor-cam-container",ref_key:"containerRef",ref:s,class:(0,o.C4)(["visitor-cam-container swiper-no-swiping",{"visitor-cam-container--hidden":!_.value,"visitor-cam-container--dragging":r.value}]),style:(0,o.Tr)(h.value),tabindex:"0",role:"region",onPointerdown:k},[(0,i.Lk)("div",{id:"visitor-cam-swf",class:"visitor-cam-container__content",onClick:x},[(0,i.Q3)(" this element will be replaced by the actual <video> ")]),(0,i.Q3)(" Resize handle for desktop "),(0,l.R1)(a)?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)("div",{key:0,class:"visitor-cam-container__resize-handle",onPointerdown:L},null,32))],38))}},So=(0,r.A)(Mo,[["__scopeId","data-v-759d80ce"]]);a(72712);var To=a(17567),Bo=a(59412),Oo=a.n(Bo);function Po(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,o,l,s=[],r=!0,c=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;r=!1}else for(;!(r=(n=o.call(a)).done)&&(s.push(n.value),s.length!==t);r=!0);}catch(e){c=!0,i=e}finally{try{if(!r&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wo(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Wo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}const Xo=["width","height"],Do={class:"coin__idle-turning"},Ho={class:"coin__clicked-rotating"},No=["x"],Go={x:"240",y:"235",class:"offer_unit"},Uo={class:"coin-front"},Vo={key:0,class:"currencyNotAvailableNotEn"},Ko={key:1,class:"currencyNotAvailable"},jo={key:2,class:"currencyAvailable"},Qo={class:"coin-back"},zo=["innerHTML"],Yo={__name:"Coin",props:{width:{type:Number,default:350,validator:e=>e>0},height:{type:Number,default:350,validator:e=>e>0}},setup(e){const t=a(60550),n=vt.o.getInstance(),s=(0,To.k)().getPaymentPathForUserLoggedIn,r=Be.W.getInstance(),c=(0,z.P)().state,d=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,v=(0,i.EW)((()=>"en"===c.value.user.locale)),p=(0,i.EW)((()=>"fr"===c.value.user.locale)),f=(0,i.EW)((()=>c.value.chatOffer.finalCredits>1?170:200)),m=(0,l.KR)([]),h=(0,l.KR)({clicked:!1,entry:!1,entered:!1,hovered:!1,left:!1}),_=(0,i.EW)((()=>p.value?25:0)),g=(0,i.EW)((()=>p.value?30:0)),C=170-_.value,b=165-_.value,y=195-_.value,k=230-_.value,w=300-g.value,E=300-g.value,L=(0,i.EW)((()=>c.value.chatOffer.currencyConversion)),x=(0,i.EW)((()=>{const e=r.translate("offerCoin.cta");return e.length<=12?'<tspan x="250" dy="0">'.concat(e,"</tspan>"):e.split(" ").reduce(((e,t,a)=>e+'<tspan x="250" dy="'.concat(0===a?0:30,'">').concat(t,"</tspan>")),"")}));(0,i.sV)((()=>{document.addEventListener("joinSuccess.dnxChat",(()=>R())),document.addEventListener("exit.dnxChat",(()=>A())),document.addEventListener("joinFailed.dnxChat",(()=>R())),R()})),(0,i.xo)((()=>{m.value.forEach((e=>clearTimeout(e)))}));const A=()=>{h.value.entered=!1,h.value.entry=!1,h.value.hovered=!1,h.value.clicked=!1,h.value.left=!1},R=()=>{m.value.push(setTimeout((()=>{h.value.entry=!0}),500)),m.value.push(setTimeout((()=>{h.value.entered=!0,h.value.entry=!1}),1e3))},I=()=>
1{if(h.value.clicked=!0,!c.value.user.loggedIn){if(!Oo().offerAvailable)return void m.value.push(setTimeout((()=>window.modal.showLogin()),1500));const e=Po(window.location.pathname.split("/"),4)[3],t=Oo().paths.signup_with_profile.replace("__profileId__",e),a=c.value.chatType===Oe.wz.PRIVATE_PREVIEW?{fromTeasing:1}:{};return void F(t,a)}const e=s();F(e)},F=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=t.getUrlWithExtraParameters(e,a);return n.navigate(i,1500)},M=()=>{h.value.entered&&(h.value.hovered=!0)},S=()=>{h.value.entered&&(h.value.hovered=!1,h.value.left=!0,m.value.push(setTimeout((()=>h.value.left=!1),500)))};return(t,a)=>((0,i.uX)(),(0,i.CE)("svg",{width:e.width,height:e.height,viewBox:"0 0 500 500",fill:"none",xmlns:"http://www.w3.org/2000/svg",onMouseleave:S,onMouseover:M},[(0,i.Lk)("g",{class:(0,o.C4)(["coin",{coin__entry:h.value.entry&&!h.value.entered,coin__entered:!h.value.entry&&h.value.entered,coin__clicked:h.value.clicked,coin__hovered:h.value.hovered,coin__left:h.value.left,"is-desktop":(0,l.R1)(d)}]),onClick:I},[(0,i.Lk)("g",Do,[a[4]||(a[4]=(0,i.Lk)("circle",{cx:"250",cy:"250",r:"150",fill:"url(#paint0_linear_1094_51)",stroke:"url(#paint1_linear_1094_51)","stroke-width":"2"},null,-1)),a[5]||(a[5]=(0,i.Lk)("circle",{cx:"250",cy:"250",r:"125",fill:"url(#paint2_linear_1094_51)",stroke:"url(#paint3_linear_1094_51)","stroke-width":"2"},null,-1)),(0,i.Lk)("g",Ho,[(0,i.Lk)("text",{x:f.value,y:"233",class:"offer_amount"},(0,o.v_)((0,l.R1)(c).chatOffer.finalCredits),9,No),(0,i.Lk)("text",Go,(0,o.v_)((0,l.R1)(r).translate("packCredits")),1),(0,i.Lk)("g",Uo,[L.value&&v.value?((0,i.uX)(),(0,i.CE)("g",Vo,[...a[0]||(a[0]=[(0,i.Lk)("text",{x:"170",y:"330",class:"offer_percentage_en"},"90",-1),(0,i.Lk)("text",{x:"260",y:"290",class:"offer_percentage_sign_en"},"%",-1),(0,i.Lk)("text",{x:"265",y:"330",class:"offer_percentage_promo"},"OFF",-1)])])):(0,i.Q3)("v-if",!0),L.value&&!v.value?((0,i.uX)(),(0,i.CE)("g",Ko,[...a[1]||(a[1]=[(0,i.Lk)("text",{x:"170",y:"340",class:"offer_percentage_non_en"},"-90",-1),(0,i.Lk)("text",{x:"312",y:"320",class:"offer_percentage_sign_non_en"},"%",-1)])])):(0,i.Q3)("v-if",!0),L.value?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)("g",jo,[(0,i.Lk)("text",{x:C,y:"302",class:"offer_old_price_amount"}," 9,99 "),((0,i.uX)(),(0,i.CE)("svg",{x:b,y:"290",width:"51",height:"2"},[...a[2]||(a[2]=[(0,i.Lk)("path",{d:"M1 1H52",stroke:"#FF0000","stroke-width":"2","stroke-linecap":"round"},null,-1)])])),(0,i.Lk)("text",{x:y,y:"320",class:"offer_old_price_unit"},(0,o.v_)((0,l.R1)(c).chatOffer.currencyTextual),1),(0,i.Lk)("text",{x:k,y:"355",class:"offer_price_amount"},(0,o.v_)((0,l.R1)(c).chatOffer.integerPart),1),(0,i.Lk)("text",{x:w,y:"290",class:"offer_price_unit"},(0,o.v_)((0,l.R1)(c).chatOffer.currencyTextual),1),(0,i.Lk)("text",{x:E,y:"315",class:(0,o.C4)(["offer_price_unit_suffix",{offer_price_unit_suffix_compressed:p.value}])},(0,o.v_)((0,l.R1)(c).chatOffer.offerTextSuffix),3)]))]),(0,i.Lk)("g",Qo,[(0,i.Lk)("text",{x:"170",y:"300",class:"offer_get_it_now","text-anchor":"middle",innerHTML:x.value},null,8,zo)]),a[3]||(a[3]=(0,i.Fv)('<g filter="url(#filter0_d_1094_51)" data-v-14b89493><path d="M111.598 246.854C112.197 245.011 114.803 245.011 115.402 246.854L115.857 248.255C116.125 249.079 116.893 249.637 117.76 249.637H119.233C121.17 249.637 121.976 252.117 120.408 253.255L119.216 254.121C118.515 254.631 118.222 255.533 118.49 256.357L118.945 257.759C119.544 259.601 117.435 261.133 115.868 259.995L114.676 259.129C113.975 258.619 113.025 258.619 112.324 259.129L111.132 259.995C109.565 261.133 107.456 259.601 108.055 257.759L108.51 256.357C108.778 255.533 108.485 254.631 107.784 254.121L106.592 253.255C105.024 252.117 105.83 249.637 107.767 249.637H109.24C110.107 249.637 110.875 249.079 111.143 248.255L111.598 246.854Z" fill="url(#paint4_linear_1094_51)" data-v-14b89493></path><path d="M115.164 246.931L115.62 248.333C115.921 249.26 116.785 249.887 117.76 249.887H119.233C120.928 249.887 121.633 252.057 120.261 253.053L119.07 253.919C118.281 254.492 117.951 255.508 118.252 256.435L118.707 257.836C119.231 259.448 117.386 260.789 116.014 259.792L114.823 258.926C114.034 258.353 112.966 258.353 112.177 258.926L110.986 259.792C109.614 260.789 107.769 259.448 108.293 257.836L108.748 256.435C109.049 255.508 108.719 254.492 107.93 253.919L106.739 253.053C105.367 252.057 106.072 249.887 107.767 249.887H109.24C110.215 249.887 111.079 249.26 111.38 248.333L111.836 246.931C112.36 245.319 114.64 245.319 115.164 246.931Z" stroke="url
1(#paint5_linear_1094_51)" stroke-width="0.5" data-v-14b89493></path></g><g filter="url(#filter1_d_1094_51)" data-v-14b89493><path d="M157.598 344.854C158.197 343.011 160.803 343.011 161.402 344.854L161.857 346.255C162.125 347.079 162.893 347.637 163.76 347.637H165.233C167.17 347.637 167.976 350.117 166.408 351.255L165.216 352.121C164.515 352.631 164.222 353.533 164.49 354.357L164.945 355.759C165.544 357.601 163.435 359.133 161.868 357.995L160.676 357.129C159.975 356.619 159.025 356.619 158.324 357.129L157.132 357.995C155.565 359.133 153.456 357.601 154.055 355.759L154.51 354.357C154.778 353.533 154.485 352.631 153.784 352.121L152.592 351.255C151.024 350.117 151.83 347.637 153.767 347.637H155.24C156.107 347.637 156.875 347.079 157.143 346.255L157.598 344.854Z" fill="url(#paint6_linear_1094_51)" data-v-14b89493></path><path d="M161.164 344.931L161.62 346.333C161.921 347.26 162.785 347.887 163.76 347.887H165.233C166.928 347.887 167.633 350.057 166.261 351.053L165.07 351.919C164.281 352.492 163.951 353.508 164.252 354.435L164.707 355.836C165.231 357.448 163.386 358.789 162.014 357.792L160.823 356.926C160.034 356.353 158.966 356.353 158.177 356.926L156.986 357.792C155.614 358.789 153.769 357.448 154.293 355.836L154.748 354.435C155.049 353.508 154.719 352.492 153.93 351.919L152.739 351.053C151.367 350.057 152.072 347.887 153.767 347.887H155.24C156.215 347.887 157.079 347.26 157.38 346.333L157.836 344.931C158.36 343.319 160.64 343.319 161.164 344.931Z" stroke="url(#paint7_linear_1094_51)" stroke-width="0.5" data-v-14b89493></path></g><g filter="url(#filter2_d_1094_51)" data-v-14b89493><path d="M341.598 344.854C342.197 343.011 344.803 343.011 345.402 344.854L345.857 346.255C346.125 347.079 346.893 347.637 347.76 347.637H349.233C351.17 347.637 351.976 350.117 350.408 351.255L349.216 352.121C348.515 352.631 348.222 353.533 348.49 354.357L348.945 355.759C349.544 357.601 347.435 359.133 345.868 357.995L344.676 357.129C343.975 356.619 343.025 356.619 342.324 357.129L341.132 357.995C339.565 359.133 337.456 357.601 338.055 355.759L338.51 354.357C338.778 353.533 338.485 352.631 337.784 352.121L336.592 351.255C335.024 350.117 335.83 347.637 337.767 347.637H339.24C340.107 347.637 340.875 347.079 341.143 346.255L341.598 344.854Z" fill="url(#paint8_linear_1094_51)" data-v-14b89493></path><path d="M345.164 344.931L345.62 346.333C345.921 347.26 346.785 347.887 347.76 347.887H349.233C350.928 347.887 351.633 350.057 350.261 351.053L349.07 351.919C348.281 352.492 347.951 353.508 348.252 354.435L348.707 355.836C349.231 357.448 347.386 358.789 346.014 357.792L344.823 356.926C344.034 356.353 342.966 356.353 342.177 356.926L340.986 357.792C339.614 358.789 337.769 357.448 338.293 355.836L338.748 354.435C339.049 353.508 338.719 352.492 337.93 351.919L336.739 351.053C335.367 350.057 336.072 347.887 337.767 347.887H339.24C340.215 347.887 341.079 347.26 341.38 346.333L341.836 344.931C342.36 343.319 344.64 343.319 345.164 344.931Z" stroke="url(#paint9_linear_1094_51)" stroke-width="0.5" data-v-14b89493></path></g><g filter="url(#filter3_d_1094_51)" data-v-14b89493><path d="M250.598 380.854C251.197 379.011 253.803 379.011 254.402 380.854L254.857 382.255C255.125 383.079 255.893 383.637 256.76 383.637H258.233C260.17 383.637 260.976 386.117 259.408 387.255L258.216 388.121C257.515 388.631 257.222 389.533 257.49 390.357L257.945 391.759C258.544 393.601 256.435 395.133 254.868 393.995L253.676 393.129C252.975 392.619 252.025 392.619 251.324 393.129L250.132 393.995C248.565 395.133 246.456 393.601 247.055 391.759L247.51 390.357C247.778 389.533 247.485 388.631 246.784 388.121L245.592 387.255C244.024 386.117 244.83 383.637 246.767 383.637H248.24C249.107 383.637 249.875 383.079 250.143 382.255L250.598 380.854Z" fill="url(#paint10_linear_1094_51)" data-v-14b89493></path><path d="M254.164 380.931L254.62 382.333C254.921 383.26 255.785 383.887 256.76 383.887H258.233C259.928 383.887 260.633 386.057 259.261 387.053L258.07 387.919C257.281 388.492 256.951 389.508 257.252 390.435L257.707 391.836C258.231 393.448 256.386 394.789 255.014 393.792L253.823 392.926C253.034 392.353 251.966 392.353 251.177 392.926L249.986 393.792C248.614 394.789 246.769 393.448 247.293 391.836L247.748 390.435C248.049 389.508 247.719 388.492 246.93 387.919L245.739 387.053C244.367 386.057 245.072 383.887 246.767 383.887H248.24C249.215 383.887 250.079 383.26 250.38 382.333L250.836 380.931C251.36 379.319 253.64 379.319 254.164 380.931Z" stroke="url
1(#paint11_linear_1094_51)" stroke-width="0.5" data-v-14b89493></path></g><g filter="url(#filter4_d_1094_51)" data-v-14b89493><path d="M250.598 105.854C251.197 104.011 253.803 104.011 254.402 105.854L254.857 107.255C255.125 108.079 255.893 108.637 256.76 108.637H258.233C260.17 108.637 260.976 111.117 259.408 112.255L258.216 113.121C257.515 113.631 257.222 114.533 257.49 115.357L257.945 116.759C258.544 118.601 256.435 120.133 254.868 118.995L253.676 118.129C252.975 117.619 252.025 117.619 251.324 118.129L250.132 118.995C248.565 120.133 246.456 118.601 247.055 116.759L247.51 115.357C247.778 114.533 247.485 113.631 246.784 113.121L245.592 112.255C244.024 111.117 244.83 108.637 246.767 108.637H248.24C249.107 108.637 249.875 108.079 250.143 107.255L250.598 105.854Z" fill="url(#paint12_linear_1094_51)" data-v-14b89493></path><path d="M254.164 105.931L254.62 107.333C254.921 108.26 255.785 108.887 256.76 108.887H258.233C259.928 108.887 260.633 111.057 259.261 112.053L258.07 112.919C257.281 113.492 256.951 114.508 257.252 115.435L257.707 116.836C258.231 118.448 256.386 119.789 255.014 118.792L253.823 117.926C253.034 117.353 251.966 117.353 251.177 117.926L249.986 118.792C248.614 119.789 246.769 118.448 247.293 116.836L247.748 115.435C248.049 114.508 247.719 113.492 246.93 112.919L245.739 112.053C244.367 111.057 245.072 108.887 246.767 108.887H248.24C249.215 108.887 250.079 108.26 250.38 107.333L250.836 105.931C251.36 104.319 253.64 104.319 254.164 105.931Z" stroke="url(#paint13_linear_1094_51)" stroke-width="0.5" data-v-14b89493></path></g><g filter="url(#filter5_d_1094_51)" data-v-14b89493><path d="M341.598 140.854C342.197 139.011 344.803 139.011 345.402 140.854L345.857 142.255C346.125 143.079 346.893 143.637 347.76 143.637H349.233C351.17 143.637 351.976 146.117 350.408 147.255L349.216 148.121C348.515 148.631 348.222 149.533 348.49 150.357L348.945 151.759C349.544 153.601 347.435 155.133 345.868 153.995L344.676 153.129C343.975 152.619 343.025 152.619 342.324 153.129L341.132 153.995C339.565 155.133 337.456 153.601 338.055 151.759L338.51 150.357C338.778 149.533 338.485 148.631 337.784 148.121L336.592 147.255C335.024 146.117 335.83 143.637 337.767 143.637H339.24C340.107 143.637 340.875 143.079 341.143 142.255L341.598 140.854Z" fill="url(#paint14_linear_1094_51)" data-v-14b89493></path><path d="M345.164 140.931L345.62 142.333C345.921 143.26 346.785 143.887 347.76 143.887H349.233C350.928 143.887 351.633 146.057 350.261 147.053L349.07 147.919C348.281 148.492 347.951 149.508 348.252 150.435L348.707 151.836C349.231 153.448 347.386 154.789 346.014 153.792L344.823 152.926C344.034 152.353 342.966 152.353 342.177 152.926L340.986 153.792C339.614 154.789 337.769 153.448 338.293 151.836L338.748 150.435C339.049 149.508 338.719 148.492 337.93 147.919L336.739 147.053C335.367 146.057 336.072 143.887 337.767 143.887H339.24C340.215 143.887 341.079 143.26 341.38 142.333L341.836 140.931C342.36 139.319 344.64 139.319 345.164 140.931Z" stroke="url(#paint15_linear_1094_51)" stroke-width="0.5" data-v-14b89493></path></g><g filter="url(#filter6_d_1094_51)" data-v-14b89493><path d="M157.598 140.854C158.197 139.011 160.803 139.011 161.402 140.854L161.857 142.255C162.125 143.079 162.893 143.637 163.76 143.637H165.233C167.17 143.637 167.976 146.117 166.408 147.255L165.216 148.121C164.515 148.631 164.222 149.533 164.49 150.357L164.945 151.759C165.544 153.601 163.435 155.133 161.868 153.995L160.676 153.129C159.975 152.619 159.025 152.619 158.324 153.129L157.132 153.995C155.565 155.133 153.456 153.601 154.055 151.759L154.51 150.357C154.778 149.533 154.485 148.631 153.784 148.121L152.592 147.255C151.024 146.117 151.83 143.637 153.767 143.637H155.24C156.107 143.637 156.875 143.079 157.143 142.255L157.598 140.854Z" fill="url(#paint16_linear_1094_51)" data-v-14b89493></path><path d="M161.164 140.931L161.62 142.333C161.921 143.26 162.785 143.887 163.76 143.887H165.233C166.928 143.887 167.633 146.057 166.261 147.053L165.07 147.919C164.281 148.492 163.951 149.508 164.252 150.435L164.707 151.836C165.231 153.448 163.386 154.789 162.014 153.792L160.823 152.926C160.034 152.353 158.966 152.353 158.177 152.926L156.986 153.792C155.614 154.789 153.769 153.448 154.293 151.836L154.748 150.435C155.049 149.508 154.719 148.492 153.93 147.919L152.739 147.053C151.367 146.057 152.072 143.887 153.767 143.887H155.24C156.215 143.887 157.079 143.26 157.38 142.333L157.836 140.931C158.36 139.319 160.64 139.319 161.164 140.931Z" stroke="url
1(#paint17_linear_1094_51)" stroke-width="0.5" data-v-14b89493></path></g><g filter="url(#filter7_d_1094_51)" data-v-14b89493><path d="M386.598 246.854C387.197 245.011 389.803 245.011 390.402 246.854L390.857 248.255C391.125 249.079 391.893 249.637 392.76 249.637H394.233C396.17 249.637 396.976 252.117 395.408 253.255L394.216 254.121C393.515 254.631 393.222 255.533 393.49 256.357L393.945 257.759C394.544 259.601 392.435 261.133 390.868 259.995L389.676 259.129C388.975 258.619 388.025 258.619 387.324 259.129L386.132 259.995C384.565 261.133 382.456 259.601 383.055 257.759L383.51 256.357C383.778 255.533 383.485 254.631 382.784 254.121L381.592 253.255C380.024 252.117 380.83 249.637 382.767 249.637H384.24C385.107 249.637 385.875 249.079 386.143 248.255L386.598 246.854Z" fill="url(#paint18_linear_1094_51)" data-v-14b89493></path><path d="M390.164 246.931L390.62 248.333C390.921 249.26 391.785 249.887 392.76 249.887H394.233C395.928 249.887 396.633 252.057 395.261 253.053L394.07 253.919C393.281 254.492 392.951 255.508 393.252 256.435L393.707 257.836C394.231 259.448 392.386 260.789 391.014 259.792L389.823 258.926C389.034 258.353 387.966 258.353 387.177 258.926L385.986 259.792C384.614 260.789 382.769 259.448 383.293 257.836L383.748 256.435C384.049 255.508 383.719 254.492 382.93 253.919L381.739 253.053C380.367 252.057 381.072 249.887 382.767 249.887H384.24C385.215 249.887 386.079 249.26 386.38 248.333L386.836 246.931C387.36 245.319 389.64 245.319 390.164 246.931Z" stroke="url(#paint19_linear_1094_51)" stroke-width="0.5" data-v-14b89493></path></g><path d="M248.5 166.475H323.5M248 169.452H320.048M245.835 172.43H317.07M234 175.904H313.596M232 179.378H310.122M231 182.852H306.648M229 186.326H303.174M236 189.801H299.7M240.5 194.267H304.167M242.5 197.734H307.633M244 202.201H312.1M245 206.001H315.9M245 210.001H319.9M242 213.501H323.5" stroke="#3F2B00" stroke-linecap="round" data-v-14b89493></path><path d="M275 108C282 109.667 298.3 114.1 307.5 118.5" stroke="white" stroke-width="10" stroke-linecap="round" data-v-14b89493></path><g filter="url(#filter8_d_1094_51)" data-v-14b89493><rect x="132" y="246" width="235" height="8" rx="4" fill="url(#paint20_linear_1094_51)" data-v-14b89493></rect><rect x="132.5" y="246.5" width="234" height="7" rx="3.5" stroke="url(#paint21_linear_1094_51)" data-v-14b89493></rect></g>',11))])])],2),a[6]||(a[6]=(0,i.Fv)('<defs data-v-14b89493><filter id="filter0_d_1094_51" x="103.763" y="245.472" width="19.4734" height="18.9136" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-14b89493><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-14b89493></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" data-v-14b89493></feColorMatrix><feOffset dy="2" data-v-14b89493></feOffset><feGaussianBlur stdDeviation="1" data-v-14b89493></feGaussianBlur><feComposite in2="hardAlpha" operator="out" data-v-14b89493></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" data-v-14b89493></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1094_51" data-v-14b89493></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1094_51" result="shape" data-v-14b89493></feBlend></filter><filter id="filter1_d_1094_51" x="149.763" y="343.472" width="19.4734" height="18.9136" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-14b89493><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-14b89493></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" data-v-14b89493></feColorMatrix><feOffset dy="2" data-v-14b89493></feOffset><feGaussianBlur stdDeviation="1" data-v-14b89493></feGaussianBlur><feComposite in2="hardAlpha" operator="out" data-v-14b89493></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" data-v-14b89493></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1094_51" data-v-14b89493></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1094_51" result="shape" data-v-14b89493></feBlend></filter><filter id="filter2_d_1094_51" x="333.763" y="343.472" width="19.4734" height="18.9136" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-14b89493>
1<feFlood flood-opacity="0" result="BackgroundImageFix" data-v-14b89493></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" data-v-14b89493></feColorMatrix><feOffset dy="2" data-v-14b89493></feOffset><feGaussianBlur stdDeviation="1" data-v-14b89493></feGaussianBlur><feComposite in2="hardAlpha" operator="out" data-v-14b89493></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" data-v-14b89493></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1094_51" data-v-14b89493></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1094_51" result="shape" data-v-14b89493></feBlend></filter><filter id="filter3_d_1094_51" x="242.763" y="379.472" width="19.4734" height="18.9136" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-14b89493><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-14b89493></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" data-v-14b89493></feColorMatrix><feOffset dy="2" data-v-14b89493></feOffset><feGaussianBlur stdDeviation="1" data-v-14b89493></feGaussianBlur><feComposite in2="hardAlpha" operator="out" data-v-14b89493></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" data-v-14b89493></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1094_51" data-v-14b89493></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1094_51" result="shape" data-v-14b89493></feBlend></filter><filter id="filter4_d_1094_51" x="242.763" y="104.472" width="19.4734" height="18.9136" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-14b89493><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-14b89493></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" data-v-14b89493></feColorMatrix><feOffset dy="2" data-v-14b89493></feOffset><feGaussianBlur stdDeviation="1" data-v-14b89493></feGaussianBlur><feComposite in2="hardAlpha" operator="out" data-v-14b89493></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" data-v-14b89493></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1094_51" data-v-14b89493></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1094_51" result="shape" data-v-14b89493></feBlend></filter><filter id="filter5_d_1094_51" x="333.763" y="139.472" width="19.4734" height="18.9136" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-14b89493><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-14b89493></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" data-v-14b89493></feColorMatrix><feOffset dy="2" data-v-14b89493></feOffset><feGaussianBlur stdDeviation="1" data-v-14b89493></feGaussianBlur><feComposite in2="hardAlpha" operator="out" data-v-14b89493></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" data-v-14b89493></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1094_51" data-v-14b89493></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1094_51" result="shape" data-v-14b89493></feBlend></filter><filter id="filter6_d_1094_51" x="149.763" y="139.472" width="19.4734" height="18.9136" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-14b89493><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-14b89493></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" data-v-14b89493></feColorMatrix><feOffset dy="2" data-v-14b89493></feOffset><feGaussianBlur stdDeviation="1" data-v-14b89493></feGaussianBlur><feComposite in2="hardAlpha" operator="out" data-v-14b89493></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" data-v-14b89493></feColorMatrix>
1<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1094_51" data-v-14b89493></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1094_51" result="shape" data-v-14b89493></feBlend></filter><filter id="filter7_d_1094_51" x="378.763" y="245.472" width="19.4734" height="18.9136" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-14b89493><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-14b89493></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" data-v-14b89493></feColorMatrix><feOffset dy="2" data-v-14b89493></feOffset><feGaussianBlur stdDeviation="1" data-v-14b89493></feGaussianBlur><feComposite in2="hardAlpha" operator="out" data-v-14b89493></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" data-v-14b89493></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1094_51" data-v-14b89493></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1094_51" result="shape" data-v-14b89493></feBlend></filter><filter id="filter8_d_1094_51" x="128" y="244" width="243" height="16" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-14b89493><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-14b89493></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" data-v-14b89493></feColorMatrix><feOffset dy="2" data-v-14b89493></feOffset><feGaussianBlur stdDeviation="2" data-v-14b89493></feGaussianBlur><feComposite in2="hardAlpha" operator="out" data-v-14b89493></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" data-v-14b89493></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1094_51" data-v-14b89493></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1094_51" result="shape" data-v-14b89493></feBlend></filter><linearGradient id="paint0_linear_1094_51" x1="332.2" y1="134.8" x2="255.4" y2="272.2" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFF7CE" data-v-14b89493></stop><stop offset="1" stop-color="#FEB600" data-v-14b89493></stop></linearGradient><linearGradient id="paint1_linear_1094_51" x1="317.2" y1="116.2" x2="187" y2="386.2" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#A38500" data-v-14b89493></stop></linearGradient><linearGradient id="paint2_linear_1094_51" x1="316.5" y1="145.5" x2="201.636" y2="365.182" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#F6D677" data-v-14b89493></stop><stop offset="0.12" stop-color="#FFF5C4" data-v-14b89493></stop><stop offset="1" stop-color="#E8A600" data-v-14b89493></stop></linearGradient><linearGradient id="paint3_linear_1094_51" x1="250" y1="259" x2="320.8" y2="134.2" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFF6E4" data-v-14b89493></stop><stop offset="1" stop-color="#E29B06" data-v-14b89493></stop></linearGradient><linearGradient id="paint4_linear_1094_51" x1="115.75" y1="238" x2="111.5" y2="252.25" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFF6CC" data-v-14b89493></stop><stop offset="1" stop-color="#FFA710" data-v-14b89493></stop></linearGradient><linearGradient id="paint5_linear_1094_51" x1="113.5" y1="241" x2="110.5" y2="252" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#D68800" data-v-14b89493></stop></linearGradient><linearGradient id="paint6_linear_1094_51" x1="161.75" y1="336" x2="157.5" y2="350.25" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFF6CC" data-v-14b89493></stop><stop offset="1" stop-color="#FFA710" data-v-14b89493></stop></linearGradient><linearGradient id="paint7_linear_1094_51" x1="159.5" y1="339" x2="156.5" y2="350" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#D68800" data-v-14b89493></stop></linearGradient><linearGradient id="paint8_linear_1094_51" x1="345.75" y1="336" x2="341.5" y2="350.25" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFF6CC" data-v-14b89493></stop><stop offset="1" stop-color="#FFA710" data-v-14b89493></stop></linearGradient><linearGradient id="paint9_linear_1094_51" x1="343.5" y1="339" x2="340.5" y2="350" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#D68800" data-v-14b89493></stop></linearGradient><linearGradient id="paint10_linear_1094_51" x1="254.75" y1="372" x2="250.5" y2="386.25" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFF6CC" data-v-14b89493></stop><stop offset="1" stop-color="#FFA710" data-v-14b89493></stop></linearGradient><linearGradient id="paint11_linear_1094_51" x1="252.5" y1="375" x2="249.5" y2="386" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#D68800" data-v-14b89493></stop></linearGradient><linearGradient id="paint12_linear_1094_51" x1="258" y1="108" x2="240" y2="125" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFF6CC" data-v-14b89493></stop><stop offset="1" stop-color="#FFA710" data-v-14b89493></stop></linearGradient><linearGradient id="paint13_linear_1094_51" x1="252.5" y1="100" x2="249.5" y2="111" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#D68800" data-v-14b89493></stop></linearGradient><linearGradient id="paint14_linear_1094_51" x1="349" y1="143" x2="331" y2="160" gradientUnits="userSpaceOnUse" data-v-14b89493><stop offset="0.275" stop-color="#FFF6CC" data-v-14b89493></stop><stop offset="1" stop-color="#FFA710" data-v-14b89493></stop></linearGradient><linearGradient id="paint15_linear_1094_51" x1="343.5" y1="135" x2="340.5" y2="
1146" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#D68800" data-v-14b89493></stop></linearGradient><linearGradient id="paint16_linear_1094_51" x1="165" y1="143" x2="155.5" y2="152.5" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFEAB2" data-v-14b89493></stop><stop offset="1" stop-color="#FFA710" data-v-14b89493></stop></linearGradient><linearGradient id="paint17_linear_1094_51" x1="159.5" y1="135" x2="156.5" y2="146" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#D68800" data-v-14b89493></stop></linearGradient><linearGradient id="paint18_linear_1094_51" x1="390.75" y1="238" x2="386.5" y2="252.25" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFF6CC" data-v-14b89493></stop><stop offset="1" stop-color="#FFA710" data-v-14b89493></stop></linearGradient><linearGradient id="paint19_linear_1094_51" x1="388.5" y1="241" x2="385.5" y2="252" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#D68800" data-v-14b89493></stop></linearGradient><linearGradient id="paint20_linear_1094_51" x1="344" y1="246" x2="151.918" y2="250.502" gradientUnits="userSpaceOnUse" data-v-14b89493><stop offset="0.115" stop-color="#FF0000" data-v-14b89493></stop><stop offset="1" stop-color="#BA0000" data-v-14b89493></stop></linearGradient><linearGradient id="paint21_linear_1094_51" x1="132" y1="250" x2="367" y2="250" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFBF01" data-v-14b89493></stop><stop offset="1" stop-color="#FFF2CD" data-v-14b89493></stop></linearGradient><linearGradient id="paint22_linear_1094_51" x1="390" y1="101" x2="200" y2="450" gradientUnits="userSpaceOnUse" gradientTransform="rotate(195)" data-v-14b89493><stop offset="16.34%" stop-color="#AC8100" data-v-14b89493></stop><stop offset="81.21%" stop-color="#FFF5CC" data-v-14b89493></stop></linearGradient><linearGradient id="paint23_linear_1094_51" x1="255.2" y1="134.8" x2="332.4" y2="272.2" gradientUnits="userSpaceOnUse" gradientTransform="rotate(168)" data-v-14b89493><stop offset="21.21%" stop-color="#FFF5CC" data-v-14b89493></stop><stop offset="75.50%" stop-color="#715500" data-v-14b89493></stop></linearGradient><linearGradient id="paint24_linear_1094_51" x1="332.752" y1="134.027" x2="255.436" y2="272.349" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="#FFF7CE" data-v-14b89493></stop><stop offset="1" stop-color="#FEB600" data-v-14b89493></stop></linearGradient><linearGradient id="paint25_linear_1094_51" x1="317.651" y1="115.302" x2="186.577" y2="387.114" gradientUnits="userSpaceOnUse" data-v-14b89493><stop stop-color="white" data-v-14b89493></stop><stop offset="1" stop-color="#A38500" data-v-14b89493></stop></linearGradient><linearGradient id="offerPromoPriceFill" gradientTransform="rotate(90)" data-v-14b89493><stop offset="23.77%" stop-color="#FF0000" data-v-14b89493></stop><stop offset="76.18%" stop-color="#990000" data-v-14b89493></stop></linearGradient><linearGradient id="offerPromoCtaFill" gradientTransform="rotate(204)" data-v-14b89493><stop offset="23.77%" stop-color="#FF0000" data-v-14b89493></stop><stop offset="76.18%" stop-color="#870101" data-v-14b89493></stop></linearGradient><linearGradient id="offerPromoPriceStroke" gradientTransform="rotate(100)" data-v-14b89493><stop offset="0%" stop-color="#FFFFFF" data-v-14b89493></stop><stop offset="100%" stop-color="#FFBF00" data-v-14b89493></stop></linearGradient><linearGradient id="offerPromoCtaStroke" gradientTransform="rotate(100)" data-v-14b89493><stop offset="0%" stop-color="#FFFFFF" data-v-14b89493></stop><stop offset="100%" stop-color="#FFBF00" data-v-14b89493></stop></linearGradient></defs>',1))],40,Xo))}},Zo=(0,r.A)(Yo,[["__scopeId","data-v-14b89493"]]);var qo=a(67032);const $o={__name:"EasterEgg",props:{showEgg:{type:Boolean,default:!0},promoGranted:{type:Boolean,default:!1},showInstructionsOnClick:{type:Boolean,default:!1},modelName:{type:String,default:null},scaled:{type:Boolean,default:!1},paidChatActive:{type:Boolean,default:!1}},emits:["promo-unlocked"],setup(e,t){let a=t.emit;const s=Be.W.getInstance(),r=dt.Q.getInstance(),c=e,d=a,u=(0,l.KR)(!1),v=(0,l.KR)(!1),p=(0,l.KR)(!1);let f=null;function m(){clearTimeout(f),c.showEgg&&(f=setTimeout((()=>{p.value=!0}),1e4))}function h(){clearTimeout(f),f=null}function _(){m()}function g(){h(),p.value=!1}const C=["privateChatMode.dnxChat","vipChatMode.dnxChat","voyeurChatMode.dnxChat"],b=["joinFailed.dnxChat","exit.dnxChat","noMoreCredits.dnxChat","youHaveBeenBanned.dnxChat","askVisitorToJoinPaid.dnxChat","noMoreTeasingTime.dnxC
1hat"];(0,i.sV)((()=>{C.forEach((e=>document.addEventListener(e,_))),b.forEach((e=>document.addEventListener(e,g))),c.paidChatActive&&m()})),(0,i.hi)((()=>{h(),C.forEach((e=>document.removeEventListener(e,_))),b.forEach((e=>document.removeEventListener(e,g)))}));const y=(0,i.EW)((()=>c.promoGranted||u.value));function k(){c.showInstructionsOnClick&&window.modal.show("easterInstructions",{options:{data:{openedFromEgg:y.value,modelName:c.modelName}}})}async function w(){if(!v.value){v.value=!0;try{if(!(await r.post("/easter-egg/unlock")).success)return;u.value=!0,d("promo-unlocked"),window.modal.show("easterInstructions",{options:{data:{openedFromEgg:!0,modelName:c.modelName}}})}catch{}finally{v.value=!1}}}return(t,a)=>(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["egg__container",{"egg--bouncing":v.value}])},[e.showInstructionsOnClick&&y.value?((0,i.uX)(),(0,i.Wv)(Fa.A,{key:0,class:"info-icon",onClick:k})):(0,i.Q3)("v-if",!0),(0,i.bF)(qo.A,{"promo-granted":y.value,"credits-label":(0,l.R1)(s).translate("easterModal.egg.creditsLabel"),"locked-state":(0,l.R1)(s).translate("easterModal.egg.clickToUnlock"),"unlocked-state":(0,l.R1)(s).translate("easterModal.egg.unlockedState"),scaled:e.scaled,clickable:!y.value,"with-offset":"",onClick:a[0]||(a[0]=e=>y.value?null:w())},null,8,["promo-granted","credits-label","locked-state","unlocked-state","scaled","clickable"])],2)),[[n.aG,p.value]])}},Jo=(0,r.A)($o,[["__scopeId","data-v-3eeb7e65"]]),el={key:1},tl={__name:"ChatOffer",setup(e){(0,n.$9)((e=>({a3907be0:h.value.mobile.width,v021cf3c6:h.value.mobile.height,v9ef03fc2:h.value.mobile.top,v1572e1be:h.value.mobile.bottom,a41d5334:h.value.mobile.right,v60705a7d:h.value.mobile.left,v0d779f9e:h.value.desktop.width,f0a54b62:h.value.desktop.height,v04c46da6:h.value.desktop.top,v7e026353:h.value.desktop.bottom,v0d3133f4:h.value.desktop.right,v93d0d9a2:h.value.desktop.left,v507b8900:h.value.desktop.bottomWithMiniOverlay})));const t=(0,z.P)(),a=t.state,s=t.chatModeIsActive,r=(0,i.EW)((()=>s(Oe.wz.PRIVATE)||s(Oe.wz.VIP)||s(Oe.wz.VOYEUR))),c=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,d=(0,i.EW)((()=>c.value?250:150)),v=(0,i.EW)((()=>null!==a.value.chatOffer.finalCredits&&null!==a.value.chatOffer.currencyConversion)),p=(0,i.EW)((()=>"#chat-offer-".concat(a.value.cammer.account))),f=(0,i.EW)((()=>null===document.querySelector(p.value))),m={coin:{desktop:{width:250,height:250,top:"auto",bottom:-40,right:365,left:"auto"},mobile:{width:150,height:150,top:58,bottom:"auto",right:"auto",left:-27}},easter:{desktop:{width:130,height:130,top:"auto",bottom:8,right:"396",left:"auto"},mobile:{width:90,height:90,top:92,bottom:"auto",right:"auto",left:8}}},h=(0,i.EW)((()=>{let e=m.coin;return!v.value&&Object.keys(m).includes(a.value.seasonalEvent)&&(e=m[a.value.seasonalEvent]),{desktop:{width:"".concat(e.desktop.width,"px"),height:"".concat(e.desktop.height,"px"),top:"auto"===e.desktop.top?e.desktop.top:"".concat(e.desktop.top,"px"),bottom:"auto"===e.desktop.bottom?e.desktop.bottom:"".concat(e.desktop.bottom,"px"),bottomWithMiniOverlay:e.desktop.bottom+123+"px",right:"auto"===e.desktop.right?e.desktop.right:"".concat(e.desktop.right,"px"),left:"auto"===e.desktop.left?e.desktop.left:"".concat(e.desktop.left,"px")},mobile:{width:"".concat(e.mobile.width,"px"),height:"".concat(e.mobile.height,"px"),top:"auto"===e.mobile.top?e.mobile.top:"".concat(e.mobile.top,"px"),bottom:"auto"===e.mobile.bottom?e.mobile.bottom:"".concat(e.mobile.bottom,"px"),right:"auto"===e.mobile.right?e.mobile.right:"".concat(e.mobile.right,"px"),left:"auto"===e.mobile.left?e.mobile.left:"".concat(e.mobile.left,"px")}}}));return(e,t)=>((0,i.uX)(),(0,i.Wv)(i.Im,{disabled:f.value,to:p.value},[v.value?((0,i.uX)(),(0,i.CE)("div",{key:0,id:"cta_video-star",class:(0,o.C4)(["chat_offer",{"chat_offer--desktop":(0,l.R1)(c)}])},[(0,l.R1)(a).chatModeJoined?((0,i.uX)(),(0,i.Wv)(Zo,{key:0,width:d.value,height:d.value},null,8,["width","height"])):(0,i.Q3)("v-if",!0)],2)):(0,l.R1)(a).seasonalEvent===(0,l.R1)(Ma.A).EASTER?((0,i.uX)(),(0,i.CE)("div",el,[(0,i.Lk)("div",{class:(0,o.C4)(["chat_offer",{"chat_offer--desktop":(0,l.R1)(c)}])},[(0,i.bF)(Jo,{"show-egg":(0,l.R1)(a).easterEggPromo.showEgg,"promo-granted":(0,l.R1)(a).easterEggPromo.promoGranted,"paid-chat-active":r.value,"model-name":(0,l.R1)(a).cammer.nickname,"show-instructions-on-click":!0,scaled:!(0,l.R1)(c),onPromoUnlocked:t[0]||(t[0]=()=>(0,l.R1)(a).easterEggPromo.promoGranted=!0)},null,8,["show-egg","promo-granted","paid-chat-active","model-name","scaled"])],2)])):(0,i.Q3)("v-if",!0)],8,["disabled","to"]))}},al=(0,r.A)(tl,[["__scopeId","data-v-2e473510"]]),nl={class:"profile-tariff"},il={class:"tariff__content"},ol={class:"tariff__title"},ll={class:"tariff__value"},sl={__name:"ProfileTariff",props:{tariff:Object},setup(e){(0,n.$9)((e=>({v637b261c:t.tariff.color})));const t=e;return(t,a)=>((0,i.uX)(),(0,i.CE)("div",nl,[a[0]||(a[0]=(0,i.Lk)("div",{class:"tariff__icon"},null,-1)),(0,i.Lk)("div",il,[(0,i.Lk)("div",ol,(0,o.v_)(e.tariff.title),
11),(0,i.Lk)("div",ll,(0,o.v_)(e.tariff.value),1)])]))}},rl=(0,r.A)(sl,[["__scopeId","data-v-2f7da32d"]]),cl={class:"profile-description"},dl={class:"description-text"},ul=["innerHTML"],vl={class:"profile-separator"},pl={class:"profile-details"},fl={__name:"ProfileDescription",setup(e){const t=(0,z.P)().state,a=Be.W.getInstance(),n=(0,i.EW)((()=>{const e=e=>a.translate("nbCreditCreditsPerMin",{"%nbCredit%":e});return{private:e(t.value.cammer.tariffs.private),vip:e(t.value.cammer.tariffs.vip),voyeur:e(t.value.cammer.tariffs.voyeur)}})),s={private:{title:a.translate("profile.privateShow"),value:n.value.private,color:"#FFD123"},vip:{title:a.translate("profile.VIPShow"),value:n.value.vip,color:"#FF8B32"},voyeur:{title:a.translate("profile.voyeur"),value:n.value.voyeur,color:"#A194E5"}},r=(0,i.rk)("descriptionText"),c=(0,i.EW)((()=>{var e,t;return null!==(e=null===(t=r.value)||void 0===t?void 0:t.offsetHeight)&&void 0!==e?e:0})),d=(0,l.KR)(!1),u=(0,l.KR)(!0);(0,i.sV)((()=>{c.value>=89&&(d.value=!0)}));const v=a.translate("readMore"),p=a.translate("readLess");return(e,a)=>((0,i.uX)(),(0,i.CE)("div",cl,[(0,i.Lk)("div",dl,[(0,i.Lk)("p",{ref_key:"descriptionText",ref:r,class:(0,o.C4)(["description-text__inner",{"description-text__inner--cut":d.value&&u.value}]),innerHTML:(0,l.R1)(t).cammer.description},null,10,ul),d.value?((0,i.uX)(),(0,i.CE)("a",{key:0,class:"toggle-description",onClick:a[0]||(a[0]=()=>u.value=!u.value)},(0,o.v_)(u.value?(0,l.R1)(v):(0,l.R1)(p)),1)):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",vl,[(0,i.bF)(se,{style:"profile-menu"})])]),(0,i.Lk)("div",pl,[((0,i.uX)(),(0,i.CE)(i.FK,null,(0,i.pI)(s,(e=>(0,i.bF)(rl,{key:e,tariff:e},null,8,["tariff"]))),64))])]))}},ml=(0,r.A)(fl,[["__scopeId","data-v-e8f70f26"]]);var hl=a(76334),_l=a.n(hl),gl=a(58301);const Cl={class:"media-viewer__container"},bl={class:"media-viewer__img swiper",ref:"swiper"},yl={class:"swiper-wrapper"},kl=["alt","data-src"],wl={__name:"MediaViewer",props:{cammer:{type:Object}},setup(e){const t=(0,z.P)(),a=t.getSelectedPictureIndex,n=t.decreaseSelectedPictureIndex,s=t.increaseSelectedPictureIndex,r=t.updateSelectedPictureIndex,c=hi.AvsService.isContentBlurred(),d=(0,l.KR)(null),u=(0,i.rk)("swiper"),v=(0,i.EW)((()=>a())),p=()=>{setTimeout((()=>r(null)),0)},f=()=>{n()},m=()=>{s()},h=e=>{"Escape"===e.key?p():"ArrowLeft"===e.key?f():"ArrowRight"===e.key&&m()};return(0,i.wB)(v,(e=>{d.value.slideTo(a())})),(0,i.sV)((()=>{d.value=new gl.MediaSlider(u.value,".swiper-slide",{init:!1,initialSlide:a(),noSwiping:!1,pagination:{el:".media-viewer__pagination",type:"fraction"}}),d.value.on("slideChange",(function(){const e=d.value.activeIndex-d.value.previousIndex;if(e>0){if(d.value.activeIndex<=a())return;r(d.value.activeIndex)}else if(e<0){if(d.value.activeIndex>=a())return;r(d.value.activeIndex)}})),window.addEventListener("keydown",h)})),(0,i.hi)((()=>{window.removeEventListener("keydown",h)})),(t,a)=>((0,i.uX)(),(0,i.CE)("section",{class:(0,o.C4)(["popin media-viewer",{"is-visible":v.value||0===v.value}])},[(0,i.Lk)("div",{class:"media-viewer__backdrop modal-backdrop--dark-90",onClick:p}),(0,i.Lk)("div",{class:"media-viewer__close",onClick:p},[...a[0]||(a[0]=[(0,i.Lk)("svg",null,[(0,i.Lk)("use",{"xlink:href":"#close"})],-1)])]),(0,i.Lk)("div",Cl,[(0,i.Lk)("div",bl,[(0,i.Lk)("div",yl,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.cammer.pictures,((t,a)=>((0,i.uX)(),(0,i.CE)("div",{key:a,class:"swiper-slide"},[(0,i.Lk)("img",{alt:e.cammer.nickname,class:(0,o.C4)(["lazyload",{"is-avs-content-blurred":(0,l.R1)(c)}]),"data-src":t,onClick:m},null,10,kl)])))),128))]),(0,i.Lk)("div",{class:"media-viewer__footer"},[(0,i.Lk)("div",{class:"media-viewer__nav--prev",onClick:f},[...a[1]||(a[1]=[(0,i.Lk)("svg",null,[(0,i.Lk)("use",{"xlink:href":"#back"})],-1)])]),a[3]||(a[3]=(0,i.Lk)("div",{class:"media-viewer__pagination"},null,-1)),(0,i.Lk)("div",{class:"media-viewer__nav--next",onClick:m},[...a[2]||(a[2]=[(0,i.Lk)("svg",null,[(0,i.Lk)("use",{"xlink:href":"#back"})],-1)])])])],512)])],2))}},El=(0,r.A)(wl,[["__scopeId","data-v-23e3dc3c"]]),Ll={class:"profile-pictures"},xl={class:"swiper swiper_pictures"},Al={class:"swiper-wrapper"},Rl=["alt","data-src","onClick"],Il={__name:"ProfilePictures",setup(e){const t=(0,z.P)(),a=t.state,n=t.updateSelectedPictureIndex,s=hi.AvsService.isContentBlurred();return(0,i.sV)((()=>{new(_l())(".swiper_pictures",{initialSlide:1,slidesPerView:2.5,noSwiping:!1,init:!1}).init()})),(e,t)=>((0,i.uX)(),(0,i.CE)("div",Ll,[(0,i.Lk)("div",xl,[(0,i.Lk)("div",Al,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,l.R1)(a).cammer.pictures,((e,t)=>((0,i.uX)(),(0,i.CE)("div",{key:t,class:"swiper-slide slide-picture"},[(0,i.Lk)("img",{alt:(0,l.R1)(a).cammer.nickname,class:(0,o.C4)(["lazyload",{"is-avs-content-blurred":(0,l.R1)(s)}]),"data-src":e,onClick:e=>{n(t)}},null,10,Rl)])))),128))])]),(0,i.Q3)(" We need to teleport it to body, otherwise it's boxed into the Profile Menu "),((0,i.uX)(),(0,i.Wv)(i.Im,{to:"body"},[(0,i.bF)(El,{cammer:(0,l.R1)(a).cammer},null,8,["cammer"])]))]))}},Fl=(0,r.A)(Il,[["__scopeId","data-v-5291a2da"]]);
1var Ml=a(45633),Sl=a(71890);const Tl={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},Bl=["stroke"],Ol=["stroke"],Pl={__name:"ForbiddenIcon",props:{color:{type:String,default:"#fff"}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)("svg",Tl,[(0,i.Lk)("path",{d:"M12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22Z",stroke:e.color,"stroke-width":"3","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Bl),(0,i.Lk)("path",{d:"M18.9004 5L4.90039 19",stroke:e.color,"stroke-width":"3","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ol)]))};var Wl=a(38209),Xl=a(60550),Dl=a.n(Xl);const Hl={class:"profile-actions"},Nl={class:"profile-action"},Gl={class:"action-text"},Ul={class:"action-toggle"},Vl={key:0,class:"profile-action"},Kl={class:"action-text"},jl={class:"action-toggle"},Ql={__name:"ProfileActions",setup(e){const t=(0,z.P)(),a=t.state,n=t.updateIsFavorite,s=t.updateIsBlacklisted,r=t.showTransitionScreen,c=Zt().closeActionMenu,d=Be.W.getInstance(),u=Y.VisitorService.getInstance(),v=(0,l.KR)(a.value.cammer.isFavorite),p=(0,l.KR)(a.value.cammer.isBlacklisted),f=(0,i.EW)((()=>p.value?"#FF005C":"#FFF")),m=(0,i.EW)((()=>v.value?"#FFD123":"#FFF")),h=(0,i.EW)((()=>v.value?d.translate("removeFromMyFavorites"):d.translate("addToMyFavorites"))),_=(0,i.EW)((()=>p.value?d.translate("doNotHide"):d.translate("hideGirl"))),C=()=>{if(!a.value.user.loggedIn)return v.value||u.addModelToFavoritesCookie(a.value.cammer.account),c(g),void r(Z.U9.CONNECT);v.value=!v.value,Dl().commands.execute("app:handleFavorite",{action:v.value?"add":"remove",id:a.value.cammer.account,nickname:a.value.cammer.nickname,callbackSuccess:()=>{n(v.value),v.value&&(p.value=!1)}})},b=()=>{if(!a.value.user.loggedIn)return c(g),void r(Z.U9.CONNECT);Dl().commands.execute("app:handleBanModel",{action:p.value?"unban":"ban",id:a.value.cammer.account,callbackSuccess:()=>{p.value=!p.value,s(p.value),p.value&&(v.value=!1)}})};return(e,t)=>((0,i.uX)(),(0,i.CE)("div",Hl,[(0,i.Lk)("div",Nl,[(0,i.Lk)("div",{class:(0,o.C4)(["action-icon icon-favorite",{"is-active":v.value}])},[(0,i.bF)(ao,{color:m.value},null,8,["color"])],2),(0,i.Lk)("div",Gl,(0,o.v_)(h.value),1),(0,i.Lk)("div",Ul,[(0,i.bF)(Wl.A,{active:v.value,onToggle:C},null,8,["active"])])]),(0,l.R1)(a).user.role!==(0,l.R1)(Te.A).ROLE_AUDIOTEL?((0,i.uX)(),(0,i.CE)("div",Vl,[(0,i.Lk)("div",{class:(0,o.C4)(["action-icon icon-blacklist",{"is-active":p.value}])},[(0,i.bF)(Pl,{color:f.value},null,8,["color"])],2),(0,i.Lk)("div",Kl,(0,o.v_)(_.value),1),(0,i.Lk)("div",jl,[(0,i.bF)(Wl.A,{active:p.value,onToggle:b},null,8,["active"])])])):(0,i.Q3)("v-if",!0)]))}},zl=(0,r.A)(Ql,[["__scopeId","data-v-1c2aca7c"]]),Yl=["href"],Zl={key:0,class:"ranking__container--place"},ql={__name:"ProfileRanking",props:{place:{type:Number,required:!0},step:{type:String,required:!0},link:{type:String,required:!0}},setup(e){const t=e,a=(0,i.EW)((()=>{let e="--top-100";return 1===t.place?e="--1":2===t.place?e="--2":3===t.place&&(e="--3"),"current"===t.step&&(e+="-current"),e}));return(t,n)=>((0,i.uX)(),(0,i.CE)("a",{href:e.link,"data-bypass":!0,class:(0,o.C4)(["ranking__container","ranking__container".concat(a.value)])},[e.place>=4&&e.place<=100?((0,i.uX)(),(0,i.CE)("div",Zl,(0,o.v_)(e.place),1)):(0,i.Q3)("v-if",!0)],10,Yl))}},$l=(0,r.A)(ql,[["__scopeId","data-v-cc36bdbe"]]),Jl={class:"profile-menu","data-exclude-click-outside":"1"},es={class:"profile-menu__model-info"},ts={class:"profile-menu__button"},as={__name:"ProfileMenu",setup(e){const t=Be.W.getInstance(),a=(0,z.P)(),n=a.state,s=a.getSelectedPictureIndex,r=a.updateChatMinimizedOnProfilePage,c=(0,vo.m)().getRedirectUrl,d=Zt().closeActionMenu,u=(0,l.KR)(null);function v(){const e=c(po.A.PROFILE);document.dispatchEvent(new Event("chat:minimize")),r(!0),mo().navigate(e,{trigger:!0})}(0,i.sV)((()=>{window.addEventListener("keydown",p)})),(0,i.hi)((()=>{window.removeEventListener("keydown",p)}));const p=e=>{null===s()&&"Escape"===e.key&&d(g)},f=(0,i.EW)((()=>{const e=n.value.seasonalEvent===Ma.A.CAMSFACTOR,t=n.value.cammer.camsFactorRanking;return e&&(t>=1&&t<=100)}));return(e,a)=>((0,i.uX)(),(0,i.CE)("div",Jl,[(0,i.Lk)("div",es,[(0,i.bF)(Ao,{"show-age":!0,"show-profile-picture":!0})]),(0,i.bF)(En.A,{"container-element":u.value},{default:(0,i.k6)((()=>[(0,i.Lk)("div",{ref_key:"profileScrollable",ref:u,class:"profile-menu__inner"},[f.value?((0,i.uX)(),(0,i.Wv)($l,{key:0,place:(0,l.R1)(n).cammer.camsFactorRanking,step:"current",link:(0,l.R1)(Oo()).paths.camsfactorLanding},null,8,["place","link"])):(0,i.Q3)("v-if",!0),(0,i.bF)(ml),(0,i.bF)(Fl),(0,i.bF)(zl),(0,i.Lk)("div",ts,[(0,i.bF)(Sl.A,{style:(0,o.Tr)((0,l.R1)(Ml.A).GHOST),onClick:v},{default:(0,i.k6)((()=>[(0,i.eW)((0,o.v_)((0,l.R1)(t).translate("viewFullProfile")),1)])),_:1},8,["style"])])],512)])),_:1},8,["container-element"])]))}},ns=(0,r.A)(as,[["__scopeId","data-v-fa743556"]]),is=Object.freeze({COMPACT:"compact",FULLSCREEN:"fullscreen"});var os=a(49594),ls=a(3613),ss=a(96234),rs=a(24214);const cs={class:"action__container"},ds={class:"action__title"},us={class:"action__content"},vs={key:0,class:"action__cta"}
1,ps={key:1,class:"action__footer"},fs={__name:"SimpleAction",props:{name:{type:String,required:!0}},emits:["countdown-complete"],setup(e,t){let a=t.emit;(0,n.$9)((e=>({v0367fbaa:_.value})));const s=a;function r(){const e=os.vp[c.name],t="function"==typeof e.onCountdownComplete?e.onCountdownComplete({isLoggedIn:d.value.user.loggedIn,hasCredits:d.value.user.credits>0}):e.onCountdownComplete;t&&s("countdown-complete",t)}const c=e,d=(0,z.P)().state,u=Be.W.getInstance(),v=(0,vo.m)().redirectTo,p=(0,i.EW)((()=>{var e,t;return!(null!==(e=d.value.user)&&void 0!==e&&e.loggedIn||null!==(t=d.value.user)&&void 0!==t&&t.returning)})),f=(0,i.EW)((()=>os.vp[c.name]||{})),m=(0,i.EW)((()=>{const e="".concat(c.name,"_title");return u.translate(e,{"%nickname%":d.value.cammer.nickname},"actionsScreen")})),h=(0,i.EW)((()=>1===m.value.trim().split(/\s+/).length&&m.value.length>11)),_=(0,i.EW)((()=>h.value||c.name===os.RI.KICKED_OUT?"36px":"42px")),g=(0,i.EW)((()=>{const e="".concat(c.name,"_text");return u.translate(e,{"%nickname%":d.value.cammer.nickname},"actionsScreen")}
1)),C=(0,i.EW)((()=>{const e=f.value.actions;return e?"function"==typeof e?e({isNewUser:p.value}):e:[]})),b=(0,i.EW)((()=>{var e;return null!==(e=f.value.footer)&&void 0!==e&&e})),y=(0,l.KR)(null),k=(0,i.EW)((()=>{var e;return null!==(null!==(e=f.value.redirectOnInactivity)&&void 0!==e?e:null)})),w=()=>{y.value&&(clearTimeout(y.value),y.value=null)},E=()=>{w()},L=["pointerdown"];return(0,i.sV)((()=>{k.value&&((()=>{if(!k.value)return;y.value&&clearTimeout(y.value);const e=f.value.redirectOnInactivity,t=1e3*e.delay;y.value=setTimeout((()=>{v(e.toPage)}),t)})(),L.forEach((e=>{document.addEventListener(e,E,{passive:!0})})))})),(0,i.hi)((()=>{w(),L.forEach((e=>{document.removeEventListener(e,E)}))})),(e,t)=>((0,i.uX)(),(0,i.CE)("div",cs,[(0,i.Q3)(" Prev/next swiper component shown on all Simple action screens "),(0,i.bF)(rs.default),(0,i.Lk)("div",ds,(0,o.v_)(m.value),1),(0,i.Lk)("div",us,(0,o.v_)(g.value),1),C.value.length>0?((0,i.uX)(),(0,i.CE)("div",vs,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(C.value,((e,t)=>{var a;return(0,i.uX)(),(0,i.Wv)((0,i.$y)(null===(a=(0,l.R1)(ls.B)[e])||void 0===a?void 0:a.component),{key:t,onCountdownComplete:r},null,32)})),128))])):(0,i.Q3)("v-if",!0),b.value?((0,i.uX)(),(0,i.CE)("div",ps,[t[0]||(t[0]=(0,i.Lk)("div",{class:"action__separator"},null,-1)),(0,i.bF)(ss.A,null,{default:(0,i.k6)((()=>[(0,i.Lk)("p",null,(0,o.v_)((0,l.R1)(u).translate("viewAllGirls",{},"actionsScreen")),1)])),_:1})])):(0,i.Q3)("v-if",!0)]))}},ms=(0,r.A)(fs,[["__scopeId","data-v-2d6ba87b"]]),hs={key:0,class:"countdown"},_s={key:1},gs={__name:"Close",props:{isActive:{type:Boolean,default:!1},timeLeft:{type:Number,default:0}},emits:["close"],setup(e,t){let a=t.emit;(0,n.$9)((e=>({v089068a8:c.value})));const l=a,s=e,r=()=>{s.isActive&&l("close")},c=(0,i.EW)((()=>s.isActive?"#FFFFFF":"#999999"));return(t,a)=>((0,i.uX)(),(0,i.CE)("div",{key:0,class:"standalone-action__close",onClick:r},[e.timeLeft>0?((0,i.uX)(),(0,i.CE)("span",hs,(0,o.v_)(e.timeLeft),1)):((0,i.uX)(),(0,i.CE)("svg",_s,[...a[0]||(a[0]=[(0,i.Lk)("use",{"xlink:href":"#close"},null,-1)])]))]))}},Cs=(0,r.A)(gs,[["__scopeId","data-v-261475b4"]]),bs={key:0,class:"action__container"},ys={__name:"StandaloneAction",props:{name:{type:String,required:!0}},setup(e){const t=(0,z.P)(),a=t.state,n=t.hideTransitionScreen,o=t.resetInitialTransition,s=e,r=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,c=e=>[Z.U9.FREE_3MIN_ENDS,Z.U9.CONNECT].includes(e),d=(e,t)=>{const a=[Z.U9.LOGIN,Z.U9.REGISTER];return c(t)&&a.includes(e)},v=(0,i.EW)((()=>c(a.value.activeTransition)||d(a.value.activeTransition,a.value.initialTransition)||!r.value)),p=(0,i.EW)((()=>os.vp[s.name]||{})),f=(0,l.Kh)({translations:[],data:[],options:{},isLoaded:!1,isLoading:!1,name:""}),m=(0,l.IJ)(null),h=(0,l.KR)(!1),_=(0,l.KR)(0);let g=0;const C=(0,vo.m)().redirectTo,b=async()=>{const e=dt.Q.getInstance();f.isLoaded=!1,f.isLoading=!0,m.value=p.value.component;try{const t=await e.get(p.value.initUrl);if(!t.success)throw new Error("Action screen loading failed");const a=t.translations,n=t.data,i=t.options;f.translations=a||[],f.data=n||[],i&&Object.keys(i).length&&(f.options={...f.options,...i}),0===_.value&&(_.value=f.options.closableAfter||0),f.isLoaded=!0}catch(zs){_local.log(zs),f.isLoaded=!1}f.isLoading=!1},y=()=>{g&&clearInterval(g),_.value>0?g=setInterval((()=>{_.value>0?(_.value--,0===_.value&&(h.value=!0)):(clearInterval(g),g=0)}),1e3):h.value=!0},k=()=>{_.value=0,g&&(clearInterval(g),g=0),h.value=!0},w=()=>{const e=a.value.activeTransition;c(e)||d(a.value.activeTransition,a.value.initialTransition)?n():C(po.A.ZAPPAGE)};return(0,i.sV)((async()=>{await b(),y()})),(0,i.hi)((()=>{o()})),(0,i.wB)((()=>a.value.cammer.noMoreTeasing),(e=>{e&&k()})),(0,i.wB)((()=>a.value.activeTransition),(async()=>{h.value=!1,await b(),y()})),(e,t)=>f.isLoaded?((0,i.uX)(),(0,i.CE)("div",bs,[((0,i.uX)(),(0,i.Wv)((0,i.$y)(m.value),{data:f.data,translations:f.translations,key:m.value},{close:(0,i.k6)((()=>[v.value?((0,i.uX)(),(0,i.Wv)(Cs,{key:0,"is-active":h.value,"time-left":_.value,onClose:w},null,8,["is-active","time-left"])):(0,i.Q3)("v-if",!0)])),_:1},8,["data","translations"]))])):(0,i.Q3)("v-if",!0)}},ks=(0,r.A)(ys,[["__scopeId","data-v-450ad5c6"]]),ws={class:"actions-screen__content"},Es={__name:"ActionsScreen",props:{scenario:String,actions:{type:Array,default:[]},component:{type:String,default:null}},setup(e){const t=e,a=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,n=(0,l.KR)(null);function s(e){n.value=e}(0,i.wB)((()=>t.scenario),(()=>{n.value=!1}));const r=(0,i.EW)((()=>n.value||t.scenario)),c=(0,i.EW)((()=>{const e=os.vp[r.value];return e||console.warn('No config found for key: "'.concat(r.value,'"')),null!=e?e:{}})),d=(0,i.EW)((()=>{var e,t;const a=null!==(e=null===(t=c.value)||void 0===t?void 0:t.type)&&void 0!==e?e:null;return a||console.warn('currentConfig has no "type".'),a}));return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["actions-screen__container",{"is-full-h":(0,l.R1)(a)||d.value===(0,l.R1)(os.cS).STANDALONE,"is-simple":d.value===(0,l.R1)(os.cS).SIMPLE,"is-standalone":d.value===(0,l.R1)(os.cS).STANDALONE,"is-standalone-mobile":!(0,l.R1)(a)&&d.value===(0,l.R1)(os.cS).STANDALONE,"is-standalone-desktop":(0,l.R1)(a)&&d.value===(0,l.R1)(os.cS).STANDALONE}])},[(0,i.Lk)("div",ws,[d.value===(0,l.R1)(os.cS).SIMPLE?((0,i.uX)(),(0,i.Wv)(ms,{key:0,name:r.value,onCountdownComplete:s},null,8,["name"])):(0,i.Q3)("v-if",!0),d.value===(0,l.R1)(os.cS).STANDALONE?((0,i.uX)(),(0,i.Wv)(ks,{key:1,name:r.value},null,8,["name"])):(0,i.Q3)("v-if",!0)])],2))}}
1,Ls=(0,r.A)(Es,[["__scopeId","data-v-0a2c63d5"]]);var xs=a(72498);const As=["data-video"],Rs={class:"transitions-video__content"},Is={class:"transitions-video__blur-overlay"},Fs={__name:"TransitionsVideo",props:{type:{type:String,default:null},video:{type:String,default:null}},setup(e){const t=(0,ke.K)().videoTeaserStartedChatEvent,a=e;return(0,i.nT)((()=>{[xs.K.TEASER_VIDEO,xs.K.TEASER_PICTURES_SLIDESHOW].includes(a.type)&&t()})),(t,a)=>{var o,s;return(0,i.uX)(),(0,i.Wv)(i.Im,{to:"#videoContainer"},[(0,i.Lk)("div",{class:"transitions-video__container","data-video":e.video},[(0,i.Lk)("div",Rs,[((0,i.uX)(),(0,i.Wv)((0,i.$y)(null===(o=(0,l.R1)(xs.r)[e.type])||void 0===o?void 0:o.component)))]),a[0]||(a[0]=(0,i.Lk)("div",{class:"transitions-video__darker-overlay"},null,-1)),(0,i.bo)((0,i.Lk)("div",Is,null,512),[[n.aG,null===(s=(0,l.R1)(xs.r)[e.type])||void 0===s?void 0:s.hasBlurOverlay]])],8,As)])}}},Ms=(0,r.A)(Fs,[["__scopeId","data-v-59e23182"]]);var Ss=a(9662);const Ts=["data-scenario"],Bs={__name:"TransitionsScreen",setup(e){const t=(0,z.P)().state,a=Zt().isActionMenuDisplayed,s=(0,Ss.z)().createContext,r=(0,i.EW)((()=>s(t.value))),c=(0,i.EW)((()=>{var e;return null!==(e=Z.cU[t.value.activeTransition])&&void 0!==e?e:null})),d=(e,t)=>"function"==typeof e?e(t):null!=e?e:null,u=(0,i.EW)((()=>{var e;const t=null===(e=c.value)||void 0===e?void 0:e.action;return d(t,r.value)})),v=(0,l.KR)(null);return(0,i.nT)((()=>{var e;const t=null===(e=c.value)||void 0===e?void 0:e.video,a=d(t,r.value);a!==xs.K.KEEP_OLD_VIDEO&&(v.value=a)})),(e,s)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["transitions-screen__container",{"is-hidden":(0,l.R1)(a)((0,l.R1)(g)),"is-minimized":r.value.isChatMinimized}]),"data-scenario":(0,l.R1)(t).activeTransition},[(0,i.bF)(n.eB,null,{default:(0,i.k6)((()=>[u.value?((0,i.uX)(),(0,i.Wv)(Ls,{key:0,scenario:u.value,"data-action":u.value},null,8,["scenario","data-action"])):(0,i.Q3)("v-if",!0)])),_:1}),v.value?((0,i.uX)(),(0,i.Wv)(Ms,{key:0,type:v.value,video:v.value},null,8,["type","video"])):(0,i.Q3)("v-if",!0)],10,Ts))}},Os=(0,r.A)(Bs,[["__scopeId","data-v-eacb1fdc"]]),Ps=["aria-label"],Ws={__name:"FullscreenControl",props:{initialFullscreen:{type:Boolean,default:!1}},setup(e){const t=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,a=(0,z.P)().state,n=e,s=(0,l.KR)(n.initialFullscreen);function r(e){e.detail&&e.detail.view&&(s.value=e.detail.view===is.FULLSCREEN)}function c(){const e=s.value?is.COMPACT:is.FULLSCREEN;Object.prototype.hasOwnProperty.call(window,"gtag")&&window.gtag("event","chat_menu_item_click",{view_mode:e}),window.localStorage.setItem("chat_view_mode",e),s.value=!s.value,document.dispatchEvent(new CustomEvent("chat:viewMode:change",{detail:{view:e}}))}return(0,i.sV)((()=>{a.value.viewMode&&(s.value=a.value.viewMode===is.FULLSCREEN),document.addEventListener("chat:viewMode:change",r)})),(0,i.hi)((()=>{document.removeEventListener("chat:viewMode:change",r)})),(e,n)=>((0,i.uX)(),(0,i.CE)("button",{type:"button",class:(0,o.C4)(["fullscreen-control control",{"fullscreen-control--enabled":s.value,"is-chat-boxed":(0,l.R1)(t),"is-xcams":"xcams"===(0,l.R1)(a).user.brandName}]),"aria-label":s.value?"Exit fullscreen":"Enter fullscreen",onClick:c},[...n[0]||(n[0]=[(0,i.Lk)("svg",{class:"fullscreen-control__icon fullscreen-control__icon--enabled"},[(0,i.Lk)("use",{"xlink:href":"#fullscreen-off"})],-1),(0,i.Lk)("svg",{class:"fullscreen-control__icon fullscreen-control__icon--disabled"},[(0,i.Lk)("use",{"xlink:href":"#fullscreen-on"})],-1)])],10,Ps))}},Xs=(0,r.A)(Ws,[["__scopeId","data-v-7a7f0390"]]);function Ds(e,t,a){Hs(e,t),t.set(e,a)}function Hs(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ns(e,t,a){return e.set(Us(e,t),a),a}function Gs(e,t){return e.get(Us(e,t))}function Us(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const Vs="front",Ks="back",js="unknown",Qs={FRONT_FACING:["front","selfie","user","left","right","inner"],BACK_FACING:["back","rear","environment","world","main"],PROMOTE_FRONT:["front","selfie","user"],PROMOTE_BACK:["back","rear","environment","world","main"],DEPRIORITIZE:["ultra","ultra-wide","ultrawide","wide","tele","telephoto","macro","depth","mono"]};var zs,Ys,Zs,qs=new WeakMap,$s=new WeakMap,Js=new WeakMap,er=new WeakMap,tr=new WeakMap,ar=new WeakMap,nr=new WeakMap,ir=new WeakSet;class or{constructor(){var e,t;Hs(e=this,t=ir),t.add(e),Ds(this,qs,{cameras:[],microphones:[]}),Ds(this,$s,{camera:null,microphone:null}),Ds(this,Js,!1),Ds(this,er,null),Ds(this,tr,5e3),Ds(this,ar,null),Ds(this,nr,!1),Us(ir,this,pr).call(this)}static getInstance(){return this.instance||(this.instance=new or),this.instance}async getCameras(){return await Us(ir,this,ur).call(this),Gs(qs,this).cameras}async getMicrophones(){return await Us(ir,this,ur).call(this),Gs(qs,this).microphones}async getAllDevices(){return await Us(ir,this,ur).call(this),{cameras:Gs(qs,this).cameras,microphones:Gs(qs,this).microphones}}async setSelectedCameraWithValidation(e){const t=Gs(qs,this).cameras.find((t=>t.deviceId===e));if(!t)return!1;const a=Gs($s,this).camera;try{Gs($s,this).camera=t;return await Us(ir,this,lr).call(this,e)?(Us(ir,this,fr).call(this,"camera",e),!0):(Gs($s,this).camera=a,!1)}catch(n){return Gs($s,this).camera=a,window._local.log("Error changing camera device:",n),!1}}async setSelectedMicrophoneWithValidation(e){const t=Gs(qs,this).microphones.find((t=>t.deviceId===e));if(!t)return!1;const a=Gs($s,this).microphone;try{Gs($s,this).microphone=t;return await Us(ir,this,sr).call(this,e)?(Us(ir,this,fr).call(this,"microphone",e),!0):(Gs($s,this).microphone=a,!1)}catch(n){return Gs($s,this).microphone=a,window._local.log("Error changing microphone device:",n),!1}}getSelectedCamera(){return Gs($s,this).camera}getSelectedMicrophone(){return Gs($s,this).microphone}getBrowserDefaultCameraId(){return Gs(ar,this)}hasFacingModeCapability(){return Gs(nr,this)}async switchCameraFacingMode(){try{var e,t,a;const n=null===(e=window._local.currentChatObject)||void 0===e||null===(e=e.videoStream)||void 0===e?void 0:e.webRTCVisitorCam;if(!n)return!1;const i=null===(t=n.getCurrentVideoTrackSettings)||void 0===t?void 0:t.call(n);if(i)try{const e=i.deviceId,t=i.facingMode,a=i.frameRate,n=i.width,o=i.height;window._local.log("Current video track settings:",{deviceId:e,facingMode:t,frameRate:a,width:n,height:o})}catch(zs){}await Us(ir,this,ur).call(this);const o=(null===(a=Gs($s,this).camera)||void 0===a?void 0:a.deviceId)||Gs(ar,this);if(!o)return window._local.log("No current camera deviceId known; cannot switch"),!1;const l=Us(ir,this,dr).call(this,o);if(!l)return window._local.log("Could not determine opposite camera device"),!1;window._local.log("Switching camera to deviceId=".concat(l.deviceId," (").concat(l.label||"Unnamed",")"));const s=await this.setSelectedCameraWithValidation(l.deviceId);return s||window._local.log("DeviceId-based camera switch failed"),s}catch(n){const e=n&&n.name?n.name:"UnknownError";return window._local.log("Error switching camera (deviceId-based):",e,n),!1}}isSupported(){return!(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)}resetDeviceSelectionForType(e){const t="camera"===e?"selectedCameraId":"selectedMicrophoneId";localStorage.removeItem(t),Gs($s,this)[e]=null}}function lr(e){return new Promise((t=>{var a;const n=null===(a=window._local.currentChatObject)||void 0===a||null===(a=a.videoStream)||void 0===a?void 0:a.webRTCVisitorCam;n?n.changeCameraDevice(e,(()=>{t(!0)}),(e=>{window._local.log("Camera device change failed:",e),t(!1)})):t(!1)}))}function sr(e){return new Promise((t=>{var a;const n=null===(a=window._local.currentChatObject)||void 0===a||null===(a=a.videoStream)||void 0===a?void 0:a.webRTCVisitorCam;n?n.changeMicrophoneDevice(e,(()=>{t(!0)}),(e=>{window._local.log("Microphone device change failed:",e),t(!1)})):t(!1)}))}function rr(e){const t=(e||"").toLowerCase();return Qs.FRONT_FACING.some((e=>t.includes(e)))?Vs:Qs.BACK_FACING.some((e=>t.includes(e)))?Ks:js}function cr(e,t){const a=(e||"").toLowerCase();let n=50;return t===Vs?(Qs.PROMOTE_FRONT.some((e=>a.includes(e)))&&(n-=20),Qs.PROMOTE_BACK.some((e=>a.includes(e)))&&(n+=15)):(Qs.PROMOTE_BACK.some((e=>a.includes(e)))&&(n-=20),Qs.PROMOTE_FRONT.some((e=>a.includes(e)))&&(n+=15)),a.includes("main")&&(n-=5),Qs.DEPRIORITIZE.some((e=>a.includes(e)))&&(n+=20),n+=Math.min(10,Math.max(0,(a.length||0)-12)/4),n}function dr(e){const t=Gs(qs,this).cameras||[];if(!t.length)return null;if(2===t.length){return t.find((t=>t.deviceId!==e))||null||null}const a=t.find((t=>t.deviceId===e))||null,n=Us(ir,this,rr).call(this,(null==a?void 0:a.label)||"");let i;if(n===Vs)i=Ks;else if(n===Ks)i=Vs;else{const e=t.some((e=>Us(ir,this,rr).call(this,e.label)===Ks));i=e?Ks:Vs}let o=t.filter((e=>Us(ir,this,rr).call(this,e.label)===i));if(!o.length){return t.find((t=>t.deviceId!==e))||null}o=o.map((e=>({cam:e,rank:Us(ir,this,cr).call(this,e.label,i)}
1))).sort(((e,t)=>e.rank-t.rank)).map((e=>e.cam));return o.find((t=>t.deviceId!==e))||o[0]||null}async function ur(){if(Gs(er,this)&&Date.now()-Gs(er,this)<Gs(tr,this))return{cameras:Gs(qs,this).cameras,microphones:Gs(qs,this).microphones};if(Gs(Js,this)){for(;Gs(Js,this);)await new Promise((e=>setTimeout(e,100)));return{cameras:Gs(qs,this).cameras,microphones:Gs(qs,this).microphones}}if(!this.isSupported())return{cameras:[],microphones:[]};Ns(Js,this,!0);try{var e,t;let n=null,i=null,o=[],l=!1;if(!(null===(e=window._local)||void 0===e||null===(e=e.currentChatObject)||void 0===e||null===(e=e.videoStream)||void 0===e||null===(e=e.webRTCVisitorCam)||void 0===e||null===(t=e.getCurrentVideoTrackSettings)||void 0===t||!t.call(e)))window._local.log("Skipping getUserMedia during enumeration due to active capture");else try{if(n=await navigator.mediaDevices.getUserMedia({audio:!0,video:!0}),n){const e=n.getVideoTracks()[0];if(e&&e.getSettings){const t=e.getSettings();i=t.deviceId,Ns(ar,this,i)}if(e&&e.getCapabilities){const t=e.getCapabilities();try{const e=t.facingMode;o=Array.isArray(e)?e:e?[e]:[];const a=o.includes("user")||o.includes("left")||o.includes("right"),n=o.includes("environment");l=a&&n}catch(zs){}}}}catch(a){const e=a&&a.name?a.name:"UnknownError";window._local.log("Could not get media permissions for device enumeration:",e,a)}const s=await navigator.mediaDevices.enumerateDevices();n&&n.getTracks().forEach((e=>e.stop())),Gs(qs,this).cameras=s.filter((e=>"videoinput"===e.kind)).map(((e,t)=>({deviceId:e.deviceId,label:e.label||"Camera ".concat(t+1),kind:e.kind,isBrowserDefault:e.deviceId===i}))),Gs(qs,this).microphones=s.filter((e=>"audioinput"===e.kind)).map(((e,t)=>({deviceId:e.deviceId,label:e.label||"Microphone ".concat(t+1),kind:e.kind})));try{const e=Gs(qs,this).cameras,t=e.length>1,a=e.filter((e=>Us(ir,this,rr).call(this,e.label)===Vs)).length,n=e.filter((e=>Us(ir,this,rr).call(this,e.label)===Ks)).length,i=a>0&&n>0,o=navigator.userAgent||"",s=/(android|iphone|ipad|ipod|mobile|iemobile|blackberry|bb10|silk|opera mini)/i.test(o),r=!(!navigator.userAgentData||!0!==navigator.userAgentData.mobile),c="number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1;Ns(nr,this,!(!t||!(i||l||(s||r||c))))}catch(zs){const t=navigator.userAgent||"",a=/(android|iphone|ipad|ipod|mobile|iemobile|blackberry|bb10|silk|opera mini)/i.test(t),n="number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1,i=a||n||!(!navigator.userAgentData||!0!==navigator.userAgentData.mobile);Ns(nr,this,!!(Gs(qs,this).cameras.length>1&&i))}Us(ir,this,vr).call(this),Ns(er,this,Date.now())}catch(a){window._local.log("Error enumerating devices:",a)}finally{Ns(Js,this,!1)}return{cameras:Gs(qs,this).cameras,microphones:Gs(qs,this).microphones}}function vr(){if(!Gs($s,this).camera&&Gs(qs,this).cameras.length>0){const e=localStorage.getItem("selectedCameraId");let t=null;e&&(t=Gs(qs,this).cameras.find((t=>t.deviceId===e))),!t&&Gs(ar,this)&&(t=Gs(qs,this).cameras.find((e=>e.deviceId===Gs(ar,this)))),t||(t=Gs(qs,this).cameras[0]),t&&(Gs($s,this).camera=t)}if(!Gs($s,this).microphone&&Gs(qs,this).microphones.length>0){const e=localStorage.getItem("selectedMicrophoneId"),t=e?Gs(qs,this).microphones.find((t=>t.deviceId===e)):Gs(qs,this).microphones[0];t&&(Gs($s,this).microphone=t)}}function pr(){const e=localStorage.getItem("selectedCameraId"),t=localStorage.getItem("selectedMicrophoneId");e&&(Gs($s,this).camera={deviceId:e}),t&&(Gs($s,this).microphone={deviceId:t})}function fr(e,t){const a="camera"===e?"selectedCameraId":"selectedMicrophoneId";localStorage.setItem(a,t)}zs=or,Zs=void 0,(Ys=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(Ys="instance"))in zs?Object.defineProperty(zs,Ys,{value:Zs,enumerable:!0,configurable:!0,writable:!0}):zs[Ys]=Zs;const mr={class:"device-selector__dropdown"},hr={key:0,class:"device-selector__no-devices"},_r={key:1,class:"device-selector__devices"},gr=["onClick"],Cr={class:"device-selector__device-indicator"},br={key:0,class:"device-selector__device-indicator-dot"},yr={class:"device-selector__device-label"},kr={__name:"DeviceSelector",props:{isVisible:{type:Boolean,default:!1},deviceType:{type:String,required:!0,validator:e=>["camera","microphone"].includes(e)}},emits:["close","deviceChanged"],setup(e,t){let a=t.emit;const n=e,s=a,r=or.getInstance(),c=Be.W.getInstance(),d=(0,u.U)([u.e.MOBILE]).isMobile,v=(0,l.KR)(!1),p=(0,l.KR)([]),f=(0,l.KR)([]),m=(0,i.EW)((()=>d.value&&n.isVisible)),h=(0,i.EW)((()=>d.value?"body":void 0)),_=(0,i.EW)((()=>"camera"===n.deviceType?p.value:f.value)),g=(0,i.EW)((()=>
1{if("camera"===n.deviceType){const e=r.getSelectedCamera();return(null==e?void 0:e.deviceId)||r.getBrowserDefaultCameraId()}{const e=r.getSelectedMicrophone();return(null==e?void 0:e.deviceId)||null}})),C=(0,i.EW)((()=>"camera"===n.deviceType?c.translate("noCamerasFound"):c.translate("noMicrophonesFound")));async function b(){v.value=!0;try{const e=await r.getAllDevices();p.value=e.cameras,f.value=e.microphones}catch(e){window._local.log("Error loading devices:",e)}finally{v.value=!1}}function y(){s("close")}return(0,i.wB)((()=>n.isVisible),(e=>{e&&b()})),(0,i.sV)((()=>{n.isVisible&&b()})),(t,a)=>((0,i.uX)(),(0,i.Wv)(i.Im,{to:h.value,disabled:!m.value},[e.isVisible?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,o.C4)(["device-selector",{"device-selector--loading":v.value,"device-selector--mobile":(0,l.R1)(d)}])},[(0,i.Lk)("div",{class:"device-selector__backdrop",onClick:y}),(0,i.Lk)("div",mr,[0===_.value.length?((0,i.uX)(),(0,i.CE)("div",hr,(0,o.v_)(C.value),1)):((0,i.uX)(),(0,i.CE)("div",_r,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(_.value,(e=>((0,i.uX)(),(0,i.CE)("button",{key:e.deviceId,class:(0,o.C4)(["device-selector__device",{"device-selector__device--selected":e.deviceId===g.value}]),onClick:t=>async function(e){let t;t="camera"===n.deviceType?await r.setSelectedCameraWithValidation(e):await r.setSelectedMicrophoneWithValidation(e),s("deviceChanged",{type:n.deviceType,deviceId:e,success:t}),y()}(e.deviceId)},[(0,i.Lk)("div",Cr,[e.deviceId===g.value?((0,i.uX)(),(0,i.CE)("div",br)):(0,i.Q3)("v-if",!0)]),(0,i.Lk)("span",yr,(0,o.v_)(e.label),1)],10,gr)))),128))]))])],2)):(0,i.Q3)("v-if",!0)],8,["to","disabled"]))}},wr=(0,r.A)(kr,[["__scopeId","data-v-d3138b7a"]]),Er=["disabled","aria-label"],Lr=["aria-label"],xr={class:"cam-control__icon",width:"24",height:"24",viewBox:"0 0 24 24"},Ar={class:"cam-control__icon",width:"24",height:"24",viewBox:"0 0 24 24"},Rr={__name:"CamControl",setup(e){const t=(0,z.P)(),a=t.state,s=t.isVisitorCamAvailable,r=t.addNotification,c=t.updateSelectedMediaDevices,d=t.toggleDeviceSelector,u=t.hideDeviceSelector,v=(0,ke.K)().toggleCam2camChatEvent,p=Be.W.getInstance(),f=or.getInstance(),m=(0,l.KR)(""),h=(0,l.KR)(0),_=(0,l.KR)(!1),g=(0,l.KR)(!1),C=(0,i.EW)((()=>a.value.camEnabled)),b=(0,i.EW)((()=>a.value.camAllowed)),y=(0,i.EW)((()=>a.value.mediaDevices.deviceSelectorVisible&&"camera"===a.value.mediaDevices.deviceSelectorType));async function k(){try{const e=await f.getCameras();h.value=e.length}catch(e){window._local.log("Error loading cameras count:",e),h.value=0}}async function w(){b.value&&(await k(),await async function(){try{await f.getCameras(),_.value=f.hasFacingModeCapability()}catch(e){window._local.log("Error loading facing mode capability:",e),_.value=!1}}(),v(),C.value||f.resetDeviceSelectionForType("camera")),E(),r(m.value,"success")}function E(){s()?b.value?C.value?m.value=p.translate("StartYourCam"):m.value=p.translate("StopYourCam"):m.value=p.translate("onlyInPrivateAndVip"):m.value=p.translate("notAvailable")}async function L(){await k(),d("camera")}async function x(){if(!g.value){g.value=!0;try{await f.switchCameraFacingMode()?r(p.translate("cameraSwitched")||"Camera switched successfully","success"):r(p.translate("cameraSwitchFailed")||"Failed to switch camera","error")}catch(e){window._local.log("Error switching camera facing mode:",e),r(p.translate("cameraSwitchFailed")||"Failed to switch camera","error")}finally{g.value=!1}}}function A(){u()}function R(e){"camera"===e.type?e.success?c(e.deviceId,a.value.mediaDevices.selectedMicrophone):r(p.translate("cameraAccessDeniedOrUnavailable"),"error"):c(a.value.mediaDevices.selectedCamera,e.deviceId)}return(0,i.sV)((async()=>{E()})),(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["cam-control-container",{"cam-control-container--has-device-selector":b.value&&C.value&&(h.value>1||_.value),"cam-control-container--has-selector-active":y.value}])},[(0,i.Q3)(" Device selection button (for multiple cameras) "),b.value&&C.value&&h.value>1&&!_.value?((0,i.uX)(),(0,i.CE)("button",{key:0,type:"button",class:(0,o.C4)(["cam-control__device-selector",{"cam-control__device-selector--opened":y.value}]),onClick:L},[...t[0]||(t[0]=[(0,i.Lk)("svg",{class:"cam-control__device-selector-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[(0,i.Lk)("path",{d:"M4.07992 8.95215L10.5999 15.4721C11.3699 16.2421 12.6299 16.2421 13.3999 15.4721L19.9199 8.95215",stroke:"white","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],2)):(0,i.Q3)("v-if",!0),(0,i.Q3)(" Camera facing mode switch button (for devices with facing mode capability) "),b.value&&C.value&&_.value?((0,i.uX)(),(0,i.CE)("button",{key:1,type:"button",class:"cam-control__facing-mode-switch",disabled:g.value,"aria-label":(0,l.R1)(p).translate("switchCamera")||"Switch Camera",onClick:x},[...t[1]||(t[1]=[(0,i.Lk)("svg",{class:"cam-control__device-switch-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[(0,i.Lk)("path",{d:"M18.453 10.8927C18.1752 13.5026 16.6964 15.9483 14.2494 17.3611C10.1839 19.7083 4.98539 18.3153 2.63818 14.2499L2.38818 13.8168M1.54613 9.10664C1.82393 6.49674 3.30272 4.05102 5.74971 2.63825C9.8152 0.29104 15.0137 1.68398 17.3609 5.74947L17.6109 6.18248M1.49316 16.0657L2.22521 13.3336L4.95727 14.0657M15.0424 5.93364L17.7744 6.66569L18.5065 3.93364",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Er)):(0,i.Q3)("v-if",!0),(0,i.Lk)("button",{type:"button",class:(0,o.C4)(["cam-control control",{"control--enabled":C.value,"cam-control--disabled":!b.value}]),"aria-label":m.value,onClick:w},[(0,i.bo)(((0,i.uX)(),(0,i.CE)("svg",xr,[...t[2]||(t[2]=[(0,i.Lk)("use",{"xlink:href":"#cam-on"},null,-1)])],512)),[[n.aG,C.value]]),(0,i.bo)(((0,i.uX)(),(0,i.CE)("svg",Ar,[...t[3]||(t[3]=[(0,i.Lk)("use",{"xlink:href":"#cam-off"},null,-1)])],512)),[[n.aG,!C.value]])],10,Lr),(0,i.Q3)(" Camera Device Selector "),y.value?((0,i.uX)(),(0,i.Wv)(wr,{key:2,"is-visible":y.value,"device-type":"camera",onClose:A,onDeviceChanged:R},null,8,["is-visible"])):(0,i.Q3)("v-if",!0)],2))}},Ir=(0,r.A)(Rr,[["__scopeId","data-v-2928cbd6"]]),Fr=["aria-label"],Mr={class:"mic-control__icon",width:"24",height:"24",viewBox:"0 0 24 24"},Sr={class:"mic-control__icon",width:"24",height:"24",viewBox:"0 0 24 24"},Tr={__name:"MicControl",setup(e){const t=(0,z.P)(),a=t.state,s=t.
1isVisitorCamAvailable,r=t.addNotification,c=t.updateSelectedMediaDevices,d=t.toggleDeviceSelector,u=t.hideDeviceSelector,v=(0,ke.K)().toggleUserAudioChatEvent,p=Be.W.getInstance(),f=or.getInstance(),m=(0,l.KR)(""),h=(0,l.KR)(0),_=(0,i.EW)((()=>a.value.micEnabled)),g=(0,i.EW)((()=>a.value.micAllowed)),C=(0,i.EW)((()=>a.value.mediaDevices.deviceSelectorVisible&&"microphone"===a.value.mediaDevices.deviceSelectorType));async function b(){try{const e=await f.getMicrophones();h.value=e.length}catch(e){window._local.log("Error loading microphones count:",e),h.value=0}}async function y(){g.value&&(await b(),v()),k(),r(m.value,"success")}function k(){s()?g.value?_.value?m.value=p.translate("StartYourMic"):m.value=p.translate("StopYourMic"):m.value=p.translate("onlyInVip"):m.value=p.translate("notAvailable")}async function w(){await b(),d("microphone")}function E(){u()}function L(e){"microphone"===e.type&&c(a.value.mediaDevices.selectedCamera,e.deviceId)}return(0,i.sV)((async()=>{k()})),(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["mic-control-container",{"mic-control-container--has-device-selector":g.value&&_.value&&h.value>1,"mic-control-container--has-selector-active":C.value}])},[(0,i.Q3)(" Device selection button "),g.value&&_.value&&h.value>1?((0,i.uX)(),(0,i.CE)("button",{key:0,type:"button",class:(0,o.C4)(["mic-control__device-selector",{"mic-control__device-selector--opened":C.value}]),onClick:w},[...t[0]||(t[0]=[(0,i.Lk)("svg",{class:"mic-control__device-selector-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[(0,i.Lk)("path",{d:"M4.07992 8.95215L10.5999 15.4721C11.3699 16.2421 12.6299 16.2421 13.3999 15.4721L19.9199 8.95215",stroke:"white","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],2)):(0,i.Q3)("v-if",!0),(0,i.Lk)("button",{type:"button",class:(0,o.C4)(["mic-control control",{"mic-control--enabled":g.value,"mic-control--disabled":!g.value,"control--enabled":_.value}]),"aria-label":m.value,onClick:y},[(0,i.bo)(((0,i.uX)(),(0,i.CE)("svg",Mr,[...t[1]||(t[1]=[(0,i.Lk)("use",{"xlink:href":"#mic-on"},null,-1)])],512)),[[n.aG,_.value]]),(0,i.bo)(((0,i.uX)(),(0,i.CE)("svg",Sr,[...t[2]||(t[2]=[(0,i.Lk)("use",{"xlink:href":"#mic-off"},null,-1)])],512)),[[n.aG,!_.value]])],10,Fr),(0,i.Q3)(" Microphone Device Selector "),C.value?((0,i.uX)(),(0,i.Wv)(wr,{key:1,"is-visible":C.value,"device-type":"microphone",onClose:E,onDeviceChanged:L},null,8,["is-visible"])):(0,i.Q3)("v-if",!0)],2))}},Br=(0,r.A)(Tr,[["__scopeId","data-v-e1d05344"]]);var Or=a(95034);const Pr={__name:"SoundControl",setup(e){const t=(0,z.P)().state,a=(0,ke.K)(),n=a.toggleSoundChatEvent,l=a.unlockAudioChatEvent,s=(0,i.EW)((()=>t.value.soundEnabled));function r(){l((()=>{n()}))}return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["sound-control control",{"control--enabled":s.value}]),onClick:r},[(0,i.bF)(Or.A,{"is-sound-enabled":s.value},null,8,["is-sound-enabled"])],2))}},Wr=(0,r.A)(Pr,[["__scopeId","data-v-5889ab97"]]),Xr={class:"navigation-control"},Dr=["disabled"],Hr=["disabled"],Nr={__name:"NavigationControl",setup(e){const t=(0,z.P)().state,a=(0,i.EW)((()=>t.value.navigation.hasPrev)),n=(0,i.EW)((()=>t.value.navigation.hasNext));function l(){a.value&&document.dispatchEvent(new Event("chat:prev-model"))}function s(){n.value&&document.dispatchEvent(new Event("chat:next-model"))}return(e,t)=>((0,i.uX)(),(0,i.CE)("div",Xr,[(0,i.Lk)("button",{type:"button",class:(0,o.C4)(["navigation-control__button navigation-control__button--prev",{"navigation-control__button--disabled":!a.value}]),disabled:!a.value,"aria-label":"Previous model",onClick:l},[...t[0]||(t[0]=[(0,i.Lk)("svg",{class:"navigation-control__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[(0,i.Lk)("use",{"xlink:href":"#next"})],-1)])],10,Dr),(0,i.Lk)("button",{type:"button",class:(0,o.C4)(["navigation-control__button navigation-control__button--next",{"navigation-control__button--disabled":!n.value}]),disabled:!n.value,"aria-label":"Next model",onClick:s},[...t[1]||(t[1]=[(0,i.Lk)("svg",{class:"navigation-control__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[(0,i.Lk)("use",{"xlink:href":"#next"})],-1)])],10,Hr)]))}},Gr=(0,r.A)(Nr,[["__scopeId","data-v-391dc564"]]),Ur=["href","aria-label"],Vr={__name:"CloseControl",setup(e){const t=(0,vo.m)().getRedirectUrl,a=(0,l.KR)(""),n=(0,z.P)().state,o=(0,i.EW)((()=>n.value.minimizedOnProfilePage?t(po.A.PROFILE):t(po.A.AFFILIATE_HOME_URL)));function s(){document.dispatchEvent(new Event("chat:close"))}return(e,t)=>((0,i.uX)(),(0,i.CE)("a",{href:o.value,class:"close-control control","aria-label":a.value,onClick:s},[(0,i.bF)(he,{class:"close-control__icon"})],8,Ur))}},Kr=(0,r.A)(Vr,[["__scopeId","data-v-7b0e2d05"]]);var jr=a(41141);const Qr={class:"counter"},zr={key:0,class:"digit digit--suffix"},Yr={__name:"RollingCounter",props:{value:{type:String}},setup(e){const t=e,a=(0,l.KR)(0),n=(0,i.EW)((()=>/[kMB]$/.test(t.value))),s=(0,i.EW)((()=>{const e=t.value.match(/[kMB]$/);return e?e[0]:""}
1)),r=(0,i.EW)((()=>a.value.toString().length)),c=(0,i.EW)((()=>a.value.toString().padStart(4,"0").split("").map(Number)));return(0,i.sV)((()=>{setTimeout((()=>{a.value=Number(t.value.replace(/[kMB]$/,""))}),0)})),(0,i.$u)((()=>{setTimeout((()=>{a.value=Number(t.value.replace(/[kMB]$/,""))}),0)})),(e,t)=>((0,i.uX)(),(0,i.CE)("div",Qr,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(c.value,((e,t)=>((0,i.uX)(),(0,i.CE)("div",{key:t,class:(0,o.C4)(["digit",{hidden:t<4-r.value}])},[(0,i.Lk)("div",{style:(0,o.Tr)({transform:"translateY(".concat(18*-e,"px)")})},[((0,i.uX)(),(0,i.CE)(i.FK,null,(0,i.pI)(10,(e=>(0,i.Lk)("span",{key:e},(0,o.v_)((e-1)%10),1))),64))],4)],2)))),128)),n.value?((0,i.uX)(),(0,i.CE)("div",zr,(0,o.v_)(s.value),1)):(0,i.Q3)("v-if",!0)]))}},Zr=(0,r.A)(Yr,[["__scopeId","data-v-5133e4cc"]]),qr={__name:"CreditsControl",setup(e){const t=(0,z.P)().state,a=(0,vo.m)().redirectToPayment,n=(0,i.EW)((()=>{const e=t.value.user.credits;return e<1e4?e.toString():e<1e6?Math.floor(e/1e3)+"k":e<1e9?Math.floor(e/1e6)+"M":Math.floor(e/1e9)+"B"}));return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"chat-credits",onClick:t[0]||(t[0]=function(){return(0,l.R1)(a)&&(0,l.R1)(a)(...arguments)})},[(0,i.bF)(jr.A,{class:"chat-credits__icon"}),(0,i.bF)(Zr,{value:n.value,class:"chat-credits__counter"},null,8,["value"])]))}},$r=(0,r.A)(qr,[["__scopeId","data-v-4c9bd6a5"]]),Jr={class:"control-separator"},ec={__name:"ControlSeparator",setup:e=>(e,t)=>((0,i.uX)(),(0,i.CE)("div",Jr,[...t[0]||(t[0]=[(0,i.Fv)('<svg xmlns="http://www.w3.org/2000/svg" width="2" height="24" viewBox="0 0 2 24" fill="none" data-v-4259e73b><path d="M1 0V24" stroke="url(#paint0_linear_control_separator)" stroke-opacity="0.2" data-v-4259e73b></path><defs data-v-4259e73b><linearGradient id="paint0_linear_control_separator" x1="1.5" y1="0" x2="1.5" y2="24" gradientUnits="userSpaceOnUse" data-v-4259e73b><stop stop-color="white" stop-opacity="0" data-v-4259e73b></stop><stop offset="0.495" stop-color="white" data-v-4259e73b></stop><stop offset="1" stop-color="white" stop-opacity="0" data-v-4259e73b></stop></linearGradient></defs></svg>',1)])]))},tc=(0,r.A)(ec,[["__scopeId","data-v-4259e73b"]]),ac={__name:"ChatControls",props:{initialFullscreen:{type:Boolean,default:!1}},setup(e){const t=(0,z.P)(),a=t.state,n=t.updateChatControlsWidth,o=(0,l.KR)(null);return(0,i.sV)((()=>{if(o.value){n(o.value.offsetWidth);const e=new ResizeObserver((e=>{for(const t of e)n(t.contentRect.width)}));e.observe(o.value),o.value._resizeObserver=e}})),(0,i.hi)((()=>{var e;null!==(e=o.value)&&void 0!==e&&e._resizeObserver&&o.value._resizeObserver.disconnect()})),(t,n)=>((0,i.uX)(),(0,i.CE)("div",{ref_key:"chatControlsRef",ref:o,class:"chat-controls"},[(0,i.bF)(Xs,{"initial-fullscreen":e.initialFullscreen},null,8,["initial-fullscreen"]),(0,i.bF)(Ir),(0,i.bF)(Br),(0,i.bF)(Wr),(0,i.bF)(Gr),(0,l.R1)(a).user.loggedIn&&(0,l.R1)(a).user.role!==(0,l.R1)(Te.A).ROLE_AUDIOTEL?((0,i.uX)(),(0,i.Wv)($r,{key:0})):(0,i.Q3)("v-if",!0),(0,i.bF)(tc),(0,i.bF)(Kr)],512))}},nc=(0,r.A)(ac,[["__scopeId","data-v-4d0221c7"]]),ic={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 46 44",fill:"none"},oc={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 46 44",fill:"none"},lc={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 46 44",fill:"none"},sc={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 46 44",fill:"none"},rc={__name:"NotificationIcon",props:{type:{type:String,default:"info"}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)(i.FK,null,["info"===e.type?((0,i.uX)(),(0,i.CE)("svg",ic,[...a[0]||(a[0]=[(0,i.Lk)("circle",{cx:"22",cy:"22",r:"22",fill:"white"},null,-1),(0,i.Lk)("rect",{x:"20",y:"12",width:"4",height:"4",fill:"black","fill-opacity":"0.5"},null,-1),(0,i.Lk)("rect",{x:"20",y:"20",width:"4",height:"12",fill:"black","fill-opacity":"0.5"},null,-1)])])):(0,i.Q3)("v-if",!0),"error"===e.type?((0,i.uX)(),(0,i.CE)("svg",oc,[...a[1]||(a[1]=[(0,i.Lk)("circle",{cx:"22",cy:"22",r:"22",fill:"white"},null,-1),(0,i.Lk)("path",{d:"M13 13L31 31M13 31L31 13",stroke:"black","stroke-opacity":"0.5","stroke-width":"4"},null,-1)])])):(0,i.Q3)("v-if",!0),"success"===e.type?((0,i.uX)(),(0,i.CE)("svg",lc,[...a[2]||(a[2]=[(0,i.Lk)("circle",{cx:"22",cy:"22",r:"22",fill:"white"},null,-1),(0,i.Lk)("path",{d:"M10 21.5L18 29.5L33.5 14",stroke:"black","stroke-opacity":"0.5","stroke-width":"4"},null,-1)])])):(0,i.Q3)("v-if",!0),"warning"===e.type?((0,i.uX)(),(0,i.CE)("svg",sc,[...a[3]||(a[3]=[(0,i.Lk)("circle",{cx:"22",cy:"22",r:"22",fill:"white"},null,-1),(0,i.Lk)("rect",{x:"24",y:"32",width:"4",height:"4",transform:"rotate(-180 24 32)",fill:"black","fill-opacity":"0.5"},null,-1),(0,i.Lk)("rect",{x:"24",y:"24",width:"4",height:"12",transform:"rotate(-180 24 24)",fill:"black","fill-opacity":"0.5"},null,-1)])])):(0,i.Q3)("v-if",!0)],64))},cc=(0,r.A)(rc,[["__scopeId","data-v-3e27cc86"]]),dc={__name:"NotificationStack",setup(e){const t=(0,z.P)().state,a=(0,i.EW)((()=>t.value.notifications));function l(e){return"chat-notification--".concat(e.type||"info")}return(e,t)=>((0,i.uX)(),(0,i.Wv)(n.F,{class:"chat-notification",name:"notif-slide",tag:"div"},{default:(0,i.k6)((()=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(a.value,(e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:(0,o.C4)(["chat-notification__item",l(e)])},[(0,i.bF)(cc,{type:e.type}
1,null,8,["type"]),(0,i.eW)(" "+(0,o.v_)(e.message),1)],2)))),128))])),_:1}))}},uc=(0,r.A)(dc,[["__scopeId","data-v-4e37da7d"]]),vc=["width","height"],pc=["stroke"],fc=["stroke"],mc={__name:"PipIcon",props:{width:{type:Number,default:21},height:{type:Number,default:19},color:{type:String,default:"#ffffff"}},setup:e=>(t,a)=>((0,i.uX)(),(0,i.CE)("svg",{width:e.width,height:e.height,viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,i.Lk)("path",{d:"M18.5 6.5V3.5C18.5 2.39543 17.6046 1.5 16.5 1.5H3.5C2.39543 1.5 1.5 2.39543 1.5 3.5V11.5C1.5 12.6046 2.39543 13.5 3.5 13.5H5.5",stroke:e.color,"stroke-width":"1.5","stroke-linecap":"round"},null,8,pc),(0,i.Lk)("rect",{x:"-0.75",y:"0.75",width:"10.5",height:"7.5",rx:"1.25",transform:"matrix(-1 0 0 1 19 9.5)",stroke:e.color,"stroke-width":"1.5"},null,8,fc)],8,vc))},hc=["href"],_c={__name:"ChatLogo",setup(e){const t=(0,To.k)(),a=t.getBrandLogo,s=t.getBrandName,r=(0,z.P)().state,c=(0,vo.m)().getRedirectUrl,d=Be.W.getInstance(),u=ut.h.getInstance(),v=(0,i.EW)((()=>c(po.A.AFFILIATE_HOME_URL))),p=(0,l.KR)(window.innerWidth),f=(0,l.KR)(!0),m=(0,l.KR)(!1);(0,i.sV)((()=>{const e=()=>{m.value||(p.value=window.innerWidth)};window.addEventListener("resize",e),window._chatLogoResizeHandler=e})),(0,i.hi)((()=>{window._chatLogoResizeHandler&&(window.removeEventListener("resize",window._chatLogoResizeHandler),delete window._chatLogoResizeHandler),g(!1)}));const h=(0,i.EW)((()=>{var e;const t=document.getElementById("logo-btn");return null!==(e=p.value-(r.value.chatControlsWidth+15)<t.offsetWidth)&&void 0!==e?e:150}));(0,i.wB)(h,(e=>{e&&!m.value&&(m.value=!0)}));const _=(0,i.EW)((()=>!!m.value||h.value)),g=e=>{const t=document.getElementById("logo-btn");t&&(e?t.classList.add("logo-btn--pip-mode"):t.classList.remove("logo-btn--pip-mode"))};(0,i.wB)(_,(e=>{g(e),f.value&&setTimeout((()=>{f.value=!1}),100)}),{immediate:!0});const C=(0,i.EW)((()=>_.value?mc:"img")),b=(0,i.EW)((()=>_.value?"pip-icon":"brand-logo")),y=(0,i.EW)((()=>_.value?{width:21,height:19,color:"#ffffff"}:{title:d.translate("SeeAllModels"),src:a(),alt:u.capitalize(s()),class:"header__logoImg"}));return(e,t)=>((0,i.uX)(),(0,i.CE)("a",{href:v.value,class:(0,o.C4)(["header__link--logo",{"header__link--logo--pip-mode":_.value}])},[(0,i.Lk)("div",{class:(0,o.C4)(["logo-transition-container",{"transitioning-to-pip":_.value&&f.value}])},[(0,i.bF)(n.eB,{name:"logo-fade",mode:"out-in"},{default:(0,i.k6)((()=>[((0,i.uX)(),(0,i.Wv)((0,i.$y)(C.value),(0,i.v6)(y.value,{key:b.value}),null,16))])),_:1})],2)],10,hc))}},gc=_c,Cc={__name:"ChatApp",setup(e){const t=(0,z.P)(),a=t.initializeOrUpdateApp,s=t.state,r=t.isChatBodyDisabled,c=(0,l.KR)(!0),d="#chat-body-vue-teleported",v="#chat-subheader-vue-teleported",p="#chat-header-controls-vue-teleported",h="#visitor-cam-vue-teleported",C="#chat-logo-vue-teleported",b=(0,l.KR)({body:d,subheader:v,headerControls:p,visitorCam:h,logo:C}),y=ma().currentHeightDisplayed,k=(0,i.rk)("containerRef"),w=(0,l.KR)(!1);function E(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];w.value=e}const L=(0,u.U)([u.e.CHAT_BOXED]).isChatBoxed,x=(0,fi.D)().hasVideoOverlayMini,A=Zt(),R=A.state,I=A.closeActionMenu,F=A.hasChatBodyOverlayDisplayed,M=A.resetActionMenu,S=A.hasActiveNonPersistentAction,T=A.isActionMenuDisplayed,B=(0,l.KR)(!1);document.querySelector("#chat-vue-app").addEventListener("toggle-app",(e=>{let t=e.detail;B.value=t.show,c.value=!1,B.value?(Object.prototype.hasOwnProperty.call(t,"cammer")&&a(t),b.value.body="".concat(d,"-").concat(s.value.cammer.account),b.value.subheader="".concat(v,"-").concat(s.value.cammer.account),b.value.headerControls="".concat(p,"-").concat(s.value.cammer.account),b.value.visitorCam="".concat(h,"-").concat(s.value.cammer.account),b.value.logo="".concat(C,"-").concat(s.value.cammer.account)):(b.value.body=d,b.value.subheader=v,b.value.headerControls=p,b.value.visitorCam=h,b.value.logo=C),M()}),!1);const O=(0,i.EW)((()=>F()||T(_))),P=(0,i.EW)((()=>R.value[m]));return(e,t)=>{const a=(0,i.gN)("click-outside");return(0,i.uX)(),(0,i.CE)(i.FK,null,[((0,i.uX)(),(0,i.Wv)(i.Im,{disabled:c.value,to:b.value.body},[B.value?(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",{key:0,ref_key:"containerRef",ref:k,class:(0,o.C4)(["chat__body-container",{"chat__body-container--boxed":(0,l.R1)(L),"chat__body-container--has-mini-overlay":(0,l.R1)(x),"chat__body-container--fullscreen":(0,l.R1)(s).viewMode!==(0,l.R1)(is).COMPACT,"chat__body-container--is-resizing":w.value,"chat__body-container--toy-intensity":P.value,"chat__body-container--hidden":null!==(0,l.R1)(s).activeTransition}]),style:(0,o.Tr)({height:(0,l.R1)(y)})},[t[0]||(t[0]=(0,i.Lk)("div",{class:"chat__body-container__background"},null,-1)),(0,i.Q3)(" Chat actions section (Virtual gifts + Toy) "),(0,i.Lk)("div",{class:(0,o.C4)(["chat-action__wrapper",{"chat-action--in-background":O.value,"chat-action--is-disabled":(0,l.R1)(r)(),"chat-action--best-tipper":(0,l.R1)(s).bestTipper.display}])},[(0,i.bF)(Oi)],2),(0,i.Lk)("div",{class:(0,o.C4)(["chat__body-resize swiper-no-swiping",{"is-disabled":(0,l.R1)(r)()}])},[(0,i.bF)(_a,{containerRef:k.value,onIsResizing:E},null,8,["containerRef"]),(0,i.bo)((0,i.bF)(Yi,null,null,512),[[n.aG,(0,l.R1)(s).chatMode!==(0,l.R1)(Oe.wz).PRIVATE_PREVIEW&&(0,l.R1)(L)]])],2),(0,i.Lk)("div",{class:(0,o.C4)(["chat__body-content swiper-no-swiping",{"chat__body-content--virtual-gift":(0,l.R1)(F)(),"is-disabled":(0,l.R1)(r)()}])},[(0,i.Q3)(" ChatBodyOverlays section with content of Virtual gifts or Toy "),(0,i.bF)(Gi),(0,i.Q3)(" Public and secret rooms messages "),(0,i.bF)(Sn),(0,i.Q3)(" Best tipper "),(0,l.R1)(s).bestTipper.display?((0,i.uX)(),(0,i.Wv)(pi,{key:0})):(0,i.Q3)("v-if",!0),(0,i.Q3)(" Chat input to send messages with toggle (secret vs public) + emoji picker + auto-translate button "),(0,i.bF)(qn),null===(0,l.R1)(s).activeTransition?((0,i.uX)(),(0,i.Wv)(al,{key:1})):(0,i.Q3)("v-if",!0)],2),(0,i.Q3)(" Go free chat, Go Private chat, Go VIP buttons "),(0,i.bF)(Aa)],6)),[[a,()=>{s.value.keyboardIsOpen||null===s.value.activeTransition&&(S()?I():!R.value[f]||R.value[m]?document.dispatchEvent(new Event("chat:ui:toggle")):I(f))}]]):(0,i.Q3)("v-if",!0)],8,["disabled","to"])),(0,l.R1)(T)((0,l.R1)(g))?((0,i.uX)(),(0,i.Wv)(ns,{key:0})):(0,i.Q3)("v-if",!0),(0,i.bo)((0,i.bF)(Os,null,null,512),[[n.aG,null!==(0,l.R1)(s).activeTransition]]),((0,i.uX)(),(0,i.Wv)(i.Im,{disabled:c.value,to:b.value.subheader},[B.value?((0,i.uX)(),(0,i.Wv)(Io,{key:0})):(0,i.Q3)("v-if",!0)],8,["disabled","to"])),((0,i.uX)(),(0,i.Wv)(i.Im,{disabled:c.value,to:b.value.headerControls},[B.value?((0,i.uX)(),(0,i.Wv)(nc,{key:0,"initial-fullscreen":(0,l.R1)(s).viewMode!==(0,l.R1)(is).COMPACT},null,8,["initial-fullscreen"])):(0,i.Q3)("v-if",!0),B.value?((0,i.uX)(),(0,i.Wv)(uc,{key:1})):(0,i.Q3)("v-if",!0)],8,["disabled","to"])),(0,i.Q3)("Keep v-show (not v-if) so the component stays mounted and the cam2cam <video>
1 keeps streaming across minimize/maximize "),((0,i.uX)(),(0,i.Wv)(i.Im,{disabled:c.value,to:b.value.visitorCam},[(0,i.bo)((0,i.bF)(So,null,null,512),[[n.aG,B.value||(0,l.R1)(s).chatMinimized]])],8,["disabled","to"])),((0,i.uX)(),(0,i.Wv)(i.Im,{disabled:c.value,to:b.value.logo},[B.value?((0,i.uX)(),(0,i.Wv)(gc,{key:0})):(0,i.Q3)("v-if",!0)],8,["disabled","to"])),((0,i.uX)(),(0,i.Wv)(i.Im,{disabled:c.value,to:b.value.body},[(0,l.R1)(s).chatMinimized?((0,i.uX)(),(0,i.Wv)(Kr,{key:0,class:"minimized-close-control"})):(0,i.Q3)("v-if",!0)],8,["disabled","to"]))],64)}}},bc=(0,r.A)(Cc,[["__scopeId","data-v-55092549"]]),yc=Zt().hasPopoverActionDisplayed,kc={beforeMount:(e,t)=>{e.clickOutsideEvent=a=>{a.target.closest("[data-exclude-click-outside]")||(yc()?t.value():null!==a.target.closest("#videoPlayerContainer")&&(e===a.target||e.contains(a.target)||t.value()))},document.addEventListener("click",e.clickOutsideEvent)},unmounted:e=>{document.removeEventListener("click",e.clickOutsideEvent)}};var wc=a(84425);const Ec=Zt().closeActionMenu,Lc=(0,vo.m)().redirectTo,xc=(0,z.P)(),Ac=xc.state,Rc=xc.addReaction,Ic=xc.blurPreviewModeJoined,Fc=xc.messageReceived,Mc=xc.freeChatJoined,Sc=xc.privateChatJoined,Tc=xc.vipChatJoined,Bc=xc.voyeurChatJoined,Oc=xc.updateCammerOnline,Pc=xc.updatePrivateTariff,Wc=xc.updateVipTariff,Xc=xc.updateBestTipper,Dc=xc.updateUserCredits,Hc=xc.vipRequestDenied,Nc=xc.teasingModeJoined,Gc=xc.translatedMessageReceived,Uc=xc.toggledUserMute,Vc=xc.toySessionBroadcastStarted,Kc=xc.clearScheduledEvents,jc=xc.pushScheduledEvents,Qc=xc.virtualGiftSent,zc=xc.updateVoyeurAllowed,Yc=xc.updateNumberOfVisitorsInTheRoom,Zc=xc.updateToyStatus,qc=xc.updateToyPrice,$c=xc.updateToyVisible,Jc=xc.updateToyDuration,ed=xc.updateViewMode,td=xc.updateUserNickname,ad=xc.updateToyBalance,nd=xc.updateChatModeJoined,id=xc.showTransitionScreen,od=xc.hideTransitionScreen,ld=xc.updateChatType,sd=xc.updateHasChatConnection,rd=xc.setNoMoreTeasing,cd=xc.updateChatMinimized,dd=xc.updateMicState,ud=xc.updateCamState,vd=xc.updateSoundState,pd=xc.updateVisitorCamAvailability,fd=xc.addNotification,md=xc.hideDeviceSelector,hd=xc.updateNavigationState,_d=xc.userAccountCreated,gd=xc.hideAccountRequiredTransitionScreen;document.addEventListener("swiper:navigation:stateChanged",(e=>{var t;const a=null!==(t=e.detail)&&void 0!==t?t:{},n=a.hasPrev,i=a.hasNext;hd(!!n,!!i)})),document.addEventListener("addMessageTranslated.dnxChat",(e=>{Gc(e.detail)})),document.addEventListener("blurPreviewMode.dnxChat",(()=>{Ic()})),document.addEventListener("messageReceived.dnxChat",(e=>{Fc(e.detail)})),document.addEventListener("joinSuccess.dnxChat",(e=>{var t,a;Zc(null===(t=e.detail)||void 0===t||null===(t=t.toy)||void 0===t?void 0:t.status),$c(null===(a=e.detail)||void 0===a||null===(a=a.toy)||void 0===a?void 0:a.visible)})),document.addEventListener("joinFailed.dnxChat",(()=>{nd(!1)})),document.addEventListener("freeChatMode.dnxChat",(()=>{if(Mc(),od(),document.dispatchEvent(new Event("free3minStarted.dnxChat")),!Ac.value.user.loggedIn){const e=setTimeout((()=>{document.dispatchEvent(new Event("free3minEnded.dnxChat"))}),18e4);jc(e)}})),document.addEventListener("privateChatMode.dnxChat",(()=>{Sc(),od()})),document.addEventListener("vipChatMode.dnxChat",(()=>{Tc(),od()})),document.addEventListener("voyeurChatMode.dnxChat",(()=>{Bc(),od()})),document.addEventListener("chatStatusChanged.dnxChat",(e=>{var t;const a=null==e||null===(t=e.detail)||void 0===t?void 0:t.status,n="ONLINE"===a;Oc(n),"OFFLINE"===a?(id(Z.U9.DISCONNECTED),Kc()):n&&od()})),document.addEventListener("privateTariffChanged.dnxChat",(e=>{var t;const a=parseInt(null==e||null===(t=e.detail)||void 0===t?void 0:t.newTariff);isNaN(a)||Pc(a)})),document.addEventListener("vipTariffChanged.dnxChat",(e=>{var t;const a=parseInt(null==e||null===(t=e.detail)||void 0===t?void 0:t.newTariff);isNaN(a)||Wc(a)})),document.addEventListener("bestTipperInfo.dnxChat",(e=>{Xc(e.detail)})),document.addEventListener("vipRequestDenied.dnxChat",(()=>{Hc()})),document.addEventListener("toySessionStarted.dnxChat",(e=>{var t,a,n;Zc(null===(t=e.detail)||void 0===t?void 0:t.toyStatus),Jc(null===(a=e.detail)||void 0===a?void 0:a.toyDuration),_local.ga("dl:chat:spend-credits",{chatModel:Ac.value.cammer.nickname,value:Ac.value.toy.price,virtual_currency_name:"credits",item_name:Ac.value.cammer.nickname,item_category:"toy",show_price:Ac.value.toy.price,show_duration:null===(n=e.detail)||void 0===n?void 0:n.toyDuration})})),document.addEventListener("toySessionStopped.dnxChat",(e=>{var t;Zc(null===(t=e.detail)||void 0===t?void 0:t.toyStatus),Ec(f),qc(0)})),document.addEventListener("toySessionFailed.dnxChat",(e=>{var t;Zc(null===(t=e.detail)||void 0===t?void 0:t.toyStatus),Ec(f),qc(0)})),document.addEventListener("visitorStartedToySessionBroadcast.dnxChat",(e=>{var t,a;Vc(e.detail),Zc(null===(t=e.detail)||void 0===t?void 0:t.toyStatus),Jc(null===(a=e.detail)||void 0===a?void 0:a.toyDuration)})),document.addEventListener("visitorStoppedToySessionBroadcast.dnxChat",(e=>{var t;Zc(null===(t=e.detail)||void 0===t?void 0:t.toyStatus),qc(0)})),document.addEventListener("toyVisibilityChange.dnxChat",(e=>{var t;$c(null===(t=e.detail)||void 0===t?void 0:t.toyVisible)})),document.addEventListener("creditCountChanged.dnxChat",(e=>{var t;const a=parseInt(null==e||null===(t=e.detail)||void 0===t?void 0:t.credits);isNaN(a)||Dc(a)})),document.addEventListener("teasingMode.dnxChat",(()=>{Nc()}
1)),document.addEventListener("virtualGiftSent.dnxChat",(e=>{Qc(e.detail,e.detail.giftIsVote)})),document.addEventListener("youHaveBeenMutedOrUnmuted.dnxChat",(e=>{Uc(e.detail.muted)})),document.addEventListener("userAudioChanged.dnxChat",(e=>{dd(e.detail.microStarted,e.detail.microAllowed)})),document.addEventListener("cam2camChanged.dnxChat",(e=>{ud(e.detail.cameraStarted,e.detail.cameraAllowed)})),document.addEventListener("visitorCamCameraAccepted.dnxChat",(()=>{ud(Ac.value.camEnabled,!0)})),document.addEventListener("soundVolumeChanged.dnxChat",(e=>{vd(0!==e.detail.newVolume,!0)})),document.addEventListener("audioNeedsUnlocking.dnxChat",(()=>{const e=Be.W.getInstance();fd(e.translate("unmute"))})),document.addEventListener("visitorCamTypeChanged.dnxChat",(e=>{pd(e.detail.visitorCamType,e.detail.c2cEnabled)})),document.addEventListener("voyeurAllowedChanged.dnxChat",(e=>{const t=e.detail;zc(t),t||id(Z.U9.VIP_NO_VOYEUR)})),document.addEventListener("visitorCountChanged.dnxChat",(e=>{Yc(e.detail.numberOfVisitors)})),document.addEventListener("chat:viewMode:change",(e=>{ed(e.detail.view)})),document.addEventListener("newNicknameNeeded.dnxChat",(()=>{td("")})),document.addEventListener("toyTicketsBalanceChanged.dnxChat",(e=>{var t;const a=parseInt(null==e||null===(t=e.detail)||void 0===t?void 0:t.newBalance);isNaN(a)||ad(a)})),document.addEventListener("addMessageReaction.dnxChat",(e=>{Rc(e.detail)})),document.addEventListener("nicknameChanged.dnxChat",(e=>{td(e.detail.nickname)})),document.addEventListener("exit.dnxChat",(()=>{od(),Kc(),md(),cd(!1)})),document.addEventListener("vue:transition:show",(e=>{id(e.detail.type)})),document.addEventListener("vue:transition:hide",(()=>{od()})),document.addEventListener("chatTypeChanged.dnxChat",(e=>{const t=(0,Oe.te)(e.detail.newChatType);[Oe.wz.PRIVATE,Oe.wz.VIP].includes(t)&&hi.AvsService.blocksPaidActions()?Lc(po.A.PROFILE):ld(t)})),document.addEventListener("askVisitorToJoinPaid.dnxChat",(e=>{const t=(0,Oe.te)(e.detail.newChatMode);[wc.A.PRIVATE,wc.A.VIP].includes(t)&&setTimeout((()=>{id(Z.U9.FREE_TO_PAID)}),0)})),document.addEventListener("noMoreAccess.dnxChat",(()=>{Kc()})),document.addEventListener("noMoreCredits.dnxChat",(()=>{id(Z.U9.OUT_OF_CREDITS)})),document.addEventListener("youHaveBeenBanned.dnxChat",(()=>{id(Z.U9.KICKED_OUT)})),document.addEventListener("noMoreFreeSeconds.dnxChat",(()=>{id(Z.U9.NO_MORE_FREE_SECONDS)})),document.addEventListener("dnx.chat.init",(e=>{const t=e.detail.hasConnection;sd(t)})),document.addEventListener("free3minEnded.dnxChat",(()=>{Ac.value.user.loggedIn||id(Z.U9.FREE_3MIN_ENDS)})),document.addEventListener("noMoreTeasingTime.dnxChat",(()=>{rd()})),document.addEventListener("chat-minimized",(()=>{cd(!0),md()})),document.addEventListener("chat-maximized",(()=>{cd(!1)})),document.addEventListener("user:account-created",(()=>{_d(),gd()}));(0,(0,ke.K)().listenChatEvents)();const Cd="chat-vue-app";document.getElementById(Cd);(0,n.Ef)(bc).directive("click-outside",kc).mount("#".concat(Cd))},27607(e,t,a){a.d(t,{m:()=>v});a(27495),a(25440);var n=a(9928),i=a(17567),o=a(59412),l=a.n(o),s=a(92798),r=a(20174);const c=(0,n.P)().state,d=(0,i.k)().getPaymentPathForUserLoggedIn,u=r.o.getInstance();function v(){const e=e=>{switch(e){case s.A.ZAPPAGE:return l().paths.zappage;case s.A.AFFILIATE_HOME_URL:return l().paths.affiliateHomeUrl;case s.A.PROFILE:return l().paths.profile.replace("__modelId__",c.value.cammer.nickname);case s.A.CHAT:return l().paths.chat.replace("__modelId__",c.value.cammer.nickname);case s.A.PAYMENT:return l().paths.payment2018;case s.A.PAYMENT_PERSONALIZED:return d();default:return l().paths.zappage}};return{getRedirectUrl:e,redirectTo:t=>{const a=e(t);u.navigate(a)},redirectToPayment:()=>{const e=d();u.navigate(e)}}}},97729(e,t,a){a.d(t,{U:()=>u,e:()=>o});a(62953);var n=a(50953),i=a(20641);const o=Object.freeze({ADVANCED_SEARCH_SIDEBAR:"isAdvancedSearchSidebar",CHAT_BOXED:"isChatBoxed",MOBILE:"isMobile",SEARCH_DEPORTED:"isSearchDeported",SMALL_GRID_AVAILABLE:"isSmallGridAvailable",SMALL_SCREEN:"isSmallScreen",TABLET:"isTablet"}),l=Object.freeze({[o.ADVANCED_SEARCH_SIDEBAR]:"(min-width: 1024px)",[o.CHAT_BOXED]:"(min-width: 990px)",[o.MOBILE]:"(max-width: 768px)",[o.SEARCH_DEPORTED]:"(max-width: 654px)",[o.SMALL_GRID_AVAILABLE]:"(min-width: 768px)",[o.SMALL_SCREEN]:"(max-width: 430px)",[o.TABLET]:"(max-width: 1000px)"}),s=(0,n.KR)(new Map),r=(0,n.KR)(new Map),c=(0,n.KR)(new Map);function d(e){if(!l[e])return null;const t=r.value.get(e)||0;if(r.value.set(e,t+1),s.value.has(e))return s.value.get(e);const a=l[e],o=window.matchMedia(a),d=(0,n.KR)(o.matches),u=e=>{d.value=e.matches};"addEventListener"in o?o.addEventListener("change",u):o.addListener(u),c.value.set(e,u);const v=(0,i.EW)((()=>d.value));return s.value.set(e,v),v}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={};for(const a of e)l[a]&&(t[a]=d(a));return(0,i.hi)((()=>{for(const t of e){if(!l[t])continue;const e=r.value.get(t)||0;if(e>0&&r.value.set(t,e-1),0===r.value.get(t)){const e=window.matchMedia(l[t]),a=c.value.get(t);a&&("removeEventListener"in e?e.removeEventListener("change",a):e.removeListener(a),c.value.delete(t)),s.value.delete(t)}}})),t}},66262(e,t){t.A=(e,t)=>
1{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a}},82268(e,t,a){a.d(t,{A:()=>r});var n=a(20641),i=a(90033),o=a(50953),l=a(54758),s=a(73120);const r={__name:"FreeButton",props:{price:{type:[Number,null]},isLoading:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},setup(e){const t=s.W.getInstance();return(a,s)=>((0,n.uX)(),(0,n.Wv)(l.A,{price:e.price,color:"#06C36A","is-loading":e.isLoading,active:e.active},{text:(0,n.k6)((()=>[(0,n.eW)((0,i.v_)((0,o.R1)(t).translate("chatMode.free")),1)])),_:1},8,["price","is-loading","active"]))}}},54758(e,t,a){a.d(t,{A:()=>y});var n=a(53751),i=a(20641),o=a(90033),l=a(50953);a(62953);const s={width:"120",height:"30",viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:"#ffffff"};var r=a(66262);const c={},d=(0,r.A)(c,[["render",function(e,t){return(0,i.uX)(),(0,i.CE)("svg",s,[...t[0]||(t[0]=[(0,i.Fv)('<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity="0.3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',3)])])}]]);var u=a(73120);const v={class:"go-button"},p={class:"status"},f={class:"status__text"},m={key:0,class:"price__container"},h={key:1,class:"price__container"},_={class:"price__number"},g={class:"price__unit"},C={class:"unit__minute"},b={__name:"GoButton",props:{price:{type:[Number,null]},isLoading:{type:Boolean,default:!1},color:{type:String},active:{type:Boolean,default:!1}},setup(e){(0,n.$9)((t=>({v71dc2e65:e.color})));const t=u.W.getInstance().translate("minuteAbbr");return(a,n)=>((0,i.uX)(),(0,i.CE)("div",v,[(0,i.Lk)("div",p,[n[0]||(n[0]=(0,i.Lk)("div",{class:"status__bullet"},null,-1)),(0,i.Lk)("div",f,[(0,i.RG)(a.$slots,"text")])]),e.isLoading?((0,i.uX)(),(0,i.CE)("div",m,[(0,i.bF)(d)])):e.price>0?((0,i.uX)(),(0,i.CE)("div",h,[(0,i.Lk)("div",_,[(0,i.RG)(a.$slots,"price")]),(0,i.Lk)("div",g,[n[1]||(n[1]=(0,i.Lk)("div",{class:"unit__credits"},[(0,i.Lk)("span",{class:"unit__credit"},"cr"),(0,i.Lk)("span",{class:"unit__separator"},"/")],-1)),(0,i.Lk)("div",C,(0,o.v_)((0,l.R1)(t))+".",1)])])):(0,i.Q3)("v-if",!0)]))}},y=(0,r.A)(b,[["__scopeId","data-v-55b9f964"]])},38731(e,t,a){a.d(t,{A:()=>r});var n=a(20641),i=a(90033),o=a(50953),l=a(54758),s=a(73120);const r={__name:"PrivateButton",props:{price:{type:[Number,null]},isLoading:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},setup(e){const t=s.W.getInstance();return(a,s)=>((0,n.uX)(),(0,n.Wv)(l.A,{price:e.price,color:"#FFD123","is-loading":e.isLoading,active:e.active},{text:(0,n.k6)((()=>[(0,n.eW)((0,i.v_)((0,o.R1)(t).translate("privateCTA")),1)])),price:(0,n.k6)((()=>[(0,n.eW)((0,i.v_)(e.price),1)])),_:1},8,["price","is-loading","active"]))}}},24214(e,t,a){a.r(t),a.d(t,{default:()=>f});a(62953);var n=a(20641),i=a(53751),o=a(90033),l=a(50953),s=a(94835);const r={__name:"Arrow",props:{direction:{type:String,default:"right"}},setup:e=>(t,a)=>((0,n.uX)(),(0,n.CE)("div",{class:(0,o.C4)(["arrow-container",{"is-left":"left"===e.direction}])},[...a[0]||(a[0]=[(0,n.Lk)("div",{class:"arrow-line"},null,-1),(0,n.Lk)("div",{class:"chevron-wrapper"},[(0,n.Lk)("span",{class:"chevron chevron-gray"}),(0,n.Lk)("span",{class:"chevron chevron-white"})],-1)])],2))};var c=a(66262);const d=(0,c.A)(r,[["__scopeId","data-v-13ef8289"]]);var u=a(9928);const v={class:"prev-next__container"},p={__name:"PrevNext",setup(e){const t=(0,s.K)(),a=t.prevModelHandler,r=t.nextModelHandler,c=(0,u.P)().state,p=(0,l.KR)(!1),f=(0,n.EW)((()=>c.value.navigation.hasPrev)),m=(0,n.EW)((()=>c.value.navigation.hasNext));return(0,n.sV)((()=>{setTimeout((()=>{(f.value||m.value)&&(p.value=!0)}),3e3)})),(e,t)=>((0,n.uX)(),(0,n.Wv)(i.eB,{persisted:""},{default:(0,n.k6)((()=>[(0,n.bo)((0,n.Lk)("div",v,[(0,n.Lk)("div",{class:(0,o.C4)(["prev-next__container--arrow prev-next__container--previous",{"is-disallowed":!f.value}]),onClick:t[0]||(t[0]=function(){return(0,l.R1)(a)&&(0,l.R1)(a)(...arguments)})},[(0,n.bF)(d,{direction:"left"})],2),(0,n.Lk)("div",{class:(0,o.C4)(["prev-next__container--arrow prev-next__container--next",{"is-disallowed":!m.value}]),onClick:t[1]||(t[1]=function(){return(0,l.R1)(r)&&(0,l.R1)(r)(...arguments)})},[(0,n.bF)(d,{direction:"right"})],2)],512),[[i.aG,p.value]])])),_:1}))}},f=(0,c.A)(p,[["__scopeId","data-v-a5caf74c"]])},96234(e,t,a){a.d(t,{A:()=>r});var n=a(20641),i=a(90033),o=a(27607),l=a(92798);const s={__name:"ToZappage",props:{padding:{type:String,default:"0"}},setup(e){const t=(0,o.m)().redirectTo,a=()=>
1{t(l.A.ZAPPAGE)};return(t,o)=>((0,n.uX)(),(0,n.CE)("div",{style:(0,i.Tr)({padding:e.padding}),class:"action-screen__to-zappage"},[(0,n.Lk)("p",{onClick:a},[o[0]||(o[0]=(0,n.Lk)("svg",{class:"action-screen__to-zappage--icon"},[(0,n.Lk)("use",{"xlink:href":"#symbol-grid-medium"})],-1)),(0,n.RG)(t.$slots,"default")])],4))}};const r=(0,a(66262).A)(s,[["__scopeId","data-v-13fa7f26"]])},40421(e,t,a){a.d(t,{A:()=>r});var n=a(20641),i=a(90033),o=a(50953),l=a(54758),s=a(73120);const r={__name:"VoyeurButton",props:{price:{type:[Number,null]},isLoading:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},setup(e){const t=s.W.getInstance();return(a,s)=>((0,n.uX)(),(0,n.Wv)(l.A,{price:e.price,color:"#A194E5",isLoading:e.isLoading,active:e.active},{text:(0,n.k6)((()=>[(0,n.eW)((0,i.v_)((0,o.R1)(t).translate("chatMode.voyeur")),1)])),price:(0,n.k6)((()=>[(0,n.eW)((0,i.v_)(e.price),1)])),_:1},8,["price","isLoading","active"]))}}},1023(e,t,a){a.d(t,{A:()=>r});var n=a(20641);const i={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},o=["stroke"],l=["fill"],s=["fill"],r={__name:"InfoIcon",props:{color:{type:String,default:"white",required:!1}},setup:e=>(t,a)=>((0,n.uX)(),(0,n.CE)("svg",i,[(0,n.Lk)("path",{d:"M12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22Z",stroke:e.color,"stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"},null,8,o),(0,n.Lk)("path",{d:"M13.6842 7.91623C13.9785 7.44631 13.8361 6.82683 13.3661 6.53258C12.8962 6.23834 12.2767 6.38076 11.9825 6.85068C11.6882 7.3206 11.8307 7.94008 12.3006 8.23433C12.7705 8.52857 13.39 8.38615 13.6842 7.91623Z",fill:e.color},null,8,l),(0,n.Lk)("path",{d:"M9.95729 10.7594L10.2078 10.743C10.3077 10.7365 10.4078 10.7539 10.4996 10.7938C10.5915 10.8336 10.6726 10.8948 10.7361 10.9722C10.7996 11.0496 10.8437 11.141 10.8649 11.2389C10.886 11.3368 10.8835 11.4383 10.8576 11.535L9.45219 16.78C9.18477 17.7781 10.3398 18.4324 11.8624 17.6618C12.4192 17.3801 13.1683 16.7761 13.7593 16.1343C13.7852 16.1063 13.8007 16.0702 13.8031 16.032C13.8055 15.9939 13.7947 15.9562 13.7724 15.9251C13.7502 15.8941 13.7179 15.8716 13.6811 15.8616C13.6442 15.8516 13.605 15.8547 13.5701 15.8702C12.7096 16.2515 11.3872 16.659 11.7342 15.3642L13.3103 9.48183L9.8874 9.71805C9.74948 9.72753 9.62096 9.79136 9.53005 9.89552C9.43914 9.99968 9.39328 10.1357 9.40254 10.2736C9.4118 10.4115 9.47541 10.5402 9.57942 10.6312C9.68343 10.7223 9.81933 10.7684 9.95729 10.7594Z",fill:e.color},null,8,s)]))}},41141(e,t,a){a.d(t,{A:()=>s});a(62953);var n=a(53751),i=a(20641);const o={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"15",viewBox:"0 0 24 15",fill:"none"},l={__name:"CreditsIcon",props:{color:{type:String,default:"white"}},setup:e=>((0,n.$9)((t=>({v3af52a24:e.color}))),(e,t)=>((0,i.uX)(),(0,i.CE)("svg",o,[...t[0]||(t[0]=[(0,i.Fv)('<ellipse cx="10.6497" cy="8.75" rx="5.5" ry="2" stroke="white" stroke-width="1.5" data-v-c638f6bc></ellipse><path d="M16.1497 8.75V11.75C16.1497 12.8546 13.6872 13.75 10.6497 13.75C7.61209 13.75 5.14966 12.8546 5.14966 11.75V8.75" stroke="white" stroke-width="1.5" data-v-c638f6bc></path><path d="M11.75 2.75C11.75 3.85457 14.2124 4.75 17.25 4.75C20.2876 4.75 22.75 3.85457 22.75 2.75C22.75 1.64543 20.2876 0.75 17.25 0.75C14.2124 0.75 11.75 1.64543 11.75 2.75ZM11.75 2.75L11.75 6.75" stroke="white" stroke-width="1.5" data-v-c638f6bc></path><path d="M22.75 2.75V5.75C22.75 6.85457 20.2876 7.75 17.25 7.75C16.8733 7.75 15.6052 7.73623 15.2498 7.70999" stroke="white" stroke-width="1.5" data-v-c638f6bc></path><path d="M11.0142 6.75C11.4822 6.45583 11.75 6.11429 11.75 5.75C11.75 4.64543 9.28757 3.75 6.25 3.75C3.21243 3.75 0.75 4.64543 0.75 5.75C0.75 6.79328 2.94675 7.64999 5.75 7.74185" stroke="white" stroke-width="1.5" data-v-c638f6bc></path><path d="M0.75 5.75V8.75C0.75 9.71758 2.63954 10.5247 5.15 10.71" stroke="white" stroke-width="1.5" data-v-c638f6bc></path>',6)])])))};const s=(0,a(66262).A)(l,[["__scopeId","data-v-c638f6bc"]])},26431(e,t,a){a.d(t,{A:()=>r});var n=a(20641);const i=["width","height"],o=["fill"],l=["fill"],s=["fill"],r={__name:"SecretIcon",props:{width:{type:Number,default:15},height:{type:Number,default:12},fill:{type:String,default:"#A80294"}},setup:e=>(t,a)=>((0,n.uX)(),(0,n.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height,viewBox:"0 0 15 12",fill:"none"},[(0,n.Lk)("circle",{cx:"3.82154",cy:"2.98902",r:"2.98853",fill:e.fill},null,8,o),(0,n.Lk)("circle",{cx:"11.178",cy:"2.98902",r:"2.98853",fill:e.fill},null,8,l),(0,n.Lk)("path",{d:"M14.1664 2.88965C14.1664 8.66747 7.49972 12.0008 7.49972 12.0008C7.49972 12.0008 0.833008 8.66747 0.833008 2.88965C0.833008 2.88965 3.8178 7.55635 7.49972 7.55635C11.1817 7.55635 14.1664 2.88965 14.1664 2.88965Z",fill:e.fill},null,8,s)],8,i))}},95034(e,t,a){a.d(t,{A:()=>l});a(62953);var n=a(20641);const i={key:0,viewBox:"0 0 24 24",fill:"none"},o={key:1,viewBox:"0 0 24 24",fill:"none"},l={__name:"SoundIcon",props:{isSoundEnabled:{type:Boolean,required:!1}},setup:e=>(t,a)=>e.isSoundEnabled?((0,n.uX)(),(0,n.CE)("svg",i,[...a[0]||(a[0]=[(0,n.Lk)("path",{d:"M17.5708 9.9292C18.0744 10.3866 18.4283 11.0909 18.4283 12.0002C18.4283 12.9095 18.0744 13.6138 17.5708 14.0712",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),(0,n.Lk)("path",{d:"M20.0771 5.72656C21.6228 7.09712 22.7156 9.23192 22.7156 11.9997C22.7156 14.7675 21.6228 16.9023 20.0771 18.2729",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),(0,n.Lk)("path",{d:"M1.55473 9.25902C1.40138 10.1136 1.28564 11.0742 1.28564 12C1.28564 12.9258 1.40138 13.8864 1.55473 14.741C1.8299 16.2745 2.98531 17.5541 4.52623 17.7845C4.96247 17.8497 5.4799 17.9052 6.10366 17.9435C7.35126 18.0201 8.47814 18.7182 9.14586 19.7749C9.46199 20.2751 9.79957 20.7621 10.1495 21.2186C11.4578 22.925 13.4791 21.9247 13.5698 19.7764C13.6492 17.8969 13.7142 15.3386 13.7142 12C13.7142 8.66141 13.6492 6.10305 13.5698 4.22363C13.4791 2.07535 11.4578 1.07497 10.1495 2.78138C9.79957 3.23788 9.46199 3.72488 9.14586 4.22515C8.47814 5.2818 7.35126 5.97985 6.10366 6.05651C5.4799 6.09483 4.96247 6.1503 4.52623 6.21552C2.98531 6.44591 1.8299 7.72546 1.55473 9.25902Z",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):((0,n.uX)(),(0,n.CE)("svg",o,[...a[1]||(a[1]=[(0,n.Lk)("path",{d:"M17.0808 17.0858C17.1184 15.5966 17.1431 14.0589 17.1431 11.9999C17.1431 8.75917 17.0819 6.25361 17.0057 4.39
1055C16.9144 2.15845 14.8211 1.12741 13.4785 2.91291C13.1797 3.31025 12.8908 3.72891 12.6173 4.15795C11.9194 5.25311 10.7482 5.97757 9.45225 6.06147C8.90859 6.09667 8.44727 6.14504 8.0509 6.20145C7.54372 6.27363 7.07654 6.45617 6.66602 6.72252",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),(0,n.Lk)("path",{d:"M4.71387 12C4.71387 12.8916 4.82121 13.8154 4.96612 14.6458C5.24438 16.2405 6.44762 17.5704 8.05022 17.7985C8.44658 17.8549 8.9079 17.9032 9.45156 17.9384C10.7475 18.0223 11.9187 18.7468 12.6167 19.842C12.8901 20.271 13.1791 20.6897 13.4778 21.087C13.9816 21.7569 14.591 22.0303 15.1607 21.9926",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),(0,n.Lk)("path",{d:"M2.99902 3.00049C9.95473 11.9105 11.898 13.8056 20.999 21.0005",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))}},38209(e,t,a){a.d(t,{A:()=>s});a(62953);var n=a(20641),i=a(90033);const o=["data-testid"],l={__name:"Toggle",props:{active:{type:Boolean,default:!1},locked:{type:Boolean,default:!1},testid:{type:String,default:void 0}},emits:["toggle"],setup(e,t){let a=t.emit;const l=e,s=a,r=()=>{l.locked||s("toggle")};return(t,a)=>((0,n.uX)(),(0,n.CE)("div",{class:(0,i.C4)([{active:e.active,locked:e.locked},"toggle"]),"data-testid":e.testid,onClick:r},[...a[0]||(a[0]=[(0,n.Lk)("div",{class:"slider"},null,-1)])],10,o))}};const s=(0,a(66262).A)(l,[["__scopeId","data-v-a251719a"]])},67032(e,t,a){a.d(t,{A:()=>r});a(3362);var n=a(20641),i=a(90033),o=a(50953);const l={class:"egg__overlay"},s={__name:"EasterEggDisplay",props:{promoGranted:Boolean,creditsLabel:String,lockedState:String,unlockedState:String,size:{type:String,default:"130px"},withOffset:{type:Boolean,default:!1},scaled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},setup(e){const t=(0,o.KR)(null),a=(0,o.KR)(!1);return(0,n.sV)((async()=>{await(0,n.dY)();const e=t.value;e&&e.scrollWidth>e.clientWidth&&(a.value=!0)})),(o,s)=>((0,n.uX)(),(0,n.CE)("div",{class:(0,i.C4)(["egg",[e.promoGranted?"egg--unlocked":"egg--locked",e.withOffset?"egg--chat-offset":"",e.scaled?"egg--scaled":"",e.clickable?"egg--clickable":""]]),style:(0,i.Tr)({"--egg-size":e.size})},[(0,n.Lk)("div",l,[s[0]||(s[0]=(0,n.Lk)("div",{class:"egg__amount"},[(0,n.Lk)("span",{class:"egg__amount-number"},"+15"),(0,n.Lk)("span",{class:"egg__amount-percent"},"%")],-1)),(0,n.Lk)("div",{class:(0,i.C4)(["egg__credits-bar",e.promoGranted?"egg__credits-bar--unlocked":"egg__credits-bar--locked"])},(0,i.v_)(e.creditsLabel),3),(0,n.Lk)("div",{ref_key:"stateBarRef",ref:t,class:(0,i.C4)(["egg__state-bar",[e.promoGranted?"egg__state-bar--unlocked":"egg__state-bar--locked",a.value&&!e.promoGranted?"egg__state-bar--compact":""]])},(0,i.v_)(e.promoGranted?e.unlockedState:e.lockedState),3)])],6))}};const r=(0,a(66262).A)(s,[["__scopeId","data-v-284a036c"]])},64430(e,t,a){a.d(t,{A:()=>d});a(89463),a(27495),a(62953);var n=a(20641),i=a(50953),o=a(9340),l=a.n(o);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,o,l,s=[],r=!0,c=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;r=!1}else for(;!(r=(n=o.call(a)).done)&&(s.push(n.value),s.length!==t);r=!0);}catch(e){c=!0,i=e}finally{try{if(!r&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}const c={__name:"PerfectScrollBar",props:{options:{type:Object,default:{}},containerElement:Object},emits:["ps-scroll-y"],setup(e,t){let a=t.expose,o=t.emit;const r=e,c=o,d=(0,i.KR)(null);function u(){r.containerElement&&(d.value=new PerfectScrollbar(r.containerElement,r.options),m())}function v(){d.value&&(d.value.destroy(),d.value=null,m(!1))}!l().isTouchSensitiveDevice()&&((0,n.sV)((()=>
1{r.containerElement&&u()})),(0,n.wB)((()=>r.containerElement),(()=>{v(),u()}),{deep:!0})),(0,n.xo)((()=>{v()}));const p={"ps-scroll-y":(f="ps-scroll-y",function(e){c(f,e)})};var f;function m(){var e;let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null!==(e=d.value)&&void 0!==e&&e.element&&Object.entries(p).forEach((e=>{let a=s(e,2),n=a[0],i=a[1];var o,l;t?null===(o=d.value)||void 0===o||o.element.addEventListener(n,i):null===(l=d.value)||void 0===l||l.element.removeEventListener(n,i)}))}return a({update:function(){var e;null===(e=d.value)||void 0===e||e.update()}}),(e,t)=>(0,n.RG)(e.$slots,"default")}},d=c},28427(e,t,a){a.d(t,{A:()=>d});a(74423),a(3362);var n=a(20641),i=a(90033),o=a(53751),l=a(50953);const s={key:0,class:"tooltip__icon"},r={class:"tooltip__text"},c={__name:"Tooltip",props:{content:{type:String,required:!1,default:""},position:{type:String,default:"top",validator:e=>["top","bottom","left","right"].includes(e)},offset:{type:Number,default:8},showCursor:{type:Boolean,default:!0}},setup(e){const t=e,a=(0,n.Ht)(),c=(0,n.EW)((()=>Boolean(a.icon))),d=(0,l.KR)(null),u=(0,l.KR)(null),v=(0,l.KR)(!1),p=(0,l.KR)({top:0,left:0}),f=(0,l.KR)({top:"auto",left:"50%",transform:"translateX(-50%)"}),m=(0,l.KR)(!1),h=(0,l.KR)(null),_=(0,n.EW)((()=>({position:"absolute",top:"".concat(p.value.top,"px"),left:"".concat(p.value.left,"px"),zIndex:1e4}))),g=(0,n.EW)((()=>f.value)),C=async()=>{h.value&&(clearTimeout(h.value),h.value=null),v.value=!0,await(async()=>{if(await(0,n.dY)(),!d.value||!u.value)return;const e=d.value.getBoundingClientRect(),a=u.value.getBoundingClientRect(),i=window.scrollX,o=window.scrollY,l=window.innerWidth,s=window.innerHeight;let r=0,c=0,v="auto",m="50%",h="translateX(-50%)",_="auto",g="auto";switch(t.position){case"top":r=e.top+o-a.height-t.offset,c=e.left+i+e.width/2-a.width/2,v="100%",h="translateX(-50%) rotate(180deg)";break;case"bottom":r=e.bottom+o+t.offset,c=e.left+i+e.width/2-a.width/2,_="100%",h="translateX(-50%)";break;case"left":r=e.top+o+e.height/2-a.height/2,c=e.left+i-a.width-t.offset,m="100%",v="50%",h="translateY(-50%) rotate(-90deg)";break;case"right":r=e.top+o+e.height/2-a.height/2,c=e.right+i+t.offset,g="100%",v="50%",m="auto",h="translateY(-50%) rotate(90deg)"}c<8?c=8:c+a.width>l-8&&(c=l-a.width-8),r<8+o?r=8+o:r+a.height>s+o-8&&(r=s+o-a.height-8),p.value={top:r,left:c},f.value={top:v,left:m,right:g,bottom:_,transform:h}})()},b=()=>{v.value=!1},y=()=>{h.value&&clearTimeout(h.value),h.value=setTimeout((()=>{b(),h.value=null}),100)},k=e=>{e.stopPropagation(),m.value&&(v.value?b():C())},w=()=>{m.value||C()},E=()=>{m.value||y()},L=()=>{m.value||h.value&&(clearTimeout(h.value),h.value=null)},x=()=>{m.value||y()},A=e=>{v.value&&d.value&&!d.value.contains(e.target)&&u.value&&!u.value.contains(e.target)&&b()};return(0,n.sV)((()=>{m.value="ontouchstart"in window||navigator.maxTouchPoints>0,document.addEventListener("click",A),document.addEventListener("touchstart",A)})),(0,n.xo)((()=>{document.removeEventListener("click",A),document.removeEventListener("touchstart",A)})),(t,a)=>((0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("span",{ref_key:"triggerRef",ref:d,class:(0,i.C4)(["tooltip-trigger",{"tooltip-trigger--no-cursor":!e.showCursor}]),onClick:k,onMouseenter:w,onMouseleave:E},[(0,n.RG)(t.$slots,"default")],34),((0,n.uX)(),(0,n.Wv)(n.Im,{to:"body"},[(0,n.bF)(o.eB,{name:"tooltip-fade"},{default:(0,n.k6)((()=>[v.value?((0,n.uX)(),(0,n.CE)("div",{key:0,ref_key:"tooltipRef",ref:u,class:"tooltip-vue",style:(0,i.Tr)(_.value),onMouseenter:L,onMouseleave:x},[(0,n.Lk)("div",{class:(0,i.C4)(["tooltip__content",{"tooltip__content--with-icon":c.value}])},[c.value?((0,n.uX)(),(0,n.CE)("span",s,[(0,n.RG)(t.$slots,"icon")])):(0,n.Q3)("v-if",!0),(0,n.Lk)("span",r,[(0,n.RG)(t.$slots,"content",{},(()=>[(0,n.eW)((0,i.v_)(e.content),1)]))])],2),(0,n.Lk)("div",{class:"tooltip__arrow",style:(0,i.Tr)(g.value)},null,4)],36)):(0,n.Q3)("v-if",!0)])),_:3})]))],64))}};const d=(0,a(66262).A)(c,[["__scopeId","data-v-9458abc8"]])}}]);
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.