PageSourceSearch

https://www.leankursus.dk/_next/static/chunks/489-6b80f991358a8e8c.js

js leankursus.dk collected 2026-10-07 08:55:31 UTC 12,875 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[489],{2489:function(e,t,s){s.d(t,{Z:function(){return k}});var l=s(5893),r=s(7294),a=s(6010),i=s(1583),n=s(2750),o=s(6056),c=s(1664),d=s.n(c),x=s(5921),p=s(2754),h=s(9826),m=s(4981),f=s(1575),u=s(7956);function g(e){let{courseTitle:t,courseSlug:s,coursePrice:r,courseRating:i,numberOfDays:n,courseLocation:o,gradientStartColor:c,badgeImg:g,courseFeatures:b=[],twoForOne:j=!1,twoForOneBadge:v}=e;return(0,l.jsx)("li",{className:"course-card-slide relative border-[1px] border-black bg-white-nonVisible pb-5 transition-shadow duration-150 hover:shadow-elevation-medium",children:(0,l.jsx)("article",{className:"h-full",children:(0,l.jsxs)(d(),{href:"/course/".concat(s),className:"flex min-h-full flex-col",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,l.jsx)("div",{style:{"--tw-gradient-from":c,"--tw-gradient-stops":"var(--tw-gradient-from), color-mix(in srgb, var(--tw-gradient-from) 65%, black)"},className:(0,a.Z)("relative flex h-[160px] items-center justify-end overflow-hidden","before:clip-wave before:absolute before:left-0 before:top-0 before:z-10 before:h-full before:w-full before:bg-gradient-to-r before:content-['']"),children:(0,l.jsx)("div",{className:"relative z-20 mr-4 h-[124px] w-full",children:"svg"===g.format?(0,l.jsx)("img",{src:g.url,alt:g.alt||"Badge",className:"h-full w-full object-contain",style:{objectPosition:"right"}}):(0,l.jsx)(x.E,{data:g.responsiveImage,layout:"fill",objectFit:"contain",objectPosition:"right"})})}),(0,l.jsx)("div",{className:"flex flex-1 flex-col justify-between px-4",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"font-poppins text-xl font-semibold text-black",children:t.split(/\\n|\n/).map((e,s)=>(0,l.jsxs)("span",{children:[e,s<t.split(/\\n|\n/).length-1&&(0,l.jsx)("br",{})]},s))}),(0,l.jsx)("div",{className:"relative mt-4 border-t-[1px] border-t-[#0C405A]",children:(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("p",{className:"-ml-[2px] mt-3 font-poppins text-xl font-semibold text-black",children:["DKK ",(0,f.tF)(r)]}),(0,l.jsx)("p",{className:"font-poppins text-xs text-primary",children:"Ekskl. Moms"})]}),j&&v&&(0,l.jsx)("div",{className:"absolute -right-0 -top-4 h-20 w-20 rotate-[15deg]",children:(0,l.jsx)(x.E,{data:v,layout:"responsive"})})]})}),b.length>0&&(0,l.jsx)("ul",{className:"mt-3 flex flex-col gap-1 border-t-[1px] border-t-[#0C405A] pt-3",children:b.map(e=>(0,l.jsxs)("li",{className:"flex items-start gap-1.5",children:[e.isIncluded?(0,l.jsx)(p,{className:"h-5 w-5 shrink-0 text-primary",strokeWidth:3.5}):(0,l.jsx)("div",{className:"h-5 w-5 shrink-0"}),(0,l.jsx)("span",{className:(0,a.Z)("font-poppins font-semibold text-xs uppercase leading-tight",e.isIncluded?"text-black ":"text-gray-400"),children:e.name})]},e.id))})]})})]}),(0,l.jsx)(u.Z,{size:10}),(0,l.jsxs)("div",{className:"mx-4 mt-auto border-t-[1px] border-t-[#0C405A] pt-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,l.jsx)(h,{className:"h-5 w-5 shrink-0"}),(0,l.jsxs)("p",{className:"font-poppins text-xs  uppercase text-black",children:[n," ",n>1?"Dage":"Dag"]})]}),(0,l.jsxs)("div",{className:"mt-2 flex items-center gap-2.5",children:[(0,l.jsx)(m,{className:"h-5 w-5 shrink-0"}),(0,l.jsx)("p",{className:"break-words font-poppins text-xs uppercase text-black",children:o})]}),(0,l.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,l.jsx)("button",{onClick:e=>{e.preventDefault(),window.location.href="/course/".concat(s)},className:"flex-1 rounded bg-primary py-2 text-center font-poppins text-xs font-semibold uppercase text-white transition-colors hover:bg-primary/90",children:"Se kursus"}),(0,l.jsx)("button",{onClick:e=>{e.preventDefault(),window.location.href="/course/".concat(s)},className:"flex-1 rounded border-[1px] border-primary bg-white py-2 text-center font-poppins text-xs font-semibold uppercase text-primary transition-colors hover:bg-gray-50",children:"Datoer"})]})]})]})})})}function b(e){let{courses:t,twoForOneBadge:s}=e,[c,d]=(0,i.Z)({containScroll:"keepSnaps",slidesToScroll:"auto"}),[x,p]=(0,r.useState)(!0),[h,m]=(0,r.useState)(!0),f=(0,r.useCallback)(()=>{d&&d.scrollPrev()},[d]),u=(0,r.useCallback)(()=>{d&&d.scrollNext()},[d]),b=(0,r.useCallback)(e=>{p(!e.canScrollPrev()),m(!e.canScrollNext())},[]);return(0,r.useEffect)(()=>{d&&(b(d),d.on("reInit",b),d.on("select",b))},[d,b]),(0,l.jsxs)("div",{className:"relative min-w-0",children:[(0,l.jsx)("div",{className:"overflow-hidden",ref:c,children:(0,l.jsx)("ul",{className:"flex min-w-0 gap-8 pb-8",children:t.map(e=>(0,l.jsx)(g,{courseTitle:e.displayTitle||e.title,courseSlug:e.slug,coursePrice:e.price,courseRating:e.rating,numberOfDays:e.numberOfDays,courseLocation:e.location,gradientStartColor:e.gradientStartColor.hex,badgeImg
1:e.cardSpecificBadge,courseFeatures:e.courseFeature||[],twoForOne:e.twoForOne,twoForOneBadge:s},e.id))})}),(0,l.jsx)("button",{onClick:f,disabled:x,"aria-label":"Forrige kurser",className:"absolute left-0 top-[45%] z-20 flex h-11 w-11 items-center justify-center sm:-left-8",children:(0,l.jsx)(n,{className:(0,a.Z)("h-8 w-8",{"text-black":!x,"text-neutral-400":x}),strokeWidth:2,"aria-hidden":"true",focusable:"false"})}),(0,l.jsx)("button",{onClick:u,disabled:h,"aria-label":"N\xe6ste kurser",className:"absolute right-0 top-[45%] z-20 flex h-11 w-11 items-center justify-center sm:-right-8",children:(0,l.jsx)(o,{className:(0,a.Z)("h-8 w-8",{"text-black":!h,"text-neutral-400":h}),strokeWidth:2,"aria-hidden":"true",focusable:"false"})})]})}var j=s(6668);function v(e){let{courseTitle:t,courseSlug:s,coursePrice:r,courseRating:i,numberOfDays:n,courseLocation:o,gradientStartColor:c,badgeImg:g,courseFeatures:b=[],twoForOne:v=!1,twoForOneBadge:w}=e;return(0,l.jsxs)("li",{className:"col-span-1 border-[1px] border-black pb-5 transition-shadow duration-300 hover:shadow-elevation-high relative",children:[v&&w&&(0,l.jsx)("div",{className:"absolute -top-8 -right-8 z-30 w-24 h-24",children:(0,l.jsx)(x.E,{data:w,layout:"responsive"})}),(0,l.jsx)("article",{className:"h-full",children:(0,l.jsxs)(d(),{href:"/course/".concat(s),className:"flex min-h-full flex-col",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex justify-between gap-2 bg-primary px-4 py-1",children:[(0,l.jsx)("p",{className:"uppercase text-white",children:"Fremm\xf8de"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(j,{className:"h-4 w-4 text-white"}),(0,l.jsx)("p",{className:"text-white",children:i})]})]}),(0,l.jsx)("div",{style:{"--tw-gradient-from":c,"--tw-gradient-stops":"var(--tw-gradient-from), color-mix(in srgb, var(--tw-gradient-from) 65%, black)"},className:(0,a.Z)("relative flex h-[210px] items-center justify-end overflow-hidden","before:clip-wave before:absolute before:left-0 before:top-0 before:z-10 before:h-full before:w-full before:bg-gradient-to-r before:content-['']"),children:(0,l.jsx)("div",{className:"relative z-20 mr-4 h-[160px] w-[160px] ",children:(0,l.jsx)(x.E,{data:g,layout:"fill",className:"rounded-full"})})}),(0,l.jsxs)("div",{className:"mt-3 flex flex-1 flex-col justify-between px-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-poppins text-base font-bold uppercase text-primary",children:"Kursus"}),(0,l.jsx)("h3",{className:"mt-3 font-inter text-3xl font-bold text-black",children:t.split(/\\n|\n/).map((e,s)=>(0,l.jsxs)("span",{children:[e,s<t.split(/\\n|\n/).length-1&&(0,l.jsx)("br",{})]},s))}),b.length>0&&(0,l.jsx)("ul",{className:"mt-4 flex flex-col gap-2",children:b.map(e=>(0,l.jsxs)("li",{className:"flex items-start gap-2",children:[e.isIncluded?(0,l.jsx)(p,{className:"h-5 w-5 shrink-0 mt-0.5 text-black",strokeWidth:3.5}):(0,l.jsx)("div",{className:"h-5 w-5 shrink-0 mt-0.5"}),(0,l.jsx)("span",{className:(0,a.Z)("font-poppins text-sm uppercase",e.isIncluded?"text-black font-semibold":"text-gray-400"),children:e.name})]},e.id))})]}),(0,l.jsx)("div",{className:"relative",children:(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("p",{className:"-ml-[2px] mt-7 font-inter text-3xl font-light text-black",children:["DKK"," ",(0,l.jsx)("span",{className:"font-semibold",children:(0,f.tF)(r)})]}),(0,l.jsx)("p",{className:"font-poppins text-sm text-primary",children:"Ekskl. Moms"})]}),v&&w&&(0,l.jsx)("div",{className:"absolute -right-6 top-4 h-28 w-28 rotate-[10deg]",children:(0,l.jsx)(x.E,{data:w,layout:"responsive"})})]})})]})]}),(0,l.jsx)(u.Z,{size:24}),(0,l.jsxs)("div",{className:"mx-4 mt-auto border-t-[1px] border-t-[#0C405A] pt-5",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,l.jsx)(h,{className:"h-5 w-5"}),(0,l.jsxs)("p",{className:"font-poppins text-xs font-semibold uppercase text-black",children:[n," ",n>1?"Dage":"Dag"]})]}),(0,l.jsxs)("div",{className:"mt-2 flex items-center gap-2.5",children:[(0,l.jsx)(m,{className:"h-5 w-5"}),(0,l.jsx)("p",{className:"font-poppins text-xs font-semibold uppercase text-black",children:o})]}),(0,l.jsxs)("div",{className:"mt-4 flex gap-3",children:[(0,l.jsx)("button",{onClick:e=>{e.preventDefault(),window.location.href="/course/".concat(s)},className:"flex-1 rounded bg-primary py-3 text-center font-poppins text-sm font-semibold uppercase text-white transition-colors hover:bg-primary/90",children:"Se kursus"}),(0,l.jsx)("button",{onClick:e=>{e.preventDefault(),window.location.href="/course/".concat(s)},className:"flex-1 rounded border-[1px] border-primary bg-white py-3 text-center font-poppins text-sm font-semibold uppercase text-primary transition-colors hover:bg-gray-50",children:"Datoer"})]})]})]})})]})}
1function w(e){let{courses:t,twoForOneBadge:s}=e;return(0,l.jsx)("ul",{className:"grid grid-cols-auto-fill-min-300 gap-8 lg:gap-5",children:t.map(e=>(0,l.jsx)(v,{courseTitle:e.title,courseSlug:e.slug,coursePrice:e.price,courseRating:e.rating,numberOfDays:e.numberOfDays,courseLocation:e.location,gradientStartColor:e.gradientStartColor.hex,badgeImg:e.cardSpecificBadge.responsiveImage,courseFeatures:e.courseFeature||[],twoForOne:e.twoForOne,twoForOneBadge:s},e.id))})}var N=s(2465);function k(e){let{heading:t,isShowHeading:s,courses:r,variant:a="grid",twoForOneBadge:i}=e;return(0,l.jsx)(N.Z,{headingText:t,isShowHeading:s,children:(()=>{switch(a){case"carousel":return(0,l.jsx)(b,{courses:r,twoForOneBadge:i});case"grid":return(0,l.jsx)(w,{courses:r,twoForOneBadge:i});default:throw Error("Unrecognized CourseCardsCollection Variant: ".concat(a,". Expected: carousel, grid"))}})()})}},2465:function(e,t,s){s.d(t,{Z:function(){return n}});var l=s(5893),r=s(7294),a=s(6010),i=s(7956);function n(e){let{headingLevel:t=2,headingText:s,isShowHeading:n=!0,gap:o="24",sectionClassName:c,headingClassName:d="font-poppins text-fluid-28-to-36  text-black",children:x,...p}=e,h=r.useId();if("number"!=typeof t||t<1||t>6)throw Error("Unrecognized heading Level: ".concat(t));let m=!!s;return(0,l.jsxs)("section",{"aria-labelledby":m?h:void 0,className:c,...p,children:[(0,l.jsx)(l.Fragment,{children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h".concat(t),{id:h,className:(0,a.Z)(d,{"sr-only":!n}),children:s}),n?(0,l.jsx)(i.Z,{size:o,axis:"vertical"}):null]}):null}),x]})}},7956:function(e,t,s){s.d(t,{Z:function(){return a}});var l=s(5893),r=s(6010);function a(e){let{size:t,axis:s,when:a={},style:o={},...c}=e,{smAndUp:d,mdAndUp:x,lgAndUp:p,xlAndUp:h,twoXlAndUp:m}=a,f="vertical"===s?1:t,u="horizontal"===s?1:t,g=i(d,s,f),b=n(d,s,u),j=i(x,s,g),v=n(x,s,b),w=i(p,s,j),N=n(p,s,v),k=i(h,s,w),y=n(h,s,N),A=i(m,s,k),U=n(m,s,y);return(0,l.jsx)("span",{style:{"--defaultWidth":f+"px","--defaultHeight":u+"px","--smAndUpWidth":g+"px","--smAndUpHeight":b+"px","--mdAndUpWidth":j+"px","--mdAndUpHeight":v+"px","--lgAndUpWidth":w+"px","--lgAndUpHeight":N+"px","--xlAndUpWidth":k+"px","--xlAndUpHeight":y+"px","--twoXlAndUpWidth":A+"px","--twoXlAndUpHeight":U+"px",...o},className:(0,r.Z)("block","h-[var(--defaultHeight)] min-h-[var(--defaultHeight)] w-[var(--defaultWidth)] min-w-[var(--defaultWidth)]","sm:h-[var(--smAndUpHeight)] sm:min-h-[var(--smAndUpHeight)] sm:w-[var(--smAndUpWidth)] sm:min-w-[var(--smAndUpWidth)]","md:h-[var(--mdAndUpHeight)] md:min-h-[var(--mdAndUpHeight)] md:w-[var(--mdAndUpWidth)] md:min-w-[var(--mdAndUpWidth)]","lg:h-[var(--lgAndUpHeight)] lg:min-h-[var(--lgAndUpHeight)] lg:w-[var(--lgAndUpWidth)] lg:min-w-[var(--lgAndUpWidth)]","xl:h-[var(--xlAndUpHeight)] xl:min-h-[var(--xlAndUpHeight)] xl:w-[var(--xlAndUpWidth)] xl:min-w-[var(--xlAndUpWidth)]","2xl:h-[var(--twoXlAndUpHeight)] 2xl:min-h-[var(--twoXlAndUpHeight)] 2xl:w-[var(--twoXlAndUpWidth)] 2xl:min-w-[var(--twoXlAndUpWidth)]"),...c})}let i=(e,t,s)=>e?"vertical"===t?1:e:s,n=(e,t,s)=>e?"horizontal"===t?1:e:s}}]);

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.