PageSourceSearch

https://www.abercrombiekent.com/_next/static/chunks/pages/my-accou…mmunication-preferences-8b3f78dd7c9bd258.js

js abercrombiekent.com collected 2026-10-02 11:38:57 UTC 17,412 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6803,1166],{61885:function(e,t,r){"use strict";r.d(t,{r:function(){return J}});var n=r(67294),a=r(36289),i=r(15851),s=r(58495),o=r(62232);let l=(0,n.createContext)(null),c=l.Provider,u=()=>(0,n.useContext)(l);var m=r(94151),d=Object.defineProperty,p=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&f(e,r,t[r]);if(p)for(var r of p(t))b.call(t,r)&&f(e,r,t[r]);return e},x=(e,t)=>{var r={};for(var n in e)h.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&p)for(var n of p(e))0>t.indexOf(n)&&b.call(e,n)&&(r[n]=e[n]);return r};let k={orientation:"horizontal",spacing:"lg",size:"sm",offset:"xs"},v=(0,n.forwardRef)((e,t)=>{let r=(0,s.N4)("SwitchGroup",k,e),{children:a,value:l,defaultValue:u,onChange:d,orientation:p,spacing:h,size:b,wrapperProps:f,offset:v}=r,y=x(r,["children","value","defaultValue","onChange","orientation","spacing","size","wrapperProps","offset"]),[w,j]=(0,i.C)({value:l,defaultValue:u,finalValue:[],onChange:d});return n.createElement(c,{value:{value:w,onChange:e=>{let t=e.currentTarget.value;j(w.includes(t)?w.filter(e=>e!==t):[...w,t])},size:b}},n.createElement(m.I.Wrapper,g(g({labelElement:"div",size:b,__staticSelector:"SwitchGroup",ref:t},f),y),n.createElement(o.K,{spacing:h,orientation:p,offset:v},a)))});v.displayName="@mantine/core/SwitchGroup";var y=r(56817),w=Object.defineProperty,j=Object.defineProperties,S=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,O=(e,t,r)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t)=>{for(var r in t||(t={}))P.call(t,r)&&O(e,r,t[r]);if(C)for(var r of C(t))N.call(t,r)&&O(e,r,t[r]);return e},L=(e,t)=>j(e,S(t));let E={xs:16,sm:20,md:24,lg:30,xl:36},z={xs:32,sm:38,md:46,lg:56,xl:72},_={xs:12,sm:14,md:18,lg:22,xl:28},T={xs:5,sm:6,md:7,lg:9,xl:11},A={xs:4,sm:5,md:6,lg:8,xl:10};var M=(0,y.k)((e,{size:t,radius:r,color:n,labelPosition:a,error:i})=>{let s=e.fn.size({size:t,sizes:_}),o=e.fn.size({size:r,sizes:e.radius}),l=e.fn.variant({variant:"filled",color:n}),c=e.fn.size({size:t,sizes:z}),u="xs"===t?1:2,m=e.fn.variant({variant:"filled",color:"red"}).background;return{input:{clip:"rect(1px, 1px, 1px, 1px)",height:0,width:0,overflow:"hidden",whiteSpace:"nowrap",padding:0,WebkitClipPath:"inset(50%)",clipPath:"inset(50%)",position:"absolute"},track:L(I({},e.fn.focusStyles("input:focus + &")),{cursor:e.cursorType,overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:o,backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[2],border:`1px solid ${i?m:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]}`,height:e.fn.size({size:t,sizes:E}),minWidth:c,margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:e.fn.size({size:t,sizes:T}),fontWeight:600,order:"left"===a?2:1,userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none",zIndex:0,lineHeight:0,color:"dark"===e.colorScheme?e.colors.dark[1]:e.colors.gray[6],transition:`color 150ms ${e.transitionTimingFunction}`,"input:checked + &":{backgroundColor:l.background,borderColor:l.background,color:e.white,transition:`color 150ms ${e.transitionTimingFunction}`},"input:disabled + &":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],borderColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],cursor:"not-allowed"}}),thumb:{position:"absolute",zIndex:1,borderRadius:o,boxSizing:"border-box",display:"flex",backgroundColor:e.white,height:s,width:s,border:`1px solid ${"dark"===e.colorScheme?e.white:e.colors.gray[3]}`,left:`${u}px`,transition:`left 150ms ${e.transitionTimingFunction}`,"& > *":{margin:"auto"},"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":""},"input:checked + * > &":{left:`calc(100% - ${s}px - ${u}px)`,borderColor:e.white},"input:disabled + * > &":{borderColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],backgroundColor:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[0]}},trackLabel:{height:"100%",display:"grid",placeContent:"center",minWidth:c-s,paddingInline:e.fn.size({size:t,sizes:A}),margin:`0 0 0 ${s+u}px`,transition:`margin 150ms ${e.transitionTimingFunction}
1`,"input:checked + * > &":{margin:`0 ${s+u}px 0 0`}}}}),W=r(12756),K=r(4846),Z=Object.defineProperty,D=Object.defineProperties,$=Object.getOwnPropertyDescriptors,F=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,U=(e,t,r)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))G.call(t,r)&&U(e,r,t[r]);if(F)for(var r of F(t))H.call(t,r)&&U(e,r,t[r]);return e},V=(e,t)=>D(e,$(t)),B=(e,t)=>{var r={};for(var n in e)G.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&F)for(var n of F(e))0>t.indexOf(n)&&H.call(e,n)&&(r[n]=e[n]);return r};let Y={offLabel:"",onLabel:"",size:"sm",radius:"xl",error:!1},J=(0,n.forwardRef)((e,t)=>{var r;let o=(0,s.N4)("Switch",Y,e),{className:l,color:c,label:m,offLabel:d,onLabel:p,id:h,style:b,size:f,radius:g,wrapperProps:x,children:k,unstyled:v,styles:y,classNames:w,thumbIcon:j,sx:S,checked:C,defaultChecked:P,onChange:N,labelPosition:O,description:I,error:L,disabled:E}=o,z=B(o,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","thumbIcon","sx","checked","defaultChecked","onChange","labelPosition","description","error","disabled"]),_=u(),{classes:T}=M({size:(null==_?void 0:_.size)||f,color:c,radius:g,labelPosition:O,error:!!L},{unstyled:v,styles:y,classNames:w,name:"Switch"}),{systemStyles:A,rest:Z}=(0,W.x)(z),D=(0,a.M)(h),$=_?{checked:_.value.includes(Z.value),onChange:_.onChange}:{},[F,G]=(0,i.C)({value:null!=(r=$.checked)?r:C,defaultValue:P,finalValue:!1});return n.createElement(K.Z,R(R({className:l,sx:S,style:b,id:D,size:(null==_?void 0:_.size)||f,labelPosition:O,label:m,description:I,error:L,disabled:E,__staticSelector:"Switch",classNames:w,styles:y,unstyled:v,"data-checked":$.checked||void 0},A),x),n.createElement("input",V(R({},Z),{disabled:E,checked:F,onChange:e=>{_?$.onChange(e):null==N||N(e),G(e.currentTarget.checked)},id:D,ref:t,type:"checkbox",className:T.input})),n.createElement("label",{htmlFor:D,className:T.track},n.createElement("div",{className:T.thumb},j),n.createElement("div",{className:T.trackLabel},F?p:d)))});J.displayName="@mantine/core/Switch",J.Group=v},66166:function(e,t,r){"use strict";r.d(t,{Y:function(){return a},u:function(){return i}});var n=r(67294),a=(0,n.createContext)(void 0),i=function(){return(0,n.useContext)(a)}},29607:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-account/communication-preferences",function(){return r(65798)}])},77402:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=(0,r(71301).Z)("exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]])},80392:function(e,t,r){"use strict";var n=r(85893),a=r(2058),i=r(3085),s=r(49737),o=r(61885),l=r(34736),c=r(71417),u=r(67294),m=r(9473);t.Z=e=>{let{subscriptionLists:t,onSubmit:r,loading:d,title:p,subtitle:h,submitButtonText:b,form:f}=e,g=(0,m.v9)(i.S8),x=(0,m.I0)(),k=(0,m.v9)(i.nI),v=(0,m.v9)(i.K6);return(0,u.useEffect)(()=>{(null==g?void 0:g.email)&&"empty"===v&&x((0,a.IN)(g.email))},[g,k,v]),(0,u.useEffect)(()=>{g&&f.setValues({...f.values,firstName:g.firstName,lastName:g.lastName,email:g.email})},[g]),(0,u.useEffect)(()=>{k&&t.forEach(e=>{f.setFieldValue(e.mktSubscriptionListId.toString(),k[e.mktSubscriptionListId]||!1)})},[k]),(0,n.jsx)(c.N,{className:"mantine-notification-provider",position:"bottom-right",children:(0,n.jsxs)("div",{className:" flex flex-col ",children:[(0,n.jsxs)("div",{className:"mb-[60px] flex flex-col gap-[36px]",children:[(0,n.jsx)("h3",{children:p}),(0,n.jsx)("h5",{children:h})]}),(0,n.jsxs)("form",{onSubmit:f.onSubmit(r),className:"relative flex flex-col gap-6",children:[(0,n.jsx)(s.f,{visible:d,zIndex:1e3}),t.map(e=>(0,n.jsxs)("div",{className:"flex-between-center border-b border-canvas pb-3",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h6",{children:(null==e?void 0:e.mktSubscriptionWeb)||""})}),(0,n.jsx)("div",{className:"flex-end-center",children:(0,n.jsx)(o.r,{classNames:{track:"switch-track",input:"switch-input",thumb:"switch-thumb",label:"switch-label"},...f.getInputProps(e.mktSubscriptionListId.toString(),{type:"checkbox"})})})]},e.mktSubscriptionListId)),(0,n.jsxs)("div",{className:"ml-auto mt-12 flex gap-3",children:[(0,n.jsx)(l.k,{disabled:d,onClick:()=>f.reset(),className:"button&subheader cta-hover-burnt-sienna cta-transparent px-13 h-[54px] self-center ",children:"Cancel"}),(0,n.jsx)(l.k,{disabled:d,type:"submit",className:"button&subheader cta-black cta-hover-burnt-sienna px-13 h-[54px] self-end ",children:b})]})]})]})})}},66713:function(e,t,r){"use strict";var n=r(85893);r(67294);var a=r(95117),i=r(80514),s=r(77402);let o=e=>{let{icon:t,title:r,message:i}=e;return(0,n.jsxs)("div",{className:"flex items-center gap-6",children:[t,(0,n.jsxs)("div",{children:[(0,n.jsx)(a.x,{className:"uppercase",weight:500,children:r}),(0,n.jsx)(a.x,{children:i})]})]})};t.Z={Success:e=>{let{title:t,message:r}=e;return(0,n.jsx)(o,{icon:(0,n.jsx)(i.Rf,{width:"24px",height:"24px",color:"var(--primaryDark)"}),title:t,message:r})},Error:e=>{let{title:t,message:r}=e;return(0,n.jsx)(o,{icon:(0,n.jsx)(s.Z,{stroke:1,size:24,color:"var(--primaryDark)"}),title:t,message:r})}}},88160:function(e,t,r){"use strict";var n=r(85893),a=r(9008),i=r.n(a),s=r(11163),o=r(19108),l=r(93901),c=r(59282);t.Z=e=>{let{title:t,description:r,keywords:a,ogImage:u,disallowRobots:m,breadcrumbItems:d}=e,p=(0,s.useRouter)(),h=/^\/(?:uk\/?|au\/?)?$/.test(p.asPath),b=/^\/((?:uk|au)\/)?destinations\//.test(p.asPath),f=p.asPath.startsWith("/uk/"),g=p.asPath.startsWith("/au/"),x=f||g?p.asPath.replace("/uk/","/").replace("/au/","/").split("?")[0]:h?"/":p.asPath.split("?")[0],k="Abercrombie & Kent is a leading luxury travel company specialising in award winning tailor-made vacations and escorted tours since 1962.",v=h&&"/"===p.asPath?"Abercrombie & Kent | Luxury Travel & Vacations Worldwide Since 1962":h&&p.asPath.startsWith("/uk")?"Abercrombie & Kent | Luxury Holidays Worldwide Since 1962":h&&p.asPath.startsWith("/au")?"Abercrombie & Kent | Luxury Holidays Worldwide Since 1962":t,y=h&&"/"===p.asPath?r:h&&p.asPath.startsWith("/uk")?"Abercrombie & Kent is a leading luxury travel company specialising in award winning tailor-made holidays and escorted tours since 1962.":h&&p.asPath.startsWith("/au")?"A&K has been pioneering experiential luxury travel for 60 years. Join us and explore the world in style.":r,w=(null!=d?d:[]).filter(e=>
1null==e?void 0:e.name),j=x.split("/").filter(Boolean),S=null;!h&&w.length>0?S=[{"@type":"ListItem",position:1,name:"Home",item:c._O},...w.map((e,t)=>{let r={"@type":"ListItem",position:t+2,name:e.name};return e.url&&(r.item=e.url),r})]:!h&&j.length>0&&(S=[{"@type":"ListItem",position:1,name:"Home",item:c._O},...j.map((e,t)=>({"@type":"ListItem",position:t+2,name:(0,l.Q0)(e),item:"".concat(c._O,"/").concat(j.slice(0,t+1).join("/"))}))]);let C=S?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:S}:null,P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f||g?(null!=e?e:"").replace(/\bvacations\b/gi,e=>e===e.toUpperCase()?"HOLIDAYS":e===e.toLowerCase()?"holidays":"Holidays").replace(" | Abercrombie & Kent | Abercrombie & Kent"," | Abercrombie & Kent"):(null!=e?e:"").replace(" | Abercrombie & Kent | Abercrombie & Kent"," | Abercrombie & Kent")};return(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:P(h?v:t)}),(0,n.jsx)("meta",{name:"description",content:P(h?y:null!=r?r:k)}),(0,n.jsx)("meta",{name:"keywords",content:P(null!=a?a:"abercrombie kent, luxury travel, luxury vacations, private tours, small group journeys, small group adventures, tailormade journeys, african sanctuaries")}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:site_name",content:"Abercrombie & Kent"}),(0,n.jsx)("meta",{property:"og:title",content:P(h?v:t)}),(0,n.jsx)("meta",{property:"og:description",content:P(h?y:null!=r?r:k)}),u&&u.image&&(0,n.jsx)("meta",{property:"og:image",content:(0,o.uH)(u.image).format("jpg").width(1200).url()}),m&&(0,n.jsx)("meta",{name:"robots",content:"noindex"}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"}),(0,n.jsx)("link",{rel:"canonical",href:"https://www.abercrombiekent.com".concat(p.asPath.split("?")[0])}),(b||h)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("link",{rel:"alternate",hrefLang:"en-US",href:"https://www.abercrombiekent.com".concat(x)}),(0,n.jsx)("link",{rel:"alternate",hrefLang:"en-GB",href:"https://www.abercrombiekent.com/uk".concat(x)}),(0,n.jsx)("link",{rel:"alternate",hrefLang:"en-AU",href:"https://www.abercrombiekent.com/au".concat(x)}),(0,n.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:"https://www.abercrombiekent.com".concat(x)})]}),C&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(C)}},"schema-breadcrumb")]})}},42029:function(e,t,r){"use strict";r.d(t,{S:function(){return c}});var n=r(11163),a=r(67294),i=r(33299),s=r(48128),o=r(59417),l=r(66166);let c=()=>{let e=(0,i.useSession)(),t=(0,n.useRouter)(),[r,c]=(0,a.useState)(!1),u=(0,s.c)(1e4),[m,d]=(0,o.G)(!1,1e4),p=(0,l.u)();return(0,a.useEffect)(()=>{(0,i.getSession)().then(r=>{if(r){let n=new Date,a=r.now>0?new Date(r.now):new Date;if(Math.abs(n.getTime()-a.getTime())/864e5>3){try{p.trackEvent({name:"SessionDateMismatch"},{session:e,serverTimestamp:a,clientDate:n,url:t.asPath})}catch(e){console.warn("Unable to register log");return}c(!1),(0,i.signOut)({callbackUrl:"/"})}}else c(!1),(0,i.signOut)({callbackUrl:"/"})})},[m]),(0,a.useEffect)(()=>{u||d(!m)},[u,m,e]),(0,a.useEffect)(()=>{"authenticated"===e.status&&c(!0),"unauthenticated"===e.status&&(c(!1),(0,i.signOut)({callbackUrl:"/"}))},[e,t]),r}},65798:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return j}});var n=r(85893),a=r(50259),i=r(1039),s=r(26026),o=r(8483),l=r(9473),c=r(13811),u=r(70104),m=r(67294),d=r(49930),p=r(42029),h=r(3085),b=r(74922),f=r(39633),g=r(66713),x=r(80392),k=r(98903),v=r(88160),y=r(3685);let w=()=>{(0,p.S)();let e=(0,l.v9)(o.fN),{executeRecaptcha:t}=(0,a.useGoogleReCaptcha)(),[r,d]=(0,m.useState)(!1),w=(0,l.v9)(h.S8),j=(0,l.v9)(h.rn),S=(0,l.v9)(h.nI),C=(0,l.v9)(h.Nz),[P,N]=(0,i.v)(),O=(0,l.v9)(o.fN),I=C.filter(t=>{let r=t.brand===y.Gh||t.brand===y.NR,n=t.companyId===(0,u.lk)((0,c.Gs)(e))||t.companyId===y.p7,a=!j&&"customer"===t.typology.toLowerCase();return n&&a&&r});(0,m.useEffect)(()=>{P()},[]);let L=async()=>t?await t("procesar"):"",E=async t=>{d(!0),await L();let r=I.filter(e=>S[e.mktSubscriptionListId]&&!t[e.mktSubscriptionListId]).map(e=>e.mktSubscriptionListId),a=I.filter(e=>t[e.mktSubscriptionListId]).map(e=>e.mktSubscriptionListId);try{let{status:t}=await (0,s.he)({email:w.email,mktSubscriptionIds:r}),{status:i}=await (0,s.n9)({username:[w.firstName,w.lastName].join(" "),email:w.email,companyId:(0,u.lk)((0,c.Gs)(e)),mktSubscriptionIds:a});[200,201].includes(i)&&[200,201].includes(t)?(0,b.c0)({id:"CommunicationPreferences",message:(0,n.jsx)(g.Z.Success,{title:"Communication Preferences",message:"Your preferences have been successfully updated."}),sx:f.O.toasters.akToaster,autoClose:3e3}):(0,b.c0)({id:"CommunicationPreferences",message:(0,n.jsx)(g.Z.Error,{title:"Communication Preferences",message:"An error occurred, please try later."}),sx:f.O.toasters.akToaster,autoClose:3e3})}catch(e){(0,b.c0)({id:"CommunicationPreferences",message:(0,n.jsx)(g.Z.Error,{title:"Communication Preferences",message:"An error occurred, please try later."}),sx:f.O.toasters.akToaster,autoClose:3e3})}d(!1)},z=(0,k.c)({initialValues:{subscribeEmail:!1,token:"",googleTagId:"",formType:"newsletter",siteCountry:O,...C.reduce((e,t)=>
1({...e,[t.mktSubscriptionListId]:(null==S?void 0:S[t.mktSubscriptionListId])||!1}),{})}});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{disallowRobots:!0,title:"Communication Preferences | Abercrombie & Kent",description:"Communication Preferences",keywords:""}),(0,n.jsx)(x.Z,{subscriptionLists:I,onSubmit:E,loading:r,title:"Communication Preferences",subtitle:"Manage Your communication preferences",submitButtonText:"Save Changes",form:z})]})};w.getLayout=e=>(0,n.jsx)(d.Z,{navMenu:e.props.navMenu,footer:e.props.footer,guestMenus:e.props.guestMenus,agentMenus:e.props.agentMenus,site:e.props.site,children:e});var j=!0;t.default=w}},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,1417,9108,6300,514,7881,2670,9930,9774,2888,179],function(){return e(e.s=29607)}),_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.