PageSourceSearch

https://arporn.com/_nuxt/BQod7_hx.js

js arporn.com collected 2026-10-01 07:45:15 UTC 27,962 bytes, 1 lines download raw bytes

1import{_,b1 as i,D as l,x as o,aP as w,br as f,z as y,U as u,y as g,bJ as T,R as b,bd as s,bb as Z,aI as x,aH as B,e as S,ba as P,bK as R,bD as U,bL as j,aM as G,bf as Y,aQ as z,ag as K}from"./Cg-zHmQB.js";import{at as C}from"./BE9PVeux.js";import{P as J}from"./BTETNzDv.js";import{P as W}from"./DzKZKAnM.js";const Q={name:"Notification",props:{operationInput:{type:Object,default:()=>({})},finishOperation:{type:Function,required:!0},cancelOperation:{type:Function,required:!0}},computed:{isSuccess:e=>e.operationInput.type==="success",icon:e=>e.isSuccess?{color:"#11A94E",d:"M32 18L20 31L15 26M24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42Z"}:{color:"#F20C5F",d:"M24 32H24.02M24 16V24M24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42Z"}}},X={class:"dc-dialog-notification","data-testid":"element_004955"},tt={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"elem_v_001663"},et=["d","stroke"],nt={class:"dc-dialog-notification__title","data-testid":"element_004958"};function ot(e,n,t,r,p,a){return i(),l("div",X,[o("div",{class:w(["dc-dialog-notification__icon",a.isSuccess&&"is-success"||"is-failure"]),"data-testid":"element_004956"},[(i(),l("svg",tt,[o("path",{d:a.icon.d,stroke:a.icon.color,"stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}
1,null,8,et)]))],2),o("div",nt,f(t.operationInput.title),1)])}const M=_(Q,[["render",ot],["__scopeId","data-v-eb0f61f4"]]),it={props:{title:{type:String,default:null},text:{type:String,default:null}}},at={class:"dc-dialog__content","data-testid":"element_004985"},st={key:0,class:"dc-dialog__title","data-testid":"element_004986"},ct={key:1,class:"dc-dialog__text","data-testid":"element_004987"};function lt(e,n,t,r,p,a){return i(),l("div",at,[t.title?(i(),l("div",st,f(t.title),1)):y("",!0),t.text?(i(),l("div",ct,f(t.text),1)):y("",!0)])}const k=_(it,[["render",lt],["__scopeId","data-v-35b3721f"]]),dt={name:"Confirm",components:{Content:k},props:{operationInput:{type:Object,default:()=>({})},finishOperation:{type:Function,required:!0},cancelOperation:{type:Function,required:!0}}},rt={class:"dc-dialog-confirm","data-testid":"element_004959"},ut={class:"dc-dialog-confirm__btns","data-testid":"element_004960"};function pt(e,n,t,r,p,a){const c=s("Content"),d=s("app-link");return i(),l("div",rt,[u(c,{title:t.operationInput.title,text:t.operationInput.text},null,8,["title","text"]),o("div",ut,[t.operationInput.no?(i(),g(d,{key:0,button:"",block:"",class:"dc-dialog-confirm__btn","test-id":"elem_v_000868",onClick:n[0]||(n[0]=m=>t.operationInput.no.handler({operationInput:t.operationInput,finishOperation:t.finishOperation,cancelOperation:t.cancelOperation}))},{default:T(()=>[b(f(t.operationInput.no.caption),1)]),_:1})):y("",!0),t.operationInput.yes?(i(),g(d,{key:1,button:"",block:"",transparent:"",class:"dc-dialog-confirm__btn","test-id":"elem_v_000869",onClick:n[1]||(n[1]=m=>t.operationInput.yes.handler({operationInput:t.operationInput,finishOperation:t.finishOperation,cancelOperation:t.cancelOperation}))},{default:T(()=>[b(f(t.operationInput.yes.caption),1)]),_:1})):y("",!0)])])}const D=_(dt,[["render",pt],["__scopeId","data-v-2901a913"]]),mt={props:{gray:{type:Boolean,default:!1}}};function _t(e,n,t,r,p,a){return i(),l("div",{class:w(["dc-dialog__second-text",{gray:t.gray}]),"data-testid":"element_004992"},[Z(e.$slots,"default",{},void 0,!0)],2)}const F=_(mt,[["render",_t],["__scopeId","data-v-f707f3a7"]]),ft={emits:["click"],components:{SecondText:F},props:{caption:{type:String,default:null},hintText:{type:String,default:null},outlined:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},green:{type:Boolean,default:!1}}},ht={class:"dc-dialog__btn-block","data-testid":"element_004981"};function yt(e,n,t,r,p,a){const c=s("app-link"),d=s("SecondText");return i(),l("div",ht,[t.caption?(i(),g(c,{key:0,button:"",block:"",success:!t.outlined,transparent:t.outlined,disabled:t.disabled,green:t.green,class:"dc-dialog__btn","test-id":"elem_v_000867",onClick:n[0]||(n[0]=m=>e.$emit("click"))},{default:T(()=>[b(f(t.caption),1)]),_:1},8,["success","transparent","disabled","green"])):y("",!0),t.hintText?(i(),g(d,{key:1},{default:T(()=>[b(f(t.hintText),1)]),_:1})):y("",!0)])}const I=_(ft,[["render",yt],["__scopeId","data-v-168d25cb"]]),gt={name:"Simple",components:{Content:k,ButtonSection:I},props:{operationInput:{type:Object,default:()=>({})},finishOperation:{type:Function,required:!0},cancelOperation:{type:Function,required:!0}}},vt={class:"dc-dialog-simple","data-testid":"element_004954"};function Ct(e,n,t,r,p,a){const c=s("Content"),d=s("ButtonSection");return i(),l("div",vt,[u(c,{title:t.operationInput.title,text:t.operationInput.text},null,8,["title","text"]),t.operationInput.button?(i(),g(d,{key:0,caption:t.operationInput.button.caption,"hint-text":t.operationInput.button.hintText,onClick:n[0]||(n[0]=m=>t.operationInput.button.handler({operationInput:t.operationInput,finishOperation:t.finishOperation,cancelOperation:t.cancelOperation}))},null,8,["caption","hint-text"])):y("",!0)])}const L=_(gt,[["render",Ct],["__scopeId","data-v-9c5ea633"]]),bt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%209C16%2012.866%2012.866%2016%209%2016C5.13401%2016%202%2012.866%202%209C2%205.13401%205.13401%202%209%202C12.866%202%2016%205.13401%2016%209ZM10.0154%2012.7529C9.68451%2012.7529%209.3737%2012.6911%209.08294%2012.5674C8.79219%2012.4405%208.53652%2012.2683%208.31595%2012.0511C8.09872%2011.8305%207.92661%2011.5749%207.79961%2011.2841C7.67595%2010.9934%207.61413%2010.6826%207.61413%2010.3517V8.75755C7.2459%208.75755%206.9474%208.45905%206.9474%208.09082V8.06074C6.9474%207.69252%207.2459%207.39401%207.61413%207.39401V5.9302
11C7.61413%205.55368%207.91937%205.24844%208.2959%205.24844C8.67243%205.24844%208.97767%205.55368%208.97767%205.93021V7.39401H10.3713C10.7478%207.39401%2011.0531%207.69925%2011.0531%208.07578C11.0531%208.45231%2010.7478%208.75755%2010.3713%208.75755H8.97767V10.3517C8.97767%2010.4954%209.00441%2010.6308%209.05788%2010.7577C9.11135%2010.8814%209.18487%2010.99%209.27845%2011.0836C9.37203%2011.1772%209.48231%2011.2524%209.60931%2011.3092C9.73631%2011.3627%209.87166%2011.3894%2010.0154%2011.3894H10.3713C10.7478%2011.3894%2011.0531%2011.6946%2011.0531%2012.0712C11.0531%2012.4477%2010.7478%2012.7529%2010.3713%2012.7529H10.0154Z'%20fill='url(%23paint0_linear_833_90378)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18%209C18%2013.9706%2013.9706%2018%209%2018C4.02942%2018%200%2013.9706%200%209C0%204.02945%204.02942%200%209%200C13.9706%200%2018%204.02945%2018%209ZM17%209C17%2013.4183%2013.4183%2017%209%2017C4.58173%2017%201%2013.4183%201%209C1%204.58173%204.58173%201%209%201C13.4183%201%2017%204.58173%2017%209Z'%20fill='url(%23paint1_linear_833_90378)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_833_90378'%20x1='0'%20y1='0'%20x2='18'%20y2='18'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D59130'/%3e%3cstop%20offset='0.161458'%20stop-color='%23FFFEC7'/%3e%3cstop%20offset='0.322917'%20stop-color='%23FFE86C'/%3e%3cstop%20offset='0.692708'%20stop-color='%23D59130'/%3e%3cstop%20offset='0.802083'%20stop-color='%23D59130'/%3e%3cstop%20offset='1'%20stop-color='%23E68071'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_833_90378'%20x1='0'%20y1='0'%20x2='18'%20y2='18'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D59130'/%3e%3cstop%20offset='0.161458'%20stop-color='%23FFFEC7'/%3e%3cstop%20offset='0.322917'%20stop-color='%23FFE86C'/%3e%3cstop%20offset='0.692708'%20stop-color='%23D59130'/%3e%3cstop%20offset='0.802083'%20stop-color='%23D59130'/%3e%3cstop%20offset='1'%20stop-color='%23E68071'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Tt={__assets:{__asset0:bt},props:{tokens:{type:Number,default:0},bold:{type:Boolean,default:!1}},computed:{tokensFormatted(){return this.tokens.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}}},kt={class:"tokens","data-testid":"element_004989"};function wt(e,n,t,r,p,a){const c=s("app-icon");return i(),l("div",kt,[u(c,{"svg-src":e.$options.__assets.__asset0,"test-id":"element_004990",size:"18"},null,8,["svg-src"]),o("div",{class:w(["tokens__count",{bold:t.bold}]),"data-testid":"element_004991"},f(a.tokensFormatted),3)])}const H=_(Tt,[["render",wt],["__scopeId","data-v-703add0d"]]),It={components:{OutputTokens:H},props:{balance:{type:Number,default:0}}},St={class:"balance","data-testid":"element_004977"};function xt(e,n,t,r,p,a){const c=s("OutputTokens");return i(),l("div",St,[n[0]||(n[0]=o("span",{class:"balance__label","data-testid":"element_004980"},"Current Balance:",-1)),u(c,{tokens:t.balance},null,8,["tokens"])])}const $t=_(It,[["render",xt],["__scopeId","data-v-4f2b478b"]]),Ot={name:"BalanceNotEnough",components:{Content:k,Balance:$t,ButtonSection:I},props:{operationInput:{type:Object,default:()=>({})},finishOperation:{type:Function,required:!0},cancelOperation:{type:Function,required:!0}},computed:{...x({balance:"dreamcam/camgirlsAuth/balance"})},methods:{async onBuyTokens(){await this.finishOperation(),this.$router.push("/tokens/")}}},Bt={class:"dc-dialog-balance","data-testid":"element_004975"},Pt={class:"dc-dialog-balance__content","data-testid":"element_004976"};function Ft(e,n,t,r,p,a){const c=s("Content"),d=s("Balance"),m=s("ButtonSection");return i(),l("div",Bt,[o("div",Pt,[u(c,{title:t.operationInput.title,text:t.operationInput.text},null,8,["title","text"]),u(d,{balance:e.balance},null,8,["balance"])]),t.operationInput.button?(i(),g(m,{key:0,caption:t.operationInput.button.caption,"hint-text":t.operationInput.button.hintText,onClick:a.onBuyTokens},null,8,["caption","hint-text","onClick"])):y("",!0)])}const q=_(Ot,[["render",Ft],["__scopeId","data-v-795322e1"]]),Mt={props:{modelPhotoSrc:{type:String,default:null},message:{type:String,default:null}}},Dt={class:"compliment-model","data-testid":"element_004982"}
1,Lt={key:0,class:"compliment-model__photo","data-testid":"element_004983"},qt={class:"compliment-model__msg","data-testid":"element_004984"};function Nt(e,n,t,r,p,a){const c=s("app-image");return i(),l("div",Dt,[t.modelPhotoSrc?(i(),l("div",Lt,[u(c,{src:t.modelPhotoSrc,class:"compliment-model__img","test-id":"elem_v_001400"},null,8,["src"])])):y("",!0),o("div",qt,f(t.message),1)])}const At=_(Mt,[["render",Nt],["__scopeId","data-v-1c08d986"]]),Vt={props:{tip:{type:Number,default:null}}},Et={class:"tip","data-testid":"element_004993"};function Ht(e,n,t,r,p,a){return i(),l("button",Et,f(t.tip),1)}const Zt=_(Vt,[["render",Ht],["__scopeId","data-v-1bfca73b"]]),Rt={name:"Compliment",components:{Content:k,ComplimentModelBlock:At,Tip:Zt,ButtonSection:I},props:{operationInput:{type:Object,default:()=>({})},finishOperation:{type:Function,required:!0},cancelOperation:{type:Function,required:!0}},data:()=>({customTip:0,nickname:"",photoUrl:""}),computed:{...x({user:"user/getUser",complementInfo:"dreamcam/room/complementInfo",balance:"dreamcam/camgirlsAuth/balance",model:"dreamcam/room/model"}),message:e=>`Thank you for the fantabulous time, ${e.nickname}. I hope you enjoyed the show.`,presetList(){return this.complementInfo.presetList.length?this.complementInfo.presetList:[10,20,50]}},watch:{"complementInfo.presetList":{handler(e){const t=Array.isArray(e)&&e.length?Math.max(...e):0;this.customTip=t*2||100},immediate:!0}},created(){this.nickname=this.user.name,this.photoUrl=this.model.photoUrl},methods:{...B({sendCompliment:"dreamcam/room/sendCompliment",fetchBalance:"dreamcam/camgirlsAuth/fetchBalance"}),onTipInput(e){this.customTip=e.target.value.replace(/[^0-9]/g,"")},async onSend(e){if(e<=0){C({name:"Notification",title:"Amount must be greater than 0.",type:"failure"});return}await this.finishOperation();try{if(e>this.balance){await C({name:"BalanceNotEnough",title:"Oops, not enough tokens!",text:"Sorry, you don`t have enough tokens 😔",button:{caption:"Get Tokens"}});return}if(!await this.sendCompliment(e)){C({name:"Notification",title:"Sorry, something went wrong. Try again next time.",type:"failure"});return}C({name:"Notification",title:"Your compliment has been sent!",type:"success"}),this.fetchBalance()}catch{}}}},Ut={class:"dc-dialog-compliment column","data-testid":"element_004961"},jt={class:"dc-dialog-compliment__content column","data-testid":"element_004962"},Gt={class:"dc-dialog-compliment__inner column","data-testid":"element_004963"},Yt={class:"dc-dialog-compliment__pay column","data-testid":"element_004964"},zt={class:"dc-dialog-compliment__pay-inner","data-testid":"element_004966"},Kt={class:"dc-dialog-compliment__tips","data-testid":"element_004967"},Jt={class:"dc-dialog-compliment__custom-tip","data-testid":"element_004968"};function Wt(e,n,t,r,p,a){const c=s("Content"),d=s("ComplimentModelBlock"),m=s("Tip"),h=s("ButtonSection");return i(),l("div",Ut,[o("div",jt,[u(c,{title:t.operationInput.title,text:t.operationInput.text},null,8,["title","text"]),o("div",Gt,[u(d,{"model-photo-src":e.photoUrl,message:a.message},null,8,["model-photo-src","message"]),o("div",Yt,[o("div",zt,[o("div",Kt,[(i(!0),l(S,null,P(a.presetList,v=>(i(),g(m,{key:v,tip:v,onClick:Fe=>a.onSend(v)},null,8,["tip","onClick"]))),128))]),o("div",Jt,[R(o("input",{"onUpdate:modelValue":n[0]||(n[0]=v=>e.customTip=v),placeholder:"Or Custom Tip","data-testid":"element_004972",onKeyup:n[1]||(n[1]=j(v=>a.onSend(e.customTip),["enter"])),onInput:n[2]||(n[2]=(...v)=>a.onTipInput&&a.onTipInput(...v))},null,544),[[U,e.customTip]]),o("button",{class:"dc-dialog-compliment__custom-button","data-testid":"elem_v_000166",onClick:n[3]||(n[3]=v=>a.onSend(e.customTip))},[...n[5]||(n[5]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","data-testid":"elem_v_000569"},[o("g",{id:"Arrow / arrow-subdirectory-forward"},[o("path",{id:"Icon",d:"M11.666 9.16634L14.9994 12.4997M14.9994 12.4997L11.666 15.833M14.9994 12.4997H6.16602C5.06145 12.4997 4.16602 11.6061 4.16602 10.5015C4.16602 8.0331 4.16603 4.06832 4.16603 3.33301",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)])])])])])])]),t.operationInput.button?(i(),g(h,{key:0,caption:t.operationInput.button.caption,"hint-text":t.operationInput.button.hintText,disabled:e.customTip<=0,onClick:n[4]||(n[4]=v=>a.onSend(+e.customTip))},null,8,["caption","hint-text","disabled"])):y("",!0)])}const N=_(Rt,[["render",Wt],["__scopeId","data-v-a4f8ee6d"]]),Qt={name:"SpyTariff",components:{Content:k,ButtonSection:I,SecondText:F},props:{operationInput:{type:Object,default:()=>({})},finishOperation:{type:Function,required:!0},cancelOperation:{type:Function,required:!0}},computed:{...x({settings:"dreamcam/room/settings",balance:"dreamcam/camgirlsAuth/balance"})},methods:{...B({requestSpy:"dreamcam/room/requestSpy",fetchBalance:"dreamcam/camgirlsAuth/fetch
1Balance"}),async onSpy(){try{if(await this.finishOperation(),!await this.fetchBalance())return await C({name:"Notification",title:"Failed to update your balance!",type:"failure"});if(this.settings.spyShowTariff>this.balance){await C({name:"BalanceNotEnough",title:"Oops, not enough tokens!",text:"Sorry, you don`t have enough tokens 😔",button:{caption:"Get Tokens"}});return}this.requestSpy()}catch{}}}},Xt={class:"dc-dialog-spy column","data-testid":"element_004999"},te={class:"dc-dialog-spy__btn-section column","data-testid":"element_005000"},ee={class:"dc-dialog-spy__btn-hint column","data-testid":"element_005001"},ne={"data-testid":"element_005002"},oe={"data-testid":"element_005003"};function ie(e,n,t,r,p,a){const c=s("Content"),d=s("SecondText"),m=s("ButtonSection");return i(),l("div",Xt,[u(c,{title:t.operationInput.title,text:t.operationInput.text},null,8,["title","text"]),o("div",te,[o("div",ee,[o("div",ne,[n[0]||(n[0]=b(" Just for ",-1)),o("span",oe,f(e.settings.spyShowTariff)+" tokens/min",1)]),u(d,null,{default:T(()=>[...n[1]||(n[1]=[b("You can end spying at any time.",-1)])]),_:1})]),t.operationInput.button?(i(),g(m,{key:0,caption:t.operationInput.button.caption,"hint-text":t.operationInput.button.hintText,onClick:a.onSpy},null,8,["caption","hint-text","onClick"])):y("",!0)]),u(d,null,{default:T(()=>[b(f(t.operationInput.caption),1)]),_:1})])}const A=_(Qt,[["render",ie],["__scopeId","data-v-c6d10fc3"]]),ae={emits:["selected"],components:{OutputTokens:H},props:{type:{type:String,default:null},icon:{type:String,default:null},title:{type:String,default:null},options:{type:Array,default:()=>[]},cost:{type:Number,default:0},minTime:{type:Number,default:0},isSelected:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1}},computed:{btnCaption:e=>
1e.isActive?"Pay and Start":"Invite"}},se={class:"tariff column","data-testid":"element_005006"},ce={class:"tariff__info column","data-testid":"element_005007"},le={key:0,class:"tariff__icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","data-testid":"elem_v_002241"},de={key:1,class:"tariff__icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","data-testid":"elem_v_002240"},re={class:"tariff__title","data-testid":"element_005008"},ue={class:"tariff__options column","data-testid":"element_005009"},pe={class:"tariff__footer column","data-testid":"element_005011"},me={class:"tariff__price column","data-testid":"element_005012"},_e={class:"tariff__price-per","data-testid":"element_005013"},fe={class:"tariff__price-hint","data-testid":"element_005015"},he={"data-testid":"elem_v_001656"};function ye(e,n,t,r,p,a){const c=s("OutputTokens"),d=s("app-link");return i(),l("div",se,[o("div",ce,[t.icon==="dreamcam_crown"?(i(),l("svg",le,[...n[1]||(n[1]=[o("g",{"clip-path":"url(#clip0_833_90522)"},[o("path",{d:"M18.0073 11.3016L18.1983 9.27226C18.3483 7.67841 18.4233 6.88148 18.1507 6.55205C18.0032 6.37385 17.8026 6.26466 17.5882 6.24583C17.1918 6.21101 16.6939 6.77774 15.6983 7.91122C15.1834 8.4974 14.9259 8.79049 14.6387 8.83588C14.4796 8.86103 14.3174 8.83518 14.1705 8.76123C13.9052 8.62776 13.7284 8.26542 13.3748 7.54075L11.5107 3.72104C10.8425 2.35167 10.5083 1.66699 9.99984 1.66699C9.49134 1.66699 9.15721 2.35168 8.48895 3.72104L6.6249 7.54076C6.27125 8.26543 6.09443 8.62776 5.82922 8.76123C5.68227 8.83518 5.52012 8.86103 5.36098 8.83588C5.07377 8.79049 4.81631 8.4974 4.3014 7.91122C3.30574 6.77774 2.80791 6.21101 2.41149 6.24583C2.19705 6.26466 1.99649 6.37385 1.84899 6.55205C1.57633 6.88148 1.65134 7.67841 1.80134 9.27226L1.99234 11.3016C2.30705 14.6455 2.4644 16.3174 3.44992 17.3255C4.43543 18.3337 5.91248 18.3337 8.86657 18.3337H11.1331C14.0872 18.3337 15.5642 18.3337 16.5498 17.3255C17.5353 16.3174 17.6926 14.6455 18.0073 11.3016Z",stroke:"currentColor","stroke-width":"1.5"})],-1),o("defs",null,[o("clipPath",{id:"clip0_833_90522"},[o("rect",{width:"20",height:"20",fill:"white"})])],-1)])])):(i(),l("svg",de,[...n[2]||(n[2]=[o("path",{d:"M14.1668 5.83366C14.1668 3.07224 12.5105 1.66699 10.0002 1.66699C7.48978 1.66699 5.8335 3.07224 5.8335 5.83366",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),o("path",{d:"M10 10V12.0833",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),o("path",{d:"M7.7213 17.1791L8.17632 16.5829L7.7213 17.1791ZM10 7.44186L9.46812 7.97064C9.6089 8.11224 9.80033 8.19186 10 8.19186C10.1997 8.19186 10.3911 8.11224 10.5319 7.97064L10 7.44186ZM12.2787 17.1791L12.7337 17.7753L12.2787 17.1791ZM8.17632 16.5829C7.02789 15.7065 5.80653 14.8745 4.83582 13.8163C3.89088 12.7862 3.25 11.6057 3.25 10.0823H1.75C1.75 12.09 2.6164 13.6158 3.73043 14.8303C4.81869 16.0166 6.20797 16.9676 7.26628 17.7753L8.17632 16.5829ZM3.25 10.0823C3.25 8.61105 4.10859 7.37271 5.28793 6.8508C6.42605 6.34714 7.9749 6.46866 9.46812 7.97064L10.5319 6.91308C8.65022 5.02039 6.44907 4.69663 4.68091 5.47912C2.95397 6.24336 1.75 8.02259 1.75 10.0823H3.25ZM7.26628 17.7753C7.64886 18.0673 8.0713 18.388 8.50211 18.6317C8.93324 18.8756 9.44064 19.083 10 19.083V17.583C9.80936 17.583 9.56676 17.5106 9.24071 17.3262C8.91435 17.1415 8.57244 16.8853 8.17632 16.5829L7.26628 17.7753ZM12.7337 17.7753C13.792 16.9676 15.1813 16.0166 16.2696 14.8303C17.3836 13.6158 18.25 12.09 18.25 10.0823H16.75C16.75 11.6057 16.1091 12.7862 15.1642 13.8163C14.1935 14.8745 12.9721 15.7065 11.8237 16.5829L12.7337 17.7753ZM18.25 10.0823C18.25 8.02259 17.046 6.24336 15.3191 5.47912C13.5509 4.69663 11.3498 5.02039 9.46812 6.91308L10.5319 7.97064C12.0251 6.46866 13.5739 6.34714 14.7121 6.8508C15.8914 7.37271 16.75 8.61105 16.75 10.0823H18.25ZM11.8237 16.5829C11.4276 16.8853 11.0857 17.1415 10.7593 17.3262C10.4332 17.5106 10.1906 17.583 10 17.583V19.083C10.5594 19.083 11.0668 18.8756 11.4979 18.6317C11.9287 18.388 12.3511 18.0673 12.7337 17.7753L11.8237 16.5829Z",fill:"currentColor"}
1,null,-1)])])),o("div",re,f(t.title),1),o("ul",ue,[(i(!0),l(S,null,P(t.options,(m,h)=>(i(),l("li",{key:`opt-${h}`,"data-testid":"element_005010"},f(m),1))),128))])]),o("div",pe,[o("div",me,[o("div",_e,[u(c,{tokens:t.cost,bold:""},null,8,["tokens"]),n[3]||(n[3]=o("span",{"data-testid":"element_005014"},"/min",-1))]),o("div",fe,[n[4]||(n[4]=o("span",{"data-testid":"elem_v_001655"},"Min time: ",-1)),o("span",he,f(t.minTime)+" min",1)])]),u(d,{class:"tariff__btn-invite",transparent:!t.isSelected&&!t.isActive,button:"",onClick:n[0]||(n[0]=m=>e.$emit("selected",t.type))},{default:T(()=>[b(f(a.btnCaption),1)]),_:1},8,["transparent"])])])}const ge=_(ae,[["render",ye],["__scopeId","data-v-e10d3bd1"]]),$="start-private",O="start-voice-private",ve={name:"PrivateShow",components:{Content:k,SecondText:F,Tariff:ge},props:{operationInput:{type:Object,default:()=>({})},finishOperation:{type:Function,required:!0},cancelOperation:{type:Function,required:!0}},data:()=>({selectedTariffType:null,tariffs:[]}),computed:{...x({model:"dreamcam/room/model",settings:"dreamcam/room/settings",balance:"dreamcam/camgirlsAuth/balance"}),selectedTariff:e=>e.tariffs.find(n=>n.type===e.selectedTariffType)},watch:{settings:{handler(){this.tariffs=[{type:O,title:"Full Immersion",icon:"dreamcam_crown",options:["Voice chat","Text chat","Tip menu","No Spies"],cost:this.settings.voicePrivateShowTariff,minTime:this.settings.voicePrivateShowMinDuration,isSelected:!0},{type:$,title:"Classic",icon:"dreamcam_heart",options:["Text chat","Tip menu"],cost:this.settings.privateShowTariff,minTime:this.settings.privateShowMinDuration,isSelected:!1}]},deep:!0}},created(){this.tariffs=[{type:O,title:"Full Immersion",icon:"dreamcam_crown",options:["Voice chat","Text chat","Tip menu","No Spies"],cost:this.settings.voicePrivateShowTariff,minTime:this.settings.voicePrivateShowMinDuration,isSelected:!0},{type:$,title:"Classic",icon:"dreamcam_heart",options:["Text chat","Tip menu"],cost:this.settings.privateShowTariff,minTime:this.settings.privateShowMinDuration,isSelected:!1}],this.operationInput.type==="voiceDisabled"&&(this.selectedTariffType=$)},beforeUnmount(){this.selectedTariffType=null},methods:{...B({requestPrivate:"dreamcam/room/requestPrivate",fetchBalance:"dreamcam/camgirlsAuth/fetchBalance"}),onActiveTariff(e){if(e){if(!this.selectedTariffType){this.selectedTariffType=e;return}this.startPrivate(e===O)}},async startPrivate(e=!1){try{const n=await this.fetchBalance();if(await this.finishOperation(),!n)return await C({name:"Notification",title:"Failed to update your balance!",type:"failure"});if(this.selectedTariff.cost*this.selectedTariff.minTime>this.balance)return await C({name:"BalanceNotEnough",title:"Oops, not enough tokens!",text:"Sorry, you don`t have enough tokens 😔",button:{caption:"Get Tokens"}});if(!await this.requestPrivate(e))return;await C({name:"Simple",title:`Private Show with ${this.model.nickname}`,text:`Your request for private chat has been sent successfully. When ${this.model.nickname} accepts it your private show will begin.`,button:{caption:"Ok",hintText:"We won't charge you until the private show begins.",handler:({finishOperation:r})=>r(!0)}})}catch{}}}},Ce={class:"dc-dialog-private column","data-testid":"element_005016"},be={class:"dc-dialog-private__wrapper column","data-testid":"element_005017"};function Te(e,n,t,r,p,a){const c=s("Content"),d=s("Tariff"),m=s("SecondText");return i(),l("div",Ce,[u(c,{title:t.operationInput.title,text:t.operationInput.text},null,8,["title","text"]),o("div",be,[o("div",{class:w([e.selectedTariffType&&"is-single","tariffs"]),"data-testid":"element_005018"},[(i(!0),l(S,null,P(e.tariffs,h=>(i(),l(S,{key:h.type},[!e.selectedTariffType||e.selectedTariffType===h.type?(i(),l("div",{key:0,class:w([{"is-selected":h.isSelected,"is-active":e.selectedTariffType===h.type},"tariff-card"]),"data-testid":"element_005019"},[u(d,G({ref_for:!0},{...h,isActive:e.selectedTariffType===h.type},{onSelected:a.onActiveTariff}),null,16,["onSelected"])],2)):y("",!0)],64))),128))],2),u(m,{gray:""},{default:T(()=>[...n[0]||(n[0]=[b(" You will be automatically charged by minute after the initial show period exceeds. You may end the private chat at any time. ",-1)])]),_:1})])])}
1const V=_(ve,[["render",Te],["__scopeId","data-v-c5c1df49"]]),ke={name:"ChoicePaymentSystem",components:{Content:k,ButtonSection:I,PullDown:J},props:{operationInput:{type:Object,default:()=>({})},finishOperation:{type:Function,required:!0},cancelOperation:{type:Function,required:!0}},data:()=>({selectedPaymentSystem:null}),created(){this.selectedPaymentSystem=this.operationInput.pullDown.selected},methods:{async calcHeight(){await this.$nextTick();const e=this.$refs.container,t=this.$refs.pullDown?.$el?.childNodes;if(!t||!t.length||!e)return;const{height:r,bottom:p}=e.getBoundingClientRect(),{bottom:a}=t[2]?.offsetHeight?t[2].getBoundingClientRect():{bottom:0},c=a-p;e.style.height=c>0?`${r+c}px`:"auto"}}},we={ref:"container",class:"dc-dialog-payment-systems","data-testid":"element_004954"};function Ie(e,n,t,r,p,a){const c=s("Content"),d=s("PullDown"),m=s("ButtonSection");return i(),l("div",we,[u(c,{title:t.operationInput.title,text:t.operationInput.text},null,8,["title","text"]),u(d,{ref:"pullDown","input-data":e.selectedPaymentSystem,"onUpdate:inputData":[n[0]||(n[0]=h=>e.selectedPaymentSystem=h),n[1]||(n[1]=h=>e.selectedPaymentSystem=h)],options:t.operationInput.pullDown.options,label:t.operationInput.pullDown.label,onIsOpen:a.calcHeight},null,8,["input-data","options","label","onIsOpen"]),t.operationInput.button?(i(),g(m,{key:0,caption:t.operationInput.button.caption,"hint-text":t.operationInput.button.hintText,green:"",onClick:n[2]||(n[2]=h=>t.operationInput.button.handler({selectedPaymentSystem:e.selectedPaymentSystem,finishOperation:t.finishOperation}))},null,8,["caption","hint-text"])):y("",!0)],512)}const E=_(ke,[["render",Ie],["__scopeId","data-v-c7130449"]]),Se={[M.name]:M,[D.name]:D,[L.name]:L,[q.name]:q,[N.name]:N,[A.name]:A,[V.name]:V,[E.name]:E},xe={components:{PopupLayout:W},props:{operationInput:{type:Object,default:()=>({})},finishOperation:{type:Function,required:!0},cancelOperation:{type:Function,required:!0}},computed:{dialogs:()=>Se}},$e={class:"dc-dialog__container","data-testid":"element_004949"},Oe={class:"dc-dialog__header","data-testid":"element_004950"},Be={class:"dc-dialog__content","data-testid":"element_004953"};function Pe(e,n,t,r,p,a){const c=s("app-icon"),d=s("PopupLayout");return i(),g(d,{class:"dc-dialog",onOutsideClick:n[1]||(n[1]=m=>t.finishOperation(!1))},{default:T(()=>[o("div",$e,[o("div",Oe,[o("button",{class:"dc-dialog__close","data-testid":"element_004951",onClick:n[0]||(n[0]=m=>t.finishOperation(!1))},[u(c,{"svg-name":"redesign_close","test-id":"element_004952"})])]),o("div",Be,[(i(),g(Y(a.dialogs[t.operationInput.name]),z(K(e.$props)),null,16))])])]),_:1})}const Ne=_(xe,[["render",Pe],["__scopeId","data-v-1a5f3a5c"]]);export{Ne as default};

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