1import{a as se,b as me}from"./chunk-APSD6JOP.js";import{a as le}from"./chunk-DFI5I2TN.js";import{a as pe}from"./chunk-FTX25SJI.js";import{b as A}from"./chunk-UMI3KXOC.js";import"./chunk-7ZSQZDKF.js";import{a as ce}from"./chunk-PM5IUTFZ.js";import{a as V}from"./chunk-IESOUUOK.js";import{a as re}from"./chunk-3GDNTEOQ.js";import"./chunk-6Z6Z4YQA.js";import{b as ae,c as ne}from"./chunk-7EJZ4IWA.js";import{p as ee,y as R}from"./chunk-HXWHD2Q6.js";import"./chunk-7QAACZKZ.js";import{b as oe}from"./chunk-PIRQUVUS.js";import"./chunk-N5ZXCTF4.js";import{c as Z,d as w,u as P,v as b}from"./chunk-E3BC3FAP.js";import"./chunk-TZR3YR7X.js";import{e as O,h as S,i as j,l as L,p as te,s as ie,y as _}from"./chunk-AVCMUFTE.js";import{Ab as v,Bb as x,Cb as k,Db as o,Eb as r,Fb as p,Jb as U,Kc as J,Lb as W,Ma as H,Mb as m,Pb as K,Qa as $,Sc as Q,Tc as X,Wa as i,Xb as c,Yb as h,Za as u,Zb as d,cb as C,ib as g,jc as E,la as F,nc as Y,oc as q,qa as y,sb as s,ya as N,yb as f,za as G}from"./chunk-UDRK4HNX.js";var _e=t=>[t];function ye(t,l){if(t&1&&(o(0,"div",6)(1,"div",10),p(2,"fa-icon",11),c(3),r()()),t&2){let e=m();i(2),s("icon",e.faClock)("fixedWidth",!0),i(),d(" ",e.package.duration," Std. ")}}var fe=(()=>{class t{constructor(e){this.messageService=e,this.faClock=w}ngOnInit(){this.messages=this.messageService.getMessages()}static{this.\u0275fac=function(a){return new(a||t)(u(_))}}static{this.\u0275cmp=C({type:t,selectors:[["app-package-tile"]],inputs:{package:"package"},decls:14,vars:11,consts:[[1,"card","border","course-card"],[1,"tile-image",3,"alt","customStyle","src","width","height"],[1,"card-body"],[1,"tile-head"],[1,"tile-headline"],[1,"tile-body"],[1,"row","mt-2"],[1,"mt-2","d-flex","justify-content-end","fw-bold"],[1,"card-footer","footer"],[1,"btn","btn-primary","footer-btn",3,"routerLink"],[1,"col-12"],["aria-hidden","true",1,"text-primary",3,"icon","fixedWidth"]],template:function(a,n){a&1&&(o(0,"div",0),p(1,"app-image",1),o(2,"div",2)(3,"div",3)(4,"div",4),c(5),r()(),o(6,"div",5),g(7,ye,4,3,"div",6),o(8,"div",7)(9,"div"),c(10),r()()()(),o(11,"div",8)(12,"a",9),c(13,"Paket anzeigen"),r()()()),a&2&&(i(),s("alt",n.package.name)("customStyle","wall-image course-image tile-image")("src",n.package.imagePath)("width",450)("height",150),i(4),h(n.package.name),i(2),f(n.package.duration?7:-1),i(3),h(n.package.price),i(2),s("routerLink",E(9,_e,n.package.urlPath)))},dependencies:[re,b,P,L,j],styles:[".footer-btn[_ngcontent-%COMP%]{width:100%;border-top-left-radius:0;border-top-right-radius:0}.footer[_ngcontent-%COMP%]{border:0;padding:0}.tile-image[_ngcontent-%COMP%]{min-height:150px;max-height:500px;transition:max-height .3s;overflow:hidden}.package-card[_ngcontent-%COMP%] .tile-body[_ngcontent-%COMP%]{max-height:400px;visibility:visible;opacity:1}.package-card[_ngcontent-%COMP%]{max-width:500px;border-radius:10px;overflow:hidden;background:#fff;height:270px!important;display:flex;flex-direction:column}.tile-headline[_ngcontent-%COMP%]{font-size:1.1rem;text-align:center;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-body[_ngcontent-%COMP%]{overflow:hidden}"]})}}return t})();function Se(t,l){if(t&1&&p(0,"app-package-tile",6),t&2){let e=l.$implicit;s("package",e)}}var ue=(()=>{class t{constructor(e,a){this.route=e,this.messageService=a}ngOnInit(){this.messages=this.messageService.getMessages(),this.packages=this.route.snapshot.data.packages}static{this.\u0275fac=function(a){return new(a||t)(u(O),u(_))}}static{this.\u0275cmp=C({type:t,selectors:[["app-package-overview"]],decls:9,vars:1,consts:[[1,"container","my-4"],[1,"row","p-2"],[1,"col-12","justify-content-center"],[1,"headline3","text-dark","text-uppercase","text-center"],[1,"separator"],[1,"d-flex","justify-content-center","row"],[1,"package-tile",3,"package"]],template:function(a,n){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),c(4),r(),p(5,"span",4),r()(),o(6,"div",5),x(7,Se,1,1,"app-package-tile",6,v),r()()),a&2&&(i(4),d(" ",n.messages.coursePackagesTitle," "),i(3),k(n.packages))},dependencies:[fe],styles:[".package-tile[_ngcontent-%COMP%]{min-width:200
1px;width:33%;max-width:400px}"]})}}return t})();var ge=(()=>{class t{constructor(e,a){this.courseService=e,this.router=a}resolve(e){return this.courseService.getPackagesList().pipe(V(this.router))}static{this.\u0275fac=function(a){return new(a||t)(y(A),y(S))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ve=(()=>{class t{constructor(e,a){this.courseService=e,this.router=a}resolve(e){let a=oe.getIdFromPath(e.params.urlPath);return this.courseService.getPackageViewData(a).pipe(V(this.router))}static{this.\u0275fac=function(a){return new(a||t)(y(A),y(S))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pe=t=>({"border-bottom":t}),be=t=>[t];function Ie(t,l){if(t&1&&c(0),t&2){let e=l.$implicit;d(" ",e.name," ")}}function Te(t,l){if(t&1&&(o(0,"div",6),p(1,"fa-icon",7),x(2,Ie,1,1,null,null,v),r()),t&2){let e=m().$implicit,a=m();i(),s("icon",a.faGavel)("fixedWidth",!0),i(),k(e.professionalScopes)}}function Ee(t,l){if(t&1&&(p(0,"br"),c(1)),t&2){let e=m().$implicit;i(),d("",e.schedule==null?null:e.schedule.location," ")}}function De(t,l){if(t&1&&(o(0,"div",9)(1,"a",10),c(2),r()()),t&2){let e=m().$implicit,a=m();i(),s("routerLink",E(2,be,e.url)),i(),d(" ",a.messages.showCourse," ")}}function Me(t,l){if(t&1&&(o(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),c(4),r(),x(5,Te,4,2,"div",6,v),o(7,"div"),p(8,"fa-icon",7),c(9),r()(),o(10,"div",8),c(11),g(12,Ee,2,1),r(),g(13,De,3,4,"div",9),r()()),t&2){let e=l.$implicit,a=l.$index,n=m();s("ngClass",E(8,Pe,a!==n.courses.length-1)),i(4),h(e.name),i(),k(e.professionalScopes),i(3),s("icon",n.faClock)("fixedWidth",!0),i(),d(" ",e.duration," "),i(2),d(" ",e.schedule==null?null:e.schedule.date," "),i(),f(e.schedule!=null&&e.schedule.location?12:-1),i(),f(e.url?13:-1)}}var xe=(()=>{class t{constructor(e){this.messageService=e,this.faGavel=R,this.faClock=w,this.messages=e.getMessages()}getDateLocationString(e){return e.schedule.location!=null?e.schedule.date+" - "+e.schedule.location:e.schedule.date}static{this.\u0275fac=function(a){return new(a||t)(u(_))}}static{this.\u0275cmp=C({type:t,selectors:[["app-package-view-small"]],inputs:{courses:"courses"},decls:4,vars:0,consts:[[1,"col-12","list-group","pe-0","card-shadow"],[1,"list-group-item"],[1,"col-12","mb-3","pe-2",3,"ngClass"],[1,"d-flex","row","my-2","flex-md-row","flex-column"],[1,"col-12","col-md-6"],[1,"fw-bold"],[1,"ms-1"],[1,"text-primary",3,"icon","fixedWidth"],[1,"col-12","col-md-3","col-lg-4","font-italic","font-size-small"],[1,"col-12","col-md-3","col-lg-2","text-end"],[1,"btn","btn-block","btn-outline-primary","w-100","nobreak",3,"routerLink"]],template:function(a,n){a&1&&(o(0,"div",0)(1,"div",1),x(2,Me,14,10,"div",2,v),r()()),a&2&&(i(2),k(n.courses))},dependencies:[Q,J,b,P,L,j],encapsulation:2})}}return t})();function Fe(t,l){if(t&1&&p(0,"app-course-tile",1),t&2){let e=l.$implicit;s("packageCourse",e)}}var ke=(()=>{class t{constructor(){}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=C({type:t,selectors:[["app-package-view-normal"]],inputs:{courses:"courses"},decls:3,vars:0,consts:[[1,"row","p-2","d-flex","justify-content-center"],[1,"col-12","col-sm-6","col-lg-4","col-xl-3","mb-4",3,"packageCourse"]],template:function(a,n){a&1&&(o(0,"div",0),x(1,Fe,1,1,"app-course-tile",1,v),r()),a&2&&(i(),k(n.courses))},dependencies:[ce],encapsulation:2})}}return t})();function Oe(t,l){if(t&1&&(p(0,"br"),o(1,"span",21),c(2),r()),t&2){let e=l.$implicit;i(2),d("- ",e.name,"")}}function je(t,l){if(t&1&&(o(0,"li"),c(1),x(2,Oe,3,1,null,null,v),r()),t&2){let e=l.$implicit;i(),d(" ",e.name," "),i(),k(e.category)}}function Le(t,l){if(t&1&&(o(0,"ul"),x(1,je,4,1,"li",null,v),r()),t&2){let e=m(2);i(),k(e.getScopes())}}function Re(t,l){if(t&1&&(p(0,"br"),o(1,"span",21),c(2),r()),t&2){let e=l.$implicit;i(2),d("- ",e.name,"")}}function Ve(t,l){if(t&1&&x(0,Re,3,1,null,null,v),t&2){let e=m(3);k(e.getScopes()[0].category)}}function Ae(t,l){if(t&1&&(c(0),g(1,Ve,2,0)),t&2){let e=m(2);d(" ",e.getScopes()[0].name," "),i(),f(e.getScopes()[0].category?1:-1)}}function Be(t,l){if(t&1&&(o(0,"div",6)(1,"div",19),p(2,"fa-icon",20),o(3,"span"),c(4),r()(),o(5,"div"),g(6,Le,3,0,"ul")(7,Ae,2,2),r()()),t&2){let e=m();i(2),s("icon",e.faGavel)("fixedWidth",!0),i(2),d(" ",e.messages.professionalScopeReno,": "),i(2),f(e.getScopes().length>1?6:-1),i(),f(e.getScopes().length===1?7:-1)}}function $e(t,l){if(t&1&&(o(0,"div",7),p(1,"fa-icon",20),o(2,"span"),c(3),r(),p(4,"span",22),r()),t&2){let e=m();i(),s("icon",e.faClock)("fixedWidth",!0),i(2),d(" ",e.getDurationLabel(),": "),i(),s("innerHTML",e.getDuration(),$)}}function We(t,l){if(t&1&&(o(0,"div",13)(1,"div",23)(2,"h2",16),c(3),r()(),o(4,"div",24)(5,"div",4)(6,"div",17),p(7,"div",22),Y(8,"safeHtml"),r()()()()),t&2){let e=m();i(3),h(e.messages.courseDescription),i(4),s("innerHTML",q(8,2,e.packageData.description),$)}}function ze(t,l){if(t&1){let e=U();o(0,"div",18)(1,"div",25),c(2),o(3,"span",26),c(4),r()(),o(5,"div",27)(6,"button",28),W("click",function(){N(e);let n=m();return G(n.bookPackage(n.packageData.id))}),p(7,"fa-icon",29),c(8," Paket buchen "),r()()()}if(t&2){let e=m();i(2),d(" ",e.packageData.price.formattedPrice," "),i(2),h(e.messages.taxInfo),i(2),K("value",e.packageData.id),i(),s("icon",e.faCartPlus)("fixedWidth",!0)}}function Ne(t,l){if(t&1&&(o(0,"div")(1,"div",30),c(2),r()()),t&2){let e=m();i(2),h(e.messages.notBookable)}}function Ge(t,l){if(t&1&&p(0,"app-package-view-normal",35),t&2){let e=m(2);s("courses",e.packageData.courses)}}function He(t,l){if(t&1&&p(0,"app-package-view-small",35),t&2){let e=m(2);s("courses",e.packageData.courses)}}function Ue(t,l){if(t&1&&(o(0,"div",31)(1,"div",32)(2,"h3",33),c(3),r(),p(4,"span",34),r()(),g(5,Ge,1,1,"app-package-view-normal",35)(6,He,1,1,"app-package-view-small",35)),t&2){let e=m();i(3),d(" ",e.messages.packageCourseOverview," "),i(2),f(e.packageData.viewType==="NORMAL"?5:-1),i(),f(e.packageData.viewType==="SMALL"?6:-1)}}var Ce=(()=>{class t{constructor(e,a,n,T,M,B,he){this.route=e,this.router=a,this.messageService=n,this.cartService=T,this.packageService=M,this.keycloakService=B,this.platformId=he,this.faGavel=R,this.faClock=w,this.faCalendarAlt=Z,this.faCartPlus=ee}ngOnInit(){this.PathEnum=te,this.messages=this.messageService.getMessages(),this.packageData=this.route.
1snapshot.data.package}bookPackage(e){let a={courseId:void 0,packageId:e,priceLevelId:void 0,courseScheduleId:void 0,scopeId:void 0,categoryId:void 0,voucher:void 0,course:void 0,packageData:this.packageData,packageIncluded:!1};this.cartService.addToCart(a,[]).subscribe(n=>{this.rejectedPackage=n}),this.keycloakService.isLoggedIn()||this.packageService.handleAddedPackage(this.packageData)}getDurationLabel(){return this.messages.coursedetailsLabelDurationReno}scroll(){if(!X(this.platformId))return;let n=document.getElementById("booking").getBoundingClientRect().top+window.scrollY+-200;window.scrollTo({top:n,behavior:"smooth"})}getDuration(){return this.packageData.courses.map(e=>e.durationValue).reduce((e,a)=>e+a,0)+" Std."}getScopes(){let e=new Array;this.packageData.courses.forEach(n=>e.push(...n.professionalScopes));let a=new Map;for(let n of e)if(a.has(n.name)){if(n.category&&n.category.length>0){let T=a.get(n.name);for(let M of n.category)T.category.findIndex(B=>B.name===M.name)===-1&&T.category.push(M)}}else a.set(n.name,n);return Array.from(a.values())}static{this.\u0275fac=function(a){return new(a||t)(u(O),u(S),u(_),u(ne),u(ae),u(ie),u(H))}}static{this.\u0275cmp=C({type:t,selectors:[["app-package"]],decls:25,vars:12,consts:[[3,"name","imageName","imagePath"],[1,"container","mt-5","mb-4"],[1,"row","mx-0"],[1,"col-12","position-relative","content-card","bg-white","p-2"],[1,"row"],[1,"col-12","col-sm-8"],[1,"d-flex","col-12","mb-2"],[1,"col-12","mb-2"],[1,"col-12","col-sm-4","d-block","d-sm-flex","align-items-end","flex-column"],[1,"mt-auto"],[1,"text-end","text-large","mb-2"],[1,"mt-auto","btn","btn-primary","float-end",3,"click"],[1,"container","mb-4"],[1,"course-description","row","position-relative","content-card","mt-2","pt-2","pb-2","mb-4","mx-0"],["id","booking",1,"row","position-relative","content-card","mt-2","pt-2","pb-2","mx-0"],[1,"col-12","border-bottom","border-primary","price-header"],[1,"headline3","font-italic"],[1,"col-12"],[1,"row","d-flex","justify-content-between","align-items-center","mt-2"],[1,"me-2"],[1,"text-primary",3,"icon","fixedWidth"],[1,"font-size-tiny"],[3,"innerHTML"],[1,"col-12","border-bottom","border-primary"],["appMoreLess","200",1,"col-12"],[1,"col-12","col-sm-8","col-md-9","col-lg-10","price-text"],[1,"font-size-small"],[1,"col-12","col-sm-4","col-md-3","col-lg-2"],["type","button",1,"btn","btn-primary","w-100",3,"click","value"],[3,"icon","fixedWidth"],[1,"text-center","my-4"],[1,"row","p-2","mt-3"],[1,"col-12","justify-content-center"],[1,"headline3","text-dark","text-uppercase","text-center"],[1,"separator"],[3,"courses"]],template:function(a,n){a&1&&(p(0,"app-stage",0),o(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",4),g(7,Be,8,5,"div",6)(8,$e,5,4,"div",7),r()(),o(9,"div",8)(10,"div",9)(11,"div",10),c(12),r(),o(13,"button",11),W("click",function(){return n.scroll()}),c(14),r()()()()()()(),o(15,"div",12),g(16,We,9,4,"div",13),o(17,"div",14)(18,"div",15)(19,"h2",16),c(20),r()(),o(21,"div",17),g(22,ze,9,5,"div",18)(23,Ne,3,1,"div"),r()(),g(24,Ue,7,3),r()),a&2&&(s("name",n.packageData.name)("imageName",n.packageData.name)("imagePath",n.packageData.imagePath),i(7),f(n.packageData.type==="COURSE"?7:-1),i(),f(n.packageData.type==="COURSE"?8:-1),i(4),d(" ",n.packageData.price.formattedPrice," "),i(2),d(" ",n.messages.selectSchedule," "),i(2),f(n.packageData.description?16:-1),i(4),d(" ",n.messages.coursedetailsLabelPrices," "),i(2),f(n.packageData.available?22:-1),i(),f(n.packageData.available?-1:23),i(),f(n.packageData.type==="COURSE"?24:-1))},dependencies:[b,P,pe,xe,ke,se,me],styles:[".price-text[_ngcontent-%COMP%]{font-weight:600;font-size:larger}"]})}}return t})();var Rt=[{path:"",component:ue,resolve:{packages:ge}},{path:":urlPath",component:Ce,canActivate:[le],resolve:{package:ve},data:{shouldReuse:!1}}];export{Rt as packageRoutes};
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.