(self.webpackChunkhybrid_client=self.webpackChunkhybrid_client||[]).push([[7],{"./src/components/AdComponent.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var o=n("webpack/sharing/consume/default/react/react"),r=n("./src/utils/log.js"),i=n("./src/utils/withStores.tsx"),s=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),a=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),l=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),c=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),u=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),d=n("./src/lib/Dispatcher.js"),p=n("./src/utils/FluxStoreExtended.ts"),m=n("./src/constants/Actions.js");function h(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,u.A)(e);if(t){var r=(0,u.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,c.A)(this,n)}}var A={stno:"",afno:""};const f=new(function(e){(0,l.A)(n,e);var t=h(n);function n(){return(0,s.A)(this,n),t.apply(this,arguments)}return(0,a.A)(n,[{key:"getState",value:function(){return A}},{key:"handleLoadConfig",value:function(e){var t=e.stno,n=e.afno;A.stno=t,A.afno=n}},{key:"__onDispatch",value:function(e){var t=e.type,n=e.data;switch(t){case m.A.LOAD_CONFIG:this.handleLoadConfig(n);break;default:return}this.__emitChange()}}]),n}(p.A))("ad",d.A);var g=n("./src/stores/OverlayStore.js"),y=n("./src/stores/RoomStore.ts"),v=n("./node_modules/lscache/lscache.js"),b=n.n(v);b().setBucket("hybridclient");const _=(0,i.A)([f,y.A,g.A],(function(e){return{stno:e.ad.stno,afno:e.ad.afno,roomStatus:e.room.status,overlay:e.overlay.overlay}}))((function(e){var t=e.stno,n=e.afno,i=e.roomStatus,s=e.overlay;return(0,o.useEffect)((function(){i===y.V.status&&s===g.k.overlay||(t||n)&&b().get("stno")!==t&&b().get("afno")!==n&&(t&&b().set("stno",t,60),n&&b().set("afno",n,60),r.A.loms({eventname:"UserArrivedThroughAdV1",stno:t,afno:n,roomStatus:s?s.toLowerCase():i}))}),[i,s]),null}))},"./src/components/FederatedModule.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var o,r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),i=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),l=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),c=n("./node_modules/@babel/runtime/regenerator/index.js"),u=n.n(c),d=n("webpack/sharing/consume/default/react/react"),p=n.n(d),m=n("./src/utils/log.js"),h=n("./src/utils/withErrorBoundary.tsx"),A=n("./src/utils/withStores.tsx"),f=n("./src/stores/ConfigStore.ts"),g=["scope","module","fallback","error","federatedModules","fallbackMappings"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t0&&!o.shouldCancel()){var s=n.shift(),a=b(t,s);o.onFallback(),_(a,n,o).then(e,r)}else r()},document.head.appendChild(i)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(e){e[e.Loading=0]="Loading",e[e.Error=1]="Error",e[e.Ready=2]="Ready"}(o||(o={}));"undefined"==typeof __federated_module_load_urls__&&(globalThis.__federated_module_load_urls__={});var S=function(e,t,n){var r=(0,d.useState)(o.Loading),i=(0,a.A)(r,2),l=i[0],c=i[1];return(0,d.useEffect)((function(){if(!window[e]){var r=t?function(e,t){var n,o=new URL(t),r=new URL("".concat(o.protocol,"//").concat(o.host));o.port&&(r.port=o.port);var i=r.toString(),s=e.find((function(e){return new URL(e.primary).toString()===i}));return null!==(n=null==s?void 0:s.fallbacks)&&void 0!==n?n:[]}(n,t):[];c(o.Loading);var i=!1;return _(t,(0,s.A)(r),{shouldCancel:function(){return i},onError:function(){m.A.statsIncCounter("federated_module.".concat(e,".error"))},onFallback:function(){m.A.statsIncCounter("federated_module.".concat(e,".fallback"))}}).then((function(t){var n=t.loadedUrl;__federated_module_load_urls__[e]=n,m.A.statsIncCounter("federated_module.".concat(e,".onload")),a(o.Ready)}),(function(){a(o.Error)})),function(){i=!0}}function a(e){i||c(e)}c(o.Ready)}),[e,t]),l};const C=(0,A.A)([f.A],(function(e){var t=e.config;return{federatedModules:t.federatedModules,fallbackMappings:t.fallbackMappings}}))((function(e){var t=e.scope,r=e.module,s=e.fallback,c=e.error,m=e.federatedModules,A=e.fallbackMappings,f=(0,i.A)(e,g);if(!m)return null;var y=m[t];"string"==typeof localStorage[t]&&(y=localStorage[t]);var b=S(t,y,null!=A?A:[]),_=(0,d.useState)(null),E=(0,a.A)(_,2),C=E[0],T=E[1],O=__federated_module_load_urls__[t],I=null==O?void 0:O.split("/").slice(0,-1).join("/");switch(b){case o.Loading:return p().createElement(d.Fragment,null,s);case o.Error:return p().createElement(d.Fragment,null,c);case o.Ready:return null===C&&T((0,d.lazy)(function(e,t){return(0,l.A)(u().mark((function o(){var r,i,s;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n.I("default");case 2:return r=window[e],o.next=5,r.init(n.S.default);case 5:return o.next=7,r.get(t);case 7:return i=o.sent,s=i(),o.abrupt("return",s);case 10:case"end":return o.stop()}}),o)})))}(t,r))),p().createElement(d.Suspense,{fallback:null!=s?s:null},p().createElement(h.t,{name:t,fallback:c},null!==C&&p().createElement(C,v(v({},f),{},{baseUrl:I}))));default:return null}}))},"./src/components/ReportComplaintButton.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("webpack/sharing/consume/default/react/react"),i=n.n(r),s=n("./node_modules/redux/es/redux.js"),a=n("./node_modules/theming/dist/theming.esm.js"),l=n("./node_modules/prop-types/index.js"),c=n.n(l),u=n("./src/stores/UserStore.js"),d=n("./src/stores/ConfigStore.ts"),p=n("./src/stores/PerformerStore.ts"),m=n("./src/constants/Messages.js"),h=n("./src/constants/ComplaintConstants.ts"),A=n("./src/utils/withTranslations.tsx"),f=n("./src/utils/tools.ts"),g=n("./src/utils/withStores.tsx"),y=n("./src/utils/complaint.ts"),v=n("./src/constants/Feature.ts"),b=n("./src/constants/Platforms.ts"),_=n("./src/components/FederatedModule.tsx"),E=n("./src/lib/Strings.js"),S=n("./src/lib/AjaxRequest.js");function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t{"use strict";n.d(t,{f:()=>r});var o=n("webpack/sharing/consume/default/react/react"),r={newbie:o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64.17 74.09"},o.createElement("g",{fill:"none",stroke:"#9e9e9e"},o.createElement("path",{d:"M31.65.83l.43-.25.44.25"}),o.createElement("path",{d:"M34.27 1.84l28.1 16.22",strokeDasharray:"1.01 2.03"}),o.createElement("path",{d:"M63.23 18.56l.44.25v.5"}),o.createElement("path",{d:"M63.67 21.34v32.43",strokeDasharray:"1.01 2.03"}),o.createElement("path",{d:"M63.67 54.78v.5l-.44.25"}),o.createElement("path",{d:"M61.48 56.54L33.4 72.76",strokeDasharray:"1.01 2.03"}),o.createElement("path",{d:"M32.52 73.27l-.44.25-.43-.25"}),o.createElement("path",{d:"M29.9 72.25L1.8 56.04",strokeDasharray:"1.01 2.03"}),o.createElement("path",{d:"M.93 55.53l-.43-.25v-.5"}),o.createElement("path",{d:"M.5 52.75V20.33",strokeDasharray:"1.01 2.03"}),o.createElement("path",{d:"M.5 19.3v-.5l.43-.25"}),o.createElement("path",{d:"M2.7 17.55L30.77 1.33",strokeDasharray:"1.01 2.03"}),o.createElement("path",{d:"M31.65 8.37l.43-.25.44.25"}),o.createElement("path",{d:"M34.18 9.34l21.68 12.5",strokeDasharray:"0.96 1.93"}),o.createElement("path",{d:"M56.7 22.33l.43.25v.5"}),o.createElement("path",{d:"M57.13 25v25.04",strokeDasharray:"0.96 1.93"}),o.createElement("path",{d:"M57.13 51v.5l-.43.25"}),o.createElement("path",{d:"M55.03 52.72L33.35 65.24",strokeDasharray:"0.96 1.93"}),o.createElement("path",{d:"M32.52 65.72l-.44.25-.43-.25"}),o.createElement("path",{d:"M29.98 64.76L8.3 52.24",strokeDasharray:"0.96 1.93"}),o.createElement("path",{d:"M7.47 51.76l-.43-.25V51"}),o.createElement("path",{d:"M7.03 49.08V24.05",strokeDasharray:"0.96 1.93"}),o.createElement("path",{d:"M7.04 23.08v-.5l.43-.25"}),o.createElement("path",{d:"M9.14 21.37L30.82 8.85",strokeDasharray:"0.96 1.93"}))),bronze:o.createElement("svg",{width:"16px",height:"18px",viewBox:"0 0 16 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o.createElement("defs",null,o.createElement("linearGradient",{x1:"72.3413273%",y1:"25.2080856%",x2:"38.5913462%",y2:"59.7093407%",id:"linearGradient-1"},o.createElement("stop",{stopColor:"#A98858",offset:"0%"}),o.createElement("stop",{stopColor:"#DFC777",offset:"71%"}),o.createElement("stop",{stopColor:"#C09F4B",offset:"100%"}))),o.createElement("g",{id:"Icon_Reward_Bronze",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{id:"Bronze",transform:"translate(1.000000, 1.000000)"},o.createElement("polygon",{id:"Path",stroke:"#A57B00",fill:"url(#linearGradient-1)",fillRule:"nonzero",strokeLinejoin:"round",points:"13.9045455 12.0421212 6.95333333 16.0554545 0 12.0421212 0 4.01333333 6.95333333 0 13.9045455 4.01333333"}),o.createElement("g",{id:"Group",transform:"translate(1.060606, 1.272727)",stroke:"#A37E02",strokeLinecap:"square"},o.createElement("polyline",{id:"Path",points:"5.70606061 0.286363636 5.88848485 0.18030303 6.0730303 0.286363636"}),o.createElement("line",{x1:"6.43151515",y1:"0.487878788",x2:"11.2254545",y2:"3.25606061",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"11.4036364 3.36 11.5860606 3.46606061 11.5860606 3.67818182"}),o.createElement("line",{x1:"11.5860606",y1:"4.08969697",x2:"11.5860606",y2:"9.62606061",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"11.5860606 9.82969697 11.5860606 10.0418182 11.4036364 10.1478788"}),o.createElement("line",{x1:"11.0472727",y1:"10.3515152",x2:"6.25333333",y2:"13.119697",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"6.07515152 13.2236364 5.89060606 13.329697 5.70818182 13.2236364"}),o.createElement("line",{x1:"5.35181818",y1:"13.02",x2:"0.557878788",y2:"10.2518182",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"0.381818182 10.1478788 0.199393939 10.0418182 0.199393939 9.82969697"}),o.createElement("line",{x1:"0.197272727",y1:"9.41818182",x2:"0.197272727",y2:"3.88181818",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"0.197272727 3.67818182 0.197272727 3.46606061 0.37969697 3.36"}),o.createElement("line",{x1:"0.736060606",y1:"3.15636364",x2:"5.53",y2:"0.388181818",id:"Path",strokeDasharray:"1.93"}))))),silver:o.createElement("svg",{width:"16px",height:"18px",viewBox:"0 0 16 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o.createElement("defs",null,o.createElement("linearGradient",{x1:"72.3413273%",y1:"25.2080856%",x2:"38.5913462%",y2:"59.7093407%",id:"linearGradient-1"},o.createElement("stop",{stopColor:"#838383",offset:"0%"}),o.createElement("stop",{stopColor:"#CFCECE",offset:"71%"}),o.createElement("stop",{stopColor:"#9B9B9B",offset:"100%"}))),o.createElement("g",{id:"Icon_Reward_Silver",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{id:"Silver",transform:"translate(1.000000, 1.000000)"},o.createElement("polygon",{id:"Path",stroke:"#858484",fill:"url(#linearGradient-1)",fillRule:"nonzero",strokeLinejoin:"round",points:"13.9045455 12.0421212 6.95333333 16.0554545 0 12.0421212 0 4.01333333 6.95333333 0 13.9045455 4.01333333"}),o.createElement("g",{id:"Group",transform:"translate(1.060606, 1.272727)",stroke:"#787777",strokeLinecap:"square"},o.createElement("polyline",{id:"Path",points:"5.70606061 0.286363636 5.88848485 0.18030303 6.0730303 0.286363636"}),o.createElement("line",{x1:"6.43151515",y1:"0.487878788",x2:"11.2254545",y2:"3.25606061",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"11.4036364 3.36 11.5860606 3.46606061 11.5860606 3.67818182"}),o.createElement("line",{x1:"11.5860606",y1:"4.08969697",x2:"11.5860606",y2:"9.62606061",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"11.5860606 9.82969697 11.5860606 10.0418182 11.4036364 10.1478788"}),o.createElement("line",{x1:"11.0472727",y1:"10.3515152",x2:"6.25333333",y2:"13.119697",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"6.07515152 13.2236364 5.89060606 13.329697 5.70818182 13.2236364"}),o.createElement("line",{x1:"5.35181818",y1:"13.02",x2:"0.557878788",y2:"10.2518182",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"0.381818182 10.1478788 0.199393939 10.0418182 0.199393939 9.82969697"}),o.createElement("line",{x1:"0.197272727",y1:"9.41818182",x2:"0.197272727",y2:"3.88181818",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"0.197272727 3.67818182 0.197272727 3.46606061 0.37969697 3.36"}),o.createElement("line",{x1:"0.736060606",y1:"3.15636364",x2:"5.53",y2:"0.388181818",id:"Path",strokeDasharray:"1.93"}))))),gold:o.createElement("svg",{width:"16px",height:"18px",viewBox:"0 0 16 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o.createElement("defs",null,o.createElement("linearGradient",{x1:"72.3413273%",y1:"25.2080856%",x2:"38.5913462%",y2:"59.7093407%",id:"linearGradient-1"},o.createElement("stop",{stopColor:"#E4B200",offset:"0%"}),o.createElement("stop",{stopColor:"#FFF895",offset:"71%"}),o.createElement("stop",{stopColor:"#E3BB00",offset:"100%"}))),o.createElement("g",{id:"Icon_Reward_Gold",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{id:"Gold",transform:"translate(1.000000, 1.000000)"},o.createElement("polygon",{id:"Path",stroke:"#CDAE00",fill:"url(#linearGradient-1)",fillRule:"nonzero",strokeLinejoin:"round",points:"13.9045455 12.0421212 6.95333333 16.0554545 0 12.0421212 0 4.01333333 6.95333333 0 13.9045455 4.01333333"}),o.createElement("g",{id:"Group",transform:"translate(1.060606, 1.272727)",stroke:"#CEAB05",strokeLinecap:"square"},o.createElement("polyline",{id:"Path",points:"5.70606061 0.286363636 5.88848485 0.18030303 6.0730303 0.286363636"}),o.createElement("line",{x1:"6.43151515",y1:"0.487878788",x2:"11.2254545",y2:"3.25606061",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"11.4036364 3.36 11.5860606 3.46606061 11.5860606 3.67818182"}),o.createElement("line",{x1:"11.5860606",y1:"4.08969697",x2:"11.5860606",y2:"9.62606061",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"11.5860606 9.82969697 11.5860606 10.0418182 11.4036364 10.1478788"}),o.createElement("line",{x1:"11.0472727",y1:"10.3515152",x2:"6.25333333",y2:"13.119697",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"6.07515152 13.2236364 5.89060606 13.329697 5.70818182 13.2236364"}),o.createElement("line",{x1:"5.35181818",y1:"13.02",x2:"0.557878788",y2:"10.2518182",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"0.381818182 10.1478788 0.199393939 10.0418182 0.199393939 9.82969697"}),o.createElement("line",{x1:"0.197272727",y1:"9.41818182",x2:"0.197272727",y2:"3.88181818",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"0.197272727 3.67818182 0.197272727 3.46606061 0.37969697 3.36"}),o.createElement("line",{x1:"0.736060606",y1:"3.15636364",x2:"5.53",y2:"0.388181818",id:"Path",strokeDasharray:"1.93"}))))),platinum:o.createElement("svg",{width:"16px",height:"18px",viewBox:"0 0 16 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o.createElement("defs",null,o.createElement("linearGradient",{x1:"72.3413273%",y1:"25.2080856%",x2:"38.5913462%",y2:"59.7093407%",id:"linearGradient-1"},o.createElement("stop",{stopColor:"#C5C5C5",offset:"0%"}),o.createElement("stop",{stopColor:"#FFFFFF",offset:"71%"}),o.createElement("stop",{stopColor:"#E3E2E2",offset:"100%"}))),o.createElement("g",{id:"Icon_Reward_Platinum",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{id:"Platinum",transform:"translate(1.000000, 1.000000)"},o.createElement("polygon",{id:"Path",stroke:"#CACACA",fill:"url(#linearGradient-1)",fillRule:"nonzero",strokeLinejoin:"round",points:"13.9045455 12.0421212 6.95333333 16.0554545 0 12.0421212 0 4.01333333 6.95333333 0 13.9045455 4.01333333"}),o.createElement("g",{id:"Group",transform:"translate(1.060606, 1.272727)",stroke:"#F4F4F4",strokeLinecap:"square"},o.createElement("polyline",{id:"Path",points:"5.70606061 0.286363636 5.88848485 0.18030303 6.0730303 0.286363636"}),o.createElement("line",{x1:"6.43151515",y1:"0.487878788",x2:"11.2254545",y2:"3.25606061",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"11.4036364 3.36 11.5860606 3.46606061 11.5860606 3.67818182"}),o.createElement("line",{x1:"11.5860606",y1:"4.08969697",x2:"11.5860606",y2:"9.62606061",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"11.5860606 9.82969697 11.5860606 10.0418182 11.4036364 10.1478788"}),o.createElement("line",{x1:"11.0472727",y1:"10.3515152",x2:"6.25333333",y2:"13.119697",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"6.07515152 13.2236364 5.89060606 13.329697 5.70818182 13.2236364"}),o.createElement("line",{x1:"5.35181818",y1:"13.02",x2:"0.557878788",y2:"10.2518182",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"0.381818182 10.1478788 0.199393939 10.0418182 0.199393939 9.82969697"}),o.createElement("line",{x1:"0.197272727",y1:"9.41818182",x2:"0.197272727",y2:"3.88181818",id:"Path",strokeDasharray:"1.93"}),o.createElement("polyline",{id:"Path",points:"0.197272727 3.67818182 0.197272727 3.46606061 0.37969697 3.36"}),o.createElement("line",{x1:"0.736060606",y1:"3.15636364",x2:"5.53",y2:"0.388181818",id:"Path",strokeDasharray:"1.93"})))))}},"./src/components/ThemeProvider.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var o=n("webpack/sharing/consume/default/react/react"),r=n.n(o),i=n("./node_modules/prop-types/index.js"),s=n.n(i),a=n("./node_modules/@atg/icf-react-components/components/ThemeProvider.js"),l=n("./node_modules/@atg/icf-react-components/themes/Theme.js"),c=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),d=n("./node_modules/theming/dist/theming.esm.js"),p=n("./node_modules/styled-components/dist/styled-components.browser.esm.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t{"use strict";n.d(t,{A:()=>f});var o=n("webpack/sharing/consume/default/react/react"),r=n.n(o),i=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=n("./node_modules/redux/es/redux.js"),a=n("./node_modules/@atg/icf-react-components/themes/Theme.js"),l=n("./src/utils/localization.js"),c=n("./src/utils/FlagsMap.tsx"),u=n("./src/utils/withTranslations.tsx"),d=n("./src/utils/withStores.tsx"),p=n("./src/stores/LayoutStore.js"),m=i.Ay.div.withConfig({displayName:"CountryAgeTag__Container",componentId:"sc-wurb2c-0"})(["display:inline-block;font-weight:500;color:",";font-size:16px;"],(function(e){return e.theme.colors.baseContrast090})),h=i.Ay.div.withConfig({displayName:"CountryAgeTag__Separator",componentId:"sc-wurb2c-1"})(['margin:0 3px 1px 3px;display:inline-block;&:after{content:"|";color:',";}"],(function(e){var t=e.theme;return t.mode===a.ThemeMode.dark?t.colors.baseContrast050:t.colors.baseContrast060})),A=i.Ay.div.withConfig({displayName:"CountryAgeTag__FlagContainer",componentId:"sc-wurb2c-2"})(["margin:0 3px 1px 3px;display:inline-block;"]);const f=(0,s.Zz)((0,d.A)([p.Ay],(function(e){return{isDesktop:e.layout.isDesktop}})),(0,u.A)())((function(e){var t,n,i=e.t,s=e.bio,a=e.isDesktop,u=e.showLanguages,d=e.age,p=void 0===d?0:d,f=e.country,g=e.className,y=void 0===g?"":g,v=null!==(t=null==s||null===(n=s.About)||void 0===n?void 0:n.Attributes)&&void 0!==t?t:{},b=v.Age,_=v.Country,E=v.Languages,S=f||_,C=(0,l.ZV)(Number(p||b));if(!S||!C)return null;var T=S.toLowerCase(),O=(0,c.a)(T);return r().createElement(m,{className:y},r().createElement(A,null,O&&r().createElement(O,null)),r().createElement("span",null,i("country_name.".concat(T))),r().createElement(h,null),r().createElement("span",null,C),!a&&u&&r().createElement(o.Fragment,null,r().createElement(h,null),r().createElement("span",null,null==E?void 0:E.join(", "))))}))},"./src/components/bio/PremiumInfoContainer.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var o=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),r=n("webpack/sharing/consume/default/react/react"),i=n.n(r),s=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),a=n("./node_modules/prop-types/index.js"),l=n.n(a),c=n("./node_modules/redux/es/redux.js"),u=n("./src/stores/ConnectionStore.js"),d=n("./src/stores/PerformerStore.ts"),p=n("./src/components/bio/Vibes.tsx"),m=n("./src/components/goldmenu/GoldMenuButton.js"),h=n("./src/components/spingold/SpinGoldButton.tsx"),A=n("./src/components/section/InfoContainer.tsx"),f=n("./src/constants/LayoutConstants.ts"),g=n("./src/utils/withStores.tsx"),y=n("./src/utils/goldMenu.ts"),v=n("./src/utils/spinGold.ts"),b=n("./src/utils/withTranslations.tsx"),_=s.Ay.div.withConfig({displayName:"PremiumInfoContainer__ButtonContainer",componentId:"sc-qo57rs-0"})(["display:flex;flex-direction:",";flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;"],(function(e){return e.isCompact?"row":"column"})),E=function(e,t){var n=e.roomTopic,o=e.t,r=e.isCompact;if(!n)return null;var s=t.layout===f.Ay.DESKTOP?A.iT:A.SD;return i().createElement(s,null,i().createElement(A.Kj,{"data-ta-locator":"InfoMyShows"},o("my_shows")),i().createElement(A.Vq,{"data-ta-locator":"InfoTopic"},n),i().createElement(_,{isCompact:r},i().createElement(p.Ay,{isCompact:r}),i().createElement(m.A,{isCompact:r}),i().createElement(h.A,{isCompact:r})))};E.contextTypes={layout:l().string},E.defaultProps={canCompact:!1};const S=(0,c.Zz)((0,g.A)((0,o.A)(new Set([u.A,d.A].concat((0,o.A)(v.R),(0,o.A)(y.w)))),(function(e,t){return{roomTopic:e.connection.roomTopic,isCompact:t.canCompact&&e.performer.vibeShow&&(0,v.Q)().isVisible&&(0,y.z)().visible}})),(0,b.A)())(E)},"./src/components/bio/Vibes.tsx":(e,t,n)=>{"use strict";n.d(t,{Ay:()=>L});var o,r,i=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),s=n("webpack/sharing/consume/default/react/react"),a=n.n(s),l=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),c=n("./node_modules/styled-components-rtl/index.js"),u=n("./node_modules/redux/es/redux.js"),d=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),p=n.n(d),m=n("./node_modules/@atg/icf-react-components/components/Tooltip/index.js"),h=n.n(m),A=n("./node_modules/@atg/icf-react-components/components/FlatButton/index.js"),f=n.n(A),g=n("./src/lib/Dispatcher.js"),y=n("./src/constants/Actions.js"),v=n("./src/constants/Connection.js"),b=n("./src/constants/Overlays.ts"),_=n("./src/utils/withStores.tsx"),E=n("./src/utils/withTranslations.tsx"),S=n("./src/utils/withActions.tsx"),C=n("./src/stores/ModalStore.js"),T=n("./src/stores/ConnectionStore.js"),O=n("./src/stores/PerformerStore.ts"),I=n("./src/stores/OverlayStore.js"),w=(0,l.i7)(["0%{transform:translate(1px,1px) rotate(0deg);}10%{transform:translate(-1px,-2px) rotate(-1deg);}20%{transform:translate(-3px,0px) rotate(1deg);}30%{transform:translate(3px,2px) rotate(0deg);}40%{transform:translate(1px,-1px) rotate(1deg);}50%{transform:translate(-1px,2px) rotate(-1deg);}60%{transform:translate(-3px,1px) rotate(0deg);}70%{transform:translate(3px,1px) rotate(-1deg);}80%{transform:translate(-1px,-1px) rotate(1deg);}90%{transform:translate(1px,2px) rotate(0deg);}100%{transform:translate(1px,-2px) rotate(-1deg);}"]),P=(0,l.Ay)(f()).withConfig({displayName:"Vibes__VibeButton",componentId:"sc-yj38wz-0"})(["width:100%;label{"," color:",";text-transform:uppercase;font-size:16px;}&:hover > div:first-child{animation:"," 0.5s;animation-iteration-count:infinite;}div:first-child{animation:"," 0.5s;animation-iteration-count:3;}"],(0,c.A)(o||(o=(0,i.A)(["\n justify-content: left;\n margin-left: 0px;\n "]))),(function(e){return e.theme.colors.baseContrast080}),w,w),k=(0,l.Ay)(f()).withConfig({displayName:"Vibes__VibeButtonCompact",componentId:"sc-yj38wz-1"})(["display:flex;justify-content:center;width:48px;min-width:48px;&:hover > div:first-child{animation:"," 0.5s;animation-iteration-count:infinite;}div:first-child{animation:"," 0.5s;animation-iteration-count:3;}"],w,w),R=l.Ay.div.withConfig({displayName:"Vibes__VibeIconBackgroundCircle",componentId:"sc-yj38wz-2"})([""," border-radius:100%;width:30px;height:30px;display:flex;justify-content:center;background-color:black;&&{border:solid 2px #424242;}"],(0,c.A)(r||(r=(0,i.A)(["\n margin-left: -8px;\n margin-right: 2px;\n "])))),D=(0,l.Ay)(p()).attrs({name:"graphicEq"}).withConfig({displayName:"Vibes__VibeIcon",componentId:"sc-yj38wz-3"})(["&&{fill:#ec407a;}vertical-align:middle;margin:1px;"]);const L=(0,u.Zz)((0,_.A)([C.A,T.A,O.A,I.A],(function(e){var t=e.modal,n=e.connection,o=e.performer,r=e.overlay,i=n.clientState===v.Ay.PLAYING||n.clientState===v.Ay.PAUSED&&!o.onBreak;return{isVisible:o.vibeShow&&r.overlay===b.A.NONE,isEnabled:i&&!t.goldPending&&!t.goldQueued&&n.started}}),{memoize:!0}),(0,S.A)((function(){return{onClick:function(){g.A.dispatch({type:y.A.GIVE_GOLD_CLICK})}}})),(0,E.A)())((function(e){var t=e.isVisible,n=e.isEnabled,o=e.onClick,r=e.t,i=e.isCompact;if(!t)return null;var s=a().createElement(R,null,a().createElement(D,null));return i?a().createElement(h(),{title:r("vibes_on"),placement:m.TooltipPlacement.RIGHT},a().createElement(k,{"data-ta-locator":"VibeButtonCompact",size:"large",title:r("vibes_description"),onClick:o,disabled:!n,iconLeft:s})):a().createElement(P,{"data-ta-locator":"VibeButton",size:A.FlatButtonSizes.LARGE,title:r("vibes_description"),onClick:o,disabled:!n,label:r("vibes_on"),iconLeft:s})}))},"./src/components/common/CreateAccountButton.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var o=n("webpack/sharing/consume/default/react/react"),r=n.n(o),i=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),s=n.n(i),a=n("./src/lib/Strings.js"),l=n("./src/constants/LomsEvents.js"),c=n("./src/constants/Messages.js"),u=n("./src/constants/Platforms.ts"),d=n("./src/utils/lomsTools.js"),p=n("./src/utils/forPlatforms.tsx"),m=n("./src/utils/tools.ts"),h=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),A=n.n(h),f=n("./node_modules/theming/dist/theming.esm.js");const g=(0,p.A)({exclude:[u.Ay.EXTERNAL_SITE_SHOW]})((function(e){var t,n=e.disabled,o=e.className,i=e.label,u=e.onClick,p=e.locator,h=e.isLoggedIn,g=e.layout,y=void 0===g?"":g,v=(0,f.DP)();return"desktop"===y?t=null!=i?i:a.Ay.getString("sign_up"):h||(t=r().createElement("strong",null,r().createElement(A(),{name:"play",fill:"dark"===v.mode?"baseContrast010":"baseContrast100"}),r().createElement("span",{style:{position:"relative",top:"0.1rem"}},a.Ay.getString("sign_up_mobile")))),r().createElement(s(),{gold:!0,fullWidth:!0,className:o,disabled:n,label:t,onClick:function(e){e.preventDefault(),(0,d.sX)(l.A.CTA_BUTTONS.CREATE_ACCOUNT),(0,m.Zj)(c.A.REQUIRES_AUTH),u&&u()},"data-icf-click":"CreateAccountButton","data-ta-locator":p})}))},"./src/components/common/Popover.tsx":(e,t,n)=>{"use strict";n.d(t,{h:()=>h});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("webpack/sharing/consume/default/react/react"),i=n.n(r),s=n("./node_modules/prop-types/index.js"),a=n.n(s),l=n("./node_modules/@atg/icf-react-components/components/Popover/index.js"),c=n.n(l),u=n("./src/constants/Platforms.ts");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t{"use strict";n.d(t,{A:()=>p});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("webpack/sharing/consume/default/react/react"),s=n.n(i),a=n("./src/components/common/Popover.tsx"),l=["className","disableOpenOnHover","open","onClick","children"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{A:()=>p});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("webpack/sharing/consume/default/react/react"),i=n.n(r),s=n("./node_modules/prop-types/index.js"),a=n.n(s),l=n("./node_modules/@atg/icf-react-components/components/LoadingIndicator/index.js"),c=n.n(l);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var d=function(e){var t,n=function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>A});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("webpack/sharing/consume/default/react/react"),i=n.n(r),s=n("./node_modules/prop-types/index.js"),a=n.n(s),l=n("./node_modules/@atg/icf-react-components/components/Tooltip/index.js"),c=n.n(l),u=n("./src/stores/LayoutStore.js"),d=n("./src/constants/Platforms.ts");function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t{"use strict";n.d(t,{Ay:()=>L,QE:()=>R});var o,r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),d=n("webpack/sharing/consume/default/react/react"),p=n.n(d),m=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),h=n("./node_modules/styled-components-rtl/index.js"),A=n("./src/lib/Dispatcher.js"),f=n("./src/lib/Strings.js"),g=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),y=n.n(g),v=n("./src/components/gold/GoldCop.js"),b=n("./src/constants/Actions.js"),_=n("./src/stores/UserStore.js"),E=n("./src/utils/log.js"),S=n("./src/utils/withStores.tsx"),C=n("./src/utils/gold.js");function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function O(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}var I=m.Ay.div.withConfig({displayName:"GoldChatUpsell__InitialUpsellButton",componentId:"sc-4xk7g-0"})([""," "," cursor:pointer;min-width:100%;text-transform:none;"],(function(e){var t=e.theme,n=e.disabled;return"light"===t.mode&&"\n background-image: linear-gradient(\n to bottom,\n #f0f0f0,\n #a1a1a1\n );\n\n border: 1px solid ".concat(t.colors.baseContrast030,";\n border-radius: 2px;\n\n ").concat(n?"":"\n &:hover {\n background-image: linear-gradient(\n to bottom,\n #e4e4e4,\n #929292\n );\n }\n\n &:focus-visible: {\n background: ".concat(t.colors.baseContrast030,";\n }\n "),"\n\n color: ").concat(t.colors.baseContrast090,";\n padding-left: ").concat(t.spacing.base,"px;\n padding-right: ").concat(t.spacing.base,"px;\n ")}),(function(e){var t=e.theme;return"dark"===t.mode&&"\n color: ".concat(t.colors.gold,";\n border: 1px solid transparent;\n ")})),w=(0,m.Ay)(y()).withConfig({displayName:"GoldChatUpsell__StyledRaisedButton",componentId:"sc-4xk7g-1"})(["width:80%;"]),P=(0,m.Ay)(y()).attrs({gold:!0}).withConfig({displayName:"GoldChatUpsell__GoldCoin",componentId:"sc-4xk7g-2"})(["min-width:30px;min-height:30px;width:30px;height:30px;border-radius:15px;margin:4px;box-shadow:1px -1px 6px 0 rgba(0,0,0,0.05);"," &:before{border-radius:28px;}label{text-align:center;padding:0px;font-size:","px;}"],(function(e){return!e.label&&"padding-left: 4px;"}),(function(e){var t=e.label;return t&&t.length>=3?12:16})),k=m.Ay.span.withConfig({displayName:"GoldChatUpsell__InitialUpsellLabel",componentId:"sc-4xk7g-3"})([""," font-size:16px;font-weight:400;text-transform:uppercase;vertical-align:text-bottom;"],(0,h.A)(o||(o=(0,u.A)(["\n padding-left: ","px;\n "])),(function(e){var t=e.theme;return String(t.spacing.base)})));function R(e){(0,A.T)({type:b.A.REMOVE_CHAT_MESSAGE,data:{identifier:e}})}var D=function(e){(0,s.A)(n,e);var t=O(n);function n(e){var o;return(0,r.A)(this,n),(o=t.call(this,e)).state={lockedInAmount:0},o}return(0,i.A)(n,[{key:"handleInitialClick",value:function(e){this.props.disabled||this.props.onInitialClick()&&this.setState({lockedInAmount:e})}},{key:"removeSelf",value:function(){R(this.props.identifier)}},{key:"handleConfirmSpendClick",value:function(e){var t=this;this.props.onConfirmSpendClick(),e.submitGold(this.props.upsellSubmitOptions).then((function(){return t.removeSelf()})).catch((function(e){E.A.error({message:"gold-chat-upsell-submit-failure",error:e})}))}},{key:"renderButton",value:function(e,t){var n=this;if(e.goldToGiveCentsUsd&&(e.limit||!e.valid))return setTimeout((function(){return n.removeSelf()})),null;var o=this.props.disabled,r=this.state.lockedInAmount;if(r){var i=this.props,s=i.isGoldOneUsd,a=i.showFinalCost,l=String(r/100),u=(0,f.AA)("give_amount_gold",l),d=s||a?" (".concat((0,C.kX)(r,s,a),")"):"";return p().createElement(w,{size:"medium",label:"".concat(u).concat(d),fullWidth:!0,gold:!0,onClick:function(){return n.handleConfirmSpendClick(e)},disabled:o})}var m=this.props.initialUpsellIcon?{iconLeft:this.props.initialUpsellIcon}:{label:String(t/100)};return p().createElement(I,{onClick:function(){return n.handleInitialClick(t)},"data-icf-click":this.props.anonymizedEventName,disabled:o,"data-ta-locator":"GoldChatUpsell_InitialUpsellButton"},p().createElement(P,function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>s});var o=n("webpack/sharing/consume/default/react/react"),r=n.n(o),i=function(e){var t=e.viewBox;return r().createElement("svg",{viewBox:t,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},r().createElement("defs",null,r().createElement("filter",{filterUnits:"objectBoundingBox",id:"a"},r().createElement("feOffset",{dy:"4",in:"SourceAlpha",result:"shadowOffsetOuter1"}),r().createElement("feGaussianBlur",{stdDeviation:"2",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),r().createElement("feMerge",null,r().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),r().createElement("feMergeNode",{in:"SourceGraphic"}))),r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"d"},r().createElement("stop",{stopColor:"#FBE112",offset:"0%"}),r().createElement("stop",{stopColor:"#CB7D00",offset:"100%"})),r().createElement("ellipse",{id:"c",cx:"17.5",cy:"18",rx:"17.5",ry:"18"}),r().createElement("filter",{filterUnits:"objectBoundingBox",id:"b"},r().createElement("feOffset",{dx:"0",dy:"0",in:"SourceAlpha",result:"shadowOffsetOuter1"}),r().createElement("feGaussianBlur",{stdDeviation:"3",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0504132699 0",in:"shadowBlurOuter1"}))),r().createElement("g",{filter:"url(#a)",transform:"translate(5 7)",fill:"none",fillRule:"evenodd"},r().createElement("g",{transform:"translate(1)"},r().createElement("use",{fill:"#000",filter:"url(#b)",xlinkHref:"#c"}),r().createElement("use",{fill:"url(#d)",xlinkHref:"#c"})),r().createElement("path",{d:"M11 16h14v3H11v-3zm0-5h14v3H11v-3zm0 10h9v3h-9v-3zm11 0l6 4-6 4v-8z",fill:"#212121"})))};i.defaultProps={viewBox:"0 0 48 48"};const s=i},"./src/components/goldshow/TopContributorsUpsellCreator.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=n("webpack/sharing/consume/default/react/react"),i=n.n(r),s=n("./src/constants/Actions.js"),a=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),l=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),u=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),d=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),p=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),m=n("./src/lib/Strings.js"),h=n("./src/lib/Dispatcher.js"),A=n("./src/components/gold/GoldChatUpsell.tsx");const f=function(e){var t=e.className;return i().createElement("svg",{width:"15px",height:"15px",viewBox:"0 0 17 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:t},i().createElement("title",null,"LeaderboardIcon"),i().createElement("g",{xmlns:"http://www.w3.org/2000/svg",id:"LeaderboardIcon",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i().createElement("path",{xmlns:"http://www.w3.org/2000/svg",d:"M8.5,4.70590909 L10.3931818,5.85727273 L9.89090909,3.68590909 L11.5909091,2.23318182 L9.35772727,2.04 L8.5,0 L7.62681818,2.04 L5.40909091,2.23318182 L7.09363636,3.68590909 L6.56818182,5.85727273 L8.5,4.70590909 M10.8181818,17 L6.18181818,17 L6.18181818,6.95454545 L10.8181818,6.95454545 L10.8181818,17 M0,12.3636364 L0,17 L4.63636364,17 L4.63636364,12.3636364 L0,12.3636364 M3.09090909,15.4545455 L1.54545455,15.4545455 L1.54545455,13.9090909 L3.09090909,13.9090909 L3.09090909,15.4545455 M12.3636364,9.27272727 L12.3636364,17 L17,17 L17,9.27272727 L12.3636364,9.27272727 M15.4545455,15.4545455 L13.9090909,15.4545455 L13.9090909,10.8181818 L15.4545455,10.8181818 L15.4545455,15.4545455 Z",id:"Shape",fill:"#000000",fillRule:"nonzero"})))};var g=n("./src/constants/StatsEvents.js"),y=n("./src/constants/LomsEvents.js"),v=n("./src/constants/LayoutConstants.ts"),b=n("./src/stores/TopContributorsStore.js"),_=n("./src/stores/GoldShowStore.js"),E=n("./src/stores/UserStore.js"),S=n("./src/stores/LayoutStore.js"),C=n("./src/utils/log.js"),T=n("./src/utils/withStores.tsx"),O=n("./src/utils/lomsTools.js");function I(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var w=(0,p.Ay)(f).withConfig({displayName:"TopContributorsChatUpsell__StyledLeaderboardIcon",componentId:"sc-1m1ojsj-0"})(["position:relative;top:-2px;"]),P=function(e){(0,c.A)(n,e);var t=I(n);function n(){return(0,a.A)(this,n),t.apply(this,arguments)}return(0,l.A)(n,[{key:"handleInitialClick",value:function(e){return(0,O.DM)(y.A.CTA_BUTTONS.TOP_CONTRIBUTORS_CHAT_UPSELL,this.props.layout),this.props.layout!==v.Ay.MOBILE||(h.A.dispatch({type:s.A.GIVE_GOLD_CLICK,data:{topContributorAmount:e,topContributorString:(0,m.AA)("top_contributors.1st")}}),!1)}},{key:"removeSelf",value:function(){var e=this.props.identifier;(0,A.QE)(e)}},{key:"handleConfirmSpendClick",value:function(){this.props.layout!==v.Ay.MOBILE&&C.A.statsIncCounter(g.A.TOP_CONTRIBUTORS.UPSELL_CONFIRMED)}},{key:"render",value:function(){var e=this,t=this.props,n=t.amountToBeat,o=t.totalUserAmount,r=t.maxTotalUserAmount,s=t.layout;if(!t.isGoldShowActive||!n)return setTimeout((function(){return e.removeSelf()})),null;if(o>r)return setTimeout((function(){return e.removeSelf()})),null;var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=100*Math.ceil(Number(e)/100);return n===Number(e)&&(n+=100),t&&(n-=t),n=100*Math.ceil(n/100)}(n,o);return i().createElement(A.Ay,{identifier:this.props.identifier,goldAmountFractional:a,onInitialClick:function(){return e.handleInitialClick(a)},onConfirmSpendClick:function(){return e.handleConfirmSpendClick()},anonymizedEventName:"TopContributorsChatUpsell",initialUpsellLabel:(0,m.AA)("top_contributors.take_1st_cta"),initialUpsellIcon:s===v.Ay.MOBILE?i().createElement(w,null):void 0})}}]),n}(r.Component);const k=(0,T.A)([b.A,_.A,E.A,S.Ay],(function(e){var t,n,o;return{totalUserAmount:null!==(t=null===(n=e.topContributors.users.find((function(e){return e.isThisUser})))||void 0===n?void 0:n.amount)&&void 0!==t?t:e.topContributors.totalUserPledgedAmount,amountToBeat:null===(o=e.topContributors.users[0])||void 0===o?void 0:o.amount,layout:e.layout.layout,isGoldShowActive:_.A.isActive()}}),{memoize:!0})(P);const R=(0,T.A)([b.A,_.A,S.Ay],(function(e){var t,n;return{users:e.topContributors.users,totalUserAmount:null!==(t=null===(n=e.topContributors.users.find((function(e){return e.isThisUser})))||void 0===n?void 0:n.amount)&&void 0!==t?t:e.topContributors.totalUserPledgedAmount,isDesktop:e.layout.isDesktop,isGoldShowActive:_.A.isActive()}}),{memoize:!0})((function(e){var t=e.totalUserAmount,n=e.users,a=e.isGoldShowActive,l=(0,r.useState)(0),c=(0,o.A)(l,2),u=c[0],d=c[1],p=(0,r.useState)(void 0),m=(0,o.A)(p,2),A=m[0],f=m[1];return(0,r.useEffect)((function(){if(a&&0!==n.length){var e=n[0].amount;if(t>0&&e>t&&t>u){(0,h.T)({type:s.A.REMOVE_CHAT_MESSAGE,data:{identifier:A}});var o="TopContributorsChatUpsell"+String(Math.random());(0,h.T)({type:s.A.DISPLAY_MESSAGE,data:{message:i().createElement(k,{maxTotalUserAmount:t,maxAmountToBeat:e,identifier:o}),identifier:o}}),(0,h.T)({type:s.A.TOP_CONTRIBUTORS_CHAT_UPSELL_SHOWED,data:{takeTopSpotIdentifier:o}}),d(t),f(o)}}}),[t,n,a]),null}))},"./src/components/multiplegoals/MultipleGoalsContainer.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var o,r,i,s=n("webpack/sharing/consume/default/react/react"),a=n.n(s),l=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),c=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),u=n("./node_modules/styled-components-rtl/index.js"),d=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),p=n.n(d),m=n("./src/utils/tools.ts"),h=(0,l.i7)(["0%{transform:scale(1);box-shadow:0 0 0 0;}70%{transform:scale(1.02);box-shadow:0 0 8px 2px rgba(255,193,7,0.8);}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,193,7,0.8);}"]),A=l.Ay.div.withConfig({displayName:"GoalProgressBar__ProgressContainer",componentId:"sc-nvv6if-0"})(["display:flex;align-items:center;flex-grow:1;margin:0;"," border-radius:12px;border:2px solid;border-color:",";background-color:",";box-shadow:0 0 0 0;transform:scale(1);animation-name:",";animation-duration:1.5s;animation-delay:3s;animation-iteration-count:2;"],(0,u.A)(o||(o=(0,c.A)(["\n margin-left: ","px;\n "])),(function(e){var t=e.theme;return String(t.spacing.base/2)})),(function(e){return e.theme.colors.baseShadow}),(function(e){return e.theme.colors.baseShadow}),h),f=l.Ay.div.withConfig({displayName:"GoalProgressBar__ProgressMask",componentId:"sc-nvv6if-1"})(["position:relative;width:",";min-width:10px;height:12px;border-radius:30px;background-color:",";transition:width 1s ease-in-out;"],(function(e){var t=e.percent;return"".concat((0,m.qE)(Math.max(t,1),0,100),"%")}),(function(e){return e.theme.colors.gold})),g=l.Ay.div.withConfig({displayName:"GoalProgressBar__ProgressText",componentId:"sc-nvv6if-2"})(["color:",";"],(function(e){return e.theme.colors.gold})),y=l.Ay.div.withConfig({displayName:"GoalProgressBar__GoalText",componentId:"sc-nvv6if-3"})(["color:",";",""],(function(e){var t=e.theme;return e.goalReached?t.colors.gold:t.colors.baseContrast100}),(0,u.A)(r||(r=(0,c.A)(["\n margin-right: ","px;\n "])),(function(e){var t=e.theme;return String(t.spacing.base/2)}))),v=l.Ay.div.withConfig({displayName:"GoalProgressBar__GoldMeterContainer",componentId:"sc-nvv6if-4"})(["display:flex;align-items:center;width:100%;font-size:14px;",""],(function(e){return e.mobile&&(0,l.AH)(["","","{height:10px;}"],f,f)})),b=(0,l.Ay)(p()).withConfig({displayName:"GoalProgressBar__StyledIcon",componentId:"sc-nvv6if-5"})(["&&{","}"],(0,u.A)(i||(i=(0,c.A)(["\n margin-left: ","px;\n "])),(function(e){var t=e.theme;return String(t.spacing.base/2)}))),_=function(e){var t=e.goalAmount,n=e.progressAmount,o=e.mobile,r=void 0!==o&&o,i=Math.min(100,Math.floor(n/t*100)),s=n>=t;return a().createElement(v,{mobile:r},a().createElement(g,null,n),a().createElement(y,{goalReached:s},"/".concat(t)),a().createElement(A,null,a().createElement(f,{percent:i})),!r&&a().createElement(b,{name:"flag",size:18,fill:s?"#ffc107":""}))},E=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),S=n("./node_modules/canvas-confetti/dist/confetti.module.mjs");function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;ta-16)}),250,{trailing:!0}),[t,f]),(0,s.useEffect)((function(){var e=D()((function(){return g(Date.now())}),250,{trailing:!0});return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),a().createElement(N,{title:t,"data-ta-locator":"GoalText"},a().createElement(j,null,L.Ay.getString("goal"),":"),a().createElement(M,{ref:n},a().createElement(B,{scrollMarquee:l,scrollAnimationLength:p},a().createElement("span",{ref:o},t)),a().createElement(B,{scrollMarquee:l,scrollAnimationLength:p},t)))},G=n("./src/stores/PerformerStore.ts"),V=n("./src/utils/withStores.tsx"),F=l.Ay.div.withConfig({displayName:"MultipleGoalsContainer__Container",componentId:"sc-2qbhgt-0"})([""," margin-bottom:","px;background:#212121;"],(function(e){return e.mobile&&"padding: 5px;"}),(function(e){var t=e.mobile,n=e.theme;return t?0:n.spacing.base}));const H=(0,V.A)([G.A],(function(e){return{goalText:e.performer.goalStatus.goal,goalAmount:e.performer.goalStatus.cost,goalProgress:e.performer.goalStatus.progress}}))((function(e){var t=e.mobile,n=void 0!==t&&t,o=e.goalText,r=e.goalAmount,i=e.goalProgress;if(r<=0||!o)return null;var s=r>0&&i>=r;return a().createElement(F,{mobile:n},a().createElement(U,{goalText:o}),a().createElement("div",null,a().createElement(_,{goalAmount:r,progressAmount:i,mobile:n}),a().createElement(P,{isOpen:s})))}))},"./src/components/section/InfoContainer.tsx":(e,t,n)=>{"use strict";n.d(t,{Kj:()=>i,SD:()=>c,Vq:()=>a,hi:()=>s,iT:()=>u,qm:()=>l});var o=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=n("./src/constants/LayoutConstants.ts"),i=o.Ay.span.withConfig({displayName:"InfoContainer__InfoContainerTitle",componentId:"sc-zjm5z7-0"})(["color:",";display:block;font-size:22px;font-weight:200;letter-spacing:1px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;"],(function(e){return e.theme.colors.baseContrast070})),s=o.Ay.header.withConfig({displayName:"InfoContainer__InfoContainerHeader",componentId:"sc-zjm5z7-1"})(["align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;"]),a=o.Ay.div.withConfig({displayName:"InfoContainer__InfoContainerSubsection",componentId:"sc-zjm5z7-2"})(["margin-top:",";line-height:1.45;overflow:hidden;word-wrap:break-word;&:empty{display:none;}"],(function(e){var t=e.theme;return e.offlineMobileLayoutEnabled?"".concat(2*t.spacing.base,"px"):0})),l=o.Ay.div.withConfig({displayName:"InfoContainer",componentId:"sc-zjm5z7-3"})(["font-size:14px;margin-bottom:8px;& >:first-child >:first-child{margin-top:0;}&:last-child{margin-bottom:0;}"]),c=l,u=(0,o.Ay)(l).withConfig({displayName:"InfoContainer__DesktopInfoContainer",componentId:"sc-zjm5z7-4"})(["","{line-height:normal;margin-bottom:8px;}@media (max-width:","px){font-size:12px;p{font-size:12px;}","{font-size:14px;margin-bottom:0;}}"],i,r.fi.medium.max,i)},"./src/components/spingold/SpinGoldButton.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var o,r,i,s=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),l=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),c=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),u=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),d=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),p=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),m=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),h=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),A=n("webpack/sharing/consume/default/react/react"),f=n.n(A),g=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),y=n("./node_modules/styled-components-rtl/index.js"),v=n("./node_modules/@atg/icf-react-components/components/FlatButton/index.js"),b=n.n(v),_=n("./node_modules/@atg/icf-react-components/components/Tooltip/index.js"),E=n.n(_),S=n("./src/constants/Actions.js"),C=n("./src/constants/LomsEvents.js"),T=n("./src/constants/Modals.ts"),O=n("./src/constants/ShownFeature.ts"),I=n("./src/constants/StatsEvents.js"),w=n("./src/lib/Dispatcher.js"),P=n("./src/lib/Strings.js"),k=n("./src/utils/log.js"),R=n("./src/utils/lomsTools.js"),D=n("./src/utils/spinGold.ts"),L=n("./src/utils/withStores.tsx"),x=n("./src/components/spingold/SpinGoldIcon.tsx"),N=n("./src/stores/LayoutStore.js"),j=n("./src/stores/XmentStore.ts");function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var t=1;t svg{"," width:28px;height:36px;}& > iconLeft{width:48px;height:48px;}label{"," font-size:16px;"],(0,y.A)(o||(o=(0,h.A)(["\n justify-content: left;\n "]))),(0,y.A)(r||(r=(0,h.A)(["\n margin-left: -8px;\n margin-right: 6px;\n "]))),(0,y.A)(i||(i=(0,h.A)(["\n justify-content: left;\n margin-left: 0px;\n "])))),V=(0,g.Ay)(b()).withConfig({displayName:"SpinGoldButton__SpinTheWheelButtonCompact",componentId:"sc-1mmc4sg-1"})(["display:flex;justify-content:center;width:48px;min-width:48px;padding:8px;& > svg{width:28px;height:36px;}& > iconLeft{width:48px;height:48px;}"]),F=function(e){(0,u.A)(n,e);var t=U(n);function n(e){var o;return(0,a.A)(this,n),o=t.call(this,e),(0,m.A)((0,c.A)(o),"loggedShown",void 0),o.loggedShown=!1,o.state={isEnabled:!1},o}return(0,l.A)(n,[{key:"attemptLogShown",value:function(){this.loggedShown||((0,w.T)({type:S.A.FEATURE_SHOWN,data:{feature:O.A.SPIN_GOLD}}),this.loggedShown=!0)}},{key:"handleClick",value:function(){k.A.statsIncCounter(I.A.SPIN_GOLD.OPENED),(0,R.sX)(C.A.CTA_BUTTONS.SPIN_GOLD),this.props.chatUpsellIdentifier&&(0,R.DM)(C.A.CTA_BUTTONS.SPIN_GOLD,N.Ay.getState().layout),w.A.dispatch({type:S.A.OPEN_GOLD_MODAL,data:{activeGoldTab:T.yr.SPIN_GOLD}})}},{key:"attemptRemoveSelf",value:function(){var e=this.props.chatUpsellIdentifier;e&&(0,w.T)({type:S.A.REMOVE_CHAT_MESSAGE,data:{identifier:e}})}},{key:"render",value:function(){var e=this,t=this.props,n=t.isVisible,o=t.isEnabled,r=t.isCompact,i=t.chatUpsellIdentifier,s=t.isImprovedCamPageFullscreenUI,a=Boolean(i)&&s;return n?(this.attemptLogShown(),r?f().createElement(E(),{title:P.Ay.getString("spin_gold.spin_the_wheel"),placement:_.TooltipPlacement.RIGHT},f().createElement(V,{size:v.FlatButtonSizes.LARGE,disabled:!o,iconLeft:f().createElement(x.A,null),"data-ta-locator":"SpinGoldButton",onClick:function(){return e.handleClick()}})):f().createElement(G,{size:a?v.FlatButtonSizes.SMALL:v.FlatButtonSizes.LARGE,padding:a?"0px 8px":void 0,disabled:!o,label:P.Ay.getString("spin_gold.spin_the_wheel"),iconLeft:f().createElement(x.A,null),"data-ta-locator":"SpinGoldButton",onClick:function(){return e.handleClick()}})):(this.attemptRemoveSelf(),null)}}]),n}(A.Component);const H=(0,L.A)([].concat((0,s.A)(D.R),[j.A]),(function(e){var t=e.xment;return B(B({},(0,D.Q)()),{},{isImprovedCamPageFullscreenUI:Boolean(t.improvedCamPageFullscreenUI)})}))(F)},"./src/components/spingold/SpinGoldIcon.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n("webpack/sharing/consume/default/react/react"),r=n.n(o),i=function(){return r().createElement("svg",{viewBox:"0 0 30 30",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},r().createElement("defs",null,r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"linearGradient-1"},r().createElement("stop",{stopColor:"#FBE112",offset:"0%"}),r().createElement("stop",{stopColor:"#CB7D00",offset:"100%"})),r().createElement("circle",{id:"path-2",cx:"15",cy:"15",r:"15"})),r().createElement("g",{id:"GOLDBtnWheelIcon",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r().createElement("g",{id:"spin_wheel-btn-copy"},r().createElement("mask",{id:"mask-3",fill:"white"},r().createElement("use",{xlinkHref:"#path-2"})),r().createElement("use",{id:"Mask",fill:"url(#linearGradient-1)",xlinkHref:"#path-2"}),r().createElement("g",{id:"spin_wheel",mask:"url(#mask-3)"},r().createElement("g",{transform:"translate(2.000000, -2.000000)",id:"Group-2-Copy-6"},r().createElement("g",{transform:"translate(13.000000, 15.357143) rotate(-90.000000) translate(-13.000000, -15.357143) translate(-1.500000, 2.357143)"},r().createElement("g",{id:"Group-3",fillRule:"nonzero"},r().createElement("circle",{id:"Oval-Copy-8",fill:"#1A1C1C",transform:"translate(12.921969, 12.921969) rotate(90.000000) translate(-12.921969, -12.921969) ",cx:"12.9219688",cy:"12.9219688",r:"12.9219688"}),r().createElement("path",{d:"M6.61021165,8.15738755 L11.4643374,16.5638388 C11.2916922,16.6478526 11.1159542,16.7278802 10.937188,16.8037619 C7.86689107,18.1070256 4.53743024,17.9182023 1.75714446,16.563882 L6.61021165,8.15738755 Z",id:"Path-Copy",fill:"#7D36CB",transform:"translate(6.610741, 12.922133) rotate(90.000000) translate(-6.610741, -12.922133) "}),r().createElement("path",{d:"M3.09034976,14.9118125 L12.7994357,14.9119578 C12.562746,18.2554607 10.8097933,21.3918121 7.94503591,23.3199433 L3.09034976,14.9118125 Z",id:"Path-Copy-2",fill:"#D33030",transform:"translate(7.944893, 19.115878) rotate(90.000000) translate(-7.944893, -19.115878) "}),r().createElement("path",{d:"M12.8002222,2.52366122 L7.94610768,10.9315311 C6.22904389,9.77541706 4.81610079,8.1251965 3.94699997,6.07772326 C3.45377987,4.91576955 3.17426301,3.71669725 3.09074711,2.52432096 L12.8002222,2.52366122 Z",id:"Path-Copy-3",fill:"#3D5EF2",transform:"translate(7.945485, 6.727596) rotate(90.000000) translate(-7.945485, -6.727596) "}),r().createElement("path",{d:"M17.8991087,2.52393271 L22.753526,10.931602 L13.0447089,10.9319182 C13.2813987,7.58841531 15.0343513,4.45206389 17.8991087,2.52393271 Z",id:"Path-Copy-4",fill:"#46A424",transform:"translate(17.899117, 6.727925) rotate(90.000000) translate(-17.899117, -6.727925) "}),r().createElement("path",{d:"M21.8975571,19.7665648 C22.3907772,20.9285185 22.6702941,22.1275908 22.75381,23.3199671 L13.0440661,23.3192423 L17.8979881,14.9124463 C19.6152601,16.0685754 21.0283785,17.7189082 21.8975571,19.7665648 Z",id:"Path-Copy-5",fill:"#DC6E0F",transform:"translate(17.898938, 19.116207) rotate(90.000000) translate(-17.898938, -19.116207) "}),r().createElement("path",{d:"M24.0866958,9.28024382 L19.2331473,17.6863981 L14.380159,9.2802103 C14.5526734,9.19626877 14.7282756,9.11630737 14.9069014,9.04048521 C17.9771066,7.73726042 21.3064602,7.92603357 24.0866958,9.28024382 Z",id:"Path-Copy-6",fill:"#FFC107",transform:"translate(19.233427, 12.921884) rotate(90.000000) translate(-19.233427, -12.921884) "})),r().createElement("polygon",{id:"Triangle-Copy-5",fill:"#1A1C1C",fillRule:"nonzero",transform:"translate(24.767450, 12.921969) rotate(-90.000000) translate(-24.767450, -12.921969) ",points:"24.7674499 8.92196882 28.7674498 16.9219688 20.7674499 16.9219688"})))))))};const s=function(){return r().createElement(i,null)}},"./src/components/video/ReportComplaintMenu.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>Y});var o,r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),s=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),a=n("webpack/sharing/consume/default/react/react"),l=n.n(a),c=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),u=n("./node_modules/redux/es/redux.js"),d=n("./node_modules/react-jss/dist/react-jss.esm.js"),p=n("./node_modules/styled-components-rtl/index.js"),m=n("./node_modules/@atg/icf-react-components/components/IconButton/index.js"),h=n.n(m),A=n("./node_modules/@atg/icf-react-components/components/Popover/index.js"),f=n.n(A),g=n("./node_modules/@atg/icf-react-components/components/List/index.js"),y=n.n(g),v=n("./node_modules/@atg/icf-react-components/components/ListItem/index.js"),b=n.n(v),_=n("./node_modules/@atg/icf-react-components/components/Tooltip/index.js"),E=n.n(_),S=n("./node_modules/@atg/icf-react-components/components/Modal/index.js"),C=n.n(S),T=n("./src/utils/withTranslations.tsx"),O=n("./src/utils/log.js"),I=n("./src/utils/tools.ts"),w=n("./src/constants/Actions.js"),P=n("./src/constants/Messages.js"),k=n("./src/components/video/ReportStreamingIssueModal.tsx"),R=n("./src/components/video/ReportContentComplaintModal.tsx"),D=n("./src/components/video/ReportContentComplaintSnackBar.tsx"),L=n("./src/utils/withStores.tsx"),x=n("./src/stores/LayoutStore.js"),N=n("./src/stores/UserStore.js"),j=n("./src/lib/Dispatcher.js");function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var t=1;t{"use strict";n.d(t,{A:()=>k});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/redux/es/redux.js"),i=n("webpack/sharing/consume/default/react/react"),s=n.n(i),a=n("./src/lib/AjaxRequest.js"),l=n("./src/lib/Strings.js"),c=n("./node_modules/prop-types/index.js"),u=n.n(c),d=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),p=n("./src/stores/ConfigStore.ts"),m=n("./src/stores/ConnectionStore.js"),h=n("./src/stores/UserStore.js"),A=n("./src/stores/GoldShowStore.js"),f=n("./src/stores/PerformerStore.ts"),g=n("./src/stores/UserListStore.ts"),y=n("./src/utils/withStores.tsx"),v=n("./src/utils/withTranslations.tsx"),b=n("./src/utils/complaint.ts"),_=n("./src/components/FederatedModule.tsx"),E=n("./src/components/common/Spinner.tsx"),S=n("./src/constants/Platforms.ts"),C=n("./src/constants/Feature.ts"),T=n("./src/constants/Connection.js"),O=n("./src/constants/ComplaintConstants.ts");function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var w=function(e){return s().createElement(_.A,function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>C});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/redux/es/redux.js"),i=n("webpack/sharing/consume/default/react/react"),s=n.n(i),a=n("./src/lib/Strings.js"),l=n("./node_modules/prop-types/index.js"),c=n.n(l),u=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),d=n("./src/stores/ConfigStore.ts"),p=n("./src/stores/UserStore.js"),m=n("./src/stores/PerformerStore.ts"),h=n("./src/utils/withStores.tsx"),A=n("./src/utils/withTranslations.tsx"),f=n("./src/utils/complaint.ts"),g=n("./src/components/FederatedModule.tsx"),y=n("./src/constants/Platforms.ts"),v=n("./src/constants/Feature.ts"),b=n("./src/constants/ComplaintConstants.ts");function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var E=function(e){return s().createElement(g.A,function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>G});var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=n("./node_modules/lodash/noop.js"),i=n.n(r),s=n("./node_modules/lodash/debounce.js"),a=n.n(s),l=n("./src/lib/AjaxRequest.js"),c=n("webpack/sharing/consume/default/react/react"),u=n.n(c),d=n("./node_modules/redux/es/redux.js"),p=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),m=n("./node_modules/@atg/icf-react-components/components/IconButton/index.js"),h=n.n(m),A=n("./node_modules/@atg/icf-react-components/components/RadioButton/index.js"),f=n.n(A),g=n("./node_modules/@atg/icf-react-components/components/RadioButtonGroup/index.js"),y=n.n(g),v=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),b=n.n(v),_=n("./src/utils/log.js"),E=n("./src/utils/log/LogDecorator.js"),S=n("./src/utils/withTranslations.tsx"),C=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),T=n.n(C),O=n("./src/constants/ComplaintConstants.ts"),I=n("./node_modules/@atg/icf-react-components/components/Link/index.js"),w=n.n(I),P=p.Ay.div.withConfig({displayName:"ReportStreamingIssueModal__Container",componentId:"sc-sdc5fl-0"})(["position:relative;display:block;margin:0;padding:0;font-family:",";"],(function(e){return e.theme.typography.fontFamily})),k=p.Ay.div.withConfig({displayName:"ReportStreamingIssueModal__Content",componentId:"sc-sdc5fl-1"})(["min-width:","px;display:flex;flex-direction:column;background:",";"],(function(e){return e.wide?340:215}),(function(e){return e.theme.colors.baseContrast010})),R=p.Ay.div.withConfig({displayName:"ReportStreamingIssueModal__MenuTitle",componentId:"sc-sdc5fl-2"})(["display:flex;justify-content:space-between;align-items:center;background:",";text-transform:uppercase;padding:8px;"],(function(e){return e.theme.colors.baseContrast020})),D=(0,p.Ay)(h()).attrs({name:"arrowBack"}).withConfig({displayName:"ReportStreamingIssueModal__BackArrowIconButton",componentId:"sc-sdc5fl-3"})(["padding:0;cursor:pointer;margin-right:8px;& svg{width:20px;height:20px;}"]),L=p.Ay.span.withConfig({displayName:"ReportStreamingIssueModal__Title",componentId:"sc-sdc5fl-4"})(["flex-grow:1;text-transform:uppercase;"]),x=p.Ay.div.withConfig({displayName:"ReportStreamingIssueModal__RadioButtonContainer",componentId:"sc-sdc5fl-5"})(["padding:8px 8px 0;background-color:",";& > div > div{margin:4px 0;}& > div > div:first-child,& > div > div:last-child{margin:0;}& > div > label > div{min-width:18px;}"],(function(e){return e.theme.colors.baseContrast010})),N=p.Ay.div.withConfig({displayName:"ReportStreamingIssueModal__ActionItems",componentId:"sc-sdc5fl-6"})(["display:flex;justify-content:",";align-items:center;padding:8px 12px;"],(function(e){return e.justifyRight?"flex-end":"space-between"})),j=p.Ay.div.withConfig({displayName:"ReportStreamingIssueModal__Confirmation",componentId:"sc-sdc5fl-7"})(["align-content:center;text-align:center;display:flex;justify-content:center;align-items:center;flex-flow:column;padding:32px 8px;line-height:24px;"]),M=(0,p.Ay)(b()).attrs({name:"insertEmoticon",size:48}).withConfig({displayName:"ReportStreamingIssueModal__HappyFaceIcon",componentId:"sc-sdc5fl-8"})(["margin-bottom:8px;fill:",";"],(function(e){return e.theme.colors.primary})),B=(0,p.Ay)(f()).withConfig({displayName:"ReportStreamingIssueModal__StyledRadioButton",componentId:"sc-sdc5fl-9"})(["margin-bottom:8px;"]),U=a()((function(e){_.A.usage("sent_incident_report",e.issueDescription),l.A.post(l.A.getBaseUrl()+"/api/v1/userstreamreport",e,"json")}),3e4,{leading:!0,trailing:!1});const G=(0,d.Zz)((0,S.A)())((function(e,t){var n=(0,c.useState)("menu"),r=(0,o.A)(n,2),s=r[0],a=r[1],l=(0,c.useState)(null),d=(0,o.A)(l,2),p=d[0],m=d[1],h=e.t,A=e.handleBackArrowClick,f=e.handleReportIssueRefresh,g=e.handleReportIssueSupport,v=function(e){return u().createElement(B,{key:e,value:e,label:h(O.YG[e].stringName)})},b=null===p?i():function(){var e=null!=p?p:O.G5.OTHER,n=O.YG[e],o=E.A.getIncludedData(),r=o.serial,i=o.performerid,s=o.userStreamId,l=o.performerStreamId,c=o.aiw_driver,u=t.smeid,d=t.smtid,m={issueType:n.reportCode,issueDescription:n.description,smeid:u,smtid:d,serial:r,performerid:i,performerStreamId:l,userStreamId:s,aiw_driver:c};U(m),a("confirmation")},_=null===p,S=function(){return u().createElement(P,null,u().createElement(k,null,u().createElement(R,null,u().createElement(D,{"data-ta-locator":"ReportStreamingIssue_backButton",onClick:A}),u().createElement(L,null,h("streaming_issue_report_short"))),u().createElement(x,null,u().createElement(y(),{name:"reportIssue",onChange:function(e){return function(e){m(e)}(e)}},Object.values(O.G5).map(v))),u().createElement(N,{justifyRight:!0},u().createElement(T(),{label:h("submit"),disabled:_,onClick:b,"data-ta-locator":"ActionItem_submitAction"}))))};return function(){switch(s){case"confirmation":return u().createElement(P,null,u().createElement(k,null,u().createElement(R,null,u().createElement(D,{onClick:A}),u().createElement(L,null,h("streaming_issue_report_short"))),u().createElement(j,null,u().createElement(M,null),u().createElement("div",null,h("streaming_issue_thank_you"))),u().createElement(N,null,u().createElement(w(),{onClick:f,"data-ta-locator":"ActionItem_refresh"},h("refresh_page")),u().createElement(w(),{onClick:g,"data-ta-locator":"ActionItem_support"},h("support")))));default:return S()}}()}))},"./src/components/videoclient/cam2cam/EnterModal/PrivateCallPreviewLively.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),i=n("./node_modules/@babel/runtime/regenerator/index.js"),s=n.n(i),a=n("webpack/sharing/consume/default/react/react"),l=n.n(a),c=n("./src/utils/withStores.tsx"),u=n("./src/utils/createAsyncComponent.tsx"),d=n("./src/components/videoclient/store/encoder/EncoderUiStore.ts");function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var m=(0,u.A)((0,r.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.e(10).then(n.bind(n,"./src/components/videoclient/PreviewLively.js")));case 1:case"end":return e.stop()}}),e)}))),{displayName:"PreviewLively"});const h=(0,c.A)([d.A],(function(e){return{encoderUi:e.encoderUi.encoderUi}}),{memoize:!0})((function(e){var t=e.encoderUi;return l().createElement(l().Fragment,null,t&&l().createElement(m,function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>o});const o={LIVELY_VIDEO_CAM2CAM_DISABLED:"LivelyVideoCam2CamDisabled",LIVELY_VIDEO_CAM2CAM_END:"LivelyVideoCam2CamEnd",LIVELY_VIDEO_CAM2CAM_GET_DEVICES:"LivelyVideoCam2CamGetDevices",LIVELY_VIDEO_CAM2CAM_HIDDEN:"LivelyVideoCam2CamHidden",LIVELY_VIDEO_CAM2CAM_MIC_DISABLED:"LivelyVideoCam2CamMicDisabled",LIVELY_VIDEO_CAM2CAM_REQUEST:"LivelyVideoCam2CamRequest",LIVELY_VIDEO_CAM2CAM_SET_AUDIO_DEVICE:"LivelyVideoCam2CamSetAudioDevice",LIVELY_VIDEO_CAM2CAM_SET_VIDEO_DEVICE:"LivelyVideoCam2CamSetVideoDevice",LIVELY_VIDEO_CAM2CAM_VIDEO_DISABLED:"LivelyVideoCam2CamVideoDisabled",LIVELY_VIDEO_CAM2CAM_USER_MEDIA_DETECT:"LivelyVideoCam2CamUserMediaDetect",LIVELY_VIDEO_CAM2CAM_VISIBLE:"LivelyVideoCam2CamVisible"}},"./src/components/videoclient/store/cam2cam/Cam2CamStore.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./src/lib/Dispatcher.js"),d=n("./src/utils/FluxStoreExtended.ts"),p=n("./src/components/videoclient/store/cam2cam/Cam2CamConstants.ts"),m=n("./src/constants/Actions.js"),h=n("./src/utils/log.js"),A=n("./src/constants/StatsEvents.js"),f=n("./src/components/videoclient/store/videoClient/VideoClientStore.ts"),g=n("./src/stores/UserStore.js"),y=n("./src/stores/PerformerStore.ts"),v=n("./src/stores/ConnectionStore.js"),b=n("./src/constants/Connection.js");function _(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t=1e4){var n=g.A.getState(),o=n.userId,r=n.userStreamId,i=y.A.getState().id,s=v.A.getState().performerStreamId;h.A.loms({eventname:"Cam2CamEndV1",userId:o,userStreamId:r,performerId:i,performerStreamId:s,sessionLength:Math.round(t/1e3)})}h.A.statsTimer("session.c2c.sessionlength.".concat(e),t),h.A.statsIncCounter("".concat(A.A.C2C.ENDED,".").concat(e)),h.A.statsIncCounter("session.c2c.ended.pvc"),T.sessionStart=0}}},{key:"__onDispatch",value:function(e){var t=e.type,n=e.data;switch(t){case p.A.LIVELY_VIDEO_CAM2CAM_REQUEST:this.handleVideoC2CRequest();break;case p.A.LIVELY_VIDEO_CAM2CAM_HIDDEN:this.handleVideoC2CVisible(!1);break;case p.A.LIVELY_VIDEO_CAM2CAM_VISIBLE:this.handleVideoC2CVisible(!0);break;case p.A.LIVELY_VIDEO_CAM2CAM_END:this.handleVideoC2CEnd();break;case p.A.LIVELY_VIDEO_CAM2CAM_DISABLED:T.disabledCam2Cam!==n&&(T.disabledCam2Cam=n);break;case p.A.LIVELY_VIDEO_CAM2CAM_USER_MEDIA_DETECT:this.handleUserMediaDetect(n.videoDeviceFound,n.audioDeviceFound);break;case m.A.DISCONNECT:this.handleVideoC2CEnd();break;default:return}this.__emitChange()}}]),n}(d.A))("cam2cam",u.A)},"./src/components/videoclient/store/encoder/EncoderUiConstants.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={LIVELY_VIDEO_ENCODER_CREATE_ENCODER_UI:"LivelyVideoEncoderCreateEncoderUi",LIVELY_VIDEO_ENCODER_DISPOSE_ENCODER_UI:"LivelyVideoEncoderDisposeEncoderUi",LIVELY_VIDEO_ENCODER_SET_VIDEO_DEVICE:"LivelyVideoEncoderSetVideoDevice",LIVELY_VIDEO_ENCODER_SET_AUDIO_DEVICE:"LivelyVideoEncoderSetAudioDevice",LIVELY_VIDEO_ENCODER_SET_CAM2CAM_VIDEO_DISABLED:"LivelyVideoEncoderSetCam2CamVideoDisabled",LIVELY_VIDEO_ENCODER_SET_CAM2CAM_AUDIO_MUTED:"LivelyVideoEncoderSetCam2CamAudioMuted",LIVELY_VIDEO_ENCODER_SET_VIDEO_DISABLED:"LivelyVideoEncoderSetVideoDisabled",LIVELY_VIDEO_ENCODER_SET_AUDIO_MUTED:"LivelyVideoEncoderSetAudioMuted",LIVELY_VIDEO_ENCODER_SET_ENCODER_UI:"LivelyVideoEncoderSetEncoderUi",LIVELY_VIDEO_ENCODER_SET_ISREADY:"LivelyVideoEncoderSetIsReady"}},"./src/components/videoclient/store/encoder/EncoderUiStore.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var o=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),d=n("./node_modules/@babel/runtime/regenerator/index.js"),p=n.n(d),m=n("./src/lib/Dispatcher.js"),h=n("./src/utils/FluxStoreExtended.ts"),A=n("./src/constants/Actions.js"),f=n("./src/components/videoclient/store/encoder/EncoderUiConstants.ts"),g=n("./src/components/videoclient/store/videoClient/VideoClientConstants.ts"),y=n("./node_modules/@video/video-client-web/index.js"),v=n("./src/utils/log.js"),b=n("./src/constants/StatsEvents.js"),_=n("./src/lib/Strings.js");function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t0,P.camPermission=P.videoDevices.length>0,P.encoderUi&&(P.encoderUi.mediaStreamController.audioMuted=!P.micPermission,P.encoderUi.mediaStreamController.videoDisabled=!P.camPermission)})),(0,u.A)((0,s.A)(e),"handlePermissionChange",(function(e){"audio_capture"===e.name?"granted"===e.state?(P.permChange="audio",P.micPermission=!0):"denied"===e.state&&(P.permChange="video",P.micPermission=!1):"granted"===e.state&&"video_capture"===e.name&&(P.permChange="video")})),e}return(0,i.A)(l,[{key:"getState",value:function(){return P}},{key:"reset",value:function(){P=I({},w)}},{key:"handleSetEncoderUi",value:function(e){P.encoderUi=e,this.handleDeviceListChange()}},{key:"handleDisposeEncoderUi",value:function(e){var t=this;null!==P.encoderUi&&(y.mediaController.off("deviceListChanged",this.handleSetDevices),P.encoderUi.mediaStreamController.off("error",(function(e){return t.handleMediaStreamControllerError(e)})),P.encoderUi.removeAllListeners(),P.encoderUi.mediaStreamController.removeAllListeners(),P.encoderUi.dispose(e),this.reset())}},{key:"handleSetVideoDevice",value:function(e){var t=e.deviceId;e.label;y.mediaController.videoDevices().some((function(e){return e.deviceId===t}))?null!==P.encoderUi&&(P.encoderUi.mediaStreamController.videoDeviceId=t):v.A.debug("VideoClientStore, videoDeviceId not found. Unable to change device",t)}},{key:"handleSetAudioDevice",value:function(e){var t=e.deviceId;e.label;y.mediaController.audioDevices().some((function(e){return e.deviceId===t}))?null!==P.encoderUi&&(P.encoderUi.mediaStreamController.audioDeviceId=t):v.A.debug("VideoClientStore, audioDeviceId not found. Unable to change device",t)}},{key:"handleSetVideoDisabled",value:function(e){null!==P.encoderUi&&(P.encoderUi.mediaStreamController.videoDisabled=e)}},{key:"handleSetAudioMuted",value:function(e){null!==P.encoderUi&&(P.encoderUi.mediaStreamController.audioMuted=e)}},{key:"handleC2CVideoDisabled",value:function(e){null!==P.encoderUi?!0===e&&!0===P.encoderUi.mediaStreamController.audioMuted?setTimeout((function(){m.A.dispatch({type:g.A.LIVELY_VIDEO_CAM2CAM_VIDEOCLIENT_END,data:{reason:"C2C Video Disabled"}})}),0):this.handleSetVideoDisabled(e):v.A.debug({message:"encoderUi is null, cannot disable video"})}},{key:"handleC2CAudioMuted",value:function(e){null!==P.encoderUi?!0===e&&!0===P.encoderUi.mediaStreamController.videoDisabled?setTimeout((function(){m.A.dispatch({type:g.A.LIVELY_VIDEO_CAM2CAM_VIDEOCLIENT_END,data:{reason:"Audio Muted"}})}),0):this.handleSetAudioMuted(e):v.A.debug({message:"encoderUi is null, cannot disable mic"})}},{key:"handleGetUserMediaError",value:function(e){"get-user-media-failed"===e.name&&(v.A.error({message:"get-user-media-failed",error:e}),v.A.statsIncCounter("".concat(b.A.C2C.ERROR_BROADCASTER,".get-user-media-failed")),v.A.send(),P.getUserMediaError=!0,m.A.dispatch({type:A.A.DISPLAY_MESSAGE,data:{message:(0,_.AA)("cam2cam_grant_camera_access")}}))}},{key:"handleMediaStreamControllerError",value:function(e){if("get-user-media-failed"!==e.name)return v.A.error({message:"mediaStreamControllerError",error:e}),v.A.statsIncCounter(b.A.C2C.ERROR_INIT),void v.A.send();this.handleGetUserMediaError(e)}},{key:"handleSetIsReady",value:function(){!1===P.isReady&&(P.isReady=!0)}},{key:"__onDispatch",value:(t=(0,o.A)(p().mark((function e(t){var n,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.type,o=t.data,e.t0=n,e.next=e.t0===f.A.LIVELY_VIDEO_ENCODER_CREATE_ENCODER_UI?4:e.t0===f.A.LIVELY_VIDEO_ENCODER_SET_ENCODER_UI?7:e.t0===f.A.LIVELY_VIDEO_ENCODER_DISPOSE_ENCODER_UI?10:e.t0===f.A.LIVELY_VIDEO_ENCODER_SET_VIDEO_DEVICE?12:e.t0===f.A.LIVELY_VIDEO_ENCODER_SET_AUDIO_DEVICE?14:e.t0===f.A.LIVELY_VIDEO_ENCODER_SET_CAM2CAM_VIDEO_DISABLED?16:e.t0===f.A.LIVELY_VIDEO_ENCODER_SET_CAM2CAM_AUDIO_MUTED?18:e.t0===f.A.LIVELY_VIDEO_ENCODER_SET_VIDEO_DISABLED?20:e.t0===f.A.LIVELY_VIDEO_ENCODER_SET_AUDIO_MUTED?22:e.t0===f.A.LIVELY_VIDEO_ENCODER_SET_ISREADY?24:26;break;case 4:return e.next=6,this.handleCreateEncoderUi(o);case 6:return e.abrupt("break",27);case 7:return v.A.debug("VideoClientStore, LIVELY_VIDEO_ENCODER_SET_ENCODER_UI"),this.handleSetEncoderUi(o),e.abrupt("break",27);case 10:return this.handleDisposeEncoderUi(null==o?void 0:o.reason),e.abrupt("break",27);case 12:return this.handleSetVideoDevice(o),e.abrupt("break",27);case 14:return this.handleSetAudioDevice(o),e.abrupt("break",27);case 16:return this.handleC2CVideoDisabled(o),e.abrupt("break",27);case 18:return this.handleC2CAudioMuted(o),e.abrupt("break",27);case 20:return this.handleSetVideoDisabled(o),e.abrupt("break",27);case 22:return this.handleSetAudioMuted(o),e.abrupt("break",27);case 24:return this.handleSetIsReady(),e.abrupt("break",27);case 26:return e.abrupt("return");case 27:this.__emitChange();case 28:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),l}(h.A))("encoderUi",m.A)},"./src/components/videoclient/store/videoClient/VideoClientConstants.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={LIVELY_VIDEO_AUDIO_ENABLED:"livelyVideoAudioEnabled",LIVELY_VIDEO_CLIENT_CREATED:"LivelyVideoClientCreated",LIVELY_VIDEO_CREATE_CLIENT:"LivelyVideoCreateClient",LIVELY_VIDEO_DISPOSE_CLIENT:"LivelyVideoDisposeClient",LIVELY_VIDEO_DISPOSE_PLAYER:"LivelyVideoDisposePlayer",LIVELY_VIDEO_DRIVER:"LivelyVideoDriver",LIVELY_VIDEO_HANDLE_UNMOUNT:"LivelyVideoHandleUnmount",LIVELY_VIDEO_PEER_ADDED:"LivelyVideoPeerAdded",LIVELY_VIDEO_REFRESH_PLAYER:"LivelyVideoRefreshPlayer",LIVELY_VIDEO_SET_PLAYER_UI:"LivelyVideoSetPlayerUi",LIVELY_VIDEO_SET_CAM_2_CAM:"LivelyVideoSetCam2Cam",LIVELY_VIDEO_UPDATE_QUALITY:"LivelyVideoUpdateQuality",LIVELY_VIDEO_UPDATE_VOLUME:"LivelyVideoUpdateVolume",LIVELY_VIDEO_CAM2CAM_VIDEOCLIENT_END:"LivelyVideoCam2CamVideoClientEnd",VIDEO_MANIFEST_POSTER_URL:"LivelyVideoManifestPosterUrl",LIVELY_VIDEO_JOIN_CALL:"LivelyVideoJoinCall",LIVELY_VIDEO_PLAY_VIDEO:"LivelyVideoPlayVideo",LIVELY_VIDEO_CAPACITY_FALLBACK_CHECK:"LivelyVideoCapacityFallbackCheck"}},"./src/components/videoclient/store/videoClient/VideoClientStore.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var o=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),d=n("./node_modules/@babel/runtime/regenerator/index.js"),p=n.n(d),m=n("./src/lib/Dispatcher.js"),h=n("./src/utils/FluxStoreExtended.ts"),A=n("./src/constants/Actions.js"),f=n("./src/components/videoclient/store/videoClient/VideoClientConstants.ts"),g=n("./src/components/videoclient/store/cam2cam/Cam2CamConstants.ts"),y=n("./node_modules/@video/video-client-web/index.js"),v=n("./src/utils/log.js"),b=n("./src/constants/DisconnectReasons.js"),_=n("./src/constants/Connection.js"),E=n("./src/components/videoclient/store/cam2cam/Cam2CamStore.ts"),S=n("./src/stores/VideoControlsStore.js"),C=n("./src/components/videoclient/store/encoder/EncoderUiStore.ts"),T=n("./src/stores/ConnectionStore.js"),O=n("./src/stores/ChatStore.js"),I=n("./src/stores/ConfigStore.ts"),w=n("./node_modules/lscache/lscache.js"),P=n.n(w),k=n("./src/stores/LayoutStore.js"),R=n("./src/stores/UserStore.js"),D=n("./src/lib/PerformanceTiming.js"),L=n("./src/constants/StatsEvents.js"),x=n("./src/components/videoclient/utils/index.ts"),N=n("./src/components/videoclient/store/encoder/EncoderUiConstants.ts");function j(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var t=1;t{"use strict";n.d(t,{H:()=>i,n:()=>r});var o=n("./node_modules/@video/video-client-web/index.js"),r=o.adapter.device.isSafari,i=o.adapter.device.isChrome},"./src/constants/ChatConstants.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>r,G:()=>i});var o={PRIVATE_MESSAGE:2,MAX_MESSAGES:50,RPCFLAGS_SYSMSG:16,RPCFLAGS_GOLDMSG:128,RPCFLAGS_ANONYMOUS:4,USERTYPE_FREE:5,USERTYPE_SUPPORT:4,USERTYPE_PERFORMER:3,USERTYPE_ME:2,USERTYPE_SYSTEM:1,USERTYPE_DEFAULT:0,NAIADMESSAGE_IDX_TYPE:0,NAIADMESSAGE_IDX_USERNAME:1,NAIADMESSAGE_IDX_TEXTMESSAGE:2,NAIADMESSAGE_IDX_ISPERFORMER:3,NAIADMESSAGE_IDX_ISSUPPORT:4,NAIADMESSAGE_IDX_ISFREE:5,NAIADMESSAGE_IDX_HTMLMESSAGE:6,NAIADMESSAGE_IDX_FLAGSOBJECT:7,NAIADMESSAGE_FREE_MESSAGE:5,NAIADMESSAGE_SUPPORT_MESSAGE:4,NAIADMESSAGE_PERFORMER_MESSAGE:3,NAIADMESSAGE_ME_MESSAGE:2,NAIADMESSAGE_SYSTEM_MESSAGE:1,NAIADMESSAGE_USER_MESSAGE:0,ROOMMESSAGE_SYSTEM_MESSAGE:"system",ROOMMESSAGE_CHAT_MESSAGE:"chat",ROOMMESSAGE_PERFORMER_MESSAGE:"performer",ROOMMESSAGE_USER_MESSAGE:"user",DEFAULT_DESKTOP_FONT_SIZE:16,MIN_DESKTOP_FONT_SIZE:12,MAX_DESKTOP_FONT_SIZE:24,UPSELL_INITIAL_INTERVAL_MS:3e4,UPSELL_GOLD_MENU_CHAT_MESSAGES_THRESHOLD:10,UPSELL_GOLD_MENU_ITEM_INITIAL_CHAT_MESSAGES_THRESHOLD:5,UPSELL_GOLD_MENU_ITEM_CHAT_MESSAGES_THRESHOLD:15,UPSELL_INTERVAL_MS:9e4,UPSELL_GOLD_MENU_ITEM_COST_LOWER_THRESHOLD:2500};const r=o;var i;!function(e){e[e.Free=o.USERTYPE_FREE]="Free",e[e.Support=o.USERTYPE_SUPPORT]="Support",e[e.Performer=o.USERTYPE_PERFORMER]="Performer",e[e.Self=o.USERTYPE_ME]="Self",e[e.System=o.USERTYPE_SYSTEM]="System",e[e.Default=o.USERTYPE_DEFAULT]="Default"}(i||(i={}))},"./src/constants/ComplaintConstants.ts":(e,t,n)=>{"use strict";n.d(t,{Fo:()=>c,G5:()=>l,Q7:()=>i,TC:()=>u,YG:()=>d});var o,r,i,s=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),a=n("./src/constants/Platforms.ts");!function(e){e.SCP_MY_MEDIA_MEDIA_MODAL="SCP_MY_MEDIA_MEDIA_MODAL",e.SCP_MY_MEDIA_MEDIA_MOBILE_ACTIVE="SCP_MY_MEDIA_MEDIA_MOBILE_ACTIVE",e.SCP_PERFORMER_STORE_VIDEO_MODAL="SCP_PERFORMER_STORE_VIDEO_MODAL",e.SCP_LEGACY_STORE_VIDEO_MODAL="SCP_LEGACY_STORE_VIDEO_MODAL",e.SCP_CONTENT_FEED_POST="SCP_CONTENT_FEED_POST",e.SCP_VIDEO_STORE_PURCHASE_DETAILS="SCP_VIDEO_STORE_PURCHASE_DETAILS",e.HYBRID_CLIENT_CHAT_INPUT="HYBRID_CLIENT_CHAT_INPUT",e.HYBRID_CLIENT_CTA_CONTAINER="HYBRID_CLIENT_CTA_CONTAINER",e.HYBRID_CLIENT_OVERLAY="HYBRID_CLIENT_OVERLAY",e.HYBRID_CLIENT_MOBILE_PROFILE_HEADER="HYBRID_CLIENT_MOBILE_PROFILE_HEADER",e.HYBRID_CLIENT_BIO_GALLERY_PHOTOS="HYBRID_CLIENT_BIO_GALLERY_PHOTOS",e.HYBRID_CLIENT_BIO_CIRCLE_IMAGE="HYBRID_CLIENT_BIO_CIRCLE_IMAGE"}(i||(i={}));var l,c=(o={},(0,s.A)(o,"ContentPost","report_content.content_type.content_post"),(0,s.A)(o,"Message","report_content.content_type.message"),(0,s.A)(o,"Photo","report_content.content_type.photo"),(0,s.A)(o,"Video","report_content.content_type.video"),(0,s.A)(o,"LiveStream","report_content.content_type.live_stream"),(0,s.A)(o,"BioPic","report_content.content_type.bio_pic"),(0,s.A)(o,"Quickie","report_content.content_type.quickie"),(0,s.A)(o,"Asset","report_content.content_type.asset"),o),u=new Map([[a.Ay.BLACKLABEL,"Blacklabel"],[a.Ay.SCP,"SCP"],[a.Ay.FOUNDATION,"Foundation"],[a.Ay.EXTERNAL_SITE_SHOW,"Foundation"]]);!function(e){e.BLACK_SCREEN="BLACK_SCREEN",e.QUALITY="QUALITY",e.NO_AUDIO="NO_AUDIO",e.AUDIO_SYNC="AUDIO_SYNC",e.CAM2CAM="CAM2CAM",e.STUTTER="STUTTER",e.OTHER="OTHER"}(l||(l={}));var d=(r={},(0,s.A)(r,l.BLACK_SCREEN,{description:"black screen",reportCode:0,stringName:"streaming_issue_black_screen"}),(0,s.A)(r,l.QUALITY,{description:"quality",reportCode:1,stringName:"streaming_issue_quality"}),(0,s.A)(r,l.NO_AUDIO,{description:"missing audio",reportCode:2,stringName:"streaming_issue_audio_missing"}),(0,s.A)(r,l.AUDIO_SYNC,{description:"audio sync",reportCode:3,stringName:"streaming_issue_audio_sync"}),(0,s.A)(r,l.CAM2CAM,{description:"cam2cam",reportCode:4,stringName:"streaming_issue_cam2cam"}),(0,s.A)(r,l.STUTTER,{description:"stutter",reportCode:5,stringName:"streaming_issue_stutter"}),(0,s.A)(r,l.OTHER,{description:"other",reportCode:999,stringName:"streaming_issue_other"}),r)},"./src/constants/Feature.ts":(e,t,n)=>{"use strict";var o;n.d(t,{Ay:()=>s,Zi:()=>r,nt:()=>i}),function(e){e.QUICK_TIP="QUICK_TIP",e.GOLD_MENU="GOLD_MENU",e.SIMILAR_MODELS="SIMILAR_MODELS",e.PHOTOS_TAB="PHOTOS_TAB",e.BIO_TAB="BIO_TAB",e.REPORT_CONTENT_CAPTCHA="REPORT_CONTENT_CAPTCHA",e.REPORT_CONTENT_LIVE_STREAM="REPORT_CONTENT_LIVE_STREAM",e.REPORT_CONTENT_BIO_PIC="REPORT_CONTENT_BIO_PIC",e.REPORT_CONTENT_PHOTO="REPORT_CONTENT_PHOTO",e.BLOCKBUSTER="BLOCKBUSTER"}(o||(o={}));var r=new Set(Object.values(o)),i=new Set([o.REPORT_CONTENT_CAPTCHA,o.REPORT_CONTENT_LIVE_STREAM,o.REPORT_CONTENT_BIO_PIC,o.REPORT_CONTENT_PHOTO]);const s=o},"./src/constants/Feedback.ts":(e,t,n)=>{"use strict";n.d(t,{V:()=>r,l:()=>o});var o,r=25;!function(e){e[e.ALL_COMMENTS=0]="ALL_COMMENTS",e[e.MY_COMMENTS=1]="MY_COMMENTS"}(o||(o={}))},"./src/constants/LayoutConstants.ts":(e,t,n)=>{"use strict";n.d(t,{$c:()=>g,$e:()=>i,Ay:()=>r,In:()=>p,NT:()=>h,QI:()=>y,Rc:()=>l,Tj:()=>m,Yt:()=>d,fi:()=>s,nA:()=>A,so:()=>a,vR:()=>f});var o=n("./node_modules/@atg/icf-react-components/themes/dark.js");const r={DESKTOP:"Desktop",MOBILE:"Mobile",TABLET:"Tablet",LANDSCAPE:"Landscape",PORTRAIT:"Portrait",LANDSCAPE_MIN_RATIO:1.01};var i={DESKTOP:"desktop",DESKTOP_WITH_BIO:"desktopWithBio",FULLSCREEN:"fullscreen",MOBILE:"mobile",PORTRAIT:"portrait",SCP:"scp",TABLET:"tablet",TABLET_WITH_BIO:"tabletWithBio"},s={xxsmall:{min:"none",max:480},xsmall:{min:481,max:768},small:{min:769,max:1024},medium:{min:1025,max:1200},large:{min:1201,max:1440},xlarge:{min:1441,max:1920},xxlarge:{min:1921,max:2560},desktop:{min:830,max:"none"},mobile:{min:"none",max:939}},a="(min-width: ".concat(s.desktop.min,"px) and (max-width: ").concat(s.medium.max,"px)"),l="(max-width: ".concat(s.mobile.max,"px)"),c="(min-aspect-ratio: ".concat(101,"/").concat(100,")"),u="(max-aspect-ratio: ".concat(100,"/").concat(100,")"),d="".concat(l," and ").concat(c),p="".concat(l," and ").concat(u),m={black:"rgb(0, 0, 0)",brownyOrange:"rgb(203, 125, 0)",gray:"rgb(128, 128, 128)",mediumGray:"rgb(102, 102, 102)",darkGray:"rgb(70, 70, 70)",darkerGray:"rgb(45,45,45)",evenDarkerGray:"rgb(33,33,33)",lightGray:"rgb(170, 170, 170)",lighterGray:o.colors.baseContrast040,lightishGray:"rgb(197, 197, 197)",gold:o.colors.gold,errorText:"rgb(217, 83, 79)",green:o.colors.active,red:o.colors.alert,yellowOrange:"rgb(251, 225, 18)"},h={VIDEO_ASPECT_RATIO:16/9,SMALL_VIEWPORT_ASPECT_RATIO:4/3,CTA_CONTAINER_HEIGHT:68,BLACKLABEL_FOOTER_HEIGHT:50,MINIMUM_SIDEBAR_WIDTH:300},A={GOLD_SHOW_CONTAINER:0,SIMILAR_MODELS:1},f={TABS_HEIGHT:48,TAB_CONTENT_CONTAINER_PADDING:16},g={SWIPE_DRAGGER_WIDTH:50,RESIZE_DRAGGER_HEIGHT:50},y={746:307,860:390,719:307,833:443,664:297,778:398,749:380,635:297,622:271,697:315,553:260,628:304}},"./src/constants/Modals.ts":(e,t,n)=>{"use strict";var o;n.d(t,{bM:()=>o,q3:()=>r,yr:()=>i}),function(e){e.CAM2CAM_DIAGNOSTIC_FAILED="CAM2CAM_DIAGNOSTIC_FAILED",e.CAM2CAM_DIAGNOSTIC_SUCCEEDED="CAM2CAM_DIAGNOSTIC_SUCCEEDED",e.COMPLIANCE="COMPLIANCE",e.DAILY_LIMIT="DAILY_LIMIT",e.END_CAM2CAM="END_CAM2CAM",e.ENTER_CAM2CAM="ENTER_CAM2CAM",e.ENTER_PAID="ENTER_PAID",e.ENTER_VOICE_CHAT="ENTER_VOICE_CHAT",e.ESS_ENTER="ESS_ENTER",e.FREEZE="FREEZE",e.GIVE_GOLD="GIVE_GOLD",e.GOLD="GOLD",e.LOADING_PRIVATE="LOADING_PRIVATE",e.MIDSTREAM_BILLING_DECLINED="MIDSTREAM_BILLING_DECLINED",e.NO_SERVICES="NO_SERVICES",e.PAYOFF="PAYOFF",e.POST_PAID="POST_PAID",e.QUICK_TIP_CHANGE_CUSTOM_VALUE="QUICK_TIP_CHANGE_CUSTOM_VALUE",e.QUICK_TIP_CONSENT="QUICK_TIP_CONSENT",e.QUICK_TIP_MOBILE_CONSENT="QUICK_TIP_MOBILE_CONSENT",e.RETRY_CAM2CAM="RETRY_CAM2CAM",e.SNEAK_PREVIEW_EXPIRED="SNEAK_PREVIEW_EXPIRED",e.SPINNER="SPINNER",e.SPOT_RESERVED="SPOT_RESERVED",e.STASH="STASH",e.TERMS="TERMS",e.THANKS="THANKS",e.THANKS_POST_PAID="THANKS_POST_PAID",e.TWO_FACTOR_AUTHENTICATION_REQUIRED="TWO_FACTOR_AUTHENTICATION_REQUIRED",e.PREAUTH_FORM_SALE="PREAUTH_FORM_SALE"}(o||(o={}));var r=new Set([o.THANKS,o.SPOT_RESERVED]),i={GOLD_MENU:"goldmenu",GIVE_GOLD:"givegold",SPIN_GOLD:"spingold"}},"./src/constants/Overlays.ts":(e,t,n)=>{"use strict";var o;n.d(t,{A:()=>r}),function(e){e.NONE="",e.BREAK="BREAK",e.CLOSING_CLIENT="CLOSING_CLIENT",e.DISCONNECT_SYSTEM="DISCONNECT_SYSTEM",e.DISCONNECT_USER="DISCONNECT_USER",e.FORCE_BILLING_INFO_UPDATE="FORCE_BILLING_INFO_UPDATE",e.IN_COUNTDOWN="IN_COUNTDOWN",e.IN_EXCLUSIVE="IN_EXCLUSIVE",e.IN_GOLDSHOW="IN_GOLDSHOW",e.IN_PRIVATE="IN_PRIVATE",e.INVALID_STARTUP="INVALID_STARTUP",e.NO_VALID_DRIVERS="NO_VALID_DRIVERS",e.OFFLINE="OFFLINE",e.ONLINE="ONLINE",e.ROOM_FULL="ROOM_FULL",e.STARTUP_NETWORK_ERROR="STARTUP_NETWORK_ERROR",e.TIMEOUT="TIMEOUT",e.REFRESH_HC="REFRESH_HC",e.WAIT_FOR_SET_UP="WAIT_FOR_SET_UP"}(o||(o={}));const r=o},"./src/constants/Platforms.ts":(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i,CS:()=>c,XZ:()=>u,jU:()=>a,tA:()=>l});var o,r=n("./node_modules/@atg/icf-react-components/themes/Theme.js");!function(e){e.UNKNOWN="unknown",e.BLACKLABEL="blacklabel",e.SCP="scp",e.FOUNDATION="foundation",e.EXTERNAL_SITE_SHOW="ess",e.STREAMFANS="streamfans",e.CAMWILD="camwild"}(o||(o={}));const i=o;var s;!function(e){e.SCP="SCP",e.Blacklabel="Blacklabel",e.GoldOnly="GoldOnly",e.StreamFans="StreamFans",e.Foundation="Foundation"}(s||(s={}));var a,l,c=new Map([[o.BLACKLABEL,s.Blacklabel],[o.SCP,s.SCP],[o.FOUNDATION,s.Foundation],[o.EXTERNAL_SITE_SHOW,s.Foundation],[o.STREAMFANS,s.StreamFans]]);!function(e){e.BLACKLABEL="blacklabel",e.SCP="scp",e.FOUNDATION="foundation",e.EXTERNAL_SITE_SHOW="ess",e.STREAMFANS="streamfans"}(a||(a={})),function(e){e.BLACKLABEL="blacklabel",e.FOUNDATION="foundation",e.SCP="scp"}(l||(l={}));var u=new Map([[o.BLACKLABEL,r.PlatformId.blacklabel],[o.SCP,r.PlatformId.streamate],[o.FOUNDATION,r.PlatformId.streamate],[o.EXTERNAL_SITE_SHOW,r.PlatformId.streamate],[o.CAMWILD,r.PlatformId.streamate],[o.STREAMFANS,r.PlatformId.streamfans]])},"./src/constants/RewardsConstants.ts":(e,t,n)=>{"use strict";var o;n.d(t,{hI:()=>s,iB:()=>r,ve:()=>i}),function(e){e.newbie="newbie",e.bronze="bronze",e.silver="silver",e.gold="gold",e.platinum="platinum"}(o||(o={}));var r=[{tierName:o.newbie,tierId:0},{tierName:o.bronze,tierId:1},{tierName:o.silver,tierId:2},{tierName:o.gold,tierId:3},{tierName:o.platinum,tierId:4}],i="REQUEST_LIVE_CLIENT_REWARDS_INFO",s="LIVE_CLIENT_REWARDS_INFO"},"./src/constants/Session.ts":(e,t,n)=>{"use strict";var o;n.d(t,{E:()=>r,d:()=>o}),function(e){e.PREMIUM="premium",e.EXCLUSIVE="exclusive",e.BLOCK="block",e.RESUME="resume"}(o||(o={}));var r=60},"./src/constants/ShownFeature.ts":(e,t,n)=>{"use strict";var o;n.d(t,{A:()=>r}),function(e){e.PHOTOS="Photos",e.GOLD_MENU="GoldMenu",e.BIO="Bio",e.VIDEOS="Videos",e.FAN_CLUB_BUTTON="FanClubButton",e.SPIN_GOLD="SpinGold"}(o||(o={}));const r=o},"./src/constants/Tenant.ts":(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i,rE:()=>s});var o,r=n("./src/constants/Platforms.ts");!function(e){e.STREAMATE="SM",e.STREAMFANS="SF"}(o||(o={}));const i=o;var s=new Map([[r.Ay.BLACKLABEL,o.STREAMATE],[r.Ay.SCP,o.STREAMATE],[r.Ay.FOUNDATION,o.STREAMATE],[r.Ay.EXTERNAL_SITE_SHOW,o.STREAMATE],[r.Ay.STREAMFANS,o.STREAMFANS]])},"./src/constants/Xment.ts":(e,t,n)=>{"use strict";var o;n.d(t,{A:()=>r}),function(e){e.HYBRIDCLIENT_BASELINE="hybridclientBaseline",e.VIDEO_STARTUP="videoStartup",e.V2_SETUPBIO="v2setupbio",e.MOBILE_CHAT="mobilechat",e.CHAT_HISTORY_MOBILE="chatHistoryMobile",e.CHAT_HISTORY_DESKTOP="chatHistoryDesktop",e.TAGS_FED_MOD="tagsFedMod",e.MEMBERCOMMENTS_FED_MOD="memberCommentsFedMod",e.CHAT_PROMPT_JOIN_MOBILE="chatPromptJoinMobile",e.CHAT_PROMPT_JOIN_DESKTOP="chatPromptJoinDesktop",e.IMPROVED_CAM_PAGE_FULLSCREEN_UI="improvedCamPageFullscreenUI",e.CAM2CAM_UI_MODERNIZATION="cam2CamUIModernization"}(o||(o={}));const r=o},"./src/hooks/useThrottle.ts":(e,t,n)=>{"use strict";n.d(t,{U:()=>s,_:()=>a});var o=n("./node_modules/lodash/throttle.js"),r=n.n(o),i=n("webpack/sharing/consume/default/react/react"),s={leading:!0,trailing:!1},a=function(e,t){return(0,i.useCallback)(r()(e,t,s),[e,t])}},"./src/lib/RoomClient.ts":(e,t,n)=>{"use strict";n.d(t,{yY:()=>E,Ay:()=>B});var o=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),a=n("./node_modules/@babel/runtime/regenerator/index.js"),l=n.n(a),c=n("./node_modules/icf-room-client-user/dist/index.js"),u=n("./node_modules/lodash/isEqual.js"),d=n.n(u),p=n("./src/utils/log.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,r.A)(this,e),this._defaultLabels=t}return(0,i.A)(e,[{key:"_applyLabels",value:function(e){return"string"==typeof e?{message:e,labels:this._defaultLabels}:h(h({},e),{},{labels:h(h({},this._defaultLabels),e.labels)})}},{key:"critical",value:function(e){p.A.error(this._applyLabels(e))}},{key:"error",value:function(e){p.A.error(this._applyLabels(e))}},{key:"warning",value:function(e){p.A.warn(this._applyLabels(e))}},{key:"info",value:function(e){p.A.info(this._applyLabels(e))}},{key:"debug",value:function(e){p.A.debug(this._applyLabels(e))}},{key:"verbose",value:function(e){p.A.debug(this._applyLabels(e))}},{key:"log",value:function(e,t){switch(e){case A:this.critical(t);break;case f:this.error(t);break;case g:this.warning(t);break;case y:this.info(t);break;case v:this.debug(t);break;case b:default:this.verbose(t)}}},{key:"child",value:function(t){return new e(h(h({},this._defaultLabels),t))}}]),e}());var E,S=n("./src/utils/tools.ts"),C=n("./src/lib/Dispatcher.js"),T=n("./src/constants/Actions.js"),O=n("./src/constants/RpcCalls.js"),I=n("./src/constants/StatsEvents.js"),w=n("./src/constants/ChatConstants.ts"),P=n("./src/constants/Globals.js"),k=n("./src/constants/Platforms.ts"),R=n("./src/constants/DisconnectReasons.js");function D(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n{"use strict";n.d(t,{A:()=>O,m:()=>T});var o,r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./src/lib/Dispatcher.js"),d=n("./src/lib/Strings.js"),p=n("./src/constants/Actions.js"),m=n("./src/utils/log.js"),h=n("./src/utils/tools.ts"),A=n("./src/utils/FluxStoreExtended.ts");!function(e){e.ContentComplaintClient="contentcomplaint_client",e.NotificationPreferences="notificationpreferences_client",e.PerformerBio="performerbio"}(o||(o={}));var f=n("./src/constants/Platforms.ts"),g=n("./src/stores/XmentStore.ts"),y=n("./node_modules/@video/log-client/index.js"),v=n("./node_modules/@video/video-client-web/index.js"),b=n("./src/components/videoclient/store/videoClient/VideoClientConstants.ts");function _(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t{"use strict";n.d(t,{A:()=>v});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("./src/lib/Dispatcher.js"),u=n("./src/utils/FluxStoreExtended.ts"),d=n("./src/constants/Actions.js"),p=n("./src/components/videoclient/store/videoClient/VideoClientConstants.ts"),m=n("./src/stores/XmentStore.ts");function h(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,a.A)(e);if(t){var r=(0,a.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,s.A)(this,n)}}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t{"use strict";n.d(t,{A:()=>E});var o=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./src/utils/FluxStoreExtended.ts"),d=n("./src/utils/log.js"),p=n("./src/lib/Dispatcher.js"),m=n("./src/constants/Actions.js"),h=n("./src/constants/LayoutConstants.ts"),A=n("./src/constants/StatsEvents.js"),f=n("./src/constants/ShownFeature.ts");function g(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t10})}},{key:"handleFeatureShown",value:function(e){var t=e.feature;_.camPageLoaded&&(_=v(v({},_),{},{shownFeatures:new Set([].concat((0,o.A)(_.shownFeatures),[t]))}))}},{key:"handleFullscreenChatClicked",value:function(){_.camPageLoaded&&(_=v(v({},_),{},{fullscreenChatClicked:!0}))}},{key:"handleLoadConfig",value:function(){_=v(v({},_),{},{camPageLoaded:!0})}},{key:"handleDisconnect",value:function(){this.logLoms(),this.logShownFeaturesStats(),this.logUsedFeaturesStats()}},{key:"logLoms",value:function(){var e=this.getState(),t=e.panAndZoomScaled,n=e.panAndZoomTranslated,o=e.mobileDragToResizeUsed,r=e.lastOrientationChange,i=e.orientation,s=e.orientationChanges,a=e.layout,l=this.getState(),c=l.landscapeDuration,u=l.portraitDuration;if((n||t)&&d.A.loms({eventname:"MobileVideoTransformV1",translation:n,scale:t}),o&&d.A.loms({eventname:"MobileDragToResizeV1"}),a===h.Ay.MOBILE||a===h.Ay.TABLET){var p=Math.floor((Date.now()-(null!=r?r:Date.now()))/1e3);i===h.Ay.LANDSCAPE?c+=p:u+=p,(c||u)&&d.A.loms({eventname:"MobileOrientationChangeHybridClientV1",landscapeDuration:c,portraitDuration:u,orientationChanges:s,layout:a})}}},{key:"logShownFeaturesStats",value:function(){var e=this.getState().shownFeatures;e.has(f.A.PHOTOS)&&d.A.statsIncCounter(A.A.SHOWN_FEATURES.PHOTOS),e.has(f.A.GOLD_MENU)&&d.A.statsIncCounter(A.A.SHOWN_FEATURES.GOLD_MENU),e.has(f.A.BIO)&&d.A.statsIncCounter(A.A.SHOWN_FEATURES.BIO),e.has(f.A.VIDEOS)&&d.A.statsIncCounter(A.A.SHOWN_FEATURES.VIDEOS),e.has(f.A.FAN_CLUB_BUTTON)&&d.A.statsIncCounter(A.A.SHOWN_FEATURES.FAN_CLUB_BUTTON),e.has(f.A.SPIN_GOLD)&&d.A.statsIncCounter(A.A.SHOWN_FEATURES.SPIN_GOLD)}},{key:"logUsedFeaturesStats",value:function(){this.getState().fullscreenChatClicked&&d.A.statsIncCounter(A.A.CHAT.FULLSCREEN_BUTTON_CLICK)}},{key:"initOrientationTracking",value:function(e,t){_=v(v({},_),{},{layout:e,orientation:t,lastOrientationChange:Date.now()})}},{key:"handleOrientationChange",value:function(){var e=this.getState(),t=e.orientation,n=e.lastOrientationChange,o=e.orientationChanges,r=this.getState(),i=r.landscapeDuration,s=r.portraitDuration,a=Math.floor((Date.now()-(null!=n?n:Date.now()))/1e3),l=t===h.Ay.LANDSCAPE?h.Ay.PORTRAIT:h.Ay.LANDSCAPE;t===h.Ay.LANDSCAPE?i+=a:s+=a,_=v(v({},_),{},{landscapeDuration:i,portraitDuration:s,orientation:l,orientationChanges:o+1,lastOrientationChange:Date.now()})}},{key:"__onDispatch",value:function(e){var t=e.type,n=e.data;switch(t){case m.A.PAN_AND_ZOOM_TRANSLATE:this.handlePandAndZoomTranslate();break;case m.A.PAN_AND_ZOOM_SCALE:this.handlePanAnZoomScale();break;case m.A.VIDEO_DISPLAY_HEIGHT_ADJUSTMENT:this.handleVideoDisplayHeightAdjustment(n);break;case m.A.FEATURE_SHOWN:this.handleFeatureShown(n);break;case m.A.FULLSCREEN_CHAT_CLICKED:this.handleFullscreenChatClicked();break;case m.A.LOAD_CONFIG:this.handleLoadConfig();break;case m.A.DISCONNECT:case m.A.BROWSER_CLOSE:this.handleDisconnect(),this.reset();break;case m.A.RESET:this.reset();break;default:return}this.__emitChange()}}]),n}(u.A))("featureTracker",p.A)},"./src/stores/GoldMenuStore.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("./src/lib/Dispatcher.js"),u=n("./src/lib/Strings.js"),d=n("./src/utils/log.js"),p=n("./src/utils/FluxStoreExtended.ts"),m=n("./node_modules/lodash/cloneDeep.js"),h=n.n(m),A=n("./node_modules/lodash/isEqual.js"),f=n.n(A),g=n("./src/constants/Actions.js");function y(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,a.A)(e);if(t){var r=(0,a.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,s.A)(this,n)}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t{"use strict";n.d(t,{A:()=>E});var o=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./node_modules/@babel/runtime/regenerator/index.js"),d=n.n(u),p=n("./src/lib/Dispatcher.js"),m=n("./src/constants/Actions.js"),h=n("./src/utils/FluxStoreExtended.ts"),A=n("./src/utils/PerformerMediaApi.js"),f=n("./src/stores/XmentStore.ts");function g(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t{"use strict";n.d(t,{A:()=>K});var o=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./node_modules/lodash/cloneDeep.js"),d=n.n(u),p=n("./node_modules/lodash/pick.js"),m=n.n(p),h=n("./node_modules/lodash/pickBy.js"),A=n.n(h),f=n("./node_modules/lodash/isEmpty.js"),g=n.n(f),y=n("./node_modules/lodash/flatten.js"),v=n.n(y),b=n("./src/utils/FluxStoreExtended.ts"),_=n("./src/lib/Dispatcher.js"),E=n("./src/lib/Strings.js"),S=n("./src/lib/AjaxRequest.js"),C=n("./src/utils/log.js"),T=n("./src/constants/RpcCalls.js"),O=n("./src/constants/Actions.js"),I=["a","b","c","d","dd/e","ddd/f","g","h","i","j","k plus"],w=I,P=["a","b","c","d","e","f","g","h","i","j","k plus"],k=["a","b","c","d","dd","e","f","ff","g","gg","h plus"],R=["a","b","c","d","dd","e","f","g","h","i","j plus"];if([w,P,k,R].some((function(e){return e.length!==I.length})))throw new Error("Inconsistent set of bra sizes");var D=new Map([["us",w],["gb",k],["au",R]]),L=n("./src/constants/Feature.ts"),x=n("./src/constants/Platforms.ts"),N=n("./src/constants/StatsEvents.js"),j=n("./src/utils/localization.js"),M=n("./src/stores/UserStore.js"),B=n("./src/constants/Feedback.ts"),U=n("./src/stores/ConfigStore.ts");function G(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function F(e){for(var t=1;t0&&(s[0].photoid?W.photos=s.filter((function(e){return e.photoid&&e.photo_url&&e.thumb_url})).sort((function(e,t){return Number(new Date(t.created_time))-Number(new Date(e.created_time))})):s[0].mediaId&&(W.photos=s.filter((function(e){return e.mediaId&&e.photoUrl&&e.thumbUrl})).sort((function(e,t){return Number(new Date(t.createdTime))-Number(new Date(e.createdTime))})))),W.similarModels=i,l&&l.length>0?W.streamingSchedule=n.localizeStreamingSchedule(l):W.streamingSchedule=Array(7).fill([]).map((function(){return Array(24).fill(0)})),W.id=W.id||Number(null==r?void 0:r.PerformerId)||0,W.snapshot=M.A.isExplicitContentBlocked()?"":null==a?void 0:a.snapshot,W.bioPicLargeUserMediaId=null==a?void 0:a.largeUserMediaId,W.isBlockbuster=null!==(t=null==c?void 0:c[L.Ay.BLOCKBUSTER])&&void 0!==t&&t,W.isExtSSEnabled=null!==(o=null==r?void 0:r.isExtSSEnabled)&&void 0!==o&&o,W.bio=n.localizeBio(W.originalBio,W.lang,W.userCountry)}},{key:"handleFavoriteUpdate",value:function(e){var t=e.isFavorite;W.isFavorite=t}},{key:"inPrivate",value:function(){return W.paused&&!W.onBreak&&!W.inCountdown}},{key:"handleConfigLoaded",value:function(e){var t=e.config;if(t.performer){var n=t.performer,o=n.favorite,r=n.biopicLarge,i=n.id,s=n.nickname;W=F(F({},W),{},{isFavorite:o,biopicLarge:r||W.biopicLarge||"https://".concat((0,U.m)(),"/avatar/").concat(s,".webp"),id:i,nickname:s})}}},{key:"handlePerformerInCam2Cam",value:function(e){var t=e.canAcceptRequests;W.perfInCam2Cam&&t&&setTimeout((function(){return _.A.dispatch({type:O.A.DISPLAY_MESSAGE,data:{message:E.Ay.getString("cam2cam_available")}})})),W=F(F({},W),{},{perfInCam2Cam:!t})}},{key:"handleGoldGiven",value:function(){if(W.vibeShow){window.navigator.vibrate&&window.navigator.vibrate(666)}}},{key:"handleSetVibeSettings",value:function(e){var t=e.vibeSettings;W=F(F({},W),{},{vibeSettings:t})}},{key:"handleRoomVibeStatusUpdate",value:function(e){var t,n,o,r;e&&0===W.vibeSettings.length&&W.id>0&&!W.vibeSettingsRequested?(W=F(F({},W),{},{vibeSettingsRequested:!0}),t=W.id,n=function(t){var n,o,r=null!==(n=null===(o=t.body)||void 0===o?void 0:o.data)&&void 0!==n?n:[];W=F(F({},W),{},{vibeShow:e,vibeSettings:r,vibeSettingsRequested:!1})},o=S.A.getBaseUrl()+"/api/v1/vibes",r={performerId:t},S.A.get(o,r,n)):W=F(F({},W),{},{vibeShow:e})}},{key:"handleSetFeatureVisibility",value:function(e){var t=e.hiddenFeatures,n=void 0;e.shownFeatures.has(L.Ay.SIMILAR_MODELS)&&(n=!0),t.has(L.Ay.SIMILAR_MODELS)&&(n=!1),W=F(F({},W),{},{showSimilarModels:n})}},{key:"handleSetGeoRestricted",value:function(e){var t=e.geoRestricted;W.geoRestricted=t}},{key:"handleSetUserCountry",value:function(e){var t=e.country;W.userCountry=t}},{key:"handleGoldOnlyGoalsChanged",value:function(e){if(e){var t=e.goal,n=e.cost,o=e.progress;W=F(F({},W),{},{goalStatus:{goal:t,cost:n,progress:o}})}}},{key:"handleRequestUserTags",value:function(){if(W.id>0){var e=S.A.getBaseUrl()+"/api/v1/tags/list",t={performerId:W.id};S.A.post(e,t,"json",(function(e){var t,n;_.A.dispatch({type:O.A.USER_TAGS,data:{userTags:null!==(t=null===(n=e.body)||void 0===n?void 0:n.userTags)&&void 0!==t?t:[]}})}),(function(){_.A.dispatch({type:O.A.USER_TAGS,data:{userTags:[]}})}))}}},{key:"handleUserTags",value:function(e){var t=e.userTags;W=F(F({},W),{},{userTags:null!=t?t:[]})}},{key:"handleRemoveUserTag",value:function(e){var t=e.tag,n=S.A.getBaseUrl()+"/api/v1/tags/remove",o={performerId:W.id,tagId:t.tagid};S.A.post(n,o,"json",(function(){C.A.statsIncCounter(N.A.TAG_REMOVED),_.A.dispatch({type:O.A.REQUEST_USER_TAGS})}))}},{key:"handleRequestComments",value:function(e){var t=e.performerId,n=e.page,o=e.pageSize,r=e.commentRequestType,i=S.A.getBaseUrl()+"/api/v1/getcomments",s={performerId:t,page:n,pageSize:o};r===B.l.MY_COMMENTS&&(s.byCurrentUser=!0),W=F(F({},W),{},{feedback:F(F({},W.feedback),{},{isLoading:!0})}),S.A.get(i,s,(function(e){var t,n,o,i;_.A.dispatch({type:O.A.COMMENTS,data:{comments:null!==(t=null===(n=e.body)||void 0===n?void 0:n.comments)&&void 0!==t?t:[],total:null!==(o=null===(i=e.body)||void 0===i?void 0:i.total)&&void 0!==o?o:0,commentRequestType:r}})}),(function(){_.A.dispatch({type:O.A.COMMENTS,data:{comments:[],total:0,commentRequestType:r}})}))}},{key:"handleComments",value:function(e){var t,r,i,s=e.comments,a=e.total,l=e.commentRequestType===B.l.MY_COMMENTS,u=l?"myComments":"allComments",d=l?"myCommentsTotal":"allCommentsTotal";W=F(F({},W),{},{feedback:F(F({},W.feedback),{},(i={},(0,c.A)(i,u,[].concat((0,o.A)(null!==(t=null===(r=W.feedback)||void 0===r?void 0:r[u])&&void 0!==t?t:[]),(0,o.A)(n.localizeComments(s)))),(0,c.A)(i,d,a),(0,c.A)(i,"isLoading",!1),i))})}},{key:"handleRoomStatusChanged",value:function(e){W=F(F({},W),{},{onBreak:"onBreak"===e.status})}},{key:"reset",value:function(){W=F(F({},H),m()(W,Object.keys(Y)))}},{key:"__onDispatch",value:function(e){var t=e.type,n=e.data;switch(t){case T.A.ROOM_CLIENT_STATUS_CHANGED:this.handleRoomStatusChanged(n);break;case T.A.ROOM_VIBE_STATUS_UPDATE:this.handleRoomVibeStatusUpdate(n);break;case T.A.ROOM_CLIENT_GOLD_ONLY_GOAL_STATUS_CHANGED:this.handleGoldOnlyGoalsChanged(n);break;case T.A.ROOM_CLIENT_GIVE_GOLD:case T.A.ROOM_CLIENT_PLEDGE_GOLD:if(n.failed)return;this.handleGoldGiven();break;case O.A.LOAD_CONFIG:this.handleConfigLoaded(n);break;case O.A.FAVORITE_UPDATE:this.handleFavoriteUpdate(n);break;case O.A.PERFORMER_BIO_INFO:this.handlePerformerInfo(n);break;case O.A.UPDATE_USER_PREFERRED_LANG:this.setLanguage(n.lang);break;case O.A.SET_FEATURE_VISIBILITY:this.handleSetFeatureVisibility(n);break;case O.A.SET_GEO_RESTRICTED:this.handleSetGeoRestricted(n);break;case O.A.SET_USER_COUNTRY:this.handleSetUserCountry(n);break;case O.A.REQUEST_USER_TAGS:this.handleRequestUserTags();break;case O.A.USER_TAGS:this.handleUserTags(n);break;case O.A.REQUEST_COMMENTS:this.handleRequestComments(n);break;case O.A.COMMENTS:this.handleComments(n);break;case O.A.REMOVE_USER_TAG:this.handleRemoveUserTag(n);break;case O.A.RESET:this.reset();break;default:return}this.__emitChange()}}],[{key:"localizeStreamingSchedule",value:function(e){var t=v()(e),n=(0,o.A)(t),r=Math.round((new Date).getTimezoneOffset()/60);r>0&&(n.push.apply(n,(0,o.A)(t.slice(0,r))),n.splice(0,r)),r<0&&(n.unshift.apply(n,(0,o.A)(t.slice(r))),n.splice(r));for(var i=[],s=0;s{"use strict";n.d(t,{A:()=>v,V:()=>g});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("./src/lib/Dispatcher.js"),u=n("./src/utils/FluxStoreExtended.ts"),d=n("./src/constants/Actions.js"),p=n("./src/constants/RpcCalls.js"),m=n("./src/utils/log.js");function h(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,a.A)(e);if(t){var r=(0,a.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,s.A)(this,n)}}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t{"use strict";n.d(t,{Ay:()=>E});var o,r,i=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),d=n("./src/lib/Dispatcher.js"),p=n("./src/utils/FluxStoreExtended.ts"),m=n("./src/utils/log.js"),h=n("./src/constants/Actions.js"),A=n("./src/constants/RpcCalls.js"),f=n("./src/stores/ConnectionStore.js");function g(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];_.storedRpcCallAction&&((0,d.T)(_.storedRpcCallAction),_.storedRpcCallAction=void 0),_.isSpinning=!1,_.isModalOpen=!1,_.resultKeyword=void 0,_.modalState=o.PRESPIN,e&&(0,d.T)({type:h.A.CLOSE_MODAL})}},{key:"handleSpinGoldSpin",value:function(){_.isSpinning=!0,(0,d.T)({type:h.A.MODAL_CLOSE_BUTTON_HIDE})}},{key:"handlePreRpcCall",value:function(e){if(e.type===A.A.ROOM_CLIENT_GIVE_GOLD&&_.isSpinning){var t,n=e.data;if(n.failed)return void m.A.error({message:"spingold-error-handlePreRpcCall-failed",data:e});e.intercept(),_.storedRpcCallAction={type:e.type,data:e.data},_.resultKeyword=n.keyword,!_.resultKeyword&&null!==(t=_.items)&&void 0!==t&&t.length&&m.A.error({message:"spingold-error-keyword-not-found-failed",data:e})}}},{key:"handlePerformerBioInfo",value:function(e){var t=e.spinGoldMenus,n=void 0===t?{}:t;_.menus=n,this.setupSpinGoldMenu()}},{key:"setupSpinGoldMenu",value:function(){var e=f.A.isGoldOnlyStream()?r.WILD:r.DEFAULT,t=_.menus[e];t&&t.cost>0&&t.items.length>0?this.setSpinGoldMenu(t,e):this.disableSpinGoldMenu()}},{key:"handleRoomStatusChanged",value:function(e){"freeChat"===e.status&&this.setupSpinGoldMenu()}},{key:"handleReset",value:function(){_=v({},b)}},{key:"__onDispatch",value:function(e){var t=e.type,n=e.data;switch(t){case h.A.RESET:this.handleReset();break;case h.A.PERFORMER_BIO_INFO:this.handlePerformerBioInfo(n);break;case h.A.OPEN_GOLD_MODAL:this.handleModalOpen();break;case h.A.CLOSE_MODAL:this.handleModalClose();break;case h.A.SPIN_GOLD_CLOSE:this.handleSpinGoldClose();break;case h.A.SPIN_GOLD_SPIN:this.handleSpinGoldSpin();break;case h.A.PRE_RPC_CALL:this.handlePreRpcCall(n);break;case A.A.ROOM_CLIENT_STATUS_CHANGED:this.handleRoomStatusChanged(n);break;default:return}this.__emitChange()}}]),n}(p.A))("spinGold",d.A)},"./src/stores/UserListStore.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("./src/lib/Dispatcher.js"),u=n("./src/utils/FluxStoreExtended.ts"),d=n("./src/constants/Actions.js"),p=n("./src/constants/RpcCalls.js"),m=n("./src/constants/Session.ts");function h(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,a.A)(e);if(t){var r=(0,a.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,s.A)(this,n)}}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;tv.maxTotalUsers?e.totalUsers:v.maxTotalUsers,isRequestingPrivate:!1,isSolePrivateUser:e.isSolePrivateUser})):v.storedRoomClientUserListUpdate=e}},{key:"handleRoomClientSetUserListUpdatesEnabled",value:function(e){v.useRoomClientUserListUpdates=e,v.storedRoomClientUserListUpdate&&(this.handleRoomClientUserCountUpdated(v.storedRoomClientUserListUpdate),v.storedRoomClientUserListUpdate=void 0)}},{key:"onRequestPrivate",value:function(e){var t=e.sessionType;v=f(f({},v),{},{isRequestingPrivate:t===m.d.PREMIUM})}},{key:"setTimeoutForAllowingExclusiveUpgrade",value:function(){return setTimeout((function(){c.A.dispatch({type:d.A.ALLOW_EXCLUSIVE_UPGRADE_IF_ELIGIBLE})}),g)}},{key:"allowExclusiveUpgradeIfEligible",value:function(){v=f(f({},v),{},{allowExclusiveUpgrade:v.isSolePrivateUser})}},{key:"__onDispatch",value:function(e){var t=e.type,n=e.data;switch(t){case p.A.ROOM_CLIENT_SET_USERLIST_UPDATES_ENABLED:this.handleRoomClientSetUserListUpdatesEnabled(n);break;case p.A.ROOM_CLIENT_USER_COUNT_UPDATED:this.handleRoomClientUserCountUpdated(n);break;case d.A.RESET:this.reset();break;case d.A.USER_REQUEST_PRIVATE:this.onRequestPrivate(n);break;case d.A.ALLOW_EXCLUSIVE_UPGRADE_IF_ELIGIBLE:this.allowExclusiveUpgradeIfEligible();break;default:return}this.__emitChange()}}]),n}(u.A))("userList",c.A)},"./src/stores/XmentStore.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var o,r=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),i=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),a=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),l=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),c=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),u=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),d=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),p=n("./node_modules/@babel/runtime/regenerator/index.js"),m=n.n(p),h=n("./node_modules/lodash/noop.js"),A=n.n(h),f=n("./src/utils/FluxStoreExtended.ts"),g=n("./src/utils/log.js"),y=n("./src/utils/log/LogDecorator.js"),v=n("./src/utils/tools.ts"),b=n("./src/lib/Dispatcher.js"),_=n("./src/lib/AjaxRequest.js"),E=n("./src/constants/Actions.js"),S=n("./src/constants/Xment.ts"),C=n("./src/constants/Messages.js");function T(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n1&&void 0!==arguments[1]?arguments[1]:A();if("string"!=typeof e)throw new Error("xmentName must be a string");if("function"!=typeof n)throw new Error("callback must be a function");var o=this.getState();if(void 0===o.none){var r=o[e];if(void 0===r)if(this.xmentRequestCallbacks.has(e)){var i;null===(i=this.xmentRequestCallbacks.get(e))||void 0===i||i.push(n)}else{this.xmentRequestCallbacks.set(e,[n]);var s=_.A.getBaseUrl(),a="".concat(s,"/api/v1/xment/select");try{_.A.post(a,{name:e,siteDomain:this.domain||window.location.host,siteId:this.siteId?this.siteId:null},"json",(function(n){var o=-1;n.body&&n.body.isInXment&&(o=1),n.body&&void 0!==n.body.xmentCondition&&(o=n.body.xmentCondition,g.A.info("xment: ".concat(e,": ").concat(o)),o>-1&&g.A.statsIncCounter("session.xment.".concat(e))),t.setXment(e,o,t.xmentRequestCallbacks.get(e)),t.xmentRequestCallbacks.delete(e)}),(function(n){g.A.warn({message:"Xment call error",data:n}),t.setXment(e,-1,t.xmentRequestCallbacks.get(e)),t.xmentRequestCallbacks.delete(e)}))}catch(t){g.A.error({message:"Xment call error",data:t}),this.setXment(e,-1,this.xmentRequestCallbacks.get(e)),this.xmentRequestCallbacks.delete(e)}}else n(r,e)}else this.setXment(e,0,[n])}},{key:"setXment",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=-1===t?0:t;D=P(P({},D),{},(0,d.A)({},e,r)),y.A.set("xment.".concat(e),r),n.forEach((function(t){return t(r,e)})),(0,b.T)({type:E.A.XMENT_UPDATE,data:{xmentName:e,xmentCondition:r}}),(0,v.Zj)(C.A.IN_XMENT,{xmentName:e,xmentCondition:t,forced:o})}},{key:"reset",value:function(){D=P({},R)}},{key:"__onDispatch",value:function(e){var t=e.type,n=e.data;switch(t){case E.A.XMENT_REQUEST:this.checkXment(n.xmentName);break;case E.A.XMENT_UPDATE:break;default:return}this.__emitChange()}}]),o}(f.A))("xment",b.A)},"./src/utils/Favorite.ts":(e,t,n)=>{"use strict";n.d(t,{xF:()=>T});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),i=n("./node_modules/@babel/runtime/regenerator/index.js"),s=n.n(i),a=n("./node_modules/lodash/omitBy.js"),l=n.n(a),c=n("./src/constants/Actions.js"),u=n("./src/constants/StatsEvents.js"),d=n("./src/constants/Messages.js"),p=n("./src/constants/NaiadSessionType.js"),m=n("./src/constants/Platforms.ts"),h=n("./src/lib/AjaxRequest.js"),A=n("./src/lib/Dispatcher.js"),f=n("./src/lib/Strings.js"),g=n("./src/stores/ConfigStore.ts"),y=n("./src/stores/PerformerStore.ts"),v=n("./src/stores/UserStore.js"),b=n("./src/utils/log.js"),_=n("./src/utils/tools.ts");function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t{"use strict";n.d(t,{a:()=>l});var o=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=n("./src/utils/tools.ts"),i={ad:{x:-448,y:-120},ae:{x:-448,y:-96},af:{x:-448,y:-72},ag:{x:-448,y:-48},ai:{x:-448,y:-24},al:{x:-448,y:0},am:{x:-416,y:-408},ao:{x:-384,y:-408},aq:{x:-352,y:-408},ar:{x:-320,y:-408},as:{x:-288,y:-408},at:{x:-256,y:-408},au:{x:-224,y:-408},aw:{x:-192,y:-408},ax:{x:-160,y:-408},az:{x:-128,y:-408},ba:{x:-96,y:-408},bb:{x:-64,y:-408},bd:{x:-32,y:-408},be:{x:0,y:-408},bf:{x:-416,y:-384},bg:{x:-416,y:-360},bh:{x:-416,y:-336},bi:{x:-416,y:-312},bj:{x:-416,y:-288},bl:{x:-416,y:-264},bm:{x:-416,y:-240},bn:{x:-416,y:-216},bo:{x:-416,y:-192},bq:{x:-416,y:-168},br:{x:-416,y:-144},bs:{x:-416,y:-120},bt:{x:-416,y:-96},bv:{x:-416,y:-72},bw:{x:-416,y:-48},by:{x:-416,y:-24},bz:{x:-416,y:0},ca:{x:-384,y:-384},cc:{x:-352,y:-384},cd:{x:-320,y:-384},cf:{x:-288,y:-384},cg:{x:-256,y:-384},ch:{x:-224,y:-384},ci:{x:-192,y:-384},ck:{x:-160,y:-384},cl:{x:-128,y:-384},cm:{x:-96,y:-384},cn:{x:-64,y:-384},co:{x:-32,y:-384},cr:{x:0,y:-384},cu:{x:-384,y:-360},cv:{x:-384,y:-336},cw:{x:-384,y:-312},cx:{x:-384,y:-288},cy:{x:-384,y:-264},cz:{x:-384,y:-240},de:{x:-384,y:-216},dj:{x:-384,y:-192},dk:{x:-384,y:-168},dm:{x:-384,y:-144},do:{x:-384,y:-120},dz:{x:-384,y:-96},ec:{x:-384,y:-72},ee:{x:-384,y:-48},eg:{x:-384,y:-24},eh:{x:-384,y:0},er:{x:-352,y:-360},es:{x:-256,y:-360},"es-ca":{x:-320,y:-360},"es-ga":{x:-288,y:-360},et:{x:-224,y:-360},eu:{x:-192,y:-360},fi:{x:-160,y:-360},fj:{x:-128,y:-360},fk:{x:-96,y:-360},fm:{x:-64,y:-360},fo:{x:-32,y:-360},fr:{x:0,y:-360},ga:{x:-352,y:-336},gb:{x:-192,y:-336},"gb-eng":{x:-320,y:-336},"gb-nir":{x:-288,y:-336},"gb-sct":{x:-256,y:-336},"gb-wls":{x:-224,y:-336},gd:{x:-160,y:-336},ge:{x:-128,y:-336},gf:{x:-96,y:-336},gg:{x:-64,y:-336},gh:{x:-32,y:-336},gi:{x:0,y:-336},gl:{x:-352,y:-312},gm:{x:-352,y:-288},gn:{x:-352,y:-264},gp:{x:-352,y:-240},gq:{x:-352,y:-216},gr:{x:-352,y:-192},gs:{x:-352,y:-168},gt:{x:-352,y:-144},gu:{x:-352,y:-120},gw:{x:-352,y:-96},gy:{x:-352,y:-72},hk:{x:-352,y:-48},hm:{x:-352,y:-24},hn:{x:-352,y:0},hr:{x:-320,y:-312},ht:{x:-288,y:-312},hu:{x:-256,y:-312},id:{x:-224,y:-312},ie:{x:-192,y:-312},il:{x:-160,y:-312},im:{x:-128,y:-312},in:{x:-96,y:-312},io:{x:-64,y:-312},iq:{x:-32,y:-312},ir:{x:0,y:-312},is:{x:-320,y:-288},it:{x:-320,y:-264},je:{x:-320,y:-240},jm:{x:-320,y:-216},jo:{x:-320,y:-192},jp:{x:-320,y:-168},ke:{x:-320,y:-144},kg:{x:-320,y:-120},kh:{x:-320,y:-96},ki:{x:-320,y:-72},km:{x:-320,y:-48},kn:{x:-320,y:-24},kp:{x:-320,y:0},kr:{x:-288,y:-288},kw:{x:-256,y:-288},ky:{x:-224,y:-288},kz:{x:-192,y:-288},la:{x:-160,y:-288},lb:{x:-128,y:-288},lc:{x:-96,y:-288},li:{x:-64,y:-288},lk:{x:-32,y:-288},lr:{x:0,y:-288},ls:{x:-288,y:-264},lt:{x:-288,y:-240},lu:{x:-288,y:-216},lv:{x:-288,y:-192},ly:{x:-288,y:-168},ma:{x:-288,y:-144},mc:{x:-288,y:-120},md:{x:-288,y:-96},me:{x:-288,y:-72},mf:{x:-288,y:-48},mg:{x:-288,y:-24},mh:{x:-288,y:0},mk:{x:-256,y:-264},ml:{x:-224,y:-264},mm:{x:-192,y:-264},mn:{x:-160,y:-264},mo:{x:-128,y:-264},mp:{x:-96,y:-264},mq:{x:-64,y:-264},mr:{x:-32,y:-264},ms:{x:0,y:-264},mt:{x:-256,y:-240},mu:{x:-224,y:-240},mv:{x:-192,y:-240},mw:{x:-160,y:-240},mx:{x:-128,y:-240},my:{x:-96,y:-240},mz:{x:-64,y:-240},na:{x:-32,y:-240},nc:{x:0,y:-240},ne:{x:-256,y:-216},nf:{x:-256,y:-192},ng:{x:-256,y:-168},ni:{x:-256,y:-144},nl:{x:-256,y:-120},no:{x:-256,y:-96},np:{x:-256,y:-72},nr:{x:-256,y:-48},nu:{x:-256,y:-24},nz:{x:-256,y:0},om:{x:-224,y:-216},pa:{x:-192,y:-216},pe:{x:-160,y:-216},pf:{x:-128,y:-216},pg:{x:-96,y:-216},ph:{x:-64,y:-216},pk:{x:-32,y:-216},pl:{x:0,y:-216},pm:{x:-224,y:-192},pn:{x:-224,y:-168},pr:{x:-224,y:-144},ps:{x:-224,y:-120},pt:{x:-224,y:-96},pw:{x:-224,y:-72},py:{x:-224,y:-48},qa:{x:-224,y:-24},re:{x:-224,y:0},ro:{x:-192,y:-192},rs:{x:-160,y:-192},ru:{x:-128,y:-192},rw:{x:-96,y:-192},sa:{x:-64,y:-192},sb:{x:-32,y:-192},sc:{x:0,y:-192},sd:{x:-192,y:-168},se:{x:-192,y:-144},sg:{x:-192,y:-120},sh:{x:-192,y:-96},si:{x:-192,y:-72},sj:{x:-192,y:-48},sk:{x:-192,y:-24},sl:{x:-192,y:0},sm:{x:-160,y:-168},sn:{x:-128,y:-168},so:{x:-96,y:-168},sr:{x:-64,y:-168},ss:{x:-32,y:-168},st:{x:0,y:-168},sv:{x:-160,y:-144},sx:{x:-128,y:-144},sy:{x:-96,y:-144},sz:{x:-64,y:-144},tc:{x:-32,y:-144},td:{x:0,y:-144},tf:{x:-160,y:-120},tg:{x:-160,y:-96},th:{x:-160,y:-72},tj:{x:-160,y:-48},tk:{x:-160,y:-24},tl:{x:-160,y:0},tm:{x:-128,y:-120},tn:{x:-96,y:-120},to:{x:-64,y:-120},tr:{x:-32,y:-120},tt:{x:0,y:-120},tv:{x:-128,y:-96},tw:{x:-128,y:-72},tz:{x:-128,y:-48},ua:{x:-128,y:-24},ug:{x:-128,y:0},um:{x:-96,y:-96},un:{x:-64,y:-96},us:{x:-32,y:-96},uy:{x:0,y:-96},uz:{x:-96,y:-72},va:{x:-96,y:-48},vc:{x:-96,y:-24},ve:{x:-96,y:0},vg:{x:-64,y:-72},vi:{x:-32,y:-72},vn:{x:0,y:-72},vu:{x:-64,y:-48},wf:{x:-32,y:-48},ws:{x:0,y:-48},xk:{x:-64,y:-24},ye:{x:-64,y:0},yt:{x:-32,y:-24},za:{x:0,y:-24},zm:{x:-32,y:0},zw:{x:0,y:0}},s=new Map,a=o.Ay.div.withConfig({displayName:"FlagsMap__FlagBase",componentId:"sc-t7k1v-0"})(['display:inline-block;background-size:240px 216px;width:15px;height:11px;background-image:url("data:image/png;base64,','");'],"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");function l(e){var t,n=(0,r.x1)(i,e);return void 0===n?null:(s.has(e)||s.set(e,(0,o.Ay)(a).withConfig({displayName:"FlagsMap",componentId:"sc-t7k1v-1"})(["&{background-position:","px ","px;}"],n.x/2,n.y/2)),null!==(t=s.get(e))&&void 0!==t?t:null)}},"./src/utils/FluxStoreExtended.ts":(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),s=n("./node_modules/@babel/runtime/helpers/esm/get.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),d=n("./node_modules/flux/lib/FluxStore.js"),p=n.n(d),m=n("./node_modules/lodash/noop.js"),h=n.n(m),A=n("./src/utils/log.js");function f(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}var g=function(e){(0,a.A)(n,e);var t=f(n);function n(e,r){var s;if((0,o.A)(this,n),s=t.call(this,r),(0,u.A)((0,i.A)(s),"shortName",void 0),!e)throw new Error("shortName must be provided");return s.shortName=e,s}return(0,r.A)(n,[{key:"addListener",value:function(e,t){return e||A.A.error({message:"flux-store-listener-not-defined",storeName:this.shortName,stack:(new Error).stack,calleeIdentifier:t}),(o=n,r="addListener",i=this,a=3,l=(0,s.A)((0,c.A)(1&a?o.prototype:o),r,i),2&a&&"function"==typeof l?function(e){return l.apply(i,e)}:l)([e||h()]);var o,r,i,a,l}}]),n}(p())},"./src/utils/TranslationProvider.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=n("webpack/sharing/consume/default/react/react"),i=n.n(r),s=n("./src/utils/withTranslations.tsx"),a=n("./src/lib/Strings.js");const l=function(e){var t=e.language,n=e.children,l=(0,r.useState)(a.Ay.getLoadedLanguage()),c=(0,o.A)(l,2),u=c[0],d=c[1];(0,r.useEffect)((function(){a.Ay.setLanguage(t).then((function(){return d(a.Ay.getLoadedLanguage())}))}),[t]);var p=(0,r.useMemo)((function(){return{getString:function(){return a.Ay.getString.apply(a.Ay,arguments)},stringExists:function(){return a.Ay.stringExists.apply(a.Ay,arguments)}}}),[u]);return i().createElement(s.x.Provider,{value:p},n)}},"./src/utils/billing.ts":(e,t,n)=>{"use strict";n.d(t,{F:()=>A});var o,r=n("./src/stores/UserStore.js"),i=n("./src/stores/PerformerStore.ts"),s=n("./src/stores/GoldShowStore.js"),a=n("./src/lib/Dispatcher.js"),l=n("./src/utils/log.js"),c=n("./src/utils/tools.ts"),u=n("./src/constants/Actions.js"),d=n("./src/constants/Messages.js"),p=n("./src/constants/NaiadSessionType.js");!function(e){e[e.NONE=0]="NONE",e[e.TWO_FACTOR_AUTHENTICATION_REQUIRED=1]="TWO_FACTOR_AUTHENTICATION_REQUIRED",e[e.REQUIRE_AUTH=2]="REQUIRE_AUTH",e[e.NON_PREMIUM_USER=3]="NON_PREMIUM_USER",e[e.NON_BILLABLE_USER=4]="NON_BILLABLE_USER",e[e.REDIRECT_TO_CONFIRM=5]="REDIRECT_TO_CONFIRM",e[e.NO_SERVICES=6]="NO_SERVICES",e[e.PAYOFF=7]="PAYOFF"}(o||(o={}));var m=function(e){var t=e.owedAmount,n=e.userType,r=e.isNonBillable,i=e.redirectToConfirm;return e.twoFactorAuthenticationRequired?o.TWO_FACTOR_AUTHENTICATION_REQUIRED:n===p.A.PREVIEW?o.REQUIRE_AUTH:n===p.A.BASIC?o.NON_PREMIUM_USER:n===p.A.EXTERNAL?o.REQUIRE_AUTH:r?o.NON_BILLABLE_USER:i?o.REDIRECT_TO_CONFIRM:-9===t?o.NO_SERVICES:t>0?o.PAYOFF:o.NONE},h=function(e,t){var n=t.userType,r=t.owedString,p=t.givingGold,m=void 0!==p&&p;switch(e){case o.TWO_FACTOR_AUTHENTICATION_REQUIRED:(0,a.T)({type:u.A.OPEN_TWO_FACTOR_AUTHENTICATION_REQUIRED_MODAL});break;case o.REQUIRE_AUTH:l.A.usage("requires_auth",n),(0,c.Zj)(d.A.REQUIRES_AUTH,{userType:n});break;case o.NON_PREMIUM_USER:l.A.usage("user_nonpremium",n),(0,c.Zj)(d.A.NONPREMIUM_USER,{});break;case o.NON_BILLABLE_USER:l.A.usage("user_nonbillable",n),(0,c.Zj)(d.A.NONBILLABLE_USER,{});break;case o.REDIRECT_TO_CONFIRM:!function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l.A.usage("user_redirect_confirm");var t=i.A.getState(),n=t.id,o={pid:n};s.A.isActive()?o.gs=1:e&&(o.gg=1),(0,c.Zj)(d.A.CONFIRM,o)}(m);break;case o.NO_SERVICES:(0,a.T)({type:u.A.SHOW_NO_SERVICES_MODAL});break;case o.PAYOFF:(0,a.T)({type:u.A.SHOW_PAYOFF_MODAL,data:{owedString:r}});break;default:return}},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.performAction,n=void 0===t||t,i=e.givingGold,s=void 0!==i&&i,a=r.A.getState(),l=a.owedAmount,c=a.owedString,u=a.userType,d=a.isNonBillable,p=a.redirectToConfirm,A=a.twoFactorAuthenticationRequired,f=m({owedAmount:l,userType:u,isNonBillable:d,redirectToConfirm:p,twoFactorAuthenticationRequired:A});return n&&h(f,{userType:u,owedString:c,givingGold:s}),f===o.NONE}},"./src/utils/complaint.ts":(e,t,n)=>{"use strict";n.d(t,{b:()=>c,u:()=>l});var o=n("./src/utils/log.js"),r=n("./src/stores/PerformerStore.ts"),i=n("./src/stores/ConnectionStore.js"),s=n("./src/stores/VideoControlsStore.js"),a=n("./src/constants/Feature.ts"),l=function(e,t){if("LiveStream"===e){var n,a,l,c,u=i.A.getState().performerStreamId;if(!u)return void o.A.warn("complaint-getdefaultlookupdata-missing-performerstreamid");var d=null===(n=s.A.getState().manifestData.formats)||void 0===n||null===(a=n["mp4-hls"])||void 0===a||null===(l=a.encodings)||void 0===l||null===(c=l[0])||void 0===c?void 0:c.videoPts;return d?{performerStreamId:String(u),videoPts:String(d)}:{performerStreamId:String(u)}}if("BioPic"===e){var p=r.A.getState().bioPicLargeUserMediaId;return p?{userMediaId:String(p)}:void o.A.debug("complaint-getdefaultlookupdata-missing-biopiclargeusermediaid")}if("Photo"===e){var m=t.photoid,h=t.mediaId;return h||m?{mediaId:m?String(m):h}:void o.A.debug("complaint-getdefaultlookupdata-missing-photoid")}},c=function(e){var t=e.typeAttributes;return t.includes("LiveStream")?a.Ay.REPORT_CONTENT_LIVE_STREAM:t.includes("BioPic")?a.Ay.REPORT_CONTENT_BIO_PIC:t.includes("Photo")?a.Ay.REPORT_CONTENT_PHOTO:void 0}},"./src/utils/createAsyncComponent.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),i=n("./node_modules/@babel/runtime/regenerator/index.js"),s=n.n(i),a=n("webpack/sharing/consume/default/react/react"),l=n.n(a),c=n("./src/components/common/Spinner.tsx"),u=n("./src/utils/tools.ts"),d=n("./src/utils/log.js"),p=n("./src/constants/Globals.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t1&&void 0!==d[1]?d[1]:{},o=n.maxRetries,r=void 0===o?3:o,i=n.useExponentialBackoffDelay,a=void 0!==i&&i,c=0;case 3:if(!(c1&&void 0!==arguments[1]?arguments[1]:{},n=t.fallback,o=void 0===n?l().createElement(c.A,null):n,r=t.displayName,i=(0,a.lazy)((function(){return g(e,{useExponentialBackoffDelay:!0}).then((function(e){return e})).catch((function(e){p.A.DEBUG,d.A.error({message:"chunk-load-failed",error:(0,u.Rm)(e)})}))})),s=function(e){return l().createElement(a.Suspense,{fallback:o},l().createElement(i,h({},e)))};return r&&(s.displayName="".concat(r,"Async")),s}},"./src/utils/forPlatforms.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),i=n("webpack/sharing/consume/default/react/react"),s=n.n(i),a=n("./node_modules/prop-types/index.js"),l=n.n(a),c=n("./src/constants/Platforms.ts"),u=n("./src/constants/Globals.js");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){if("object"!==(0,r.A)(e))throw new Error("config is not an object.");if(void 0===e.include&&void 0===e.exclude)throw new Error("config does not have an include or exclude.");if(void 0!==e.include&&void 0!==e.exclude)throw new Error("config cannot have both include and exclude defined.");return Object.keys(e).forEach((function(t){return function(t){var n=e[t];if(void 0!==n){if(!Array.isArray(n)||0===n.length)throw new Error("".concat(t," is not an array or is empty."));var o=n.filter((function(e){return!Object.values(c.jU).includes(e)}));if(o.length>0)throw new Error("Invalid platforms provided: ".concat(o.join(", ")))}}(t)})),function(t){if(!t)throw new Error("InnerComponent is not defined.");var n=function(n,r){if(!u.A.DEBUG||r.platform!==c.Ay.UNKNOWN){if(e.exclude&&e.exclude.includes(r.platform))return null;if(e.include&&!e.include.includes(r.platform))return null}return s().createElement(t,function(e){for(var t=1;t{"use strict";n.d(t,{w:()=>p,z:()=>m});var o=n("./src/stores/ConnectionStore.js"),r=n("./src/stores/OverlayStore.js"),i=n("./src/stores/GoldMenuStore.ts"),s=n("./src/stores/GoldShowStore.js"),a=n("./src/stores/ModalStore.js"),l=n("./src/stores/PerformerStore.ts"),c=n("./src/stores/UserStore.js"),u=n("./src/constants/Connection.js"),d=n("./src/constants/Platforms.ts"),p=[o.A,s.A,a.A,r.A,l.A],m=function(){var e=o.A.getState(),t=e.started,n=e.clientState,p=e.goldOnly,m=i.A.getState(),h=m.goldMenuItems,A=m.goldOnlyGoldMenuItems,f=a.A.getState(),g=f.modal,y=f.goldPending,v=r.A.getState().overlay,b=l.A.getState().onBreak,_=l.A.getState().platform===d.Ay.STREAMFANS,E=c.A.getState().goldMenuDisabled,S=Boolean((p?A:h).length),C=n===u.Ay.PLAYING||n===u.Ay.PAUSED&&!b;return{visible:S&&o.A.isGuestStream()&&!s.A.isActive()&&!v&&!E&&!_,enabled:C&&!y&&!g&&t}}},"./src/utils/messenger.ts":(e,t,n)=>{"use strict";n.d(t,{R:()=>l});var o=n("./src/stores/UserStore.js"),r=n("./src/stores/PerformerStore.ts"),i=n("./src/utils/log.js"),s=n("./src/utils/tools.ts"),a=n("./src/constants/Messages.js"),l=function(){if(i.A.usageTick("private_message_me_clicked"),o.A.isLoggedIn())if(o.A.isPremium()){var e=r.A.getState(),t=e.id,n=e.nickname;(0,s.Zj)(a.A.MESSENGER_CONVERSATION,{nickname:n,performerid:t})}else(0,s.Zj)(a.A.NONBILLABLE_USER);else(0,s.Zj)(a.A.REQUIRES_AUTH)}},"./src/utils/spinGold.ts":(e,t,n)=>{"use strict";n.d(t,{Q:()=>p,R:()=>d});var o=n("./src/stores/ConnectionStore.js"),r=n("./src/stores/OverlayStore.js"),i=n("./src/stores/GoldShowStore.js"),s=n("./src/stores/ModalStore.js"),a=n("./src/stores/PerformerStore.ts"),l=n("./src/stores/SpinGoldStore.ts"),c=n("./src/constants/Connection.js"),u=n("./src/constants/Platforms.ts"),d=[o.A,i.A,s.A,r.A,a.A,l.Ay],p=function(){var e=o.A.getState(),t=e.started,n=e.clientState,d=a.A.getState().onBreak,p=a.A.getState().platform===u.Ay.STREAMFANS,m=s.A.getState(),h=m.modal,A=m.goldPending,f=r.A.getState().overlay,g=l.Ay.getState().isEnabled,y=n===c.Ay.PLAYING||n===c.Ay.PAUSED&&!d;return{isVisible:g&&o.A.isGuestStream()&&!i.A.isActive()&&!f&&!p,isEnabled:y&&!A&&!h&&t}}},"./src/utils/tools.ts":(e,t,n)=>{"use strict";n.d(t,{Q8:()=>g,Rm:()=>f,Zj:()=>p,bh:()=>y,hD:()=>A,qE:()=>h,wm:()=>m,x1:()=>v});var o=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=n("./node_modules/@babel/runtime/regenerator/index.js"),i=n.n(r),s=n("./src/utils/log.js"),a=n("./src/lib/Dispatcher.js"),l=n("./src/constants/Actions.js"),c=n("./src/constants/Messages.js"),u=n("./src/constants/RewardsConstants.ts"),d=n("./src/constants/DisconnectReasons.js"),p=function(){var e=(0,o.A)(i().mark((function e(t){var n,o,r,p=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=p.length>1&&void 0!==p[1]?p[1]:{},t){e.next=4;break}return s.A.error({message:"post-message-to-parent-without-event-name",data:n}),e.abrupt("return");case 4:o={name:t,data:n},r=[c.A.CONFIRM,c.A.ENTERED_EXCLUSIVE,c.A.ENTERED_PRIVATE,c.A.REFRESH,c.A.SWITCH_PERFORMER,c.A.ENABLE_SCRIM,c.A.DISABLE_SCRIM,c.A.ENTER_FULLSCREEN,u.ve],r.some((function(e){return t===e}))||setTimeout((function(){return a.A.dispatch({type:l.A.EXIT_FULLSCREEN})})),e.t0=t,e.next=e.t0===c.A.SWITCH_PERFORMER?11:e.t0===c.A.REQUIRES_AUTH?14:e.t0===c.A.BROWSE_LIVE_MODELS?16:18;break;case 11:return setTimeout((function(){return a.A.dispatch({type:l.A.BROWSER_MAY_CLOSE,data:[d.A.NEW_PERFORMER,"The user clicked a similar model"]})})),setTimeout((function(){return a.A.dispatch({type:l.A.DISCONNECT,data:[d.A.NEW_PERFORMER,"The user clicked a similar model"]})})),e.abrupt("break",19);case 14:return setTimeout((function(){return a.A.dispatch({type:l.A.BROWSER_MAY_CLOSE,data:[d.A.REDIRECT,"The user needs to login"]})})),e.abrupt("break",19);case 16:return setTimeout((function(){return a.A.dispatch({type:l.A.BROWSER_MAY_CLOSE,data:[d.A.REDIRECT,"The user clicked browse models"]})})),e.abrupt("break",19);case 18:return e.abrupt("break",19);case 19:s.A.info({message:"post-message-to-parent",eventName:t,eventData:n}),window.parent&&"function"==typeof window.parent.postMessage?window.parent.postMessage(o,"*"):window.postMessage(o,"*");case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(e){e.preventDefault(),a.A.dispatch({type:l.A.CLOSE_MODAL})},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,t),n)},A=function(e){return{name:e.name,message:e.message}},f=function(e){return{name:e.name,message:e.message,stack:e.stack}},g=function(){try{var e;return null!==(e=window.top)&&void 0!==e&&e.location.href?window.top.location.href:"UNKNOWN"}catch(e){return document.referrer?document.referrer:"UNKNOWN"}};function y(e,t){return e[t]}function v(e,t){return e[t]}},"./src/utils/withActions.tsx":(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("webpack/sharing/consume/default/react/react"),u=n.n(c);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t{"use strict";n.d(t,{A:()=>_,t:()=>v});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("webpack/sharing/consume/default/react/react"),d=n.n(u),p=n("./node_modules/prop-types/index.js"),m=n.n(p),h=n("./src/utils/log.js"),A=n("./src/utils/tools.ts");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}var y=function(e,t,n){var o=e.replace(/[^0-9A-Za-z_-]/,"").toLowerCase();h.A.error({message:"uncaught-exception-error-boundary",boundary:o,error:(0,A.Rm)(t),info:n},{unique:!0})&&(h.A.statsIncCounter("session.error.uncaughtException.".concat(o)),h.A.send())},v=function(e){(0,s.A)(n,e);var t=g(n);function n(){var e;(0,o.A)(this,n);for(var r=arguments.length,s=new Array(r),a=0;a{"use strict";n.d(t,{A:()=>b});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("webpack/sharing/consume/default/react/react"),d=n.n(u),p=n("./node_modules/prop-types/index.js"),m=n.n(p);function h(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{memoize:!1},a=n.memoize,l=void 0!==a&&a;if(!Array.isArray(e))throw new Error("stores is not an array");if(0===e.length)throw new Error("No stores provided.");if(e.some((function(e){return!e})))throw new Error("Some stores provided are not defined.");if("function"!=typeof t)throw new Error("mapStateToProps is not a function");return function(n){var a=n.displayName||n.name||n.constructor.name,u=function(u){(0,s.A)(m,u);var p=h(m);function m(){var e;(0,o.A)(this,m);for(var t=arguments.length,n=new Array(t),r=0;r{"use strict";n.d(t,{A:()=>A,x:()=>h});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("webpack/sharing/consume/default/react/react"),u=n.n(c);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t{"use strict";n.d(t,{A:()=>$t});var o,r,i=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),s=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),a=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),l=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),u=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),d=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),p=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),m=n("webpack/sharing/consume/default/react/react"),h=n.n(m),A=n("./node_modules/prop-types/index.js"),f=n.n(A),g=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),y=n("./node_modules/styled-components-rtl/index.js"),v=n("./src/lib/Dispatcher.js"),b=n("./src/constants/Actions.js"),_=n("./src/constants/Connection.js"),E=n("./src/constants/LayoutConstants.ts"),S=n("./src/constants/Platforms.ts"),C=n("./src/constants/ComplaintConstants.ts"),T=n("./src/constants/NaiadSessionType.js"),O=n("./src/stores/ModalStore.js"),I=n("./src/stores/GoldShowStore.js"),w=n("./src/stores/ConnectionStore.js"),P=n("./src/stores/UserStore.js"),k=n("./src/stores/UserListStore.ts"),R=n("./src/stores/PerformerStore.ts"),D=n("./src/stores/LayoutStore.js"),L=n("./src/components/videoclient/store/cam2cam/Cam2CamStore.ts"),x=n("./src/stores/RateStore.js"),N=n("./src/stores/RoomStore.ts"),j=n("./src/components/GiveGoldButton.js"),M=n("./src/components/common/CreateAccountButton.tsx"),B=n("./src/components/common/GoPrivateButton.js"),U=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),G=n("./node_modules/@atg/icf-react-components/components/FlatButton/index.js"),V=n.n(G),F=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),H=n.n(F),Y=n("./src/lib/Strings.js"),W=n("./src/components/section/TabsContainer.js");function z(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var q=g.Ay.div.withConfig({displayName:"ToggleChatButton__Container",componentId:"sc-wr03s0-0"})(["overflow:visible;position:relative;"]),K=g.Ay.div.withConfig({displayName:"ToggleChatButton__FullscreenTabsContainer",componentId:"sc-wr03s0-1"})(["display:flex;flex-flow:column;width:316px;background:rgba(33,33,33,0.7);padding:0;margin:0;overflow:hidden;position:absolute;height:600px;max-height:",";bottom:58px;z-index:2;opacity:",";transform:translateY(","px);visibility:",";pointer-events:",";transition-property:transform,opacity,visibility;transition-duration:0.3s,0.3s,0.3s;transition-timing-function:ease,ease,ease;"],(function(e){var t=e.chatMaxHeight;return"".concat(t,"px")}),(function(e){return e.open?1:0}),(function(e){return e.open?0:50}),(function(e){return e.open?"visible":"hidden"}),(function(e){return e.open?"auto":"none"})),Q=(0,g.Ay)(V()).withConfig({displayName:"ToggleChatButton__StyledButton",componentId:"sc-wr03s0-2"})(["display:flex;flex-flow:row nowrap;align-items:center;position:relative;margin-top:0;margin-bottom:0;flex:1;opacity:1;min-width:316px;height:40px;"," justify-content:space-between;"],(0,y.A)(o||(o=(0,p.A)(["\n margin: 0 5px 0 0;\n "])))),X=(0,g.Ay)(H()).withConfig({displayName:"ToggleChatButton__Icon",componentId:"sc-wr03s0-3"})(["position:absolute;top:50%;"," transform:translateY(-50%);"],(0,y.A)(r||(r=(0,p.A)(["\n right: 8px;\n "])))),Z=function(e){(0,c.A)(n,e);var t=z(n);function n(e){var o;return(0,a.A)(this,n),o=t.call(this,e),(0,i.A)((0,U.A)(o),"toggleOpen",(function(){var e=!o.state.open;o.setState({open:e}),o.context.layout===E.Ay.DESKTOP&&e&&setTimeout((function(){var e;null===(e=o.context.document.querySelector('input[data-ta-locator="ChatForm__Input"]'))||void 0===e||e.focus()}),50)})),o.state={open:!1},o}return(0,l.A)(n,[{key:"render",value:function(){var e=this.state.open,t=this.context,n=t.platform,o=t.layout,r=e?"arrowDropDown":"arrowDropUp",i=Y.Ay.getString(e?"close_live_chat":"open_live_chat"),a=D.Ay.getState(),l=a.ctaContainerHeight,c=a.videoViewportHeight,u=o===E.Ay.TABLET,d=c-20-l,p=n===S.Ay.STREAMFANS,m=n===S.Ay.BLACKLABEL||n===S.Ay.EXTERNAL_SITE_SHOW||p;return(0,s.A)(q,{},void 0,h().createElement(K,{open:e,chatMaxHeight:d},(0,s.A)(W.A,{isDesktop:!0,isTransparent:!0,isFullscreen:!0,isTablet:u,hideSimilarModels:m,hideTags:m,hideVideoStoreLink:m,hideBio:p,hidePhotos:p})),(0,s.A)(Q,{"data-ta-locator":"CtaContainer__toggleChat",label:i,ghost:!0,onClick:this.toggleOpen},void 0,(0,s.A)(X,{name:r})))}}]),n}(m.Component);Z.propTypes={style:f().object},Z.defaultProps={style:{}},Z.contextTypes={layout:f().string,platform:f().oneOf(Object.values(S.Ay)).isRequired,document:f().any};const J=Z;var $=n("./src/components/videoclient/store/videoClient/VideoClientStore.ts"),ee=n("./src/utils/withStores.tsx"),te=n("./src/components/common/Tooltip.tsx"),ne=n("./src/components/video/VideoControlsIconButton.js"),oe=n("./src/components/common/ColoredSlider.js"),re=n("./src/components/videoclient/store/videoClient/VideoClientConstants.ts"),ie=n("./src/stores/EnableAudioStore.ts"),se=n("./node_modules/lscache/lscache.js"),ae=n.n(se),le=g.Ay.div.withConfig({displayName:"VolumeControlsLively__SliderBackground",componentId:"sc-jexcje-0"})(["position:relative;width:30px;height:100%;background:",";display:flex;align-items:center;justify-content:center;"],E.Tj.darkerGray),ce=g.Ay.div.withConfig({displayName:"VolumeControlsLively__SoundContainer",componentId:"sc-jexcje-1"})(["position:relative;margin:-10px;padding:10px;"]),ue=g.Ay.div.withConfig({displayName:"VolumeControlsLively__SliderContainer",componentId:"sc-jexcje-2"})(["position:absolute;height:150px;max-height:0;transition:max-height 0.2s 0.5s;overflow:hidden;bottom:45px;z-index:200;transform:rotate(180deg) translateZ(0);",":hover &{max-height:100px;transition:max-height 0.2s;}",":active &{max-height:100px;transition:max-height 0.2s;}"],ce,ce);const de=(0,ee.A)([ie.A,$.A],(function(e){var t=e.enableAudio,n=e.videoClient;return{audioPlaying:t.audioPlaying,player:n.player}}))((function(e){var t=e.audioPlaying,n=e.player,o=e.showTooltip;(0,m.useEffect)((function(){var e=ae().get("hybrid_client_volume");t&&n&&!0===n.localAudioMuted&&!0!==n.localVideoPaused&&"muted"!==e&&setTimeout((function(){v.A.dispatch({type:re.A.LIVELY_VIDEO_UPDATE_VOLUME,data:{level:null!=e?e:.75}})}),0)}),[t,null==n?void 0:n.localVideoPaused]);var r="";return o&&n&&(r=n.localAudioMuted?Y.Ay.getString("unmute_audio"):Y.Ay.getString("mute_audio")),h().createElement(ce,null,h().createElement(te.A,{title:r},h().createElement("div",{onClick:function(){return function(){if(null!=n&&n.localAudioMuted){var e=ae().get("hybrid_client_volume");setTimeout((function(){v.A.dispatch({type:re.A.LIVELY_VIDEO_UPDATE_VOLUME,data:{level:"muted"!==e?e:.75}})}),0)}else setTimeout((function(){v.A.dispatch({type:re.A.LIVELY_VIDEO_UPDATE_VOLUME,data:{level:"muted"}})}),0)}()}},h().createElement(ne.A,{"data-ta-locator":"VolumeControls__muteButton",icon:0!==(null==n?void 0:n.localAudioVolume)&&t?null!=n&&n.localAudioVolume&&n.localAudioVolume<.5?"volumeDown":"volumeUp":"volumeMute"}))),h().createElement(ue,null,h().createElement(le,null,h().createElement(oe.A,{onChange:function(e){var t;(t=Number(e.toFixed(2)))!==(null==n?void 0:n.localAudioVolume)&&setTimeout((function(){v.A.dispatch({type:re.A.LIVELY_VIDEO_UPDATE_VOLUME,data:{level:t}})}),0)},value:null==n?void 0:n.localAudioVolume,orientation:"vertical"}))))}));var pe=n("./src/utils/log.js"),me=function(){pe.A.usageTick("refresh_clicked"),pe.A.statsIncCounter("video.refresh.clicked"),v.A.dispatch({type:b.A.VIDEO_REFRESH,data:{shouldRefresh:!0}})},he=function(e){return(0,s.A)(te.A,{title:Y.Ay.getString("refresh")},void 0,(0,s.A)(ne.A,{"data-ta-locator":"VideoControls__refreshButton",onClick:me,icon:"refresh",isAvailable:e.isAvailable}))};he.propTypes={isAvailable:f().bool},he.defaultProps={isAvailable:!0};const Ae=he;var fe=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),ge=n("./src/constants/Messages.js"),ye=n("./src/utils/tools.ts");function ve(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var be,_e,Ee,Se=(0,g.i7)(["0%{}50%{transform:scale(1.75);fill:white;}100%{}"]),Ce=function(e){(0,c.A)(n,e);var t=ve(n);function n(e,o){var r;return(0,a.A)(this,n),r=t.call(this,e,o),(0,i.A)((0,U.A)(r),"isFullscreenSupported",(function(){return Boolean(D.Ay.getFullscreenElement())})),(0,i.A)((0,U.A)(r),"handleFullscreenChange",(function(){var e=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e&&(0,ye.Zj)(ge.A.ENTER_FULLSCREEN),e||(r.state.fullscreen&&r.handleFullscreenClick(),(0,ye.Zj)(ge.A.EXIT_FULLSCREEN))})),(0,i.A)((0,U.A)(r),"handleLayoutStoreUpdate",(function(){var e=D.Ay.getState().fullscreen,t=r.isFullscreenSupported();r.setState({fullscreen:e,isSupported:t})})),(0,i.A)((0,U.A)(r),"handleFullscreenClick",(function(){if(r.state.isSupported){var e=r.state.fullscreen?b.A.EXIT_FULLSCREEN:b.A.ENTER_FULLSCREEN;pe.A.usageTick("video_fullscreen_".concat(r.state.fullscreen?"exit":"enter")),v.A.dispatch({type:e,data:{}})}})),r.state={fullscreen:D.Ay.getState().fullscreen,isSupported:r.isFullscreenSupported()},r}return(0,l.A)(n,[{key:"componentDidMount",value:function(){this.layoutToken=D.Ay.addListener(this.handleLayoutStoreUpdate),document.addEventListener("fullscreenchange",this.handleFullscreenChange),document.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),document.addEventListener("mozfullscreenchange",this.handleFullscreenChange),document.addEventListener("MSFullscreenChange",this.handleFullscreenChange)}},{key:"componentWillUnmount",value:function(){this.layoutToken.remove(),document.removeEventListener("fullscreenchange",this.handleFullscreenChange),document.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),document.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),document.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)}},{key:"render",value:function(){var e,t,n;return this.state.isSupported?this.state.fullscreen?(e=Y.Ay.getString("video_exit_fullscreen"),t="fullscreenExit"):(e=Y.Ay.getString("video_enter_fullscreen"),t="fullscreen"):(e=Y.Ay.getString("fullscreen_not_supported"),t="fullscreen"),n=this.state.isSupported?(0,g.AH)(["animation-name:",";animation-duration:0.5s;animation-iteration-count:3;animation-timing-function:ease;animation-delay:2s;"],Se):"\n opacity: ".concat(ne.q,";\n cursor: default;\n\n &:hover {\n fill: #9e9e9e;\n }\n "),(0,s.A)(te.A,{title:e},void 0,h().createElement(ne.A,(0,fe.A)({"data-ta-locator":"VideoControls__fullscreenButton",onClick:this.handleFullscreenClick,icon:t,iconStyle:n},this.props)))}}]),n}(m.Component),Te=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),Oe=n.n(Te),Ie=n("./src/components/gold/GoldCop.js"),we=n("./src/components/GoldCoin.js"),Pe=n("./src/components/ThanksPopup.js"),ke=n("./src/constants/LomsEvents.js"),Re=n("./src/stores/ConfigStore.ts"),De=n("./src/utils/lomsTools.js"),Le=n("./src/utils/gold.js");function xe(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var Ne=(0,g.i7)(["0%{opacity:0.3;transform:translate(-50%,-50px) rotateY(-360deg) scale(1.8);}50%{opacity:1;transform:translate(-50%,-250px) rotateY(0deg) scale(1);}100%{opacity:0;transform:translate(-50%,-180px) rotateY(180deg) scale(0);}"]),je=(0,g.i7)(["0%{transform:translateY(-50px) scale(1);animation-timing-function:ease-out;}50%{transform:translateY(-200px) scale(0.9);animation-timing-function:ease-in;}100%{transform:translateY(-50px) scale(0.1);}"]),Me=(0,g.i7)(["0%{opacity:0.3;}10%{opacity:1;}90%{opacity:1;}100%{opacity:0;}"]),Be=(0,g.i7)(["0%{transform:rotateX(0deg);}100%{transform:rotateX(720deg);}"]),Ue=g.Ay.div.withConfig({displayName:"QuickTipButton__GoldCoinOld",componentId:"sc-m6kpdh-0"})(["width:48px;height:48px;border-radius:50%;background:gold;border:3px solid goldenrod;position:absolute;"," top:0;z-index:1;pointer-events:none;background:linear-gradient( 45deg,rgb(251,223,147) 0%,rgb(248,181,0) 50%,rgb(252,205,77) 50%,rgb(252,234,187) 100% );"],(0,y.A)(be||(be=(0,p.A)(["\n left: 50%;\n "])))),Ge=(0,g.Ay)(Ue).withConfig({displayName:"QuickTipButton__StyledSuccessFeedbackCoinOld",componentId:"sc-m6kpdh-1"})(["will-change:opacity,transform;animation-name:",";animation-duration:1s;animation-timing-function:cubic-bezier(0.65,0.05,0.36,1);animation-fill-mode:both;"],Ne),Ve=(0,g.Ay)(we.A).attrs({size:48}).withConfig({displayName:"QuickTipButton__GoldCoinFlip",componentId:"sc-m6kpdh-2"})(["will-change:transform;animation:"," ","ms cubic-bezier(0.3,0,1,1);animation-fill-mode:both;"],Be,750),Fe=g.Ay.div.withConfig({displayName:"QuickTipButton__GoldCoinMove",componentId:"sc-m6kpdh-3"})(["width:48px;height:48px;position:absolute;transform-origin:50% 50%;will-change:opacity,transform;animation:"," ","ms,"," ","ms;animation-fill-mode:both;"],je,750,Me,750),He=g.Ay.div.withConfig({displayName:"QuickTipButton__GoldCoinRoot",componentId:"sc-m6kpdh-4"})(["position:absolute;top:0;"," z-index:1;pointer-events:none;"],(0,y.A)(_e||(_e=(0,p.A)(["\n left: calc(50% - 28px);\n "])))),Ye=function(e){var t=e.rotation,n=void 0===t?0:t,o=e.offset,r=void 0===o?0:o;return(0,s.A)(He,{style:{transform:"rotateZ(".concat(n,"deg) translateX(").concat(r,"px)")}},void 0,Ee||(Ee=(0,s.A)(Fe,{},void 0,(0,s.A)(Ve,{}))))};Ye.propTypes={rotation:f().number,offset:f().number},Ye.defaultProps={rotation:0,offset:0};var We=g.Ay.div.withConfig({displayName:"QuickTipButton__Container",componentId:"sc-m6kpdh-5"})(["margin:0;padding:0;position:relative;"]),ze=(0,g.Ay)(Oe()).attrs({overrides:{label:"quick-tip-button-label"}}).withConfig({displayName:"QuickTipButton__Button",componentId:"sc-m6kpdh-6"})(["min-width:36px;width:36px;height:36px;border-radius:100%;margin:0;&:before{border-radius:100%;}&[disabled]{background:",";border:1px solid ",";border-radius:36px;}.quick-tip-button-label{font-size:16px;text-align:center;padding:0;}"],E.Tj.mediumGray,E.Tj.mediumGray),qe=function(e){(0,c.A)(n,e);var t=xe(n);function n(e){var o;return(0,a.A)(this,n),o=t.call(this,e),(0,i.A)((0,U.A)(o),"handleClick",(function(e,t){e.preventDefault(),(0,De.sX)(ke.A.CTA_BUTTONS.QUICK_TIP);var n=o.props,r=n.quickTipConsent,i=n.showBetterCoins;r?t.submitGold({quickTip:!0}).then((function(){if(i){for(var e=Math.min(Math.floor(t.goldToGive/100),10),n=function(){var t=2*e,n=150*r+25*Math.random();setTimeout((function(){return o.addFeedbackCoin(t)}),n)},r=0;r0&&void 0!==arguments[0]?arguments[0]:0,t=this.props.showBetterCoins,n=t?Ye:Ge,o=Math.random()*e-e/2,r=4*o,i=(0,s.A)(n,{rotation:o,offset:r},"feedbackCoin-".concat(Date.now())),a=[i].concat(this.state.feedbackCoins);a.length>10&&a.pop(),this.setState({feedbackCoins:a})}},{key:"getTooltipString",value:function(e,t){var n=this.props,o=n.streamStarted,r=n.isGoldOneUsd,i=n.showFinalCost;if(!o)return"";if(this.getDisabled(e))return(0,Y.AA)("give_gold_disabled");var s="";if(r||i){var a=100*t,l=(0,Le.kX)(a,r,i);s=" (".concat(l,")")}return(0,Y.AA)("give_amount_gold",t)+s}},{key:"getDisabled",value:function(e){return this.props.disabled||!e.valid||e.prebillRequired}},{key:"render",value:function(){var e=this,t=this.context.quickTipBatchingPeriod||2e3,n=this.props,o=n.amount,r=n.className,i=n.isGoldOneUsd,a=this.state,l=a.feedbackCoins,c=a.showThanks;return(0,s.A)(Ie.A,{presetGold:100*o,accumulateFor:t,sendGoldAsOneUsd:i},void 0,(function(t){return(0,s.A)(te.A,{title:e.getTooltipString(t,o)},void 0,(0,s.A)(We,{"data-ta-locator":"QuickTipButton__container$".concat(o)},void 0,(0,s.A)(ze,{className:r,gold:!0,disabled:e.getDisabled(t),label:o.toString(),onMouseDown:function(n){return e.handleClick(n,t)},"data-ta-locator":"QuickTipButton__amount$".concat(o),"data-icf-click":"QuickTipButton","data-icf-meta":t.goldToGiveCentsUsd?"amount=".concat(t.goldToGiveCentsUsd):void 0}),l,c&&(0,s.A)(Pe.A,{},void 0,(0,Y.AA)("thankyou").replace(" ",Y.pI))))}))}}]),n}(m.Component);qe.propTypes={amount:f().number,disabled:f().bool,className:f().string,isGoldOneUsd:f().bool,showFinalCost:f().bool,quickTipConsent:f().bool,streamStarted:f().bool,showBetterCoins:f().bool},qe.defaultProps={amount:1,disabled:!1,className:""},qe.contextTypes={quickTipBatchingPeriod:f().number};const Ke=(0,ee.A)([P.A,w.A,Re.A,D.Ay],(function(e){return{isGoldOneUsd:e.user.isGoldOneUsd,showFinalCost:e.user.showFinalCost,quickTipConsent:e.user.quickTipConsent,streamStarted:e.connection.started,showBetterCoins:e.layout.isDesktop}}))(qe);var Qe=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),Xe=n("./node_modules/lodash/fp/getOr.js"),Ze=n.n(Xe),Je=n("./node_modules/@atg/icf-react-components/themes/dark.js");function $e(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var et=g.Ay.div.withConfig({displayName:"QuickTipMark__StyledQuickTipMarkWrapper",componentId:"sc-kyqwnm-0"})(["color:",";display:flex;margin:0px 8px;text-align:center;user-select:none;text-transform:uppercase;line-height:1;flex-direction:column;justify-content:center;align-items:center;align-content:center;height:100%;"],Je.colors.baseContrast070),tt=g.Ay.span.withConfig({displayName:"QuickTipMark__StyledQuickTipMarkLine",componentId:"sc-kyqwnm-1"})(["font-weight:",";font-size:","px;display:block;margin:0 auto;"],(function(e){return e.fontWeight}),(function(e){return e.fontSize})),nt=function(e){(0,c.A)(n,e);var t=$e(n);function n(){return(0,a.A)(this,n),t.apply(this,arguments)}return(0,l.A)(n,[{key:"render",value:function(){var e=Ze()('"Roboto", "Helvetica", "Helvetica Neue", "Arial", sans-serif',"theme.typography.fontFamily",this.props),t=Y.Ay.getString("quick_tip.title").toUpperCase().split(" "),n=(0,Qe.A)(t,2),o=n[0],r=n[1],i=r.length>o.length,a=i?800:600,l=i?600:800,c=24,u=24,d=Y.Ay.measureStringWidth(o,"".concat(a," ").concat(c,"px ").concat(e)),p=Y.Ay.measureStringWidth(r,"".concat(l," ").concat(u,"px ").concat(e));if(i)for(;Math.floor(p)>d&&u>11;)u--,p=Y.Ay.measureStringWidth(r,"".concat(l," ").concat(u,"px ").concat(e));else for(;Math.floor(d)>p&&c>11;)c--,d=Y.Ay.measureStringWidth(o,"".concat(a," ").concat(c,"px ").concat(e));var m=c+u;if(m>36){var h=Math.round((m-36)/2);c-=h,u-=h}return(0,s.A)(et,{},void 0,(0,s.A)(tt,{fontSize:c,fontWeight:a},void 0,o),(0,s.A)(tt,{fontSize:u,fontWeight:l},void 0,r))}}]),n}(m.PureComponent);const ot=(0,g.SL)(nt);var rt,it,st,at=n("./src/constants/QuickTipConstants.js");function lt(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var ct=g.Ay.div.withConfig({displayName:"QuickTipContainer__StyledQuickTipContainer",componentId:"sc-1fd977i-0"})(["align-items:center;background:",";border-radius:4px;border-width:1px;border-style:solid;border-color:",";display:flex;flex-direction:row;flex-grow:0;flex-shrink:0;flex-wrap:nowrap;margin-bottom:-3px;margin-top:-3px;padding:0 8px;"],Je.colors.baseContrast020,Je.colors.baseContrast030),ut=(0,g.Ay)(ct).withConfig({displayName:"QuickTipContainer__StyledMobileQuickTipContainer",componentId:"sc-1fd977i-1"})(["padding:0;margin-top:0;margin-bottom:0;"]),dt=(0,g.Ay)(Ke).withConfig({displayName:"QuickTipContainer__StyledQuickTipButton",componentId:"sc-1fd977i-2"})(["&&{","}"],(0,y.A)(rt||(rt=(0,p.A)(["\n margin-right: 8px;\n "])))),pt=(0,g.Ay)(Ke).withConfig({displayName:"QuickTipContainer__MobileQuickTipButton",componentId:"sc-1fd977i-3"})(["&&{width:40px;height:40px;min-width:40px;}"]),mt=function(e){(0,c.A)(n,e);var t=lt(n);function n(e){var o;(0,a.A)(this,n),o=t.call(this,e);var r=P.A.getState(),i=r.quickTipCustomValue,s=r.needsPrebill,l=r.twoFactorAuthenticationRequired;return o.state={quickTipCustomValue:i||null,needsPrebill:s,twoFactorAuthenticationRequired:l},o.handleMobileFirstClick=o.handleMobileFirstClick.bind((0,U.A)(o)),o.onUserStoreUpdate=o.onUserStoreUpdate.bind((0,U.A)(o)),o}return(0,l.A)(n,[{key:"componentDidMount",value:function(){this.userToken=P.A.addListener(this.onUserStoreUpdate)}},{key:"componentWillUnmount",value:function(){this.userToken.remove()}},{key:"onUserStoreUpdate",value:function(){var e=P.A.getState(),t=e.quickTipCustomValue,n=e.needsPrebill,o=e.twoFactorAuthenticationRequired;this.setState({quickTipCustomValue:t,needsPrebill:n,twoFactorAuthenticationRequired:o})}},{key:"handleMobileFirstClick",value:function(){v.A.dispatch({type:b.A.SHOW_MOBILE_QUICK_TIP_CONSENT_MODAL})}},{key:"render",value:function(){var e=this.props.isDesktop,t=this.state,n=t.quickTipCustomValue,o=t.needsPrebill,r=t.twoFactorAuthenticationRequired,i=o||this.props.disabled||r;return e?(0,s.A)(ct,{},void 0,it||(it=(0,s.A)(ot,{})),at.A.PRESET_VALUES.map((function(e){return(0,s.A)(dt,{amount:e/100,disabled:i},e)}))):o||r?null:n?(0,s.A)(pt,{amount:n,disabled:i}):(0,s.A)(ut,{onClick:this.handleMobileFirstClick,"data-ta-locator":"QuickTipContainer__mobileQuickTipMark"},void 0,st||(st=(0,s.A)(ot,{})))}}]),n}(m.Component);mt.propTypes={disabled:f().bool,isDesktop:f().bool},mt.defaultProps={disabled:!1,isDesktop:!0};var ht,At,ft,gt,yt=n("./src/components/multiplegoals/MultipleGoalsContainer.tsx"),vt=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),bt=n("./node_modules/redux/es/redux.js"),_t=n("./src/utils/withTranslations.tsx"),Et=n("./node_modules/@atg/icf-react-components/components/Tooltip/index.js"),St=n.n(Et),Ct=n("./src/stores/VideoControlsStore.js"),Tt=g.Ay.div.withConfig({displayName:"StreamBitrateSelector__Container",componentId:"sc-10970d4-0"})(["position:relative;display:block;margin:0;padding:0;color:white;"]),Ot=g.Ay.div.withConfig({displayName:"StreamBitrateSelector__Content",componentId:"sc-10970d4-1"})(["position:absolute;bottom:5px;",' min-width:215px;z-index:201;display:flex;flex-direction:column;background:rgb(70,70,70);&::after{border-color:transparent;border-style:solid;border-width:8px 8px 0;border-top-color:rgb(70,70,70);content:"";display:block;height:0;width:0;position:absolute;bottom:-8px;',"}"],(0,y.A)(ht||(ht=(0,p.A)(["\n left: -10px;\n "]))),(0,y.A)(At||(At=(0,p.A)(["\n left: 19px;\n "])))),It=g.Ay.span.withConfig({displayName:"StreamBitrateSelector__Selectedness",componentId:"sc-10970d4-2"})(["display:inline-block;width:20px;",""],(0,y.A)(ft||(ft=(0,p.A)(["\n text-align: left;\n "])))),wt=g.Ay.div.withConfig({displayName:"StreamBitrateSelector__MenuTitle",componentId:"sc-10970d4-3"})(["display:flex;justify-content:space-between;align-items:center;background:rgb(45,45,45);text-transform:uppercase;padding:8px;"]),Pt=g.Ay.span.withConfig({displayName:"StreamBitrateSelector__Title",componentId:"sc-10970d4-4"})(["flex-grow:1;"]),kt=g.Ay.ul.withConfig({displayName:"StreamBitrateSelector__QualityList",componentId:"sc-10970d4-5"})(["&&{list-style-type:none;"," padding:8px 0;margin:0;}"],(0,y.A)(gt||(gt=(0,p.A)(["\n text-align: left;\n "])))),Rt=g.Ay.li.withConfig({displayName:"StreamBitrateSelector__QualityListItem",componentId:"sc-10970d4-6"})(["display:flex;justify-content:flex-start;cursor:pointer;padding:2px 8px;transition:background-color 0.3s linear;background-color:rgba(255,255,255,0);&:hover{background-color:rgba(255,255,255,0.2);}"]),Dt=(0,g.Ay)(ne.A).withConfig({displayName:"StreamBitrateSelector__StyledVideoControlsIconButton",componentId:"sc-10970d4-7"})([""]);const Lt=(0,bt.Zz)((0,ee.A)([$.A,Ct.A],(function(e){return{player:e.videoClient.player,blurThePlayer:e.videoClient.blurThePlayer,playerUi:e.videoClient.playerUi,shouldRefresh:e.videoControls.shouldRefresh,userHasSeenPlayback:e.videoClient.userHasSeenPlayback}}),{memoize:!0}),(0,_t.A)())((function(e){var t=e.blurThePlayer,n=e.player,o=(e.t,e.playerUi),r=e.shouldRefresh,i=e.userHasSeenPlayback,s=(0,m.useState)(!1),a=(0,Qe.A)(s,2),l=a[0],c=a[1],u=[];if(o){var d=o.availableBitrates.filter((function(e){return"Auto"!==e.name}));u=(0,vt.A)(d.reverse())}r&&l&&c(!1);return t?h().createElement(h().Fragment,null):h().createElement("div",null,l&&u[0]&&h().createElement(Tt,{onMouseLeave:function(){return c(!1)}},h().createElement(Ot,null,h().createElement(wt,null,h().createElement(Pt,null,Y.Ay.getString("quality"))),h().createElement(kt,null,u.map((function(e,t){return h().createElement(Rt,{"data-ta-locator":"StreamBitrateSelector_QualityListItem",title:e.name,onClick:function(){return t=e.score,c(!l),void setTimeout((function(){v.A.dispatch({type:re.A.LIVELY_VIDEO_UPDATE_QUALITY,data:t})}));var t},style:{touchAction:"manipulation"},key:t},h().createElement(It,null,h().createElement("span",null,e.score===(null==n?void 0:n.preferredLevel)?"✓":"")),h().createElement("span",null,e.name))}))))),h().createElement(St(),{title:l?"":Y.Ay.getString("quality_icon_tooltip")},h().createElement(Dt,{"data-ta-locator":"VideoControls__streamQuality",icon:"settings",onClick:function(){return c(!l)},disabled:!i})))}));var xt,Nt,jt,Mt,Bt,Ut,Gt=n("./src/components/video/ReportComplaintMenu.tsx"),Vt=n("./src/utils/createAsyncComponent.tsx");function Ft(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var Ht=(0,Vt.A)((function(){return n.e(10).then(n.bind(n,"./src/components/privatefeatures/PrivateFeatures.js"))}),{displayName:"PrivateFeatures",fallback:null}),Yt=(0,Vt.A)((function(){return n.e(10).then(n.bind(n,"./src/components/videoclient/cam2cam/Controls/Cam2CamControls.tsx"))}),{displayName:"Cam2CamControls",fallback:null}),Wt=g.Ay.div.withConfig({displayName:"CtaContainer__VideoControlsContainer",componentId:"sc-18jsm5g-0"})(["display:flex;align-items:center;justify-content:center;position:relative;margin:0;height:40px;"]),zt=(0,g.Ay)(j.A).withConfig({displayName:"CtaContainer__StyledGiveGoldButton",componentId:"sc-18jsm5g-1"})(["flex:1;min-width:100px;button:disabled{height:auto;min-height:40px;}"]),qt=(0,g.Ay)(B.A).withConfig({displayName:"CtaContainer__StyledGoPrivateButton",componentId:"sc-18jsm5g-2"})(["flex:",";min-width:100px;"],(function(e){return e.inPrivateSession?"1":"3"})),Kt=(0,g.Ay)(M.A).withConfig({displayName:"CtaContainer__StyledCreateAccountButton",componentId:"sc-18jsm5g-3"})(["flex:1;min-width:100px;"]),Qt=g.Ay.div.withConfig({displayName:"CtaContainer__Container",componentId:"sc-18jsm5g-4"})(["align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;background-color:",";"," flex-shrink:0;justify-content:space-between;position:relative;&{","}& >:not(:first-child){","}&:empty{padding:0;}"],(function(e){return e.fullscreenStyle?"#000":E.Tj.evenDarkerGray}),(0,y.A)(xt||(xt=(0,p.A)(["\n padding: 8px 0 8px 5px;\n "]))),(function(e){return e.moveToBack?"z-index: 0;":""}),(0,y.A)(Nt||(Nt=(0,p.A)(["\n margin-left: 8px;\n "])))),Xt=(0,g.Ay)(Qt).withConfig({displayName:"CtaContainer__MobileContainerLandscape",componentId:"sc-18jsm5g-5"})(["background-color:transparent;position:absolute;bottom:0;z-index:110;","{min-width:200px;}","{flex:1;min-width:200px;}"],zt,qt),Zt=(0,g.Ay)(Qt).withConfig({displayName:"CtaContainer__MobileContainerPortrait",componentId:"sc-18jsm5g-6"})(["background-color:",";padding:5px;","{flex:1;}"],(function(e){var t=e.theme;return"dark"===t.type?t.colors.baseContrast010:t.colors.baseContrast015}),qt),Jt=function(e){(0,c.A)(n,e);var t=Ft(n);function n(){return(0,a.A)(this,n),t.apply(this,arguments)}return(0,l.A)(n,[{key:"componentDidMount",value:function(){this.dispatchHeight()}},{key:"componentWillUnmount",value:function(){setTimeout((function(){v.A.dispatch({type:b.A.CTA_HEIGHT_CHANGE,data:{height:0,hidden:!0}})}))}},{key:"componentDidUpdate",value:function(){this.dispatchHeight()}},{key:"dispatchHeight",value:function(){if(this.container){var e,t,n,o=null!==(e=null===(t=this.multipleGoalsContainer)||void 0===t||null===(n=t.getBoundingClientRect)||void 0===n?void 0:n.call(t).height)&&void 0!==e?e:0,r=parseFloat(this.container.offsetHeight)+o;r!==this.lastHeight&&(this.lastHeight=r,setTimeout((function(){v.A.dispatch({type:b.A.CTA_HEIGHT_CHANGE,data:{height:r,hidden:!1}})})))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.privCallInProgress,o=t.showChatToggle,r=t.hidden,a=t.giveGoldVisible,l=t.giveGoldEnabled,c=t.giveGoldAllowed,u=t.goPrivateVisible,d=t.goPrivateEnabled,p=t.createAccountVisible,A=t.modal,f=t.privateFeaturesAvailable,g=t.isLoggedIn,y=t.isDesktop,v=t.isTablet,b=t.forcedLayout,_=t.quickTipDisabled,S=t.quickTipButtonEnabled,T=t.layout,O=t.fullscreen,I=t.orientation,P=t.isGoldShow,k=t.goldShowBoughtIn,R=t.isGoldOnly,D=t.inPrivateSession,L=t.cam2camCallInProgress,x=t.isFanMode,N=t.isExternalSiteShow,j=t.xment,M=this.context.isExternalSiteFundsOnly;if(r)return null;var B=I===E.Ay.LANDSCAPE,U=T===E.Ay.MOBILE||v&&I===E.Ay.PORTRAIT,G=O||v&&B,V=f&&!U&&!N,F=(n||L)&&(B&&v||y),H=G,Y=!_&&g&&c&&(!P||k)&&!M&&!x&&w.A.shouldAllowQuickTip(),W=y&&b!==E.$e.TABLET_WITH_BIO,z=Qt;return U&&(z=B?Xt:Zt),(0,s.A)(m.Fragment,{},void 0,(R||x)&&!B&&U&&h().createElement("div",{ref:function(t){e.multipleGoalsContainer=t}},jt||(jt=(0,s.A)(yt.A,{mobile:!0}))),h().createElement(z,{fullscreenStyle:G,moveToBack:A||!1,ref:function(t){e.container=t}},!U&&(0,s.A)(Wt,{},void 0,!v&&(Mt||(Mt=(0,s.A)(m.Fragment,{},void 0,(0,s.A)(de,{}),(0,s.A)(Ce,{})))),Bt||(Bt=(0,s.A)(Lt,{})),(0,s.A)(Ae,{isAvailable:!n&&!L}),(0,s.A)(Gt.A,{location:C.Q7.HYBRID_CLIENT_CTA_CONTAINER})),Y&&(0,s.A)(mt,{isDesktop:W,disabled:!S}),a&&h().createElement(zt,{enabled:l,allowed:c,locator:"CtaContainer__giveGoldButton"}),u&&h().createElement(qt,(0,i.A)({layout:T,disabled:!d,inPrivateSession:D,isLoggedIn:g,locator:"CtaContainer__enterPaidButton",xment:j},"layout",T)),p&&(0,s.A)(Kt,{locator:"CtaContainer__signUpButton",isLoggedIn:g,xment:j,layout:T}),F&&(0,s.A)(Yt,{hidelabel:H}),V&&!n&&!L&&h().createElement(Ht,{hideLabel:H,inCam2Cam:L}),o&&(Ut||(Ut=(0,s.A)(J,{})))))}}]),n}(m.PureComponent);Jt.contextTypes={isExternalSiteFundsOnly:f().bool},Jt.propTypes={hidden:f().bool,privCallInProgress:f().bool,showChatToggle:f().bool,giveGoldVisible:f().bool,giveGoldEnabled:f().bool,giveGoldAllowed:f().bool,goPrivateVisible:f().bool,goPrivateEnabled:f().bool,privateFeaturesAvailable:f().bool,createAccountVisible:f().bool,modal:f().string,isLoggedIn:f().bool,lang:f().string,isDesktop:f().bool,isTablet:f().bool,forcedLayout:f().string,quickTipDisabled:f().bool,quickTipButtonEnabled:f().bool,layout:f().string,fullscreen:f().bool,orientation:f().string,isGoldShow:f().bool,goldShowBoughtIn:f().bool,isGoldOnly:f().bool,inPrivateSession:f().bool,currentGoal:f().string,cam2camCallInProgress:f().bool,isFanMode:f().bool,isExternalSiteShow:f().bool,xment:f().object},Jt.defaultProps={hidden:!1,privCallInProgress:!1,showChatToggle:!1,giveGoldVisible:!0,giveGoldEnabled:!1,giveGoldAllowed:!0,goPrivateVisible:!0,goPrivateEnabled:!1,inPrivateSession:!1,createAccountVisible:!1,isDesktop:!1,isTablet:!1,fullscreen:!1,currentGoal:"",cam2camCallInProgress:!1,isFanMode:!1,isExternalSiteShow:!1};const $t=(0,ee.A)([w.A,O.A,R.A,P.A,k.A,D.Ay,I.A,L.A,x.A,N.A],(function(e){var t,n=e.connection,o=n.started,r=n.clientState,i=n.streamType,s=n.goldOnly,a=e.modal,l=a.modal,c=a.goldPending,u=a.goldQueued,d=e.performer,p=d.onBreak,m=d.lang,h=d.goalStatus,A=(null===(t=e.performer)||void 0===t?void 0:t.platform)===S.Ay.STREAMFANS,f=e.user,g=f.userId,y=f.userType,v=f.stashUser,b=f.maxGold,E=f.quickTipDisabled,C=f.useCreateAccountCta,O=e.layout,P=O.isDesktop,k=O.isTablet,R=O.forcedLayout,D=O.layout,L=O.fullscreen,x=O.orientation,j=e.userList,M=j.numberOfUsersInRoom,B=j.isSolePrivateUser,U=i!==_.Ay.STREAM_TYPE_GUEST,G=i===_.Ay.STREAM_TYPE_PRIVATE,V=r===_.Ay.PLAYING||r===_.Ay.PAUSED&&!p,F=!o||l||!V,H=C&&y!==T.A.EXTERNAL,Y=b>0||!U,W=Boolean(Y||v),z=!F&&!c&&!u,q=!F&&!c,K=G&&B&&1===M&&e.rate.rateExclusive,Q=!s&&(!U||K),X=!F,Z=I.A.isActive(),J=I.A.isUserBoughtIn();Z&&(J?X=!1:Q=!1),A&&(Q=!1);var $=N.A.isRoomInExternalSiteShow();H&&!g&&(Q=!1,W=!1),Q=!w.A.isBlockbusterShow()&&Q;var ee=o&&V&&U,te=s&&h.cost?h.goal:"",ne=e.cam2cam.callInProgress;return{giveGoldVisible:W,giveGoldEnabled:z,giveGoldAllowed:Y,goPrivateVisible:Q,goPrivateEnabled:X,privateFeaturesAvailable:ee,createAccountVisible:H,modal:l,isLoggedIn:Boolean(g),lang:m,isDesktop:P,isTablet:k,forcedLayout:R,quickTipDisabled:E,quickTipButtonEnabled:q,layout:D,fullscreen:L,orientation:x,isGoldShow:Z,goldShowBoughtIn:J,isGoldOnly:s,inPrivateSession:G,currentGoal:te,cam2camCallInProgress:ne,isFanMode:A,isExternalSiteShow:$}}))(Jt)},"./src/components/DesktopRoot.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>Bt});var o=n("webpack/sharing/consume/default/react/react"),r=n.n(o),i=n("./node_modules/prop-types/index.js"),s=n.n(i),a=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),l=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),c=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),u=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),d=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),p=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),m=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),h=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),A=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),f=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),g=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),y=n("./node_modules/styled-components-rtl/index.js"),v=n("./node_modules/lodash/fp/getOr.js"),b=n.n(v),_=n("./src/lib/Strings.js"),E=n("./src/stores/PerformerStore.ts"),S=n("./src/stores/ConnectionStore.js"),C=n("./src/stores/GoldShowStore.js"),T=n("./src/constants/Connection.js"),O=n("./src/constants/LayoutConstants.ts"),I=n("./src/constants/Platforms.ts"),w=n("./src/components/video/Favorite.js"),P=n("./src/components/modals/Rating.js"),k=n("./src/components/chat/ChatDisplay.js"),R=n("./src/components/bio/CountryAgeTag.tsx"),D=n("./src/components/section/InfoContainer.tsx"),L=n("./src/components/goldshow/GoldShowContainer.js"),x=n("./src/components/bio/PremiumInfoContainer.tsx"),N=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),j=n("./node_modules/redux/es/redux.js"),M=n("./src/components/bio/Vibes.tsx"),B=n("./src/components/goldmenu/GoldMenuButton.js"),U=n("./src/components/spingold/SpinGoldButton.tsx"),G=n("./src/utils/withStores.tsx"),V=n("./src/utils/goldMenu.ts"),F=n("./src/utils/spinGold.ts"),H=n("./src/utils/withTranslations.tsx"),Y=a.Ay.div.withConfig({displayName:"ShowInfoContainer__ButtonContainer",componentId:"sc-ytihab-0"})(["display:flex;flex-direction:",";flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;"],(function(e){return e.isCompact?"row":"column"})),W=function(e){if(!e||e.length<=140)return e;var t=e.substr(0,137);return/\b$/.test(t)&&(t=t.substr(0,t.lastIndexOf(" "))),(t=t.trim().replace(/ ?[,.:;"'-]$/,""))+"..."},z=function(e){var t=e.topic,n=e.t,i=e.isCompact;return r().createElement(D.qm,null,Boolean(t)&&r().createElement(o.Fragment,null,r().createElement(D.hi,null,r().createElement(D.Kj,null,n("my_shows"))),r().createElement(D.Vq,null,t)),r().createElement(Y,{isCompact:i},r().createElement(M.Ay,{isCompact:i}),r().createElement(B.A,{isCompact:i}),r().createElement(U.A,{isCompact:i})))};z.defaultProps={truncate:!1,canCompact:!1};const q=(0,j.Zz)((0,G.A)((0,N.A)(new Set([E.A].concat((0,N.A)(F.R),(0,N.A)(V.w)))),(function(e,t){var n,o,r,i;return{bio:e.performer.bio,topic:t.truncate?W(null===(n=e.performer.bio)||void 0===n||null===(o=n.About)||void 0===o?void 0:o.AboutMyShow):null===(r=e.performer.bio)||void 0===r||null===(i=r.About)||void 0===i?void 0:i.AboutMyShow,isCompact:t.canCompact&&e.performer.vibeShow&&(0,F.Q)().isVisible&&(0,V.z)().visible}})),(0,H.A)())(z);var K,Q,X,Z,J,$,ee,te=n("./src/components/multiplegoals/MultipleGoalsContainer.tsx"),ne=n("./src/utils/createAsyncComponent.tsx");function oe(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,A.A)(e);if(t){var r=(0,A.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,h.A)(this,n)}}var re=(0,ne.A)((function(){return n.e(13).then(n.bind(n,"./src/components/similarmodels/SimilarModels.tsx"))}),{displayName:"SimilarModels"}),ie=a.Ay.div.withConfig({displayName:"Sidebar__SidebarContainer",componentId:"sc-1eod5a8-0"})(["flex-basis:0;min-width:300px;min-height:0;flex-grow:1;padding:8px;display:flex;flex-direction:column;background-color:",";max-height:100%;"],O.Tj.evenDarkerGray),se=a.Ay.div.withConfig({displayName:"Sidebar__Header",componentId:"sc-1eod5a8-1"})(["position:relative;padding:0;padding-bottom:16px;"]),ae=(0,a.Ay)(w.A).withConfig({displayName:"Sidebar__StyledFavorite",componentId:"sc-1eod5a8-2"})(["",""],(0,y.A)(K||(K=(0,g.A)(["\n margin-right: 8px;\n "])))),le=a.Ay.div.withConfig({displayName:"Sidebar__Performer",componentId:"sc-1eod5a8-3"})(["font-size:22px;margin-bottom:8px;color:",";font-weight:200;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:1px;line-height:32px;"],(function(e){return e.theme.colors.baseContrast070})),ce=a.Ay.div.withConfig({displayName:"Sidebar__Details",componentId:"sc-1eod5a8-4"})(["display:flex;align-items:center;"," & > div{font-size:14px;}"],(0,y.A)(Q||(Q=(0,g.A)(["\n margin-left: 1px;\n "])))),ue=(0,a.Ay)(P.A).withConfig({displayName:"Sidebar__StyledRating",componentId:"sc-1eod5a8-5"})([""," display:flex;align-items:center;"],(0,y.A)(X||(X=(0,g.A)(["\n margin-left: 8px;\n "])))),de=function(e){(0,m.A)(n,e);var t=oe(n);function n(e){var o;(0,u.A)(this,n),o=t.call(this,e),(0,f.A)((0,p.A)(o),"componentDidMount",(function(){o.performerToken=E.A.addListener(o.onPerformerUpdate),o.connectionToken=S.A.addListener(o.onOtherUpdate),o.goldShowToken=C.A.addListener(o.onOtherUpdate),o.onPerformerUpdate(),o.onOtherUpdate()})),(0,f.A)((0,p.A)(o),"componentWillUnmount",(function(){o.performerToken.remove(),o.connectionToken.remove(),o.goldShowToken.remove()})),(0,f.A)((0,p.A)(o),"onPerformerUpdate",(function(){var e=E.A.getState(),t=e.bio,n=e.nickname,r=e.platform;t?o.setState({performerAge:b()(0,"About.Attributes.Age",t),performerCountry:b()("","About.Attributes.Country",t),performerName:b()(n,"About.Name",t),performerRating:b()(void 0,"About.Rating",t),isFanMode:r===I.Ay.STREAMFANS}):o.setState({performerName:n})})),(0,f.A)((0,p.A)(o),"onOtherUpdate",(function(){var e=S.A.getState(),t=e.clientState,n=e.streamType,r=e.goldOnly,i=t===T.Ay.DISCONNECTED,s=n!==T.Ay.STREAM_TYPE_GUEST,a=C.A.isActive(),l=C.A.isUserBoughtIn(),c=C.A.isPreGoldShow(),u=q;C.A.isActive()?u=L.A:S.A.getState().roomTopic&&(u=x.A),o.setState({goldShowActive:a,goldShowBoughtIn:l,goldShowPre:c,infoContent:u,isDisconnected:i,isPaidSession:s,isGoldOnly:r})})),(0,f.A)((0,p.A)(o),"render",(function(){var e=o.state,t=e.performerAge,n=e.performerCountry,r=e.performerName,i=e.performerRating,s=e.isDisconnected,a=e.infoContent,l=e.isGoldOnly,u=e.isFanMode,d=o.context.platform,p=d===I.Ay.BLACKLABEL||d===I.Ay.EXTERNAL_SITE_SHOW,m=o.shouldShowSimilarModels(),h=p||!s;return s&&m?(0,c.A)(ie,{"data-ta-locator":"Sidebar__SidebarContainer"},void 0,(0,c.A)(D.Kj,{"data-ta-locator":"SimilarModels__title"},void 0,_.Ay.getString("similar_models")),Z||(Z=(0,c.A)(re,{showMaxRows:!0,showThumbnailsOnly:!0,hideToggle:!0,"data-testid":"SimilarModels"},"chat-similar-models"))):(0,c.A)(ie,{"data-ta-locator":"Sidebar__SidebarContainer"},void 0,(0,c.A)(se,{},void 0,Boolean(r)&&(0,c.A)(le,{},void 0,J||(J=(0,c.A)(ae,{})),r),Boolean(t&&n&&i)&&(0,c.A)(ce,{},void 0,(0,c.A)(R.A,{age:t,country:n,showLanguages:!0}),!u&&(0,c.A)(ue,{rating:i,size:14}))),a&&(0,c.A)(a,{canCompact:!0,isDesktop:!0,truncate:!0},"info-content"),(l||u)&&($||($=(0,c.A)(te.A,{}))),h&&(0,c.A)(k.A,{alignChatToolsWithCta:!m},"chat-display"),m&&(ee||(ee=(0,c.A)(re,{},"chat-similar-models"))))}));var r=S.A.getState(),i=r.clientState,s=r.goldOnly,a=E.A.getState().platform===I.Ay.STREAMFANS;return o.state={isDisconnected:i===T.Ay.DISCONNECTED,isGoldOnly:s,isFanMode:a||!1},o}return(0,d.A)(n,[{key:"shouldShowSimilarModels",value:function(){var e=this.props.hideSimilarModels,t=this.state,n=t.isDisconnected,o=t.isPaidSession,r=t.goldShowActive,i=t.goldShowPre,s=t.goldShowBoughtIn,a=t.isFanMode,l=this.context.platform,c=E.A.getState(),u=c.showSimilarModels,d=c.similarModels;if(!d||0===d.length)return!1;var p=l===I.Ay.BLACKLABEL&&!0!==u||l===I.Ay.EXTERNAL_SITE_SHOW;return!(e||p||a)&&(!!n||!o&&!(r&&!i&&s))}}]),n}(o.Component);(0,f.A)(de,"propTypes",{hideSimilarModels:s().bool}),(0,f.A)(de,"defaultProps",{hideSimilarModels:!1}),(0,f.A)(de,"contextTypes",{platform:s().oneOf(Object.values(I.Ay)).isRequired});const pe=de;var me,he=n("./src/components/VideoAndCtaContainer.js"),Ae=n("./src/components/video/VideoDisplay.js"),fe=n("./src/lib/Dispatcher.js"),ge=n("./src/constants/Actions.js"),ye=a.Ay.div.withConfig({displayName:"BlackLabelFooter__FooterContainer",componentId:"sc-2qn5y4-0"})(["color:",";"," margin:0;padding:0 8px;width:100%;flex:0 0 50px;background:#000;height:50px;line-height:50px;vertical-align:middle;font-size:16px;cursor:pointer;&& a{color:",";}@media ",",","{font-size:80%;}"],(function(e){return e.color}),(0,y.A)(me||(me=(0,g.A)(["\n text-align: right;\n "]))),(function(e){return e.theme.colors.baseContrast050}),O.so,O.Rc),ve=function(){fe.A.dispatch({type:ge.A.OPEN_COMPLIANCE_MODAL})},be=function(){fe.A.dispatch({type:ge.A.OPEN_TERMS_MODAL})};const _e=function(){return(0,c.A)(ye,{},void 0,(0,c.A)("a",{"data-ta-locator":"BlackLabelFooter__compliancelink",onClick:ve},void 0,_.Ay.getString("2257"))," | ",(0,c.A)("a",{"data-ta-locator":"BlackLabelFooter__termslink",onClick:be},void 0,_.Ay.getString("terms"))," | ",_.Ay.getString("powered_by")," Streamate")};var Ee=n("./src/components/CtaContainer.js"),Se=n("./src/components/modals/Modal.js"),Ce=n("./src/components/ThanksSpendMessage.js"),Te=n("webpack/sharing/consume/default/react-dom/react-dom"),Oe=n.n(Te),Ie=n("./node_modules/lodash/pick.js"),we=n.n(Ie),Pe=n("./node_modules/lodash/isEqual.js"),ke=n.n(Pe),Re=n("./node_modules/react-draggable/build/cjs/cjs.js"),De=n.n(Re),Le=n("./node_modules/react-resize-detector/build/index.esm.js"),xe=n("./src/utils/log.js"),Ne=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),je=n("./src/stores/VideoControlsStore.js"),Me=n("./src/components/common/ColoredSlider.js"),Be=n("./src/components/video/VideoControlsIconButton.js"),Ue=n("./src/components/common/Tooltip.tsx"),Ge=["showSlider","showTooltip","handleClick"];function Ve(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,A.A)(e);if(t){var r=(0,A.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,h.A)(this,n)}}var Fe=a.Ay.div.withConfig({displayName:"VolumeControls__SliderBackground",componentId:"sc-nnu866-0"})(["position:relative;width:30px;height:100%;background:",";display:flex;align-items:center;justify-content:center;"],O.Tj.darkerGray),He=a.Ay.div.withConfig({displayName:"VolumeControls__SoundContainer",componentId:"sc-nnu866-1"})(["position:relative;margin:-10px;padding:10px;"]),Ye=a.Ay.div.withConfig({displayName:"VolumeControls__SliderContainer",componentId:"sc-nnu866-2"})(["position:absolute;height:150px;max-height:0;transition:max-height 0.2s 0.5s;overflow:hidden;bottom:45px;z-index:200;transform:rotate(180deg);",":hover &{max-height:100px;transition:max-height 0.2s;}",":active &{max-height:100px;transition:max-height 0.2s;}"],He,He),We=function(e){(0,m.A)(n,e);var t=Ve(n);function n(e,o){var r;return(0,u.A)(this,n),r=t.call(this,e,o),(0,f.A)((0,p.A)(r),"onVideoControlsStoreUpdate",(function(){var e=je.A.getState(),t=e.isMuted,n=e.volume,o=e.supportsVolume;r.setState({display:o,isMuted:t,volume:n})})),(0,f.A)((0,p.A)(r),"handleMuteButton",(function(e){var t=!(r.state.isMuted||0===je.A.getState().volume);fe.A.dispatch({type:ge.A.MUTE,data:{isMuted:t}}),r.props.handleClick&&r.props.handleClick(e)})),(0,f.A)((0,p.A)(r),"handleVolumeChange",(function(e){var t=Number(e.toFixed(2));t!==r.state.volume&&fe.A.dispatch({type:ge.A.SET_VOLUME,data:{volume:t}})})),r.state={display:!0,isMuted:!1,volume:je.A.getState().volume},r}return(0,d.A)(n,[{key:"componentDidMount",value:function(){this.videoControlsToken=je.A.addListener(this.onVideoControlsStoreUpdate)}},{key:"componentWillUnmount",value:function(){this.videoControlsToken.remove()}},{key:"render",value:function(){if(!this.state.display)return null;var e,t=this.props,n=t.showSlider,o=t.showTooltip,i=(t.handleClick,(0,Ne.A)(t,Ge)),s="";o&&(s=this.state.isMuted||0===je.A.getState().volume?_.Ay.getString("unmute_audio"):_.Ay.getString("mute_audio"));return(0,c.A)(He,{},void 0,(0,c.A)(Ue.A,{title:s},void 0,r().createElement(Be.A,(0,l.A)({"data-ta-locator":"VolumeControls__muteButton",onClick:this.handleMuteButton,icon:(e=this.state.volume,0===e?"volumeMute":e<.5?"volumeDown":"volumeUp")},i))),n&&(0,c.A)(Ye,{},void 0,(0,c.A)(Fe,{},void 0,(0,c.A)(Me.A,{onChange:this.handleVolumeChange,value:this.state.volume,orientation:"vertical"}))))}}]),n}(o.Component);We.propTypes={showSlider:s().bool,showTooltip:s().bool,handleClick:s().func},We.defaultProps={showSlider:!0,showTooltip:!1,handleClick:null};var ze,qe,Ke=n("./src/components/common/GoPrivateButton.js"),Qe=n("./src/components/GiveGoldButton.js"),Xe=n("./src/components/common/ActionIconButton.js"),Ze=n("./src/stores/LayoutStore.js"),Je=n("./src/stores/ModalStore.js"),$e=n("./src/stores/VideoPipStore.js"),et=n("./src/stores/UserStore.js"),tt=n("./src/constants/VideoConstants.js"),nt=n("./src/constants/LomsEvents.js"),ot=n("./src/constants/DisconnectReasons.js"),rt=n("./src/utils/tools.ts");function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t=9}r.setState({hasDragged:c,dragPosition:l});var d={x:(l.x-a.left)/-(a.left-a.right),y:(l.y-a.top)/-(a.top-a.bottom)};fe.A.dispatch({type:ge.A.DESKTOP_PIP_DRAG_OFFSET,data:st(st({},l),{},{normalizedX:d.x,normalizedY:d.y})})})),(0,f.A)((0,p.A)(r),"handleDragStop",(function(){r.setState({hasDragged:!1})})),(0,f.A)((0,p.A)(r),"handleResize",(function(e,t){r.setState({pipContainerWidth:e,pipContainerHeight:t},r.evaluateDragBounds)})),(0,f.A)((0,p.A)(r),"evaluateDragBounds",(function(){var e=r.state,t=e.pipContainerWidth,n=e.pipContainerHeight,o=e.dragPosition,i=o.x,s=o.y,a=t+48,l=n+48,c={left:-window.innerWidth+a,right:0,top:-window.innerHeight+l,bottom:0},u=r.getClampedDragPosition({x:i,y:s},c);r.setState({dragBounds:c,dragPosition:u})})),r.state=st(st(st(st(st({isShowing:!1,dragEnabled:o.layout===O.Ay.DESKTOP,hasDragged:!1,dragPosition:{x:0,y:0},pipContainerWidth:0,pipContainerHeight:0,transform:st({},we()(e,n.transformProps))},n.getLayoutStoreState()),n.getConnectionStoreState()),n.getGoldShowStoreState()),n.getModalStoreState()),n.getVideoPipStoreState()),r}return(0,d.A)(n,[{key:"componentDidMount",value:function(){this.layoutToken=Ze.Ay.addListener(this.onLayoutStoreChange),this.connectionToken=S.A.addListener(this.onConnectionStoreChange),this.goldShowToken=C.A.addListener(this.onGoldShowStoreChange),this.modalToken=Je.A.addListener(this.onModalStoreChange),this.videoPipStoreToken=$e.A.addListener(this.onVideoPipStoreChange),this.dispatchVideoLocationAvailability()}},{key:"componentWillUnmount",value:function(){this.layoutToken.remove(),this.connectionToken.remove(),this.goldShowToken.remove(),this.modalToken.remove(),this.videoPipStoreToken.remove(),setTimeout((function(){fe.A.dispatch({type:ge.A.VIDEO_LOCATION_AVAILABILITY,data:{location:tt.A.LOCATION.PIP,available:!1}})})),this.state.isVisible&&setTimeout((function(){fe.A.dispatch({type:ge.A.PIP_VISIBILITY,data:{isShowing:!1}})}))}},{key:"shouldComponentUpdate",value:function(e,t,n){return!ke()(e,this.props)||!ke()(t,this.state)||n.layout!==this.context.layout||n.orientation!==this.context.orientation}},{key:"componentDidUpdate",value:function(e){var t=we()(e,n.transformProps),o=we()(this.props,n.transformProps);ke()(t,o)||this.setState({transform:st({},o)}),this.dispatchVideoLocationAvailability()}},{key:"dispatchVideoLocationAvailability",value:function(){var e=this;setTimeout((function(){var t=e.context,n=t.layout,o=t.orientation;fe.A.dispatch({type:ge.A.VIDEO_LOCATION_AVAILABILITY,data:{location:tt.A.LOCATION.PIP,available:n===O.Ay.DESKTOP||o===O.Ay.PORTRAIT}}),e.evaluateIsShowing()}))}},{key:"renderVideoButtons",value:function(){var e=this.context.layout,t=!this.state.modal.modal,n=e===O.Ay.DESKTOP;return(0,c.A)(mt,{isDesktop:n,"data-ta-locator":"VideoPip__ButtonsContainer"},"video-buttons",(0,c.A)(ht,{},void 0,(0,c.A)(Xe.A,{glyph:"close",title:_.Ay.getString("close"),tooltipPlacement:"top",buttonId:"VideoPip__CloseButton",onClick:this.handleCloseClicked})),(0,c.A)(At,{},void 0,n&&(0,c.A)(We,{transparentBg:!0,isAvailable:t,showSlider:!1,showTooltip:!0,handleClick:this.handleVolumeControlsClicked,"data-ta-locator":"VideoPip__VolumeControls"},"volume-controls")))}},{key:"renderCtaButton",value:function(){var e=this.context.layout,t=this.props.xment;if(e!==O.Ay.DESKTOP||this.state.connection.isRoomEnteringPaid)return null;var n=this.state,o=n.goldShow,i=n.modal,s=n.connection,a=this.state.layout.platform,l=!i.modal&&!i.goldPending&&!i.goldQueued,c=o.isActive&&!o.isUserBoughtIn,u=s.isGoldOnly,d=s.isBlockbusterShow,p=c||u||a===I.Ay.STREAMFANS||d,m=!p;if(p){var h=l&&!o.isUserBoughtIn;return r().createElement(gt,{enabled:h,allowed:!0,locator:"VideoPip_GiveGoldButton",inPip:!0})}if(m){var A,g=l&&!o.isUserBoughtIn;return r().createElement(ft,(A={layout:e,disabled:!g,locator:"VideoPip_EnterPaidButton",inPip:!0,xment:t},(0,f.A)(A,"layout",e),(0,f.A)(A,"isLoggedIn",et.A.isLoggedIn()),A))}return null}},{key:"getPipContainerStyle",value:function(){var e=this.state.transform;if(n.isTransformValid(e)){var t=this.props,o=t.transitionTime,r=t.transitionEase,i=o>=0?["transform","width","height"].map((function(e){return"".concat(e," ").concat(o,"s ").concat(r)})).join(", "):"",s=e.x,a=e.y;return{width:e.viewportWidth,height:e.viewportHeight,transform:"translate(".concat(s,"px, ").concat(a,"px)"),transition:i}}}},{key:"getVideoAndButtonsWrapperStyle",value:function(){var e,t=this.state.transform;n.isTransformValid(t)?e=t.viewportWidth/t.viewportHeight:e=this.state.layout.videoAspectRatio;var o="".concat(1/e*100,"%"),r=this.props,i=r.transitionTime,s=r.transitionEase;return{paddingBottom:o,transition:i>=0?"padding-bottom ".concat(i,"s ").concat(s):""}}},{key:"getVideoContainerStyle",value:function(){var e=this.state.transform;if(n.isTransformValid(e)){var t=this.props,o=t.transitionTime,r=t.transitionEase,i=o>=0?"transform ".concat(o,"s ").concat(r):"",s=this.state.layout.videoAspectRatio,a=e.viewportWidth,l=e.viewportHeight,c=264/s,u=a/l>s?a/264:l/c,d=(l-c*u)/2;return{transform:"translate(".concat((a-264*u)/2,"px, ").concat(d,"px) scale(").concat(u,")"),transition:i}}}},{key:"getClampedDragPosition",value:function(e,t){var n=e.x,o=e.y,r=t.left,i=t.right,s=t.top,a=t.bottom;return{x:(0,rt.qE)(n,r,i),y:(0,rt.qE)(o,s,a)}}},{key:"render",value:function(){if(!this.context.pipContainerElement)return null;var e=this.props,t=e.showShadow,n=e.showButtons,i=this.state,s=i.isShowing,a=i.hasDragged,l=i.layout.videoAspectRatio,u=s&&n&&this.renderCtaButton(),d=this.getPipContainerStyle(),p=this.getVideoAndButtonsWrapperStyle(),m=this.getVideoContainerStyle(),h=Boolean(d),A=h?o.Fragment:De(),f=h?{}:this.getDragWrapperProps();return Oe().createPortal(r().createElement(A,f,r().createElement(lt,{ref:this.setPipRef,isShowing:s,hasTransform:h,showShadow:t,style:d,"data-ta-locator":"VideoPip__PipContainer"},(0,c.A)(Le.Ay,{onResize:this.handleResize,handleHeight:!0,handleWidth:!0}),(0,c.A)(ct,{style:p,disablePointerEvents:a},void 0,(0,c.A)(ut,{videoAspectRatio:l,style:m},void 0,r().createElement("div",{ref:this.setVideoDockRef,"data-ta-locator":"VideoPip__VideoDock"}),(0,c.A)(dt,{onClick:this.handleVideoClicked})),s&&n&&!a&&this.renderVideoButtons()),u&&(0,c.A)(pt,{onClick:this.restoreToDefaultVideo,disablePointerEvents:a},"cta-container",u))),this.context.pipContainerElement)}}],[{key:"getLayoutStoreState",value:function(){var e=Ze.Ay.getState();return{layout:{videoAspectRatio:e.videoAspectRatio,platform:e.platform}}}},{key:"getConnectionStoreState",value:function(){return{connection:{isPlaying:S.A.isPlaying(),isGuestChat:S.A.isGuestStream(),isGoldOnly:S.A.isGoldOnlyStream(),isBlockbusterShow:S.A.isBlockbusterShow(),isRoomEnteringPaid:S.A.isRoomEnteringPaid()}}}},{key:"getGoldShowStoreState",value:function(){return{goldShow:{isActive:C.A.isActive(),isUserBoughtIn:C.A.isUserBoughtIn(),isInProgress:C.A.isInProgress()}}}},{key:"getModalStoreState",value:function(){var e=Je.A.getState();return{modal:{modal:e.modal,goldPending:e.goldPending,goldQueued:e.goldQueued}}}},{key:"getVideoPipStoreState",value:function(){var e=$e.A.getState(),t=e.videoLocation,n=e.userDismissedPip,o=e.streamAvailableForPip;return{videoPip:{isVideoInPip:t===tt.A.LOCATION.PIP,userDismissedPip:n,streamAvailableForPip:o}}}},{key:"isTransformValid",value:function(e){var t=e.x,n=e.y,o=e.viewportWidth,r=e.viewportHeight,i=function(e){return"number"==typeof e};return i(t)&&i(n)&&i(o)&&i(r)}}]),n}(o.Component);(0,f.A)(yt,"transformProps",["x","y","viewportWidth","viewportHeight"]),yt.contextTypes={layout:s().string,orientation:s().string,videoContainerElement:s().instanceOf(Element).isRequired,pipContainerElement:s().instanceOf(Element).isRequired},yt.propTypes={x:s().number,y:s().number,viewportWidth:s().number,viewportHeight:s().number,transitionTime:s().number,transitionEase:s().string,showShadow:s().bool,showButtons:s().bool,restoreDefault:s().func,scrollToDefaultRef:s().object,xment:s().object},yt.defaultProps={transitionTime:-1,transitionEase:"",showShadow:!0,showButtons:!0};var vt,bt,_t,Et,St=n("./src/components/ThemeProvider.tsx"),Ct=n("./src/constants/Overlays.ts"),Tt=n("./src/stores/OverlayStore.js"),Ot=n("./src/components/videoclient/store/cam2cam/Cam2CamStore.ts"),It=n("./src/components/videoclient/store/videoClient/VideoClientStore.ts"),wt=n("./src/components/videoclient/cam2cam/EnterModal/PrivateCallPreviewLively.tsx"),Pt=a.Ay.div.attrs({style:function(e){return{height:e.playerWithBlacklabelFooterHeight}}}).withConfig({displayName:"DesktopPlayerSection__PlayerWithBlacklabelFooter",componentId:"sc-1dukxvv-0"})(["width:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:stretch;position:relative;overflow:hidden;flex-shrink:0;"]),kt=a.Ay.div.attrs({style:function(e){return{height:e.playerHeight,maxHeight:e.playerHeight}}}).withConfig({displayName:"DesktopPlayerSection__Player",componentId:"sc-1dukxvv-1"})(["width:100%;flex:1 0;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:stretch;"]),Rt=function(e,t){var n=(0,o.useRef)(null),i=e.modal,s=e.modalProps,a=e.overlay,u=e.assetPath,d=e.source,p=e.fullscreen,m=e.layout,h=e.videoViewportHeight,A=e.ctaHeight,f=e.preferredPlayerHeight,g=e.c2cRequestedLively,y=e.xment,v=t.platform,b=m===O.Ay.TABLET,_=p||m===O.Ay.TABLET,E=b?"100%":"".concat(f,"px"),S=h+A,C={assetPath:u,source:d,isDesktop:!b};return(0,c.A)(St.A,{themeMode:"dark",themeSwitch:!0},void 0,r().createElement(Pt,{playerWithBlacklabelFooterHeight:E},r().createElement("div",{ref:n}),r().createElement(kt,{playerHeight:S},(0,c.A)(he.A,{},void 0,r().createElement(Ae.A,C,g&&(vt||(vt=(0,c.A)(wt.A,{desktop:!0})))),i&&r().createElement(Se.A,(0,l.A)({isDesktop:!0},s,{key:i,modal:i})),bt||(bt=(0,c.A)(Ce.A,{})),!a&&(0,c.A)(Ee.A,{isDesktop:!0,isLandscape:!0,showChatToggle:_,xment:y},"HybridClient_CtaContainer")),!_&&(_t||(_t=(0,c.A)(pe,{},"sidebar")))),!_&&v===I.Ay.BLACKLABEL&&(Et||(Et=(0,c.A)(_e,{},"blacklabel-footer")))),(v===I.Ay.SCP||v===I.Ay.STREAMFANS)&&(0,c.A)(yt,{scrollToDefaultRef:n,xment:y},"video-pip"))};Rt.propTypes={assetPath:s().string,source:s().string,modal:s().string,modalProps:s().object,overlay:s().string,preferredPlayerHeight:s().number,fullscreen:s().bool,layout:s().string,videoViewportHeight:s().number,ctaHeight:s().number,c2cRequestedLively:s().bool,xment:s().object},Rt.defaultProps={modal:"",overlay:Ct.A.NONE,fullscreen:!1,layout:O.Ay.DESKTOP,sections:null},Rt.contextTypes={platform:s().oneOf(Object.values(I.Ay))};const Dt=(0,G.A)([Je.A,Tt.A,E.A,Ze.Ay,Ot.A,It.A],(function(e){return{modal:e.modal.modal,modalProps:e.modal.modalProps,overlay:e.overlay.overlay,preferredPlayerHeight:e.layout.preferredPlayerHeight,fullscreen:e.layout.fullscreen,layout:e.layout.layout,videoViewportHeight:e.layout.videoViewportHeight,ctaHeight:e.layout.ctaHeight,c2cRequestedLively:e.cam2cam.requested}}),{memoize:!0})(Rt);var Lt=(0,ne.A)((function(){return n.e(8).then(n.bind(n,"./src/components/DesktopInfoContainer.tsx"))}),{displayName:"DesktopInfoContainer",fallback:null}),xt=function(e){var t=e.themeMode,n=e.sections,o=e.performerBioTabs,r=e.performerBioTabOrder,i=e.handleGoToLogin,s=e.handleClearHybridClient,a=e.breakpoint;return(0,c.A)(St.A,{themeMode:t,themeSwitch:!0},void 0,(0,c.A)(Lt,{sections:n,performerBioTabs:o,performerBioTabOrder:r,handleGoToLogin:i,handleClearHybridClient:s,breakpoint:a}))};xt.propTypes={themeMode:s().string,sections:s().object,performerBioTabs:s().arrayOf(s().shape({name:s().string,titleStringKey:s().string,render:s().func})),performerBioTabOrder:s().arrayOf(s().string),handleGoToLogin:s().func,handleClearHybridClient:s().func,breakpoint:s().string},xt.defaultProps={fullscreen:!1,sections:null};const Nt=xt;var jt=a.Ay.div.attrs({style:function(e){return{height:e.rootWrapperHeight,minWidth:e.rootWrapperMinWidth}}}).withConfig({displayName:"DesktopRoot__Root",componentId:"sc-2geizy-0"})(["background-color:#000;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;overflow:hidden;position:relative;"]),Mt=function(e){var t=e.assetPath,n=e.source,o=e.themeMode,i=e.sections,s=e.performerBioTabs,a=e.performerBioTabOrder,l=e.showBioContainer,c=e.rootWrapperHeight,u=e.rootWrapperMinWidth,d=e.handleGoToLogin,p=e.handleClearHybridClient,m=e.breakpoint,h=e.xment;return r().createElement(jt,{rootWrapperMinWidth:u,rootWrapperHeight:c},r().createElement(Dt,{assetPath:t,source:n,xment:h}),l&&r().createElement(Nt,{themeMode:o,sections:i,performerBioTabs:s,performerBioTabOrder:a,handleGoToLogin:d,handleClearHybridClient:p,breakpoint:m}))};Mt.propTypes={assetPath:s().string,performerBioTabs:s().arrayOf(s().shape({name:s().string,titleStringKey:s().string,render:s().func})),performerBioTabOrder:s().arrayOf(s().string),sections:s().object,source:s().string,themeMode:s().string,showBioContainer:s().bool,rootWrapperHeight:s().string,rootWrapperMinWidth:s().number,handleGoToLogin:s().func,handleClearHybridClient:s().func,breakpoint:s().string,xment:s().object},Mt.defaultProps={bioInfoHeight:0,fullscreen:!1,layout:O.Ay.DESKTOP,privCallInProgress:!1,sections:null,showDiagnostic:!1,themeMode:"dark",showBioContainer:!1,rootWrapperHeight:"",rootWrapperMinWidth:"",handleGoToLogin:function(){},handleClearHybridClient:function(){},breakpoint:""};const Bt=(0,G.A)([Ze.Ay,E.A],(function(e){var t=e.layout,n=t.fullscreen,o=t.showPerformerBio,r=t.layout,i=e.performer.nickname,s=r===O.Ay.TABLET;return{showBioContainer:!n&&o&&i,rootWrapperHeight:s&&!n?"100%":"",rootWrapperMinWidth:!(n||s)||s&&o?O.fi.desktop.min:0}}),{memoize:!0})(Mt)},"./src/components/GiveGoldButton.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>q});var o,r,i,s=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),l=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),c=n("webpack/sharing/consume/default/react/react"),u=n("./node_modules/prop-types/index.js"),d=n.n(u),p=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),m=n("./node_modules/styled-components-rtl/index.js"),h=n("./node_modules/lodash/pickBy.js"),A=n.n(h),f=n("./node_modules/lodash/identity.js"),g=n.n(f),y=n("./node_modules/lodash/fp/compose.js"),v=n.n(y),b=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),_=n.n(b),E=n("./src/utils/log.js"),S=n("./src/utils/lomsTools.js"),C=n("./src/utils/forPlatforms.tsx"),T=n("./src/utils/withStores.tsx"),O=n("./src/utils/gold.js"),I=n("./src/constants/Actions.js"),w=n("./src/constants/LomsEvents.js"),P=n("./src/constants/Platforms.ts"),k=n("./src/stores/GoldShowStore.js"),R=n("./src/stores/ModalStore.js"),D=n("./src/stores/LayoutStore.js"),L=n("./src/lib/Dispatcher.js"),x=n("./src/lib/Strings.js"),N=n("./src/components/ThanksPopup.js"),j=n("./src/components/GoldCoin.js"),M=.75*N.N,B=2*M,U=(0,p.i7)(["0%{transform:translateY(-50px) scale(0.1);}10%{transform:translateY(-120px) scale(1);}90%{transform:translateY(-120px) scale(1);}100%{transform:translateY(-50px) scale(0.1);}"]),G=(0,p.i7)(["0%{opacity:0;}10%{opacity:1;}90%{opacity:1;}100%{opacity:0;}"]),V=(0,p.i7)(["0%{transform:rotateY(0deg);animation-timing-function:cubic-bezier(0,.6,.6,1);}60%{transform:rotateY(1080deg);}100%{transform:rotateY(1080deg);}"]),F=(0,p.Ay)(j.A).attrs({size:64}).withConfig({displayName:"GiveGoldButton__GoldCoinFlip",componentId:"sc-1j8tf0q-0"})(["will-change:transform;animation:"," ","ms cubic-bezier(0.3,0,1,1);animation-fill-mode:both;"],V,B),H=p.Ay.div.withConfig({displayName:"GiveGoldButton__GoldCoinMove",componentId:"sc-1j8tf0q-1"})(["width:","px;height:","px;position:absolute;transform-origin:50% 50%;will-change:opacity,transform;animation:"," ","ms,"," ","ms;animation-fill-mode:both;"],64,64,U,B,G,B),Y=p.Ay.div.withConfig({displayName:"GiveGoldButton__GoldCoinRoot",componentId:"sc-1j8tf0q-2"})(["position:absolute;top:0;"," z-index:1;pointer-events:none;"],(0,m.A)(o||(o=(0,l.A)(["\n left: calc(50% - ","px);\n "])),32)),W=function(){return r||(r=(0,a.A)(Y,{},void 0,(0,a.A)(H,{},void 0,(0,a.A)(F,{}))))},z=function(e){var t=e.enabled,n=e.allowed,o=e.className,r=e.onClick,l=e.locator,u=e.inPip,d=e.showThanks,p=e.thanksAmount,m=e.isGoldShowActive,h=e.isUserBoughtInToGoldShow,f=e.goldShowMinbuyinString,y=(0,c.useState)(!1),v=(0,s.A)(y,2),b=v[0],C=v[1],T=(0,c.useState)(!1),P=(0,s.A)(T,2),R=P[0],D=P[1];(0,c.useEffect)((function(){d&&(C(!0),setTimeout((function(){C(!1),D(!0)}),M),setTimeout((function(){D(!1),L.A.dispatch({type:I.A.HIDE_THANKS_SPEND_MESSAGE})}),2*M))}),[d]);var j="give_gold",B="";m&&!h&&(j="lb_reserve_short",B=f),n||(j="gold_disabled_in_paid");var U=!t||!n,G=(0,x.AA)(j),V=B?100*Number(B.replace(/[^0-9.]/g,"")):void 0,F=k.A.isPreGoldShow()||k.A.needPledge(),H=new URLSearchParams(A()({amount:V,label:F?"goldShowPledge":void 0},g())).toString()||void 0;return(0,a.A)("div",{className:o,style:{position:"relative"}},void 0,(0,a.A)(_(),{disabled:U,gold:!0,label:B?"".concat(G,": ").concat(B):G,onClick:function(e){e.preventDefault(),E.A.usageTick("givegold_opened"),(0,S.sX)(u?w.A.CTA_BUTTONS.PIP_GIVE_GOLD:w.A.CTA_BUTTONS.GIVE_GOLD),L.A.dispatch({type:I.A.GIVE_GOLD_CLICK}),r&&r()},"data-icf-click":"GiveGoldButton","data-icf-meta":H,"data-ta-locator":l,fullWidth:!0}),d&&(i||(i=(0,a.A)(W,{}))),b&&Boolean(p)&&(0,a.A)(N.A,{},void 0,"+",(0,O.MN)(p),"!"),R&&(0,a.A)(N.A,{},void 0,(0,x.AA)("thankyou").replace(" ",x.pI)))};z.propTypes={enabled:d().bool,allowed:d().bool,className:d().string,onClick:d().func,locator:d().string,inPip:d().bool,showThanks:d().bool,thanksAmount:d().number,isGoldShowActive:d().bool,isUserBoughtInToGoldShow:d().bool,goldShowMinbuyinString:d().string},z.defaultProps={locator:"GiveGoldButton",inPip:!1};const q=v()((0,C.A)({exclude:[P.Ay.EXTERNAL_SITE_SHOW]}),(0,T.A)([R.A,D.Ay,k.A],(function(e){return{showThanks:e.modal.showThanksSpendMessage&&e.layout.isDesktop,thanksAmount:e.modal.thanksSpendAmount,isGoldShowActive:k.A.isActive(),isUserBoughtInToGoldShow:k.A.isUserBoughtIn(),goldShowMinbuyinString:e.goldShow.minbuyinString}})))(z)},"./src/components/GoldCoin.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o,r,i=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),s=(n("webpack/sharing/consume/default/react/react"),n("./node_modules/prop-types/index.js")),a=n.n(s),l=function(e){var t=e.className,n=e.size,s=void 0===n?210:n;return(0,i.A)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 210 210",width:s,height:s,className:t},void 0,o||(o=(0,i.A)("defs",{},void 0,(0,i.A)("path",{d:"M205 105C205 160.19 160.19 205 105 205C49.81 205 5 160.19 5 105C5 49.81 49.81 5 105 5C160.19 5 205 49.81 205 105Z",id:"b42YoJKQ1"}),(0,i.A)("linearGradient",{id:"gradientcgjC0NQom",gradientUnits:"userSpaceOnUse",x1:"200.77",y1:"75.8",x2:"9.64",y2:"134.5"},void 0,(0,i.A)("stop",{stopColor:"#fff3b9",stopOpacity:1,offset:"0%"}),(0,i.A)("stop",{stopColor:"#fff5b3",stopOpacity:1,offset:"43.06071840842074%"}),(0,i.A)("stop",{stopColor:"#c28810",stopOpacity:1,offset:"57.658156253850535%"}),(0,i.A)("stop",{stopColor:"#c28810",stopOpacity:1,offset:"100%"})),(0,i.A)("clipPath",{id:"clipf2yJPW8IBd"},void 0,(0,i.A)("use",{xlinkHref:"#b42YoJKQ1",opacity:"1"})),(0,i.A)("mask",{id:"maskb79BUVDNn",x:"-5",y:"-5",width:"220",height:"220",maskUnits:"userSpaceOnUse"},void 0,(0,i.A)("rect",{x:"-5",y:"-5",width:"220",height:"220",fill:"white"}),(0,i.A)("use",{xlinkHref:"#b42YoJKQ1",opacity:"1",fill:"black"})),(0,i.A)("path",{d:"M170 105C170 140.87 140.87 170 105 170C69.13 170 40 140.87 40 105C40 69.12 69.13 40 105 40C140.87 40 170 69.12 170 105Z",id:"cnu6wKNKi"}),(0,i.A)("linearGradient",{id:"gradientb2quYxBTQ2",gradientUnits:"userSpaceOnUse",x1:"165.67",y1:"81",x2:"41.67",y2:"119.33"},void 0,(0,i.A)("stop",{stopColor:"#fff9cf",stopOpacity:1,offset:"0%"}),(0,i.A)("stop",{stopColor:"#fff3ab",stopOpacity:1,offset:"34.59400991894961%"}),(0,i.A)("stop",{stopColor:"#bf8103",stopOpacity:1,offset:"65.52423173955407%"}),(0,i.A)("stop",{stopColor:"#b77700",stopOpacity:1,offset:"100%"})))),r||(r=(0,i.A)("g",{},void 0,(0,i.A)("g",{},void 0,(0,i.A)("use",{xlinkHref:"#b42YoJKQ1",opacity:"1",fill:"url(#gradientcgjC0NQom)"}),(0,i.A)("g",{clipPath:"url(#clipf2yJPW8IBd)"},void 0,(0,i.A)("use",{xlinkHref:"#b42YoJKQ1",opacity:"1",fillOpacity:"0",stroke:"#b16214",strokeWidth:"6",strokeOpacity:"1"})),(0,i.A)("g",{mask:"url(#maskb79BUVDNn)"},void 0,(0,i.A)("use",{xlinkHref:"#b42YoJKQ1",opacity:"1",fillOpacity:"0",stroke:"#f7bc40",strokeWidth:"10",strokeOpacity:"1"}))),(0,i.A)("g",{},void 0,(0,i.A)("use",{xlinkHref:"#cnu6wKNKi",opacity:"1",fill:"url(#gradientb2quYxBTQ2)"}),(0,i.A)("g",{},void 0,(0,i.A)("use",{xlinkHref:"#cnu6wKNKi",opacity:"1",fillOpacity:"0",stroke:"#d29629",strokeWidth:"4",strokeOpacity:"1"}))))))};l.propTypes={className:a().string,size:a().number},l.defaultProps={size:210};const c=l},"./src/components/JssConfiguration.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var o=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),i=(n("webpack/sharing/consume/default/react/react"),n("./node_modules/prop-types/index.js")),s=n.n(i),a=n("./node_modules/jss/dist/jss.esm.js"),l=n("./node_modules/jss-preset-default/dist/jss-preset-default.esm.js"),c=n("./node_modules/react-jss/dist/react-jss.esm.js");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t{"use strict";n.d(t,{A:()=>Re});var o=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("webpack/sharing/consume/default/react/react"),a=n.n(s),l=n("./node_modules/prop-types/index.js"),c=n.n(l),u=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),d=n("./src/components/VideoAndCtaContainer.js"),p=n("./src/components/video/VideoDisplay.js"),m=n("./src/components/CtaContainer.js"),h=n("./src/components/modals/Modal.js"),A=n("./src/components/ThanksSpendMessage.js"),f=n("./src/components/section/TabsContainer.js"),g=n("./src/components/ThemeProvider.tsx"),y=n("./src/components/videoclient/cam2cam/EnterModal/PrivateCallPreviewLively.tsx"),v=n("./src/constants/Platforms.ts"),b=n("./src/constants/Overlays.ts"),_=n("./src/stores/ModalStore.js"),E=n("./src/stores/OverlayStore.js"),S=n("./src/stores/PerformerStore.ts"),C=n("./src/stores/UserStore.js"),T=n("./src/stores/LayoutStore.js"),O=n("./src/components/videoclient/store/cam2cam/Cam2CamStore.ts"),I=n("./src/components/videoclient/store/videoClient/VideoClientStore.ts"),w=n("./src/utils/withStores.tsx"),P=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),k=n("./node_modules/lodash/fp/getOr.js"),R=n.n(k),D=n("./node_modules/styled-components-rtl/index.js"),L=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),x=n.n(L),N=n("./node_modules/@atg/icf-react-components/components/FlatButton/index.js"),j=n.n(N),M=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),B=n.n(M),U=n("./src/utils/lomsTools.js"),G=n("./src/utils/tools.ts"),V=n("./src/utils/messenger.ts"),F=n("./src/utils/complaint.ts"),H=n("./node_modules/@atg/icf-react-components/components/CircleImage/index.js"),Y=n.n(H),W=u.Ay.div.withConfig({displayName:"CircleBioPic__StyledCircleImage",componentId:"sc-19sz4rs-0"})(["margin:0 auto;z-index:2;img{","}"],(function(e){return e.blur&&"filter: blur(16px);"})),z=function(e){var t=e.biopic,n=e.blur,o=e.performerName,r=e.size,i=e.onClick;return a().createElement(W,{onClick:i,blur:n},Boolean(t)&&a().createElement(Y(),{src:t,size:r,alt:o,border:!0,shadow:!0}))};z.defaultProps={size:90,blur:!1};const q=(0,w.A)([S.A],(function(e){var t,n,o;return{performerName:null!==(t=null===(n=e.performer.bio)||void 0===n||null===(o=n.About)||void 0===o?void 0:o.Name)&&void 0!==t?t:e.performer.nickname,biopic:e.performer.biopicLarge}}))(z);var K,Q,X,Z,J,$,ee,te=n("./src/components/video/Favorite.js"),ne=n("./src/components/bio/CountryAgeTag.tsx"),oe=n("./src/components/modals/Rating.js"),re=n("./src/components/common/CloseButton.js"),ie=n("./src/components/ReportComplaintButton.tsx"),se=n("./src/lib/Strings.js"),ae=n("./src/constants/Messages.js"),le=n("./src/constants/LomsEvents.js"),ce=n("./src/constants/ComplaintConstants.ts"),ue=u.Ay.span.withConfig({displayName:"MobileOfflineProfileHeader__PerformerNickname",componentId:"sc-1gpxb9c-0"})(["font-size:22px;color:",";font-weight:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"," margin-top:","px;"],(function(e){return e.theme.colors.baseContrast070}),(function(e){return e.theme.typography.fontWeight}),(0,D.A)(K||(K=(0,P.A)(["\n margin-left: ","px;\n "])),(function(e){var t=e.theme;return String(t.spacing.base/2)})),(function(e){return e.theme.spacing.base/2})),de=u.Ay.div.withConfig({displayName:"MobileOfflineProfileHeader__StyledWrapper",componentId:"sc-1gpxb9c-1"})(["display:flex;flex-direction:column;padding-top:","px;background:",";"],(function(e){return 2*e.theme.spacing.base}),(function(e){return e.theme.colors.baseContrast015})),pe=u.Ay.div.withConfig({displayName:"MobileOfflineProfileHeader__SnapshotBackgroundImage",componentId:"sc-1gpxb9c-2"})(["opacity:0.4;position:absolute;top:0;left:0;bottom:0;right:0;height:96px;background-color:",";background-image:",";background-repeat:no-repeat;background-size:cover;z-index:1;",""],(function(e){return e.theme.colors.baseContrast015}),(function(e){return"url(".concat(e.performerSnapshot,")")}),(function(e){return e.blur&&"filter: blur(16px);"})),me=u.Ay.div.withConfig({displayName:"MobileOfflineProfileHeader__StyledFavoriteAndName",componentId:"sc-1gpxb9c-3"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;"]),he=u.Ay.div.withConfig({displayName:"MobileOfflineProfileHeader__StyledAgeAndRating",componentId:"sc-1gpxb9c-4"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;margin-top:","px;margin-bottom:",";& > div{display:flex;align-items:center;margin:",";}.countryAgeTag{font-size:14px;}"],(function(e){return e.theme.spacing.base/2}),(function(e){var t=e.theme;return"".concat(1.5*t.spacing.base,"px")}),(function(e){var t=e.theme;return"0 ".concat(t.spacing.base/2,"px")})),Ae=(0,u.AH)(["display:flex;justify-content:center;margin:",";& label{margin:0;font-size:14px;}"],(function(e){var t=e.theme;return"".concat(t.spacing.base/2,"px ").concat(2*t.spacing.base,"px")})),fe=(0,u.Ay)(x()).withConfig({displayName:"MobileOfflineProfileHeader__StyledRaisedButton",componentId:"sc-1gpxb9c-5"})(["",""],Ae),ge=(0,u.Ay)(j()).withConfig({displayName:"MobileOfflineProfileHeader__StyledFlatButton",componentId:"sc-1gpxb9c-6"})(["",""],Ae),ye=(0,u.Ay)(re.A).withConfig({displayName:"MobileOfflineProfileHeader__StyledCloseButton",componentId:"sc-1gpxb9c-7"})(["position:absolute;"," top:0;z-index:2;"],(0,D.A)(Q||(Q=(0,P.A)(["\n right: 0;\n "])))),ve=u.Ay.div.withConfig({displayName:"MobileOfflineProfileHeader__OfflineTag",componentId:"sc-1gpxb9c-8"})(["position:absolute;top:","px;"," font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;color:",";z-index:2;"],(function(e){return 1.5*e.theme.spacing.base}),(0,D.A)(X||(X=(0,P.A)(["\n left: ","px;\n "])),(function(e){var t=e.theme;return String(1.5*t.spacing.base)})),(function(e){return e.theme.colors.baseContrast060})),be=(0,u.Ay)(ie.A).withConfig({displayName:"MobileOfflineProfileHeader__StyledReportComplaintButton",componentId:"sc-1gpxb9c-9"})(["position:absolute;",""],(0,D.A)(Z||(Z=(0,P.A)(["\n right: 0px;\n "])))),_e=function(){(0,U.sX)(le.A.CTA_BUTTONS.OFFLINE_MESSENGER),(0,V.R)()},Ee=function(){(0,U.sX)(le.A.CTA_BUTTONS.CIRCLE_BIO_PIC),(0,V.R)()},Se=function(e,t){var n,o=t.platform===v.Ay.UNKNOWN||t.platform===v.Ay.SCP,i=[{typeAttributes:["BioPic"],localizedString:(0,se.AA)(ce.Fo.BioPic),lookupData:null!==(n=(0,F.u)("BioPic"))&&void 0!==n?n:{},isPaidContent:!1,serviceType:"HybridClient"}],a=C.A.isExplicitContentBlocked();return(0,r.A)(de,{},void 0,(0,r.A)(pe,{performerSnapshot:e.performerSnapshot,blur:a}),(0,r.A)(ve,{},void 0,(0,se.AA)("offline")),(0,r.A)(ye,{buttonId:"MobileOfflineProfileHeader-CloseButton",onClick:function(){return(0,G.Zj)(ae.A.CLOSE_CLIENT)}}),(0,r.A)(q,{onClick:Ee,blur:a}),(0,r.A)(me,{},void 0,(0,r.A)(te.N,{performerId:e.performerId}),(0,r.A)(ue,{},void 0,e.performerName)),(0,r.A)(he,{},void 0,(0,r.A)(ne.A,{bio:e.bio,className:"countryAgeTag",showLanguages:!1}),(0,r.A)(oe.A,{rating:e.performerRating,size:16}),(0,r.A)(be,{complaintLocation:ce.Q7.HYBRID_CLIENT_MOBILE_PROFILE_HEADER,reportableContents:i,contactSupport:!0})),o?(0,r.A)(s.Fragment,{},void 0,(0,r.A)(fe,{label:(0,se.AA)("inmail_private_message_me"),size:"small",iconLeft:J||(J=(0,r.A)(B(),{name:"email"})),onClick:_e}),(0,r.A)(ge,{label:(0,se.AA)("back_to_live"),size:"small",iconLeft:$||($=(0,r.A)(B(),{name:"arrowBack"})),onClick:function(){return(0,G.Zj)(ae.A.BROWSE_LIVE_MODELS)},ghost:!0})):(0,r.A)(fe,{label:(0,se.AA)("back_to_live"),size:"small",iconLeft:ee||(ee=(0,r.A)(B(),{name:"arrowBack"})),onClick:function(){return(0,G.Zj)(ae.A.BROWSE_LIVE_MODELS)}}))};Se.propTypes={performerName:c().string,performerId:c().number,bio:c().object,performerRating:c().number,performerSnapshot:c().string},Se.contextTypes={platform:c().oneOf(Object.values(v.Ay))};const Ce=(0,w.A)([S.A],(function(e){var t=e.performer;return{bio:t.bio,performerId:R()(t.id,"PerformerId",t.bio),performerName:R()(t.nickname,"About.Name",t.bio),performerRating:R()(void 0,"About.Rating",t.bio),performerSnapshot:t.snapshot}}))(Se);var Te,Oe,Ie,we=u.Ay.div.attrs({style:function(e){return{flexBasis:"".concat(e.innerHeight,"px"),height:"".concat(e.innerHeight,"px")}}}).withConfig({displayName:"MobileRoot__MobileRootWrapper",componentId:"sc-n7awqp-0"})(["background-color:#000;display:flex;flex-direction:column;flex-grow:1;flex-wrap:nowrap;justify-content:center;overflow-x:hidden;overflow-y:hidden;position:relative;"]),Pe=(0,u.Ay)(d.A).withConfig({displayName:"MobileRoot__StyledVideoAndCtaContainer",componentId:"sc-n7awqp-1"})(["& > .icf-react-components{flex:1;display:flex;}& > .icf-react-components > div{flex:1;}"]),ke=function(e,t){var n=e.innerHeight,l=e.isLandscape,c=e.modal,u=e.modalProps,d=e.overlay,b=e.performerId,_=e.mobileCam2Cam,E=e.assetPath,S=e.source,T=e.sections,O=e.offlineMobileLayoutEnabled,I=e.themeMode,w=e.hideCtaContainer,P=e.c2cRequestedLively,k=e.handleGoToLogin,R=e.handleClearHybridClient,D=e.breakpoint,L=e.xment,x=e.afno,N=t.platform,j=(0,s.useState)(!1),M=(0,i.A)(j,2),B=M[0],U=M[1],G=(0,s.useState)(!1),V=(0,i.A)(G,2),F=V[0],H=V[1];(0,s.useEffect)((function(){x&&"B"===L.enterClampedView?U(!0):x&&"C"===L.enterClampedView?H(!0):(U(!1),H(!1))}),[L]);var Y=N===v.Ay.BLACKLABEL,W=N===v.Ay.STREAMFANS,z={innerHeight:n,isLandscape:l},q={assetPath:E,source:S,isLandscape:l,mobileCam2Cam:_,key:"HybridClient_VideoDisplay",xment:L,shouldEnterClampedView:B,shouldEnterClampedChatView:F,handleGoToLogin:k};return(0,r.A)(g.A,{themeMode:I,themeSwitch:!0},void 0,a().createElement(we,(0,o.A)({},z,{"data-ta-locator":"MobileRootWrapper"}),O?a().createElement(a().Fragment,null,Te||(Te=(0,r.A)(Ce,{})),(0,r.A)(g.A,{themeMode:"dark",themeSwitch:!0},void 0,c&&a().createElement(h.A,(0,o.A)({},u,{isLandscape:l,key:c,modal:c})))):(0,r.A)(Pe,{},void 0,(0,r.A)(g.A,{themeMode:"dark",themeSwitch:!0},void 0,a().createElement(p.A,q,P&&(Oe||(Oe=(0,r.A)(y.A,{desktop:!1,direction:"right",controls:!0}))),Ie||(Ie=(0,r.A)(A.A,{}))),c&&a().createElement(h.A,(0,o.A)({},u,{isLandscape:l,key:c,modal:c}))),!d&&(0,r.A)(m.A,{isDesktop:!1,isLandscape:l,mobileCam2Cam:_,hidden:w,xment:L})),(0,r.A)(f.A,{hide:l||!b,hideAddToFavorites:Y,hideTags:Y,isBlackLabel:Y,performerId:b,sections:T,hideBio:W,hidePhotos:W||C.A.isExplicitContentBlocked(),handleGoToLogin:k,handleClearHybridClient:R,breakpoint:D})))};ke.propTypes={assetPath:c().string,mobileCam2Cam:c().bool,themeMode:c().string,source:c().string,sections:c().object,modal:c().string,modalProps:c().object,overlay:c().string,performerId:c().number,isLandscape:c().bool,innerHeight:c().number,hideCtaContainer:c().bool,offlineMobileLayoutEnabled:c().bool,c2cRequestedLively:c().bool,audioEnabled:c().bool,videoEnabled:c().bool,currentAudioDeviceId:c().string,currentVideoDeviceId:c().string,handleGoToLogin:c().func,handleClearHybridClient:c().func,breakpoint:c().string,xment:c().object,afno:c().string},ke.defaultProps={isLandscape:!1,mobileCam2Cam:!1,modal:"",overlay:b.A.NONE,performerId:0,innerHeight:0,sections:null,hideCtaContainer:!1},ke.contextTypes={platform:c().oneOf(Object.values(v.Ay))};const Re=(0,w.A)([_.A,E.A,S.A,T.Ay,O.A,I.A],(function(e){return{modal:e.modal.modal,modalProps:e.modal.modalProps,overlay:e.overlay.overlay,performerId:Number(e.performer.id),isLandscape:e.layout.isLandscape,innerHeight:e.layout.innerHeight,hideCtaContainer:e.layout.chatInputActive&&e.layout.mobileClampedView,offlineMobileLayoutEnabled:e.layout.offlineMobileLayoutEnabled&&e.overlay.overlay===b.A.OFFLINE,c2cRequestedLively:e.cam2cam.requested,videoEnabled:e.cam2cam.videoEnabled,audioEnabled:e.cam2cam.audioEnabled,currentAudioDeviceId:e.cam2cam.currentAudioDeviceId,currentVideoDeviceId:e.cam2cam.currentVideoDeviceId}}),{memoize:!0})(ke)},"./src/components/ThanksPopup.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>c,N:()=>a});var o,r=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),i=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=n("./node_modules/styled-components-rtl/index.js"),a=1250,l=(0,i.i7)(["0%{opacity:0;transform:translate(-50%,30px);}15%{opacity:1;transform:translate(-50%,0px);}85%{opacity:0.9;transform:translate(-50%,0px);}100%{opacity:0;transform:translate(-50%,30px);}"]);const c=i.Ay.div.withConfig({displayName:"ThanksPopup",componentId:"sc-5xfjtn-0"})(["position:absolute;top:-40px;padding:","px ","px;font-size:","px;background-color:rgba(0,0,0,0.8);color:",";z-index:2;font-family:",";font-weight:400;line-height:1.4em;pointer-events:none;"," animation:"," ","ms;will-change:opacity,transform;animation-fill-mode:both;"],(function(e){return e.theme.spacing.base/2}),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.typography.fontSize-2}),(function(e){return e.theme.colors.textOnDark}),(function(e){return e.theme.typography.fontFamily}),(0,s.A)(o||(o=(0,r.A)(["\n left: 50%;\n "]))),l,(function(e){return e.animationTime||a}))},"./src/components/ThanksSpendMessage.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var o,r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=n("webpack/sharing/consume/default/react/react"),s=n("./node_modules/prop-types/index.js"),a=n.n(s),l=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),c=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),u=n.n(c),d=n("./src/lib/Dispatcher.js"),p=n("./src/lib/Strings.js"),m=n("./src/constants/LayoutConstants.ts"),h=n("./src/constants/Actions.js"),A=n("./src/components/common/primitives/index.js"),f=n("./src/utils/withStores.tsx"),g=n("./src/stores/ModalStore.js"),y=n("./src/stores/LayoutStore.js"),v=(0,l.i7)(["0%{transform:scale(0);animation-timing-function:cubic-bezier(0.1,0.5,0.8,1.5);}15%{transform:scale(0.95);animation-timing-function:ease-out;}20%{transform:scale(1);}85%{transform:scale(1);animation-timing-function:ease-in;}100%{transform:scale(0);}"]),b=(0,l.i7)(["0%{opacity:0;animation-timing-function:ease;}20%{opacity:0.75;}80%{opacity:0.75;animation-timing-function:ease-in;}100%{opacity:0;}"]),_=(0,l.i7)(["0%{transform:scale(0);}10%{transform:scale(0);animation-timing-function:ease-out;}25%{transform:scale(1);}85%{transform:scale(1);animation-timing-function:ease-in;}100%{transform:scale(0);}"]),E=(0,l.i7)(["0%{opacity:0;animation-timing-function:ease;}25%{opacity:1;}80%{opacity:1;animation-timing-function:ease-in;}100%{opacity:0;}"]),S=(0,l.Ay)(u()).attrs({name:"favorite"}).withConfig({displayName:"ThanksSpendMessage__ThanksHeart",componentId:"sc-o7azpv-0"})(["width:250px;height:250px;object-fit:contain;position:absolute;fill:",";animation:"," ","ms,"," ","ms;animation-fill-mode:both;transform-origin:center;"],m.Tj.red,v,1e3,b,1e3),C=l.Ay.span.withConfig({displayName:"ThanksSpendMessage__ThanksHeader",componentId:"sc-o7azpv-1"})(["display:block;font-size:30px;font-weight:500;line-height:1.45;animation:"," ","ms,"," ","ms;animation-fill-mode:both;margin-bottom:35px;text-align:center;text-transform:capitalize;letter-spacing:0.5px;color:#ffffff;user-select:none;position:absolute;min-width:200px;transform-origin:center;"],_,1e3,E,1e3),T={pointerEvents:"none",position:"absolute",top:"50%",left:"50%"},O=function(e){var t=e.show;return(0,i.useEffect)((function(){t&&setTimeout((function(){d.A.dispatch({type:h.A.HIDE_THANKS_SPEND_MESSAGE})}),1250)}),[t]),t?(0,r.A)(A.VC,{"data-ta-locator":"ThanksSpendMessage",style:T},void 0,o||(o=(0,r.A)(S,{})),(0,r.A)(C,{},void 0,p.Ay.getString("thankyou"))):null};O.propTypes={show:a().bool};const I=(0,f.A)([g.A,y.Ay],(function(e){return{show:e.modal.showThanksSpendMessage&&!e.layout.isDesktop}}))(O)},"./src/components/VideoAndCtaContainer.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var o=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),i=(n("webpack/sharing/consume/default/react/react"),n("./node_modules/prop-types/index.js")),s=n.n(i),a=n("./src/stores/LayoutStore.js"),l=n("./src/utils/withStores.tsx");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{A:()=>h});var o=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),r=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),i=n("webpack/sharing/consume/default/react/react"),s=n.n(i),a=n("./node_modules/prop-types/index.js"),l=n.n(a),c=n("./src/constants/LayoutConstants.ts"),u=n("./src/components/chat/ChatForm.js"),d=n("./src/components/chat/MessageList.js"),p=n("./node_modules/styled-components/dist/styled-components.browser.esm.js").Ay.div.withConfig({displayName:"ChatDisplay__Container",componentId:"sc-131163z-0"})(["display:flex;flex-flow:"," nowrap;flex-grow:1;flex-shrink:0;justify-content:",";position:relative;"],(function(e){return e.inputOnTop?"column":"column-reverse"}),(function(e){return e.inputOnTop?"flex-start":"flex-end"})),m=function(e,t){var n=e.inVoiceChat,i=e.alignChatToolsWithCta,a=e.showChatOnBottom,l=t.layout,m=[c.Ay.MOBILE,c.Ay.TABLET].includes(l),h=l===c.Ay.DESKTOP,A={messageFlow:m&&!a?"fall":"rise",transparent:m,scrollable:h||a};return(0,o.A)(p,{inputOnTop:m},void 0,a?s().createElement(s().Fragment,null,s().createElement(d.A,(0,r.A)({key:"message-list"},A)),s().createElement(u.A,{showChatTools:h,inVoiceChat:n,alignChatToolsWithCta:i})):s().createElement(s().Fragment,null,s().createElement(u.A,{showChatTools:h,inVoiceChat:n,alignChatToolsWithCta:i}),s().createElement(d.A,(0,r.A)({key:"message-list"},A))))};const h=m;m.propTypes={inVoiceChat:l().bool,guests:l().number,alignChatToolsWithCta:l().bool,showChatOnBottom:l().bool},m.defaultProps={inVoiceChat:!1,guests:1,alignChatToolsWithCta:!1},m.contextTypes={layout:l().string},m.displayName="ChatDisplay"},"./src/components/chat/ChatForm.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>Rt});var o=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),d=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),p=n("webpack/sharing/consume/default/react/react"),m=n.n(p),h=n("./node_modules/prop-types/index.js"),A=n.n(h),f=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),g=n("./node_modules/styled-components-rtl/index.js"),y=n("./node_modules/@atg/icf-react-components/themes/dark.js"),v=n("./node_modules/@atg/icf-react-components/components/IconButton/index.js"),b=n.n(v),_=n("./src/lib/Dispatcher.js"),E=n("./src/lib/Strings.js"),S=n("./src/utils/log.js"),C=n("./src/utils/withStores.tsx"),T=n("./src/utils/tools.ts"),O=n("./src/constants/Actions.js"),I=n("./src/constants/ChatConstants.ts"),w=n("./src/constants/LayoutConstants.ts"),P=n("./src/constants/Messages.js"),k=n("./src/constants/ComplaintConstants.ts"),R=n("./src/stores/ConnectionStore.js"),D=n("./src/stores/UserStore.js"),L=n("./src/stores/ChatStore.js"),x=n("./src/stores/LayoutStore.js"),N=n("./src/stores/GoldShowStore.js"),j=n("./src/stores/UserListStore.ts"),M=n("./src/stores/PerformerStore.ts"),B=n("./src/stores/XmentStore.ts");const U=[{name:"grin",code:"😁"},{name:"laughing",code:"😆"},{name:"wink",code:"😉"},{name:"yum",code:"😋"},{name:"sunglasses",code:"😎"},{name:"heart_eyes",code:"😍"},{name:"kissing_heart",code:"😘"},{name:"smirk",code:"😏"},{name:"relieved",code:"😌"},{name:"stuck_out_tongue_winking_eye",code:"😜"},{name:"stuck_out_tongue_closed_eyes",code:"😝"},{name:"innocent",code:"😇"},{name:"smiling_imp",code:"😈"},{name:"muscle",code:"💪"},{name:"point_left",code:"👈"},{name:"point_right",code:"👉"},{name:"ok",code:"👌"},{name:"+1",code:"👍"},{name:"footprints",code:"👣"},{name:"tongue",code:"👅"},{name:"lips",code:"👄"},{name:"kiss",code:"💋"},{name:"heart",code:"❤️"},{name:"heartpulse",code:"💗"},{name:"sweat_drops",code:"💦"},{name:"eyeglasses",code:"👓"},{name:"necktie",code:"👔"},{name:"bikini",code:"👙"},{name:"high_heel",code:"👠"},{name:"boot",code:"👢"},{name:"crown",code:"👑"},{name:"lipstick",code:"💄"},{name:"gem",code:"💎"},{name:"rose",code:"🌹"},{name:"banana",code:"🍌"},{name:"apple",code:"🍎"},{name:"peach",code:"🍑"},{name:"cherries",code:"🍒"},{name:"eggplant",code:"🍆"},{name:"birthday",code:"🎂"},{name:"lollipop",code:"🍭"},{name:"honey_pot",code:"🍯"},{name:"wine_glass",code:"🍷"},{name:"volcano",code:"🌋"},{name:"rainbow",code:"🌈"},{name:"fire",code:"🔥"},{name:"tada",code:"🎉"},{name:"gift",code:"🎁"},{name:"loud_sound",code:"🔊"},{name:"wheelchair",code:"♿️"},{name:"movie_camera",code:"🎥"},{name:"moneybag",code:"💰"},{name:"incoming_envelope",code:"📨"},{name:"scissors",code:"✂️"},{name:"crossed_swords",code:"⚔️"},{name:"smoking",code:"🚬"}];var G=n("./src/components/common/Tooltip.tsx"),V=n("./src/components/common/Popup.tsx");function F(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}var H=f.Ay.div.withConfig({displayName:"EmojiPicker__Container",componentId:"sc-1grxha9-0"})(["position:relative;"]),Y=(0,f.Ay)(b()).withConfig({displayName:"EmojiPicker__StyledIconButton",componentId:"sc-1grxha9-1"})(["margin:0;padding:0;width:auto;height:auto;border:none;"]),W=(0,f.Ay)(V.A).withConfig({displayName:"EmojiPicker__StyledPopup",componentId:"sc-1grxha9-2"})(["& > div{flex-direction:column;justify-content:flex-start;min-height:300px;max-height:390px;user-select:none;}"]),z=f.Ay.div.withConfig({displayName:"EmojiPicker__EmojiList",componentId:"sc-1grxha9-3"})(["align-items:flex-start;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:280px;overflow:auto;height:320px;"]),q=f.Ay.a.withConfig({displayName:"EmojiPicker__Glyph",componentId:"sc-1grxha9-4"})(["align-items:center;cursor:pointer;display:flex;font-size:28px;height:40px;justify-content:center;width:40px;&:hover{background-color:",";}"],(function(e){return e.theme.colors.baseContrast020})),K=function(e){(0,a.A)(n,e);var t=F(n);function n(e){var o;return(0,r.A)(this,n),(o=t.call(this,e)).state={showPopup:!1},o.toggleEmojiListState=o.toggleEmojiListState.bind((0,s.A)(o)),o}return(0,i.A)(n,[{key:"toggleEmojiListState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;S.A.usage("emoji_list_toggled");var t=!this.state.showPopup;this.setState({showPopup:t}),e&&e.stopPropagation(),t?document.addEventListener("click",this.toggleEmojiListState):document.removeEventListener("click",this.toggleEmojiListState)}},{key:"appendEmoji",value:function(e){var t=e.name;S.A.usageTick("emoji_appended"),S.A.usageTick("emoji_used_".concat(t)),S.A.loms({eventname:"EmojiClickV1",name:t}),_.A.dispatch({type:O.A.APPEND_EMOJI,data:e.code}),this.toggleEmojiListState()}},{key:"renderPopup",value:function(){var e=this;return(0,o.A)(W,{targetId:"EmojiPickerButton"},void 0,(0,o.A)(z,{},void 0,U.map((function(t){return(0,o.A)(q,{onClick:function(){return e.appendEmoji(t)}},t.name,t.code)}))))}},{key:"render",value:function(){var e=this.state.showPopup,t=e?"":E.Ay.getString("emoji");return(0,o.A)(H,{},void 0,e&&this.renderPopup(),(0,o.A)(G.A,{title:t},void 0,(0,o.A)(Y,{id:"EmojiPickerButton","data-ta-locator":"Chat__emojiPicker",onClick:this.toggleEmojiListState,fill:"#9e9e9e",name:"insertEmoticon"})))}}]),n}(p.Component);K.contextTypes={renderFrame:A().object,window:A().any,document:A().any};const Q=K;function X(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}var Z=f.Ay.div.withConfig({displayName:"PrivateChat__Container",componentId:"sc-wjxp3x-0"})(["display:inline-block;cursor:pointer;height:24px;"]),J=(0,f.Ay)(b()).withConfig({displayName:"PrivateChat__StyledIconButton",componentId:"sc-wjxp3x-1"})(["margin:0;padding:0;width:24px;height:24px;border:none;"]),$=function(e){(0,a.A)(n,e);var t=X(n);function n(e){var o;return(0,r.A)(this,n),o=t.call(this,e),(0,u.A)((0,s.A)(o),"onChatStoreUpdate",(function(){var e=L.A.getState().private;o.state.private!==e&&o.setState({private:e})})),o.state={private:L.A.getState().private},o.togglePrivacy=o.togglePrivacy.bind((0,s.A)(o)),o}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.chatToken=L.A.addListener(this.onChatStoreUpdate)}},{key:"componentWillUnmount",value:function(){this.chatToken.remove()}},{key:"togglePrivacy",value:function(e){e.preventDefault(),S.A.usageTick("anonymousToggle_click_"+!this.state.private),_.A.dispatch({type:O.A.TOGGLE_CHAT_PRIVACY,data:{private:!this.state.private}})}},{key:"render",value:function(){var e=this.state.private?"visibilityOff":"visibility",t=this.state.private?E.Ay.getString("chat_visible"):E.Ay.getString("chat_hidden"),n="private=".concat(this.state.private);return(0,o.A)(Z,{},void 0,(0,o.A)(G.A,{title:t},void 0,(0,o.A)(J,{"data-ta-locator":"Chat__togglePrivacy","data-icf-click":"TogglePrivacy","data-icf-meta":n,onClick:this.togglePrivacy,fill:"#9e9e9e",name:e})))}}]),n}(p.Component);function ee(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}var te=(0,f.Ay)(b()).attrs({name:"textFormatSize"}).withConfig({displayName:"FontSizeChanger__Button",componentId:"sc-hndn1s-0"})(["margin:0;padding:0;width:auto;height:auto;border:none;"]),ne=(0,f.Ay)(b()).attrs({size:20,fill:function(e){return e.theme.colors.baseContrast100}}).withConfig({displayName:"FontSizeChanger__AdjustButton",componentId:"sc-hndn1s-1"})(["padding:4px;margin-",":4px;&:hover{background-color:",";}"],(function(e){return"subtract"===e.name?"right":"left"}),(function(e){return e.theme.colors.baseContrast030})),oe=f.Ay.div.withConfig({displayName:"FontSizeChanger__Container",componentId:"sc-hndn1s-2"})(["position:relative;"]),re=function(e){(0,a.A)(n,e);var t=ee(n);function n(){var e;return(0,r.A)(this,n),e=t.call(this),(0,u.A)((0,s.A)(e),"togglePopup",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=!e.state.popupVisible,o=e.state.userChangedFontSize;e.setState({popupVisible:n,userChangedFontSize:!1}),t&&t.stopPropagation(),n?(S.A.loms({eventname:"FontSizeClickV2"}),e.context.document.addEventListener("click",e.togglePopup)):(o&&S.A.loms({eventname:"FontSizeChangeV2",fontSize:L.A.getState().desktopFontSize}),e.context.document.removeEventListener("click",e.togglePopup))})),(0,u.A)((0,s.A)(e),"decreaseFontSize",(function(){_.A.dispatch({type:O.A.DECREASE_FONT_SIZE}),e.setState({userChangedFontSize:!0})})),(0,u.A)((0,s.A)(e),"increaseFontSize",(function(){_.A.dispatch({type:O.A.INCREASE_FONT_SIZE}),e.setState({userChangedFontSize:!0})})),e.state={popupVisible:!1,userChangedFontSize:!1},e}return(0,i.A)(n,[{key:"stopPropagation",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this.state.popupVisible;if(!x.Ay.getState().isDesktop)return null;var t=L.A.canDecreaseFontSize(),n=L.A.canIncreaseFontSize();return(0,o.A)(oe,{},void 0,(0,o.A)(G.A,{title:e?"":E.Ay.getString("font_size")},void 0,(0,o.A)(te,{fill:e?"#ffffff":"#9e9e9e",onClick:this.togglePopup,id:"FontSizeChangerButton","data-ta-locator":"FontSizeChanger__PopupButton"})),e&&(0,o.A)(V.A,{targetId:"FontSizeChangerButton"},void 0,(0,o.A)(ne,{name:"subtract",disabled:!t,onClick:this.decreaseFontSize,"data-ta-locator":"FontSizeChanger__DecreaseButton"}),(0,o.A)(ne,{name:"add",disabled:!n,onClick:this.increaseFontSize,"data-ta-locator":"FontSizeChanger__IncreaseButton"})))}}]),n}(p.Component);re.contextTypes={document:A().any};const ie=re;var se=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),ae=n.n(se),le=n("./src/utils/FluxStoreExtended.ts"),ce=n("./node_modules/lscache/lscache.js"),ue=n.n(ce);function de(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var me=function(e){for(var t=1;t=me.max}},{key:"__onDispatch",value:function(e){switch(e.type){case O.A.QUICK_CHAT_ADD_OPTION:"string"!=typeof e.data.value&&S.A.statsIncCounter("session.quickchat.add_option.nonstring"),this.isFull()||(me.options.push(e.data.value),ue().set("QuickChatOptions",me.options));break;case O.A.QUICK_CHAT_REMOVE_OPTION:isNaN(e.data.index)&&S.A.statsIncCounter("session.quickchat.remove_option.nan_index"),me.options.splice(e.data.index,1),ue().set("QuickChatOptions",me.options);break;case O.A.QUICK_CHAT_EDIT_OPTION:isNaN(e.data.index)&&S.A.statsIncCounter("session.quickchat.edit_option.nan_index"),"string"!=typeof e.data.value&&S.A.statsIncCounter("session.quickchat.edit_option.nonstring"),me.options[e.data.index]=e.data.value,ue().set("QuickChatOptions",me.options);break;case O.A.QUICK_CHAT_CLEAR_OPTIONS:me.options=[],ue().set("QuickChatOptions",me.options);break;default:return}this.__emitChange()}}]),n}(le.A))("quickChat",_.A);var Ae;function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ge(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}var ye=f.Ay.div.withConfig({displayName:"QuickChat__Container",componentId:"sc-vl7txe-0"})(["position:relative;"]),ve=(0,f.Ay)(V.A).withConfig({displayName:"QuickChat__StyledPopup",componentId:"sc-vl7txe-1"})(["width:300px;& > div{flex-direction:column;}"]),be=f.Ay.div.withConfig({displayName:"QuickChat__Instructions",componentId:"sc-vl7txe-2"})(["display:flex;flex-direction:row;flex-grow:1;margin-bottom:4px;color:",";font-size:12px;"],(function(e){return e.theme.colors.baseContrast040})),_e=f.Ay.div.withConfig({displayName:"QuickChat__InstructionsText",componentId:"sc-vl7txe-3"})(["flex-grow:1;"]),Ee=(0,f.Ay)(b()).attrs({name:"chatBubble"}).withConfig({displayName:"QuickChat__OpenButton",componentId:"sc-vl7txe-4"})(["margin:0;padding:0;width:auto;height:auto;border:none;"]),Se=f.Ay.a.withConfig({displayName:"QuickChat__AddLink",componentId:"sc-vl7txe-5"})(["margin-top:4px;font-size:12px;&:hover{color:",";}"],(function(e){return e.theme.colors.baseContrast100})),Ce=(0,f.Ay)(ae()).attrs({fill:"currentColor",name:"addCircle",size:16}).withConfig({displayName:"QuickChat__AddButton",componentId:"sc-vl7txe-6"})(["vertical-align:bottom;"]),Te=function(e){(0,a.A)(n,e);var t=ge(n);function n(){var e;return(0,r.A)(this,n),e=t.call(this),(0,u.A)((0,s.A)(e),"togglePopup",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=!e.state.popupVisible;e.setState({popupVisible:n}),t&&t.stopPropagation(),n?e.context.document.addEventListener("click",e.togglePopup):e.context.document.removeEventListener("click",e.togglePopup)})),(0,u.A)((0,s.A)(e),"toggleAddDialog",(function(){var t=!e.state.addDialogVisible;e.setState({addDialogVisible:t})})),(0,u.A)((0,s.A)(e),"validateOption",(function(e){return"string"==typeof e&&""!==e})),(0,u.A)((0,s.A)(e),"addOption",(function(t){e.validateOption(t)&&(_.A.dispatch({type:O.A.QUICK_CHAT_ADD_OPTION,data:{value:t}}),S.A.loms({eventname:"QuickChatAddedV1"})),e.toggleAddDialog()})),(0,u.A)((0,s.A)(e),"editOption",(function(t){return function(n){e.validateOption(n)&&(_.A.dispatch({type:O.A.QUICK_CHAT_EDIT_OPTION,data:{index:t,value:n}}),S.A.loms({eventname:"QuickChatEditedV1"}))}})),(0,u.A)((0,s.A)(e),"removeOption",(function(e){return function(){_.A.dispatch({type:O.A.QUICK_CHAT_REMOVE_OPTION,data:{index:e}})}})),(0,u.A)((0,s.A)(e),"sendOption",(function(t){return function(){_.A.dispatch({type:O.A.UPDATE_CHAT_MESSAGE,data:t}),e.togglePopup(),S.A.loms({eventname:"QuickChatPopulatedV1"})}})),e.onStoreChange=e.onStoreChange.bind((0,s.A)(e)),e.state=function(e){for(var t=1;t div + div{","}"],(0,g.A)(Je||(Je=(0,d.A)(["\n margin-left: 8px;\n "])))),dt=(0,f.Ay)(lt()).attrs({classes:{flatButtonLabel:"flatButtonLabel"}}).withConfig({displayName:"ChatTools__StyledButton",componentId:"sc-o4dro5-2"})(["float:right;padding:0;height:24px;line-height:1;margin-top:0;margin-bottom:0;.flatButtonLabel{padding:0.25em 0.25em;text-transform:uppercase;}"]),pt=function(e){var t=e.className,n=e.inVoiceChat,r=e.submit,i=e.submitDisabled;return(0,o.A)(ct,{className:t},void 0,(0,o.A)(ut,{},void 0,$e||($e=(0,o.A)(Q,{})),et||(et=(0,o.A)(Oe,{})),tt||(tt=(0,o.A)($,{})),n?nt||(nt=(0,o.A)(qe,{})):null,ot||(ot=(0,o.A)(ie,{}))),rt||(rt=(0,o.A)(st,{})),(0,o.A)(dt,{ghost:!0,size:"small",label:E.Ay.getString("send"),"data-ta-locator":"ChatTools__send",onClick:r,disabled:i}))};pt.propTypes={className:A().string,inVoiceChat:A().bool,submit:A().func,submitDisabled:A().bool,alignWithCta:A().bool},pt.defaultProps={inVoiceChat:!1,submit:function(){},submitDisabled:!1,alignWithCta:!1};const mt=pt;var ht,At,ft,gt=n("./src/components/video/ReportComplaintMenu.tsx");function yt(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}var vt=(0,f.i7)(["0%{opacity:1;transform:scale(1.25);}50%{opacity:0.75;transform:scale(1);}100%{opacity:1;transform:scale(1.25);}"]),bt=f.Ay.div.withConfig({displayName:"ChatForm__ButtonContainer",componentId:"sc-1tkmnex-0"})(["background:white;display:flex;align-items:center;justify-content:center;&:before{position:absolute;background:",';border-radius:100%;transition:0.2s all ease;content:" ";width:',";height:",";animation:",";}&& svg{transition:0.3s all ease;fill:",";}"],(function(e){return e.speechRecListening?e.theme.colors.baseContrast040:"transparent"}),(function(e){return e.speechRecListening?"30px":"0px"}),(function(e){return e.speechRecListening?"30px":"0px"}),(function(e){return(0,f.AH)([""," ",";"],vt,e.speechRecListening?"infinite 1s":"none")}),(function(e){return e.speechRecListening?e.theme.colors.baseContrast100:e.theme.colors.baseContrast050})),_t=(0,f.Ay)(bt).withConfig({displayName:"ChatForm__PrivateButtonContainer",componentId:"sc-1tkmnex-1"})(["background:",";"," width:38px;&& svg{transition:0.3s all ease;fill:",";}"],y.colors.baseContrast070,(0,g.A)(ht||(ht=(0,d.A)(["\n border-right: 1px solid ",";\n "])),(function(e){return e.theme.colors.baseContrast050})),y.colors.baseContrast040),Et=f.Ay.div.withConfig({displayName:"ChatForm__Container",componentId:"sc-1tkmnex-2"})(["display:flex;flex-direction:row;flex-wrap:nowrap;margin-bottom:8px;",""],(function(e){return e.compact&&"\n margin-top: -8px;\n margin-bottom: 0px;\n "})),St=f.Ay.div.withConfig({displayName:"ChatForm__InputWrapper",componentId:"sc-1tkmnex-3"})(["display:flex;flex:auto;border:1px solid ",";border-radius:2px;unicode-bidi:bidi-override;direction:ltr;"],(function(e){return e.theme.colors.baseContrast050})),Ct=f.Ay.form.withConfig({displayName:"ChatForm__Form",componentId:"sc-1tkmnex-4"})(["",""],(function(e){return e.inactive?"width: 0;":"\n flex: 1;\n display: flex;\n "})),Tt=f.Ay.input.withConfig({displayName:"ChatForm__Input",componentId:"sc-1tkmnex-5"})(["background-color:",";border:none;color:",";line-height:2;flex:1;border-radius:0;margin:0;padding:",";scroll-margin-bottom:50px;"," &::placeholder{color:",";}",""],(function(e){return e.theme.colors.textOnDark}),(function(e){return e.theme.colors.textOnLight}),(function(e){return e.isDesktop?"3px 7px":"7px 14px"}),(function(e){return e.isDesktop?"\n min-width: 0;\n line-height: 2em;\n height: 2em;\n\n && {\n font-size: ".concat(e.desktopFontSize,"px;\n }\n "):"width: 100%;"}),(function(e){var t=e.theme;return"dark"===t.type?t.colors.baseContrast060:t.colors.baseContrast040}),(function(e){return e.inactive&&"\n position: fixed;\n top: 0;\n left: -1000px;\n width: 50px;\n "})),Ot=(0,f.Ay)(b()).withConfig({displayName:"ChatForm__StyledIconButton",componentId:"sc-1tkmnex-6"})(["padding:9px 12px;height:42px;transition:1s all ease;"]),It=(0,f.Ay)(Ot).withConfig({displayName:"ChatForm__StyledTextIconButton",componentId:"sc-1tkmnex-7"})(["&& svg{fill:",";}"],(function(e){return e.theme.colors.baseContrast050})),wt=(0,f.Ay)(mt).withConfig({displayName:"ChatForm__StyledChatTools",componentId:"sc-1tkmnex-8"})(["",""],(function(e){return e.alignWithCta&&e.ctaContainerHeight&&"\n /* Remove 16px to account for padding in Sidebar & margin in ChatForm Container */\n min-height: ".concat(e.ctaContainerHeight-16,"px;\n ")})),Pt=(0,f.Ay)(gt.A).withConfig({displayName:"ChatForm__StyledReportComplaintButton",componentId:"sc-1tkmnex-9"})(["",""],(0,g.A)(At||(At=(0,d.A)(["\n padding: 0px 0px 0px ","px;\n margin-right: ","px;\n "])),(function(e){var t=e.theme;return String(t.spacing.base)}),(function(e){var t=e.theme;return String(-t.spacing.base)}))),kt=function(e){(0,a.A)(n,e);var t=yt(n);function n(e){var o;return(0,r.A)(this,n),o=t.call(this,e),(0,u.A)((0,s.A)(o),"handleSubmit",(function(e){if(e.preventDefault(),R.A.getState().started&&(!R.A.isESSUser()||M.A.getState().isExtSSEnabled)){var t={type:I.A.USERTYPE_ME,text:o.state.chat,isPrivate:L.A.getState().private};""!==t.text&&_.A.dispatch({type:O.A.CHAT_SENDMESSAGE,data:{message:t,sessionType:R.A.getState().sessionType,userType:D.A.getState().userType}}),o.recognition&&o.recognition.stop()}})),(0,u.A)((0,s.A)(o),"handleMessageChange",(function(e){!o.context.layout!==w.Ay.DESKTOP&&e.target.value===o.state.chat||_.A.dispatch({type:O.A.UPDATE_CHAT_MESSAGE,data:e.target.value})})),(0,u.A)((0,s.A)(o),"handleClick",(function(){var e=o.context.layout===w.Ay.MOBILE,t=D.A.isLoggedIn();(0,T.Zj)(P.A.HANDLE_NO_NICKNAME),o.props.useChatPromptJoin&&!t?(0,T.Zj)(P.A.REQUIRES_AUTH):_.A.dispatch({type:O.A.CHAT_INPUT_FOCUSED,data:{focused:!0,preventScroll:e}}),o._input.focus(),o.setState({inputFocused:!0});var n=/android.+mobile/i.test(window.navigator.userAgent);setTimeout((function(){o._input&&(o._input.scrollIntoViewIfNeeded?o._input.scrollIntoViewIfNeeded(!1):n&&o._input.scrollIntoView(!1))}),300)})),(0,u.A)((0,s.A)(o),"handleBlur",(function(){setTimeout((function(){o.context.document.activeElement!==o._input&&(_.A.dispatch({type:O.A.CHAT_INPUT_FOCUSED,data:{focused:!1}}),o.setState({inputFocused:!1}))}))})),(0,u.A)((0,s.A)(o),"handleMic",(function(){if(o.state.speechRecListening)return o.recognition.stop(),void o.handleRecognitionSpeechEnd();o.recognition.start()})),(0,u.A)((0,s.A)(o),"handleRecognitionStart",(function(){S.A.usageTick("speech_recognition_start"),o.setState({speechRecListening:!0})})),(0,u.A)((0,s.A)(o),"handleRecognitionSpeechEnd",(function(){S.A.usageTick("speech_recognition_end"),o.setState({speechRecListening:!1})})),(0,u.A)((0,s.A)(o),"handleRecognitionError",(function(e){S.A.error({message:"speech-recognition-error",error:e.error}),o.setState({speechRecListening:!1})})),(0,u.A)((0,s.A)(o),"handleRecognitionResult",(function(e){S.A.usageTick("speech_recognition_transcribed");var t=e.resultIndex,n=e.results[t][0].transcript;_.A.dispatch({type:O.A.UPDATE_CHAT_MESSAGE,data:n})})),o.state={chat:"",speechRecListening:!1,desktopFontSize:L.A.getState().desktopFontSize,inputFocused:!1},o.xment=B.A.getState(),o.isLoggedIn=D.A.isLoggedIn(),o.recognition=null,o.handleChatStoreUpdate=o.handleChatStoreUpdate.bind((0,s.A)(o)),o._input=null,o}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.chatStoreToken=L.A.addListener(this.handleChatStoreUpdate);var e=L.A.getState().chat;e&&this.setState({chat:e});var t=window.SpeechRecognition||window.webkitSpeechRecognition;t&&[w.Ay.MOBILE,w.Ay.TABLET].includes(this.context.layout)&&(this.recognition=new t,this.recognition.addEventListener("start",this.handleRecognitionStart),this.recognition.addEventListener("speechend",this.handleRecognitionSpeechEnd),this.recognition.addEventListener("error",this.handleRecognitionError),this.recognition.addEventListener("result",this.handleRecognitionResult)),this.dispatchHeight()}},{key:"componentWillUnmount",value:function(){this.chatStoreToken.remove(),this.recognition&&(this.recognition.removeEventListener("start",this.handleRecognitionStart),this.recognition.removeEventListener("speechend",this.handleRecognitionSpeechEnd),this.recognition.removeEventListener("error",this.handleRecognitionError),this.recognition.removeEventListener("result",this.handleRecognitionResult))}},{key:"componentDidUpdate",value:function(e){var t;this.dispatchHeight(),this.recognition&&(this.recognition.lang=this.props.lang||"en"),!e.chatInputActive&&this.props.chatInputActive&&this._input!==(null===(t=this.context.document)||void 0===t?void 0:t.activeElement)&&this._input.focus()}},{key:"dispatchHeight",value:function(){var e,t,n=(null===(e=this._input)||void 0===e?void 0:e.offsetHeight)||(null===(t=this._fakeInput)||void 0===t?void 0:t.offsetHeight);n!==this.lastHeight&&n>0&&(this.lastHeight=n,setTimeout((function(){_.A.dispatch({type:O.A.CHAT_INPUT_HEIGHT_CHANGE,data:n})})))}},{key:"handleChatStoreUpdate",value:function(){var e,t=L.A.getState(),n=t.chat,o=t.desktopFontSize;n&&n!==this.state.chat&&this._input&&this._input!==(null===(e=this.context.document)||void 0===e?void 0:e.activeElement)&&this._input.focus(),this.setState({chat:n,desktopFontSize:o})}},{key:"renderIconButton",value:function(){if([w.Ay.MOBILE,w.Ay.TABLET].includes(this.context.layout)){if(!this.state.speechRecListening&&this.state.chat)return(0,o.A)(bt,{},void 0,(0,o.A)(It,{"data-ta-locator":"ChatForm__submit",onClick:this.handleSubmit,name:"send"}));if(this.recognition)return(0,o.A)(bt,{speechRecListening:this.state.speechRecListening},void 0,(0,o.A)(Ot,{"data-ta-locator":"ChatForm__mic",onClick:this.handleMic,name:"mic",viewBox:"2 1 20 20"}))}return null}},{key:"renderChatTools",value:function(){var e=this.state.chat,t=this.props,n=t.alignChatToolsWithCta,r=t.ctaContainerHeight,i=t.inVoiceChat;return t.showChatTools?(0,o.A)(wt,{inVoiceChat:i,alignWithCta:n,ctaContainerHeight:r,submit:this.handleSubmit,submitDisabled:!e}):null}},{key:"renderChatInput",value:function(){var e=this,t=this.state,n=t.speechRecListening,r=t.chat,i=t.desktopFontSize,s=t.inputFocused,a=this.context.layout===w.Ay.DESKTOP,l=n?E.Ay.getString("chat_speech_placeholder"):E.Ay.getString("chat_placeholder","me"),c=this.context.layout===w.Ay.MOBILE;return(0,o.A)(p.Fragment,{},void 0,(0,o.A)(Ct,{onSubmit:this.handleSubmit,action:"#",inactive:c&&!s},void 0,m().createElement(Tt,{key:"qq",ref:function(t){e._input=t},"data-ta-locator":"ChatForm__Input",isDesktop:a,placeholder:r?"":l,autoComplete:"off",value:r,onChange:this.handleMessageChange,onClick:c?void 0:this.handleClick,onBlur:this.handleBlur,tabIndex:-1,desktopFontSize:i,inactive:c&&!s})),c&&m().createElement(Tt,{key:"fake",ref:function(t){e._fakeInput=t},"data-ta-locator":"ChatForm__Input__fake",isDesktop:a,placeholder:r?"":l,value:r,readOnly:!0,onClick:this.handleClick,desktopFontSize:i,inactive:s}))}},{key:"render",value:function(){var e=this.props.chatInputActive,t=this.context.layout===w.Ay.DESKTOP;return!0!==R.A.getState().started?null:(0,o.A)("div",{},void 0,(0,o.A)(Et,{compact:e},void 0,(0,o.A)(St,{},void 0,!t&&(ft||(ft=(0,o.A)(_t,{"data-ta-locator":"ChatForm__PrivateButtonContainer"},void 0,(0,o.A)($,{})))),this.renderChatInput(),this.renderIconButton()),!t&&(0,o.A)(Pt,{location:k.Q7.HYBRID_CLIENT_CHAT_INPUT,isMobile:!0})),this.renderChatTools())}}]),n}(p.Component);(0,u.A)(kt,"displayName","ChatForm"),kt.propTypes={inVoiceChat:A().bool,showChatTools:A().bool,alignChatToolsWithCta:A().bool,ctaContainerHeight:A().number,chatInputActive:A().bool,lang:A().string,streamType:A().number,inGoldShow:A().bool,numberOfUsersInRoom:A().number,useChatPromptJoin:A().bool},kt.defaultProps={inVoiceChat:!1,showChatTools:!1,alignChatToolsWithCta:!1,ctaContainerHeight:0},kt.contextTypes={renderFrameDoc:A().object,window:A().any,document:A().any,layout:A().string};const Rt=(0,C.A)([x.Ay,R.A,N.A,j.A,B.A],(function(e){return{ctaContainerHeight:e.layout.ctaContainerHeight,chatInputActive:e.layout.chatInputActive,lang:e.connection.lang,streamType:e.connection.streamType,inGoldShow:N.A.isActive()&&N.A.isUserBoughtIn(),numberOfUsersInRoom:e.userList.numberOfUsersInRoom,useChatPromptJoin:1===e.xment.chatPromptJoinMobile||1===e.xment.chatPromptJoinDesktop}}),{memoize:!0})(kt)},"./src/components/chat/MessageList.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var o,r,i,s=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),a=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),l=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),c=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),u=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),d=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),p=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),m=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),h=n("webpack/sharing/consume/default/react/react"),A=n.n(h),f=n("./node_modules/prop-types/index.js"),g=n.n(f),y=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),v=n("./src/stores/ChatStore.js"),b=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),_=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),E=n("./node_modules/styled-components-rtl/index.js"),S=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),C=n.n(S),T=n("./src/components/RewardsIconsMap.tsx"),O=n("./src/constants/RewardsConstants.ts"),I=n("./src/constants/ChatConstants.ts"),w=n("./src/constants/LayoutConstants.ts"),P=n("./src/lib/Strings.js"),k=y.Ay.li.withConfig({displayName:"Message__MessageContainer",componentId:"sc-hwmg2n-0"})(["list-style-type:none;margin:0;margin-top:0.5em;flex-shrink:0;width:100%;word-break:break-word;color:",";"," "," &&{padding:0;}font-size:","px;",""],(function(e){var t=e.gold,n=e.messageType,o=e.theme,r=e.transparentBackground;return t?o.colors.gold:n===I.A.USERTYPE_SYSTEM?o.colors.primary:r?o.colors.baseContrast100:"inherit"}),(function(e){return e.isSubscriber?"font-weight: bold;":""}),(function(e){return e.private||e.isItalic?"font-style: italic;":""}),(function(e){return e.isDesktop?e.desktopFontSize:14}),(function(e){var t=e.messageType;return"rtl"===e.theme.direction&&t!==I.A.USERTYPE_SYSTEM&&"\n unicode-bidi: bidi-override;\n direction: ltr;\n text-align: left;\n "})),R=y.Ay.span.withConfig({displayName:"Message__Nickname",componentId:"sc-hwmg2n-1"})(["font-weight:bold;color:",";svg,path{fill:",';}:after{content:": ";}'],(function(e){var t=e.type,n=e.theme,o=e.transparentBackground;return t===I.A.USERTYPE_PERFORMER?n.colors.primary:o?n.colors.baseContrast080:"inherit"}),(function(e){var t=e.type,n=e.theme,o=e.transparentBackground;return t===I.A.USERTYPE_PERFORMER?n.colors.primary:o?n.colors.baseContrast080:"inherit"})),D=(0,y.Ay)(C()).withConfig({displayName:"Message__SubscriberBadge",componentId:"sc-hwmg2n-2"})([""," vertical-align:text-bottom;"],(0,E.A)(o||(o=(0,_.A)(["\n margin-left: 4px;\n "])))),L=y.Ay.div.withConfig({displayName:"Message__RewardsBadge",componentId:"sc-hwmg2n-3"})([""," vertical-align:text-bottom;width:18px;height:18px;display:inline-flex;"],(0,E.A)(r||(r=(0,_.A)(["\n margin-left: 4px;\n "])))),x=function(e,t){var n=e.message,o=n.type,r=n.isGold,a=n.text,l=n.stringPath,c=n.templateVariables,u=n.nickname,d=n.isPrivate,p=n.isItalic,m=n.showSubscriberBadge,h=n.tierId,f=n.isGoldOnlySkin,g={messageType:o,private:d,gold:r,isItalic:p,isSubscriber:m},y=o!==I.A.USERTYPE_SYSTEM&&Boolean(u),v=t.layout===w.Ay.DESKTOP,_=O.iB[h];return A().createElement(k,(0,b.A)({desktopFontSize:e.desktopFontSize,transparentBackground:e.transparentBackground,isDesktop:v},g),y&&(0,s.A)(R,{type:o,transparentBackground:e.transparentBackground},void 0,(0,s.A)("span",{},void 0,u),m&&(i||(i=(0,s.A)(D,{name:"crown",size:18,"data-ta-locator":"Message__SubscriberBadge"}))),f&&_&&(0,s.A)(L,{"data-ta-locator":"Message__RewardsBadge"},void 0,T.f[_.tierName])),(0,s.A)("span",{},void 0,a||(0,P.AA)(l,c)))};x.propTypes={message:g().object.isRequired,desktopFontSize:g().number,transparentBackground:g().bool},x.defaultProps={desktopFontSize:14,transparentBackground:!1},x.contextTypes={layout:g().string};const N=x;var j=n("./src/components/ThemeProvider.tsx");function M(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,p.A)(e);if(t){var r=(0,p.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,d.A)(this,n)}}var B=y.Ay.ul.withConfig({displayName:"MessageList__MessageListContainer",componentId:"sc-w9pe77-0"})(["flex-direction:",";flex-wrap:nowrap;list-style-type:none;background:transparent;display:flex;flex-basis:auto;flex-grow:1;flex-shrink:0;line-height:1.2;overflow:hidden;position:relative;word-wrap:break-word;color:",";fill:",";user-select:text;max-width:100%;&&{margin:",";padding:",";}"],(function(e){return"fall"===e.flow?"column":"column-reverse"}),(function(e){return e.transparent?e.theme.colors.baseContrast100:"rgb(45, 45, 45)"}),(function(e){return e.transparent?e.theme.colors.baseContrast80:"rgb(45, 45, 45)"}),(function(e){return e.transparent?"0 0 8px":"0"}),(function(e){return e.transparent?"0 0.5em 0 0":"0 0.5em 0.5em 0.5em"})),U=y.Ay.div.withConfig({displayName:"MessageList__MessageListScrollWrapper",componentId:"sc-w9pe77-1"})(["display:flex;flex-flow:column;flex-grow:1;margin-bottom:3px;overflow-y:auto;overflow-x:hidden;background:",";-ms-overflow-style:-ms-autohiding-scrollbar;",";& .icf-react-components{display:flex;flex-grow:1;}& .icf-react-components > div{display:flex;flex-grow:1;}"],(function(e){return e.transparent?"transparent":"#fff"}),(function(e){return e.scrollable&&"\n flex-basis: 0;\n flex-shrink: 0;\n"})),G=function(e){(0,u.A)(n,e);var t=M(n);function n(){var e;(0,a.A)(this,n),e=t.call(this),(0,m.A)((0,c.A)(e),"handleScrollElementRef",(function(t){e._scrollElement=t,e._scrollElement&&e._scrollElement.addEventListener("scroll",(function(){if(e.ignoreNextScrollEvent)e.ignoreNextScrollEvent=!1;else{var t=e._scrollElement,n=t.scrollTop,o=t.offsetHeight,r=t.scrollHeight;e.shouldScrollToBottom=e.props.scrollable&&"rise"===e.props.messageFlow&&n+o-r>=0,e.shouldScrollToBottom||clearTimeout(e.scrollTimeout)}}))})),(0,m.A)((0,c.A)(e),"onStoreUpdate",(function(){var t=v.A.getState(),n=t.messages,o=t.desktopFontSize;e.setState({messages:n,desktopFontSize:o})}));var o=v.A.getState(),r=o.messages,i=o.desktopFontSize;return e.state={messages:r,desktopFontSize:i},e.shouldScrollToBottom=!0,e}return(0,l.A)(n,[{key:"componentDidMount",value:function(){this.chatToken=v.A.addListener(this.onStoreUpdate)}},{key:"componentDidUpdate",value:function(){var e=this;this.shouldScrollToBottom&&this._scrollElement&&(this.ignoreNextScrollEvent=!0,this._scrollElement.scrollTop=this._scrollElement.scrollHeight,this.scrollTimeout=setTimeout((function(){e.ignoreNextScrollEvent=!0,e._scrollElement&&(e._scrollElement.scrollTop=e._scrollElement.scrollHeight)}),100))}},{key:"componentWillUnmount",value:function(){this.chatToken.remove()}},{key:"render",value:function(){var e=this.props,t=e.messageFlow,n=e.scrollable,o=e.transparent,r=e.theme,i=this.state.desktopFontSize,a=o?r.mode:"light";return A().createElement(U,{transparent:o,scrollable:n,ref:this.handleScrollElementRef},(0,s.A)(j.A,{themeMode:a,themeSwitch:!0},void 0,(0,s.A)(B,{"data-ta-locator":"ChatDisplay__MessageList",transparent:o,flow:t},void 0,this.state.messages.map((function(e){return(0,s.A)(N,{message:e,desktopFontSize:i,transparentBackground:o},e.identifier)})))))}}]),n}(h.PureComponent);(0,m.A)(G,"displayName","MessageList"),G.propTypes={messageFlow:g().oneOf(["fall","rise"]),scrollable:g().bool,transparent:g().bool,theme:g().object},G.defaultProps={messageFlow:"fall",scrollable:!1,transparent:!0};const V=(0,y.SL)(G)},"./src/components/common/ActionIconButton.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var o,r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),s=(n("webpack/sharing/consume/default/react/react"),n("./node_modules/prop-types/index.js")),a=n.n(s),l=n("./node_modules/styled-components-rtl/index.js"),c=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),u=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),d=n.n(u),p=n("./src/components/common/primitives/index.js"),m=n("./src/constants/LayoutConstants.ts"),h=n("./src/components/common/Tooltip.tsx"),A=n("./src/utils/withStores.tsx"),f=n("./src/stores/XmentStore.ts"),g=(0,c.Ay)(p.$n).withConfig({displayName:"ActionIconButton__ActionButton",componentId:"sc-1k7njfx-0"})(["position:relative;"," margin-top:8px;z-index:100;"],(0,l.A)(o||(o=(0,i.A)(["\n margin-right: 8px;\n "])))),y=(0,c.Ay)(d()).withConfig({displayName:"ActionIconButton__ActionButtonSvgIcon",componentId:"sc-1k7njfx-1"})(["fill:white;display:block;background-color:",";transition:all 450ms cubic-bezier(0.23,1,0.32,1) 0ms;:hover{background-color:",";}border-radius:",";"],(function(e){return e.isImprovedCamPageFullscreenUI?"rgba(0, 0, 0, 0.45)":"rgba(0, 0, 0, 0.4)"}),m.Tj.darkerGray,(function(e){return e.isImprovedCamPageFullscreenUI?"4px":"unset"})),v=function(e){var t=e.action,n=e.buttonId,o=e.glyph,i=e.style,s=e.className,a=e.title,l=e.onClick,c=e.tooltipPlacement,u=void 0===c?"top":c,d=e.isImprovedCamPageFullscreenUI;return(0,r.A)(h.A,{title:a||"",placement:u},void 0,(0,r.A)(g,{"data-ta-locator":n,className:s,style:i,onClick:l||t},void 0,(0,r.A)(y,{name:o,isImprovedCamPageFullscreenUI:d})))};v.propTypes={action:a().func,buttonId:a().string.isRequired,glyph:a().string.isRequired,style:a().object,className:a().string,title:a().string,onClick:a().func,tooltipPlacement:a().string,isImprovedCamPageFullscreenUI:a().bool};const b=(0,A.A)([f.A],(function(e){return{isImprovedCamPageFullscreenUI:1===e.xment.improvedCamPageFullscreenUI}}))(v)},"./src/components/common/BillingInfo.js":(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m});var o=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),r=(n("webpack/sharing/consume/default/react/react"),n("./node_modules/prop-types/index.js")),i=n.n(r),s=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),a=n("./src/lib/Strings.js"),l=n("./src/stores/RateStore.js"),c=n("./src/stores/UserStore.js"),u=n("./src/utils/localization.js"),d=s.Ay.div.withConfig({displayName:"BillingInfo__Container",componentId:"sc-1cdrilk-0"})(["margin:0.5em 0;text-align:center;"]),p=function(e){var t=e.className,n=e.finalCostShown,r=void 0!==n&&n;if(c.A.getState().stashUser)return null;var i=l.A.getState(),s=i.taxPercentage,p=i.feePercentage,m="EU_VAT"===i.taxType,h=(0,u.l9)(s/100),A=(0,u.l9)(p/100),f=[];return f.push(a.Ay.getString("cardholder_statement")),r?s&&p?f.push(function(e,t,n){return a.Ay.getString(e?"billing_info.paypal_vat_included":"billing_info.paypal_tax_included",t,n)}(m,A,h)):s?f.push(function(e,t){return a.Ay.getString(e?"billing_info.vat_included":"billing_info.tax_included",t)}(m,h)):p&&f.push(function(e,t){return a.Ay.getString("billing_info.paypal_included",t)}(0,A)):(s&&f.push(function(e,t){return a.Ay.getString(e?"billing_info.vat_percentage":"billing_info.tax_percentage",t)}(m,h)),p&&f.push(function(e,t){return a.Ay.getString("billing_info.fee_percentage",t)}(0,A))),(0,o.A)(d,{className:t},void 0,(0,o.A)("small",{},void 0,f.join(" ")))};p.propTypes={className:i().string,finalCostShown:i().bool},p.defaultProps={finalCostShown:!1};const m=p},"./src/components/common/BrowseButton.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var o,r,i,s,a=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),l=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),c=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),u=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),d=n("webpack/sharing/consume/default/react/react"),p=n.n(d),m=n("./node_modules/prop-types/index.js"),h=n.n(m),A=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),f=n.n(A),g=n("./node_modules/@atg/icf-react-components/components/FlatButton/index.js"),y=n.n(g),v=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),b=n.n(v),_=n("./src/lib/Strings.js"),E=n("./src/utils/tools.ts"),S=n("./src/constants/Messages.js"),C=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),T=n("./node_modules/styled-components-rtl/index.js"),O=n("./src/components/common/primitives/index.js"),I=["buttonType"];function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function P(e){for(var t=1;t{"use strict";n.d(t,{A:()=>f});var o=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("webpack/sharing/consume/default/react/react"),s=n.n(i),a=n("./node_modules/prop-types/index.js"),l=n.n(a),c=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),u=n("./node_modules/@atg/icf-react-components/components/IconButton/index.js"),d=n.n(u),p=["active","disabled"],m=(0,c.Ay)(d()).withConfig({displayName:"CircleToggleButton__ToggleButton",componentId:"sc-lkgj8h-0"})(["border-width:2px;border-radius:50%;border-style:solid;"]),h=(0,c.Ay)(m).attrs({fill:function(e){return e.theme.colors.baseContrast100}}).withConfig({displayName:"CircleToggleButton__ActiveToggleButton",componentId:"sc-lkgj8h-1"})(["border-color:",";background-color:",";&:hover{background-color:",";}"],(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.baseContrast010}),(function(e){return e.theme.colors.primary})),A=(0,c.Ay)(m).attrs({fill:function(e){return e.theme.colors.baseContrast020}}).withConfig({displayName:"CircleToggleButton__InactiveToggleButton",componentId:"sc-lkgj8h-2"})(["border-color:",";background-color:transparent;",""],(function(e){return e.theme.colors.baseContrast020}),(function(e){var t=e.disabled,n=e.theme;return!t&&"\n border-color: ".concat(n.colors.baseContrast050,";\n\n & svg {\n fill: ").concat(n.colors.baseContrast050,";\n }\n\n &:hover {\n border-color: ").concat(n.colors.baseContrast100,";\n }\n\n &:hover svg {\n fill: ").concat(n.colors.baseContrast100,";\n }\n ")}));function f(e){var t=e.active,n=e.disabled,i=(0,r.A)(e,p),a=t&&!n?h:A;return s().createElement(a,(0,o.A)({disabled:n},i))}f.propTypes={active:l().bool.isRequired,disabled:l().bool},f.defaultProps={disabled:!1}},"./src/components/common/CloseButton.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),r=n("webpack/sharing/consume/default/react/react"),i=n.n(r),s=n("./node_modules/prop-types/index.js"),a=n.n(s),l=n("./src/components/common/ActionIconButton.js"),c=function(e){return i().createElement(l.A,(0,o.A)({},e,{glyph:"close",tooltipPlacement:"bottom"}))};c.propTypes={action:a().func,onClick:a().func,buttonId:a().string.isRequired};const u=c},"./src/components/common/ColoredSlider.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o,r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),a=n("webpack/sharing/consume/default/react/react"),l=n.n(a),c=n("./node_modules/prop-types/index.js"),u=n.n(c),d=n("./node_modules/@stringa/react-rangeslider/lib/index.js"),p=n("./src/constants/LayoutConstants.ts"),m=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),h=n("./node_modules/styled-components-rtl/index.js"),A=["id"],f=m.Ay.div.withConfig({displayName:"ColoredSlider__Container",componentId:"sc-damssb-0"})([".rangeslider__fill{width:100%;box-shadow:none;bottom:0;height:80px;background:",";}.rangeslider__handle{width:17px;height:13px;"," background:white;}.rangeslider__handle:active{box-shadow:none;}.rangeslider-vertical{margin:10px auto;height:80px;width:15px;background:",";}"],(function(e){return e.color}),(0,h.A)(o||(o=(0,s.A)(["\n transform: translateX(-1px);\n "]))),p.Tj.gray),g=function(e,t){var n=e.id,o=(0,i.A)(e,A);return(0,r.A)(f,{id:n,color:t.primaryColor,"data-ta-locator":"VolumeControls__volumeSelector"},void 0,l().createElement(d.A,o))};g.contextTypes={primaryColor:u().string},g.propTypes={value:u().number,min:u().number,max:u().number,step:u().number,orientation:u().oneOf(["vertical","horizontal"]),onChange:u().func,id:u().string},g.defaultProps={value:1,min:0,max:1,step:.01,orientation:"horizontal",tooltip:null,onChange:function(){}};const y=g},"./src/components/common/DailyLimitMessage.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var o=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),r=(n("webpack/sharing/consume/default/react/react"),n("./src/utils/tools.ts")),i=n("./src/lib/Strings.js"),s=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),a=n.n(s),l=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),c=n("./src/utils/log.js"),u=n("./src/constants/Messages.js"),d=l.Ay.div.withConfig({displayName:"DailyLimitMessage__MessageWrapperBase",componentId:"sc-1nezdo5-0"})(["font-size:14px;font-weight:300;line-height:20px;& > div{margin:32px auto 32px;max-width:200px;}.oops{display:block;font-size:18px;font-weight:500;margin:0;text-align:center;}"]),p=(0,l.Ay)(d).withConfig({displayName:"DailyLimitMessage__MessageWrapper",componentId:"sc-1nezdo5-1"})(["color:",";"],(function(e){return e.theme.colors.alert})),m=(0,l.Ay)(a()).withConfig({displayName:"DailyLimitMessage__UpdateLimitButton",componentId:"sc-1nezdo5-2"})(["white-space:nowrap;max-width:100%;"]),h=function(e){c.A.usageTick("daily_limit_link_clicked"),(0,r.wm)(e),(0,r.Zj)(u.A.GOTO_DAILYLIMIT,{})};const A=function(){return c.A.usageTick("daily_limit_link_displayed"),(0,o.A)(p,{},"dlwarning",(0,o.A)("div",{},void 0,(0,o.A)("span",{className:"oops","data-ta-locator":"DailyLimitMessage__Oops"},void 0,i.Ay.getString("oops")),i.Ay.getString("daily_limit")),(0,o.A)(m,{label:i.Ay.getString("daily_limit_link"),onClick:h}))}},"./src/components/common/DropDownMenu.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("webpack/sharing/consume/default/react/react"),s=n.n(i),a=n("./node_modules/prop-types/index.js"),l=n.n(a),c=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),u=n("./node_modules/@atg/icf-react-components/components/DropDownMenu/index.js"),d=n.n(u),p=(0,c.Ay)(d()).attrs({overrides:{modalRoot:"dropDownMenuPopup"}}).withConfig({displayName:"DropDownMenu__StyledDropDownMenu",componentId:"sc-neqy5z-0"})([""]),m=function(e,t){var n=t.getClientModalTargetElement(),a=(0,i.useState)(!1),l=(0,r.A)(a,2),c=l[0],u=l[1],d=(0,i.useRef)(!0);return(0,i.useEffect)((function(){d.current?d.current=!1:u(!0)}),[n]),c?(setTimeout((function(){return u(!1)})),null):s().createElement(p,(0,o.A)({},e,{container:n}))};m.contextTypes={getClientModalTargetElement:l().func.isRequired};const h=m},"./src/components/common/EnterShowButton.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("webpack/sharing/consume/default/react/react"),s=n.n(i),a=n("./node_modules/prop-types/index.js"),l=n.n(a),c=n("./src/utils/log.js"),u=n("./src/stores/RateStore.js"),d=n("./src/lib/Dispatcher.js"),p=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),m=n.n(p),h=n("./src/constants/Session.ts"),A=n("./src/constants/Actions.js"),f=["sessionType","blockSessionValue","disabled"],g=function(e){var t=e.sessionType,n=e.blockSessionValue,i=e.disabled,a=(0,r.A)(e,f),l=i||!t||t===h.d.BLOCK&&!n;return s().createElement(m(),(0,o.A)({},a,{disabled:l,onClick:function(){return function(e,t){c.A.debug("EnterShowButton clicked with sessiontype "+e+" and block options "+t);var n,o=e,r="",i="",s="",a="",l=e===h.d.BLOCK||e===h.d.EXCLUSIVE||e===h.d.RESUME;e===h.d.BLOCK?n=JSON.parse(t):e===h.d.RESUME&&(n=u.A.getState().resumeSession),n&&(o=n.streamtype,r=n.perfdiscountid,s=n.minduration,a=n.remainingDuration,i=n.streamid);var p={sessionType:o,discountId:r,showId:i,blockDuration:s,remainingDuration:a,requiresAcceptance:l};c.A.usageTick("enterpaid_".concat(o.toLowerCase()).concat(n?"_blocksession":"")),d.A.dispatch({type:A.A.USER_REQUEST_PRIVATE,data:p})}(t,n)}}))};g.propTypes={sessionType:l().string,blockSessionValue:l().string,disabled:l().bool},g.defaultProps={sessionType:h.d.PREMIUM,blockSessionValue:"",disabled:!1};const y=g},"./src/components/common/GoPrivateButton.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var o,r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=(n("webpack/sharing/consume/default/react/react"),n("./node_modules/prop-types/index.js")),s=n.n(i),a=n("./src/stores/ConnectionStore.js"),l=n("./src/stores/GoldShowStore.js"),c=n("./src/lib/Dispatcher.js"),u=n("./src/lib/Strings.js"),d=n("./src/constants/Actions.js"),p=n("./src/constants/Connection.js"),m=n("./src/constants/LomsEvents.js"),h=n("./src/constants/LayoutConstants.ts"),A=n("./src/constants/Platforms.ts"),f=n("./node_modules/@atg/icf-react-components/components/RaisedButton/index.js"),g=n.n(f),y=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),v=n.n(y),b=n("./src/utils/lomsTools.js"),_=n("./src/utils/forPlatforms.tsx"),E=function(e){var t=e.layout,n=e.disabled,i=e.className,s=e.label,A=e.onClick,f=e.locator,y=e.inPip,_=e.isLoggedIn,E=s,S="GoPrivateButton";if(!E){var C=t===h.Ay.DESKTOP,T="go_private";a.A.getState().streamType===p.Ay.STREAM_TYPE_PRIVATE&&(T="go_exclusive",S=void 0),l.A.isActive()&&l.A.isUserBoughtIn()&&(T=C?"reserved_spot":"reserved_spot_short"),E=u.Ay.getString(T)}!1===Boolean(_)&&(E=(0,r.A)("strong",{},void 0,o||(o=(0,r.A)(v(),{name:"play",fill:"baseContrast100"}))," ",(0,r.A)("span",{style:{position:"relative",top:"0.1rem"}},void 0,u.Ay.getString("sign_up_mobile"))));var O=y?m.A.CTA_BUTTONS.PIP_GO_PRIVATE:m.A.CTA_BUTTONS.GO_PRIVATE;return a.A.getState().streamType===p.Ay.STREAM_TYPE_PRIVATE&&(O=m.A.CTA_BUTTONS.GO_EXCLUSIVE),(0,r.A)(g(),{className:i,disabled:n,label:E,onClick:function(e){e.preventDefault(),(0,b.sX)(O),c.A.dispatch({type:d.A.ENTER_PAID_CLICK}),A&&A()},"data-icf-click":S,"data-ta-locator":f})};E.propTypes={layout:s().string,disabled:s().bool,className:s().string,label:s().string,onClick:s().func,locator:s().string,inPip:s().bool,xment:s().object,isLoggedIn:s().bool},E.defaultProps={inPip:!1,xment:{}};const S=(0,_.A)({exclude:[A.Ay.EXTERNAL_SITE_SHOW]})(E)},"./src/components/common/primitives/index.js":(e,t,n)=>{"use strict";n.d(t,{nV:()=>S,$n:()=>m,BN:()=>y,VC:()=>C,Ye:()=>A,hW:()=>g,k_:()=>k,q8:()=>L,Ii:()=>I,Bn:()=>w,Yb:()=>O,$m:()=>v,rQ:()=>b,JU:()=>_,sy:()=>E,Ad:()=>R,et:()=>D,om:()=>u,kU:()=>d,K3:()=>p,yh:()=>T,LF:()=>x});var o,r,i,s=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),a=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),l=n("./node_modules/styled-components-rtl/index.js"),c=n("./src/constants/LayoutConstants.ts"),u=a.Ay.div.withConfig({displayName:"headers__TwoColumnHeader",componentId:"sc-77w1q4-0"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:","px;",""],(function(e){return e.theme.spacing.base}),(0,l.A)(o||(o=(0,s.A)(["\n padding-right: ","px;\n "])),(function(e){var t=e.theme;return String(t.spacing.base)}))),d=a.Ay.div.withConfig({displayName:"headers__TwoColumnHeaderInfo",componentId:"sc-77w1q4-1"})(["font-weight:500;font-size:20px;color:",";letter-spacing:0.2px;margin-bottom:","px;"],(function(e){return e.theme.colors.baseContrast090}),(function(e){return e.theme.spacing.base})),p=a.Ay.a.withConfig({displayName:"headers__TwoColumnHeaderLink",componentId:"sc-77w1q4-2"})(["cursor:pointer;font-size:14px;font-weight:bold;"]),m=a.Ay.button.withConfig({displayName:"primitives__Button",componentId:"sc-1rgu2ub-0"})(["padding:0;border:0;color:inherit;font:inherit;background:none;cursor:pointer;letter-spacing:inherit;overflow:visible;text-transform:capitalize;&:focus{outline:0;}"]),h=a.Ay.div.withConfig({displayName:"primitives__Flex",componentId:"sc-1rgu2ub-1"})(["display:flex;"]),A=(0,a.Ay)(h).withConfig({displayName:"primitives__FlexRow",componentId:"sc-1rgu2ub-2"})(["flex-direction:row;"]),f=(0,a.Ay)(h).withConfig({displayName:"primitives__FlexColumn",componentId:"sc-1rgu2ub-3"})(["flex-direction:column;"]),g=(0,a.Ay)(A).withConfig({displayName:"primitives__FlexRowNoWrap",componentId:"sc-1rgu2ub-4"})(["flex-wrap:nowrap;"]),y=(0,a.Ay)(f).withConfig({displayName:"primitives__FlexColumnNoWrap",componentId:"sc-1rgu2ub-5"})(["flex-wrap:nowrap;"]),v=(0,a.Ay)(y).withConfig({displayName:"primitives__ModalContent",componentId:"sc-1rgu2ub-6"})(["justify-content:center;margin:auto;color:color(black contrast(80%));"]),b=a.Ay.h1.withConfig({displayName:"primitives__ModalHeader",componentId:"sc-1rgu2ub-7"})(["text-align:center;"]),_=a.Ay.div.withConfig({displayName:"primitives__ModalMessage",componentId:"sc-1rgu2ub-8"})(["line-height:1.4;margin:1em 0;"]),E=a.Ay.p.withConfig({displayName:"primitives__ModalMessageText",componentId:"sc-1rgu2ub-9"})(["line-height:1.4;margin:1em 0;"]),S=a.Ay.div.withConfig({displayName:"primitives__BackwardsTextContainer",componentId:"sc-1rgu2ub-10"})(["& > p{direction:rtl;unicode-bidi:bidi-override;text-align:left;line-height:0.45em;}"]),C=(0,a.Ay)(y).withConfig({displayName:"primitives__FlexColumnWithCenteredContent",componentId:"sc-1rgu2ub-11"})(["color:color(black contrast(80%));justify-content:center;margin:auto;text-align:center;align-items:center;"]),T=a.Ay.span.withConfig({displayName:"primitives__UserBidText",componentId:"sc-1rgu2ub-12"})(["display:flex;justify-content:space-between;width:100%;"," color:white;"],(0,l.A)(r||(r=(0,s.A)(["\n margin-left: 0.75em;\n "])))),O=a.Ay.div.withConfig({displayName:"primitives__GoldShowVideoContainer",componentId:"sc-1rgu2ub-13"})(["text-shadow:2px 2px 8px ",";width:100%;",""],c.Tj.darkGray,(function(e){return e.isLandscape&&e.isMobile&&"margin-bottom: calc(20px + 2.25rem);"})),I=a.Ay.div.withConfig({displayName:"primitives__GoldShowInfo",componentId:"sc-1rgu2ub-14"})(["display:block;pointer-events:none;"]),w=a.Ay.div.withConfig({displayName:"primitives__GoldShowSubtext",componentId:"sc-1rgu2ub-15"})(["position:relative;font-size:1.2em;margin-bottom:0.5rem;"," text-shadow:1px 1px 1px rgba(0,0,0,0.9);font-weight:200;z-index:2;@media ","{font-size:0.8em;}@media ","{max-width:200px;}"],(0,l.A)(i||(i=(0,s.A)(["\n margin-left: 1rem;\n "]))),c.Rc,c.In),P=(0,a.i7)(["from{text-shadow:0 0 10px #fff,0 0 20px #fff,0 0 30px #fff,0 0 40px ",",0 0 70px ",",0 0 80px ",",0 0 100px ",",0 0 150px ",";}to{text-shadow:0 0 5px #fff,0 0 10px #fff,0 0 15px #fff,0 0 20px ",",0 0 35px ",",0 0 40px ",",0 0 50px ",",0 0 75px ",";}"],c.Tj.gold,c.Tj.gold,c.Tj.gold,c.Tj.gold,c.Tj.gold,c.Tj.gold,c.Tj.gold,c.Tj.gold,c.Tj.gold,c.Tj.gold),k=a.Ay.div.withConfig({displayName:"primitives__GlowAnimation",componentId:"sc-1rgu2ub-16"})(["& span{animation:"," 0.5s ease-in-out alternate;animation-iteration-count:6;}"],P),R=a.Ay.div.withConfig({displayName:"primitives__OverlayContent",componentId:"sc-1rgu2ub-17"})(["display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;background-color:rgba(0,0,0,0.6);flex:1 0;justify-content:center;padding:0 1em;text-align:center;width:100%;"]),D=a.Ay.h1.withConfig({displayName:"primitives__OverlayHeader",componentId:"sc-1rgu2ub-18"})(["text-align:center;text-transform:none;font-size:2.5em;width:100%;@media ","{font-size:1.25em;margin-bottom:0.25em;}"],c.Rc),L=a.Ay.span.withConfig({displayName:"primitives__GoldShowCountdownContainer",componentId:"sc-1rgu2ub-19"})(["color:",";margin-bottom:1.5em;"],c.Tj.lightishGray),x=function(e){var t=(0,a.Ay)(e).withConfig({displayName:"primitives__StyledComponent",componentId:"sc-1rgu2ub-20"})(["margin-top:1em;width:30%;&:hover{background-color:rgba(153,153,153,0.2);}@media ","{width:90%;}"],c.Rc);return t.displayName="Styled".concat(e.displayName),t}},"./src/components/gold/GoldCop.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>U,U:()=>M});var o,r=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),i=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),d=n("./node_modules/@babel/runtime/regenerator/index.js"),p=n.n(d),m=n("webpack/sharing/consume/default/react/react"),h=n("./node_modules/prop-types/index.js"),A=n.n(h),f=n("./node_modules/lodash/pick.js"),g=n.n(f),y=n("./node_modules/universal-cookie/lib/index.js"),v=n.n(y),b=n("./src/stores/ConfigStore.ts"),_=n("./src/stores/GoldShowStore.js"),E=n("./src/stores/PerformerStore.ts"),S=n("./src/stores/UserStore.js"),C=n("./src/stores/ConnectionStore.js"),T=n("./src/stores/ChatStore.js"),O=n("./src/constants/Actions.js"),I=n("./src/constants/Connection.js"),w=n("./src/constants/Platforms.ts"),P=n("./src/lib/Dispatcher.js"),k=n("./src/utils/log.js"),R=n("./src/utils/gold.js"),D=n("./src/lib/AjaxRequest.js"),L=n("./src/lib/Strings.js");function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.minGold,n=e.sendGoldAsOneUsd,o=S.A.getState(),r=o.maxGold,i=o.minGold,s=o.queuedGoldToGiveFractionalLocal,a=o.decimalLocalGold,l=(r||0)-(s||0),c=this.getPrebillAmount(),u=(0,R.fr)(t,n,{decimalValue:a});return{prebillAmount:c,maxGold:l,unadjustedMaxGold:r,minGold:Math.max(i||0,c,u)}}},{key:"getPrebillAmount",value:function(){var e,t,n=this.props.sendGoldAsOneUsd,o=S.A.getState(),r=o.needsPrebill,i=o.decimalLocalGold;if(!r)return 0;var s=100*Number((null===(e=b.A.getState().data)||void 0===e||null===(t=e.rate)||void 0===t?void 0:t.goldPrebill)||0);return(0,R.fr)(s,n,{decimalValue:i})}},{key:"setStateAsync",value:function(e){var t=this;return new Promise((function(n){t.setState(e,n)}))}},{key:"validate",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setState(this.getStateFromValidation(e,t))}},{key:"getStateFromValidation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.props.sendGoldAsOneUsd,o=this.state,r=o.userChanged,i=o.maxGold,s=S.A.getState(),a=s.decimalLocalGold,l=e,c=(0,R.fr)(e,n,{decimalValue:a}),u=this.checkAmount(c,l),d=this.checkLimit(i),p=this.checkWarning();return{goldToGiveFractionalLocal:c,goldToGiveCentsUsd:l,amountError:u,limit:d,valid:!u&&!d,warning:p,userChanged:r||t}}},{key:"checkWarning",value:function(){return _.A.needPledge()?L.Ay.getString("gold_in_progress_timer"):null}},{key:"checkAmount",value:function(e,t){var n=this.state,o=n.maxGold,r=n.minGold,i=n.prebillAmount,s=this.props.sendGoldAsOneUsd,a=_.A.getState().myPledgedAmount;if(isNaN(e))throw new Error("Invalid goldToGiveFractionalLocal passed to checkAmount");if(void 0!==t&&isNaN(t))throw new Error("Invalid optionalGoldToGiveCentsUsd passed to checkAmount");var l=void 0===t?(0,R.g6)(e,!0):t;if(l<100)return L.Ay.getString("gold_popup_min",1);if(e0&&(_.A.isPreGoldShow()||_.A.isInProgress())&&(f-=a),e>f){var g=S.A.getState().showFinalCost,y=(0,R.kX)(f,!1,g);return L.Ay.getString("gold_popup_max",y)}return null}},{key:"checkLimit",value:function(e){if(this.props.shackled)return M.SHACKLED;var t=this.state.minGold,n=S.A.getState(),o=n.isStashLimit,r=n.stashUser,i=n.goldLimitAvailable,s=n.userIsSubjectToGoldLimit,a=_.A.getState().myPledgedAmount,l=e;if((_.A.isPreGoldShow()||_.A.isInProgress())&&(a>=i?l=0:l-=a),l<=0){if(r){if(o)return M.PREPAID_BALANCE_EXHAUSTED;if(i<=t)return M.INSUFFICIENT_GOLD}return s?M.GOLD_LIMIT:M.DAILY_LIMIT}return l0&&void 0!==g[0]?g[0]:{},n=g.length>1&&void 0!==g[1]?g[1]:{},o=this.state,r=o.valid,i=o.goldToGiveFractionalLocal,s=o.goldToGiveCentsUsd,a=o.unadjustedMaxGold,c=this.queuedGoldToGiveCentsUsd>0&&this.queuedGoldToGiveCentsUsd<=a,r||c){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,this.setStateAsync({sendingGold:!0,sendGoldAttempted:!0});case 8:u=!0,d=null;try{l._giveGoldWebSocket(n.goldToGiveFractionalLocal||i,n.goldToGiveCentsUsd||s,t)}catch(e){u=!1,d=e}if(this._isMounted&&this.setState({sendingGold:!1,sendGoldSuccessful:u,sendGoldError:d}),m=_.A.getState(),h=m.id,A=m.duration,f=m.timetostart,!u){e.next=16;break}return h&&(new(v())).set("brt",!0,{maxAge:A+f}),e.abrupt("return",Promise.resolve());case 16:return e.abrupt("return",Promise.reject({error:d}));case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"logDebugInfo",value:function(){var e=this.state,t=e.goldToGiveFractionalLocal,n=e.goldToGiveCentsUsd,o=e.minGold,r=e.maxGold,i=e.valid,s=e.warning,a=e.amountError,l=e.sendingGold,c=e.sendGoldSuccessful,u=e.sendGoldError,d=e.limit;k.A.debug({goldToGiveCentsUsd:n,goldToGiveFractionalLocal:t,minGold:o,maxGold:r,valid:i,warning:s,amountError:a,sendingGold:l,sendGoldSuccessful:c,sendGoldError:u,limit:d})}},{key:"getSubmitGold",value:function(){var e=this.props,t=e.accumulateFor,n=e.useAjax;return t&&!n?this.queueSubmitGold:n?this.submitGoldAjax:this.submitGoldWebSocket}},{key:"queueSubmitGold",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props,o=n.accumulateFor,r=n.sendGoldAsOneUsd,i=this.state.goldToGiveCentsUsd,s=S.A.getState(),a=s.decimalLocalGold;clearTimeout(this.accumulateTimeout),this.queuedGoldToGiveCentsUsd+=i;var l=(0,R.fr)(i,r,{decimalValue:a});return P.A.dispatch({type:O.A.USER_QUEUE_GOLD,data:{amount:l,goldToGiveCentsUsd:i,goldToGiveFractionalLocal:l}}),this.accumulateTimeout=setTimeout((function(){var n=(0,R.fr)(e.queuedGoldToGiveCentsUsd,r,{decimalValue:a});e.submitGoldWebSocket(t,{goldToGiveCentsUsd:e.queuedGoldToGiveCentsUsd,goldToGiveFractionalLocal:n}).then((function(){e.queuedGoldToGiveCentsUsd=0})).catch((function(t){k.A.error({message:"quick-tip-submit-gold-web-socket-error",ex:t.message}),e.queuedGoldToGiveCentsUsd=0}))}),o),Promise.resolve()}},{key:"render",value:function(){var e=this.props.sendGoldAsOneUsd,t=this.state,n=t.goldToGiveCentsUsd,o=t.prebillAmount,r=t.maxGold,i=t.minGold,s=n,a=(0,R.g6)(r,e),l=Math.max(100,(0,R.g6)(i,e));return this.props.children(N(N({},g()(this.state,["valid","limit","userChanged","amountError","warning","sendingGold"])),{},{goldToGive:s,goldToGiveCentsUsd:n,maxGold:a,minGold:l,prebillRequired:Boolean(o),submitGold:this.getSubmitGold().bind(this),validate:this.validate.bind(this),logDebugInfo:this.logDebugInfo.bind(this)}))}}]),l}(m.Component);(0,u.A)(U,"_giveGoldAjax",(function(e,t){var n=E.A.getState(),o=n.nickname,r=n.id,i=S.A.getState(),s=i.userStreamId,a=i.userId,l=i.nickname,c=b.A.getState().platform,u=C.A.getState(),d=u.streamType,p=u.goldOnly;if(!a)return Promise.reject("no userId!");var m={amt:e,isprepopulated:t,modelname:o,smid:r,nickname:l,session:B[d]||"",streamid:s,platform:c,goldOnly:p},h=D.A.getBaseUrl()+"/api/v2/givegold/";return D.A.postPromise(h,m,"json")})),(0,u.A)(U,"_giveGoldWebSocket",(function(e,t,n){var o=S.A.getState().userId,r=E.A.getState(),i=r.id,s=r.platform,a=T.A.getState().private,l=C.A.getState().performerStreamId,c=n.quickTip,u=n.goldMenuItem,d=n.spinGoldMenuName;if(u&&k.A.loms({eventname:"GoldMenuPurchaseV1",goldMenuId:Number(u.goldmenuid),goldMenuKeyword:String(u.keyword),goldMenuCost:Number(u.cost),userId:Number(o),performerId:Number(i),performerStreamId:l}),d&&k.A.loms({eventname:"SpinWheelPurchaseV1",cost:Number(t),userId:Number(o),performerId:Number(i),performerStreamId:l}),s===w.Ay.STREAMFANS&&k.A.loms({eventname:"UserSpendGoldStreamFansV1",amount:Number(t),userId:Number(o),performerId:Number(i),performerStreamId:l}),_.A.isPreGoldShow()||_.A.needPledge())return k.A.usageTick("givegold_goldpledged"),void P.A.dispatch({type:O.A.USER_PLEDGE_GOLD,data:{showid:_.A.getState().id,amount:e,goldToGiveFractionalLocal:e,goldToGiveCentsUsd:t,isPrivate:a,fromQuickTip:c}});k.A.usageTick("givegold_goldgiven"),P.A.dispatch({type:O.A.USER_GIVE_GOLD,data:{amount:e,goldToGiveFractionalLocal:e,goldToGiveCentsUsd:t,isPrivate:a,fromQuickTip:c,goldMenuItem:u,spinGoldMenuName:d}})})),(0,u.A)(U,"propTypes",{useAjax:A().bool,children:A().func,defaultGold:A().number,minGold:A().number,shackled:A().bool,presetGold:A().number,accumulateFor:A().number,inputGoldLocal:A().bool,sendGoldAsOneUsd:A().bool}),(0,u.A)(U,"defaultProps",{useAjax:!1,children:function(){return null},defaultGold:0,minGold:0,shackled:!1,accumulateFor:0,inputGoldLocal:!1,sendGoldAsOneUsd:!1})},"./src/components/goldmenu/GoldMenuButton.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>Q});var o,r,i,s,a,l=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),c=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),u=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),d=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),p=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),m=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),h=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),A=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),f=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),g=n("./node_modules/lodash/isEqual.js"),y=n.n(g),v=n("./node_modules/prop-types/index.js"),b=n.n(v),_=n("webpack/sharing/consume/default/react/react"),E=n("./node_modules/redux/es/redux.js"),S=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),C=n("./node_modules/styled-components-rtl/index.js"),T=n("./node_modules/@atg/icf-react-components/components/FlatButton/index.js"),O=n.n(T),I=n("./node_modules/@atg/icf-react-components/components/Tooltip/index.js"),w=n.n(I),P=n("./src/constants/Actions.js"),k=n("./src/constants/LomsEvents.js"),R=n("./src/constants/Modals.ts"),D=n("./src/constants/Platforms.ts"),L=n("./src/constants/ShownFeature.ts"),x=n("./src/constants/StatsEvents.js"),N=n("./src/lib/Dispatcher.js"),j=n("./src/lib/Strings.js"),M=n("./src/stores/LayoutStore.js"),B=n("./src/utils/forPlatforms.tsx"),U=n("./src/utils/goldMenu.ts"),G=n("./src/utils/log.js"),V=n("./src/utils/lomsTools.js"),F=n("./src/components/goldmenu/GoldMenuIcon.tsx"),H=n("./src/utils/withStores.tsx"),Y=n("./src/stores/XmentStore.ts");function W(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,h.A)(e);if(t){var r=(0,h.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,m.A)(this,n)}}var z=(0,S.Ay)(O()).withConfig({displayName:"GoldMenuButton__MenuButton",componentId:"sc-1l702zq-0"})(["root:",";display:flex;"," text-transform:uppercase;text-color:",";color:",";text-shadow ",";width:100%;& > svg{"," width:36px;height:36px;transform:","}& > iconLeft{width:48px;height:48px;}label{"," text-color:",";color:",";font-size:16px;}"],(function(e){return e.theme.colors.gold}),(0,C.A)(o||(o=(0,f.A)(["\n justify-content: left;\n "]))),(function(e){var t=e.theme;return"dark"===t.type?t.colors.gold:t.colors.baseContrast100}),(function(e){var t=e.theme;return"dark"===t.type?t.colors.gold:t.colors.baseContrast100}),(function(e){return"dark"===e.theme.type?"1px 1px 2px rgba(0, 0, 0, 0.75)":"unset"}),(0,C.A)(r||(r=(0,f.A)(["\n margin-left: -12px;\n "]))),(function(e){return"rtl"===e.theme.direction?"scaleX(-1)":"none"}),(0,C.A)(i||(i=(0,f.A)(["\n justify-content: left;\n margin-left: 0px;\n "]))),(function(e){var t=e.theme;return"dark"===t.type?t.colors.gold:t.colors.baseContrast100}),(function(e){var t=e.theme;return"dark"===t.type?t.colors.gold:t.colors.baseContrast100})),q=(0,S.Ay)(O()).withConfig({displayName:"GoldMenuButton__CompactMenuButton",componentId:"sc-1l702zq-1"})(["root:",";display:flex;justify-content:center;color:",";width:48px;min-width:48px;padding:4px;& > svg{width:36px;height:36px;}& > iconLeft{width:48px;height:48px;}"],(function(e){return e.theme.colors.gold}),(function(e){return"dark"===e.theme.type?e.theme.colors.gold:e.theme.colors.baseContrast100})),K=function(e){(0,p.A)(n,e);var t=W(n);function n(e){var o;return(0,c.A)(this,n),o=t.call(this,e),(0,A.A)((0,d.A)(o),"onStoreChange",(function(){var e=(0,U.z)();y()(e,o.state)||o.setState(e)})),o.state=(0,U.z)(),o}return(0,u.A)(n,[{key:"componentDidMount",value:function(){var e=this;this.tokens=U.w.map((function(t){return t.addListener(e.onStoreChange)}))}},{key:"componentWillUnmount",value:function(){this.tokens.forEach((function(e){return e.remove()}))}},{key:"attemptLogShown",value:function(){this.loggedShown||((0,N.T)({type:P.A.FEATURE_SHOWN,data:{feature:L.A.GOLD_MENU}}),this.loggedShown=!0)}},{key:"handleClick",value:function(){G.A.statsIncCounter(x.A.GOLD_MENU.OPENED),(0,V.sX)(k.A.CTA_BUTTONS.GOLD_MENU),this.props.isChatUpsell&&(0,V.DM)(k.A.CTA_BUTTONS.GOLD_MENU,M.Ay.getState().layout),N.A.dispatch({type:P.A.OPEN_GOLD_MODAL,data:{activeGoldTab:R.yr.GOLD_MENU}})}},{key:"attemptRemoveSelf",value:function(){var e=this.props,t=e.isChatUpsell,n=e.identifier;t&&n&&(0,N.T)({type:P.A.REMOVE_CHAT_MESSAGE,data:{identifier:n}})}},{key:"render",value:function(){var e=this,t=this.state,n=t.visible,o=t.enabled,r=this.props,i=r.isCompact,c=r.isChatUpsell,u=r.isImprovedCamPageFullscreenUI&&c;return n?(this.attemptLogShown(),i?(0,l.A)(w(),{title:j.Ay.getString("gold_menu_view"),placement:I.TooltipPlacement.RIGHT},void 0,(0,l.A)(q,{size:"large",disabled:!o,iconLeft:s||(s=(0,l.A)(F.A,{})),"data-ta-locator":"GoldMenuButton",onClick:function(){return e.handleClick()},"data-icf-click":"GoldMenuButton"})):(0,l.A)(z,{size:u?"small":"large",padding:u?"0px 8px":void 0,disabled:!o,label:j.Ay.getString("gold_menu_view"),iconLeft:a||(a=(0,l.A)(F.A,{})),"data-ta-locator":"GoldMenuButton",onClick:function(){return e.handleClick()},"data-icf-click":"GoldMenuButton"})):(this.attemptRemoveSelf(),null)}}]),n}(_.Component);K.propTypes={isChatUpsell:b().bool,isCompact:b().bool,identifier:b().string,isImprovedCamPageFullscreenUI:b().bool},K.defaultProps={isChatUpsell:!1,isCompact:!1,isImprovedCamPageFullscreenUI:!1};const Q=(0,E.Zz)((0,B.A)({exclude:[D.Ay.EXTERNAL_SITE_SHOW]}),(0,H.A)([Y.A],(function(e){var t=e.xment;return{isImprovedCamPageFullscreenUI:Boolean(t.improvedCamPageFullscreenUI)}})))(K)},"./src/components/goldshow/GoldShowContainer.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>F});var o,r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),a=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),l=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),c=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),u=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),d=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),p=n("webpack/sharing/consume/default/react/react"),m=n("./node_modules/prop-types/index.js"),h=n.n(m),A=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),f=n("./src/stores/GoldShowStore.js"),g=n("./src/stores/LayoutStore.js"),y=n("./src/stores/TopContributorsStore.js"),v=n("./src/constants/GoldShowConstants.js"),b=n("./src/constants/LayoutConstants.ts"),_=n("./src/constants/Actions.js"),E=n("./src/constants/Platforms.ts"),S=n("./src/lib/Dispatcher.js"),C=n("./src/lib/Strings.js"),T=n("./src/components/bio/Vibes.tsx"),O=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),I=n("./node_modules/styled-components-rtl/index.js"),w=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),P=n.n(w);function k(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,u.A)(e);if(t){var r=(0,u.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,c.A)(this,n)}}var R,D,L=A.Ay.span.withConfig({displayName:"GoldShowTopic__Pledged",componentId:"sc-1g0hrdg-0"})(["color:",";",""],(function(e){return e.theme.colors.gold}),(0,I.A)(o||(o=(0,O.A)(["\n margin-left: 1em;\n "])))),x=A.Ay.h3.withConfig({displayName:"GoldShowTopic__Info",componentId:"sc-1g0hrdg-1"})(["color:",";margin-top:0;margin-bottom:0.5em;text-transform:uppercase;cursor:pointer;"],(function(e){return e.theme.colors.gold})),N=A.Ay.p.withConfig({displayName:"GoldShowTopic__Topic",componentId:"sc-1g0hrdg-2"})(["word-break:break-word;margin:0;line-height:1.45;cursor:pointer;"]),j=(0,A.Ay)(P()).attrs({name:"check"}).withConfig({displayName:"GoldShowTopic__TopicIcon",componentId:"sc-1g0hrdg-3"})(["fill:",";height:24px;width:24px;vertical-align:text-bottom;"],(function(e){return e.theme.colors.gold})),M=function(e){(0,l.A)(n,e);var t=k(n);function n(e){var o;(0,i.A)(this,n),o=t.call(this,e),(0,d.A)((0,a.A)(o),"onGoldShowStoreUpdate",(function(){var e=f.A.getState(),t=e.showtopic,n=e.minbuyinString,r=e.duration;o.setState({topic:t,minbuyinString:n,duration:o.getDurationString(r),pledged:f.A.isUserBoughtIn(),isInProgress:f.A.isInProgress()})}));var r=f.A.getState(),s=r.showtopic,l=r.minbuyinString,c=r.duration;return o.state={topic:s,minbuyinString:l,duration:o.getDurationString(c),pledged:f.A.isUserBoughtIn(),isInProgress:f.A.isInProgress()},o}return(0,s.A)(n,[{key:"componentDidMount",value:function(){this.goldShowToken=f.A.addListener(this.onGoldShowStoreUpdate)}},{key:"componentWillUnmount",value:function(){this.goldShowToken.remove()}},{key:"getDurationString",value:function(e){return 60===e?C.Ay.getString("minute",1):C.Ay.getString("minutes",Math.ceil(e/60))}},{key:"render",value:function(){var e=this.state.pledged?(0,r.A)(L,{},void 0,(0,r.A)(j,{"data-ta-locator":"GoldShowTopic__TopicIcon","data-isinprogress":this.state.isInProgress})):null;return(0,r.A)("div",{},void 0,(0,r.A)(x,{},void 0,this.state.minbuyinString,", ",this.state.duration," ",e),(0,r.A)(N,{"data-ta-locator":"GoldShowTopic__Topic"},void 0,this.state.topic))}}]),n}(p.Component),B=n("./src/components/goldshow/TopContributorsLeaderboard.js"),U=n("./src/components/section/InfoContainer.tsx");function G(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,u.A)(e);if(t){var r=(0,u.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,c.A)(this,n)}}var V=A.Ay.a.withConfig({displayName:"GoldShowContainer__StyledGoldShowLink",componentId:"sc-1cgi13i-0"})(["p{color:",";}",";"],(function(e){return e.theme.colors.baseContrast070}),(function(e){return e.clickable?"":"pointer-events: none;"})),F=function(e){(0,l.A)(n,e);var t=G(n);function n(){var e;return(0,i.A)(this,n),e=t.call(this),(0,d.A)((0,a.A)(e),"updateLayoutStoreVisbility",(function(t){e.context.layout===b.Ay.DESKTOP&&(0,S.T)({type:_.A.SIDEBAR_ITEM_VISIBLITY,data:{component:b.nA.GOLD_SHOW_CONTAINER,visible:t}})})),(0,d.A)((0,a.A)(e),"handleTopContributorsVisibility",(function(t){e.setState({isTopContributorsVisible:t})})),(0,d.A)((0,a.A)(e),"onGoldShowStoreUpdate",(function(){var t=f.A.getState().goldShowState;t!==e.state.goldShowState&&e.setState({goldShowState:t})})),(0,d.A)((0,a.A)(e),"onTopContributorsStoreUpdate",(function(){var t=y.A.getState().users;e.setState({topContributorsPledges:t})})),e.state={goldShowState:f.A.getState().goldShowState,topContributorsPledges:y.A.getState().users,isTopContributorsVisible:void 0},e}return(0,s.A)(n,[{key:"componentDidMount",value:function(){this.goldShowToken=f.A.addListener(this.onGoldShowStoreUpdate),this.topContributorsToken=y.A.addListener(this.onTopContributorsStoreUpdate),this.updateLayoutStoreVisbility(!1)}},{key:"componentWillUnmount",value:function(){this.goldShowToken.remove(),this.topContributorsToken.remove()}},{key:"componentDidUpdate",value:function(){var e,t=this.state.isTopContributorsVisible,n=null===(e=g.Ay.getSidebarItemState(b.nA.GOLD_SHOW_CONTAINER))||void 0===e?void 0:e.visible;t?n||this.updateLayoutStoreVisbility(!0):n&&this.updateLayoutStoreVisbility(!1)}},{key:"onGoldShowClick",value:function(e){e.preventDefault(),S.A.dispatch({type:_.A.GIVE_GOLD_CLICK})}},{key:"getTopic",value:function(e){return e===v.A.GOLD_STATE_NONE?null:R||(R=(0,r.A)(M,{}))}},{key:"getTopContributors",value:function(e){return e!==v.A.GOLD_STATE_NONE?(0,r.A)(B.A,{onVisibility:this.handleTopContributorsVisibility,isLarge:this.context.layout!==b.Ay.DESKTOP}):null}},{key:"render",value:function(){var e,t=this.state.goldShowState,n=this.context,o=n.layout,i=n.platform,s=null===(e=g.Ay.getSidebarItemState(b.nA.GOLD_SHOW_CONTAINER))||void 0===e?void 0:e.collapsed,a=this.getTopContributors(t),l=o===b.Ay.DESKTOP?U.iT:U.SD;return t===v.A.GOLD_STATE_NONE?null:(0,r.A)(l,{"data-ta-locator":"GoldShowContainer"},void 0,(0,r.A)(U.Kj,{},void 0,C.Ay.getString("my_gold_show")),(0,r.A)(U.Vq,{},void 0,(0,r.A)(V,{onClick:this.onGoldShowClick,clickable:i!==E.Ay.EXTERNAL_SITE_SHOW},void 0,this.getTopic(t))),D||(D=(0,r.A)(T.Ay,{})),!s&&a&&(0,r.A)(U.Vq,{},void 0,a))}}]),n}(p.Component);F.contextTypes={layout:h().string,platform:h().oneOf(Object.values(E.Ay))}},"./src/components/goldshow/TopContributorsLeaderboard.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>F});var o=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),u=n("webpack/sharing/consume/default/react/react"),d=n.n(u),p=n("./node_modules/prop-types/index.js"),m=n.n(p),h=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),A=n("./node_modules/styled-components-rtl/index.js"),f=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),g=n.n(f),y=n("./src/constants/LayoutConstants.ts"),v=n("./src/constants/Actions.js"),b=n("./src/components/common/primitives/index.js"),_=(0,h.Ay)(b.Ye).withConfig({displayName:"Pledge__Bidder",componentId:"sc-1pkqhk7-0"})(["height:30px;align-items:center;padding:0.2em 0.6em;background-color:",";"," "," &:first-child{background-color:",";}&:nth-child(2){background-color:",";}&:last-child{background-color:",";}&:before{background:rgb(255,246,0);border-radius:100%;height:18px;width:18px;color:rgb(122,85,0);counter-increment:badge;content:counter(badge);font-weight:bold;text-align:center;text-shadow:none;box-shadow:0 2px 2px rgba(0,0,0,0.3);line-height:18px;}&:hover{filter:brightness(125%);}&:active{","}",""],y.Tj.darkGray,(function(e){return e.isClickable&&"cursor: pointer;"}),(function(e){return e.isLarge&&"margin-bottom: 16px;\n border: solid 1px rgb(189,110,1);\n border-radius: 2px;\n padding: 20px 8px;\n font-weight: bold;"}),(function(e){return e.isLarge?"transparent":"rgb(189, 110, 1)"}),(function(e){return e.isLarge?"transparent":"rgb(200, 132, 0)"}),(function(e){return e.isLarge?"transparent":"rgb(220, 161, 0)"}),(function(e){return e.isLarge&&e.isClickable&&"background-color: rgb(189, 110, 1);"}),(function(e){return e.isHighlighted&&"background-color: rgb(189, 110, 1) !important;"})),E=h.Ay.span.withConfig({displayName:"Pledge__Username",componentId:"sc-1pkqhk7-1"})(["max-width:15em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;"]),S=function(e){var t=e.label,n=e.amount,r=e.onMouseOver,i=e.onMouseOut,s=e.onClick,a=e.isHighlighted,l=e.isClickable,c=e.isLarge;return d().createElement(_,{onMouseOver:r,onMouseOut:i,onClick:s,isHighlighted:a,isClickable:l,isLarge:c},(0,o.A)(b.yh,{},void 0,(0,o.A)(E,{},void 0,t),(0,o.A)("span",{},void 0,n)))};S.defaultProps={isClickable:!0},S.propTypes={label:m().string.isRequired,amount:m().string.isRequired,onMouseOver:m().func.isRequired,onMouseOut:m().func.isRequired,onClick:m().func.isRequired,isHighlighted:m().bool,isClickable:m().bool,isLarge:m().bool};const C=S;var T,O,I=n("./src/lib/Dispatcher.js"),w=n("./src/lib/Strings.js"),P=n("./src/stores/TopContributorsStore.js"),k=n("./src/stores/GoldShowStore.js"),R=n("./src/stores/LayoutStore.js"),D=n("./src/utils/log.js"),L=n("./src/utils/gold.js"),x=n("./src/utils/withStores.tsx");function N(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}var j=h.Ay.div.withConfig({displayName:"TopContributorsLeaderboard__Container",componentId:"sc-1czvy4c-0"})(["width:100%;margin-bottom:10px;font-size:80%;@media ","{display:none;}"],y.so),M=h.Ay.div.withConfig({displayName:"TopContributorsLeaderboard__Title",componentId:"sc-1czvy4c-1"})(["color:",";margin-bottom:0.5em;text-transform:uppercase;"," font-weight:500;font-size:11px;'"],y.Tj.gray,(0,A.A)(T||(T=(0,c.A)(["\n text-align: left;\n "])))),B=h.Ay.div.withConfig({displayName:"TopContributorsLeaderboard__TopContributorsContainer",componentId:"sc-1czvy4c-2"})(["counter-reset:badge;width:100%;"]),U=(0,h.Ay)(b.Ye).withConfig({displayName:"TopContributorsLeaderboard__UserBid",componentId:"sc-1czvy4c-3"})(["height:30px;align-items:center;padding:0.2em 0.6em;background-color:",";"," ",""],y.Tj.darkGray,(function(e){return e.isLarge&&"margin-bottom: 16px;"}),(function(e){return e.isClickable?"cursor: pointer;":"cursor: default;"})),G=(0,h.Ay)(g()).attrs({name:"person"}).withConfig({displayName:"TopContributorsLeaderboard__TopContributorsIcon",componentId:"sc-1czvy4c-4"})(["fill:white;width:1.75em;height:1.75em;margin-left:2px;"]),V=function(e){(0,s.A)(n,e);var t=N(n);function n(e){var o;return(0,r.A)(this,n),(o=t.call(this,e)).state={rolloverPosition:null,clickedPosition:null,lastTotalUserPledgedAmountForTakeTopSpot:0,isVisible:void 0},o}return(0,i.A)(n,[{key:"componentWillUnmount",value:function(){var e,t;null===(e=(t=this.props).onVisibility)||void 0===e||e.call(t,!1)}},{key:"componentDidUpdate",value:function(e,t){var n,o;this.state.isVisible!==t.isVisible&&(null===(n=(o=this.props).onVisibility)||void 0===n||n.call(o,this.state.isVisible));if(this.props.selectedGold&&e.selectedGold!==this.props.selectedGold){for(var r=this.props,i=r.pledges,s=r.usersToShow,a=r.selectedGold,l=r.minbuyin,c=r.totalUserPledgedAmount+a,u=0;u1&&void 0!==arguments[1]?arguments[1]:0,n=100*Math.ceil(Number(e)/100);return n===Number(e)&&(n+=100),t&&(n-=t),n=100*Math.ceil(n/100)}},{key:"getTopContributorString",value:function(e){var t="";switch(e){case 0:t=w.Ay.getString("top_contributors.1st");break;case 1:t=w.Ay.getString("top_contributors.2nd");break;case 2:t=w.Ay.getString("top_contributors.3rd")}return t}},{key:"handlePledgeClickExternal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.props.onPledgeClick?this.props.onPledgeClick(e,t):I.A.dispatch({type:v.A.GIVE_GOLD_CLICK,data:{topContributorAmount:e,topContributorString:t}})}},{key:"canClickPledgeRow",value:function(e){var t=this.getUserIndex(this.props.pledges);return!(null!==t&&t<=e)}},{key:"getUserIndex",value:function(e){for(var t=null,n=0;n0}}}]),n}(u.Component);V.defaultProps={totalUserPledgedAmount:0,usersToShow:3,isUserBoughtIn:!1,minbuyin:0,highlightingEnabled:!1,selectedGold:void 0,disableUserBidClick:!1,isLarge:!1},V.propTypes={onVisibility:m().func,onPledgeClick:m().func,highlightingEnabled:m().bool,selectedGold:m().number,disableUserBidClick:m().bool,isLarge:m().bool,pledges:m().array.isRequired,totalUserPledgedAmount:m().number,usersToShow:m().number,isUserBoughtIn:m().bool,minbuyin:m().number};const F=(0,x.A)([P.A,k.A,R.Ay],(function(e){return{pledges:e.topContributors.users,totalUserPledgedAmount:e.topContributors.totalUserPledgedAmount,usersToShow:e.topContributors.usersToShow,isUserBoughtIn:k.A.isUserBoughtIn(),minbuyin:e.goldShow.minbuyin}}))(V)},"./src/components/modals/EnterPaidModal.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_e,mapStateToProps:()=>be});var o,r,i,s,a,l,c,u=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),d=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),p=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),m=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),h=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),A=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),f=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),g=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),y=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),v=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),b=n("webpack/sharing/consume/default/react/react"),_=n("./node_modules/prop-types/index.js"),E=n.n(_),S=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),C=n("./node_modules/styled-components-rtl/index.js"),T=n("./src/constants/Actions.js"),O=n("./src/constants/Connection.js"),I=n("./src/constants/Session.ts"),w=n("./src/constants/Messages.js"),P=n("./src/lib/Dispatcher.js"),k=n("./src/lib/Strings.js"),R=n("./src/stores/ConfigStore.ts"),D=n("./src/stores/ConnectionStore.js"),L=n("./src/stores/RoomStore.ts"),x=n("./src/stores/PerformerStore.ts"),N=n("./src/stores/PerformerSubscribersStore.js"),j=n("./src/stores/RateStore.js"),M=n("./src/stores/UserStore.js"),B=n("./src/stores/UserListStore.ts"),U=n("./src/utils/currency.js"),G=n("./src/utils/log.js"),V=n("./src/utils/localization.js"),F=n("./src/utils/tools.ts"),H=n("./src/utils/withStores.tsx"),Y=n("./node_modules/@atg/icf-react-components/components/RadioButtonGroup/index.js"),W=n.n(Y),z=n("./node_modules/@atg/icf-react-components/components/RadioButton/index.js"),q=n.n(z),K=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),Q=n.n(K),X=n("./src/components/common/DropDownMenu.js"),Z=n("./src/components/common/EnterShowButton.js"),J=n("./src/components/common/BillingInfo.js"),$=n("./src/components/common/primitives/index.js"),ee=n("./src/components/modals/SpinnerModal.js"),te=n("./src/components/modals/ModalHeader.js");function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function oe(e){for(var t=1;t1&&setTimeout((function(){P.A.dispatch({type:T.A.CLOSE_MODAL})}))})),(0,y.A)((0,h.A)(r),"onSessionTypeChange",(function(e){G.A.usage("enterpaid_session_change"),r.setState({sessionType:e,blockSessionValue:"",blockSessionLabel:"",blockSessionData:null}),r.props.updateSessionTypeChange&&r.props.updateSessionTypeChange(e)})),(0,y.A)((0,h.A)(r),"onBlockSessionsChange",(function(e){var t=e.value,n=e.label;G.A.usage("enterpaid_blocksession_change"),r.setState({blockSessionValue:t,blockSessionLabel:n,blockSessionData:JSON.parse(t)}),r.props.updateBlockSessionChange&&r.props.updateBlockSessionChange(t)})),(0,y.A)((0,h.A)(r),"sendUserSawRateEvent",(function(){var e=D.A.getState(),t=e.performerId,n=e.performerStreamId,o=M.A.getState(),r=o.userId,i=o.userStreamId,s=j.A.getState(),a=s.dynamicRateSelectionId,l=s.dynamicRateModelName,c=s.dynamicPrivateRateUSD,u=s.dynamicExclusiveRateUSD,d=s.ratePremium,p=s.rateExclusive,m=Math.round(100*parseFloat(d)),h=Math.round(100*parseFloat(p))||null;r>0&&G.A.loms({eventname:"UserSawRateV1",userId:r,performerId:t,rateSelectionId:a,modelName:l,privateRate:c,exclusiveRate:u,viewedPrivateRate:m,viewedExclusiveRate:h,performerStreamId:n,userStreamId:i}),G.A.send()})),(0,y.A)((0,h.A)(r),"getBlockSessionOptionRow",(function(e){var t=e.perfdiscountid,n=e.streamid,o=e.streamtype,i=e.minduration,s=e.discountedrate,a=e.remainingDuration,l=e.total,c="";if(r.state.appendInclusivePrice){var u=r.getInclusiveTaxesAndFeeString();c="(".concat(r.getInclusivePriceString(l)," ").concat(u,")")}var d=(0,k.AA)("lb_".concat(o,"_description")),p=(0,k.AA)("blocksession",{total:r.getNonInclusivePriceString(l),discountedrate:r.getNonInclusivePriceString(s),minduration:i});return{label:"".concat(d,": ").concat(p).replace(/\s/g," ")+(c?" ":"")+c.replace(/\s/g," "),value:JSON.stringify({perfdiscountid:t,streamid:n,streamtype:o,minduration:i,remainingDuration:a,total:l,totalCents:100*Number(l)})}}));var i=j.A.getState(),s=i.taxPercentage,a=i.feePercentage,l=M.A.getState().showFinalCost,c=Boolean(l&&(s||a)),u=N.A.getState().userIsSubscribed;r.state={blockSessionValue:"",blockSessionLabel:"",userIsSubscribed:u,appendInclusivePrice:c,useLandscapeLayout:e.isLandscape};var d=r.getPaidChatOptions();return r.state=oe(oe({},r.state),{},{paidChatOptions:d,sessionType:d.length>0?d[0].sessionType:I.d.PREMIUM}),r}return(0,m.A)(n,[{key:"componentDidMount",value:function(){this.performerToken=x.A.addListener(this.onPerformerStoreChange),this.userListToken=B.A.addListener(this.onUserListStoreChange),this.sendUserSawRateEvent()}},{key:"componentWillUnmount",value:function(){this.performerToken.remove(),this.userListToken.remove(),clearTimeout(this.sesstionTypeChangedTimeout),this.sesstionTypeChangedTimeout=null}},{key:"componentDidUpdate",value:function(e){this.props.isLandscape!==e.isLandscape&&this.setState({useLandscapeLayout:this.props.isLandscape})}},{key:"updatePaidChatOptions",value:function(){var e=this,t=this.getPaidChatOptions(),n=this.state.sessionType,o=n;n&&t.some((function(e){return e.sessionType===n}))||(o=t.length>0?t[0].sessionType:I.d.PREMIUM);var r=o!==n;this.setState({paidChatOptions:t,sessionType:o,sessionTypeChanged:r}),r&&(clearTimeout(this.sesstionTypeChangedTimeout),this.sesstionTypeChangedTimeout=setTimeout((function(){e.setState({sessionTypeChanged:!1})}),250))}},{key:"renderDiscountRate",value:function(e,t){return this.state.userIsSubscribed&&e!==t?(0,d.A)("span",{},void 0," - ",(0,d.A)("del",{},void 0,e)," ",(0,d.A)(me,{},void 0,t)):(0,d.A)("span",{},void 0," - ",e)}},{key:"getInclusivePriceString",value:function(e){var t=M.A.getState().currencyCode;return U.A.currencyify(U.A.applyTaxesAndFees(e),t)}},{key:"getNonInclusivePriceString",value:function(e){var t=M.A.getState().currencyCode;return U.A.currencyify(e,t)}},{key:"getInclusiveTaxesAndFeeString",value:function(){var e=j.A.getState(),t=e.taxPercentage,n=e.feePercentage;return t&&n?(0,k.AA)("billing_info.vat_fee_included_text_only"):t?(0,k.AA)("billing_info.vat_included_text_only"):n?(0,k.AA)("billing_info.fee_included_text_only"):null}},{key:"shouldShowStashWarning",value:function(e,t,n){return e0?(0,k.AA)("rate",this.getNonInclusivePriceString(o)):"",a="",l="";if(e){var c=this.getInclusiveTaxesAndFeeString();a="(".concat((0,k.AA)("rate",this.getInclusivePriceString(n))," ").concat(c,")"),l="(".concat((0,k.AA)("rate",this.getInclusivePriceString(o))," ").concat(c,")")}return{sessionType:I.d.PREMIUM,description:(0,k.AA)("lb_premium_description"),rateCents:100*Number(n),rateString:i,rateDiscountString:s,rateInclusiveString:a,rateInclusiveDiscountString:l,subtext:(0,k.AA)("lb_premium_subtext"),icon:"group"}}},{key:"getExclusive",value:function(){var e=D.A.getState().streamType,t=B.A.getState().numberOfUsersInRoom;if(x.A.inPrivate())return null;if(L.A.isRoomInPrivate()&&e!==O.Ay.STREAM_TYPE_PRIVATE)return null;if(L.A.isRoomInExternalSiteShow())return null;var n=this.state.appendInclusivePrice,o=j.A.getState(),r=o.rateExclusive,i=o.rateExclusiveDiscount;if(e===O.Ay.STREAM_TYPE_PRIVATE&&t>1)return null;if(!r)return null;var s=(0,k.AA)("rate",this.getNonInclusivePriceString(r)),a=i>0?(0,k.AA)("rate",this.getNonInclusivePriceString(i)):"",l="",c="";if(n){var u=this.getInclusiveTaxesAndFeeString();l="(".concat((0,k.AA)("rate",this.getInclusivePriceString(r))," ").concat(u,")"),c="(".concat((0,k.AA)("rate",this.getInclusivePriceString(i))," ").concat(u,")")}return{sessionType:I.d.EXCLUSIVE,description:(0,k.AA)("lb_exclusive_description"),rateCents:100*Number(r),rateString:s,rateDiscountString:a,rateInclusiveString:l,rateInclusiveDiscountString:c,subtext:(0,k.AA)("lb_exclusive_subtext"),icon:"person"}}},{key:"getBlock",value:function(){if(this.context.isExternalSiteFundsOnly)return null;var e=j.A.getState().resumeSession;if(D.A.getState().streamType===O.Ay.STREAM_TYPE_PRIVATE)return null;if(e){var t=(0,k.AA)("rate",this.getNonInclusivePriceString(e.discountedrate)),n="";if(this.state.appendInclusivePrice){var o=this.getInclusiveTaxesAndFeeString();n=" (".concat(this.getInclusivePriceString(e.discountedrate)," ").concat(o,")")}return{sessionType:I.d.RESUME,description:(0,k.AA)("lb_resume_description"),subtext:(0,k.AA)("lb_resume_subtext",e.minduration,t)+n,icon:"accessTime"}}return j.A.hasBlockSessionsAvailable()?{sessionType:I.d.BLOCK,description:(0,k.AA)("lb_block_description"),subtext:(0,k.AA)("lb_block_subtext",(0,V.l9)(j.A.maxDiscountRate()/100)),icon:"accessTime"}:null}},{key:"getPaidChatOptions",value:function(){if(void 0===this.state.appendInclusivePrice)throw new Error("appendInclusivePrice must be defined on the state");var e=!M.A.getState().needsPrebill;return[this.getPrivate(),this.getExclusive(),e&&this.getBlock()].filter((function(e){return Boolean(e)}))}},{key:"renderBlockSessions",value:function(){if(!j.A.hasBlockSessionsAvailable()||this.context.isExternalSiteFundsOnly)return null;var e=this.state,t=e.sessionType,n=e.blockSessionValue,o=e.blockSessionData,r=e.appendInclusivePrice;if(t!==I.d.BLOCK)return s||(s=(0,d.A)(le,{}));var i=j.A.getState().blockSessions,a=[];i.premium&&a.push.apply(a,(0,u.A)(i.premium.map(this.getBlockSessionOptionRow))),!i.exclusive||L.A.isRoomInPrivate()||x.A.inPrivate()||a.push.apply(a,(0,u.A)(i.exclusive.map(this.getBlockSessionOptionRow)));var l="";if(o&&r){var c=this.getInclusiveTaxesAndFeeString();l="(".concat(this.getInclusivePriceString(o.total)," ").concat(c,")")}return(0,d.A)(le,{},void 0,(0,d.A)(pe,{"data-ta-locator":"EnterPaidModal__blockSessionSelect",options:a,required:!0,onChange:this.onBlockSessionsChange.bind(this),placeholder:(0,k.AA)("select_block"),value:n||""}),l&&(0,d.A)(se,{style:{textAlign:"center"}},void 0,l))}},{key:"renderPrebillWarning",value:function(){var e,t,n=M.A.getState(),o=n.needsPrebill,r=n.currencyCode,i=null===(e=R.A.getState().data)||void 0===e||null===(t=e.rate)||void 0===t?void 0:t.prebill;if(!o||!i)return null;G.A.usage("enterpaid_show_prebill_message");var s=U.A.currencyify(i,r);return(0,d.A)("p",{"data-ta-locator":"EnterPaidPrebillWarning"},void 0,(0,d.A)("small",{},void 0,(0,k.AA)("prebill_private_show",s)))}},{key:"renderDiscountAppliedBanner",value:function(){var e=j.A.getState(),t=e.rateExclusiveDiscount,n=e.ratePremiumDiscount;if(this.state.userIsSubscribed&&(t||n))return(0,d.A)(he,{},void 0,a||(a=(0,d.A)(Q(),{name:"crown",size:20})),(0,k.AA)("fanclub.benefits.discount_applied"))}},{key:"render",value:function(){var e=this,t=this.props,n=t.showEnterShowButton,o=t.allowExclusiveUpgrade,r=this.state,i=r.sessionTypeChanged,s=r.sessionType,a=r.blockSessionValue,u=r.blockSessionData,p=this.getPaidChatOptions(),m=M.A.getState(),h=m.needsPrebill,A=m.showFinalCost,f=m.stashUser,g=m.isStashLimit,y=m.maxGold,v=m.currencyCode,_=D.A.getState().streamType,E=!h,S=this.state.useLandscapeLayout,C=(0,d.A)("form",{},void 0,(0,d.A)(de,{"data-ta-locator":"EnterPaidModal__Modal"},void 0,(0,d.A)(W(),{defaultSelected:s,name:"privates",onChange:this.onSessionTypeChange},void 0,p.map((function(t){return e.renderPaidChatOptionRow(t)}))),E&&this.renderBlockSessions(),this.renderPrebillWarning()));if(i)return l||(l=(0,d.A)(ee.default,{}));var T=!1,P=!1;if(f&&g&&_===O.Ay.STREAM_TYPE_GUEST){var R,L=null===(R=p.find((function(e){return e.sessionType===s})))||void 0===R?void 0:R.rateCents,x=s===I.d.BLOCK?null==u?void 0:u.totalCents:void 0;T=this.shouldShowStashWarning(y,L,x),P=this.shouldDisableForStash(y,L,x)}var N=_===O.Ay.STREAM_TYPE_PRIVATE&&!o;return(0,d.A)(ce,{},void 0,S&&(0,d.A)(ue,{},void 0,C),(0,d.A)("div",{},void 0,this.renderDiscountAppliedBanner(),!S&&(0,d.A)("form",{},void 0,C),(T||P)&&(0,d.A)(Ae,{onClick:function(){(0,F.Zj)(w.A.GOTO_STASH)},"data-ta-locator":"EnterPaidModal__StashWarning"},void 0,(0,d.A)("div",{},void 0,(0,k.AA)("prepaid_balance.current",{amount:U.A.currencyify(y,v)})),T&&!P&&(0,d.A)("div",{dangerouslySetInnerHTML:{__html:(0,k.AA)("prepaid_balance.suggest_add_funds_for_show")}}),P&&(0,d.A)("div",{dangerouslySetInnerHTML:{__html:(0,k.AA)("prepaid_balance.require_add_funds_for_show")}})),N&&(0,d.A)(Ae,{"data-ta-locator":"EnterPaidModal__ExclusiveUpgradeDisabledWarning"},void 0,(0,d.A)("div",{},void 0,(0,k.AA)("go_exclusive_delay",{time:"".concat(I.E," ").concat((0,k.AA)("seconds"))}))),n&&(0,d.A)(b.Fragment,{},void 0,S&&(c||(c=(0,d.A)(ye,{},void 0,ge))),(0,d.A)(ie,{label:(0,k.AA)("enter_show"),"data-ta-locator":"EnterPaidModal__enterPaidButton",sessionType:s,blockSessionValue:a,disabled:P||N}),(0,d.A)(fe,{},void 0,(0,d.A)("small",{},void 0,(0,k.AA)("monitored"))),(0,d.A)(J.Ay,{finalCostShown:A}))))}}]),n}(b.Component);ve.contextTypes={primaryColor:E().string,isExternalSiteFundsOnly:E().bool},ve.propTypes={showPaidChatDetails:E().bool,updateBlockSessionChange:E().func,updateSessionTypeChange:E().func,showEnterShowButton:E().bool,isDesktop:E().bool,isLandscape:E().bool,allowExclusiveUpgrade:E().bool},ve.defaultProps={showPaidChatDetails:!0,showEnterShowButton:!0,allowExclusiveUpgrade:!1};var be=function(e){return{allowExclusiveUpgrade:e.userList.allowExclusiveUpgrade}};const _e=(0,H.A)([B.A,L.A],be)(ve)},"./src/components/modals/Modal.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var o,r,i,s=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),a=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("webpack/sharing/consume/default/react/react"),u=n.n(c),d=n("./node_modules/prop-types/index.js"),p=n.n(d),m=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),h=n("./src/components/common/CloseButton.js"),A=n("./src/components/modals/ModalHeader.js"),f=n("./src/constants/LayoutConstants.ts"),g=n("./src/constants/Modals.ts"),y=n("./src/lib/Strings.js"),v=n("./src/utils/tools.ts"),b=n("./src/utils/createAsyncComponent.tsx"),_=n("./node_modules/styled-components-rtl/index.js"),E=(o={},(0,l.A)(o,g.bM.COMPLIANCE,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/ComplianceModal.js"))}),{displayName:"ComplianceModal"}),title:"2257"}),(0,l.A)(o,g.bM.DAILY_LIMIT,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/DailyLimitModal.tsx"))}),{displayName:"DailyLimitModal"})}),(0,l.A)(o,g.bM.END_CAM2CAM,{asyncComponent:(0,b.A)((function(){return n.e(10).then(n.bind(n,"./src/components/modals/EndCam2CamModal.js"))}),{displayName:"EndCam2CamModal"})}),(0,l.A)(o,g.bM.ENTER_CAM2CAM,{asyncComponent:(0,b.A)((function(){return n.e(10).then(n.bind(n,"./src/components/modals/EnterCam2CamModal.tsx"))}),{displayName:"EnterCam2CamModal"})}),(0,l.A)(o,g.bM.ENTER_PAID,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/EnterPaidModal.js"))}),{displayName:"EnterPaidModal"}),title:"select_show"}),(0,l.A)(o,g.bM.ENTER_VOICE_CHAT,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/EnterVoiceChatModal.js"))}),{displayName:"EnterVoiceChatModal"})}),(0,l.A)(o,g.bM.ESS_ENTER,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/EssEnterModal.tsx"))}),{displayName:"EssEnterModal"})}),(0,l.A)(o,g.bM.FREEZE,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/FreezeModal.js"))}),{displayName:"FreezeModal"}),title:"site_notice"}),(0,l.A)(o,g.bM.GIVE_GOLD,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/GiveGoldModal.js"))}),{displayName:"GiveGoldModal"})}),(0,l.A)(o,g.bM.GOLD,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/goldmenu/GoldModal.tsx"))}),{displayName:"GoldModal"})}),(0,l.A)(o,g.bM.LOADING_PRIVATE,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/LoadingPrivateModal.js"))}),{displayName:"LoadingPrivateModal"})}),(0,l.A)(o,g.bM.MIDSTREAM_BILLING_DECLINED,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/MidstreamBillingDeclinedModal.js"))}),{displayName:"MidstreamBillingDeclinedModal"}),title:"site_notice"}),(0,l.A)(o,g.bM.NO_SERVICES,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/NoServicesModal.js"))}),{displayName:"NoServicesModal"}),title:"site_notice"}),(0,l.A)(o,g.bM.PAYOFF,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/PayoffModal.js"))}),{displayName:"PayoffModal"}),title:"site_notice"}),(0,l.A)(o,g.bM.POST_PAID,{asyncComponent:(0,b.A)((function(){return n.e(10).then(n.bind(n,"./src/components/modals/PostPaidModal.js"))}),{displayName:"PostPaidModal"})}),(0,l.A)(o,g.bM.QUICK_TIP_CHANGE_CUSTOM_VALUE,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/QuickTipChangeCustomValueModal.js"))}),{displayName:"QuickTipChangeCustomValueModal"}),title:"quick_tip.edit"}),(0,l.A)(o,g.bM.QUICK_TIP_CONSENT,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/QuickTipConsentModal.js"))}),{displayName:"QuickTipConsentModal"}),title:"quick_tip.title"}),(0,l.A)(o,g.bM.QUICK_TIP_MOBILE_CONSENT,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/QuickTipMobileConsentModal.js"))}),{displayName:"QuickTipMobileConsentModal"}),title:"quick_tip.title"}),(0,l.A)(o,g.bM.SNEAK_PREVIEW_EXPIRED,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/SneakPreviewExpiredModal.js"))}),{displayName:"SneakPreviewExpiredModal"}),title:"site_notice"}),(0,l.A)(o,g.bM.SPINNER,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/SpinnerModal.js"))}),{displayName:"SpinnerModal"})}),(0,l.A)(o,g.bM.SPOT_RESERVED,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/SpotReservedModal.js"))}),{displayName:"SpotReservedModal"}),title:"reserved_spot"}),(0,l.A)(o,g.bM.STASH,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/StashModal.js"))}),{displayName:"StashModal"}),title:"site_notice"}),(0,l.A)(o,g.bM.TERMS,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/TermsModal.js"))}),{displayName:"TermsModal"}),title:"terms"}),(0,l.A)(o,g.bM.THANKS_POST_PAID,{asyncComponent:(0,b.A)((function(){return n.e(10).then(n.bind(n,"./src/components/modals/ThanksModalPostPaid.js"))}),{displayName:"ThanksModalPostPaid"}),title:"thankyou"}),(0,l.A)(o,g.bM.TWO_FACTOR_AUTHENTICATION_REQUIRED,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/TwoFactorAuthenticationRequiredModal.js"))}),{displayName:"TwoFactorAuthenticationRequiredModal"})}),(0,l.A)(o,g.bM.PREAUTH_FORM_SALE,{asyncComponent:(0,b.A)((function(){return n.e(9).then(n.bind(n,"./src/components/modals/PreAuthFormSaleModal.tsx"))}),{displayName:"PreAuthFormSaleModal"}),title:"prebill_payment_declined_title"}),o),S=m.Ay.div.withConfig({displayName:"Modal__OverlayDesktop",componentId:"sc-1b8aa74-0"})(["& > div{position:absolute;display:flex;align-items:center;justify-content:center;position:absolute;top:0;width:100%;height:100%;z-index:100;flex-direction:column;background:rgba(0,0,0,0.5);}"]),C=(0,m.Ay)(S).withConfig({displayName:"Modal__OverlayMobile",componentId:"sc-1b8aa74-1"})(["& > div{background:transparent;}"]),T=m.Ay.div.withConfig({displayName:"Modal__Background",componentId:"sc-1b8aa74-2"})(["opacity:1;"]),O=m.Ay.div.withConfig({displayName:"Modal__ContainerDesktop",componentId:"sc-1b8aa74-3"})(["align-items:center;background:linear-gradient(180deg,rgba(0,0,0,0.3),#000 37%);display:flex;flex-basis:auto;flex-direction:column;flex-grow:0;flex-shrink:1;flex-wrap:nowrap;justify-content:center;margin:16px;max-height:100%;max-width:500px;position:relative;width:100%;min-height:400px;text-align:center;"]),I=(0,m.Ay)(O).withConfig({displayName:"Modal__ContainerMobile",componentId:"sc-1b8aa74-4"})(["background:linear-gradient(180deg,rgba(0,0,0,0.5),#000 37%);flex-basis:initial;flex-grow:1;margin:0;max-height:none;max-width:none;min-height:100vh;"]),w=m.Ay.div.withConfig({displayName:"Modal__ContentScrollWrapper",componentId:"sc-1b8aa74-5"})(["overflow:auto;width:100%;display:flex;flex-direction:row;@media ","{overflow:hidden;}"],f.Yt),P=m.Ay.div.withConfig({displayName:"Modal__InnerContentWrapper",componentId:"sc-1b8aa74-6"})(["padding:2em;width:100%;overflow:auto;& > div{margin:0 auto;width:100%;}"]),k=(0,m.Ay)(P).withConfig({displayName:"Modal__InnerContentWrapperDesktop",componentId:"sc-1b8aa74-7"})(["& > div{max-width:375px;}"]),R=(0,m.Ay)(h.A).withConfig({displayName:"Modal__Closer",componentId:"sc-1b8aa74-8"})(["& *{background:transparent;}"]),D=m.Ay.div.withConfig({displayName:"Modal__CloserContainer",componentId:"sc-1b8aa74-9"})(["position:absolute;top:0px;"," display:flex;flex-flow:row-reverse;flex-wrap:nowrap;"],(0,_.A)(r||(r=(0,a.A)(["\n right: 0px;\n "])))),L=function(e){var t=e.showCloseButton;return(0,s.A)(D,{},void 0,t&&(i||(i=(0,s.A)(R,{action:v.wm,buttonId:"CloseModalButton__closeButton"}))))},x=function(e){var t=e.modal,n=e.isTablet,o=e.isLandscape,r=e.isDesktop,i=e.showCloseButton;if(!t||!E[t])return null;var a=E[t].asyncComponent,l=n||r,c=E[t].title?y.Ay.getString(E[t].title):"",d=l?S:C,p=l?O:I,m=l?k:P;return(0,s.A)(d,{},void 0,(0,s.A)(T,{},void 0,!l&&(0,s.A)(L,{showCloseButton:i}),u().createElement(p,{"data-ta-locator":"Modal__".concat(t),ref:function(e){if(e&&!l){e.addEventListener("touchmove",(function(t){for(var n=!1,o=t.target;o&&o!==e;){if(o.scrollHeight>o.offsetHeight||"input"===o.tagName.toLowerCase()){n=!0;break}o=o.parentElement}n||(t.stopPropagation(),t.preventDefault())}))}}},l&&(0,s.A)(L,{showCloseButton:i}),(0,s.A)(w,{},void 0,(0,s.A)(m,{},void 0,!o&&(0,s.A)(A.A,{},void 0,c),u().createElement(a,e))))))};L.propTypes={showCloseButton:p().bool},L.defaultProps={showCloseButton:!0},x.propTypes={modal:p().string,isDesktop:p().bool,isLandscape:p().bool,isTablet:p().bool,showCloseButton:p().bool},x.defaultProps={modal:"",isDesktop:!1,isLandscape:!1,isTablet:!1,showCloseButton:!0},x.displayName="Modal";const N=x},"./src/components/modals/ModalHeader.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n("./node_modules/prop-types/index.js"),r=n.n(o),i=n("./node_modules/styled-components/dist/styled-components.browser.esm.js").Ay.span.withConfig({displayName:"ModalHeader",componentId:"sc-dcepkb-0"})(["display:block;font-size:24px;font-weight:300;line-height:1.45;margin-bottom:24px;text-align:center;text-transform:capitalize;letter-spacing:0.5px;color:",";&:empty{display:none;margin:0;padding:0;}"],(function(e){return e.color||"#fafafa"}));i.propTypes={color:r().string};const s=i},"./src/components/modals/Rating.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=(n("webpack/sharing/consume/default/react/react"),n("./node_modules/prop-types/index.js")),s=n.n(i),a=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),l=n("./src/components/common/primitives/index.js"),c=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),u=n.n(c),d=a.Ay.div.withConfig({displayName:"Rating__Stars",componentId:"sc-1rjpp1q-0"})(["white-space:nowrap;"]),p=(0,a.Ay)(u()).withConfig({displayName:"Rating__Star",componentId:"sc-1rjpp1q-1"})(["fill:",";"],(function(e){return e.theme.colors.gold})),m=function(e){var t=e.rating,n=e.small,o=e.onUpdate,i=e.className,s=e.size;if(void 0===t)return null;var a=24;(n||s)&&(a=s||12);return(0,r.A)(d,{"data-ta-locator":e["data-ta-locator"],className:i},void 0,[1,2,3,4,5].map((function(e){var n,i="Rating__star".concat(e);if(n=t>=e?"star":e-t==.5?"starHalf":"starBorder",o){return(0,r.A)(l.$n,{value:e,"data-ta-locator":i,onClick:function(e){e.preventDefault(),o(e)}},e,(0,r.A)(p,{size:a,name:n}))}return(0,r.A)(p,{value:e,id:i,size:a,name:n},e)})))};m.defaultProps={onUpdate:null,rating:0,small:!1},m.propTypes=(0,o.A)({onUpdate:s().func,rating:s().number,small:s().bool,className:s().string,size:s().number},"data-ta-locator",s().string);const h=m},"./src/components/modals/SpinnerModal.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var o,r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=(n("webpack/sharing/consume/default/react/react"),n("./src/components/common/primitives/index.js")),s=n("./src/components/common/Spinner.tsx");const a=function(){return o||(o=(0,r.A)(i.VC,{},void 0,(0,r.A)(s.A,{})))}},"./src/components/section/TabsContainer.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>st});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),d=n("webpack/sharing/consume/default/react/react"),p=n.n(d),m=n("./node_modules/prop-types/index.js"),h=n.n(m),A=n("./node_modules/lodash/omitBy.js"),f=n.n(A),g=n("./node_modules/lodash/isEqual.js"),y=n.n(g),v=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),b=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),_=n.n(b),E=n("./node_modules/@atg/icf-react-components/components/Tabs/index.js"),S=n.n(E),C=n("./node_modules/@atg/icf-react-components/components/Tab/index.js"),T=n.n(C),O=n("./src/lib/Dispatcher.js"),I=n("./src/lib/Strings.js"),w=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),P=n("./src/utils/FluxStoreExtended.ts"),k=n("./src/stores/UserStore.js"),R=n("./src/constants/Actions.js"),D=n("./src/constants/RpcCalls.js"),L=n("./src/constants/Feature.ts");function x(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function j(e){for(var t=1;t a{color:inherit;}"],(function(e){return e.theme.colors.baseContrast050})),oe=function(){O.A.dispatch({type:R.A.OPEN_COMPLIANCE_MODAL})},re=function(){O.A.dispatch({type:R.A.OPEN_TERMS_MODAL})},ie=function(e,t){return(0,u.A)(ne,{},void 0,(0,u.A)("small",{},void 0,(0,u.A)("a",{onClick:oe},void 0,I.Ay.getString("2257"))," | ",(0,u.A)("a",{onClick:re},void 0,I.Ay.getString("terms")),t.isBlackLabel&&" | ".concat(I.Ay.getString("powered_by")," Streamate")))};ie.contextTypes={isBlackLabel:h().bool};const se=ie;var ae,le,ce,ue,de=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),pe=n("./node_modules/styled-components-rtl/index.js"),me=n("./src/components/chat/ChatForm.js"),he=n("./src/components/chat/MessageList.js"),Ae=n("./src/components/video/Favorite.js"),fe=n("./src/components/section/InfoContainer.tsx"),ge=n("./src/utils/withStores.tsx"),ye=v.Ay.div.withConfig({displayName:"FullscreenChat__FullscreenChatContainer",componentId:"sc-70t1eo-0"})(["display:flex;flex-flow:column;overflow:hidden;min-height:0;flex-grow:1;"]),ve=fe.Kj,be=v.Ay.div.withConfig({displayName:"FullscreenChat__InnerChatContainer",componentId:"sc-70t1eo-1"})(["display:flex;flex-flow:column;flex-grow:1;flex-shrink:1;min-height:0;justify-content:flex-end;& > ul{flex-shrink:1;}"]),_e=(0,v.Ay)(Ae.A).withConfig({displayName:"FullscreenChat__StyledFavorite",componentId:"sc-70t1eo-2"})(["",""],(0,pe.A)(ae||(ae=(0,de.A)(["\n margin-right: 8px;\n "])))),Ee=function(e){var t=e.performerName;return(0,u.A)(ye,{},void 0,Boolean(t)&&(0,u.A)(ve,{},void 0,le||(le=(0,u.A)(_e,{})),t),ce||(ce=(0,u.A)(ee.A,{})),ue||(ue=(0,u.A)(be,{},void 0,(0,u.A)(he.A,{messageFlow:"rise",scrollable:!0,transparent:!0}),(0,u.A)(me.A,{showChatTools:!0}))))};Ee.propTypes={performerName:h().string},Ee.defaultProps={performerName:""};const Se=(0,ge.A)([Y.A],(function(e){return{performerName:e.performer.nickname}}))(Ee);var Ce=n("./src/components/common/Tooltip.tsx"),Te=n("./src/components/videostore/BioVideosContainerAsync.js"),Oe=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),Ie=n("./node_modules/@babel/runtime/regenerator/index.js"),we=n.n(Ie),Pe=n("./src/utils/createAsyncComponent.tsx");function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Re(e){for(var t=1;t div{display:flex;flex-direction:column;justify-content:center;align-content:center;}& video{background:transparent;}"]),$e=v.Ay.div.withConfig({displayName:"TabsContainer__StyledTabsContainer",componentId:"sc-1ulcrye-4"})(["transition:flex-basis 0.3s;border-color:",";background:",";flex-grow:0;flex-shrink:0;min-height:0;flex-basis:","px;",";& nav{border-color:",";}"],(function(e){return e.theme.colors.baseContrast030}),(function(e){var t=e.offlineMobileLayoutEnabled,n=e.theme;return t?n.colors.baseContrast015:"transparent"}),qe,(function(e){return e.collapsed&&"\n flex-basis: 0px;\n border: none;\n overflow: hidden;\n "}),(function(e){var t=e.offlineMobileLayoutEnabled,n=e.theme;return t?"transparent":n.colors.baseContrast020})),et=(0,v.Ay)(S()).withConfig({displayName:"TabsContainer__StyledTabs",componentId:"sc-1ulcrye-5"})(["& > *{min-width:0;}& >:last-child{border-color:transparent;border-width:0 16px;border-style:solid;background-clip:content-box;}"]),tt=(0,v.Ay)(T()).withConfig({displayName:"TabsContainer__StyledTab",componentId:"sc-1ulcrye-6"})(["cursor:pointer;flex-shrink:1;flex-grow:1;min-width:0;overflow:hidden;& svg{fill:",";}@media (min-width:","px){&:nth-child(2){",",","{animation-delay:0.2s;}}&:nth-child(3){",",","{animation-delay:0.4s;}}&:nth-child(4){",",","{animation-delay:0.6s;}}&:nth-child(5){",",","{animation-delay:0.8s;}}&:nth-child(6){",",","{animation-delay:1s;}}}"],(function(e){var t=e.theme;return e.active?t.colors.baseContrast100:"dark"===t.type?t.colors.baseContrast040:t.colors.baseContrast060}),X.fi.desktop.min,Qe,Xe,Qe,Xe,Qe,Xe,Qe,Xe,Qe,Xe),nt=v.Ay.div.withConfig({displayName:"TabsContainer__StyledTabContentContainer",componentId:"sc-1ulcrye-7"})(["box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-grow:1;height:auto;justify-content:space-between;min-height:0;overflow-scrolling:touch;-webkit-overflow-scrolling:touch;overflow-x:hidden;overflow-y:auto;padding:","px;position:relative;width:100%;z-index:2;",""],Ke,(function(e){return e.clipContent&&"overflow-y: hidden;"})),ot={chat:(0,u.A)(Qe,{name:"chatBubble"}),bio:(0,u.A)(Xe,{}),info:(0,u.A)(Qe,{name:"info"}),c2c:(0,u.A)(Qe,{name:"videocam"}),similarModels:(0,u.A)(Qe,{name:"stars"}),photos:(0,u.A)(Qe,{name:"photoCamera"}),videos:(0,u.A)(Qe,{name:"videoLibraryClapper"})},rt={chat:"chat",bio:"performer_bio",similarModels:"similar_models",photos:"photos",videos:"videos.bio_title",info:"show_info",c2c:"cam2cam"},it=function(e){(0,s.A)(n,e);var t=He(n);function n(e,r){var s;(0,o.A)(this,n),s=t.call(this,e,r),(0,c.A)((0,i.A)(s),"componentDidMount",(function(){s.connectionToken=G.A.addListener(s.onStoreUpdate),s.goldShowToken=V.A.addListener(s.onStoreUpdate),s.tabsToken=U.addListener(s.onStoreUpdate),s.mediaToken=H.A.addListener(s.onStoreUpdate)})),(0,c.A)((0,i.A)(s),"componentWillUnmount",(function(){s.connectionToken.remove(),s.goldShowToken.remove(),s.tabsToken.remove(),s.mediaToken.remove()})),(0,c.A)((0,i.A)(s),"onStoreUpdate",(function(){var e=n.getStateFromStores(s.props,s.context),t=e.activeTab;s.setState(e,(function(){-1===s.getTabIndex(t)&&(t=U.getDefaultTab(),-1===s.getTabIndex(t)&&(t=s.getDisplayedTabs()[0]),setTimeout((function(){O.A.dispatch({type:R.A.ACTIVE_TAB,data:{name:t}})})))}))})),(0,c.A)((0,i.A)(s),"getInfoContent",(function(){return V.A.getState().goldShowState!==K.A.GOLD_STATE_NONE?xe||(xe=(0,u.A)(ee.A,{})):G.A.getState().roomTopic?Ne||(Ne=(0,u.A)(te.A,{})):null})),(0,c.A)((0,i.A)(s),"handleTabChange",(function(e){var t=s.context.layout;s.tabValues=s.getDisplayedTabs();var n=s.tabValues[e];t===X.Ay.MOBILE&&(0,Ve.nO)(n||"unknown",t),setTimeout((function(){O.A.dispatch({type:R.A.ACTIVE_TAB,data:{name:n}})}))})),(0,c.A)((0,i.A)(s),"getTabIndex",(function(e){return s.getDisplayedTabs().indexOf(e)})),(0,c.A)((0,i.A)(s),"getDisplayedTabs",(function(){var e=s.props,t=e.hideSimilarModels,n=e.privCallInProgress,o=e.requestingCam2Cam,r=e.forcedLayout,i=e.performerBioExists,a=e.similarModelsExist,l=e.photosExist,c=e.c2cRequestedLively,u=e.isFanMode,d=e.hideBio,p=e.hidePhotos,m=s.context,h=m.layout,A=m.orientation,f=s.state,g=f.chatDisabled,y=f.infoDisabled,v=f.hideBioTab,b=f.hidePhotosTab,_=f.showVideosTab,E=!(o||n||c),S=h===X.Ay.TABLET&&A===X.Ay.LANDSCAPE;return r===X.$e.TABLET_WITH_BIO?[g?null:"chat",y?null:"info"].filter((function(e){return null!==e})):h===X.Ay.DESKTOP||S?[g?null:"chat",d||v||!i||u?null:"bio",t||!a||u?null:"similarModels",p||b||!l||u?null:"photos"].filter((function(e){return null!==e})):[g?null:"chat",d||v||!i||u?null:"bio",y||!E?null:"info",E||u?null:"c2c",_&&!u?"videos":null,p||b||!l||u?null:"photos"].filter((function(e){return null!==e}))})),(0,c.A)((0,i.A)(s),"buildTabs",(function(){var e=s.state.activeTab,t=s.getDisplayedTabs(),n=[];return t.forEach((function(t){var o=rt[t];n.push((0,u.A)(Ce.A,{title:I.Ay.getString(o)},"".concat(t,"-tooltip"),(0,u.A)(tt,{active:e===t?1:0,"data-ta-locator":"TabsContainer__".concat(t),label:ot[t],value:t},t)))})),n})),(0,c.A)((0,i.A)(s),"setContainerRef",(function(e){var t;s.containerRef=e,s.setState({containerHeight:(null===(t=s.containerRef)||void 0===t?void 0:t.offsetHeight)||0})})),(0,c.A)((0,i.A)(s),"render",(function(){var e=s.props,t=e.hide,n=e.isDesktop,o=e.isTransparent,r=e.chatInputActive,i=e.offlineMobileLayoutEnabled,a=s.state,l=a.activeTab,c=a.collapseTabsToFitChatWhenChatInputInactive;if(t)return null;var d=c&&!r,m=r||d?"chat":l;s.tabValues=s.getDisplayedTabs();var h=s.buildTabs(),A=Math.max(s.tabValues.indexOf(l),0),f=Math.max(s.tabValues.indexOf(m),0),g=s.getTabContent(s.tabValues[f]),y=s.tabValues.length<2,v=!n;return p().createElement(Ze,{isTransparent:o,ref:s.setContainerRef},!r&&(0,u.A)($e,{collapsed:y||d,offlineMobileLayoutEnabled:i},void 0,(0,u.A)(et,{"data-ta-locator":"TabsContainer__Tabs",value:A,onChange:s.handleTabChange},void 0,h)),(0,u.A)(nt,{clipContent:d},void 0,g,v&&(je||(je=(0,u.A)(se,{})))))}));var a=U.getState(),l=a.activeTab,d=a.hideBioTab,m=a.hidePhotosTab;return s.state=function(e){for(var t=1;t0&&this.state.containerHeight!==t&&this.setState({containerHeight:t})}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.previewVideo||this.props.privCallInProgress||this.props.c2cRequestedLively){var n=!e.c2cRequestedLively&&this.props.c2cRequestedLively,o=e.c2cCallInProgressLively&&!this.props.c2cCallInProgressLively;n?setTimeout((function(){t.handleTabChange(t.getTabIndex("c2c"))})):o&&"c2c"===this.state.activeTab&&this.handleTabChange(this.getTabIndex(U.getDefaultTab()))}if(!this.props.hide&&e.hide&&this.handleTabChange(this.getTabIndex("c2c")),!(e.chatInputActive||this.props.chatInputActive)){this.updateHeight();var r=this.shouldCollapseTabsToFitChat(),i=this.state.collapseTabsToFitChatWhenChatInputInactive;r&&!i&&this.setState({collapseTabsToFitChatWhenChatInputInactive:!0}),!r&&i&&this.setState({collapseTabsToFitChatWhenChatInputInactive:!1})}if(this.props.deferBioContent&&this.props.performerId&&e.performerId!==this.props.performerId){var s=Y.A.getState(),a=s.id,l=s.nickname,c=k.A.getState(),u=c.userId,d=c.sakey;(0,O.T)({type:R.A.MEDIA_REQUEST_VIDEOS,data:{performer:{id:a,nickname:l},user:{id:u,sakey:d}}},200),(0,O.T)({type:R.A.MEDIA_REQUEST_PHOTOS,data:{performerId:a}},200)}}},{key:"shouldComponentUpdate",value:function(e,t){var n=f()(e,(function(e,t){return"previewVideo"===t})),o=f()(this.props,(function(e,t){return"previewVideo"===t}));return!y()(n,o)||!y()(t,this.state)}},{key:"shouldCollapseTabsToFitChat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=this.context,o=n.layout,r=n.orientation,i=e.chatInputHeight,s=t.containerHeight,a=i+2*Ke+qe;return o===X.Ay.MOBILE&&r===X.Ay.PORTRAIT&&s0||Y.A.getState().isBlockbuster)&&!d;return{chatDisabled:h,infoDisabled:A,activeTab:U.getState().activeTab,hideBioTab:l,hidePhotosTab:c,showVideosTab:f}}}]),n}(d.Component);(0,c.A)(it,"displayName","TabsContainer"),it.propTypes={hideTags:h().bool,hideSimilarModels:h().bool,hidePhotos:h().bool,hideBio:h().bool,isTransparent:h().bool,previewVideo:h().node,requestingCam2Cam:h().bool,sections:h().object,hide:h().bool,privCallInProgress:h().bool,c2cRequestedLively:h().bool,c2cCallInProgressLively:h().bool,forcedLayout:h().string,chatInputActive:h().bool,fullscreen:h().bool,isDesktop:h().bool,chatInputHeight:h().number,performerId:h().number,performerBioExists:h().bool,similarModelsExist:h().bool,photosExist:h().bool,showChatOnBottom:h().bool,innerHeight:h().number,videoViewportHeight:h().number,offlineMobileLayoutEnabled:h().bool,isFanMode:h().bool,deferBioContent:h().bool,handleGoToLogin:h().func,handleClearHybridClient:h().func,breakpoint:h().string},it.defaultProps={hideTags:!1,hideSimilarModels:!1,hidePhotos:!1,hideBio:!1,isTransparent:!1,requestingCam2Cam:!1,sections:null,hide:!1,privCallInProgress:!1,c2cRequestedLively:!1,c2cCallInProgressLively:!1,chatInputHeight:0,chatInputActive:!1,performerId:0,performerBioExists:!1,similarModelsExist:!1,photosExist:!1,showChatOnBottom:!1,isFanMode:!1,deferBioContent:!1,handleGoToLogin:function(){},handleClearHybridClient:function(){},breakpoint:""},it.contextTypes={layout:h().string,orientation:h().string,platform:h().oneOf(Object.values(Z.Ay))};const st=(0,ge.A)([F.Ay,Y.A,W.A,z.A,H.A,q.A],(function(e){var t,n,o,r,i,s=e.layout,a=e.performer,l=e.overlay,c=e.cam2cam,u=e.media,d=e.xment;return{forcedLayout:s.forcedLayout,chatInputActive:s.chatInputActive,fullscreen:s.fullscreen,isDesktop:s.isDesktop,chatInputHeight:s.chatInputHeight,performerId:Number(null!==(t=null===(n=a.bio)||void 0===n?void 0:n.PerformerId)&&void 0!==t?t:a.id),performerBioExists:Boolean(a.bio),similarModelsExist:(null===(o=a.similarModels)||void 0===o?void 0:o.length)>0,photosExist:1===d.v2setupbio?(null===(r=u.photos)||void 0===r?void 0:r.length)>0:(null===(i=a.photos)||void 0===i?void 0:i.length)>0,showChatOnBottom:1===d.mobilechat,isFanMode:a.platform===Z.Ay.STREAMFANS,deferBioContent:1===d.v2setupbio,innerHeight:s.innerHeight,videoViewportHeight:s.videoViewportHeight,offlineMobileLayoutEnabled:s.offlineMobileLayoutEnabled&&l.overlay===J.A.OFFLINE,c2cRequestedLively:c.requested,c2cCallInProgressLively:c.callInProgress}}))(it)},"./src/components/video/Favorite.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>k,N:()=>P});var o=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),d=n("./node_modules/lodash/throttle.js"),p=n.n(d),m=n("webpack/sharing/consume/default/react/react"),h=n("./node_modules/prop-types/index.js"),A=n.n(h),f=n("./src/constants/Platforms.ts"),g=n("./src/stores/UserStore.js"),y=n("./src/stores/PerformerStore.ts"),v=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),b=n("./src/components/common/primitives/index.js"),_=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),E=n.n(_),S=n("./src/utils/Favorite.ts"),C=n("./src/utils/forPlatforms.tsx"),T=n("./src/hooks/useThrottle.ts");function O(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}var I=(0,v.Ay)(b.$n).withConfig({displayName:"Favorite__FavoriteButton",componentId:"sc-161wc91-0"})(["flex-shrink:0;"]),w=(0,v.Ay)(E()).withConfig({displayName:"Favorite__FavoriteIcon",componentId:"sc-161wc91-1"})(["display:inline-block;fill:#ff1744;"]),P=function(e){(0,a.A)(n,e);var t=O(n);function n(e){var o;return(0,r.A)(this,n),o=t.call(this,e),(0,u.A)((0,s.A)(o),"onPerformerStoreUpdate",(function(){o.setState({isFavorite:y.A.getState().isFavorite})})),(0,u.A)((0,s.A)(o),"onUserStoreUpdate",(function(){o.setState({isNonPremium:g.A.isNonPremium()})})),(0,u.A)((0,s.A)(o),"handleClick",(function(){return(0,S.xF)(!o.state.isFavorite)})),o.state={isFavorite:y.A.getState().isFavorite,isNonPremium:g.A.isNonPremium()},o.handleClick=p()(o.handleClick.bind((0,s.A)(o)),1e3,T.U),o}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.performerToken=y.A.addListener(this.onPerformerStoreUpdate),this.userToken=g.A.addListener(this.onUserStoreUpdate)}},{key:"componentWillUnmount",value:function(){this.performerToken.remove(),this.userToken.remove()}},{key:"render",value:function(){var e=this.state.isFavorite?" ".concat(this.props.isFavText):" ".concat(this.props.isNotFavText),t=this.state.isFavorite?"favorite":"favoriteBorder";return(0,o.A)(I,{className:"Favorite ".concat(this.props.className),"data-ta-locator":"Favorite__toggleFavoriteButton","data-tip":!0,"data-for":"favoritesToggle",value:this.state.isFavorite,onClick:this.handleClick},void 0,(0,o.A)(w,{name:t,size:32}),e)}}]),n}(m.Component);P.propTypes={className:A().string,isFavText:A().string,isNotFavText:A().string},P.defaultProps={isFavText:"",isNotFavText:""};const k=(0,C.A)({exclude:[f.Ay.BLACKLABEL,f.Ay.EXTERNAL_SITE_SHOW,f.Ay.STREAMFANS]})(P)},"./src/components/video/VideoControlsIconButton.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>w,q:()=>E});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),s=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("webpack/sharing/consume/default/react/react"),l=n.n(a),c=n("./node_modules/prop-types/index.js"),u=n.n(c),d=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),p=n("./node_modules/@atg/icf-react-components/components/IconButton/index.js"),m=n.n(p),h=n("./src/components/common/CircleToggleButton.js"),A=n("./src/stores/XmentStore.ts"),f=n("./src/utils/withStores.tsx"),g=["cursor","filter","iconStyle","opacity","active","transparentBg","isPending"],y=["cursor","filter","iconStyle","opacity","transparentBg","isPending"],v=["icon","iconStyle","isAvailable","isActive","isPending","transparentBg","useCircleToggle","isImprovedCamPageFullscreenUI"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t{"use strict";n.d(t,{A:()=>ts});var o,r,i=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),s=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),a=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),l=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),u=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),d=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),p=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),m=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),h=n("./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"),A=n("./node_modules/prop-types/index.js"),f=n.n(A),g=n("webpack/sharing/consume/default/react/react"),y=n.n(g),v=n("./node_modules/react-draggable/build/cjs/cjs.js"),b=n.n(v),_=n("./node_modules/react-visibility-sensor/dist/visibility-sensor.js"),E=n.n(_),S=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),C=n("./node_modules/styled-components-rtl/index.js"),T=n("./node_modules/ua-parser-js/src/ua-parser.js"),O=n.n(T),I=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),w=n.n(I),P=n("./src/components/videoclient/store/videoClient/VideoClientStore.ts"),k=n("./src/stores/XmentStore.ts"),R=n("./src/stores/ConnectionStore.js"),D=n("./src/stores/GoldShowStore.js"),L=n("./src/stores/LayoutStore.js"),x=n("./src/stores/ModalStore.js"),N=n("./src/stores/OverlayStore.js"),j=n("./src/stores/PerformerStore.ts"),M=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),B=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),U=n("./src/stores/ChatStore.js"),G=n("./src/components/RewardsIconsMap.tsx"),V=n("./src/constants/ChatConstants.ts"),F=n("./src/constants/RewardsConstants.ts"),H=n("./src/lib/Strings.js"),Y=n("./src/utils/tools.ts");function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var z=S.Ay.li.withConfig({displayName:"MobileFullscreenMessage__ListItem",componentId:"sc-1fe854l-0"})(["&&{padding:0;}"]),q=S.Ay.span.withConfig({displayName:"MobileFullscreenMessage__MessageContainer",componentId:"sc-1fe854l-1"})(["display:inline-block;list-style-type:none;word-wrap:break-word;user-select:text;padding 0 ","px;margin ","px 0 0 0;max-width:100%;color:",";text-shadow:",";"," "," font-size:12px;line-height:18px;position:relative;:before{content:'';z-index:-1;position:absolute;top:0;bottom:0;left:0;right:0;background-color:",";opacity:",";border-radius:11px;}"],(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.base}),(function(e){var t=e.isGold,n=e.theme;return t?n.colors.gold:n.colors.baseContrast100}),(function(e){var t=e.type,n=e.isGold;return t!==V.G.System||n?"unset":"1px 1px 2px rgba(0, 0, 0, 0.75)"}),(function(e){var t=e.isSubscriber,n=e.isGold;return t||n?"font-weight: bold;":""}),(function(e){var t=e.isPrivate,n=e.isItalic;return t||n?"font-style: italic;":""}),(function(e){var t=e.type,n=e.isGold,o=e.theme;return t!==V.G.System||n?t===V.G.Performer?o.colors.primary:o.colors.themeBase:"transparent"}),(function(e){return e.type===V.G.Performer?.7:.4})),K=S.Ay.span.withConfig({displayName:"MobileFullscreenMessage__Nickname",componentId:"sc-1fe854l-2"})(['font-weight:bold;:after{content:": ";}']),Q=(0,S.Ay)(w()).withConfig({displayName:"MobileFullscreenMessage__SubscriberBadge",componentId:"sc-1fe854l-3"})([""," vertical-align:text-bottom;"],(0,C.A)(o||(o=(0,h.A)(["\n margin-left: ","px;\n "])),(function(e){var t=e.theme;return String(t.spacing.base/2)}))),X=S.Ay.div.withConfig({displayName:"MobileFullscreenMessage__RewardsBadge",componentId:"sc-1fe854l-4"})([""," vertical-align:text-bottom;width:","px;height:","px;display:inline-flex;"],(0,C.A)(r||(r=(0,h.A)(["\n margin-left: ","px;\n "])),(function(e){var t=e.theme;return String(t.spacing.base/2)})),18,18);const Z=function(e){var t=e.message,n=e.isGoldOnlySkin,o=e.onHide,r=t.type,i=t.text,s=t.stringPath,a=t.templateVariables,l=t.nickname,c=t.isPrivate,u=t.isItalic,d=t.isGold,m=t.isSystem,h=t.showSubscriberBadge,A=t.tierId,f={type:r,isPrivate:c,isGold:d,isItalic:u,isSubscriber:h},v=!m&&Boolean(l),b=(0,Y.bh)(F.iB,A);return(0,g.useEffect)((function(){var e=setTimeout((function(){return o(t)}),6e3);return function(){return clearTimeout(e)}}),[t]),y().createElement(z,null,y().createElement(q,function(e){for(var t=1;t0&&this.tick()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.state.timeoutId)}},{key:"getFormattedTime",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Math.round(e/1e3);return t?(0,lt.ZV)(n):(0,lt.zA)(n)}},{key:"tick",value:function(){var e=Date.now(),t=this.state.prevTime?e-this.state.prevTime:0,n=this.props.interval,o=n-t%n,r=o;o=1?(0,i.A)(Dt,{initialTimeRemaining:t}):null,(0,i.A)(Vt,{gold:!0,label:e===Ye.A.PREVIEW?H.Ay.getString("free_account"):H.Ay.getString("join_show"),"data-ta-locator":"DisconnectGoldShow__join_show",onClick:this.handleClick}),Lt||(Lt=(0,i.A)(Gt,{"data-ta-locator":"DisconnectGoldShow__browseButton",buttonType:"clear"})),e===Ye.A.PREVIEW?xt||(xt=(0,i.A)(Qe,{})):null)}},{key:"getDirectlyToGoldShow",value:function(e){var t=this,n=de.A.getState(),o=n.isGoldOneUsd,r=n.showFinalCost,s=D.A.getState().timetoend;return(0,i.A)(ae.Ad,{},void 0,(0,i.A)("span",{},void 0,(0,i.A)(ae.et,{},void 0,H.Ay.getString("join_my")+" ",(0,i.A)(Ft,{},void 0,H.Ay.getString("lb_gold")+" "),H.Ay.getString("show")+"!")),s>=1?(0,i.A)(Dt,{initialTimeRemaining:s}):null,(0,i.A)(Vt,{gold:!0,label:H.Ay.getString("enter_show")+": "+(0,wt.MN)(e.goldToGive),"data-ta-locator":"DisconnectGoldShow__join_show_directly",onClick:function(){return t.handleDirectClick(e)}}),(o||r)&&(0,i.A)(Ht,{},void 0,(0,wt.kX)(e.goldToGive,o,r)),Nt||(Nt=(0,i.A)(Gt,{"data-ta-locator":"DisconnectGoldShow__browseButton",buttonType:"clear"})),(0,i.A)(kt.Ay,{finalCostShown:r}))}},{key:"render",value:function(){var e=this,t=de.A.getState(),n=t.owedAmount,o=t.isNonBillable,r=t.redirectToConfirm,s=t.needsPrebill,a=t.sakey,l=t.isGoldOneUsd,c=D.A.getState().minbuyin;return s||!a||o||r||n||!de.A.isPremium()?this.getDefault():(0,i.A)(Pt.A,{presetGold:c,sendGoldAsOneUsd:l},void 0,(function(t){return t.valid?e.getDirectlyToGoldShow(t):e.getDefault()}))}}]),n}(g.Component),Wt=n("./src/stores/RateStore.js"),zt=n("./src/components/modals/EnterPaidModal.js"),qt=n("./src/components/common/EnterShowButton.js"),Kt=n("./src/constants/Session.ts");function Qt(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var Xt,Zt=(0,S.Ay)((0,ae.LF)(pe.A)).withConfig({displayName:"InPrivate__StyledBrowseButton",componentId:"sc-v1hp50-0"})(["margin-top:1em;margin-bottom:0;"]),Jt=(0,S.Ay)((0,ae.LF)(he())).withConfig({displayName:"InPrivate__StyledRaisedButton",componentId:"sc-v1hp50-1"})(["margin-top:1em;margin-bottom:0;"]),$t=(0,S.Ay)((0,ae.LF)(qt.A)).withConfig({displayName:"InPrivate__StyledEnterShowButton",componentId:"sc-v1hp50-2"})(["margin-top:1em;margin-bottom:0;"]),en=function(e){(0,c.A)(n,e);var t=Qt(n);function n(e){var o;return(0,s.A)(this,n),o=t.call(this,e),(0,p.A)((0,l.A)(o),"updateBlockSessionChange",(function(e){o.setState({blockSessionValue:e})})),(0,p.A)((0,l.A)(o),"updateSessionTypeChange",(function(e){o.setState({sessionType:e,blockSessionValue:""})})),o.state={},o}return(0,a.A)(n,[{key:"componentDidMount",value:function(){Wt.A.getState().resumeSession&&this.setState({sessionType:Kt.d.RESUME,blockSessionValue:""})}},{key:"handleClick",value:function(){Ae.A.usage("performer_available_join_show_click",Date.now()),Ot.A.dispatch({type:D.A.isActive()?It.A.GIVE_GOLD_CLICK:It.A.ENTER_PAID_CLICK})}},{key:"getDefault",value:function(){var e=de.A.getState().userType;return(0,i.A)(ae.Ad,{},void 0,(0,i.A)(ae.et,{},void 0,H.Ay.getString("performing_live")),(0,i.A)(Jt,{gold:!0,label:H.Ay.getString("join_show"),"data-ta-locator":"Available__join_show",onClick:this.handleClick}),Mt||(Mt=(0,i.A)(Zt,{"data-ta-locator":"Available__browseButton",buttonType:"clear"})),e===Ye.A.PREVIEW?Bt||(Bt=(0,i.A)(Qe,{})):null)}},{key:"getDirectlyToEnterPaid",value:function(){var e=this.state,t=e.sessionType,n=e.blockSessionValue,o=de.A.getState().showFinalCost;return(0,i.A)(ae.Ad,{},void 0,(0,i.A)(ae.et,{},void 0,H.Ay.getString("join_my_live_show")),(0,i.A)(zt.default,{"data-ta-locator":"Available__enterPaidDirectButton",showPaidChatDetails:!1,updateBlockSessionChange:this.updateBlockSessionChange,updateSessionTypeChange:this.updateSessionTypeChange,showEnterShowButton:!1}),(0,i.A)($t,{gold:!0,label:H.Ay.getString("enter_show"),"data-ta-locator":"EnterPaidModal__enterPaidButton",sessionType:t,blockSessionValue:n}),Ut||(Ut=(0,i.A)(Zt,{"data-ta-locator":"Available__browseButton",buttonType:"clear"})),(0,i.A)(kt.Ay,{finalCostShown:o}))}},{key:"render",value:function(){var e=de.A.getState(),t=e.needsPrebill,n=e.sakey,o=e.isNonBillable,r=e.redirectToConfirm,i=e.owedAmount,s=e.twoFactorAuthenticationRequired;return t||!n||o||r||i||!de.A.isPremium()||s?this.getDefault():this.getDirectlyToEnterPaid()}}]),n}(g.Component),tn={marginTop:"1em",marginBottom:0},nn=(0,ae.LF)(pe.A);const on=function(){return(0,i.A)(ae.Ad,{},void 0,(0,i.A)(ae.et,{},void 0,H.Ay.getString("oops_somethings_wrong")),Xt||(Xt=(0,i.A)(nn,{"data-ta-locator":"InvalidStartup__browseButton",style:tn})))};var rn,sn=(0,ae.LF)(pe.A),an=(0,S.Ay)(ae.et).withConfig({displayName:"NoValidDrivers__Header",componentId:"sc-1t7lhkl-0"})(['text-transform:"none";']);const ln=function(){return(0,i.A)(ae.Ad,{},void 0,(0,i.A)(an,{},void 0,H.Ay.getString("no_drivers_header")),(0,i.A)("p",{},void 0,H.Ay.getString("no_drivers_msg")),rn||(rn=(0,i.A)(sn,{"data-ta-locator":"NoDrivers__browseButton"})))};var cn=n("./src/utils/FluxStoreExtended.ts");function un(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var pn=function(e){for(var t=1;t=this.props.requestedAmount?H.Ay.getString("gold_excited"):(0,wt.MN)(this.state.currentValue)}},{key:"render",value:function(){return(0,i.A)(Oo,{"data-ta-locator":"Goldometer"},void 0,(0,i.A)("span",{},void 0,this.getGoldDisplayAmount()))}}]),n}(g.Component);Io.propTypes={requestedAmount:f().number,total:f().number,forceGoldExcitement:f().bool},Io.defaultProps={forceGoldExcitement:!1};var wo=S.Ay.progress.withConfig({displayName:"GoldShowProgressBar__Counter",componentId:"sc-1gdh1hi-0"})(["-webkit-appearance:none;-moz-appearance:none;height:4px;width:100%;position:absolute;bottom:0;&::-webkit-progress-bar,&::-moz-progress-bar{background-color:rgba(0,0,0,0.6);}&[value]::-webkit-progress-value{background-color:",";transition:0.4s linear;transition-property:width;will-change:width;}"],(function(e){return e.theme.colors.gold})),Po=function(e){var t=e.requestedAmount,n=e.total;return(0,i.A)(wo,{max:t,value:n})};Po.propTypes={requestedAmount:f().number.isRequired,total:f().number.isRequired};const ko=Po;var Ro,Do,Lo=function(e,t){return(0,i.A)(ae.Yb,{isLandscape:t.orientation===$.Ay.LANDSCAPE,isMobile:t.layout===$.Ay.MOBILE},void 0,(0,i.A)(ae.Ii,{},void 0,Ro||(Ro=(0,i.A)(ae.k_,{},void 0,(0,i.A)(Io,{forceGoldExcitement:!0}))),(0,i.A)(ae.Bn,{"data-ta-locator":"GoldShowTimeRemaining"},void 0,H.Ay.getString("show_starting"))),e.showProgress?Do||(Do=(0,i.A)(ko,{requestedAmount:100,total:100})):null)};Lo.propTypes={showProgress:f().bool},Lo.defaultProps={showProgress:!0},Lo.contextTypes={orientation:f().oneOf([$.Ay.LANDSCAPE,$.Ay.PORTRAIT]),layout:f().oneOf([$.Ay.DESKTOP,$.Ay.TABLET,$.Ay.MOBILE])};const xo=Lo;var No;function jo(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var Mo=S.Ay.div.withConfig({displayName:"PreGoldShow__GoldometerTitle",componentId:"sc-1lgvih5-0"})(["position:relative;font-size:0.8em;margin-top:0.5rem;"," text-shadow:1px 1px 1px rgba(0,0,0,0.9);& span{color:",";}"],(0,C.A)(No||(No=(0,h.A)(["\n margin-left: 1rem;\n "]))),(function(e){return e.theme.colors.gold})),Bo=function(e){(0,c.A)(n,e);var t=jo(n);function n(){return(0,s.A)(this,n),t.apply(this,arguments)}return(0,a.A)(n,[{key:"render",value:function(){var e=this.props,t=e.requestedAmount,n=e.total,o=e.initialTimeRemaining,r=e.showProgress;return(0,i.A)(ae.Yb,{isLandscape:this.context.orientation===$.Ay.LANDSCAPE,isMobile:this.context.layout===$.Ay.MOBILE},void 0,(0,i.A)(ae.Ii,{},void 0,(0,i.A)(Mo,{"data-ta-locator":"GoldometerTitle"},void 0,H.Ay.getString("show_starts_at")+" ",(0,i.A)("span",{},void 0,(0,wt.MN)(t))),y().createElement(Io,{requestedAmount:t,total:n}),(0,i.A)(ae.Bn,{"data-ta-locator":"GoldShowTimeRemaining"},void 0,H.Ay.getString("gold_countdown_preshow"),(0,i.A)(ht,{initialTimeRemaining:1e3*o}))),r&&(0,i.A)("div",{},void 0,(0,i.A)(ko,{requestedAmount:t,total:n})))}}]),n}(g.Component);Bo.propTypes={initialTimeRemaining:f().number.isRequired,requestedAmount:f().number.isRequired,total:f().number.isRequired,showProgress:f().bool},Bo.defaultProps={showProgress:!0},Bo.contextTypes={orientation:f().oneOf([$.Ay.LANDSCAPE,$.Ay.PORTRAIT]),layout:f().oneOf([$.Ay.DESKTOP,$.Ay.TABLET,$.Ay.MOBILE])};var Uo=function(e,t){return(0,i.A)(ae.Yb,{isLandscape:t.orientation===$.Ay.LANDSCAPE,isMobile:t.layout===$.Ay.MOBILE},void 0,(0,i.A)(ae.Ii,{},void 0,(0,i.A)(ae.Bn,{"data-ta-locator":"GoldShowTimeRemaining"},void 0,H.Ay.getString("2min_warning"))))};Uo.contextTypes={orientation:f().oneOf([$.Ay.LANDSCAPE,$.Ay.PORTRAIT]),layout:f().oneOf([$.Ay.DESKTOP,$.Ay.TABLET,$.Ay.MOBILE])};const Go=Uo;var Vo,Fo;function Ho(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var Yo=S.Ay.div.withConfig({displayName:"VideoGoldShowInfo__AnimatedBackground",componentId:"sc-1w6ihd0-0"})(["opacity:1;animation:10s ease 0s normal forwards 1 fadeout;@keyframes fadeout{0%{opacity:1;}75%{opacity:1;}100%{opacity:0;}}"]),Wo=function(e){(0,c.A)(n,e);var t=Ho(n);function n(){var e;(0,s.A)(this,n),e=t.call(this),(0,p.A)((0,l.A)(e),"onGoldShowStoreUpdate",(function(){var t=D.A.getState(),n=t.requestedamt,o=t.timetoend,r=t.timetostart,i=t.total;o&&o>=120&&(window.clearTimeout(e.warningTimeout),e.warningTimeout=window.setTimeout((function(){e.setState({showWarning:!0}),window.setTimeout((function(){e.setState({showWarning:!1})}),3e3)}),1e3*(o-120)));var s=D.A.isInProgress(),a=s&&!e.state.isInProgress;a&&!e._goldShowStartMessageTimeout&&(e._goldShowStartMessageTimeout=setTimeout((function(){e._goldShowStartMessageTimeout=null,e.setState({displayGoldShowStartMessage:!1})}),3e3)),e.setState({initialTimeRemaining:o||r,requestedAmount:n,total:i,goalReached:D.A.goalReached(),isPreGoldShow:D.A.isPreGoldShow(),needPledge:D.A.needPledge(),isInProgress:s,displayGoldShowStartMessage:a})}));var o=D.A.getState(),r=o.requestedamt,i=o.timetoend,a=o.timetostart,c=o.total;return e.state={initialTimeRemaining:i||a,requestedAmount:r,total:c,goalReached:D.A.goalReached(),isPreGoldShow:D.A.isPreGoldShow(),isInProgress:D.A.isInProgress(),displayGoldShowStartMessage:!1,needPledge:D.A.needPledge(),showWarning:!1},e}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.goldShowToken=D.A.addListener(this.onGoldShowStoreUpdate)}},{key:"componentWillUnmount",value:function(){this.goldShowToken.remove(),window.clearTimeout(this.warningTimeout)}},{key:"render",value:function(){return this.state.isPreGoldShow?this.state.goalReached?(0,i.A)(xo,{showProgress:this.props.showProgress}):(0,i.A)(Bo,{initialTimeRemaining:this.state.initialTimeRemaining,requestedAmount:this.state.requestedAmount,total:this.state.total,showProgress:this.props.showProgress}):this.state.needPledge?null:this.state.showWarning?Vo||(Vo=(0,i.A)(Yo,{},void 0,(0,i.A)(Go,{}))):this.state.isInProgress?(0,i.A)("div",{},void 0,this.state.displayGoldShowStartMessage?(0,i.A)(ae.Yb,{isLandscape:this.context.orientation===$.Ay.LANDSCAPE,isMobile:this.context.layout===$.Ay.MOBILE},void 0,Fo||(Fo=(0,i.A)(ae.Ii,{},void 0,(0,i.A)(ae.k_,{},void 0,(0,i.A)(Io,{forceGoldExcitement:!0}))))):null):null}}]),n}(g.Component);Wo.propTypes={showProgress:f().bool},Wo.defaultProps={showProgress:!0},Wo.contextTypes={orientation:f().oneOf([$.Ay.LANDSCAPE,$.Ay.PORTRAIT]),layout:f().oneOf([$.Ay.DESKTOP,$.Ay.TABLET,$.Ay.MOBILE])};var zo=n("./src/constants/DisconnectReasons.js"),qo=n("./src/constants/Globals.js"),Ko=n("./node_modules/react-jss/dist/react-jss.esm.js"),Qo=n("./node_modules/classnames/index.js"),Xo=n.n(Qo),Zo=(0,Ko.createUseStyles)((function(e){return{"@keyframes enter":{from:{opacity:0},to:{opacity:1}},"@keyframes exit":{from:{opacity:1},to:{opacity:0}},container:{alignSelf:"flex-start",borderRadius:4,padding:"".concat(.5*e.spacing.base,"px ").concat(e.spacing.base,"px"),lineHeight:1.33,fontSize:14,letterSpacing:.27,color:"#ffffff",fontWeight:400,background:"rgba(0, 0, 0, 0.41)",wordBreak:"break-word"},system:{fontWeight:600,background:"transparent",textShadow:"0 0.5px 1px rgba(0, 0, 0, 0.4)"},gold:{color:e.colors.gold,fontWeight:600},performer:{background:"rgba(0, 127, 193, 0.6)"},nickname:{fontWeight:600,"&:after":{content:"': '"}},enter:{animation:"$enter 200ms ease-in forwards"},exit:{animation:"$exit 1000ms ease-out forwards"}}}));const Jo=function(e){var t,n=e.message,o=e.exit,r=e.onExitEnd,i=Zo(),s=n.identifier,a=n.text,l=n.type,c=n.stringPath,u=n.templateVariables,d=n.nickname,m=n.showSubscriberBadge,h=n.isSystem,A=n.isGold,f=l===V.G.Performer,g=!h&&Boolean(d);return y().createElement("div",{className:Xo()(i.container,i.enter,(t={},(0,p.A)(t,i.gold,A),(0,p.A)(t,i.system,!A&&h),(0,p.A)(t,i.performer,f),(0,p.A)(t,i.exit,o),t)),onAnimationEnd:function(){o&&r()},"data-ta-locator":"MobileFullscreen__Message__".concat(s)},g&&y().createElement("span",{className:i.nickname,"data-ta-locator":"MobileFullscreen__Message__Nickname__".concat(s)},d,m&&y().createElement(w(),{name:"crown",size:14,marginLeft:"0.1ch",marginRight:"0.1ch","data-ta-locator":"MobileFullscreen__Message__SubscriberBadge__".concat(s)})),a||(0,H.AA)(c,u))};var $o=(0,Ko.createUseStyles)((function(e){return{container:{display:"flex",maxHeight:"calc(50cqh - 60px)",maskImage:"linear-gradient(\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 1) ".concat(12*e.spacing.base,"px\n )"),maskSize:"auto calc(50cqh - 60px)",maskPosition:"bottom"},list:{flexShrink:1,alignSelf:"stretch",display:"flex",flexDirection:"column-reverse",overflowY:"auto",overscrollBehavior:"contain",margin:"0 ".concat(1.5*e.spacing.base,"px"),gap:.5*e.spacing.base,scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}}})),er=function(e){var t=e.messages,n=e.show,o=$o(),r=(0,g.useState)([]),i=(0,B.A)(r,2),s=i[0],a=i[1],l=(0,g.useState)([]),c=(0,B.A)(l,2),u=c[0],d=c[1],p=(0,g.useRef)(new Map),m=(0,g.useRef)(n);m.current=n;var h=(0,g.useMemo)((function(){return t.filter((function(e){var t=e.identifier;return!s.includes(t)}))}),[t,s]),A=function(e){d((function(t){return t.filter((function(t){return t!==e}))})),a((function(t){return[].concat((0,M.A)(t),[e])}))},f=function(e){var t=e.identifier,n=setTimeout((function(){var e;m.current?(e=t,d((function(t){return[].concat((0,M.A)(t),[e])}))):A(t),p.current.delete(t)}),1e4);p.current.set(t,n)};return(0,g.useEffect)((function(){0===s.length&&t.forEach(f);var e=(0,Y.bh)(t,0);e&&f(e)}),[t]),(0,g.useEffect)((function(){return function(){p.current.forEach((function(e){return clearTimeout(e)}))}}),[]),n?y().createElement("div",{className:o.container,"data-ta-locator":"MobileFullscreen__MessageList"},y().createElement("div",{className:o.list},h.map((function(e){return y().createElement(Jo,{key:e.identifier,message:e,exit:u.includes(e.identifier),onExitEnd:function(){return A(e.identifier)}})})))):null};er.displayName="V2MobileFullscreenMessageList";const tr=(0,J.A)([U.A,R.A,L.Ay],(function(e){return{messages:e.chat.messages,show:e.layout.layout===$.Ay.MOBILE&&e.connection.clientState===ee.Ay.PLAYING&&e.layout.mobileClampedView}}))(er);var nr=n("./src/utils/createAsyncComponent.tsx"),or=n("./node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"),rr=n("webpack/sharing/consume/default/react-dom/react-dom"),ir=n.n(rr),sr=n("./src/stores/VideoPipStore.js"),ar=n("./src/constants/VideoConstants.js"),lr=n("./node_modules/@video/video-client-web/index.js"),cr=n("./src/stores/ConfigStore.ts"),ur=n("./src/components/videoclient/utils/index.ts"),dr=n("./node_modules/@atg/icf-react-components/components/IconButton/index.js"),pr=n.n(dr),mr=S.Ay.div.withConfig({displayName:"BlurredOverlay__Overlay",componentId:"sc-1ya68cc-0"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;top:0;z-index:999;background-position:center center;background-size:contain;background-repeat:no-repeat;height:100%;width:100%;cursor:pointer;"]),hr=(0,S.Ay)(pr()).withConfig({displayName:"BlurredOverlay__StyledIconButton",componentId:"sc-1ya68cc-1"})(["margin:0;padding:0;width:",";height:",";background-color:rgba(33,33,33,0.8);svg{width:",";height:",";}"],(function(e){return e.isDesktop?"90px":"65px"}),(function(e){return e.isDesktop?"90px":"65px"}),(function(e){return e.isDesktop?"45px":"30px"}),(function(e){return e.isDesktop?"45px":"30px"})),Ar=S.Ay.div.withConfig({displayName:"BlurredOverlay__ViewFreeText",componentId:"sc-1ya68cc-2"})(['margin:4px 0;text-shadow:0.5px 0.5px 0 rgba(0,0,0,0.5);font-family:Roboto,-apple-system,BlinkMacSystemFont,"Helvetica Neue","Helvetica",sans-serif;font-size:',";font-weight:700;text-align:center;color:#f1f1f1;"],(function(e){return e.isDesktop?"44px":"32px"})),fr=S.Ay.div.withConfig({displayName:"BlurredOverlay__MemberLogin",componentId:"sc-1ya68cc-3"})(['margin:4px 47.5px 0;padding:10px;font-family:Roboto,-apple-system,BlinkMacSystemFont,"Helvetica Neue","Helvetica",sans-serif;font-size:',";text-align:center;color:#f1f1f1;z-index:100;"],(function(e){return e.isDesktop?"18px":"14px"}));const gr=(0,J.A)([L.Ay,de.A],(function(e){var t=e.layout,n=e.user;return{isDesktop:t.isDesktop,isNonBillable:n.isNonBillable}}))((function(e){var t=e.isDesktop,n=e.isNonBillable,o=H.Ay.getString("view_free"),r=n?H.Ay.getString("upgrade_free"):H.Ay.getString("member_login"),i=function(){setTimeout((function(){return Ot.A.dispatch({type:It.A.ENTER_PAID_CLICK,data:{}})}))};return y().createElement(mr,{onClick:function(){return i()}},y().createElement(hr,{"data-ta-locator":"Chat__togglePrivacy",name:"visibilityOff",fill:"#f1f1f1",isDesktop:t}),y().createElement(Ar,{isDesktop:t},o),y().createElement(fr,{onClick:n?function(){return i()}:function(e){return function(e){e.stopPropagation(),(0,Y.Zj)(fe.A.GOTO_LOGIN)}(e)},isDesktop:t},r))}));var yr={videoElement:{backgroundColor:"rgba(0, 0, 0, 0)",transition:"none"},root:{backgroundColor:"rgba(0, 0, 0, 0)"}},vr=S.Ay.div.withConfig({displayName:"Player__PlayerVideoContainer",componentId:"sc-14v58xz-0"})([""]);const br=(0,J.A)([R.A,Jn.A,cr.A,L.Ay,N.A,de.A,P.A,Ao.A],(function(e){var t=e.connection,n=e.enableAudio,o=e.config,r=e.layout,i=e.overlay,s=e.user,a=e.videoClient,l=e.videoControls;return{audioPlaying:n.audioPlaying,blurThePlayer:a.blurThePlayer,cam2cam:a.cam2cam,goldOnly:t.goldOnly,isDesktop:r.isDesktop,isNonBillable:s.isNonBillable,maxGold:s.maxGold,overlay:i.overlay,owedAmount:s.owedAmount,owedString:s.owedString,platform:o.platform,player:a.player,playerUi:a.playerUi,redirectToConfirm:s.redirectToConfirm,shouldRefresh:l.shouldRefresh,started:a.started,streamType:t.streamType,twoFactorAuthenticationRequired:s.twoFactorAuthenticationRequired,userType:s.userType,videoQualityLevel:l.videoQualityLevel}}))((function(e){var t=e.audioPlaying,n=e.blurThePlayer,o=e.goldOnly,r=e.isDesktop,i=e.isNonBillable,s=e.maxGold,a=e.overlay,l=e.owedAmount,c=e.owedString,u=e.platform,d=e.player,p=e.playerUi,m=e.redirectToConfirm,h=e.shouldRefresh,A=e.started,f=e.streamType,v=e.twoFactorAuthenticationRequired,b=e.userType,_=e.videoQualityLevel,E=(0,g.useState)(0),S=(0,B.A)(E,2),C=S[0],T=S[1],O=!a&&!A;(0,g.useEffect)((function(){_&&d&&(d.preferredLevel=_)}),[_]),(0,g.useEffect)((function(){f===ee.Ay.STREAM_TYPE_EXCLUSIVE&&C===ee.Ay.STREAM_TYPE_PRIVATE&&setTimeout((function(){Ot.A.dispatch({type:Zn.A.LIVELY_VIDEO_DISPOSE_PLAYER,data:{reason:"Player disposed on transition from private to exclusive"}})}),0),T(f)}),[f]);return d&&p?y().createElement(lr.PlayerUiContext.Provider,{value:p},n&&!(O||h)&&y().createElement(gr,null),y().createElement(vr,{onClick:function(){return function(){if(!(d&&d.localVideoPaused||(d&&!t&&setTimeout((function(){Ot.A.dispatch({type:It.A.ENABLE_AUDIO})}),0),R.A.isRoomEnteringPaid()))){var e=ee.FK.has(f);if(!(e&&s<=0)&&u!==ce.Ay.EXTERNAL_SITE_SHOW){var n=e||D.A.isActive()||o||u===ce.Ay.STREAMFANS||R.A.isBlockbusterShow();setTimeout((function(){return Ot.A.dispatch({type:n?It.A.GIVE_GOLD_CLICK:It.A.ENTER_PAID_CLICK,data:{owedAmount:l,owedString:c,userType:b,isNonBillable:i,redirectToConfirm:m,twoFactorAuthenticationRequired:v}})}))}}}()}},y().createElement(lr.PlayerVideo,{adaptiveBlur:n,adaptiveBlurValues:{max:20,min:14},classes:yr})),!(ur.n&&r)&&y().createElement(lr.PlayerOverlayButton,null)):y().createElement(y().Fragment,null)}));var _r=S.Ay.div.withConfig({displayName:"Poster",componentId:"sc-1pptx6o-0"})(["position:absolute;top:0;z-index:0;background-position:center center;background-size:contain;background-repeat:no-repeat;height:100%;width:100%;"]),Er=(0,S.i7)(["0%{opacity:0.44;animation-timing-function:ease-in-out;}50%{opacity:0.5;animation-timing-function:ease-in-out;}100%{opacity:0.44;animation-timing-function:ease-in-out;}"]),Sr=(0,S.i7)(["0%{opacity:0;animation-timing-function:ease-out;}100%{opacity:1;}"]),Cr=(0,S.Ay)(_r).withConfig({displayName:"Poster__LoadingPosterContainer",componentId:"sc-1pptx6o-1"})(["background-color:black;"]),Tr=S.Ay.div.withConfig({displayName:"Poster__LoadingPosterFadeIn",componentId:"sc-1pptx6o-2"})(["opacity:0;animation:"," 500ms;will-change:opacity;animation-fill-mode:both;position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;"],Sr),Or=S.Ay.div.withConfig({displayName:"Poster__LoadingPosterInner",componentId:"sc-1pptx6o-3"})(["background-image:url(",");opacity:0;animation:"," 3000ms;will-change:opacity;animation-fill-mode:both;animation-iteration-count:infinite;background-size:cover;background-repeat:no-repeat;position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;"],(function(e){return e.poster}),Er),Ir=function(e){var t=e.poster;return y().createElement(Cr,null,y().createElement(Tr,null,y().createElement(Or,{poster:t})))},wr=n("./src/components/common/Spinner.tsx"),Pr=n("./node_modules/theming/dist/theming.esm.js");function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"ltr";if(this.props.fillContainer)return{};var t=this.state,o=t.childX,r=t.childY,i=t.childScale,s=n.getChildSize(this.props),a="rtl"===e?-1:1;return{position:"absolute",transform:"translate(".concat(a*o,"px, ").concat(r,"px) scale(").concat(i,")"),transformOrigin:"top left",width:s.width,height:s.height,transition:this.state.currentState===xr?"transform 0.1s":"none"}}},{key:"handleTapStart",value:function(e){this.lastViewportClickX=Math.round(e.clientX),this.lastViewportClickY=Math.round(e.clientY)}},{key:"convertTouchToPoint",value:function(e){return{x:Math.round(e.clientX),y:Math.round(e.clientY)}}},{key:"handlePinchStart",value:function(e,t){var n=this.convertTouchToPoint(e),o=this.convertTouchToPoint(t);this.startMidpoint=function(e,t){return{x:.5*(e.x+t.x),y:.5*(e.y+t.y)}}(n,o),this.startDistance=Mr(n,o),this.startScale=this.state.childScale}},{key:"handleTouchStart",value:function(e){if(this.props.enabled){this.setState({currentState:Lr});var t=e.touches;if(1===t.length){var n=(0,B.A)(t,1)[0];this.handleTapStart(n)}if(2===t.length){var o=(0,B.A)(t,2),r=o[0],i=o[1];this.handlePinchStart(r,i)}}}},{key:"moveChildWithinViewport",value:function(e,t){var n=this.state,o=n.childX+e,r=n.childY+t,i=this.clampToViewport(o,r),s=i.x,a=i.y;this.setState({childX:s,childY:a})}},{key:"clampToViewport",value:function(e,t){var o=this.props,r=o.viewportWidth,i=o.viewportHeight,s=n.getChildSize(this.props),a=this.state.childScale,l=Math.min(-s.width*a+r,0),c=Math.max(r-s.width*a,0),u=Math.min(-s.height*a+i,0),d=Math.max(i-s.height*a,0);return{x:(0,Y.qE)(e,l,c),y:(0,Y.qE)(t,u,d)}}},{key:"handlePanMove",value:function(e){if(this.props.enabled){this.hasSentTranslationEvent||(Ot.A.dispatch({type:It.A.PAN_AND_ZOOM_TRANSLATE}),this.hasSentTranslationEvent=!0);var t=Math.round(e.clientX),n=Math.round(e.clientY),o=t-this.lastViewportClickX,r=n-this.lastViewportClickY;this.moveChildWithinViewport(o,r),this.lastViewportClickX=t,this.lastViewportClickY=n}}},{key:"zoomTo",value:function(e,t){var n=this.state,o=n.childWidth,r=n.childHeight,i=n.childScale,s=n.childX,a=n.childY,l=o*i,c=r*i,u=s-(t.x-s)*((o*e-l)/l),d=a-(t.y-a)*((r*e-c)/c),p=this.clampToViewport(u,d),m=p.x,h=p.y;this.setState({childX:m,childY:h,childScale:e})}},{key:"handlePinchMove",value:function(e,t){this.hasSentZoomEvent||(Ot.A.dispatch({type:It.A.PAN_AND_ZOOM_SCALE}),this.hasSentZoomEvent=!0);var n=this.convertTouchToPoint(e),o=this.convertTouchToPoint(t),r=Mr(n,o),i=(0,Y.qE)(this.startScale*(r/this.startDistance),1,3);this.zoomTo(i,this.startMidpoint)}},{key:"handleTouchMove",value:function(e){if(this.props.enabled){e.preventDefault();var t=e.touches,n=this.state.currentState;if(1===t.length&&(n===Lr||n===Nr)){this.setState({currentState:Nr});var o=(0,B.A)(t,1)[0];this.handlePanMove(o)}if(2===t.length&&(n===Lr||n===xr)){this.setState({currentState:xr});var r=(0,B.A)(t,2),i=r[0],s=r[1];this.handlePinchMove(i,s)}}}},{key:"handleTouchEnd",value:function(e){var t;this.state.currentState!==Lr&&(e.preventDefault(),e.stopPropagation()),null===(t=document.activeElement)||void 0===t||t.blur()}},{key:"render",value:function(){var e=this;return y().createElement(jr,{"data-ta-locator":"PanAndZoom__Viewport",ref:function(t){return e.viewport=t}},(0,i.A)(Br,{getStyle:this.getStyle.bind(this)},void 0,this.props.children))}}],[{key:"getChildSize",value:function(e){return{width:e.childWidth,height:e.childHeight}}},{key:"getResetState",value:function(e){var t=e.viewportWidth,o=e.viewportHeight,r=n.getChildSize(e);return{childX:.5*(t-1*r.width),childY:.5*(o-1*r.height),childScale:1,childWidth:r.width,childHeight:r.height,currentState:Lr,viewportWidth:t,viewportHeight:o}}},{key:"getReadjustedState",value:function(e,t){var o=e.viewportWidth,r=e.viewportHeight,i=t.childWidth,s=t.childHeight,a=t.childX,l=t.childY,c=t.viewportWidth,u=t.viewportHeight,d=t.childScale,p=n.getChildSize(e),m=-i*d+c,h=-s*d+u,A=0!==m?(0,Y.qE)((a-0)/(m-0)):.5,f=0!==h?(0,Y.qE)((l-0)/(h-0)):.5;return{childX:A*(o-p.width*d),childY:f*(r-p.height*d),childWidth:p.width,childHeight:p.height,currentState:Lr,viewportWidth:o,viewportHeight:r}}},{key:"getDerivedStateFromProps",value:function(e,t){if(e.enabled!==t.enabled)return Rr(Rr({},t),{},{enabled:e.enabled},n.getResetState(e));var o=n.getChildSize(e);if(o.width!==t.childWidth||o.height!==t.childHeight)return Rr(Rr({},t),n.getReadjustedState(e,t));var r=e.viewportWidth,i=e.viewportHeight;return r!==t.viewportWidth||i!==t.viewportHeight?Rr(Rr({},t),n.getResetState(e,t)):null}}]),n}(g.PureComponent);Ur.defaultProps={enabled:!1,childWidth:320,childHeight:230,fillHeight:!0,fillContainer:!1},Ur.propTypes={children:f().node,enabled:f().bool,childWidth:f().number.isRequired,childHeight:f().number.isRequired,viewportWidth:f().number,viewportHeight:f().number,fillHeight:f().bool,fillContainer:f().bool};var Gr=(0,S.Ay)(wr.A).withConfig({displayName:"PlayerWrapper__StyledSpinner",componentId:"sc-qtom8t-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;"]);const Vr=(0,J.A)([L.Ay,N.A,R.A,j.A,P.A,Ao.A],(function(e){var t=e.connection,n=e.layout,o=e.overlay,r=e.performer,i=e.videoClient,s=e.videoControls;return{chatInputActive:n.chatInputActive,clientState:t.clientState,isLandscape:n.isLandscape,isDesktop:n.isDesktop,mobileClampedView:n.mobileClampedView,overlay:o.overlay,poster:r.snapshot,player:i.player,playerUi:i.playerUi,shouldRefresh:s.shouldRefresh,started:i.started,videoClientUnmount:i.videoClientUnmount,videoViewBoxWidth:n.videoViewBoxWidth,videoViewBoxHeight:n.videoViewBoxHeight,videoViewportWidth:n.videoViewportWidth,videoViewportHeight:n.videoViewportHeight,videoViewportHeightAdjustment:n.videoViewportHeightAdjustment,vc:i.videoClient}}))((function(e){var t=e.assetPath,n=e.chatInputActive,o=e.clientState,r=e.fillContainer,i=e.isLandscape,s=e.manifestUrl,a=e.mobileClampedView,l=e.overlay,c=e.player,u=e.playerUi,d=e.shouldRefresh,p=e.started,m=e.poster,h=e.isDesktop,A=e.videoClientUnmount,f=e.videoViewBoxHeight,v=e.videoViewBoxWidth,b=e.videoViewportHeight,_=e.videoViewportHeightAdjustment,E=e.videoViewportWidth,S=e.vc,C=L.Ay.mobileClampedViewAllowed()&&a,T=p&&!n&&(C||_>0),O=(0,g.useState)(""),I=(0,B.A)(O,2),w=I[0],P=I[1],k=(0,g.useState)(!1),R=(0,B.A)(k,2),D=R[0],x=R[1];(0,g.useEffect)((function(){A||(""!==s&&s!==w?(P(s),setTimeout((function(){Ot.A.dispatch({type:Zn.A.LIVELY_VIDEO_SET_PLAYER_UI,data:{manifestUrl:s,assetPath:t}})}),0)):null!==u&&null!==c||""===s||l||4===o?l&&(u||c)&&setTimeout((function(){Ot.A.dispatch({type:Zn.A.LIVELY_VIDEO_DISPOSE_PLAYER,data:{reason:"Player disposed because an overlay is present"}})}),0):setTimeout((function(){Ot.A.dispatch({type:Zn.A.LIVELY_VIDEO_SET_PLAYER_UI,data:{manifestUrl:s,assetPath:t}})}),0))}),[c,u,S,s,l,A]),(0,g.useEffect)((function(){d&&setTimeout((function(){Ot.A.dispatch({type:Zn.A.LIVELY_VIDEO_REFRESH_PLAYER,data:{manifestUrl:s,assetPath:t}})}),0)}),[d]),(0,g.useEffect)((function(){4===o&&setTimeout((function(){Ot.A.dispatch({type:Zn.A.LIVELY_VIDEO_DISPOSE_PLAYER,data:{reason:"Player disposed because client state is disconnected."}})}),0)}),[o]);var N=function(){x(!0)};return(0,g.useEffect)((function(){return null==c||c.on("videoFirstPlay",N),function(){null==c||c.off("videoFirstPlay",N)}}),[c]),c&&u?y().createElement("div",{onContextMenu:function(e){return e.preventDefault()}},(!D||d)&&y().createElement("div",null,(Boolean(!h&&m)||4===o)&&y().createElement(Ir,{poster:m}),!D&&y().createElement(Gr,null)),y().createElement(Ur,{enabled:T,fillContainer:r,childWidth:v,childHeight:f,viewportWidth:E,viewportHeight:b,fillHeight:!i},y().createElement(br,null))):y().createElement(Gr,null)}));const Fr=(0,J.A)([P.A],(function(e){return{vc:e.videoClient.videoClient}}))((function(e){var t=e.assetPath,n=e.fillContainer,o=e.manifestUrl,r=e.vc;return(0,g.useEffect)((function(){r||setTimeout((function(){Ot.A.dispatch({type:Zn.A.LIVELY_VIDEO_CREATE_CLIENT})}),0)}),[r]),(0,g.useEffect)((function(){return setTimeout((function(){Ot.A.dispatch({type:Zn.A.LIVELY_VIDEO_HANDLE_UNMOUNT,data:!1})}),0),function(){setTimeout((function(){Ot.A.dispatch({type:Zn.A.LIVELY_VIDEO_HANDLE_UNMOUNT,data:!0})}),0)}}),[]),null!==r?y().createElement(y().Fragment,null,y().createElement(Vr,{fillContainer:n,assetPath:t,manifestUrl:o})):y().createElement(y().Fragment,null)}));function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Yr(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var Wr=function(e){(0,c.A)(n,e);var t=Yr(n);function n(){var e;(0,s.A)(this,n);for(var o=arguments.length,r=new Array(o),i=0;i0&&void 0!==arguments[0]?arguments[0]:{autoToggle:!1},t=e.autoToggle,n=(0,g.useState)(!1),o=(0,B.A)(n,2),r=o[0],i=o[1],s=(0,g.useState)(!1),a=(0,B.A)(s,2),l=a[0],c=a[1];return(0,g.useLayoutEffect)((function(){if(_i&&t)return i(!0),function(){return i(!1)}}),[_i,t]),(0,g.useLayoutEffect)((function(){if(_i){var e=navigator,t=function(e){var t=e.target.boundingRect.height;c(t>0)};return e.virtualKeyboard.addEventListener("geometrychange",t),function(){e.virtualKeyboard.removeEventListener("geometrychange",t)}}}),[_i]),(0,g.useEffect)((function(){if(_i){var e=navigator;e.virtualKeyboard.overlaysContent=!!r}}),[_i,r]),{isAPISupported:_i,shouldKeyboardOverlayContent:r,isShown:l,toggleKeyboardOverlayContent:function(){i((function(e){return!e}))},toggleKeyboardOverlayContentOn:function(){i(!0)},toggleKeyboardOverlayContentOff:function(){i(!1)}}}var Si=(0,Ko.createUseStyles)((function(e){return{form:{width:"100%",height:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:e.spacing.base/4,paddingInlineStart:function(t){return t.isAuthenticated?"0px":e.spacing.base}},inputContainer:{flexGrow:1,height:"100%",position:"relative"},input:{all:"unset",width:"100%",height:"100%","&::placeholder":{color:e.colors.textOnDark},"&:placeholder-shown":{textOverflow:"ellipsis"},"&:focus + $fakeBlinkingCursor":{display:"none"}},"@keyframes cursor-blink":{"0%":{opacity:0},"50%":{opacity:1},"100%":{opacity:0}},fakeBlinkingCursor:{position:"absolute",insetInlineStart:"-2px",top:"50%",transform:"translateY(-50%)",width:"2px",height:"18px",backgroundColor:e.colors.textOnDark,animation:"$cursor-blink 1s infinite",display:function(e){return e.isAuthenticated?"none":"inline-block"}},submitButton:{all:"unset",padding:e.spacing.base,"&:hover":{cursor:"pointer"}}}}));const Ci=(0,qr.Zz)((0,ni.A)({exclude:[ce.Ay.BLACKLABEL,ce.Ay.EXTERNAL_SITE_SHOW,ce.Ay.STREAMFANS]}),(0,J.A)([R.A,j.A,de.A,U.A,L.Ay],(function(e){return{connectionStarted:e.connection.started,sessionType:e.connection.sessionType,isExtSSEnabled:e.performer.isExtSSEnabled,userType:e.user.userType,isPrivateChat:e.chat.private,ctaContainerHeight:e.layout.ctaContainerHeight}}),{memoize:!0}))((function(e){var t=de.A.isLoggedIn(),n=(0,Pr.DP)(),o=Si({theme:n,isAuthenticated:t}),r=(0,g.useState)(""),i=(0,B.A)(r,2),s=i[0],a=i[1],l=Ei({autoToggle:!0});return y().createElement(bi(),{position:"absolute",left:"$1.5",right:"$1.5",bottom:l.isShown?"calc(env(keyboard-inset-height, 0px) + 12px - ".concat(e.ctaContainerHeight,"px)"):"calc(env(keyboard-inset-height, 0px) + 12px)",height:40,background:"textOnLight",backgroundOpacity:30,borderRadius:4,borderWidth:1,borderColor:"baseContrast060",overflow:"hidden"},y().createElement("form",{onSubmit:function(t){t.preventDefault(),e.connectionStarted&&(R.A.isESSUser()&&!e.isExtSSEnabled||(Ot.A.dispatch({type:It.A.CHAT_SENDMESSAGE,data:{message:{type:V.A.USERTYPE_ME,text:s,isPrivate:e.isPrivateChat},sessionType:e.sessionType,userType:e.userType}}),a("")))},className:o.form},t?y().createElement(pr(),{onClick:function(t){t.preventDefault(),Ae.A.usageTick("anonymousToggle_click_".concat(!e.isPrivateChat)),Ot.A.dispatch({type:It.A.TOGGLE_CHAT_PRIVACY,data:{private:!e.isPrivateChat}})},name:e.isPrivateChat?"visibilityOff":"visibility",type:"highContrast",size:"small","data-icf-click":"TogglePrivacy","data-icf-meta":"private=".concat(e.isPrivateChat),"data-ta-locator":"CamFullscreenChatInput-Box-VisibilityToggle"}):null,y().createElement("div",{className:o.inputContainer},y().createElement("input",{type:"text",id:"message",required:!0,value:s,onChange:function(e){return a(e.target.value)},className:o.input,placeholder:H.Ay.getString("chat_placeholder","me"),onFocus:function(){t&&(0,Y.Zj)(fe.A.HANDLE_NO_NICKNAME)},"data-ta-locator":"CamFullscreenChatInput-Box-ChatInput",autoComplete:"off"}),y().createElement("div",{className:o.fakeBlinkingCursor})),y().createElement("button",{type:"submit",className:o.submitButton,"data-ta-locator":"CamFullscreenChatInput-Box-SubmitButton"},y().createElement(w(),{name:"send",fill:"baseContrast100",size:"medium"}))))}));var Ti,Oi,Ii,wi,Pi,ki,Ri,Di,Li,xi,Ni;function ji(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,d.A)(e);if(t){var r=(0,d.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,u.A)(this,n)}}var Mi=(0,nr.A)((function(){return n.e(10).then(n.bind(n,"./src/components/privatefeatures/StartCam2CamButton.js"))}),{displayName:"StartCam2CamButton"}),Bi=$.$c.RESIZE_DRAGGER_HEIGHT,Ui=(0,S.Ay)(ae.BN).withConfig({displayName:"VideoDisplay__VideoDisplayContainer",componentId:"sc-72p4b8-0"})(["background-color:",";color:white;position:relative;will-change:height;width:100%;height:100%;overflow:hidden;"],(function(e){return e.isDisconnected?"black":"#161520"})),Gi=(0,S.Ay)(w()).attrs({size:34}).withConfig({displayName:"VideoDisplay__ToggleMobileClampedViewportButton",componentId:"sc-72p4b8-1"})(["flex:0;position:relative;top:","px;left:","px;filter:drop-shadow(0 0.1rem 0.2rem rgba(0,0,0,0.8));margin:-","px ","px ","px 0;"],5,5,5,(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.base})),Vi=(0,S.Ay)(w()).attrs({size:24}).withConfig({displayName:"VideoDisplay__MobileClampedViewChatButton",componentId:"sc-72p4b8-2"})(["flex:0;filter:drop-shadow(0 0.1rem 0.2rem rgba(0,0,0,0.8));margin:","px;"],(function(e){return e.theme.spacing.base})),Fi=S.Ay.div.withConfig({displayName:"VideoDisplay__OverlayContainer",componentId:"sc-72p4b8-3"})(["background-color:transparent;position:absolute;z-index:2;display:flex;flex-flow:column;flex-wrap:nowrap;height:100%;width:100%;container-type:size;pointer-events:none;& > *{pointer-events:auto;}"]),Hi=S.Ay.div.withConfig({displayName:"VideoDisplay__UpperRightControls",componentId:"sc-72p4b8-4"})(["position:absolute;top:0px;"," transition:transform 0.5s ease;display:flex;flex-flow:row-reverse;flex-wrap:nowrap;z-index:1;"],(0,C.A)(Ti||(Ti=(0,h.A)(["\n right: 0px;\n "])))),Yi=S.Ay.div.withConfig({displayName:"VideoDisplay__UpperControls",componentId:"sc-72p4b8-5"})(["width:100%;position:absolute;top:0px;"]),Wi=S.Ay.div.withConfig({displayName:"VideoDisplay__StyledBottomControls",componentId:"sc-72p4b8-6"})(["width:100%;position:absolute;bottom:",";display:flex;align-items:flex-end;flex-direction:row-reverse;pointer-events:none;& > *{pointer-events:auto;}"],(function(e){return e.isChatInputShowing?e.isVirtualKeyboardShown?"calc(env(keyboard-inset-height, 0px) + 60px - ".concat(e.ctaContainerHeight,"px)"):"calc(env(keyboard-inset-height, 0px) + 60px)":"0px"}));function zi(e){var t=Ei();return y().createElement(Wi,(0,m.A)({},e,{isVirtualKeyboardShown:t.isShown}),e.children)}zi.propTypes={children:f().node.isRequired};var qi=S.Ay.div.withConfig({displayName:"VideoDisplay__BottomRightButtons",componentId:"sc-72p4b8-7"})(["flex:0;display:flex;align-items:flex-end;flex-direction:column-reverse;margin-right:","px;&& > *{flex-basis:auto;}"],(function(e){var t=e.isImprovedCamPageFullscreenUI,n=e.theme;return t?n.spacing.base:0})),Ki=S.Ay.div.withConfig({displayName:"VideoDisplay__BottomMiddle",componentId:"sc-72p4b8-8"})(["flex:1;min-width:0;display:flex;align-items:stretch;flex-direction:column-reverse;"]),Qi=S.Ay.div.withConfig({displayName:"VideoDisplay__BottomLeftButtons",componentId:"sc-72p4b8-9"})(["flex:0;display:flex;align-items:flex-start;flex-direction:column-reverse;"]),Xi=S.Ay.div.withConfig({displayName:"VideoDisplay__ResizeDragger",componentId:"sc-72p4b8-10"})(["position:absolute;"," width:calc(100% - 100px);height:","px;"],(0,C.A)(Oi||(Oi=(0,h.A)(["\n left: 50px;\n "]))),Bi),Zi=S.Ay.div.withConfig({displayName:"VideoDisplay__ResizeDraggerContent",componentId:"sc-72p4b8-11"})(["position:absolute;bottom:8px;width:100%;height:24px;background-color:rgba(0,0,0,0.4);border-radius:2px;text-align:center;font-size:12px;line-height:24px;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;"," opacity:1;transition:opacity 0.25s;",""],(function(e){return e.small&&"\n left: calc(160px + 1rem);\n width: calc(100% - 160px - 1rem);\n font-weight: 100;\n font-size: 10px;\n "}),(function(e){return e.isInactive&&"\n opacity: 0;\n transition: opacity 5s;\n transition-timing-function: cubic-bezier(1,0,.94,0);\n "})),Ji=function(){L.Ay.getState().fullscreen&&Ot.A.dispatch({type:It.A.EXIT_FULLSCREEN,data:{}})},$i=function(e){e.preventDefault(),Ji(),Ot.A.dispatch({type:It.A.DISCONNECT,data:[zo.A.USER_DISCONNECT,"User manually disconnected."]})},es=function(e){(0,c.A)(n,e);var t=ji(n);function n(e){var o;(0,s.A)(this,n),o=t.call(this,e),(0,p.A)((0,l.A)(o),"enterClampedView",(function(){var e,t,n,r,i;Ae.A.loms({eventname:"MobileViewportResizeClickV1",enabled:!0});var s=O()(window.navigator.userAgent),a="mobile"===(null===(e=s.device)||void 0===e?void 0:e.type),l=(null===(t=s.os)||void 0===t||null===(n=t.name)||void 0===n?void 0:n.toLowerCase().includes("ios"))&&a,c=(null===(r=s.os)||void 0===r||null===(i=r.name)||void 0===i?void 0:i.toLowerCase().includes("android"))&&a;(l||c||qo.A.DEBUG)&&o.setState({showFullscreenChat:!0}),(0,Y.Zj)(fe.A.ENTER_FULLSCREEN),Ot.A.dispatch({type:It.A.ENTER_CLAMPED_VIEW})})),(0,p.A)((0,l.A)(o),"exitClampedView",(function(){Ae.A.loms({eventname:"MobileViewportResizeClickV1",enabled:!1}),(0,Y.Zj)(fe.A.EXIT_FULLSCREEN),Ot.A.dispatch({type:It.A.EXIT_CLAMPED_VIEW}),o.setState({showFullscreenChat:!1})})),(0,p.A)((0,l.A)(o),"focusChatInput",(function(){Ot.A.dispatch({type:It.A.CHAT_INPUT_FOCUSED,data:{focused:!0,preventScroll:!0}}),Ot.A.dispatch({type:It.A.FULLSCREEN_CHAT_CLICKED})})),(0,p.A)((0,l.A)(o),"handleConnectionStoreUpdate",(function(){var e=R.A.getState().clientState,t=o.state.isPlaying,n=e===ee.Ay.PLAYING,r=e!==ee.Ay.PLAYING,i=o.getShowPrivateFeatures();n===o.state.isPlaying&&r===o.state.isDisconnected&&i===o.state.showPrivateFeatures||o.setState({isPlaying:n,isDisconnected:r,showPrivateFeatures:i}),!t&&n&&(o.showMenuBarForNSeconds(5),o.lazyDisableLoadingDragger(),o.setState({isLoadingDragger:!0})),t&&!n&&((0,Ot.T)({type:It.A.VIDEO_DISPLAY_HEIGHT_ADJUSTMENT,data:{adjustment:0}}),o.setState({resizeDragPosition:o.getResizeDragDefaultPosition().top}))})),(0,p.A)((0,l.A)(o),"getShowPrivateFeatures",(function(){if(o.props.isDesktop||!o.props.mobileCam2Cam||o.props.isBlockbusterShow)return!1;var e=R.A.getState(),t=e.clientState,n=e.started,r=e.streamType,i=t===ee.Ay.PLAYING||t===ee.Ay.PAUSED&&!j.A.getState().onBreak;return n&&i&&r!==ee.Ay.STREAM_TYPE_GUEST})),(0,p.A)((0,l.A)(o),"getResizeDragBounds",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props,t=e.innerWidth/e.videoAspectRatio;return{top:t-Bi,bottom:e.maxVideoViewportHeight-Bi}})),(0,p.A)((0,l.A)(o),"getResizeDragDefaultPosition",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props,t=e.videoViewportHeight-e.videoViewportHeightAdjustment;return{top:t-Bi,bottom:e.maxVideoViewportHeight-Bi}})),(0,p.A)((0,l.A)(o),"onMouseMove",(function(){o.showMenuBarForNSeconds(3)})),(0,p.A)((0,l.A)(o),"onMouseOut",(function(){o.showMenuBarForNSeconds(3)})),(0,p.A)((0,l.A)(o),"showMenuBarForNSeconds",(function(e){o.setState({showMenuBar:!0}),clearTimeout(o.showMenuBarTimeout),o.showMenuBarTimeout=setTimeout((function(){o.setState({showMenuBar:!1})}),1e3*e)})),(0,p.A)((0,l.A)(o),"onVisibilityChange",(function(e){o.props.isDesktop&&setTimeout((function(){Ot.A.dispatch({type:It.A.VIDEO_DISPLAY_VISIBILITY,data:{isVisible:e}})}))})),(0,p.A)((0,l.A)(o),"handleDragStart",(function(){o.setState({isDragging:!0})})),(0,p.A)((0,l.A)(o),"handleDrag",(function(e,t){t.y!==o.state.resizeDragPosition&&(o.setState({resizeDragPosition:t.y}),Ot.A.dispatch({type:It.A.VIDEO_DISPLAY_HEIGHT_ADJUSTMENT,data:{adjustment:t.y-o.getResizeDragDefaultPosition().top}}))})),(0,p.A)((0,l.A)(o),"handleDragStop",(function(){o.setState({isDragging:!1})})),(0,p.A)((0,l.A)(o),"lazyDisableLoadingDragger",(function(){clearTimeout(o.loadingDraggerTimeout),o.loadingDraggerTimeout=setTimeout((function(){o.setState({isLoadingDragger:!1})}),250)}));var r=R.A.getState().clientState,i=r===ee.Ay.PLAYING,a=r!==ee.Ay.PLAYING;return o.state={showPrivateFeatures:o.getShowPrivateFeatures(),showMenuBar:!1,resizeDragPosition:o.getResizeDragDefaultPosition(e).top,isPlaying:i,isDisconnected:a,isLoadingDragger:!0,showFullscreenChat:!1,isVisible:!1},o}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.connectionToken=R.A.addListener(this.handleConnectionStoreUpdate),this.props.isImprovedCamPageFullscreenUI&&null===L.O0&&Ot.A.dispatch({type:It.A.ENTER_CLAMPED_VIEW}),this.checkShouldEnterClampedView()}},{key:"componentWillUnmount",value:function(){this.connectionToken.remove(),clearTimeout(this.showMenuBarTimeout),clearTimeout(this.loadingDraggerTimeout)}},{key:"componentDidUpdate",value:function(e){this.props.isDesktop!==e.isDesktop&&this.setState({showPrivateFeatures:this.getShowPrivateFeatures()}),this.props.videoViewportHeight!==e.videoViewportHeight&&this.setState({resizeDragPosition:this.props.videoViewportHeight-Bi}),this.props.shouldEnterClampedView!==e.shouldEnterClampedView&&this.checkShouldEnterClampedView(),this.props.shouldEnterClampedChatView!==e.shouldEnterClampedChatView&&this.checkShouldEnterClampedChatView()}},{key:"checkShouldEnterClampedView",value:function(){this.props.shouldEnterClampedView&&this.enterClampedView()}},{key:"checkShouldEnterClampedChatView",value:function(){this.props.shouldEnterClampedChatView&&Ot.A.dispatch({type:It.A.VIDEO_DISPLAY_HEIGHT_ADJUSTMENT,data:{adjustment:this.props.maxVideoViewportHeight-this.getResizeDragDefaultPosition().top-110}})}},{key:"render",value:function(){var e=this,t=this.props,n=t.isDesktop,o=t.children,r=t.inClampMode,s=t.chatInputActive,a=t.modalOpen,l=t.overlay,c=t.fullscreen,u=t.isLandscape,d=t.isPreGoldShow,p=t.isImprovedCamPageFullscreenUI,h=t.isPrivateShow,A=t.ctaContainerHeight,f=t.handleGoToLogin,v=t.isLoggedIn,_=this.state,S=_.isPlaying,C=_.isDisconnected,T=_.showPrivateFeatures,O=_.showMenuBar,I=_.resizeDragPosition,w=_.isDragging,P=_.isLoadingDragger,k=_.showFullscreenChat,R=this.context,D=R.platform,x=R.layout,N=!(a||l&&n),M=D===ce.Ay.SCP&&x===$.Ay.DESKTOP,B=!N&&C&&!a&&l&&M,U=S&&r&&p&&!n&&!h,G=S&&p&&!n,V=S&&!v&&p&&!n,F=S&&p&&r&&!n,W=S&&p&&!h&&r&&!n,z=x===$.Ay.MOBILE&&!u&&S&&r&&p,q=this.getResizeDragBounds(),K=this.getResizeDragDefaultPosition().top,Q=L.Ay.mobileClampedViewAllowed(),X=x===$.Ay.MOBILE&&!u,Z=r||s;return(0,i.A)(E(),{onChange:this.onVisibilityChange,partialVisibility:!0,offset:{top:0}},void 0,(0,i.A)(Ui,{onMouseMove:this.onMouseMove,onMouseOut:this.onMouseOut,isDisconnected:C},void 0,y().createElement(zr,(0,m.A)({key:"VideoDisplay",overlay:l,isFullscreen:c},this.props)),(0,i.A)(Fi,{},void 0,l&&(0,i.A)(Kn,{modalOpen:a,overlay:l},"overlay"),(0,i.A)(Hi,{},void 0,N&&(0,i.A)(se.A,{action:$i,buttonId:"VideoHeaderDisconnectButton",title:H.Ay.getString("disconnect_button")},"disconnect"),B&&(0,i.A)(se.A,{buttonId:"VideoHeaderExitButton",title:H.Ay.getString("exit_button"),onClick:function(){(0,Y.Zj)(fe.A.CLOSE_CLIENT)}},"close"),c&&(0,i.A)(ie.A,{buttonId:"VideoHeaderExitFullscreen",glyph:"fullscreenExit",action:Ji,title:H.Ay.getString("video_exit_fullscreen"),tooltipPlacement:"bottom"},"exitFullscreen"),V&&(0,i.A)(yi,{handleGoToLogin:f})),(0,i.A)(Yi,{},void 0,S&&(0,i.A)(g.Fragment,{},"is-playing",(0,i.A)(Co,{visible:p&&!de.A.isLoggedIn()||O}),Ii||(Ii=(0,i.A)(lo,{})))),(0,i.A)(zi,{isChatInputShowing:z,ctaContainerHeight:A},void 0,(0,i.A)(qi,{isImprovedCamPageFullscreenUI:p},void 0,F&&(0,i.A)(ai,{handleGoToLogin:f}),S&&Q&&!r&&(p?(0,i.A)(pr(),{size:"large",name:"fullscreen",type:"highContrast",dropShadow:!0,marginBottom:"$1",onClick:this.enterClampedView}):(0,i.A)(Gi,{"data-ta-locator":"VideoDisplay__EnterClampedState",fill:"white",name:"fullscreen",onClick:this.enterClampedView},"enter-clamped")),S&&r&&(p?(0,i.A)(pr(),{size:"large",name:"fullscreenExit",type:"highContrast",dropShadow:!0,marginBottom:"$1",onClick:this.exitClampedView}):(0,i.A)(Gi,{"data-ta-locator":"VideoDisplay__ExitClampedState",name:"fullscreenExit",onClick:this.exitClampedView,fill:"white"},"exit-clamped")),!p&&S&&r&&k&&(0,i.A)(Vi,{name:"chatBubble",fill:"white",onClick:this.focusChatInput},"chat-clamped"),p&&T&&!this.props.cam2cam&&(wi||(wi=(0,i.A)(Mi,{"data-ta-locator":"PrivateFeatures__Cam2CamButton",transparentBg:!0}))),!p&&T&&r&&k&&!this.props.cam2cam&&(Pi||(Pi=(0,i.A)(Mi,{"data-ta-locator":"PrivateFeatures__Cam2CamButton",transparentBg:!0}))),!p&&T&&(!r||!k)&&!this.props.cam2cam&&u&&(ki||(ki=(0,i.A)(Mi,{"data-ta-locator":"PrivateFeatures__Cam2CamButton",transparentBg:!0}))),G&&(Ri||(Ri=(0,i.A)(ci,{}))),U&&(0,i.A)(li,{handleGoToProfile:function(){v||(0,Y.Zj)(fe.A.REQUIRES_AUTH),e.exitClampedView(),Ot.A.dispatch({type:It.A.ACTIVE_TAB,data:{name:"bio"}})}}),W&&(Di||(Di=(0,i.A)(gi,{})))),(0,i.A)(Ki,{},void 0,S&&(0,i.A)(Wo,{showProgress:n},"gold-show-info"),k&&!p&&(Li||(Li=(0,i.A)(oe,{}))),p&&(xi||(xi=(0,i.A)(tr,{})))),(0,i.A)(Qi,{},void 0,!p&&T&&(!r||!k)&&!this.props.cam2cam&&!u&&(Ni||(Ni=(0,i.A)(Mi,{"data-ta-locator":"PrivateFeatures__Cam2CamButton",transparentBg:!0}))))),z&&(0,i.A)(Ci,{performerName:j.A.getState().nickname}),S&&X&&!Z&&(0,i.A)(b(),{axis:"y",onStart:this.handleDragStart,onDrag:this.handleDrag,onStop:this.handleDragStop,defaultPosition:{x:0,y:K},position:{x:0,y:I},bounds:q},void 0,y().createElement(Xi,{ref:this.lazyDisableLoadingDragger},(0,i.A)(Zi,{isInactive:!w&&!P,small:d},void 0,d?H.Ay.getString("drag_to_resize.short"):H.Ay.getString("drag_to_resize.long")))),o)))}}]),n}(g.Component);(0,p.A)(es,"displayName","VideoDisplay"),es.propTypes={inVoiceChat:f().bool,isDesktop:f().bool,source:f().string,assetPath:f().string,mobileCam2Cam:f().bool,children:f().node,xment:f().object,shouldEnterClampedView:f().bool,shouldEnterClampedChatView:f().bool,videoViewportHeight:f().number,maxVideoViewportHeight:f().number,videoViewportHeightAdjustment:f().number,inClampMode:f().bool,chatInputActive:f().bool,ctaHeight:f().number,modalOpen:f().bool,overlay:f().string,fullscreen:f().bool,isLandscape:f().bool,isPreGoldShow:f().bool,cam2cam:f().bool,isBlockbusterShow:f().bool,isImprovedCamPageFullscreenUI:f().bool,isPrivateShow:f().bool,handleGoToLogin:f().func,isLoggedIn:f().bool,ctaContainerHeight:f().number},es.defaultProps={isDesktop:!1,mobileCam2Cam:!1,children:null,modalOpen:!1,overlay:null,fullscreen:!1,isLandscape:!1,isPreGoldShow:!1,isBlockbusterShow:!1,shouldEnterClampedView:!1,isImprovedCamPageFullscreenUI:!1,isPrivateShow:!1,handleGoToLogin:function(){},isLoggedIn:!1},es.contextTypes={platform:f().oneOf(Object.values(ce.Ay)),layout:f().oneOf([$.Ay.DESKTOP,$.Ay.TABLET,$.Ay.MOBILE])};const ts=(0,J.A)([L.Ay,x.A,N.A,D.A,P.A,R.A,k.A,de.A],(function(e){return{videoViewportHeight:e.layout.videoViewportHeight,maxVideoViewportHeight:e.layout.maxVideoViewportHeight,videoViewportHeightAdjustment:e.layout.videoViewportHeightAdjustment,inClampMode:e.layout.mobileClampedView,chatInputActive:e.layout.chatInputActive,ctaHeight:e.layout.ctaHeight,fullscreen:e.layout.fullscreen,isLandscape:e.layout.isLandscape,videoAspectRatio:e.layout.videoAspectRatio,innerWidth:e.layout.innerWidth,ctaContainerHeight:e.layout.ctaContainerHeight,modalOpen:Boolean(e.modal.modal),overlay:e.overlay.overlay,isPreGoldShow:D.A.isPreGoldShow(),cam2cam:e.videoClient.cam2cam,isBlockbusterShow:R.A.isBlockbusterShow(),isImprovedCamPageFullscreenUI:1===e.xment.improvedCamPageFullscreenUI,isPrivateShow:ee.FK.has(e.connection.streamType),isLoggedIn:de.A.isLoggedIn()}}))(es)},"./src/components/videostore/BioVideosContainerAsync.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n("./src/utils/createAsyncComponent.tsx"),r=n("./src/utils/forPlatforms.tsx"),i=n("./src/constants/Platforms.ts"),s=(0,o.A)((function(){return n.e(11).then(n.bind(n,"./src/components/videostore/BioVideosContainer.js"))}),{displayName:"BioVideosContainer"});const a=(0,r.A)({exclude:[i.Ay.BLACKLABEL,i.Ay.EXTERNAL_SITE_SHOW]})(s)},"./src/constants/Actions.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={LOAD_CONFIG:"LoadConfig",CONNECT:"Connect",DISCONNECT:"Disconnect",USER_GIVE_GOLD:"UserGiveGold",USER_QUEUE_GOLD:"UserQueueGold",START_PLAYBACK:"StartPlayback",GIVE_GOLD_CLICK:"GiveGoldClick",CLOSE_MODAL:"CloseModal",ENTER_PAID_CLICK:"EnterPaidClick",USER_REQUEST_PRIVATE:"UserRequestPrivate",USER_PLEDGE_GOLD:"UserPledgeGold",FAVORITE_UPDATE:"FavoriteUpdate",CHAT_SENDMESSAGE:"ChatSendMessage",CHAT_INPUT_FOCUSED:"ChatFocused",VIDEO_CONNECT:"VideoConnect",VIDEO_DISCONNECT:"VideoDisconnect",VIDEO_PAUSE:"VideoPause",VIDEO_START:"VideoStart",VIDEO_PLAYING:"VideoPlaying",VIDEO_REFRESH:"VideoRefresh",RESET:"Reset",SWITCH_SECTION:"SwitchSection",TOGGLE_SECTION:"ToggleSection",PREVIOUS_SECTION:"PreviousSection",NEXT_SECTION:"NextSection",TOGGLE_CHAT_PRIVACY:"ToggleChatPrivacy",HIDE_SECTIONS:"HideSections",DISPLAY_MESSAGE:"DisplayMessage",REMOVE_CHAT_MESSAGE:"RemoveChatMessage",AUDIO_ENABLED:"AudioEnabled",ENABLE_AUDIO:"EnableAudio",SESSION_ACCEPTED:"SessionAccepted",NO_VALID_DRIVERS:"NoValidDrivers",LOCK_OVERLAY:"LockOverlay",FAN_MODE:"FanMode",OPEN_GOLD_MODAL:"OpenGoldModal",SHOW_GOLD_MENU_CHAT_UPSELL:"ShowGoldMenuChatUpsell",SHOW_GOLD_MENU_ITEM_CHAT_UPSELL:"ShowGoldMenuItemChatUpsell",LOAD_SKIN_CONFIG:"LoadSkinConfig",BROWSER_MAY_CLOSE:"BrowserMayClose",BROWSER_CLOSE:"BrowserClose",CLOSING_CLIENT:"ClosingClient",HIDE_THANKS_SPEND_MESSAGE:"HideThanksSpendMessage",PRE_RPC_CALL:"PreRpcCall",MEMBER_SERVER:"MemberServer",SET_LIVELY_ENDPOINT:"SetLivelyEndpoint",MODAL_CLOSE_BUTTON_HIDE:"ModalCloseButtonHide",MODAL_CLOSE_BUTTON_SHOW:"ModalCloseButtonShow",ALLOW_EXCLUSIVE_UPGRADE_IF_ELIGIBLE:"AllowExclusiveUpgradeIfEligible",SET_THROTTLE_TIME:"SetThrottleTime",FEDERATED_MODULE_FALLBACK_MAPPINGS:"FederatedModuleFallbackMappings",SPIN_GOLD_CLICK:"SpinGoldClick",SPIN_GOLD_CLOSE:"SpinGoldClose",SPIN_GOLD_SPIN:"SpinGoldSpin",SHOW_SPIN_GOLD_CHAT_UPSELL:"ShowSpinGoldChatUpsell",CAM2CAM_CLICK:"Cam2CamClick",CAM2CAM_CONFIRM:"Cam2CamConfirm",CAM2CAM_CONFIRM_END:"Cam2CamConfirmEnd",CAM2CAM_DEVICE_CHECK:"Cam2CamDeviceCheck",CAM2CAM_USER_MEDIA_DETECT:"Cam2CamUserMediaDetect",CAM2CAM_PRIV_CALL_START:"Cam2CamPrivCallStart",CAM2CAM_PRIV_CALL_DONE:"Cam2CamPrivCallDone",CAM2CAM_PRIV_CALL_FATAL_ERR:"Cam2CamPrivCallFatalErr",CAM2CAM_PRIV_CALL_REJECTED:"Cam2CamPrivCallRejected",CAM2CAM_PRIV_CALL_TIMEOUT:"Cam2CamPrivCallTimeout",MANIFEST_URL_RECEIVED:"ManifestUrl",PERFORMER_BIO_INFO:"PerformerBioInfo",PERFORMER_GOLD_MENU:"PerformerGoldMenu",PERFORMER_SUBSCRIPTION_DISCOUNT:"PerformerSubscriptionDiscount",REQUEST_PERFORMER_NICKNAMES:"RequestPerformerNicknames",SET_PERFORMER_NICKNAME:"SetPerformerNickname",REQUEST_COMMENTS:"RequestComments",COMMENTS:"Comments",REQUEST_USER_TAGS:"RequestUserTags",USER_TAGS:"UserTags",REMOVE_USER_TAG:"RemoveUserTag",MUTE:"Mute",SET_VOLUME:"SetVolume",WONDER_MANIFEST:"WonderManifest",PICK_STREAM:"PickStream",MOVE_VIDEO_AVAILABILITY:"MoveVideoAvailability",VIDEO_LOCATION_AVAILABILITY:"VideoLocationAvailability",MOVE_VIDEO:"MoveVideo",VIDEO_DISPLAY_VISIBILITY:"VideoDisplayVisibility",USER_DISMISSED_PIP:"UserDismissedPip",PIP_VISIBILITY:"PipVisibility",MOBILE_DRAGGING_TO_PIP:"MobileDraggingToPip",STREAM_AVAILABLE_FOR_PIP:"StreamAvailableForPip",DESKTOP_PIP_DRAG_OFFSET:"DesktopPipDragOffset",WINDOW_RESIZE:"WindowResize",VIDEO_DIMENSIONS_LOADED:"VideoDimensionsLoaded",CTA_HEIGHT_CHANGE:"CtaHeightChange",CHAT_INPUT_HEIGHT_CHANGE:"ChatInputHeightChange",SIDEBAR_ITEM_VISIBLITY:"SidebarItemVisiblity",SIZE_BIO_INFO:"SizeBioInfo",CLIENT_ROOT_BOUNDING_RECT:"ClientRootBoundingRect",ACTIVE_TAB:"ActiveTab",ACTIVE_GOLD_MENU_TAB:"ActiveGoldMenuTab",APPEND_EMOJI:"AppendEmoji",UPDATE_CHAT_MESSAGE:"UpdateChatMessage",TOGGLE_CHAT:"ToggleChat",INCREASE_FONT_SIZE:"IncreaseFontSize",DECREASE_FONT_SIZE:"DecreaseFontSize",OPEN_COMPLIANCE_MODAL:"OpenComplianceModal",OPEN_TERMS_MODAL:"OpenTermsModal",SET_MESSENGER_ENABLED:"SetMessengerEnabled",POST_PAID_SUCCESS_MODAL:"PostPaidSuccessModal",REQUEST_MAX_GOLD:"RequestMaxGold",MAX_GOLD:"MaxGold",ENTER_FULLSCREEN:"EnterFullscreen",EXIT_FULLSCREEN:"ExitFullscreen",ENTER_CLAMPED_VIEW:"EnterMobileClampedView",EXIT_CLAMPED_VIEW:"ExitMobileClampedView",PAN_AND_ZOOM_TRANSLATE:"PanAndZoomTranslate",PAN_AND_ZOOM_SCALE:"PanAndZoomScale",XMENT_REQUEST:"XmentRequest",XMENT_UPDATE:"XmentUpdate",SHOW_QUICK_TIP_CONSENT_MODAL:"ShowQuickTipShowConsentModal",QUICK_TIP_CONSENT:"QuickTipConsent",SHOW_MOBILE_QUICK_TIP_CONSENT_MODAL:"ShowMobileQuickTipConsentModal",SHOW_QUICK_TIP_CUSTOM_VALUE_MODAL:"ShowQuickTipCustomValueModal",QUICK_TIP_SET_CUSTOM_VALUE:"QuickTipSetCustomValue",UPDATE_PREBILL_STATUS:"UpdatePrebillStatus",SET_STATS_BUCKET:"SetStatsBucket",FORCE_BILLING_INFO_UPDATE:"ForceBillingInfoUpdate",PERFORMER_SUBSCRIBERS_INFO:"PerformerSubscribersInfo",PERFORMER_SUBSCRIBERS_SUB_SUCCESS:"PerformerSubscribersSubSuccess",PERFORMER_SUBSCRIBERS_SUB_FAILURE:"PerformerSubscribersSubFailure",PERFORMER_SUBSCRIBERS_UNSUB_SUCCESS:"PerformerSubscribersUnSubSuccess",PERFORMER_SUBSCRIBERS_UNSUB_FAILURE:"PerformerSubscribersUnSubFailure",PERFORMER_SUBSCRIBERS_SUBSCRIPTION_BLOCK:"PerformerSubscribersSubscriptionBlock",PERFORMER_SUBSCRIBERS_CLOSE_MODAL:"PerformerSubscribersCloseModal",PERFORMER_SUBSCRIBERS_REQUEST_SUBSCRIBE:"PerformerSubscribersRequestSubscribe",PERFORMER_SUBSCRIBERS_REQUEST_UNSUBSCRIBE:"PerformerSubscribersRequestUnsubscribe",PERFORMER_SUBSCRIBERS_AUTO_CLOSE_MODAL:"PerformerSubscribersAutoCloseModal",PERFORMER_SUBSCRIBERS_OPEN_MODAL:"PerformerSubscribersOpenModal",PERFORMER_SUBSCRIBERS_DAILY_LIMIT_REACHED:"PerformerSubscribersDailyLimitReached",QUICK_CHAT_ADD_OPTION:"QuickChatAddOption",QUICK_CHAT_REMOVE_OPTION:"QuickChatRemoveOption",QUICK_CHAT_EDIT_OPTION:"QuickChatEditOption",QUICK_CHAT_CLEAR_OPTIONS:"QuickChatClearOptions",UPDATE_USER_PREFERRED_LANG:"UpdateUserPreferredLang",UPDATE_USER_REWARDS_INFORMATION:"UpdateUserRewardsInformation",UPDATE_USER_NICKNAME:"UpdateUserNickname",MEDIA_REQUEST_VIDEOS:"MediaRequestVideos",MEDIA_REQUEST_PHOTOS:"MediaRequestPhotos",MEDIA_UPDATE_VIDEOS:"MediaUpdateVideos",MEDIA_UPDATE_PHOTOS:"MediaUpdatePhotos",OPEN_ESS_ENTER_MODAL:"OpenEssEnterModal",SET_ESS_USERNAME:"SetEssUsername",SET_FEATURE_VISIBILITY:"SetFeatureVisibility",SET_GEO_RESTRICTED:"SetGeoRestricted",SET_USER_COUNTRY:"SetUserCountry",VIDEO_DISPLAY_HEIGHT_ADJUSTMENT:"VideoDisplayHeightAdjustment",FEATURE_SHOWN:"FeatureShown",FULLSCREEN_CHAT_CLICKED:"FullscreenChatClicked",CLEAR_TWO_FACTOR_AUTHENTICATION_EMAIL_REQUEST_TOKEN:"ClearTwoFactorAuthenticationEmailRequestToken",OPEN_TWO_FACTOR_AUTHENTICATION_REQUIRED_MODAL:"OpenTwoFactorAuthenticationRequiredModal",SHOW_NO_SERVICES_MODAL:"ShowNoServicesModal",SHOW_PAYOFF_MODAL:"ShowPayoffModal",TOP_CONTRIBUTORS_CHAT_UPSELL_SHOWED:"TopContributorsChatUpsellShowed",SET_ADDITIONAL_PERFORMERS_ON_STREAM:"SetAdditionalPerformersOnStream",ROOM_REQUEST_PAYOFF:"RoomRequestPayoff",ROOM_PAYOFF:"RoomPayoff",CAM2CAM_REJECT:"cam2camreject",CAM2CAM_END:"cam2camend",FETCH_AVAILABLE_DAILY_LIMIT:"FetchAvailableDailyLimit",SET_AVAILABLE_DAILY_LIMIT:"SetAvailableDailyLimit"}},"./src/constants/Connection.js":(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,FK:()=>i,HW:()=>r,Kf:()=>o,v5:()=>s});var o={CHECKUP_INTERVAL:12e3,CLIENT_VERSION:7,AWAITING_CONFIG:0,AWAITING_AUTHORIZATION:1,AWAITING_PLAYBACK:2,PLAYING:3,DISCONNECTED:4,NEED_PAYOFF:5,PAUSED:6,DEFAULT_PORT:8080,STREAM_CONTENT_INCOMING_TEXT:1,STREAM_CONTENT_OUTGOING_TEXT:2,STREAM_CONTENT_INCOMING_AUDIO:4,STREAM_CONTENT_OUTGOING_AUDIO:8,STREAM_CONTENT_INCOMING_VIDEO:16,STREAM_CONTENT_OUTGOING_VIDEO:32,STREAM_TYPE_GUEST:0,STREAM_TYPE_PRIVATE:1,STREAM_TYPE_EXCLUSIVE:4,STREAM_TYPE_BLOCK:5,STREAM_TYPE_BLOCK_EXCLUSIVE:6},r=["guest","private","unknown","fullscreen","exclusive","block","block_exclusive","unknown","extss_guest","free"],i=new Set([o.STREAM_TYPE_PRIVATE,o.STREAM_TYPE_EXCLUSIVE,o.STREAM_TYPE_BLOCK,o.STREAM_TYPE_BLOCK_EXCLUSIVE]),s=(new Set([o.STREAM_TYPE_EXCLUSIVE,o.STREAM_TYPE_BLOCK_EXCLUSIVE]),{REQUEST_PRIVATE:"private",REQUEST_BLOCK:"block",REQUEST_EXCLUSIVE:"exclusive"});const a=o},"./src/constants/CurrencyConstants.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={DEFAULT_EXCHANGE_RATE:1e4,DEFAULT_CURRENCY_SYMBOL_UTF:"$",DEFAULT_CURRENCY_CODE:"USD",CURRENCIES_WITH_DISPLAYED_TAXES_AND_FEES:new Set(["AUD","BRL","CHF","EUR","GBP"])}},"./src/constants/DisconnectReasons.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n("./node_modules/icf-room-client-user/dist/index.js");const r={SYSTEM:1,SYSTEM_CLIENT:5,AUTHENTICATION:9,STATUS_PERFORMER:10,BLOCKED:11,ENDED:12,SHACKLED:13,PREAUTH:14,BOOTED:15,GHOST:17,BLOCKED_IP:18,PAYOFF:19,BUSY:20,VIDEO_DELAY:23,PERFORMER_IN_EXCLUSIVE:24,DECLINED_EXCLUSIVE:25,USER_DISCONNECT:27,BLOCK_SESSION_UNAVAILABLE:28,BLOCK_SESSION_REJECTED:29,FLASH_VERSION:30,REDIRECT:31,TIMEOUT:33,NEW_PERFORMER:34,BREAK:36,IN_GOLDSHOW:37,LOST_CONNECTION:38,LOST_LODEF_CONNECTION:49,DISCONNECT_LOST_STREAMINGLS_CONNECTION:50,DISCONNECT_NO_VIDEO_PATH:51,DISCONNECT_CANT_PLAY_NGINX_STREAM:52,BOOTED_BY_ADMIN:54,MIDSTREAM_BILLING_DECLINED:70,ESF_BILLING_ERROR:71,INVALID_HC_VERSION:72,ROOM_CLIENT_CONNECTION_FAILURE:73,ROOM_CLIENT_CONNECTION_LOST:74,WAIT_TO_SET_UP_STREAM:75,ROOM_FULL:76,TEMPORARY_USE_COMPLETED:o.ExtendedNaiadStatus.temporaryUseCompleted,CLIENT_HIDDEN:o.ExtendedNaiadStatus.clientHidden,CHANGED_ROOM:o.ExtendedNaiadStatus.changedRoom,NO_VALID_DRIVERS:666,INVALID_STARTUP:6969,STARTUP_NETWORK_ERROR:8181}},"./src/constants/Globals.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={VERSION:"27.5.9",DEBUG:!1,FORCE_PROPS:!1,PROP_XMENT:"",PROP_PLATFORM:"unknown"}},"./src/constants/GoldShowConstants.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={GOLD_STATE_NONE:0,GOLD_STATE_PRE:1,GOLD_STATE_PRE_PLEDGED:2,GOLD_STATE_IN_PROGRESS:3,GOLD_STATE_NEED_PLEDGE:4,GOLD_ACTION_NEED_PLEDGE:1,GOLD_ACTION_BEGIN:2,GOLD_ACTION_CANCEL:3,GOLD_ACTION_END:4,PLEDGE_STATE_NO_PLEDGE:0,PLEDGE_STATE_PARTIAL_PLEDGE:1,PLEDGE_STATE_PLEDGED:2}},"./src/constants/LogLevel.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={DEBUG:5,INFO:4,NOTICE:3,WARN:2,ERROR:1}},"./src/constants/LomsEvents.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={CTA_BUTTONS:{GIVE_GOLD:"GiveGold",GO_PRIVATE:"GoPrivate",GO_EXCLUSIVE:"GoExclusive",GOLD_MENU:"GoldMenu",GOLD_MENU_ITEM:"GoldMenuItem",SPIN_GOLD:"SpinGold",QUICK_TIP:"QuickTip",PIP_GIVE_GOLD:"PipGiveGold",PIP_GO_PRIVATE:"PipGoPrivate",TOP_CONTRIBUTORS_CHAT_UPSELL:"TopContributorsChatUpsell",OFFLINE_MESSENGER:"OfflineMessenger",CIRCLE_BIO_PIC:"CircleBioPic",CREATE_ACCOUNT:"CreateAccount"},PIP_BUTTONS:{AUDIO:"Audio",VIDEO:"Video"}}},"./src/constants/Messages.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={BROWSE_LIVE_MODELS:"SM_BROWSE_LIVE_MODELS",CLOSE_CLIENT:"SM_CLOSE_CLIENT",CONFIRM:"SM_CONFIRM",DISABLE_SCRIM:"SM_DISABLE_SCRIM",DISCONNECTED:"SM_DISCONNECTED",ENABLE_SCRIM:"SM_ENABLE_SCRIM",ENTER_FULLSCREEN:"SM_ENTER_FULLSCREEN",ENTERED_EXCLUSIVE:"SM_ENTERED_EXCLUSIVE",ENTERED_PRIVATE:"SM_ENTERED_PRIVATE",ESF_BILLING_FAIL:"SM_ESF_BILLING_FAIL",EXIT_FULLSCREEN:"SM_EXIT_FULLSCREEN",GOTO_DAILYLIMIT:"SM_GOTO_DAILYLIMIT",GOTO_LOGIN:"SM_GOTO_LOGIN",GOTO_STASH:"SM_GOTO_STASH",GOTO_VIDEO_STORE:"SM_GOTO_VIDEO_STORE",IN_XMENT:"SM_IN_XMENT",INMAIL:"SM_INMAIL",INVALID_PERFORMER:"SM_INVALID_PERFORMER",MESSENGER_CONVERSATION:"SM_MESSENGER_CONVERSATION",NONBILLABLE_USER:"SM_NONBILLABLE_USER",NONPREMIUM_USER:"SM_NONPREMIUM_USER",NOTIFY_USER_WHEN_PERFORMER_AVAILABLE:"SM_NOTIFY_USER_WHEN_PERFORMER_AVAILABLE",PERFORMER_SUBSCRIBE:"SM_PERFORMER_SUBSCRIBE",PERFORMER_UNSUBSCRIBE:"SM_PERFORMER_UNSUBSCRIBE",PIP_STATE:"SM_PIP_STATE",REFRESH:"SM_REFRESH",REQUEST_PAYMENT_UPDATE:"SM_REQUEST_PAYMENT_UPDATE",REQUIRES_AUTH:"SM_REQUIRES_AUTH",REQUIRES_SUPPORT:"SM_REQUIRES_SUPPORT",SEND_PRIVATE_MESSAGE:"SM_SEND_PRIVATE_MESSAGE",SWITCH_PERFORMER:"SM_SWITCH_PERFORMER",TAG:"SM_TAG",HANDLE_NO_NICKNAME:"SM_HANDLE_NO_NICKNAME",DEBUG_AVAILABLE_XMENTS:"DEBUG_AVAILABLE_XMENTS",DESTROY_STREAM:"SM_DESTROY_STREAM",RESET_STREAM:"SM_RESET_STREAM"}},"./src/constants/NaiadSessionType.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={GUEST:"guest",PREMIUM:"premium",EXCLUSIVE:"exclusive",PREVIEW:"preview",EXTERNAL:"external",PERFORMER:"performer",BASIC:"basic"}},"./src/constants/QuickTipConstants.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={PRESET_VALUES:[100,300,500],SLIDER_MIN:100,SLIDER_MAX:9900,SLIDER_DEFAULT:500}},"./src/constants/RpcCalls.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={ROOM_CLIENT_CONNECTED:"RoomClientConnected",ROOM_CLIENT_GIVE_GOLD:"RoomClientGiveGold",ROOM_CLIENT_PLEDGE_GOLD:"RoomClientPledgeGoldShow",ROOM_CLIENT_STATUS_CHANGED:"RoomClientStatusChanged",ROOM_CLIENT_SYSTEM_CHAT_MESSAGE:"RoomClientSystemChatMessage",ROOM_CLIENT_LIVE_CHAT_MESSAGE:"RoomClientLiveChatMessage",ROOM_VIBE_STATUS_UPDATE:"RoomVibeStatusUpdate",ROOM_CLIENT_GOLD_ONLY_GOAL_STATUS_CHANGED:"GoldOnlyGoalStatusChanged",ROOM_CLIENT_SET_USERLIST_UPDATES_ENABLED:"RoomClientSetUserListUpdatesEnabled",ROOM_CLIENT_USER_COUNT_UPDATED:"RoomClientUserCountUpdated",ROOM_CLIENT_GOLDSHOW:"RoomClientGoldShow",ROOM_CLIENT_GOLDSHOW_PLEDGED:"RoomClientGoldShowPledged",ROOM_CLIENT_GOLDSHOW_TOP_CONTRIBUTORS_UPDATED:"RoomClientGoldShowTopContributorsUpdated",ROOM_CLIENT_ENTERING_PRIVATE:"RoomClientEnteringPrivate",ROOM_CLIENT_ENTERED_PRIVATE:"RoomClientEnteredPrivate",ROOM_CLIENT_ENTERING_BLOCK_SESSION:"RoomClientEnteringBlockSessionPrivate",ROOM_CLIENT_ENTERED_BLOCK_SESSION:"RoomClientEnteredBlockSessionPrivate",ROOM_CLIENT_ENTERING_EXCLUSIVE:"RoomClientEnteringExclusive",ROOM_CLIENT_ENTERED_EXCLUSIVE:"RoomClientEnteredExclusive",ROOM_CLIENT_CANCEL_ENTERING_PAID:"RoomClientCancelEnteringPaid",ROOM_CLIENT_QUICK_TIP_ALLOWED:"RoomClientQuickTipAllowed"}},"./src/constants/SetupPlayerErrors.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={INVALID_NAIAD_CONFIG:1,GEORESTRICTED:2,INVALID_PERFORMER_DETAILS:3,INVALID_SKIN_CONFIG:4,FORCE_BILLING_INFO_UPDATE:5,INVALID_PERFORMER_ID:7,INVALID_BILLING_INFO:8,INVALID_HC_VERSION:9,MAX_USERS_IN_ROOM:11,BLOCKED_BY_PERFORMER:13,PLUS_ONE_CREATOR:14,TENANT_MISMATCH:15}},"./src/constants/StatsEvents.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={AIW_PLAYING:"aiw.playing",CONNECTION_NAIAD_PLAY:"connection.naiad_play",FAVORITES_ADD_REQUESTED:"favorites.add.requested",FAVORITES_ADD_SUCCESS:"favorites.add.success",FAVORITES_ADD_FAILURE:"favorites.add.fail",FAVORITES_REMOVE_REQUESTED:"favorites.remove.requested",FAVORITES_REMOVE_SUCCESS:"favorites.remove.success",FAVORITES_REMOVE_FAILURE:"favorites.remove.fail",FAVORITES_API_CALL_ERROR:"favorites.api_call_error",FULLSCREEN_ENABLED:"fullscreen.enabled",FULLSCREEN_DISABLED:"fullscreen.disabled",SESSION_PRIVATE_AUTHORIZED:"session.private.authorized",SESSION_EXCLUSIVE_ACCEPTED:"session.exclusive.accepted",SESSION_BLOCK_ACCEPTED:"session.block.accepted",SIMILARMODEL_SELECTED:"similarmodel.selected",TAG_SELECTED:"tag.selected",TAG_ADDED:"tag.added.success",TAG_REMOVED:"tag.removed.success",IMMEDIATE_NAIAD_FREEZE:"session.error.immediate_naiad_freeze",IMMEDIATE_NAIAD_FREEZE_BUSY:"session.error.immediate_naiad_freeze_busy",INVALID_SERVER_ID:"session.error.invalid_server_id",SUBSCRIPTIONS:{AVAILABLE:"subscriptions.available",NOTIFICATIONS:{SHOW_CONFIRM_MODAL:"subscriptions.notifications.show_confirm_modal",SHOW_INFO_MODAL:"subscriptions.notifications.show_info_modal",SUB_REQUEST:"subscriptions.notifications.subscribe.requested",SUB_SUCCESS:"subscriptions.notifications.subscribe.success",SUB_FAILURE:"subscriptions.notifications.subscribe.fail"},VIDEO:{SHOW_CONFIRM_MODAL:"subscriptions.video.show_confirm_modal",SUB_REQUEST:"subscriptions.video.subscribe.requested",SUB_SUCCESS:"subscriptions.video.subscribe.success",SUB_FAILURE:"subscriptions.video.subscribe.fail"}},DISCOUNT:{SUBSCRIPTIONS_REQUEST:"discount.subscriptions.request",SUBSCRIPTIONS_SUCCESS:"discount.subscriptions.success",SUBSCRIPTIONS_FAILURE:"discount.subscriptions.fail",SUBSCRIPTIONS_UNPROCESSED:"discount.subscriptions.unprocessed"},GOLD_MENU:{OPENED:"goldmenu.opened",UPDATE_LIMIT:"goldmenu.update_limit",ADD_STASH:"goldmenu.add_stash",ITEM_BASE:"goldmenu."},SPIN_GOLD:{OPENED:"spingold.opened"},TOP_CONTRIBUTORS:{UPSELL_CONFIRMED:"topcontributors.confirmed_click"},C2C:{INIT:"session.c2c.init",INIT_PVC:"session.c2c.init.pvc",BROADCASTING:"session.c2c.broadcasting",BROADCASTING_PVC:"session.c2c.broadcasting.pvc",ENDED:"session.c2c.ended",ENDED_PVC:"session.c2c.ended.pvc",REQUEST_SENT:"session.c2c.request_sent",REQUEST_ACCEPTED:"session.c2c.request_accepted",TOKEN_PVC:"session.c2c.token.pvc",ERROR_INIT:"session.c2c.error.init_failed",ERROR_INIT_STREAM_VIDEO:"session.c2c.error.init_stream.video",ERROR_INIT_STREAM_AUDIO:"session.c2c.error.init_stream.audio",ERROR_BROADCASTER:"session.c2c.error.broadcaster",ERROR_CHECK_CAM_ACCESS:"session.c2c.error.check_cam_access",ERROR_ENUMERATE_DEVICE:"session.c2c.error.enumerate_device_failed",ERROR_GET_MEDIA_DEVICE:"session.c2c.error.get_media_devices"},SHOWN_FEATURES:{PHOTOS:"shownfeatures.photos",GOLD_MENU:"shownfeatures.gold_menu",SPIN_GOLD:"shownfeatures.spin_gold",BIO:"shownfeatures.bio",VIDEOS:"shownfeatures.videos",FAN_CLUB_BUTTON:"shownfeatures.fan_club_button"},VIDEOS:{PURCHASE_ATTEMPT:"session.video.purchase_attempt",PURCHASE_SUCCESS:"session.video.purchase_success",PURCHASE_FAILURE:"session.video.purchase_failure"},ROOM_SDK:{MESSAGE_SEND_ERROR:"roomclient.error.message_send",GET_MESSAGE_HISTORY_ERROR:"roomclient.error.get_message_history"},CHAT:{FULLSCREEN_BUTTON_CLICK:"chat.fullscreen_button_click"},STREAMING_SCHEDULE:{CLICK_PREV_DAY:"streamingschedule.click.prev_day",CLICK_NEXT_DAY:"streamingschedule.click.next_day"},ESS:{SUBMIT_USERNAME:"ess.submit_username"}}},"./src/constants/VideoConstants.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={ORIGIN_STREAM:"OriginStream",AUTO_STREAM:"AutoStream",WEBRTC_STREAM:"WebrtcStream",LOCATION:{DEFAULT:"default",PIP:"pip"},VIDEO_CONTAINER_ID:"video-container",PIP_CONTAINER_ID:"pip-container",PIP_STATE:{DEFAULT:"DEFAULT",TRANSITIONING:"TRANSITIONING",PIP:"PIP"},GRANT_TYPE:{PURCHASE:"PURCHASE",FANCLUB_PAID:"FANCLUB_PAID",FANCLUB_PRIVATE:"FANCLUB_PRIVATE"}}},"./src/lib/AjaxRequest.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/atg-superagent-retry-delay/src/index.js"),a=n.n(s),l=n("./node_modules/superagent/lib/client.js"),c=n.n(l),u=n("./src/constants/Tenant.ts"),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 1e3*(Math.max(0,Math.pow(2,e)-1)+Math.random())},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Array(e).fill(0).map((function(e,t){return d(t)}))},m=n("./src/utils/log.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(e)return c().get(e).query(t).set(this.getAllHeaders(e)).set(i).accept("json").retry(2,p(2)).end((function(t,i){if(t||void 0===i)return n._handleError(t,e),void(r&&"function"==typeof r&&r(t));t||"function"!=typeof o||o(i)}));m.A.error("Insufficient data for GET request! url: ".concat(e,", query: ").concat(t))}},{key:"post",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(e&&t)return c().post(e).set(this.getAllHeaders(e)).retry(2,p(2),s).send(t).type(n).end((function(t,n){if(t||void 0===n)return o._handleError(t,e),void(i&&"function"==typeof i&&i(t));t||"function"!=typeof r||r(n)}));m.A.error("Insufficient data for POST request! url: ".concat(e,", data: ").concat(t))}},{key:"postWithCredentials",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(e&&t)return c().post(e).set(this.getTrackingHeaders()).retry(2,p(2)).send(t).type("form").withCredentials().end((function(t,r){t||void 0===r?n._handleError(t,e):t||"function"!=typeof o||o(r)}));m.A.error("Insufficient data for POST request! url: ".concat(e,", data: ").concat(t))}},{key:"postPromise",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e&&t?c().post(e).set(A(A({},this.getAllHeaders(e)),o.headers)).retry(2,p(2)).send(t).type(n||"form"):(m.A.error("Insufficient data for POST request! url: ".concat(e,", data: ").concat(t)),Promise.reject())}},{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"setBaseUrl",value:function(e){e&&(this.baseUrl=e)}},{key:"setTenantId",value:function(e){e&&(this.tenantId=e)}}]),e}())},"./src/lib/Dispatcher.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>i,T:()=>s});var o=n("./node_modules/flux/lib/Dispatcher.js"),r=new(n.n(o)());const i=r;var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;setTimeout((function(){r.dispatch(e)}),t)}},"./src/lib/PerformanceTiming.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./src/utils/log.js");n("./node_modules/usertiming/src/usertiming.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=c.timing[u]-5e4&&(n[e]=c.timing[o[e]]-c.timing[u])})),"undefined"!=typeof window)if(window.PerformancePaintTiming){var r,i=null===(r=c.getEntriesByType("paint"))||void 0===r?void 0:r[0];i&&(n.msFirstPaint=Math.floor(i.startTime))}else(null===(e=window.chrome)||void 0===e||null===(t=e.loadTimes)||void 0===t?void 0:t.call(e).firstPaintTime)>0&&(n.msFirstPaint=1e3*window.chrome.loadTimes().firstPaintTime-c.timing[u]);return n}}]),e}())},"./src/lib/Strings.js":(e,t,n)=>{"use strict";n.d(t,{Nm:()=>I,pI:()=>w,Ay:()=>T,AA:()=>O});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),i=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),s=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),a=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),l=n("./node_modules/@babel/runtime/regenerator/index.js"),c=n.n(l),u=n("./node_modules/lodash/cloneDeep.js"),d=n.n(u),p=n("./node_modules/lodash/get.js"),m=n.n(p),h=n("./node_modules/lodash/set.js"),A=n.n(h),f=n("./src/utils/log.js"),g=n("./src/constants/Globals.js");const y=JSON.parse('{"2257":"18 U.S.C. 2257 and 2257A Record-Keeping Requirements Compliance Statement","2min_warning":"2 Minutes remaining!","about_my_shows":"About My Shows","about_me":"About Me","about_this_model":"About this model","acl":"{{age}} yrs old, {{country}}, {{languages}}","add_tip":"Add GOLD:","all":"All","back_profile":"Back to Profile","back_soon":"Be back in","bitrate_decrease":"Stream quality changed to {{bitrate}}. Lower resolutions will improve stream consistency, but may degrade the picture quality.","bitrate_increase":"Stream quality changed to {{bitrate}}. Higher resolutions will improve picture quality, but may result in an inconsistent stream.","block_options_exclusive":"Exclusive Chat","block_options_premium":"Premium Chat","blocksession":"{{total}} = {{discountedrate}} x {{minduration}} minutes","broadcast_system_message":"Due to high volume of chat, not all non-premium chats may be broadcast.","browse_live":"Browse Live Models","back_to_live":"Back to Live Models","buy_in_system_message":"Performance has started. Give minimum buy in so you can chat during this performance.","camtocam_experience":"Cam-to-Cam for virtual sex experience","cancel":"Cancel","cardholder_statement":"{{billedas}} will appear on your cardholder statement.","categories":"Categories","chat":"Chat","chat_features":"Private chat features","chat_hidden":"Your chat will be hidden from other members.","chat_options":"Chat Options","chat_paid_message":"You will be discreetly billed by {{billedas}}.","chat_placeholder":"Chat live with {{performername}}","chat_speech_placeholder":"Listening...","chat_privately":"Chat privately with the performer","chat_private_loading":"Loading your private chat...","chat_visible":"Your chat will be visible to other members.","audio_enabled":"Audio Enabled","check_back":"Check back later.","click_here":"Click here","close":"Close","confirm_gold_amount":"Are you sure you want to give {{amount}} GOLD?","connecting":"Connecting (May take up to 10 seconds)","member_login":"Member Login","view_free":"VIEW FREE","country_name":{"ad":"Andorra","ae":"United Arab Emirates","af":"Afghanistan","ag":"Antigua and Barbuda","ai":"Anguilla","al":"Albania","am":"Armenia","an":"Netherlands Antilles","ao":"Angola","aq":"Antarctica","ar":"Argentina","as":"American Samoa","at":"Austria","au":"Australia","aw":"Aruba","az":"Azerbaijan","ba":"Bosnia Hercegovina","bb":"Barbados","bd":"Bangladesh","be":"Belgium","bf":"Burkina Faso","bg":"Bulgaria","bh":"Bahrain","bi":"Burundi","bj":"Benin","bm":"Bermuda","bn":"Brunei Darussalam","bo":"Bolivia","br":"Brazil","bs":"Bahamas","bt":"Bhutan","bw":"Botswana","by":"Belarus","bz":"Belize","ca":"Canada","cc":"Cocos Islands","cf":"Central African Republic","cg":"Congo","ch":"Switzerland","ci":"Ivory Coast","ck":"Cook Islands","cl":"Chile","cm":"Cameroon","cn":"China","co":"Colombia","cr":"Costa Rica","cu":"Cuba","cv":"Cape Verde","cx":"Christmas Island","cy":"Cyprus","cz":"Czech Republic","de":"Germany","dj":"Djibouti","dk":"Denmark","dm":"Dominica","do":"Dominican Republic","dz":"Algeria","ec":"Ecuador","ee":"Estonia","eg":"Egypt","eh":"Western Sahara","er":"Eritrea","es":"Spain","et":"Ethiopia","fi":"Finland","fj":"Fiji","fk":"Falkland Islands","fm":"Micronesia","fo":"Faroe Islands","fr":"France","ga":"Gabon","gb":"United Kingdom","gd":"Grenada","ge":"Georgia","gf":"French Guiana","gh":"Ghana","gi":"Gibraltar","gl":"Greenland","gm":"Gambia","gn":"Guinea","gp":"Guadeloupe","gq":"Equatorial Guinea","gr":"Greece","gt":"Guatemala","gu":"Guam","gw":"Guinea-bissau","gy":"Guyana","hk":"Hong Kong","hn":"Honduras","hr":"Croatia","ht":"Haiti","hu":"Hungary","id":"Indonesia","ie":"Ireland","il":"Israel","in":"India","io":"British Indian Ocean Territory","iq":"Iraq","ir":"Iran","is":"Iceland","it":"Italy","jm":"Jamaica","jo":"Jordan","jp":"Japan","ke":"Kenya","kg":"Kyrgyzstan","kh":"Cambodia","ki":"Kiribati","km":"Comoros","kn":"Saint Kitts and Nevis","kp":"North Korea","kr":"South Korea","kw":"Kuwait","ky":"Cayman Islands","kz":"Kazakhstan","la":"Laos","lb":"Lebanon","lc":"Saint Lucia","li":"Lichtenstein","lk":"Sri Lanka","lr":"Liberia","ls":"Lesotho","lt":"Lithuania","lu":"Luxembourg","lv":"Latvia","ly":"Libya","ma":"Morocco","mc":"Monaco","md":"Moldova Republic","me":"Montenegro","mg":"Madagascar","mh":"Marshall Islands","mk":"Macedonia","ml":"Mali","mm":"Myanmar","mn":"Mongolia","mo":"Macau","mp":"Northern Mariana Islands","mq":"Martinique","mr":"Mauritania","ms":"Montserrat","mt":"Malta","mu":"Mauritius","mv":"Maldives","mw":"Malawi","mx":"Mexico","my":"Malaysia","mz":"Mozambique","na":"Namibia","nc":"New Caledonia","ne":"Niger","nf":"Norfolk Island","ng":"Nigeria","ni":"Nicaragua","nl":"Netherlands","no":"Norway","np":"Nepal","nr":"Nauru","nu":"Niue","nz":"New Zealand","om":"Oman","pa":"Panama","pe":"Peru","pf":"French Polynesia","pg":"Papua New Guinea","ph":"Philippines","pk":"Pakistan","pl":"Poland","pm":"St. Pierre and Miquelon","pr":"Puerto Rico","ps":"Palestine","pt":"Portugal","pw":"Palau","py":"Paraguay","qa":"Qatar","re":"Reunion","ro":"Romania","rs":"Serbia","ru":"Russia","rw":"Rwanda","sa":"Saudi Arabia","sb":"Solomon Islands","sc":"Seychelles","sd":"Sudan","se":"Sweden","sg":"Singapore","sh":"St. Helena","si":"Slovenia","sk":"Slovakia","sl":"Sierra Leone","sm":"San Marino","sn":"Senegal","so":"Somalia","sr":"Suriname","st":"Sao Tome and Principe","sv":"El Salvador","sy":"Syria","sz":"Swaziland","tc":"Turks and Caicos Islands","td":"Chad","tg":"Togo","th":"Thailand","tj":"Tajikistan","tk":"Tokelau","tm":"Turkmenistan","tn":"Tunisia","to":"Tonga","tr":"Turkey","tt":"Trinidad and Tobago","tv":"Tuvalu","tw":"Taiwan","tz":"Tanzania","ua":"Ukraine","ug":"Uganda","us":"United States","uy":"Uruguay","uz":"Uzbekistan","va":"Vatican City","vc":"St. Vincent and the Grenadines","ve":"Venezuela","vg":"Virgin Islands (British)","vi":"Virgin Islands (USA)","vn":"Vietnam","vu":"Vanuatu","wf":"Wallis and Futuna Islands","ws":"Samoa","ye":"Yemen","yt":"Mayotte","za":"South Africa","zm":"Zambia","zw":"Zimbabwe"},"daily_limit":"You have reached your daily spending limit of {{dailyLimit}}.","daily_limit_link":"Update Spending Limit","daily_limit_gold_menu":"Some items exceed your daily spending limit.","daily_limit_reached":"Daily Limit Reached","item_exceeds_daily_limit":"This item exceeds your daily spending limit.","disconnect_authentication":"You have been logged out, please log in again.","disconnect_block":"This performer is currently not available for the block session, please try another model.","disconnect_blocked":"You have been permanently blocked by this performer.","disconnect_booted":"You have been ejected from the room by the performer.","disconnect_booted_by_admin":"Your streaming session has been closed by an administrator.","disconnect_busy":"This performer is currently busy, please try another.","disconnect_declined_exclusive":"This performer is currently not available for exclusive chat, please try another model.","disconnect_ended":"Your chat session has ended.","disconnect_flash_version":"To view this high quality video, you must upgrade to the latest version of Flash. To download this software now,","disconnect_flash_version_link":"click here.","disconnect_ghost":"Video stopped because you can only watch one performer at a time. Please contact Customer Service if you have any further problems.","disconnect_payoff":"You have charge(s) that we have not been able to bill on your credit card. They must be cleared to access a paid session.","disconnect_performer_in_exclusive":"I\'m in an Exclusive 1-on-1 show.","disconnect_preauth":"Your bank rejected our attempt to bill your credit card.","disconnect_status_performer":"The performer you selected has logged off.","disconnect_system":"A system error occurred, contact support if the problem persists.","duration":"Duration","email":"Email","email_models":"Send and receive emails to models","emoji":"Emoji","enable_audio":"Enable Audio","enjoy_access":"Enjoy instant access to my personal show:","enjoy_premium":"Enjoy instant access to Premium features","enjoy_show":"Did you enjoy the show?","enjoy_show_send_gold":"Enjoy the show? Send me GOLD :)","enter_custom_amount":"Enter Custom Amount","enter_full":"Enter Full Show","enter_gold_show":"Enter My GOLD Show","enter_guest":"Enter My Free Chat Now","enter_paid":"Enter Paid Chat","enter_private":"Enter Private","enter_private_long":"Enter My Private Live Show","enter_show":"Enter Show","esf_billing_error":"There was an error spending your credits, please contact customer support.","ess_modal":{"header1":"I\'m online right now,","header2":"come and join me.","subheader":"enter your nickname","ctaButton":"Chat with me now!"},"exit_button":"Exit","disconnect_button":"Disconnect","favorite_added_message":"Favorite added","favorite_removed_message":"Favorite removed","favorited_message":"Performer Favorited","featuring":"Featuring","finished_show":"I just finished my show...","free_account":"Get a Free Account","free_preview_expired":"Your free sneak preview has expired. Join now for FREE for unlimited guest access.","freemium_chat_notification":"To chat with me click here to unlock premium access","font_size":"Font size","forgot_password":"Forgot password?","generous_tip":"Show me how you feel","generous_tip_toy":"Give GOLD to activate my toy","give_amount_gold":"Give {{amount}} GOLD","give_gold_disabled":"Cannot Give GOLD","give_gold":"Give GOLD","goal":"GOAL","gold":"GOLD","gold_excited":"GOLD!","gold_billed":"* You will be billed by {{billedas}} in your own currency.","gold_countdown_preshow":"Help Me Reach My Goal in:","gold_disabled_in_paid":"Gold disabled in paid shows","gold_in_progress":"GOLD Show in progress...","gold_in_progress_timer":"You are joining a GOLD Show already in progress. Timer shows length of time left in the show.","gold_limit_msg":"Current maximum GOLD that can be given is {{limit}}.","gold_nomoney_warning":"Minimum of {{mingold}} is required to send GOLD. You have a maximum of {{maxgold}} available to spend.","gold_popup_gold_failure_prebill":"A system error or authorization charge attempt failure has occurred. Please try to send GOLD at a later time.","gold_popup_gold_failure_limit":"The amount entered is larger than your daily limit. Please adjust amount entered and resend.","gold_popup_gold_failure_no_show":"The GOLD Show is no longer available.","gold_popup_gold_failure":"A system error has occurred. Please try to send GOLD at a later time.","gold_popup_max":"You have a maximum of {{amount}} available to spend.","gold_popup_min":"You must give at least {{amount}} GOLD.","gold_popup_nomoney":"Thank you for using {{sitename}}. You have hit your GOLD limit in a paid session. Contact Support via Live Support or call to speak to a representative","gold_popup_nomoney_short":"You have hit your GOLD limit in a paid session. Contact Support via Live Support or call to speak to a representative.","noservices_alert":"An issue has been detected with your account.","noservices_message":"Please update your payment information or contact one of our customer service representatives.","gold_preshow_help":"You will NOT be billed if the performer cancels the show.","gold_show":"GOLD Show","goldshow_time_left":"remaining","gold_menu":"GOLD Menu","gold_menu_short":"Menu","gold_menu_view":"View My GOLD Menu","gold_menu_instructions":"Make a request by selecting an item on the menu","spin_gold":{"tab_title":"WHEEL SPIN","tab_title_short":"WHEEL","modal_header":"Spin and I\'ll do one of these:","see_all_items":"See All Items on the Wheel","spinning_now":"Spinning Now!","spin_the_wheel":"Spin The Wheel"},"gold_menu_choice":{"blow_job_tease":"Blowjob Tease","dirty_talk":"Dirty Talk","flash_tits":"Flash Tits","flex":"Flex","say_my_name":"Say My Name","show_ass":"Show Ass","show_feet":"Show Feet","spank":"Spank","sph":"SPH","stand_up":"Stand Up","twerk":"Twerk","dp":"DP","5x_spanks":"5x Spanks","ahegao_face":"Ahegao Face","anal":"Anal","armpit":"Armpit","asmr":"ASMR","ass_squeeze":"Ass Squeeze","asshole_flash":"Asshole Flash","ballgag":"Ballgag","bend_over":"Bend Over","birthday_wishes":"Birthday Wishes","blow_a_kiss":"Blow a Kiss","blow_job":"Blow Job","blow_job_with_toy":"Blow Job with Toy","boob_flex":"Boob Flex","bounce_tits":"Bounce Tits","bush_flash":"Bush Flash","butt_plug":"Butt Plug","cam_close_up_on_boobs":"Cam Close Up on Boobs","cam_close_up_on_cock":"Cam Close Up on Cock","cam_close_up_on_face":"Cam Close Up on Face","cam_close_up_on_feet":"Cam Close Up on Feet","cam_close_up_on_pussy":"Cam Close Up on Pussy","camel_toe":"Camel Toe","change_outfit":"Change Outfit","dance":"Dance","deep_throat_tease":"Deep Throat Tease","dildo_play":"Dildo Play","dirty_story":"Dirty Story","doggy_position":"Doggy Position","findom":"Findom","finger_your_pussy":"Finger Your Pussy","flash_pussy":"Flash Pussy","flip_off":"Flip Off","foot_job":"Foot Job","get_naked":"Get Naked","goddess_appreciation":"Goddess Appreciation","hand_bra":"Hand Bra","headstand":"Headstand","heels_on":"Heels On","hitachi_toy":"Hitachi / Magic Wand","ice_tease":"Ice Tease","insult":"Insult","jump_up_and_down":"Jump Up and Down","keep_top_off":"Keep Top Off","lactate":"Lactate","lick_lips":"Lick Lips","lipstick":"Lipstick","lotion_tease":"Lotion Tease","make_me_cum":"Make Me Cum","make_me_drool":"Make Me Drool","make_me_gag":"Make Me Gag","make_my_pussy_drip":"Make My Pussy Drip","massage_breasts":"Massage Breasts","moan":"Moan","moan_my_name":"Moan my Name","name_on_body":"Name on Body","nipple_clamps":"Nipple Clamps","oil_tease":"Oil Tease","paddle_ass":"Paddle Ass","panties_off":"Panties Off","panty_stuffing":"Panty Stuffing","pantyhose_off":"Pantyhose Off ","pantyhose_off_non_nude":"Pantyhose Off (non-nude)","pantyhose_on":"Pantyhose On","pantyhose_on_non_nude":"Pantyhose On (non-nude)","pigtails":"Pigtails","pinch_nipples":"Pinch Nipples","pole_dance":"Pole Dance","pussy_smacks":"Pussy Smacks","quick_spin":"Quick Spin","rate_cock":"Rate Cock","ride_on_that_cock":"Ride on that Cock","send_video":"Send Video","shake_ass":"Shake Ass","shoe_change":"Shoe Change","show_belly":"Show Belly","show_pink":"Show Pink","show_tongue":"Show Tongue","show_toys":"Show Toys","sloppy_blowjob":"Sloppy Blowjob","smile":"Smile","smoke_a_cigarette":"Smoke a Cigarette","song_request":"Song Request","spit":"Spit","spread_ass":"Spread Ass","spread_pussy":"Spread Pussy","squirt":"Squirt","strap-on":"Strap-on","striptease":"Striptease","suck_finger":"Suck Finger","suck_toes":"Suck toes","tit_fuck_tease":"Tit Fuck Tease","tribute":"Tribute","type":"Type","wet_t_shirt":"Wet T-shirt","wink":"Wink","toy_hand_job":"Toy Hand Job","cum_play":"Cum Play","10x_spanks":"10x spanks","boot":"Boot","booty_flash":"Booty Flash","bounce_ass":"Bounce Ass","flog":"Flog","full_body_tease":"Full body tease","lush":"Lush","marker":"Marker","nipple_lick":"Nipple Lick","oil_ass":"Oil ass","oil_tits":"Oil tits","pillow_hump":"Pillow Hump","play_tic_tac_toe_with_me":"Play tic tac toe with me","push_ups":"Push Ups","rate_your_dick":"Rate your dick","rub_my_panties":"Rub My Panties","sarcasm":"Sarcasm","send_picture":"Send picture","sexy_yoga":"Sexy Yoga","shake_that_booty":"Shake that booty","shake_weight":"Shake weight","show_ink":"Show ink","squats":"Squats","suck_dildo":"Suck dildo","suck_nipple":"Suck Nipple","thighmaster":"Thighmaster","titty_smacks":"Titty smacks","topless_dance":"Topless Dance","topless_spin":"Topless spin","vibe":"Vibe","vibe_10s":"Vibe (10s)"},"go_exclusive":"Go Exclusive","go_exclusive_delay":"You must wait {{time}} before you can upgrade from Private to Exclusive","go_private":"Go Private","guest":"Guest","guests":"Guests","guest_chat_system_message":"Welcome {{username}} to my live chat room. Type in the box to chat with me.","guest_chat_system_message_fosta":"Please do not share contact information with the performers.","v2_welcome_chat_system_message":"Welcome {{username}} to my live chat room!","v2_welcome_guest_chat_system_message":"Welcome to my live chat room!","v2_welcome_chat_system_message_fosta":"Please do not share contact information.","have_account":"Already a member?","inmail_private_message_me":"Private Message Me","join":"Join","join_show":"Join the Show","join_my":"Join My","join_my_live_show":"Join My Live Show!","join_my_gold_show":"Join My GOLD Show!","keep_in_contact":"Keep in Contact","lb_add_new_card":"Add Card","lb_anonymous_members":"Anonymous Members","lb_block_description":"Discounted Block Session","lb_block_exclusive":"Discounted Exclusive Block Session","lb_block_premium":"Discounted Premium Block Session","lb_block_subtext":"Up to an additional {{maxdiscount}} OFF!","lb_confirm":"Confirm","lb_contact_support":"Contact Support","lb_enjoy_show":"Enjoy The Show","lb_exclusive_description":"EXCLUSIVE","lb_exclusive_subtext":"1 on 1 sessions with you and me only","lb_gold":"GOLD","lb_premium_description":"PRIVATE","lb_premium_subtext":"Other customers may chat with me","lb_reconnect":"Reconnect","lb_reserve_short":"Reserve Your Spot","lb_resume_description":"Resume Discounted Block Session","lb_resume_subtext":"{{minduration}} minutes remaining at {{rate}}","lb_retry":"Retry","lb_update_info":"Update Info","leave_review":"Post a public review","link_add_fav":"Add Me To Favorites","link_remove_fav":"Remove Me From Favorites","live":"Live","live_cam":"{{performername}}\'s Live Cam","login":"Login","log_in":"Log In","manage_account":"Manage your account and much much more...","me":"ME","messenger":"Messenger","microphone_off":"Turn microphone off","microphone_on":"Turn microphone on","microphone_toggle":"Toggle microphone","microphone_toggle_disabled":"Toggle microphone disabled","minimum_buyin":"{{amount}} Minimum Buy-In","minute":"{{time}} minute","minutes":"{{time}} minutes","model_notifications":"Receive alerts when models are online","monitored":"Shows may be monitored for quality control.","more":"More","msg_give_gold_failed":"Sorry, your give gold attempt failed.","msg_give_gold_failed_esf":"Sorry, your give gold attempt failed. You may have attempted to give more than your available balance.","my_gold_show":"My GOLD Show","my_shows":"My Shows","new_msg_give_gold":"You + {{amount}}","msg_give_gold_menu":"You + {{amount}} {{keyword}}","v2_new_msg_give_gold":"+{{amount}}","v2_msg_give_gold_menu":"+{{amount}} {{keyword}}","nickname":"nickname","no":"No","no_drivers_header":"Your browser doesn\'t support this model\'s video.","no_drivers_msg":"You can try a different model, update your browser to the latest version, or try a different browser.","not_member":"Not a member yet?","notice_session_ended":"Site Notice - your chat session has ended","ok":"OK","on_break":"I\'m taking a short break.","online_now":"I\'m currently performing live...","oops":"Oops!","oops_somethings_wrong":"Oops! Something went wrong.","or_give_gold":"(or) Give GOLD!*","password":"Password","performer_offline":"I\'m currently offline.","offline":"Offline","performing_live":"I\'m currently performing live...","post_anonymously":"Show my nickname","powered_by":"Powered by","prebill_private_show":"An initial payment of {{prebill_amount}} is required to enter the full show.","premium_sessions":"Premium and Exclusive chat sessions ","prepaid_balance":{"add":"Add Funds Now","alert":"Oops! Your {{sitename}} prepaid balance is {{amount}}.","must_add":"You must add funds to your prepaid balance.","exhausted":"You have spent your {{sitename}} prepaid balance.","current":"Your prepaid balance is currently {{amount}}","suggest_add_funds_for_show":"Please consider adding funds to enjoy the full show.","require_add_funds_for_show":"You must add funds to enjoy the full show.","show_ended":"Show has ended because your prepaid balance is now {{amount}}.","show_ended_add_funds":"Please consider adding funds now."},"preview_chat_system_message":"To talk to this model please join for free, or login if you are already a member.","privcalls_connect_message_1":"Caller: Setting some stuff up (Illustrating override capabilities for these messages)","privcalls_connect_message_2":"Caller: Figuring out how to send stuff","privcalls_connect_message_3":"Caller: Waiting for the person you called","privcalls_connect_message_4":"Caller: Figuring out how to get their stuff","privcalls_connect_message_5":"Caller: Waiting to receive the stuff they\'re sending","quality":"Quality","quality_icon_tooltip":"Stream Quality","quality_info_tooltip_a":"Higher resolutions will improve picture quality,","quality_info_tooltip_b":"but may result in an inconsistent stream.","quick_chat_saved_messages":"Saved Messages","quick_chat_add_saved_message":"Add new saved message","quick_chat_select_saved_message":"Select a saved message","rate":"{{rate}}/minute","rate_show":"Rate my show:","refresh":"Refresh","remember":"Remember Me","report_content":{"title":"Tell us why you are reporting this content","report_button_text":"Report Content","reason":{"violation":"Violates the site\'s Terms of Service","infringes":"Infringes my rights or other legal concern","stolen":"Stolen material (DMCA)/copyright concerns","abusive":"Abusive, violent, harmful, or hateful actions","minor":"Potentially includes a minor"},"content_type":{"free":"Free","paid":"Paid","content_post":"Report Content Post Content","message":"Report Message Content","photo":"Report Media","video":"Report Video Content","live_stream":"Report Live Content","bio_pic":"Report avatar image"}},"requested":"Requested","reserve_spot":"Reserve A Spot For My Show","reserved_spot":"Your spot is reserved!","reserved_spot_short":"Spot reserved!","resume_session":"Resume your block session ({{discountedrate}} for {{duration}} minutes)","room_full":"Room is full","room_topic":"Room Topic","rotate_to_chat":"Rotate Device To Chat","save":"Save","save_favorites":"Save your favorite models","seconds":"seconds","select_block":"Select Block Session","select_private_show":"Select a Private Show","select_show":"Select your show","select_tip_amount":"Select GOLD amount","send":"Send","show":"Show","show_info":"Show Info","show_duration":"{{duration}} minute show","show_less":"Show less","show_more":"Show more","show_starting":"Show will start soon","show_starts_at":"Show starts at","sign_up":"Create Free Account","sign_up_mobile":"ENTER FREE","similar_models":"Similar Models","site_notice":"Site Notice","start_play":"tap here to view the stream","start_private":"Start Private Show","streaming_issue_black_screen":"Screen is black","streaming_issue_quality":"Image is poor quality","streaming_issue_audio_missing":"Audio is missing","streaming_issue_audio_sync":"Audio is out of sync","streaming_issue_cam2cam":"Cam2Cam issue","streaming_issue_other":"Other","streaming_issue_stutter":"Video is stuttering","streaming_issue_report":"Report Stream Quality","streaming_issue_report_short":"Report Issue","streaming_issue_thank_you":"Thank you for your submission","refresh_page":"Refresh Page","submit":"Submit","support":"Support","tags":"Tags","tags_min_length":"Tags must be at least {{tagLengthMin}} characters long (letters, numbers, spaces, \'-\' and \'_\' only)","tags_max_length":"Tags may be only {{tagLengthMax}} characters in length","tags_max_user_and_global_tags":"You may only have a maximum of {{tagCountMax}} tags","tags_max_tags":"You may enter a maximum of {{tagCountMax}} tags","tags_placeholder":"Add tags, {{tagLengthMin}}-{{tagLengthMax}} characters, use commas","tags_empty":"This model has no tags! Add a tag now!","take_private":"Take me private","terms":"Terms & Conditions","thankyou":"Thank You!","top_contributors":{"title":"Leaderboard","your_pledge":"Your current pledge","you":"(you)","take_1st_cta":"Take 1st Place!","take_the_lead":"Take The Lead!","1st":"will put you in 1st place","2nd":"will put you in 2nd place","3rd":"will put you in 3rd place","take":"TAKE THIS POSITION!","add":"ADD GOLD TO ENTER TOP {{topcontributorplaces}}","top":"TOP CONTRIBUTOR!","unavailable":"Top Contributor list is temporarily unavailable"},"touch_here":"TOUCH HERE TO ENTER THE SHOW","try_again":"Try again","try_again_later":"Please try again later.","until_show":"until show","upgrade_free":"Upgrade to Premium for FREE","upgrade_now":"Upgrade to PREMIUM Now","upgrade_premium":"Upgrade to Premium!","user_shackled":"You have reached your daily spending limit.","users":"Users","use_gold":"Use GOLD","video_resize_large":"View Larger","video_resize_small":"View Smaller","want_to_comment":"Want to comment on the show?","wrn_lt_minbuyin":"The minimum buy-in required to reserve your spot for the show is {{amount}} in a single transaction. You must edit the amount entered and resend.","refresh_warning_line_1":"The video may have loading issues.","refresh_warning_line_2":"Please refresh to try again.","yes":"Yes","cam2cam_end":"End Cam2Cam","cam2cam_confirm_end":"End Cam2Cam?","cam2cam_confirm_end_details":"The model will no longer be able to see or hear you.","cam2cam":"Cam2Cam","cam2cam_disconnect":"Disconnect Cam2Cam","cam2cam_modal":"Accessing this feature will use your device\'s camera and microphone to allow the model to see and hear you.","cam2cam_modal_b":"Request Cam2Cam?","cam2cam_retry_modal":"Would you like to retry?","retry":"Retry","cam2cam_video_in_preview_init":"Starting Cam2Cam Session","cam2cam_cancel_request":"Cancel Cam2Cam Request?","cam2cam_request_denied":"The performer has declined the Cam2Cam request.","cam2cam_request_accepted":"The performer has accepted the Cam2Cam request.","cam2cam_request_timeout":"Your Cam2Cam request has timed out.","cam2cam_request_rejected":"Your Cam2Cam request was rejected.","cam2cam_permission_error":"This performer is not accepting Cam2Cam requests right now.","cam2cam_grant_camera_access":"Please grant camera/microphone access in your web browser.","cam2cam_access_timeout":"Unable to start a Cam2Cam session without camera and microphone access.","cam2cam_broadcaster_err":"Unable to start the Cam2Cam session.","cam2cam_err_end":"Cam2Cam session ended due to error.","cam2cam_performer_end":"The performer has ended the Cam2Cam session.","cam2cam_requires_flash":"This feature requires Adobe Flash player.","cam2cam_get_flash":"Get Adobe Flash player","cam2cam_attach_camera":"Attach a camera to chat Cam2Cam","cam2cam_attach_microphone":"Attach a microphone to chat Cam2Cam","flash_warning":"To continue using this feature, you may need to configure your","cam2cam_optimized_for":"Cam2Cam is currently optimized for:","flash_settings":"Flash settings","close_cam2cam":"Close Cam2Cam?","cam2cam_in_use":"Cam2Cam is currently in use by another person.","cam2cam_available":"Cam2Cam is now available.","cam2cam_audio":"Cam2Cam Audio","cam2cam_reopen_preview":"Reopen Cam2Cam preview.","voice_chat":"Voice Chat","voice_chat_in_use":"Voice Chat in use","voice_modal":"Using this feature will access your device microphone and allow the performer to hear you.","voice_modal_b":"Allow Voice Chat?","voice_chat_cancel_request":"Cancel Voice Chat Request?","turn_off_voice_chat":"Turn Off Voice Chat?","voice_chat_unavailable":"CAM2CAM and/or Voice Chat is currently in use by another person.","required":"Required","2257_content":"In compliance with U.S.C. Title 18, Sections 2257 and 2257A and related regulations, all performers, models, actors, actresses and other persons who appear in any visual depiction of actual or simulated sexually explicit conduct appearing on or otherwise contained on this website are or were 18 years of age or older at the time of the creation of such depictions. Records required to be maintained pursuant to U.S.C. Title 18, Sections 2257 and 2257A are located at and maintained by:","2257_address":"sdroceR fo naidotsuC\\n.cnI ,ygolonhceT FCI\\ntS trawetS 008\\n10189 AW ,elttaeS","tandc_title":"Terms and Conditions","tandc_header":"","tap_click_retry":"Tap or click to retry","request":"Request","stay_in_touch":"Stay In Touch","follow_me":"Follow Me","performer_notifications_title":"Get Notifications","performer_notifcations_desc":"Stay up to date with notifications about this model","performer_notifcations_setup":"Edit Settings","sms_alert_desc":"Receive text messages about this performer","push_not_desc":"Get notified on this device when performer is live","sms_alert_settings_link":"Set Up SMS Settings to enable SMS Alerts","sms_alert_verifying":"We are verifying your SMS information. Check back soon.","start_conversation":"Send a Private Message","payment_declined":"Unfortunately, your chosen payment method was declined.","payment_declined_esf":"You have reached your available balance.","cam2cam_update_browser":"Upgrade to the latest browser version to enjoy Cam2Cam","cam2cam_settings":"Cam2Cam Settings","webcam_off":"Turn camera off","webcam_on":"Turn camera on","browse_my_videos":"Browse My Videos","video_enter_fullscreen":"Enter Fullscreen","video_exit_fullscreen":"Exit Fullscreen","fullscreen_not_supported":"Fullscreen not supported in this browser","open_live_chat":"Open Live Chat","close_live_chat":"Close Live Chat","vibes_on":"My Live Vibe is on!","vibes_description":"When you give GOLD, Live Vibe activates the performer\'s toy, allowing you to have a more interactive show with the performer.","photos_empty":"This performer currently has no photos.","photos_error":"There was an error loading photos.","photos_next":"Next","photos_previous":"Previous","photos_reload":"reload","performer_bio":"Performer Bio","photos":"My Photos","photos_load_more":"Load More Photos","photos_browse":"Browse My Photos","comments_anon":"Anonymous","reviews_empty":"This model has no reviews.","reviews_explain":"Leave a review and rate the model after a private session.","reviews_explain_goldonly":"When you have sent GOLD during a session, leave a review and rate the model upon exiting (if offered).","reviews_load_more":"Load More Reviews","reviews":"Member Reviews","bio_gender":"Gender","bio_sex_pref":"Sexual Orientation","bio_languages":"Languages Spoken","bio_appearance":"Appearance","bio_height":"Height","bio_weight":"Weight","bio_hair_color":"Hair Color","bio_eye_color":"Eye Color","bio_build":"Build","bio_ethnicity":"Ethnicity","bio_cup_size":"Cup Size","bio_cock_size":"Cock Size","bio_pubic_hair":"Pubic Hair","bio_measurements":"Measurements","bio_circumcised":"Circumcised","bio_chest":"Chest","bio_body_hair":"Body Hair","bio_kinky":"Kinky Attributes","bio_features":"Features","bio_expertise":"Expertise","bio_turnons":"Turn Ons","bio_last_performance":"Last Performance","bio_zodiac":"Zodiac","bio_last_performance_has_not_streamed":"Has yet to stream","feature_hd":"High Definition Video","feature_voip":"Confidential Phone Service","test_cam2cam":"Test Cam2Cam","testing_cam2cam":"Testing Cam2Cam","searching_for_microphone":"Searching for microphone...","searching_for_webcam":"Searching for webcam...","receiving_video":"Receiving Video...","receiving_audio":"Receiving Audio...","cam2cam_sucessful":"Cam2Cam Successful","cam2cam_unavailable":"Cam2Cam Unavailable","webcam_failed":"Your webcam is not working correctly","webcam_passed":"Your webcam is working correctly","microphone_failed":"Your microphone is not working correctly","microphone_passed":"Your microphone is working correctly","connection_failed":"Unable to broadcast","connection_passed":"Able to broadcast","having_problems":"Having problems connecting with Cam2Cam?","view_faq":"View FAQ","continue":"Continue","quick_tip":{"title":"Quick GOLD","info":"[[quick_tip.title]] gives you the convenience of sending GOLD with one click. Charges will automatically be processed every time you click one of the [[quick_tip.title]] amounts.","update_custom_info":"Adjust your preferred [[quick_tip.title]] amount.","update_current_amount":"Your current [[quick_tip.title]] amount is {{amount}} GOLD.","update_amount":"Update [[quick_tip.title]] Amount","edit":"Edit [[quick_tip.title]]"},"videos":{"bio_title":"My Videos","bio_title_mobile":"Recent Videos","confirm_purchase_button":"Confirm Purchase","confirm_purchase_title":"Purchase Video","duration":"Video Length","new":"New!","purchase_error_purchase_failed":"We\'re currently unable to process your request. Please try again later.","purchase_error_video_modified":"Some information about the video(s) you selected has changed. Please update your selections and try again.","purchase_over_goldlimit":"New users are only allowed to spend {{newUserSpendingLimitAmount}} per day outside of paid chat.","purchase_success_close":"Close","purchase_success_title":"Thank You!","purchase_success_watch":"Watch Your New Videos","total":"Total","uploaded":"Uploaded","logged_out_hover":"to view and purchase videos","watch_now":"Watch now","fanclub":{"video_all_access":{"tooltip":"You got this video by joining {{performerName}}\'s Fan Club"},"video_all_access_private":{"tooltip":"You got this secret video by joining {{performerName}}\'s Fan Club"}}},"update_payment_info":"Update Payment Information","update_billing_info":"Update Billing Information","update_payment_description":"To access paid services, please update your payment information below or contact our support team for assistance","mute_audio":"Mute Audio","unmute_audio":"Unmute Audio","go_to_top":"Go To Top","notify_me":"Notify Me When Available","notify_me_enabled":"Availability Notification Set","video":"Video","audio":"Audio","on":"On","off":"Off","no_video":"No Video","no_audio":"No Audio","audio_on":"Audio On","performer_attributes":{"bodyhair":{"smooth":"Smooth","shaved/trimmed":"Shaved/Trimmed","moderately hairy":"Moderately Hairy","hairy":"Hairy","furry":"Furry"},"build":{"bbw":"BBW","curvaceous":"Curvaceous","average":"Average","athletic":"Athletic","slender":"Slender","muscular":"Muscular","husky":"Husky","one big boy":"One Big Boy","petite":"Petite","compact":"Compact"},"circumcised":{"cut":"Cut","uncut":"Uncut"},"cocksize":{"pocket size":"Pocket Size","average":"Average","big":"Big","whoa":"Whoa"},"cupsize":{"h plus":"H plus","i plus":"I plus","j plus":"J plus","k plus":"K plus"},"ethnicity":{"white":"White","black":"Black","hispanic":"Hispanic","asian":"Asian","east indian":"East Indian","native american":"Native American","middle-eastern":"Middle-Eastern","pacific islander":"Pacific Islander","mediterranean":"Mediterranean","european":"European","roma":"Roma"},"eyecolor":{"blue":"Blue","green":"Green","hazel":"Hazel","brown":"Brown","grey":"Grey"},"fetishes":{"bdsm":"BDSM","leather":"Leather","rubber":"Rubber","feet":"Feet","smoking":"Smoking","anal":"Anal","underwear":"Underwear","voyeur":"Voyeur","spanking/paddling":"Spanking/Paddling","roleplay":"Roleplay","shaving":"Shaving","stockings/nylons":"Stockings/Nylons","dominant":"Dominant","submissive":"Submissive","deepthroat":"Deepthroat","femdom":"Femdom","lactation":"Lactation","cuckold":"Cuckold","facials (couples)":"Facials (Couples)","creampie (couples)":"Creampie (Couples)","gagging":"Gagging","whips":"Whips","interactive vibrator":"Interactive vibrator"},"gender":{"f":"Female","ff":"Couple (female)","m":"Male","mm":"Couple (male)","mf":"Couple (male-female)","tf2m":"Transsexual (f2m)","tm2f":"Transsexual (m2f)","shm":"Shemale","g":"Group"},"haircolor":{"blond":"Blond","red":"Red","brown":"Brown","black":"Black","white":"White","gray":"Gray","salt and pepper":"Salt and Pepper","dyed":"Dyed"},"languages":{"english":"English","french":"French","spanish":"Spanish","italian":"Italian","german":"German","swedish":"Swedish","portuguese":"Portuguese","dutch":"Dutch"},"pubichair":{"bald":"Bald","hairy":"Hairy","trimmed":"Trimmed"},"sexpref":{"straight":"Straight","gay":"Gay","bisexual":"Bisexual"},"theme":{"pregnancy":"Pregnancy","toys":"Toys","tattoos":"Tattoos","piercings":"Piercings","housewives":"Housewives","non-adult":"Non-Adult","alternadudes":"Alternadudes","daddy":"Daddy"},"zodiac":{"aries":"Aries","taurus":"Taurus","gemini":"Gemini","cancer":"Cancer","leo":"Leo","virgo":"Virgo","libra":"Libra","scorpio":"Scorpio","sagittarius":"Sagittarius","capricorn":"Capricorn","aquarius":"Aquarius","pisces":"Pisces"}},"billing_info":{"fee_percentage":"An additional {{feePercentage}} PayPal service charge will be added to your final purchase.","vat_percentage":"An additional {{taxPercentage}} VAT will be added to your final purchase.","tax_percentage":"An additional {{taxPercentage}} sales tax will be added to your final purchase.","paypal_vat_included":"Pricing includes {{feePercentage}} PayPal service charge and {{taxPercentage}} VAT.","paypal_tax_included":"Pricing includes {{feePercentage}} PayPal service charge and {{taxPercentage}} sales tax.","vat_included":"Pricing includes {{taxPercentage}} VAT.","tax_included":"Sales tax of {{taxPercentage}} included.","paypal_included":"Pricing includes {{feePercentage}} PayPal service charge.","vat_included_text_only":"includes VAT","fee_included_text_only":"includes service charge","vat_fee_included_text_only":"includes service charge and VAT"},"fanclub":{"benefits":{"all_access":"All Access","continue_to_enjoy":"Continue to enjoy the Fan Club benefits until","discount_applied":"Enjoy your Fan Club discount.","no_live_show_discount":"This plan does NOT have a live show discount","percent_exclusive_show_discount":"{{discountPercentage}} discount on all Exclusive Shows","percent_private_show_discount":"{{discountPercentage}} discount on all Private Shows","special_icon":"Special icon next to your name in chat","video_access":{"headline":"Video Store","description_all":"Enjoy all existing and future videos from my store.","description_some":"Enjoy a selection of handpicked videos from my store."},"video_access_private":{"headline":"Secret Video","description_all":"Unlock all existing and future secret videos from my private collection.","description_some":"Unlock select secret videos from my private collection."},"video_collection":"View your Fan Club videos in your","video_collection_link":"Video Collection","video_selected_access":"FREE Access to select videos in my video store","video_upsell":"Fan Club members get FREE access to my videos!","will_end_on":"Benefits will end on"},"blockers":{"contact_support":"Contact Support.","daily_limit_cta":"Update the daily limit.","ineligible":"Sorry, your account is currently not eligible for Fan Club membership.","low_lifetime_spend":"To join a Fan Club, your account must have an active spending history. Continue to enjoy the site and check back later!","spending_not_enabled":"To join a Fan Club, you must have a valid credit card (or other recurring payment method) added to your account.","update_daily_limit":"You cannot join this Fan Club at this time because you have reached your daily limit.","update_now":"Update Now."},"membership":{"cancelled":"Membership Cancelled","cannot_subscribe":"Sorry, your account is not eligible to join Fan Clubs at this time. Please contact support to find out more.","fanclub_member":"Fan Club Member","hi_member":"Hi, Fan Club Member!","join":"Join My Fan Club","join_now":"Join Now!","looks_cancelled":"It looks like you\'ve cancelled your membership.","renew":"Renew","renew_any_time":"You can renew any time","renew_membership":"Renew Membership","subscribe_failed_error":"Subscription could not be created at this time.","success":"You are now a Fan Club member.","unsubscribe":"Unsubscribe","unsubscribe_failed_error":"Subscription could not be cancelled at this time."},"next_billing_date":"Next billing","per_month":"per month","success":"Success!"},"online_activity":{"title":"When I\'m Online","likely_offiline":"Likely offline","not_likely_to_be_online":"Not likely to be online","may_be_online":"May be online","likely_to_be_online":"Likely to be online","very_likely_to_be_online":"Most likely to be online"},"drag_to_resize":{"long":"DRAG TO RESIZE","short":"DRAG TO RESIZE"},"two_factor_authentication":{"button_text":"Send Verification Email","check_junk":"If you don\'t see the email, check your spam or junk folders.","close_snackbar":"Close","expiration":"This link will expire in 1 hour.","max_login_attempts":"You have attempted too many logins in a short period of time. Please try again later.","security":"For security purposes, you will need to verify your account by clicking the link in the verification email once it is received.","send_email_failed":"We\'re sorry. There was a problem with your request. Please refresh the page and try again.","send_email_success":"To complete the verification process, check your email.","verify_to_continue":"Verify your email to continue..."},"system_chat_messages":{"goldSent":"{{nickname}} + {{goldAmount}}","goldSentWithKeyword":"{{nickname}} + {{goldAmount}} {{keyword}}","goldShowCanceled":"Sorry. The show was not started. If you pledged GOLD, you will not be billed.","goldShowGoalReached":"GOLD Show goal reached! Performer will start the show shortly.","userLoggedOff":"{{nickname}} has logged off","userLoggedOn":"{{nickname}} has logged on","blockSessionOneMinuteLeft":"You have 1 minute remaining on your {{durationMin}} minutes Block Session, but feel free to continue chatting. We will automatically switch back to the per-minute system, and your discounted price will continue to apply.","blockSessionMinutesLeft":"You have {{timeLeftMin}} minutes remaining on your {{durationMin}} minutes Block Session, but feel free to continue chatting. We will automatically switch back to the per-minute system, and your discounted price will continue to apply."},"bitrate_selector":{"source":"Source","high":"High","medium":"Medium","low":"Low"},"wait_to_join":"Please wait to join my show.","will_be_connected":"You will be connected in","unable_to_join":"Sorry, unable to join the show. Please try again later.","clear_cache":"Please clear your browser\'s cache, then refresh to try again.","you":"You","cam_permission":"Camera unavailable, please ensure you have enabled browser permissions and have a capable device and try again.","mic_permission":"Microphone unavailable, please ensure you have enabled browser permissions and have a capable device and try again.","18_plus":"All models appearing on this website are 18 years or older.","view_profile":"View Profile","copyright":"All rights reserved.","prebill_payment_declined_title":"Payment Declined","prebill_payment_declined_paypal":"Your payment was declined by PayPal.\\nPlease visit PayPal to choose another funding source."}');function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t=0;)n=n.replace(e,t[e])})),n}},{key:"removeHtmlTags",value:function(e){return e?e.replace(/<[^>]*>/g,""):e}},{key:"scrubEntities",value:function(e){if(null==e)return e;if("string"!=typeof e)return e;if(e.indexOf("&")<0)return e;var t=e;return(t=t.replace(/.script>[\S\s]*?<\/script./gim,""))&&"string"==typeof t&&(this._translatorElement.innerHTML=t,t=this._translatorElement.textContent,this._translatorElement.textContent=""),t}},{key:"_preprocess",value:function(e,t,n){var o=d()(e);return n?(Object.keys(t).forEach((function(e){var r=t[e]||"",i="{{"+e+"}}";n[i]&&n[i].forEach((function(e){var t=m()(o,e).replace(i,r);A()(o,e,t)}))})),o):o}},{key:"_findTemplateVariables",value:function(e,t){var n={};return this._findTemplateVariablesRecursive(e,[],n,t),n}},{key:"_findTemplateVariablesRecursive",value:function(e,t,n,o){var i=this;Object.keys(e).forEach((function(s){if("object"!==(0,r.A)(e[s])){i._replaceInternalStrings(e,s,o);var a=e[s].match(S);a&&a.forEach((function(e){n[e]||(n[e]=[]),n[e].push(t.concat(s).join("."))}))}else i._findTemplateVariablesRecursive(e[s],t.concat(s),n,o)}))}},{key:"_replaceInternalStrings",value:function(e,t,n){for(var o=[],r=/\[\[(.+?)\]\]/gm,i=/\[\[(.+?)\]\]/gm,s=[];null!==(o=r.exec(e[t]));){var a=m()(n,o[1]);a?a&&a.match(i)?(console.error("String for key: ".concat(o[1]," uses unsupported nested interpolation")),g.A.DEBUG):s.push([o[0],a]):(console.error("String key ".concat(o[1]," not found")),g.A.DEBUG)}s.forEach((function(n){e[t]=e[t].replace(n[0],n[1])}))}},{key:"measureStringWidth",value:function(e,t){var n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width}}]),e}());const T=C;var O=C.getString,I=(C.localizationExists,C.stringExists,"en"),w=" "},"./src/stores/ChatStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>ue});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),d=n("./node_modules/lscache/lscache.js"),p=n.n(d),m=n("webpack/sharing/consume/default/react/react"),h=n.n(m),A=n("./node_modules/styled-components/dist/styled-components.browser.esm.js"),f=n("./src/lib/Dispatcher.js"),g=n("./src/lib/RoomClient.ts"),y=n("./src/lib/Strings.js"),v=n("./src/constants/Actions.js"),b=n("./src/constants/ChatConstants.ts"),_=n("./src/constants/Messages.js"),E=n("./src/constants/NaiadSessionType.js"),S=n("./src/constants/Platforms.ts");const C="preauth",T="shackled";var O=n("./src/constants/RpcCalls.js"),I=n("./src/stores/ConnectionStore.js"),w=n("./src/stores/GoldMenuStore.ts"),P=n("./src/stores/GoldShowStore.js"),k=n("./src/stores/LayoutStore.js"),R=n("./src/stores/PerformerStore.ts"),D=n("./src/stores/PerformerSubscribersStore.js"),L=n("./src/stores/UserStore.js"),x=n("./src/stores/XmentStore.ts"),N=n("./src/utils/billing.ts"),j=n("./src/utils/FluxStoreExtended.ts"),M=n("./src/utils/gold.js"),B=n("./src/utils/goldMenu.ts"),U=n("./src/utils/log.js"),G=n("./src/utils/spinGold.ts"),V=n("./src/utils/tools.ts"),F=n("./node_modules/@atg/icf-react-components/components/SvgIcon/index.js"),H=n.n(F),Y=n("./node_modules/theming/dist/theming.esm.js");const W=function(e){var t=e.iconName,n=e.text,o=(0,Y.DP)();return h().createElement(h().Fragment,null,h().createElement(H(),{name:t,style:{width:"14px",height:"14px",minWidth:"auto",minHeight:"auto",verticalAlign:"text-bottom"},marginRight:.5*o.spacing.base}),n)};var z=n("./src/components/goldmenu/GoldMenuButton.js"),q=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),K=n("./src/components/gold/GoldChatUpsell.tsx"),Q=n("./src/constants/StatsEvents.js"),X=n("./src/constants/LomsEvents.js"),Z=n("./src/utils/lomsTools.js"),J=n("./src/utils/forPlatforms.tsx");function $(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}var ee=function(e){(0,a.A)(n,e);var t=$(n);function n(e){var r,s=e.props;(0,i.A)(this,n),r=t.call(this,s),(0,o.A)((0,q.A)(r),"onStoreChange",(function(){var e=(0,B.z)(),t=e.visible,n=e.enabled;t===r.state.visible&&n===r.state.enabled||r.setState({visible:t,enabled:n})}));var a=(0,B.z)(),l=a.visible,c=a.enabled;return r.state={enabled:c,visible:l,tokens:[]},r}return(0,s.A)(n,[{key:"componentDidMount",value:function(){var e=this;this.setState({tokens:B.w.map((function(t){return t.addListener(e.onStoreChange)}))})}},{key:"componentWillUnmount",value:function(){this.state.tokens.forEach((function(e){return e.remove()}))}},{key:"handleInitialClick",value:function(){var e=this.props.goldMenuItem,t=k.Ay.getState().layout;return!!(0,N.F)({givingGold:!0})&&((0,Z.DM)("".concat(X.A.CTA_BUTTONS.GOLD_MENU_ITEM,".").concat(e.keyword),t),!0)}},{key:"removeSelf",value:function(){var e=this.props.identifier;(0,K.QE)(e)}},{key:"handleConfirmSpendClick",value:function(){var e=this.props.goldMenuItem.keyword.toLowerCase().replace(/\s/g,"").replace(/\./g,"_");U.A.statsIncCounter(Q.A.GOLD_MENU.ITEM_BASE+e)}},{key:"render",value:function(){var e=this,t=this.props.goldMenuItem,n=this.state,o=n.visible,r=n.enabled;return o?h().createElement(K.Ay,{identifier:this.props.identifier,goldAmountFractional:t.cost,onInitialClick:function(){return e.handleInitialClick()},onConfirmSpendClick:function(){return e.handleConfirmSpendClick()},anonymizedEventName:"GoldMenuChatUpsell",initialUpsellLabel:(0,y.AA)("gold_menu_choice.".concat(t.keyword))||t.description,disabled:!r,upsellSubmitOptions:{goldMenuItem:t}}):(setTimeout((function(){return e.removeSelf()})),null)}}]),n}(m.Component);const te=(0,J.A)({exclude:[S.Ay.EXTERNAL_SITE_SHOW]})(ee);var ne=n("./src/components/spingold/SpinGoldButton.tsx");function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function re(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.identifier,o=void 0===n?void 0:n,r=t.isItalic,i=void 0!==r&&r;e?this.addMessage({type:b.A.USERTYPE_SYSTEM,text:e,isSystem:!0,flags:b.A.RPCFLAGS_SYSMSG,isItalic:i,identifier:o}):U.A.error("attempting to add empty system message")}},{key:"addTemplateSystemMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.templateVariables,o=void 0===n?{}:n,r=t.isItalic,i=void 0!==r&&r,s=t.isGold,a=void 0!==s&&s;e?this.addMessage({type:b.A.USERTYPE_SYSTEM,isSystem:!0,flags:b.A.RPCFLAGS_SYSMSG+(a?b.A.RPCFLAGS_GOLDMSG:0),isItalic:i,isGold:a,stringPath:e,templateVariables:o}):U.A.error("attempting to add empty system message")}},{key:"_maintainQueueLength",value:function(e){return e.length>b.A.MAX_MESSAGES&&e.splice(-1,1),e}},{key:"handleLoadConfig",value:function(e){var t=e.config,n=e.platform;t.user&&(ce.usernickname=t.user.nickname),ce.platform=n}},{key:"sendMessageToSocket",value:function(e,t,n){if(!0!==ce.waitToSend)if(L.A.getState().isNonBillable&&t!==E.A.EXTERNAL){U.A.usageTick("freemium_chat_upsell_request"),U.A.statsIncCounter("session.freemium.upsell.chat.request");(0,f.T)({type:v.A.DISPLAY_MESSAGE,data:{message:(0,r.A)(se,{onClick:function(){U.A.usageTick("freemium_chat_upsell_click"),U.A.statsIncCounter("session.freemium.upsell.chat.click"),(0,V.Zj)(_.A.NONBILLABLE_USER,{})}},void 0,y.Ay.getString("freemium_chat_notification"))}})}else{if(t===E.A.PREVIEW)return U.A.usage("requires_auth"),void(0,V.Zj)(_.A.REQUIRES_AUTH,{userType:n});if(t===E.A.BASIC&&!L.A.getState().allowBasicChat)return U.A.usage("user_nonpremium",n),void(0,V.Zj)(_.A.NONPREMIUM_USER,{});U.A.info("Sending Message via RoomClient:"+JSON.stringify(e.text)),U.A.statsIncCounter("messages.sent.attempted"),g.Ay.sendChatMessage(e.text,e.isPrivate)}else U.A.info("not sending chat message while waiting for performer to accept session")}},{key:"handleSendingMessage",value:function(e){var t=e.message,n=e.sessionType,o=e.userType;U.A.usageTick("chat_sendmessage"),ce.chat="",this.sendMessageToSocket(t,n,o),this.addMessage(this.nicknameDecorator(t))}},{key:"handleRoomClientGiveGold",value:function(e){var t,n=e.failed,o=e.info,r=e.keyword,i=Boolean(x.A.getState().improvedCamPageFullscreenUI),s=i?"v2_":"";if(n)t=L.A.getState().isExternalSiteFunds?y.Ay.getString("msg_give_gold_failed_esf"):y.Ay.getString("msg_give_gold_failed");else{var a="".concat((0,M.MN)(o.amount));t=r?y.Ay.getString("".concat(s,"msg_give_gold_menu"),y.Ay.htmlToUtf(a),y.Ay.getString("gold_menu_choice.".concat(r))):y.Ay.getString("".concat(s,"new_msg_give_gold"),y.Ay.htmlToUtf(a))}var l={type:b.A.USERTYPE_SYSTEM,nickname:i?ce.usernickname:"",text:t,isPerformer:!1,flags:b.A.RPCFLAGS_GOLDMSG,isGold:!0};i&&(l=this.nicknameDecorator(l)),this.addMessage(l)}},{key:"handleRoomClientPledgeGold",value:function(e){var t,n;if(e.failed)t=e.info.failureReason===C?"gold_popup_gold_failure_prebill":e.info.failureReason===T?"gold_popup_gold_failure_limit":"gold_popup_gold_failure";else{if(!e.info.amount)return;t="new_msg_give_gold",n=(0,M.MN)(e.info.amount)}this.addMessage({type:b.A.USERTYPE_SYSTEM,nickname:"",text:y.Ay.getString(t,n),isPerformer:!1,flags:b.A.RPCFLAGS_GOLDMSG,isGold:!0})}},{key:"nicknameDecorator",value:function(e){var t,n,o=ce.usernickname||y.Ay.getString("guest"),r=D.A.getState().userIsSubscribed||!1,i=null!==(t=null===(n=L.A.getState().rewards)||void 0===n?void 0:n.tierId)&&void 0!==t?t:null,s=I.A.getState().goldOnly;return re(re({},e),{},{nickname:o,showSubscriberBadge:r,tierId:i,isGoldOnlySkin:s})}},{key:"handleRoomConnected",value:function(e){var t,n,o=Boolean(x.A.getState().improvedCamPageFullscreenUI),r=null!==(t=null==e||null===(n=e.authInfo)||void 0===n?void 0:n.nickname)&&void 0!==t?t:"";if(ce.platform===S.Ay.EXTERNAL_SITE_SHOW&&(ce.usernickname=r||y.Ay.getString("you")),!ce.authorized&&!o){var i=ce.usernickname?{username:ce.usernickname}:{username:{stringPath:"guest"}};this.addTemplateSystemMessage("guest_chat_system_message",{templateVariables:i}),this.addTemplateSystemMessage("guest_chat_system_message_fosta",{isItalic:!0}),ce.authorized=!0}if(L.A.isLoggedIn()&&!ce.authorized&&o&&this.addTemplateSystemMessage("v2_welcome_chat_system_message_fosta"),!ce.authorized&&o){var s=R.A.getState().nickname;this.addMessage({identifier:"welcomemessage-".concat(Date.now()),type:b.A.USERTYPE_PERFORMER,stringPath:L.A.isLoggedIn()?"v2_welcome_chat_system_message":"v2_welcome_guest_chat_system_message",templateVariables:{username:ce.usernickname},nickname:s,isPrivate:!1,isSystem:!1,isItalic:!1,isGold:!1,showSubscriberBadge:!1}),ce.authorized=!0}this.initializeUpsells()}},{key:"handleRoomEnteredPaid",value:function(){this.addTemplateSystemMessage("chat_paid_message")}},{key:"handleTogglePrivacy",value:function(e){var t=Boolean(x.A.getState().improvedCamPageFullscreenUI);if(ce.private=e,t||this.addTemplateSystemMessage(e?"chat_hidden":"chat_visible"),t){var n=Date.now(),o=e?"visibilityOff":"visibility",i=e?"chat_hidden":"chat_visible";this.addMessage({identifier:e?"chathidden-".concat(n):"chatvisible-".concat(n),type:b.A.USERTYPE_DEFAULT,text:(0,r.A)(W,{iconName:o,text:(0,y.AA)(i)}),isPrivate:!1,isSystem:!1,isItalic:!1,isGold:!1,showSubscriberBadge:!1})}}},{key:"handleUserRequestPrivate",value:function(e){("exclusive"===e.streamType||e.blockDuration&&e.blockDuration>0)&&(ce.waitToSend=!0)}},{key:"handleSessionAccepted",value:function(){ce.waitToSend=!1}},{key:"handleIncreaseFontSize",value:function(){this.setFontSize(ce.desktopFontSize+1)}},{key:"handleDecreaseFontSize",value:function(){this.setFontSize(ce.desktopFontSize-1)}},{key:"handleRoomClientSystemMessage",value:function(e){var t=e.message,n=t.systemMessageKind,o=t.participant,r=t.amount;switch(P.A.isInProgress()&&U.A.statsIncCounter("room-client-goldshow-message.system"),n){case"goldSent":this.handleRoomGoldSentMessage(t);break;case"goldShowPledge":this.addTemplateSystemMessage("system_chat_messages.goldSent",{templateVariables:{nickname:o.nickname,goldAmount:(0,M.MN)(r)},isGold:!0});break;case"goldShowGoalReached":case"goldShowCanceled":this.addTemplateSystemMessage("system_chat_messages.".concat(n));break;case"userLoggedOn":case"userLoggedOff":this.addTemplateSystemMessage("system_chat_messages.".concat(n),{templateVariables:{nickname:o.nickname}});break;case"blockSessionMinutesLeft":this.addTemplateSystemMessage(1===t.timeLeftMin?"system_chat_messages.blockSessionOneMinuteLeft":"system_chat_messages.blockSessionMinutesLeft",{templateVariables:re({durationMin:t.durationMin},t.timeLeftMin>1&&{timeLeftMin:t.timeLeftMin})});break;default:U.A.error({message:"room-client-message-system-unknown",systemMessageKind:n})}}},{key:"handleRoomGoldSentMessage",value:function(e){var t=e.participant,n=e.amount,o=e.goldItemKeyword,r=o&&y.Ay.getString("gold_menu_choice.".concat(o));this.addTemplateSystemMessage(r?"system_chat_messages.goldSentWithKeyword":"system_chat_messages.goldSent",{templateVariables:re({nickname:t.nickname,goldAmount:(0,M.MN)(n)},r&&{keyword:r}),isGold:!0})}},{key:"handleRoomClientLiveChatMessage",value:function(e){var t=e.message,n=t.sender,o=t.content;if(P.A.isInProgress()){U.A.statsIncCounter("room-client-goldshow-message.chat");var r=P.A.getState().id;ce.goldShowChatCounter[r]?ce.goldShowChatCounter[r]++:ce.goldShowChatCounter[r]=1}this.addMessage({type:n.type===b.A.ROOMMESSAGE_PERFORMER_MESSAGE?b.A.USERTYPE_PERFORMER:b.A.USERTYPE_DEFAULT,text:o,isSystem:!1,isPerformer:n.type===b.A.ROOMMESSAGE_PERFORMER_MESSAGE,nickname:n.nickname})}},{key:"handleRoomStatusChanged",value:function(e){var t;if("goldShow"===e.status)null!=e&&null!==(t=e.goldShowInfo)&&void 0!==t&&t.goldShowId&&(ce.latestGoldShowId=e.goldShowInfo.goldShowId);else if("goldShow"===e.previousStatus&&"inCountdown"===e.status){if(ce.latestGoldShowId)ce.goldShowChatCounter[ce.latestGoldShowId]||(U.A.info({message:"no-chat-messages-during-goldshow",labels:{goldShowId:ce.latestGoldShowId}}),U.A.statsIncCounter("room-client-goldshow-no-messages"))}}},{key:"handleReset",value:function(){clearTimeout(ce.upsellTimeout),ce=le()}},{key:"setMessage",value:function(e){ce.chat=e}},{key:"appendMessage",value:function(e){ce.chat+=e}},{key:"setUserNickname",value:function(e){ce.usernickname=e}},{key:"setFontSize",value:function(e){var t=b.A.MIN_DESKTOP_FONT_SIZE,n=b.A.MAX_DESKTOP_FONT_SIZE;ce.desktopFontSize=Math.min(Math.max(e,t),n),p().set("desktopFontSize",ce.desktopFontSize)}},{key:"getCachedFontSize",value:function(){return ae()}},{key:"canIncreaseFontSize",value:function(){return ce.desktopFontSizeb.A.MIN_DESKTOP_FONT_SIZE}},{key:"showGoldMenuButton",value:function(){ce.messagesSinceUpsell=0,ce.hasShownInitialUpsell=!0;var e="goldmenubutton-".concat(Date.now());this.addSystemMessage((0,r.A)(z.A,{isChatUpsell:!0,identifier:e}),{identifier:e})}},{key:"showSpinGoldButton",value:function(){ce.messagesSinceUpsell=0,ce.hasShownInitialUpsell=!0;var e="spingoldbutton-".concat(Date.now());this.addSystemMessage((0,r.A)(ne.A,{chatUpsellIdentifier:e}),{identifier:e})}},{key:"showGoldMenuItem",value:function(e){var t=I.A.getState().goldOnly,n=w.A.getState(),o=n.goldMenuItems,i=n.goldOnlyGoldMenuItems,s=(t?i:o).find((function(t){return t.keyword===e}));if(s){var a="goldmenuchatitem-".concat(e,"-").concat(Date.now());ce.messagesSinceUpsell=0,ce.hasShownInitialUpsell=!0,this.addSystemMessage((0,r.A)(te,{goldMenuItem:s,identifier:a}),{identifier:a})}}},{key:"handleChatUpsells",value:function(){ce.hasShownInitialUpsell?(ce.messagesSinceUpsell===b.A.UPSELL_GOLD_MENU_CHAT_MESSAGES_THRESHOLD&&this.dispatchGoldMenuOrSpinGoldUpsell(b.A.UPSELL_INTERVAL_MS),ce.goldMenuItemUpsellsEnabled&&ce.messagesSinceUpsell===b.A.UPSELL_GOLD_MENU_ITEM_CHAT_MESSAGES_THRESHOLD&&this.dispatchGoldMenuItemUpsell(b.A.UPSELL_INTERVAL_MS)):ce.goldMenuItemUpsellsEnabled&&ce.messagesSinceUpsell===b.A.UPSELL_GOLD_MENU_ITEM_INITIAL_CHAT_MESSAGES_THRESHOLD&&this.dispatchGoldMenuItemUpsell(b.A.UPSELL_INITIAL_INTERVAL_MS)}},{key:"dispatchGoldMenuOrSpinGoldUpsell",value:function(e){ce.goldMenuUpsellsEnabled&&ce.spinGoldUpsellsEnabled?Math.random()>=.5?this.dispatchGoldMenuUpsell(e):this.dispatchSpinGoldUpsell(e):ce.goldMenuUpsellsEnabled?this.dispatchGoldMenuUpsell(e):ce.spinGoldUpsellsEnabled&&this.dispatchSpinGoldUpsell(e)}},{key:"dispatchGoldMenuUpsell",value:function(e){clearTimeout(ce.upsellTimeout),ce.upsellTimeout=setTimeout((function(){f.A.dispatch({type:v.A.SHOW_GOLD_MENU_CHAT_UPSELL})}),e)}},{key:"dispatchSpinGoldUpsell",value:function(e){clearTimeout(ce.upsellTimeout),ce.upsellTimeout=setTimeout((function(){f.A.dispatch({type:v.A.SHOW_SPIN_GOLD_CHAT_UPSELL})}),e)}},{key:"dispatchGoldMenuItemUpsell",value:function(e){var t=this;clearTimeout(ce.upsellTimeout),ce.upsellTimeout=setTimeout((function(){var e=t.pickRandomGoldMenuUpsellItem();e&&f.A.dispatch({type:v.A.SHOW_GOLD_MENU_ITEM_CHAT_UPSELL,data:{keyword:e.keyword}})}),e)}},{key:"pickRandomGoldMenuUpsellItem",value:function(){var e,t,n,o=I.A.getState().goldOnly,r=w.A.getState(),i=r.goldMenuItems,s=r.goldOnlyGoldMenuItems,a=o?s:i,l=(e=a.map((function(e){return e.cost})),t=Math.floor(e.length/2),n=(0,u.A)(e).sort((function(e,t){return e-t})),e.length%2!=0?n[t]:(n[t-1]+n[t])/2),c=L.A.getState().maxGold;return function(e){return e[Math.floor(Math.random()*e.length)]}(a.filter((function(e){return(!c||e.cost<=c)&&(e.cost<=b.A.UPSELL_GOLD_MENU_ITEM_COST_LOWER_THRESHOLD||e.cost<=2*l)})))}},{key:"initializeUpsells",value:function(){var e=L.A.getState().useCreateAccountCta,t=k.Ay.getState().isDesktop,n=(0,B.z)().visible,o=(0,G.Q)().isVisible;if(!e)if(t){var r=Boolean(this.pickRandomGoldMenuUpsellItem());L.A.isLoggedIn()&&(0,N.F)({performAction:!1,givingGold:!0})&&r&&n&&(ce.goldMenuItemUpsellsEnabled=!0)}else ce.goldMenuUpsellsEnabled=n,ce.spinGoldUpsellsEnabled=o,this.dispatchGoldMenuOrSpinGoldUpsell(b.A.UPSELL_INITIAL_INTERVAL_MS)}},{key:"handleCam2CamReject",value:function(){var e=y.Ay.getString("cam2cam_request_rejected");this.addMessage({type:b.A.USERTYPE_SYSTEM,isSystem:!0,text:e,flags:b.A.RPCFLAGS_SYSMSG,isItalic:!1,isGold:!1})}},{key:"handleCam2CamEnd",value:function(){var e=y.Ay.getString("cam2cam_performer_end");this.addMessage({type:b.A.USERTYPE_SYSTEM,isSystem:!0,text:e,flags:b.A.RPCFLAGS_SYSMSG,isItalic:!1,isGold:!1})}},{key:"_setState",value:function(e){ce=re(re({},ce),e)}},{key:"__onDispatch",value:function(e){var t=Boolean(x.A.getState().improvedCamPageFullscreenUI);switch(e.type){case O.A.ROOM_CLIENT_CONNECTED:this.handleRoomConnected(e.data);break;case O.A.ROOM_CLIENT_SYSTEM_CHAT_MESSAGE:this.handleRoomClientSystemMessage(e.data);break;case O.A.ROOM_CLIENT_LIVE_CHAT_MESSAGE:this.handleRoomClientLiveChatMessage(e.data);break;case O.A.ROOM_CLIENT_GIVE_GOLD:this.handleRoomClientGiveGold(e.data);break;case O.A.ROOM_CLIENT_PLEDGE_GOLD:this.handleRoomClientPledgeGold(e.data);break;case O.A.ROOM_CLIENT_ENTERED_PRIVATE:case O.A.ROOM_CLIENT_ENTERED_EXCLUSIVE:case O.A.ROOM_CLIENT_ENTERED_BLOCK_SESSION:this.handleRoomEnteredPaid();break;case O.A.ROOM_CLIENT_STATUS_CHANGED:this.handleRoomStatusChanged(e.data);break;case v.A.CHAT_SENDMESSAGE:this.handleSendingMessage(e.data);break;case v.A.LOAD_CONFIG:this.handleLoadConfig(e.data);break;case v.A.DISPLAY_MESSAGE:this.addSystemMessage(e.data.message,{identifier:e.data.identifier});break;case v.A.FAVORITE_UPDATE:t||this.addSystemMessage(e.data.message,{identifier:e.data.identifier});break;case v.A.REMOVE_CHAT_MESSAGE:this.removeMessage(e.data.identifier);break;case v.A.TOGGLE_CHAT_PRIVACY:this.handleTogglePrivacy(e.data.private);break;case v.A.RESET:this.handleReset();break;case v.A.UPDATE_CHAT_MESSAGE:this.setMessage(e.data);break;case v.A.APPEND_EMOJI:this.appendMessage(e.data);break;case v.A.USER_REQUEST_PRIVATE:this.handleUserRequestPrivate(e.data);break;case v.A.SESSION_ACCEPTED:this.handleSessionAccepted();break;case v.A.INCREASE_FONT_SIZE:this.handleIncreaseFontSize();break;case v.A.DECREASE_FONT_SIZE:this.handleDecreaseFontSize();break;case v.A.SHOW_GOLD_MENU_CHAT_UPSELL:this.showGoldMenuButton();break;case v.A.SHOW_SPIN_GOLD_CHAT_UPSELL:this.showSpinGoldButton();break;case v.A.SHOW_GOLD_MENU_ITEM_CHAT_UPSELL:this.showGoldMenuItem(e.data.keyword);break;case v.A.CAM2CAM_REJECT:this.handleCam2CamReject();break;case v.A.CAM2CAM_END:this.handleCam2CamEnd();break;case v.A.UPDATE_USER_NICKNAME:this.setUserNickname(e.data.usernickname);break;default:return}this.__emitChange()}}]),n}(j.A))("chat",f.A)},"./src/stores/ConnectionStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>Z});var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),d=n("./node_modules/lodash/pick.js"),p=n.n(d),m=n("./node_modules/lodash/cloneDeep.js"),h=n.n(m),A=n("./node_modules/lodash/isEqual.js"),f=n.n(A),g=n("./node_modules/universal-cookie/lib/index.js"),y=n.n(g),v=n("./src/constants/Actions.js"),b=n("./src/constants/StatsEvents.js"),_=n("./src/constants/Messages.js"),E=n("./src/constants/RpcCalls.js"),S=n("./src/constants/Platforms.ts"),C=n("./src/constants/Connection.js"),T=n("./src/constants/DisconnectReasons.js"),O=n("./src/constants/NaiadSessionType.js");const I=3,w=4;var P=n("./src/constants/ChatConstants.ts"),k=n("./src/constants/Globals.js"),R=n("./src/constants/Tenant.ts"),D=n("./src/components/videoclient/store/videoClient/VideoClientConstants.ts"),L=n("./src/lib/Dispatcher.js"),x=n("./src/lib/AjaxRequest.js"),N=n("./src/lib/RoomClient.ts"),j=n("./src/lib/PerformanceTiming.js"),M=n("./src/utils/log.js"),B=n("./src/utils/tools.ts"),U=n("./src/utils/FluxStoreExtended.ts"),G=n("./src/utils/gold.js"),V=n("./src/stores/PerformerStore.ts"),F=n("./src/stores/UserStore.js"),H=n("./src/stores/GoldShowStore.js"),Y=n("./src/stores/UserListStore.ts");function W(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function q(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.exceptTheConnection,n=void 0!==t&&t;n&&(Q.refreshing=!0),this.handleDisconnect(this.getBrowserCloseReason());var o=p()(Q,n?["clientState","manifestUrl","refreshing","lang","essUsername","inVideoStartupXment","forcedVideoStartupXment","inBiopicWhenLoadingXment","goldOnly"]:["essUsername","inVideoStartupXment","forcedVideoStartupXment","inBiopicWhenLoadingXment","goldOnly"]);clearTimeout(Q.videoStartupXmentTimeout),Q=q(q({},K),o)}},{key:"_getSettingArgs",value:function(e){var t={};return t.flags=e?P.A.RPCFLAGS_ANONYMOUS:0,t}},{key:"_getStartFlags",value:function(e){return e?C.Kf.STREAM_CONTENT_INCOMING_TEXT|C.Kf.STREAM_CONTENT_OUTGOING_TEXT|C.Kf.STREAM_CONTENT_INCOMING_AUDIO|C.Kf.STREAM_CONTENT_INCOMING_VIDEO:C.Kf.STREAM_CONTENT_INCOMING_TEXT|C.Kf.STREAM_CONTENT_OUTGOING_TEXT|C.Kf.STREAM_CONTENT_INCOMING_VIDEO}},{key:"_sendUserDisconnectEvent",value:function(e,t){var n=F.A.getState(),o=n.userId,r=n.userStreamId,i=n.country,s=Q,a=s.browser,l=s.os,c=s.platform,u=s.performerId,d=s.performerStreamId,p={eventname:"UserDisconnectV1",browser:a,disconnectCode:e,disconnectString:t,hybridClientLoadTime:X,os:l,performerId:u,performerStreamId:d||0,platform:c||S.Ay.UNKNOWN,userCountry:i,userId:o||null,userStreamId:r};M.A.loms(p)}},{key:"handleSetAdditionalPerformersOnStream",value:function(e){e&&(Q=q(q({},Q),{},{additionalPerformersOnStream:e}))}},{key:"setLanguage",value:function(e){Q=q(q({},Q),{},{lang:e})}},{key:"setGoldOnly",value:function(e){Q=q(q({},Q),{},{goldOnly:e})}},{key:"setPlatform",value:function(e){Q=q(q({},Q),{},{platform:e})}},{key:"setTenantId",value:function(e){Q.tenantId!==e&&(Q=q(q({},Q),{},{tenantId:e}))}},{key:"enableJwtTokenForPrivCalls",value:function(){Q=q(q({},Q),{},{usejwt:!0})}},{key:"disableJwtTokenForPrivCalls",value:function(){Q=q(q({},Q),{},{usejwt:!1})}},{key:"handleLoadConfig",value:function(e){var t=e.config,n=e.platform,o=e.os,r=e.browser,i=e.connection,s=void 0===i?{}:i;if(!t.performer.isAvailable)return M.A.statsIncCounter(b.A.INVALID_SERVER_ID),void this.handleDisconnect([T.A.STATUS_PERFORMER,"the performer has gone offline"]);var a=O.A.PREVIEW;n===S.Ay.EXTERNAL_SITE_SHOW&&(a=O.A.EXTERNAL),t.user.sakey&&t.user.id&&(a=O.A.GUEST);var l=Q.clientState===C.Kf.PLAYING?C.Kf.PLAYING:C.Kf.AWAITING_AUTHORIZATION;(Q=q(q({},Q),{},{configLoaded:!0,clientState:l,firstAuthorization:!1,sessionType:a,performerId:t.performer.id,tdsname:t.site.tdsname,userId:t.user.id,userSakey:t.user.sakey,userNonpremium:t.user.nonpremium,authtoken:Q.authtoken,connectionConfig:s,os:o,browser:r})).userSakey||(Q.authtoken=""),j.A.mark("authorization_start"),t.user.lang=Q.lang||"en";var c={};n===S.Ay.EXTERNAL_SITE_SHOW?Object.assign(c,{userNickname:Q.essUsername}):Object.assign(c,{sakey:Q.userSakey});var u=R.rE.get(n);this.setTenantId(u),x.A.setTenantId(u),(n!==S.Ay.EXTERNAL_SITE_SHOW||n===S.Ay.EXTERNAL_SITE_SHOW&&Q.essUsername)&&this.connectToRoom(t,{sessionType:a,platform:n,connectionConfig:s},c)}},{key:"connectToRoom",value:function(e,t){var n=t.sessionType,o=t.platform,r=t.connectionConfig,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i.userNickname,a=i.sakey,l=void 0===a?null:a;M.A.info({message:"connection-room-starting-connection"});var c=e.performer.nickname,u=e.user.lang,d="".concat(o,"/hybrid.client.").concat(k.A.VERSION,"/avchat.swf"),p=R.rE.get(o);N.Ay.connectRoomClient({performerName:c,sessionType:n,platform:o,lang:u,referrer:d,userNickname:s,sakey:l,config:r.roomService,tenantid:p,tracking:x.A.getTrackingHeaders()}).then((function(e){var t;M.A.info(q({message:"connection-room-connected"},e));var n=e.additionalPerformersOnStream,o=void 0===n?[]:n,r=e.videoManifestUrl,i=e.features;Q.roomFeatures=i||[],o.length&&L.A.dispatch({type:v.A.REQUEST_PERFORMER_NICKNAME,data:{additionalPerformersOnStream:o}}),M.A.info(q({message:"connection-room-using-manifest-url"},e)),M.A.statsIncCounter("session.room.using_video_manifest_url");var s=new URL(r);s.searchParams.has("accesstoken")&&(Q.authtoken=s.searchParams.get("accesstoken")),L.A.dispatch({type:v.A.MANIFEST_URL_RECEIVED,data:{url:r}}),L.A.dispatch({type:E.A.ROOM_CLIENT_CONNECTED,data:e}),L.A.dispatch({type:E.A.ROOM_CLIENT_STATUS_CHANGED,data:q(q({},e.initialStatus),{},{initialStatus:!0,isExternalSiteShow:null===(t=e.goldShow)||void 0===t?void 0:t.isExternalSiteShow})}),Number.isInteger(Q.exclusiveSessionPriceItemId)&&N.Ay.requestStreamfansExclusiveSession({priceItemId:Q.exclusiveSessionPriceItemId})})).catch((function(e){var t;M.A.statsIncCounter("session.room.connection.error.".concat(null!==(t=e.code)&&void 0!==t?t:"unknown")),M.A.error({message:"connection-room-connection-failure",error:(0,B.Rm)(e)})}))}},{key:"connectToRoomFromState",value:function(){var e,t=V.A.getState(),n=t.lang,o=t.nickname,r=t.platform,i=F.A.getState().sakey,s={performer:{nickname:o},user:{lang:n}},a={sessionType:Q.sessionType,platform:r,connectionConfig:Q.connectionConfig},l={userNickname:null!==(e=Q.essUsername)&&void 0!==e?e:"",sakey:i};this.connectToRoom(s,a,l)}},{key:"disconnectVideo",value:function(){Q.refreshing||(Q.clientState=C.Kf.DISCONNECTED,M.A.debug("ForceBillingInfoUpdate stopped stream"))}},{key:"handleDisconnect",value:function(e){var t=(0,o.A)(e,2),n=t[0],r=void 0===n?null:n,i=t[1],s=void 0===i?"Unknown error":i,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,B.Zj)(_.A.DISCONNECTED,{reason:r,string:s}),M.A.debug({action:"disconnect",reason:r,string:s}),M.A.info({message:"max-total-users",labels:{maxTotalUsers:Y.A.getState().maxTotalUsers,performerId:V.A.getState().id}}),a&&this._sendUserDisconnectEvent(r,s),Q.refreshing||(Q.clientState=C.Kf.DISCONNECTED,M.A.debug("Killing the fmsgateway socket after getting disconnected."),N.Ay.disconnectRoomClient(r||T.A.CLIENT_HIDDEN,s,!1))}},{key:"handleBrowserClose",value:function(e){var t=(0,o.A)(e,2),n=t[0],r=void 0===n?null:n,i=t[1],s=void 0===i?"Unknown error":i;if(Q.clientState!==C.Kf.DISCONNECTED&&(Q.enteringPaidSessionType=null,!Q.refreshing)){if(r===T.A.ROOM_FULL&&Q.platform===S.Ay.SCP){var a=Q.performerNickname;if(a){var l,c=new(y()),u="hcwr"+a,d=Number(null!==(l=c.get(u))&&void 0!==l?l:0);if(d<1)return c.set(u,d+1,{maxAge:180}),void(window.location.href="/waitingroom?time=60&to=/cam/".concat(a));c.remove(u)}}this.handleDisconnect([r,s],!0),Q.manifestUrl=""}}},{key:"handleConnect",value:function(){window.location.reload()}},{key:"handleAiwPlaying",value:function(){Q.clientState=C.Kf.PLAYING,Q.refreshing=!1}},{key:"handleAcceptance",value:function(){setTimeout((function(){return L.A.dispatch({type:v.A.SESSION_ACCEPTED})}))}},{key:"handleUserRequestPrivate",value:function(e){var t=e.requiresAcceptance,n=e.showId;Q.callStartOnAuthorization=!t,Q.started=!1,Q.userRequestedResumePrivateSession=Boolean(n)}},{key:"handleManifestUrl",value:function(e){var t=e.url,n=Q.inVideoStartupXment&&!Q.userSakey,o=Q.forcedVideoStartupXment;if((n||o)&&!Q.handledDelayForVideoStartupXment)return Q.handledDelayForVideoStartupXment=!0,clearTimeout(Q.videoStartupXmentTimeout),void(Q.videoStartupXmentTimeout=setTimeout((function(){L.A.dispatch({type:v.A.MANIFEST_URL_RECEIVED,data:{url:t}})}),2e3));null!==Q.inVideoStartupXment||Q.userSakey?(t&&t.indexOf("json")<0&&M.A.error({message:"No JSON in my manifest! Marten said this would never happen",url:t}),Q.manifestUrl=t,Q.manifestUrlToUseWhenXmentIsSelected=void 0):Q.manifestUrlToUseWhenXmentIsSelected=t}},{key:"handleEssUsername",value:function(e){var t=e.essUsername,n=e.connectToRoom,o=void 0!==n&&n;Q.essUsername=t,t&&o&&this.connectToRoomFromState()}},{key:"handleSetPerformerNickname",value:function(e){Q.performerNickname=e}},{key:"handleRequestPerformerNicknames",value:function(e){var t=e.additionalPerformersOnStream,n=void 0===t?[]:t,o=x.A.getBaseUrl()+"/api/v1/performernicknames";if(n.length){var r={performerIds:n.join(",")};x.A.get(o,r,(function(e){e.body&&L.A.dispatch({type:v.A.SET_ADDITIONAL_PERFORMERS_ON_STREAM,data:e.body})}))}}},{key:"handleRoomConnected",value:function(e){var t,n,o,r,i,s,a,l,c,u,d;M.A.debug({message:"ConnectionStore.handleRoomConnected",connectionInfo:e});var p=e.connectionId,m=e.initialStatus;j.A.mark("authorization_end"),M.A.usage("authorized",Date.now()),M.A.usage("psid",null!==(t=null===(n=m.streamInfo)||void 0===n?void 0:n.streamId)&&void 0!==t?t:0),M.A.usage("sid",p);var h={roomTopic:null!==(o=null===(r=m.showInfo)||void 0===r?void 0:r.showTopic)&&void 0!==o?o:"",performerStreamId:null!==(i=null===(s=m.streamInfo)||void 0===s?void 0:s.streamId)&&void 0!==i?i:0,streamType:null!==(a=null==e||null===(l=e.authInfo)||void 0===l?void 0:l.userType)&&void 0!==a?a:C.Kf.STREAM_TYPE_GUEST,goldOnly:"goldOnly"===(null===(c=m.showInfo)||void 0===c?void 0:c.showType)||void 0,started:!0,clientState:Q.clientState!==C.Kf.PLAYING?C.Kf.AWAITING_PLAYBACK:C.Kf.PLAYING,userType:null!==(u=null==e||null===(d=e.authInfo)||void 0===d?void 0:d.userType)&&void 0!==u?u:O.A.TYPE_USER};(Q=q(q({},Q),h)).performerStreamId&&M.A.set("performerStreamId",Q.performerStreamId);var A=C.HW[Math.max(0,Q.streamType)];M.A.usage("naiad_authorized_".concat(A),Date.now()),j.A.mark("awaiting_playback"),j.A.mark("naiad_start")}},{key:"handleRoomStatusChanged",value:function(e){if(M.A.debug({message:"ConnectionStore.handleRoomStatusChanged",roomState:e}),"offline"===e.status)Q.enteringPaidSessionType=null,N.Ay.disconnectRoomClient(T.A.STATUS_PERFORMER,"The room status is offline",!0);else if(e.isPremium||e.videoAuthRequired){if(F.A.isLoggedIn()){if((0,G.rD)(e)&&H.A.isUserBoughtIn())return;if(this.isRoomStatusPaid(e.status)&&this.isRoomEnteringPaid())return;return void(Q.clientState=C.Kf.PAUSED)}if((0,G.rD)(e)&&this.isESSUser()&&null!=e&&e.isExternalSiteShow)return;if("externalSiteShow"===e.status&&this.isESSUser())return;if(!e.initialStatus&&((0,G.rD)(e)||"inCountdown"===e.status))return void(Q.clientState=C.Kf.PAUSED);(0,G.rD)(e)?N.Ay.disconnectRoomClient(T.A.IN_GOLDSHOW,"The room status is in a gold show",!0):"onBreak"===e.status?N.Ay.disconnectRoomClient(T.A.BREAK,"The room status is on break",!0):N.Ay.disconnectRoomClient(T.A.BUSY,"The room status is busy",!0)}else"freeChat"===e.status&&(Q.streamType=C.Kf.STREAM_TYPE_GUEST),Q.clientState=Q.clientState!==C.Kf.PLAYING?C.Kf.AWAITING_PLAYBACK:C.Kf.PLAYING}},{key:"handleRoomEnteringPaid",value:function(e){Q=q(q({},Q),{},{enteringPaidSessionType:e})}},{key:"handleRoomCancelEnteringPaid",value:function(){Q=q(q({},Q),{},{enteringPaidSessionType:null,started:!0})}},{key:"handleRoomEnteredPrivate",value:function(){M.A.loms({eventname:"EnteredPaidSessionV1",sessionType:C.HW[C.Kf.STREAM_TYPE_PRIVATE],resumingSession:Q.userRequestedResumePrivateSession}),Q=q(q({},Q),{},{started:!0,streamType:C.Kf.STREAM_TYPE_PRIVATE,enteringPaidSessionType:null,clientState:this.isPlaying()?C.Kf.PLAYING:C.Kf.AWAITING_PLAYBACK})}},{key:"handleAcceptanceRoom",value:function(e){var t;switch(e.sessionType){case"exclusive":t=C.Kf.STREAM_TYPE_EXCLUSIVE;break;case"blockPrivate":t=C.Kf.STREAM_TYPE_BLOCK;break;case"blockExclusive":t=C.Kf.STREAM_TYPE_BLOCK_EXCLUSIVE;break;default:return void M.A.warn("unknown-session-type-handle-accept-room")}M.A.loms({eventname:"EnteredPaidSessionV1",sessionType:C.HW[t],resumingSession:Q.userRequestedResumePrivateSession}),setTimeout((function(){return L.A.dispatch({type:v.A.SESSION_ACCEPTED})})),Q=q(q({},Q),{},{started:!0,streamType:t,enteringPaidSessionType:null,clientState:this.isPlaying()?C.Kf.PLAYING:C.Kf.AWAITING_PLAYBACK})}},{key:"handleRoomPledgeGold",value:function(e){e.failed||e.info.amount>=H.A.getState().minbuyin&&(Q.clientState=Q.clientState!==C.Kf.PLAYING?C.Kf.AWAITING_PLAYBACK:C.Kf.PLAYING)}},{key:"getStreamTypeName",value:function(){return C.HW[Q.streamType]}},{key:"isGuestStream",value:function(){return Q.streamType===C.Kf.STREAM_TYPE_GUEST}},{key:"isGoldOnlyStream",value:function(){return Q.goldOnly}},{key:"isPlaying",value:function(){return Q.clientState===C.Kf.PLAYING}},{key:"isBlockbusterShow",value:function(){return Q.roomFeatures.includes(N.yY.Blockbuster)}},{key:"shouldRequireAgeConfirmation",value:function(){return Q.requireAgeConfirmation}},{key:"isRoomStatusPaid",value:function(e){return"private"===e&&setTimeout((function(){return L.A.dispatch({type:D.A.LIVELY_VIDEO_CAPACITY_FALLBACK_CHECK})})),"private"===e||"exclusive"===e}},{key:"isRoomEnteringPaid",value:function(){return null!==Q.enteringPaidSessionType}},{key:"isRoomEnteringExclusive",value:function(){return Q.enteringPaidSessionType===C.v5.REQUEST_EXCLUSIVE}},{key:"isESSUser",value:function(){return Q.sessionType===O.A.EXTERNAL}},{key:"isStreamBlurPenaltyActive",value:function(){return Q.streamType===C.Kf.STREAM_TYPE_GUEST&&!F.A.isLoggedIn()&&Q.streamBlurPenalty}},{key:"isAdminUser",value:function(){return Q.userType===w}},{key:"isStudioUser",value:function(){return Q.userType===I}},{key:"updateManifestUrlByXment",value:function(){if(Q.manifestUrlToUseWhenXmentIsSelected){var e=Q.manifestUrlToUseWhenXmentIsSelected;Q.manifestUrlToUseWhenXmentIsSelected=void 0,L.A.dispatch({type:v.A.MANIFEST_URL_RECEIVED,data:{url:e}})}}},{key:"setInVideoStartupXment",value:function(e){Q.inVideoStartupXment=e,this.updateManifestUrlByXment()}},{key:"setForcedVideoStartupXment",value:function(e){Q.forcedVideoStartupXment=e,this.updateManifestUrlByXment()}},{key:"setInBiopicWhenLoadingXment",value:function(e){Q.inBiopicWhenLoadingXment=e}},{key:"setexclusiveSessionPriceItemId",value:function(e){Q.exclusiveSessionPriceItemId=e}},{key:"setRequireAgeConfirmation",value:function(e){Q.requireAgeConfirmation=e}},{key:"setQuickTipAllowed",value:function(e){Q.isQuickTipAllowed=e}},{key:"shouldAllowQuickTip",value:function(){return Q.isQuickTipAllowed}},{key:"setBrowserCloseReason",value:function(e){var t=this,n=(0,o.A)(e,2),r=n[0],i=void 0===r?null:r,s=n[1],a=void 0===s?"Unknown error":s;this.browserCloseReason=i,this.browserCloseString=a,this.browserCloseTimeout&&clearTimeout(this.browserCloseTimeout),this.browserCloseTimeout=setTimeout((function(){t.browserCloseReason=null,t.browserCloseString="Unknown error"}),6e4)}},{key:"setStreamBlurPenalty",value:function(e){Q.streamBlurPenalty=e}},{key:"getBrowserCloseReason",value:function(){return this.browserCloseReason?[this.browserCloseReason,this.browserCloseString]:[T.A.USER_DISCONNECT,"The user closed the client"]}},{key:"__onDispatch",value:function(e){var t=h()(Q);switch(e.type){case E.A.ROOM_CLIENT_CONNECTED:this.handleRoomConnected(e.data);break;case E.A.ROOM_CLIENT_STATUS_CHANGED:this.handleRoomStatusChanged(e.data);break;case E.A.ROOM_CLIENT_PLEDGE_GOLD:this.handleRoomPledgeGold(e.data);break;case E.A.ROOM_CLIENT_ENTERING_PRIVATE:this.handleRoomEnteringPaid(C.v5.REQUEST_PRIVATE);break;case E.A.ROOM_CLIENT_ENTERING_BLOCK_SESSION:this.handleRoomEnteringPaid(C.v5.REQUEST_BLOCK);break;case E.A.ROOM_CLIENT_ENTERING_EXCLUSIVE:this.handleRoomEnteringPaid(C.v5.REQUEST_EXCLUSIVE);break;case E.A.ROOM_CLIENT_CANCEL_ENTERING_PAID:this.handleRoomCancelEnteringPaid();break;case E.A.ROOM_CLIENT_ENTERED_PRIVATE:this.handleRoomEnteredPrivate();break;case E.A.ROOM_CLIENT_ENTERED_BLOCK_SESSION:M.A.usageTick("block_session_accepted"),M.A.statsIncCounter(b.A.SESSION_BLOCK_ACCEPTED),this.handleAcceptanceRoom(e.data);break;case E.A.ROOM_CLIENT_ENTERED_EXCLUSIVE:M.A.usageTick("exclusive_session_accepted"),M.A.statsIncCounter(b.A.SESSION_EXCLUSIVE_ACCEPTED),this.handleAcceptanceRoom(e.data);break;case E.A.ROOM_CLIENT_QUICK_TIP_ALLOWED:this.setQuickTipAllowed(e.data);break;case v.A.VIDEO_START:this.handleVideoStart(e.data);break;case v.A.VIDEO_PLAYING:this.handleAiwPlaying();break;case v.A.USER_REQUEST_PRIVATE:this.handleUserRequestPrivate(e.data);break;case v.A.FORCE_BILLING_INFO_UPDATE:M.A.statsIncCounter("session.video.force_billing_info_update"),this.disconnectVideo();break;case v.A.VIDEO_DISCONNECT:case v.A.DISCONNECT:M.A.statsIncCounter("session.video.disconnected.".concat(e.data[0])),this.handleDisconnect(e.data);break;case v.A.CONNECT:this.handleConnect();break;case v.A.MANIFEST_URL_RECEIVED:this.handleManifestUrl(e.data);break;case v.A.LOAD_CONFIG:this.handleLoadConfig(e.data);break;case v.A.UPDATE_USER_PREFERRED_LANG:this.setLanguage(e.data.lang);break;case v.A.SET_ESS_USERNAME:this.handleEssUsername(e.data);break;case v.A.SET_PERFORMER_NICKNAME:this.handleSetPerformerNickname(e.data);break;case v.A.BROWSER_MAY_CLOSE:this.setBrowserCloseReason(e.data);break;case v.A.BROWSER_CLOSE:this.handleBrowserClose(this.getBrowserCloseReason());break;case v.A.REQUEST_PERFORMER_NICKNAME:this.handleRequestPerformerNicknames(e.data);break;case v.A.SET_ADDITIONAL_PERFORMERS_ON_STREAM:this.handleSetAdditionalPerformersOnStream(e.data);break;case v.A.RESET:this.reset(e.data);break;default:return}f()(t,Q)||this.__emitChange()}}]),n}(U.A))("connection",L.A)},"./src/stores/GoldShowStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var o=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./src/lib/Dispatcher.js"),d=n("./src/constants/Actions.js"),p=n("./src/constants/GoldShowConstants.js"),m=n("./src/constants/RpcCalls.js"),h=n("./src/utils/log.js"),A=n("./src/utils/gold.js"),f=n("./src/utils/FluxStoreExtended.ts"),g=n("./src/stores/RoomStore.ts");function y(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t=E.requestedamt}},{key:"handleRoomGoldShow",value:function(e){h.A.debug({message:"GoldShowStore.handleRoomGoldShow",goldShowInfo:e}),E.goldShowInfo[e.goldShowId]=e;var t=g.A.getState(),n=(0,A.rD)(t);((0,A.rD)(t,!0)||n)&&this.transformGoldShowInfoToState(e,n)}},{key:"handleRoomGoldShowPledged",value:function(e){h.A.debug({message:"GoldShowStore.handleRoomGoldShowPledged",gold:e});var t={total:e.totalPledgedAmount};this.setState(t)}},{key:"transformGoldShowInfoToState",value:function(e,t){var n,o,r=E.pledgedamt,i=E.total,s=E.pledged;(e.goldShowId!==E.id||e.totalPledgedAmount>i)&&(r=null!==(n=e.myPledgedAmount)&&void 0!==n?n:0,i=null!==(o=e.totalPledgedAmount)&&void 0!==o?o:0,s=(0,A.ew)(r,e.myAccess));var a={id:e.goldShowId,duration:e.duration,maxwait:e.maxWait,minbuyin:e.minBuyin?Math.max(e.minBuyin,100):0,nonexplicit:e.isNonexplicit?1:0,pledged:s,pledgedamt:r,total:i,requestedamt:e.requestedAmount,showtopic:e.showTopic,showuserhbux:e.isHighestBidder?1:0,timetostart:Math.round(e.timeToStart/1e3)};if(t&&(a.timetoend=Math.round(e.timeToEnd/1e3)),a.minbuyinString=(0,A.MN)(a.minbuyin),a.goldShowState=(0,A.pl)(s,t),a.goldShowState!==E.goldShowState)switch(a.goldShowState){case p.A.GOLD_STATE_NEED_PLEDGE:h.A.usage("gold_show_need_pledge");break;case p.A.GOLD_STATE_IN_PROGRESS:h.A.usage("gold_show_started"),h.A.statsIncCounter("session.goldshow.started")}this.setState(a)}},{key:"handleRoomStatusChanged",value:function(e){var t;h.A.debug({message:"GoldShowStore.handleRoomStatusChanged",roomStatus:e});var n=(0,A.rD)(e);if((0,A.rD)(e,!0)||n){var r=(null===(t=e.goldShowInfo)||void 0===t?void 0:t.goldShowId)||0;if(r){if("object"===(0,o.A)(E.goldShowInfo[r])){var i=E.goldShowInfo[r];this.transformGoldShowInfoToState(i,n)}}else h.A.error({message:"Gold show status without gold show id",goldShowId:r,roomStatus:e})}else E.id>0&&(h.A.usage("gold_show_ended"),this.reset())}},{key:"handleRoomClientPledgeGold",value:function(e){if(e.failed)return e.message="pledge-gold-status-error",void h.A.warn(e);var t={myPledgedAmount:E.myPledgedAmount+e.info.amount};E.pledged!==p.A.PLEDGE_STATE_PLEDGED&&e.info.amount>=E.minbuyin&&(E.goldShowState===p.A.GOLD_STATE_PRE?(h.A.usage("gold_show_pledged"),t.goldShowState=p.A.GOLD_STATE_PRE_PLEDGED):E.goldShowState===p.A.GOLD_STATE_NEED_PLEDGE&&(t.goldShowState=p.A.GOLD_STATE_IN_PROGRESS),t.pledged=p.A.PLEDGE_STATE_PLEDGED),this.setState(t)}},{key:"reset",value:function(){E=b({},_)}},{key:"__onDispatch",value:function(e){switch(e.type){case d.A.DISCONNECT:this.reset();break;case m.A.ROOM_CLIENT_GOLDSHOW:this.handleRoomGoldShow(e.data);break;case m.A.ROOM_CLIENT_GOLDSHOW_PLEDGED:this.handleRoomGoldShowPledged(e.data);break;case m.A.ROOM_CLIENT_STATUS_CHANGED:this.handleRoomStatusChanged(e.data);break;case m.A.ROOM_CLIENT_PLEDGE_GOLD:this.handleRoomClientPledgeGold(e.data);break;case d.A.RESET:this.reset();break;default:return}this.__emitChange()}}]),n}(f.A))("goldShow",u.A)},"./src/stores/LayoutStore.js":(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Y,O0:()=>F,UD:()=>D});var o,r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),l=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),d=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),p=n("./src/lib/Dispatcher.js"),m=n("./node_modules/lodash/findKey.js"),h=n.n(m),A=n("./src/utils/log.js"),f=n("./src/utils/tools.ts"),g=n("./src/utils/FluxStoreExtended.ts"),y=n("./src/constants/Xment.ts"),v=n("./src/stores/XmentStore.ts"),b=n("./src/stores/ConnectionStore.js"),_=n("./src/lib/RoomClient.ts"),E=n("./src/constants/Actions.js"),S=n("./src/constants/LayoutConstants.ts"),C=n("./src/constants/StatsEvents.js"),T=n("./src/constants/Platforms.ts"),O=n("./src/constants/RpcCalls.js"),I=n("./node_modules/lscache/lscache.js"),w=n.n(I);function P(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,c.A)(e);if(t){var r=(0,c.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.A)(this,n)}}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function R(e){for(var t=1;tS.Ay.LANDSCAPE_MIN_RATIO,c=i?S.Ay.DESKTOP:S.Ay.MOBILE,u=l?S.Ay.LANDSCAPE:S.Ay.PORTRAIT;return l&&A.A.usage("landscape_used"),A.A.usage("width",n),A.A.usage("height",o),{isLandscape:l,isSmallViewport:r,isDesktop:i,isDesktopSmall:s,isDesktopLarge:a,innerHeight:o,innerWidth:n,orientation:u,layout:c}},M=function(e){var t=e.isDesktop,n=e.isTablet,o=e.isLandscape,r=n||!t;return r&&o?function(e){var t=e.innerWidth,n=e.innerHeight,o=e.videoAspectRatio,r=t,i=t/o;return o0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=void 0===t?H.innerWidth:t,o=e.height,r=void 0===o?H.innerHeight:o,i=e.forceRecalc,s=void 0!==i&&i,a=Math.floor(n),l=Math.floor(r);if(H.previousWidth=H.currentWidth,H.previousHeight=H.currentHeight,H.currentWidth=a,H.currentHeight=l,H.previousBodyOverflowHidden=H.currentBodyOverflowHidden,H.currentBodyOverflowHidden="hidden"===window.getComputedStyle(document.body).overflow,!s){if(H.previousWidth===H.currentWidth&&H.previousHeight===H.currentHeight)return;if(this.didOnScreenKeyboardShrinkBrowserHeight())return this.updateKeyboard(),void(H=R(R({},H),U(H)));if(this.didDesktopModalHideScrollbar())return}var c=j(a,l),u=c.isLandscape,d=c.isSmallViewport,p=c.isDesktop,m=c.isDesktopSmall,h=c.isDesktopLarge,A=c.innerWidth,f=c.innerHeight,g=c.layout,y=c.orientation;0!==A&&(H.orientation!==y&&(H=R(R({},H),{},{videoViewportHeightAdjustment:0,mobileClampedView:!1,chatInputActive:!1})),H=R(R({},H),{},{isLandscape:u,isSmallViewport:d,isDesktop:p,isDesktopSmall:m,isDesktopLarge:h,innerWidth:A,innerHeight:f,isTablet:!1,showPerformerBio:!1,layout:g,orientation:y},N[H.forcedLayout]),this.updateKeyboard(),H=R(R({},H),U(H)))}},{key:"didOnScreenKeyboardShrinkBrowserHeight",value:function(){if(![S.Ay.MOBILE,S.Ay.TABLET].includes(H.layout))return!1;if(H.previousWidth!==H.currentWidth)return!1;var e=H.currentHeight-H.previousHeight<-200,t=H.currentHeight-(H.mobileHeight[H.orientation]||0)<-200;return!(!e&&!t)}},{key:"updateKeyboard",value:function(){if(H.layout===S.Ay.MOBILE){if(H.previousWidth!==H.currentWidth)return H.keyboardOpen=!1,void this.setChatInputActive(!1);var e=H.currentHeight-H.previousHeight<-200,t=H.currentHeight-H.previousHeight>200;e&&(H.keyboardOpen=!0,this.setChatInputActive(H.chatInputFocused&&H.preventChatScroll||!1),H.mobileKeyboardSize[H.orientation]=H.previousHeight-H.currentHeight,H.mobileHeight[H.orientation]=H.previousHeight,w().set("hybrid_client_mobile_keyboard_size",H.mobileKeyboardSize),w().set("hybrid_client_mobile_height",H.mobileHeight)),t&&(H.keyboardOpen=!1,this.setChatInputActive(!1))}}},{key:"didDesktopModalHideScrollbar",value:function(){var e=H,t=(e.layout,e.previousBodyOverflowHidden),n=e.currentBodyOverflowHidden,o=e.currentWidth,r=e.previousWidth;return S.Ay.DESKTOP,!t&&n&&o>r&&o-r<=50}},{key:"forceLayout",value:function(e){e||(H=R(R({},H),{},{forcedLayout:null})),new Set(Object.keys(N)).has(e)&&(H=R(R({},H),{},{forcedLayout:e},N[e]))}},{key:"onCtaHeightChange",value:function(e){var t=e.height;H.ctaContainerHeight=t,H=R(R({},H),U(H))}},{key:"onChatInputHeightChange",value:function(e){H.chatInputHeight=e,H=R(R({},H),U(H))}},{key:"onVideoDimensionsLoaded",value:function(e){var t=e.width,n=e.height,o=Number(t/n);Math.abs(o-H.videoAspectRatio)<.001||(H=R(R({},H),{},{videoAspectRatio:o,wideVideoAspectRatio:o<1?1/o:o}),this.onResize({forceRecalc:!0}))}},{key:"mobileClampedViewAllowed",value:function(){var e=H,t=e.isTablet,n=e.isDesktop,o=e.isLandscape;return!t&&!n&&!o}},{key:"setPlatform",value:function(e){H.platform=e}},{key:"setSidebarItemVisiblity",value:function(e){var t=e.component,n=e.visible,o=h()(S.nA,(function(e){return e===t})),r=R(R({},H.sidebarItems),{},(0,d.A)({},t,{component:o,visible:n}));H=R(R({},H),B(r,H.videoViewportHeight+H.ctaHeight))}},{key:"getSidebarItemState",value:function(e){return"number"==typeof e?H.sidebarItems[e]:H.sidebarItems[h()(H.sidebarItems,(function(t){return t===e}))]}},{key:"reset",value:function(){var e=1===v.A.getState().improvedCamPageFullscreenUI;H=R(R({},H),{},{mobileClampedView:!!e&&H.mobileClampedView,chatInputActive:!1}),H=R(R({},H),U(H))}},{key:"enterClampedView",value:function(){H=R(R({},H),{},{mobileClampedView:!0}),this.setChatInputActive(!1),H=R(R({},H),U(H)),w().set("mobileClampedView",!0)}},{key:"exitClampedView",value:function(){H=R(R({},H),{},{mobileClampedView:!1}),H=R(R({},H),U(H)),w().set("mobileClampedView",!1)}},{key:"onSizeBioInfo",value:function(e){var t=e.height;t!==H.bioInfoHeight&&(H=R(R({},H),{},{bioInfoHeight:t||0}))}},{key:"handleChatInputFocused",value:function(e){var t=e.focused,n=e.preventScroll;H.chatInputFocused=t,H.preventChatScroll=n,(n&&t||H.chatInputActive&&!t)&&this.setChatInputActive(t)}},{key:"handleVideoDisplayHeightAdjustment",value:function(e){var t=e.adjustment;H=R(R({},H),{},{videoViewportHeightAdjustment:Math.round(t)}),H=R(R({},H),U(H))}},{key:"handleClientRootBoundingRect",value:function(e){var t=e.rect;t&&(H.clientRootBoundingRect=t)}},{key:"setChatInputActive",value:function(e){H.layout===S.Ay.MOBILE&&(H.chatInputActive=e,H=R(R({},H),U(H)))}},{key:"handleRoomConnected",value:function(){var e=H.isDesktop?"DESKTOP":"MOBILE",t="CHAT_HISTORY_".concat(e);v.A.checkXment(y.A[t],(function(e){1===e&&_.Ay.addPreviousMessages(b.A.getState().performerStreamId,20)}))}},{key:"__onDispatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.data;switch(t){case E.A.VIDEO_DIMENSIONS_LOADED:this.onVideoDimensionsLoaded(n);break;case E.A.WINDOW_RESIZE:this.onResize(n);break;case E.A.CTA_HEIGHT_CHANGE:this.onCtaHeightChange(n);break;case E.A.CHAT_INPUT_HEIGHT_CHANGE:this.onChatInputHeightChange(n);break;case E.A.SIDEBAR_ITEM_VISIBLITY:this.setSidebarItemVisiblity(n);break;case E.A.ENTER_FULLSCREEN:this.onEnterFullscreen();break;case E.A.EXIT_FULLSCREEN:this.onExitFullscreen();break;case E.A.SIZE_BIO_INFO:this.onSizeBioInfo(n);break;case E.A.ENTER_CLAMPED_VIEW:this.enterClampedView();break;case E.A.EXIT_CLAMPED_VIEW:this.exitClampedView();break;case E.A.CHAT_INPUT_FOCUSED:this.handleChatInputFocused(n);break;case E.A.VIDEO_DISPLAY_HEIGHT_ADJUSTMENT:this.handleVideoDisplayHeightAdjustment(n);break;case E.A.CLIENT_ROOT_BOUNDING_RECT:this.handleClientRootBoundingRect(n);break;case E.A.RESET:this.reset();break;case O.A.ROOM_CLIENT_CONNECTED:this.handleRoomConnected();break;default:return}this.__emitChange()}}]),n}(g.A))("layout",p.A)},"./src/stores/ModalStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var o,r=n("./node_modules/@babel/runtime/helpers/esm/jsx.js"),i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),a=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),l=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),c=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),u=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),d=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),p=(n("webpack/sharing/consume/default/react/react"),n("./src/lib/Dispatcher.js")),m=n("./src/lib/Strings.js"),h=n("./src/constants/Actions.js"),A=n("./src/constants/Messages.js"),f=n("./src/constants/Platforms.ts"),g=n("./src/constants/StatsEvents.js"),y=n("./src/constants/RpcCalls.js"),v=n("./src/constants/Modals.ts"),b=n("./src/constants/NaiadSessionType.js"),_=n("./src/constants/DisconnectReasons.js"),E=n("./src/constants/Connection.js"),S=n("./src/constants/LayoutConstants.ts"),C=n("./src/constants/Globals.js"),T=n("./src/utils/log.js"),O=n("./src/utils/tools.ts"),I=n("./src/utils/currency.js"),w=n("./src/utils/billing.ts"),P=n("./src/utils/FluxStoreExtended.ts"),k=n("./src/components/common/DailyLimitMessage.js"),R=n("./src/stores/GoldShowStore.js"),D=n("./src/stores/UserStore.js"),L=n("./src/stores/RateStore.js"),x=n("./src/stores/ConnectionStore.js"),N=n("./src/stores/LayoutStore.js"),j=n("./src/stores/ConfigStore.ts");function M(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,u.A)(e);if(t){var r=(0,u.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,c.A)(this,n)}}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function U(e){for(var t=1;t=(F.sessionLengthForPostPaidModal>=0?F.sessionLengthForPostPaidModal:G)){if(o){var a=D.A.getState(),l=a.totalGoldGiven;if(!(a.lastGiveGoldSucceeded&&l>=1e3))return}return void(F=U(U({},F),{},{modal:v.bM.POST_PAID,modalProps:{duration:s,isShackled:n===_.A.SHACKLED}}))}}if(n!==_.A.USER_DISCONNECT){if(T.A.sendAndStop(),n===_.A.SHACKLED){if(F.isStashLimit){var c=D.A.getState(),u=c.maxGold,p=c.currencyCode;return void(F=U(U({},F),{},{modal:v.bM.STASH,modalProps:{maxGoldString:I.A.currencyify(u,p)}}))}var h=D.A.getState().userType;if(h===b.A.PREVIEW||h===b.A.BASIC)return void(F=U(U({},F),{},{modal:v.bM.SNEAK_PREVIEW_EXPIRED}))}if(!new Set([_.A.SYSTEM,_.A.STATUS_PERFORMER,_.A.LOST_CONNECTION,_.A.BUSY,_.A.BREAK,_.A.NO_VALID_DRIVERS,_.A.PERFORMER_IN_EXCLUSIVE,_.A.INVALID_STARTUP,_.A.STARTUP_NETWORK_ERROR,_.A.ROOM_CLIENT_CONNECTION_FAILURE,_.A.ROOM_CLIENT_CONNECTION_LOST,_.A.INVALID_HC_VERSION,_.A.WAIT_TO_SET_UP_STREAM,_.A.ROOM_FULL,_.A.IN_GOLDSHOW,_.A.NEW_PERFORMER]).has(n)){var f=(t={},(0,d.A)(t,_.A.AUTHENTICATION,m.Ay.getString("disconnect_authentication")),(0,d.A)(t,_.A.BLOCKED,m.Ay.getString("disconnect_blocked")),(0,d.A)(t,_.A.ENDED,m.Ay.getString("disconnect_ended")),(0,d.A)(t,_.A.SHACKLED,this.getShackledString()),(0,d.A)(t,_.A.PREAUTH,m.Ay.getString("disconnect_preauth")),(0,d.A)(t,_.A.BOOTED,m.Ay.getString("disconnect_booted")),(0,d.A)(t,_.A.BLOCKED_IP,m.Ay.getString("disconnect_authentication")),(0,d.A)(t,_.A.PAYOFF,m.Ay.getString("disconnect_payoff")),(0,d.A)(t,_.A.DECLINED_EXCLUSIVE,m.Ay.getString("disconnect_declined_exclusive")),(0,d.A)(t,_.A.BLOCK_SESSION_UNAVAILABLE,m.Ay.getString("disconnect_block")),(0,d.A)(t,_.A.BLOCK_SESSION_REJECTED,m.Ay.getString("disconnect_block")),(0,d.A)(t,_.A.FLASH_VERSION,this.getFlashVersionMessage()),(0,d.A)(t,_.A.GHOST,m.Ay.getString("disconnect_ghost")),(0,d.A)(t,_.A.BOOTED_BY_ADMIN,m.Ay.getString("disconnect_booted_by_admin")),(0,d.A)(t,_.A.ESF_BILLING_ERROR,m.Ay.getString("esf_billing_error")),t),g=f[n]||m.Ay.getString("disconnect_system"),y="string"==typeof g?(0,r.A)("p",{},void 0,g):g,E=!f[n]||[_.A.GHOST,_.A.ESF_BILLING_ERROR].includes(n);n!==_.A.PREAUTH?(n===_.A.ESF_BILLING_ERROR&&(0,O.Zj)(A.A.ESF_BILLING_FAIL),F=U(U({},F),{},{modal:v.bM.FREEZE,modalProps:{children:y,showBrowseButton:"string"==typeof g,showContactSupportButton:E}})):F=U(U({},F),{},{modal:v.bM.NO_SERVICES,modalProps:{subMessage:m.Ay.getString("disconnect_preauth"),updateLabel:m.Ay.getString("lb_add_new_card")}})}}else this.attemptCloseClient()}}},{key:"onRoomConnected",value:function(e){var t,n;(null!==(t=null==e||null===(n=e.authInfo)||void 0===n?void 0:n.userType)&&void 0!==t?t:0)===E.Ay.STREAM_TYPE_PRIVATE&&(T.A.statsIncCounter(g.A.SESSION_PRIVATE_AUTHORIZED),(0,O.Zj)(A.A.ENTERED_PRIVATE,{rate:L.A.getState().ratePremium,userId:D.A.getState().userId}),F=U(U({},F),{},{startTime:Date.now(),modal:"",modalProps:null})),x.A.isGoldOnlyStream()&&(F=U(U({},F),{},{startTime:Date.now()}))}},{key:"onRoomStatusChanged",value:function(e){T.A.debug({message:"ModalStore.onRoomStatusChanged",roomStatus:e}),F=U(U({},F),{},{modal:"",modalProps:null})}},{key:"onRoomEnteredPrivate",value:function(){T.A.statsIncCounter(g.A.SESSION_PRIVATE_AUTHORIZED),(0,O.Zj)(A.A.ENTERED_PRIVATE,{rate:L.A.getState().ratePremium,userId:D.A.getState().userId}),F=U(U({},F),{},{startTime:Date.now(),modal:"",modalProps:null})}},{key:"onAcceptance",value:function(){F=U(U({},F),{},{startTime:Date.now(),modal:"",modalProps:null}),(0,O.Zj)(A.A.ENTERED_EXCLUSIVE,{rate:L.A.getState().rateExclusive,userId:D.A.getState().userId})}},{key:"onGiveGoldClick",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.topContributorAmount,n=void 0===t?0:t,o=e.topContributorString,r=void 0===o?"":o;F.goldPending||F.goldQueued||(0,w.F)({givingGold:!0})&&(T.A.usage("givegold_modal_shown"),F=U(U({},F),{},{modal:v.bM.GOLD,activeGoldTab:v.yr.GIVE_GOLD}),F=U(U({},F),{},{topContributorAmount:n,topContributorString:r}))}},{key:"onEnterPaidClick",value:function(){var e=D.A.getState().userType;e===b.A.GUEST?(T.A.usage("enterpaid_modal_shown"),F.modal=v.bM.ENTER_PAID):T.A.error("Unknown user type: ".concat(e))}},{key:"onOpenGoldModal",value:function(e){F=U(U({},F),{},{modal:v.bM.GOLD,activeGoldTab:e})}},{key:"handleGoldMenuTabUpdate",value:function(e){F=U(U({},F),{},{activeGoldTab:e})}},{key:"attemptCloseClient",value:function(){N.Ay.getState().layout!==S.Ay.DESKTOP&&(F=U(U({},F),{},{closingClient:!0}),setTimeout((function(){p.A.dispatch({type:h.A.CLOSING_CLIENT})})),T.A.sendAndStop(),(0,O.Zj)(A.A.CLOSE_CLIENT))}},{key:"onGoldGiven",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.goldToGiveCentsUsd,n=e.fromQuickTip,o=e.spinGoldMenuName;if(!n&&!o){var r=D.A.getState(),i=r.needsPrebill,s=i?v.bM.SPINNER:null;F=U(U({},F),{},{goldPending:!0,modal:s,modalProps:null,pendingGoldGiven:t})}}},{key:"onQueueGold",value:function(){F=U(U({},F),{},{goldQueued:!0})}},{key:"autoCloseIfSuccess",value:function(){this.closeSuccessToken&&clearTimeout(this.closeSuccessToken),this.closeSuccessToken=setTimeout((function(){v.q3.has(F.modal)&&p.A.dispatch({type:h.A.CLOSE_MODAL})}),1e3)}},{key:"setGoldSuccessState",value:function(e){var t=e===v.bM.SPOT_RESERVED||F.spotReservedModalShown;F=U(U({},F),{},{goldPending:!1,goldQueued:!1,spotReservedModalShown:t,modal:e,showThanksSpendMessage:!e,thanksSpendAmount:F.pendingGoldGiven,pendingGoldGiven:null}),e&&this.autoCloseIfSuccess()}},{key:"onGoldGiveSuccess",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0===e?(F.goldPending||F.goldQueued||F.modal===v.bM.SPINNER)&&this.setGoldSuccessState():F=U(U({},F),{},{goldPending:!1,goldQueued:!1,pendingGoldGiven:null})}},{key:"onHideThanksSpendMessage",value:function(){F.showThanksSpendMessage=!1,F.thanksSpendAmount=null}},{key:"onRoomClientPledgeGold",value:function(e){if(e.failed)return F=U(U({},F),{},{goldPending:!1,goldQueued:!1,pendingGoldGiven:null}),void("shackled"===e.info.failureReason&&(F.modal=v.bM.DAILY_LIMIT));this.onPledgeGoldSuccess()}},{key:"onPledgeGoldSuccess",value:function(){if(F.goldPending||F.goldQueued||F.modal===v.bM.SPINNER){var e=R.A.isUserBoughtIn()&&!F.spotReservedModalShown?v.bM.SPOT_RESERVED:null;this.setGoldSuccessState(e)}}},{key:"onPostPaidSuccess",value:function(){this.setGoldSuccessState(v.bM.THANKS_POST_PAID),setTimeout((function(){p.A.dispatch({type:h.A.CLOSE_MODAL})}),2e3)}},{key:"onRequestPrivate",value:function(){F=U(U({},F),{},{modal:v.bM.LOADING_PRIVATE,modalProps:null})}},{key:"onPayoff",value:function(e){e&&this.onGoldGiveSuccess()}},{key:"onLoadConfig",value:function(e){var t=e.config,n=e.platform,o=t.user,r=o.limit,i=o.isStashLimit,s=o.id;(F=U(U({},F),{},{limit:r,isStashLimit:i,userid:Number(s)||0}),n===f.Ay.EXTERNAL_SITE_SHOW&&t.performer.isAvailable)&&(x.A.getState().essUsername||this.openEssEnterModal())}},{key:"getShackledString",value:function(){return F.isStashLimit?m.Ay.getString("prepaid_balance.exhausted"):F.limit&&F.limit>0?o||(o=(0,r.A)(k.A,{})):m.Ay.getString("user_shackled")}},{key:"getFlashVersionMessage",value:function(){return(0,r.A)("p",{},"flwarning",(0,r.A)("span",{},void 0,m.Ay.getString("disconnect_flash_version"))," ",(0,r.A)("a",{href:"http://www.adobe.com/go/getflashplayer"},void 0,m.Ay.getString("disconnect_flash_version_link")))}},{key:"onCam2CamClick",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.videoEnabled,n=void 0===t||t,o=e.audioEnabled,r=void 0===o||o,i=e.audioVideoChoice,s=void 0!==i&&i;T.A.usage("c2c_modal_shown"),T.A.info({message:"cam2cam-button-clicked"},{force:!0}),F.modal=v.bM.ENTER_CAM2CAM,F.modalProps={videoEnabled:n,audioEnabled:r,audioVideoChoice:s}}},{key:"onCam2CamRetryPrompt",value:function(){T.A.usage("c2c_retry_modal_shown"),F.modal=v.bM.RETRY_CAM2CAM}},{key:"onC2CEnded",value:function(){F.modal&&F.modal===v.bM.RETRY_CAM2CAM&&this.resetModal()}},{key:"confirmCam2CamExit",value:function(e){F.modal=v.bM.END_CAM2CAM,F.modalProps={onCloseConfirm:e.onCloseConfirm}}},{key:"onCloseModal",value:function(){F.modal!==v.bM.FREEZE?this.resetModal():(0,O.Zj)(A.A.BROWSE_LIVE_MODELS)}},{key:"openComplianceModal",value:function(){T.A.usage("compliance_modal_shown"),F.modal=v.bM.COMPLIANCE}},{key:"openEssEnterModal",value:function(){T.A.usage("ess_enter_modal_shown"),F.modal=v.bM.ESS_ENTER}},{key:"openTermsModal",value:function(){var e;null!==(e=j.A.getState().data)&&void 0!==e&&e.site&&(T.A.usage("toc_modal_shown"),F.modal=v.bM.TERMS)}},{key:"openQuickTipConsentModal",value:function(e){T.A.usage("quick_tip_consent_modal_shown"),F=U(U({},F),{},{modal:v.bM.QUICK_TIP_CONSENT,modalProps:{goldToGive:e.goldToGive}})}},{key:"openMobileQuickTipConsentModal",value:function(){T.A.usage("quick_tip_mobile_consent_modal_shown"),F=U(U({},F),{},{modal:v.bM.QUICK_TIP_MOBILE_CONSENT,modalProps:null})}},{key:"openQuickTipCustomValueModal",value:function(){T.A.usage("quick_tip_custom_value_modal_shown"),F=U(U({},F),{},{modal:v.bM.QUICK_TIP_CHANGE_CUSTOM_VALUE,modalProps:null})}},{key:"onCam2CamDiagnosticComplete",value:function(e){var t=e.report;if(e.success){if((0,w.F)()){var n=D.A.getState().userType;n===b.A.GUEST?(T.A.usage("enterpaid_modal_shown"),F.modal=v.bM.CAM2CAM_DIAGNOSTIC_SUCCEEDED):T.A.error("Unknown user type: ".concat(n))}}else F=U(U({},F),{},{modal:v.bM.CAM2CAM_DIAGNOSTIC_FAILED,modalProps:{report:t}})}},{key:"setSessionLengthForPostPaidModal",value:function(e){F=U(U({},F),{},{sessionLengthForPostPaidModal:e})}},{key:"openTwoFactorAuthenticationRequiredModal",value:function(){T.A.usage("two_factor_authentication_required_modal_shown"),F=U(U({},F),{},{modal:v.bM.TWO_FACTOR_AUTHENTICATION_REQUIRED,modalProps:{}})}},{key:"openNoServicesModal",value:function(){T.A.usage("noservices_modal_shown"),F=U(U({},F),{},{modal:v.bM.NO_SERVICES,modalProps:{message:m.Ay.getString("noservices_alert"),subMessage:m.Ay.getString("noservices_message"),updateLabel:m.Ay.getString("lb_update_info")}})}},{key:"openPayoffModal",value:function(e){var t=e.owedString;T.A.usage("payoff_modal_shown"),F=U(U({},F),{},{modal:v.bM.PAYOFF,modalProps:{owedString:t}})}},{key:"setCloseButtonVisibility",value:function(e){F=U(U({},F),{},{modalProps:U(U({},F.modalProps),{},{showCloseButton:e})})}},{key:"resetModal",value:function(){F=U(U({},F),{},{goldPending:!1,goldQueued:!1,modal:"",modalProps:null})}},{key:"reset",value:function(){F=U({},V)}},{key:"__onDispatch",value:function(e){switch(p.A.waitFor([R.A.getDispatchToken()]),e.type){case h.A.ROOM_PAYOFF:this.onPayoff(!0);break;case y.A.ROOM_CLIENT_ENTERED_BLOCK_SESSION:case y.A.ROOM_CLIENT_ENTERED_EXCLUSIVE:this.onAcceptance();break;case y.A.ROOM_CLIENT_CONNECTED:this.onRoomConnected(e.data);break;case y.A.ROOM_CLIENT_STATUS_CHANGED:this.onRoomStatusChanged(e.data);break;case y.A.ROOM_CLIENT_PLEDGE_GOLD:this.onRoomClientPledgeGold(e.data);break;case y.A.ROOM_CLIENT_GIVE_GOLD:if(e.data.failed)return;this.onGoldGiveSuccess();break;case y.A.ROOM_CLIENT_ENTERED_PRIVATE:this.onRoomEnteredPrivate();break;case h.A.DISCONNECT:this.onDisconnect(e.data);break;case h.A.CAM2CAM_RETRY:case h.A.CAM2CAM_RETRY_CANCEL:case h.A.SET_ESS_USERNAME:this.resetModal();break;case h.A.CAM2CAM_END:this.onC2CEnded();break;case h.A.RESET:this.reset();break;case h.A.GIVE_GOLD_CLICK:T.A.usageTick("givegold_clicked"),this.onGiveGoldClick(e.data);break;case h.A.OPEN_GOLD_MODAL:this.getState().goldPending||this.getState().goldQueued||!(0,w.F)({givingGold:!0})||this.onOpenGoldModal(e.data.activeGoldTab);break;case h.A.ACTIVE_GOLD_MENU_TAB:this.handleGoldMenuTabUpdate(e.data.activeGoldTab);break;case h.A.ENTER_PAID_CLICK:T.A.usageTick("enterpaid_clicked"),!x.A.getState().goldOnly&&(0,w.F)()&&this.onEnterPaidClick();break;case h.A.CLOSE_MODAL:this.onCloseModal();break;case h.A.CAM2CAM_CONFIRM_END:this.confirmCam2CamExit(e.data);break;case h.A.CAM2CAM_DIAGNOSTIC_COMPLETE:this.onCam2CamDiagnosticComplete(e.data);break;case h.A.USER_REQUEST_PRIVATE:this.onRequestPrivate(e.data);break;case h.A.USER_GIVE_GOLD:case h.A.USER_PLEDGE_GOLD:case h.A.ROOM_REQUEST_PAYOFF:this.onGoldGiven(e.data);break;case h.A.USER_QUEUE_GOLD:this.onQueueGold(e.data);break;case h.A.LOAD_CONFIG:this.onLoadConfig(e.data);break;case h.A.CAM2CAM_CLICK:this.onCam2CamClick(e.data);break;case h.A.CAM2CAM_RETRY_PROMPT:this.onCam2CamRetryPrompt(e.data);break;case h.A.OPEN_COMPLIANCE_MODAL:this.openComplianceModal();break;case h.A.OPEN_ESS_ENTER_MODAL:this.openEssEnterModal();break;case h.A.OPEN_TERMS_MODAL:this.openTermsModal();break;case h.A.POST_PAID_SUCCESS_MODAL:this.onPostPaidSuccess();break;case h.A.SHOW_QUICK_TIP_CONSENT_MODAL:this.openQuickTipConsentModal(e.data);break;case h.A.SHOW_MOBILE_QUICK_TIP_CONSENT_MODAL:this.openMobileQuickTipConsentModal();break;case h.A.SHOW_QUICK_TIP_CUSTOM_VALUE_MODAL:this.openQuickTipCustomValueModal();break;case h.A.HIDE_THANKS_SPEND_MESSAGE:this.onHideThanksSpendMessage();break;case h.A.OPEN_TWO_FACTOR_AUTHENTICATION_REQUIRED_MODAL:this.openTwoFactorAuthenticationRequiredModal();break;case h.A.SHOW_NO_SERVICES_MODAL:this.openNoServicesModal();break;case h.A.SHOW_PAYOFF_MODAL:this.openPayoffModal(e.data);break;case h.A.MODAL_CLOSE_BUTTON_HIDE:this.setCloseButtonVisibility(!1);break;case h.A.MODAL_CLOSE_BUTTON_SHOW:this.setCloseButtonVisibility(!0);break;default:return}this.__emitChange()}}]),n}(P.A))("modal",p.A)},"./src/stores/OverlayStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>R,k:()=>P});var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./src/lib/Dispatcher.js"),d=n("./src/constants/Actions.js"),p=n("./src/constants/RpcCalls.js"),m=n("./src/constants/DisconnectReasons.js"),h=n("./src/constants/Overlays.ts"),A=n("./src/constants/Platforms.ts"),f=n("./src/stores/ConnectionStore.js"),g=n("./src/stores/ModalStore.js"),y=n("./src/stores/ConfigStore.ts"),v=n("./src/stores/UserStore.js"),b=n("./src/stores/UserListStore.ts"),_=n("./src/stores/GoldShowStore.js"),E=n("./src/stores/RoomStore.ts"),S=n("./src/utils/log.js"),C=n("./src/utils/FluxStoreExtended.ts"),T=n("./src/utils/gold.js");function O(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;t=_.A.getState().minbuyin&&(k.needPledge=!1,k.overlay=h.A.NONE)}},{key:"handleLoadConfig",value:function(e){var t=e.config;k.configLoaded=!0,t.performer.isAvailable||(k.overlay=h.A.OFFLINE)}},{key:"handleForceBillingUpdate",value:function(){k.overlay=h.A.FORCE_BILLING_INFO_UPDATE}},{key:"__onDispatch",value:function(e){switch(e.type){case p.A.ROOM_CLIENT_STATUS_CHANGED:this.handleRoomStatusChanged(e.data);break;case p.A.ROOM_CLIENT_PLEDGE_GOLD:this.handleRoomPledgeGold(e.data);break;case p.A.ROOM_CLIENT_GOLDSHOW:this.handleRoomGoldShow(e.data);break;case d.A.DISCONNECT:case d.A.VIDEO_DISCONNECT:u.A.waitFor([f.A.getDispatchToken(),g.A.getDispatchToken()]),this.handleDisconnect(e.data);break;case d.A.FORCE_BILLING_INFO_UPDATE:this.handleForceBillingUpdate();break;case d.A.USER_REQUEST_PRIVATE:this.handlePlaying();break;case d.A.LOAD_CONFIG:u.A.waitFor([f.A.getDispatchToken()]),this.handleLoadConfig(e.data);break;case d.A.RESET:k=w({},P);break;case d.A.LOCK_OVERLAY:k=w(w({},k),{},{lockOverlay:!0});break;case d.A.CLOSING_CLIENT:y.A.getState().platform!==A.Ay.BLACKLABEL&&y.A.getState().platform!==A.Ay.STREAMFANS&&(k=w(w({},k),{},{overlay:h.A.CLOSING_CLIENT,lockOverlay:!0})),y.A.getState().platform===A.Ay.STREAMFANS&&(k=w(w({},k),{},{overlay:h.A.NONE,lockOverlay:!1}));break;case d.A.SET_THROTTLE_TIME:k=w(w({},k),{},{throttleTime:e.data});break;default:return}S.A.usage("last_overlay",k.overlay),this.__emitChange()}}]),n}(C.A))("overlay",u.A)},"./src/stores/PerformerSubscribersStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("./src/utils/FluxStoreExtended.ts"),u=n("./node_modules/lodash/isEmpty.js"),d=n.n(u),p=n("./src/lib/Dispatcher.js"),m=n("./src/constants/Actions.js"),h=n("./src/constants/StatsEvents.js"),A=n("./src/constants/Platforms.ts"),f=n("./src/utils/PerformerSubscribers.js"),g=n("./src/utils/localization.js"),y=n("./src/utils/log.js");function v(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,a.A)(e);if(t){var r=(0,a.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,s.A)(this,n)}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.subscriptionPlans,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.subscriptionAvailable,u=null!==(e=null==a?void 0:a.id)&&void 0!==e?e:0,d=Boolean(u),p=E(null==a?void 0:a.nextcharge),m=null!==(t=null==a?void 0:a.endofsubscription)&&void 0!==t&&t,h=u&&l.filter((function(e){return e.id===(null==a?void 0:a.planid)}))[0]||{},A=null!==(n=null==h||null===(o=h.details)||void 0===o?void 0:o.pricetimes100)&&void 0!==n?n:0,g=f.Ay.getPlanPriceString(h),y=null!==(r=null==h?void 0:h.id)&&void 0!==r?r:0,v=null!==(i=null==h||null===(s=h.details)||void 0===s?void 0:s.benefits)&&void 0!==i?i:{},b=this.showSubscribeButton(l,d,c);return{showSubscribeButton:b,userIsSubscribed:d,subscriptionId:u,nextBillingDate:p,subscriptionEnding:m,subscriptionPlan:h,subscriptionPrice:A,subscriptionPriceCurrency:g,subscriptionPlanId:y,subscriptionBenefits:v}}},{key:"showSubscribeButton",value:function(e,t,n){return!d()(e)&&(t||n)}},{key:"attachError",value:function(e,t){var n=C.subscriptionPlans.findIndex((function(t){return t.id===e}));-1!==n?C.subscriptionPlans[n].error=t:y.A.error({message:"subscription-inline-error-plan-not-found"})}},{key:"handleSubChangeSuccess",value:function(e){C=_(_({},C),{},{requestPending:!1,requestSuccessful:!0,subscription:e||{}},this.parseNewSubscription(e))}},{key:"handleSubFailure",value:function(e){C=_(_({},C),{},{requestPending:!1,requestSuccessful:!1}),this.attachError(e,f.sH.SUB_ERROR)}},{key:"handleUnsubFailure",value:function(e){C=_(_({},C),{},{requestPending:!1,requestSuccessful:!1}),this.attachError(e,f.sH.UNSUB_ERROR)}},{key:"handleCloseModal",value:function(){C.requestPending||(C=_(_({},C),{},{subscriptionModalOpen:!1,modalAutoClosePending:!1}),setTimeout((function(){C=_(_({},C),{},{requestSuccessful:!1})}),0))}},{key:"handleRequestSubscribe",value:function(){C=_(_({},C),{},{requestPending:!0})}},{key:"handleDailyLimit",value:function(e){this.attachError(e,f.sH.DAILY_LIMIT)}},{key:"handleSubscriptionBlock",value:function(e){var t;t=C.subscriptionBlockers.includes(f.wB.SPENDING_NOT_ENABLED)?f.sH.INVALID_CC:C.subscriptionBlockers.includes(f.wB.LOW_LIFETIME_SPEND)?f.sH.SPENDING_HISTORY:f.sH.DEFAULT,this.attachError(e,t)}},{key:"handleLoadConfig",value:function(e){var t=e.config;C.userId=t.user.id,C.performerId=t.performer.id,this.attemptDispatchEnabledLOMS()}},{key:"attemptDispatchEnabledLOMS",value:function(){var e=C,t=e.dispatchedEnabledLOMS,n=e.showSubscribeButton,o=e.platform,r=e.performerId,i=e.userId;!t&&n&&o===A.Ay.SCP&&r&&(y.A.statsIncCounter(h.A.SUBSCRIPTIONS.AVAILABLE),y.A.loms({eventname:"PerformerSubscribersEnabledV1",performerId:Number(r),userId:Number(i||0)}),C.dispatchedEnabledLOMS=!0)}},{key:"setPlatform",value:function(e){C.platform=e}},{key:"__onDispatch",value:function(e){switch(e.type){case m.A.PERFORMER_SUBSCRIBERS_INFO:this.handleInfo(e.data);break;case m.A.PERFORMER_SUBSCRIBERS_REQUEST_SUBSCRIBE:case m.A.PERFORMER_SUBSCRIBERS_REQUEST_UNSUBSCRIBE:this.handleRequestSubscribe();break;case m.A.PERFORMER_SUBSCRIBERS_UNSUB_SUCCESS:case m.A.PERFORMER_SUBSCRIBERS_SUB_SUCCESS:this.handleSubChangeSuccess(e.data);break;case m.A.PERFORMER_SUBSCRIBERS_SUB_FAILURE:this.handleSubFailure(e.data);break;case m.A.PERFORMER_SUBSCRIBERS_UNSUB_FAILURE:this.handleUnsubFailure(e.data);break;case m.A.PERFORMER_SUBSCRIBERS_SUBSCRIPTION_BLOCK:this.handleSubscriptionBlock(e.data);break;case m.A.PERFORMER_SUBSCRIBERS_DAILY_LIMIT_REACHED:this.handleDailyLimit(e.data);break;case m.A.PERFORMER_SUBSCRIBERS_OPEN_MODAL:C=_(_({},C),{},{subscriptionModalOpen:!0});break;case m.A.PERFORMER_SUBSCRIBERS_AUTO_CLOSE_MODAL:C=_(_({},C),{},{modalAutoClosePending:!0});break;case m.A.PERFORMER_SUBSCRIBERS_CLOSE_MODAL:this.handleCloseModal();break;case m.A.LOAD_CONFIG:this.handleLoadConfig(e.data);break;case m.A.RESET:this.reset();break;default:return}this.__emitChange()}}]),n}(c.A))("performerSubscribers",p.A)},"./src/stores/RateStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("./src/utils/FluxStoreExtended.ts"),u=n("./node_modules/lodash/find.js"),d=n.n(u),p=n("./src/lib/Dispatcher.js"),m=n("./src/lib/AjaxRequest.js"),h=n("./src/constants/Actions.js"),A=n("./src/constants/StatsEvents.js");const f="ChatPrivate",g="ChatExclusive",y="PrivateChat",v="ExclusiveChat";var b=n("./src/constants/CurrencyConstants.js"),_=n("./src/utils/log.js"),E=n("./src/utils/currency.js");function S(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,a.A)(e);if(t){var r=(0,a.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,s.A)(this,n)}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t0?t={resumeSession:l.resumed[0]}:t={ratePremium:c||null,rateExclusive:u||null,blockSessions:l};if(f!==b.A.DEFAULT_EXCHANGE_RATE&&r===b.A.DEFAULT_CURRENCY_CODE&&A!==b.A.DEFAULT_CURRENCY_CODE&&g){var v,_,S=function(e){return(Math.round(E.A.convertFromUSD(100*Number(e),f))/100).toFixed(2)},C=function(e){return T(T({},e),{},{discountedrate:S(e.discountedrate),total:S(e.total)})};t.ratePremium&&(t.ratePremium=S(t.ratePremium)),t.rateExclusive&&(t.rateExclusive=S(t.rateExclusive)),null!==(v=t.blockSessions)&&void 0!==v&&v.premium&&(t.blockSessions.premium=t.blockSessions.premium.map(C)),null!==(_=t.blockSessions)&&void 0!==_&&_.exclusive&&(t.blockSessions.exclusive=t.blockSessions.exclusive.map(C)),t.resumeSession&&(t.resumeSession=C(t.resumeSession))}t.dynamicRateSelectionId=d,t.dynamicRateModelName=p,t.dynamicPrivateRateUSD=m,t.dynamicExclusiveRateUSD=h,I=T(T(T({},I),y),t)}},{key:"hasBlockSessionsAvailable",value:function(){return I.blockSessions&&(I.blockSessions.premium.length>0||I.blockSessions.exclusive.length>0)}},{key:"maxDiscountRate",value:function(){if(!this.hasBlockSessionsAvailable())return null;var e=I.blockSessions.premium.concat(I.blockSessions.exclusive).reduce((function(e,t){return Math.min(e,Math.min(parseFloat(t.discount)))}),100),t=Math.round(100-e);return(t>99||t<5)&&_.A.error({message:"Unexpected max discount rate for block sessions",discount:t}),t}},{key:"handleSubscriptionDiscount",value:function(e,t){switch(t){case f:I.ratePremiumDiscount=e;break;case g:I.rateExclusiveDiscount=e;break;default:return}}},{key:"requestSubscriptionDiscounts",value:function(e,t,n,o,r){var i=this,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=Number((t||"0").replace(/\D/g,"")),l=Number((e||"0").replace(/\D/g,"")),c=Number(s||0);r&&n&&o&&(l>0&&setTimeout((function(){return i.fetchAndDispatchDiscounts(n,o,r,l,y,f)}),c),a>0&&setTimeout((function(){return i.fetchAndDispatchDiscounts(n,o,r,a,v,g)}),c))}},{key:"fetchAndDispatchDiscounts",value:function(e,t,n,o,r,i){_.A.statsIncCounter(A.A.DISCOUNT.SUBSCRIPTIONS_REQUEST);var s={performerId:e,userId:t,sakey:n,subtotal:o,streamType:r},a=m.A.getBaseUrl()+"/api/v1/subscription/discount";m.A.post(a,s,"json",(function(e){var t,n,o,r=null===(t=e.body)||void 0===t?void 0:t.subtotal,s=d()(null!==(n=null===(o=e.body)||void 0===o?void 0:o.discounts)&&void 0!==n?n:[],["discount_type",i]);r&&s&&(p.A.dispatch({type:h.A.PERFORMER_SUBSCRIPTION_DISCOUNT,data:{discountSubtotal:r,discountType:i}}),_.A.statsIncCounter(A.A.DISCOUNT.SUBSCRIPTIONS_SUCCESS))}),(function(){_.A.statsIncCounter(A.A.DISCOUNT.SUBSCRIPTIONS_FAILURE)}))}},{key:"reset",value:function(){I=T({},O)}},{key:"__onDispatch",value:function(e){switch(e.type){case h.A.LOAD_CONFIG:this.handleLoadRateConfig(e.data.config);break;case h.A.PERFORMER_SUBSCRIPTION_DISCOUNT:this.handleSubscriptionDiscount(e.data.discountSubtotal,e.data.discountType);break;case h.A.RESET:this.reset();break;default:return}this.__emitChange()}}]),n}(c.A))("rate",p.A)},"./src/stores/TopContributorsStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("./src/lib/Dispatcher.js"),u=n("./src/utils/FluxStoreExtended.ts"),d=n("./src/constants/Actions.js"),p=n("./src/constants/RpcCalls.js"),m=n("./src/utils/log.js"),h=n("./src/utils/gold.js");function A(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,a.A)(e);if(t){var r=(0,a.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,s.A)(this,n)}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t{"use strict";n.d(t,{A:()=>Y});var o=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./node_modules/@babel/runtime/regenerator/index.js"),d=n.n(u),p=n("./src/stores/ConfigStore.ts"),m=n("./src/constants/Actions.js"),h=n("./src/constants/Connection.js"),A=n("./src/constants/CurrencyConstants.js"),f=n("./src/constants/Feature.ts"),g=n("./src/constants/NaiadSessionType.js"),y=n("./src/constants/Platforms.ts"),v=n("./src/constants/RpcCalls.js"),b=n("./src/lib/AjaxRequest.js"),_=n("./src/lib/Dispatcher.js"),E=n("./src/lib/RoomClient.ts"),S=n("./src/lib/Strings.js"),C=n("./node_modules/lodash/get.js"),T=n.n(C),O=n("./node_modules/lodash/isObject.js"),I=n.n(O),w=n("./node_modules/lscache/lscache.js"),P=n.n(w),k=n("./src/stores/ConnectionStore.js"),R=n("./src/utils/FluxStoreExtended.ts"),D=n("./src/utils/currency.js"),L=n("./src/utils/log.js");function x(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function j(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:[],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],d=arguments.length>6&&void 0!==arguments[6]&&arguments[6],p=arguments.length>7&&void 0!==arguments[7]&&arguments[7],m=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"",h=e.nonpremium,A=e.id,v=e.nickname,b=e.sakey,_=e.isStashLimit,E=e.stashUser,C=e.isNonBillableUser,T=e.isBilling2,O=e.redirectToConfirm,I=e.isPrebillRequired,w=e.currencySymbol,P=e.displayCurrencyOnly,k=e.isExternalSiteFunds,R=e.taxPercentage,x=e.taxType,N=e.feePercentage,M=e.currencyCode,B=e.exchangeRate,U=e.status,G=t.exchangeRate,V=g.A.PREVIEW;h?V=g.A.BASIC:A&&(V=g.A.GUEST),o===y.Ay.EXTERNAL_SITE_SHOW&&(V=g.A.EXTERNAL),H=j(j({},H),{},{userStatus:U,userId:A||null,userType:V,nickname:v,sakey:b,isBilling2:Boolean(T),isStashLimit:Boolean(_),stashUser:Boolean(E),limit:Number(null!==(r=n.goldLimitAvailable)&&void 0!==r?r:F.limit),goldLimitAvailable:Number(null!==(i=null!==(s=n.goldLimitAvailable)&&void 0!==s?s:n.dailyLimitAvailable)&&void 0!==i?i:F.limit),dailyLimit:Number(null!==(a=n.dailyLimit)&&void 0!==a?a:F.dailyLimit),dailyLimitAvailable:Number(null!==(l=n.dailyLimitAvailable)&&void 0!==l?l:F.dailyLimitAvailable),userIsSubjectToGoldLimit:Boolean(n.userIsSubjectToGoldLimit),isNonBillable:Boolean(null!=C?C:F.isNonBillable),redirectToConfirm:Boolean(null!=O?O:F.redirectToConfirm),needsPrebill:Boolean(null!=I?I:F.needsPrebill),billingCurrencyUtf:null!=w?w:F.billingCurrencyUtf,billingCurrencyDisplayOnly:Boolean(null!=P?P:F.billingCurrencyDisplayOnly),currencyCode:null!=M?M:F.currencyCode,exchangeRate:Number(null!=B?B:F.exchangeRate),isExternalSiteFunds:null!=k?k:F.isExternalSiteFunds,taxPercentage:Number(null!=R?R:F.taxPercentage),taxType:String(null!=x?x:F.taxType),feePercentage:Number(null!=N?N:F.feePercentage),quickTipDisabled:c.includes(f.Ay.QUICK_TIP),goldMenuDisabled:c.includes(f.Ay.GOLD_MENU),enabledContentReportingFeatures:new Set(u.filter((function(e){return f.nt.has(e)}))),decimalLocalGold:d,platform:o,twoFactorAuthenticationRequired:p,twoFactorAuthenticationEmailRequestToken:m,loggedIn:Boolean(A&&b)}),H=j(j({},H),{},{chargeExchangeRate:H.billingCurrencyDisplayOnly?Number(null!=G?G:H.exchangeRate):H.exchangeRate}),A&&L.A.set("userid",A),S.Ay.preprocessStrings({dailyLimit:D.A.currencyify(H.dailyLimit,H.currencyCode)}),this.updateQuickTipConsent(),this.updateGoldGivingFlags()}},{key:"updateQuickTipConsent",value:function(){var e=Number(P().get("quickTipExchangeRate")),t=Number(P().get("quickTipTaxPercentage")),n=Number(P().get("quickTipFeePercentage")),o=e===H.exchangeRate&&t===H.taxPercentage&&n===H.feePercentage,r=!!o&&Boolean(P().get("quickTipConsent")),i=o?Number(P().get("quickTipCustomValue")||0):0;H=j(j({},H),{},{quickTipConsent:r,quickTipCustomValue:i})}},{key:"updateGoldGivingFlags",value:function(){var e=H.exchangeRate!==M,t=!e;H=j(j({},H),{},{goldCurrencyCode:t?H.currencyCode:null,isGoldOneUsd:e,showFinalCost:!H.stashUser&&G.has(H.currencyCode)&&Boolean(H.taxPercentage||H.feePercentage)})}},{key:"userGaveGold",value:function(e){var t=e.goldToGiveFractionalLocal,n=e.isPrivate,o=e.goldMenuItem,r=e.fromQuickTip,i=e.spinGoldMenuName,s=H,a=s.platform,l=s.userId,c=s.sakey,u=s.userType,d=this.getGoldType(o,r,i),p=j(j({amount:t,isAnonymous:n,isFromQuickTip:Boolean(r)},i?{spinGoldMenuName:i}:void 0),o&&I()(o)?{goldMenuOption:o}:{});E.Ay.giveGold(p),H.totalGoldGiven+=t,H.queuedGoldToGiveFractionalLocal=Math.max(0,H.queuedGoldToGiveFractionalLocal-t),u===g.A.GUEST&&L.A.loms({eventname:"GuestGiveGoldV4",userId:"".concat(l),sakey:"".concat(c),amount:Math.floor(t),platform:"".concat(a)}),L.A.statsIncCounter("session.gold.".concat(d))}},{key:"userPledgeGold",value:function(e){var t=e.goldToGiveFractionalLocal,n={amount:t,isAnonymous:e.isPrivate};E.Ay.pledgeGoldShow(n),H.queuedGoldToGiveFractionalLocal=Math.max(0,H.queuedGoldToGiveFractionalLocal-t),L.A.statsIncCounter("session.gold.pregoldshow")}},{key:"handleRoomClientPledgeOrGiveGold",value:function(e){var t=e.failed,n=e.info;H.lastGiveGoldSucceeded=!t,t||(H.needsPrebill=n.isPrebillRequired,H.maxGold=n.maxGold)}},{key:"handlePrebillStatusUpdate",value:function(e){var t=e.needsPrebill;H.needsPrebill=t}},{key:"handleQueueGold",value:function(e){H.queuedGoldToGiveFractionalLocal+=e.data.goldToGiveFractionalLocal||0}},{key:"userRequestPrivate",value:function(e){var t=e.sessionType,n=e.discountId,o=e.blockDuration,r=e.remainingDuration,i=e.showId;if(o){var s=t===g.A.EXCLUSIVE?"blockExclusive":"blockPrivate";E.Ay.requestBlockSession({sessionType:s,performerDiscountId:Number(n),resumeBlockSessionStreamId:Number(i),minimumDuration:o,remainingDuration:r})}else t===g.A.EXCLUSIVE?E.Ay.requestExclusive():E.Ay.enterPrivate();L.A.usageTick("userrequest_".concat(t.toLowerCase()).concat(o?"_blocksession":"")),L.A.loms({eventname:"RequestedPaidSessionV1",sessionType:t,blockDuration:parseInt(o,10)||0,resumingSession:Boolean(i)})}},{key:"userRequestPayoff",value:function(){E.Ay.handlePayoff()}},{key:"handlePayoff",value:function(e){e&&(H=j(j({},H),{},{owedAmount:0,owedString:""}))}},{key:"setSakey",value:function(e){H.sakey=e}},{key:"handleQuickTipConsent",value:function(){H.quickTipConsent=!0,P().set("quickTipConsent",!0),P().set("quickTipExchangeRate",H.exchangeRate),P().set("quickTipTaxPercentage",H.taxPercentage),P().set("quickTipFeePercentage",H.feePercentage)}},{key:"handleQuickTipSetCustomValue",value:function(e){this.handleQuickTipConsent(),H.quickTipCustomValue=e.value,P().set("quickTipCustomValue",e.value)}},{key:"handleSetStatsBucket",value:function(e){H.browserStatsBucket=e}},{key:"handleVideoStart",value:function(e){var t=e.driverName,n=H,o=n.userHasSeenPlayback,r=n.browserStatsBucket;o||L.A.statsIncCounter("platforms.".concat(r,".aiw_playing.").concat(t)),H.userHasSeenPlayback=!0}},{key:"handleRequestMaxGold",value:function(){H.maxGold<=0&&!H.stashUser||H.fetchingMaxGold||(H.fetchingMaxGold=!0,this.fetchMaxGold().then((function(e){_.A.dispatch({type:m.A.MAX_GOLD,data:{maxGold:e}})})))}},{key:"handleMaxGold",value:function(e){var t=e.maxGold;H.maxGold=t,H.fetchingMaxGold=!1}},{key:"setRewardsInfo",value:function(e){H=j(j({},H),{},{rewards:e})}},{key:"setUseCreateAccountCta",value:function(e){H.useCreateAccountCta=e}},{key:"clearTwoFactorAuthenticationEmailRequestToken",value:function(){H=j(j({},H),{},{twoFactorAuthenticationEmailRequestToken:""})}},{key:"getGoldType",value:function(e,t,n){var o="guest";return I()(e)?o="goldmenu":t?o="quicktip":n&&(o="spingold"),o}},{key:"reset",value:function(){var e=H.rewards;H=j(j({},F),{},{rewards:e})}},{key:"fetchMaxGold",value:(t=(0,o.A)(d().mark((function e(){var t,n,o,r,i,s,a,l,c;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(n=H).sakey,r=n.userId,i={userId:r,sakey:o,streamType:0},s=b.A.getBaseUrl()+"/api/v1/goldbalance/",e.next=5,b.A.postPromise(s,i,"json").catch((function(e){return{status:e.status}}));case 5:return a=e.sent,l=null==a||null===(t=a.body)||void 0===t?void 0:t.error,(c=200===Number(null==a?void 0:a.status)&&!l)?L.A.statsIncCounter("session.goldbalance"):L.A.error({message:"givegoldajax-update-maxgold-bad-response",code:a.status}),e.abrupt("return",c?Math.max(0,T()(a,"body.maxgold")):0);case 10:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"fetchAvailableDailyLimit",value:function(){var e=H.sakey,t=p.A.getState().platform,n=y.CS.get(t),o=p.A.getState().memberServer,r="".concat(o,"/billing/v1/dailylimit");b.A.get(r,null,(function(e){var t,n=null===(t=e.body)||void 0===t?void 0:t.availableAmount;void 0!==n&&_.A.dispatch({type:m.A.SET_AVAILABLE_DAILY_LIMIT,data:{dailyLimitAvailable:n}})}),(function(e){L.A.error({message:"fetch-available-daily-limit-error",code:e.status})}),{platform:n,sakey:e})}},{key:"setAvailableDailyLimit",value:function(e){var t=e.dailyLimitAvailable;H.dailyLimitAvailable=t}},{key:"__onDispatch",value:function(e){switch(e.type){case m.A.ROOM_PAYOFF:this.handlePayoff(!0);break;case v.A.ROOM_CLIENT_CONNECTED:this.handleRoomConnected(e.data);break;case v.A.ROOM_CLIENT_GIVE_GOLD:case v.A.ROOM_CLIENT_PLEDGE_GOLD:if(e.data.failed)return;this.handleRoomClientPledgeOrGiveGold(e.data);break;case v.A.ROOM_CLIENT_ENTERED_PRIVATE:case v.A.ROOM_CLIENT_ENTERED_EXCLUSIVE:case v.A.ROOM_CLIENT_ENTERED_BLOCK_SESSION:this.handleRoomEnteredPrivate(e.data);break;case m.A.LOAD_CONFIG:e.data.config.user&&this.handleConfig(e.data.config.user,e.data.config.rate,e.data.limits,e.data.platform,e.data.disabledFeatures,e.data.enabledFeatures,e.data.decimalLocalGold,e.data.twoFactorAuthenticationRequired,e.data.twoFactorAuthenticationEmailRequestToken);break;case m.A.SET_USER_COUNTRY:this.handleSetUserCountry(e.data);break;case m.A.USER_GIVE_GOLD:this.userGaveGold(e.data);break;case m.A.USER_QUEUE_GOLD:this.handleQueueGold(e);break;case m.A.USER_PLEDGE_GOLD:this.userPledgeGold(e.data);break;case m.A.ROOM_REQUEST_PAYOFF:this.userRequestPayoff();break;case m.A.USER_REQUEST_PRIVATE:this.userRequestPrivate(e.data);break;case m.A.QUICK_TIP_CONSENT:this.handleQuickTipConsent();break;case m.A.QUICK_TIP_SET_CUSTOM_VALUE:this.handleQuickTipSetCustomValue(e.data);break;case m.A.UPDATE_PREBILL_STATUS:this.handlePrebillStatusUpdate(e.data);break;case m.A.SET_STATS_BUCKET:this.handleSetStatsBucket(e.data);break;case m.A.VIDEO_START:this.handleVideoStart(e.data);break;case m.A.REQUEST_MAX_GOLD:this.handleRequestMaxGold();break;case m.A.MAX_GOLD:this.handleMaxGold(e.data);break;case m.A.CLEAR_TWO_FACTOR_AUTHENTICATION_EMAIL_REQUEST_TOKEN:this.clearTwoFactorAuthenticationEmailRequestToken();break;case m.A.UPDATE_USER_REWARDS_INFORMATION:this.setRewardsInfo(e.data);break;case m.A.FETCH_AVAILABLE_DAILY_LIMIT:this.fetchAvailableDailyLimit();break;case m.A.SET_AVAILABLE_DAILY_LIMIT:this.setAvailableDailyLimit(e.data);break;case m.A.RESET:this.reset();break;default:return}this.__emitChange()}}]),a}(R.A))("user",_.A)},"./src/stores/VideoControlsStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),s=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),a=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),c=n("./node_modules/lodash/isEqual.js"),u=n.n(c),d=n("./src/lib/Dispatcher.js"),p=n("./src/constants/VideoConstants.js"),m=n("./src/utils/FluxStoreExtended.ts"),h=n("./src/lib/Strings.js"),A=n("./src/constants/Actions.js"),f=n("./node_modules/lscache/lscache.js"),g=n.n(f);function y(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,a.A)(e);if(t){var r=(0,a.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,s.A)(this,n)}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t0?E.isMuted=!1:E.isMuted||0!==t||(E.isMuted=!0)}},{key:"handleVideoPlaying",value:function(e){var t=e.supportsVolume,n=e.currentFormat;E.supportsVolume=t,E.currentFormat=n,E.videoPlaying=!0,E.startCam2Cam&&("webrtc"!==E.currentFormat?setTimeout((function(){d.A.dispatch({type:A.A.DISPLAY_MESSAGE,data:{message:h.Ay.getString("cam2cam_broadcaster_err")}})})):setTimeout((function(){d.A.dispatch({type:A.A.CAM2CAM_CLICK,data:{}})})),E.startCam2Cam=!1)}},{key:"handleVideoRefresh",value:function(e){var t=e.shouldRefresh,n=e.startCam2Cam;E.shouldRefresh=t,n?(E.startCam2Cam=n,E.chosenStream=p.A.ORIGIN_STREAM):E.chosenStream=null}},{key:"handleManifest",value:function(e){E.currentFormat=e.currentFormat,Reflect.deleteProperty(e,"currentFormat"),E.manifestData=b({},e)}},{key:"handlePickStream",value:function(e){E.chosenStream=e}},{key:"__onDispatch",value:function(e){var t=b({},E);switch(e.type){case A.A.MUTE:this.handleMute(e.data);break;case A.A.SET_VOLUME:this.handleVolume(e.data);break;case A.A.VIDEO_REFRESH:this.handleVideoRefresh(e.data);break;case A.A.VIDEO_PLAYING:this.handleVideoPlaying(e.data);break;case A.A.WONDER_MANIFEST:this.handleManifest(e.data);break;case A.A.PICK_STREAM:this.handlePickStream(e.data);break;default:return}u()(t,E)||this.__emitChange()}}]),n}(m.A))("videoControls",d.A)},"./src/stores/VideoPipStore.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var o=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),u=n("./src/utils/FluxStoreExtended.ts"),d=n("./src/lib/Dispatcher.js"),p=n("./src/constants/Actions.js"),m=n("./src/constants/VideoConstants.js"),h=n("./src/constants/Messages.js"),A=n("./src/utils/log.js"),f=n("./src/utils/tools.ts");function g(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,o=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var v=["flash"],b=function(e){for(var t=1;t0&&(A.A.loms({eventname:"PIPDisplayTimeV1",time:b.totalPipShowTime}),b.totalPipShowTime=0),b.desktopPipOffset=null}},{key:"handleMobileDraggingToPip",value:function(e){var t=e.isDragging,n=e.isProgressAnimating,o=e.progressToPip;if(b.mobileIsDragging=t,b.mobileProgressToPip=(0,f.qE)(o),b.isProgressAnimating=!t&&n,b.mobileIsDragging&&o>0){var r=m.A.LOCATION.PIP;this.canMoveVideo(r)?b.videoLocation=r:this.resetToDefaultVideoLocation()}b.mobileIsDragging||b.isProgressAnimating||0!==b.mobileProgressToPip||(b.videoLocation=m.A.LOCATION.DEFAULT),this.evaluateMobilePipState()}},{key:"handleStreamAvailableForPip",value:function(e){var t=e.streamAvailableForPip;b.streamAvailableForPip=t}},{key:"handleDesktopPipDragOffset",value:function(e){var t=e.x,n=e.y,o=e.normalizedX,r=e.normalizedY;b.desktopPipOffset={x:t,y:n,normalizedX:o,normalizedY:r}}},{key:"resetVideoLocation",value:function(){b.videoLocation=m.A.LOCATION.DEFAULT}},{key:"canMoveVideo",value:function(e){return!(!b.moveVideoAvailable||!b.videoDriverName||v.includes(b.videoDriverName)||!b.videoLocationsAvailable.has(e))&&(e===m.A.LOCATION.PIP?!b.userDismissedPip:e!==m.A.LOCATION.DEFAULT||!b.mobileIsDragging)}},{key:"resetToDefaultVideoLocation",value:function(){b.videoLocation=m.A.LOCATION.DEFAULT,b.mobileIsDragging=!1,b.mobileProgressToPip=0,this.evaluateMobilePipState()}},{key:"evaluateMobilePipState",value:function(){var e=b.mobilePipState;b.mobileIsDragging||b.mobileProgressToPip>0&&b.mobileProgressToPip<1?b.mobilePipState=m.A.PIP_STATE.TRANSITIONING:1===b.mobileProgressToPip?b.mobilePipState=m.A.PIP_STATE.PIP:b.mobilePipState=m.A.PIP_STATE.DEFAULT,b.mobilePipState!==e&&(0,f.Zj)(h.A.PIP_STATE,{state:b.mobilePipState})}},{key:"__onDispatch",value:function(e){var t=e.type,n=e.data;switch(t){case p.A.MOVE_VIDEO_AVAILABILITY:this.handleMoveVideoAvailability(n);break;case p.A.VIDEO_LOCATION_AVAILABILITY:this.handleVideoLocationAvailability(n);break;case p.A.MOVE_VIDEO:this.handleMoveVideo(n);break;case p.A.ENTER_FULLSCREEN:this.handleEnterFullscreen();break;case p.A.VIDEO_DISPLAY_VISIBILITY:this.handleVideoDisplayVisibility(n);break;case p.A.VIDEO_START:this.handleVideoStart(n);break;case p.A.VIDEO_CONNECT:case p.A.VIDEO_DISCONNECT:case p.A.VIDEO_PAUSE:case p.A.VIDEO_REFRESH:this.resetVideoLocation();break;case p.A.RESET:this.handleReset();break;case p.A.USER_DISMISSED_PIP:this.handleUserDismissedPip();break;case p.A.PIP_VISIBILITY:this.handlePipVisibility(n);break;case p.A.DISCONNECT:case p.A.BROWSER_CLOSE:this.handleDisconnect();break;case p.A.MOBILE_DRAGGING_TO_PIP:this.handleMobileDraggingToPip(n);break;case p.A.STREAM_AVAILABLE_FOR_PIP:this.handleStreamAvailableForPip(n);break;case p.A.DESKTOP_PIP_DRAG_OFFSET:this.handleDesktopPipDragOffset(n);break;default:return}this.__emitChange()}}]),n}(u.A))("videoPip",d.A)},"./src/utils/DebugHook.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),s=n("./src/lib/Dispatcher.js"),a=n("./src/constants/Actions.js"),l=n("./src/constants/RpcCalls.js"),c=n("./src/constants/DisconnectReasons.js"),u=n("./src/constants/Xment.ts"),d=n("./src/constants/Messages.js"),p=n("./src/utils/log.js"),m=n("./src/utils/tools.ts");const h=new(function(){function e(){var t=this;(0,o.A)(this,e),(0,i.A)(this,"handlePostMessage",(function(e){if(t.debugOn){p.A.debug("handlePostMessage, data is "+JSON.stringify(e.data));var n=e.data,o=n.type,r=n.data;"DISCONNECT"===o&&s.A.dispatch({type:a.A[o],data:[c.A[r.reason],r.msg]}),"NAIAD_PRE_GOLDSHOW"===o&&s.A.dispatch({type:l.A[o],data:r})}})),this.debugOn=!1,window.addEventListener("message",this.handlePostMessage,!1)}return(0,r.A)(e,[{key:"setDebug",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.debugOn=e,this.debugOn&&(0,m.Zj)(d.A.DEBUG_AVAILABLE_XMENTS,Object.values(u.A))}}]),e}())},"./src/utils/OpenPayModal.js":(e,t,n)=>{"use strict";n.d(t,{oI:()=>f});var o,r,i=n("./src/lib/Dispatcher.js"),s=n("./src/stores/UserStore.js"),a=n("./src/stores/ConnectionStore.js"),l=n("./src/stores/GoldShowStore.js"),c=n("./src/stores/PerformerStore.ts"),u=n("./src/constants/Actions.js"),d=n("./src/constants/GoldShowConstants.js"),p=n("./src/constants/Connection.js"),m=n("./src/constants/NaiadSessionType.js"),h=n("./src/utils/log.js"),A=function(){var e=a.A.getState().clientState;return!o&&[p.Kf.PLAYING,p.Kf.PAUSED].indexOf(e)>=0&&!c.A.getState().onBreak&&(o=!0,r.remove(),r=null,function(){var e=s.A.getState(),t=e.userType,n=e.redirectToConfirm,o=e.twoFactorAuthenticationRequired;if(h.A.usage("open_pay_modal_attempted"),t!==m.A.GUEST)return!1;if(n)return!1;if(o)return!1;h.A.usage("open_pay_modal_activated");var r=l.A.getState().goldShowState===d.A.GOLD_STATE_NONE?u.A.ENTER_PAID_CLICK:u.A.GIVE_GOLD_CLICK;return setTimeout((function(){i.A.dispatch({type:r})})),r}())},f=function(){o=!1,r=a.A.addListener(A)}},"./src/utils/PerformerMediaApi.js":(e,t,n)=>{"use strict";n.d(t,{X$:()=>m,gY:()=>g,lz:()=>A});var o=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=n("./node_modules/@babel/runtime/regenerator/index.js"),i=n.n(r),s=n("./src/lib/AjaxRequest.js"),a=n("./src/utils/localization.js"),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.trim();return n.length0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return{description:e.description,descriptionShort:l(e.description,50),durationString:c(parseInt(e.duration,10)),isPurchased:e.isPurchased,price:parseInt(e.price,10),priceTimeStamp:parseInt(e.priceTimestamp,10),thumbnailUrl:e.thumbUrl,uploadDate:e.uploadTimestamp,uploadDateString:(0,a.Yq)(new Date(e.uploadTimestamp),u),videoId:parseInt(e.videoId,10),grantType:e.grantType}}))},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(e,t){return e.isPurchased&&!t.isPurchased?1:t.isPurchased&&!e.isPurchased||e.uploadDate>t.uploadDate?-1:e.uploadDate2&&void 0!==a[2]&&a[2],e.next=3,h({performerName:t,performerId:n,useDebugPerformerData:o});case 3:if(r=e.sent,(s=r.body)&&s.videos){e.next=7;break}return e.abrupt("return",[]);case 7:return e.abrupt("return",p(d(s.videos.map((function(e){return e.priceTimestamp=s.priceTimestamp,e})))));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),f=function(e){var t=e.performerId,n=e.useDebugPerformerData;return s.A.postPromise("".concat(s.A.getBaseUrl(),"/api/v2/photos"),{performerId:t,useDebugPerformerData:n},"json")},g=function(){var e=(0,o.A)(i().mark((function e(t){var n,o,r,s,a,l=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]&&l[1],e.next=3,f({performerId:t,useDebugPerformerData:n});case 3:if(o=e.sent,(r=o.body)&&r.photos){e.next=7;break}return e.abrupt("return",[]);case 7:return s=r.photos,a=[],Array.isArray(s)&&s.length>0&&(s[0].photoid?a=s.filter((function(e){return e.photoid&&e.photo_url&&e.thumb_url})).sort((function(e,t){return Number(new Date(t.created_time))-Number(new Date(e.created_time))})):s[0].mediaId&&(a=s.filter((function(e){return e.mediaId&&e.photoUrl&&e.thumbUrl})).sort((function(e,t){return Number(new Date(t.createdTime))-Number(new Date(e.createdTime))})))),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},"./src/utils/PerformerSubscribers.js":(e,t,n)=>{"use strict";n.d(t,{Ay:()=>O,sH:()=>v,u2:()=>b,wB:()=>y});var o=n("./src/lib/AjaxRequest.js"),r=n("./node_modules/lodash/isEmpty.js"),i=n.n(r),s=n("./src/utils/currency.js"),a=n("./src/utils/log.js"),l=n("./src/utils/tools.ts"),c=n("./src/utils/Favorite.ts"),u=n("./src/constants/Actions.js"),d=n("./src/constants/StatsEvents.js"),p=n("./src/constants/Messages.js"),m=n("./src/lib/Dispatcher.js"),h=n("./src/stores/UserStore.js"),A=n("./src/stores/RateStore.js"),f=n("./src/stores/PerformerStore.ts"),g=n("./src/stores/PerformerSubscribersStore.js"),y={NO_BILLING:"SUBSCRIPTION_ERROR_000",SPENDING_NOT_ENABLED:"SUBSCRIPTION_ERROR_001",PREPAY_IS_REQUIRED:"SUBSCRIPTION_ERROR_002",PREBILL_IS_REQUIRED:"SUBSCRIPTION_ERROR_003",LOW_LIFETIME_SPEND:"SUBSCRIPTION_ERROR_004"},v={SUB_ERROR:"SUBSCRIPTION_SUB_ERROR",UNSUB_ERROR:"SUBSCRIPTION_UNSUB_ERROR",DAILY_LIMIT:"SUBSCRIPTION_DAILY_LIMIT_REACHED",INVALID_CC:y.SPENDING_NOT_ENABLED,SPENDING_HISTORY:y.LOW_LIFETIME_SPEND,DEFAULT:"SUBSCRIPTION_INELIGIBLE"},b={DEFAULT:"notifications",NOTIFICATIONS:"notifications",VIDEO:"video"},_=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.DEFAULT,r=arguments.length>2?arguments[2]:void 0,i=(null==e||null===(t=e.body)||void 0===t?void 0:t.success)||!1,s=o.toUpperCase();if(!i)return a.A.statsIncCounter(d.A.SUBSCRIPTIONS[s].SUB_FAILURE),void m.A.dispatch({type:u.A.PERFORMER_SUBSCRIBERS_SUB_FAILURE,data:r});a.A.statsIncCounter(d.A.SUBSCRIPTIONS[s].SUB_SUCCESS),m.A.dispatch({type:u.A.PERFORMER_SUBSCRIBERS_SUB_SUCCESS,data:null==e||null===(n=e.body)||void 0===n?void 0:n.subscription});var l=h.A.getState(),p=l.userId,g=l.sakey,y=f.A.getState(),v=y.id,_=y.nickname,E=A.A.getState(),S=E.ratePremium,C=E.rateExclusive;A.A.requestSubscriptionDiscounts(String(S),String(C),v,p,g,1e3),m.A.dispatch({type:u.A.MEDIA_REQUEST_VIDEOS,data:{performer:{id:v,nickname:_},user:{id:p,sakey:g}}}),(0,c.xF)(!0),T.handleDelayedModalClose()},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.DEFAULT,n=arguments.length>2?arguments[2]:void 0,o=t.toUpperCase();a.A.statsIncCounter(d.A.SUBSCRIPTIONS[o].SUB_FAILURE),m.A.dispatch({type:u.A.PERFORMER_SUBSCRIBERS_SUB_FAILURE,data:n}),a.A.error({message:"performer-subscribers-subscribe-add-error",originalError:e.toString()})},S=function(e){var t,n,o=null==e||null===(t=e.body)||void 0===t?void 0:t.success,r=o?u.A.PERFORMER_SUBSCRIBERS_UNSUB_SUCCESS:u.A.PERFORMER_SUBSCRIBERS_UNSUB_FAILURE;m.A.dispatch({type:r,data:null==e||null===(n=e.body)||void 0===n?void 0:n.subscription}),o&&T.handleDelayedModalClose()},C=function(e,t){m.A.dispatch({type:u.A.PERFORMER_SUBSCRIBERS_UNSUB_FAILURE,data:t}),a.A.error({message:"performer-subscribers-subscribe-remove-error",originalError:e.toString()})},T={requestSubscribe:function(e){var t,n,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.DEFAULT;if(!g.A.getState().requestPending){if(!h.A.isLoggedIn())return m.A.dispatch({type:u.A.PERFORMER_SUBSCRIBERS_CLOSE_MODAL}),void(0,l.Zj)(p.A.REQUIRES_AUTH);var c=null!==(t=null==e||null===(n=e.details)||void 0===n?void 0:n.pricetimes100)&&void 0!==t?t:0,A=null!==(r=null==e?void 0:e.id)&&void 0!==r?r:0;if(h.A.getState().dailyLimitAvailable0&&void 0!==arguments[0]?arguments[0]:5e3;m.A.dispatch({type:u.A.PERFORMER_SUBSCRIBERS_AUTO_CLOSE_MODAL}),setTimeout((function(){g.A.getState().modalAutoClosePending&&m.A.dispatch({type:u.A.PERFORMER_SUBSCRIBERS_CLOSE_MODAL})}),e)},getPlanPriceString:function(e){var t,n,o=null!==(t=null==e||null===(n=e.details)||void 0===n?void 0:n.pricetimes100)&&void 0!==t?t:0,r=h.A.getState(),i=r.currencyCode,a=r.exchangeRate,l=s.A.convertFromUSD(o,a);return s.A.currencyify(s.A.applyTaxesAndFees(l),i)}};const O=T},"./src/utils/currency.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=n("./src/constants/CurrencyConstants.js"),s=n("./src/stores/ConfigStore.ts"),a=n("./src/stores/UserStore.js"),l=n("./src/utils/localization.js"),c=i.A.DEFAULT_CURRENCY_CODE,u=i.A.DEFAULT_EXCHANGE_RATE,d=function(){function e(){(0,o.A)(this,e)}return(0,r.A)(e,null,[{key:"currencyify",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if(void 0===e)throw new Error("Not provided an amount");var n=e;return"number"!=typeof e&&(n=100*Number(e)),(0,l.vv)(n,t)}},{key:"convertFromUSD",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return(null!=t?t:u)*e/u}},{key:"convertToUSD",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return e/(null!=t?t:u)*u}},{key:"applyTaxesAndFees",value:function(e){var t,n,o=e;"number"!=typeof e&&(o=100*Number(e));var r=null!==(t=null===(n=s.A.getState().data)||void 0===n?void 0:n.user)&&void 0!==t?t:{},i=r.taxPercentage,l=r.feePercentage,c=a.A.getState().showFinalCost;return o*(c&&i?1+i/100:1)*(c&&l?1+l/100:1)}}]),e}()},"./src/utils/gold.js":(e,t,n)=>{"use strict";n.d(t,{MN:()=>p,ew:()=>h,fr:()=>c,g6:()=>u,kX:()=>d,pl:()=>m,rD:()=>A});var o=n("./src/utils/currency.js"),r=n("./src/utils/localization.js"),i=n("./src/constants/CurrencyConstants.js"),s=n("./src/constants/GoldShowConstants.js"),a=n("./src/stores/UserStore.js"),l=n("./src/lib/Strings.js"),c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.decimalValue,s=void 0!==r&&r,l=n.forCharge,c=void 0===l||l;if(0===e)return 0;var u=Math.round(e);if(t){var d=a.A.getState(),p=d.exchangeRate,m=d.chargeExchangeRate,h=c?m:p,A=o.A.convertFromUSD(u,h);if(s)return Math.ceil(10*A)/10;var f=Math.round(A);if(f2&&void 0!==arguments[2]?arguments[2]:{},r=n.forCharge,s=void 0===r||r;if(0===e)return 0;if(t){var l=a.A.getState(),c=l.exchangeRate,u=l.chargeExchangeRate,d=s?u:c,p=o.A.convertToUSD(e,d),m=i.A.DEFAULT_EXCHANGE_RATE;return Math.ceil(Math.floor(p*m)/m)}return e},d=function(e,t,n){var r=a.A.getState(),i=r.currencyCode,s=r.taxPercentage,l=r.feePercentage,u=c(e,t,{forCharge:!1}),d=n&&s?1+s/100:1,p=n&&l?1+l/100:1,m=Math.ceil(u*d*p);return o.A.currencyify(m,i)},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.withGoldText,o=void 0===n||n,i={minimumFractionDigits:e%100?2:0,maximumFractionDigits:e%100?2:0},s=(0,r.ZV)(e/100,i);return o?"".concat(s," ").concat(l.Ay.getString("gold")):s},m=function(e,t){return t?e===s.A.PLEDGE_STATE_PLEDGED?s.A.GOLD_STATE_IN_PROGRESS:s.A.GOLD_STATE_NEED_PLEDGE:e===s.A.PLEDGE_STATE_PLEDGED?s.A.GOLD_STATE_PRE_PLEDGED:s.A.GOLD_STATE_PRE},h=function(e,t){var n=s.A.PLEDGE_STATE_NO_PLEDGE;return t?n=s.A.PLEDGE_STATE_PLEDGED:e>0&&(n=s.A.PLEDGE_STATE_PARTIAL_PLEDGE),n},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?["preGoldShow","goldShowComingOnline"].includes(e.status):["goldShow","zeroNonExplicitGoldShow"].includes(e.status)}},"./src/utils/localization.js":(e,t,n)=>{"use strict";n.d(t,{IV:()=>O,Mx:()=>A,YC:()=>g,Yq:()=>_,ZV:()=>S,aD:()=>y,f7:()=>k,l9:()=>T,r6:()=>b,sc:()=>R,vv:()=>C,xS:()=>v,zA:()=>E});var o,r,i=n("./src/utils/log.js"),s=n("./src/utils/tools.ts"),a=null===(o=window.Intl)||void 0===o?void 0:o.NumberFormat,l=null===(r=window.Intl)||void 0===r?void 0:r.DateTimeFormat,c=Boolean("function"==typeof a)&&Boolean("function"==typeof l),u=Boolean("function"==typeof(null==a?void 0:a.prototype.formatToParts))&&Boolean("function"==typeof(null==l?void 0:l.prototype.formatToParts)),d=function(){try{(0).toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),p=function(){try{(new Date).toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),m=function(){if(!c)return!1;try{2..toLocaleString(void 0,{style:"unit",unit:"meter"})}catch(e){return!1}return!0}(),h=void 0,A={LEFT:"left",RIGHT:"right"},f=function(e){try{var t,n;return d&&p&&(!a||(null==a||null===(t=a.supportedLocalesOf)||void 0===t?void 0:t.call(a,e).length)>0)&&(!l||(null==l||null===(n=l.supportedLocalesOf)||void 0===n?void 0:n.call(l,e).length)>0)}catch(e){return!1}},g=function(e){var t;h=f(e)?e:void 0;var n=null===(t=window.navigator)||void 0===t?void 0:t.language;"string"==typeof n&&0===(null==n?void 0:n.indexOf(h))&&f(n)&&(h=n);try{var o,r=null!==(o=window.navigator)&&void 0!==o&&o.languages?Array.from(window.navigator.languages):null;if(r&&r.length){var a=r.map((function(e){return e.replace(/;q=.*$/,"")})).filter((function(e){return 0===e.indexOf(h)})).filter(f);a.sort((function(e,t){return t.length-e.length})),a.length>0&&(h=a[0])}}catch(t){var l;i.A.warn({message:"localization-navigator-languages-failure",error:(0,s.hD)(t),locale:e,languages:null===(l=window.navigator)||void 0===l?void 0:l.languages})}},y=function(){return h},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return"en-us"===(null==e?void 0:e.toLowerCase())},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e instanceof Date?e.toLocaleString(h,c?t:void 0):null},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e instanceof Date?e.toLocaleDateString(h,c?t:void 0):null},E=function(e){var t=Math.floor(e/3600)>0,n=new Date(0);n.setSeconds(e);var o=n.toISOString().substring(t?11:14,19);return"0"===o.charAt(0)?o.substring(1):o},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"!=typeof e?null:e.toLocaleString(h,c?t:void 0)},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"!=typeof e)return null;var o=n||e%100;if(c){var r={style:"currency",currencyDisplay:"symbol",currency:t,minimumFractionDigits:o?2:0,maximumFractionDigits:o?2:0};return(e/100).toLocaleString(h,r)}if("USD"===t&&v(h))return"$".concat(o?(e/100).toFixed(2):e/100);var i=S(Number((e/100).toFixed(2)));return"".concat(i," ").concat(t)},T=function(e){if("number"!=typeof e)return null;return e.toLocaleString(h,c?{style:"percent"}:void 0)},O=function(e,t){if("number"!=typeof e)return null;if("string"!=typeof t)return S(e,h);if(v(h)){if("foot"===t)return"".concat(Math.floor(e),"'").concat(Math.round(12*(e-Math.floor(e))),'"');if("inch"===t)return"".concat(S(e),'"');if("pound"===t)return"".concat(S(e)," lbs")}if(!m)return null;var n={style:"unit",unit:t};try{return e.toLocaleString(h,c?n:void 0)}catch(t){return i.A.warn({message:"localization-format-unit-failure",error:(0,s.hD)(t),value:e,defaultLocale:h,options:n}),null}},I=function(e){if(!u)return null;if("unit"===e.style&&!m)return null;var t;try{t=a(h,e)}catch(t){return i.A.warn({message:"localization-number-format-failure",error:(0,s.hD)(t),defaultLocale:h,options:e}),null}for(var n=A.LEFT,o=!1,r=t.formatToParts(2),l=0;l{"use strict";n.d(t,{A:()=>D});var o,r=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),i=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),s=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),a=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),l=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),c=n("./node_modules/@babel/runtime/regenerator/index.js"),u=n.n(c),d=n("./src/constants/LogLevel.js"),p=n("./src/constants/Globals.js"),m=d.A.NOTICE,h=(o={},(0,s.A)(o,d.A.ERROR,"error"),(0,s.A)(o,d.A.WARN,"warn"),(0,s.A)(o,d.A.LOG,"log"),(0,s.A)(o,d.A.INFO,"info"),(0,s.A)(o,d.A.DEBUG,"debug"),o),A=[],f=!1;const g=new(function(){function e(){(0,a.A)(this,e)}return(0,l.A)(e,[{key:"logToConsole",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.level,o=void 0===n?void 0:n,r=JSON.parse(JSON.stringify(e));Reflect.deleteProperty(r,"type"),Reflect.deleteProperty(r,"timestamp"),Reflect.deleteProperty(r,"requestId"),Reflect.deleteProperty(r,"logname"),Reflect.deleteProperty(r,"serial"),Reflect.deleteProperty(r,"sakey");var i=h[o]||"log";r.message?console[i](r.message,r):console[i](r)}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.force,o=void 0!==n&&n,r=t.level;return(p.A.DEBUG||f)&&this.logToConsole(e,t),!(!o&&r&&r>m)&&(A.push(e),!0)}},{key:"get",value:function(){return A}},{key:"clear",value:function(){A=[]}},{key:"setLogLevel",value:function(e){m=e}},{key:"setLogToConsole",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];f=e}}]),e}());var y=n("./src/utils/log/LogDecorator.js"),v=n("./src/lib/AjaxRequest.js");const b=new(function(){function e(){(0,a.A)(this,e)}var t;return(0,l.A)(e,[{key:"send",value:(t=(0,r.A)(u().mark((function e(t){var n,o,r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return",!1);case 2:return n={data:t},o=v.A.getBaseUrl()+"/api/v2/jsonlogger",e.next=6,v.A.postPromise(o,n,"json").catch((function(e){return{status:e.status}}));case 6:if((r=e.sent)&&200===r.status){e.next=10;break}return D.statsIncCounter("logger_sending_error"),e.abrupt("return",!1);case 10:return e.abrupt("return",!0);case 11:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}());var _={};const E=new(function(){function e(){(0,a.A)(this,e)}return(0,l.A)(e,[{key:"usage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_[e]=t}},{key:"usageTick",value:function(e){_[e]=(_[e]||0)+1}},{key:"get",value:function(e){return e?_[e]:_}},{key:"clear",value:function(){_={}}}]),e}());function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function C(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return this._log(e,d.A.DEBUG,t)}},{key:"info",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._log(e,d.A.INFO,t)}},{key:"notice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._log(e,d.A.NOTICE,t)}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._log(e,d.A.WARN,t)}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._log(e,d.A.ERROR,t)}},{key:"loms",value:function(e){e.eventname?g.add(C(C({},e),{},{timestamp:Date.now(),logname:"hybrid_loms"})):this.error(C({message:"bad-loms-event"},e))}},{key:"statsIncCounter",value:function(e){e?g.add({key:"client.".concat(e),timestamp:Date.now(),logname:"stats_counter_inc"}):p.A.DEBUG}},{key:"statsGauge",value:function(e,t){e?g.add({key:"client.".concat(e),value:t,timestamp:Date.now(),logname:"stats_gauge"}):p.A.DEBUG}},{key:"statsTimer",value:function(e,t){e?g.add({key:"client.".concat(e),ms:t,timestamp:Date.now(),logname:"stats_timer"}):p.A.DEBUG}},{key:"_log",value:function(e,t,n){var o=this,r=[],s=JSON.stringify(e,(function(e,t){if(t&&"object"===(0,i.A)(t)){if(r.includes(t))return;r.push(t)}return t}));if(n.unique){if(w.includes(s))return!1;w.push(s)}var a=JSON.parse(s);return!!g.add(y.A.decorate(a,{logname:"hybrid_log",loglevel:t}),C(C({},n),{},{level:t}))&&(T||O||(O=window.setTimeout((function(){o.send(),O=null}))),!0)}},{key:"start",value:function(){var e=this;T&&(this.warn("log-start-called-but-it-was-never-stopped"),window.clearInterval(T)),T=window.setInterval((function(){R&&e.send()}),1e4);var t=this._s4()+this._s4()+this._s4();y.A.set("requestId",t),w.splice(0,w.length)}},{key:"startIfNotStarted",value:function(){T||this.start()}},{key:"_s4",value:function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}},{key:"moveUsageToBundle",value:function(){var e=E.get();Object.keys(e).length>0&&g.add(y.A.decorate(e,{logname:"hybrid_usage"})),E.clear()}},{key:"send",value:(n=(0,r.A)(u().mark((function e(){var t,n,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Date.now()-(k||Date.now()),!(P>=3&&t<6e4)){e.next=3;break}return e.abrupt("return",!1);case 3:return n=g.get(),e.next=6,b.send(n);case 6:return(o=e.sent)?(g.clear(),P=0):n.length&&(++P,k=Date.now()),e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"stop",value:function(){T&&(window.clearInterval(T),T=null)}},{key:"usage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!n&&E.get(e)||E.usage(e,t)}},{key:"usageTick",value:function(e){E.usageTick(e)}},{key:"sendTimingData",value:function(e){var t=this;return"{}"!==JSON.stringify(e)&&(Object.keys(e).forEach((function(n){I.has(n)?t.statsIncCounter("performanceTimerDuplicates.".concat(n)):(t.statsTimer("performanceTimer.".concat(n),e[n]),I.add(n))}),this),!0)}},{key:"set",value:function(e,t){y.A.set(e,t)}},{key:"setLogLevel",value:function(e){Object.values(d.A).includes(e)?g.setLogLevel(e):this.error({message:"invalid-log-level",level:e})}},{key:"sendAndStop",value:(t=(0,r.A)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T?this.moveUsageToBundle():E.clear(),e.next=3,this.send();case 3:return t=e.sent,this.stop(),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setLogToConsole",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];g.setLogToConsole(e)}}]),e}())},"./src/utils/log/LogDecorator.js":(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),i=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),a=n("./node_modules/lodash/pickBy.js"),l=n.n(a);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{DM:()=>u,nO:()=>c,sX:()=>l});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./src/stores/UserStore.js"),i=n("./src/utils/log.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t{},"?d17e":()=>{}}]); //# sourceMappingURL=https://hybridclient.naiadsystems.com/dist/hybrid/27.5.9/7~56e67427fd14794a1485.js.map