PageSourceSearch

https://watchheartlandplus.com/_next/static/chunks/7963-6e97e575500f0230.js

js watchheartlandplus.com collected 2026-09-24 10:08:18 UTC 8,711 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7963],{87963:function(e,o,t){"use strict";t.r(o),t.d(o,{default:function(){return ProfileOtp}});var l=t(85893),i=t(67294),n=t(64666),a=t(50594),r=t(14405),s=t.n(r),p=t(73484),c=t(62817),u=t(4975),d=t(94313),_=t(30327),v=t(11163),f=t(58014),m=t(38606),g=t(6437);function ProfileOtp(e){var o,t,r,h,b,P,x;let{popupData:T,isPasswordOtp:y=!1}=e,{state:{localLang:N,SystemFeature:O,userDetails:w,SystemConfig:W},dispatch:j}=(0,u.oR)(),A=(0,v.useRouter)(),[k,C]=(0,i.useState)(y),[R,D]=(0,i.useState)(""),[S,Z]=(0,i.useState)(""),[V,E]=(0,i.useState)(""),[G,L]=(0,i.useState)(""),[U,q]=(0,i.useState)(!1),J=(0,i.useRef)(),I=(0,f.rV)("isUtuser"),{mutate:X,data:M,GeisLoading:F,GetOtpisError:Q,GetOtperror:Y,GetOtprefetch:H}=(0,_.Z)(),{mutate:K,data:z,VerifyOtpisLoading:B,VerifyOtpisError:$,VerifyOtperror:ee,VerifyOtprefetch:eo}=(0,_.Z)(),{mutate:et,data:el,isLoading:ei}=(0,_.Z)(),en={pin:{heading:c.bW[N].Get_OTP_To_edit_Profile_Lock,message:"".concat(c.bW[N].Get_OTP_To_edit_Profile_Lock," ").concat(null===(o=T.userProfile)||void 0===o?void 0:o.name,"’s ").concat(c.bW[N].Profile)},view:{heading:c.bW[N].Get_OTP_To_edit_Viewing_Restrictions,message:"".concat(c.bW[N].Get_OTP_to_edit_profile_Maturity_Rating_and_Title_Restrictions_for," ").concat(null===(t=T.userProfile)||void 0===t?void 0:t.name,"’s ").concat(c.bW[N].Profile)},DeleteAccount:{heading:c.bW[N].Get_OTP_to_Delete_Account,message:"".concat(null===(r=T.userProfile)||void 0===r?void 0:r.firstName," ").concat(c.bW[N].Get_OTP_to_Delete_Account)}},ea={pin:{heading:c.bW[N].Profile_Lock,message:"".concat(c.bW[N].Enter_OTP_To_edit_Profile_Lock_XXX_Profile," ").concat(null===(h=T.userProfile)||void 0===h?void 0:h.name,"’s ").concat(c.bW[N].Profile)},view:{heading:c.bW[N].Viewing_Restrictions,message:"".concat(c.bW[N].Enter_OTP_to_edit_profile_Maturity_Rating_and_Title_Restrictions_for," ").concat(null===(b=T.userProfile)||void 0===b?void 0:b.name,"’s ").concat(c.bW[N].Profile)},DeleteAccount:{heading:c.bW[N].Delete_Account,message:"".concat(null===(P=T.userProfile)||void 0===P?void 0:P.firstName," ").concat(c.bW[N].Enter_OTP_to_delete_your_Account)}},{heading:er,message:es}=k?ea[T.subtype]:en[T.subtype]||{};(0,i.useEffect)(()=>{if(null==M?void 0:M.data){var e,o,t,l,i,n;let a;!0===(a=(null==O?void 0:null===(e=O.encryptApisList)||void 0===e?void 0:e.fields.getOtp)==="true"?(null==M?void 0:null===(o=M.data)||void 0===o?void 0:o.data)?JSON.parse((0,d.ow)(null==M?void 0:null===(t=M.data)||void 0===t?void 0:t.data)):{}:M.data).status?(C(!0),D(null==a?void 0:null===(l=a.response)||void 0===l?void 0:l.message)):(Z(null==a?void 0:null===(i=a.error)||void 0===i?void 0:i.message),j({type:u.Nw.o4,payload:{message:null==a?void 0:null===(n=a.error)||void 0===n?void 0:n.message}}))}},[M]),(0,i.useEffect)(()=>{var e,o,t,l,i,n;(null==el?void 0:null===(e=el.data)||void 0===e?void 0:e.status)===!0?((0,m.qP)("Account_Delete",{}),I?window.open("".concat(null==W?void 0:null===(o=W.configs)||void 0===o?void 0:o.siteURL,"/delete-account"),"_self"):(j({type:u.Nw.o4,payload:{message:null==el?void 0:null===(l=el.data)||void 0===l?void 0:null===(t=l.response)||void 0===t?void 0:t.message}}),setTimeout(()=>{var e;window.open(null==W?void 0:null===(e=W.configs)||void 0===e?void 0:e.siteURL,"_self")},2e3))):L(null==el?void 0:null===(n=el.data)||void 0===n?void 0:null===(i=n.error)||void 0===i?void 0:i.message)},[el]);let deleteAccountApi=()=>{let e={otp:J.current.value,context:"delete_account"};(null==w?void 0:w.email)?e.email=w.email:(null==w?void 0:w.phoneNumber)&&(e.mobile=w.phoneNumber),et({url:"".concat("https://lukentv-api.revlet.net","/service/api/auth/delete/account"),apiData:e})};(0,i.useEffect)(()=>{if(null==z?void 0:z.data){var e,o,t,l;!0===z.data.status?(j({type:u.Nw.qY,payload:null==z?void 0:null===(e=z.data)||void 0===e?void 0:e.response}),"pin"==T.subtype?A.push("/profiles/profile-lock/".concat(T.userProfile.profileId)):"DeleteAccount"==T.subtype?deleteAccountApi():(null==T?void 0:T.isParentalControl)?A.push("/profiles/parental-controls"):A.push("/profiles/view-restrictions/".concat(null===(o=T.userProfile)||void 0===o?void 0:o.profileId))):E(null==z?void 0:null===(l=z.data)||void 0===l?void 0:null===(t=l.error)||void 0===t?void 0:t.message)}},[z]);let handleClose=e=>{null==e||e.preventDefault(),T.closeTarget&&T.closeTarget({closeorcancel:!0})},handleVerifyOtp=()=>{let e=new FormData;"DeleteAccount"==T.subtype?e.append("context","delete_account"):e.append("context","user_profiles"),e.a
1ppend("otp",J.current.value),(0,f.rV)("loginType"),(null==w?void 0:w.email)?e.append("email",w.email):(null==w?void 0:w.phoneNumber)&&e.append("mobile",w.phoneNumber),K({url:"https://lukentv-api.revlet.net/service/api/auth/user/authentication",apiData:e})},handleGetOtp=()=>{var e;let o={};if("DeleteAccount"==T.subtype?o.context="delete_account":o.context="user_profiles",(0,f.rV)("loginType"),(null==w?void 0:w.email)?o.email=null==w?void 0:w.email:(null==w?void 0:w.phoneNumber)&&(o.mobile=null==w?void 0:w.phoneNumber),(null==O?void 0:null===(e=O.encryptApisList)||void 0===e?void 0:e.fields.getOtp)==="true"){let e={data:(0,d.q6)(JSON.stringify(o)),metadata:(0,d.q6)(JSON.stringify({request:"get/otp"}))};getOtp("".concat("https://lukentv-api.revlet.net","/service/api/v1/send"),e)}else getOtp("".concat("https://lukentv-api.revlet.net","/service/api/auth/get/otp"),o)},getOtp=(e,o)=>{try{X({url:e,apiData:o})}catch(e){console.log(e)}},handleInput=e=>{q(!1),e.target.value=e.target.value.slice(0,4)};return(0,l.jsx)(n.Z,{open:!!T.isActive&&T.isActive,children:(0,l.jsx)("div",{className:s().sharecontent_modal,children:(0,l.jsx)("div",{className:s().main_modal,children:(0,l.jsx)("div",{className:s().modal_wrapper,children:(0,l.jsxs)("div",{className:s().modal_content,children:[(0,l.jsx)(a.Z,{className:"".concat(s().cross_icon),onClick:handleClose}),(0,l.jsxs)("div",{className:"".concat(s().modal_content_inner),children:[(0,l.jsx)("div",{className:"".concat(s().profile_img),children:(0,l.jsx)("img",{src:(null==T?void 0:null===(x=T.userProfile)||void 0===x?void 0:x.imageUrl)?(0,p.ZY)(T.userProfile.imageUrl):null===g.Z||void 0===g.Z?void 0:g.Z.defaultProfilePic,onError:e=>{let{currentTarget:o}=e;o.onerror=null,o.src=null===g.Z||void 0===g.Z?void 0:g.Z.defaultProfilePic},alt:T.userProfile.name})}),(0,l.jsxs)("form",{className:s().otp_block,children:[er&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("h5",{className:"".concat(s().otp_Txt," ").concat(s().View_Txt),children:er})}),k&&(0,l.jsxs)("div",{className:"".concat(s().otp_input),children:[(0,l.jsxs)("div",{className:"".concat(s().input_wrapper),children:[(0,l.jsx)("input",{id:"otp",name:"otp",placeholder:"OTP",className:"".concat(s().form_control),ref:J,type:"number",onChange:e=>handleInput(e)}),S&&(0,l.jsx)("span",{className:"".concat(s().err_txt),children:S}),console.log(V),V&&(0,l.jsx)("span",{className:s().err_txt,children:V})]}),R&&(0,l.jsx)("span",{className:"".concat(s().otp_sent),children:(null==w?void 0:w.email)?c.bW[N].OTP_sent_to_your_Registered_email:c.bW[N].OTP_sent_to_your_Registered_mobile_number})]}),(0,l.jsxs)("div",{className:s().footer_actions,children:[(0,l.jsx)("button",{type:"button",className:"grey ".concat(s().Cancel),onClick:handleClose,children:c.bW[N].Cancel}),(0,l.jsx)("button",{type:"submit",className:"primary ".concat(s().Continue),onClick:e=>{e.preventDefault(),y||(k?J.current.value?J.current.value.length<4?E(c.bW[N].OTP_length_less):J.current.value.length>4?E(c.bW[N].OTP_length_greater):handleVerifyOtp():E(c.bW[N].OTP_required):(handleGetOtp(),q(!1)))},disabled:U,children:k?c.bW[N].Continue:c.bW[N].GET_OTP})]})]})]})]})})})})})}},14405:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",sharecontent_modal:"profile-otp-popup_sharecontent_modal__wanPS",cross_icon:"profile-otp-popup_cross_icon__oMXip",main_modal:"profile-otp-popup_main_modal__37JQj",modal_wrapper:"profile-otp-popup_modal_wrapper__fpWMR",modal_content:"profile-otp-popup_modal_content__7PsJa",modal_content_inner:"profile-otp-popup_modal_content_inner__LUR3C",profile_img:"profile-otp-popup_profile_img__WTb84",otp_Txt:"profile-otp-popup_otp_Txt__dXS6D",otp_subTxt:"profile-otp-popup_otp_subTxt___22Ql",View_subTxt:"profile-otp-popup_View_subTxt__32uAF",otp_block:"profile-otp-popup_otp_block__24vWV",otp_input:"profile-otp-popup_otp_input__upA_U",input_wrapper:"profile-otp-popup_input_wrapper__Y1g1y",form_control:"profile-otp-popup_form_control__OPHr4",err_txt:"profile-otp-popup_err_txt__lSxG8",toggle:"profile-otp-popup_toggle__OjP_I",otp_sent:"profile-otp-popup_otp_sent__rKJuS",footer_actions:"profile-otp-popup_footer_actions__yjsQx"}}}]);

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.