1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5604,1166],{69876:function(e,t,o){"use strict";o.d(t,{k:function(){return b}});var n=o(67294),r=o(58495),a=o(97818);let i={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"default",property:"alignItems"},justify:{type:"default",property:"justifyContent"},wrap:{type:"default",property:"flexWrap"},direction:{type:"default",property:"flexDirection"}};var s=o(64523),l=o(11686),c=Object.defineProperty,d=Object.defineProperties,u=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,v=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,h=(e,t)=>{for(var o in t||(t={}))p.call(t,o)&&v(e,o,t[o]);if(m)for(var o of m(t))g.call(t,o)&&v(e,o,t[o]);return e},y=(e,t)=>d(e,u(t)),f=(e,t)=>{var o={};for(var n in e)p.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&m)for(var n of m(e))0>t.indexOf(n)&&g.call(e,n)&&(o[n]=e[n]);return o};let x={},b=(0,n.forwardRef)((e,t)=>{let o=(0,r.N4)("Flex",x,e),{gap:c,rowGap:d,columnGap:u,align:m,justify:p,wrap:g,direction:v,sx:b}=o,_=f(o,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return n.createElement(s.x,y(h({},_),{sx:[{display:"flex"},e=>(0,l.M)({gap:c,rowGap:d,columnGap:u,align:m,justify:p,wrap:g,direction:v},e,i),...(0,a.R)(b)],ref:t}))});b.displayName="@mantine/core/Flex"},66166:function(e,t,o){"use strict";o.d(t,{Y:function(){return r},u:function(){return a}});var n=o(67294),r=(0,n.createContext)(void 0),a=function(){return(0,n.useContext)(r)}},45021:function(e,t,o){var n=o(35393)(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()});e.exports=n},77070:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-dashboard/bookings/travel-dashboard/room-preference",function(){return o(17160)}])},71301:function(e,t,o){"use strict";o.d(t,{Z:function(){return y}});var n=o(67294),r=o(45697),a=o.n(r),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},s=Object.defineProperty,l=Object.defineProperties,c=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,p=(e,t,o)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,g=(e,t)=>{for(var o in t||(t={}))u.call(t,o)&&p(e,o,t[o]);if(d)for(var o of d(t))m.call(t,o)&&p(e,o,t[o]);return e},v=(e,t)=>l(e,c(t)),h=(e,t)=>{var o={};for(var n in e)u.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&d)for(var n of d(e))0>t.indexOf(n)&&m.call(e,n)&&(o[n]=e[n]);return o},y=(e,t,o)=>{let r=(0,n.forwardRef)((t,r)=>{var{color:a="currentColor",size:s=24,stroke:l=2,children:c}=t,d=h(t,["color","size","stroke","children"]);return(0,n.createElement)("svg",g(v(g({ref:r},i),{width:s,height:s,stroke:a,strokeWidth:l,className:"tabler-icon tabler-icon-".concat(e)}),d),[...o.map(e=>{let[t,o]=e;return(0,n.createElement)(t,o)}),...c||[]])});return r.propTypes={color:a().string,size:a().oneOfType([a().string,a().number]),stroke:a().oneOfType([a().string,a().number])},r.displayName="".concat(t),r}},77402:function(e,t,o){"use strict";o.d(t,{Z:function(){return n}});var n=(0,o(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"}]])},91562:function(e,t,o){"use strict";var n=o(85893),r=o(21439),a=o(34065),i=o(72128),s=o(82107),l=o(45021),c=o.n(l),d=o(41664),u=o.n(d),m=o(11163),p=o(67294),g=o(80514),v=o(28900);t.Z=e=>{var t,o;let{bookingId:l,guestID:d}=e,h=(0,a.a)("(max-width: 960px)"),y=(0,m.useRouter)(),[f]=(0,s._)(l),[x]=(0,i.b)(),b=(0,p.useRef)(null),_=(0,p.useRef)(null),j=[...(f&&void 0!==d&&(null==f?void 0:f.guests)?null==f?void 0:null===(o=f.guests)||void 0===o?void 0:null===(t=o.filter(e=>String(e.guestID)===String(d))[0])||void 0===t?void 0:t.guestSection:[])||[],...(null==f?void 0:f.sections)||[]],w=e=>{let t=(0,v.VK)(e.sectionCod);return""!==t&&y.route.endsWith(t)},k=(0,p.useMemo)(()=>h?x.y<200?"top-[0]":x.y>400?"top-[54px]":"top-[86px]":"",[h,x.y]);return((0,p.useEffect)(()=>{var e;let t=null===(e=b.current)||void 0===e?void 0:e.getBoundingClientRect().top;_.current&&t&&t<=60&&!_.current.classList.contains("fixed-top")?_.current.classList.add("fixed-top"):_.current&&t&&t>60&&_.current.classList.remove("fixed-top")},[x,y.asPath]),(0,p.useEffect)(()=>{let e=null;return e=setTimeout(()=>{var e;let t=(null===(e=document.getElementById("selected-route"))||void 0===e?void 0:e.getBoundingClientRect().left)||1,o=document.getElementsByClassName("my-ak-horizontal-sections")[0];o&&o.scroll({behavior:"smooth",left:t-16})},500),()=>{e&&clearTimeout(e)}},[]),h)?(0,n.jsx)("div",{ref:b,className:"my-ak-horizontal-sections-wrapper my-[18px]",children:(0,n.jsx)("div",{ref:_,className:"my-ak-horizontal-sections flex w-screen gap-6 overflow-x-auto bg-white px-6 transition-all ".concat(k),children:null==j?void 0:j.map(e=>{if("immig"===c()(e.sectionCod))return(0,n.jsx)(n.Fragment,{});let{type:t,siteid:o,subGroup:a,bkgID:i}=e,s=(0,v.VK)(e.sectionCod),l=w(e),m={complete:(0,n.jsx)(g.YJ,{color:"var(--forest)",width:"16",height:"16"}),optional:(0,n.jsx)(g.J$,{color:"var(--cerulean)",width:"16",height:"16"}),incomplete:(0,n.jsx)(g.J$,{color:"var(--color-burnt-sienna)",width:"16",height:"16"})};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{ref:b,id:l?"selected-route":"",className:"button&subheader ".concat(l?"text-[var(--color-burnt-sienna)] ":""," my-ak-horizontal-sections relative flex w-full min-w-[max-content] items-center gap-3 py-4"),children:[(0,n.jsx)("div",{children:m[e.isComplete?"complete":r.optionalSections.includes(c()(e.sectionCod))?"optional":"incomplete"]}),(0,n.jsx)(u(),{href:"/my-dashboard/bookings/travel-dashboard/".concat(s,"?id=").concat(i,"&infoType=").concat(t,"&siteCod=").concat(o).concat(d?"&guestCod=".concat(d):"").concat(a?"&subGroup=".concat(a):""),children:(0,n.jsx)("p",{className:"button&subheader ".concat(l?"text-[var(--color-burnt-sienna)]":""),children:"TERMS"===e.sectionCod?"Booking ".concat(e.sectionName):e.sectionName})})]},e.sectionCod)})})})}):(0,n.jsx)("div",{})}},87660:function(e,t,o){"use strict";o.d(t,{L:function(){return u}});var n=o(67878),r=o(7247),a=o(67294),i=o(9473),s=o(33299),l=o(21842),c=o(3085);let d="trade_portal",u=e=>{var t,o;let u=(0,i.v9)(c.S8),m=(0,i.v9)(n._Q),p=(0,i.v9)(n.LC),{selectedBookingId:g}=(0,i.v9)(n.l0),{currentAgencyCode:v}=(0,i.v9)(n.dB),h=Number(u.akId),y=m.data.individual_id,{menu:f}
1=(0,i.v9)(n.l0),x=(0,a.useRef)(f),b=(0,s.useSession)(),_=(0,a.useMemo)(()=>{var e,t;return(0,l.rD)((null===(t=b.data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.email)||u.email)},[null===(o=b.data)||void 0===o?void 0:null===(t=o.user)||void 0===t?void 0:t.email,u.email]),j=(0,a.useMemo)(()=>({user_id:h,agency_code:v,agent_id:y,is_deep_link:u.dl.enable}),[y,v,h,u.dl.enable]),w=(0,a.useMemo)(()=>{var e;let t={};return t.user_type=(null==u?void 0:null===(e=u.agent)||void 0===e?void 0:e.isAgent)?"agent":"guest",h&&(t.user_id=h,y&&(t.agent_id=y,v&&(t.agency_code=v))),t},[h,y,v,null==u?void 0:u.agent.isAgent]);(0,a.useEffect)(()=>{if((null==e?void 0:e.trackMenu)&&x.current!==f){x.current=f;let e=p.menus.find(e=>e.id===f);e&&(0,r.Qx)(d,{event_category:"menu_selection_".concat(String(e.name).toLocaleLowerCase().trim().replace(/\s+/g,"_")),...j})}},[f]);let k=()=>{(0,r.Qx)(d,{event_category:"pdf_generate",...j,voyages:""})};return{logDownload:(e,t)=>{(0,r.Qx)(d,{event_category:"file_manager_download_".concat(e.toLocaleLowerCase()),asset_ids:t,...j})},logCommission:()=>{(0,r.Qx)(d,{event_category:"booking_open_commission",booking_id:-1!==g?g:void 0,...j})},logPayment:()=>{(0,r.Qx)(d,{event_category:"booking_open_payment",booking_id:-1!==g?g:void 0,...j})},logGIF:()=>{(0,r.Qx)(d,{event_category:"booking_open_guest_information",booking_id:-1!==g?g:void 0,...j})},logExcursionsUpdate:e=>{let{eventCategory:t,bookingId:o,passengerId:n}=e,a=u.agent.isAgent?"agent":"guest";(0,r.Qx)("trade_free_shorex",{event_category:t,booking_id:o,individual_id:u.individualId,user_type:a,email_hash:_,...n&&{passenger_id:n}})},logReservation:()=>{(0,r.Qx)(d,{event_category:"booking_open_guest_reservation",booking_id:-1!==g?g:void 0,...j})},logDocuments:()=>{(0,r.Qx)(d,{event_category:"booking_open_guest_documents",booking_id:-1!==g?g:void 0,...j})},logSingleBookingOpen:()=>{(0,r.Qx)(d,{event_category:"booking_open",booking_id:-1!==g?g:void 0,...j})},logOffer:(e,t,o,n,a)=>{(0,r.Qx)(d,{event_category:"trade_offer_".concat(e).concat(o?"_public":""),user_email:o?a:u.email,offer_id:t,...j,user_id:o?n:j.user_id})},logAgentUpdate:()=>{(0,r.Qx)(d,{event_category:"agent_update",...j})},logAgentLogoUpdate:(e,t)=>{(0,r.Qx)(d,{event_category:"agent_logo_update",logo_blob_id:e,logo_type:t,...j})},logAgencyUpdate:()=>{(0,r.Qx)(d,{event_category:"agency_update",...j})},logAgencyLogoUpdate:e=>{(0,r.Qx)(d,{event_category:"agency_logo_update",logo_blob_id:e,...j})},logDMCPayment:()=>{(0,r.Qx)(d,{event_category:"booking_open_dmc_payment",booking_id:-1!==g?g:void 0,...w})},logDMCPaymentFormSubmission:e=>{(0,r.Qx)(d,{event_category:"dmc_payment_form_submission",...w,...e})},logDMCPaymentProcessed:e=>{(0,r.Qx)(d,{event_category:"dmc_payment_processed",...w,...e})},logDMCPaymentConfirmationViewed:e=>{(0,r.Qx)(d,{event_category:"dmc_payment_confirmation_viewed",...w,...e})},logDMCPaymentInitiated:e=>{(0,r.Qx)(d,{event_category:"dmc_payment_initiated",...w,...e})},logPDFDownload:()=>{(0,r.Qx)(d,{event_category:"pdf_download_click",...j}),k()},logPDFCustomStart:()=>{(0,r.Qx)(d,{event_category:"custom_pdf_start",...j})},logGIFUpdate:e=>{let{eventCategory:t,bookingId:o,passengerId:n}=e,a=u.agent.isAgent?"agent":"guest";(0,r.Qx)("gif_update",{event_category:t,booking_id:o,individual_id:u.individualId,user_type:a,email_hash:_,...n&&{passenger_id:n}})},logTradePaymentButton:e=>{(0,r.Qx)(d,{event_category:"payment_button_".concat(e),booking_id:-1!==g?g:void 0,...j})}}}},36685:function(e,t,o){"use strict";o.d(t,{j2:function(){return v}});var n=o(85893);o(67294);var r=o(19108),a=o(34065),i=o(96772),s=o(99985),l=o(21439),c=o(45021),d=o.n(c);let u="/icons/persona_gif_icon.svg",m=e=>{if(!e)return u;if("string"==typeof e){if(e.startsWith("/")||e.startsWith("http"))return e;e.startsWith("image-")}return(0,r.uH)(e).url()},p=e=>{let{title:t,subtitle:o,firstName:r,lastName:a,imageURL:l,hideImage:c=!1,getSectionColor:d,status:p}=e,g=d()||"";return(0,n.jsxs)("div",{className:"my-traveldashboard-forms-header",children:[!c&&(0,n.jsx)(n.Fragment,{children:l?(0,n.jsx)("div",{className:"my-dashboard-travel-documents-group-avatar",children:(0,n.jsx)(s.q,{src:m(l),alt:"AK Logo",className:"my-td-avatar-image",size:100,radius:50,styles:{image:{objectFit:"cover"}}})}):(0,n.jsx)("div",{className:"my-td-avatar",children:(0,n.jsx)(i.Z,{src:u,alt:"User Icon",className:"my-td-avatar-image",width:100,height:100,style:{minWidth:"100px",minHeight:"100px"}})})}),(0,n.jsxs)("div",{className:"my-traveldashboard-forms-header-text",children:[(0,n.jsx)("h2",{children:null!=t?t:""}),(0,n.jsx)("h6",{children:"".concat(null!=r?r:""," ").concat(null!=a?a:"")}),(0,n.jsxs)("div",{className:"flex items-center gap-[9px]",children:[(0,n.jsx)("div",{className:"my-traveldashboard-forms-status-tag",style:{backgroundColor:g,color:"white"},children:p}),(0,n.jsx)("p",{children:o})]})]})]})},g=e=>{let{subtitle:t,firstName:o,lastName:r,imageURL:a,getSectionColor:l,status:c}=e,d=l()||"";return(0,n.jsx)("div",{className:"my-crystal-forms-mobile-header pl-6",children:(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("div",{children:a?(0,n.jsx)("div",{className:"my-dashboard-travel-documents-group-avatar",children:(0,n.jsx)(s.q,{src:m(a),alt:"AK Logo",className:"h-[45px] min-h-[45px] w-[45px] min-w-[45px]",size:45,radius:50,styles:{image:{objectFit:"cover"}}})}):(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{src:u,alt:"User Icon",className:"h-[45px] min-h-[45px] w-[45px] min-w-[45px]",width:45,height:45,style:{minWidth:"45px",minHeight:"45px"}})})}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("h2",{children:"".concat(null!=o?o:""," ").concat(null!=r?r:"")}),(0,n.jsxs)("div",{className:"flex items-center gap-[9px]",children:[(0,n.jsx)("div",{className:"my-traveldashboard-forms-status-tag",style:{backgroundColor:d,c
1olor:"white"},children:c}),(0,n.jsx)("p",{children:t})]})]})]})})},v=e=>{var t;let o=(0,a.a)("(max-width: 960px)"),r={complete:"var(--forest)",incomplete:"var(--color-burnt-sienna)",optional:"var(--cerulean)"},i=l.optionalSections.includes(d()(null!==(t=null==e?void 0:e.sectionCod)&&void 0!==t?t:"")),s=()=>e.isComplete?r.complete:i?r.optional:r.incomplete,c={complete:"COMPLETE",incomplete:"INCOMPLETE",optional:"OPTIONAL"}[e.isComplete?"complete":i?"optional":"incomplete"];return o?(0,n.jsx)(g,{...e,getSectionColor:s,status:c}):(0,n.jsx)(p,{...e,getSectionColor:s,status:c})}},88160:function(e,t,o){"use strict";var n=o(85893),r=o(9008),a=o.n(r),i=o(11163),s=o(19108),l=o(93901),c=o(59282);t.Z=e=>{let{title:t,description:o,keywords:r,ogImage:d,disallowRobots:u,breadcrumbItems:m}=e,p=(0,i.useRouter)(),g=/^\/(?:uk\/?|au\/?)?$/.test(p.asPath),v=/^\/((?:uk|au)\/)?destinations\//.test(p.asPath),h=p.asPath.startsWith("/uk/"),y=p.asPath.startsWith("/au/"),f=h||y?p.asPath.replace("/uk/","/").replace("/au/","/").split("?")[0]:g?"/":p.asPath.split("?")[0],x="Abercrombie & Kent is a leading luxury travel company specialising in award winning tailor-made vacations and escorted tours since 1962.",b=g&&"/"===p.asPath?"Abercrombie & Kent | Luxury Travel & Vacations Worldwide Since 1962":g&&p.asPath.startsWith("/uk")?"Abercrombie & Kent | Luxury Holidays Worldwide Since 1962":g&&p.asPath.startsWith("/au")?"Abercrombie & Kent | Luxury Holidays Worldwide Since 1962":t,_=g&&"/"===p.asPath?o:g&&p.asPath.startsWith("/uk")?"Abercrombie & Kent is a leading luxury travel company specialising in award winning tailor-made holidays and escorted tours since 1962.":g&&p.asPath.startsWith("/au")?"A&K has been pioneering experiential luxury travel for 60 years. Join us and explore the world in style.":o,j=(null!=m?m:[]).filter(e=>null==e?void 0:e.name),w=f.split("/").filter(Boolean),k=null;!g&&j.length>0?k=[{"@type":"ListItem",position:1,name:"Home",item:c._O},...j.map((e,t)=>{let o={"@type":"ListItem",position:t+2,name:e.name};return e.url&&(o.item=e.url),o})]:!g&&w.length>0&&(k=[{"@type":"ListItem",position:1,name:"Home",item:c._O},...w.map((e,t)=>({"@type":"ListItem",position:t+2,name:(0,l.Q0)(e),item:"".concat(c._O,"/").concat(w.slice(0,t+1).join("/"))}))]);let C=k?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:k}:null,N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h||y?(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)(a(),{children:[(0,n.jsx)("title",{children:N(g?b:t)}),(0,n.jsx)("meta",{name:"description",content:N(g?_:null!=o?o:x)}),(0,n.jsx)("meta",{name:"keywords",content:N(null!=r?r:"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:N(g?b:t)}),(0,n.jsx)("meta",{property:"og:description",content:N(g?_:null!=o?o:x)}),d&&d.image&&(0,n.jsx)("meta",{property:"og:image",content:(0,s.uH)(d.image).format("jpg").width(1200).url()}),u&&(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])}),(v||g)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("link",{rel:"alternate",hrefLang:"en-US",href:"https://www.abercrombiekent.com".concat(f)}),(0,n.jsx)("link",{rel:"alternate",hrefLang:"en-GB",href:"https://www.abercrombiekent.com/uk".concat(f)}),(0,n.jsx)("link",{rel:"alternate",hrefLang:"en-AU",href:"https://www.abercrombiekent.com/au".concat(f)}),(0,n.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:"https://www.abercrombiekent.com".concat(f)})]}),C&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(C)}},"schema-breadcrumb")]})}},8489:function(e,t,o){"use strict";o.d(t,{V:function(){return i}});var n=o(11163),r=o(82107),a=o(28900);let i=()=>{let e=(0,n.useRouter)(),{id:t,infoType:o,siteCod:i,guestCod:s,subGroup:l}=e.query,[c]=(0,r._)(String(t)),d=()=>{var e,t;return[...(null==c?void 0:null===(e=c.guests)||void 0===e?void 0:e.flatMap(e=>e.guestSection.map(t=>({...t,guestId:e.guestID,subGroup:e.subGroup}))))||[],...(null==c?void 0:null===(t=c.sections)||void 0===t?void 0:t.map(e=>({...e,guestId:null})))||[]].filter(e=>"immig"!==e.sectionCod.toLowerCase())};return{navigateToNextSection:o=>{let n=d(),r=n.findIndex(e=>
1{let t=e.sectionCod.toLowerCase()===o.toLowerCase(),n=!s||String(s)===String(e.guestId),r=!l||String(l)===String(e.subGroup);return t&&n&&r}),i=n[r+1];if(!i){e.push("/my-dashboard/bookings/travel-dashboard?id=".concat(t));return}let c=(0,a.VK)(i.sectionCod),u="/my-dashboard/bookings/travel-dashboard/".concat(c,"?id=").concat(t,"&infoType=").concat(i.type,"&siteCod=").concat(i.siteid).concat(i.guestId?"&guestCod=".concat(i.guestId):"").concat(i.subGroup?"&subGroup=".concat(i.subGroup):"");e.push(u)}}}},17160:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return A}});var n=o(85893),r=o(91562),a=o(27764),i=o(88160),s=o(35122),l=o(67841),c=o(49737),d=o(58654),u=o(95117),m=o(34065),p=o(74922),g=o(71417),v=o(66510),h=o(39633),y=o(42029),f=o(41664),x=o.n(f),b=o(67294),_=o(9473),j=o(98903),w=o(40121),k=o(49930),C=o(64531),N=o(36685),P=o(28900),O=o(82107),S=o(3085),I=o(66713),L=o(8489),T=o(87660);let E=e=>{var t,o;let{type:f,siteid:k,guestId:E,subGroup:A,bookingId:M,roomPreferencesData:D}=e,Q=(0,_.I0)(),R=(0,m.a)("(max-width: 960px)");(0,y.S)();let[B,K]=(0,b.useState)({loading:!1}),{navigateToNextSection:W}=(0,L.V)(),{logGIFUpdate:G}=(0,T.L)(),[F]=(0,O._)(M),H=(0,_.v9)(S.S8),U=(0,j.c)({validateInputOnChange:!0,initialValues:{room:(null==D?void 0:D.room)||"",isComplete:D.isComplete||!1},validate:{}}),{radioCheckStyles:Z,saveBtnStyles:z,cancelBtnStyles:V,backBtnStyles:Y}=(0,w.Z)(),q=async e=>{K(e=>({...e,loading:!0}));let t=H.dl.enable&&H.dl.agentEmail?H.dl.agentEmail:H.email;await (0,s.IS)({bookingId:M,type:f,siteid:k,subGroup:A,guestId:E,userId:t||"",roomPreferencesData:{...e,isComplete:"true"}})?((0,p.c0)({id:"RoomPreferences",message:(0,n.jsx)(I.Z.Success,{title:"Room Preferences",message:"Your room data has been successfully updated."}),sx:h.O.toasters.akToaster,autoClose:3e3}),G({eventCategory:"room_preferences",bookingId:M,passengerId:E}),Q((0,v.PH)({bookingId:M,type:f,siteid:Number(k)})),W(P.rD.ROOM)):(0,p.c0)({id:"RoomPreferences",message:(0,n.jsx)(I.Z.Error,{title:"Room Preferences",message:"An error occurred, please try later."}),sx:h.O.toasters.akToaster,autoClose:3e3}),K(e=>({...e,loading:!1}))},J=(0,b.useMemo)(()=>{var e,t,o,n;if(F&&(null==F?void 0:null===(e=F.guests)||void 0===e?void 0:e.length)>0){let e=null===(t=F.guests||[])||void 0===t?void 0:t.find(e=>Number(e.guestID)===Number(E));return null==e?void 0:null===(n=e.guestSection)||void 0===n?void 0:null===(o=n.find(e=>(null==e?void 0:e.sectionCod)===P.rD.ROOM.toUpperCase()&&Number(null==e?void 0:e.subGroup)===Number(A)))||void 0===o?void 0:o.isComplete}return!1},[F,E,A]),$=F&&(null==F?void 0:null===(t=F.guests)||void 0===t?void 0:t.length)>0?null==F?void 0:null===(o=F.guests)||void 0===o?void 0:o.filter(e=>String(e.guestID)===String(E))[0]:null;return(0,n.jsxs)(g.N,{className:"mantine-notification-provider",position:"bottom-right",children:[(0,n.jsx)(i.Z,{title:"Room Preferences | Abercrombie & Kent",description:"Room Preferences",keywords:""}),(0,n.jsxs)("div",{className:"my-crystal ",children:[(0,n.jsx)(C.H,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x(),{href:"/my-dashboard/bookings/travel-dashboard?id=".concat(M),passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(l.z,{className:"flex-start-center",component:"a",classNames:Y,children:"Back to Travel Dashboard"})}),(0,n.jsx)(a.Z,{showMultipleBookings:!0,bookingId:M,guestID:E})]})}),(0,n.jsxs)("div",{className:"my-crystal-content relative",children:[R&&(0,n.jsx)("div",{className:"story-title-wrapper",style:{marginBottom:"30px"},children:(0,n.jsx)(x(),{href:"/my-dashboard/bookings/travel-dashboard?id=".concat(M),children:"BACK"})}),(0,n.jsx)(N.j2,{title:"Room Preferences",subtitle:(0,n.jsx)("p",{children:"Make sure all the required information is complete before your departure."}),firstName:(null==$?void 0:$.firstName)||"",lastName:(null==$?void 0:$.lastName)||"",isComplete:J,guestCod:E}),(0,n.jsx)(r.Z,{bookingId:M,guestID:E}),!R&&(0,n.jsx)("div",{className:"my-dashboard-content-inner-divisor"}),(0,n.jsxs)("form",{onSubmit:U.onSubmit(q),className:"my-dashboard-form-wrapper my-crystal-forms space-y-[18px]",children:[(0,n.jsx)(c.f,{visible:B.loading,zIndex:45}),(0,n.jsx)("header",{className:"travel-dashboard-form_header",children:(0,n.jsx)("h3",{className:"travel-dashboard-form_header",children:"Bed Preferences"})}),(0,n.jsx)("div",{className:"my-crystal-forms-one-columns ",children:(0,n.jsxs)(d.Y.Group,{label:"How many beds would you prefer in your room?",className:"travel-dashboard__radio-group",value:U.values.room,onChange:e=>U.setFieldValue("room",e),children:[(0,n.jsx)(d.Y,{value:"king-queen",label:"One Bed - King/Queen",classNames:Z}),(0,n.jsx)(d.Y,{value:"twin",label:"Two Beds - Twin",classNames:Z})]})}),(0,n.jsx)("div",{className:"my-crystal-forms-one-columns ",children:(0,n.jsxs)(u.x,{className:"travel-dashboard__text-info",size:"sm",children:["Please note that bedding on boats/ships may be dependent on the cabin category booked"," "]})}
1),!R&&(0,n.jsx)("div",{className:"my-dashboard-content-inner-divisor"}),(0,n.jsxs)("div",{className:"my-dashboard-form-buttons-wrapper",children:[(0,n.jsx)(x(),{href:"/my-dashboard/bookings/travel-dashboard?id=".concat(M),legacyBehavior:!0,children:(0,n.jsx)(l.z,{component:"a",classNames:V,variant:"outline",children:"Cancel"})}),(0,n.jsx)(l.z,{type:"submit",classNames:z,children:"Save and Continue"})]})]})]})]})]})};E.getLayout=e=>(0,n.jsx)(k.Z,{showSidebar:!1,navMenu:e.props.navMenu,footer:e.props.footer,guestMenus:e.props.guestMenus,agentMenus:e.props.agentMenus,site:e.props.site,children:e});var A=!0;t.default=E},92703:function(e,t,o){"use strict";var n=o(50414);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,a,i){if(i!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return o.PropTypes=o,o}},45697:function(e,t,o){e.exports=o(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},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,4817,4679,8495,960,5889,578,1417,9108,6300,514,7881,2670,9930,3269,9774,2888,179],function(){return e(e.s=77070)}),_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.