PageSourceSearch

https://ticketing.heracles.nl/chunk-GTROAOPK.js

js heracles.nl collected 2026-10-02 11:26:43 UTC 8,954 bytes, 1 lines download raw bytes

1import{a as di}from"./chunk-U37ZII7T.js";import{b as pi,d as mi}from"./chunk-LLCDT2AR.js";import{$b as _,Be as ei,Cf as si,Df as li,Ff as ci,G as B,Ga as F,Gb as K,Ha as L,Ia as g,If as ui,K as b,L as x,Le as ti,Me as ni,Oe as ai,Qf as vi,Rd as E,Te as T,Wb as G,Xd as A,Yb as R,Zb as H,_ as D,af as oi,ba as d,bb as C,dd as V,ed as k,fd as z,gd as P,ha as c,hd as J,hf as ri,ie as Q,ja as M,k as w,ka as U,ne as X,pc as j,ra as S,re as Y,rh as hi,sa as y,vd as W,wa as v,we as Z,xa as p,ya as m,yd as q,ye as $,za as f,ze as ii,zf as N}from"./chunk-NHVDVYS6.js";import"./chunk-27WATYC3.js";function yi(r,o){if(r&1&&(p(0,"div"),f(1,"img",15),m()),r&2){let s=g(2);d(),v("src",s.fileHelper.getResizedImageUrl(s.currentInitiative.LogoImageUrl,150,150),D)}}function Ci(r,o){if(r&1&&(p(0,"div",10),f(1,"img",15),m()),r&2){let s=g(2);d(),v("src",s.fileHelper.getResizedImageUrl(s.currentInitiative.LogoImageUrl,150,150),D)}}function Ti(r,o){if(r&1){let s=F();p(0,"div",3)(1,"div",4)(2,"div",5),S(3,yi,2,1,"div"),m(),p(4,"div",6)(5,"div",7)(6,"div"),f(7,"app-format-translation",8),m()()()(),p(8,"div",9),S(9,Ci,2,1,"div",10),p(10,"div",11)(11,"div"),f(12,"app-format-translation",8),m()()(),p(13,"div",12)(14,"app-tabbed-event-list",13),L("buyTickets",function(e){b(s);let t=g();return x(t.buyTickets(e.categoryId,e.ev))})("buyPP",function(e){b(s);let t=g();return x(t.buyPassePartouts(e))}),m()(),p(15,"div",14),f(16,"app-format-translation",8),m()()}if(r&2){let s=g();d(3),y(s.currentInitiative.LogoImageUrl?3:-1),d(4),v("translationKey",C(s.currentInitiative.IntroText)),d(2),y(s.currentInitiative.LogoImageUrl?9:-1),d(3),v("translationKey",C(s.currentInitiative.IntroText)),d(2),v("saleCategories",s.currentInitiative.TabbedEvents)("salesPeriods",s.salesPeriods)("lightBackgroun
1d",!0),d(2),v("translationKey",C(s.currentInitiative.DescriptionText))}}var O=(()=>{let o=class o{constructor(i,e,t,n,a,l,u,h,I,gi,Ii){this.layoutService=i,this.router=e,this.confirmService=t,this.loader=n,this.initiativeService=a,this.saleFlowHelper=l,this.route=u,this.deepLinkService=h,this.fileHelper=I,this.shoppingCartService=gi,this.contextService=Ii,this.activeInitiativeKey="ai",this.activeInitiativeStyleKey="ai_style",this.cachedDeeplinksKey="dli",this.eventSelectionDataKey="eventSelectionData",this.currentInitiative=null,this.translationCodeSalesPeriodTab="SALES-PERIOD.DEFAULT.TABNAME"}ngOnInit(){let i=sessionStorage.getItem(this.activeInitiativeKey),e=this.shoppingCartService.hasShoppingCart,t=e?this.shoppingCartService.getPendingOrderDetails().InitiativeGuid:null;i!==null&&e&&t!==i?this.confirmPendingOrderOutsideInitiative():this.initializeInitiative()}confirmPendingOrderOutsideInitiative(){setTimeout(()=>{this.confirmService.confirm({message:"INITIATIVE.CART-NOT-FROM-INITIATIVE"}).subscribe(i=>{if(!i)this.shoppingCartService.cancelOrder(!1).subscribe(e=>{this.initializeInitiative()});else{let e=sessionStorage.getItem(this.activeInitiativeKey),n=this.shoppingCartService.hasShoppingCart?this.shoppingCartService.getPendingOrderDetails().InitiativeGuid:null;n!==null?(sessionStorage.setItem(this.activeInitiativeKey,n),this.initiativeService.getStyling(n).subscribe(a=>{sessionStorage.setItem(this.activeInitiativeStyleKey,JSON.stringify(a)),this.router.navigateByUrl(T.for("shopping-cart.index"))})):(this.clearInitiativeData(),this.router.navigateByUrl(T.for("shopping-cart.index")))}})},0)}initializeInitiative(){let i=sessionStorage.getItem(this.activeInitiativeKey),e=JSON.parse(sessionStorage.getItem(this.cachedDeeplinksKey)||"[]"),t=(this.route.snapshot.paramMap.get("name")||"").toLowerCase(),n=e.find(l=>l.Slug.toLowerCase()===t),a=e.find(l=>l.InitiativeGuid===i);if(!i)n?this.startInitiative(n):t?this.findDeepLink(t):this.router.navigateByUrl("");else if(n)n.InitiativeGuid===i?this.startInitiative(n):a?this.confirmInitiativeChoice(a,n):this.findDeepLink(t);else if(t)this.findDeepLink(t);else{let l={Custom:null,DeepLinkId:null,DeepLinkType:A.Initiative,InitiativeId:null,InitiativeName:null,InitiativeTitle:null,Slug:null,Type:"initiative",InitiativeGuid:i,SalesChannelId:-1,RedirectUrl:null};this.startInitiative(l)}}findDeepLink(i){let e=this.loader.open("landingPage@findDeepLink");this.deepLinkService.getDeepLinkWithSalesChannel("initiatief",i,"SHOP-R",null,!1).subscribe(t=>{if(t===null||t.DeepLinkType!==A.Initiative){this.loader.close(e),setTimeout(()=>{this.confirmService.confirm({message:"INITIATIVE.NOT_FOUND",okonly:!0}).subscribe(u=>{this.router.navigateByUrl("")})},0);return}let n=t,a=JSON.parse(sessionStorage.getItem(this.cachedDeeplinksKey)||"[]");a.find(u=>u.InitiativeGuid===n.InitiativeGuid)||(a.push(n),sessionStorage.setItem(this.cachedDeeplinksKey,JSON.stringify(a)));let l=sessionStorage.getItem(this.activeInitiativeKey);if(l&&l!==n.InitiativeGuid){let u=a.find(h=>h.InitiativeGuid===l);this.confirmInitiativeChoice(u,n)}else sessionStorage.removeItem(this.eventSelectionDataKey),this.startInitiative(n);this.loader.close(e)})}confirmInitiativeChoice(i,e){setTimeout(()=>{this.confirmService.confirm({title:"",message:"INITIATIVE.SWITCH-BETWEEN",params:{oldInitiative:i?i.InitiativeName:"[...]",newInitiative:e?e.InitiativeName:"[...]"}}).subscribe(t=>{if(!t){this.startInitiative(i);return}sessionStorage.removeItem(this.eventSelectionDataKey),this.startInitiative(e)})})}startInitiative(i){let e=this.shoppingCartService.hasShoppingCart,t=e?this.shoppingCartService.getPendingOrderDetails().InitiativeGuid:null;if(e&&i.InitiativeGuid!==t){this.confirmPendingOrderOutsideInitiative();return}let n=this.loader.open("landingPage@startInitiative");sessionStorage.setItem(this.activeInitiativeKey,i.InitiativeGuid),this.layoutService.updateLayout(new P(i.InitiativeTitle,!1));let a=this.initiativeService.getStyling(i.InitiativeGuid,!1),l=this.initiativeService.getDetails(i.InitiativeGuid,!1);w([a,l]).subscribe(u=>{let[h,I]=u;h!==null&&(sessionStorage.setItem("ai_style",JSON.stringify(h)),this.layoutService.updateBackgroun
1d()),i.InitiativeTitle===null&&this.layoutService.updateLayout(new P(I.Title,!1)),this.currentInitiative=I,this.groupSalesPeriods(this.currentInitiative.TabbedSalesPeriods),this.loader.close(n)})}groupSalesPeriods(i){let e=[];for(let t of i){let n=t.ShopTabName||this.translationCodeSalesPeriodTab,a=e.find(l=>l.ShopTabName===n);a===void 0&&(a={ShopTabName:n,Items:[]},e.push(a)),a.Items.push(t)}this.salesPeriods=e}clearInitiativeData(){this.contextService.clearInitiativeData()}routeToDashboard(){this.shoppingCartService.hasShoppingCart?this.confirmService.confirm({message:"INITIATIVE.LEAVE.CANCEL-SHOPPING-CART.MESSAGE"}).subscribe(i=>{i&&(this.clearInitiativeData(),this.shoppingCartService.cancelOrder(),this.router.navigateByUrl(""))}):(this.clearInitiativeData(),this.router.navigateByUrl(""))}openExternalUrl(i,e=!0,t=!0){let n=e?"_blank":"_self",a=window.open(i,n);t&&a.focus()}buyTickets(i,e){if(e.ButtonData.ActionType===E.ExternalLink){this.openExternalUrl(e.ButtonData.Action,e.ButtonData.OpenInNewTab);return}let t=this.loader.open("buytickets@landing-page");this.saleFlowHelper.startNewEventFlow(i,e,this.currentInitiative.Guid).subscribe(n=>{this.loader.close(t)})}buyPassePartouts(i){if(i.ButtonData.ActionType===E.ExternalLink){this.openExternalUrl(i.ButtonData.Action,i.ButtonData.OpenInNewTab);return}if(i.PurchaseRightAvailableAfterLogin){this.router.navigateByUrl(T.for("account.login"));return}this.saleFlowHelper.startNewPassePartoutFlow(i.Id,this.currentInitiative.Guid)}};o.\u0275fac=function(e){return new(e||o)(c(J),c(H),c($),c(Y),c(q),c(oi),c(G),c(W),c(ei),c(ii),c(Q))},o.\u0275cmp=M({type:o,selectors:[["app-landing-page"]],standalone:!1,decls:4,vars:2,consts:[["backText","INITIATIVE.LEAVE",3,"onBack","forceShowBacklink"],[1,"content"],[1,"initiative-content"],[2,"clear","both"],["fxHide.gt-sm",""],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","row",1,"ql-content"],["fxFlex",""],[3,"translationKey"],["fxLayout","row","fxHide","","fxShow.gt-sm",""],["fxFlex","200px"],["fxFlex","","fxFlex",""],[2,"margin-top","25px"],[3,"buyTickets","buyPP","saleCategories","salesPeriods","lightBackgroun
1d"],[1,"ql-content",2,"padding-top","40px"],[2,"float","left","margin","0 10px 10px 0",3,"src"]],template:function(e,t){e&1&&(p(0,"app-title-bar",0),L("onBack",function(){return t.routeToDashboard()}),m(),p(1,"div",1)(2,"div",2),S(3,Ti,17,11,"div",3),m()()),e&2&&(v("forceShowBacklink",!0),d(3),y(t.currentInitiative!==null?3:-1))},dependencies:[ri,Z,vi,ai,ni,ti,X],encapsulation:2});let r=o;return r})();var fi=[{path:":name",component:O,data:{},canActivate:[N]},{path:"",component:O,pathMatch:"full",canActivate:[N]},{path:"**",redirectTo:"/system/404"}];var le=(()=>{let o=class o{};o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=U({type:o}),o.\u0275inj=B({providers:[{provide:R,useFactory:i=>fi,multi:!0,deps:[z]}],imports:[K,V,hi,k,j,mi,si,di,li,ci,pi,ui,k,_.forChild([]),_]});let r=o;return r})();export{le as InitiativesModule};

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.