1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4378,1166],{69876:function(e,t,n){"use strict";n.d(t,{k:function(){return b}});var o=n(67294),r=n(58495),a=n(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=n(64523),l=n(11686),c=Object.defineProperty,u=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&g(e,n,t[n]);if(p)for(var n of p(t))f.call(t,n)&&g(e,n,t[n]);return e},v=(e,t)=>u(e,d(t)),x=(e,t)=>{var n={};for(var o in e)m.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&p)for(var o of p(e))0>t.indexOf(o)&&f.call(e,o)&&(n[o]=e[o]);return n};let y={},b=(0,o.forwardRef)((e,t)=>{let n=(0,r.N4)("Flex",y,e),{gap:c,rowGap:u,columnGap:d,align:p,justify:m,wrap:f,direction:g,sx:b}=n,j=x(n,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return o.createElement(s.x,v(h({},j),{sx:[{display:"flex"},e=>(0,l.M)({gap:c,rowGap:u,columnGap:d,align:p,justify:m,wrap:f,direction:g},e,i),...(0,a.R)(b)],ref:t}))});b.displayName="@mantine/core/Flex"},72507:function(e,t,n){"use strict";n.d(t,{M:function(){return O}});var o=n(27484),r=n.n(o),a=n(67294),i=n(15851),s=n(22146),l=n(80665),c=n(58495),u=n(59517),d=n(91929),p=Object.defineProperty,m=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&h(e,n,t[n]);if(m)for(var n of m(t))g.call(t,n)&&h(e,n,t[n]);return e},x=(e,t)=>{var n={};for(var o in e)f.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&m)for(var o of m(e))0>t.indexOf(o)&&g.call(e,o)&&(n[o]=e[o]);return n};let y={__staticSelector:"Calendar"};function b(e){let t=(0,c.N4)("Calendar",y,e),{__staticSelector:n="Calendar",multiple:o,value:r,onChange:i}=t,s=x(t,["__staticSelector","multiple","value","onChange"]);return a.createElement(u.T,v({__staticSelector:n,onChange:e=>o?i(r.some(t=>(0,d.F)(t,e))?r.filter(t=>!(0,d.F)(t,e)):[...r,e]):i(e),value:r},s))}b.displayName="@mantine/dates/Calendar";var j=n(4118),w=Object.defineProperty,_=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,I=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))C.call(t,n)&&I(e,n,t[n]);if(_)for(var n of _(t))k.call(t,n)&&I(e,n,t[n]);return e},D=(e,t)=>{var n={};for(var o in e)C.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&_)for(var o of _(e))0>t.indexOf(o)&&k.call(e,o)&&(n[o]=e[o]);return n};let P={shadow:"sm",transitionDuration:200,closeCalendarOnChange:!0,labelFormat:"MMMM YYYY",initiallyOpened:!1,name:"date",size:"sm",dropdownType:"popover",dropdownPosition:"flip",clearable:!0,disabled:!1,fixOnBlur:!0,withinPortal:!1,firstDayOfWeek:"monday",openDropdownOnClear:!1},O=(0,a.forwardRef)((e,t)=>{let n=(0,c.N4)("DatePicker",P,e),{value:o,onChange:u,defaultValue:d,classNames:p,styles:m,shadow:f,locale:g,inputFormat:h,transitionDuration:v,transitionTimingFunction:x,nextMonthLabel:y,previousMonthLabel:w,closeCalendarOnChange:_,labelFormat:C,dayClassName:k,dayStyle:I,disableOutsideEvents:O,minDate:S,maxDate:E,excludeDate:L,initialMonth:M,initiallyOpened:T,name:A,size:R,dropdownType:B,dropdownPosition:z,clearable:F,disabled:G,clearButtonLabel:W,fixOnBlur:Q,allowFreeInput:U,withinPortal:V,dateParser:Z,firstDayOfWeek:H,onFocus:K,onBlur:q,amountOfMonths:Y,allowLevelChange:J,initialLevel:X,onDropdownClose:$,onDropdownOpen:ee,hideOutsideDates:et,hideWeekdays:en,renderDay:eo,type:er,openDropdownOnClear:ea,unstyled:ei,weekendDays:es,yearLabelFormat:el,nextDecadeLabel:ec,nextYearLabel:eu,previousDecadeLabel:ed,previousYearLabel:ep}=n,em=D(n,["value","onChange","defaultValue","classNames","styles","shadow","locale","
1inputFormat","transitionDuration","transitionTimingFunction","nextMonthLabel","previousMonthLabel","closeCalendarOnChange","labelFormat","dayClassName","dayStyle","disableOutsideEvents","minDate","maxDate","excludeDate","initialMonth","initiallyOpened","name","size","dropdownType","dropdownPosition","clearable","disabled","clearButtonLabel","fixOnBlur","allowFreeInput","withinPortal","dateParser","firstDayOfWeek","onFocus","onBlur","amountOfMonths","allowLevelChange","initialLevel","onDropdownClose","onDropdownOpen","hideOutsideDates","hideWeekdays","renderDay","type","openDropdownOnClear","unstyled","weekendDays","yearLabelFormat","nextDecadeLabel","nextYearLabel","previousDecadeLabel","previousYearLabel"]),ef=(0,c.rZ)(),eg=g||ef.datesLocale,eh="date"===er?"YYYY-MM-DD":h||ef.dateFormat,[ev,ex]=(0,a.useState)(T),ey=(0,a.useRef)(),[eb,ej]=(0,a.useState)(null!=d?d:null),[ew,e_]=(0,i.C)({value:o,defaultValue:d,finalValue:null,onChange:u}),[eC,ek]=(0,a.useState)(ew||M||new Date),[eI,eN]=(0,a.useState)(!1),[eD,eP]=(0,a.useState)(ew instanceof Date?(0,s.j)(r()(ew).locale(eg).format(eh)):""),eO=()=>{ex(!1),null==$||$()},eS=()=>{ex(!0),null==ee||ee()};(0,a.useEffect)(()=>{null!==o||eI||eP(""),o instanceof Date&&!eI&&eP((0,s.j)(r()(o).locale(eg).format(eh)))},[o,eI]);let eE=e=>Z?Z(e):r()(e,eh,eg).toDate(),eL=()=>{let e="string"==typeof ew?eE(ew):ew;E&&r()(e).isAfter(E)&&(e=E),S&&r()(e).isBefore(S)&&(e=S),r()(e).isValid()?(e_(e),ej(e),eP((0,s.j)(r()(e).locale(eg).format(eh))),ek(e)):Q&&e_(eb)};return a.createElement(j.R,N({allowFreeInput:U,dropdownOpened:ev,setDropdownOpened:ex,shadow:f,transitionDuration:v,ref:(0,l.Y)(t,ey),size:R,styles:m,classNames:p,onChange:e=>{eS();let t=eE(e.target.value);r()(t).isValid()?(e_(t),ej(t),eP(e.target.value),ek(t)):eP(e.target.value)},onBlur:e=>{"function"==typeof q&&q(e),eN(!1),U&&eL()},onFocus:e=>{"function"==typeof K&&K(e),eN(!0)},onKeyDown:e=>{"Enter"===e.key&&U&&(eO(),eL())},name:A,inputLabel:eD,__staticSelector:"DatePicker",dropdownType:B,dropdownPosition:z,clearable:"date"!==er&&F&&!!ew&&!G,clearButtonLabel:W,onClear:()=>{var e;e_(null),ej(null),eP(""),ea&&eS(),null==(e=ey.current)||e.focus()},disabled:G,withinPortal:V,amountOfMonths:Y,onDropdownClose:$,onDropdownOpen:ee,type:er,unstyled:ei},em),a.createElement(b,{classNames:p,styles:m,locale:eg,nextMonthLabel:y,previousMonthLabel:w,month:U?eC:void 0,initialMonth:M||(ew instanceof Date?ew:new Date),onMonthChange:ek,value:ew instanceof Date?ew:r()(ew).toDate(),onChange:e=>{e_(e),eP((0,s.j)(r()(e).locale(eg).format(eh))),_&&eO(),window.setTimeout(()=>{var e;return null==(e=ey.current)?void 0:e.focus()},0)},labelFormat:C,dayClassName:k,dayStyle:I,disableOutsideEvents:O,minDate:S,maxDate:E,excludeDate:L,__staticSelector:"DatePicker",fullWidth:"modal"===B,__stopPropagation:"modal"!==B,size:"modal"===B?"lg":"lg"===R||"xl"===R?"md":"sm",firstDayOfWeek:H,preventFocus:U,amountOfMonths:Y,allowLevelChange:J,initialLevel:X,hideOutsideDates:et,hideWeekdays:en,renderDay:eo,unstyled:ei,weekendDays:es,yearLabelFormat:el,nextDecadeLabel:ec,nextYearLabel:eu,previousDecadeLabel:ed,previousYearLabel:ep}))});O.displayName="@mantine/dates/DatePicker"},66166:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},u:function(){return a}});var o=n(67294),r=(0,o.createContext)(void 0),a=function(){return(0,o.useContext)(r)}},45021:function(e,t,n){var o=n(35393)(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()});e.exports=o},89876:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-dashboard/bookings/travel-dashboard/passport-information",function(){return n(28327)}])},77402:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var o=(0,n(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,n){"use strict";var o=n(85893),r=n(21439),a=n(34065),i=n(72128),s=n(82107),l=n(45021),c=n.n(l),u=n(41664),d=n.n(u),p=n(11163),m=n(67294),f=n(80514),g=n(28900);t.Z=e=>{var t,n;let{bookingId:l,guestID:u}=e,h=(0,a.a)("(max-width: 960px)"),v=(0,p.useRouter)(),[x]=(0,s._)(l),[y]=(0,i.b)(),b=(0,m.useRef)(null),j=(0,m.useRef)(null),w=[...(x&&void 0!==u&&(null==x?void 0:x.guests)?null==x?void 0:null===(n=x.guests)||void 0===n?void 0:null===(t=n.filter(e=>String(e.guestID)===String(u))[0])||void 0===t?void 0:t.guestSection:[])||[],...(null==x?void 0:x.sections)||[]],_=e=>{let t=(0,g.VK)(e.sectionCod);return""!==t&&v.route.endsWith(t)},C=(0,m.useMemo)(()=>h?y.y<200?"top-[0]":y.y>400?"top-[54px]":"top-[86px]":"",[h,y.y]);return((0,m.useEffect)(()=>{var e;let t=null===(e=b.current)||void 0===e?void 0:e.getBoundingClientRect().top;j.current&&t&&t<=60&&!j.current.classList.contains("fixed-top")?j.current.classList.add("fixed-top"):j.current&&t&&t>60&&j.current.classList.remove("fixed-top")},[y,v.asPath]),(0,m.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,n=document.getElementsByClassName("my-ak-horizontal-sections")[0];n&&n.scroll({behavior:"smooth",left:t-16})},500),()=>{e&&clearTimeout(e)}},[]),h)?(0,o.jsx)("div",{ref:b,className:"my-ak-horizontal-sections-wrapper my-[18px]",children:(0,o.jsx)("div",{ref:j,className:"my-ak-horizontal-sections flex w-screen gap-6 overflow-x-auto bg-white px-6 transition-all ".concat(C),children:null==w?void 0:w.map(e=>{if("immig"===c()(e.sectionCod))return(0,o.jsx)(o.Fragment,{});let{type:t,siteid:n,subGroup:a,bkgID:i}=e,s=(0,g.VK)(e.sectionCod),l=_(e),p={complete:(0,o.jsx)(f.YJ,{color:"var(--forest)",width:"16",height:"16"}),optional:(0,o.jsx)(f.J$,{color:"var(--cerulean)",width:"16",height:"16"}),incomplete:(0,o.jsx)(f.J$,{color:"var(--color-burnt-sienna)",width:"16",height:"16"})};return(0,o.jsx)(o.Fragment,{children:(0,o.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,o.jsx)("div",{children:p[e.isComplete?"complete":r.optionalSections.includes(c()(e.sectionCod))?"optional":"incomplete"]}),(0,o.jsx)(d(),{href:"/my-dashboard/bookings/travel-dashboard/".concat(s,"?id=").concat(i,"&infoType=").concat(t,"&siteCod=").concat(n).concat(u?"&guestCod=".concat(u):"").concat(a?"&subGroup=".concat(a):""),children:(0,o.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,o.jsx)("div",{})}},31020:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var o=n(67294);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{headerOffset:t=120,scrollBehavior:n="smooth",delay:r=150,additionalScrollAttempts:a=1}=e,i=(0,o.useRef)({}),s=(0,o.useRef)([]),l=(0,o.useCallback)(()=>
1{s.current.forEach(e=>clearTimeout(e)),s.current=[]},[]);(0,o.useEffect)(()=>()=>{l()},[l]);let c=(0,o.useCallback)((e,t)=>{i.current[e]=t},[]),u=(0,o.useCallback)(e=>{l();let o=setTimeout(()=>{let o=i.current[e];if(o){let l=o.getBoundingClientRect().top+window.pageYOffset-t;if(window.scrollTo({top:l,behavior:n}),a>0)for(let o=1;o<=a;o++){let a=setTimeout(()=>{let o=i.current[e];if(o){let e=o.getBoundingClientRect().top+window.pageYOffset-t;window.scrollTo({top:e,behavior:n})}},r+100*o);s.current.push(a)}}},r);s.current.push(o)},[t,n,r,a,l]),d=(0,o.useCallback)(e=>{e&&u(e)},[u]);return{setAccordionRef:c,scrollToAccordion:u,handleAccordionScroll:d}}},87660:function(e,t,n){"use strict";n.d(t,{L:function(){return d}});var o=n(67878),r=n(7247),a=n(67294),i=n(9473),s=n(33299),l=n(21842),c=n(3085);let u="trade_portal",d=e=>{var t,n;let d=(0,i.v9)(c.S8),p=(0,i.v9)(o._Q),m=(0,i.v9)(o.LC),{selectedBookingId:f}=(0,i.v9)(o.l0),{currentAgencyCode:g}=(0,i.v9)(o.dB),h=Number(d.akId),v=p.data.individual_id,{menu:x}=(0,i.v9)(o.l0),y=(0,a.useRef)(x),b=(0,s.useSession)(),j=(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)||d.email)},[null===(n=b.data)||void 0===n?void 0:null===(t=n.user)||void 0===t?void 0:t.email,d.email]),w=(0,a.useMemo)(()=>({user_id:h,agency_code:g,agent_id:v,is_deep_link:d.dl.enable}),[v,g,h,d.dl.enable]),_=(0,a.useMemo)(()=>{var e;let t={};return t.user_type=(null==d?void 0:null===(e=d.agent)||void 0===e?void 0:e.isAgent)?"agent":"guest",h&&(t.user_id=h,v&&(t.agent_id=v,g&&(t.agency_code=g))),t},[h,v,g,null==d?void 0:d.agent.isAgent]);(0,a.useEffect)(()=>{if((null==e?void 0:e.trackMenu)&&y.current!==x){y.current=x;let e=m.menus.find(e=>e.id===x);e&&(0,r.Qx)(u,{event_category:"menu_selection_".concat(String(e.name).toLocaleLowerCase().trim().replace(/\s+/g,"_")),...w})}},[x]);let C=()=>{(0,r.Qx)(u,{event_category:"pdf_generate",...w,voyages:""})};return{logDownload:(e,t)=>{(0,r.Qx)(u,{event_category:"file_manager_download_".concat(e.toLocaleLowerCase()),asset_ids:t,...w})},logCommission:()=>{(0,r.Qx)(u,{event_category:"booking_open_commission",booking_id:-1!==f?f:void 0,...w})},logPayment:()=>{(0,r.Qx)(u,{event_category:"booking_open_payment",booking_id:-1!==f?f:void 0,...w})},logGIF:()=>{(0,r.Qx)(u,{event_category:"booking_open_guest_information",booking_id:-1!==f?f:void 0,...w})},logExcursionsUpdate:e=>{let{eventCategory:t,bookingId:n,passengerId:o}=e,a=d.agent.isAgent?"agent":"guest";(0,r.Qx)("trade_free_shorex",{event_category:t,booking_id:n,individual_id:d.individualId,user_type:a,email_hash:j,...o&&{passenger_id:o}})},logReservation:()=>{(0,r.Qx)(u,{event_category:"booking_open_guest_reservation",booking_id:-1!==f?f:void 0,...w})},logDocuments:()=>{(0,r.Qx)(u,{event_category:"booking_open_guest_documents",booking_id:-1!==f?f:void 0,...w})},logSingleBookingOpen:()=>{(0,r.Qx)(u,{event_category:"booking_open",booking_id:-1!==f?f:void 0,...w})},logOffer:(e,t,n,o,a)=>{(0,r.Qx)(u,{event_category:"trade_offer_".concat(e).concat(n?"_public":""),user_email:n?a:d.email,offer_id:t,...w,user_id:n?o:w.user_id})},logAgentUpdate:()=>{(0,r.Qx)(u,{event_category:"agent_update",...w})},logAgentLogoUpdate:(e,t)=>{(0,r.Qx)(u,{event_category:"agent_logo_update",logo_blob_id:e,logo_type:t,...w})},logAgencyUpdate:()=>{(0,r.Qx)(u,{event_category:"agency_update",...w})},logAgencyLogoUpdate:e=>{(0,r.Qx)(u,{event_category:"agency_logo_update",logo_blob_id:e,...w})},logDMCPayment:()=>{(0,r.Qx)(u,{event_category:"booking_open_dmc_payment",booking_id:-1!==f?f:void 0,..._})},logDMCPaymentFormSubmission:e=>{(0,r.Qx)(u,{event_category:"dmc_payment_form_submission",..._,...e})},logDMCPaymentProcessed:e=>{(0,r.Qx)(u,{event_category:"dmc_payment_processed",..._,...e})},logDMCPaymentConfirmationViewed:e=>{(0,r.Qx)(u,{event_category:"dmc_payment_confirmation_viewed",..._,...e})},logDMCPaymentInitiated:e=>{(0,r.Qx)(u,{event_category:"dmc_payment_initiated",..._,...e})},logPDFDownload:()=>{(0,r.Qx)(u,{event_category:"pdf_download_click",...w}),C()},logPDFCustomStart:()=>{(0,r.Qx)(u,{event_category:"custom_pdf_start",...w})},logGIFUpdate:e=>{let{eventCategory:t,bookingId:n,passengerId:o}=e,a=d.agent.isAgent?"agent":"guest";(0,r.Qx)("gif_update",{event_category:t,booking_id:n,individual_id:d.individualId,user_t
1ype:a,email_hash:j,...o&&{passenger_id:o}})},logTradePaymentButton:e=>{(0,r.Qx)(u,{event_category:"payment_button_".concat(e),booking_id:-1!==f?f:void 0,...w})}}}},91650:function(e,t,n){"use strict";n.d(t,{Bd:function(){return o},DD:function(){return u},Es:function(){return f},Oz:function(){return h},X2:function(){return v},XH:function(){return l},_s:function(){return d},dR:function(){return a},gD:function(){return g},k6:function(){return c},l6:function(){return i},rD:function(){return s},uC:function(){return m},ud:function(){return r},vQ:function(){return p}}),n(67294);let o=e=>{let t={};for(let n of e){let e=String(n.bkgid||n.bkgID);t[e]||(t[e]=new Set),void 0!==n.subGroup&&null!==n.subGroup&&t[e].add(n.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 n=t.current;n&&(n.blur(),n.click())},i=e=>Object.entries(e).reduce((t,n)=>{let[o,r]=n;return o in e&&(t[o]="boolean"==typeof r?r.toString():r),t},{}),s={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"]},l=e=>{if(!e)return{isValid:!1,error:"No file selected"};let t=e.name.toLowerCase(),n=t.substring(t.lastIndexOf("."));return s.allowedExtensions.includes(n)?s.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."}},c=e=>e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()),u=(e,t)=>{let n=e.find(e=>e.value===t);return n?n.label:t},d=e=>{var t;let n=null===(t=e.split("/").pop())||void 0===t?void 0:t.replace(".pdf","");return"/api/download?id=file-".concat(n,"-pdf")},p=(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 n=Math.floor(e);return{main:n,sub:Math.round((e-n)*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 n=Math.floor(e);return{main:n,sub:Math.round((e-n)*16)}}},f=e=>{let{heightMain:t,heightSub:n,isMetricSystem:o}=e;return t?o?t+(n||0)/100:t+(n||0)/12:null},g=e=>e||null,h=(e,t)=>{if(!e||!t)return!1;let n=new Date(e),o=new Date(new Date(t));return o.setMonth(o.getMonth()+3),n.getTime()<o.getTime()},v=e=>{let{phoneInput:t,dialCode:n}=e;t&&n&&setTimeout(()=>{var e;let o=null===(e=t.parentElement)||void 0===e?void 0:e.querySelector(".iti__selected-flag");if(o&&!o.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(n),o.appendChild(e),o.style.minWidth="max-content"}},100)}},36685:function(e,t,n){"use strict";n.d(t,{j2:function(){return g}});var o=n(85893);n(67294);var r=n(19108),a=n(34065),i=n(96772),s=n(99985),l=n(21439),c=n(45021),u=n.n(c);let d="/icons/persona_gif_icon.svg",p=e=>{if(!e)return d;if("string"==typeof e){if(e.startsWith("/")||e.startsWith("http"))return e;e.startsWith("image-")}return(0,r.uH)(e).url()},m=e=>{let{title:t,subtitle:n,firstName:r,lastName:a,imageURL:l,hideImage:c=!1,getSectionColor:u,status:m}=e,f=u()||"";return(0,o.jsxs)("div",{className:"my-traveldashboard-forms-header",children:[!c&&(0,o.jsx)(o.Fragment,{children:l?(0,o.jsx)("div",{className:"my-dashboard-travel-documents-group-avatar",children:(0,o.jsx)(s.q,{src:p(l),alt:"AK Logo",className:"my-td-avatar-image",size:100,radius:50,styles:{image:{objectFit:"cover"}}})}):(0,o.jsx)("div",{className:"my-td-avatar",children:(0,o.jsx)(i.Z,{src:d,alt:"User Icon",className:"my-td-avatar-image",width:100,height:100,style:{minWidth:"100px",minHeight:"100px"}})})}),(0,o.jsxs)("div",{className:"my-traveldashboard-forms-header-text",children:[(0,o.jsx)("h2",{children:null!=t?t:""}),(0,o.jsx)("h6",{children:"".concat(null!=r?r:""," ").concat(null!=a?a:"")}),(0,o.jsxs)("div",{className:"flex items-center gap-[9px]",children:[(0,o.jsx)("div",{className:"my-traveldashboard-forms-status-tag",style:{backgroundColor:f,color:"white"},children:m}),(0,o.jsx)("p",{children:n})]})]})]})},f=e=>{let{subtitle:t,firstName:n,lastName:r,imageURL:a,getSectionColor:l,status:c}=e,u=l()||"";return(0,o.jsx)("div",{className:"my-crystal-forms-mobile-header pl-6",children:(0,o.jsxs)("div",{className:"flex gap-3",children:[(0,o.jsx)("div",{children:a?(0,o.jsx)("div",{className:"my-dashboard-travel-documents-group-avatar",children:(0,o.jsx)(s.q,{src:p(a),alt:"AK Logo",className:"h-[45px] min-h-[45px] w-[45px] min-w-[45px]",size:45,radius:50,styles:{image:{objectFit:"cover"}}})}):(0,o.jsx)("div",{children:(0,o.jsx)(i.Z,{src:d,alt:"User Icon",className:"h-[45px] min-h-[45px] w-[45px] min-w-[45px]",width:45,height:45,style:{minWidth:"45px",minHeight:"45px"}})})}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)("h2",{children:"".concat(null!=n?n:""," ").concat(null!=r?r:"")}),(0,o.jsxs)("div",{className:"flex items-center gap-[9px]",children:[(0,o.jsx)("div",{className:"my-traveldashboard-forms-status-tag",style:{backgroundColor:u,color:"white"},children:c}),(0,o.jsx)("p",{children:t})]})]})]})})},g=e=>{var t;let n=(0,a.a)("(max-width: 960px)"),r={complete:"var(--forest)",incomplete:"var(--color-burnt-sienna)",optional:"var(--cerulean)"},i=l.optionalSections.includes(u()(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 n?(0,o.jsx)(f,{...e,getSectionColor:s,status:c}):(0,o.jsx)(m,{...e,getSectionColor:s,status:c})}},88160:function(e,t,n){"use strict";var o=n(85893),r=n(9008),a=n.n(r),i=n(11163),s=n(19108),l=n(93901),c=n(59282);t.Z=e=>{let{title:t,description:n,keywords:r,ogImage:u,disallowRobots:d,breadcrumbItems:p}=e,m=(0,i.useRouter)(),f=/^\/(?:uk\/?|au\/?)?$/.test(m.asPath),g=/^\/((?:uk|au)\/)?destinations\//.test(m.asPath),h=m.asPath.startsWith("/uk/"),v=m.asPath.startsWith("/au/"),x=h||v?m.asPath.replace("/uk/","/").replace("/au/","/").split("?")[0]:f?"/":m.asPath.split("?")[0],y="Abercrombie & Kent is a leading luxury travel company specialising in award winning tailor-made vacations and escorted tours since 1962.",b=f&&"/"===m.asPath?"Abercrombie & Kent | Luxury Travel & Vacations Worldwide Since 1962":f&&m.asPath.startsWith("/uk")?"Abercrombie & Kent | Luxury Holidays Worldwide Since 1962":f&&m.asPath.startsWith("/au")?"Abercrombie & Kent | Luxury Holidays Worldwide Since 1962":t,j=f&&"/"===m.asPath?n:f&&m.asPath.startsWith("/uk")?"Abercrombie & Kent is a leading luxury travel company specialising in award winning tailor-made holidays and escorted tours since 1962.":f&&m.asPath.startsWith("/au")?"A&K has been pioneering experiential luxury travel for 60 years. Join us and explore the world in style.":n,w=(null!=p?p:[]).filter(e=>
1null==e?void 0:e.name),_=x.split("/").filter(Boolean),C=null;!f&&w.length>0?C=[{"@type":"ListItem",position:1,name:"Home",item:c._O},...w.map((e,t)=>{let n={"@type":"ListItem",position:t+2,name:e.name};return e.url&&(n.item=e.url),n})]:!f&&_.length>0&&(C=[{"@type":"ListItem",position:1,name:"Home",item:c._O},..._.map((e,t)=>({"@type":"ListItem",position:t+2,name:(0,l.Q0)(e),item:"".concat(c._O,"/").concat(_.slice(0,t+1).join("/"))}))]);let k=C?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:C}:null,I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h||v?(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,o.jsxs)(a(),{children:[(0,o.jsx)("title",{children:I(f?b:t)}),(0,o.jsx)("meta",{name:"description",content:I(f?j:null!=n?n:y)}),(0,o.jsx)("meta",{name:"keywords",content:I(null!=r?r:"abercrombie kent, luxury travel, luxury vacations, private tours, small group journeys, small group adventures, tailormade journeys, african sanctuaries")}),(0,o.jsx)("meta",{property:"og:type",content:"website"}),(0,o.jsx)("meta",{property:"og:site_name",content:"Abercrombie & Kent"}),(0,o.jsx)("meta",{property:"og:title",content:I(f?b:t)}),(0,o.jsx)("meta",{property:"og:description",content:I(f?j:null!=n?n:y)}),u&&u.image&&(0,o.jsx)("meta",{property:"og:image",content:(0,s.uH)(u.image).format("jpg").width(1200).url()}),d&&(0,o.jsx)("meta",{name:"robots",content:"noindex"}),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"}),(0,o.jsx)("link",{rel:"canonical",href:"https://www.abercrombiekent.com".concat(m.asPath.split("?")[0])}),(g||f)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("link",{rel:"alternate",hrefLang:"en-US",href:"https://www.abercrombiekent.com".concat(x)}),(0,o.jsx)("link",{rel:"alternate",hrefLang:"en-GB",href:"https://www.abercrombiekent.com/uk".concat(x)}),(0,o.jsx)("link",{rel:"alternate",hrefLang:"en-AU",href:"https://www.abercrombiekent.com/au".concat(x)}),(0,o.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:"https://www.abercrombiekent.com".concat(x)})]}),k&&(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(k)}},"schema-breadcrumb")]})}},96997:function(e,t,n){"use strict";var o=n(67294);t.Z=e=>{let[t,n]=(0,o.useState)("top-start");return(0,o.useEffect)(()=>{let t=()=>{let t=e.current,o=window.innerHeight;if(t){let e=t.getBoundingClientRect(),r=o-e.bottom,a=e.top;a<r?n("bottom-start"):r<a&&n("top-start")}};return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),t}},8489:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var o=n(11163),r=n(82107),a=n(28900);let i=()=>{let e=(0,o.useRouter)(),{id:t,infoType:n,siteCod:i,guestCod:s,subGroup:l}=e.query,[c]=(0,r._)(String(t)),u=()=>{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:n=>{let o=u(),r=o.findIndex(e=>{let t=e.sectionCod.toLowerCase()===n.toLowerCase(),o=!s||String(s)===String(e.guestId),r=!l||String(l)===String(e.subGroup);return t&&o&&r}),i=o[r+1];if(!i){e.push("/my-dashboard/bookings/travel-dashboard?id=".concat(t));return}let c=(0,a.VK)(i.sectionCod),d="/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(d)}}}},28327:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return eG},default:function(){return eW}});var o=n(85893),r=n(80514),a=n(91562),i=n(36685),s=n(27764),l=n(88160),c=n(35122),u=n(67294),d=n(15851),p=(0,n(56817).k)(()=>({placeholder:{},input:{cursor:"pointer"}})),m=n(66261),f=n(80971),g=n(94151),h=n(58495),v=n(83979),x=n(80665),y=Object.defineProperty,b=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,_=(e,t,n
1)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C=(e,t)=>{for(var n in t||(t={}))j.call(t,n)&&_(e,n,t[n]);if(b)for(var n of b(t))w.call(t,n)&&_(e,n,t[n]);return e},k=(e,t)=>{var n={};for(var o in e)j.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&b)for(var o of b(e))0>t.indexOf(o)&&w.call(e,o)&&(n[o]=e[o]);return n};let I={multiple:!1},N=(0,u.forwardRef)((e,t)=>{let n=(0,h.N4)("FileButton",I,e),{onChange:o,children:r,multiple:a,accept:i,name:s,form:l,resetRef:c,disabled:d,capture:p,inputProps:m}=n,f=k(n,["onChange","children","multiple","accept","name","form","resetRef","disabled","capture","inputProps"]),g=(0,u.useRef)();return(0,v.k)(c,()=>{g.current.value=""}),u.createElement(u.Fragment,null,r(C({onClick:()=>{d||g.current.click()}},f)),u.createElement("input",C({style:{display:"none"},type:"file",accept:i,multiple:a,onChange:e=>{a?o(Array.from(e.currentTarget.files)):o(e.currentTarget.files[0]||null)},ref:(0,x.Y)(t,g),name:s,form:l,capture:p},m)))});N.displayName="@mantine/core/FileButton";var D=n(95117),P=Object.defineProperty,O=Object.defineProperties,S=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,T=(e,t,n)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>
1{for(var n in t||(t={}))L.call(t,n)&&T(e,n,t[n]);if(E)for(var n of E(t))M.call(t,n)&&T(e,n,t[n]);return e},R=(e,t)=>O(e,S(t)),B=(e,t)=>{var n={};for(var o in e)L.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&E)for(var o of E(e))0>t.indexOf(o)&&M.call(e,o)&&(n[o]=e[o]);return n};let z={size:"sm",valueComponent:({value:e})=>u.createElement(D.x,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},Array.isArray(e)?e.map(e=>e.name).join(", "):null==e?void 0:e.name),clearButtonTabIndex:0},F={xs:24,sm:30,md:34,lg:40,xl:44},G=(0,u.forwardRef)((e,t)=>{let n=(0,m.k)("FileInput",z,e),{inputProps:o,wrapperProps:r,placeholder:a,value:i,defaultValue:s,onChange:l,multiple:c,accept:h,name:v,form:x,classNames:y,styles:b,unstyled:j,valueComponent:w,rightSection:_,rightSectionWidth:C,clearable:k,clearButtonLabel:I,clearButtonTabIndex:D,readOnly:P,capture:O,fileInputProps:S}=n,E=B(n,["inputProps","wrapperProps","placeholder","value","defaultValue","onChange","multiple","accept","name","form","classNames","styles","unstyled","valueComponent","rightSection","rightSectionWidth","clearable","clearButtonLabel","clearButtonTabIndex","readOnly","capture","fileInputProps"]),L=(0,u.useRef)(),{classes:M,theme:T,cx:G}=p(null,{name:"FileInput",classNames:y,styles:b,unstyled:j}),[W,Q]=(0,d.C)({value:i,defaultValue:s,onChange:l,finalValue:c?[]:null}),U=Array.isArray(W)?0!==W.length:null!==W,V=_||(k&&U&&!P?u.createElement(f.P,{variant:"transparent","aria-label":I,onClick:()=>Q(c?[]:null),size:o.size,tabIndex:D,unstyled:j}):null);return(0,u.useEffect)(()=>{(Array.isArray(W)&&0===W.length||null===W)&&L.current()},[W]),u.createElement(g.I.Wrapper,R(A({},r),{__staticSelector:"FileInput"}),u.createElement(N,{onChange:Q,multiple:c,accept:h,name:v,form:x,resetRef:L,disabled:P,capture:O,inputProps:S},e=>u.createElement(g.I,R(A(A(A({multiline:!0},e),o),E),{component:"button",type:"button",ref:t,__staticSelector:"FileInput",rightSection:V,rightSectionWidth:C||T.fn.size({size:o.size,sizes:F}),classNames:R(A({},y),{input:G(M.input,null==y?void 0:y.input)})}),U?u.createElement(w,{value:W}):u.createElement(g.I.Placeholder,{className:M.placeholder},a))))});G.displayName="@mantine/core/FileInput";var W=n(97818),Q=n(48427),U=n(64523),V=Object.defineProperty,Z=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,q=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t)=>{for(var n in t||(t={}))H.call(t,n)&&q(e,n,t[n]);if(Z)for(var n of Z(t))K.call(t,n)&&q(e,n,t[n]);return e},J=(e,t)=>{var n={};for(var o in e)H.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&Z)for(var o of Z(e))0>t.indexOf(o)&&K.call(e,o)&&(n[o]=e[o]);return n};let X=(0,u.forwardRef)((e,t)=>{let n=(0,h.N4)("Center",{},e),{inline:o,sx:r}=n,a=J(n,["inline","sx"]);return u.createElement(U.x,Y({ref:t,sx:[{display:o?"inline-flex":"flex",alignItems:"center",justifyContent:"center"},...(0,W.R)(r)]},a))});X.displayName="@mantine/core/Center";let $=(0,Q.F)(X);var ee=n(71232),et=n(67841),en=n(49737),eo=n(79640),er=n(80061),ea=n(28855),ei=n(69876),es=n(20966),el=n(87092),ec=n(67288),eu=n(72507),ed=n(98903),ep=n(34065),em=n(74922),ef=n(71417),eg=n(66510),eh=n(3085),ev=n(39633),ex=n(82107),ey=n(96997),eb=n(42029),ej=n(18975),ew=n(41664),e_=n.n(ew),eC=n(9473),ek=n(40121),eI=n(96606),eN=n(49930),eD=n(64531),eP=n(25675),eO=n.n(eP),eS=n(28900),eE=n(66713),eL=(0,n(71301).Z)("photo","IconPhoto",[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-3"}]]),eM=n(91650),eT=(0,n(61607).a1)("check-correct",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("g",{clipPath:"url(#"+e.id+"286b69da)"},u.createElement("path",{d:"M42 20V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9C6 7.34315 7.34315 6 9 6H30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M16 20L26 28L41 7",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin})),u.createElement("defs",null,u.createElement("clipPath",{id:e.id+"286b69da"},u.createElement("rect",{width:"48",height:"48",fill:e.colors[2]}))))}),eA=n(8489),eR=n(31020),eB=n(87660);let ez=/^[a-zA-Z0-9]+$/,eF=e=>{var t,n;let{bookingId:d,guestCod:p,passportData:m,siteid:f,type:g,countryData:h}=e;(0,eb.S)();let v=(0,eC.I0)(),x=(0,ep.a)("(max-width: 960px)"),{selectStyles:y,textInputStyles:b,datePickerStyles:j,cancelBtnStyles:w,saveBtnStyles:_,backBtnStyles:C,checkboxStyles:k}=(0,ek.Z)(),[I]=(0,ex._)(d),N=(0,eC.v9)(eh.S8),[D,P]=(0,u.useState)({loading:!1,countries:[],fileLoading:!1,file:null,activeAccordion:""}),{navigateToNextSection:O}=(0,eA.V)(),{setAccordionRef:S,handleAccordionScroll:E}=(0,eR.B)({headerOffset:200}),L=(0,u.useRef)(null),M=(0,u.useRef)(null),T=(0,ey.Z)(L),A=(0,u.useRef)(null),R=(0,u.useMemo)(()=>1===Number(null==m?void 0:m.uploadPassport),[m]),B=(0,u.useMemo)(()=>null==I?void 0:I.endDate,[I]),z=["passportNumber","issueCountry","issueDate","expirationDate","birthCountry","passportBlobGuID"],{logGIFUpdate:F}=(0,eB.L)();(0,u.useEffect)(()=>{var e;if(null===(e=window)||void 0===e?void 0:e.intlTelInputGlobals){let e=window.intlTelInputGlobals.getCountryData().map(e=>{var t;return{label:e.name,value:null!==(t=(0,ej.alpha2ToAlpha3)(e.iso2.toUpperCase()))&&void 0!==t?t:e.name,key:e.name}});P(t=>({...t,countries:e}))}},[]);let W=(e,t)=>{if(!e||"string"!=typeof e)return"";let n=e.trim();return n&&t.some(e=>e.value===n)?n:""},Q=(0,ed.c)({validateInputOnChange:!0,initialValues:{passportNumber:(null==m?void 0:m.passportNumber)||"",isComplete:(null==m?void 0:m.isComplete)||!1,issueCountry:W(null==m?void 0:m.issueCountry,h),issueDate:(null==m?void 0:m.issueDate)?new Date(null==m?void 0:m.issueDate):"",expirationDate:(null==m?void 0:m.expirationDate)?new Date(null==m?void 0:m.expirationDate):"",birthCountry:W(null==m?void 0:m.birthCountry,h),passportNotRequired:(null==m?void 0:m.passportNotRequired)||!1,passportBlobGuID:(null==m?void 0:m.passportBlobGuID)!==null?null==m?void 0:m.passportBlobGuID:null,noInfo:(null==m?void 0:m.noInfo)||null,noInfoNote:(null==m?void 0:m.noInfoNote)||null},validate:{passportNumber:(e,t)=>t.noInfo?null:(null==e?void 0:e.length)>=7?ez.test(e)?null:"Only letters and number}s are acceptable.":"Passport Number Required",issueCountry:(e,t)=>(null==t?void 0:t.noInfo)||(null==e?void 0:e.length)>0?null:"Issuing Country Required",issueDate:(e,t)=>
1(null==t?void 0:t.noInfo)||e&&""!==e?null:"Issue Date Required",expirationDate:(e,t)=>(null==t?void 0:t.noInfo)?null:e&&""!==e?(0,eM.Oz)(e,B)?"Expiration Date must be more than 3 months from the return date of travel":null:"Expiration Date Required",birthCountry:(e,t)=>(null==t?void 0:t.noInfo)||e&&e.length>0?null:"Country Of Birth Required",passportBlobGuID:(e,t)=>(null==t?void 0:t.noInfo)||!R||e&&"string"==typeof e&&e.length>0?null:"Required"}}),U=(null==I?void 0:I.segment)==="luxury expedition cruises"||(null==I?void 0:I.product)==="luxury expedition cruises",V=I&&(null==I?void 0:null===(t=I.guests)||void 0===t?void 0:t.length)>0&&(null==I?void 0:null===(n=I.guests)||void 0===n?void 0:n.filter(e=>String(e.guestID)===String(p))[0]),Z=async e=>{if(P(e=>({...e,loading:!0})),e.issueDate&&""!==e.issueDate&&"object"==typeof e.issueDate){let t=e.issueDate;e.issueDate=new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().slice(0,10)}if(e.expirationDate&&""!==e.expirationDate&&"object"==typeof e.expirationDate){let t=e.expirationDate;e.expirationDate=new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().slice(0,10)}let t=N.dl.enable&&N.dl.agentEmail?N.dl.agentEmail:N.email;await (0,c.nL)({bookingId:d,guestCod:p,siteid:f,type:g,userId:t||"",isComplete:Q.isValid(),passportData:{...e,noInfo:e.noInfo?"true":"false",noInfoNote:e.noInfoNote||""}})?((0,em.c0)({id:"MyPassport",message:(0,o.jsx)(eE.Z.Success,{title:"Passport Information",message:"Your passport data has been successfully updated."}),sx:ev.O.toasters.akToaster,autoClose:3e3}),F({eventCategory:"passport",bookingId:d,passengerId:p}),v((0,eg.PH)({bookingId:d,type:g,siteid:Number(f)})),O(eS.rD.PASSPORT)):(0,em.c0)({id:"MyPassport",message:(0,o.jsx)(eE.Z.Error,{title:"Passport Information",message:"An error occurred, please try later."}),sx:ev.O.toasters.akToaster,autoClose:3e3}),P(e=>({...e,loading:!1}))};(0,u.useEffect)(()=>{Q.values.noInfo?P(e=>({...e,activeAccordion:"noInfo"})):P(e=>({...e,activeAccordion:"passportDetails"}))},[Q.values.noInfo,Q.values.passportNotRequired,null==m?void 0:m.passportNotRequired]);let H=(0,u.useMemo)(()=>{if(I&&V){var e,t;return(null===(t=(null==V?void 0:V.guestSection)||[])||void 0===t?void 0:null===(e=t.find(e=>(null==e?void 0:e.sectionCod)===eS.rD.PASSPORT.toUpperCase()))||void 0===e?void 0:e.isComplete)||!1}return!1},[V,I]),K=async e=>{if(e){let t=(0,eM.XH)(e);if(!t.isValid){(0,em.c0)({id:"PassportUpload",message:(0,o.jsx)(eE.Z.Error,{title:"Invalid File",message:t.error||"Please select a valid passport scan."}),sx:ev.O.toasters.akToaster,autoClose:5e3});return}P(t=>({...t,file:e,fileLoading:!0}));try{let t=await (0,c.qi)({file:e});if(t||""===t)Q.setFieldValue("passportBlobGuID",t),(0,em.c0)({id:"PassportUpload",message:(0,o.jsx)(eE.Z.Success,{title:"Passport Upload",message:"Your passport file has been successfully uploaded."}),sx:ev.O.toasters.akToaster,autoClose:3e3});else throw Error("Failed to upload passport file")}catch(e){(0,em.c0)({id:"PassportUpload",message:(0,o.jsx)(eE.Z.Error,{title:"Passport Upload",message:"An error occurred while uploading your passport file."}),sx:ev.O.toasters.akToaster,autoClose:3e3})}P(e=>({...e,fileLoading:!1}))}};function q(e){let{file:t}=e;return(0,o.jsxs)($,{inline:!0,sx:e=>({backgroundColor:"#fff",fontSize:e.fontSizes.xs,padding:"3px 7px",borderRadius:e.radius.sm}),children:[(0,o.jsx)(eL,{size:14,style:{marginRight:5}}),(0,o.jsx)("span",{style:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxWidth:250,display:"inline-block",fontSize:"var(--smallTextSize)"},children:t.name})]})}return(0,u.useEffect)(()=>{Q.values.noInfo&&z.some(e=>Q.isTouched(e))&&Q.setFieldValue("noInfo",!1)},[Q]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Z,{title:"Passport Information | Abercrombie & Kent",description:"Passport Information",keywords:""}),(0,o.jsx)(ef.N,{className:"mantine-notification-provider",position:"bottom-right",children:(0,o.jsxs)("div",{className:"my-crystal relative",children:[(0,o.jsx)(eD.H,{children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e_(),{href:"/my-dashboard/bookings/travel-dashboard?id=".concat(d),passHref:!0,legacyBehavior:!0,children:(0,o.jsx)(et.z,{className:"flex-start-center",component:"a",classNames:C,children:"Back to Travel Dashboard"})}),(0,o.jsx)(s.Z,{showMultipleBookings:!0,guestID:p,bookingId:d})]})}),(0,o.jsxs)("div",{className:"my-crystal-content",children:[x&&(0,o.jsx)("div",{className:"story-title-wrapper",style:{marginBottom:"30px"},children:(0,o.jsx)(e_(),{href:"/my-dashboard/bookings/travel-dashboard?id=".concat(d),passHref:!0,legacyBehavior:!0,children:(0,o.jsx)(et.z,{className:"flex-start-center",component:"a",classNames:C,children:"Back to Travel Dashboard"})})}),(0,o.jsx)(i.j2,{title:"Passport Information",subtitle:(0,o.jsx)("p",{children:"Make sure all the required information is up to date and complete before your departure."}),firstName:(null==V?void 0:V.firstName)||"",lastName:(null==V?void 0:V.lastName)||"",isComplete:H,guestCod:p}),(0,o.jsx)(a.Z,{bookingId:d,guestID:p}),!x&&(0,o.jsx)("div",{className:"my-dashboard-content-inner-divisor"}),(0,o.jsxs)("form",{onSubmit:Q.onSubmit(Z),className:"my-crystal-passport my-dashboard-form-wrapper space-y-[18px]",children:[(0,o.jsx)(en.f,{visible:D.loading,zIndex:45}),(0,o.jsxs)(eo.U,{value:D.activeAccordion,className:"scroll-mt-4",onCh
1ange:e=>{P(t=>({...t,activeAccordion:e})),e&&E(e)},styles:{item:{borderBottom:"1px solid #E9E9E9",padding:"24px 0"},control:{padding:"10px 0","&:hover":{backgroundColor:"transparent"}},content:{padding:"0px"}},children:[(0,o.jsx)(eo.U.Item,{value:"passportDetails",children:(0,o.jsxs)("div",{ref:e=>S("passportDetails",e),className:"w-full",children:[(0,o.jsx)(eo.U.Control,{children:(0,o.jsx)("h3",{children:"Passport Information"})}),(0,o.jsx)(eo.U.Panel,{children:!Q.values.passportNotRequired&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"my-dashboard-forms-two-columns",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(er.o,{classNames:b,autoComplete:"off",label:(0,o.jsx)("div",{children:"Passport Number*"}),placeholder:"Passport Number*",error:Q.errors.passportNumber,...Q.getInputProps("passportNumber",{type:"input"})}),!Q.errors.passportNumber&&(0,o.jsx)("div",{className:"h-[18px]"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(ea.Ph,{searchable:!0,data:h,classNames:y,autoComplete:"off",label:(0,o.jsx)("div",{children:"Issuing Country*"}),placeholder:"Issuing Country*",rightSection:(0,o.jsx)(eI.OrA,{className:"text-black",size:20}),error:Q.errors.issueCountry,...Q.getInputProps("issueCountry",{type:"input"})}),!Q.errors.issueCountry&&(0,o.jsx)("div",{className:"h-[18px]"})]})]}),(0,o.jsxs)("div",{className:"my-dashboard-forms-two-columns",children:[(0,o.jsxs)("div",{ref:L,children:[(0,o.jsx)(eu.M,{ref:A,dropdownPosition:T,classNames:j,autoComplete:"off",maxDate:new Date,label:(0,o.jsx)("div",{children:"Issue Date*"}),placeholder:"Issue Date*",clearable:!0,styles:{rightSection:{zIndex:"40 !important"}},rightSectionProps:{onClick:e=>(0,eM.dR)(e,A)},rightSection:(0,o.jsx)(r.Qu,{width:"16px",height:"16px",color:"#000"}),error:Q.errors.issueDate,...Q.getInputProps("issueDate",{type:"input"})}),!Q.errors.issueDate&&(0,o.jsx)("div",{className:"h-[18px]"})]}),(0,o.jsxs)("div",{ref:L,children:[(0,o.jsx)(eu.M,{ref:M,dropdownPosition:T,classNames:j,autoComplete:"off",minDate:new Date,label:"Expiration Date*",placeholder:"Expiration Date*",styles:{rightSection:{zIndex:"40 !important"}},rightSectionProps:{onClick:e=>(0,eM.dR)(e,M)},rightSection:(0,o.jsx)(r.Qu,{width:"16px",height:"16px",color:"#000"}),clearable:!0,error:Q.errors.expirationDate,...Q.getInputProps("expirationDate",{type:"input"})}),!Q.errors.expirationDate&&(0,o.jsx)("div",{className:"h-[18px]"})]})]}),(0,o.jsx)("div",{className:"my-dashboard-forms-two-columns",children:(0,o.jsxs)("div",{children:[(0,o.jsx)(ea.Ph,{searchable:!0,data:h,classNames:y,autoComplete:"off",label:(0,o.jsx)("div",{children:"Country of Birth*"}),placeholder:"Country of Birth*",error:Q.errors.birthCountry,...Q.getInputProps("birthCountry",{type:"input"}),rightSection:(0,o.jsx)(eI.OrA,{className:"text-black",size:20})}),!Q.errors.birthCountry&&(0,o.jsx)("div",{className:"h-[18px]"})]})}),(0,o.jsx)("div",{className:"my-dashboard-forms-two-columns",children:(0,o.jsxs)(ei.k,{justify:"space-between",align:"center",children:[(0,o.jsx)(G,{variant:"unstyled",className:"border-none",disabled:D.fileLoading,error:Q.errors.passportBlobGuID,accept:eM.rD.allowedExtensions.join(","),styles:{error:{fontSize:"14px",marginTop:"6px",color:"var(--color-burnt-sienna)"},input:{paddingRight:"30px",fontSize:"14px"},rightSection:{"& svg":{color:"#000"}}},valueComponent:e=>{let{value:t}=e;return Array.isArray(t)?(0,o.jsx)(ee.Z,{spacing:"sm",py:"xs",children:t.map((e,t)=>(0,o.jsx)(q,{file:e},t))}):(0,o.jsx)(q,{file:t})},placeholder:(0,o.jsxs)("div",{className:"travel-dashboard-text_btn",children:[(0,o.jsx)("span",{className:"leading-0",children:"Upload Passport Scan ".concat(R?"*":"")}),(0,o.jsx)(eO(),{src:"/icons/ico-upload.svg",alt:"Upload icon",width:11,height:11})]}),clearable:!0,onChange:K}),D.fileLoading&&(0,o.jsx)(es.a,{size:24}),!D.fileLoading&&Q.values.passportBlobGuID&&(0,o.jsx)(eT,{className:"text-forest",size:20,strokeWidth:2})]})}),U&&(0,o.jsx)("div",{className:"my-crystal-forms-one-columns my-crystal-forms my-[18px]",children:(0,o.jsx)("p",{className:"photo-id-disclaimer",children:"In order to speed up the embarkation process, please bring government issued photo ID as well as your passport"})}),(0,o.jsx)("div",{className:"my-crystal-forms-one-columns my-crystal-forms my-[18px]",children:(0,o.jsx)("p",{className:"my-dashboard-warning-disclaimer",children:"Please note your passport must be valid for six months after you return home from travel."})})]})})]})}),(0,o.jsx)(eo.U.Item,{value:"noInfo",children:(0,o.jsxs)("div",{ref:e=>S("noInfo",e),className:"w-full",children:[(0,o.jsx)(eo.U.Control,{children:(0,o.jsx)("h3",{children:"Prefer not to provide details?"})}),(0,o.jsxs)(eo.U.Panel,{children:[(0,o.jsxs)("div",{className:"my-dashboard-forms-one-column ",children:[(0,o.jsx)("div",{className:"mb-[18px]",children:(0,o.jsx)("p",{children:"For most Abercrombie & Kent journeys, a passport is required. If necessary, we will c
1ontact you to obtain the information."})}),(0,o.jsx)("div",{children:(0,o.jsx)(el.X,{...Q.getInputProps("noInfo",{type:"checkbox"}),classNames:k,label:"I prefer not to provide my passport information.",onChange:e=>{Q.setFieldValue("noInfo",e.currentTarget.checked),e.currentTarget.checked&&z.forEach(e=>{"passportNumber"===e?Q.setFieldValue(e,""):Q.setFieldValue(e,null),Q.resetTouched()}),e.currentTarget.checked?P(e=>({...e,activeAccordion:"noInfo"})):P(e=>({...e,activeAccordion:"passportDetails"}))}})})]}),(0,o.jsx)("div",{className:"my-dashboard-forms-one-column mt-4",children:(0,o.jsx)(ec.g,{classNames:b,autoComplete:"off",styles:{input:{minHeight:"100px",width:"100%"}},label:"Comments",placeholder:"Comments",minRows:8,...Q.getInputProps("noInfoNote")})})]})]})})]}),(0,o.jsxs)("div",{className:"my-dashboard-form-buttons-wrapper",children:[(0,o.jsx)(e_(),{href:"/my-dashboard/bookings/travel-dashboard?id=".concat(d),legacyBehavior:!0,children:(0,o.jsx)(et.z,{component:"a",classNames:w,variant:"outline",children:"Cancel"})}),(0,o.jsx)(et.z,{disabled:D.fileLoading,type:"submit",classNames:_,children:"Save and Continue"})]})]})]})]})})]})};eF.getLayout=e=>(0,o.jsx)(eN.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 eG=!0,eW=eF}},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,1263,578,1417,9455,9108,6300,514,7881,2670,9930,3269,9774,2888,179],function(){return e(e.s=89876)}),_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.