1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4418],{23574:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profiles/add-profile-name",function(){return o(30777)}])},31615:function(e,t,o){"use strict";var l=o(85893),r=o(9008),n=o.n(r),a=o(11163),i=o(67294),s=o(83454);t.Z=(0,i.memo)(function(e){var t,o,r,i,u,d,c;let{seodata:v,noindex:p}=e,{locale:_,asPath:f}=(0,a.useRouter)();return void 0!==v&&(null==v?void 0:v.status)||n(),(0,l.jsxs)(n(),{children:[(null==v?void 0:null===(t=v.response)||void 0===t?void 0:t.title)?(0,l.jsx)("title",{children:null==v?void 0:null===(o=v.response)||void 0===o?void 0:o.title}):(0,l.jsx)("title",{children:"TSAT"}),!!p&&(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(null==v?void 0:null===(r=v.response)||void 0===r?void 0:r.description)&&(0,l.jsx)("meta",{name:"description",content:null==v?void 0:null===(i=v.response)||void 0===i?void 0:i.description}),(null==v?void 0:null===(u=v.response)||void 0===u?void 0:u.keywords)&&(0,l.jsx)("meta",{name:"keywords",content:null==v?void 0:null===(d=v.response)||void 0===d?void 0:d.keywords}),(()=>{var e,t,o;if(null==v?void 0:v.status){let r=null==v?void 0:null===(t=v.response)||void 0===t?void 0:null===(e=t.metaTags)||void 0===e?void 0:e.filter(e=>{e.tagType});return(null==r?void 0:r.length)>0?(0,l.jsx)("link",{rel:tag.tagType,href:tag.content}):(0,l.jsx)("link",{rel:"canonical",href:"".concat(null==s?void 0:null===(o=s.env)||void 0===o?void 0:"").concat(f)})}})(),(null==v?void 0:null===(c=v.response)||void 0===c?void 0:c.metaTags)&&v.response.metaTags.map((e,t)=>"name"==e.tagName?(0,l.jsx)("meta",{name:e.tagType,content:e.content},e.tagType):"property"==e.tagName?(0,l.jsx)("meta",{property:e.tagType,content:e.content},e.tagType):"rel"==e.tagName?(0,l.jsx)("link",{rel:e.tagType,href:e.content},e.tagType):void 0)]})})},30777:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return m},default:function(){return h}});var l=o(85893),r=o(67294),n=o(47478),a=o.n(n),i=o(47874),s=o(16732),u=o(69968),d=o(11163),c=o(98271),v=o(84781),p=o(22955),_=()=>{var e;let{state:{SystemConfig:t,userDetails:o,localLang:n},dispatch:_}=(0,s.oR)(),f=(0,d.useRouter)(),m=(0,r.useRef)(""),[h,g]=(0,r.useState)(""),{mutate:x,data:y}=(0,u.Z)(),[j,N]=(0,r.useState)({valid:!1,error:""}),[b,w]=(0,r.useState)(""),[T,k]=(0,r.useState)({});(0,r.useEffect)(()=>{var e;let o=null==t?void 0:null===(e=t.contentLanguages)||void 0===e?void 0:e.reduce((e,t)=>"".concat(e,",").concat(t.code),"");g(null==o?void 0:o.slice(1))},[t]),(0,r.useEffect)(()=>{if(o){var e;k(null==o?void 0:null===(e=o.profileParentalDetails)||void 0===e?void 0:e.filter(e=>!!e.isMasterProfile))}},[o]),(0,r.useEffect)(()=>{var e;(null==y?void 0:y.data)&&y.data.status&&(T.name=m.current.value,null==o||null===(e=o.profileParentalDetails)||void 0===e||e.forEach(e=>{e.isMasterProfile&&(e=T)}),_({type:s.Nw.$V,payload:{...o}}),f.push("/profiles/select-user-profile"))},[y]);let P=e=>{if(void 0==m.current.value||""==m.current.value)N({valid:!1,error:"Name is Required"});else{var t,o,l;let r={profileName:e,profileId:null===(t=T[0])||void 0===t?void 0:t.profileId,isChildren:null===(o=T[0])||void 0===o?void 0:o.isChildren,isProfileLockActive:null===(l=T[0])||void 0===l?void 0:l.isProfileLockActive,langs:h};try{x({url:"https://api-apac.revlet.net/service/api/auth/update/user/profile",apiData:r})}catch(e){}}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{className:" ".concat(a().tablet_logo),src:null===(e=i.e)||void 0===e?void 0:e.appLogo}),(0,l.jsx)("div",{className:"".concat(a().profile_page),children:(0,l.jsxs)("div",{className:"".concat(a().create_profile_page),children:[(0,l.jsx)("h1",{children:p.Xo[n].Create_Your_Profile}),(0,l.jsx)("p",{className:"".concat(a().sub_text),children:p.Xo[n].Create_upto_5_personalised_profiles_to_share_the_fun_with_those_who_live_with_you}),(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),j.valid&&P(m.current.value)},children:[(0,l.jsx)(c.Z,{fullWidth:!0,id:"name",label:"Your Profile Name",name:"name",margin:"normal",autoFocus:!0,variant:"outlined",sx:v.HC,inputRef:m,onBlur:e=>{let t=e.target.value,o=t.replace(/[^\w\s]/gi,"").trim();0!==o.length?N({valid:!0,error:""}):N({valid:!1,error:"Name is Required"}),w(o)},inputProps:{maxLength:12},onFocus:()=>N({valid:!0,error:""}),defaultValue:""}
1,"name"),(0,l.jsx)("div",{className:" ".concat(a().valid_error," "),children:j.error}),(0,l.jsx)("div",{className:"".concat(a().footer_actions),children:(0,l.jsx)("button",{type:"submit",className:"".concat(a().btn),children:p.Xo[n].Continue})})]})]})})]})},f=o(31615),m=!0;function h(e){let{seodata:t}=e;return(0,l.jsxs)(l.Fragment,{children:[t&&(0,l.jsx)(f.Z,{seodata:t}),(0,l.jsx)(_,{})]})}},47478:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",tablet_logo:"create-your-name_tablet_logo__lhJvX",profile_page:"create-your-name_profile_page__LwIxz",create_profile_page:"create-your-name_create_profile_page__w9vqA",sub_text:"create-your-name_sub_text__9YFdp",valid_error:"create-your-name_valid_error__biYWl",footer_actions:"create-your-name_footer_actions__Akcyv",btn:"create-your-name_btn__vT_8L"}}},function(e){e.O(0,[5928,2920,8271,7303,9774,2888,179],function(){return e(e.s=23574)}),_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.