1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1859],{21859:(r,e,t)=>{t.r(e),t.d(e,{default:()=>p});var i=t(55729),n=t(6029),a=t(40830),o=t(83589),l=t(89071),c=t(61604),u=t.n(c),s=t(27261),d=t(57801);let p=r=>{let{slice:e}=r;return"default"===e.variation?(r=>{var e,t;u().locale("is");let[c,p]=(0,i.useState)(!1),{width:y}=(0,s.A)(),[h,m]=(0,i.useState)();(0,i.useEffect)(()=>{f()},[]),(0,i.useEffect)(()=>{if(y<l.r2.mobileSmall)return p(!0);p(!1)},[y]);let f=async()=>{m(await fetch("".concat("https://backend.ofar.is","/api/FetchProducts"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({productGroup:r.primary.productGroup,noManufacturers:"true",noCategories:"true",pageSize:20,orderBy:"ORDER_BY_TIMES_VIEWED_DESCENDING"})}).then(async r=>r.json()).then(r=>r))};return(0,n.jsx)(o.az,{anchorid:r.primary.anchor||void 0,boxStyles:{backgroundColor:(0,a.i_)(r.primary.sliceColor||"lightgrey")},paddingTop:c?40:80,paddingBottom:c?40:80,children:(0,n.jsxs)(o.mc,{children:[(0,n.jsx)(o.az,{justify:"center",align:"center",flexDirection:"column",children:(0,n.jsx)(o.w7,{variant:"center",tagline:r.primary.tagline||void 0,title:r.primary.title||void 0,color:(0,a.Er)(r.primary.sliceColor||"Blue"),pb:"4rem",href:(null==(e=r.primary.buttonLink)?void 0:e.url)||void 0})}),(0,n.jsx)(d.ql,{products:null==h?void 0:h.currentProducts,displayPricesWithTax:null==h?void 0:h.displayPricesWithTax}),(null==(t=r.primary.buttonLink)?void 0:t.url)&&(0,n.jsx)(o.az,{justify:"center",paddingTop:36,children:(0,n.jsx)(o.$n,{variant:r.primary.buttonLabel?"ghost":"icon",color:(0,a.Er)(r.primary.sliceColor||"Blue"),href:r.primary.buttonLink.url,icon:r.primary.buttonIcon,children:r.primary.buttonLabel})})]})})})(e):null}}}]);
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.