1import{a as Fe}from"./chunk-SIBHL2W7.js";import{a as he,b as Se}from"./chunk-7EFDFNMT.js";import{a as ve,b as Ce}from"./chunk-VFEDRRSG.js";import{a as ge}from"./chunk-A4UFTBHM.js";import"./chunk-KRXSP7IJ.js";import"./chunk-7UBKQT23.js";import{b as be}from"./chunk-CRRUSF55.js";import{a as F}from"./chunk-J576GRXW.js";import{c as xe}from"./chunk-R3S7KXPN.js";import"./chunk-AU5WDJWJ.js";import{c as ue,d as _e}from"./chunk-NQ5P4H6D.js";import{c as fe}from"./chunk-HYKUNRHT.js";import"./chunk-DNC2JRBF.js";import"./chunk-QTAUKEDJ.js";import{a as ce,b as pe,f as se,i as de}from"./chunk-4UBTPZZS.js";import"./chunk-LLDK46W7.js";import{b as Y,d,f as ee,g as te,h as P,j as C,l as ne,n as ie,o as oe,r as re,s as ae,w as le}from"./chunk-CO7MV662.js";import"./chunk-3S3LWRB3.js";import"./chunk-FUR3SAHN.js";import{a as $}from"./chunk-ZCESXFSG.js";import"./chunk-RKLLVET2.js";import{a as me}from"./chunk-BRLRWQY2.js";import{a as Q,b as Z,c as J,d as K,e as X}from"./chunk-MXTKG2CM.js";import"./chunk-MUW4FLSF.js";import"./chunk-5BS5VEIV.js";import"./chunk-ZBIPFXJI.js";import"./chunk-6GC5EBX5.js";import"./chunk-5ITMVO3U.js";import{a as U}from"./chunk-RSN73FRZ.js";import{a as W}from"./chunk-DF7WOO6L.js";import{h as R,i as N,j as T,k,m as z}from"./chunk-JXPCPXGO.js";import{f as G}from"./chunk-SCOLU66M.js";import"./chunk-T4RP7A5Y.js";import"./chunk-ADPILVKD.js";import"./chunk-XTCFZ3KI.js";import{v as H,y as O}from"./chunk-CSDGJEBX.js";import{$b as n,$c as a,Fc as m,Gc as p,Hc as I,La as D,Tb as b,Vb as x,Yb as L,Zb as A,_b as f,ac as t,ad as l,bb as g,bc as c,fb as i,ha as _,jc as V,ma as y,na as w,oc as h,qc as S,ra as j,rd as E,wb as M}from"./chunk-57UVUD7B.js";import"./chunk-C6Q5SG76.js";var q=(s=>(s[s.ticketBooking=1]="ticketBooking",s[s.ticketChange=2]="ticketChange",s[s.tripQuestions=3]="tripQuestions",s[s.busRent=4]="busRent",s[s.sindbadTransfer=5]="sindbadTransfer",s[s.schoolTrips=6]="schoolTrips",s[s.other=7]="other",s))(q||{});var Te=(o,r)=>r.key;function ke(o,r){o&1&&(n(0,"mat-error"),m(1),a(2,"transloco"),t()),o&2&&(i(),p(l(2,1,"err_required")))}function Be(o,r){o&1&&(n(0,"mat-error"),m(1),a(2,"transloco"),t()),o&2&&(i(),p(l(2,1,"err_required")))}function Pe(o,r){o&1&&(n(0,"mat-error"),m(1),a(2,"transloco"),t()),o&2&&(i(),p(l(2,1,"err_email")))}function qe(o,r){o&1&&(n(0,"mat-error"),m(1),a(2,"transloco"),t()),o&2&&(i(),p(l(2,1,"err_required")))}function je(o,r){o&1&&(n(0,"mat-error"),m(1),a(2,"transloco"),t()),o&2&&(i(),p(l(2,1,"err_ticket_number_format")))}function De(o,r){if(o&1&&(n(0,"mat-option",31),m(1),a(2,"transloco"),t()),o&2){let e=r.$implicit;f("value",e.key),i(),I(" ",l(2,2,"contact_form_type_"+e.value)," ")}}function Le(o,r){o&1&&(n(0,"mat-error"),m(1),a(2,"transloco"),t()),o&2&&(i(),p(l(2,1,"err_required")))}function Ae(o,r){o&1&&(n(0,"mat-error"),m(1),a(2,"transloco"),t()),o&2&&(i(),p(l(2,1,"err_required")))}function Ve(o,r){if(o&1){let e=V();n(0,"form",8),h("ngSubmit",function(){y(e);let v=S();return w(v.onSubmit())}),n(1,"div",9)(2,"div",10)(3,"label",11),m(4),a(5,"transloco"),t()(),n(6,"div",12)(7,"mat-form-field",13),c(8,"mat-label",14)(9,"input",15),b(10,ke,3,3,"mat-error"),t()()(),n(11,"div",9)(12,"div",10)(13,"label",16),m(14),a(15,"transloco"),t()(),n(16,"div",12)(17,"mat-form-field",13),c(18,"mat-label",17),n(19,"input",18),h("blur",function(){y(e);let v=S();return w(v.onEmailBlur())}),t(),b(20,Be,3,3,"mat-error"),b(21,Pe,3,3,"mat-error"),t()()(),n(22,"div",19)(23,"div",20)(24,"label",21),m(25),a(26,"transloco"),t()(),n(27,"div",12),c(28,"app-phone-input",22),a(29,"transloco"),t()(),n(30,"div",9)(31,"div",10)(32,"label",23),m(33),a(34,"transloco"),t()(),n(35,"div",12)(36,"mat-form-field",13),c(37,"mat-label",24)(38,"input",25),b(39,qe,3,3,"mat-error"),t()()(),n(40,"div",9)(41,"div",10)(42,"label",26),m(43),a(44,"transloco"),t()(),n(45,"div",12)(46,"mat-form-field",13),c(47,"mat-label",27)(48,"input",28),b(49,je,3,3,"mat-error"),t()()(),n(50,"div",9)(51,"div",10)(52,"label",29),m(53),a(54,"transloco"),t()(),n(55,"div",12)(56,"mat-form-field",13)(57,"mat-select",30),L(58,De,3,4,"mat-option",31,Te),t(),b(60,Le,3,3,"mat-error"),t()()(),n(61,"div",9)(62,"div",10)(63,"label",32),m(64),a(65,"transloco"),t()(),n(66,"div",12)(67,"mat-form-field",13),c(68,"textarea",33),b(69,Ae,3,3,"mat-error"),t()()(),n(70,"div",34)(71,"div",35)(72,"button",36),h("click",function(){y(e);let v=S();return w(v.resetForm())}),m(73),a(74,"transloco"),t(),n(75,"button",37),m(76),a(77,"transloco"),t()()()()}if(o&2){let e=S();f("formGroup",e.contactForm),i(4),p(l(5,21,"lbl_contact_form_name")),i(6),x(e.contactName!=null&&e.contactName.invali
1d&&(e.contactName!=null&&e.contactName.touched)&&(!(e.contactName==null||e.contactName.errors==null)&&e.contactName.errors.required)?10:-1),i(4),p(l(15,23,"lbl_contact_form_email")),i(6),x(e.email!=null&&e.email.invalid&&(e.email!=null&&e.email.touched)&&(!(e.email==null||e.email.errors==null)&&e.email.errors.required)?20:-1),i(),x(e.email!=null&&e.email.invalid&&(e.email!=null&&e.email.touched)&&(!(e.email==null||e.email.errors==null)&&e.email.errors.email)?21:-1),i(4),p(l(26,25,"lbl_contact_form_phone")),i(3),f("placeholder",l(29,27,"plh_contact_form_phone")+"*")("maxlength",20)("isRequired",!0)("isFormSubmitted",e.submited),i(5),p(l(34,29,"lbl_contact_form_subject")),i(6),x(e.subject!=null&&e.subject.invalid&&(e.subject!=null&&e.subject.touched)&&(!(e.subject==null||e.subject.errors==null)&&e.subject.errors.required)?39:-1),i(4),p(l(44,31,"contact_form_ticket_nr")),i(6),x(e.ticketNumber!=null&&e.ticketNumber.invalid&&(e.ticketNumber!=null&&e.ticketNumber.touched)&&(!(e.ticketNumber==null||e.ticketNumber.errors==null)&&e.ticketNumber.errors.pattern)?49:-1),i(4),p(l(54,33,"lbl_contact_form_type")),i(5),A(e.contactTypes),i(2),x(e.type!=null&&e.type.invalid&&(e.type!=null&&e.type.touched)&&(!(e.type==null||e.type.errors==null)&&e.type.errors.required)?60:-1),i(4),p(l(65,35,"lbl_contact_form_description")),i(5),x(e.description!=null&&e.description.invalid&&(e.description!=null&&e.description.touched)&&(!(e.description==null||e.description.errors==null)&&e.description.errors.required)?69:-1),i(4),I(" ",l(74,37,"btn_contact_form_cancel")," "),i(3),I(" ",l(77,39,"btn_contact_form_send")," ")}}var B=class o{contactForm;communicationService=_(W);changeDetector=_(E);translocoService=_(R);emailCorrectionService=_(Ce);gtm=_(be);dialog=_(xe);submited=!1;collapseStateInfo=!1;contactTypes=Object.entries(q).filter(([r])=>isNaN(Number(r))).map(([r,e])=>({key:Number(e),value:r}));constructor(){this.createForm()}createForm(){this.contactForm=new P({contactName:new C("",[d.required,d.maxLength(40)]),email:new C("",[d.required,d.email,d.maxLength(80)]),phone:new C("",[d.required,d.maxLength(22),d.pattern("\\+\\d+\\s{1}(\\d*|(\\s?\\d{2,})*)")]),subject:new C("",[d.required,d.maxLength(100)]),ticketNumber:new C("",[d.maxLength(20)]),caseType:new C(2,[d.required]),description:new C("",[d.required,d.maxLength(1e3)])})}get contactName(){return this.contactForm.get("contactName")}get email(){return this.contactForm.get("email")}get phone(){return this.contactForm.get("phone")}get subject(){return this.contactForm.get("subject")}get ticketNumber(){return this.contactForm.get("ticketNumber")}get type(){return this.contactForm.get("type")}get description(){return this.contactForm.get("description")}resetForm(){this.contactForm=null,this.changeDetector.detectChanges(),this.createForm()}validateAllFormFields(r){Object.keys(r.controls).forEach(e=>{let u=r.get(e);u instanceof P?this.validateAllFormFields(u):u?.markAsTouched()})}onEmailBlur(){let r=this.contactForm.get("email"),e=r?.value;if(!e)return;let{isCorrected:u,correctedEmail:v}=this.emailCorrectionService.suggest(e);if(u){let we=this.translocoService.translate("lbl_popup_entered"),Me=this.translocoService.translate("lbl_popup_new_value");this.dialog.open(F,{data:{title:"lbl_contact_form_email",content:`${we} ${e}<br>${Me} <b>${v}</b>?`,flagConfirm:!0}}).afterClosed().subscribe(s=>{s&&r?.setValue(v)})}}onSubmit(){if(this.submited=!0,this.contactForm.valid){let r=this.contactForm.value;this.communicationService.sendContactForm(r).subscribe({next:()=>{this.dialog.open(F,{data:{title:"hdr_form_valid",content:"txt_form_valid",flagConfirm:!1}}),this.collapseStateInfo=!1,this.resetForm()},error:()=>{this.dialog.open(F,{data:{title:"hdr_err_form",content:"err_contact_form",flagConfirm:!1}})}}),this.gtm.formSubmit("Zg\u0142aszanie spraw")}else this.validateAllFormFields(this.contactForm),this.dialog.open(F,{data:{title:"hdr_err_form",content:"msg_info_req_all",flagConfirm:!1}})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=M({type:o,selectors:[["app-contact-form"]],decls:27,vars:17,consts:[[1,"bg-white","expansion-panel","p-0",3,"opened","closed","expanded"],[1,"m-0","ps-3"],[1,"mt-4",3,"formGroup"],[1,"bg-white","expansion-panel","p-0"],[1,"row","contact-details-box"],[1,"col-12","mb-2"],[1,"col-12","col-sm-6"],[3,"innerHTML"],[1,"mt-4",3,"ngSubmit","formGroup"],[1,"row","w-100","d-flex","flex-wrap","justify-content-start","align-items-center","mb-1"],[1,"col-12","col-sm-5","mb-3","ps-1"],["for","contact_form_name_input"],[1,"col-sm-7","px-0","px-md-3"],["appearance","outline",1,"w-100","mt-1","text-left","p-0"],["transloco","lbl_contact_form_name"],["id","contact_form_name_input","formControlName","contactName","matInput",""],["for","contact_form_email_input"],["transloco","lbl_contact_form_email"],["id","contact_form_email_input","formControlName","email","matInput","","type","email",3,"blur"],[1,"row","w-100","d-flex","flex-wrap","justify-content-start","align-items-center","mb-4"],[1,"col-12","col-sm-5","mb-3","mb-md-0","ps-1"],["for","phone"],["id","phone","formControlName","phone",1,"appPhoneInput",3,"placeholder","maxlength","isRequired","isFormSubmitted"],["for","contact_form_subject_input"],["transloco","lbl_contact_form_subject"],["id","contact_form_subject_input","formControlName","subject","matInput",""],["for","contact_form_ticket_nr_input"],["transloco","contact_form_ticket_nr"],["id","contact_form_ticket_nr_input","formControlName","ticketNumber","matInput","","pattern","^[0-9]{8,9}$"],["for","contact_form_type_select"],["id","contact_form_type_select","formControlName","caseType"],[3,"value"],["for","contact_form_description_textarea"],["id","contact_form_description_textarea","formControlName","description","matInput","","rows","5"],[1,"row","w-100","p-0"],[1,"col-12","d-flex","flex-row","flex-wrap","justify-content-between","ps-md-1","pe-md-3","px-0"],["type","button",1,"btn","btn-sm","btn-prim-out","mx-0","col-12","col-md-3",3,"click"],["type","submit",1,"btn","btn-sm","btn-succ","mx-0","col-12","col-md-3"]],template:function(e,u){e&1&&(n(0,"mat-accordion")(1,"mat-expansion-panel",0),h("opened",function(){return u.collapseStateInfo=!0})("closed",function(){return u.collapseStateInfo=!1}),n(2,"mat-expansion-panel-header",1)(3,"mat-panel-title")(4,"h3"),m(5),a(6,"transloco"),t()()(),b(7,Ve,78,41,"form",2),t(),n(8,"mat-expansion-panel",3)(9,"mat-expansion-panel-header",1)(10,"mat-panel-title")(11,"h3"),m(12),a(13,"transloco"),t()()(),n(14,"div")(15,"div",4)(16,"div",5)(17,"h3"),m(18),a(19,"transloco"),t()(),n(20,"div",6),c(21,"p",7),a(22,"transloco"),t(),n(23,"div",6),c(24,"p",7),a(25,"transloco"),t()(),c(26,"br"),t()()()),e&2&&(i(),f("expanded",u.collapseStateInfo),i(4),p(l(6,7,"lbl_contact_form")),i(2),x(u.contactForm?7:-1),i(5),p(l(13,9,"lbl_cont_sale_app")),i(6),p(l(19,11,"lbl_cont_sale_app_intro")),i(3),f("innerHTML",l(22,13,"lbl_cont_sale_app_info_1"),g),i(3),f("innerHTML",l(25,15,"lbl_cont_sale_app_info_2"),g))},dependencies:[k,N,le,ne,Y,ee,te,re,ae,oe,ie,de,se,ce,pe,_e,ue,Se,he,fe,ve,X,K,Q,Z,J,T],styles:["[_nghost-%COMP%] .appPhoneInput input{background-color:#fff}.contact-details-box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:10px}.contact-details-box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:20px}"]})};var ye=class o{document=_(j);metaTagsService=_(U);isPlatformBrowser=H(_(D));route=_(G);cdr=_(E);scrollService=_(ge);constructor(){let r=z.siteEndPoint+"/assets/images/articles/kontakt.webp";this.metaTagsService.setMetaTags(r)}
1ngAfterViewInit(){this.isPlatformBrowser&&this.route.snapshot.queryParamMap.get("form")==="newsletter"&&this.scrollToForm()}async scrollToForm(){await this.scrollService.scrollToElementByIdWhenAvailable("newsletterFormBox",{focus:null,maxRetries:15,retryDelayMs:100}),this.cdr.detectChanges()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=M({type:o,selectors:[["app-customer-service-and-contact"]],decls:18,vars:10,consts:[["header","","transloco","lbl_menu3_contact"],[1,"p-3"],[1,"mb-3","pb-3","w-100"],["ngSrc","assets/images/articles/kontakt.webp","width","870","height","417","alt","kontakt Sindbad","loading","lazy",1,"img-fluid"],[3,"innerHTML"],["id","newsletterFormBox",1,"pt-10"],[1,"mt-2",3,"viewWithSidemenu"],[1,"p-3","pt-1","mt-3"],[1,"p-3","pt-0","mt-0"],["keyList","faq_json_contact","keyTitle","hdr_faq"]],template:function(e,u){e&1&&(n(0,"app-template-page-pattern1"),c(1,"h1",0),n(2,"div",1)(3,"div",2),c(4,"img",3),t(),c(5,"div",4),a(6,"transloco"),t(),n(7,"div",1),c(8,"div",4),a(9,"transloco"),t(),c(10,"app-contact-form"),n(11,"div",5),c(12,"app-newsletter",6),t(),n(13,"div",7),c(14,"div",4),a(15,"transloco"),t(),n(16,"div",8),c(17,"app-article-faq",9),t()()),e&2&&(i(5),f("innerHTML",l(6,4,"txt_contact_info"),g),i(3),f("innerHTML",l(9,6,"txt_contact_company"),g),i(4),f("viewWithSidemenu",!0),i(2),f("innerHTML",l(15,8,"txt_contact_seo_1"),g))},dependencies:[O,k,N,$,B,Fe,me,T],encapsulation:2})};export{ye as CustomerServiceAndContactComponent};
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.