1import{_ as a,P as l,D as B,s as C,n as A}from"./app.js";import{S as $}from"./SliderWrapper.js";import"./swiper.js";const v={name:"SoylentRadioActionGrid",components:{PostShortcut:l},props:["element"],computed:{elements(){return this.element?this.element.data.items:[]},postShortcutComponent(){return C.getByName("postShortcutActions",l)}},methods:{getModel:function(e){let t=new B;return t.postType=e.post_type,t.date=e.date,t.title=e.title,t.kicker=e.kicker,t.url=e.url,t.image=e.image,t.excerpt=e.excerpt,t.isAction=!0,t.isAd=e.show_ad_label,t},getLink:function(e){return e?e.url||"#":null}}},x=window.Vue.renderList,R=window.Vue.Fragment,i=window.Vue.openBlock,p=window.Vue.createElementBlock,E=window.Vue.resolveDynamicComponent,N=window.Vue.createBlock,b=window.Vue.createElementVNode,P={class:"action-grid"},D={class:"post-shortcuts -col-3"};function L(e,t,n,u,m,o){return i(),p("div",P,[b("div",D,[(i(!0),p(R,null,x(o.elements,(r,c)=>(i(),N(E(o.postShortcutComponent),{model:o.getModel(r),addActionClass:!0,key:"slider_item_".concat(c)},null,8,["model"]))),128))])])}const M=a(v,[["render",L]]),F={name:"SoylentRadioActionSlider",components:{PostShortcut:l,SliderWrapper:$,SwiperSlide:A},props:["element"],data:function(){return{breakpoints:{320:{slidesPerView:1.25,spaceBetween:16},768:{slidesPerView:3,spaceBetween:16},1200:{slidesPerView:4,spaceBetween:16}}}},computed:{elements(){return this.element?this.element.data.items:[]},postShortcutComponent(){return C.getByName("postShortcutActions",l)}},methods:{getModel:function(e){let t=new B;return t.postType=e.post_type,t.date=e.date,t.title=e.title,t.kicker=e.kicker,t.url=e.url,t.image=e.image,t.excerpt=e.excerpt,t.isAction=!0,t.isAd=e.show_ad_label,t}}},G=window.Vue.renderList,W=window.Vue.Fragment,s=window.Vue.openBlock,_=window.Vue.createElementBlock,z=window.Vue.resolveDynamicComponent,w=window.Vue.createBlock,k=window.Vue.resolveComponent,S=window.Vue.withCtx,T=window.Vue.createVNode,j={class:"action-slider swiper"};function q(e,t,n,u,m,o){const r=k("SwiperSlide"),c=k("SliderWrapper");return s(),_("div",j,[T(c,{breakpoints:e.breakpoints,"show-bullets":!0},{default:S(()=>[(s(!0),_(W,null,G(o.elements,(f,g)=>(s(),w(r,{key:"slider_item_".concat(g)},{default:S(()=>[(s(),w(z(o.postShortcutComponent),{model:o.getModel(f),addActionClass:!0},null,8,["model"]))]),_:2},1024))),128))]),_:1},8,["breakpoints"])])}const H=a(F,[["render",q]]),I={name:"SoylentRadioActions",components:{SoylentRadioActionSlider:H,SoylentRadioActionGrid:M},props:["element"],computed:{layout(){return this.element.data.layout?this.element.data.layout:"grid"},elements(){return this.element?this.element.data.items:[]}}},V=window.Vue.resolveComponent,d=window.Vue.openBlock,h=window.Vue.createBlock,y=window.Vue.createCommentVNode,J=window.Vue.normalizeClass,K=window.Vue.createElementBlock;function O(e,t,n,u,m,o){const r=V("SoylentRadioActionSlider"),c=V("SoylentRadioActionGrid");return d(),K("div",{class:J(["element",n.element.type,"actions"])},[o.layout==="slider"?(d(),h(r,{key:0,element:n.element},null,8,["element"])):y("",!0),o.layout==="grid"?(d(),h(c,{key:1,element:n.element},null,8,["element"])):y("",!0)],2)}const Y=a(I,[["render",O]]);export{Y 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.