PageSourceSearch

https://www.fmk.dk/_nuxt/djmIJMZt2.js

js fmk.dk collected 2026-10-02 10:36:19 UTC 4,212 bytes, 1 lines download raw bytes

1import{C as e,D as a,E as l,Gt as t,J as o,Lt as r,N as s,T as i,Tt as m,Y as n,_ as d,hn as c,it as u,st as f,w as y}from"./B8XHxhss.js";import{Bt as p,N as h,S as b,w as g,wt as v}from"#entry";import{t as N}from"./8NFB1AUW.js";import{t as B}from"./C0yzBpb7.js";import{t as k}from"./t6hXlDA4.js";import{t as A}from"./CLmJicuo2.js";import{t as x}from"./CAmmZBws2.js";import{t as _}from"./BIQT4_vT.js";var j=b("PostListItem"),w={class:"d-post-list"},L={key:0,class:"rounded-lg border border-medium overflow-hidden my-md"},S={key:1,class:"overflow-hidden"},O=["innerHTML"],z={key:0,class:"flex >=960:justify-between 960:flex-row flex-col gap-xs mx-auto mt-2xl"},T={class:"text-medium text-body-md-regular"},V=Object.assign({inheritAttrs:!1},{__name:"PostList",props:{id:[String,Number],content:String,image:Object,title:String,teaser:String,items:Array,name:String,header:Object,contentElements:Array,settings:Object,search:Object,feedback:{type:Object,default:void 0},hideFeedback:{type:Boolean,default:!1}},setup(b){N();const V=b,C=v(),H=r(null),I=r(x(V.search,{populate:C.query})),M=r(null);function E(){M.value&&M.value?.closeAll(),n(()=>{H.value?.submit()})}function U(){window.scrollTo({top:0,behavior:"smooth"})}const G=e(()=>{const e=new Date(I.value.fieldByName.month.value),a=I.value.fieldByName.year.value,l=e.toLocaleString("da",{month:"long"}).toLowerCase();return(l||"")+", "+a});return(e,r)=>{const n=A,v=B,N=j,x=k,V=_,C=h;return u(),a("article",w,[s(C,{name:"list-page-layout","block-list":b.contentElements},{afterHeader:m(()=>[t(I)?(u(),i(v,{key:0,role:"search",action:t(I).endpointUrl,method:t(I).method,class:"mt-lg w-12/12col mx-auto >=960:flex 960:gap-3xs grid >=656:grid-cols-3 656:gap-md gap-lg",onSubmit:r[6]||(r[6]=p(()=>{},["prevent"]))},{default:m(()=>[t(I).fieldByName.year?(u(),i(n,{key:0,modelValue:t(I).fieldByName.year.value,"onUpdate:modelValue":r[0]||(r[0]=e=>t(I).fieldByName.year.value=e),name:t(I).fieldByName.year.name,placeholder:t(I).fieldByName.year.placeholder,color:"surface",label:t(I).fieldByName.year.label,items:t(I).fieldByName.year.items,onChange:r[1]||(r[1]=e=>E())},null,8,["modelValue","name","placeholder","label","items"])):l("",!0),t(I).fieldByName.month?(u(),i(n,{key:1,modelValue:t(I).fieldByName.month.value,"onUpdate:modelValue":r[2]||(r[2]=e=>t(I).fieldByName.month.value=e),name:t(I).fieldByName.month.name,placeholder:t(I).fieldByName.month.placeholder,color:"surface",label:t(I).fieldByName.month.label,items:t(I).fieldByName.month.items,onChange:r[3]||(r[3]=e=>E())},null,8,["modelValue","name","placeholder","label","items"])):l("",!0),t(I).fieldByName.directorArea?(u(),i(n,{key:2,modelValue:t(I).fieldByName.directorArea.value,"onUpdate:modelValue":r[4]||(r[4]=e=>t(I).fieldByName.directorArea.value=e),name:t(I).fieldByName.directorArea.name,placeholder:t(I).fieldByName.directorArea.placeholder,color:"surface",label:t(I).fieldByName.directorArea.label,items:t(I).fieldByName.directorArea.items,onChange:r[5]||(r[5]=e=>E())},null,8,["modelValue","name","placeholder","label","items"])):l("",!0)]),_:1},8,["action","method"])):l("",!0)]),default:m(()=>[s(V,{ref_key:"searchManager",ref:H,class:"mt-beforeBlocks mb-afterBlocks","search-filters":t(I),"result-noun":{singular:("localize"in e?e.localize:t(g))("MAIL"),plural:("localize"in e?e.localize:t(g))("MAILS")}},{default:m(({data:e})=>[s(x,{ref_key:"postAccordion",ref:M,elements:e,class:"w-full"},{panel:m(({item:e})=>[e.items?(u(),a("ul",L,[(u(!0),a(d,null,f(e.items,(a,l)=>(u(),i(N,o({key:a.key,ref_for:!0},{...a},{class:{"border-b-0":l===e.items.length-1}}),null,16,["class"]))),128))])):(u(),a("div",S,[y("p",{class:"my-md",innerHTML:e.message},null,8,O)]))]),_:1},8,["elements"])]),footer:m(({data:o,state:r})=>[r.hasFetchedOnce&&o?.length?(u(),a("div",z,[y("p",T,c(("localize"in e?e.localize:t(g))("PHRASE_MAIL_LIST_CURRENTLY_SHOWING",{capitalize:!0,populate:[t(G)]})),1),y("button",{class:"h-fit w-fit text-body-md-strong text-interactive hover:text-interactiveHover active:text-interactiveActive",onClick:U},c(("localize"in e?e.localize:t(g))("GO_TO_TOP",{capitalize:!0})),1)])):l("",!0)]),_:1},8,["search-filters","result-noun"])]),_:1},8,["block-list"])])}}});
1export{V 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.