PageSourceSearch

https://www.cooperpetcare.app/_next/static/chunks/app/(main)/layou…?dpl=dpl_HFCp2ztREg1HuPc2VGTaWQrdZc6j

js cooperpetcare.app collected 2026-09-24 13:54:39 UTC 37,461 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2076],{1715:(e,t,r)=>{"use strict";r.d(t,{Bm:()=>c,Rr:()=>l,Yd:()=>i,gW:()=>o});var a=r(12115);let o="coop-chat:open",s="coop-chat:state",n=!1;function i(e){n!==e&&(n=e,window.dispatchEvent(new Event(s)))}function l(){let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=()=>t(n);return e(),window.addEventListener(s,e),()=>window.removeEventListener(s,e)},[]),e}let c=e=>"/refugios"===e||"/propuesta-prbs"===e||e.startsWith("/alianzas/")||e.startsWith("/certificados")},5969:(e,t,r)=>{Promise.resolve().then(r.bind(r,21786)),Promise.resolve().then(r.bind(r,36419)),Promise.resolve().then(r.bind(r,68866)),Promise.resolve().then(r.bind(r,86707)),Promise.resolve().then(r.bind(r,3520)),Promise.resolve().then(r.bind(r,98492)),Promise.resolve().then(r.bind(r,86388)),Promise.resolve().then(r.bind(r,14564)),Promise.resolve().then(r.bind(r,10086)),Promise.resolve().then(r.bind(r,68048)),Promise.resolve().then(r.bind(r,47633))},10086:(e,t,r)=>{"use strict";r.d(t,{NextAuthProvider:()=>d});var a=r(95155),o=r(37882),s=r(12115),n=r(66609),i=r(50910);let l=["/alianzas","/servicios","/be-a-cooper","/sobre-cooper","/blog","/terminos-y-condiciones"],c=()=>{let{data:e}
1=(0,o.useSession)(),t=(0,i.c)("auth"),[r,a]=(0,s.useState)(0),c=(0,s.useRef)(!1),d=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{if(e?.error==="RefreshAccessTokenError"){let e=window.location.pathname;if("/"===e||/^\/(mx|cl|co|uy|br|us)(\/|$)/.test(e)||l.some(t=>e.startsWith(t)))return;let s=r+1;a(s),console.warn(`⚠️ Session error detected (${s}/3)`),s>=3&&!d.current&&(console.error("❌ Session invalid after 3 consecutive errors, forcing logout"),d.current=!0,c.current||(n.oR.error(t("session-expired")),c.current=!0),(0,o.signOut)({callbackUrl:"/auth",redirect:!1}).then(()=>{console.log("\uD83D\uDD13 Logout successful, redirecting..."),window.location.href="/auth"}).catch(e=>{console.error("❌ Logout failed:",e),window.location.href="/auth"}))}else e&&!e.error&&r>0&&(console.log("✅ Session recovered, resetting error count"),a(0),c.current=!1)},[e,t,r]),null},d=({children:e})=>(0,a.jsxs)(o.SessionProvider,{children:[(0,a.jsx)(c,{}),e]})},12723:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});let a=(0,r(1934).v)(e=>({openAuthModal:()=>new Promise(t=>{e({authModalState:{authModalOpen:!0,resolve:t}})}),authModalState:null,setAuthModalState:t=>e({authModalState:t}),platform:"web",setPlatform:t=>e({platform:t}),safeAreaTop:0,setSafeAreaTop:t=>e({safeAreaTop:t}),qrScannerValue:"",setQrScannerValue:t=>e({qrScannerValue:t}),openQrScanner:!1,setOpenQrScanner:t=>e({openQrScanner:t}),walkFormScroll:0,setWalkFormScroll:t=>e({walkFormScroll:t}),breeds:[],setBreeds:t=>e({breeds:t}),services:[],setServices:t=>e({services:t}),navbarHeight:60,setNavbarHeight:t=>e({navbarHeight:t}),bottomBarHeight:60,setBottomBarHeight:t=>e({bottomBarHeight:t}),safeAreaBottom:0,setSafeAreaBottom:t=>e({safeAreaBottom:t}),focusing:!1,setFocusing:t=>e({focusing:t}),showTrainingFinalStep:!1,setShowTrainingFinalStep:t=>e({showTrainingFinalStep:t})}))},14564:(e,t,r)=>{"use strict";r.d(t,{Navbar:()=>T});var a=r(95155),o=r(12723),s=r(37206),n=r(73321),i=r(12115),l=r(5772),c=r(41964);let d=({image:e})=>(0,a.jsx)(c.ForesightLink,{className:"cursor-pointer z-[9999]",href:"/",children:(0,a.jsx)(l.default,{src:e,alt:"Cooper - Ir al inicio",className:"dark:invert",height:24,loading:"eager",fetchPriority:"low",quality:90})});var u=r(47148),m=r(79544),p=r(2793),h=r(50910),f=r(63709),g=r(20822);let x=()=>{let e=(0,n.usePathname)(),t=(0,h.c)("landing-page"),[r,o]=(0,i.useState)(!1),s=(0,i.useRef)(null),l=(0,i.useRef)(!1);return e.startsWith("/dashboard")?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"h-[16px] w-[1px] group-data-[invert=true]:bg-white group-data-[invert=false]:bg-black hidden md:block"}),(0,a.jsx)("div",{className:(0,m.p)("flex relative items-center gap-2 md:gap-4 text-paragraph-sm z-40"),children:(0,a.jsxs)("ul",{className:"items-center gap-2 md:gap-4 text-paragraph-sm z-40 hidden md:flex",children:[(0,a.jsx)("li",{children:(0,a.jsx)(c.ForesightLink,{className:"cursor-pointer links-anim",href:"/servicios/paseos",onClick:()=>(0,g.Ct)({servicio:"paseos"}),children:t("service-walks")})}),(0,a.jsx)("li",{children:(0,a.jsx)(c.ForesightLink,{className:"cursor-pointer links-anim",href:"/servicios/guarderia",onClick:()=>(0,g.Ct)({servicio:"guarderia"}),children:t("service-boarding")})}),(0,a.jsx)("li",{onMouseEnter:()=>{s.current&&(clearTimeout(s.current),s.current=null),o(!0)},onMouseLeave:()=>{s.current=setTimeout(()=>{o(!1)},200)},children:(0,a.jsxs)(f.bL,{open:r,onOpenChange:e=>{l.current||o(e),l.current=!1},modal:!1,children:[(0,a.jsx)(f.l9,{asChild:!0,children:(0,a.jsxs)("span",{className:"cursor-pointer links-anim flex items-center gap-1 outline-none",onPointerDown:e=>{"touch"!==e.pointerType&&r&&(e.preventDefault(),l.current=!0)},children:[t("service-training"),(0,a.jsx)(p.eQr,{className:`text-xs transition-transform duration-200 ${r?"rotate-180":""}`})]})}),(0,a.jsx)(f.UC,{align:"start",className:"min-w-[180px] bg-white shadow-[0_8px_24px_rgba(0,0,0,0.12)] border border-gray-200/80 rounded-lg p-2 mt-2",sideOffset:8,children:(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(f.q7,{asChild:!0,className:"rounded-md hover:bg-[#178C7D]/5 transition-all duration-150 group/item",children:(0,a.jsx)(c.ForesightLink,{href:"/servicios/comportamiento",className:"w-full px-3 py-2.5 text-sm font-medium text-gray-700 hover:text-[#178C7D]",onClick:()=>{(0,g.Ct)({servicio:"entrenamiento_domicilio"}),o(!1)},children:t("training-in-house")})}),(0,a.jsx)("div",{className:"h-px bg-gray-100 mx-2"}),(0,a.jsx)(f.q7,{asChild:!0,className:"rounded-md hover:bg-[#178C7D]/5 transition-all duration-150 group/item",children:(0,a.jsx)(c.ForesightLink,{href:"/servicios/entrenamiento-intensivo",className:"w-full px-3 py-2.5 text-sm font-medium text-gray-700 hover:text-[#178C7D]",onClick:()=>{(0,g.Ct)({servicio:"entrenamiento_intensivo"}),o(!1)},children:t("training-high-intensity")})})]})})]})}),(0,a.jsx)("li",{children:(0,a.jsx)(c.ForesightLink,{className:"cursor-pointer links-anim",href:"/sobre-cooper",onClick:()=>(0,g.UA)({click_text:t("manifesto"),click_location:"navbar",click_destination:"/sobre-cooper"}),children:t("manifesto")})})]})})]})};r(85254);var b=r(59931);
1let v=[{name:"Transparent",paths:["/","/servicios/paseos","/servicios/guarderia","/servicios/comportamiento","/servicios/entrenamiento-intensivo","/be-a-cooper"],strictPathsComparison:!0,base:{style:{backgroundColor:"transparent",color:"#FFF"},navbarLogo:b.default,colorTheme:"#062723",colorThemeDark:"#062723"},scrolled:{style:{backgroundColor:"rgba(10, 14, 20, 0.85)",color:"#fff",backdropFilter:"blur(12px)"},navbarLogo:b.default,colorTheme:"#000",colorThemeDark:"#000"}},{name:"DarkNavbar",paths:["/dashboard","/walkthrough","/be-a-cooper/form","/coopers"],strictPathsComparison:!1,base:{style:{backgroundColor:"#323232",color:"#fff"},navbarLogo:b.default,colorTheme:"#FFF",colorThemeDark:"#000"},scrolled:{style:{backgroundColor:"rgba(10, 14, 20, 0.85)",color:"#fff",backdropFilter:"blur(12px)"},navbarLogo:b.default,colorTheme:"#000",colorThemeDark:"#000"}},{name:"solid-with-black-bg",paths:["/auth"],strictPathsComparison:!1,base:{style:{backgroundColor:"rgba(0, 0, 0, 0.5)",color:"#fff",backdropFilter:"blur(8px)"},navbarLogo:b.default,colorTheme:"#FFF",colorThemeDark:"#000"},scrolled:{style:{backgroundColor:"rgba(10, 14, 20, 0.85)",color:"#fff",backdropFilter:"blur(12px)"},navbarLogo:b.default,colorTheme:"#000",colorThemeDark:"#000"}},{name:"Ordenes",paths:["/ordenes"],strictPathsComparison:!0,base:{style:{backgroundColor:"#323232",color:"#fff"},navbarLogo:b.default,colorTheme:"#062723",colorThemeDark:"#062723"},scrolled:{style:{backgroundColor:"rgba(10, 14, 20, 0.85)",color:"#fff",backdropFilter:"blur(12px)"},navbarLogo:b.default,colorTheme:"#000",colorThemeDark:"#000"}},{name:"SobreCooper",paths:["/sobre-cooper"],strictPathsComparison:!0,base:{style:{backgroundColor:"transparent",color:"#FFF"},navbarLogo:b.default,colorTheme:"#062723",colorThemeDark:"#062723"},scrolled:{style:{backgroundColor:"rgba(10, 14, 20, 0.85)",color:"#fff",backdropFilter:"blur(12px)"},navbarLogo:b.default,colorTheme:"#000",colorThemeDark:"#000"}},{name:"PCPProfile",paths:["/"],strictPathsComparison:!1,base:{style:{backgroundColor:"#323232",color:"#fff"},navbarLogo:b.default,colorTheme:"#FFF",colorThemeDark:"#000"},scrolled:{style:{backgroundColor:"rgba(10, 14, 20, 0.85)",color:"#fff",backdropFilter:"blur(12px)"},navbarLogo:b.default,colorTheme:"#000",colorThemeDark:"#000"}}];var w=r(47630),y=r(73846);let k=[{label:"Instagram",href:"https://www.instagram.com/cooper.petcare/",icon:p.$vj},{label:"WhatsApp",href:`https://wa.me/${w.St}`,icon:p.faC},{label:"App Store",href:(0,y.Jz)("navbar"),icon:p.D7X},{label:"Google Play",href:(0,y.FU)("navbar"),icon:p.emy}];function S(){return(0,a.jsx)("nav",{"aria-label":"Redes y aplicaciones",className:"hidden shrink-0 items-center md:flex",children:k.map(({label:e,href:t,icon:r})=>(0,a.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e,title:e,className:"flex size-10 shrink-0 items-center justify-center rounded-full text-inherit transition-opacity hover:opacity-70 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current",children:(0,a.jsx)(r,{size:20,"aria-hidden":"true"})},e))})}var C=r(29434),A=r(42011);let j=()=>{let{isAuthenticated:e,status:t}=(0,C.c)(),r=(0,h.c)("auth"),o=(0,h.c)("navbar"),[s,n]=(0,i.useState)(!1);return e?null:"loading"===t?(0,a.jsxs)("span",{"aria-hidden":!0,className:"invisible flex items-center gap-1 px-2 py-1",children:[(0,a.jsx)("span",{className:"text-xs md:text-sm font-medium",children:r("sign-in")}),(0,a.jsx)(p.eQr,{className:"text-[10px] md:text-xs"})]}):"unavailable"===t?(0,a.jsx)("a",{href:"/redirect",className:"text-xs md:text-sm px-2 py-1",children:o("account")}):(0,a.jsxs)(f.bL,{open:s,onOpenChange:n,modal:!1,children:[(0,a.jsxs)(f.l9,{className:"cursor-pointer links-anim flex items-center gap-1 outline-none px-2 py-1 rounded-md hover:bg-black/5 dark:hover:bg-white/5 transition-colors text-inherit",children:[(0,a.jsx)("span",{className:"text-xs md:text-sm font-medium",children:r("sign-in")}),(0,a.jsx)(p.eQr,{className:`text-[10px] md:text-xs transition-transform duration-200 ${s?"rotate-180":""}`})]}),(0,a.jsx)(f.UC,{align:"end",className:"w-auto min-w-[160px] bg-white shadow-[0_8px_24px_rgba(0,0,0,0.12)] border border-gray-200/80 rounded-lg p-1.5 mt-2",sideOffset:8,children:(0,a.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,a.jsx)(f.q7,{onClick:()=>{n(!1),(0,A.O)({tab:"sign-in"})},className:"rounded-md hover:bg-[#178C7D]/5 transition-all duration-150 px-3 py-2 text-sm font-medium cursor-pointer text-gray-700",children:r("i-have-account")}
1),(0,a.jsx)(f.q7,{onClick:()=>{n(!1),(0,A.O)({tab:"sign-up"})},className:"rounded-md hover:bg-[#178C7D]/5 transition-all duration-150 px-3 py-2 text-sm font-medium cursor-pointer text-gray-700",children:r("i-am-new")})]})})]})},_=()=>{let e=(0,h.c)("navbar"),{isAuthenticated:t}=(0,C.c)(),r=(0,n.usePathname)();return!t||r.startsWith("/dashboard")||["/ordenes","/walkthrough","/be-a-cooper/form","/admin","/redirect","/auth","/procesando-orden","/payment-success","/success"].some(e=>r.startsWith(e))?null:(0,a.jsx)(c.ForesightLink,{href:"/redirect",className:"flex items-center justify-center px-4 py-2 bg-green-500 hover:bg-green-600 text-white text-label-sm font-medium rounded-full transition-colors duration-200 whitespace-nowrap",children:e("account")})},N=(0,s.default)(()=>Promise.all([r.e(1598),r.e(9048),r.e(3251),r.e(6753)]).then(r.bind(r,30536)).then(e=>e.Menu),{loadableGenerated:{webpack:()=>[30536]},ssr:!1}),T=()=>{let e=(0,o.o)(e=>e.safeAreaTop),[t,r]=(0,i.useState)(!1),s=(0,n.usePathname)(),{style:l,navbarLogo:m}=(({pathname:e,scrolled:t,themes:r})=>{let[a,o]=(0,i.useState)(null),{setThemeColor:s}=(0,u.S)();if(r.forEach(e=>{if(0===e.paths.length)throw Error("useNavbarThemes: The theme <"+e.name+"> has no paths, you must add at least one path")}),0===r.length)throw Error("useNavbarThemes: No themes found, you must add at least one theme");if((0,i.useEffect)(()=>{let t=r.find(t=>t.paths.some(r=>t.strictPathsComparison?e===r:e.startsWith(r)));t&&o(t)},[e]),(0,i.useEffect)(()=>{a&&s(t?a.scrolled.colorTheme:a.base.colorTheme)},[a,t,s]),!a){let e=r[1];return{style:e.base.style,navbarLogo:e.base.navbarLogo}}return{style:t?a.scrolled.style:a.base.style,navbarLogo:t?a.scrolled.navbarLogo:a.base.navbarLogo}})({pathname:s,scrolled:t,themes:v}),p=s.startsWith("/dashboard/capacitaciones");return(0,i.useEffect)(()=>{let e=0,t=()=>{e||(e=requestAnimationFrame(()=>{e=0,r(window.scrollY>60)}))};return t(),window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t),e&&cancelAnimationFrame(e)}},[]),(0,a.jsx)("div",{style:{paddingTop:e,position:"fixed",top:0,left:0,right:0,zIndex:50,...l},children:(0,a.jsxs)("div",{className:"w-full px-2 md:px-4 h-[60px] flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center xl:gap-4",children:[(0,a.jsx)(d,{image:m}),(0,a.jsx)("div",{className:"hidden xl:flex items-center gap-4",children:(0,a.jsx)(x,{})}),p&&(0,a.jsx)("nav",{className:"hidden md:flex items-center gap-4",children:[{label:"M\xf3dulos",path:"/dashboard/capacitaciones"},{label:"Certificaciones",path:"/dashboard/capacitaciones/insignias"}].map(e=>{let t=s===e.path;return(0,a.jsx)(c.ForesightLink,{href:e.path,className:`links-anim cursor-pointer text-paragraph-sm ${t?"font-semibold":""}`,children:e.label},e.path)})})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[!s.startsWith("/dashboard")&&"/servicios/comportamiento/contacto"!==s&&(0,a.jsx)(S,{}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(_,{}),(0,a.jsx)(j,{})]}),(0,a.jsx)(N,{})]})]})})}},21786:(e,t,r)=>{"use strict";r.d(t,{AnalyticsProviders:()=>l});var a=r(95155),o=r(37206);let s=(0,o.default)(()=>r.e(8742).then(r.bind(r,48742)).then(e=>({default:e.MetaPixelWrapper})),{loadableGenerated:{webpack:()=>[48742]},ssr:!1}),n=(0,o.default)(()=>r.e(6259).then(r.bind(r,56259)).then(e=>({default:e.TikTokPixelWrapper})),{loadableGenerated:{webpack:()=>[56259]},ssr:!1}),i=(0,o.default)(()=>r.e(2694).then(r.bind(r,32694)).then(e=>({default:e.ForesightInitializer})),{loadableGenerated:{webpack:()=>[32694]},ssr:!1});function l({pixelId:e,tiktokPixelId:t}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i,{}),(0,a.jsx)(s,{pixelId:e}),(0,a.jsx)(n,{pixelId:t})]})}},29434:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var a=r(12115),o=r(31821);function s(){let e=(0,a.useSyncExternalStore)(o.RG.subscribe,o.RG.getSnapshot,()=>o.H5);return{...e,isAuthenticated:"authenticated"===e.status,signOut:o.RG.signOut}}},31821:(e,t,r)=>{"use strict";r.d(t,{H5:()=>s,RG:()=>i});var a=r(82849),o=r(36394);let s={status:"loading",session:null};async function n(){let e=await import("/cooper-session-v1.js");if(1!==e.version||"function"!=typeof e.resolveSession||"function"!=typeof e.endSession)throw Error("Unsupported Cooper session runtime");return e}let i=function(e=n,t=function(){try{if(localStorage.getItem("cooper_token"))return!0;for(let e=0;e<localStorage.length;e++)if(localStorage.key(e)?.match(/^CognitoIdentityServiceProvider\..+\.LastAuthUser$/))return!0;return/(?:^|;\s*)cooper_(?:preprod_)?token=/.test(document.cookie)}catch{return!0}},r=function(e,t){console.error(`[cooper-session] Session runtime failed during ${e}`,t),(0,o.d)("session_runtime_unavailable",{phase:e},e)},i=function(){let e="https://3haaiy6roi.execute-api.us-east-1.amazonaws.com/prod-2".includes("api-preprod.");try{for(let t of(e||="preprod.cooperpetcare.app"===window.location.hostname,localStorage.setItem("cooper_session_legacy_disabled","1"),["cooper_token","cooper_refresh_token","cooper.impersonatedUserId"]))localStorage.removeItem(t);for(let e=localStorage.length-1;e>=0;e--){let t=localStorage.key(e);
1t?.startsWith("CognitoIdentityServiceProvider.")&&localStorage.removeItem(t)}}catch(e){console.error("[cooper-session] Could not clear local session storage",e)}a.A.remove(e?"cooper_preprod_token":"cooper_token"),a.A.remove(e?"cooper_preprod_refresh_token":"cooper_refresh_token"),e||(a.A.remove("cooper_token",{domain:".cooperpetcare.app"}),a.A.remove("cooper_refresh_token",{domain:".cooperpetcare.app"}))}){let l=s,c=null,d=0,u=0,m=!1,p=null,h=new Set;function f(e){l=e,h.forEach(e=>e())}function g(a=!1){if(c)return a&&(m=!0),c;let o=d;return c=(async()=>{do{m=!1;try{if(!t()){o===d&&f({status:"unauthenticated",session:null});continue}let r=await e(),a=await r.resolveSession();o===d&&a?.user.id&&r.claimGuestChat&&p!==a.user.id&&(p=a.user.id,r.claimGuestChat().catch(()=>{p=null})),a||(p=null),o===d&&f({status:a?"authenticated":"unauthenticated",session:a})}catch(e){r("refresh",e),o===d&&f({status:"unavailable",session:null})}}while(m&&o===d)})().finally(()=>{u=Date.now(),c=null})}function x(){"hidden"!==document.visibilityState&&Date.now()-u>1e3&&g(!0)}function b(e){(!e.key||"cooper_token"===e.key||"cooper_session_legacy_disabled"===e.key||e.key.startsWith("CognitoIdentityServiceProvider."))&&g(!0)}return{getSnapshot:()=>l,refresh:g,subscribe:e=>(h.add(e),1===h.size&&(window.addEventListener("focus",x),window.addEventListener("pageshow",x),window.addEventListener("storage",b),document.addEventListener("visibilitychange",x),g()),(
1)=>{h.delete(e),h.size||(window.removeEventListener("focus",x),window.removeEventListener("pageshow",x),window.removeEventListener("storage",b),document.removeEventListener("visibilitychange",x))}),async signOut(){let t;d++,p=null,await c;try{t=await e()}catch(e){r("logout",e),i(),f({status:"unauthenticated",session:null});return}await t.endSession(),f({status:"unauthenticated",session:null})}}}()},36419:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var a=r(95155);let o=(0,r(37206).default)(()=>Promise.all([r.e(7459),r.e(2419)]).then(r.bind(r,2419)),{loadableGenerated:{webpack:()=>[2419]}});function s(){return(0,a.jsx)(o,{})}},41964:(e,t,r)=>{"use strict";r.d(t,{ForesightLink:()=>c});var a=r(95155),o=r(98500),s=r.n(o),n=r(12115),i=r(21285),l=r(73321);let c=(0,n.forwardRef)(function({children:e,className:t,...r},o){let c=(0,l.useRouter)(),d=r.href.toString(),{elementRef:u,isTouchDevice:m}=function(e){let t=(0,n.useRef)(null),[r,a]=(0,n.useState)(!1),[o,s]=(0,n.useState)(!1),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let r=t.current;if(!r)return;let o=i.X.instance.register({element:r,...e});return a(o.isTouchDevice),s(o.isLimitedConnection),c(o.isRegistered),()=>{i.X.instance.unregister(r)}},[e.callback,e.hitSlop,e.name,e.meta,e.reactivateAfter]),{elementRef:t,isTouchDevice:r,isLimitedConnection:o,isRegistered:l}}({callback:(0,n.useCallback)(()=>c.prefetch(d),[c,d]),hitSlop:r.hitSlop,name:r.name,meta:r.meta,reactivateAfter:r.reactivateAfter});return(0,a.jsx)(s(),{...r,prefetch:m,ref:u,className:t,children:e})})},42011:(e,t,r)=>{"use strict";function a(e={}){let t=new URLSearchParams;e.tab&&t.set("tab",e.tab),e.redirect&&t.set("redirect",e.redirect),e.track&&t.set("track",e.track);let r=t.toString();window.location.href=`/auth${r?`?${r}`:""}`}r.d(t,{O:()=>a})},47148:(e,t,r)=>{"use strict";r.d(t,{S:()=>i,ThemeColorProvider:()=>n});var a=r(95155),o=r(12115);let s=(0,o.createContext)({themeColor:"#062723",setThemeColor:()=>{}});function n({children:e}){let[t,r]=(0,o.useState)("#062723");return(0,o.useEffect)(()=>{let e=document.querySelector('meta[name="theme-color"]');e&&e.setAttribute("content",t)},[t]),(0,a.jsx)(s.Provider,{value:{themeColor:t,setThemeColor:r},children:e})}function i(){let e=(0,o.useContext)(s);if(!e)throw Error("useThemeColor must be used within a ThemeColorProvider");return e}},47633:(e,t,r)=>{"use strict";r.d(t,{default:()=>h});var a=r(95155),o=r(73321),s=r(82849),n=r(12115),i=r(98825),l=r(9339);let c=(0,l.createServerReference)("40c4b2bface0bfaa0e570e9f492e532688a863d5da",l.callServer,void 0,l.findSourceMapURL,"scanReferralCode");var d=r(58415);let u=e=>{try{return window.localStorage.getItem(e)}catch{return null}},m=(e,t)=>{try{window.localStorage.setItem(e,t)}catch{}},p=(0,n.createContext)({referralCode:null,deleteReferralCookie:()=>{}});function h({children:e}){let t=(0,o.useSearchParams)(),[r,l]=(0,n.useState)(null),h=(0,d.hR)(t),f=e=>{l(e),s.A.set(d.tt,e,{expires:d.Tm}),m(d.tt,e)};return(0,n.useEffect)(()=>{if(h)f(h);else{let e=u(d.tt)||s.A.get(d.tt);e&&f(e)}},[h]),(0,n.useEffect)(()=>{(async()=>{if(!r)return;let e=u("devrev_plug_user_ref")||s.A.get("devrev_plug_user_ref")||(0,i.A)();m("devrev_plug_user_ref",e),s.A.set("devrev_plug_user_ref",e,{expires:365}),await c({referralCode:r,correlationId:e,context:{page:window.location.href,referrer:document.referrer||void 0}})})()},[r]),(0,a.jsx)(p.Provider,{value:{referralCode:r,deleteReferralCookie:()=>{let e=new URL(window.location.href);for(let t of d.fQ)e.searchParams.delete(t);window.history.replaceState({},"",e.toString()),s.A.remove(d.tt);var t=d.tt;try{window.localStorage.removeItem(t)}catch{}l(null)}},children:e})}},59365:(e,t,r)=>{"use strict";r.d(t,{CL:()=>o,FS:()=>s,e_:()=>a,jC:()=>n,q$:()=>i});let a="NEXT_COUNTRY",o="NEXT_LOCALE",s=[{code:"ar",label:"Argentina",short:"AR",flag:"\uD83C\uDDE6\uD83C\uDDF7",locale:"es"},{code:"mx",label:"M\xe9xico",short:"MX",flag:"\uD83C\uDDF2\uD83C\uDDFD",locale:"latam"},{code:"cl",label:"Chile",short:"CL",flag:"\uD83C\uDDE8\uD83C\uDDF1",locale:"latam"},{code:"uy",label:"Uruguay",short:"UY",flag:"\uD83C\uDDFA\uD83C\uDDFE",locale:"es"},{code:"co",label:"Colombia",short:"COL",flag:"\uD83C\uDDE8\uD83C\uDDF4",locale:"latam"},{code:"br",label:"Brasil",short:"BR",flag:"\uD83C\uDDE7\uD83C\uDDF7",locale:"pt"},{code:"us",label:"United States",short:"US",flag:"\uD83C\uDDFA\uD83C\uDDF8",locale:"en"}],n="ar";function i(e){let t=s.find(t=>t.locale===e);return t?.code}Object.fromEntries(s.map(e=>[e.code,e]))},59931:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});let a={src:"/_next/static/media/cooper-logo.d96a943a.png",height:64,width:256,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAD1BMVEX/////
1//////////////+Rd1MVAAAABXRSTlNeVkR4aQ81KHsAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAAZSURBVHicBcEBAQAAAIIgrf5vDqiAkwTLcgDQABmMgnP4AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2}},63709:(e,t,r)=>{"use strict";r.d(t,{UC:()=>d,bL:()=>l,l9:()=>c,q7:()=>u,zG:()=>m});var a=r(95155),o=r(12115),s=r(57793),n=r(2793),i=r(79544);let l=s.bL,c=s.l9;s.ZL,s.Pb,s.H_,s.z6,s.hN,s.wv,s.i3;let d=o.forwardRef(({className:e,sideOffset:t=8,...r},o)=>(0,a.jsx)(s.ZL,{children:(0,a.jsx)(s.UC,{ref:o,sideOffset:t,className:(0,i.p)("z-50 w-[300px] overflow-hidden rounded-2xl bg-bg-white-0 p-2 shadow-regular-md ring-1 ring-inset ring-stroke-soft-200","flex flex-col gap-1","data-[side=bottom]:origin-top data-[side=left]:origin-right data-[side=right]:origin-left data-[side=top]:origin-bottom","data-[state=open]:animate-in data-[state=open]:fade-in-0","data-[state=closed]:animate-out data-[state=closed]:fade-out-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));d.displayName="DropdownMenuContent";let u=o.forwardRef(({className:e,inset:t,...r},o)=>(0,a.jsx)(s.q7,{ref:o,className:(0,i.p)("group/item relative cursor-pointer select-none rounded-lg p-2 text-paragraph-sm text-text-strong-950 outline-none","flex items-center gap-2","transition duration-200 ease-out","data-[highlighted]:bg-bg-weak-50","focus:outline-none","data-[disabled]:text-text-disabled-300",t&&"pl-9",e),...r}));function m({className:e,as:t,...r}){return(0,a.jsx)(t||"div",{className:(0,i.p)("size-5 text-text-sub-600","group-has-[[data-disabled]]:text-text-disabled-300",e),...r})}u.displayName="DropdownMenuItem",m.displayName="DropdownItemIcon",o.forwardRef(({className:e,...t},r)=>(0,a.jsx)(s.YJ,{ref:r,className:(0,i.p)("flex flex-col gap-1",e),...t})).displayName="DropdownMenuGroup",o.forwardRef(({className:e,...t},r)=>(0,a.jsx)(s.JU,{ref:r,className:(0,i.p)("px-2 py-1 text-subheading-xs uppercase text-text-soft-400",e),...t})).displayName="DropdownMenuLabel",o.forwardRef(({className:e,inset:t,children:r,...o},l)=>(0,a.jsxs)(s.ZP,{ref:l,className:(0,i.p)("group/item relative cursor-pointer select-none rounded-lg p-2 text-paragraph-sm text-text-strong-950 outline-0","flex items-center gap-2","transition duration-200 ease-out","data-[highlighted]:bg-bg-weak-50","data-[disabled]:text-text-disabled-300",t&&"pl-9",e),...o,children:[r,(0,a.jsx)("span",{className:"flex-1"}),(0,a.jsx)(m,{as:n.ye6})]})).displayName="DropdownMenuSubTrigger",o.forwardRef(({className:e,...t},r)=>(0,a.jsx)(s.G5,{ref:r,className:(0,i.p)("z-50 w-max overflow-hidden rounded-2xl bg-bg-white-0 p-2 shadow-regular-md ring-1 ring-inset ring-stroke-soft-200","flex flex-col gap-1","data-[state=open]:animate-in data-[state=open]:fade-in-0","data-[state=closed]:animate-out data-[state=closed]:fade-out-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})).displayName="DropdownMenuSubContent"},64970:(e,t,r)=>{"use strict";r.d(t,{Oj:()=>m,Pt:()=>o,Qr:()=>f,fd:()=>g,kT:()=>n,ky:()=>s,mi:()=>u,s_:()=>p});let a=["mx","cl","uy","br"],o="COOPER_GEO",s="COOPER_GEO_REDIRECT";function n(e){return!!e&&a.includes(e)}let i=["/","/servicios/comportamiento","/servicios/comportamiento/contacto","/servicios/entrenamiento-intensivo","/sobre-cooper"],l={mx:i,cl:i,uy:i,br:i},c={ar:"es-AR",mx:"es-MX",cl:"es-CL",uy:"es-UY",br:"pt-BR"};function d(e){return e&&(e.length>1&&e.endsWith("/")?e.slice(0,-1):e)||"/"}function u(e,t){return!n(t)||l[t].includes(d(e))}function m(e,t){let r=d(t);return n(e)?"/"===r?`/${e}`:`/${e}${r}`:r}function p(e){return m(e,"/")}let h=RegExp(`^/(${a.join("|")})(/.*)?$`);function f(e){let t=d(e).match(h);return t?{country:t[1],basePath:d(t[2]??"/")}:{country:"ar",basePath:d(e)}}function g(e){let t=d(e),r=a.filter(e=>u(t,e));return 0===r.length?[]:[{hrefLang:c.ar,path:t},...r.map(e=>({hrefLang:c[e],path:m(e,t)})),{hrefLang:"x-default",path:t}]}},68048:(e,t,r)=>{"use strict";r.d(t,{PlugAuthSync:()=>x,PlugSDKProvider:()=>f,A:()=>g});var a=r(95155),o=r(65596),s=r(82849),n=r(98825),i=r(12115),l=r(37882);async function c(e,t,{body:r={},headers:a={},queryParams:o={},next:s={},cache:n}={}){try{let s=t.startsWith("/")?t:`/${t}`,n=new URL(`https://3haaiy6roi.execute-api.us-east-1.amazonaws.com/prod-2${s}`);n.search=new URLSearchParams(o).toString();let i={method:e,headers:{...a,"Content-Type":"application/json","x-api-key":"Rfz7NH7GgE6h9pqqnLV3q3p6ZVRdOZIv9HDj4pyD"}};Object.keys(r).length>0&&(i.body=JSON.stringify(r));let l=await fetch(n,i),c=await l.json();if(200!==l.status&&200!==c.status_code)throw new d(l.status,c);return{data:c,response:l}}catch(e){throw!(e instanceof d),e}}
1class d extends Error{constructor(e,t){super(`API Error: ${t.message||"Unspecified error"}`),this.name="ApiError",this.statusCode=e,this.type=t.type,this.message=t.message}}let u=(0,i.createContext)({children:null,initializePlug:()=>Promise.resolve(),restartPlug:()=>Promise.resolve(),scriptReady:!1}),m="Rfz7NH7GgE6h9pqqnLV3q3p6ZVRdOZIv9HDj4pyD";async function p(e){try{let t,r=null,a=e||s.A.get("cooper_token");if(a)try{let e=await fetch("https://3haaiy6roi.execute-api.us-east-1.amazonaws.com/prod-2/users/session",{headers:{Authorization:a,"Content-Type":"application/json",...m?{"x-api-key":m}:{}}});e.ok&&(r=await e.json())}catch{}if(r?.id)t=r.id;else{let e=s.A.get("devrev_plug_user_ref");t=e||(0,n.A)(),e||s.A.set("devrev_plug_user_ref",t,{expires:365})}let o={user_ref:t,account_traits:{display_name:"Cooper Web App",domains:["www.cooperpetcare.app"]}};if(r){let e=s.A.get("referral_code"),t={description:e?`Registrado desde Cooper Web App con c\xf3digo de referido ${e}`:"Registrado desde Cooper Web App"};if(e&&(t.custom_fields={tnt__referral_code:e}),r.contact?.email&&(t.email=r.contact.email),r.contact?.name?t.display_name=`${r.contact.name} ${r.contact.last_name||""}`.trim():r.contact?.email&&(t.display_name=r.contact.email),r.contact?.phone){let e=r.contact.phone_area||"+54";t.phone_numbers=[`${e}${r.contact.phone}`]}o.user_traits=t}let{data:i}=await ((e,t={})=>c("POST",e,t))("/devrev/session-token",{body:{rev_info:o}});return i.access_token||null}catch{return null}}function h(e){return{app_id:"DvRvStPZG9uOmNvcmU6ZHZydi11cy0xOmRldm8vMTU0d2JXUENUVDpwbHVnX3NldHRpbmcvMV9ffHxfXzIwMjQtMTItMTAgMTI6Mzg6MzcuNDk4NTE0NzExICswMDAwIFVUQw==xlxendsDvRv",session_token:e,enable_session_recording:!0,session_recording_options:{sessionReplay:{maskAllInputs:!1,maskInputOptions:{color:!1,date:!1,"datetime-local":!1,month:!1,number:!1,range:!1,search:!1,text:!1,time:!1,url:!1,week:!1,textarea:!1,password:!0},maskTextFn:e=>e}}}}let f=({children:e})=>{let[t,r]=(0,i.useState)(!1),s=(0,i.useCallback)(async e=>{if(!window.plugSDK)return;let t=await p(e);if(t){let e=h(t);window.plugSDK.init(e)}else window.plugSDK.init({app_id:"DvRvStPZG9uOmNvcmU6ZHZydi11cy0xOmRldm8vMTU0d2JXUENUVDpwbHVnX3NldHRpbmcvMV9ffHxfXzIwMjQtMTItMTAgMTI6Mzg6MzcuNDk4NTE0NzExICswMDAwIFVUQw==xlxendsDvRv"})},[!0]),n=(0,i.useCallback)(async e=>{if(window.plugSDK)if(window.plugSDK.isPlugInitialized){let{sessionId:t,tabId:r}=window.plugSDK.getSessionDetails();window.plugSDK.shutdown();let a=await p(e);if(a){let e=h(a);window.plugSDK.init({...e,session_recording_options:{...e.session_recording_options,sessionDetails:{sessionId:t,tabId:r}}})}else window.plugSDK.init({app_id:"DvRvStPZG9uOmNvcmU6ZHZydi11cy0xOmRldm8vMTU0d2JXUENUVDpwbHVnX3NldHRpbmcvMV9ffHxfXzIwMjQtMTItMTAgMTI6Mzg6MzcuNDk4NTE0NzExICswMDAwIFVUQw==xlxendsDvRv"})}else await s(e)},[!0,s]);return(0,a.jsxs)(u.Provider,{value:{children:e,initializePlug:s,restartPlug:n,scriptReady:t},children:[(0,a.jsx)(o.default,{src:"https://plug-platform.devrev.ai/static/plug.js",strategy:"lazyOnload",onReady:()=>{r(!0)}}),e]})},g=()=>{let e=(0,i.useContext)(u);if(!e)throw Error("usePlugSDK must be used within a PlugSDKProvider");return e};function x(){let{status:e,data:t}=(0,l.useSession)(),{initializePlug:r,restartPlug:a,scriptReady:o}=g(),s=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if("loading"===e||!o)return;let n=t?.idToken;null===s.current||"loading"===s.current?r(n):e!==s.current&&a(n),s.current=e},[e,o,t,r,a]),null}},68866:(e,t,r)=>{"use strict";r.d(t,{CooperAppPrefetcher:()=>o});var a=r(12115);function o(){let e=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!e.current){var t;t=async()=>{try{var t;if(!(!(t=navigator.connection)||!t.saveData&&!(t.effectiveType&&["slow-2g","2g"].includes(t.effectiveType))&&1))return;let r=await fetch("/ordenes",{priority:"low"});if(!r.ok)return;let a=await r.text(),o=function(e){let t;if(!e.includes('id="root"')&&!e.includes("id='root'"))return[];let r=[],a=/<script[^>]+src=["']([^"']+)["'][^>]*>/gi;for(;null!==(t=a.exec(e));)t[1].includes("/assets/")&&r.push(t[1]);let o=/<link[^>]+rel=["']stylesheet["'][^>]+href=["']([^"']+)["'][^>]*>/gi;for(;null!==(t=o.exec(e));)t[1].includes("/assets/")&&r.push(t[1]);let s=/<link[^>
1]+href=["']([^"']+)["'][^>]+rel=["']stylesheet["'][^>]*>/gi;for(;null!==(t=s.exec(e));)t[1].includes("/assets/")&&!r.includes(t[1])&&r.push(t[1]);return r}(a);if(0===o.length)return;for(let t of(e.current=o,o)){let e=document.createElement("link");e.rel="prefetch",e.href=t,e.as=t.endsWith(".css")?"style":"script",document.head.appendChild(e)}}catch{}},"requestIdleCallback"in window?window.requestIdleCallback(t):requestAnimationFrame(()=>setTimeout(t,2e3))}},[]),null}},85254:()=>{},86388:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var a=r(95155),o=r(73321),s=r(12115);function n({children:e}){let t=(0,o.usePathname)(),r="/"===t||"/be-a-cooper"===t,n="/refugios"===t||"/propuesta-prbs"===t||t.startsWith("/alianzas/"),i=(0,s.useRef)(null);return((0,s.useEffect)(()=>{if(!r)return;let e=i.current;if(!e)return;let t=()=>window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0,a=-1,o=()=>{let r=Math.min(1,Math.max(0,t()/120));r!==a&&(a=r,e.style.opacity=String(r),e.style.pointerEvents=r>.05?"auto":"none",e.setAttribute("aria-hidden",r<.5?"true":"false"))},s=0,n=0,l=-1,c=()=>{let e=t();e===l?n+=1:(n=0,l=e),o(),s=n<30?requestAnimationFrame(c):0},d=()=>{n=0,s||(s=requestAnimationFrame(c))},u=()=>{o(),d()},m=["touchstart","touchmove","wheel"];return o(),window.addEventListener("scroll",u,{passive:!0}),m.forEach(e=>window.addEventListener(e,d,{passive:!0})),()=>{cancelAnimationFrame(s),window.removeEventListener("scroll",u),m.forEach(e=>window.removeEventListener(e,d))}},[r]),n)?null:r?(0,a.jsx)("div",{ref:i,"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",willChange:"opacity",position:"relative",zIndex:50},children:e}):(0,a.jsx)(a.Fragment,{children:e})}},86707:(e,t,r)=>{"use strict";r.d(t,{CountrySuggestBanner:()=>p});var a=r(95155),o=r(12115),s=r(73321),n=r(82849),i=r(2793),l=r(59365),c=r(64970);let d={mx:{question:"\xbfEst\xe1s en M\xe9xico?",cta:"Ir a Cooper M\xe9xico",stay:"Quedarme ac\xe1"},cl:{question:"\xbfEst\xe1s en Chile?",cta:"Ir a Cooper Chile",stay:"Quedarme ac\xe1"},uy:{question:"\xbfEst\xe1s en Uruguay?",cta:"Ir a Cooper Uruguay",stay:"Quedarme ac\xe1"},br:{question:"Voc\xea est\xe1 no Brasil?",cta:"Ir para a Cooper Brasil",stay:"Ficar aqui"}},u={mx:{notice:"Te trajimos a Cooper M\xe9xico seg\xfan tu ubicaci\xf3n.",back:"Ver la versi\xf3n de Argentina"},cl:{notice:"Te trajimos a Cooper Chile seg\xfan tu ubicaci\xf3n.",back:"Ver la versi\xf3n de Argentina"},uy:{notice:"Te trajimos a Cooper Uruguay seg\xfan tu ubicaci\xf3n.",back:"Ver la versi\xf3n de Argentina"},br:{notice:"Trouxemos voc\xea para a Cooper Brasil com base na sua localiza\xe7\xe3o.",back:"Ver a vers\xe3o da Argentina"}},m="cooper-country-banner-dismissed";function p(){let e=(0,s.usePathname)(),[t,r]=(0,o.useState)(null);if((0,o.useEffect)(()=>{if(sessionStorage.getItem(m))return;let{country:e}=(0,c.Qr)(window.location.pathname);if("ar"!==e){n.A.get(c.ky)&&(n.A.remove(c.ky),r({kind:"redirected",country:e}));return}let t=n.A.get(c.Pt);(0,c.kT)(t)&&!n.A.get(l.e_)&&r({kind:"suggest",country:t})},[e]),!t)return null;let p=()=>{sessionStorage.setItem(m,"1"),r(null)},h=l.FS.find(e=>e.code===t.country)?.flag;return(0,a.jsxs)("div",{className:"fixed inset-x-4 bottom-4 z-[90] mx-auto max-w-md rounded-2xl border border-gray-200/80 bg-white p-4 shadow-[0_8px_24px_rgba(0,0,0,0.12)]",children:[(0,a.jsx)("button",{type:"button","aria-label":"Cerrar",onClick:p,className:"absolute right-2.5 top-2.5 rounded-md p-1 text-gray-400 transition-colors hover:bg-black/5 hover:text-gray-600",children:(0,a.jsx)(i.Qks,{className:"size-4"})}),"suggest"===t.kind?(0,a.jsxs)("div",{className:"flex flex-col gap-3 pr-5",children:[(0,a.jsxs)("p",{className:"text-sm font-medium text-gray-900",children:[(0,a.jsx)("span",{className:"mr-1.5",children:h}),d[t.country].question]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("a",{href:(0,c.s_)(t.country),className:"rounded-lg bg-[#178C7D] px-3 py-2 text-xs font-semibold text-white transition-colors hover:bg-[#137165]",children:d[t.country].cta}),(0,a.jsx)("button",{type:"button",onClick:()=>{n.A.set(l.e_,"ar",{expires:365}),n.A.set(l.CL,"es",{expires:365}),p()},className:"rounded-lg px-3 py-2 text-xs font-medium text-gray-600 transition-colors hover:bg-black/5",children:d[t.country].stay})]})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-2 pr-5",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-700",children:[(0,a.jsx)("span",{className:"mr-1.5",children:h}),u[t.country].notice]}),(0,a.jsx)("a",{href:"/?pais=ar",className:"text-xs font-semibold text-[#178C7D] underline-offset-2 hover:underline",children:u[t.country].back})]})]})}},98492:(e,t,r)=>{"use strict";r.d(t,{MagicLinkAutoLogin:()=>i});var a=r(12115),o=r(73321),s=r(37882),n=r(68048);let i=()=>((()=>{let e=(0,o.useSearchParams)(),t=(0,o.useRouter)(),{status:r}
1=(0,s.useSession)(),{restartPlug:i}=(0,n.A)(),l=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let a=e.get("magicToken");!a||"authenticated"===r||l.current||(l.current=!0,(async()=>{try{console.log("\uD83D\uDD10 Auto-login with magic token...");let r=await (0,s.signIn)("magic-link",{redirect:!1,magicToken:a});if(r?.ok){console.log("✅ Magic link login successful");let r=new URLSearchParams(e.toString());r.delete("magicToken");let a=r.get("redirect");r.delete("redirect");let o=r.toString(),s=window.location.pathname,n=a||s,l=o?`${n}?${o}`:n;t.replace(l),t.refresh(),i()}else{console.error("❌ Magic link login failed:",r?.error);let a=new URLSearchParams(e.toString());a.delete("magicToken");let o=a.toString(),s=o?`${window.location.pathname}?${o}`:window.location.pathname;t.replace(s)}}catch(s){console.error("❌ Error during magic link auto-login:",s);let r=new URLSearchParams(e.toString());r.delete("magicToken");let a=r.toString(),o=a?`${window.location.pathname}?${a}`:window.location.pathname;t.replace(o)}finally{l.current=!1}})())},[e,r,t,i]),l.current})(),null)}},e=>{e.O(0,[6127,8823,8500,8437,3608,622,7804,875,8433,8010,6320,9892,5222,822,3929,8441,3794,7358],()=>e(e.s=5969)),_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.