PageSourceSearch

https://mangia.lamanna.com.au/_next/static/chunks/8463-5727429038e78fd9.js

js lamanna.com.au collected 2026-10-10 01:30:30 UTC 16,495 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8463],{1668:(e,t,r)=>{r.d(t,{PB:()=>a});let a=e=>{if(!e)return e;let t=/^https?:\/\//i.test(e);try{let r=new URL(e,t?void 0:"http://placeholder.local");r.searchParams.set("authstep","verified");let a=r.searchParams.toString(),n=`${r.pathname}${a?`?${a}`:""}${r.hash||""}`;return t?`${r.origin}${n}`:n}catch{return e}}},5561:(e,t,r)=>{r.d(t,{Bx:()=>i,e9:()=>a,rF:()=>n});let a=["confirmationId","sourceId","source","tags","email","callbackUrl"],n=(e,t)=>{let r=new URLSearchParams;t.isLandingPage&&r.set("onboardingflow","register"),t.confirmationId&&r.set("confirmationId",t.confirmationId),t.sourceId&&r.set("sourceId",t.sourceId),t.source&&r.set("source",t.source),t.tags&&r.set("tags",t.tags),t.email&&r.set("email",t.email),t.referralCode&&r.set("ReferralCode",t.referralCode),t.channel&&r.set("channel",t.channel);let a=r.toString();return a?`${e}?${a}`:e},i=(e,t)=>{let r=e.get("confirmationId")||"",a=e.get("sourceId")||"",n=e.get("source")||"",i=e.get("tags")||"",o=e.get("email")||"";if(!a&&t)try{let e=decodeURIComponent(t).split("?")[1];if(e){let t=new URLSearchParams(e);r=t.get("confirmationId")||"",a=t.get("sourceId")||"",n=t.get("source")||"",i=t.get("tags")||"",o=t.get("email")||""}}catch{}return o&&(o=(e=>{if(!e)return e;try{let t=e,r="";for(;t!==r&&t.includes("%");)r=t,t=decodeURIComponent(t);return t}catch{return e}})(o)),{confirmationId:r,sourceId:a,source:n,tags:i,email:o}}},8157:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(37876);r(14232);var n=r(64437);let i=({message:e})=>(0,a.jsx)(n.Fc,{"data-cy":"alert",className:"my-6 alert md:w-[310px] alert-info shadow-lg bg-info max-w-[350px]",status:"info",icon:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-6 h-6 mx-2 stroke-current",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:(0,a.jsx)("p",{tabIndex:0,children:e})})},11125:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(37876),n=r(78229),i=r(66979);r(14232);let o=({recaptchaScoreSiteKey:e,recaptchaHumanSiteKey:t,showHumanRecaptcha:r,captchaRef:o,humanReacaptchaRef:l,setToken:s,onClose:c})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex items-center justify-center position: absolute bottom-0 right-0",children:(0,a.jsx)(n.A,{sitekey:e,ref:o,size:"invisible"})}),(0,a.jsx)(i.A,{title:"recaptcha-modal-header",component:(0,a.jsx)("div",{className:"mt-2 w-full flex flex-col items-center justify-center",children:(0,a.jsx)(n.A,{sitekey:t,ref:l,onChange:e=>{e&&(s(e),c())}})}),isOpen:r})]})},21861:(e,t,r)=>{r.d(t,{Fn:()=>u,Nf:()=>s,Py:()=>m,Q3:()=>p,aQ:()=>h,gW:()=>g,hV:()=>c,hx:()=>f});var a=r(5105);let n=new a.HF;n.setCustomParameters({prompt:"select_account"});let i=new a.LD("apple.com");i.addScope("email"),i.addScope("name");let o=new a.sk;o.addScope("email");let l={google:n,apple:i,facebook:o};function s(e,t){return!t||t.includes(e)}function c(e){return l[e]}let d=["google","apple","facebook"];function u(e){return"string"==typeof e&&d.includes(e)}function h(e){if(!Array.isArray(e))return[];let t=e.filter(u);return t.includes("google")?t.filter((e,r)=>t.indexOf(e)===r):[]}function f(e){let t=Array.isArray(e)?e[0]:e,r="string"==typeof t?t.trim().toLowerCase():"";return"ios"===r||"android"===r?r:null}function g(e,t){return"android"!==t?[...e]:e.filter(e=>"apple"!==e)}function m(e){return"apple.com"===e?"apple":"facebook.com"===e?"facebook":"google"}function p(e,t){return"google"===e?a.HF.credentialFromError(t):"facebook"===e?a.sk.credentialFromError(t):a.LD.credentialFromError(t)}},56211:(e,t,r)=>{r.d(t,{O5:()=>p,_K:()=>w,qg:()=>x});var a=r(14232),n=r(5105),i=r(10553),o=r(44726),l=r(73443),s=r(21861),c=r(6566),d=r(84014),u=r(68353),h=r(29357),f=r(76743),g=r(76848),m=r(5611);function p(e){if(!e||!e.trim())return!0;let t=e.trim().toLowerCase();return t.endsWith("@privaterelay.appleid.com")||t.endsWith("@private.icloud.com")}async function w(){sessionStorage.removeItem("sso_context");try{await (0,n.CI)(l.j2)}catch{}}function x(e={}){let{callbackUrl:t,source:r,sourceId:w,appReturn:y,cookieConsentGrantedExternally:b,isMobileBrowser:v,enabledProviders:k}=e,S=(0,o.A)(),I=(0,d.A)(),[j,P]=(0,a.useState)(!1),[N,A]=(0,a.useState)(null),[C,_]=(0,a.useState)(null),[E,F]=(0,a.useState)(null),[R,T]=(0,a.useState)(null),W=(0,a.useRef)(!1),{update:L}=(0,i.useSession)(),M=(0,a.useCallback)((e,t="tenant:exchange:providerNotEnabled")=>!(0,s.Nf)(e,k)&&((0,h.YW)(t,{provider:e}),_(I("auth.social.error.providerNotEnabled",{defaultValue:"This sign-in method isn't available."})),!0),[k,I]);(0,a.useEffect)(()=>{(0,l.cj)(),l.j2.authStateReady?.().catch(()=>void 0)},[]);let V=(0,u.G)(),$="mobile"===r,O=$&&V,Y=$&&(0,h.b1)(),B=!$&&!V&&!!v,U=(0,a.useCallback)(async(e,a)=>{try{if((0,h.YW)("tenant:exchange:start",{provider:a,hasIdToken:!!e}),M(a))return;let n=await (0,i.getCsrfToken)(),o=await (0,i.signIn)("social",{redirect:!1,idToken:e,provider:a,sourceId:w||"",csrfToken:n});if(o?.ok){if(y&&(0,h.C2)(y)){let e=await (0,i.getSession)()||{};(0,h.YW)("tenant:exchange:ok",{via:"appReturn",provider:a}),window.location.replace((0,h.rt)(y,{temporaryToken:e?.user?.temporaryToken||"",comoMemberId:e?.user?.comoMemberId||e?.
1id}));return}if((0,h.YW)("tenant:exchange:ok",{via:V?"postMessage":"redirect",provider:a}),V){let e=await (0,i.getSession)()||{},t=(0,c.cb)({temporaryToken:e?.user?.temporaryToken||"",refreshToken:"",expiresIn:3600,commonExtId:e?.user?.comoMemberId||e?.id},"","registrationSuccess","sso_login");console.log("Post Message",t,e),window.parent?.postMessage(JSON.stringify(t),"*")}else t?(await L(),await S.replace(t)):S.reload();return}let l=null;try{l=o?.error?JSON.parse(o.error):null}catch{l=null}if(l?.code==="phone_required"){(0,h.YW)("tenant:exchange:phoneRequired",{provider:a,hasAppReturn:!!y});let e=l?.preFill?.email,t={nonce:l?.nonce||"",provider:a,preFill:l?.preFill||{},emailCaptureRequired:l?.emailCaptureRequired??p(e),appReturn:y};sessionStorage.setItem("sso_context",JSON.stringify(t));let n=new URLSearchParams({sso:"1"});r&&n.set("source",r),w&&n.set("sourceId",w),"mobile"===r&&n.set("onboardingflow",""),b&&n.set("cookieConsentGrantedExternally",b),sessionStorage.setItem("sso_redirecting","1"),await S.push(`/auth/signin?${n.toString()}`);return}if(l?.code==="sso_not_supported"){(0,h.YW)("tenant:exchange:notSupported",{provider:a}),_(I("auth.social.sso_not_supported",{defaultValue:"Social sign-in is not supported for this business."}));return}throw Error(o?.error||I("auth.social.error.generic",{defaultValue:"Authentication failed"}))}catch(e){throw console.error("Backend auth error:",e),e}},[t,w,r,V,y,S,I,M,L]),J=()=>{let e=new URL(window.location.href);e.searchParams.delete(m.zz),window.history.replaceState(null,"",`${e.pathname}${e.search}`)};(0,a.useEffect)(()=>{if(!(0,h.b1)()||W.current)return;let e=(0,h.HB)();if(e){W.current=!0,(0,h.YW)("tenant:brokerReturn",{provider:e.provider,hasToken:!!e.token}),J(),(async()=>{try{P(!0),A(e.provider),await U(e.token,e.provider)}catch(e){console.error("Broker token exchange error:",e),_(e?.message||I("auth.social.error.generic",{defaultValue:"Authentication failed"}))}finally{sessionStorage.removeItem(m.cW),P(!1),A(null)}})();return}let t=(0,h.Yg)();t&&(W.current=!0,(0,h.YW)("tenant:brokerReturnError",{code:t.code}),sessionStorage.removeItem(m.cW),J(),(0,f.oM)(t.code)?_(I("auth.social.error.cancelled",{defaultValue:"Sign-in was cancelled. Please try again."})):_(I("auth.social.error.generic",{defaultValue:"Authentication failed"})))},[U,I]),(0,a.useEffect)(()=>{(async()=>{if(W.current)return;W.current=!0;let e=!1;try{let e=sessionStorage.getItem(m.bx)||null,t=sessionStorage.getItem(m.tC),r=await (0,n.Q4)(l.j2),a=r?.user||(e?l.j2.currentUser:null);if(a){P(!0);let i=r?(0,s.Py)(r.providerId):e;if(A(i),t){let{newProvider:e,credentialJson:r}=JSON.parse(t);if(M(e,"tenant:link:providerNotEnabled"))return;let o=n.LD.credentialFromJSON(r);try{let t=await (0,n.OS)(a,o),r=await t.user.getIdToken();await U(r,e)}catch(t){console.error("Account link error (redirect flow):",t);let e=await a.getIdToken();await U(e,i)}}else{let e=await a.getIdToken();await U(e,i)}}}catch(r){let t=(0,f.oM)(r?.code);if(r?.code==="auth/account-exists-with-different-credential"){let t=sessionStorage.getItem(m.bx)||null;if(t&&M(t,"tenant:link:providerNotEnabled"))return;let a=await (0,f.YZ)(l.j2,t,r,k,e=>console.error("fetchSignInMethodsForEmail failed:",e)),i=a.existingProvider;if(t&&a.existingProvider&&a.credential&&a.existingProviderIsUsable){sessionStorage.setItem(m.tC,JSON.stringify({newProvider:t,credentialJson:JSON.stringify(a.credential.toJSON())})),sessionStorage.setItem(m.bx,a.existingProvider),e=!0,await (0,n.$2)(l.j2,(0,s.hV)(a.existingProvider));return}T(i?I("auth.social.error.account_exists_different_credential",{defaultValue:"An account already exists with this email using a different sign-in method ({{provider}}). Please use that method to sign in.",provider:i}):I("auth.social.error.account_exists_different_credential_generic",{defaultValue:"An account already exists with this email using a different sign-in method. Please use that method to sign in."}))}else t?_(I("auth.social.error.cancelled",{defaultValue:"Sign-in was cancelled. Please try again."})):(console.error("Redirect result error:",r),_(r?.message||I("auth.social.error.generic",{defaultValue:"Authentication failed"})))}finally{e||(sessionStorage.removeItem(m.cW),sessionStorage.removeItem(m.bx),sessionStorage.removeItem(m.tC),P(!1),A(null))}})()},[]);let z=(0,a.useCallback)(async e=>{if(_(null),T(null),!M(e,"tenant:login:providerNotEnabled")){P(!0),A(e);try{if((0,h.b1)()&&(0,g.i8)()){(0,h.YW)("tenant:handoffToNative",{provider:e}),(0,g.S6)(e);return}if(Y||"facebook"===e&&B&&(0,h.b1)()){let t=new URLSearchParams;r&&t.set("source",r),w&&t.set("sourceId",w),y&&t.set("appReturn",y),b&&t.set("cookieConsentGrantedExternally",b),t.set(m.zz,"1");let a=`${window.location.origin}${window.location.pathname}?${t}`;(0,h.YW)("tenant:toBroker",{provider:e,brokerOrigin:h.ZB,hasAppReturn:!!y,viaRealMobileBrowser:!Y}),window.location.assign((0,h.zE)({provider:e,returnUrl:a,source:r,sourceId:w}));return}let t=(0,s.hV)(e);if(O){sessionStorage.setItem(m.bx,e),await (0,n.$2)(l.j2,t);return}try{let r=await (0,n.df)(l.j2,t),a=await r.user.getIdToken();await U(a,e)}catch(r){if(r?.code==="auth/popup-blocked"){sessionStorage.setItem(m.bx,e),await (0,n.$2)(l.j2,t);return}throw r}}catch(t){if((0,f.oM)(t?.code))_(I("auth.social.error.cancelled",{defaultValue:"Sign-in was cancelled. Please try again."}));else if(t?.code==="auth/account-exists-with-different-credential"){let{existingProvider:r,credential:a,existingProviderIsUsable:n}=await (0,f.YZ)(l.j2,e,t,k,e=>console.error("fetchSignInMethodsForEmail failed:",e));r&&a&&!O&&n?F({newProvider:e,existingProvider:r,pendingCredential:a}):T(r?I("auth.social.error.account_exists_different_credential",{defaultValue:"An account already exists with this email using a different sign-in method ({{provider}}). Please use that method to sign in.",provider:r}):I("auth.social.error.account_exists_different_credential_generic",{defaultValue:"An account already exists with this email using a different sign-in method. Please use that method to sign in."}))}else console.error("Social login error:",t),_(t?.message||I("auth.social.error.generic",{defaultValue:"Authentication failed"}))}finally{"1"!==sessionStorage.getItem("sso_redirecting")&&(P(!1),A(null))}}},[Y,O,B,U,I,r,w,y,b,k,M]),q=(0,a.useCallback)(()=>{F(null),_(null)},[]),G=(0,a.useCallback)(()=>{T(null)},[]),D=(0,a.useCallback)(async()=>
1{if(E){if(_(null),M(E.newProvider,"tenant:link:providerNotEnabled"))return void F(null);P(!0),A(E.existingProvider);try{let e=(0,s.hV)(E.existingProvider),t=await (0,n.df)(l.j2,e),r=await (0,n.OS)(t.user,E.pendingCredential);F(null);let a=await r.user.getIdToken();await U(a,E.newProvider)}catch(e){(0,f.oM)(e?.code)?_(I("auth.social.error.cancelled",{defaultValue:"Sign-in was cancelled. Please try again."})):(console.error("Account link error:",e),_(e?.message||I("auth.social.error.link_failed",{defaultValue:"We couldn't link your accounts. Please try signing in again."}))),F(null)}finally{P(!1),A(null)}}},[E,U,I,M]);return{loginWithSocial:z,isLoading:j,loadingProvider:N,error:C,pendingAccountLink:E,confirmAccountLink:D,cancelAccountLink:q,accountConflictMessage:R,dismissAccountConflict:G}}},66979:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(37876),n=r(14232),i=r(58333),o=r(65337),l=r(84014);let s=({title:e,isOpen:t,component:r,onClose:s,showCloseButton:c})=>{let d=(0,l.A)();return(0,a.jsx)(i.e,{appear:!0,show:t,as:n.Fragment,"data-cy":"modal-overlay",children:(0,a.jsxs)(o.lG,{as:"div",className:"relative z-[1000]",onClose:()=>{s&&s()},children:[(0,a.jsx)(i.e.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),(0,a.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center","data-cy":"modal-body",children:(0,a.jsx)(i.e.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(o.lG.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all flex flex-col items-center justify-center relative",children:[c&&(0,a.jsx)("button",{onClick:s,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-500","data-cy":"modal-close-button",children:(0,a.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,a.jsx)(o.lG.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900",children:d(e)}),r]})})})})]})})}},76743:(e,t,r)=>{r.d(t,{YZ:()=>l,oM:()=>o});var a=r(5105),n=r(21861);let i=new Set(["auth/popup-closed-by-user","auth/user-cancelled","auth/cancelled-popup-request"]);function o(e){return!!e&&i.has(e)}async function l(e,t,r,i,o){let l=r?.customData?.email,s=t?(0,n.Q3)(t,r):null,c=null;if(l)try{let t=await (0,a.Wm)(e,l);c=t[0]?(0,n.Py)(t[0]):null}catch(e){o?.(e)}if(!c){let e=r?.customData?._tokenResponse?.verifiedProvider?.[0];c=e?(0,n.Py)(e):null}let d=!i||null!==c&&i.includes(c);return{email:l,existingProvider:c,credential:s,existingProviderIsUsable:d}}},86288:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(37876);r(14232);var n=r(84014),i=r(78152),o=r(68158);let l={whatsapp:{labelKey:"signin-page.channel.whatsapp.label",labelFallback:"WhatsApp",Icon:r(85542).EcP},email:{labelKey:"signin-page.channel.email.label",labelFallback:"Email",Icon:i.A},phone:{labelKey:"signin-page.channel.sms.label",labelFallback:"SMS",Icon:o.A}},s={select:{key:"accessibility.channel.sign-in-with",fallback:"Sign in with"},switch:{key:"accessibility.channel.try",fallback:"Try"}},c=({channel:e,onSelect:t,intent:r="select"})=>{let i=(0,n.A)(),{labelKey:o,labelFallback:c,Icon:d}=l[e],{key:u,fallback:h}=s[r],f=i(o)||c,g=i(u)||h;return(0,a.jsxs)("button",{type:"button","aria-label":`${g} ${f}`,onClick:()=>t(e),className:"flex flex-col items-center justify-center cursor-pointer border-2 border-primary/30 w-20 h-20 hover:scale-105 transition bg-transparent",style:{borderRadius:"0.5rem"},children:[(0,a.jsx)(d,{className:"w-6 h-6 text-primary"}),(0,a.jsx)("span",{className:"text-xs mt-1",children:f})]})}},88935:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(37876),n=r(14232),i=r(64437),o=r(84014);let l=({error:e,timer:t})=>{let r=(0,o.A)();console.log("error",e);
1let[l,s]=(0,n.useState)(!0);return t&&setTimeout(()=>{s(!1)},6e3),l?(0,a.jsx)(i.Fc,{"data-cy":"alert-error",className:"my-6 alert alert-error bg-error max-w-[300px]",status:"error",icon:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-6 h-6 mx-2 stroke-current",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})}),children:r(e||"message.general.error")}):null}}}]);

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.