1import{a as pt}from"./chunk-TYGVZRZS.js";import{a as w,b as ct,c as mt,i as dt}from"./chunk-XEURB6O2.js";import"./chunk-KOE6VMCR.js";import{a as T}from"./chunk-CBVOVUDU.js";import"./chunk-OLJB3RUA.js";import{a as et,e as tt,f as it,h as lt}from"./chunk-NWK3IXKQ.js";import"./chunk-WSTYZZMC.js";import{b as nt,c as rt,d as ot,e as at}from"./chunk-7UMT2QHC.js";import{a as st}from"./chunk-TVBNJEWN.js";import{a as ie}from"./chunk-2L2DJQHH.js";import"./chunk-7O6DHUVS.js";import"./chunk-O43R55GY.js";import{a as Xe}from"./chunk-AR435P2D.js";import"./chunk-LGWKQQEJ.js";import"./chunk-NK3DP7HZ.js";import{a as Je,b as Ye}from"./chunk-2KMRWIRX.js";import"./chunk-OUAS6S2N.js";import"./chunk-7OP3P37Q.js";import"./chunk-KCRDAGWT.js";import{a as Ge}from"./chunk-U2QFC7F4.js";import{a as He}from"./chunk-3LAPVCAL.js";import"./chunk-F2GCAH7D.js";import"./chunk-VGDEYIBD.js";import{a as Ze}from"./chunk-6TRCY3ZA.js";import"./chunk-6653FR2C.js";import{a as Ke}from"./chunk-GKS3GB56.js";import{a as je}from"./chunk-XTG3KVWW.js";import"./chunk-6DT5KFUP.js";import{a as X}from"./chunk-EOQAIYR4.js";import"./chunk-5JEN6757.js";import{a as Re}from"./chunk-4KXK4HPM.js";import{a as Qe}from"./chunk-GUBCWVU7.js";import{b as Te}from"./chunk-EC6WBUJO.js";import{a as Ue}from"./chunk-JFFWFSAZ.js";import{d as qe,f as _t,i as ze,j as K}from"./chunk-JE76JNP2.js";import"./chunk-MWSRTWKF.js";import{e as ue,j as Fe,o as De,p as N,q as We}from"./chunk-XK4FT4MO.js";import{c as fe,d as he,e as ge,k as ye,m as $e,o as Le,p as j}from"./chunk-BBNSFRDY.js";import"./chunk-XGOGDN3M.js";import{c as Be}from"./chunk-E52G7IUM.js";import{$ as we,E as Ce,G as b,I as ve,J as xe,M as be,O as Pe,Q as Oe,R as ke,S as Ee,T as Ae,U as Ve,V as Se,W as Me,X as Ne,f as _e}from"./chunk-7RPRKYSB.js";import{m as Ie,s as H}from"./chunk-OOFCWTMH.js";import"./chunk-EKUYW7ZL.js";import{o as me,r as de}from"./chunk-YT5HM723.js";import{$b as v,Aa as le,Ac as ee,Fb as G,Fc as d,Gc as F,Hc as x,Ic as L,Jb as Q,Na as se,Tb as pe,U as oe,Vb as P,Vc as te,Wb as O,Yb as q,Yc as W,Zb as E,_b as A,ac as m,bc as l,cc as M,cd as u,dd as C,ed as S,jc as $,la as ae,mb as a,oc as k,qa as B,qc as g,uc as J,vc as Y,w as z,wa as y,wc as Z,xa as _,yb as ce}from"./chunk-C4YA3FN6.js";import{a as R,b as U,e as yt,i as V}from"./chunk-RKLIRILV.js";var ne=yt(_t());var ft=(()=>{let c=class c{noWhitespaceValidator(i){return(i.value||"").trim().length?null:{whitespace:!0}}constructor(){this.documentConfigs=new Map([[T.CPF.id,{mask:"000.000.000-00",validators:[b.required,N.ValidateCpf,this.noWhitespaceValidator],inputMode:"numeric",requiresCountry:!1,requiresExpDate:!1}],[T.NIF.id,{mask:"000 000 000",validators:[b.required,N.ValidateNIF,this.noWhitespaceValidator],inputMode:"numeric",requiresCountry:!1,requiresExpDate:!1}],[T.RG.id,{mask:"000000000000000",validators:[b.required,this.noWhitespaceValidator],inputMode:"numeric",requiresCountry:!1,requiresExpDate:!1}],[T.PASSPORT.id,{mask:"AAAAAAAAAAAAAAA",validators:[b.required,this.noWhitespaceValidator],inputMode:"",requiresCountry:!0,requiresExpDate:!0}],[T.IDCARD.id,{mask:"AAAAAAAAAAAAAAA",validators:[b.required,this.noWhitespaceValidator],inputMode:"none",requiresCountry:!1,requiresExpDate:!1}],[T.RFC.id,{mask:"AAAAAAAAAAAAA",validators:[b.required,this.noWhitespaceValidator],inputMode:"none",requiresCountry:!1,requiresExpDate:!1}],[T.CURP.id,{mask:"AAAAAAAAAAAAAAA",validators:[b.required,this.noWhitespaceValidator],inputMode:"none",requiresCountry:!1,requiresExpDate:!1}]])}configureDocumentFields(i,e,t){let o=e.get(t.documentNumber),p=e.get(t.documentMask),s=t.documentCountryId?e.get(t.documentCountryId):null,f=t.documentExpirationDate?e.get(t.documentExpirationDate):null;if(!i)return o.disable({emitEvent:!1}),o.setValue("",{emitEvent:!1}),s?.clearValidators(),f?.clearValidators(),{mask:"",inputMode:"none"};let h=this.documentConfigs.get(i)??{mask:"",validators:[b.required,this.noWhitespaceValidator],inputMode:"none",requiresCountry:!1,requiresExpDate:!1};return o.enable({emitEvent:!1}),o.setValidators(h.validators),s&&(h.requiresCountry?s.setValidators([b.required]):s.clearValidators()),f&&(h.requiresExpDate?f.setValidators([b.required]):f.clearValidators()),o.updateV
1alueAndValidity(),s?.updateValueAndValidity(),f?.updateValueAndValidity(),p.setValue(h.mask),{mask:h.mask,inputMode:h.inputMode}}};c.\u0275fac=function(e){return new(e||c)},c.\u0275prov=ae({token:c,factory:c.\u0275fac,providedIn:"root"});let n=c;return n})();function Ct(n,c){if(n&1&&(m(0,"span",10)(1,"span",7),d(2," calendar_today "),l(),d(3),u(4,"date"),u(5,"date"),l()),n&2){let r=g();a(3),L(" ",S(4,2,r.product==null?null:r.product.initialDate,"dd/MM/yyyy")," - ",S(5,5,r.product==null?null:r.product.finalDate,"dd/MM/yyyy")," ")}}function vt(n,c){if(n&1&&(m(0,"span",10)(1,"span",7),d(2," calendar_today "),l(),d(3),l()),n&2){let r=g();a(3),x(" ",r.product==null?null:r.product.customDateText," ")}}function xt(n,c){if(n&1&&(m(0,"div",12)(1,"span",13),d(2," check "),l(),d(3),l()),n&2){let r=c.$implicit;a(3),x(" ",r.title," ")}}var ht=(()=>{let c=class c extends Be{constructor(i){super(i),this.expandedState=!0,this.load=!0}ngOnInit(){this.product=this.cart.offlineProduct}};c.\u0275fac=function(e){return new(e||c)(ce(le))},c.\u0275cmp=G({type:c,selectors:[["app-offline-product-summary"]],inputs:{expandedState:"expandedState",load:"load",cart:"cart"},features:[Q],decls:26,vars:11,consts:[[1,"offline-summary-container"],["multi","",1,"accordion"],[3,"expanded"],[1,"flex"],[1,"title"],[1,"city-people-date"],[1,"city"],[1,"material-symbols-outlined"],[1,"people-date"],[1,"people"],[1,"date"],[1,"product-items"],[1,"product-item"],[1,"material-symbols-outlined","mat-icon-primary","check-icon"]],template:function(e,t){e&1&&(m(0,"div",0)(1,"mat-accordion",1)(2,"mat-expansion-panel",2)(3,"mat-expansion-panel-header")(4,"mat-panel-title")(5,"div",3)(6,"span",4),d(7),l()()()(),m(8,"div",5)(9,"div",6)(10,"span",7),d(11," location_on "),l(),d(12),l(),m(13,"div",8)(14,"span",9)(15,"span",7),d(16," group "),l(),d(17),u(18,"translate"),u(19,"translate"),l(),P(20,
1Ct,6,8,"span",10),P(21,vt,4,1,"span",10),l()(),M(22,"mat-divider"),m(23,"div",11),E(24,xt,4,1,"div",12,q),l()()()()),e&2&&(a(2),v("expanded",t.expandedState),a(5),x(" ",t.product==null?null:t.product.title," "),a(5),x(" ",t.product==null?null:t.product.place," "),a(5),L(" ",t.product==null?null:t.product.numberOfParticipants," ",(t.product==null?null:t.product.numberOfParticipants)>1?C(18,7,"offline-product.card-cart.people"):C(19,9,"offline-product.card-cart.person")," "),a(3),O(t.product.showCustomDateText?-1:20),a(),O(t.product.showCustomDateText?21:-1),a(3),A(t.product==null?null:t.product.items))},dependencies:[Te,je,at,nt,rt,ot,H,de],styles:['@charset "UTF-8";[_nghost-%COMP%]{margin-bottom:16px;display:block}.offline-summary-container[_ngcontent-%COMP%]{color:#777;line-height:1.75rem}.offline-summary-container[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin:1rem 0}.offline-summary-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-align:left;color:#222;font-weight:700;font-size:var(--type-title-medium-size);line-height:var(--type-title-medium-line-height);letter-spacing:var(--type-title-medium-tracking)}.offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%] .city[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-weight:400;color:#777;font-size:var(--type-body-small-size);line-height:var(--type-body-small-line-height);letter-spacing:var(--type-body-small-tracking)}.offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%] .people-date[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%] .people-date[_ngcontent-%COMP%] .people[_ng
1content-%COMP%], .offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%] .people-date[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-weight:400;color:#777;font-size:var(--type-body-small-size);line-height:var(--type-body-small-line-height);letter-spacing:var(--type-body-small-tracking)}.offline-summary-container[_ngcontent-%COMP%] .product-items[_ngcontent-%COMP%]{margin-top:16px}.offline-summary-container[_ngcontent-%COMP%] .product-items[_ngcontent-%COMP%] .product-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.offline-summary-container[_ngcontent-%COMP%] .product-items[_ngcontent-%COMP%] .product-item[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;color:var(--mat-sys-primary)}@media(min-width:768px){.offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column;gap:12px}.offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%] .city[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-weight:400;color:#777;font-size:var(--type-body-small-size);line-height:var(--type-body-small-line-height);letter-spacing:var(--type-body-small-tracking)}.offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%] .people-date[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%] .people-date[_ngcontent-%COMP%] .people[_ng
1content-%COMP%], .offline-summary-container[_ngcontent-%COMP%] .city-people-date[_ngcontent-%COMP%] .people-date[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-weight:400;color:#777;font-size:var(--type-body-small-size);line-height:var(--type-body-small-line-height);letter-spacing:var(--type-body-small-tracking)}}']});let n=c;return n})();var bt=["autoCompleteInputCod"],Pt=["autoCompleteInputNat"],gt=()=>["dupli","max30"],Ot=()=>[],kt=()=>({invalidAdultAge:"offline-product.register.age-validator",invalidDate:"offline-product.register.invalid-date"}),D=(n,c)=>c.key;function Et(n,c){n&1&&M(0,"mat-progress-bar",9)}function At(n,c){if(n&1&&(m(0,"mat-error",33),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;a(),F(S(2,1,r.message,r.params))}}function Vt(n,c){if(n&1&&(m(0,"mat-error",33),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;a(),F(S(2,1,r.message,r.params))}}function St(n,c){n&1&&(m(0,"div",35)(1,"mat-error",33),d(2),u(3,"translate"),l()()),n&2&&(a(2),x(" ",C(3,1,"messages.invalid.nameSurnameMaxLength")," "))}function Mt(n,c){n&1&&(m(0,"div",35)(1,"mat-error",33),d(2),u(3,"translate"),l()()),n&2&&(a(2),x(" ",C(3,1,"checkout-register.label.unique-names")," "))}function Nt(n,c){if(n&1&&(m(0,"mat-error",33),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;a(),F(S(2,1,r.message,r.params))}}function wt(n,c){if(n&1&&(m(0,"mat-error",33),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;a(),F(S(2,1,r.message,r.params))}}function Ft(n,c){if(n&1&&(m(0,"mat-option",40),d(1),l()),n&2){let r=c.$implicit;v("value",r),a(),x(" ",r.name," ")}}function It(n,c){if(n&1&&(m(0,"mat-error",33),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;a(),F(S(2,1,r.message,r.params))}}function Dt(n,c){if(n&1&&(m(0,"mat-option",40),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;v("value",r.documentId),a(),x(" ",C(2,2,r.documentDescription)," ")}}function Tt(n,c){if(n&1&&(m(0,"mat-error",33),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;a(),F(S(2,1,r.message,r.params))}}function Rt(n,c){if(n&1&&(m(0,"mat-error",33),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;a(),F(S(2,1,r.message,r.params))}}function Bt(n,c){if(n&1&&(m(0,"mat-option",40),d(1),l()),n&2){let r=c.$implicit;v("value",r),a(),L(" +",r.phoneCode," ",r.name," ")}}function qt(n,c){if(n&1&&(m(0,"mat-error",33),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;a(),F(S(2,1,r.message,r.params))}}function $t(n,c){if(n&1&&(m(0,"mat-error",33),d(1),u(2,"translate"),l()),n&2){let r=c.$implicit;a(),F(S(2,1,r.message,r.params))}}function Lt(n,c){n&1&&M(0,"hr",46)}function zt(n,c){if(n&1){let r=$();m(0,"div",15)(1,"div",28),d(2),u(3,"translate"),l(),m(4,"div",29)(5,"mat-form-field",30)(6,"mat-label"),d(7),u(8,"translate"),l(),m(9,"input",31),u(10,"translate"),k("input",function(){y(r);let e=g();return _(e.onFocusOutNames())})("blur",function(){y(r);let e=g();return _(e.checkErrosNotification())})("cdkAutofill",function(e){return y(r),_(e.isAutofilled=!1)}),l(),m(11,"mat-hint",32),d(12),u(13,"translate"),l(),E(14,At,3,4,"mat-error",33,D),l(),m(16,"mat-form-field",30)(17,"mat-label"),d(18),u(19,"translate"),l(),m(20,"input",34),u(21,"translate"),k("input",function(){y(r);let e=g();return _(e.onFocusOutNames())})("blur",function(){y(r);let e=g();return _(e.checkErrosNotification())})("cdkAutofill",function(e){return y(r),_(e.isAutofilled=!1)}),l(),m(22,"mat-hint",32),d(23),u(24,"translate"),l(),E(25,Vt,3,4,"mat-error",33,D),l(),P(27,St,4,3,"div",35),P(28,Mt,4,3,"div",35),m(29,"mat-form-field",30)(30,"mat-label"),d(31),u(32,"translate"),l(),m(33,"input",36),k("blur",function(){y(r);let e=g();return _(e.checkErrosNotification())})("cdkAutofill",function(e){return y(r),_(e.isAutofilled=!1)}),l(),E(34,Nt,3,4,"mat-error",33,D),l(),m(36,"mat-form-field",30)(37,"mat-label"),d(38),u(39,"translate"),l(),m(40,"input",37),k("blur",function(){y(r);let e=g();return _(e.checkErrosNotification())})("cdkAutofill",function(e){return y(r),_(e.isAutofilled=!1)}),l(),E(41,wt,3,4,"mat-error",33,D),l(),m(43,"mat-form-field",30)(44,"mat-label"),d(45),u(46,"translate"),l(),m(47,"input",38,0),k("focus",function(){let e=y(r).$index,t=g();return _(t.resetAutocompleteListNat(e))})("keydown.tab",function(e){let t=y(r).$index,o=g();return _(o.onNatTabSelectFirstOption(e,t))}),l(),m(49,"mat-autocomplete",39,1),k("optionSelected",function(e){let t=y(r),o=t.$implicit,p=t.$index,s=g();return s.onChangeNationality(o,e.option.value,p),_(s.checkErrosNotification())}),E(51,Ft,2,2,"mat-option",40,q),u(53,"async"),l(),E(54,It,3,4,"mat-error",33,D),l(),m(56,"mat-form-field",30)(57,"mat-label"),d(58),u(59,"translate"),l(),m(60,"mat-select",41),k("selectionChange",function(e){let t=y(r),o=t.$implicit,p=t.$index,s=g();return s.onChangeDocumentType(o,e.value,p),_(s.checkErrosNotification())}),E(61,Dt,3,4,"mat-option",40,q),l(),E(63,Tt,3,4,"mat-error",33,D),l(),m(65,"mat-form-field",30)(66,"mat-label"),d(67),u(68,"translate"),l(),m(69,"input",42),k("blur",function(){y(r);let e=g();return e.onFocusOutDocumentNumber(),_(e.checkErrosNotification())})("cdkAutofill",function(e){return y(r),_(e.isAutofilled=!1)}),l(),E(70,Rt,3,4,"mat-error",33,D),l(),m(72,"mat-form-field",43)(73,"mat-label"),d(74),u(75,"translate"),l(),m(76,"input",44,2),k("focus",function(){let e=y(r).$index,t=g();return _(t.resetAutocompleteListCod(e))})("keydown.tab",function(e){let t=y(r).$index,o=g();return _(o.onPhoneCountryTabSelectFirstOption(e,t))}),l(),m(78,"mat-autocomplete",39,3),k("optionSelected",function(e){let t=y(r).$index,o=g();return o.onChangeCountryPhone(e.option.value,!0,t),_(o.checkErrosNotification())}),E(80,Bt,2,3,"mat-option",40,q),u(82,"async"),l(),E(83,qt,3,4,"mat-error",33,D),l(),m(85,"mat-form-field",30)(86,"mat-label"),d(87),u(88,"translate"),l(),m(89,"input",45),k("blur",function(){y(r);let e=g();return _(e.checkErrosNotification())})("cdkAutofill",function(e){return y(r),_(e.isAutofilled=!1)})("input",function(e){let t=y(r).$implicit,o=g();return _(o.verifyMaskPhoneValidator(e.target.value,t))}),l(),E(90,$t,3,4,"mat-error",33,D),l()(),P(92,Lt,1,0,"hr",46),l()}if(n&2){let r=c.$implicit,i=c.$index,e=c.$count,t=ee(50),o=ee(79),p=g(),s=p.asFormGroup(r);v("formGroupName",i),a(2),L(" ",C(3,30,"offline-product.register.participant")," ",i+1," "),a(5),x(" ",C(8,32,"general.input-names.first-name")," "),a(2),v("inputPo
1pover",te(C(10,34,"general.label.name-example"))),a(3),x(" ",C(13,36,"general.input-names.first-name-identification-document")," "),a(2),A(p.fieldErrors(s.controls.firstName,W(62,gt))),a(4),x(" ",C(19,38,"general.input-names.last-name")," "),a(2),v("inputPopover",te(C(21,40,"general.label.last-name-example"))),a(3),x(" ",C(24,42,"general.input-names.last-name-identification-document")," "),a(2),A(p.fieldErrors(s.controls.firstName,W(63,gt))),a(2),O(s.controls.firstName.errors!=null&&s.controls.firstName.errors.max30&&(s.controls.lastName.errors!=null&&s.controls.lastName.errors.max30)?27:-1),a(),O(s.controls.firstName.errors!=null&&s.controls.firstName.errors.dupli&&(s.controls.lastName.errors!=null&&s.controls.lastName.errors.dupli)?28:-1),a(3),x(" ",C(32,44,"offline-product.register.email")," "),a(3),A(p.fieldErrors(s.controls.email)),a(4),x(" ",C(39,46,"offline-product.register.dateOfBirth")," "),a(2),v("mask",s.controls.dateOfBirthMask.value)("dropSpecialCharacters",!1),a(),A(p.fieldErrors(s.controls.dateOfBirth,W(64,Ot),W(65,kt))),a(4),x(" ",C(46,48,"offline-product.register.nationality")," "),a(2),v("matAutocomplete",t),a(2),v("displayWith",p.displayFnNat),a(2),A(C(53,50,p.countriesNatObservable[i])),a(3),A(p.fieldErrors(s.controls.nationalityCountryId)),a(4),x(" ",C(59,52,"offline-product.register.documentType")," "),a(3),A(s.controls.documentsList.value),a(2),A(p.fieldErrors(s.controls.documentType)),a(4),x(" ",C(68,54,"offline-product.register.documentNumber")," "),a(2),v("mask",s.controls.documentMask.value),pe("inputmode",p.inputmodeDocument),a(),A(p.fieldErrors(s.controls.documentNumber)),a(4),x(" ",C(75,56,"offline-product.register.cod")," "),a(2),v("matAutocomplete",o),a(2),v("displayWith",p.displayFnCod),a(2),A(C(82,58,p.countriesCodObservable[i])),a(3),A(p.fieldErrors(s.controls.phoneCountry)),a(4),x(" ",C(88,60,"offline-product.register.phone")," "),a(2),v("mask",s.controls.phoneMask.value),a(),A(p.fieldErrors(s.controls.phoneNumber)),a(2),O(i!==e-1?92:-1)}}function Wt(n,c){if(n&1){let r=$();m(0,"button",47),k("click",function(){y(r);let e=g();return _(e.onSubmit())}),d(1),u(2,"translate"),l()}n&2&&(a(),x(" ",C(2,1,"offline-product.register.payment")," "))}function jt(n,c){n&1&&(m(0,"button",18),d(1),u(2,"translate"),l()),n&2&&(a(),x(" ",C(2,1,"loader.carring")," "))}function Ut(n,c){n&1&&M(0,"app-skeleton-summary-price")}function Gt(n,c){if(n&1){let r=$();m(0,"app-summary-price",48),k("redirectPaymentEmitter",function(){y(r);let e=g();return _(e.onSubmit())}),l()}if(n&2){let r=g();v("cart",r.cart)("isPackage",!1)("fromCart",!1)("fromRegister",!0)("buttonLoading",r.buttonLoading)}}function Qt(n,c){if(n&1&&M(0,"app-offline-product-summary",21),n&2){let r=g();v("cart",r.cart)}}function Ht(n,c){if(n&1){let r=$();m(0,"app-generate-template",49),k("refreshCart",function(e){y(r);let t=g();return _(t.refreshCart(e))}),l()}if(n&2){let r=g();v("cart",r.cart)("isRegister",!0)("refreshSummaryPrice",r.refreshSummaryPrice)}}function Kt(n,c){if(n&1&&M(0,"app-skeleton-summary-price",25),n&2){let r=g();v("mobileDevice",r.mobileDevice)}}function Xt(n,c){if(n&1){let r=$();m(0,"app-summary-price",50),k("redirectPaymentEmitter",function(){y(r);let e=g();return _(e.onSubmit())}),l()}if(n&2){let r=g();v("cart",r.cart)("isPackage",!1)("fromCart",!1)("fromRegister",!0)("buttonLoading",r.buttonLoading)("mobileDevice",!0)}}function Jt(n,c){n&1&&M(0,"app-skeleton-summary-price")}function Yt(n,c){if(n&1){let r=$();m(0,"app-summary-price",50),k("redirectPaymentEmitter",function(){y(r);let e=g();return _(e.onSubmit())}),l()}if(n&2){let r=g();v("cart",r.cart)("isPackage",!1)("fromCart",!1)("fromRegister",!0)("buttonLoading",r.buttonLoading)("mobileDevice",!1)}}function Zt(n,c){if(n&1&&M(0,"app-offline-product-summary",21),n&2){let r=g();v("cart",r.cart)}}var nn=(()=>{let c=class c extends ct{constructor(){super(...arguments),this.backButtonWhereTo=qe.TICKETS_CART,this.inputmodeDocument="numeric",this.filterResponse=null,this.placeholderDocumentNumber="Document number",this.maskDocumentNumber="",this.placeholderPhoneNumber="Phone number",this.maskPhone="",this.countriesCodObservable=[],this.countriesNatObservable=[],this.defaultConfigDateInput={mask:"00/00/0000",placeholder:"dd/mm/yyyy",regex:/^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$/},this.checkoutBookingService=B(et),this.bookingService=B(He),this.offlineProductBookingService=B(st),this.stateService=B(Je),this.offlineProductService=B(Ye),this.documentService=B(ft)}get cartTypeEnum(){return Qe.OFFLINE_PRODUCT}get resolvedCartId(){return this.cardIdParams}notificationErrorSetup(){return V(this,null,function*(){let i=0;
1this.peopleArray.controls.forEach(e=>{i+=this.getErrorForm(e)}),this.totalErrosForms=i})}ngOnInit(){return V(this,null,function*(){this.observeMobileBreakpoint(),this.institution=this.checkoutState.getInstitution(),this.orderSummary=this.checkoutState.getOrderSummary(),this.isLoggedIn=this.checkoutState.isLoggedIn(),this.institutionService.sendDisableCurrencyPropagate(!0),this.initializePeopleForm(this.orderSummary.offlineProduct.numberOfParticipants),yield this.loadCountries(),yield this.initializeCountryCodeObserver(),yield this.loadRouteParams(),yield this.loadPeopleData(),yield this.loadTicketBooking()})}ngAfterViewInit(){}asFormGroup(i){return i}get peopleArray(){return this.peopleForm.get("peopleArray")}loadCountries(){return V(this,null,function*(){let i=yield z(this.institutionService.getCountries());i.data.sort(We),this.countries=i.data,this.countriesCod=i.data,this.countriesNat=i.data,this.cdr.markForCheck()})}initializePeopleForm(i){let e=Array.from({length:i},()=>this.createPersonForm());this.peopleForm=this.formBuilder.group({peopleArray:this.formBuilder.array(e,[dt(this.transformInitialDate(),this.defaultConfigDateInput.placeholder,this.defaultConfigDateInput.mask)])})}transformInitialDate(){return new Date(this.orderSummary.offlineProduct.initialDate)}createPersonForm(){return this.formBuilder.group({firstName:["",[b.required,N.ValidateOnlyText(),this.noWhitespaceValidator]],lastName:["",[b.required,N.ValidateOnlyText(),this.noWhitespaceValidator]],email:new be("",{validators:[...N.ValidateEmail()],updateOn:"change"}),dateOfBirth:["",{validators:[b.required,b.pattern(this.defaultConfigDateInput.regex)]}],nationalityCountryId:["",[this.autocompleteObjectValidator(),b.required]],documentType:["",b.required],documentNumber:["",{validators:[b.required,N.ValidateCpf,this.noWhitespaceValidator],updateOn:"blur"}],phoneCountry:["",[this.autocompleteObjectValidator(),b.required]],phoneNumber:["",{validators:b.required,updateOn:"blur"}],documentsList:[[]],phoneMask:[""],documentMask:[""],dateOfBirthMask:[this.defaultConfigDateInput.mask]})}noWhitespaceValidator(i){return(i.value||"").trim().length?null:{whitespace:!0,required:!0}}initializeCountryCodeObserver(){return V(this,null,function*(){this.peopleArray.controls.forEach((i,e)=>{this.countriesCodObservable[e]=w.makeAutocomplete$(i.get("phoneCountry"),this.countriesCod,w.filterCod),this.countriesNatObservable[e]=w.makeAutocomplete$(i.get("nationalityCountryId"),this.countriesNat,w.filterNat)})})}
1loadRouteParams(){return V(this,null,function*(){let i=yield z(this.route.params);if(this.cardIdParams=i.cartid,!this.cardIdParams){let e=yield z(this.route.queryParams),t=Ge.parser(R({},e));this.sourceType=t.source,t.newCartId&&(this.cardIdParams=t.newCartId)}})}loadPeopleData(){return V(this,null,function*(){this.offlineProductBookingService.getParticipants(this.cardIdParams).pipe(Re(this.destroyRef)).subscribe(i=>{i&&i.data.participants&&i.data.participants.length>0?this.peopleArray.controls.forEach((e,t)=>{e.patchValue(i.data.participants[t]);let o=this.countries.find(f=>f.phoneCode.toString()===i.data.participants[t].phoneCountry);e.get("phoneCountry").patchValue(o);let p=this.countries.find(f=>f.id===i.data.participants[t].nationalityCountryId);e.get("nationalityCountryId").patchValue(p);let s=X.jsDateToString(new Date(i.data.participants[t].dateOfBirth),this.defaultConfigDateInput.mask,this.defaultConfigDateInput.placeholder);e.get("dateOfBirth").patchValue(s),this.onChangeCountryPhone({value:+i.data.participants[t].phoneCountry},!1,t),this.onChangeDocumentType(e,i.data.participants[t].documentType,t),this.onChangeNationality(e,{id:i.data.participants[t].nationalityCountryId},t),e.get("documentNumber").patchValue(i.data.participants[t].documentNumber),e.get("documentType").patchValue(i.data.participants[t].documentType)}):this.configView(ie(this.institution.agent.configurations)),this.cdr.markForCheck()})})}configView(i){return V(this,null,function*(){let e=this.countries.find(t=>+t.id==30);this.peopleArray.controls.forEach((t,o)=>{t.get("phoneCountry").patchValue(e),t.get("nationalityCountryId").patchValue(e),t.get("phoneMask").setValue(i.MobilePhoneFormat),t.get("phoneMask").updateValueAndValidity(),t.get("phoneNumber").setValidators([N.maskMobilePhoneValidator(i.MobilePhoneFormat),b.required]),t.get("phoneNumber").updateValueAndValidity();let p="000.000.000-00";this.inputmodeDocument="numeric",t.get("documentMask").patchValue(p);let s=e&&e.id?+e?.id:30;this.bookingService.requiredDocumentOfflineProducts(this.cardIdParams,s).subscribe({next:h=>{if(t.get("documentsList").patchValue(h.data),t.get("documentType").enable({emitEvent:!1}),h.data.length>0){let I=h.data.find(re=>re.documentId===1);I&&t.get("documentType").patchValue(I.documentId)}},error:()=>{this.notificationService.snackError(this.translate.instant(j.NOT_FOUND_DOCUMENT))}});let f=this.translate.getDefaultLang();f!=="pt-br"&&f!=="pt"&&f!=="es-mx"&&(this.defaultConfigDateInput.mask="00/00/0000",this.defaultConfigDateInput.regex=/^((0[13578]|1[02])[\/.]31[\/.](19|20)[0-9]{2})|((01|0[3-9]|1[1-2])[\/.](29|30)[\/.](19|20)[0-9]{2})|((0[1-9]|1[0-2])[\/.](0[1-9]|1[0-9]|2[0-8])[\/.](19|20)[0-9]{2})|((02)[\/.]29[\/.](((19|20)(04|08|[2468][048]|[13579][26]))|2000))$/,this.defaultConfigDateInput.placeholder="mm/dd/yyyy")})})}loadTicketBooking(){return V(this,null,function*(){try{let i=yield z(this.offlineProductBookingService.getBookingOfflineProduct(this.cardIdParams));this.cart=i.data,this.setSearchToComponent(this.cart),this.cart&&this.cart?.offlineProduct?this.orderSummary=this.orderSummaryService.setOfflineProductOrderSummary(this.cart):(this.isExpiredCart=!0,this.openDialogCartNotFound()),this.cart||(this.isExpiredCart=!0,this.openDialogCartNotFound()),this.cdr.markForCheck()}catch{this.cart=null,this.isExpiredCart=!0,this.openDialogCartNotFound(),this.cdr.markForCheck()}})}setSearchToComponent(i){return V(this,null,function*(){i?.cartId&&this.checkoutBookingService.searchBookingOfflineProduct(i?.cartId).subscribe({next:e=>V(this,null,function*(){let t=e.data.category??"",o=e.data.city??"",p=e.data.date??"",s=e.data.numberOfPerson??0;this.stateService.filtersChanges().subscribe(f=>{(f.category.length>0||f.city.length>0||f.dates.length>0)&&(this.filterResponse=f)}),this.stateService.updateForm({city:o,category:t,eventDate:p,participants:s}),this.filterResponse||(yield this.offlineProductService.filters(t,o,p,s).subscribe(f=>{this.populateFilters(f,t,o,p,s),this.stateService.updateFilters(f)}))}),error:()=>{this.notificationService.snackError(this.translate.instant(j.UNEXPECTED_ERROR))}})})}populateFilters(i,e,t,o,p){let s=null,f=null;e!=""&&(s=this.offlineProductService.transformFilter(i.category?.find(h=>h.id===e))),t!=""&&(f=this.offlineProductService.transformFilter(i.city?.find(h=>h.id===t))),this.stateService.emitSearchState({category:s,city:f,eventDate:o,participants:p})}verifyMaskPhoneValidator(i,e){let t=i.replace(/\s/g,"");
1e.get("phoneNumber").setValue(t),e.get("phoneNumber").updateValueAndValidity();let o=e.get("phoneNumber"),p=e.get("phoneMask").value;N.maskMobilePhoneValidator(p)(o)===null?o.setErrors(null):o.setErrors({invalidMobilePhoneMask:!0}),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}onChangeCountryPhone(i,e=!1,t){let o=this.peopleArray.at(t).get("phoneNumber"),p=this.peopleArray.at(t).get("phoneMask"),s=i?.value??i.phoneCode,f=this.countries.find(h=>+h.phoneCode==+s);if(f?.configurations?.length>0){let h=ie(f.configurations);h.countryId=s,e&&o.reset(),o.setValidators([N.maskMobilePhoneValidator(h.MobilePhoneFormat),b.required]),o.updateValueAndValidity(),p.setValue(h.MobilePhoneFormat),p.updateValueAndValidity()}else e&&o.reset(""),o.setValidators([b.required]),o.updateValueAndValidity(),p.setValue(""),p.updateValueAndValidity()}resetAutocompleteListCod(i){let e=this.peopleArray.at(i).get("phoneCountry");e&&(this.countriesCodObservable[i]=w.makeAutocomplete$(e,this.countriesCod,w.filterCod))}resetAutocompleteListNat(i){let e=this.peopleArray.at(i).get("nationalityCountryId");e&&(this.countriesNatObservable[i]=w.makeAutocomplete$(e,this.countriesNat,w.filterNat))}onChangeDocumentType(i,e,t){let o=this.peopleArray.at(t),{mask:p,inputMode:s}=this.documentService.configureDocumentFields(e,o,{documentNumber:"documentNumber",documentMask:"documentMask"});this.maskDocumentNumber=p,this.inputmodeDocument=s}isValidDate(i){return e=>{if(e.value){let t=X.convertDateStringToDate(e.value,this.defaultConfigDateInput.mask,this.defaultConfigDateInput.placeholder),o=(0,ne.default)(t),p=(0,ne.default)();return o.isBefore(p)?{invalidDocDate:!0}:null}}}onChangeNationality(i,e,t){return V(this,null,function*(){let o=this.peopleArray.at(t).get("documentNumber"),p=this.peopleArray.at(t).get("documentType"),s=this.peopleArray.at(t).get("documentsList");o.setValue("",{emitEvent:!1}),o.updateValueAndValidity(),p.setValue("",{emitEvent:!1});let f=e&&e.id?+e.id:30;this.bookingService.requiredDocumentOfflineProducts(this.cardIdParams,f).subscribe(h=>{s.setValue(h.data),p.enable({emitEvent:!1}),h.data.length===1&&(p.setValue(h.data[0].documentId),this.onChangeDocumentType(i,h.data[0].documentId,t))},h=>{this.notificationService.snackError(this.translate.instant(j.NOT_FOUND_DOCUMENT))})})}onSubmit(){return V(this,null,function*(){if(yield this.authService.getOrRequestToken()){if(!this.cart){this.notificationService.snackWarn(this.translate.instant("car.driver-car.wait-for-load-informations"));return}if(this.onFocusOutNames(),this.onFocusOutDocumentNumber(),this.peopleArray.invalid){this.buttonLoading=!1,this.peopleArray.markAllAsTouched(),this.notificationSnackBar(!0);return}if(this.peopleArray.valid){let e=this.createParticipantsPayload();this.buttonLoading=!0,this.offlineProductBookingService.putParticipants(this.cart.cartId,e).subscribe({next:t=>{t.data.hasNewTransaction?(this.orderSummary.cartId=t.data.newTransaction,this.checkoutState.setOrderSummary(this.orderSummary),this.navigateNewCartID(this.orderSummary.cartId)):this.navigateNewCartID(this.cart.cartId)},error:t=>{this.buttonLoading=!1;let o=t?.error;if(o?.Error==="BadRequestFluentValidatorException"&&Array.isArray(o?.Validations)){this.applyEmailBackendErrorForOffline(o.Validations),setTimeout(()=>{this.notificationSnackBar(!0)},100);return}if(o?.Error==="NotFoundException"||o?.Error==="InvalidOperationException"){this.notificationService.snackError(this.translate.instant(j.NOT_FOUND));return}}})}}})}createParticipantsPayload(){let i=this.mapForm();return{cartId:this.cart.cartId,participants:i,startDate:this.cart?.offlineProduct?.initialDate}}mapForm(){return this.peopleArray.value.map(e=>({firstName:e.firstName.trim(),lastName:e.lastName.trim(),email:e.email.trim(),phoneNumber:e.phoneNumber.trim(),phoneCountry:e.phoneCountry.phoneCode,dateOfBirth:X.convertDateStringToUTCDate(e.dateOfBirth,this.defaultConfigDateInput.mask,this.defaultConfigDateInput.placeholder),documentNumber:e.documentNumber.trim(),documentType:e.documentType,nationalityCountryId:e.nationalityCountryId.id}))}onFocusOutDocumentNumber(){let i=this.peopleArray.controls.reduce((e,t)=>
1(e[t.get("documentNumber").value]=++e[t.get("documentNumber").value]||0,e),{});if(this.peopleArray.controls.filter(e=>i[e.get("documentNumber").value]).length>0){let e=this.peopleArray.controls.filter(t=>i[t.get("documentNumber").value]>=1&&t.get("documentNumber").value!=="");this.peopleArray.controls.forEach(t=>{t.get("documentNumber").setErrors({dupli:null}),t.get("documentNumber").updateValueAndValidity()}),e.forEach(t=>{t.get("documentNumber").setErrors({dupli:!0})});return}else this.peopleArray.controls.forEach(e=>{e.get("documentNumber").setErrors({dupli:null}),e.get("documentNumber").updateValueAndValidity()})}onFocusOutNames(){let i=this.peopleArray.controls.reduce((e,t)=>{let o=(t.get("firstName")?.value||"").toLowerCase().trim(),p=(t.get("lastName")?.value||"").toLowerCase().trim(),s=`${o}${p}`;return s&&(e[s]=(e[s]||0)+1),e},{});this.peopleArray.controls.forEach(e=>{let t=e.get("firstName"),o=e.get("lastName");if(!t||!o)return;let p=(t.value||"").trim(),s=(o.value||"").trim(),f=`${p.toLowerCase()}${s.toLowerCase()}`,h=R({},t.errors||{}),I=R({},o.errors||{});f&&i[f]>1?(h.dupli=!0,I.dupli=!0):(delete h.dupli,delete I.dupli),p.length+s.length>30?(h.max30=!0,I.max30=!0):(delete h.max30,delete I.max30),t.setErrors(Object.keys(h).length?h:null),o.setErrors(Object.keys(I).length?I:null)})}applyEmailBackendErrorForOffline(i){if(!Array.isArray(i)||!i.length)return;let e=i.filter(o=>{let p=(o?.Field||"").toLowerCase(),s=(o?.Path||"").toLowerCase(),f=(o?.Message||"").toLowerCase();return p.includes("email")||s.includes("email")||f.includes("email")});if(!e.length)return;let t=!1;for(let o of e){let p=this.getIndexFromValidation(o);if(p!=null&&p>=0&&p<this.peopleArray.length){let s=this.peopleArray.at(p).get("email");
1s&&(s.setErrors(U(R({},s.errors||{}),{invalidEmail:!0})),s.markAsTouched(),s.markAsDirty(),t=!0)}}if(!t)if(this.peopleArray.length===1){let o=this.peopleArray.at(0).get("email");o?.setErrors(U(R({},o.errors||{}),{invalidEmail:!0})),o?.markAsTouched(),o?.markAsDirty()}else this.peopleArray.controls.forEach(o=>{let p=o.get("email");p?.setErrors(U(R({},p.errors||{}),{invalidEmail:!0})),p?.markAsTouched(),p?.markAsDirty()})}getIndexFromValidation(i){let t=`${i?.Path??""} ${i?.Field??""}`.match(/[\[\(]\s*(\d+)\s*[\]\)]/);return t&&t[1]!=null?Number(t[1]):null}onPhoneCountryTabSelectFirstOption(i,e){let t=this.peopleArray.at(e).get("phoneCountry");if(!t)return;let o=t.value;if(o&&typeof o=="object")return;let p=w.filterCod(this.countriesCod,o);if(!p||p.length===0)return;let s=p[0];t.setValue(s),t.markAsDirty(),t.markAsTouched(),this.onChangeCountryPhone(s,!0,e),this.checkErrosNotification()}onNatTabSelectFirstOption(i,e){let t=this.peopleArray.at(e),o=t.get("nationalityCountryId");if(!o)return;let p=o.value;if(p&&typeof p=="object")return;let s=w.filterNat(this.countriesNat,p);if(!s||s.length===0)return;let f=s[0];o.setValue(f),o.markAsDirty(),o.markAsTouched(),this.onChangeNationality(t,f,e),this.checkErrosNotification()}refreshCart(i){this.refreshSummaryPrice=!0,this.offlineProductBookingService.getBookingOfflineProduct(this.cardIdParams).pipe(oe(()=>this.refreshSummaryPrice=!1)).subscribe({next:e=>{this.cart=e.data,this.setSearchToComponent(this.cart),this.cart&&this.cart?.offlineProduct?this.orderSummary=this.orderSummaryService.setOfflineProductOrderSummary(this.cart):(this.isExpiredCart=!0,this.openDialogCartNotFound()),this.cart||(this.isExpiredCart=!0,this.openDialogCartNotFound()),this.cdr.markForCheck()},error:()=>{this.cart=null,this.isExpiredCart=!0,this.openDialogCartNotFound(),this.cdr.markForCheck()}})}};c.\u0275fac=(()=>{let i;return function(t){return(i||(i=se(c)))(t||c)}})(),c.\u0275cmp=G({type:c,selectors:[["app-offline-product-register"]],viewQuery:function(e,t){if(e&1&&(J(bt,5,K),J(Pt,5,K)),e&2){let o;Y(o=Z())&&(t.autoCompleteInputCod=o.first),Y(o=Z())&&(t.autoCompleteInputNat=o.first)}},features:[Q],decls:33,vars:23,consts:[["autoCompleteInputNat",""],["autoNat","matAutocomplete"],["autoCompleteInputCod",""],["autoCod","matAutocomplete"],[1,"container","container-content"],["app-back-button","",3,"text","whereTo"],[1,"register-header"],[1,"register-header-subtitle"],[1,"register-header-title"],["mode","indeterminate",1,"progress"],[1,"content"],[1,"form-section"],["appearance","outlined",1,"card-form"],["autocomplete","off",1,"form",3,"formGroup"],["formArrayName","peopleArray"],[3,"formGroupName"],[1,"footer-actions"],["type","button","matButton","filled",1,"btn-tertiary","button-save"],["matButton","filled","type","button","disabled","",1,"btn-tertiary","button-save"],[1,"summary-section"],[3,"cart","isPackage","fromCart","fromRegister","buttonLoading"],[3,"cart"],[3,"cart","isRegister","refreshSummaryPrice"],[3,"cart","isExpiredCart"],["collapsed-content",""],[3,"mobileDevice"],[3,"cart","isPackage","fromCart","fromRegister","buttonLoading","mobileDevice"],["expanded-content",""],[1,"traveler-title"],[1,"form-grid"],["appearance","outline","hideRequiredMarker",""],["matInput","","formControlName","firstName","required","","autocomplete","off-off",3,"input","blur","cdkAutofill","inputPopover"],[1,"filed-hint"],[1,"mat-error-custom"],["matInput","","formControlName","lastName","required","","autocomplete","off-off",3,"input","blur","cdkAutofill","inputPopover"],[1,"block-actions"],["matInput","","formControlName","email","required","","autocomplete","off",3,"blur","cdkAutofill"],["matInput","","type","numeric","formControlName","dateOfBirth","maxlength","10","minlength","10","appDigitOnly","","inputmode","numeric","required","","autocomplete","off",3,"blur","cdkAutofill","mask","dropSpecialCharacters"],["type","text","oninput","this.value = this.value.toLowerCase()","aria-label","Country","matInput","","formControlName","nationalityCountryId",3,"focus","keydown.tab","matAutocomplete"],["autoActiveFirstOption","",3,"optionSelected","displayWith"],[3,"value"],["formControlName","documentType","required","",3,"selectionChange"],["matInput","","formControlName","documentNumber","required","","maxlength","30","autocomplete","off",3,"blur","cdkAutofill","mask"],["appearance","outline","hideRequiredMarker","","cdkScrollable",""],["matInput","","type","text","oninput","this.value = this.value.toLowerCase()","formControlName","phoneCountry",3,"focus","keydown.tab","matAutocomplete"],["matInput","","formControlName","phoneNumber","inputmode","numeric","pattern","[0-9]*","appDigitOnly","","maxlength","15","required","","autocomplete","off",3,"blur","cdkAutofill","
1input","mask"],[1,"block-sep"],["type","button","matButton","filled",1,"btn-tertiary","button-save",3,"click"],[3,"redirectPaymentEmitter","cart","isPackage","fromCart","fromRegister","buttonLoading"],[3,"refreshCart","cart","isRegister","refreshSummaryPrice"],[3,"redirectPaymentEmitter","cart","isPackage","fromCart","fromRegister","buttonLoading","mobileDevice"]],template:function(e,t){e&1&&(m(0,"div",4),M(1,"div",5),m(2,"div",6)(3,"span",7),d(4),u(5,"translate"),l(),m(6,"h2",8),d(7),u(8,"translate"),l()(),P(9,Et,1,0,"mat-progress-bar",9),m(10,"div",10)(11,"div",11)(12,"mat-card",12)(13,"form",13)(14,"div",14),E(15,zt,93,66,"div",15,q),l()()(),m(17,"div",16),P(18,Wt,3,3,"button",17),P(19,jt,3,3,"button",18),l()(),m(20,"div",19),P(21,Ut,1,0,"app-skeleton-summary-price"),P(22,Gt,1,5,"app-summary-price",20),P(23,Qt,1,1,"app-offline-product-summary",21),P(24,Ht,1,3,"app-generate-template",22),l()()(),m(25,"app-float-payment-details",23)(26,"div",24),P(27,Kt,1,1,"app-skeleton-summary-price",25),P(28,Xt,1,6,"app-summary-price",26),l(),m(29,"div",27),P(30,Jt,1,0,"app-skeleton-summary-price"),P(31,Yt,1,6,"app-summary-price",26),P(32,Zt,1,1,"app-offline-product-summary",21),l()()),e&2&&(a(),v("text","back-buttons.cart")("whereTo",t.backButtonWhereTo),a(3),x(" ",C(5,19,"offline-product.register.complete-your-reservation")," "),a(3),x(" ",C(8,21,"offline-product.register.who-is-package-for")," "),a(2),O(t.cart?-1:9),a(4),v("formGroup",t.peopleForm),a(2),A(t.peopleArray.controls),a(3),O(t.buttonLoading?-1:18),a(),O(t.buttonLoading?19:-1),a(2),O((!t.cart||t.refreshSummaryPrice)&&!t.mobileDevice?21:-1),a(),O(t.cart&&!t.mobileDevice&&!t.refreshSummaryPrice?22:-1),a(),O(t.cart?23:-1),a(),O(t.cart?24:-1),a(),v("cart",t.cart)("isExpiredCart",t.isExpiredCart),a(2),O(!t.cart&&t.mobileDevice||t.refreshSummaryPrice?27:-1),a(),O(t.cart&&t.mobileDevice&&!t.refreshSummaryPrice?28:-1),a(2),O(!t.cart&&t.mobileDevice||t.refreshSummaryPrice?30:-1),a(),O(t.cart&&t.mobileDevice&&!t.refreshSummaryPrice?31:-1),a(),O(t.cart?32:-1))},dependencies:[Ze,Ue,we,Pe,Ce,ve,xe,Ve,Se,Me,Ne,Oe,Ae,ke,Ee,ye,fe,Le,mt,$e,ge,he,De,pt,K,ze,ue,Fe,_e,Ie,Xe,lt,ht,it,tt,Ke,me,H],styles:['@charset "UTF-8";@media(max-width:1200px){.container-content[_ngcontent-%COMP%]{margin-bottom:140px}}.register-header[_ngcontent-%COMP%]{border-left:3px solid var(--mat-sys-primary);padding-left:12px;margin-bottom:1rem;margin-top:.2rem}.register-header-subtitle[_ngcontent-%COMP%]{display:block;color:#777;font-weight:400;line-height:1.4;font-size:var(--type-body-small-size);line-height:var(--type-body-small-line-height);letter-spacing:var(--type-body-small-tracking)}@media(max-width:63.9375em){.register-header-subtitle[_ngcontent-%COMP%]{font-size:var(--type-body-small-size);line-height:var(--type-body-small-line-height);letter-spacing:var(--type-body-small-tracking)}}@media(max-width:39.9375em){.register-header-subtitle[_ngcontent-%COMP%]{font-size:var(--type-body-small-size);line-height:var(--type-body-small-line-height);letter-spacing:var(--type-body-small-tracking)}}.register-header-title[_ngcontent-%COMP%]{color:#222;font-weight:700;margin:2px 0 0;font-size:var(--type-title-medium-size);line-height:var(--type-title-medium-line-height);letter-spacing:var(--type-title-medium-tracking)}@media(max-width:63.9375em){.register-header-title[_ngcontent-%COMP%]{font-size:var(--type-title-small-size);line-height:var(--type-title-small-line-height);letter-spacing:var(--type-title-small-tracking)}}@media(max-width:39.9375em){.register-header-title[_ngcontent-%COMP%]{font-size:var(--type-title-small-size);line-height:var(--type-title-small-line-height);letter-spacing:var(--type-title-small-tracking)}}.progress[_ngcontent-%COMP%]{margin:1rem 0}.content[_ngcontent-%COMP%]{margin:1rem 0px;display:flex;gap:16px}.content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{width:70%}.content[_ngcontent-%COMP%] .summary-section[_ngcontent-%COMP%]{width:30%}@media(max-width:1200px){.content[_ngcontent-%COMP%]{flex-direction:column}.content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .summary-section[_ngcontent-%COMP%]{width:100%}}.card-form[_ngcontent-%COMP%]{box-shadow:unset;border:1px solid rgba(0,0,0,.125);padding:16px}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}.form-grid[_ngcontent-%COMP%] .full[_ngcontent-%COMP%]{grid-column:1/-1}.form-grid[_ngcontent-%COMP%] .full-1-3[_ngcontent-%COMP%]{grid-column:1/-1;width:33.3333%;justify-self:flex-start}@media(max-width:992px){.form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.form-grid[_ngcontent-%COMP%] .full-1-3[_ngcontent-%COMP%]{width:100%}}.traveler-title[_ngcontent-%COMP%]{margin:0 0 4px;grid-column:1/-1;color:#222;font-weight:700;font-size:var(--type-title-medium-size);line-height:var(--type-title-medium-line-height);letter-spacing:var(--type-title-medium-tracking)}@media(max-width:63.9375em){.traveler-title[_ngcontent-%COMP%]{font-size:var(--type-title-small-size);line-height:var(--type-title-small-line-height);letter-spacing:var(--type-title-small-tracking)}}@media(max-width:39.9375em){.traveler-title[_ngcontent-%COMP%]{font-size:var(--type-title-small-size);line-height:var(--type-title-small-line-height);letter-spacing:var(--type-title-small-tracking)}}.traveler-subtitle[_ngcontent-%COMP%]{display:block;
1color:#777;font-weight:400;line-height:1.4;font-size:var(--type-body-medium-size);line-height:var(--type-body-medium-line-height);letter-spacing:var(--type-body-medium-tracking)}@media(max-width:63.9375em){.traveler-subtitle[_ngcontent-%COMP%]{font-size:var(--type-body-small-size);line-height:var(--type-body-small-line-height);letter-spacing:var(--type-body-small-tracking)}}@media(max-width:39.9375em){.traveler-subtitle[_ngcontent-%COMP%]{font-size:var(--type-body-small-size);line-height:var(--type-body-small-line-height);letter-spacing:var(--type-body-small-tracking)}}.main-guest[_ngcontent-%COMP%]{font-weight:600;color:#222;font-size:var(--type-body-medium-size);line-height:var(--type-body-medium-line-height);letter-spacing:var(--type-body-medium-tracking)}.block-actions[_ngcontent-%COMP%]{margin-top:8px;grid-column:1/-1;display:flex;flex-direction:column;gap:4px}.footer-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;margin-top:16px}.block-sep[_ngcontent-%COMP%]{border:0;border-top:1px solid #e6e6e6;margin:24px 0}.interest-modal-label-container[_ngcontent-%COMP%]{text-align:right}.interest-modal-label-container[_ngcontent-%COMP%] .interest-modal-label[_ngcontent-%COMP%]{color:var(--mat-sys-primary);cursor:pointer;text-decoration:none}.form-row-between[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between}@media(max-width:768px){.form-row-between[_ngcontent-%COMP%]{flex-direction:column;margin-bottom:.75rem}}'],changeDetection:0});let n=c;return n})();export{nn as OfflineProductRegisterComponent};
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.