PageSourceSearch

https://fdm.dk/_nuxt/BQc8SJTZ.js

js fdm.dk collected 2026-09-24 09:50:38 UTC 4,917 bytes, 1 lines download raw bytes

1import{_ as Y,a as z}from"./D1HnfcPB.js";import{i as q,d as T,o as s,h as f,n as _,u as n,s as p,w as h,q as d,a as r,t as v,c as i,f as l,_ as L,Q as U,R as E,an as G,B as Q,I as P,Y as W,F as X,r as Z,x as A,g as C}from"./iDxzLRBQ.js";import{_ as H}from"./WbFWEQ5b.js";import{_ as J,f as K}from"./jYScw2s2.js";import{_ as ee}from"./BxpQhRlz.js";import{_ as te,a as se,b as ne}from"./CLPaZcyL.js";import{_ as oe}from"./vMv6vvx_.js";import{_ as ae}from"./iSNYbkfv.js";import{u as ie}from"./BBw4jlRd.js";import{u as ce}from"./0y0spoEP.js";const re=q("grid content-start",{variants:{fixedRows:{default:"",1:"grid-rows-[auto_auto_2rem]",2:"grid-rows-[auto_auto_2rem_2rem]"}},defaultVariants:{fixedRows:"default"}}),le={class:"typo-heading-md pt-3 text-electric-blue-160"},me=T({__name:"MyVehicleCard",props:{icon:{},plateNumber:{},title:{},inspectionDate:{default:void 0},roadAssistance:{type:Boolean,default:!1},fixedRows:{default:void 0},buttonText:{default:void 0},class:{default:null}},setup(e){const m=e;return(a,c)=>{const b=H,y=J,g=L,w=ee;return s(),f(w,{class:_(("cn"in a?a.cn:n(p))("theme-use theme-neutral min-h-[22.5rem] gap-3 p-0 pb-3",m.class)),"header-class":"px-5 pt-5","main-class":"flex-auto flex items-end px-5","footer-class":"overflow-hidden px-5 py-4 md:py-5"},{header:h(()=>[e.icon?(s(),f(b,{key:0,icon:e.icon,size:"xl",class:"bg-electric-blue-100 text-white","aria-hidden":"true"},null,8,["icon"])):l("",!0)]),default:h(()=>[d("div",{class:_(("cn"in a?a.cn:n(p))(n(re)({fixedRows:m.fixedRows})))},[r(y,{"plate-number":e.plateNumber},null,8,["plate-number"]),d("h3",le,v(e.title),1),e.inspectionDate?(s(),i("p",{key:0,class:_(("cn"in a?a.cn:n(p))("typo-body-cond h-8 pt-2"))}," Næste synsdato: "+v(e.inspectionDate),3)):l("",!0),e.roadAssistance?(s(),i("div",{key:1,class:_(("cn"in a?a.cn:n(p))("typo-body-cond flex h-8 items-center pt-2"))},[r(g,{name:"material-symbols:check",class:"mr-2 size-5 rounded-3xl bg-wise-green-75 p-0.5 text-white","aria-hidden":"true"}),c[0]||(c[0]=d("p",null,"Vejhjælp inkluderet",-1))],2)):l("",!0)],2)]),_:1},8,["class"])}}}),ue=Object.assign(me,{__name:"CombinationsMyVehicleCard"}),de={class:"my-block col-full grid grid-cols-subgrid overflow-x-clip"},_e={class:"mb-5 flex flex-col justify-between space-y-5 lg:mb-10 lg:flex-row lg:items-end lg:space-y-0"},pe={class:"space-y-5 lg:w-1/2"},fe={key:0,class:"typo-heading-xl"},he={key:1,class:"typo-body-cond"},ye={class:"flex flex-row items-start lg:items-center lg:justify-between"},ge={key:1},xe={key:1,class:"col-content"},ve=T({__name:"BlocksMemberMyVehicles",props:{title:{},description:{},callToAction:{default:void 0},emptyStateMessage:{}},async setup(e){let m,a;const c=e,b=U(),{memberNumber:y}=E(b),{data:g}=([m,a]=G(()=>ie("/api/user/vehicles",{key:`user-vehicles-${y.value}`,query:{id:y.value}},"$TyghVwaeXW")),m=await m,a(),m),w=t=>{switch(t){case"Personbiler":return"custom:car";case"Motorcykler":return"custom:insurance-motorcycle";default:return"custom:car"}},V=t=>{if(!t)return"";const x=t.replace(/\s/g,"").toUpperCase(),o=x.match(/^([A-Z]{2})(\d{2})(\d{3})$/);return o?`${o[1]} ${o[2]} ${o[3]}`:x},u=C(()=>g.value?.length?g.value.map(t=>({id:t.vehicleId,plateNumber:V(t.registrationNumber??""),title:K(t),inspectionDate:t.nextInspectionDate?ce(t.nextInspectionDate,"D. MMM YYYY"):void 0,roadAssistance:!1,icon:w(t.vehicleType)})):[]),$=C(()=>{if(!u.value)return;const t=u.value.some(o=>o.inspectionDate||o.roadAssistance);if(u.value.some(o=>o.inspectionDate&&o.roadAssistance))return 2;if(t)return 1}),k=C(()=>c.emptyStateMessage?.title?{media:c.emptyStateMessage?.media,title:c.emptyStateMessage?.title,description:c.emptyStateMessage?.description,callToAction:c.emptyStateMessage?.callToAction}:null);return(t,x)=>{const o=Y,D=z,N=Q,B=ue,R=se,S=te,I=oe,j=ne,O=ae;return s(),i("section",de,[n(u)?.length?(s(),f(j,{key:0,class:"col-content space-y-4 md:space-y-10"},{default:h(({canScroll:F})=>[d("div",null,[d("div",_e,[d("div",pe,[e.title?(s(),i("h2",fe,v(e.title),1)):l("",!0),e.description?(s(),i("p",he,v(e.description),1)):l("",!0)]),d("div",ye,[F?(s(),i("div",{key:0,class:_(["hidden lg:flex lg:items-start lg:gap-3",e.callToAction&&"lg:mr-5"])},[r(o),r(D)],2)):l("",!0),e.callToAction?(s(),i("div",ge,[r(N,P(W(e.callToAction)),null,16)])):l("",!0)])]),r(S,null,{default:h(()=>[(s(!0),i(X,null,Z(n(u),M=>(s(),f(R,{key:M?.id,class:_(("cn"in t?t.cn:n(p))("min-h-[22.5rem] max-w-[18.75rem] basis-full md:max-w-[21.25rem]",n(u)?.length>1?"md:max-w-none md:basis-1/2 lg:max-w-[21.25rem]":"",n(u)?.length>2?"lg:basis-1/3 xl:basis-1/4":""))},{default:h(()=>[r(B,A({ref_for:!0},M,{"fixed-rows":n($),class:"h-full"}),null,16,["fixed-rows"])]),_:2},1032,["class"]))),128))]),_:1})]),r(I,{class:"theme-use-accent-reverse lg:hidden"})]),_:1})):(s(),i("div",xe,[n(k)?(s(),f(O,P(A({key:0},n(k))),null,16)):l("",!0)]))])}}}),De=Object.assign(ve,{__name:"BlocksMemberMyVehicles"});export{De 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.