PageSourceSearch

https://www.butterfield.com/_next/static/chunks/8493-1ca46fe5f06f24b0.js?dpl=dpl_2ANzJHaNQqHNw82of7mjz4AnJfQV

js butterfield.com collected 2026-10-02 04:50:31 UTC 17,312 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8493],{21455:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(37876),o=t(5264),n=t(89099);let l=e=>{let{children:r}=e,{asPath:t}=(0,n.useRouter)();return(0,a.jsx)(o.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.6},className:"min-h-screen w-full",children:r})}},52789:(e,r,t)=>{t.d(r,{I:()=>a});let a="travel-guide-alternatives"},74595:(e,r,t)=>{let a,o;t.r(r),t.d(r,{default:()=>Q});var n=t(37876),l=t(21875),s=t(96365),i=t(47646),d=t(63555),c=t(59487),u=t(55690),m=t(99045),p=t(48230),y=t.n(p),h=t(14232),x=t(47641),v=t(27395),b=t(51988),g=t(30100),f=t(35814);let S=h.forwardRef((e,r)=>{let{label:t,labelPlacement:a="end",sx:o,...l}=e,s=(0,n.jsx)(g.A,{ref:r,disableRipple:!0,sx:[{padding:"var(--s-1)",color:"var(--border-strong)","& .MuiSvgIcon-root":{fontSize:"20px"},"&.Mui-checked":{color:"var(--accent)"},"&:hover":{background:"transparent"},"&.Mui-focusVisible":{boxShadow:"var(--focus-ring)",borderRadius:"var(--r-pill)"},"&.Mui-disabled":{opacity:.42}},...Array.isArray(o)?o:[o]],...l});return t?(0,n.jsx)(f.A,{control:s,label:t,labelPlacement:a,sx:{gap:"var(--s-1)",margin:0,"& .MuiFormControlLabel-label":{fontFamily:"var(--font-ui)",fontSize:"var(--fs-sm)",color:"var(--text)"},"&.Mui-disabled .MuiFormControlLabel-label":{opacity:.42}}}):s});S.displayName="BrRadioButton";var A=t(91176),j=t(63853),E=t(7982);async function T(e){let r=a.getPlace();e(r.formatted_address),o=r}let _=e=>{let{setAddress:r,isFieldError:t,missingFields:l,background:s}=e,[d,c]=(0,h.useState)(""),[u,m]=(0,h.useState)(null),[p,y]=(0,h.useState)(null),x=(0,h.useRef)(null),[v]=(0,j.d7)(p,500);return(0,h.useEffect)(()=>{((e,r)=>{let t=document.createElement("script");t.type="text/javascript",t.readyState?t.onreadystatechange=function(){("loaded"===t.readyState||"complete"===t.readyState)&&(t.onreadystatechange=null,r())}:t.onload=()=>r(),t.src=e,document.getElementsByTagName("head")[0].appendChild(t)})("https://maps.googleapis.com/maps/api/js?key=".concat("AIzaSyCtkouLiSsz7KGwcOaQjCGWJF4qSgYxC-c","&libraries=places"),()=>{(a=new window.google.maps.places.Autocomplete(x.current,{types:["address"]})).setFields(["address_components","formatted_address"]),a.addListener("place_changed",()=>T(c))})},[]),(0,h.useEffect)(()=>{d?m(o):m(null)},[d]),(0,h.useEffect)(()=>{(e=>{let t,a,o,n,l,s;console.log(null==e?void 0:e.address_components),e&&(e.address_components.forEach(e=>{let r=e.types,i=e.long_name;r.includes("street_number")&&(t=i),r.includes("route")&&(a=i),r.includes("locality")&&(o=i),r.includes("administrative_area_level_1")&&(n=i),r.includes("country")&&(l=i),r.includes("postal_code")&&(s=i)}),r(t,a,o,n,l,s))})(u)},[u]),(0,n.jsx)("div",{className:"search-location-input",style:{width:"100%"},children:(0,n.jsx)(i.A,{sx:{width:"100%",marginBottom:3},error:t(l,"Address"),children:(0,n.jsx)(E.A,{error:t(l,"Address"),inputRef:x,id:"address",name:"address",variant:"outlined",sx:{width:"100%",background:s||"none",borderRadius:"7px","& .MuiInputBase-input":{fontFamily:"Mulish",fontStyle:"normal"}},value:d,onChange:e=>c(e.target.value),InputProps:{style:{fontFamily:"Mulish",fontStyle:"normal"}},InputLabelProps:{style:{fontFamily:"Mulish",fontStyle:"normal"}}})})})};var N=t(93860),P=t(48069),I=t(20047);function C(e,r){switch(r.type){case"SET_FIRST_NAME":return{...e,firstName:r.payload};case"SET_LAST_NAME":return{...e,lastName:r.payload};case"SET_EMAIL_ADDRESS":return{...e,emailAddress:r.payload};case"SET_ADDRESS":return{...e,address:r.payload};case"SET_CITY":return{...e,city:r.payload};case"SET_STATE_PROVINCE":return{...e,stateProvince:r.payload};case"SET_COUNTRY":return{...e,country:r.payload};case"SET_ZIP_POSTAL":return{...e,zipPostal:r.payload};case"SET_APARTMENT_NUMBER":return{...e,apartmentNumber:r.payload};case"SET_OPTED_FOR_DIGITAL":return{...e,optedForDigital:r.payload};case"SET_TRAVEL_HISTORY":return{...e,travelHistory:r.payload};case"SET_BROCHURE_OPTION":return{...e,brochureType:r.payload};case"SET_NEWSLETTER_SUBSCRIPTION_INFO":return{...e,newsletterSubscription:r.payload};case"SET_MISSING_FIELDS":return{...e,missingFields:r.payload}}}var R=t(88110),w=t(42723),F=t.n(w);let M="@media (max-width: 899px)",k="var(--s-10)",O="var(--s-6)",L="var(--s-10)",D="var(--s-8)",z="var(--s-5)",B="var(--s-5)",H=I.k.kg_cream,G=[{label:"View Small Group Guide",href:"https://isu.pub/Jy5msfg"},{label:"View Bespoke Guide",href:"https://isu.pub/lRkIDly"}],W={background:"none",borderRadius:"var(--r-1)",fontFamily:"var(--font-sans)",fontSize:"16px",color:"var(--ink)","& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--border-strong)",borderWidth:"1.5px"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"var(--border-strong)"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--accent)",borderWidth:"1.5px"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"#9b2c2c"}},Y={"& .MuiFormControl-root":{marginBottom:0},"& .MuiOutlinedInput-root":{background:"none",borderRadius:"var(--r-1)",color:"var(--ink)"},"& .MuiOutlinedInput-input":{padding:"var(--s-3) var(--s-4)",fontFamily:"var(--font-sans) !important",fontSize:"16px"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--border-strong)",borderWidth:"1.5px"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"var(--border-strong)"},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--accent) !important"},"& .Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"#9b2c2c !important"}},q=e=>{let{children:r}=e;return(0,n.jsx)(l.A,{sx:{maxWidth:700,mx:"auto",display:"flex",flexDirection:"column",gap:L,[M]:{gap:D}},children:r})},V=e=>{let{visible:r}=e;return(0,n.jsx)(l.A,{"aria-hidden":!0,sx:{position:"absolute",left:0,right:0,bottom:0,height:"var(--s-12)",display:"flex",alignItems:"flex-end",justifyContent:"center",paddingBottom:"var(--s-2)",pointerEvents:"none",zIndex:"var(--z-raised)",background:"linear-gradient(to bottom, ".concat("rgba(249,247,244,0)"," 0%, ").concat(H," 72%)"),opacity:+!!r,transition:"opacity 220ms ease"}
1,children:(0,n.jsx)(l.A,{component:"span",sx:{display:"inline-flex",animation:"brochureScrollHintBob 1.4s ease-in-out infinite","@keyframes brochureScrollHintBob":{"0%, 100%":{transform:"translateY(0)"},"50%":{transform:"translateY(3px)"}}},children:(0,n.jsx)(l.A,{component:"span",sx:{width:9,height:9,mb:"2px",borderRight:"2px solid var(--accent)",borderBottom:"2px solid var(--accent)",transform:"rotate(45deg)"}})})})},U=e=>{let{children:r,onClose:t,footer:a,scrollRef:o,showScrollHint:s=!1}=e;return t?(0,n.jsxs)(l.A,{sx:{position:"relative",display:"flex",flexDirection:"column",width:"800px",maxWidth:"100%",height:"806px",maxHeight:"calc(100vh - var(--s-16))",[M]:{height:"100dvh",maxHeight:"100dvh"}},children:[(0,n.jsx)(b.A,{onClose:t,mobileQuery:M}),(0,n.jsxs)(l.A,{sx:{position:"relative",flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:[(0,n.jsx)(l.A,{ref:o,sx:{flex:1,minHeight:0,overflowY:"auto",padding:"".concat(k," ").concat(k," var(--s-6)"),scrollbarWidth:"thin",scrollbarColor:"var(--border-strong) transparent","&::-webkit-scrollbar":{width:"var(--s-1)"},"&::-webkit-scrollbar-thumb":{background:"var(--border-strong)"},[M]:{padding:"".concat(O," ").concat(O," var(--s-6)")}},children:(0,n.jsx)(q,{children:r})}),(0,n.jsx)(V,{visible:s})]}),a&&(0,n.jsx)(l.A,{sx:{flexShrink:0,background:H,padding:"".concat(B," ").concat(k," ").concat(k),[M]:{padding:"".concat(B," ").concat(O," ").concat(O)}},children:(0,n.jsx)(l.A,{sx:{maxWidth:700,mx:"auto"},children:a})})]}):(0,n.jsx)(l.A,{sx:{position:"relative",padding:k,[M]:{padding:O}},children:(0,n.jsxs)(q,{children:[r,a]})})},J=e=>({"& label":{color:e?"#9b2c2c":"var(--text)"}}),K=e=>{let{children:r}=e;return(0,n.jsx)(A.Ay,{textStyle:"bodyRegular",component:"span",color:"text",sx:{display:"block",mb:"6px",userSelect:"none"},children:r})},Q=function(){let{formDetails:e={},onClose:r,defaultBrochureType:t="Digital"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a="//app-sjh.marketo.com",o=()=>{console.log("Request a Brochure Form Loaded Successfully")},[p,b]=(0,h.useReducer)(C,{missingFields:[],firstName:"",lastName:"",emailAddress:"",address:"",apartmentNumber:"",city:null,stateProvince:null,country:null,zipPostal:null,travelHistory:"",brochureType:t,newsletterSubscription:null}),[g,f]=(0,h.useState)(!1),[j,E]=(0,h.useState)(!1),[T,I]=(0,h.useState)(!0),[w,k]=(0,h.useState)(!1),[O,B]=(0,h.useState)(!1),[H,q]=(0,h.useState)(null),[V,Q]=(0,h.useState)(!1),Z=(0,h.useRef)(null),X=!!r,[$,ee]=(0,h.useState)({streetAddress:"",city:"",stateProvince:"",country:"",zipPostal:"",apartmentNumber:""}),er="Digital Only"===((null==e?void 0:e.brochureFormat)||"Digital and Physical"),et=er?"Digital":p.brochureType,ea="Digital"===et,eo=["FirstName","LastName","Email","previousTraveler","brochureType","streetAddress","city","stateProvince","zipPostal","country"],en=["FirstName","LastName","Email","previousTraveler","brochureType"],el=(e,r)=>{ee(t=>({...t,[e]:r}))},es=async()=>{try{let e=window.MktoForms2.getForm(1416),r={FirstName:p.firstName,LastName:p.lastName,Email:p.emailAddress,previousTraveler:p.travelHistory,streetAddress:$.streetAddress,city:$.city,stateProvince:$.stateProvince,country:$.country,zipPostal:$.zipPostal,unitNumber:$.apartmentNumber,brochureType:et,additionalComments:"Mailing Address - ".concat(H),formEnvironment:"25619",inquirySubject:"New ".concat("true"===p.optedForDigital?"Digital ":"","Brochure Request - ").concat(et," - ").concat(p.firstName.trim()," ").concat(p.lastName.trim()),flexFieldInquiryType:1,flexFieldInquiryRequestChannel:0x5f5e102,flexFieldInquirySource:(0,N.A)(),implicitOptInDate:new Date().toISOString()},t=("Digital"===et?en:eo).filter(e=>!r.hasOwnProperty(e)||""==r[e]);0==t.length?(f(!0),e.addHiddenFields(r),e.submit(),e.onSuccess(()=>(console.log("Form Submitted Sucessfully"),F().dataLayer({dataLayer:{event:"form_submission",formId:1416},dataLayerName:"FormDataLayer"}),E(!0),f(!1),!1))):(b({type:"SET_MISSING_FIELDS",payload:t}),f(!1))}catch(e){console.log(e)}};(0,h.useEffect)(()=>{q("".concat($.streetAddress,", ")+"".concat($.apartmentNumber?"".concat($.apartmentNumber,", "):"")+"".concat($.city,", ")+"".concat($.stateProvince,", ")+"".concat($.country,", ")+"".concat($.zipPostal))},[$]),(0,h.useEffect)(()=>{(0,R.Rs)(a,k)},[]),(0,h.useEffect)(()=>{window.MktoForms2?window.MktoForms2.loadForm(a,"896-KLO-962",1416,o):I(!1)},[w]),(0,h.useEffect)(()=>{let e,r=Z.current;if(!X||!r||j)return void Q(!1);let t=()=>{Q(r.scrollHeight-r.scrollTop-r.clientHeight>8)};return t(),r.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&((e=new ResizeObserver(t)).observe(r),Array.from(r.children).forEac
1h(r=>e.observe(r))),()=>{r.removeEventListener("scroll",t),window.removeEventListener("resize",t),null==e||e.disconnect()}},[X,j]);let ei=e=>(0,R.pj)(p.missingFields,e),ed=ei("FirstName"),ec=ei("LastName"),eu=ei("Email"),em=ei("brochureType"),ep=ei("streetAddress"),ey=ei("city"),eh=ei("stateProvince"),ex=ei("country"),ev=ei("zipPostal"),eb=ei("previousTraveler");return j?(0,n.jsxs)(U,{onClose:r,children:[(0,n.jsx)(A.Ay,{textStyle:"h2",component:"h2",color:"text",children:"You're all set."}),(0,n.jsx)(A.Ay,{textStyle:"bodyRegular",component:"p",color:"text",children:"Thank you for signing up to receive our Travel Guide! We will send your catalog promptly. In the meantime, follow us on social for stories and inspiration from around the world."}),ea&&(0,n.jsx)(l.A,{sx:{display:"flex",flexDirection:"row",gap:z,[M]:{flexDirection:"column"}},children:G.map(e=>(0,n.jsx)(x.Ay,{variant:"secondary",size:"lg",component:y(),href:e.href,target:"_blank",rel:"noopener noreferrer",children:e.label},e.href))}),(0,n.jsx)(l.A,{sx:{display:"flex",gap:"var(--s-1)",ml:"-6px"},children:P.l.map(e=>{let{href:r,label:t,Icon:a}=e;return(0,n.jsx)(s.A,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":t,sx:{p:.75,"&:hover":{background:"rgba(0,0,0,0.05)"}},children:(0,n.jsx)(a,{sx:{width:22,height:22,color:"var(--ink)"}})},t)})})]}):(0,n.jsxs)(U,{onClose:r,scrollRef:Z,showScrollHint:V,footer:(0,n.jsx)(x.Ay,{variant:"primary",size:"lg",fullWidth:!0,disabled:g,onClick:es,children:g?"Submitting...":"Submit"}),children:[(0,n.jsx)(A.Ay,{textStyle:"h2",component:"h2",color:"text",children:"Request a Travel Guide"}),(0,n.jsx)(A.Ay,{textStyle:"bodyRegular",component:"p",color:"text",sx:{marginBlock:"calc(".concat(L," / -2)"),[M]:{marginBlock:"calc(".concat(D," / -2)")}},children:"Fill out the form below to receive your Travel Guides at home, or online."}),(0,n.jsxs)(l.A,{component:"form",noValidate:!0,sx:{display:"flex",flexDirection:"column",gap:z},children:[(0,n.jsxs)(l.A,{sx:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) minmax(0, 1fr)",columnGap:"var(--s-4)",alignItems:"start",[M]:{gridTemplateColumns:"minmax(0, 1fr)",rowGap:z}},children:[(0,n.jsx)(v.A,{id:"FirstName",name:"FirstName",label:"First name *",variant:"outlined",placeholder:"First",autoComplete:"given-name",error:ed,errorMessage:"Please enter your first name",value:p.firstName,onChange:e=>b({type:"SET_FIRST_NAME",payload:e.target.value}),sx:{mb:0,...J(ed)}}),(0,n.jsx)(v.A,{id:"LastName",name:"LastName",label:"Last name *",variant:"outlined",placeholder:"Last",autoComplete:"family-name",error:ec,errorMessage:"Please enter your last name",value:p.lastName,onChange:e=>b({type:"SET_LAST_NAME",payload:e.target.value}),sx:{mb:0,...J(ec)}})]}),(0,n.jsx)(v.A,{id:"Email",name:"Email",label:"Email *",type:"email",variant:"outlined",placeholder:"[email protected]",autoComplete:"email",error:eu,errorMessage:"Please enter your email address",value:p.emailAddress,onChange:e=>b({type:"SET_EMAIL_ADDRESS",payload:e.target.value}),sx:{mb:0,...J(eu)}}),!er&&(0,n.jsxs)(l.A,{children:[(0,n.jsx)(K,{children:"Please select a Travel Guide option *"}),(0,n.jsx)(i.A,{fullWidth:!0,children:(0,n.jsxs)(d.A,{error:em,labelId:"brochureType",id:"brochureType",name:"brochureType",value:p.brochureType||"",onChange:e=>b({type:"SET_BROCHURE_OPTION",payload:e.target.value}),sx:{...W,"& .MuiSelect-select":{padding:"var(--s-3) var(--s-4)"}},children:[(0,n.jsx)(c.A,{value:"Scheduled & Bespoke",children:"Print guide"}),(0,n.jsx)(c.A,{value:"Digital",children:"Digital guide (most environmentally friendly)"})]})})]}),et&&!ea&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.A,{children:[(0,n.jsx)(K,{children:"Address finder *"}),(0,n.jsx)(A.Ay,{textStyle:"bodyRegular",component:"p",color:"text-3",sx:{mb:"var(--s-2)"},children:"Please select an address from the finder"}),(0,n.jsx)(l.A,{sx:Y,children:(0,n.jsx)(_,{isFieldError:R.pj,missingFields:p.missingFields,setAddress:(e,r,t,a,o,n,l)=>{let s={streetAddress:e&&r?"".concat(e," ").concat(r):"",city:t||"",stateProvince:a||"",country:o||"",zipPostal:n||"",apartmentNumber:l||""};ee(s),B(!s.streetAddress||!s.city||!s.stateProvince||!s.country||!s.zipPostal)},background:"none"})})]}),(0,n.jsxs)(l.A,{children:[(0,n.jsx)(A.Ay,{textStyle:"bodyRegular",component:"p",color:"text",sx:{mb:z},children:"Please ensure the information below is correct for your preferred mailing address."}),(0,n.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",gap:z},children:[(0,n.jsx)(v.A,{id:"streetAddress",label:"Street address *",variant:"outlined",value:$.streetAddress,onChange:e=>el("streetAddress",e.target.value),error:ep,sx:{mb:0,...J(ep)}}),(0,n.jsx)(v.A,{id:"city",label:"City *",variant:"outlined",value:$.city,onChange:e=>el("city",e.target.value),error:ey,sx:{mb:0,...J(ey)}}),(0,n.jsx)(v.A,{id:"stateProvince",label:"State/Province *",variant:"outlined",value:$.stateProvince,onChange:e=>el("stateProvince",e.target.value),error:eh,sx:{mb:0,...J(eh)}}),(0,n.jsx)(v.A,{id:"country",label:"Country *",variant:"outlined",value:$.country,onChange:e=>el("country",e.target.value),error:ex,sx:{mb:0,...J(ex)}}),(0,n.jsx)(v.A,{id:"zipPostal",label:"ZIP/Postal code *",variant:"outlined",value:$.zipPostal,onChange:e=>el("zipPostal",e.target.value),error:ev,sx:{mb:0,...J(ev)}}),(0,n.jsx)(v.A,{id:"apartmentNumber",label:"Apartment number (optional)",variant:"outlined",value:$.apartmentNumber,onChange:e=>el("apartmentNumber",e.target.value),sx:{mb:0,...J()}})]})]})]}),(0,n.jsxs)(i.A,{component:"fieldset",error:eb,children:[(0,n.jsx)(u.A,{component:"legend",sx:{"&, &.Mui-focused, &.Mui-error":{color:"inherit"}},children:(0,n.jsx)(K,{children:"Have you travelled with us before? *"})}),(0,n.jsxs)(m.A,{"aria-label":"travel-history",name:"previousTraveler",children:[(0,n.jsx)(S,{value:"true",label:"Yes",checked:"true"===p.travelHistory,onChange:()=>b({type:"SET_TRAVEL_HISTORY",payload:"true"})}),(0,n.jsx)(S,{value:"false",label:"No",checked:"false"===p.travelHistory,onChange:()=>b({type:"SET_TRAVEL_HISTORY",payload:"false"})})]})]}),(0,n.jsxs)(A.Ay,{textStyle:"bodyRegular",component:"p",color:"text-3",children:["By submitting this form, you consent to Butterfield & Robinson's use of your personal information as described 
1in our"," ",(0,n.jsx)(y(),{href:"/privacy-policy",target:"_blank",style:{color:"var(--link)"},children:"Privacy Policy"}),", including sending travel inspiration and insider access. You may unsubscribe anytime using the link in any email."]})]})]})}}}]);

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.