PageSourceSearch

https://www.expatinsurance.com/_next/static/chunks/4424-d914d54c948cbb92.js

js expatinsurance.com collected 2026-10-02 17:18:23 UTC 12,377 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4424,6054],{74424:function(e,t,i){i.d(t,{Z:function(){return Clients_ClientLayout}});var l=i(85893);i(67294);var a=i(83658),n=i(68029),r=i(31046),o=i(61914),s=i(88329),c=i(37945),u=i(12553),h=i(57879),f=i(90092),d=i(3712),b=i(41664),p=i.n(b),x=i(85105),m=i(12236),g=i(11163);let v={FaBookReader:m.H0,FaCalendarDay:m.S0,FaClipboardList:m.W9,FaCompass:m.Ph,FaDna:m.tn,FaExclamationCircle:m.a4,FaFile:m.pP,FaHome:m.xn,FaInfoCircle:m.DA,FaMoneyBill:m.Gi,FaPenFancy:m.yG,FaPlaneDeparture:m.j8,FaPlusCircle:m.Y5,FaQuestionCircle:m.MX,FaRegEnvelope:m.uW,FaRegFilePdf:m.B$,FaSmileWink:m.Xn,FaTv:m.Rs},DynamicFaIcon=e=>{let{name:t}=e,i=v[t]||m.DA;return(0,l.jsx)(n.x,{mr:"2",children:(0,l.jsx)(u.J,{as:i,boxSize:4})})},NavItem=e=>{let{disabled:t,href:i,icon:a,label:o,subLinks:c}=e,b=(0,g.useRouter)(),m=!1;b.pathname===i&&(m=!0),c&&c.forEach(e=>{b.pathname.includes(e.href)&&(m=!0)});let v=(0,r.ff)("brand.50","gray.900");return(0,l.jsxs)(n.x,{children:[(0,l.jsx)(p(),{href:t?"#":i,children:(0,l.jsx)(h.r,{style:{textDecoration:"none"},_focus:{boxShadow:"none"},children:(0,l.jsxs)(s.k,{align:"center",py:"4",px:"4",mx:"4",borderRadius:"lg",role:"group",cursor:"pointer",_hover:t?{bg:"gray.400",color:"gray.200"}:{bg:"brand.400",color:"white"},_first:{fontWeight:"600"},children:[(0,l.jsx)(DynamicFaIcon,{name:a}),(0,l.jsx)(f.x,{fontSize:"md",pl:3,fontWeight:600,children:o})]})})}),c&&m&&(0,l.jsx)(d.K,{pt:"10px",pb:"20px",children:c.map((e,t)=>(0,l.jsx)(h.r,{href:e.href,role:"group",display:"block",target:e.blank?"_blank":"_self",py:1,rounded:"md",_hover:{bg:v},children:(0,l.jsxs)(d.K,{direction:"row",align:"center",children:[(0,l.jsx)(n.x,{children:(0,l.jsx)(f.x,{pl:"70px",transition:"all .3s ease",_groupHover:{color:"brand.400"},fontWeight:600,fontSize:"sm",children:e.title})}),(0,l.jsx)(s.k,{transition:"all .3s ease",transform:"translateX(-10px)",opacity:0,_groupHover:{opacity:"100%",transform:"translateX(0)"},justify:"flex-end",align:"center",flex:1,children:(0,l.jsx)(u.J,{color:"brand.400",w:5,h:5,as:x.X})})]})},t))})]})};var ui_SideNav=e=>{var t;let{isOpen:i}=(0,a.q)();return(0,l.jsxs)(n.x,{overflow:"scroll",transition:"width 2s ease",borderRight:"1px solid",borderRightColor:(0,r.ff)("gray.200","gray.700"),bg:(0,r.ff)("gray.100","brand.900"),w:{base:i?"full":"0",md:60},pos:"fixed",h:"full",zIndex:"1",children:[(0,l.jsx)(s.k,{h:"20",alignItems:"center",mx:"8",justifyContent:"space-between",children:(0,l.jsx)(p(),{href:"/",children:(0,l.jsx)(c.E,{w:{base:"100px",lg:"150px"},transform:"translate(10px, 5px)",alt:"logo",justify:"flex-start",src:(0,r.ff)("https://expatinsurance.imgix.net/expatinsurance/logo/logo_light.svg","https://expatinsurance.imgix.net/expatinsurance/logo/logo_dark.svg")})})}),(0,l.jsx)(n.x,{transform:"translateY(-20px)",transition:"all 0.2s ease",opacity:{base:i?"1":"0",md:"1"},borderBottom:"1px",borderBottomColor:(0,r.ff)("gray.200","gray.700"),py:"15%",children:e.sectionOne.map(e=>(0,l.jsx)(NavItem,{label:e.label,icon:e.icon,href:e.href,bold:e.bold,disabled:e.disabled,subLinks:e.subLinks},e.label))}),(0,l.jsx)(n.x,{pb:"100px",transition:"all 0.2s ease",pt:"5%",opacity:{base:i?"1":"0",md:"1"},children:null===(t=e.sectionTwo)||void 0===t?void 0:t.map(e=>(0,l.jsx)(NavItem,{label:e.label,icon:e.icon,href:e.href,bold:e.bold,disabled:e.disabled},e.label))})]})},C=i(12519),F=i(73636),k=i(38488),y=i(47451),j=i(45560),q=i(88767),w=i(26054);let logout=async()=>{let{error:e}=await w.supabase.auth.signOut();if(e)throw e};var S=i(84429);let DarkModeSwitcher=()=>{let{colorMode:e,toggleColorMode:t}=(0,r.If)();return(0,l.jsx)(l.Fragment,{children:"dark"===e?(0,l.jsx)(C.h,{"aria-label":"dark",bg:"transparent",fontSize:"20px",icon:(0,l.jsx)(y.N,{}),onClick:t}):(0,l.jsx)(C.h,{"aria-label":"light",bg:"transparent",icon:(0,l.jsx)(j.k,{}),onClick:t,fontSize:"20px"})})};var ui_TopNav=()=>{let e=function(){let e=(0,q.useQueryClient)();return(0,q.useMutation)(()=>logout(),{onSuccess:()=>{e.removeQueries()}})}(),t=(0,g.useRouter)(),{toggleColorMode:i}=(0,r.If)(),a=(0,r.ff)("gray.200","gray.700"),n=(0,r.ff)("gray.100","brand.900");return(e.isSuccess&&t.push("/quote"),e.isLoading)?(0,l.jsx)(S.Z,{}):(0,l.jsx)(s.k,{mb:12,ml:"0",px:{base:4,md:4}
1,height:"20",alignItems:"center",bg:n,justifyContent:{base:"space-between"},borderRadius:"10px",borderBottom:"1px solid",borderBottomColor:a,pos:"relative",children:(0,l.jsxs)(F.U,{alignItems:"center",justifyContent:{base:"space-between",md:"flex-end"},spacing:{base:"12"},mr:8,ml:{base:8,md:0},w:"100%",children:[(0,l.jsx)(DarkModeSwitcher,{transform:"scale(1.8)",onClick:i,_hover:{cursor:"pointer"},ml:"-5%"}),(0,l.jsx)(s.k,{children:(0,l.jsx)(k.z,{onClick:()=>e.mutate(),children:"Log Out"})})]})})},I=i(2962),ui_LayoutSkeleton=e=>{let{sideBar:t,children:i,seo:s}=e,{isOpen:c}=(0,a.q)();return(0,l.jsxs)(n.x,{overflow:"hidden",minH:"100vh",bg:(0,r.ff)("white","brand.900"),children:[(0,l.jsx)(I.PB,{title:s}),(0,l.jsx)(ui_SideNav,{sectionOne:t[0],sectionTwo:t[1],display:{base:"none",md:"block"}}),(0,l.jsx)(o.U,{in:c,animateOpacity:!0,children:(0,l.jsx)(ui_SideNav,{sectionOne:t[0],sectionTwo:t[1]})}),(0,l.jsx)(ui_TopNav,{}),(0,l.jsx)(n.x,{borderRadius:"100px",ml:{base:0,md:60},maxW:"container.xl",zIndex:"0",px:{base:3,md:"12"},children:i})]})},L=JSON.parse('[[{"label":"Home","href":"/client","icon":"FaHome"},{"label":"Health","href":"/client/quote/health","icon":"FaPlusCircle","subLinks":[{"title":"Price Comparison","href":"/client/quote/health/results"},{"title":"Top Sellers","href":"/client/quote/health/top-sellers"},{"title":"Catastrophic","href":"/client/quote/health/catastrophic"},{"title":"US Coverage","href":"/client/quote/health/us-coverage"}]},{"label":"Travel","href":"/client/quote/travel","icon":"FaCompass","subLinks":[{"title":"Medical Coverage","href":"/client/quote/travel/medical-coverage"},{"title":"Trip Cancellation","href":"/client/quote/travel/trip-cancellation"}]},{"label":"Life","href":"/client/quote/life","icon":"FaDna","subLinks":[{"title":"International","href":"/client/quote/life/international"}]},{"label":"Mexico P&C","href":"/client/quote/mexico","icon":"FaHome","subLinks":[{"title":"Tourist Auto","href":"/client/quote/mexico/tourist-auto"},{"title":"Resident Auto","href":"/client/quote/mexico/resident-auto"},{"title":"Homeowners","href":"/client/quote/mexico/homeowners"}]},{"label":"Evacuation","href":"/client/quote/evacuation","icon":"FaPlaneDeparture"}],[{"label":"Buyers Guides","href":"/client/buyers-guides","icon":"FaQuestionCircle","subLinks":[{"title":"Travel vs Health Insurance","href":"/articles/travel-insurance-vs-health-insurance","blank":true},{"title":"Preexisting Conditions","href":"/articles/preexisting-conditions","blank":true}]},{"label":"Consultation","href":"/client/consultation","icon":"FaSmileWink"},{"label":"Webinar","href":"/client/webinar","icon":"FaTv"},{"label":"Webinar","href":"/client/webinar","icon":"FaTv"},{"label":"Get Help","href":"/client/get-help","icon":"FaQuestionCircle"}]]'),_=JSON.parse('[[{"label":"Home","href":"/client","icon":"FaHome"},{"label":"Health","href":"/client/quote/health","icon":"FaPlusCircle","subLinks":[{"title":"Price Comparison","href":"/client/quote/health/results"},{"title":"Top Sellers","href":"/client/quote/health/top-sellers"},{"title":"Catastrophic","href":"/client/quote/health/catastrophic"},{"title":"US Coverage","href":"/client/quote/health/us-coverage"}]},{"label":"Travel","href":"/client/quote/travel","icon":"FaCompass","subLinks":[{"title":"Medical Coverage","href":"/client/quote/travel/medical-coverage"},{"title":"Trip Cancellation","href":"/client/quote/travel/trip-cancellation"},{"title":"Visa Specific Coverage","href":"/client/quote/travel/visa-specific-coverage"}]},{"label":"Life","href":"/client/quote/life","icon":"FaDna","subLinks":[{"title":"International","href":"/client/quote/life/international"},{"title":"US Domestic","href":"/client/quote/life/us-domestic"},{"title":"Mexico","href":"/client/quote/life/mexico"}]},{"label":"Mexico P&C","href":"/client/quote/mexico","icon":"FaHome","subLinks":[{"title":"Tourist Auto","href":"/client/quote/mexico/tourist-auto"},{"title":"Resident Auto","href":"/client/quote/mexico/resident-auto"},{"title":"Homeowners","href":"/client/quote/mexico/homeowners"}]},{"label":"Evacuation","href":"/client/quote/evacuation","icon":"FaPlaneDeparture"}],[{"label":"Buyers Guides","href":"/client/buyers-guides","icon":"FaQuestionCircle","subLinks":[{"title":"Travel vs Health Insurance","href":"/articles/travel-insurance-vs-health-insurance","blank":true},{"title":"Preexisting Conditions","href":"/articles/preexisting-conditions","blank":true}]},{"label":"Reminders","href":"/client/reminder","icon":"FaExclamationCircle"},{"label":"Get Help","href":"/client/get-help","icon":"FaQuestionCircle"},{"label":"Consultation","href":"/client/consultation","icon":"FaSmileWink"},{"label":"Webinar","href":"/client/webinar","icon":"FaTv"},{"label":"Policies","href":"/client/policies","icon":"FaInfoCircle"},{"label":"Tickets","href":"/client/tickets","icon":"FaRegEnvelope"},{"label":"Renewals","href":"/client/renewals","icon":"FaCalendarDay"},{"label":"Documents","href":"/client/documents","icon":"FaRegFilePdf"},{"label":"Referrals","href":"/client/referrals","icon":"FaPenFancy"}]]'),P=JSON.parse('[[{"label":"Author Portal","href":"/staff","icon":"FaBookReader"}],[]]'),D=JSON.parse('[[{"label":"Home","href":"/broker","icon":"FaHome"},{"label":"Leads","href":"/broker/leads","icon":"FaClipboardList"},{"label":"Payments","href":"/broker/payments","icon":"FaMoneyBill"},{"label":"Policies","href":"/broker/policies","icon":"FaFile"}],[{"label":"Health","href":"/client/quote/health","icon":"FaPlusCircle","subLinks":[{"title":"Price Comparison","href":"/client/quote/health/results"},{"title":"Top Sellers","href":"/client/quote/health/top-sellers"},{"title":"Catastrophic","href":"/client/quote/health/catastrophic"},{"title":"US Coverage","href":"/client/quote/health/us-coverage"}]},{"label":"Travel","href":"/client/quote/travel","icon":"FaCompass","subLinks":[{"title":"Medical Coverage","href":"/client/quote/travel/medical-coverage"},{"title":"Trip Cancellation","href":"/client/quote/travel/trip-cancellation"}]},{"label":"Life","href":"/client/quote/life","icon":"FaDna","subLinks":[{"title":"International","href":"/client/quote/life/international"}]},{"label":"Mexico P&C","href":"/client/quote/mexico","icon":"FaHome","subLinks":[{"title":"Tourist Auto","href":"/client/quote/mexico/tourist-auto"},{"title":"Resident Auto","href":"/client/quote/mexico/resident-auto"},{"title":"Homeowners","href":"/client/quote/mexico/homeowners"}]},{"label":"Evacuation","href":"/client/quote/evacuation","icon":"FaPlaneDeparture"}]]'),T=i(52239),Clients_ClientLayout=e=>{let{children:t,seo:i}=e,{data:a}=(0,T.Z)();return(0,l.jsx)(ui_LayoutSkeleton,{user:a,seo:i,sideBar:(null==a?void 0:a.user_role)==="admin"?_:(null==a?void 0:a.user_role)==="author"?P:(null==a?void 0:a.user_role)==="broker"?D:L,children:t})}},84429:function(e,t,i){i.d(t,{Z:function(){return Loader}});var l=i(85893),a=i(48899),n=i(68029),r=i(90092);function Loader(){return(0,l.jsxs)(n.x,{p:12,display:"flex",justifyContent:"center",alignItems:"center",flexDir:"column",children:[(0,l.jsx)(a.$,{label:"Loading",thickness:"5px",emptyColor:"gray.700",speed:"1s",color:"brand.400",size:"xl"}),(0,l.jsx)(r.x,{pt:6,fontWeight:600,color:"gray.500",children:"Loading Data..."})]})}},52239:function(e,t,i){i.d(t,{Z:function(){return useUser}});var l=i(88767),a=i(26054);let getUser=async e=>{if(!e)throw Error("No User ID Found");let{data:t,error:i}=await a.supabase.from("users").select().eq("id",e).single();if(i)throw Error(i.message);if(!t)throw Error("User not found");return t};function useUser(){let e=a.supabase.auth.user();return(0,l.useQuery)("user",()=>getUser(null==e?void 0:e.id))}},26054:function(e,t,i){i.d(t,{N:function(){return getServiceSupabase},supabase:function(){return o}});var l=i(30218),a=i(83454);let n="https://maplyowstbnbzdfepnbj.supabase.co",r=a.env.SUPABASE_SERVICE_KEY,o=(0,l.eI)(n,"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1hcGx5b3dzdGJuYnpkZmVwbmJqIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NDUzMDY3MTIsImV4cCI6MTk2MDg4MjcxMn0.R1ZtuhfpBY-ksaYMpk4QODSqfoyFWBLMJd9L8Y9MufA"),getServiceSupabase=()=>(0,l.eI)(n,r)}}]);

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.