1import{j as s}from"./index-ClpuwTcw.js";import{S as d}from"./svgCaret-Cz2cmjNK.js";import o from"./error-card-Cvz9dUUn.js";const i=()=>s.jsxs("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg","data-testid":"apple-icon",children:[s.jsx("path",{d:"M24 45c3 0 1 2 7 2s12-12 12-20-5-14-11-14-6 2-8 2-2-2-8-2S5 19 5 27s6 20 12 20 4-2 7-2Z",strokeWidth:"1.667",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M24 15v-4a4.012 4.012 0 0 0-4-4h-4m13.256 2.836a9 9 0 0 0 7.658-7.656 1.034 1.034 0 0 0-1.17-1.17 9 9 0 0 0-7.656 7.658 1.03 1.03 0 0 0 1.168 1.168Z",strokeWidth:"1.667",strokeLinecap:"round",strokeLinejoin:"round"})]}),l=()=>s.jsxs("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg","data-testid":"car-icon",children:[s.jsx("path",{d:"M39 27c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4ZM7 31H1m10-4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4Zm24 4H15",strokeWidth:"1.667",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M3 31v-7c0-1.656 1.344-3 3-3h3l3.448-6.894A1.997 1.997 0 0 1 14.236 13h16.528c.758 0 1.45.428 1.788 1.106L36 21h8c1.656 0 3 1.344 3 3v5a2 2 0 0 1-2 2h-2m-7-10H9m13-8v8",strokeWidth:"1.667",strokeLinecap:"round",strokeLinejoin:"round"})]}),h=()=>s.jsxs("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg","data-testid":"health-icon",children:[s.jsx("path",{d:"M22.77 14.295a.828.828 0 0 0-.067-1.162.814.814 0 0 0-1.163.067l-1.29 1.448c-.78.78-1.23 1.957-1.23 3.225 0 2.775 2.175 4.95 4.95 4.95 2.775 0 4.95-2.175 4.95-4.95 0-1.268-.45-2.438-1.192-3.18L23.13 9.435a10.488 10.488 0 0 0-7.177-3.862 10.478 10.478 0 0 0-7.83 2.415C5.618 9.96 4.178 12.96 4.178 16.223c0 2.587.952 5.07 2.67 6.975l16.5 19.14a.836.836 0 0 0 .622.285.835.835 0 0 0 .54-.203.821.821 0 0 0 .082-1.162l-16.5-19.14-.007-.008s0-.007-.007-.007a8.727 8.727 0 0 1-2.258-5.88c0-2.753 1.208-5.288 3.338-6.96 1.852-1.56 4.207-2.28 6.63-2.055a8.828 8.828 0 0 1 6.06 3.262c.007.008.007.015.015.015 0 0 0 .008.007.008l4.657 5.325c.473.465.75 1.237.75 2.055 0 1.852-1.447 3.3-3.3 3.3a3.262 3.262 0 0 1-3.3-3.3c0-.818.278-1.59.78-2.093l1.313-1.485Z",strokeWidth:".68"}),s.jsx("path",{d:"M43.77 16.223c0-3.023-1.238-5.888-3.405-7.868-2.153-1.98-4.905-3-7.815-2.88a10.538 10.538 0 0 0-7.38 3.42.82.82 0 0 0 .052 1.163.82.82 0 0 0 1.163-.053c1.612-1.762 3.825-2.782 6.232-2.887 2.453-.113 4.8.765 6.623 2.445 1.822 1.672 2.865 4.095 2.865 6.652 0 2.108-.81 4.26-2.28 6.068L25.8 38.783a.822.822 0 0 0 .63 1.357.821.821 0 0 0 .63-.292l14.025-16.5.008-.008c1.724-2.092 2.677-4.627 2.677-7.117Z",strokeWidth:".68"})]}),x=()=>s.jsxs("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg","data-testid":"house-icon",children:[s.jsx("path",{d:"M37.1 44.144h-7.875c-.963 0-1.75-.787-1.75-1.75v-7a3.51 3.51 0 0 0-3.5-3.5 3.51 3.51 0 0 0-3.5 3.5v7c0 .963-.788 1.75-1.75 1.75H10.85a2.633 2.633 0 0 1-2.625-2.625V25.77c0-.481.394-.875.875-.875s.875.394.875.875v15.75c0 .481.394.875.875.875h7.875v-7c0-2.887 2.362-5.25 5.25-5.25 2.887 0 5.25 2.363 5.25 5.25v7H37.1a.878.878 0 0 0 .875-.875V26.644c0-.481.394-.875.875-.875s.875.394.875.875v14.875a2.633 2.633 0 0 1-2.625 2.625Z"}),s.jsx("path",{d:"M44.1 25.77a.864.864 0 0 1-.613-.263L23.975 6.037 4.463 25.508a.846.846 0 0 1-1.225 0 .846.846 0 0 1 0-1.225L23.363 4.157c.35-.35.918-.35 1.224 0l20.125 20.125c.35.35.35.875 0 1.225a.864.864 0 0 1-.612.262Z"})]});function v(e){const a=()=>{var r;return(r=e.productNameInclBreaks)!=null&&r.trim()?e.productNameInclBreaks:e.productName},n=()=>{if(e.icon)return s.jsx("img",{className:"product-card-header__icon",src:e.icon,alt:"Header icon"});switch(e.productCategory){case"Bil":return s.jsx(l,{});case"Sundhed":return s.jsx(h,{});case"Bolig & Dyr":return s.jsx(x,{});default:return s.jsx(i,{})}},c=()=>!e.productLinkText||!e.hasContent?null:s.jsxs(s.Fragment,{children:[s.jsx("label",{className:"fa-atom-button",children:e.productLinkText}),s.jsx("div",{className:"product-card-body__link",children:s.jsx(d,{})})]}),t=()=>e.hasError?s.jsx(o,{...e.error}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"product-card-header",children:[s.jsx("span",{className:"product-card-header__icon",children:n()}),s.jsx("span",{className:"product-card-header__title",children:e.productCategory})]}),s.jsxs("div",{className:"product-card-body",children:[s.jsxs("div",{className:"product-card-body__content",children:[s.jsx("div",{className:"product-card-body__content-text",children:e.coveredObject}),s.jsx("div",{className:"product-card-body__content-title",dangerouslySetInnerHTML:{__html:a()}})]}),c()]})]});return s.jsxs(s.Fragment,{children:[s.jsx("input",{type:"hidden",id:"CDI",name:"CDI",value:e.productCdi??""}),s.jsx("input",{type:"hidden",id:"ContentLinkID",name:"ContentLinkID",value:e.productLink??""}),s.jsx("div",{className:"single-product-card",children:e.hasContent&&!e.hasError?s.jsx("a",{href:e.productLink,className:"product-card__link",children:t()}):t()})]})}export{v as default}; 2//# sourceMappingURL=product-card-B7PblpCh.js.map
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.