PageSourceSearch

https://www.joysauce.tv/_next/static/chunks/pages/account-a636a99b393eb3d7.js

js joysauce.tv collected 2026-10-04 05:25:43 UTC 78,199 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966,2491],{84865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return a(74678)}])},25501:function(e,t,a){"use strict";var i=a(85893);a(67294);var n=a(68777),o=a(45312);let r=n.ZP.button.withConfig({componentId:"sc-869c3e3f-0"})(["background:transparent;border-radius:5px;font-size:19px;font-weight:400;margin:0 20px 0px 0px;border:1px solid #ffff;color:white;cursor:pointer;width:161px;height:52px;&:disabled{opacity:0.3;}&:hover{background:",";border:1px solid ",";color:#000000;}"],o.channelPrimaryColor,o.channelPrimaryColor);t.Z=function(e){let{children:t,...a}=e;return(0,i.jsx)(r,{...a,children:t})}},12491:function(e,t,a){"use strict";a.r(t);var i=a(85893),n=a(67294);t.default=e=>{let{siteKey:t,onVerify:a,onError:o,error:r,refreshToken:s}=e,[l,c]=(0,n.useState)(!1),[d,h]=(0,n.useState)(0);return(0,n.useEffect)(()=>{r&&window.grecaptcha&&(h(0),c(!1),s&&s())},[r]),(0,n.useEffect)(()=>{if(l||!t||d>3)return;let e=()=>{if(window.grecaptcha&&window.grecaptcha.execute){n();return}if(document.querySelector('script[src*="recaptcha"]')){let e=0,t=()=>{e++,window.grecaptcha&&window.grecaptcha.execute?n():e<10?setTimeout(t,100):i()};t();return}i()},i=()=>{let e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render=".concat(t),e.async=!0,e.defer=!0,e.onload=()=>{setTimeout(()=>{window.grecaptcha&&window.grecaptcha.execute?n():console.log("\uD83D\uDD27 grecaptcha still not available after script load")},100)},e.onerror=()=>{console.log("\uD83D\uDD27 Failed to load reCAPTCHA v3 script"),o&&o(Error("Failed to load reCAPTCHA v3 script"))},document.head.appendChild(e)},n=()=>{l||window.grecaptcha.ready(()=>{try{window.grecaptcha.execute(t,{action:"submit"}).then(e=>{a&&a(e),c(!0),console.log("\uD83D\uDD27 reCAPTCHA v3 token received:",e)}).catch(e=>{console.log("\uD83D\uDD27 reCAPTCHA v3 error:",e),o&&o(e)})}catch(e){h(e=>e+1),o&&o(e)}})},r=setTimeout(()=>{e()},100);return()=>{clearTimeout(r),c(!1)}},[t]),(0,i.jsx)("div",{})}},32372:function(e,t,a){"use strict";var i=a(64836);t.Z=void 0;var n=i(a(33651)),o=a(85893);t.Z=(0,n.default)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},68070:function(e,t,a){"use strict";var i=a(93967),n=a.n(i),o=a(67294),r=a(97400),s=a(85893);let l=o.forwardRef((e,t)=>{let[{className:a,...i},{as:o="div",bsPrefix:l,spans:c}]=function(e){let{as:t,bsPrefix:a,className:i,...o}=e;a=(0,r.vE)(a,"col");let s=(0,r.pi)(),l=(0,r.zG)(),c=[],d=[];return s.forEach(e=>{let t,i,n;let r=o[e];delete o[e],"object"==typeof r&&null!=r?{span:t,offset:i,order:n}=r:t=r;let s=e!==l?"-".concat(e):"";t&&c.push(!0===t?"".concat(a).concat(s):"".concat(a).concat(s,"-").concat(t)),null!=n&&d.push("order".concat(s,"-").concat(n)),null!=i&&d.push("offset".concat(s,"-").concat(i))}),[{...o,className:n()(i,...c,...d)},{as:t,bsPrefix:a,spans:c}]}(e);return(0,s.jsx)(o,{...i,ref:t,className:n()(a,!c.length&&l)})});l.displayName="Col",t.Z=l},97375:function(e,t,a){"use strict";var i=a(93967),n=a.n(i),o=a(67294),r=a(97400),s=a(85893);let l=o.forwardRef((e,t)=>{let{bsPrefix:a,fluid:i=!1,as:o="div",className:l,...c}=e,d=(0,r.vE)(a,"container");return(0,s.jsx)(o,{ref:t,...c,className:n()(l,i?"".concat(d).concat("string"==typeof i?"-".concat(i):"-fluid"):d)})});l.displayName="Container",t.Z=l},81574:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return p}});var i=a(85893),n=a(97375),o=a(22024),r=a(29865),s=a.n(r),l=a(45312),c=a(41664),d=a.n(c),h=a(11163);let u=a(68777).ZP.button.withConfig({componentId:"sc-8ab1ea23-0"})(["position:absolute;top:calc(80% - 30px);left:calc(40%);transform:translateY(-100%);padding:5px 12px;background-color:",";color:white;font-size:27px;font-family:Roboto;font-weight:lighter;border:none;border-radius:20px;transition:background 0.3s ease;letter-spacing:-3px;&:hover{background-color:darken(",",10%);}"],l.channelPrimaryColor,l.channelPrimaryColor);function p(){let e=(0,h.useRouter)(),{prev:t}=e.query;
1return(0,i.jsx)(n.Z,{className:s().container,children:(0,i.jsx)("div",{className:s().outer,children:(0,i.jsxs)("div",{className:s().inner,children:[(0,i.jsx)(o.hY,{}),"dove"===l.appName?(0,i.jsx)(u,{onClick:()=>e.push("/"),children:(0,i.jsx)("img",{src:"/images/dove/dove-channel.svg",alt:"logo",width:80,height:40})}):(0,i.jsx)("div",{className:s().info,children:(0,i.jsxs)("p",{children:["It looks like you've reached a URL that doesn't exist.",t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("br",{}),(0,i.jsxs)("small",{style:{opacity:.7},children:["Previous URL: ",decodeURIComponent(t)]})]}),(0,i.jsx)("br",{}),"Click here to navigate back to",(0,i.jsxs)(d(),{href:"/",className:s().logo,style:{color:l.channelPrimaryColor},children:[" ",l.LoginAppName]}),"."]})})]})})})}},74678:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return e3},default:function(){return e5}});var i=a(85893),n=a(67294),o=a(97375),r=a(19101),s=a(68070),l=a(11163),c=a(93535),d=a(14312),h=a(31028),u=a(80539),p=a(89755),m=a.n(p),g=a(2568),f=a.n(g),x=a(87066),v=a(33299),w=a(45312),y=a(32415),C=a(34572),_=a(91639),b=a(83989),j=a(59047);let k={x:0,y:0,width:0,height:0,unit:"px"},N=(e,t,a)=>Math.min(Math.max(e,t),a),D=(...e)=>e.filter(e=>e&&"string"==typeof e).join(" "),S=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function P(e,t,a){return"%"===e.unit?{...k,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/a*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/a*100:0}}function R(e,t,a){return e.unit?"px"===e.unit?{...k,...e,unit:"px"}:{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*a/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*a/100:0}:{...k,...e,unit:"px"}}function I(e,t,a,i,n,o=0,r=0,s=i,l=n){let c={...e},d=Math.min(o,i),h=Math.min(r,n),u=Math.min(s,i),p=Math.min(l,n);t&&(t>1?(h=(d=r?r*t:d)/t,u=s*t):(d=(h=o?o/t:h)*t,p=l/t)),c.y<0&&(c.height=Math.max(c.height+c.y,h),c.y=0),c.x<0&&(c.width=Math.max(c.width+c.x,d),c.x=0);let m=i-(c.x+c.width);m<0&&(c.x=Math.min(c.x,i-d),c.width+=m);let g=n-(c.y+c.height);if(g<0&&(c.y=Math.min(c.y,n-h),c.height+=g),c.width<d&&(("sw"===a||"nw"==a)&&(c.x-=d-c.width),c.width=d),c.height<h&&(("nw"===a||"ne"==a)&&(c.y-=h-c.height),c.height=h),c.width>u&&(("sw"===a||"nw"==a)&&(c.x-=u-c.width),c.width=u),c.height>p&&(("nw"===a||"ne"==a)&&(c.y-=p-c.height),c.height=p),t){let e=c.width/c.height;if(e<t){let e=Math.max(c.width/t,h);("nw"===a||"ne"==a)&&(c.y-=e-c.height),c.height=e}else if(e>t){let e=Math.max(c.height*t,d);("sw"===a||"nw"==a)&&(c.x-=e-c.width),c.width=e}}return c}let U={capture:!0,passive:!1},E=class e extends n.PureComponent{constructor(){super(...arguments),this.docMoveBound=!1,this.mouseDownOnCrop=!1,this.dragStarted=!1,this.evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0},this.componentRef=(0,n.createRef)(),this.mediaRef=(0,n.createRef)(),this.initChangeCalled=!1,this.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{let{crop:t,disabled:a}=this.props,i=this.getBox();if(!t)return;let n=R(t,i.width,i.height);if(a)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let o=e.target.dataset.ord,r=e.clientX,s=e.clientY,l=n.x,c=n.y;if(o){let t=e.clientX-i.x,a=e.clientY-i.y,d=0,h=0;"ne"===o||"e"==o?(d=t-(n.x+n.width),h=a-n.y,l=n.x,c=n.y+n.height):"se"===o||"s"===o?(d=t-(n.x+n.width),h=a-(n.y+n.height),l=n.x,c=n.y):"sw"===o||"w"==o?(d=t-n.x,h=a-(n.y+n.height),l=n.x+n.width,c=n.y):("nw"===o||"n"==o)&&(d=t-n.x,h=a-n.y,l=n.x+n.width,c=n.y+n.height),r=l+i.x+d,s=c+i.y+h}this.evData={startClientX:r,startClientY:s,startCropX:l,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!!o,ord:o},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=e=>{let{crop:t,disabled:a,locked:i,keepSelection:n,onChange:o}=this.props,r=this.getBox();if(a||i||n&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let s=e.clientX-r.x,l=e.clientY-r.y,c={unit:"px",x:s,y:l,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:s,startCropY:l,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(R(c,r.width,r.height),P(c,r.width,r.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=e=>{let t;let{crop:a,disabled:i,onChange:n,onDragStart:o}=this.props,r=this.getBox();if(i||!a||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,o&&o(e));let{evData:s}=this;s.clientX=e.clientX,s.clientY=e.clientY,S(a,t=s.isResize?this.resizeCrop():this.dragCrop())||n(R(t,r.width,r.height),P(t,r.width,r.height))},this.onComponentKeyDown=t=>{let{crop:a,disabled:i,onChange:n,onComplete:o}=this.props;if(i)return;let r=t.key,s=!1;if(!a)return;let l=this.getBox(),c=this.makePixelCrop(l),d=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===r?(c.x-=d,s=!0):"ArrowRight"===r?(c.x+=d,s=!0):"ArrowUp"===r?(c.y-=d,s=!0):"ArrowDown"===r&&(c.y+=d,s=!0),s){t.cancelable&&t.preventDefault(),c.x=N(c.x,0,l.width-c.width),c.y=N(c.y,0,l.height-c.height);let e=R(c,l.width,l.height),a=P(c,l.width,l.height);n(e,a),o&&o(e,a)}},this.onHandlerKeyDown=(t,a)=>{let{aspect:i=0,crop:n,disabled:o,minWidth:r=0,minHeight:s=0,maxWidth:l,maxHeight:c,onChange:d,onComplete:h}=this.props,u=this.getBox();if(o||!n||"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();let p=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,m=I(function(e,t,a,i){let n={...e};return"ArrowLeft"===t?"nw"===i?(n.x-=a,n.y-=a,n.width+=a,n.height+=a):"w"===i?(n.x-=a,n.width+=a):"sw"===i?(n.x-=a,n.width+=a,n.height+=a):"ne"===i?(n.y+=a,n.width-=a,n.height-=a):"e"===i?n.width-=a:"se"===i&&(n.width-=a,n.height-=a):"ArrowRight"===t&&("nw"===i?(n.x+=a,n.y+=a,n.width-=a,n.height-=a):"w"===i?(n.x+=a,n.width-=a):"sw"===i?(n.x+=a,n.width-=a,n.height-=a):"ne"===i?(n.y-=a,n.width+=a,n.height+=a):"e"===i?n.width+=a:"se"===i&&(n.width+=a,n.height+=a)),"ArrowUp"===t?"nw"===i?(n.x-=a,n.y-=a,n.width+=a,n.height+=a):"n"===i?(n.y-=a,n.height+=a):"ne"===i?(n.y-=a,n.width+=a,n.height+=a):"sw"===i?(n.x+=a,n.width-=a,n.height-=a):"s"===i?n.height-=a:"se"===i&&(n.width-=a,n.height-=a):"ArrowDown"===t&&("nw"===i?(n.x+=a,n.y+=a,n.width-=a,n.height-=a):"n"===i?(n.y+=a,n.height-=a):"ne"===i?(n.y+=a,n.width-=a,n.height-=a):"sw"===i?(n.x-=a,n.width+=a,n.height+=a):"s"===i?n.height+=a:"se"===i&&(n.width+=a,n.height+=a)),n}(R(n,u.width,u.height),t.key,p,a),i,a,u.width,u.height,r,s,l,c);if(!S(n,m)){let e=P(m,u.width,u.height);d(m,e),h&&h(m,e)}},this.onDocPointerDone=e=>{let{crop:t,disabled:a,onComplete:i,onDragEnd:n}=this.props,o=this.getBox();this.unbindDocMove(),!(a||!t)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,n&&n(e),i&&i(R(t,o.width,o.height),P(t,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=e=>{var t;null==(t=this.componentRef.current)||t.scrollTo(0,0)}}get document(){return document}getBox(){let e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};let{x:t,y:a,width:i,height:n}=e.getBoundingClientRect();return{x:t,y:a,width:i,height:n}}componentDidUpdate(e){let{crop:t,onComplete:a}=this.props;if(a&&!e.crop&&t){let{width:e,height:i}=this.getBox();e&&i&&a(R(t,e,i),P(t,e,i))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,U),this.document.addEventListener("pointerup",this.onDocPointerDone,
1U),this.document.addEventListener("pointercancel",this.onDocPointerDone,U),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,U),this.document.removeEventListener("pointerup",this.onDocPointerDone,U),this.document.removeEventListener("pointercancel",this.onDocPointerDone,U),this.docMoveBound=!1)}getCropStyle(){let{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){let{evData:e}=this,t=this.getBox(),a=this.makePixelCrop(t),i=e.clientX-e.startClientX,n=e.clientY-e.startClientY;return a.x=N(e.startCropX+i,0,t.width-a.width),a.y=N(e.startCropY+n,0,t.height-a.height),a}getPointRegion(e,t,a,i){let n;let{evData:o}=this,r=o.clientX-e.x,s=o.clientY-e.y;return n=i&&t?"nw"===t||"n"===t||"ne"===t:s<o.startCropY,(a&&t?"nw"===t||"w"===t||"sw"===t:r<o.startCropX)?n?"nw":"sw":n?"ne":"se"}resolveMinDimensions(e,t,a=0,i=0){let n=Math.min(a,e.width),o=Math.min(i,e.height);return t&&(n||o)?t>1?n?[n,n/t]:[o*t,o]:o?[o*t,o]:[n,n/t]:[n,o]}resizeCrop(){let{evData:t}=this,{aspect:a=0,maxWidth:i,maxHeight:n}=this.props,o=this.getBox(),[r,s]=this.resolveMinDimensions(o,a,this.props.minWidth,this.props.minHeight),l=this.makePixelCrop(o),c=this.getPointRegion(o,t.ord,r,s),d=t.ord||c,h=t.clientX-t.startClientX,u=t.clientY-t.startClientY;(r&&"nw"===d||"w"===d||"sw"===d)&&(h=Math.min(h,-r)),(s&&"nw"===d||"n"===d||"ne"===d)&&(u=Math.min(u,-s));let p={unit:"px",x:0,y:0,width:0,height:0};"ne"===c?(p.x=t.startCropX,p.width=h,a?p.height=p.width/a:p.height=Math.abs(u),p.y=t.startCropY-p.height):"se"===c?(p.x=t.startCropX,p.y=t.startCropY,p.width=h,a?p.height=p.width/a:p.height=u):"sw"===c?(p.x=t.startCropX+h,p.y=t.startCropY,p.width=Math.abs(h),a?p.height=p.width/a:p.height=u):"nw"===c&&(p.x=t.startCropX+h,p.width=Math.abs(h),a?(p.height=p.width/a,p.y=t.startCropY-p.height):(p.height=Math.abs(u),p.y=t.startCropY+u));let m=I(p,a,c,o.width,o.height,r,s,i,n);return a||e.xyOrds.indexOf(d)>-1?l=m:e.xOrds.indexOf(d)>-1?(l.x=m.x,l.width=m.width):e.yOrds.indexOf(d)>-1&&(l.y=m.y,l.height=m.height),l.x=N(l.x,0,o.width-l.width),l.y=N(l.y,0,o.height-l.height),l}createCropSelection(){let{ariaLabels:t=e.defaultProps.ariaLabels,disabled:a,locked:i,renderSelectionAddon:o,ruleOfThirds:r,crop:s}=this.props,l=this.getCropStyle();if(s)return n.createElement("div",{style:l,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!a&&!i&&n.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},n.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),n.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),n.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),n.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),n.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),n.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),n.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),n.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),n.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),n.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),n.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),n.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),o&&n.createElement("div",{className:"ReactCrop__selection-addon",onMouseDown:e=>e.stopPropagation()},o(this.state)),r&&n.createElement(n.Fragment,null,n.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),n.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return R({...k,...this.props.crop||{}},e.width,e.height)}render(){let{aspect:e,children:t,circularCrop:a,className:i,crop:o,disabled:r,locked:s,style:l,ruleOfThirds:c}=this.props,{cropIsActive:d,newCropIsBeingDrawn:h}=this.state,u=o?this.createCropSelection():null,p=D("ReactCrop",i,d&&"ReactCrop--active",r&&"ReactCrop--disabled",s&&"ReactCrop--locked",h&&"ReactCrop--new-crop",o&&e&&"ReactCrop--fixed-aspect",o&&a&&"ReactCrop--circular-crop",o&&c&&"ReactCrop--rule-of-thirds",!this.dragStarted&&o&&!o.width&&!o.height&&"ReactCrop--invisible-crop",a&&"ReactCrop--no-animate");return n.createElement("div",{ref:this.componentRef,className:p,style:l},n.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},t),u)}};E.xOrds=["e","w"],E.yOrds=["n","s"],E.xyOrds=["nw","ne","se","sw"],E.nudgeStep=1,E.nudgeStepMedium=10,E.nudgeStepLarge=100,E.defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};var Z=a(24091),L=a(71231),T=a(91248),M=a(68777);let A=M.ZP.a.withConfig({componentId:"sc-ba1d08fb-0"})(["color:",";text-decoration:none;cursor:pointer;font-weight:300;&:hover{color:",";}"],e=>"cineverse"==e.appName?"#01a6a8":w.appHighlightColor,e=>"cineverse"==e.appName?"#01a6a8":w.appHighlightColor);var B=function(e){let{children:t,...a}=e;return(0,i.jsx)(A,{...a,children:t})};a(26571);let Y=Math.PI/180;async function V(e,t,a){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=t.getContext("2d");if(!o)throw Error("No 2d context");
1let r=e.naturalWidth/e.width,s=e.naturalHeight/e.height,l=window.devicePixelRatio;t.width=Math.floor(a.width*r*l),t.height=Math.floor(a.height*s*l),o.scale(l,l),o.imageSmoothingQuality="high";let c=a.x*r,d=a.y*s,h=e.naturalWidth/2,u=e.naturalHeight/2;o.save(),o.translate(-c,-d),o.translate(h,u),o.rotate(n*Y),o.scale(i,i),o.translate(-h,-u),o.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),o.restore()}var O=a(33778),H=a(80481),z=a(80423),F=a(12166);let J=M.ZP.input.withConfig({componentId:"sc-6a858afe-0"})(["width:240px;height:33px;margin-bottom:8px;border-radius:5px;border:",";background-color:",";font-family:Roboto;font-size:13px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:2.15;letter-spacing:normal;text-align:center;color:",";&:focus,&:hover,&:active{outline:0px;box-shadow:none;border:"," solid 1px !important;background-color:",";&::placeholder{color:",";}}::placeholder{color:",";text-align:center;text-transform:none;}"],e=>w.isDove?"solid 1px #885a5a":"solid 1px #575757",e=>w.isDove?"rgba(87, 84, 84, 0.15)!important":"rgba(0, 0, 0, 0.3) !important",e=>w.isDove?"#353a476f":"#e2e2e2",e=>(null==e?void 0:e.appName)=="cineverse"?"#01a6a8":w.appHighlightColor,e=>w.isDove&&" rgba(0, 0, 0, 0.47) !important",e=>w.isDove&&"#fff !important",e=>w.isDove?"#353a476f":"grey");var X=function(e){let{children:t,...a}=e,o={...a}.type;o=o.toUpperCase();let[r,s]=(0,n.useState)(!1);return a.type="TEXT"==o||r?"text":"password","PASSWORD"!=o?(0,i.jsx)(J,{...a}):(0,i.jsxs)("div",{style:{position:"relative",padding:0},children:[(0,i.jsx)(J,{...a}),(0,i.jsx)("span",{style:{position:"absolute",top:a.flheight?a.flheight:8,right:38},children:r?(0,i.jsx)(m(),{src:"//images/eye_open.svg",alt:"home",width:18,height:18,onClick:()=>{s(!1)}}):(0,i.jsx)(m(),{src:"//images/eye_hide.svg",alt:"home",width:18,height:18,onClick:()=>{s(!0)}})})]})},q=a(74136);a(63021);let K=M.ZP.div.withConfig({componentId:"sc-b81527b3-0"})(["border-radius:6px;height:30px;width:100%;font-size:14px;margin:",";color:green;text-align:left;padding-top:5px;"],e=>e.isChangePass?"0 0 0 22px":"0 0 16px");var W=function(e){let{children:t,...a}=e;return(0,i.jsx)(K,{...a,children:t})};function $(e){let[t,a]=(0,n.useState)(e.ironCookie&&e.ironCookie.user.UId?e.ironCookie.user.UId:""),[o,r]=(0,n.useState)(""),[s,l]=(0,n.use
1State)(""),[c,d]=(0,n.useState)(""),[h,u]=(0,n.useState)(""),[p,m]=(0,n.useState)(""),[g,f]=(0,n.useState)(""),[x,v]=(0,n.useState)(""),[C,_]=(0,n.useState)("Confirm"),[b,j]=(0,n.useState)(!1),[k,N]=(0,n.useState)(!1),[D,S]=(0,n.useState)(!1),[P,R]=(0,n.useState)(!1),[I,U]=(0,n.useState)(""),[E,L]=(0,n.useState)(0),M=(e,t,a,i)=>{switch(e){case"currpassword":t?(S(!0),f("")):(f((0,q.oO)("Current Password is mandatory")),S(!1));break;case"newpassword":if(t){let e="^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,12}$";e.replace("8",w.passwordLength),c&&(t===c?(m(""),L(0),N(!0)):(m((0,q.oO)("Passwords do not match")),N(!1))),t.match(e)?(j(!0),u(""),L(0),R(!1)):(j(!1),u(""),R(!0),L(0))}else u((0,q.oO)("New Password is mandatory")),j(!1),R(!1);break;case"conpassword":t?t===s?(m(""),L(0),t&&s?N(!0):N(!1)):(m((0,q.oO)(i)),N(!1)):(m((0,q.oO)("Confirm password is mandatory")),N(!1))}},A=a=>{let i=(0,y.tY)(e.urls.passwordChangeURL?e.urls.passwordChangeURL:"").replace("__JTV__UID__",t);L(2),_("Please wait..."),U(""),B({type:"                               ",bdata:{password:s,currpass:o},url:i})},B=async e=>{try{await (0,y._i)(e,e=>{e&&"success"==e.result?(v("Password changed successfully"),u(""),m(""),f(""),U(""),L(0),_("Confirm"),r(""),l(""),d(""),setTimeout(()=>{v("")},3e3),S(!1),N(!1),j(!1)):(L(0),U(e.message),v(""),_("Confirm"))})}catch(e){console.log(e),U(e)}};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(G,{appName:w.appName,channelPrimaryColor:w.channelPrimaryColor,planCardBackgroundColor:w.planCardBackgroundColor,children:[(0,i.jsx)("div",{className:w.isDove?"dove-acc-modal-header-title":"acc-modal-header-title",children:"Change Password"}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:w.isDove?"dove-account-title-align ml-27-text":"account-title-align ml-27-text",children:"Old Password"}),(0,i.jsx)(X,{type:"password",name:"currpassword",className:g?"errorMargin":"normalMargin",placeholder:"Current Password",autoComplete:"new-password",onChange:e=>{let{target:t}=e,a=(0,q.N1)(t.value);r(a),M(t.name,a,"","Current password should be given")},value:o,isMarginVal:!0,appName:w.appName}),g?(0,i.jsx)(Z.Z,{isChangePass:!0,children:g}):null]}),(0,i.jsx)("div",{className:w.isDove?"dove-account-title-align ml-27-text":"account-title-align ml-27-text",children:"New Password"}),(0,i.jsx)(X,{type:"password",name:"newpassword",className:h?"errorMargin":"normalMargin",placeholder:"New Password",autoComplete:"off",onChange:e=>{let{target:t}=e,a=(0,q.N1)(t.value);l(a),M(t.name,a,"Min Password Length is 8","")},value:s,isMarginVal:!0,appName:w.appName}),h?(0,i.jsx)(Z.Z,{isChangePass:!0,children:h}):null,(0,i.jsx)("div",{className:w.isDove?"dove-account-title-align ml-27-text":"account-title-align ml-27-text",children:"Confirm Password"}),(0,i.jsx)(X,{type:"password",name:"conpassword",className:p?"errorMargin":"normalMargin",placeholder:"Confirm Password",autoComplete:"off",onChange:e=>{let{target:t}=e,a=(0,q.N1)(t.value);d(a),M(t.name,a,"","Passwords do not match")},value:c,isMarginVal:!0,appName:w.appName}),p?(0,i.jsx)(Z.Z,{isChangePass:!0,children:p}):null,(0,i.jsx)("div",{children:(0,i.jsxs)(T.Z,{className:"passwordInfo ".concat(P?"error-msg-color":""),children:["Password must contain at least 8-",w.passwordLength," characters, including one uppercase, one lowercase, and one number"]})}),(0,i.jsxs)("div",{className:"basic-info-modal-btn",children:[(0,i.jsx)("button",{className:w.isDove?"dove-rectangle-cancel-btn":"Rectangle-cancel-btn",onClick:()=>{e.setIsChangePass(!1)},children:(0,i.jsx)("span",{className:"Cancel-btn",children:"Cancel"})}),(0,i.jsx)(Q,{channelPrimaryColor:w.channelPrimaryColor,appName:w.appName,disabled:E>0,onClick:e=>{if(L(1),0==o.trim().length){f("Current password is mandatory");return}if(0==s.trim().length){u("New Password is mandatory");return}if(0==c.trim().length){m("Confirm password is mandatory");return}b&&k&&D&&A()},isLoading:E,children:(0,i.jsx)("span",{className:w.isDove?"dove-cancel-btn":"Cancel-btn",children:C})})]}),x?(0,i.jsx)(W,{isChangePass:!0,children:x}):null,I?(0,i.jsx)(Z.Z,{isChangePass:!0,children:I}):null]})})}let G=M.ZP.div.withConfig({componentId:"sc-4feca284-0"})(["width:295px;height:auto;padding-bottom:30px;border-radius:10px;border:1px solid "," !important;background-image:",";"],e=>"cineverse"==e.appName?"#01a6a8":e.channelPrimaryColor,e=>"cineverse"==e.appName?"linear-gradient(to bottom, #003b3b, #000)":e.planCardBackgroun
1dColor),Q=M.ZP.button.withConfig({componentId:"sc-4feca284-1"})(["cursor:"," !important;width:115.9px;height:33px;border-radius:5px;background:",";border:",";"],e=>e.isLoading>0?"not-allowed":"pointer",e=>w.isDove?"#f7c1bc":"cineverse"==e.appName?"linear-gradient(to bottom, #00b59c, #005e51);":e.channelPrimaryColor,e=>w.isDove?"solid 2px #fff":"0");var ee=a(2664);function et(e){let{status:t}=(0,v.useSession)();e.ironLogin;let[a,o]=(0,n.useState)(e.updateEmail?e.updateEmail:e.ironCookie&&e.ironCookie.user.email?e.ironCookie.user.email:""),[r,s]=(0,n.useState)(""),[l,c]=(0,n.useState)(""),[d,h]=(0,n.useState)(""),[u,p]=(0,n.useState)(""),[g,f]=(0,n.useState)(""),[x,C]=(0,n.useState)("Confirm"),[_,b]=(0,n.useState)(!1),[j,k]=(0,n.useState)(!1),[N,D]=(0,n.useState)(""),[S,P]=(0,n.useState)(0),{store:R}=(0,n.useContext)(ee.ET),{roweightData:I}=R.getState(),U=I&&I.roweightData.some(e=>e.sub_channel&&e.sub_channel.includes("row8")),E=(e,t,a,i)=>{switch(e){case"newemail":let n=t.trim();t?/[A-Za-z0-9@._-]/g.test(n)&&n.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)?(b(!0),h("")):(b(!1),h("Invalid Email")):(h("New Email is mandatory"),b(!1));break;case"currpassword":t?(k(!0),p("")):(p("Current Password is mandatory"),k(!1))}},L=t=>{let i=(0,y.tY)(e.urls.updateEmail?e.urls.updateEmail:"");P(2),C("Please wait..."),D(""),T({type:"changeemail",bdata:{isAdmin:!1,olduname:a,newuname:r,password:l},url:i})},T=async a=>{try{await (0,y._i)(a,a=>{if(a&&"success"==a.result){let i=(0,y.tY)(e.urls.profileDetailsURL?e.urls.profileDetailsURL:"").replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(r));try{(0,y.sj)(i,t=>{f("Email changed successfully"),e.userEmailChange(r),h(""),p(""),D(""),C("Confirm"),P(3),o(r),s(""),c(""),setTimeout(()=>{f(""),P(0)},3e3),b(!1),k(!1)},t)}catch(e){h(""),p(""),f(""),C("Confirm"),P(0),D(a.message)}}else h(""),p(""),f(""),C("Confirm"),P(0),D(a.message)})}catch(e){D(e)}};return(0,i.jsx)(i.Fragment,{children:U?(0,i.jsxs)("div",{className:"has-row8-data",children:[(0,i.jsx)(m(),{src:"//images/".concat(w.appName,"/icons/excla_icon.png"),alt:"Cineverse_logo",width:"60",height:"60"}),(0,i.jsx)(ea,{children:"As you have rented an item from Row8, you can't change your email."})]}):(0,i.jsxs)(ei,{appName:w.appName,channelPrimaryColor:w.channelPrimaryColor,planCardBackgroundColor:w.planCardBackgroundColor,children:[(0,i.jsx)("div",{className:w.isDove?"dove-acc-modal-header-title":"acc-modal-header-title",children:"Change Email"}),(0,i.jsx)("div",{className:w.isDove?"dove-account-title-align ml-27-text":"account-title-align ml-27-text",children:"Old Email"}),(0,i.jsx)(X,{className:"cursor-not-allowed",type:"text",placeholder:"Old Email",disabled:!0,value:a,onChange:e=>{let{target:t}=e;o((0,q.N1)(t.value))},isMarginVal:!0,appName:w.appName}),(0,i.jsx)("div",{className:w.isDove?"dove-account-title-align ml-27-text":"account-title-align ml-27-text",children:"New Email"}),(0,i.jsx)(X,{type:"text",placeholder:"New Email",className:d?"errorMargin":"normalMargin",name:"newemail",autoComplete:"off",onChange:e=>{let{target:t}=e;s(t.value),E(t.name,t.value,"","Email is manadatory")},value:r,isMarginVal:!0,appName:w.appName}),d?(0,i.jsx)(Z.Z,{isChangePass:!0,children:d}):null,(0,i.jsx)("div",{className:w.isDove?"dove-account-title-align ml-27-text":"account-title-align ml-27-text",children:"Password"}),(0,i.jsx)(X,{type:"password",placeholder:"Password",name:"currpassword",className:u?"errorMargin":"normalMargin",autoComplete:"off",onChange:e=>{let{target:t}=e;c((0,q.N1)(t.value)),E(t.name,(0,q.N1)(t.value),"","Email is manadatory")},value:l,isMarginVal:!0,appName:w.appName}),u?(0,i.jsx)(Z.Z,{isChangePass:!0,children:u}):null,(0,i.jsxs)("div",{className:"basic-info-modal-btn",children:[(0,i.jsx)("button",{className:w.isDove?"dove-rectangle-cancel-btn":"Rectangle-cancel-btn",onClick:()=>{e.setIsChangeEmail(!1)},children:(0,i.jsx)("span",{className:"Cancel-btn",children:"Cancel"})}),(0,i.jsx)(en,{channelPrimaryColor:w.channelPrimaryColor,appName:w.appName,disabled:S>0,onClick:e=>{P(1),_&&j?L():(E("newemail",r,"New email is mandatory",""),E("currpassword",l,"Current password is mandatory",""))},isLoading:S,children:(0,i.jsx)("span",{className:w.isDove?"dove-cancel-btn":"Cancel-btn",children:x})})]}),N?(0,i.jsx)(Z.Z,{isChangePass:!0,children:N}):null,g?(0,i.jsx)(W,{isChangePass:!0,children:g}):null]})})}let ea=M.ZP.span.withConfig({componentId:"sc-829d9762-0"})(["color:",";margin-top:20px;font-weight:500;font-size:23px;display:flex;justify-content:center;"],w.channelPrimaryColor),ei=M.ZP.div.withConfig({componentId:"sc-829d9762-1"})(["width:295px;height:auto;padding-bottom:30px;border-radius:10px;border:1px solid "," !important;background-image:",";"],e=>"cineverse"==e.appName?"#01a6a8":e.channelPrimaryColor,e=>"cineverse"==e.appName?"linear-gradient(to bottom, #003b3b, #000)":e.planCardBackgroun
1dColor),en=M.ZP.button.withConfig({componentId:"sc-829d9762-2"})(["cursor:"," !important;width:115.9px;height:33px;border-radius:5px;background:",";border:",";"],e=>e.isLoading>0?"not-allowed":"pointer",e=>w.isDove?"#f7c1bc":"cineverse"==e.appName?"linear-gradient(to bottom, #00b59c, #005e51);":e.channelPrimaryColor,e=>w.isDove?"solid 2px #fff":"0");a(34853);var eo=a(58239),er=a(5152),es=a.n(er),el=a(36625);let ec=es()(()=>Promise.resolve().then(a.bind(a,12491)),{loadableGenerated:{webpack:()=>[12491]},ssr:!1}),ed=e=>(0,x.Z)({method:"get",url:"/api/deleteUser",headers:{"Cache-Control":"max-age=".concat(w.cacheTimeout),"Content-Type":"application/json",cauth:f()(w.appTag)}}).then(t=>{e(t)}).catch(t=>{e(t)}),eh=(e,t)=>{(0,x.Z)({method:"get",url:"/api/srequp",headers:{"Content-Type":"application/json",cauth:f()(w.appTag),"mp-tag":(0,y.VZ)(e.url)}}).then(e=>{let a=(0,y.pe)(e.data.data.data);t(JSON.parse(a=a.toString()))}).catch(e=>{t(e)})};function eu(e){var t,a,o;let{status:p}=(0,v.useSession)(),g=(0,l.useRouter)();(0,y.ej)("islogin");let f=w.accountDefaultIconImg?w.accountDefaultIconImg:w.accountPathSrc,x=e.ironCookie&&e.ironCookie.user.UId?e.ironCookie.user.UId:"",k=e.updateEmail?e.updateEmail:e.ironCookie&&e.ironCookie.user.email?e.ironCookie.user.email:"",[N,D]=(0,n.useState)(e.fnameSavedInParent?e.fnameSavedInParent:e.ironCookie&&e.ironCookie.user.fname?e.ironCookie.user.fname:""),[S,I]=(0,n.useState)(e.lnameSavedInParent?e.lnameSavedInParent:e.ironCookie&&e.ironCookie.user.lname?e.ironCookie.user.lname:""),[U,M]=(0,n.useState)(e.updateProfilePhoto?e.updateProfilePhoto:e.ironCookie&&e.ironCookie.user.prof_img?e.ironCookie.user.prof_img:f),[A,Y]=(0,n.use
1State)(!1),J=n.useRef(null),[K,W]=(0,n.useState)(),[G,Q]=(0,n.useState)(!1),ee=n.useRef(null),[ea,ei]=(0,n.useState)(""),[en,er]=(0,n.useState)(""),[es,eu]=(0,n.useState)(),[ev,ew]=(0,n.useState)(1),[ey,eC]=(0,n.useState)(0),[e_,eb]=(0,n.useState)(1),ej=n.useRef(null),[ek,eN]=(0,n.useState)(!1),[eD,eS]=(0,n.useState)("Save"),[eP,eR]=(0,n.useState)(""),[eI,eU]=(0,n.useState)(!1),[eE,eZ]=(0,n.useState)(""),[eL,eT]=(0,n.useState)(""),[eM,eA]=(0,n.useState)(!1),[eB,eY]=(0,n.useState)("Delete"),[eV,eO]=(0,n.useState)(!1),[eH,ez]=(0,n.useState)(!1),[eF,eJ]=(0,n.useState)(!0),[eX,eq]=(0,n.useState)(!0),[eK,eW]=(0,n.useState)(0),[e$,eG]=(0,n.useState)(0),[eQ,e0]=(0,n.useState)(!1),[e1,e2]=(0,n.useState)(!1),[e8,e3]=(0,n.useState)(!1),[e5,e7]=(0,n.useState)(""),[e6,e9]=(0,n.useState)(!1),e4=(0,n.useRef)(null),{getCaptchaToken:te}=(0,el.Z)(),[tt,ta]=(0,n.useState)(null),[ti,tn]=(0,n.useState)(null),to=(0,n.useRef)(!1);(0,n.useEffect)(()=>(tc(),e=>{}),[]);let tr={ironCookie:(null==e?void 0:e.ironCookie)?e.ironCookie:"",selectedProfile:(null==e?void 0:e.selectedProfile)?e.selectedProfile:"",location_type:"page",event_location_id:"profile_edit_screen",shelves:null},ts=(0,y.m1)(tr),tl=e&&e.urls&&e.urls.logURLV2?(0,y.tY)(e.urls.logURLV2):"";(0,n.useEffect)(()=>{!to.current&&(to.current=!0,w.isVisitPageOn&&(0,eo.qe)(tl,"VISIT",ts))},[]);let tc=async()=>{var t;let a=(0,y.tY)(e.urls.profileDetailsURL?e.urls.profileDetailsURL:"");a=a.replace("__JTV__SUBSCRIBER__ID__",null===(t=e.ironCookie)||void 0===t?void 0:t.user.email);try{await (0,y.sj)(a,e=>{e&&(e&&e.response&&e.response.preference?eJ(e.response.preference.notification_email):eJ(!0),e&&e.response&&e.response.wallet_info&&(eW(e.response.wallet_info.points),eG(e.response.wallet_info.balance)))},p)}catch(e){}},td=async t=>{try{await (0,y._i)(t,t=>{t&&"success"==t.result?(e7(""),e.userNameChangeOnSave(N,S,k)):(e7(""),console.log(t,"on error======="))})}catch(e){e7(""),console.log("In Profile Image update erro")}},th=async t=>{try{eh(t,t=>{t&&"success"==t.result?((0,y.d8)("profile_update_cookie",JSON.stringify(t)),e.userProfilePicUpdate(t.user.prof_img),(0,y.d8)("editProfileImg",t.user.prof_img),(0,y.d8)("editProfileName",t.user.fname),e.userNameChangeOnSave(N,S,k),t&&t.user&&t.user.prof_img&&document.getElementById("profile_image-header")&&(document.getElementById("profile_image-header").innerHTML="<img src=".concat(t.user.prof_img,' alt="user" width="14" height="14" className="profileimg-thmb" priority={true}>')),t&&t.user&&t.user.fname&&document.getElementById("profile-name-header")&&(document.getElementById("profile-name-header").innerHTML=t.user.fname),eS("Save"),eR("Profile Updated"),setTimeout(()=>{eR("")},3e3)):(console.log(t),eS("Save"),eR(""))})}catch(e){console.log("error on update cookie")}},tu=async t=>{let a=(0,y.tY)(e.urls.profileUpdateURL?e.urls.profileUpdateURL:""),i={type:"updateprofile",bdata:{username:k,firstname:N,lastname:S},url:a=a.replace("__JTV__UID__",x)},n=(0,y.tY)(e.urls.profileDetailsURL?e.urls.profileDetailsURL:""),o={type:"updateprofileCookie",url:n=n.replace("__JTV__SUBSCRIBER__ID__",k)};if(td(i),th(o),eS("Updating..."),ek){let t=(0,y.tY)(e.urls.profileImageUpdateURL?e.urls.profileImageUpdateURL:"");t=t.replace("__JTV__UID__",x);let a=(0,y.v9)(U,new Date().getTime()+".jpg");var r=new FormData;r.append("file",a);try{let e={formdata:r,url:t};await (0,y.Do)(e,e=>{th(o)})}catch(e){console.log("Image upload error",e)}}else th(o)},tp=e=>{if(e.target.files&&e.target.files.length>0){er(void 0);let t=new FileReader;t.addEventListener("load",()=>ei(t.result.toString()||"")),t.readAsDataURL(e.target.files[0])}Q(!0),eN(!1)};t=async()=>{(null==es?void 0:es.width)&&(null==es?void 0:es.height)&&ee.current&&ej.current&&V(ee.current,ej.current,es,ev,ey)},a=[es,ev,ey],(0,n.useEffect)(()=>{let e=setTimeout(()=>{t.apply(void 0,a)},100);return()=>{clearTimeout(e)}},a);let tm=e=>{tg(e)},tg=async e=>{ee&&e.width&&e.height&&M(await tf(ee.current,e,"newFile.jpeg"))},tf=(e,t,a)=>{let i=document.createElement("canvas"),n=window.devicePixelRatio,o=e.naturalWidth/e.width,r=e.naturalHeight/e.he
1ight,s=i.getContext("2d");return i.width=t.width*n*o,i.height=t.height*n*r,s.setTransform(n,0,0,n,0,0),s.imageSmoothingQuality="high",s.drawImage(e,t.x*o,t.y*r,t.width*o,t.height*r,0,0,t.width*o,t.height*r),i.toDataURL("image/jpeg")},tx=t=>{let a=(0,y.tY)(e.urls.userDeleteURL?e.urls.userDeleteURL:"");a=a.replace("__JTV__USER__ID__",t),eY("Please wait..."),eZ(""),tv({bdata:{username:k,password:eL},url:a})},tv=async e=>{if(w.isGCaptcha){eY("Verifying...");let t=null;if(t=await te("signin"),!tt||null===tt){eZ("Please complete the reCAPTCHA");return}if(!t){eY("Delete"),eZ("Verification failed."),ta(null);return}try{await (0,y._i)(e,e=>{e&&"success"==e.result?(ez(!0),setTimeout(()=>{eO(!0),tw()},700)):(eY("Delete"),eZ(e.message),tn(e.message))})}catch(e){eZ(e),tn(e.message||"Verification failed")}}},tw=async()=>{try{await ed(e=>{e&&((0,y.nJ)("user_stat"),(0,y.nJ)("user_stat_data"),(0,y.d8)("redirectpath","home"),(0,y.nJ)("profile_update_cookie"),(0,y.nJ)("loggedinUser"),(0,eo.qe)(tl,"LOGOUT"),window.sessionStorage.removeItem("sessionID"),window.sessionStorage.removeItem("sessionStarted"),setTimeout(()=>{g.push({pathname:"/"})},2e3))})}catch(e){}},ty=(e,t)=>{switch(e){case"currpassword":t?(eA(!0),eZ("")):(eZ("Password is mandatory"),eA(!1));break;case"firstname":t?(e9(!0),e7("")):(e9(!1),e7("Firstname is mandatory"))}},tC=e=>{eM?tx(e):ty("currpassword",eL)},t_=e=>{eq(e.target.checked),eJ(e.target.checked),e.target.checked&&tb(!0)},tb=async t=>{let a=(0,y.tY)(e.urls.updatePreferenceURL?e.urls.updatePreferenceURL:""),i={bdata:{notification_email:t},url:a=a.replace("__JTV__SUBSCRIBER__ID__",x)};try{await (0,y._i)(i,e=>{e&&e.result})}catch(e){}},tj=e=>{"Escape"!==e.code&&27!==e.keyCode&&Q(!1)},tk=()=>{e0(!0)},tN=()=>{e0(!1)},tD=()=>{e2(!1)},tS=()=>{e3(!1)},tP="/images/"+w.appName+"/wallet.png";return eI?eH?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(H.Z,{className:"tab-success-msg",children:(0,i.jsx)(m(),{src:w.isDove?"//images/dove_task_alt_white_48dp.svg":"/images/task_alt_white_48dp.svg",alt:"check",width:80,height:80})}),(0,i.jsx)(_.Z,{className:"auth-form-tiny-head",title:"User deleted Successfully"}),eV&&(0,i.jsx)(O.Z,{open:eV,type:"delete"})]}):(0,i.jsx)(r.Z,{className:"edit-box",children:(0,i.jsx)(s.Z,{className:"edit-profile-cont",children:(0,i.jsxs)(r.Z,{className:"chnge-pswd",children:[(0,i.jsx)(L.Z,{type:"password",name:"currpassword",className:eE?"errorMargin":"normalMargin",autoComplete:"off",onChange:e=>{let{target:t}=e;eT((0,q.N1)(t.value)),ty(t.name,(0,q.N1)(t.value))},value:eL,placeholder:"Enter Password",appName:w.appName}),eE?(0,i.jsx)(Z.Z,{children:eE}):null,w.isGCaptcha&&(0,i.jsx)("div",{className:"recaptcha-container",children:(0,i.jsx)(ec,{ref:e4,siteKey:"6LfL_QgsAAAAAIhi210w_JtVn_dQgdwnHMfu-yYp",onChange:e=>{ta(e),eZ(""),tn(null)},onVerify:e=>{ta(e),eZ(""),tn(null)},refreshToken:()=>{ti||ta(null)},onError:e=>{ta(null),eZ("Security verification failed. Please try again.")},error:ti||eE})}),(0,i.jsxs)("div",{className:"delete-account-btn-align",children:[(0,i.jsx)(h.Z,{className:"submit-subs-btn submit-margin-align",onClick:()=>{tC(x)},children:eB}),(0,i.jsx)(h.Z,{className:"cancel-subs-btn color-btn",onClick:()=>{eU(!1),Y(!1),eZ(""),eT("")},children:"Cancel"})]})]})})}):(0,i.jsxs)(i.Fragment,{children:[G&&(0,i.jsx)(c.Z,{"aria-labelledby":"transition-modal-title","aria-describedby":"transition-modal-description",open:G,onClose:()=>{eN(!1),Q(!1),tj()},closeAfterTransition:!0,BackdropComponent:d.Z,BackdropProps:{timeout:500},children:(0,i.jsx)(u.Z,{in:G,children:(0,i.jsxs)("div",{className:"modal-container modal-container-div",children:[(0,i.jsx)("div",{className:"modal-title",children:(0,i.jsx)("h2",{className:"text-color-h1",children:"Drag and Select Image"})}),(0,i.jsx)(s.Z,{className:"image_col",sm:12,md:12,children:(0,i.jsx)(m(),{unoptimized:!0,src:U||"/images/icons/user2.png",width:100,height:100,alt:"user"})}),(0,i.jsx)("div",{children:ea&&(0,i.jsx)(E,{crop:en,onChange:(e,t)=>
1er(t),onComplete:e=>{tm(e),eu(e)},aspect:e_,children:(0,i.jsx)("img",{ref:ee,alt:"Crop me",src:ea,className:"imgCrop",onLoad:function(e){if(e_){let{width:t,height:a}=e.currentTarget;er(function(e,t,a){let i=R(e,t,a);return i.x=(t-i.width)/2,i.y=(a-i.height)/2,"%"===e.unit?P(i,t,a):i}(function(e,t,a,i){let n=R(e,a,i);return e.width&&(n.height=n.width/t),e.height&&(n.width=n.height*t),n.y+n.height>i&&(n.height=i-n.y,n.width=n.height*t),n.x+n.width>a&&(n.width=a-n.x,n.height=n.width/t),"%"===e.unit?P(n,a,i):n}({unit:"%",width:90},e_,t,a),t,a))}}})})}),(0,i.jsxs)("div",{className:"modal-buttons-new modal-btn-align",children:[(0,i.jsx)(h.Z,{className:"cancel-subs-btn",onClick:()=>{eN(!1),Q(!1)},children:"Cancel"}),(0,i.jsx)(h.Z,{className:"submit-subs-btn",onClick:()=>{eN(!0),Q(!1)},children:"Submit"})]})]})})}),!eX&&(0,i.jsx)(z.Z,{showAlert:!eX,setShowAlert:e=>{eq(e),eJ(!e)},title:"Don’t miss out!",desc:"Being part of our mailing list gives you exclusive access to only-available-here discounts, hidden entertainment gems, the latest news on hot releases – all the info you need to plan your watchlist like a pro. Changed your mind?",okButtonLabel:"I’m In!",cancelButtonLabel:"No Thanks!",okAction:()=>{eq(!0),eJ(!0),tb(!0)},datafor:"emailnotification",cancelButtonAction:()=>{tb(!1)},logURLV2:(null==e?void 0:null===(o=e.urls)||void 0===o?void 0:o.logURLV2)?e.urls.logURLV2:"",...e}),(0,i.jsx)(r.Z,{className:"edit-box",children:(0,i.jsxs)(s.Z,{className:"edit-profile-continue",children:[(0,i.jsx)(r.Z,{className:"edit-profile-box",children:(0,i.jsx)(s.Z,{className:"img_col_rem",sm:12,md:12,children:eQ?(0,i.jsxs)("div",{children:[(0,i.jsx)(m(),{className:"curson-pointer",unoptimized:!0,src:w.accountHoverIconImg,alt:"Cineverse_lazy_url",width:100,height:100,loading:"lazy",onMouseOver:tk,onMouseOut:tN,onClick:e=>{"Updating..."!==eD&&J.current.click()}}
1),(0,i.jsx)("input",{type:"file",accept:"image/*",ref:J,onChange:e=>tp(e),onClick:e=>{e.target.value=null},className:"none-display"})]}):(0,i.jsx)(m(),{className:"curson-pointer",unoptimized:!0,src:U,alt:"Cineverse_lazy_url",width:100,height:100,loading:"lazy",onMouseOver:tk,onMouseOut:tN})})}),w.isWallet&&e&&e.ironCookie&&e.ironCookie.user&&e.ironCookie.user.wallet_info&&(0,i.jsx)("div",{className:"show-wallet-balance-div",children:(0,i.jsx)(eg,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"wallet-box-div",children:[(0,i.jsx)("div",{className:"show-wallet-balance-div",children:(0,i.jsx)(m(),{unoptimized:!0,src:tP,alt:"Wallet",width:30,height:30,loading:"lazy"})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"left-padding-10",children:["Your Wallet Balance :"," ",(0,i.jsxs)(ef,{children:["$",e$||0]})]}),eK>0&&(0,i.jsxs)("div",{className:"left-padding-10",children:["Your Wallet Point :"," ",(0,i.jsx)(ef,{children:eK||0})]})]})]})})})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:w.isDove?"dove-account-title-align":"account-title-align",children:"Name"}),(0,i.jsxs)("div",{className:"mb-8-text",children:[(0,i.jsx)(X,{type:"text",name:"firstname",placeholder:"First Name",value:N,onChange:e=>{let{target:t}=e;D((0,q.N1)(t.value)),ty(t.name,(0,q.N1)(t.value))},disabled:"Updating..."==eD,className:"Updating..."==eD?"not-allowed":"cur-pointer",appName:w.appName}),e5?(0,i.jsx)(Z.Z,{children:e5}):null]}),(0,i.jsx)("div",{className:"mb-8-text",children:(0,i.jsx)(X,{type:"text",placeholder:"Last Name",autoComplete:"new-password",value:S,onChange:e=>{let{target:t}=e;I((0,q.N1)(t.value))},disabled:"Updating..."==eD,className:"Updating..."==eD?"not-allowed":"cur-pointer",appName:w.appName})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:w.isDove?"dove-account-title-align":"account-title-align",children:"Email"}),(0,i.jsx)("div",{className:"mb-8-text",children:(0,i.jsx)(X,{className:"cursor-not-allowed",type:"text",placeholder:"Email",autoComplete:"off",value:k,disabled:!0,appName:w.appName})})]}),(0,i.jsx)("div",{className:"mb-8-text",children:(0,i.jsx)(ex,{cursorValue:"Updating..."==eD?"true":"false",disabled:"Updating..."==eD,onClick:()=>{e3(!0),e7("")},appName:w.appName,children:"Change Email"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:w.isDove?"dove-account-title-align password-margin-align":"account-title-align password-margin-align",children:"Password"}),(0,i.jsx)("div",{className:"pass-margin",children:(0,i.jsx)(ex,{cursorValue:"Updating..."==eD?"true":"false",disabled:"Updating..."==eD,onClick:()=>{e2(!0),e7("")},appName:w.appName,children:"Change Password"})})]}),(0,i.jsx)("div",{className:"line-seperate"}),(0,i.jsxs)("div",{className:"acc-save-btn mb-8-text",children:[(0,i.jsx)(ep,{className:"edit-profile-btn",cursorValue:"Updating..."==eD?"true":"false",onClick:e=>{e6?k&&tu():ty("firstname",N)},disabled:"Updating..."==eD,channelPrimaryColor:w.channelPrimaryColor,appName:w.appName,children:eD}),eP?(0,i.jsx)("div",{className:"profile_message profile-update-align",children:(0,i.jsxs)("p",{children:[(0,i.jsx)("i",{className:"fa fa-check"})," ",eP]})}):null]}),(0,i.jsxs)("div",{className:"checkbox-div-align",children:[(0,i.jsx)("div",{className:"check-flexval",children:(0,i.jsx)(F.Z,{sx:{color:"row8"==e.rtype?rowEightColor:"cineverse"==w.appName?"#01a6a8":w.channelPrimaryColor,marginBottom:"20px","&.Mui-checked":{color:"row8"==e.rtype?rowEightColor:"cineverse"==w.appName?"#01a6a8":w.channelPrimaryColor},"& .MuiSvgIcon-root":{fontSize:22}},onChange:e=>{t_(e)},className:"padding-checkbox",checked:eF})}),(0,i.jsxs)(em,{appName:w.appName,children:["I understand that"," ","gorillacomedyplus"==w.appName?w.LoginAppName:w.displayAppName," ","may send marketing messages. You can opt-out at any time."]})]}),(0,i.jsx)(T.Z,{className:"delete-align Delete-Account",children:(0,i.jsx)(B,{onClick:()=>{Y(!0)},appName:w.appName,children:"Delete Account"})})]})}),A&&(0,i.jsx)(C.Z,{open:!0,closeModal:()=>{Y(!1)},showCancel:!0,children:(0,i.jsx)("div",{className:"custom-modal-container delete-user",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.Z,{title:"Delete My A
1ccount"}),(0,i.jsx)(b.Z,{children:(0,i.jsxs)(j.Z,{children:["By deleting your account, all your information will be permanently deleted from our database.",(0,i.jsx)("br",{})," Do you still want to proceed?"]})}),(0,i.jsx)(h.Z,{className:w.isDove?"doveemailConfirmSeePlans":"emailConfirmSeePlans",onClick:()=>{eU(!0)},children:"Confirm"}),(0,i.jsx)(h.Z,{onClick:()=>{Y(!1)},className:w.isDove?"doveemailConfirmSeePlans":"emailConfirmSeePlans",children:"No, thanks"})]})})}),e1&&(0,i.jsx)(C.Z,{open:!0,closeModal:()=>tD(),showCancel:!0,children:(0,i.jsx)($,{setIsChangePass:e=>e2(e),...e})}),e8&&(0,i.jsx)(C.Z,{open:!0,closeModal:()=>tS(),showCancel:!0,children:(0,i.jsx)(et,{setIsChangeEmail:e=>e3(e),...e,userEmailChange:t=>{e.userEmailChange(t)},updateEmail:e.updateEmail})})]})}let ep=M.ZP.button.withConfig({componentId:"sc-a9a955c6-0"})(["background:",";cursor:",";width:240px !important;height:33px !important;object-fit:contain !important;color:"," !important;"],e=>w.isDove?"#f7c1bc":"cineverse"===e.appName?"linear-gradient(to bottom, #00b59c, #005e51)":e.channelPrimaryColor,e=>"true"==e.cursorValue?"not-allowed":"pointer !important",e=>w.isDove?e.channelPrimaryColor:"midnightpulp"==w.appName?"#000000":"#e2e2e2"),em=M.ZP.div.withConfig({componentId:"sc-a9a955c6-1"})(["color:",";font-family:Roboto;font-size:13px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;"],e=>"cineverse"==e.appName?"#bcbcbc":w.appHighlightColor),eg=M.ZP.div.withConfig({componentId:"sc-a9a955c6-2"})(["width:auto;padding:10px;margin:0 0 10px 0;background:#ffffff21;backdrop-filter:blur(25px);border-radius:6px;color:white;font-size:14px;border-left:4px solid ",";"],w.channelPrimaryColor),ef=M.ZP.span.withConfig({componentId:"sc-a9a955c6-3"})(["color:",";"],w.channelPrimaryColor),ex=M.ZP.button.withConfig({componentId:"sc-a9a955c6-4"})(["width:240px;height:33px;object-fit:contain;border-radius:5px;background-color:",";background-image:",";border:",";color:",";font-family:Roboto;font-size:14px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;&:focus,&:hover,&:active{outline:0px;box-shadow:none;border:"," solid 1px !important;background-image:",";background-color:",";color:",";}"],e=>w.isDove?"#f7c1bc":"transparent",e=>(null==e?void 0:e.appName)!=="dove"?"linear-gradient(to bottom, rgb(70 70 70 / 96%), rgb(0 0 0 / 88%))":"none",e=>w.isDove?"".concat(w.appHighlightColor," solid 1px !important"):"transparent",e=>w.isDove?"#885a5a":"#e2e2e2",e=>(null==e?void 0:e.appName)==="cineverse"?"#01a6a8":w.appHighlightColor,e=>(null==e?void 0:e.appName)!=="dove"?"linear-gradient(to bottom, rgb(99 99 99 / 96%), rgb(0 0 0 / 88%))":"none",e=>w.isDove?"#f7c1bc":"",e=>w.isDove?"#885a5a":"#fff !important");var ev=a(66147),ew=a(25501),ey=e=>{let{handleClose:t,open:a,handleOkay:n}=e,o=e.description?e.description:"",r=e.okayButton?e.okayButton:"Ok",s=e.cancelButton?e.cancelButton:"Cancel";return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(c.Z,{"aria-labelledby":"transition-modal-title","aria-describedby":"transition-modal-description",open:a,onClose:t,closeAfterTransition:!0,BackdropComponent:d.Z,BackdropProps:{timeout:500},children:(0,i.jsx)(u.Z,{in:a,children:(0,i.jsxs)(eC,{className:"modal-container .padding-0",children:[(0,i.jsx)("div",{className:"modal-title",children:(0,i.jsx)("h2",{children:e.title})}),(0,i.jsx)("div",{className:"modal-description",children:(0,i.jsx)("p",{children:o})}),(0,i.jsxs)("div",{className:"modal-buttons d-flex justify-content-center align-items-center",children:[(0,i.jsx)(ew.Z,{onClick:n,children:r}),(0,i.jsx)(ew.Z,{onClick:t,children:s})]})]})})})})};let eC=M.ZP.div.withConfig({componentId:"sc-11b3791d-0"})(["border:1px solid ",";"],w.channelPrimaryColor);var e_=a(60520),eb=a(22024),ej=a(32661);function ek(e){let t;let[a,o]=(0,n.useState)(!1),[l,c]=(0,n.useState)(""),[d,h]=(0,n.useState)(""),[u,p]=(0,n.useState)({show:"",msg:"",type:""}),[g,f]=(0,n.useState)([]),x=(0,n.useRef)(!1),C=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";p({show:e,msg:t,type:a})},{status:_}=(0,v.useSession)(),b=e.ironCookie&&e.ironCookie.user&&e.ironCookie.user.email?e.ironCookie.user.email:"",j=async e=>{try{(0,y.bf)(e,e=>{console.log(e),e&&"success"==e.result?C(!0,e.message,"success"):C(!0,e.message,"error")},"",!1,null,_)}catch(e){console.log(e)}setTimeout(()=>{N()},3e3)},k=e=>{c("Are you sure you want to remove this device?"),h(e.id),o(!0)};e.urls&&e.urls.subactivedevlist&&(t=(0,y.tY)(e.urls.subactivedevlist?e.urls.subactivedevlist:"")),t&&(t=t.replace(/__JTV__SUBSCRIBER__ID__/g,encodeURIComponent(b)));let N=()=>{(0,y.bf)(t,e=>{e&&e.list&&f(e)},"",!1,null,_)};(0,n.useEffect)(()=>{N()},[]);let D={ironCookie:(null==e?void 0:e.ironCookie)?e.ironCookie:"",selectedProfile:(null==e?void 0:e.selectedProfile)?e.selectedProfile:"",location_type:"page",event_location_id:"active_device_screen",shelves:null},S=(0,y.m1)(D),P=e&&e.urls&&e.urls.logURLV2?(0,y.tY)(e.urls.logURLV2):"";return((0,n.useEffect)(()=>
1{!x.current&&(x.current=!0,w.isVisitPageOn&&(0,eo.qe)(P,"VISIT",S))},[]),g)?g&&g.list&&0==g.list.length?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"device-cont text-center",children:[(0,i.jsx)(eb.Sc,{}),(0,i.jsx)("p",{className:w.isDove?"dove-mtop-20":"mtop-20",children:"No active devices for now"})]})}):g&&g.list&&g.list.length>0?(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsx)(ey,{title:l,open:a,handleOkay:t=>{let a;e.urls&&e.urls.subactivedevdeauth&&(a=(0,y.tY)(e.urls.subactivedevdeauth?e.urls.subactivedevdeauth:"")),a=a.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(b)).replace("__DEVICE__ID__",d),o(!1),j(a)},handleClose:e=>{"Escape"!==e.code&&27!==e.keyCode&&o(!1)},okayButton:"Ok",cancelButton:"Cancel"}),(0,i.jsx)(r.Z,{children:(0,i.jsx)(s.Z,{children:(0,i.jsxs)("div",{className:w.isDove?"dove-devices-list-area":"devices-list-area",children:[(0,i.jsxs)("p",{className:"description",children:["You may access"," ","gorillacomedyplus"==w.appName?w.LoginAppName:w.displayAppName," ","from any computer and up to four (4) additional devices. You can remove/replace up to three (3) devices within a 90-day period."]}),(0,i.jsx)(function(e){return(0,i.jsx)(i.Fragment,{children:g&&g.list&&g.list.map((e,t)=>(0,i.jsxs)("div",{className:"device-row",children:[(0,i.jsx)("div",{className:"first_row_device",children:(0,i.jsx)(m(),{className:"device",src:w.isDove?"/images/icons/device_tablet.png":"/images/icons/device_tablet2.png",width:20,height:20,alt:"Device"})}),(0,i.jsx)("div",{className:"second_row_device",children:(0,i.jsx)("p",{children:e.device_name})}),(0,i.jsx)("div",{className:"third-row_device",children:(0,i.jsx)("p",{className:"device_date",children:(0,y.WX)(e.last_seen)})}),(0,i.jsx)("div",{className:"fourth-row_device",children:(0,i.jsx)("span",{className:"device_remove",children:(0,i.jsx)(m(),{src:w.isDove?"/images/icons/dove-close-circle-outline.png":"/images/icons/close-circle-outline.png",width:15,height:15,onClick:()=>{k(e)},alt:"Remove Device"})})})]},"device_row_"+t))})},{})]})})}),u.show&&(0,i.jsx)(ej.Z,{...u,removeAlert:C})]}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{children:(0,i.jsx)(e_.UV,{})})}):(0,i.jsx)("div",{children:(0,i.jsx)(e_.UV,{})})}var eN=a(64347),eD=function(){return(0,i.jsx)("div",{children:(0,i.jsxs)(eS,{children:[(0,i.jsx)(eN.Z,{variant:"rectangular",style:{background:"#313131"}}),(0,i.jsx)("div",{children:Array.from([,,,,,],(e,t)=>(0,i.jsxs)("div",{className:"younify-skeleton-container",children:[(0,i.jsx)(eN.Z,{variant:"rectangular",className:"younify-sub-skeleton-left",style:{background:"#313131"}}),(0,i.jsx)(eN.Z,{variant:"rectangular",className:"younify-sub-skeleton-right",style:{background:"#313131"}})]},"idx-".concat(t)))})]})})};let eS=M.ZP.div.withConfig({componentId:"sc-5c541672-0"})(["display:flex;"]),eP=M.ZP.div.withConfig({componentId:"sc-64867914-0"})(["position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);display:flex;justify-content:center;align-items:center;z-index:1000;"]),eR=M.ZP.div.withConfig({componentId:"sc-64867914-1"})(["background:white;border-radius:8px;padding:20px;"]);var eI=e=>{let{src:t,onClose:a}=e,o=(0,n.useRef)();return(0,n.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&a()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[a]),(0,i.jsx)(eP,{children:(0,i.jsx)(eR,{ref:o,children:(0,i.jsx)(m(),{src:t,alt:"Large QR Code",width:380,height:380})})})},eU=a(32372);let eE=M.ZP.div.withConfig({componentId:"sc-cf6e8d1a-0"})(["display:flex;justify-content:center;gap:20px;margin-top:30px;"]),eZ=M.ZP.div.withConfig({componentId:"sc-cf6e8d1a-1"})(["margin-bottom:15px;font-family:Roboto;font-size:14px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:#bfbfbf;"]),eL=M.ZP.div.withConfig({componentId:"sc-cf6e8d1a-2"})(["margin:9px 0 15px 0;object-fit:contain;border:solid 1px rgba(0,0,0,0);display:flex;justify-content:center;"]),eT=M.ZP.div.withConfig({componentId:"sc-cf6e8d1a-3"})(["margin:12px 0 17px 0;object-fit:contain;display:flex;cursor:pointer;position:relative;"]),eM=M.ZP.div.withConfig({componentId:"sc-cf6e8d1a-4"}
1)(["width:200px;height:80px;margin:12px 0 17px 0;"]),eA=M.ZP.p.withConfig({componentId:"sc-cf6e8d1a-5"})(["font-family:Roboto;font-size:11px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#fff;"]),eB=M.ZP.p.withConfig({componentId:"sc-cf6e8d1a-6"})(["font-family:Roboto;font-size:11px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#01a6a8 !important;"]),eY=M.ZP.div.withConfig({componentId:"sc-cf6e8d1a-7"})(["width:1px;height:286px;margin:20.2px 35.1px 5.4px 35.1px;background-color:#707070;"]),eV=M.ZP.div.withConfig({componentId:"sc-cf6e8d1a-8"})(["display:flex;flex-direction:column;"]),eO=M.ZP.span.withConfig({componentId:"sc-cf6e8d1a-9"})(["font-family:Roboto;font-size:11px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:2.36;letter-spacing:normal;text-align:center;color:#dedede !important;"]),eH=M.ZP.span.withConfig({componentId:"sc-cf6e8d1a-10"})(["font-weight:750;"]);var ez=function(e){let[t,a]=(0,n.useState)(null),[o,r]=(0,n.useState)(null),[s,l]=(0,n.use
1State)(!0),[c,d]=(0,n.useState)(!1),[h,u]=(0,n.useState)(!1),[p,g]=(0,n.useState)(""),[f,x]=(0,n.useState)(null),{status:C}=(0,v.useSession)(),_=e=>{window.open({1:"https://apps.apple.com/us/app/cineverse-stream-movies-tv/id1249601429?platform=iphone",2:"https://play.google.com/store/apps/details?id=com.dmr.yuyu&hl=en_US&pli=1"}[e],"_blank")},b=e=>{x(e)},j=()=>{x(null)},k=e=>{g(e),u(!0)},N="";e.profileData&&e.profileData.younify_info&&e.profileData.younify_info.younify_id&&(N=e.profileData.younify_info.younify_id),(0,n.useEffect)(()=>(e.profileData&&(e&&e.profileData&&e.profileData.letterboxd_info&&e.profileData.letterboxd_info.unlink?d(!0):e&&e.profileData&&!e.profileData.letterboxd_info?d(!0):d(!1),S()),e=>{}),[e&&e.profileData&&e.profileData.letterboxd_info&&e.profileData.letterboxd_info.unlink]);let D=t=>{if(N){let i=e&&e.urls&&e.urls.getLinkedYounifyURL?(0,y.tY)(e.urls.getLinkedYounifyURL):"";i=i.replace("__JTV__YOUNIFY__ID__",N);try{(0,y.bf)(i,e=>{if(e&&e.list&&e.list.length>=1){let i=(0,y.Po)(e.list);for(let e=0;e<t.length;e++)if(i[t[e].id]){let a=t[e];a&&(t.splice(e,1),t.unshift(a))}a(i)}r(t),l(!1)},"",!1,null,C)}catch(e){console.log(e)}}else r(t),l(!1)},S=()=>{let t=e&&e.urls&&e.urls.getAllStreamingServicesURL?(0,y.tY)(e.urls.getAllStreamingServicesURL):"";if(t){l(!0),a(null);try{(0,y.bf)(t,e=>{e&&e.list&&e.list.length>=1&&D(e.list)},"",!1,null,C)}catch(e){console.log(e)}}},P=t=>{if(N){let a=e&&e.urls&&e.urls.deletLinkYounifyURL?(0,y.tY)(e.urls.deletLinkYounifyURL):"";if(a=a.replace("__JTV__STREAMING__SERVICE__ID__",t).replace("__JTV__YOUNIFY__ID__",N),t&&a){let e={url:a};try{l(!0),(0,y.ag)(e,e=>{e&&e.data&&200==e.status&&S()})}catch(e){}}}},R=async t=>{var a,i;let n=e&&e.urls&&e.urls.letterboxUnlinkURL?(0,y.tY)(e.urls.letterboxUnlinkURL):"";n=n.replace("__JTV__DEVICE__CODE__",w.devType).replace("__JTV__UID__",null==e?void 0:null===(i=e.ironCookie)||void 0===i?void 0:null===(a=i.user)||void 0===a?void 0:a.UId);let o="".concat(n,"&p_member_id=").concat(t);try{await (0,y._i)({url:o,datatype:"json"},e=>{})}catch(e){console.log(e)}},I=[{name:"Discovery+",image_url:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dpgc8l5xtfbfkfox5x6u713k67knluxoqpwbza4v955hbxnkfxe211mkqn75u5eib18qnm1p423z/DiscoveryPlus.png"},{name:"Paramount+",image_url:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dn0iag3zojzihsdoxo6wqutkb84gr9aio7ihjc3oaci751gkebz3d1mkqn75u5eib18qnm1p423z/ParamountPlus.png"},{name:"Roku Channel",image_url:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dbr9a2c9glnsu9u9tfc6v1ionlbqux8e0tgqjyybtw5yn8khkxyouv4dbs4vrw4eeiw6i7eoa94p/RokuChann.png"}],U=null==o?void 0:o.map(e=>{if(!e.image_url){let t=I.find(t=>t.name===e.name);if(t)return{...e,image_url:t.image_url}}return e});return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(eE,{children:[(0,i.jsxs)(eV,{children:[(0,i.jsx)(eZ,{children:"Connect Streaming Services"}),(0,i.jsx)(eL,{children:(0,i.jsx)(m(),{src:"//images/unicineverse_logo.svg",alt:"check",width:90,height:30})}),(0,i.jsxs)(eT,{onClick:()=>_(1),onMouseEnter:()=>b(1),onMouseLeave:j,children:[(0,i.jsx)(m(),{src:"//images/first-qr-img.png",alt:"firstqrimg",width:190.5,height:60.9}),1===f&&(0,i.jsx)("button",{style:{position:"absolute",top:0,right:5,background:"transparent",border:"none",cursor:"pointer"},onClick:e=>{e.stopPropagation(),k("//images/ios_qr.png")},children:(0,i.jsx)(eU.Z,{sx:{color:"#fff",zIndex:1,background:"#01a6a8",borderRadius:1,width:28,height:28}})})]}),(0,i.jsxs)(eT,{onClick:()=>_(2),onMouseEnter:()=>b(2),onMouseLeave:j,children:[(0,i.jsx)(m(),{src:"//images/second-qr-img.png",alt:"secondqrimg",width:190.5,height:60.9}),2===f&&(0,i.jsx)("button",{style:{position:"absolute",top:0,right:5,background:"transparent",border:"none",cursor:"pointer"},onClick:e=>{e.stopPropagation(),k("//images/android_qr.png")},children:(0,i.jsx)(eU.Z,{sx:{color:"#fff",zIndex:1,background:"#01a6a8",borderRadius:1,width:28,height:28}})})]}),h&&(0,i.jsx)(eI,{src:p,onClose:()=>{u(!1)}}),(0,i.jsxs)(eM,{children:[(0,i.jsxs)(eA,{children:["1. ",(0,i.jsx)(eH,{children:"Download"})," the Cineverse mobile app"," "]}),(0,i.jsxs)(eA,{children:["2. ",(0,i.jsx)(eH,{children:"Select"})," Connect on the homepage."]}),(0,i.jsxs)(eA,{children:["3. ",(0,i.jsx)(eH,{children:"Connect"})," your streaming services to your cineSearch account."]}),(0,i.jsx)(eB,{children:"By linking these accounts, you agree to our Privacy Policy and Terms of Use."})]})]}),(0,i.jsx)(eY,{}),(0,i.jsxs)(eV,{children:[(0,i.jsx)(eZ,{children:"Connected Accounts"}),c?(0,i.jsx)("div",{className:"right-link-div",style:{margin:"0 auto"},children:(0,i.jsxs)("div",{className:"link-bg-account-younify link-bg-account-younify-hover",onClick:()=>(0,v.signIn)("letterboxd"),children:[(0,i.jsx)(m(),{src:"//images/group-1984.svg",alt:"Letterboxd Account",width:80,height:10.2}),"Connect Letterboxd Account"]})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"box-leter-younify-linking",style:{width:"20rem"},children:[(0,i.jsx)("div",{className:"img-wsize-align",children:(0,i.jsx)(m(),{src:"//images/letter-box-icon.svg",alt:"check",className:"younify-img-sub",width:70,height:36})}),(0,i.jsx)("div",{className:"right-link-div",children:(0,i.jsxs)("div",{className:"unlink-account-home",onClick:()=>{var t,a;R(null==e?void 0:null===(a=e.profileData)||void 0===a?void 0:null===(t=a.letterboxd_info)||void 0===t?void 0:t.member_id),(0,v.signOut)(),e.handleUpdate()},children:[(0,i.jsx)(m(),{className:"younify",src:"//images/letter-box-unlink.svg",alt:"check-letter",width:14.3,height:14.2}),"Disconnect"]})})]})}),null==t?(0,i.jsxs)("div",{style:{width:"20rem"},children:[(0,i.jsx)("div",{className:"dotted-horizontal-line",style:{margin:"20px auto"}}),(0,i.jsx)("div",{className:"link-bg-account-younify",style:{margin:"0 auto"},children:"Connect your streaming services via Cineverse App"}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",flexWrap:"wrap",marginTop:"2rem"},children:null==U?void 0:U.map((e,t)=>{let a=e.image_url?e.image_url:"";return(0,i.jsx)("div",{children:a?(0,i.jsx)("div",{style:{margin:"5px 20px"},children:(0,i.jsx)(m(),{src:null==e?void 0:e.image_url,height:25,width:63,objectFit:"contain"})}):(0,i.jsx)("span",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:e.name})},t)})})]}):(0,i.jsxs)("div",{style:{height:"50vh",overflowY:"auto",marginTop:"15p
1x"},children:[s&&(0,i.jsx)(eD,{}),!s&&o&&U.map((e,a)=>{let n=e.image_url?e.image_url:"";return(0,i.jsxs)("div",{className:"box-leter-younify-linking",style:{marginRight:"10px"},children:[(0,i.jsx)("div",{className:"left-img-sub",children:n?(0,i.jsx)(m(),{className:"younify-img-sub",src:n,alt:"tiktok",width:68.6,height:36.9},a):(0,i.jsx)("span",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:e.name})}),(0,i.jsx)("div",{className:"right-link-div",children:!s&&(0,i.jsx)(i.Fragment,{children:t&&t[e.id]?(0,i.jsxs)("div",{className:"all-servicelink-account curson-pointer link-active-btn",onClick:()=>P(e.id),children:[(0,i.jsx)(m(),{src:"//images/letter-box-unlink.svg",alt:"check-letter",width:14.3,height:14.2}),(0,i.jsx)(eO,{children:"Disconnect"})]}):(0,i.jsx)("div",{className:"all-servicelink-account ",children:(0,i.jsx)(eO,{children:"Connect via App"})})})})]},"allservice-prof-"+a)})]})]})]})})},eF=a(34155);let eJ=!1;function eX(e){var t,a;let{status:o}=(0,v.useSession)(),[r,s]=(0,n.useState)(null),l=(0,n.useRef)(!1);(0,n.useEffect)(()=>(e&&e.ironLogin&&u(),e=>{}),[null==e?void 0:null===(a=e.ironCookie)||void 0===a?void 0:null===(t=a.user)||void 0===t?void 0:t.email]);let c={ironCookie:(null==e?void 0:e.ironCookie)?e.ironCookie:"",selectedProfile:(null==e?void 0:e.selectedProfile)?e.selectedProfile:"",location_type:"page",event_location_id:"account_linking_screen",shelves:null},d=(0,y.m1)(c),h=e&&e.urls&&e.urls.logURLV2?(0,y.tY)(e.urls.logURLV2):"";(0,n.useEffect)(()=>{!l.current&&(l.current=!0,w.isVisitPageOn&&(0,eo.qe)(h,"VISIT",d))},[]);let u=async()=>{let t=e&&e.urls&&e.urls.profileDetailsURL?(0,y.tY)(e.urls.profileDetailsURL):"";e.ironLogin&&(t=t.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(e&&e.ironCookie&&e.ironCookie.user&&e.ironCookie.user.email)));try{await (0,y.sj)(t,e=>{e&&e.response&&(s(e.response),g())},o)}catch(e){console.log(e,"err message value_____________________")}},p=(0,v.useSession)(),m=async()=>{try{var e;let t=r&&(null==r?void 0:null===(e=r.letterboxd_info)||void 0===e?void 0:e.p_auth_token);if(t){let e=await fetch("/api/letterboxme?accessToken=".concat(t)),a=await e.json();"Unauthorized"===a.error&&(console.log("Token expired, refreshing..."),await f())}}catch(e){console.error("Error fetching user data:",e)}};(0,n.useEffect)(()=>{m()},[]);let g=async t=>{var a,i,n,o,r,s,l,c,d,h;if(null==e?void 0:null===(a=e.urls)||void 0===a?void 0:a.letterboxUpdateURL)try{let a=(0,y.tY)(null==e?void 0:null===(i=e.urls)||void 0===i?void 0:i.letterboxUpdateURL);a=(a=a.replace("__JTV__DEVICE__CODE__",w.devType)).replace("__JTV__UID__",null==e?void 0:null===(o=e.ironCookie)||void 0===o?void 0:null===(n=o.user)||void 0===n?void 0:n.UId);let u="".concat(a,"&p_member_id=").concat(null==p?void 0:null===(s=p.data)||void 0===s?void 0:null===(r=s.user)||void 0===r?void 0:r.image),m={"Content-Type":"application/json","P-Auth-Token":"","P-Refresh-Token":"","mp-tag":(0,y.VZ)(u)};(t||(null==p?void 0:p.status)==="authenticated")&&(m["P-Auth-Token"]=eJ?t&&t.access_token?t.access_token:null==p?void 0:null===(l=p.data)||void 0===l?void 0:l.accessToken:null==p?void 0:null===(c=p.data)||void 0===c?void 0:c.accessToken,m["P-Refresh-Token"]=eJ?t&&t.refresh_token?t.refresh_token:null==p?void 0:null===(d=p.data)||void 0===d?void 0:d.refreshToken:null==p?void 0:null===(h=p.data)||void 0===h?void 0:h.refreshToken);let g=await fetch("/api/letterboxUpdate",{method:"POST",headers:m});await g.json()}catch(e){console.error("Error during update:",e)}},f=async()=>{try{var e;eJ=!0;let t=await fetch("/api/refreshToken",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:eF.env.CLIENT_ID,client_secret:eF.env.CLIENT_SECRET,refresh_token:null==r?void 0:null===(e=r.letterboxd_info)||void 0===e?void 0:e.p_refresh_token,grant_type:"refresh_token",redirect_uri:w.letterbox_redirect})}),a=await t.json();g(a)}catch(e){console.error("Error refreshing token:",e)}};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{style:{translate:"4%"},children:(0,i.jsx)(ez,{profileData:r,letterBoxuserData:p,handleUpdate:()=>g(),...e})})})}var eq=a(38368),eK=a(28907),eW=a(60990),e$=a(45697),eG=a.n(e$),eQ=a(93380),e0=a(68573),e1=a(81574),e2=a(12491);function e8(e){let{children:t,value:a,index:n,...o}=e;return(0,i.jsx)("div",{role:"tabpanel",hidden:a!==n,id:"simple-tabpanel-".concat(n),"aria-labelledby":"simple-tab-".concat(n),...o,children:a===n&&(0,i.jsx)(eW.Z,{sx:{p:3},children:(0,i.jsx)("div",{className:e.subscription?"center-div-cont":"",children:t})})})}e8.propTypes={children:eG().node,index:eG().number.isRequired,value:eG().number.isRequired};var e3=!0,e5=function(e){let t=(0,l.useRouter)(),{asPath:a}
1=t,[c,d]=(0,n.useState)(!1),[u,p]=(0,n.useState)("edit-profile"),[g,f]=(0,n.useState)(!1),[C,b]=(0,n.useState)(1),[j,k]=(0,n.useState)(0),[N,D]=(0,n.useState)(""),[S,P]=(0,n.useState)(""),[R,I]=(0,n.useState)(!1),[U,E]=(0,n.useState)(""),[T,M]=(0,n.useState)(t.query.uname?decodeURIComponent(t.query.uname):""),[A,B]=(0,n.useState)(!!T),[Y,V]=(0,n.useState)("Delete"),[O,z]=(0,n.useState)(!1),[F,J]=(0,n.useState)(""),[X,q]=(0,n.useState)(""),[K,W]=(0,n.useState)(""),[$,G]=(0,n.useState)(""),[Q,ee]=(0,n.useState)(!1),et=(0,n.useRef)(null),[ea,ei]=(0,n.useState)(null),[en,eo]=(0,n.useState)(""),{status:er}=(0,v.useSession)();e.ironCookie&&e.ironCookie.user.UId&&e.ironCookie.user.UId;let es=e&&e.urls&&e.urls.logURLV2?(0,y.tY)(e.urls.logURLV2):"",el=t=>{(0,y.FS)(e.ironCookie,()=>t,"headerCompound",es)},ec=["basicinfo","subscription","devices","accountlinking","manageprofile"],[ed,eh]=(0,n.useState)(!1),ep=e=>{b(e)},em=(0,v.useSession)(),[eg,ef]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(e&&e.ironLogin){var t,a,i;let n=(0,y.tY)(null==e?void 0:null===(t=e.urls)||void 0===t?void 0:t.profileDetailsURL);n=n.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(e&&(null==e?void 0:e.ironCookie)&&(null==e?void 0:null===(i=e.ironCookie)||void 0===i?void 0:null===(a=i.user)||void 0===a?void 0:a.email))),(0,y.bf)(n,e=>{var t;ef(null==e?void 0:null===(t=e.letterboxd_info)||void 0===t?void 0:t.unlink)},"",!1,null,er)}},[]);let ex=(0,y.ej)("user_stat_data")?JSON.parse((0,y.ej)("user_stat_data")):[],ew=Object.keys(ex).length>0?ex:e.ironCookie,ey=e.ironLogin;if((0,y.d8)("redirectpath","account"),(0,n.useEffect)(()=>(ey||"delete"==t.query.act||t.push({pathname:"/login"}),ey&&"delete"==t.query.act&&T!==e.ironCookie.user.username&&(e.ironCookie.user.username=T,e.ironLogin&&(0,y.FS)(e.ironCookie,e=>{"logout"==e&&window.location.reload()},"deleteAcc",es)),()=>{}),[]),(0,n.useEffect)(()=>{(0,y.Sl)(e)},[]),(0,n.useEffect)(()=>{(async()=>{var t,a,i,n,o,r,s,l;let c=null==e?void 0:null===(i=e.ironCookie)||void 0===i?void 0:null===(a=i.user)||void 0===a?void 0:null===(t=a.letterboxd_info)||void 0===t?void 0:t.member_id,d=null==e?void 0:null===(r=e.ironCookie)||void 0===r?void 0:null===(o=r.user)||void 0===o?void 0:null===(n=o.letterboxd_info)||void 0===n?void 0:n.p_auth_token;if(!eg&&c&&d){let t="/api/letterBoxWatchlist?userId=".concat(c,"&accessToken=").concat(d),a="/api/letterBoxLikeDislike?userId=".concat(c,"&accessToken=").concat(d),i="/api/letterBoxDiary?userId=".concat(c,"&accessToken=").concat(d),n="api/letterBoxLiked?userId=".concat(c,"&accessToken=").concat(d);try{let o=await x.Z.get(t),r=await x.Z.get(a),c=await x.Z.get(i),d=await x.Z.get(n);if(o.data.length>0){let t=e&&e.urls&&e.urls.addYounifyContentURL?(0,y.tY)(e.urls.addYounifyContentURL):"";t=t.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(null==e?void 0:null===(l=e.ironCookie)||void 0===l?void 0:null===(s=l.user)||void 0===s?void 0:s.username));let a=null==o?void 0:o.data,i=null==r?void 0:r.data,n=null==c?void 0:c.data,h=null==d?void 0:d.data,u={bdata:[{service_name:"LetterBoxd",service_data:[{data:a,category_name:"Watchlist"},{data:i,category_name:"WatchedFilm"},{data:n,category_name:"Diary"},{data:h,category_name:"Liked"}]}],url:t,datatype:"json"};try{await (0,y._i)(u,e=>{})}catch(e){console.log(e)}}else notify("error","Please select an avatar")}catch(e){console.log("Error fetching data from proxy API:",e.message),console.error("Full error object:",e)}}})()},[]),(0,n.useEffect)(()=>{let e=a.split("#")[1],t=ec.indexOf(e);-1!==t?(k(t),eh(!1)):e&&eh(!0)},[a]),ed)return(0,i.jsx)(e1.default,{});let eC=w.plan_data_array;eC&&eC.map((e,t)=>{e.plan_id=t+1,e.plan_id==C?e.isactive=!0:e.isactive=!1});let e_=(e,t)=>{switch(e){case"currpassword":t?(I(!0),D("")):(D("Password is mandatory"),I(!1));break;case"email":t?(B(!0),E("")):(E("Email is mandatory"),B(!1))}},eb=async a=>{try{await (0,y._i)(a,a=>{a&&"success"==a.result?(z(!1),d(!0),(0,y.sQ)(),(0,y.m5)(),setTimeout(()=>{t.push({pathname:"/"})},2e3),e.ironLogin&&el(()=>{})):(V("Delete"),z(!1),D(a.message))})}catch(e){console.log(e),D(e),z(!1)}},ej=async()=>{let t=(0,y.tY)(e.urls.profileDetailsURL).replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(T));try{(0,y.bf)(t,t=>{let a=(0,y.tY)(e.urls.userDeleteURL?e.urls.userDeleteURL:"");a=a.replace("__JTV__USER__ID__",t.UId),V("Please wait..."),D("");let i={type:"deleteuser",bdata:(0,y.YW)(JSON.stringify({username:T,password:S})),url:a};eb(i)},"",!1,null,er)}catch(e){console.log(e)}},eN=()=>
1{if(!ea){eo("Please complete the security verification.");return}R&&A?ej():(e_("currpassword",S),e_("email",T))},eD=!ew||ew.user.status==w.userSubscribed,eS=!!e&&!!e.urls&&!!e.urls.subscriptionAPI;return t.query.act&&"delete"==t.query.act?(0,i.jsx)("div",{className:"delete-page-div",children:(0,i.jsxs)("div",{className:"delete-form-wrapper",children:[!c&&(0,i.jsx)("h1",{className:w.isDove?"dove-delete-main-text":"delete-main-text",children:"Delete your Account"}),c?(0,i.jsxs)("div",{className:"mtop-70",children:[(0,i.jsx)(H.Z,{className:"tab-success-msg",children:(0,i.jsx)(m(),{src:w.isDove?"//images/dove_task_alt_white_48dp.svg":"//images/task_alt_white_48dp.svg",alt:"check",width:80,height:80})}),(0,i.jsx)(_.Z,{className:"auth-form-tiny-head",title:"User deleted Successfully"}),(0,i.jsxs)(h.Z,{className:"confirm_button_align",onClick:e=>t.push("/home"),children:["Go to ",w.displayAppName]})]}):(0,i.jsx)("div",{className:"delete-main-container",children:(0,i.jsx)("div",{className:"delete-profile-cont",children:(0,i.jsxs)("div",{className:"delete-second-container",children:[!ey&&(0,i.jsx)(L.Z,{className:U?"errorMargin":"normalMargin",type:"text",autoComplete:"off",placeholder:"Your email address",value:T,name:"email",onChange:e=>{let{target:t}=e;M(t.value),e_(t.name,t.value,"Email is required","")}}),U?(0,i.jsx)(Z.Z,{children:U}):null,(0,i.jsx)(L.Z,{type:"password",name:"currpassword",className:N?"errorMargin":"normalMargin",autoComplete:"off",onChange:e=>{let{target:t}=e;P(t.value),e_(t.name,t.value)},value:S,placeholder:"Enter Password"}),N?(0,i.jsx)(Z.Z,{children:N}):null,w.isGCaptcha&&(0,i.jsx)("div",{className:"recaptcha-container",children:(0,i.jsx)(e2.default,{ref:et,siteKey:"6LfL_QgsAAAAAIhi210w_JtVn_dQgdwnHMfu-yYp",onVerify:e=>{ei(e),eo("")},onError:e=>{ei(null),eo("Security verification failed. Please try again.")},error:en})}),en&&(0,i.jsx)(Z.Z,{children:en}),(0,i.jsx)(h.Z,{className:"submit-subs-btn marginr_10",onClick:()=>{eN()},disabled:O,children:Y}),(0,i.jsx)(h.Z,{className:"cancel-subs-btn cancel-btn-bcolor",onClick:()=>{t.push({pathname:"/"})},children:"Cancel"})]})})})]})}):(0,i.jsx)(i.Fragment,{children:e.isHooplaVal?(0,i.jsxs)("div",{className:"min-height-70",children:[(0,i.jsx)("div",{className:"partner-text-val",children:(0,i.jsx)(m(),{src:"//images/icons/Block-icon.svg",alt:"Cineverse_icon",width:"60",height:"60"})}),(0,i.jsx)("div",{className:"partner-text-val",children:"Permission to access this page is denied. Please contact customer support for further query."})]}):(0,i.jsx)("div",{className:"d-flex-column acnt-pge acnt-space ",children:(0,i.jsxs)(o.Z,{className:"mtop-30",children:[(0,i.jsx)("span",{className:w.isDove?"dove-account-heading":"account-heading",children:"Account"}),(0,i.jsxs)(r.Z,{className:"mobile-pad",children:[(0,i.jsx)(eW.Z,{sx:{borderBottom:1,borderColor:"divider"},children:(0,i.jsx)(e0.ZP,{container:!0,justifyContent:"center",children:(0,i.jsxs)(eq.Z,{variant:"scrollable",TabIndicatorProps:{style:{backgroundColor:"cineverse"===w.appName?"#01a6a8":w.menuTextHoverColor,border:"cineverse"===w.appName?"2px solid #01a6a8":"2px solid ".concat(w.menuTextHoverColor),borderRadius:"4px"}},scrollButtons:!0,allowScrollButtonsMobile:!0,value:j,onChange:(e,a)=>{k(a),t.push("/account#".concat(ec[a]))},"aria-label":"basic tabs example",children:[(0,i.jsx)(eK.Z,{label:"Basic Info",sx:{color:w.isDove?"#353a47 !important":"#ffffff80",padding:"12px 35px !important","&.Mui-selected":{color:w.isDove?"#885a5a !important":"#ffffff !important"}}}),(0,i.jsx)(eK.Z,{label:"Subscription",className:eS?"isSubval":"isSubvalNot",sx:{color:w.isDove?"#353a47 !important":"#ffffff80",padding:"12px 35px !important","&.Mui-selected":{color:w.isDove?"#885a5a !important":"#ffffff !important"}}}),(0,i.jsx)(eK.Z,{label:"Devices",sx:{color:w.isDove?"#353a47 !important":"#ffffff80",padding:"12px 35px !important","&.Mui-selected":{color:w.isDove?"#885a5a !important":"#ffffff !important"}}}),w.isLetterBox&&!w.isTivoOS&&(0,i.jsx)(eK.Z,{label:"Account Linking",sx:{color:w.isDove?"#353a47 !important":"#ffffff80",padding:"12px 35px !important","&.Mui-selected":{color:w.isDove?"#885a5a !important":"#ffffff !important"}}}),w.isMultiProfileActive&&e&&e.urls&&e.urls.addSubProfileURL&&e.selectedProfile&&(0,i.jsx)(eK.Z,{label:"Manage profile",sx:{color:w.isDove?"#353a47 !important":"#ffffff80",padding:"12px 35px !important","&.Mui-selected":{color:w.isDove?"#885a5a !important":"#ffffff !important"}}})]})})}),(0,i.jsxs)(s.Z,{sm:12,md:12,children:[(0,i.jsx)(e8,{value:j,index:0,children:(0,i.jsx)(eu,{...e,userNameChangeOnSave:(e,t,a)=>{q(e),W(t),G(a)},userProfilePicUpdate:e=>{J(e)},userEmailChange:e=>{G(e)},fnameSavedInParent:X,lnameSavedInParent:K,updateProfilePhoto:F,updateEmail:$,redirct:e=>{k(e)}})}),(0,i.jsx)(e8,{value:j,index:1,subscription:"true",children:(0,i.jsx)(ev.Z,{...e,kochava:e.kochava,upgradedata:eC,planid:e=>ep(e),plnid:C,plnload:eD,callFrom:"account"})}),(0,i.jsx)(e8,{value:j,index:2,children:(0,i.jsx)(ek,{...e})}),w.isLetterBox&&(0,i.jsx)(e8,{value:j,index:3,children:(0,i.jsx)(eX,{letterBoxuserData:em,...e})}),w.isMultiProfileActive&&e&&e.urls&&e.urls.addSubProfileURL&&e.selectedProfile&&(0,i.jsx)(e8,{value:j,index:4,children:(0,i.jsx)(eQ.Z,{handleGoToHome:()=>{},callfrom:"account",...e})})]})]})]})})})}},26571:function(){}},function(e){e.O(0,[1758,3174,6595,5136,4810,7247,3969,6147,2888,9774,179],function(){return e(e.s=848
165)}),_N_E=e.O()}]);

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