1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5087],{25087:(L,M,l)=>{l.r(M),l.d(M,{ItineraryPageModule:()=>ke});var u=l(36895),y=l(24006),p=l(59928),P=l(9848),v=l(9116),I=l(49671),b=l(77579),C=l(82722),o=l(12390),s=l(47423),e=l(94650),_=l(43290),d=l(39033),g=l(31443),m=l(40704),f=l(43956),A=l(67579),T=l(11481),U=l(69825),D=l(76647),S=l(78497),w=l(49652);function J(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"ion-button",6),e.NdJ("click",function(){e.CHM(n);const a=e.oxw();return e.KtG(a.scrollToSection("pricing"))}),e._uU(1," Go to Pricing "),e.qZA()}}function Q(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1,"\xa0Breakfast"),e.qZA())}function q(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1,"\xa0Breakfast, Lunch"),e.qZA())}function z(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1,"\xa0Breakfast, Dinner"),e.qZA())}function N(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1,"\xa0Breakfast, Lunch, Dinner"),e.qZA())}function E(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1,"\xa0Lunch"),e.qZA())}function Y(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1,"\xa0Lunch, Dinner"),e.qZA())}function B(t,r){1&t&&(e.TgZ(0,"span"),e._uU(1,"\xa0Dinner"),e.qZA())}function R(t,r){if(1&t&&(e.TgZ(0,"ion-text",19)(1,"p")(2,"i")(3,"strong"),e._uU(4," Included meals: "),e.qZA(),e.YNc(5,Q,2,0,"span",9),e.YNc(6,q,2,0,"span",9),e.YNc(7,z,2,0,"span",9),e.YNc(8,N,2,0,"span",9),e.YNc(9,E,2,0,"span",9),e.YNc(10,Y,2,0,"span",9),e.YNc(11,B,2,0,"span",9),e.qZA()()()),2&t){const n=e.oxw(2).$implicit,i=e.MAs(1);e.Q6J("color",i.expanded?"dark":"medium"),e.xp6(5),e.Q6J("ngIf",n.breakfastIncluded&&!n.lunchIncluded&&!n.dinnerIncluded),e.xp6(1),e.Q6J("ngIf",n.breakfastIncluded&&n.lunchIncluded&&!n.dinnerIncluded),e.xp6(1),e.Q6J("ngIf",n.breakfastIncluded&&!n.lunchIncluded&&n.dinnerIncluded),e.xp6(1),e.Q6J("ngIf",n.breakfastIncluded&&n.lunchIncluded&&n.dinnerIncluded),e.xp6(1),e.Q6J("ngIf",!n.breakfastIncluded&&n.lunchIncluded&&!n.dinnerIncluded),e.xp6(1),e.Q6J("ngIf",!n.breakfastIncluded&&n.lunchIncluded&&n.dinnerIncluded),e.xp6(1),e.Q6J("ngIf",!n.breakfastIncluded&&!n.lunchIncluded&&n.dinnerIncluded)}}function H(t,r){if(1&t&&(e.TgZ(0,"mat-expansion-panel-header")(1,"mat-panel-title")(2,"ion-grid")(3,"ion-row")(4,"ion-col",11)(5,"ion-label",12)(6,"strong"),e._uU(7),e.qZA()()(),e.TgZ(8,"ion-col",13)(9,"ion-label",14),e._uU(10),e.YNc(11,R,12,8,"ion-text",15),e.qZA()()()()(),e.TgZ(12,"mat-panel-description",16)(13,"ion-button",17),e._UZ(14,"ion-icon",18),e.qZA()()()),2&t){const n=e.oxw().$implicit,i=e.MAs(1),a=e.oxw();e.xp6(4),e.Q6J("size",a.isMobile?"2":"1")("sizeMd",a.isMobile?"2":"1")("sizeSm",a.isMobile?"2":"1"),e.xp6(1),e.Q6J("color",i.expanded?"dark":"medium"),e.xp6(2),e.hij(" DAY ",n.day," "),e.xp6(2),e.Q6J("color",i.expanded?"dark":"medium"),e.xp6(1),e.hij(" ",n.dayTitle," "),e.xp6(1),e.Q6J("ngIf",(n.breakfastIncluded||n.lunchIncluded||n.dinnerIncluded)&&i.expanded),e.xp6(3),e.Q6J("name",i.expanded?"chevron-up-circle":"chevron-down-circle-outline")}}function W(t,r){if(1&t&&(e.TgZ(0,"strong"),e._uU(1),e.qZA()),2&t){const n=e.oxw(3).$implicit;e.xp6(1),e.Oqu(n.description.startTime)}}function F(t,r){1&t&&(e.TgZ(0,"i"),e._uU(1,"TBC"),e.qZA())}function K(t,r){if(1&t&&(e.TgZ(0,"ion-col",24)(1,"ion-label")(2,"p",25),e.YNc(3,W,2,1,"strong",9),e.YNc(4,F,2,0,"i",9),e.qZA()()()),2&t){const n=e.oxw(2).$implicit,i=e.oxw(2);e.Q6J("size",i.isMobile?"2":"1")("sizeMd",i.isMobile?"2":"1")("sizeSm",i.isMobile?"2":"1"),e.xp6(3),e.Q6J("ngIf",n.description.startTime),e.xp6(1),e.Q6J("ngIf",!n.description.startTime&&!n.description.overnight)}}function $(t,r){if(1&t&&(e.TgZ(0,"p",29),e._uU(1),e.qZA()),2&t){const n=e.oxw(3).$implicit;e.xp6(1),e.hij(" ",n.description.long," ")}}function j(t,r){if(1&t&&(e.TgZ(0,"p",29)(1,"strong"),e._uU(2,"Confirmation #:"),e.qZA(),e._uU(3),e.qZA()),2&t){const n=e.oxw(3).$implicit;e.xp6(3),e.hij(" ",n.description.confirmation," ")}}function V(t,r){if(1&t&&(e.TgZ(0,"p",29)(1,"strong"),e._uU(2,"Notes: "),e.qZA(),e._uU(3),e.qZA()),2&t){const n=e.oxw(3).$implicit;e.xp6(3),e.hij("",n.notes," ")}}function G(t,r){if(1&t&&(e.TgZ(0,"ion-col",13)(1,"ion-label",26)(2,"p",27)(3,"strong"),e._uU(4),e.qZA()(),e.YNc(5,$,2,1,"p",28),e.YNc(6,j,4,1,"p",28),e.YNc(7,V,4,1,"p",28),e.qZA()()),2&t){const n=e.oxw(2).$implicit;e.xp6(4),e.Oqu(n.description.short),e.xp6(1),e.Q6J("ngIf",n.description.long&&""!==n.description.long&&n.description.long.length>0),e.xp6(1),e.Q6J("ngIf",n.description.confirmation),e.xp6(1),e.Q6J("ngIf",n.notes)}}
1function X(t,r){if(1&t&&(e.TgZ(0,"ion-col",11),e._UZ(1,"ion-icon",30),e.TgZ(2,"p",31),e._uU(3," Overnight "),e.qZA()()),2&t){const n=e.oxw(4);e.Q6J("size",n.isMobile?"2":"1")("sizeMd",n.isMobile?"2":"1")("sizeSm",n.isMobile?"2":"1")}}function ee(t,r){if(1&t&&(e.TgZ(0,"p",29),e._uU(1),e.qZA()),2&t){const n=e.oxw(3).$implicit;e.xp6(1),e.hij(" ",n.description.long," ")}}function ne(t,r){if(1&t&&(e.TgZ(0,"p",29)(1,"strong"),e._uU(2,"Confirmation #: "),e.qZA(),e._uU(3),e.qZA()),2&t){const n=e.oxw(3).$implicit;e.xp6(3),e.hij(" ",n.description.confirmation," ")}}function te(t,r){if(1&t&&(e.TgZ(0,"ion-text",35)(1,"p",29)(2,"strong"),e._uU(3,"Notes: "),e.qZA(),e._uU(4),e.qZA()()),2&t){const n=e.oxw(3).$implicit;e.xp6(4),e.hij("",n.notes," ")}}function ie(t,r){if(1&t&&(e.TgZ(0,"ion-col",13)(1,"ion-label",32)(2,"p",29)(3,"strong"),e._uU(4),e.qZA()(),e.YNc(5,ee,2,1,"p",28),e.TgZ(6,"ion-text",33),e.YNc(7,ne,4,1,"p",28),e.qZA(),e.YNc(8,te,5,1,"ion-text",34),e.qZA()()),2&t){const n=e.oxw(2).$implicit;e.xp6(4),e.Oqu(n.description.short),e.xp6(1),e.Q6J("ngIf",n.description.long&&""!==n.description.long&&n.description.long.length>0),e.xp6(2),e.Q6J("ngIf",n.description.confirmation),e.xp6(1),e.Q6J("ngIf",n.notes)}}function re(t,r){if(1&t&&(e.TgZ(0,"ion-row"),e.YNc(1,K,5,5,"ion-col",21),e.YNc(2,G,8,4,"ion-col",22),e.YNc(3,X,4,3,"ion-col",23),e.YNc(4,ie,9,4,"ion-col",22),e.qZA()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",!n.description.overnight),e.xp6(1),e.Q6J("ngIf",!n.description.overnight),e.xp6(1),e.Q6J("ngIf",n.description.overnight),e.xp6(1),e.Q6J("ngIf",n.description.overnight)}}const oe=function(t){return{"hotel-background":t}};function ae(t,r){if(1&t&&(e.TgZ(0,"ion-grid",20),e.YNc(1,re,5,4,"ion-row",9),e.qZA()),2&t){const n=r.$implicit,i=e.oxw().$implicit;e.Q6J("ngClass",e.VKq(2,oe,n.description.overnight)),e.xp6(1),e.Q6J("ngIf","Breakfast"!==n.description.long&&i.itineraryDescriptions.length>0)}}const se=function(t){return{display:t}},le=function(t){return{"expansion-panel-item":t}};function ce(t,r){if(1&t&&(e.TgZ(0,"mat-expansion-panel",7,8),e.YNc(2,H,15,9,"mat-expansion-panel-header",9),e.YNc(3,ae,2,4,"ion-grid",10),e.qZA()),2&t){const n=r.$implicit;e.Q6J("expanded",!0)("ngStyle",e.VKq(5,se,n.itineraryDescriptions.length>0?"block":"none"))("ngClass",e.VKq(7,le,n.itineraryDescriptions.length>0)),e.xp6(2),e.Q6J("ngIf",n.itineraryDescriptions.length>0),e.xp6(1),e.Q6J("ngForOf",n.itineraryDescriptions)}}const pe=function(t,r){return{"header-item-label":t,"desktop-header-item-label":r}};let de=(()=>{class t{constructor(){this.scrollTo=new e.vpe}ngOnInit(){}scrollToSection(n){this.scrollTo.emit(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-itinerary-list"]],inputs:{clientItinerary:"clientItinerary",isMobile:"isMobile",status:"status"},outputs:{scrollTo:"scrollTo"},decls:7,vars:7,consts:[["lines","none",3,"ngClass"],["color","dark",1,"details-title-label","ion-no-margin"],["color","dark","fill","clear","slot","end",3,"click",4,"ngIf"],[3,"multi"],["accordion","matAccordion"],["hideToggle","",3,"expanded","ngStyle","ngClass",4,"ngFor","ngForOf"],["color","dark","fill","clear","slot","end",3,"click"],["hideToggle","",3,"expanded","ngStyle","ngClass"],["expansion",""],[4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"ion-text-center",3,"size","sizeMd","sizeSm"],[1,"day-title",3,"color"],["size","10"],[1,"day-text-title","ion-no-margin",3,"color"],[3,"color",4,"ngIf"],[1,"ion-no-margin"],["color","dark","fill","clear",1,"n
1oeffect"],[1,"day-icon",3,"name"],[3,"color"],[3,"ngClass"],[3,"size","sizeMd","sizeSm",4,"ngIf"],["size","10",4,"ngIf"],["class","ion-text-center",3,"size","sizeMd","sizeSm",4,"ngIf"],[3,"size","sizeMd","sizeSm"],[1,"itinerary-time"],[1,"short-description"],[1,"short-description-title"],["class","description-paragraph",4,"ngIf"],[1,"description-paragraph"],["src","assets/icons/icon-overnight.svg",1,"bed-icon"],[1,"overnight-text"],["color","primary",1,"short-description"],["color","success"],["color","primary",4,"ngIf"],["color","primary"]],template:function(n,i){1&n&&(e.TgZ(0,"ion-item",0)(1,"ion-label",1),e._uU(2," ITINERARY "),e.qZA(),e.YNc(3,J,2,0,"ion-button",2),e.qZA(),e.TgZ(4,"mat-accordion",3,4),e.YNc(6,ce,4,9,"mat-expansion-panel",5),e.qZA()),2&n&&(e.Q6J("ngClass",e.WLB(4,pe,i.isMobile,!i.isMobile)),e.xp6(3),e.Q6J("ngIf","Booked"!==i.status&&"Travelled"!==i.status&&"Cancelled"!==i.status&&i.isMobile),e.xp6(1),e.Q6J("multi",!0),e.xp6(2),e.Q6J("ngForOf",null==i.clientItinerary?null:i.clientItinerary.details))},dependencies:[u.mk,u.sg,u.O5,u.PC,p.YG,p.wI,p.jY,p.gu,p.Ie,p.Q$,p.Nd,p.yW,w.pp,w.ib,w.yz,w.yK,w.u4],styles:["mat-panel-title{width:100%;margin:0!important}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)} mat-expansion-panel{border-radius:0!important;box-shadow:none!important;padding:0!important}.expansion-panel-item[_ngcontent-%COMP%]{border-bottom:1px solid var(--ion-color-light);margin-bottom:0;margin-top:0}.expansion-panel-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.hotel-background[_ngcontent-%COMP%]{background-color:rgba(var(--ion-color-medium-rgb),.2)} mat-accordion{width:100%}.expansion-panel-item[_ngcontent-%COMP%]{width:100%;cursor:pointer} mat-expansion-panel-header{background-color:transparent;height:auto!important;padding:0!important;border-bottom:1px solid var(--ion-color-light)!important} mat-expansion-panel-header-title{margin:0!important} .mat-expansion-panel-content{width:100%}.mat-expansion-indicator[_ngcontent-%COMP%]{margin-left:8px}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header.cdk-keyboard-focused[_ngcontent-%COMP%]:not([aria-disabled=true]), .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header.cdk-program-focused[_ngcontent-%COMP%]:not([aria-disabled=true]), .mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded) .mat-expansion-panel-header[_ngcontent-%COMP%]:hover:not([aria-disabled=true]){background:transparent}[_nghost-%COMP%] .mat-expansion-panel-body{padding:0!important}.expand-all-button[_ngcontent-%COMP%]{cursor:pointer}.details-title-label[_ngcontent-%COMP%]{font-size:18px;font-weight:bolder}.day-title[_ngcontent-%COMP%]{font-size:18px}.day-text-title[_ngcontent-%COMP%]{font-size:18px;margin-left:8px}.day-text-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:8px}.itinerary-time[_ngcontent-%COMP%]{font-size:12px;color:var(--ion-color-dark);text-align:center}.day-icon[_ngcontent-%COMP%]{width:24px;height:24px}.short-description[_ngcontent-%COMP%]{white-space:normal;white-space:initial;margin:0}.short-description-title[_ngcontent-%COMP%]{font-size:14px;color:var(--ion-color-dark)}.description-paragraph[_ngcontent-%COMP%]{white-space:normal;white-space:initial;color:var(--ion-color-dark);font-size:12px}.bed-icon[_ngcontent-%COMP%]{width:24px;height:24px}.overnight-text[_ngcontent-%COMP%]{font-size:12px;color:var(--ion-color-dark);margin:0;text-align:center}.header-item-label[_ngcontent-%COMP%]{--padding-start: 0;margin-left:8px;border-bottom:2px solid var(--ion-color-dark)} .mat-expansion-panel-header-description{margin-right:0!important}.desktop-header-item-label[_ngcontent-%COMP%]{border-bottom:1px solid var(--ion-color-dark);--padding-start: 0;height:40px}"]}),t})();var ue=l(18731),_e=l(68344);function ge(t,r){if(1&t&&(e.TgZ(0,"ion-item",5)(1,"ion-button",6),e._UZ(2,"ion-icon",21),e.qZA(),e.TgZ(3,"ion-label",8)(4,"strong"),e._uU(5,"Pricing"),e.qZA(),e._UZ(6,"p",22),e.ALo(7,"lineBreak"),e.qZA()()),2&t){const n=e.oxw();e.xp6(6),e.Q6J("innerHTML",e.lcZ(7,1,null==n.clientItinerary?null:n.clientItinerary.altPricing),e.oJD)}}function me(t,r){if(1&t&&(e.TgZ(0,"ion-item",5)(1,"ion-button",6),e._UZ(2,"ion-icon",21),e.qZA(),e.TgZ(3,"ion-label",8)(4,"strong"),e._uU(5,"Pricing"),e.qZA(),e._UZ(6,"p",22),e.ALo(7,"lineBreak"),e.qZA()()),2&t){const n=e.oxw();e.xp6(6),e.Q6J("innerHTML",e.lcZ(7,1,null==n.clientItinerary?null:n.clientItinerary.pricing),e.oJD)}}function he(t,r){1&t&&(e.TgZ(0,"div")(1,"p",14),e._uU(2,"Value Oriented in Great Location (3-star)"),e.qZA()())}function fe(t,r){1&t&&(e.TgZ(0,"div")(1,"p",14),e._uU(2,"Superior Comfort (4-star)"),e.qZA()())}function xe(t,r){1&t&&(e.TgZ(0,"div")(1,"p",14),e._uU(2,"Hand-Picked Luxury (5-star)"),e.qZA()())}function ye(t,r){1&t&&(e.TgZ(0,"div")(1,"p",14),e._uU(2,"A Smart mix by De
1stination"),e.qZA()())}function Ce(t,r){1&t&&(e.TgZ(0,"div"),e._uU(1,"Default"),e.qZA())}let Ie=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-trip-traveler-details"]],inputs:{clientItinerary:"clientItinerary",leadStatus:"leadStatus",travelersDetailIncompleted:"travelersDetailIncompleted"},decls:60,vars:14,consts:[[1,"ion-no-margin"],[1,"details-card-content"],[1,"ion-no-padding","details-title-item"],["color","dark",1,"details-title-label"],["lines","full",4,"ngIf"],["lines","full"],["slot","start","color","primary","fill","clear",1,"pricing-details-button","noeffect"],["name","bed-outline"],[1,"pricing-details-label"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["name","checkmark-circle-outline"],[1,"details-label"],[1,"details-select-paragraph"],["name","close-circle-outline"],[1,"details-select-paragraph",3,"innerHTML"],["name","card-outline"],["name","globe-outline"],["lines","none"],["src","./assets/icons/icon-passport.svg"],["name","cash-outline"],[1,"ion-no-margin",3,"innerHTML"]],template:function(n,i){1&n&&(e.TgZ(0,"ion-card",0)(1,"ion-card-content",1)(2,"ion-item",2)(3,"ion-label")(4,"ion-label",3),e._uU(5," DETAILS "),e.qZA()()(),e.YNc(6,ge,8,3,"ion-item",4),e.YNc(7,me,8,3,"ion-item",4),e.TgZ(8,"ion-item",5)(9,"ion-button",6),e._UZ(10,"ion-icon",7),e.qZA(),e.TgZ(11,"ion-label",8)(12,"strong"),e._uU(13,"Accommodation"),e.qZA(),e.TgZ(14,"div",9),e.YNc(15,he,3,0,"div",10),e.YNc(16,fe,3,0,"div",10),e.YNc(17,xe,3,0,"div",10),e.YNc(18,ye,3,0,"div",10),e.YNc(19,Ce,2,0,"div",11),e.qZA()()(),e.TgZ(20,"ion-item",5)(21,"ion-button",6),e._UZ(22,"ion-icon",12),e.qZA(),e.TgZ(23,"ion-label",13)(24,"strong"),e._uU(25,"Inclusions"),e.qZA(),e.TgZ(26,"p",14),e._uU(27),e.qZA()()(),e.TgZ(28,"ion-item",5)(29,"ion-button",6),e._UZ(30,"ion-icon",15),e.qZA(),e.TgZ(31,"ion-label",13)(32,"strong"),e._uU(33,"Not Included"),e.qZA(),e._UZ(34,"p",16),e.ALo(35,"lineBreak"),e.qZA()(),e.TgZ(36,"ion-item",5)(37,"ion-button",6),e._UZ(38,"ion-icon",17),e.qZA(),e.TgZ(39,"ion-label",13)(40,"strong"),e._uU(41,"To Reserve"),e.qZA(),e.TgZ(42,"p",14),e._uU(43),e.qZA()()(),e.TgZ(44,"ion-item",5)(45,"ion-button",6),e._UZ(46,"ion-icon",18),e.qZA(),e.TgZ(47,"ion-label",13)(48,"strong"),e._uU(49,"Insurance"),e.qZA(),e.TgZ(50,"p",14),e._uU(51),e.qZA()()(),e.TgZ(52,"ion-item",19)(53,"ion-button",6),e._UZ(54,"ion-icon",20),e.qZA(),e.TgZ(55,"ion-label",13)(56,"strong"),e._uU(57,"Passport and Visas"),e.qZA(),e.TgZ(58,"p",14),e._uU(59),e.qZA()()()()()),2&n&&(e.xp6(6),e.Q6J("ngIf",null==i.clientItinerary?null:i.clientItinerary.altPricing),e.xp6(1),e.Q6J("ngIf",!(null!=i.clientItinerary&&i.clientItinerary.altPricing)),e.xp6(7),e.Q6J("ngSwitch",null==i.clientItinerary?null:i.clientItinerary.accomodation),e.xp6(1),e.Q6J("ngSwitchCase","greatLocation"),e.xp6(1),e.Q6J("ngSwitchCase","superiorComfort"),e.xp6(1),e.Q6J("ngSwitchCase","handPickedLuxury"),e.xp6(1),e.Q6J("ngSwitchCase","smartMixByDestination"),e.xp6(9),e.Oqu(null==i.clientItinerary?null:i.clientItinerary.inclusions),e.xp6(7),e.Q6J("innerHTML",e.lcZ(35,12,null==i.clientItinerary?null:i.clientItinerary.notIncluded),e.oJD),e.xp6(9),e.Oqu(null==i.clientItinerary?null:i.clientItinerary.toReserve),e.xp6(8),e.Oqu(null==i.clientItinerary?null:i.clientItinerary.insurance),e.xp6(8),e.Oqu(null==i.clientItinerary?null:i.clientItinerary.passportAndVisas))},dependencies:[u.O5,u.RF,u.n9,u.ED,p.YG,p.PM,p.FN,p.gu,p.Ie,p.Q$,_e.Q],styles:[".details-title-label[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.details-title-item[_ngcontent-%COMP%]{border-bottom:1px solid var(--ion-color-dark);height:40px}.travelers-details-button[_ngcontent-%COMP%]{cursor:pointer}ion-img[_ngcontent-%COMP%]{width:250px;height:200px;margin:auto}.traveller-avatar[_ngcontent-%COMP%]{display:inline-block;max-width:48px;max-height:48px;margin-left:10px}.details-select-label[_ngcontent-%COMP%]{white-space:normal;white-space:initial;font-size:small!important}.details-label[_ngcontent-%COMP%]{white-space:break-spaces;font-size:small!important}.pricing-details-label[_ngcontent-%COMP%]{font-size:12px;white-space:break-spaces;color:var(--ion-color-dark)}.pricing-details-label[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--ion-color-dark);margin:0;font-size:11px!important}.pricing-details-button[_ngcontent-%COMP%]{margin-right:8px}.pricing-details-button[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{width:24px;height:24px}.details-select-paragraph[_ngcontent-%COMP%]{font-size:11px!important;color:var(--ion-color-dark)}.itinerary-title[_ngcontent-%COMP%]{padding-left:8px;white-space:break-spaces;font-weight:700;color:var(--ion-color-dark);font-size:24px!important}a[_ngcontent-%COMP%]{text-decoration:none!important}ion-item[_ngcontent-%COMP%]{--padding-start: 0;background-color:var(--cc-white);color:var(--ion-color-dark)}.details-card-content[_ngcontent-%COMP%]{background-color:var(--cc-white);padding-top:0}"]}),t})();const be=function(t){return{"ion-margin-top":t}};function Te(t,r){if(1&t&&(e.TgZ(0,"ion-col",14),e._UZ(1,"app-trip-traveler-details",15),e.qZA()),2&t){const n=e.oxw(2);let i;e.Q6J("ngClass",e.VKq(4,be,n.isMobile)),e.xp6(1),e.Q6J("leadStatus",null!==(i=null==n.itineraryContext?null:n.itineraryContext.leadStatus)&&void 0!==i?i:"")("clientItinerary",n.clientItinerary)("travelersDetailIncompleted",n.travelersDetailIncompleted)}}const ve=function(t,r){return{"itinerary-desktop-content":t,"ion-no-padding":r}},Ze=function(t){return{"ion-no-padding":t}};function Me(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"ion-grid",1),e._UZ(1,"app-trip-header-title",6),e.TgZ(2,"app-trip-pictures-grid",7),e.NdJ("showAllPhotos",function(){e.CHM(n);const a=e.oxw();return e.KtG(a.onShowAllPhotos())}),e.qZA(),e.TgZ(3,"ion-row",8)(4,"ion-col",9)(5,"div",10)(6,"app-itinerary-list",11),e.NdJ("scrollTo",function(a){e.CHM(n);const c=e.oxw();return e.KtG(c.scrollToSection(a))}
1),e.qZA()()(),e.YNc(7,Te,2,6,"ion-col",12),e.qZA(),e._UZ(8,"app-trip-footer",13),e.qZA()}if(2&t){const n=e.oxw();let i,a,c;e.Q6J("ngClass",e.WLB(18,ve,!n.isMobileViewport,n.isMobile)),e.xp6(1),e.Q6J("title",null==n.clientItinerary?null:n.clientItinerary.name)("itineraryContext",null!==(i=n.itineraryContext)&&void 0!==i?i:void 0)("isMobile",n.isMobile)("clientItineraryId",null==n.clientItinerary?null:n.clientItinerary.id)("isClientPreview",!0),e.xp6(1),e.Q6J("itineraryMedia",null==n.clientItinerary?null:n.clientItinerary.itineraryMedia)("isMobile",n.isMobile)("isClientPreview",!0)("isAdmin",!1),e.xp6(2),e.Q6J("sizeLg","Booked"!==(null==n.itineraryContext?null:n.itineraryContext.leadStatus)&&"Travelled"!==(null==n.itineraryContext?null:n.itineraryContext.leadStatus)&&"Cancelled"!==(null==n.itineraryContext?null:n.itineraryContext.leadStatus)?"8":"12")("sizeMd","Booked"!==(null==n.itineraryContext?null:n.itineraryContext.leadStatus)&&"Travelled"!==(null==n.itineraryContext?null:n.itineraryContext.leadStatus)&&"Cancelled"!==(null==n.itineraryContext?null:n.itineraryContext.leadStatus)?"8":"12")("ngClass",e.VKq(21,Ze,n.isMobileViewport)),e.xp6(2),e.Q6J("isMobile",n.isMobileViewport)("status",null!==(a=null==n.itineraryContext?null:n.itineraryContext.leadStatus)&&void 0!==a?a:"")("clientItinerary",n.clientItinerary),e.xp6(1),e.Q6J("ngIf","Booked"!==(null==n.itineraryContext?null:n.itineraryContext.leadStatus)&&"Travelled"!==(null==n.itineraryContext?null:n.itineraryContext.leadStatus)&&"Cancelled"!==(null==n.itineraryContext?null:n.itineraryContext.leadStatus)),e.xp6(1),e.Q6J("isIndependent",null!==(c=null==n.itineraryContext?null:n.itineraryContext.deIsIndependent)&&void 0!==c&&c)}}function Pe(t,r){1&t&&(e.TgZ(0,"ion-grid",16)(1,"ion-row",17)(2,"ion-col",18)(3,"ion-label",19),e._uU(4," This itinerary link has expired or is no longer active. "),e.qZA(),e.TgZ(5,"ion-text",20)(6,"p"),e._uU(7," Please contact your Destination Expert to receive an updated link and keep planning your journey. "),e.qZA()()()()())}const Ae=function(t,r){return{"itinerary-desktop-header":t,"ion-no-padding":r}},we=function(t){return{"ion-text-center ion-no-padding":t}},Oe=[{path:"",component:(()=>{class t{constructor(n,i,a,c,h,O,x,Z,k,Le){this.angularFirestore=n,this.clientItineraryServiceService=i,this.activatedRoute=a,this.toastService=c,this.platform=h,this.modalController=O,this.alertService=x,this.breadcrumService=Z,this.loadingService=k,this.titleService=Le,this.itineraryContext=null,this.unsubscribe=new b.x,this.isMobile=!1,this.isMobileViewport=!1}ngOnInit(){sessionStorage.clear(),this.clientItinerary=this.activatedRoute.snapshot.data.clientItinerary,this.itineraryContext=this.activatedRoute.snapshot.data.itineraryContext??null,this.setPageTitle(),this.clientItinerary&&(this.validateClientItineraryProperties(),this.subscribeToClientITChanges());const n=s.dV.getPlatform();this.isMobileViewport=this.platform.is("mobile"),this.isMobile=!(!this.platform.is("mobile")||"web"===n),setTimeout(()=>{location.reload()},432e5)}ngOnDestroy(){this.unsubscribe.next(),this.unsubscribe.complete()}subscribeToClientITChanges(){this.clientItineraryServiceService.getClientItinerary(this.clientItinerary.id).pipe((0,C.R)(this.unsubscribe)).subscribe({next:n=>{this.deepEqual(this.clientItinerary,n)||(this.showReloadModal(),this.unsubscribe.next(),this.unsubscribe.complete())},error:n=>{this.showReloadModal(),console.error("Error fetching client itinerary:",n)}})}showReloadModal(){this.alertService.showOkAlert({header:"New Itinerary Version",message:"We\u2019ve made some updates to your itinerary. Click OK to refresh and see the latest version."},!1).subscribe(()=>{this.clearStorages(),location.reload()})}clearStorages(){sessionStorage.clear(),localStorage.clear(),this.clearCookies(),"caches"in window&&caches.keys().then(n=>{n.forEach(i=>{caches.delete(i)})})}clearCookies(){const n=document.cookie.split(";");for(const i of n){const a=i.indexOf("="),c=a>-1?i.substr(0,a):i;document.cookie=c+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"}}scrollToSection(n){const i=document.getElementById(n).offsetTop;this.content.scrollToPoint(0,i)}validateClientItineraryProperties(){this.clientItinerary&&this.clientItinerary&&!this.clientItinerary.hasOwnProperty("visible")&&(this.clientItinerary.visible=!0)}onTravelerDetails(){var n=this;return(0,I.Z)(function*(){n.breadcrumService.addBreadcrum("Client Action","Open traveler's details modal")})()}onShowAllPhotos(){var n=this;return(0,I.Z)(function*(){yield(yield n.modalController.create({component:o.a,componentProps:{itineraryMedia:n.clientItinerary.itineraryMedia,isMobile:n.isMobile},cssClass:"photo-gallery-modal",backdropDismiss:!1})).present()})()}checkTravelersDetails(){this.travelersDetailIncompleted=!1,this.travelersDetailCompletedWithouTerms=!1,this.trip.travelers.forEac
1h(n=>{const i=Object.keys(n);for(let a=0;a<i.length;a++)if(!n[i[a]]&&"address2"!==i[a]&&"particularlyIndications"!==i[a]&&"zipCode"!==i[a]&&"state"!==i[a]&&"vaccinated"!==i[a]&&"travelInsurance"!==i[a]&&"secondName"!==i[a]){this.travelersDetailIncompleted=!0;break}})}checkTripTravelersDetails(n){this.travelersDetailIncompleted=!1,this.travelersDetailCompletedWithouTerms=!1,n.travelers.forEach(i=>{const a=Object.keys(i);for(let c=0;c<a.length;c++){const h=i[a[c]];if(!h&&"address2"!==a[c]&&"particularlyIndications"!==a[c]&&"zipCode"!==a[c]&&"state"!==a[c]&&"vaccinated"!==a[c]&&"acceptTermsConditions"!==a[c]&&"travelInsurance"!==a[c]&&"secondName"!==a[c]){this.travelersDetailIncompleted=!0,this.travelersDetailCompletedWithouTerms=!1;break}"acceptTermsConditions"===a[c]&&!h&&(this.travelersDetailCompletedWithouTerms=!0)}})}putTravelers(){}putAcceptedTermsTravelers(n){}compareAndReturnCustomers(n,i,a){const c=[];let h=i.filter(x=>!x.passportNumber).map(x=>({...x}));i.forEach(x=>{x.passportNumber&&c.push(x)});const O=n.filter(x=>x.passportNumber&&!c.find(Z=>x.id===Z.id&&x.passportNumber&&this.deepEqual(x,Z)));return O.length>0&&O.forEach(x=>{if(h.length>0){const Z=h[0].id;h=h.filter(k=>k.id!==Z),c.push({...x,id:Z})}else this.sendTravelerDetailsOverflow(x)}),h.length>0&&c.length<a&&h.forEach(x=>{c.length<a&&c.push({...x})}),c}deepEqual(n,i){if(n===i)return!0;if("object"!=typeof n||null===n||"object"!=typeof i||null===i)return!1;const a=Object.keys(n),c=Object.keys(i);if(a.length!==c.length)return!1;for(const h of a)if(!c.includes(h)||!this.deepEqual(n[h],i[h]))return!1;return!0}sendTravelersCompleteDataEmail(){}sendTravelerDetailsOverflow(n){}setPageTitle(){let n="Trip Itinerary";this.itineraryContext?.leadTitle?n=`${this.itineraryContext.leadTitle} Itinerary`:this.trip?.name&&(n=this.trip.name),this.titleService.setTitle(n)}getLogoUrl(){return this.itineraryContext?.deCustomLogoUrl&&this.itineraryContext?.deIsIndependent?this.itineraryContext.deCustomLogoUrl:"./assets/images/SA Expeditions - by Rokit.svg"}getLogoAlt(){return this.itineraryContext?.deCustomLogoUrl&&this.itineraryContext?.deIsIndependent?`${this.itineraryContext.deAssigned} logo`:"logo-sa-expeditions"}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(_.ST),e.Y36(d.B),e.Y36(v.gz),e.Y36(g.k),e.Y36(p.t4),e.Y36(p.IN),e.Y36(m.c),e.Y36(f.f),e.Y36(A.b),e.Y36(T.Dx))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-itinerary"]],viewQuery:function(n,i){if(1&n&&e.Gf(p.W2,5),2&n){let a;e.iGM(a=e.CRH())&&(i.content=a.first)}},hostBindings:function(n,i){1&n&&e.NdJ("unloaded",function(){return i.ngOnDestroy()})},decls:8,vars:16,consts:[[1,"ion-no-border",3,"ngClass"],[3,"ngClass"],["id","logo-sa-expeditions",1,"ion-margin-bottom",3,"src","alt"],[3,"itineraryContext","isMobile","visible","clientItinerary","readOnly"],[3,"ngClass",4,"ngIf","ngIfElse"],["noTripShare",""],[3,"title","itineraryContext","isMobile","clientItineraryId","isClientPreview"],[3,"itineraryMedia","isMobile","isClientPreview","isAdmin","showAllPhotos"],[1,"ion-justify-content-center"],["size","12",3,"sizeLg","sizeMd","ngClass"],["id","itinerary-print-view"],[3,"isMobile","status","clientItinerary","scrollTo"],["size","12","size-lg","4","size-md","4","id","pricing",3,"ngClass",4,"ngIf"],[3,"isIndependent"],["size","12","size-lg","4","size-md","4","id","pricing",3,"ngClass"],[3,"leadStatus","clientItinerary","travelersDetailIncompleted"],[1,"no-trip-share-grid"],[1,"no-trip-share-row","ion-padding-top"],["size","12",1,"ion-text-center"],["color","dark",1,"no-trip-share-label"],["color","dark",1,"no-trip-share-p"]],template:function(n,i){if(1&n&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar",1),e._UZ(2,"img",2)(3,"app-trip-lead-header",3),e.qZA()(),e.TgZ(4,"ion-content"),e.YNc(5,Me,9,23,"ion-grid",4),e.YNc(6,Pe,8,0,"ng-template",null,5,e.W1O),e.qZA()),2&n){const a=e.MAs(7);let c,h;e.Q6J("ngClass",e.WLB(11,Ae,!i.isMobile,i.isMobile)),e.xp6(1),e.Q6J("ngClass",e.VKq(14,we,i.isMobile)),e.xp6(1),e.Q6J("src",i.getLogoUrl(),e.LSH)("alt",i.getLogoAlt()),e.xp6(1),e.Q6J("itineraryContext",null!==(c=i.itineraryContext)&&void 0!==c?c:void 0)("isMobile",i.isMobileViewport)("visible",null!==(h=null==i.clientItinerary?null:i.clientItinerary.visible)&&void 0!==h&&h)("clientItinerary",i.clientItinerary)("readOnly",!0),e.xp6(2),e.Q6J("ngIf",null==i.clientItinerary?null:i.clientItinerary.visible)("ngIfElse",a)}},dependencies:[u.mk,u.O5,p.wI,p.W2,p.jY,p.Gu,p.Q$,p.Nd,p.yW,p.sr,U.H,D.J,S.c,de,ue._,Ie],styles:[".itinerary-desktop-header[_ngcontent-%COMP%]{padding:30px 30px 0}.itinerary-mobile-header[_ngcontent-%COMP%]{padding:5px}ion-toolbar[_ngcontent-%COMP%]{--background: transparent}#logo-sa-expeditions[_ngcontent-%COMP%]{width:313px;height:40px}.itinerary-desktop-content[_ngcontent-%COMP%]{margin:0 15px 0 30px;padding:8px 8px 8px 0} .travelers-details-summary-modal{--width: 860px;--height: 390px} .travelers-details-modal{--width: 86vw;--height: 90vh} .photo-gallery-modal{--width: 809px;--height: 470px}.no-trip-share-grid[_ngcontent-%COMP%]{margin:0 30px;padding:8px;background-color:var(--ion-color-light)}.no-trip-share-row[_ngcontent-%COMP%]{background:var(--cc-white);height:77vh}.no-trip-share-label[_ngcontent-%COMP%]{font-size:30px;font-weight:700}.no-trip-share-p[_ngcontent-%COMP%]{font-size:20px}"]}),t})()}];let De=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[v.Bz.forChild(Oe),v.Bz]}),t})(),ke=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[u.ez,y.u5,p.Pc,P.P,De]}),t})()},40704:(L,M,l)=>{l.d(M,{c:()=>I});var u=l(49671),y=l(88996),p=l(94650),P=l(59928),v=l(31443);let I=(()=>{class b{constructor(o,s){this.alertController=o,this.toastService=s}showYesNoAlert(o,s,e){var _=this;const d=new Promise(function(){var g=(0,u.Z)(function*(m){(yield _.alertController.create({header:o.header,message:o.message,backdropDismiss:!1,cssClass:o.cssClass?o.cssClass:"alert-yes-no-buttons",buttons:[{text:e||"No",handler:()=>{m(!1)}},{text:s||"Yes",handler:()=>{m(!0)}}]})).present()});return function(m){return g.apply(this,arguments)}}());return(0,y.D)(d)}showBrokenTripAlert(o){var s=this;const e=new Promise(function(){var _=(0,u.Z)(function*(d){(yield s.alertController.create({header:o.header,message:o.message,cssClass:"alert-yes-no-buttons",backdropDismiss:!1,buttons:[{text:"Ok",handler:()=>{d(!0)}}]})).present()});return function(d){return _.apply(this,arguments)}}());return(0,y.D)(e)}showOkAlert(o,s){var e=this;const _=new Promise(function(){var d=(0,u.Z)(function*(g){(yield e.alertController.create({header:o.header,message:o.message,backdropDismiss:s??!0,cssClass:"alert-ok",buttons:[{text:"OK",handler:()=>{g(!0)}}]})).present()});return function(g){return d.apply(this,arguments)}}());return(0,y.D)(_)}showWarningCancelAlert(o,s){var e=this;const _=new Promise(function(){var d=(0,u.Z)(function*(g){(yield e.alertController.create({header:o.header,message:o.message,cssClass:"alert-yes-no-buttons",buttons:[{text:s||"No",handler:()=>{g(!1)}}]})).present()});return function(g){return d.apply(this,arguments)}}());return(0,y.D)(_)}showConfirmAlert(o,s,e){var _=this;const d=new Promise(function(){var g=(0,u.Z)(function*(m){(yield _.alertController.create({header:o.header,message:o.message,backdropDismiss:!1,cssClass:"alert-confirm",buttons:[{text:s||"NO",cssClass:"alert-button-secondary",handler:()=>{m(!1)}},{text:e||"YES",cssClass:"alert-button-primary",handler:()=>{m(!0)}}]})).present()});return function(m){return g.apply(this,arguments)}}());return(0,y.D)(d)}showCreateAddAttachmentAlert(o){var s=this;const e=new Promise(function(){var _=(0,u.Z)(function*(d){(yield s.alertController.create({header:o.header,message:o.message,buttons:[{text:"Confirmation",handler:()=>{d("Confirmation")}},{text:"Invoice",handler:()=>{d("Invoice")}}]})).present()});return function(d){return _.apply(this,arguments)}}());return(0,y.D)(e)}showCreateServiceHotelAlert(o,s,e){var _=this;const d=new Promise(function(){var g=(0,u.Z)(function*(m){(yield _.alertController.create({header:o.header,message:o.message,cssClass:"alert-yes-no-buttons",buttons:[{text:"Cancel",handler:()=>{m(null)}},{text:e,handler:()=>{m("hotel")}},{text:s,handler:()=>{m("service")}}]})).present()});return function(m){return g.apply(this,arguments)}}());return(0,y.D)(d)}showUserRegistrationAlert(o,s,e,_,d,g){var m=this;const f=new Promise(function(){var A=(0,u.Z)(function*(T){(yield m.alertController.create({header:o.header,subHeader:o.subHeader,cssClass:"alert-yes-no-buttons",inputs:[{name:"name",type:"text",placeholder:_},{name:"lastname",type:"text",placeholder:d},{name:"email",type:"email",placeholder:g}],buttons:[{text:s,role:"cancel",cssClass:"secondary",handler:()=>{T("")}},{text:e,handler:D=>{T(D)}}]})).present()});return function(T){return A.apply(this,arguments)}}());return(0,y.D)(f)}addLinkResourceAlert(o,s,e,_){var d=this;const g=new Promise(function(){var m=(0,u.Z)(function*(f){(yield d.alertController.create({header:o.header,subHeader:o.subHeader,cssClass:"alert-yes-no-buttons",inputs:[{name:"link",type:"text",placeholder:_}],buttons:[{text:s,role:"cancel",cssClass:"secondary",handler:()=>{f("")}},{text:e,handler:T=>{f(T)}}]})).present()});return function(f){return m.apply(this,arguments)}}());return(0,y.D)(g)}showInsertDayTemplateAlert(o){var s=this;let e=!1;const _=new Promise(function(){var d=(0,u.Z)(function*(g){(yield s.alertController.create({header:o.header,subHeader:o.subHeader,cssClass:"alert-yes-no-buttons",inputs:[{name:"day",type:"number",placeholder:"Day",min:1,max:o.max}],buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary",handler:()=>{g(null)}},{text:"Insert",handler:f=>
1f&&s.isWithinLimits(f,o.max)?(g(f),e=!0,!0):(s.toastService.presentErrorToast("👎 You must enter a valid day. Min: 1 - Max: "+o.max,!0),!1)}]})).present()});return function(g){return d.apply(this,arguments)}}());return(0,y.D)(_)}isWithinLimits(o,s){return!(Number(o.day)>s||Number(o.day)<1)}editNameAlert(o,s,e,_){var d=this;const g=new Promise(function(){var m=(0,u.Z)(function*(f){(yield d.alertController.create({header:o.header,subHeader:o.subHeader,cssClass:"alert-yes-no-buttons",inputs:[{name:"name",type:"text",placeholder:_}],buttons:[{text:s,role:"cancel",cssClass:"secondary",handler:()=>{f("")}},{text:e,handler:T=>{f(T)}}]})).present()});return function(f){return m.apply(this,arguments)}}());return(0,y.D)(g)}addHotelDaysAlert(o){var s=this;const e=new Promise(function(){var _=(0,u.Z)(function*(d){(yield s.alertController.create({header:o.header,subHeader:o.subHeader,cssClass:"alert-yes-no-buttons",buttons:[{text:"OK",role:"cancel",cssClass:"primary",handler:()=>{d("")}}]})).present()});return function(d){return _.apply(this,arguments)}}());return(0,y.D)(e)}editFeeAlert(o){var s=this;const e=new Promise(function(){var _=(0,u.Z)(function*(d){(yield s.alertController.create({header:"Edit fee",subHeader:`${o}`,cssClass:"alert-yes-no-buttons",inputs:[{name:"fee",type:"number",placeholder:"Fee amount"}],buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary"},{text:"Change & Save",handler:m=>{d(m)}}]})).present()});return function(d){return _.apply(this,arguments)}}());return(0,y.D)(e)}}return b.\u0275fac=function(o){return new(o||b)(p.LFG(P.Br),p.LFG(v.k))},b.\u0275prov=p.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},67579:(L,M,l)=>{l.d(M,{b:()=>v});var u=l(49671),y=l(61135),p=l(94650),P=l(59928);let v=(()=>{class I{constructor(C){this.loadingController=C,this.loading=!1,this.currentLoading=null,this.loadingSubject=new y.X(!1),this.loadingSubject.subscribe(o=>{this.loading=o})}present(C="Loading",o=null){var s=this;return(0,u.Z)(function*(){return null!=s.currentLoading&&s.currentLoading.dismiss(),s.currentLoading=yield s.loadingController.create({duration:o,message:C,spinner:"crescent",cssClass:"custom-loading",backdropDismiss:!1,translucent:!0,htmlAttributes:{"aria-label":"Loading"}}),yield s.currentLoading.present()})()}dismiss(){var C=this;return(0,u.Z)(function*(){null!=C.currentLoading&&(yield C.loadingController.dismiss(),C.currentLoading=null)})()}}return I.\u0275fac=function(C){return new(C||I)(p.LFG(P.HT))},I.\u0275prov=p.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()}}]);
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.