PageSourceSearch

https://mangia.lamanna.com.au/_next/static/chunks/pages/auth/verify-f0df537a53ccf5f5.js

js lamanna.com.au collected 2026-10-10 01:31:42 UTC 11,361 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8090],{412:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/verify",function(){return r(58434)}])},6566:(e,t,r)=>{"use strict";r.d(t,{B9:()=>f,Dn:()=>S,HO:()=>m,J4:()=>c,MH:()=>h,MT:()=>p,N3:()=>y,ST:()=>l,Ts:()=>I,WA:()=>o,_4:()=>s,cb:()=>x,di:()=>d,f6:()=>g,m:()=>a,mA:()=>u,n4:()=>w,rm:()=>b});var i=r(56557),n=r.n(i);let a={MEMBER_ALREADY_EXISTS:"register.unique.identifier.exists",EMAIL_ALREADY_EXISTS:"register.unique.identifier.exists.email",PHONE_ALREADY_EXISTS:"register.unique.identifier.exists.phone",PHONE_AND_EMAIL_ALREADY_EXISTS:"both.email.and.phone.exists",EMAIL_CONFLICT_NO_MERGE:"auth.social.email_conflict_no_merge"},s=e=>{let{registrationConfig:t={}}=e,r=t?.options?.AllowMarketingCommunication,i=t?.options?.AllowEmail,n=t?.options?.AllowSMS,a=t?.options?.Birthday,s=t?.options?.Email,l=t?.options?.PhoneNumber,o=i?.status==="published",u=n?.status==="published",c=r?.status==="published"&&r?.showInRegistrationForm,m=a?.status==="published"&&a?.showInRegistrationForm,d=s?.status==="published"&&s?.showInRegistrationForm,p=l?.status==="published"&&l?.showInRegistrationForm,f=r?.displayName||"",h=n?.displayName||"",g=i?.displayName||"",w=a?.displayName||"",x=r?.defaultValue||!1,y=n?.defaultValue||!1,b=i?.defaultValue||!1,I=t?.formSchema?.required||[];return{allowMarketing:{displayText:f,allow:c,isChecked:x,required:-1!==I.indexOf(r?.typeName||"")},allowSms:{displayText:h,allow:u,isChecked:y,required:-1!==I.indexOf(n?.typeName||"")},allowEmail:{displayText:g,allow:o,isChecked:b,required:-1!==I.indexOf(i?.typeName||"")},allowBirthDay:{displayText:w,allow:m,required:-1!==I.indexOf(a?.typeName||""),disableInUpdateForm:a?.disableInUpdateForm||!1},allowEmailInRegForm:{allow:d,required:-1!==I.indexOf(s?.typeName||"")},allowPhoneNumberInRegForm:{allow:p,required:-1!==I.indexOf(l?.typeName||"")}}},l=({allowSms:e,allowEmail:t,allowMarketing:r})=>e||t||r?"form.consent.text.end":"form.consent.text.with.marketing.communication.end",o=e=>{let t=s(e);return l({allowSms:t.allowSms.allow,allowEmail:t.allowEmail.allow,allowMarketing:t.allowMarketing.allow})},u=(e,t,r,i)=>{let n=!1,a=!1,{allowMarketing:l,allowSms:o,allowEmail:u}=s(e);return l?.allow&&t&&(n=!0,a=!0),u?.allow&&i&&(a=!0),o?.allow&&r&&(n=!0),l?.allow||u?.allow||o?.allow||(n=!0,a=!0),{allowSms:n,allowEmail:a}},c=(e=18)=>n()(new Date).subtract(e,"years").format("YYYY-MM-DD"),m=e=>e?.name==="Birthday"?new Date(c(Number(e?.membershipLegalAge||18))):e?.name==="Anniversary"?new Date(n()(new Date).format("YYYY-MM-DD")):void 0,d=(e,t)=>{for(let[r,i]of Object.entries(e))if(i===t)return r;return null},p=(e,t=!1)=>{let r=(e=>{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r.replace(/_([a-z])/g,function(e,t){return t.toUpperCase()})]=e[r]);return t})(e);for(let e in r)null!==r[e]&&void 0!==r[e]&&""!==r[e]||t||delete r[e],r[e]?.value&&(r[e]=r[e].value),r[e]instanceof Date&&(r[e]=e?.includes("GenericDate")&&t?n()(r[e]).format("DD.MM.YYYY HH:mm:ss"):n()(r[e]).format("DD.MM.YYYY")),e?.includes("GenericCheckBox")&&t&&(r[e]=!!r[e]),e?.includes("GenericInteger")&&t&&(r[e]=Number(r[e])),"PhoneNumber"===e&&r[e]?.includes("+")&&(r[e]=r[e]?.replace("+",""));return r},f=(e,t)=>{if(e.startsWith("register.unique.identifier.exists"))e=t("register.unique.identifier.exists",{identifier:e.substring(e.lastIndexOf(".")+1)});else if(e.startsWith("register.invalid.code")){let r=e.substring(e.lastIndexOf(".")+1);e=t(e.substring(0,e.lastIndexOf(".")),{code:r})}else switch(e){case"register.unique.identifier.exists.email":e=t("register.unique.identifier.exists.email");break;case"register.unique.identifier.exists.phone":e=t("register.unique.identifier.exists.phone");break;default:e=t(e)}return e},h=(e,t=!1,r)=>{let{registrationConfig:i={}}=e,{formSchema:n={},options:a={},order:s=[]}=i,l=s.map(e=>{var i,s;let l,o=(i=a[e],s=r??"en_US",l=i?.translations?.[s],{displayName:l?.displayName||i?.displayName||"",description:l?.description||"",enumLabels:l?.enumLabels||i?.enumLabels||{}}),u={name:e,...n.properties[e],...a[e],...o,isRequired:n.required?.includes(e)??!1,visible:a[e]?.status==="published"&&a[e]?.[t?"showInUpdateForm":"showInRegistrationForm"],disabled:t?a[e]?.disableInUpdateForm??!1:a[e]?.showInRegistrationForm??!1};return n.properties[e]?.minLength&&(u.minLength={value:n.properties[e]?.minLength||0}),n.properties[e]?.maxLength&&(u.maxLength={value:n.properties[e]?.maxLength||1e3}),n.properties[e]?.pattern&&(u.pattern={value:n.properties[e]?.pattern}),u});return l?.filter(e=>e.visible)||[]},g=(e,t)=>{let r=Object.entries(t?.member||{}).reduce((e,[t,r])=>(e[t.toLowerCase()]=r,e),{});return e.reduce((e,t)=>
1{let i=t?.name?.toLowerCase();if(i&&i in r){let n=r[i];null!=n&&""!==n&&0!==n&&(e[t.name]=n)}return e},{})},w=(e,t)=>{let r;if(!t)return"";for(let i=0;i<e.length;i++){let n=e[i];if(t.startsWith(n.phoneNumberPrefix)){r=n;break}}return r},x=(e,t,r,i)=>{let n=e?.temporaryToken||e?.accessToken||"",a=n?{accessToken:n,refreshToken:e?.refreshToken||"",expiresIn:e?.expiresIn||3600}:null;switch(r){case"registrationError":return{errorType:"registrationError",errorCode:t};case"userAlreadyExists":return{errorType:"userAlreadyExists",errorCode:t};case"registrationSuccess":return{errorType:"",errorCode:"",result:"success",flow:i||"register",...a?{credentials:a}:{},actionWhenDone:JSON.stringify({Type:"Action",Content:[{name:"actionsAfterRegistration",params:""}]}),commonExtId:e?.commonExtId||"",member:JSON.stringify(e),legacyToken:e?.legacyToken||""};case"updateProfileSuccess":return{errorType:"",errorCode:"",result:"success",actionWhenDone:JSON.stringify({Type:"Action",Content:[{name:"actionsAfterUpdateProfile",params:""}]}),commonExtId:e?.commonExtId||"",member:JSON.stringify(e)};default:return{errorType:"",errorCode:"",result:"",actionWhenDone:"",commonExtId:"",member:""}}},y=e=>{let{registrationConfig:t={}}=e,r=0,{options:i={}}=t;for(let e in i)(i[e]?.firstCustomLogin||i[e]?.secondCustomLogin)&&r++;return 2===r},b=(e,t,r)=>{let i=h(e,!1,r);return i?.find(e=>e.name===t)||""},I=e=>{let{registrationConfig:t={}}=e;return t?.advanced?.mergeMembers?.active||!1},S=e=>{let{registrationConfig:t={}}=e,{options:r={}}=t;return Object.keys(r).filter(e=>{let t=r[e];return(t?.typeName==="Email"||t?.typeName==="PhoneNumber")&&(t?.loginValidation||t?.firstCustomLogin)})}},19564:(e,t,r)=>{"use strict";r.d(t,{J:()=>u});var i=r(37876),n=r(84014),a=r(54587),s=r.n(a),l=r(59528),o=r(87697);let u=({config:e,fullHeight:t})=>{let r=(0,n.A)(),{isMobile:a}=(0,o.A)(),u=a()?e?.loginScreenMobileImageUrl??e?.loginScreenImageUrl:e?.loginScreenImageUrl;return(0,i.jsx)("div",{className:(0,l.cn)("mx-auto self-top hidden xl:flex md:w-1/2 space-between max-w-1/2 flex-col justify-center",t?"h-[100dvh]":"h-[calc(100dvh-4rem)]"),children:u?(0,i.jsx)(s(),{priority:!0,width:1200,height:1200,className:"w-full h-full",alt:r("login.page.background_Image"),src:u}):(0,i.jsx)("div",{children:"It looks like there is no picture set in the config, do not forget to update the login screen image under Login Screen settings"})})}},58434:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>f,default:()=>h});var i=r(37876),n=r(14232),a=r(31777),s=r(44726),l=r(84014),o=r(13225),u=r(39043),c=r(14e3),m=r(19564),d=r(5561),p=r(73163),f=!0;function h({config:e,csrfToken:t,callbackUrl:r,recaptchaScoreSiteKey:f,recaptchaHumanSiteKey:g}){let w=(0,s.A)(),x=(0,l.A)(),y=(0,c.useSearchParams)(),b="register"===(y?.get("onboardingflow")||""),I=y?.get("callbackUrl")||"",{sourceId:S,confirmationId:E,source:C,tags:N,email:_}=(0,d.Bx)(y??new URLSearchParams,I||void 0),k=y?.get("ReferralCode")||"",v=(0,a.d4)(e=>e.theme),[A,L]=(0,n.useState)({userIdentifier:"",customIdentifier:"",token:""}),T=(0,a.d4)(e=>e.auth),D=(0,a.d4)(e=>e.formHandling.fourDigitCode),O=(0,n.useRef)(null),[M,Y]=(0,n.useState)(!1);(0,n.useEffect)(()=>{Y(!0)},[]),(0,n.useEffect)(()=>{M&&O.current&&(O.current.focus(),O.current.style.outline="none")},[M]);let R=(0,n.useCallback)(async()=>{if(T){let e=T.userIdentifier??await localStorage.getItem("userIdentifier");L({...A,userIdentifier:e||""})}},[T]);(0,n.useEffect)(()=>{R()},[]);let q=(0,o.$$)(String(v?.theme),e),P=q?.textColor||"",[j,F]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=sessionStorage.getItem("sso_context");if(e)try{JSON.parse(e),F(!0)}catch{}},[]);let U=T?.channel??void 0,{primary:V,secondary:W}=(0,p.AZ)(e),B=V?[V,...W]:W,H=j?B.filter(e=>"email"!==e):B,J=U?H.filter(e=>e!==U):[];return(0,i.jsxs)("div",{className:"flex flex-row w-full",children:[(0,i.jsxs)("div",{className:"flex self-center space-between min-h-[calc(100vh-64px)] items-center flex-col w-full xl:w-1/2 p-0 2xl:p-10 justify-center",children:[(0,i.jsx)("h1",{className:"text-primary justify-center text-center text-2xl md:text-2xl 2xl:text-4xl font-bold my-2",tabIndex:0,style:{color:P}
1,ref:O,children:x("signIn-page.welcome.headline")}),(0,i.jsx)(u.A,{csrfToken:t,fourDigitsVerificationCode:D,loginData:A,callbackUrl:r,config:e,recaptchaScoreSiteKey:f,recaptchaHumanSiteKey:g,isLandingPage:b,persistCooldown:!0,onGoBack:()=>{localStorage.removeItem("VerificationCode"),localStorage.removeItem("userIdentifier"),localStorage.removeItem("customIdentifier"),sessionStorage.removeItem("sso_context"),w.push((0,d.rF)("/auth/signin",{isLandingPage:b,sourceId:S,confirmationId:E,source:C,tags:N,email:_,referralCode:k}))},sourceId:S,confirmationId:E,referralCode:k,p2cParams:{source:C,tags:N,email:_},channel:U,alternativeChannels:J,onSwitchChannel:e=>{localStorage.removeItem("VerificationCode"),w.push((0,d.rF)("/auth/signin",{isLandingPage:b,sourceId:S,confirmationId:E,source:C,tags:N,email:_,referralCode:k,channel:e}))}})]}),e&&(0,i.jsx)(m.J,{config:e})]})}},73163:(e,t,r)=>{"use strict";r.d(t,{AZ:()=>l,Dd:()=>o,hk:()=>u,ry:()=>c});let i=["whatsapp","email","phone"],n=e=>{if(!e)return null;switch(e.toLowerCase()){case"sms":case"phone":return"phone";case"email":return"email";case"whatsapp":return"whatsapp";default:return null}},a=e=>e?.registrationConfig?.advanced?.advancedLoginChannels,s=e=>{let t=e?.registrationConfig?.options??{},r=[];return t.Email?.loginValidation===!0&&r.push("email"),t.PhoneNumber?.loginValidation===!0&&r.push("phone"),r},l=e=>{let t=a(e);if(!t||(e=>{let t=e?.registrationConfig?.options??{},r=0;for(let e in t)(t[e]?.firstCustomLogin||t[e]?.secondCustomLogin)&&r++;return 2===r})(e)){let t,r,i,n;return t=e?.registrationConfig?.options??{},r=s(e),i=null,Object.keys(t).forEach(e=>{t[e]?.firstCustomLogin===!0&&(i="Email"===e?"email":"phone")}),i||(i=r[0]??null),n=i?r.filter(e=>e!==i):r,{primary:i,secondary:n}}let r=s(e),l=new Set(r);!0===t.displayWhatsAppChannel&&l.add("whatsapp");let o=n(t.primaryLoginChannel),u=null;u=o&&l.has(o)?o:r.find(e=>l.has(e))??(l.has("whatsapp")?"whatsapp":null);let c=i.filter(e=>l.has(e)&&e!==u);return{primary:u,secondary:c}},o=e=>"phone"===e||"whatsapp"===e,u=({requestedChannel:e,draftChannel:t,primary:r,available:i})=>{let n=e=>e&&i.includes(e)?e:null;return n(e)??n(t)??r},c=(e,t)=>{if(!t)return{primary:"email",secondary:[]};if(a(e)?.displayWhatsAppChannel!==!0)return{primary:"phone",secondary:[]};let r="whatsapp"===n(a(e)?.primaryLoginChannel)?"whatsapp":"phone";return{primary:r,secondary:"phone"===r?["whatsapp"]:["phone"]}}}},e=>{e.O(0,[4938,9304,5337,1044,8463,9043,636,6593,8792],()=>e(e.s=412)),_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.