1import{a as me}from"./chunk-6NXLYGBJ.js";import{c as ce,d as de}from"./chunk-IHQRRUNB.js";import{k as ae,wa as le}from"./chunk-IPGYUTJN.js";import"./chunk-ULJV3DCW.js";import{fa as oe,la as se,m as te,p as ie,r as ne,t as re}from"./chunk-USRAOEBW.js";import{A as G,B as W}from"./chunk-64DIT5X4.js";import{b as q}from"./chunk-I42NZW4Y.js";import{Ea as Y,Ja as ee,d as Q,e as d}from"./chunk-BUUTWPG4.js";import{a as R}from"./chunk-YKCGA2DE.js";import{$ as v,$a as V,$c as k,Ab as z,Ca as l,Cc as K,Db as D,Dc as X,Fc as Z,Ha as N,Ia as x,Jb as I,Na as j,Pc as $,Sb as A,T as g,Va as O,Vb as U,W as P,Xa as S,Ya as B,_,_a as F,ab as c,bb as n,cb as i,db as C,ea as E,hb as b,ic as J,jb as M,kb as w,pa as T,tc as H,ub as L,wa as y,ya as a,yb as o,zb as u}from"./chunk-K5J7UZ3Z.js";import"./chunk-WCABR6TI.js";function ge(t,m){t&1&&(n(0,"div",3),C(1,"mat-spinner"),i())}function _e(t,m){if(t&1&&(n(0,"div",8)(1,"div",13),o(2),i(),n(3,"div",14)(4,"mat-icon",15),o(5,"place"),i(),n(6,"span",11),o(7),i()(),n(8,"div",14)(9,"mat-icon",15),o(10,"phone"),i(),n(11,"a",16),o(12),i()(),n(13,"div",14)(14,"mat-icon",15),o(15,"email"),i(),n(16,"a",16),o(17),i()()()),t&2){let e=m.$implicit;a(2),u(e==null?null:e.name),a(5),D("",e==null||e.address==null?null:e.address.street,", ",e==null||e.address==null?null:e.address.zip," ",e==null||e.address==null?null:e.address.city,", ",e==null||e.address==null?null:e.address.country),a(4),c("href",I("tel:",e==null?null:e.tel),y),a(),u(e==null?null:e.tel),a(4),c("href",I("mailto:",e==null?null:e.emeil),y),a(),u(e==null?null:e.email)}}function ve(t,m){t&1&&(n(0,"div",8)(1,"span",11),o(2,"Kein Reiseb\xFCro gefunden"),i()())}function xe(t,m){if(t&1){let e=b();n(0,"mat-icon",17),M("click",function(){_(e);let s=w(2);return v(s.previous())}),o(1,"keyboard_arrow_left"),i()}}function Ce(t,m){if(t&1){let e=b();n(0,"mat-icon",17),M("click",function(){_(e);let s=w(2);return v(s.next())}),o(1,"keyboard_arrow_right"),i()}}function be(t,m){if(t&1&&(F(0,_e,18,11,"div",8,B,!1,ve,3,0,"div",8),A(3,"slice"),n(4,"div",9)(5,"span",10),o(6),i(),n(7,"span",11),o(8),i(),j(9,xe,2,0,"mat-icon",12)(10,Ce,2,0,"mat-icon",12),i()),t&2){let e=w();V(U(3,5,e.list,e.skip,e.limit)),a(6),u((e.list!=null&&e.list.length?e.skip+1:0)+" - "+((e.list==null?null:e.list.length)>e.limit?e.limit:e.list==null?null:e.list.length)),a(2),z("von ",e.list==null?null:e.list.length),a(),c("ngIf",e.skip>0),a(),c("ngIf",(e.list==null?null:e.list.length)>e.limit)}}var fe=(()=>{class t{officeService;cdr;mediaObserver;metaService;guardService;platformId;media_token;offices;isBrowser=!1;mobile=!1;allOffices=[];list=[];searchName="";limit=50;skip=0;desRef=P(E);loading=!0;currentpartner;desktopTemplate="xl";constructor(e,r,s,p,h,f,he){this.officeService=e,this.cdr=r,this.mediaObserver=s,this.metaService=p,this.guardService=h,this.platformId=f,this.media_token=he,this.isBrowser=Z(this.platformId),this.desktopTemplate=this.media_token,this.mobile=this.media_token==="xs"}ngOnInit(){this.isBrowser&&this.initMedia(),this.setNoIndex()}ngAfterViewInit(){this.isBrowser&&this.initPartner()}setNoIndex(){this.metaService.updateTag({name:"robots",content:"noindex"})}async initPartner(){this.guardService.getPartner$.pipe(R(this.desRef)).subscribe(e=>{e?.partnerid?.length>0&&(this.currentpartner=e,this.cdr.detectChanges(),this.getOffices())})}async initMedia(){this.mediaObserver.isMatched(d.XSmall)&&(this.desktopTemplate="xs",this.mobile=!0),this.mediaObserver.isMatched(d.Small)&&(this.desktopTemplate="sm",this.mobile=!0),this.mediaObserver.isMatched(d.Medium)&&(this.desktopTemplate="md",this.mobile=!0),this.mediaObserver.isMatched(d.Large)&&(this.desktopTemplate="lg",this.mobile=!1),this.mediaObserver.isMatched(d.XLarge)&&(this.desktopTemplate="xl",this.mobile=!1),this.cdr.detectChanges()}async getOffices(){this.loading=!0,this.officeService.request({partnerid:this.currentpartner?.partnerid},"getOffices").pipe(R(this.desRef)).subscribe(e=>{this.offices=e,this.allOffices=JSON.parse(JSON.stringify(this.offices?.offices||[])),this.filterByName(this.searchName),this.loading=!1,this.cdr.detectChanges()})}filterByName(e){this.searchName=e||"";let r=this.searchName.trim().toLowerCase();this.list=r?this.allOffices.filter(s=>{let p=String(s?.name||"").toLowerCase(),h=String(s?.address?.city||"").toLowerCase(),f=String(s?.address?.zip||"").toLowerCase();return p.includes(r)||h.includes(r)||f.startsWith(r)}):[...this.allOffices],this.skip=0,this.limit=Math.min(50,this.list.length),this.cdr.detectChanges()}async previous(){this.skip=this.skip-50,this.limit=this.limit-(this.limit%50>0?this.limit%50:50)}async next(){this.limit+50<this.list?.length?(this.skip=this.skip+50,this.limit=this.limit+50):(this.skip=this.skip+50,this.limit=this.list?.length)}static \u0275fac=function(r){return new(r||t)(l(me),l(J),l(Q),l($),l(ee),l(T),l(q,8))};static \u0275cmp=N({type:t,selectors:[["clever-reisebuero"]],standalone:!1,decls:14,vars:3,consts:[["searchInput",""],[1,"reisebuero-page"],[1,"addlist"],[1,"loading"],[1,"searchwrp"],["appearance","outline",1,"w100"],["matPrefix","",1,"searchico"],["matInput","","type","text",3,"input","value"],[1,"infodivlist"],[1,"cc1"],["multilang","",1,"cc2"],["multilang",""],["class","clicable",3,"click",4,"ngIf"],[1,"infoname","mb1rem"],[1,"infowrp","mb1rem"],[1,"infoico"],["multilang","",3,"href"],[1,"clicable",3,"click"]],template:function(r,s){if(r&1){let p=b();C(0,"app-header"),n(1,"div",1)(2,"div",2),O(3,ge,2,0,"div",3),n(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),o(7,"Name / Ort / PLZ"),i(),n(8,"mat-icon",6),o(9,"search"),i(),n(10,"input",7,0),M("input",function(){_(p);let f=L(11);return v(s.filterByName(f.value))}),i()()(),O(12,be,11,9),i()(),C(13,"footer")}r&2&&(a(3),S(s.loading?3:-1),a(7),c("value",s.searchName),a(2),S(s.loading?-1:12))},dependencies:[H,re,ne,te,ie,Y,oe,ce,ae,K],styles:[`.reisebuero-page[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative}.w100[_ngcontent-%COMP%]{width:100%}.loading[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;padding:2rem 0}.searchwrp[_ngcontent-%COMP%]{display:flex;width:100%;max-width:1280px;margin-top:1rem}.searchico[_ngcontent-%COMP%]{margin-right:.5rem}.infodivlist[_ngcontent-%COMP%]{width:100%;max-width:100%;padding:1rem;background:#fff;margin-top:1rem;border:solid 1px #d9d9d9}.addlist[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;align-items:center;max-width:1280px}
1.infoname[_ngcontent-%COMP%]{font-size:1.2rem}.infowrp[_ngcontent-%COMP%]{display:flex;align-items:center}.infoico[_ngcontent-%COMP%]{width:unset;height:unset;font-size:1rem;margin-right:.5rem}.mb1rem[_ngcontent-%COMP%]{margin-bottom:.5rem}.cc1[_ngcontent-%COMP%]{display:flex;padding:.5rem;align-items:center;width:100%;margin-top:1rem;max-width:100%}.cc2[_ngcontent-%COMP%]{margin:0 4px 0 0} 2/*# sourceMappingURL=reisebuero.component-IJZBC47O.css.map */`]})}return t})();var Me=[{path:"",component:fe}],ue=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=x({type:t});static \u0275inj=g({imports:[k.forChild(Me),k]})}return t})();var Ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=x({type:t});static \u0275inj=g({imports:[X,G,W,ue,se,de,le]})}return t})();export{Ye as ReisebueroModule}; 3//# sourceMappingURL=chunk-AUEECREK.js.map
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.