1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7877,1166],{50504:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/local-offices/[slug]/marketing-resources",function(){return l(84243)}])},64389:function(e,t,l){"use strict";l.d(t,{Z:function(){return w}});var n=l(85893),r=l(64171),a=l(11163),s=l(93901),i=l(8475),o=l(96772),u=l(41664),c=l.n(u),d=l(67294),f=l(30303),m=l(28900);function p(e){let{}=e,{asPath:t,query:l}=(0,a.useRouter)(),r=t.split("/").filter(e=>e),[s,i]=(0,d.useState)("PLEASE SELECT"),[o,u]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{if(2===r.length&&"local-offices"===r[0]){i("About");return}let e=m.k8.find(e=>t.includes(e.id));e&&i(e.label)},[s,t,r]),(0,n.jsx)("section",{className:"flex w-full flex-col gap-10 px-4 sm:px-0",children:(0,n.jsxs)("nav",{className:"relative flex w-full flex-col gap-[2px] xl:flex-row",children:[(0,n.jsxs)("button",{onClick:()=>u(!o),className:"flex w-full items-center justify-between rounded-[30px] border-b-[1px] border-solid border-b-black bg-canvas px-6 py-4 text-center font-medium uppercase sm:h-16 md:hidden",children:[(0,n.jsx)("p",{className:"paragraph-large font-normal",children:s}),(0,n.jsx)("div",{children:(0,n.jsx)(f.OId,{size:24,className:"".concat(o?"rotate-180":""," transition-all duration-500")})})]}),(0,n.jsx)("div",{className:"flex h-[max-content] w-full items-start text-start text-black md:flex md:justify-evenly ".concat(o?"absolute top-16 z-20 flex flex-col md:relative md:flex-row":"hidden"," sm:gap-[1px]"),children:m.k8.map((e,a)=>{let{id:s,label:o,onClick:d,onTouch:f}=e,m="about"===s?"/local-offices/".concat(l.slug):"/local-offices/".concat(l.slug,"/").concat(s),p="about"===s?2===r.length&&"local-offices"===r[0]:t.includes(s);return(0,n.jsx)(c(),{href:m,className:"flex h-16 w-full items-center justify-center bg-canvas px-3 transition-all duration-300 hover:font-[500] sm:text-center",onClick:e=>{null==d||d(e),i(o),u(!1)},onTouchEnd:e=>{null==f||f(e),i(o),u(!1)},children:(0,n.jsx)("p",{className:"paragraph-small duration-400 flex h-16 w-full items-center justify-center uppercase text-black transition-all duration-300 hover:font-[500] sm:text-center ".concat(p?"!font-[500]":""),children:o})},"".concat(s,"-").concat(a))})})]})})}var g=l(9473),h=l(19108),x=l(31434),b=l(64210),v=l(11189);let _=()=>{let{query:e}=(0,a.useRouter)(),t=(0,g.I0)();(0,d.useEffect)(()=>{e.slug&&(async()=>{let l=(0,h.s3)(!1),n=await (0,x.Nl)(l,String(e.slug)),r=await l.fetch(b.HP,{slug:e.slug}),a=await (0,x.lN)(l,String(e.slug)),s=await (0,x.Ge)(l,String(e.slug));t((0,v.YF)(n.length>0)),t((0,v.aX)((null==r?void 0:r.length)>0)),t((0,v.G_)(a.length>0)),t((0,v.cD)(s.length>0))})()},[e.slug,t])};function w(e){let{children:t,title:l="",currentPageTitle:u="",heroImage:c}=e;_();let d=(0,a.useRouter)(),f=null==c?void 0:c.alt,m=null==c?void 0:c.image,g=String(d.query.slug).split("-").map(e=>e.length>2?(0,s.Q0)(e):e.toUpperCase()).join(" "),h=["local-offices",l||g,u?u.toLocaleLowerCase():""];return(0,n.jsxs)("section",{className:"mx-auto flex w-full max-w-[1600px] flex-col gap-6 py-10 sm:w-[90%]",children:[(0,n.jsx)("div",{className:"w-full px-4 sm:px-0",children:(0,n.jsx)(i.Z,{segments:h,currentPageTitle:u,baseColor:"rgba(0, 0, 0, 1)"})}),(0,n.jsx)("h4",{className:"px-4 sm:px-0",children:"A&K ".concat(l||g)}),m&&(0,n.jsx)("div",{className:"relative h-[500px] w-full",children:(0,n.jsx)(o.Z,{className:"object-cover",fill:!0,src:(0,r.u)(m).auto("format").url(),alt:f||"Hero image of ".concat(l)})}),(0,n.jsx)(p,{}),t]})}},78919:function(e,t,l){"use strict";l.d(t,{f:function(){return d}});var n=l(67294),r=l(9473),a=l(33299),s=l(21842),i=l(7247),o=l(67878),u=l(11163),c=l(3085);let d=()=>{var e,t;let l=(0,r.v9)(c.S8),d=(0,r.v9)(o._Q),f=(0,r.v9)(o.dB),m=null==f?void 0:f.currentAgencyCode,p=Number(l.akId),g=d.data.individual_id,h=(0,a.useSession)(),x=(0,u.useRouter)(),b=(0,n.useMemo)(()=>{var e,t;return(0,s.rD)((null===(t=h.data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.email)||l.email)},[null===(t=h.data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.email,l.email]),v=(0,n.useMemo)(()=>{let e={user_id:p,is_deep_link:l.dl.enable,is_agent:l.agent.isAgent,email_hash:b,page_path:x.asPath};return g&&(e.agent_id=g),m&&(e.agency_code=m),e},[g,m,b,p,l.agent.isAgent,l.dl.enable,x.asPath]),_=(0,n.useCallback)((e,t)=>{(0,i.Qx)("dmc_page_view",{page_name:e,...t,...v})},[v]);return{logPageView:_,logBrochureDownload:(0,n.useCallback)((e,t)=>{(0,i.Qx)("dmc_brochure_download",{brochure_type:e,brochure_name:t||"DMC Brochure",...v})},[v]),logResourceDownload:(0,n.useCallback)((e,t,l)=>{(0,i.Qx)("dmc_resource_download",{resource_title:e,resource_url:t,office_slug:l||"",...v})},[v]),logDMCFormSubmit:(0,n.useCallback)(e=>{(0,i.Qx)("dmc_form_submit",{event_category:"request-quote",form_type:e.formType,destination:e.destination,destination_country:e.destinationCountry,number_of_adults:e.numberOfAdults,number_of_children:e.numberOfChildren,has_newsletter_subscription:e.hasNewsletterSubscription,...v})},[v]),commonInformation:v}}},91650:function(e,t,l){"use strict";l.d(t,{Bd:function(){return n},DD:function(){return c},Es:function(){return p},Oz:function(){return h},X2:function(){return x},XH:function(){return o},_s:function(){return d},dR:function(){return a},gD:function(){return g},k6:function(){return u},l6:function(){return s},rD:function(){return i},uC:function(){return m},ud:function(){return r},vQ:function(){return f}}),l(67294);let n=e=>{let t={};for(let l of e){let e=String(l.bkgid||l.bkgID);t[e]||(t[e]=new Set),void 0!==l.subGroup&&null!==l.subGroup&&t[e].add(l.subGroup)}return Object.values(t).some(e=>e.size>1)};function r(e){return e.replace(/<[^>]*>/g,"").trim()}let a=(e,t)=>{e.preventDefault(),e.stopPropagation();let l=t.current;l&&(l.blur(),l.click())},s=e=>Object.entries(e).reduce((t,l)=>
1{let[n,r]=l;return n in e&&(t[n]="boolean"==typeof r?r.toString():r),t},{}),i={maxSizeBytes:20971520,allowedExtensions:[".jpg",".jpeg",".png",".pdf",".gif",".bmp",".webp",".heic",".heif"],allowedMimeTypes:["image/jpeg","image/png","image/gif","image/bmp","image/webp","image/heic","image/heif","application/pdf"]},o=e=>{if(!e)return{isValid:!1,error:"No file selected"};let t=e.name.toLowerCase(),l=t.substring(t.lastIndexOf("."));return i.allowedExtensions.includes(l)?i.allowedMimeTypes.includes(e.type)?{isValid:!0}:{isValid:!1,error:"Invalid file format. Please upload a valid passport scan."}:{isValid:!1,error:"Invalid file type. Please upload a passport scan in JPG, PNG, or PDF format."}},u=e=>e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()),c=(e,t)=>{let l=e.find(e=>e.value===t);return l?l.label:t},d=e=>{var t;let l=null===(t=e.split("/").pop())||void 0===t?void 0:t.replace(".pdf","");return"/api/download?id=file-".concat(l,"-pdf")},f=(e,t)=>{if(null===e)return{main:null,sub:null};if("ft"===t||"in"===t){if("in"===t)return{main:Math.floor(e/12),sub:Math.round(e%12)};let l=Math.floor(e);return{main:l,sub:Math.round((e-l)*12)}}{let t=Math.floor(e);return{main:t,sub:Math.round((e-t)*100)}}},m=(e,t)=>{if(null===e)return{main:null,sub:null};if("lbs"!==t&&"oz"!==t)return{main:e,sub:0};{if("oz"===t)return{main:Math.floor(e/16),sub:Math.round(e%16)};let l=Math.floor(e);return{main:l,sub:Math.round((e-l)*16)}}},p=e=>{let{heightMain:t,heightSub:l,isMetricSystem:n}=e;return t?n?t+(l||0)/100:t+(l||0)/12:null},g=e=>e||null,h=(e,t)=>{if(!e||!t)return!1;let l=new Date(e),n=new Date(new Date(t));return n.setMonth(n.getMonth()+3),l.getTime()<n.getTime()},x=e=>{let{phoneInput:t,dialCode:l}=e;t&&l&&setTimeout(()=>{var e;let n=null===(e=t.parentElement)||void 0===e?void 0:e.querySelector(".iti__selected-flag");if(n&&!n.querySelector(".iti__dial-code-display")){let e=document.createElement("span");e.className="iti__dial-code-display",e.style.cssText="font-family: var(--mantine-font-family); font-size: 14px; margin-left: 4px; white-space: nowrap;",e.textContent="+".concat(l),n.appendChild(e),n.style.minWidth="max-content"}},100)}},84243:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return x}});var n=l(85893),r=l(64389),a=l(49930),s=l(25675),i=l.n(s),o=l(16889),u=l(9676),c=l(91650),d=l(34736),f=l(90071),m=l(64171),p=l(78919),g=l(67294);let h=e=>{let{marketingResources:t,slug:l}=e;(0,f.Z)({redirectPath:"/dmc",pathOnPreview:"/local-offices/".concat(l,"/marketing-resources")});let{logResourceDownload:r,logPageView:a}=(0,p.f)();(0,g.useEffect)(()=>{a("marketing_resources",{office_name:l})},[a,l]);let s=async(e,t)=>{r(e,l);let n=(0,c._s)(t);await (0,u.Wk)(n)};return(0,n.jsx)("section",{className:"flex min-h-screen max-w-[1440px] flex-col gap-10",children:t&&t.length>0?(0,n.jsx)("div",{className:"grid w-full grid-cols-1 gap-6 sm:grid-cols-2",children:t.map(e=>(0,n.jsxs)("div",{className:"flex flex-col gap-6 border border-[var(cta-border-color)] p-6 sm:flex-row sm:items-start",children:[(0,n.jsx)("div",{className:"relative aspect-[1] w-full shrink-0 sm:h-[145px] sm:w-[145px]",children:(0,n.jsx)(i(),{src:(0,m.u)(e.coverImage).url(),alt:e.title,fill:!0,className:"object-cover"})}),(0,n.jsxs)("div",{className:"flex w-full flex-col justify-between gap-6 ",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h5",{children:e.title}),(0,n.jsx)("div",{className:"prose",children:(0,n.jsx)(o.YI,{value:e.description})})]}),(0,n.jsx)(d.k,{className:"button&subheader cta-burnt-sienna cta-hover-black self-start",onClick:()=>s(e.title,e.resourceFile),children:"Download"})]})]},e._id))}):(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center px-4 py-20 text-center",children:[(0,n.jsx)("h2",{children:"No marketing resources available"}),(0,n.jsx)("p",{className:"max-w-md ",children:"There are currently no marketing resources available for this office. Please check back later for updates."})]})})};h.getLayout=e=>{var t;return(0,n.jsx)(a.Z,{navMenu:e.props.navMenu,footer:e.props.footer,guestMenus:e.props.guestMenus,agentMenus:e.props.agentMenus,pathOnPreview:"/local-offices/".concat(e.props.slug,"/marketing-resources"),redirectPath:"/dmc",site:e.props.site,children:(0,n.jsx)(r.Z,{currentPageTitle:"Marketing Resources",t
1itle:null===(t=e.props.localOffice.office[0])||void 0===t?void 0:t.name,children:e})})};var x=!0;t.default=h}},function(e){e.O(0,[4738,6130,5970,8127,4838,9317,3768,4396,8845,3365,6660,648,123,7439,509,3662,1111,3219,2510,2191,3507,4208,7473,6957,5334,4679,8495,960,1263,578,9108,6300,514,7881,2670,9930,1434,9774,2888,179],function(){return e(e.s=50504)}),_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.