1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,71575,30617,e=>{"use strict";e.i(47167);var t,r,s,i,n=e.i(85149),a=e.i(55855),l=e.i(17137),o=((t={}).SUCCESS="0",t.SUCCESS_WITH_PACKAGE="1",t.EXISTING_CUSTOMER="-1",t.GENERAL_ERROR="-2",t.LEAD_SUBMITTED="3",t.SESSION_EXPIRED="-5",t.SPAM_DETECTED="20",t),c=((r={}).SUCCESS="200",r.DEVICE_RELINK="226",r.UNABLE_TO_SWITCH="304",r.DEVICE_LOCKED="409",r.SUBSCRIPTION_EXPIRED="419",r.EMAIL_NOT_REGISTERED="-1",r);function d(e){return"200"===e||"226"===e||"304"===e||"409"===e||"419"===e}var u=((s={}).SUCCESS="1",s.SUCCESS_ALT="2",s.LEAD_SUBMITTED="3",s.INVALID_OTP="-1",s.GENERAL_ERROR="-2",s.OTP_EXPIRED="-3",s.SPAM_DETECTED="20",s.SESSION_EXPIRED="440",s),p=((i={}).INVALID_DATA="-1",i.GENERAL_ERROR="-2",i.LEAD_SUBMITTED="3",i.SPAM_DETECTED="20",i.SESSION_EXPIRED="440",i);function m(){return"localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname}function x(e){try{let t=JSON.parse(e);if(t.d){let e=t.d;return"string"==typeof e&&e.startsWith('"')&&e.endsWith('"')&&(e=JSON.parse(e)),e}}catch{let t=e.match(/<string[^>]*>([^<]+)<\/string>/i);if(t&&t[1]){let e=t[1].trim();if(e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1)),e=e.replace(/\\"/g,'"'))return e}}throw Error("Unable to extract value from API response")}e.s(["RESEND_ERROR_MESSAGES",0,{0:"",1:"","-1":"An error occurred. Please try again.","-2":"Failed to resend code. Please try again.",3:"","-5":"Your session has expired. Please refresh the page.",20:"Too many attempts. Please try again later."},"SAVEPROFILE_ERROR_MESSAGES",0,{"-1":"Invalid data. Please check your information.","-2":"An error occurred. Please try again.",3:"",20:"Too many attempts. Please try again later.",440:"Your session has expired. Please refresh the page."},"SIGNUP_ERROR_MESSAGES",0,{0:"",1:"","-1":"You already have an account. Please login.","-2":"An error occurred. Please try again.",3:"","-5":"Your session has expired. Please refresh the page.",20:"Too many attempts. Please try again later."},"SaveProfileNextStep",()=>p,"SignupNextStep",()=>o,"TvKeySigninResult",()=>c,"VALIDATE_ERROR_MESSAGES",0,{1:"",2:"",3:"","-1":"error_invalid_code","-2":"error_general","-3":"error_expired_code",20:"error_attempts_reached",440:"error_session_expired"},"ValidateNextStep",()=>u,"isTvKeySigninResult",()=>d],30617);let f=null,h=0,S=null;async function g(){let e=Date.now();return f&&e-h<3e5?(a.DEBUG,f):S?(a.DEBUG,S):S=(async()=>{try{if(m()){let e=await fetch("/apidata/encryption-credentials");if(!e.ok)throw Error(`Failed to fetch encryption credentials via proxy: ${e.status}`);let{key:t,iv:r}=await e.json();if(!t||!r)throw Error("Invalid encryption credentials response: missing key or IV");return f={key:t,iv:r},h=Date.now(),{key:t,iv:r}}let e="https://www.osn.com".replace(/\/$/,""),t=`${e}/CMSPages/SubscriptionProcess.asmx/k`,r=`${e}/CMSPages/SubscriptionProcess.asmx/i`,[s,i]=await Promise.all([fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})})]);if(!s.ok)throw Error(`Failed to fetch encryption key: ${s.status} ${s.statusText}`);if(!i.ok)throw Error(`Failed to fetch encryption IV: ${i.status} ${i.statusText}`);let n=await s.text(),a=await i.text(),l=x(n).trim(),o=x(a).trim();if(!l||!o)throw Error("Invalid encryption credentials response: missing key or IV");return f={key:l,iv:o},h=Date.now(),{key:l,iv:o}}finally{S=null}})()}async function y(e,t,r,s){let i,n,{key:o,iv:c}=await g(),d=t?(i=l.default.enc.Utf8.parse(o.trim()),n=l.default.enc.Utf8.parse(c.trim()),l.default.AES.encrypt(t,i,{iv:n,mode:l.default.mode.CBC,padding:l.default.pad.Pkcs7}).toString()):"";t&&a.DEBUG&&console.error(`MICROSTEPS: [${s||"API"}] POST Request:`,JSON.parse(t));let u=new AbortController,p=setTimeout(()=>u.abort(),r);try{let t,r=function(e){let t=e.match(/\/subscriptionprocess\.asmx\/([^/?]+)/i);if(t&&t[1])return t[1].toLowerCase();let r=e.split("/"),s=r[r.length-1];return s?s.split("?")[0].toLowerCase():""}(e),i=m()&&r?`/apidata/subscription/${r}`:e,n=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({encryptedData:d}),signal:u.signal,credentials:"include"});if(clearTimeout(p),!n.ok)throw Error(`HTTP error! status: ${n.status}`);let x=await n.json();if(void 0===x.d||null===x.d)throw Error("Invalid API response: missing data field");if("string"!=typeof x.d)return a.DEBUG&&console.error(`MICROSTEPS: [${s||"API"}] Response:`,x.d),x.d;try{t=function(e,t,r){let s=l.default.enc.Utf8.parse(t.trim()),i=l.default.enc.Utf8.parse(r.trim()),n=l.default.AES.decrypt(e,s,{iv:i,mode:l.default.mode.CBC,padding:l.default.pad.Pkcs7});if(n.sigBytes<0)throw Error("Decryption failed: sigBytes < 0");let a=n.toString(l.default.enc.Utf8);if(!a||!a.trim())throw Error("Decryption resulted in empty string");return a}(x.d,o,c)}catch(e){try{let t=JSON.parse(x.d);return console.error(`[${s||"API"}][debug] Decryption failed, but response appears to be plain JSON. Using as-is.`,e),console.error(`[${s||"API"}] Response (plain JSON):`,t),t}catch(t){throw Error(`Decryption failed: ${e instanceof Error?e.message:"Unknown error"}`)}}let f=JSON.parse(t);return a.DEBUG&&console.error(`MICROSTEPS: [${s||"API"}] Response:`,f),f}catch(e){if(clearTimeout(p),e instanceof Error){if("AbortError"===e.name)throw Error("Request timeout. Please try again.");throw e}throw Error("An unexpected error occurred. Please try again.")}}async function v(e,t,r,s,i,a){return y(n.SUBSCRIPTION_API.SIGNUP_URL,JSON.stringify({em:e,mb:"",pk:r||"",vc:a||"",mc:t?"true":"false",l:s||"",c:i||""}),n.SUBSCRIPTION_API.TIMEOUT,"signup2")}async function w(e,t,r,s,i,a){return y(n.SUBSCRIPTION_API.SIGNIN_URL,JSON.stringify({em:e,mb:"",pk:r||"",vc:a||"",mc:t?"true":"false",l:s||"",c:i||""}),n.SUBSCRIPTION_API.TIMEOUT,"signin")}function N(e){return e.NextStep===o.SUCCESS||e.NextStep===o.SUCCESS_WITH_PACKAGE}function E(e){return e.NextStep===o.LEAD_SUBMITTED||"4"===e.NextStep}async function _(e){return y(n.SUBSCRIPTION_API.VALIDATE_URL,JSON.stringify({o:e}),n.SUBSCRIPTION_API.TIMEOUT,"validate")}function C(e){return!!(e.NextStep===u.SUCCESS||e.NextStep===u.SUCCESS_ALT||"string"==typeof e.NextStep&&e.NextStep.startsWith("/"))}function T(e){return e.NextStep===u.LEAD_SUBMITTED||"4"===e.NextStep}async function b({language:e,country:t}){return y(n.SUBSCRIPTION_API.GETLISTS_URL,JSON.stringify({l:e||"",c:t||""}),n.SUBSCRIPTION_API.TIMEOUT,"getlists")}async function j(e,t,r,s,i){let a={f:e,l:t,d:r,m:s.replace(/\s/g,"").replace(/^0/,""),c:i};return y(n.SUBSCRIPTION_API.SAVEPROFILE_URL,JSON.stringify(a),n.SUBSCRIPTION_API.TIMEOUT,"saveprofile")}function I(e){return e.NextStep===p.LEAD_SUBMITTED||"4"===e.NextStep}
1function L(e){return![p.INVALID_DATA,p.GENERAL_ERROR,p.LEAD_SUBMITTED,"4",p.SPAM_DETECTED,p.SESSION_EXPIRED].includes(e.NextStep)}async function P(){return y(n.SUBSCRIPTION_API.RESEND_URL,null,n.SUBSCRIPTION_API.TIMEOUT)}function k(e){return e.NextStep===o.SUCCESS}async function R(e,t,r){let s=await y(e,JSON.stringify(t),n.SUBSCRIPTION_API.TIMEOUT,r);return"boolean"!=typeof s||s}async function O(e,t){return R(n.SUBSCRIPTION_API.INITSIGNUP_URL,{language:t,countryiso:e},"initsignup")}async function A(e,t){return R(n.SUBSCRIPTION_API.INITSIGNIN_URL,{language:t,countryiso:e},"initsignin")}async function U(e,t,r){return R(n.SUBSCRIPTION_API.INITPARTNER_URL,{language:t,countryiso:e,landingpage:r},"initpartner")}async function M(e,t){return R(n.SUBSCRIPTION_API.INITPRELOADED_URL,{language:t,countryiso:e,decsrn:"1",decntlc:"1"},"initpreloaded")}async function D(e,t){return R(n.SUBSCRIPTION_API.INITVOUCHER_URL,{language:t,countryiso:e},"initvoucher")}async function B(e){let t=await y(n.SUBSCRIPTION_API.VERIFYTVKEY_URL,JSON.stringify({serialnumber:e}),n.SUBSCRIPTION_API.TIMEOUT,"verifytvkey"),r=String(t.NextStep),s="0"===r||"1"===r;return{success:s,errorCode:s?null:parseInt(r,10)||null,message:t.Message||null,raw:t}}async function F(){let e=await y(n.SUBSCRIPTION_API.RELINKTVKEY_URL,null,
1n.SUBSCRIPTION_API.TIMEOUT,"relinkTvKey"),t=String(e.NextStep),r="0"===t||"1"===t||"200"===t;return{success:r,errorCode:r?null:parseInt(t,10)||null,message:e.Message||null,raw:e}}async function W(e){return y(n.SUBSCRIPTION_API.SN_URL,JSON.stringify({serialNumber:e}),n.SUBSCRIPTION_API.TIMEOUT,"sn")}async function G(e,t,r){return R(n.SUBSCRIPTION_API.INITLEAD_URL,{language:t,countryiso:e,landingpage:r},"initlead")}async function V(e,t,r){return R(n.SUBSCRIPTION_API.INITBIN_URL,{language:t,countryiso:e,landingpage:r},"initbin")}async function K(e){return y(n.SUBSCRIPTION_API.APPLY_URL,JSON.stringify({key:e}),n.SUBSCRIPTION_API.TIMEOUT,"apply")}e.s(["applyVoucher",()=>K,"getLists",()=>b,"initBin",()=>V,"initLead",()=>G,"initPartner",()=>U,"initPreloaded",()=>M,"initSignin",()=>A,"initSignup",()=>O,"initVoucher",()=>D,"isResendSuccess",()=>k,"isSaveProfileLeadSubmitted",()=>I,"isSaveProfileSuccess",()=>L,"isSignupLeadSubmitted",()=>E,"isSignupSuccess",()=>N,"isValidateLeadSubmitted",()=>T,"isValidateSuccess",()=>C,"relinkTvKey",()=>F,"resendOtp",()=>P,"saveProfile",()=>j,"submitSignup",()=>v,"submitTvSignin",()=>w,"validateOtp",()=>_,"verifySerialNumber",()=>W,"verifyTvKey",()=>B],71575)},2823,37712,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(85149);let i=(0,r.createContext)(void 0),n={type:"lead-thanks"};function a({children:e,steps:a,initialFormData:l={},onComplete:o,onClose:c}){let[d,u]=(0,r.useState)(0),[p,m]=(0,r.useState)(l),[x,f]=(0,r.useState)(!1),[h,S]=(0,r.useState)(a);(0,r.useEffect)(()=>{S(a)},[a]),(0,r.useEffect)(()=>{Object.keys(l).length>0&&m(l)},[l]);let g=(0,r.useCallback)(()=>{d<h.length-1?u(e=>e+1):(f(!0),o?.(p))},[d,h.length,p,o]),y=(0,r.useCallback)(()=>{S([...h.slice(0,d+1),n]),u(e=>e+1)},[d,h]),v=(0,r.useCallback)(e=>{u(e)},[d,h]),w=(0,r.useCallback)(e=>{m(t=>({...t,...e}))},[]),N=(0,r.useCallback)(()=>{u(0),m({}),f(!1)},[]),E=(0,r.useCallback)(()=>{c?.(),setTimeout(()=>{N()},s.MULTI_STEP_FLOW.RESET_FLOW_DELAY)},[c,N]),_=(0,r.useCallback)(()=>h[d],[h,d]),C={currentStep:d,totalSteps:h.length,formData:p,isCompleted:x,steps:h,goToNextStep:g,goToLeadThanks:y,goToStep:v,updateFormData:w,resetFlow:N,closeFlow:E,getCurrentStepConfig:_};return(0,t.jsx)(i.Provider,{value:C,children:e})}function l(){let e=(0,r.useContext)(i);if(!e)throw Error("useMultiStepFlow must be used within MultiStepFlowProvider");return e}e.s(["MultiStepFlowProvider",()=>a,"useMultiStepFlow",()=>l],2823);var o=e.i(55855),c=e.i(18566),d=e.i(18236),u=e.i(1961),p=e.i(71162),m=e.i(915),x=e.i(30632),f=e.i(50693),h=e.i(71575),S=e.i(30617),g=e.i(11830),y=e.i(75206),v=e.i(72263);function w({length:e=s.MULTI_STEP_FLOW.OTP_LENGTH,value:i,onChange:n,onComplete:a}){let l=(0,r.useRef)([]);l.current.length!==e&&(l.current=Array(e).fill(null)),(0,r.useEffect)(()=>{let e=setTimeout(()=>{let e=l.current[0];e&&e.focus()},150);return()=>clearTimeout(e)},[]);let o=t=>{t.preventDefault();let r=t.clipboardData.getData("text").slice(0,e);if(!/^\d+$/.test(r))return;let s=[...i];r.split("").forEach((t,r)=>{r<e&&(s[r]=t)}),n(s);let o=Math.min(r.length,e-1);l.current[o]?.focus(),a&&s.every(e=>""!==e)&&a(s.join(""))};return(0,t.jsx)("div",{dir:"ltr",className:"flex justify-center items-center gap-3",children:i.map((r,s)=>(0,t.jsx)("div",{className:`px-3.5 py-4 rounded-xl shadow-[0px_0px_0px_3px_rgba(30,25,52,1.00)] outline outline-1 outline-offset-[-1px] inline-flex flex-col justify-center items-center gap-2.5 overflow-hidden transition-all ${r?"bg-white/10 outline-white":"bg-white/5 outline-white/10"}`,children:(0,t.jsx)("input",{ref:e=>{l.current[s]=e},type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:0===s?"one-time-code":"off",maxLength:1,value:r,onChange:t=>((t,r)=>{if(!/^\d*$/.test(r))return;let s=[...i];s[t]=r.slice(-1),n(s),r&&t<e-1&&l.current[t+1]?.focus(),a&&s.every(e=>""!==e)&&a(s.join(""))})(s,t.target.value),onKeyDown:e=>((e,t)=>{if("Backspace"===t.key){if(i[e]){let t=[...i];t[e]="",n(t)}else if(e>0){let t=[...i];t[e-1]="",n(t),l.current[e-1]?.focus()}}})(s,e),onPaste:0===s?o:void 0,onFocus:e=>e.target.select(),className:"w-5 h-5 text-center text-white text-2xl font-normal font-sans bg-transparent outline-none caret-white","aria-label":`Digit ${s+1}`})},s))})}var N=e.i(75157),E=e.i(73548);
1let _=(0,e.i(75254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function C(){return(0,t.jsxs)("svg",{width:"57",height:"58",viewBox:"0 0 57 58",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M28.5005 35.1362C30.0003 35.1362 31.2276 33.9089 31.2276 32.4091V16.7271C31.2276 15.2273 30.0003 14 28.5005 14C27.0007 14 25.7734 15.2273 25.7734 16.7271V32.4091C25.7734 33.9089 27.0007 35.1362 28.5005 35.1362Z",fill:"white"}),(0,t.jsx)("path",{d:"M31.9112 41.4717C31.9112 43.3545 30.3848 44.8809 28.502 44.8809C26.6191 44.8809 25.0928 43.3545 25.0928 41.4717C25.0928 39.5889 26.6191 38.0625 28.502 38.0625C30.3848 38.0625 31.9112 39.5889 31.9112 41.4717Z",fill:"white"}),(0,t.jsx)("path",{d:"M55.5724 28.9961C55.5724 43.9472 43.4521 56.0675 28.501 56.0675C13.5498 56.0675 1.42955 43.9472 1.42955 28.9961C1.42955 14.045 13.5498 1.92467 28.501 1.92467C43.4521 1.92467 55.5724 14.045 55.5724 28.9961Z",stroke:"white",strokeWidth:"2.85714"})]})}function T({ctaLabel:e,qrLabel:r}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"md:hidden w-full",children:(0,t.jsx)("a",{href:"https://osntv.to/myOSNtv",target:"_blank",rel:"noopener noreferrer",className:"block w-full h-[56px] rounded-[18px] tw-gradient-primary tw-gradient-btn-glow flex justify-center items-center text-white text-base font-semibold font-sans hover:opacity-90 transition-opacity",children:e})}),(0,t.jsxs)("div",{className:"hidden md:flex items-center gap-4 w-full justify-center",children:[(0,t.jsx)("img",{src:"https://www.osn.com/osn/media/OSNMedia/osntv/images/landing-pages/myosn-app/qr-code.png?v=13",alt:"myOSNtv QR code",className:"w-[78px] h-[78px] rounded"}),(0,t.jsx)("p",{className:"text-white text-xl font-semibold leading-snug max-w-[220px]",children:r})]})]})}let b={"email-input":function({title:e,subtitle:i,hideVoucher:n=!1,isSignin:a=!1}){let{goToNextStep:v,goToLeadThanks:w,goToStep:N,updateFormData:E,formData:_}=l(),C=n||!0===_.hideVoucher,T=a||!0===_.isSignin,b=(0,c.usePathname)(),{locale:j}=(0,u.useLocale)(),I=(0,d.useLocalization)(),L=e||I("popup_email_screen_title"),P=i||I("popup_email_screen_subtitle"),[k,R]=(0,r.useState)(""),[O,A]=(0,r.useState)(!0),[U,M]=(0,r.useState)(""),[D,B]=(0,r.useState)(!1),[F,W]=(0,r.useState)(""),[G,V]=(0,r.useState)(!1),[K,$]=(0,r.useState)(!1),[z,J]=(0,r.useState)(!1),[X,Y]=(0,r.useState)(""),[H,Z]=(0,r.useState)(""),q="string"==typeof _.packageId?_.packageId:void 0;"string"==typeof _.packageName&&_.packageName;let Q=g.LocaleDetector.getLocaleFromPath(b),ee=(0,g.langFromLocale)(Q),et=(0,g.countryFromLocale)(Q),er=async()=>{if(!F.trim())return;J(!0),Y(""),Z("");let e=j.startsWith("ar");try{let t=await (0,h.applyVoucher)(F.trim());if("0"===t.NextStep){$(!0);let r=t.Message?.match(/(\d+)/),s=r?r[1]:"1",i=e?`Ù
برÙÙ! ÙÙ
ÙÙÙ Ø§ÙØ¢Ù Ø§ÙØ§Ø³ØªÙ
تاع ب٠${s} Ø´ÙØ±Ø§Ù Ù
Ø¬Ø§ÙØ§Ù Ù
ع OSNtv.`:`Congrats! Enjoy ${s} month(s) free with OSNtv.`;Z(i)}else Y(e?"رÙ
ز اÙÙØ³ÙÙ
Ø© ØºÙØ± صØÙØ":"Voucher code is not valid")}catch(e){Y(e instanceof Error?e.message:"Failed to apply voucher")}finally{J(!1)}},es=async()=>{let e=(0,f.validateEmail)(k,I);if(!e.isValid){M(e.error),y.clevertap.trackErrorReceived(j,e.error,"email");return}if(M(""),B(!0),s.MULTI_STEP_FLOW.DESIGN_TEST_MODE){E({email:k,marketingConsent:O,selectedCountry:s.MULTI_STEP_FLOW.MOCK_DATA.selectedCountry,cityList:s.MULTI_STEP_FLOW.MOCK_DATA.cityList,countryList:s.MULTI_STEP_FLOW.MOCK_DATA.countryList}),B(!1),v();return}try{let e=K?F.trim():void 0;o.DEBUG;let t=b.endsWith("/tvkey-signin"),r="string"==typeof _.tvKeyCode&&_.tvKeyCode.length>0&&t?(console.log("MICROSTEPS EmailInputStep - submitTvSignin"),await (0,h.submitTvSignin)(k,O,q,ee,et,e)):(console.log("MICROSTEPS EmailInputStep - submitSignup"),await (0,h.submitSignup)(k,O,q,ee,et,e)),s=r.NextStep?.startsWith("/");if(t&&r.NextStep===S.TvKeySigninResult.EMAIL_NOT_REGISTERED){M(I("error_email_address_is_not_registered")),B(!1);return}if(s){window.location.href=r.NextStep;return}if((0,h.isSignupLeadSubmitted)(r)){E({email:k,marketingConsent:O}),w();return}if(o.DEBUG,(0,h.isSignupSuccess)(r)){E({email:k,marketingConsent:O});try{let e=await (0,h.getLists)({language:ee,country:et});E({selectedCountry:e.SelectedCountry,cityList:e.CityList,countryList:e.CountryList})}catch(e){console.error("Failed to fetch lists:",e)}v()}else if(T)E({email:k,marketingConsent:O,tvkeyResultCode:String(r.NextStep),tvkeyNextOffMessage:r.Message}),N(2);else{let e=S.SIGNUP_ERROR_MESSAGES[r.NextStep],t=e||r.Message||`Error (code: ${r.NextStep}). Please try again.`;console.error("MICROSTEPS EmailInputStep signup failed:",{nextStep:r.NextStep,message:r.Message,mapped:e,raw:r}),M(t),y.clevertap.trackErrorReceived(j,t,"email")}}catch(t){let e=t instanceof Error?t.message:"An unexpected error occurred.";console.error("MICROSTEPS EmailInputStep signup threw:",t),M(e),y.clevertap.trackErrorReceived(j,e,"email")}finally{B(!1)}};return(0,t.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-2 mb-6 px-6 md:px-0",children:[(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:L}),(0,t.jsx)("p",{className:"text-center tw-heading-4-regular",children:P})]}),"string"==typeof _.tvKeyCode&&_.tvKeyCode.length>0&&(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-6 md:mb-10 px-6 md:px-0",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,
1className:"flex-shrink-0",children:(0,t.jsx)("path",{d:"M19.9044 10.6679L18.7237 8.79625L19.423 6.69545C19.5186 6.41005 19.3998 6.09486 19.1393 5.94546L17.2299 4.83706L16.8803 2.65006C16.8309 2.35137 16.5802 2.12907 16.2834 2.11577L14.0805 2.02947L12.7614 0.257271C12.58 0.0150718 12.2568 -0.0645277 11.9864 0.0648718L9.99789 1.01397L8.00929 0.0614714C7.73889 -0.0678282 7.41569 0.0117713 7.23429 0.253971L5.9152 2.02617L3.7156 2.11247C3.4155 2.12577 3.16491 2.34807 3.11871 2.64676L2.76911 4.83376L0.859712 5.94216C0.599212 6.09156 0.480513 6.40675 0.576113 6.69215L1.27531 8.79285L0.0979137 10.6646C-0.0636856 10.9201 -0.0207856 11.252 0.193614 11.4644L1.78311 12.9976L1.60501 15.2045C1.58191 15.5065 1.76991 15.782 2.05681 15.8682L4.1707 16.4822L5.0314 18.5232C5.1501 18.8019 5.4436 18.9612 5.7371 18.8982L7.89389 18.4534L9.59549 19.8572C9.71089 19.9501 9.85269 19.9999 9.99449 19.9999C10.1363 19.9999 10.2781 19.9501 10.3936 19.8572L12.0952 18.4534L14.252 18.8982C14.5455 18.9612 14.8423 18.8019 14.9577 18.5232L15.8185 16.4822L17.9323 15.8682C18.2192 15.7853 18.4105 15.5065 18.3841 15.2045L18.2061 12.9976L19.7955 11.4644C20.0232 11.2553 20.0627 10.9235 19.9044 10.6679ZM14.5587 7.61145L10.1397 14.2719C9.97149 14.5208 9.71429 14.6867 9.45699 14.6867C9.19979 14.6867 8.91289 14.5407 8.73149 14.3582L5.4898 11.0429C5.2689 10.8172 5.2689 10.4489 5.4898 10.2232L6.2912 9.40355C6.5121 9.18115 6.8716 9.18115 7.09249 9.40355L9.20309 11.5606L12.6822 6.31055C12.857 6.04506 13.2132 5.97866 13.4704 6.15785L14.4103 6.80835C14.6675 6.98755 14.7335 7.34925 14.5587 7.61145Z",fill:"#00A95F"})}),(0,t.jsx)("p",{className:"text-white text-sm font-medium font-sans",children:j.startsWith("ar")?"تÙ
Ø§ÙØ±Ø¨Ø· Ø¨Ø§ÙØªÙÙØ²ÙÙÙ Ø¨ÙØ¬Ø§Ø":"TV paired Successfully"})]}),(0,t.jsxs)("div",{className:"w-full max-w-[456px] px-6 md:px-0 flex flex-col justify-start items-start gap-6",children:[(0,t.jsx)(x.FloatingLabelInput,{type:"email",label:I("field_email_placeholder"),value:k,onChange:e=>{R(e.target.value),M("")},onKeyPress:e=>{"Enter"===e.key&&es()},error:U}),U&&(0,t.jsxs)("div",{className:"flex items-start gap-2 -mt-2",children:[(0,t.jsx)(m.ErrorIcon,{size:"sm",className:"mt-0.5"}),(0,t.jsx)("p",{className:"text-red-400 text-sm font-normal font-sans",children:U})]}),!C&&(0,t.jsx)("div",{className:"w-full",children:K?(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-green-400 text-sm",children:["â ",H]}),(0,t.jsx)("button",{type:"button",onClick:()=>{$(!1),W(""),Y(""),Z("")},className:"text-white/40 hover:text-white text-xs underline",children:j.startsWith("ar")?"ØØ°Ù":"Remove"})]})}):(0,t.jsxs)(t.Fragment,{children:[!G&&(0,t.jsx)("button",{type:"button",onClick:()=>V(!0),className:"h-12 w-full px-8 rounded-xl border-2 border-white/10 bg-white/5 text-white/70 hover:text-white hover:border-white/20 text-sm font-semibold font-sans transition-all duration-200",children:j.startsWith("ar")?"ÙÙ ÙØ¯ÙÙ ÙØ³ÙÙ
Ø©Ø ÙØ¹ÙÙÙØ§ ÙÙØ§":"Have a voucher? redeem here"}),G&&(0,t.jsxs)("div",{className:"w-full mt-3",children:[(0,t.jsxs)("div",{className:"hidden md:flex h-16 ps-4 pe-2 py-2 rounded-[18px] outline outlinex`-1 outline-offset-[-1px] outline-white/10 bg-white/5 items-center gap-2 transition-all duration-200",children:[(0,t.jsx)("div",{className:"flex-1 pe-4 py-2.5",children:(0,t.jsx)("input",{type:"text",value:F,onChange:e=>{W(e.target.value),Y("")},placeholder:j.startsWith("ar")?"ادخ٠رÙ
ز Ø§ÙØ¹Ø±Ø¶":"Enter voucher code",className:"w-full bg-transparent border-none outline-none text-white placeholder:text-white/30 text-base font-normal font-sans leading-snug"})}),(0,t.jsx)("button",{type:"button",disabled:!F.trim()||z,onClick:er,className:"h-12 px-6 rounded-2xl tw-gradient-primary tw-gradient-btn-glow flex justify-center items-center transition-all duration-200 hover:opacity-90 active:scale-[0.98] whitespace-nowrap disabled:opacity-50 disabled:cursor-not-allowed",children:(0,t.jsx)("span",{className:"text-white text-base font-semibold font-sans",children:z?"...":j.startsWith("ar")?"تطبÙÙ":"Apply"})})]}),(0,t.jsxs)("div",{className:"md:hidden w-full flex flex-col gap-3",children:[(0,t.jsx)("input",{type:"text",value:F,onChange:e=>{W(e.target.value),Y("")},placeholder:j.startsWith("ar")?"ادخ٠رÙ
ز Ø§ÙØ¹Ø±Ø¶":"Enter voucher co
1de",className:"w-full h-[60px] px-4 rounded-[18px] border border-white/10 text-white placeholder:text-white/40 outline-none transition-all bg-white/5 focus:ring-1 focus:ring-white text-base font-normal font-sans"}),(0,t.jsx)("button",{type:"button",disabled:!F.trim()||z,onClick:er,className:"w-full h-12 rounded-2xl tw-gradient-primary tw-gradient-btn-glow flex justify-center items-center transition-all duration-200 hover:opacity-90 active:scale-[0.98] disabled:opacity-50 disabled:cursor-not-allowed",children:(0,t.jsx)("span",{className:"text-white text-base font-semibold font-sans",children:z?"...":j.startsWith("ar")?"تطبÙÙ":"Apply"})})]}),X&&(0,t.jsxs)("div",{className:"flex items-start gap-2 mt-2",children:[(0,t.jsx)(m.ErrorIcon,{size:"sm",className:"mt-0.5"}),(0,t.jsx)("p",{className:"text-red-400 text-sm font-normal font-sans",children:X})]})]})]})}),(0,t.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer group ps-1",children:[(0,t.jsxs)("div",{className:"relative flex items-center justify-center flex-shrink-0",children:[(0,t.jsx)("input",{type:"checkbox",checked:O,onChange:e=>A(e.target.checked),className:"peer sr-only"}),(0,t.jsx)("div",{className:"w-5 h-5 rounded border-2 border-[#938C9D] md:border-white transition-all group-hover:border-[#938C9D]/80 md:group-hover:border-white/80 flex items-center justify-center",children:O&&(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,t.jsx)("path",{d:"M2 7L5.5 10.5L12 4",stroke:"#938C9D",className:"md:stroke-white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,t.jsx)("span",{className:"tw-body-1-muted flex-1 md:text-[15px]",children:I("field_checkbox_marketing_message")})]}),(0,t.jsx)("p",{className:"tw-body-1-muted text-xs leading-relaxed text-center w-full [&_a]:text-white [&_a]:underline [&_a:hover]:opacity-80 [&_a]:pointer-events-auto [&_a]:relative [&_a]:z-10",children:(()=>{let e=I.html("label_by_proceeding_terms");if(!e||"label_by_proceeding_terms"===e)return null;let r=e.replaceAll("{0}",j).replace(/<a /g,'<a target="_blank" rel="noopener noreferrer" ');return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:r}})})()})]}),(0,t.jsx)("div",{className:"w-full flex justify-center px-6 pb-[env(safe-area-inset-bottom)] md:px-0 md:pb-0 md:pt-8 mt-[120px] md:mt-0",children:(0,t.jsx)(p.GradientButton,{onClick:es,disabled:D||""!==F.trim()&&!K,isLoading:D,children:I("button_subscribe_now")})})]})},"welcome-screen":function({logo:e="/osn/webapp/images/osn-logo.svg",title:i="Welcome to OSN Plus",message:n="Get ready to experience premium entertainment",autoAdvance:a=!0,autoAdvanceDelay:o=s.MULTI_STEP_FLOW.AUTO_ADVANCE_DELAY}){let{goToNextStep:c}=l();return(0,r.useEffect)(()=>{if(a){let e=setTimeout(()=>{c()},o);return()=>clearTimeout(e)}},[a,o,c]),(0,t.jsxs)("div",{className:"w-full flex flex-col justify-center items-center gap-8 px-6 md:px-0 py-12",children:[(0,t.jsx)("div",{className:"w-32 h-32 relative rounded-full bg-white/10 flex justify-center items-center",children:(0,t.jsx)("div",{className:"w-20 h-20 relative",children:(0,t.jsxs)("svg",{viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"50",cy:"50",r:"40",fill:"url(#gradient)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#3549E9"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#CF3148"})]})})]})})}),(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:i}),(0,t.jsx)("p",{className:"text-center tw-heading-4-regular",children:n})]}),a&&(0,t.jsx)(v.LoadingDots,{})]})},"email-verification":function({email:e,isSignin:i=!1}){let{goToNextStep:n,goToLeadThanks:a,goToStep:o,updateFormData:c,formData:x,closeFlow:g,steps:v}=l(),N=i||!0===x.isSignin,{locale:E}=(0,u.useLocale)(),_=(0,d.useLocalization)(),C=x.email||e||"[email protected]",T="string"==typeof x.packageName?x.packageName:void 0,b="string"==typeof x.packageAmount?x.packageAmount:void 0,[j,I]=(0,r.useState)(["","","",""]),[L,P]=(0,r.useState)(""),[k,R]=(0,r.useState)(s.MULTI_STEP_FLOW.RESEND_TIMER_DURATION),[O,A]=(0,r.useState)(!1),U=(0,r.useRef)(!1),M=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let t=x.email||e;if(!U.current&&t&&"[email protected]"!==t){let e=T?`Subscribe Now - ${T}`:"Subscribe Now",r={Email:C,Status:"Success"};T&&(r.Amount=b||"NA",r["Payment Plan"]="Monthly"),y.clevertap.trackInteraction(E,"Subscribe CTA Clicked",e,r),setTimeout(()=>{y.clevertap.trackScreen(E,"OTP Screen",{"Screen Name":"Verify your email",Email:t})},2e3),U.current=!0}},[E,x.email,e]),(0,r.useEffect)(()=>
1{if(k>0){let e=setTimeout(()=>R(k-1),1e3);return()=>clearTimeout(e)}},[k]);let D=async e=>{let t=(0,f.validateOtp)(e,s.MULTI_STEP_FLOW.OTP_LENGTH);if(!t.isValid){P(t.error),y.clevertap.trackErrorReceived(E,t.error,"otp");return}if(M.current=!1,P(""),A(!0),s.MULTI_STEP_FLOW.DESIGN_TEST_MODE){c({verificationCode:e}),A(!1),n();return}try{let t=await (0,h.validateOtp)(e);if(N&&(0,S.isTvKeySigninResult)(String(t.NextStep))){let r=String(t.NextStep);if(M.current||(y.clevertap.trackScreen(E,"OTP verify CTA clicked",{Email:C,"OTP STATUS":"CORRECT"}),M.current=!0),"200"===r){let e=x.onSigninSuccess;"function"==typeof e&&e(),g();return}c({verificationCode:e,subscriber:t.Subscriber,tvkeyResultCode:r,tvkeyNextOffMessage:t.NextOffMessage??null}),n();return}if((0,h.isValidateLeadSubmitted)(t)){if(c({verificationCode:e,subscriber:t.Subscriber}),!M.current){let e={Email:C,"OTP STATUS":"CORRECT"};T&&(e["Pack Name"]=T,e.Amount=b||"NA",e["Payment Plan"]="Monthly"),y.clevertap.trackScreen(E,"OTP verify CTA clicked",e),M.current=!0}a();return}if((0,h.isValidateSuccess)(t)){if(c({verificationCode:e,subscriber:t.Subscriber}),!M.current){let e={Email:C,"OTP STATUS":"CORRECT"};T&&(e["Pack Name"]=T,e.Amount=b||"NA",e["Payment Plan"]="Monthly"),y.clevertap.trackScreen(E,"OTP verify CTA clicked",e),M.current=!0}if(t.NextStep?.startsWith("/"))window.location.href=t.NextStep;else{setTimeout(()=>{y.clevertap.trackScreen(E,"Engaged",{Email:C})},1e3);let e=v.findIndex(e=>"signup-form"===e.type);e>=0?o(e):n()}}else{let e=S.VALIDATE_ERROR_MESSAGES[t.NextStep]||"error_general",r=_(e);P(r),y.clevertap.trackErrorReceived(E,r,"otp"),M.current||(M.current=!0)}}catch(t){let e=t instanceof Error?t.message:"An unexpected error occurred.";P(e),y.clevertap.trackErrorReceived(E,e,"otp")}finally{A(!1)}},B=async()=>{if(!(k>0)){I(["","","",""]),P(""),A(!0);try{let e=await (0,h.resendOtp)();if((0,h.isResendSuccess)(e))R(s.MULTI_STEP_FLOW.RESEND_TIMER_DURATION),y.clevertap.trackScreen(E,"OTP Resend",{Success:"Yes"});else{let t=S.RESEND_ERROR_MESSAGES[e.NextStep]||"Failed to resend code. Please try again.";P(t),y.clevertap.trackErrorReceived(E,t,"otp"),y.clevertap.trackScreen(E,"OTP Resend",{Success:"No"})}}catch(t){let e=t instanceof Error?t.message:"Failed to resend code.";P(e),y.clevertap.trackErrorReceived(E,e,"otp"),y.clevertap.trackScreen(E,"OTP Resend",{Success:"No"})}finally{A(!1)}}},F=!j.every(e=>""!==e)||O;return(0,t.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-2 mb-6 px-6 md:px-0",children:[(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:_("popup_otp_screen_title")}),(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-1",children:[(0,t.jsx)("p",{className:"text-center tw-heading-4-regular",children:_("popup_otp_screen_subtitle").replace("{0}","").replace(".","").trim()}),(0,t.jsx)("p",{className:"text-center text-white text-xl font-normal leading-7",children:C})]})]}),"string"==typeof x.tvKeyCode&&x.tvKeyCode.length>0&&(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-6 md:mb-10 px-6 md:px-0",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,className:"flex-shrink-0",children:(0,t.jsx)("path",{d:"M19.9044 10.6679L18.7237 8.79625L19.423 6.69545C19.5186 6.41005 19.3998 6.09486 19.1393 5.94546L17.2299 4.83706L16.8803 2.65006C16.8309 2.35137 16.5802 2.12907 16.2834 2.11577L14.0805 2.02947L12.7614 0.257271C12.58 0.0150718 12.2568 -0.0645277 11.9864 0.0648718L9.99789 1.01397L8.00929 0.0614714C7.73889 -0.0678282 7.41569 0.0117713 7.23429 0.253971L5.9152 2.02617L3.7156 2.11247C3.4155 2.12577 3.16491 2.34807 3.11871 2.64676L2.76911 4.83376L0.859712 5.94216C0.599212 6.09156 0.480513 6.40675 0.576113 6.69215L1.27531 8.79285L0.0979137 10.6646C-0.0636856 10.9201 -0.0207856 11.252 0.193614 11.4644L1.78311 12.9976L1.60501 15.2045C1.58191 15.5065 1.76991 15.782 2.05681 15.8682L4.1707 16.4822L5.0314 18.5232C5.1501 18.8019 5.4436 18.9612 5.7371 18.8982L7.89389 18.4534L9.59549 19.8572C9.71089 19.9501 9.85269 19.9999 9.99449 19.9999C10.1363 19.9999 10.2781 19.9501 10.3936 19.8572L12.0952 18.4534L14.252 18.8982C14.5455 18.9612 14.8423 18.8019 14.9577 18.5232L15.8185 16.4822L17.9323 15.8682C18.2192 15.7853 18.4105 15.5065 18.3841 15.2045L18.2061 12.9976L19.7955 11.4644C20.0232 11.2553 20.0627 10.9235 19.9044 10.6679ZM14.5587 7.61145L10.1397 14.2719C9.97149 14.5208 9.71429 14.6867 9.45699 14.6867C9.19979 14.6867 8.91289 14.5407 8.73149 14.3582L5.4898 11.0429C5.2689 10.8172 5.2689 10.4489 5.4898 10.2232L6.2912 9.40355C6.5121 9.18115 6.8716 9.18115 7.09249 9.40355L9.20309 11.5606L12.6822 6.31055C12.857 6.04506 13.2132 5.97866 13.4704 6.15785L14.4103 6.80835C14.6675 6.98755 14.7335 7.34925 14.5587 7.61145Z",fill:"#00A95F"})}),(0,t.jsx)("p",{className:"text-white text-sm font-medium font-sans",children:E.startsWith("ar")?"تÙ
Ø§ÙØ±Ø¨Ø· Ø¨Ø§ÙØªÙÙØ²ÙÙÙ Ø¨ÙØ¬Ø§Ø":"TV paired Successfully"})]}),(0,t.jsxs)("div",{className:"w-full max-w-[456px] px-6 md:px-0 flex flex-col justify-start items-center gap-6",children:[(0,t.jsx)(w,{value:j,onChange:e=>{I(e),P(""),M.current=!1},onComplete:D,length:s.MULTI_STEP_FLOW.OTP_LENGTH}),L&&(0,t.jsxs)("div",{className:"w-full flex justify-center items-start gap-2",children:[(0,t.jsx)(m.ErrorIcon,{size:"md",className:"mt-0.5 flex-shrink-0"}),(0,t.jsx)("div",{className:"text-[#EF4444] text-sm font-normal font-sans leading-5",children:L})]}),(0,t.jsx)("div",{className:"text-center",children:k>0?(0,t.jsx)("span",{className:"tw-body-1-muted font-semibold",children:_("osntv_otp_resend_timer").replace("{0}",String(k))}):(0,t.jsx)("button",{onClick:B,disabled:O,className:"tw-body-1-modal font-semibold underline hover:opacity-80 transition-opacity disabled:opacity-30 disabled:cursor-not-allowed",children:O?"Sending...":_("osntv_otp_resend_cta")})})]}),(0,t.jsx)("div",{className:"w-full flex justify-center px-6 pb-[env(safe-area-inset-bottom)] md:px-0 md:pb-0 md:pt-8 mt-[120px] md:mt-0",children:(0,t.jsx)(p.GradientButton,{onClick:()=>D(j.join("")),disabled:F,isLoading:O,children:_("button_verify_email")})})]})},"signup-form":function(){let{formData:e,goToNextStep:i,goToLeadThanks:n}=l(),{locale:a}=(0,u.useLocale)(),o=(0,d.useLocalization)(),c=e.subscriber,[g,v]=(0,r.useState)(()=>c?.FirstName&&c?.LastName?`${c.FirstName} ${c.LastName}`:"string"==typeof e.fullName?e.fullName:""),[w,C]=(0,r.useState)(()=>c?.MobileNumber||""),[T,b]=(0,r.useState)(()=>c?.CityName||""),[j,I]=(0,r.useState)(!1),[L,P]=(0,r.useState)({}),[k,R]=(0,r.useState)(!1),[O,A]=(0,r.useState)(!1),U=(0,r.useRef)(null),M=s.MULTI_STEP_FLOW.DESIGN_TEST_MODE?s.MULTI_STEP_FLOW.MOCK_DATA.selectedCountry:e.selectedCountry||"",D=M.split("|")[0]||"+971",B=M.split("|")[1]||"ae",F=M.split("|")[2]||"XX XXX XXXX",W=s.MULTI_STEP_FLOW.DESIGN_TEST_MODE?s.MULTI_STEP_FLOW.MOCK_DATA.cityList:e.cityList||[],G="string"==typeof e.packageName?e.packageName:void 0,V="string"==typeof e.packageAmount?e.packageAmount:void 0;(0,r.useEffect)(()=>{let e=e=>{U.current&&!U.current.contains(e.target)&&I(!1)};if(j)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[j]);let K=async()=>{let t={},r=(0,f.validateFullName)(g,o);r.isValid||(t.fullName=r.error);let l=(0,f.validatePhoneWithFormat)(w,F,o);if(l.isValid||(t.phone=l.error),T||(t.city="Please select your city."),Object.keys(t).length>0)return void P(t);let c={Email:e.email||"","FULL NAME":g,Phone:$(w,D),City:T};if(G&&(c["Pack Name"]=G,c.Amount=V||"NA",c["Payment Plan"]="Monthly"),y.clevertap.trackScreen(a,"Prospect",c),R(!0),P({}),s.MULTI_STEP_FLOW.DESIGN_TEST_MODE){R(!1),i();return}try{let e=await (0,h.saveProfile)(r.firstName,r.lastName,D,w,T);if((0,h.isSaveProfileLeadSubmitted)(e))return void n();if((0,h.isSaveProfileSuccess)(e))window.location.href=e.NextStep;else{let t=S.SAVEPROFILE_ERROR_MESSAGES[e.NextStep],r=t||`Error (code: ${e.NextStep}). Please try again.`;console.error("[SignupFormStep] saveProfile failed:",{nextStep:e.NextStep,mapped:t,raw:e}),P({general:r}),y.clevertap.trackErrorReceived(a,r,"signup"),e.NextStep===S.SaveProfileNextStep.SESSION_EXPIRED&&setTimeout(()=>{window.location.reload()},2e3)}}catch(t){let e=t instanceof Error?t.message:"An unexpected error occurred.";console.error("[SignupFormStep] saveProfile threw:",t),P({general:e}),y.clevertap.trackErrorReceived(a,e,"signup")}finally{R(!1)}},$=(e,t)=>{let r=e.replace(/\s+/g,"").replace(/[^\d]/g,"");return`${t}${r}`};return(0,t.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-2 mb-8 md:mb-16 px-6 md:px-0",children:[(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:o("popup_info_screen_title")}),(0,t.jsx)("p",{className:"text-center tw-heading-4-regular",children:o("popup_info_screen_subtitle")})]}),(0,t.jsxs)("div",{className:"w-full max-w-[456px] px-6 md:px-0 flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)(x.FloatingLabelInput,{type:"text",label:o("field_fullname_placeholder"),value:g,onChange:e=>{v(e.target.value),P({...L,fullName:""})},onBlur:()=>{if(g){let e=(0,f.validateFullName)(g,o);e.isValid?(P({...L,fullName:""}),y.clevertap.pushOnUserLogin({Name:g})):(P({...L,fullName:e.error}),y.clevertap.trackErrorReceived(a,e.error,"signup"))}},error:L.fullName}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-2 text-white/60 text-sm leading-5",children:[(0,t.jsx)(_,{size:24,className:"flex-shrink-0"}),(0,t.jsx)("span",{children:o("field_fullname_example")||"Example: John Doe"})]}),L.fullName&&(0,t.jsxs)("div",{className:"flex items-start gap-2 mt-2",children:[(0,t.jsx)(m.ErrorIcon,{size:"sm",className:"mt-0.5 flex-shrink-0"}),(0,t.jsx)("p",{className:"text-red-400 text-sm font-normal font-sans",children:o("osntv_enterfullname_error")})]})]}),(0,t.jsxs)("div",{dir:"ltr",className:`flex gap-0 items-stretch rounded-xl transition-all ${L.phone?"ring-1 ring-red-500 bg-red-500/10":O?"ring-1 ring-white bg-white/5":"bg-white/5"}
1`,children:[(0,t.jsxs)("div",{className:"h-14 md:h-16 px-4 rounded-l-xl flex items-center justify-center gap-2 border-r border-white/10",children:[(0,t.jsx)("span",{className:`${(0,E.getFlagClassName)(B)} h-[18px] md:h-[33px] shrink-0 rounded-[2px]`,style:{lineHeight:1,display:"inline-block"}}),(0,t.jsx)("span",{className:"tw-body-1-modal text-white/60 whitespace-nowrap",children:D})]}),(0,t.jsx)(x.FloatingLabelInput,{type:"tel",label:o("field_mobile_placeholder"),value:w,onChange:e=>{C((0,f.formatPhoneWithMask)(e.target.value,F)),P({...L,phone:""})},onFocus:()=>A(!0),onBlur:()=>{if(A(!1),w){let e=(0,f.validatePhoneWithFormat)(w,F,o);if(e.isValid){let e=$(w,D);y.clevertap.pushOnUserLogin({Phone:e})}else P({...L,phone:e.error}),y.clevertap.trackErrorReceived(a,e.error,"signup")}},error:L.phone,className:`flex-1 !rounded-l-none !bg-transparent !ring-0 ${"ar"===a?"text-end":""}`})]}),L.phone&&(0,t.jsxs)("div",{className:"flex items-start gap-2 mt-2",children:[(0,t.jsx)(m.ErrorIcon,{size:"sm",className:"mt-0.5 flex-shrink-0"}),(0,t.jsx)("p",{className:"text-red-400 text-sm font-normal font-sans",children:o("osntv_entermobile_error")})]}),(0,t.jsxs)("div",{className:"relative",ref:U,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>I(!j),className:`w-full h-14 md:h-16 px-4 rounded-xl tw-body-1-modal outline-none transition-all flex items-center justify-between ${T?"text-white":"text-white/40"} ${L.city?"bg-red-500/10 ring-1 ring-red-500":j?"bg-white/5 ring-1 ring-white":"bg-white/5 [@media(hover:hover)]:hover:bg-white/10"}`,children:[(0,t.jsx)("span",{children:T||o("field_select_city_palceholder")}),(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:`transition-transform ${j?"rotate-180":""}`,children:(0,t.jsx)("path",{d:"M4 6L8 10L12 6",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),j&&(0,t.jsx)("div",{className:"absolute top-full mt-2 start-0 z-[100] w-full max-h-60 rounded-2xl border border-white/10 shadow-2xl overflow-y-auto",style:N.modalGlassStyle,children:(0,t.jsx)("div",{className:"p-2",children:W.length>0?W.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{b(e),I(!1),P({...L,city:""})},className:`w-full px-3 py-3 flex items-center text-start rounded-lg transition-colors ${T===e?"bg-white/10":"[@media(hover:hover)]:hover:bg-white/5"}`,children:(0,t.jsx)("span",{className:"flex-1 tw-body-1-modal text-sm",children:e})},e)):(0,t.jsx)("div",{className:"px-3 py-3 text-center tw-body-1-muted text-sm",children:"No cities available"})})})]}),L.general&&(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(m.ErrorIcon,{size:"sm",className:"mt-0.5 flex-shrink-0"}),(0,t.jsx)("p",{className:"text-red-400 text-sm font-normal font-sans",children:L.general})]})]}),(0,t.jsx)("div",{className:"w-full flex justify-center px-6 pb-[env(safe-area-inset-bottom)] md:px-0 md:pb-0 md:pt-8 mt-[120px] md:mt-0",children:(0,t.jsx)(p.GradientButton,{onClick:K,disabled:!(()=>{if(!g||!w||!T)return!1;let e=(0,f.validateFullName)(g,o),t=(0,f.validatePhoneWithFormat)(w,F,o);return e.isValid&&t.isValid})()||k,isLoading:k,children:o("button_continue")})})]})},success:function(){let{closeFlow:e}=l();return(0,r.useEffect)(()=>{let t=setTimeout(()=>{e()},s.MULTI_STEP_FLOW.AUTO_CLOSE_DELAY);return()=>clearTimeout(t)},[e]),(0,t.jsxs)("div",{className:"w-full flex flex-col justify-center items-center gap-8",children:[(0,t.jsx)("div",{className:"w-32 h-32 rounded-full bg-green-500/20 flex justify-center items-center",children:(0,t.jsx)("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M16 32L26 42L48 20",stroke:"#10B981",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:"Welcome to OSN Plus!"}),(0,t.jsx)("p",{className:"text-center tw-heading-4-regular",children:"Your subscription is now active"})]}),(0,t.jsx)(v.LoadingDots,{})]})},"lead-thanks":function(){let{locale:e}=(0,u.useLocale)(),r=e.startsWith("ar");return(0,t.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-2 mb-8 md:mb-16 px-6 md:px-0",children:[(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsxs)("svg",{width:"41",height:"36",viewBox:"0 0 41 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M16.6185 14.8225C16.6185 14.8225 18.8151 11.8814 21.9233 7.8194C25.0321 3.75737 27.5904 1.30115 28.3498 0.884181C29.1092 0.467214 29.9403 0.362487 30.6294 0.705273C31.318 1.04757 31.7466 1.7123 31.8547 2.33338C32.6392 1.39327 34.1137 1.1077 35.2456 1.75254C36.378 2.39738 36.8268 3.83204 36.3269 4.68633C36.3269 4.68633 37.3153 4.37603 38.2517 4.90888C39.1875 5.44172 39.5365 6.31493 39.3212 7.57989C39.0956 8.90642 38.2015 10.8497 38.2015 10.8497C38.2015 10.8497 39.2322 10.5762 40.1582 11.2841C41.1142 12.0148 40.8144 13.3917 40.4669 14.6698C40.1199 15.9478 37.8255 22.2673 33.4875 29.1308C28.9868 36.2526 22.0374 36.6832 16.737 33.9225C11.1304 31.0023 9.35947 25.1269 9.53936 19.9842C9.70991 15.128 12.1797 8.56606 13.6292 7.57649C15.0256 6.62377 16.5232 8.49818 16.8038 10.2383C17.1439 12.3454 16.6185 14.8225 16.6185 14.8225Z",fill:"#F3BB85"}),(0,t.jsx)("path",{d:"M7.29363 14.8225C7.29363 14.8225 9.49066 11.8814 12.5994 7.8194C15.7077 3.75737 18.2655 1.30115 19.0249 0.884181C19.7843 0.467214 20.6159 0.362487 21.3045 0.705273C21.9936 1.04757 22.4222 1.7123 22.5303 2.33338C23.3148 1.39327 24.7888 1.1077 25.9207 1.75254C27.0531 2.39738 27.5019 3.83204 27.002 4.68633C27.002 4.68633 27.9909 4.37603 28.9268 4.90888C29.8626 5.44172 30.2116 6.31493 29.9963 7.57989C29.7707 8.90642 28.8766 10.8497 28.8766 10.8497C28.8766 10.8497 29.9073 10.5762 30.8333 11.2841C31.7893 12.0148 31.4895 13.3917 31.1425 14.6698C30.795 15.9478 28.5011 22.2673 24.1636 29.1308C19.6624 36.2526 12.7125 36.6832 7.41208 33.9225C1.80548 31.0023 0.0350713 25.1269 0.215454 19.9842C0.385516 15.128 2.85484 8.56606 4.30429 7.57649C5.70066 6.62377 7.19926 8.49818 7.47991 10.2383C7.81954 12.3454 7.29363 14.8225 7.29363 14.8225Z",fill:"#FFD6AF"}),(0,t.jsx)("path",{d:"M14.3895 14.0094C14.1904 13.8741 15.8502 11.1507 18.0979 7.92649C20.3455 4.70227 22.3293 2.19853 22.5288 2.33332C22.7279 2.46859 21.0671 5.19245 18.8199 8.41667C16.5723 11.6409 14.5885 14.1446 14.3895 14.0094Z",fill:"#F1B47A"}),(0,t.jsx)("path",{d:"M19.4033 16.8652C19.1974 16.7402 20.7313 13.913 22.8301 10.5501C24.9283 7.18726 26.796 4.5628 27.002 4.68789C27.2079 4.81298 25.6734 7.64059 23.5752 11.003C21.477 14.3659 19.6092 16.9903 19.4033 16.8652Z",fill:"#F1B47A"}),(0,t.jsx)("path",{d:"M23.7396 19.8969C23.5283 19.7806 24.5074 17.6613 25.9249 15.1629C27.3429 12.6655 28.663 10.7353 28.8739 10.8517C29.0848 10.968 28.1067 13.0878 26.6887 15.5852C25.2707 18.0831 23.9505 20.0133 23.7396 19.8969Z",fill:"#F1B47A"})]})}),(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:r?"Ù
Ø±ØØ¨Ø§Ù ب٠ضÙ
Ù Ø¹Ø§Ø¦ÙØ© OSNtv!":"Welcome to the OSN Family!"})]}),(0,t.jsx)("div",{className:"w-full max-w-[456px] px-6 md:px-0 flex flex-col justify-start items-center gap-4 text-center",children:(0,t.jsx)("p",{className:"tw-body-1-muted [&_a]:text-white [&_a]:underline [&_a:hover]:opacity-80",dangerouslySetInnerHTML:{__html:r?'ÙØ³Ø¹Ø¯Ùا ÙØ¬Ùد٠ÙÙØ§Ø ÙØ§Ø³ØªÙسار٠ÙÙÙ
ÙØ§ ÙÙØºØ§ÙØ©. Ø³ÙØªÙاص٠Ù
Ø¹Ù ÙØ±ÙÙÙØ§ ÙØ±Ùبا٠ÙÙÙ
ساعدة ÙÙ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯.<br /><br />ÙØ®ÙØ§Ù ÙØ°Ø§ اÙÙÙØªØ ÙÙ
ÙÙÙ Ø§ÙØ§Ø·Ùاع عÙ٠اÙÙ
Ø²ÙØ¯ Ù
٠اÙÙ
عÙÙÙ
ات عÙÙ <a href="https://feedback.osn.com" target="_blank" rel="noopener noreferrer">ØµÙØØ© Ø§ÙØ£Ø³Ø¦ÙØ© اÙÙ
ØªÙØ±Ø±Ø©</a>.':'We’re glad you’re here, Your inquiry is important to us. Our team will get back to you soon to get you set up.<br /><br />Meanwhile, you can check out more info on our <a href="https://feedback.osn.com" target="_blank" rel="noopener noreferrer">FAQ</a> page.'}})}),(0,t.jsx)("div",{className:"w-full md:pt-8 mt-auto md:mt-0 min-h-[56px]"})]})},"tvkey-result":function(){let{formData:e,closeFlow:s,goToStep:i}=l(),n=(0,c.usePathname)(),a=(0,c.useRouter)(),u=(0,d.useLocalization)(),[x,f]=(0,r.useState)(!1),[g,y]=(0,r.useState)(""),[v,w]=(0,r.useState)(null),N="string"==typeof e.tvkeyResultCode?e.tvkeyResultCode:"",E=v??N;o.DEBUG;let _="string"==typeof e.tvkeyNextOffMessage?e.tvkeyNextOffMessage:null;o.DEBUG;let b=async()=>{o.DEBUG,y(""),f(!0);try{let e=await (0,h.relinkTvKey)(),t=String(e.raw?.NextStep??"");if(t===S.TvKeySigninResult.SUCCESS||e.success&&!(0,S.isTvKeySigninResult)(t)){o.DEBUG,i(1);return}if((0,S.isTvKeySigninResult)(t))return void w(t);y(e.message||u("error_general")||"Something went wrong. Please try again.")}catch(e){console.error("MICROSTEPS TvKeyResultStep relink failed:",e),y(e instanceof Error?e.message:"Something went wrong. Please try again.")}finally{f(!1)}};if((0,r.useEffect)(()=>
1{if(E===S.TvKeySigninResult.SUCCESS){let t;o.DEBUG,"function"==typeof(t=e.onSigninSuccess)&&t(),s()}},[E]),E===S.TvKeySigninResult.SUCCESS)return null;if(E===S.TvKeySigninResult.DEVICE_RELINK)return(0,t.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-4 mb-8 md:mb-12 px-6 md:px-0",children:[(0,t.jsx)(C,{}),(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:u("tvkey_result_226_title")||"Device already linked"}),(0,t.jsx)("p",{className:"text-center tw-heading-4-regular max-w-[420px]",children:u("tvkey_result_226_subtitle")||"You already have a TV linked to your account. Do you want to unlink it and link this new device?"})]}),(0,t.jsxs)("div",{className:"w-full max-w-[456px] px-6 md:px-0 flex flex-col items-center gap-4",children:[g&&(0,t.jsxs)("div",{className:"flex items-start gap-2 w-full",children:[(0,t.jsx)(m.ErrorIcon,{size:"sm",className:"mt-0.5"}),(0,t.jsx)("p",{className:"text-red-400 text-sm font-normal font-sans",children:g})]}),(0,t.jsx)(p.GradientButton,{onClick:b,isLoading:x,disabled:x,children:u("tvkey_result_226_cta")||"Link new device and log in"})]})]});if(E===S.TvKeySigninResult.UNABLE_TO_SWITCH)return(0,t.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-4 mb-8 md:mb-12 px-6 md:px-0",children:[(0,t.jsx)(C,{}),(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:u("tvkey_result_304_title")||"Unable to Switch Device"}),(0,t.jsx)("p",{className:"text-center tw-heading-4-regular max-w-[420px]",children:u("tvkey_result_304_subtitle")||"Don't miss out! Renew your subscription via the myOSNtv app."})]}),(0,t.jsx)("div",{className:"w-full max-w-[456px] px-6 md:px-0 flex flex-col items-center gap-6",children:(0,t.jsx)(T,{ctaLabel:u("tvkey_result_download_app_cta")||"Download myOSNtv App",qrLabel:u("tvkey_result_qr_label")||"Scan the QR code to download the app."})}),(0,t.jsx)("div",{className:"w-full md:pt-8 mt-auto md:mt-0 min-h-[56px]"})]});if(E===S.TvKeySigninResult.DEVICE_LOCKED){let e=(u("tvkey_result_409_body")||"You already have a TV linked to your account. To link a new TV, you must wait until the 30-day period is over. You will be able to unlink your current device in {days} days.").replace("{days}",_??"");return(0,t.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-4 mb-8 md:mb-12 px-6 md:px-0",children:[(0,t.jsx)(C,{}),(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:u("tvkey_result_409_title")||"Device already linked"}),(0,t.jsx)("p",{className:"text-center tw-heading-4-regular max-w-[460px]",children:e})]}),(0,t.jsx)("div",{className:"w-full max-w-[456px] px-6 md:px-0 flex flex-col items-center gap-4",children:(0,t.jsx)(p.GradientButton,{onClick:()=>{s(),a.replace(n)},variant:"secondary",children:u("tvkey_result_409_cta")||"Go back"})})]})}return E===S.TvKeySigninResult.SUBSCRIPTION_EXPIRED||E===S.TvKeySigninResult.SUBSCRIPTION_EXPIRED?(0,t.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-4 mb-8 md:mb-12 px-6 md:px-0",children:[(0,t.jsx)(C,{}),(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:u("tvkey_result_419_title")||"Subscription Expired"}),(0,t.jsx)("p",{className:"text-center tw-heading-4-regular max-w-[420px]",children:u("tvkey_result_419_subtitle")||"Don't miss out! Renew your subscription via the myOSNtv app."})]}),(0,t.jsx)("div",{className:"w-full max-w-[456px] px-6 md:px-0 flex flex-col items-center gap-6",children:(0,t.jsx)(T,{ctaLabel:u("tvkey_result_download_app_cta")||"Download myOSNtv App",qrLabel:u("tvkey_result_qr_label")||"Scan the QR code to download the app."})}),(0,t.jsx)("div",{className:"w-full md:pt-8 mt-auto md:mt-0 min-h-[56px]"})]}):(0,t.jsx)("div",{className:"w-full flex flex-col items-center",children:(0,t.jsxs)("div",{className:"flex flex-col justify-start items-center gap-4 mb-8 px-6 md:px-0",children:[(0,t.jsx)(C,{}),(0,t.jsx)("h2",{className:"text-center tw-heading-2-modal",children:u("error_general")||"Something went wrong. Please try again."})]})})}};function j(){let{getCurrentStepConfig:e}=l(),r=e();if(!r)return o.DEBUG,(0,t.jsx)("div",{className:"w-full text-center text-white",children:(0,t.jsx)("p",{children:"No step configuration found"})});let s=b[r.type];return s?(0,t.jsx)(s,{...r.props||{}}):(0,t.jsx)("div",{className:"w-full text-center text-white",children:(0,t.jsxs)("p",{children:["Unknown step type: ",r.type]})})}e.s(["StepRenderer",()=>j],37712)},84722,e=>{"use strict";var t=e.i(43476),r=e.i(71645);function s({children:e,isDesktop:s,isOpen:i,heightThreshold:n=700,fixedScale:a,minScale:l=.5}){let[o,c]=(0,r.useState)(1),[d,u]=(0,r.useState)(!1),p=(0,r.useRef)(null),m=(0,r.useCallback)(()=>
1{if(!i)return void c(1);let e=window.innerHeight;e<n?a?c(Math.max(a,l)):c(Math.max(Math.min(.9*e/750,1),l)):c(1)},[i,n,a,l]);return(0,r.useEffect)(()=>{i||(u(!1),c(1))},[i]),(0,r.useEffect)(()=>{if(!s){c(1),u(!0);return}if(!i)return;let e=setTimeout(()=>{m(),u(!0)},50);return window.addEventListener("resize",m),()=>{clearTimeout(e),window.removeEventListener("resize",m)}},[s,i,m]),(0,t.jsx)("div",{ref:p,style:{transform:s?`scale(${o})`:void 0,transformOrigin:"center",opacity:+!!d},children:e})}e.s(["ScaledModalWrapper",()=>s])},56036,89322,79719,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(54878),i=e.i(46932),n=e.i(88653),a=e.i(2823),l=e.i(37712),o=e.i(75157),c=e.i(84722);function d({isDesktop:e,isOpen:r}){let{closeFlow:s,formData:n}=(0,a.useMultiStepFlow)(),d=!0===n.isHighlighted;return(0,t.jsx)(i.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"relative w-full h-full md:w-auto md:h-auto isTVGuideModal",children:(0,t.jsx)(c.ScaledModalWrapper,{isDesktop:e,isOpen:r,heightThreshold:700,minScale:.5,children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("button",{onClick:s,className:"absolute top-6 end-6 md:-top-4 md:-end-4 z-10 w-6 h-6 md:w-10 md:h-10 rounded-lg md:rounded-3xl flex justify-center items-center hover:opacity-80 md:hover:bg-white/10 transition-all md:border md:border-white/20 md:backdrop-blur-[15px] md:[background:rgba(5,7,41,0.85)] outline-none focus:outline-none","aria-label":"Close",type:"button",children:(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("mask",{id:"mask0_close",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:(0,t.jsx)("path",{d:"M16 16L16 6.99381e-07L9.53674e-07 0L2.54292e-07 16L16 16Z",fill:"white"})}),(0,t.jsxs)("g",{mask:"url(#mask0_close)",children:[(0,t.jsx)("path",{d:"M12.9986 3L8 8L13 13",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M3.00144 3L8 8L3 13",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]})}),(0,t.jsx)("div",{className:e&&d?"md:rounded-3xl md:p-px":void 0,style:e&&d?{background:"linear-gradient(90deg, #6065F8 0%, #DA45A6 100%)"}:void 0,children:(0,t.jsx)("div",{className:"w-full h-full md:w-[696px] md:h-auto pt-16 pb-6 px-0 md:py-12 relative md:rounded-3xl md:shadow-[0px_0px_200px_0px_rgba(0,0,0,0.25)] md:backdrop-blur-lg flex flex-col items-center overflow-y-auto md:overflow-visible md:gap-16",style:e?d?{...o.modalGlassStyle,border:"none"}:o.modalGlassStyle:void 0,children:(0,t.jsx)(l.StepRenderer,{})})})]})})})}function u({isOpen:e,onClose:l,steps:o,initialFormData:c,onComplete:u}){let[p,m]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{m(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,t.jsx)(a.MultiStepFlowProvider,{steps:o,initialFormData:c,onComplete:u,onClose:l,children:(0,t.jsx)(n.AnimatePresence,{mode:"wait",children:e&&(0,t.jsxs)(s.Dialog,{open:e,onClose:()=>{},className:"relative z-[99999999]",static:!0,children:[(0,t.jsx)(i.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"fixed inset-0 backdrop-blur-sm",style:{background:"linear-gradient(180deg, rgba(2, 13, 33, .8) 0%, rgba(2, 7, 15, .8) 100%)"},"aria-hidden":"true"}),(0,t.jsx)("div",{className:"fixed inset-0 flex justify-center items-center md:pointer-events-none",children:(0,t.jsx)("div",{className:"w-full h-full md:w-auto md:h-auto md:pointer-events-auto",children:(0,t.jsx)(d,{isDesktop:p,isOpen:e})})})]})})})}e.s(["MultiStepFlowModal",()=>u],89322),e.s([],55419),e.s([],56036),e.i(55419),e.s(["activateTvFlow",0,[{type:"email-input",props:{hideVoucher:!0,isSignin:!0}},{type:"email-verification",props:{isSignin:!0}},{type:"tvkey-result",props:{}},{type:"signup-form",props:{title:"Basic Info & Location Details"}}],"joinOsnPlusFlow",0,[{type:"email-input",props:{}},{type:"email-verification",props:{}},{type:"signup-form",props:{}}],"joinOsnPlusFlowFromEmail",0,[{type:"email-verification",props:{}},{type:"signup-form",props:{title:"Basic Info & Location Details"}}],"leadThanksFlow",0,[{type:"lead-thanks"}],"signinFlow",0,[{type:"email-input",props:{hideVoucher:!0,isSignin:!0}},{type:"email-verification",props:{isSignin:!0}},{type:"tvkey-result",props:{}}]],79719)}]);
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.