PageSourceSearch

https://www.zwolsetheaters.nl/assets/js/components/favorites.f9d.js

js zwolsetheaters.nl collected 2026-09-24 20:47:07 UTC 4,929 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkfrontend"]=self["webpackChunkfrontend"]||[]).push([[3908],{5030:function(e,t,i){i.d(t,{A:function(){return r}});var o=i(9726),s=i(6125);class a{constructor(){(0,s.A)(this,"addFavoriteApiUrl",""),(0,s.A)(this,"deleteFavoriteApiUrl",""),(0,s.A)(this,"cookieFavoritesEditTokenKey",""),(0,s.A)(this,"favoritesEditToken","")}}let n;const r=()=>(n=n||(0,o.Kh)(new a),{...(0,o.QW)(n),appState:n})},9234:function(e,t,i){var o=i(6125),s=i(9726),a=i(8557),n=i(5030);class r{constructor(){(0,o.A)(this,"loading",!1),(0,o.A)(this,"error",""),(0,o.A)(this,"addedFavorites",[]),(0,o.A)(this,"deletedFavorites",[])}}let l;const d=()=>{const{getCookie:e,localhost:t,setCookie:i,to:o}=(0,a.Gv)(),{api:d}=(0,a.jC)(),{appState:c}=(0,n.A)(),v=async e=>{l.loading=!0;const[i,s]=await o(d.post(t?"AddFavorite":c.addFavoriteApiUrl,{id:e,editToken:p()}));return l.error=s,i&&(c.favoritesEditToken=i.editToken),m(),!s},u=async e=>{l.loading=!0;const[i,s]=await o(d.post(t?"DeleteFavorite":c.deleteFavoriteApiUrl,{id:e,editToken:p()}));return l.error=s,i&&(c.favoritesEditToken=i.editToken),m(),!s},m=()=>{c.cookieFavoritesEditTokenKey&&c.favoritesEditToken&&i(c.cookieFavoritesEditTokenKey,c.favoritesEditToken)},p=()=>c.favoritesEditToken||e(c.cookieFavoritesEditTokenKey);return l=l||(0,s.Kh)(new r),{favoritesState:l,addFavorite:v,deleteFavorite:u}};i.d(t,["r",0,d])},6918:function(e,t,i){i.d(t,{u:function(){return r}});var o=i(6125),s=(i(3725),i(1339),i(6401)),a=i(8557);class n{constructor(e=null){(0,o.A)(this,"value",""),(0,o.A)(this,"backgroundColor",""),(0,s.A)(e)||(0,a.Gv)().mergeExistingProps(this,{...e})}}class r extends a.xu{constructor(e=null){super(e),(0,o.A)(this,"id",""),(0,o.A)(this,"isFavorite",!1),(0,o.A)(this,"title",""),(0,o.A)(this,"subtitle",""),(0,o.A)(this,"date",""),(0,o.A)(this,"time",""),(0,o.A)(this,"location",""),(0,o.A)(this,"label",new n),(0,o.A)(this,"tags",[]),(0,o.A)(this,"image",new a.Fe),(0,o.A)(this,"link",new a.aW),(0,o.A)(this,"backgroundColor",""),(0,s.A)(e)||(0,a.Gv)().mergeExistingProps(this,{...e,label:e.label&&new n(e.label),tags:e.tags?e.tags.map(e=>new a.aW(e)):[],image:e.image&&new a.Fe(e.image),link:e.link&&new a.aW(e.link)})}}},9649:function(e,t,i){i.r(t),i.d(t,{default:function(){return h}});i(3725),i(5019),i(9229);var o=i(9726);function s(e,t,i,s,a,n){const r=(0,o.g2)("Production"),l=(0,o.g2)("BaseTextElement"),d=(0,o.g2)("BaseComponent");return(0,o.uX)(),(0,o.Wv)(d,{class:(0,o.C4)([e.$style["favorites-block"]]),model:e.baseModel,module:[e.module,[e.$style,"favorites-block"]],container:"default",index:e.index,"is-nested":e.isNested,"in-viewport-animation":e.inViewportAnimation,"is-component":e.isComponent,"prev-component":e.prevComponent,"next-component":e.nextComponent},{default:(0,o.k6)(()=>[(0,o.bF)(o.F,{name:"list",tag:"div"},{default:(0,o.k6)(()=>[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.baseModel.items,(t,i)=>(0,o.bo)(((0,o.uX)(),(0,o.Wv)(r,{key:i,item:t,variant:"list-item-separated",showFavoriteToggle:!1,"show-favorite-delete":e.baseModel.canEdit,class:(0,o.C4)([e.$style["favorites-block__item"],{[e.$style["is--visible"]]:!e.baseModel.canEdit||t.isFavorite}])},null,8,["item","show-favorite-delete","class"])),[[o.aG,!e.baseModel.canEdit||t.isFavorite]])),128)),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.favoritesState.addedFavorites.filter(t=>!e.baseModel.items.some(e=>e.id==t.id)),(t,i)=>(0,o.bo)(((0,o.uX)(),(0,o.Wv)(r,{key:i+"_added",item:t,variant:"list-item-separated",showFavoriteToggle:!1,"show-favorite-delete":e.baseModel.canEdit,class:(0,o.C4)([e.$style["favorites-block__item"],{[e.$style["is--visible"]]:e.baseModel.canEdit&&t.isFavorite}])},null,8,["item","show-favorite-delete","class"])),[[o.aG,e.baseModel.canEdit]])),128))]),_:1}),(0,o.bo)((0,o.bF)(l,{text:e.baseModel.noItemsLabel},null,8,["text"]),[[o.aG,e.baseModel.canEdit?!e.baseModel.items.filter(e=>e.isFavorite).length&&!e.favoritesState.addedFavorites.length:!e.baseModel.items.length]])]),_:1},8,["class","model","module","index","is-nested","in-viewport-animation","is-component","prev-component","next-component"])}var a=i(8557),n=i(6125),r=(i(1339),i(6401)),l=i(6918);class d extends a.xu{constructor(e=null,t=!1){super(e),(0,n.A)(this,"canEdit",!1),(0,n.A)(this,"noItemsLabel",""),(0,n.A)(this,"items",[]),(0,r.A)(e)||(0,a.Gv)().mergeExistingProps(this,{...e,items:e.items?e.items.map(e=>new l.u(e)):[]}),t&&(0,a.Gv)().debugComponent("related-content",e,this)}}var c=i(9234),v=(0,o.pM)({mixins:[a.yY],props:{...a.yY.props,model:{type:Object,required:!0}},setup(e){const{favoritesState:t}=(0,c.r)();return{baseModel:(0,o.KR)(new d(e.model,e.debug)),favoritesState:t}},components:{BaseTextElement:a.dG}}),u={"favorites-block":"favorites-block__eb72ed","favorites-block__item":"favorites-block__item__bf56ec","is--visible":"is--visible__cd4f04"},m=i(6262);const p={};
1p["$style"]=u;const b=(0,m.A)(v,[["render",s],["__cssModules",p]]);var h=b}}]);

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.