PageSourceSearch

https://nortic.se/_nuxt/DDL687r2.js

js nortic.se collected 2026-10-02 04:05:48 UTC 2,458 bytes, 1 lines download raw bytes

1import I from"./BJbB7qfZ.js";import{_ as A}from"./CYAfaeHR.js";import{d as D,w as f,x as N,y as V,g as _,z as B,l as c,D as n,h as j,E as C,A as P,B as U,J as z,C as h,j as m,k as b,F as E}from"./Cq0hlUt0.js";import{_ as F}from"./BWGh1zHh.js";import{B as J}from"./CwkhEqtG.js";import{u as K}from"./C_PLPB60.js";import{u as O}from"./O66_qtIs.js";import{u as x}from"./CA1NS36I.js";import"./Bc8JoegZ.js";import"./BG5yIfiu.js";import"./DpjrwDRf.js";import"./C4VqsPbj.js";const Q={class:"BlockMoreCases__title"},R={class:"BlockMoreCases__group"},q={class:"BlockMoreCases__case-title"},G=D({__name:"BlockMoreCases",props:{blok:{},excludedStoryUuid:{}},async setup(l){let o,r;const t=l,d=K().value,{getPaginatedStories:k,getIndexStory:w}=O(),{data:p}=([o,r]=f(async()=>x(()=>`BlockMoreCases-cases-${t.blok.tags&&t.blok.tags.length?t.blok.tags.join("_"):"all"}-${d}`,async()=>{let s={};t.blok.tags&&t.blok.tags.length&&(s={tags:{any_in_array:t.blok.tags.join(",")}});const a=await k("LayoutCase",1,3,s);return t.blok.tags?.length&&!a.stories.length?await k("LayoutCase",1,3):a},"$vNxngtCaMI")),o=await o,r(),o),{data:g}=([o,r]=f(async()=>x(`BlockMoreCases-index-${d}`,async()=>await w("LayoutCaseIndex"))),o=await o,r(),o),M=b(()=>{const s=t.blok.cases?.length?t.blok.cases.filter(e=>typeof e!="string"):[];if(s.length>=2)return s.slice(0,2);if(!p.value)return[...s];const a=[...s,...p.value.stories],i=new Map(a.map(e=>[e.uuid,e]));return[...new Set(a.map(e=>e.uuid))].filter(e=>!t.excludedStoryUuid||e!==t.excludedStoryUuid).slice(0,2).map(e=>i.get(e))}),y=b(()=>g.value?{to:`/${g.value.full_slug}`}:null);return(s,a)=>{const i=I,e=A,v=z,$=F,S=V("editable");return N((c(),_(J,{class:"BlockMoreCases"},{default:B(()=>[n("div",null,[n("h2",Q,C(l.blok.title?l.blok.title:s.$t("BlockMoreCases.title")),1),n("div",R,[(c(!0),P(E,null,U(m(M),(u,L)=>(c(),_(v,{key:`case-${L}`,class:"BlockMoreCases__case",to:`/${u.full_slug}`},{default:B(()=>[h(i,{class:"BlockMoreCases__case-image",asset:u.content.heroImage,width:"534",height:"347"},null,8,["asset"]),n("p",q,[n("span",null,C(u.content.title),1),h(e,{class:"BlockMoreCases__case-title-icon",name:"material-symbols:arrow-forward-rounded",size:"1.5rem"})])]),_:2},1032,["to"]))),128))]),m(y)?(c(),_($,{key:0,class:"secondary-white mt-8",label:s.$t("BlockMoreCases.buttonLabel"),link:m(y)},null,8,["label","link"])):j("",!0)])]),_:1})),[[S,l.blok]])}}}),le=Object.assign(G,{__name:"BlockMoreCases"});export{le 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.