PageSourceSearch

https://www.maxizoo.ie/_nuxt3/BTo501iO.js

js maxizoo.ie collected 2026-10-04 11:30:51 UTC 5,081 bytes, 1 lines download raw bytes

1import{b as w,z as I,f as T,d as B,c as P,y as L,q as F,m as R}from"./DFiTElg1.js";import{_ as D}from"./YLQA3O5f.js";import{o as e,c as n,w as s,b as u,h as c,a0 as M,a1 as O,q as m,t as _,i as l,k as h,d as x}from"./CcC3R_JF.js";import{g as v}from"./DVOziIE7.js";import"./eHZaG105.js";import"./BL7E8cRT.js";import"./T23rhKyf.js";const z=x({props:{items:{type:Array,default:()=>[]},buttonText:{type:String,default:""},isOpen:{type:Boolean},showLoadButton:{type:Boolean}},emits:["displayMore"],methods:{handleClick(){this.$emit("displayMore")}}}),S={class:"collapse-button-wrapper"},j={key:0,class:"collapse-button collapse-button--vertical"};function H(t,a,g,k,$,i){const r=B,d=T,f=D,y=I,b=P,o=L;return e(),n(o,null,{default:s(()=>[u(y,{class:"grid-item--flex",columns:"12",static:""},{default:s(()=>[(e(!0),c(M,null,O(t.items,(p,C)=>(e(),n(f,{key:C,href:p.url,image:p.thumbnail},{default:s(()=>[u(d,{type:"h3",size:"h4"},{default:s(()=>[m(_(p.contentHeadline)+" ",1),p.newPage?(e(),n(r,{key:0,"new-item":"",class:"drp-new-tag"},{default:s(()=>[m(_(t.$t("dynamicRelatedPost.newFlag")),1)]),_:1})):l("",!0),p.tipPage?(e(),n(r,{key:1,"new-item":"",class:"drp-tip-tag"},{default:s(()=>[m(_(t.$t("dynamicRelatedPost.tipFlag")),1)]),_:1})):l("",!0)]),_:2},1024)]),_:2},1032,["href","image"]))),128))]),_:1}),t.showLoadButton?(e(),n(b,{key:0,"no-arrow":"",class:"drp-collapse",onClick:t.handleClick},{default:s(()=>[u(d,{class:"drp-button-label",type:"span",size:"h4"},{default:s(()=>[m(_(t.buttonText)+" ",1),h("span",S,[t.isOpen?l("",!0):(e(),c("span",j)),a[0]||(a[0]=h("span",{class:"collapse-button collapse-button--horizontal"},null,-1))])]),_:1})]),_:1},8,["onClick"])):l("",!0)]),_:1})}const N=Object.assign(w(z,[["render",H],["__scopeId","data-v-a4d28d63"]]),{__name:"FnDynamicRelatedPostsCards"}),V=x({props:{items:{type:Array,default:()=>[]},buttonText:{type:String,default:""},isOpen:{type:Boolean},showLoadButton:{type:Boolean}},emits:["displayMore"],methods:{generateLinkId(t){return v(t)},displayMore(){this.$emit("displayMore")}}}),q=["innerHTML"],A={key:0,class:"drp-item drp-item--full"},E={class:"collapse-button-wrapper"},U={key:0,class:"collapse-button collapse-button--vertical"};function G(t,a,g,k,$,i){const r=B,d=P,f=F,y=I,b=L;return e(),n(b,null,{default:s(()=>[u(y,{class:"grid-item--flex",columns:"12",static:""},{default:s(()=>[u(f,{unstyled:"",class:"drp-items"},{default:s(()=>[(e(!0),c(M,null,O(t.items,(o,p)=>(e(),c("li",{key:p,class:"drp-item"},[u(d,{id:t.generateLinkId(o.url),"pre-arrow":"",href:o.url?o.url:void 0,to:o.url?void 0:o.url},{default:s(()=>[h("span",{innerHTML:o.contentHeadline},null,8,q),o.newPage?(e(),n(r,{key:0,"new-item":"",class:"drp-tag drp-tag--new"},{default:s(()=>[m(_(t.$t("dynamicRelatedPost.newFlag")),1)]),_:1})):l("",!0),o.tipPage?(e(),n(r,{key:1,"new-item":"",class:"drp-tag drp-tag--tip"},{default:s(()=>[m(_(t.$t("dynamicRelatedPost.tipFlag")),1)]),_:1})):l("",!0)]),_:2},1032,["id","href","to"])]))),128)),t.showLoadButton?(e(),c("li",A,[u(d,{"pre-arrow":"",onClick:t.displayMore},{default:s(()=>[h("span",null,_(t.buttonText),1),h("span",E,[t.isOpen?l("",!0):(e(),c("span",U)),a[0]||(a[0]=h("span",{class:"collapse-button collapse-button--horizontal"},null,-1))])]),_:1},8,["onClick"])])):l("",!0)]),_:1})]),_:1})]),_:1})}const J=Object.assign(w(V,[["render",G],["__scopeId","data-v-c0c41cfd"]]),{__name:"FnDynamicRelatedPostsList"}),K={props:{data:{type:Object,default:()=>({})}},data:()=>({items:[],prunedItems:[],allItems:[],isOpen:!1}),computed:{buttonText(){return this.isOpen?this.$t("dynamicRelatedPost.showLess"):this.$t("dynamicRelatedPost.showMore")},showLoadButton(){return this.allItems>this.prunedItems}},async created(){try{const t=await this.$api.page.getPagesByTags(this.data.tag_data?.key);this.initialSetup(t)}catch(t){this.$log.error("Error while loading pages by tags.",t)}},methods:{initialSetup(t){this.allItems=t.data,this.prunedItems=this.pruneItems(),this.items=this.setItems()},setItems(){return this.prunedItems.length?this.prunedItems:this.allItems},pruneItems(){return this.allItems&&this.allItems.length&&this.data.max_entries_displayed?this.allItems.slice(0,this.data.max_entries_displayed):[]},displayMore(){this.items?.length===this.prunedItems?.length?(this.items=this.allItems,this.isOpen=!0):(this.items=this.prunedItems,this.isOpen=!1)}}};function Q(t,a,g,k,$,i){const r=N,d=J,f=R;return t.items.length?(e(),n(f,{key:0},{default:s(()=>[g.data.display_type==="tileFormat"?(e(),n(r,{key:0,items:t.items,"button-text":i.buttonText,"is-open":t.isOpen,"show-load-button":i.showLoadButton,onDisplayMore:a[0]||(a[0]=y=>i.displayMore())},null,8,["items","button-text","is-open","show-load-button"])):g.data.display_type==="listingFormat"?(e(),n(d,{key:1,items:t.items,"button-text":i.buttonText,"is-open":t.isOpen,"show-load-button":i.showLoadButton,onDisplayMore:a[
11]||(a[1]=y=>i.displayMore())},null,8,["items","button-text","is-open","show-load-button"])):l("",!0)]),_:1})):l("",!0)}const nt=Object.assign(w(K,[["render",Q]]),{__name:"FnCmsDynamicRelatedPosts"});export{nt as default};

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.