PageSourceSearch

https://tolvutek.is/script/tolvutekbuild/static/js/ProductPage.550df788.chunk.js

js tolvutek.is collected 2026-10-05 05:26:42 UTC 60,180 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkorigo_storefront=self.webpackChunkorigo_storefront||[]).push([[1781],{92:function(e,t,r){r.d(t,{A:function(){return g}});var i,n,a=r(3029),s=r(2901),l=r(5501),o=r(9426),c=r(7906),d=r(8759),u=["title","titleId"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},p.apply(null,arguments)}function h(e,t){var r=e.title,a=e.titleId,s=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,u);return c.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#000000",ref:t,"aria-labelledby":a},s),r?c.createElement("title",{id:a},r):null,i||(i=c.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),n||(n=c.createElement("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l
1-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"})))}var m=c.forwardRef(h),f=(r.p,r(3121)),g=function(e){(0,l.A)(r,e);var t=(0,o.A)(r);function r(e){var i;return(0,a.A)(this,r),(i=t.call(this,e)).addOrRemoveProductFromWishList=function(e,t){return i.props.updateWishList(e,t),i.state.isOnWishList?i.setState({isOnWishList:!1}):i.setState({isOnWishList:!0}),!1},i.state={isOnWishList:i.props.isOnWishList},i}return(0,s.A)(r,[{key:"componentDidUpdate",value:function(e,t){this.props.isOnWishList!==this.state.isOnWishList&&this.setState({isOnWishList:this.props.isOnWishList})}},{key:"render",value:function(){var e=this;return(0,f.Y)("div",{className:this.props.className+" wishList",onClick:function(t){return e.addOrRemoveProductFromWishList(t,e.props.id)},role:"button","aria-label":"B\xe6ta \xe1 \xf3skalista",children:this.state.isOnWishList?(0,f.Y)(d.h,{}):(0,f.Y)(m,{})})}}]),r}(c.default.Component)},584:function(e,t,r){r.r(t),r.d(t,{default:function(){return _e}});var i,n,a=r(467),s=r(3029),l=r(2901),o=r(9417),c=r(5501),d=r(9426),u=r(4756),p=r.n(u),h=r(7906),m=r(2166),f=r(3829),g=r(9842),v=r(222),y=r(6651),b=r(2677),w=(r(5815),r(3121)),k=(0,g.Ay)((function(){return r.e(1850).then(r.t.bind(r,1850,23))})),Y=function(e){(0,c.A)(r,e);var t=(0,d.A)(r);function r(e){var i;return(0,s.A)(this,r),(i=t.call(this,e))._onSlide=function(e){i._resetVideo()},i._resetVideo=function(){i.setState({showVideo:{}}),i.state.showFullscreenButton&&i.setState({showGalleryFullscreenButton:!0})},i._toggleShowVideo=function(e){var t=i.state.showVideo;t[e]=!Boolean(i.state.showVideo[e]),i.setState({showVideo:t}),i.state.showVideo[e]&&i.state.showFullscreenButton&&i.setState({showGalleryFullscreenButton:!1})},i._renderVideo=function(e){return(0,w.Y)("div",{className:"image-gallery-image",children:i.state.showVideo[e.embedUrl]?(0,w.Y)("div",{className:"video-wrapper",children:(0,w.Y)("div",{className:"player-wrapper-new",children:(0,w.Y)(k,{className:"react-player-new",url:e.embedUrl,config:{youtube:{embedOptions:{host:"https://www.youtube-nocookie.com"},playerVars:{hl:"is",modestbranding:"1"}}},playing:!0,width:"100%",height:"100%",controls:!0})})}):(0,w.FD)("div",{onClick:function(){return i._toggleShowVideo(e.embedUrl)},children:[(0,w.Y)("div",{className:"play-button"}),(0,w.Y)("img",{alt:"video",src:e.original}),e.description&&(0,w.Y)("span",{className:"image-gallery-description",style:{right:"0",left:"initial"},children:e.description})]})})},i.myRenderThumbInner=function(e){return(0,w.FD)("span",{className:"image-gallery-thumbnail-inner",children:[(0,w.Y)("div",{className:"play-button-thumbnail"}),(0,w.Y)("img",{class:"image-gallery-thumbnail-image",src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle}),e.thumbnailLabel&&(0,w.Y)("div",{className:"image-gallery-thumbnail-label",children:e.thumbnailLabel})]})},i.getFeaturedCorner=function(){var e=i.getFormattedDateAvailable();return null!==e?e:i.state.product.syningareintok>0?i.getSyningarEintakBanner():void 0},i.getFormattedDateAvailable=function(){var e=i.state.product;return!e.disabled&&e.expected&&e.quantity<=0&&e.dateAvailable&&i.props.displayDateAvailable?(0,w.Y)("div",{id:"date-available-corner",className:"featured-corner",children:(0,w.Y)(y.A,{title:"A\xf0eins til vi\xf0mi\xf0unar, getur breyst \xe1n fyrirvara",children:(0,w.FD)("span",{children:[(0,w.Y)("b",{children:"Vara v\xe6ntanleg"})," ",(0,w.Y)("br",{}),(0,f.qm)(e.dateAvailable).format("D. MMMM").toLowerCase()," ",(0,w.Y)("br",{}),(0,w.Y)(b.A,{})]})})}):null},i.getSyningarEintakBanner=function(){return(0,w.Y)("div",{id:"syningareintak-corner",className:"featured-corner",children:(0,w.Y)("span",{children:"Varan er til s\xfdnis \xed Borgart\xfani 37"})})},i.getManufacturerImage=function(){var e=i.state.manufacturer.image;if(!e||!e.trim())return null;var t=(0,w.Y)("img",{alt:"V\xf6rumerki",className:"manufacturer-image",src:window.imageBase+"/"+e.trim()});return(0,w.Y)("a",{href:"/ShowProductsForManufacturer?manuId="+i.state.manufacturer.id,children:t})}
1,i.state={video:!0,showFullscreenButton:!0,showGalleryFullscreenButton:!0,showVideo:{},images:null==i.props.images?[]:i.props.images,videos:i.props.videos,interactiveGallery:i.props.interactiveGallery,manufacturer:i.props.manufacturer,product:i.props.product},document.addEventListener("webkitfullscreenchange",i.fullscreenChange,{passive:!0}),document.addEventListener("mozfullscreenchange",i.fullscreenChange,{passive:!0}),document.addEventListener("fullscreenchange",i.fullscreenChange,{passive:!0}),document.addEventListener("MSFullscreenChange",i.fullscreenChange,{passive:!0}),i}return(0,l.A)(r,[{key:"componentDidUpdate",value:function(e,t){this.props.manufacturer!==this.state.manufacturer&&this.setState({manufacturer:this.props.manufacturer})}},{key:"_handleThumbnailPositionChange",value:function(e){this.setState({thumbnailPosition:e.target.value})}},{key:"compareImageNames",value:function(e,t){var r=/_(\d+)+_/,i=e.match(r),n=t.match(r),a=parseInt(i[1]),s=parseInt(n[1]);return a<s?-1:a>s?1:0}},{key:"iframeFullscreen",value:function(){if(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled){var e=document.querySelector("#product-iframe");e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}else document.querySelector(".error").innerHTML="Your browser is not supported"}},{key:"fullscreenChange",value:function(){}},{key:"render",value:function(){var e=[],t=(0,f.pG)(this.state.images,"medium"),r=(0,f.pG)(this.state.images,"big");t=t.sort(this.compareImageNames),r=r.sort(this.compareImageNames);for(var i=0;i<t.length;i++)e.push({original:"/images"+r[i],thumbnail:"/images"+t[i],srcSet:"/images"+r[i]+" 1000w, /images"+t[i]+" 400w",sizes:"(max-width: 500px) 400px, 100vw",originalAlt:this.state.product.name+"-"+i,thumbnailAlt:this.state.product.name+"-thumbnail"+i,originalTitle:this.state.product.name+"-"+i,thumbnailTitle:this.state.product.name+"-thumbnail"+i});if(this.state.videos)for(var n=this.state.videos.split(";"),a=0;a<n.length;a++){var s=n[a];s&&(s.includes("/")&&(s=s.substring(s.lastIndexOf("/")+1,s.length)),e.push({original:"https://img.youtube.com/vi/"+s+"/hqdefault.jpg",thumbnail:"https://img.youtube.com/vi/"+s+"/hqdefault.jpg",embedUrl:"https://www.youtube.com/watch?v="+s,renderItem:this._renderVideo,renderThumbInner:this.myRenderThumbInner}))}var l=e.length>0;return(0,w.FD)("div",{className:"videoplayer",children:[this.getFeaturedCorner(),this.state.manufacturer&&this.getManufacturerImage(),(0,w.Y)("div",{className:"video-container",children:(0,w.Y)(v.A,{items:l?e:[{original:"/images/netverslun/myndvantar.jpg",thumbnail:"/images/netverslun/myndvantar.jpg"}],showBullets:this.state.showFullscreenButton&&this.state.showGalleryFullscreenButton,showPlayButton:!1,additionalClass:"app-image-gallery",onSlide:this._onSlide,showFullscreenButton:this.state.showFullscreenButton&&this.state.showGalleryFullscreenButton,lazyLoad:!0,showThumbnails:l})}),this.props.interactiveGallery?(0,w.FD)("div",{className:"interactive-gallery",children:[(0,w.FD)("div",{className:"interactive-gallery-button",onClick:this.iframeFullscreen,children:[(0,w.Y)("img",{alt:"Sko\xf0a 3D myndir",src:window.imageBase+"/fullscreen.png"}),(0,w.Y)("span",{children:"Sko\xf0a 3D myndir"})]}),(0,w.Y)("iframe",{title:"3D-gallery",id:"product-iframe",src:this.props.interactiveGallery,scrolling:"no",frameBorder:"0",width:"100%",height:"0",allowFullScreen:!0})]}):""]})}}]),r}(h.default.Component),I=r(4765),D=r(9379),A=r(6553),L=r(4084),N=r(5520),O=r(5206),S=r(6051),F=r(2513),C=r(1210),P=r(7783),x=r(9641),E=r(4786),T=r(5388),M=r(2131),W=r(7130),j=r(3847),q=r(1219),B=r(4811),R=r(2056),V=r(92),z=r(3370),U=r(3353),_=r(1970),Q=r(3324),G=["title","titleId"];function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},H.apply(null,arguments)}function Z(e,t){var r=e.title,a=e.titleId,s=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;
1r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,G);return h.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 994 994",ref:t,"aria-labelledby":a},s),r?h.createElement("title",{id:a},r):null,h.createElement("linearGradient",{id:"Gradient",gradientUnits:"userSpaceOnUse",x1:497,y1:1003,x2:497,y2:9.0126,gradientTransform:"matrix(1 0 0 -1 0 1003)"},h.createElement("stop",{offset:0,style:{stopColor:"#00B2FF"}}),h.createElement("stop",{offset:1,style:{stopColor:"#006AFF"}})),i||(i=h.createElement("path",{fill:"url(#Gradient)",d:"M497,0C217,0,0,205.1,0,482.1C0,627,59.4,752.2,156.1,838.7c8.1,7.3,13,17.4,13.4,28.3 l2.7,88.4c0.9,28.2,30,46.5,55.8,35.2l98.6-43.5c8.4-3.7,17.7-4.4,26.5-2c45.3,12.5,93.6,19.1,143.9,19.1 c280,0,497-205.1,497-482.1S777,0,497,0z"})),n||(n=h.createElement("path",{fill:"#FFFFFF",d:"M198.6,623.1l146-231.6c23.2-36.8,73-46,107.8-19.9l116.1,87.1c10.7,8,25.3,7.9,35.9-0.1 l156.8-119c20.9-15.9,48.3,9.2,34.2,31.4L649.5,602.5c-23.2,36.8-73,46-107.8,19.9l-116.1-87.1c-10.7-8-25.3-7.9-35.9,0.1 L232.8,654.5C211.9,670.4,184.5,645.3,198.6,623.1z"})))}var X,J,K,$,ee,te,re,ie,ne,ae,se,le,oe,ce,de,ue=h.forwardRef(Z),pe=(r.p,["title","titleId"]);function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},he.apply(null,arguments)}function me(e,t){var r=e.title,i=e.titleId,n=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,pe);return h.createElement("svg",he({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 511.998 511.998",style:{enableBackground:"new 0 0 511.998 511.998"},xmlSpace:"preserve",ref:t,"aria-labelledby":i},n),r?h.createElement("title",{id:i},r):null,h.createElement("path",{style:{fill:"#D7143A"},d:"M405.017,52.467C369.774,18.634,321.001,0,267.684,0C186.24,0,136.148,33.385,108.468,61.39 c-34.114,34.513-53.675,80.34-53.675,125.732c0,56.993,23.839,100.737,63.76,117.011c2.68,1.098,5.377,1.651,8.021,1.651 c8.422,0,15.095-5.511,17.407-14.35c1.348-5.071,4.47-17.582,5.828-23.013c2.906-10.725,0.558-15.884-5.78-23.353 c-11.546-13.662-16.923-29.817-16.923-50.842c0-62.451,46.502-128.823,132.689-128.823c68.386,0,110.866,38.868,110.866,101.434 c0,39.482-8.504,76.046-23.951,102.961c-10.734,18.702-29.609,40.995-58.585,40.995c-12.53,0-23.786-5.147-30.888-14.121 c-6.709-8.483-8.921-19.441-6.222-30.862c3.048-12.904,7.205-26.364,11.228-39.376c7.337-23.766,14.273-46.213,14.273-64.122 c0-30.632-18.832-51.215-46.857-51.215c-35.616,0-63.519,36.174-63.519,82.354c0,22.648,6.019,39.588,8.744,46.092 c-4.487,19.01-31.153,132.03-36.211,153.342c-2.925,12.441-20.543,110.705,8.618,118.54c32.764,8.803,62.051-86.899,65.032-97.713 c2.416-8.795,10.869-42.052,16.049-62.495c15.817,15.235,41.284,25.535,66.064,25.535c46.715,0,88.727-21.022,118.298-59.189 c28.679-37.02,44.474-88.618,44.474-145.282C457.206,127.983,438.182,84.311,405.017,52.467z"}),X||(X=h.createElement("g",null)),J||(J=h.createElement("g",null)),K||(K=h.createElement("g",null)),$||($=h.createElement("g",null)),ee||(ee=h.createElement("g",null)),te||(te=h.createElement("g",null)),re||(re=h.createElement("g",null)),ie||(ie=h.createElement("g",null)),ne||(ne=h.createElement("g",null)),ae||(ae=h.createElement("g",null)),se||(se=h.createElement("g",null)),le||(le=h.createElement("g",null)),oe||(oe=h.createElement("g",null)),ce||(ce=h.createElement("g",null)),de||(de=h.createElement("g",null)))}var fe=h.forwardRef(me),ge=(r.p,["title","titleId"]);function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ve.apply(null,arguments)}function ye(e,t){var r=e.title,i=e.titleId,n=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;
1r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,ge);return h.createElement("svg",ve({width:"100%",height:"100%",viewBox:"0 0 9000 9000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:1.5},ref:t,"aria-labelledby":i},n),r?h.createElement("title",{id:i},r):null,h.createElement("g",{transform:"matrix(0.9528,0,0,0.98047,202.051,231.457)"},h.createElement("path",{d:"M4767,228.245L4767,2579.76M4756.51,5547.89C4756.51,6289.4 4770.15,6982.98 4770.15,7724.49M4772.45,231.732L8773.63,4012.21",style:{fill:"none",stroke:"rgb(230,0,0)",strokeWidth:862}})),h.createElement("g",{transform:"matrix(0.94999,0.0027,0.00262,0.97797,195.368,237.845)"},h.createElement("path",{d:"M8784.49,4009.22L4771.62,7744.13",style:{fill:"none",stroke:"rgb(230,0,0)",strokeWidth:"862.01px"}})),h.createElement("g",{transform:"matrix(0.9528,0,0,0.98047,202.051,231.457)"},h.createElement("path",{d:"M4750,2579C3599.74,2593.36 465.899,2576.29 248,8218",style:{fill:"none",stroke:"rgb(230,0,0)",strokeWidth:862}})),h.createElement("g",{transform:"matrix(0.9527,0.01428,-0.01388,0.98037,385.58,127.685)"},h.createElement("path",{d:"M4642.92,5550.2C4421.86,5500.53 1868.78,5108.28 194.287,8308.65",style:{fill:"none",stroke:"rgb(230,0,0)",strokeWidth:"861.65px"}})))}var be=h.forwardRef(ye),we=(r.p,["title","titleId"]);function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ke.apply(null,arguments)}function Ye(e,t){var r=e.title,i=e.titleId,n=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,we);return h.createElement("svg",ke({width:"100%",height:"100%",viewBox:"0 0 9000 9000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:1.5},ref:t,"aria-labelledby":i},n),r?h.createElement("title",{id:i},r):null,h.createElement("g",{transform:"matrix(0.254574,1.2541,-1.23072,0.249826,10662.4,127.268)"},h.createElement("path",{d:"M3678.5,4640C2359.7,4640 1289,5530.79 1289,6628C1289,7725.21 2359.7,8616 3678.5,8616C3282.86,8152.13 2961.65,7421.03 2961.65,6628C2961.65,5834.97 3282.86,5103.87 3678.5,4640Z",style:{fill:"rgb(230,0,0)"}})),h.createElement("g",{transform:"matrix(-0.0051235,1.44954,-1.29365,-0.0045725,9933.39,-5963.77)"},h.createElement("path",{d:"M7034,1311L8996,3722L5072,3722L7034,1311Z",style:{fill:"rgb(230,0,0)"}})),h.createElement("g",{transform:"matrix(0.9528,0,0,0.98047,202.051,231.457)"},h.createElement("path",{d:"M4767,228.245L4767,2579.76M4756.51,5547.89C4756.51,6289.4 4770.15,6982.98 4770.15,7724.49M4772.45,231.732L8773.63,4012.21",style:{fill:"none",stroke:"rgb(230,0,0)",strokeWidth:862}}),h.createElement("g",{transform:"matrix(0.794338,0,0,0.996724,729.332,-317.776)"},h.createElement("rect",{x:3220,y:3029,width:2447,height:1495,style:{fill:"rgb(230,0,0)"}}))),h.createElement("g",{transform:"matrix(0.94999,0.0027,0.00262,0.97797,195.368,237.845)"},h.createElement("path",{d:"M8784.49,4009.22L4771.62,7744.13",style:{fill:"none",stroke:"rgb(230,0,0)",strokeWidth:"862.01px"}})),h.createElement("g",{transform:"matrix(0.9528,0,0,0.98047,202.051,231.457)"},h.createElement("path",{d:"M4750,2579C3599.74,2593.36 465.899,2576.29 248,8218",style:{fill:"none",stroke:"rgb(230,0,0)",strokeWidth:862}})),h.createElement("g",{transform:"matrix(0.9527,0.01428,-0.01388,0.98037,385.58,127.685)"},h.createElement("path",{d:"M4642.92,5550.2C4421.86,5500.53 1868.78,5108.28 194.287,8308.65",style:{fill:"none",stroke:"rgb(230,0,0)",strokeWidth:"861.65px"}})))}var Ie,De,Ae,Le=h.forwardRef(Ye),Ne=(r.p,["title","titleId"]);function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Oe.apply(null,arguments)}function Se(e,t){var r=e.title,i=e.titleId,n=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;
1r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,Ne);return h.createElement("svg",Oe({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 1080 1080",style:{enableBackground:"new 0 0 1080 1080"},xmlSpace:"preserve",ref:t,"aria-labelledby":i},n),r?h.createElement("title",{id:i},r):null,Ie||(Ie=h.createElement("style",{type:"text/css"},"\n\t.st0{fill:#E60000;}\n")),De||(De=h.createElement("g",null,h.createElement("g",null,h.createElement("g",null,h.createElement("path",{className:"st0",d:"M435.56,234.55L583.11,519.2c7.22,13.8,8.7,37.06,0,53.84L435.56,857.69 c-20.69,39.92-9.34,85.85,43.76,68.45l489.89-351.7c41.36-28.85,44.45-48.96,0-83.05L479.32,166.1 C447.4,143.74,394.77,155.67,435.56,234.55z"}))))),Ae||(Ae=h.createElement("g",null,h.createElement("g",null,h.createElement("g",null,h.createElement("g",null,h.createElement("path",{className:"st0",d:"M122.65,158.21c-18.86,0-27.23,13.72-18.6,30.49L272,515.1c8.63,16.77,8.63,44.22,0,60.99L104.05,902.48 c-8.63,16.77-0.26,30.49,18.6,30.49h177.37c18.86,0,41.36-13.72,49.99-30.49l167.95-326.39c8.63-16.77,8.63-44.22,0-60.99 L350.01,188.71c-8.63-16.77-31.12-30.49-49.99-30.49H122.65z"})))))))}var Fe=h.forwardRef(Se),Ce=(r.p,function(e){return(0,w.Y)(x.A,(0,D.A)({component:Fe},e))}),Pe=(0,g.Ay)((function(){return Promise.all([r.e(5558),r.e(1968)]).then(r.bind(r,3801))})),xe=(0,g.Ay)((function(){return Promise.all([r.e(7650),r.e(4256),r.e(8105),r.e(7326),r.e(1210),r.e(9073),r.e(4135)]).then(r.bind(r,7214))})),Ee=function(e){(0,c.A)(r,e);var t=(0,d.A)(r);function r(e){var i;return(0,s.A)(this,r),(i=t.call(this,e)).checkProductNotification=function(e){(0,a.A)(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.isProductNotification(e);case 3:t.sent.response?i.setState({productNotification:!0}):i.setState({productNotification:!1}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},i.quantityOptions=function(){for(var e=[],t=1;t<=30;t++)e[t]=(0,w.Y)(A.A.Option,{value:t,children:t},t);return e},i.getTolvutekAvailability=function(){var e=i.state.product,t=e.reykjavikQuantity,r=e.akureyriQuantity,n=e.stock10Quantity,a=e.disabled,s=e.productType,l=e.quantityMessage,o=i.state.product.expected,c=i.state.syningareintak;if(a||6===s||7===s)return null;var d=" (a\xf0eins 1 s\xfdningareintak eftir, f\xe6st me\xf0 afsl\xe6tti)",u=t>0||r>0||n>0;u&&(o=!1);var p=t+r+n;return(0,w.FD)("div",{className:"availability",children:[(0,w.Y)("div",{className:"spantext",children:"Hvar er varan til?"}),o?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-yellow"}),(0,w.Y)("span",{children:"V\xe6ntanlegt \xed netverslun"})]}):u?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-green"}),(0,w.FD)("span",{children:["Til \xed netverslun","1"===c||"2"===c||"3"===c?"(s\xfdningareintak)":p>5?"":" (a\xf0 kl\xe1rast)"]})]}):(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-red"}),(0,w.Y)("span",{children:"Ekki til \xed netverslun"})]}),o?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-yellow"}),(0,w.Y)("span",{children:"V\xe6ntanlegt \xed Reykjav\xedk"})]}):t<=0?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-red"}),(0,w.Y)("span",{children:"Ekki til \xed Reykjav\xedk"})]}):(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-green"}),(0,w.FD)("span",{children:["Til \xed Reykjav\xedk","1"===c||"3"===c?d:t>5?"":" (a\xf0eins "+t+" eftir)"]})]}),o?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-yellow"}),(0,w.Y)("span",{children:"V\xe6ntanlegt \xe1 Akureyri"})]}):r<=0?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-red"}),(0,w.Y)("span",{children:"Ekki til \xe1 Akureyri"})]}):(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-green"}),(0,w.FD)("span",{children:["Til \xe1 Akureyri","2"===c||"3"===c?d:r>5?"":" (a\xf0eins "+r+" eftir)"]})]}),o?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-yellow"}),(0,w.Y)("span",{children:"V\xe6ntanlegt \xed v\xf6ruh\xfas"})]}):n<=0?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-red"}),(0,w.Y)("span",{children:"Ekki til \xed v\xf6ruh\xfasi"})]}):(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-green"}),(0,w.FD)("span",{children:["Til \xed v\xf6ruh\xfasi (1-3 virkir dagar)",n>5?"":" (a\xf0eins "+n+" eftir)"]})]}),l&&(0,w.Y)("div",{dangerouslySetInnerHTML:{__html:l}})]})},i.getAvailability=function(){var e=i.state.product,t=e.reykjavikQuantity,r=e.akureyriQuantity,n=e.eldhafQuantity,a=e.quantity,s=e.expected,l=e.disabled,o=e.productType,c=e.stock10
1Quantity,d=i.state.product.custom4,u=i.props.displayDateAvailable;return l||6===o||7===o||d&&a<=0?null:(0,w.FD)("div",{className:"availability",children:[(0,w.Y)("div",{className:"spantext",children:"Hvar er varan til?"}),c?c<=0?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-red"}),(0,w.Y)("span",{children:"Ekki til \xe1 lager T\xf6lvuteks"})]}):(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-green"}),(0,w.FD)("span",{children:["Til \xe1 lager T\xf6lvuteks (",c,")"]})]}):"",s&&a<=0?u?(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-yellow"}),(0,w.Y)("span",{children:"V\xe6ntanlegt \xed netverslun / lager"})]}):(0,w.Y)(y.A,{placement:"topLeft",title:"Engar uppl\xfdsingar eru um komut\xedma v\xf6ru. Afhendingart\xedmi v\xf6ru er breytilegur eftir framlei\xf0endum en er a\xf0 jafna\xf0i 3-9 vikur.",children:(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-yellow"}),(0,w.Y)("span",{children:"V\xe6ntanlegt \xed netverslun / lager"}),(0,w.Y)(E.A,{className:"date-expected-info"})]})}):i.getQuantityStatus(a,"Til \xed netverslun / lager","Ekki til \xed netverslun / lager"),3===o?"":i.getQuantityStatus(t,"Til \xed verslun Borgart\xfani 37","Ekki til \xed verslun Borgart\xfani 37"),3===o?"":i.getQuantityStatus(n,"Til \xed verslun Eldhaf Gler\xe1rtorgi","Ekki til \xed verslun Eldhaf Gler\xe1rtorgi"),r<=0?"":i.getQuantityStatus(r,"Til \xe1 s\xf6luskrifstofu Akureyri","")]})},i.getQuantityStatus=function(e,t,r){var n=e>0?t:r;return(0,w.FD)("div",{children:[(0,w.Y)("div",{className:"circle circle-"+(e>0?"green":"red")}),(0,w.Y)("span",{children:"".concat(n," ").concat(e>5||e<=0?"":"("+i.getQuantityMessage(e)+")")})]})},i.getQuantityMessage=function(e){return e>=3?"\xf6rf\xe1 eftir":e},i.toggleProductNotification=(0,a.A)(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.state.productNotification){e.next=5;break}return e.next=3,i.removeProductNotification(i.state.product.id);case 3:e.next=7;break;case 5:return e.next=7,i.addProductNotification(i.state.product.id);case 7:i.setState({productNotification:!i.state.productNotification});case 8:case"end":return e.stop()}}),e)}))),i.getProductNotification=function(e){if(i.state.product.disabled||i.state.product.custom4)return null;if(null===i.state.productNotification&&i.props.isLoggedIn)return null;if(e<=0){var t="F\xe1 t\xf6lvup\xf3st \xfeegar vara kemur \xe1 lager";return(0,w.Y)("div",{id:"prod-notification",children:i.props.isLoggedIn?(0,w.Y)("div",{className:"link",onClick:i.toggleProductNotification,children:i.state.productNotification?(0,w.FD)("span",{children:[(0,w.Y)(M.A,{}),"H\xe6tta v\xf6ktun"]}):(0,w.FD)("span",{children:[(0,w.Y)(T.A,{}),t]})}):(0,w.FD)("a",{href:"/SetNotification?prodId="+i.state.product.id,children:[(0,w.Y)(T.A,{}),t]})})}return null},i.updateWishList=function(e,t){i.props.store.dispatch((0,R.kS)(e,t))},i.openChat=function(e){return e.preventDefault(),e.stopPropagation(),(0,f.RW)(),!1},i.updateComparison=function(e,t){i.props.store.dispatch((0,R.QP)(e,t)),i.setState({isInComparison:!i.state.isInComparison})},i.updateCart=function(e,t){i.props.store.dispatch((0,R.iH)(e,i.state.product.id,i.props.basketId,t))},i.openUpsellModal=function(){i.setState({upsellModalOpen:!0})},i.hideUpsellModal=function(){i.setState({upsellModalOpen:!1})},i.getSpecialOrderPrice=function(e,t,r,i,n,a,s){return"SpecialOrderWithPrice"===e?n>0&&r>n?(0,w.Y)("div",{class:"prices",children:(0,w.FD)("div",{children:[(0,w.FD)("div",{children:[(0,w.Y)("div",{class:"payment-header",children:"Tilbo\xf0sver\xf0"}),(0,w.Y)("span",{class:"discount-price",children:i})]}),(0,w.FD)("div",{children:[(0,w.Y)("div",{class:"payment-header old-price-header"}),(0,w.Y)("div",{class:"old-price",children:t})]}),(0,w.FD)("div",{class:"discount-info",children:["Afsl\xe1ttur:"," ",(0,w.Y)("span",{class:"amount",children:(0,f.ZV)(a,!0)})," ",Math.round(s)>0&&(0,w.FD)("span",{class:"amount discount",children:[Math.round(s),"%"]})]})]})}):(0,w.FD)("div",{className:"prices",children:[(0,w.Y)("span",{className:"price",children:t}),(0,w.Y)("div",{children:"Athuga\xf0u a\xf0 uppgefi\xf0 ver\xf0 er a\xf0eins til vi\xf0mi\xf0unar"})]}):(0,w.Y)("div",{className:"prices",children:(0,w.Y)("span",{className:"price",children:"S\xe9rp\xf6ntunarvara"})})},i.getShareButtons=function(){var e=function(e){return(0,w.Y)(x.A,(0,D.A)({component:Q.h},e))},t=function(e){return(0,w.Y)(x.A,(0,D.A)({component:ue},e))},r=function(e){return(0,w.Y)(x.A,(0,D.A)({component:fe},e))},n=function(e){return(0,w.Y)(x.A,(0,D.A)({component:i.state.shareDropdownOpen?Le:be,className:"share-arrow-icon"},e))},a=(0,w.FD)(L.A,{onClick:function(){return i.setState({shareDropdownOpen:!1})},children:[(0,w.Y)(L.A.Item,{icon:(0,w.Y)(e,{}),children:(0,w.Y)("a",{target:"_blank",rel:"noreferrer",href:"https://www.facebook.com/sharer/sharer.php?u="+encodeURI(window.location.href)+"&amp;
1src=sdkpreparse",children:"Facebook"})},0),(0,w.Y)(L.A.Item,{icon:(0,w.Y)(t,{}),children:(0,w.Y)("a",{target:"_blank",rel:"noreferrer",href:"http://www.facebook.com/dialog/send?app_id="+window.facebookAppID+"&link="+window.location.href+"&redirect_uri="+window.location.href,children:"Messenger"})},1),(0,w.Y)(L.A.Item,{icon:(0,w.Y)(W.A,{}),children:(0,w.Y)("a",{target:"_blank",rel:"noreferrer",href:"https://twitter.com/intent/tweet?text="+encodeURI(window.location.href),children:"Twitter"})},2),(0,w.Y)(L.A.Item,{icon:(0,w.Y)(r,{}),children:(0,w.Y)("a",{target:"_blank",rel:"noreferrer",href:"http://pinterest.com/pin/create/button/?url="+encodeURI(window.location.href)+"&media="+window.imageBase+i.state.product.image+"&description="+encodeURI(i.state.product.name),className:"pin-it-button",children:"Pinterest"})},3),(0,w.Y)(L.A.Item,{icon:(0,w.Y)(T.A,{}),children:(0,w.Y)("a",{href:"mailto:?body=Vinur \xfeinn vill senda \xfe\xe9r spennandi v\xf6ru hj\xe1 T\xf6lvutek%0D%0A"+encodeURI(window.location.href),children:"T\xf6lvup\xf3stur"})},4)]});return(0,w.Y)(N.A,{overlay:a,overlayClassName:"social-share-dropdown",className:"social-media-buttons",onOpenChange:function(e){return i.setState({shareDropdownOpen:e})},arrow:!0,children:(0,w.Y)(O.Ay,{type:"link",onClick:function(e){return e.preventDefault()},children:(0,w.Y)(n,{})})})},i.addProductToList=function(e,t){i.props.store.dispatch((0,R.kS)(void 0,t,null,e))},i.isProductOnList=function(e){return e.map((function(e){return e.prodId})).includes(i.state.product.id)},i.getWishListsDropdown=function(){var e=(0,w.FD)(L.A,{children:[(0,w.Y)(L.A.Item,{icon:(0,w.Y)(j.A,{}),onClick:i.toggleCreateWishList,children:(0,w.Y)(O.Ay,{type:"link",children:"N\xfdr listi"})}),i.state.wishLists.length>0&&(0,w.Y)(L.A.Divider,{}),i.state.wishLists.map((function(e){var t=i.isProductOnList(e.wishListItems);return(0,w.Y)(L.A.Item,{onClick:function(){return i.addProductToList(e.id,i.state.product.id)},icon:t?(0,w.Y)(q.A,{}):(0,w.Y)("span",{role:"img",className:"anticon ant-dropdown-menu-item-icon"}),children:(0,w.Y)(O.Ay,{type:"link",children:e.name})})}))]});return(0,w.Y)(N.A,{overlay:e,overlayClassName:"wishList-dropdown",className:"wishList-buttons",onOpenChange:i.handleWishListDropdownOpenChange,open:i.state.wishListDropdownOpen,arrow:!0,children:(0,w.FD)(O.Ay,{className:"origo-button white",onClick:function(e){return e.preventDefault()},children:["B\xe6ta \xe1 m\xedna lista ",(0,w.Y)(B.A,{size:60})]})})},i.handleWishListDropdownOpenChange=function(e){i.setState({wishListDropdownOpen:e})},i.toggleCreateWishList=function(){i.setState({createWishListOpen:!i.state.createWishListOpen})},i.getUpsellCheckboxes=function(e){var t=i.state.selectedUpsell.concat(e);return(0,w.FD)("div",{className:"upsell-available",children:[(0,w.FD)("div",{id:"insurance-offer",className:"spantext",onClick:function(){return i.openUpsellModal()},children:[(0,w.Y)(E.A,{})," B\xe6ttu vi\xf0 t\xe6kjatryggingu e\xf0a auka \xe1byrg\xf0"]}),(0,w.FD)(S.A,{direction:"vertical",children:[(0,w.Y)(F.A,{checked:0===e.length&&0===t.length,onChange:function(e){e.target.checked&&i.setState({selectedUpsell:[]})},children:"Engin trygging"}),(0,w.Y)(F.A.Group,{onChange:function(e){i.setState({selectedUpsell:e})},defaultValue:e,value:t,children:(0,w.Y)(S.A,{direction:"vertical",children:i.state.product.insurancesAvailable.map((function(e){return(0,w.Y)(F.A,{value:e.insurance.id,children:e.insurance.name})}))})})]})]})},i.showUpsell=function(e){return(0,w.FD)(O.Ay,{type:"link",className:"small upsell-button",onClick:i.openUpsellModal,children:[(0,w.Y)(Ce,{style:{fontSize:35}})," ","T\xe6kjatrygging og auka\xe1byrg\xf0"]})},i.state={product:e.product,name:e.name,sku:e.sku,priceInt:e.priceInt,price:e.price,specialPrice:e.specialPrice,specialPriceInt:e.specialPriceInt,defaultPrice:null,resize:i.props.resize,productNotification:null,basketId:e.basketId,quantityInCart:e.quantityInCart,syningareintak:e.syningareintak,upsellModalOpen:!1,energyLabel:e.energyLabel,energyLabelModalOpen:!1,wishLists:[],createWishListOpen:!1,wishListDropdownOpen:!1,shareDropdownOpen:!1,selectedUpsell:[]},i.isProductNotification=f.LM.bind((0,o.A)(i)),i.addProductNotification=f.C4.bind((0,o.A)(i)),i.removeProductNotification=f.$k.bind((0,o.A)(i)),i}
1return(0,l.A)(r,[{key:"componentDidMount",value:function(){var e=this.state,t=e.specialPriceInt,r=e.priceInt,i=e.product,n=r;r>t&&t>0&&(n=t),this.setState({defaultPrice:n}),this.props.isLoggedIn&&this.checkProductNotification(i.id)}},{key:"componentDidUpdate",value:function(e,t,r){this.props.productIdsOnWishList&&(this.props.productIdsOnWishList.includes(this.state.product.id)?this.state.isOnWishList||this.setState({isOnWishList:!0}):this.state.isOnWishList&&this.setState({isOnWishList:!1})),this.props.productIdsInComparison&&(this.props.productIdsInComparison.includes(this.state.product.id)?this.state.isInComparison||this.setState({isInComparison:!0}):this.state.isInComparison&&this.setState({isInComparison:!1})),this.props.quantityInCart!==e.quantityInCart&&this.setState({quantityInCart:this.props.quantityInCart}),this.props.wishLists!==this.state.wishLists&&null!=this.props.wishLists&&this.setState({wishLists:this.props.wishLists}),this.props.isLoggedIn&&this.props.isLoggedIn!==e.isLoggedIn&&this.checkProductNotification(this.state.product.id)}},{key:"render",value:function(){var e,t,r=this,i=this.state,n=i.sku,s=i.name,l=i.price,o=i.priceInt,c=i.specialPrice,d=i.specialPriceInt,u=this.state.product,h=u.id,m=u.disabled,g=u.productType,v=this.state.product.custom4,y=o-d,b=Math.round(y/o*100);t=this.state.product.quantity>0||this.state.product.akureyriQuantity>0||this.state.product.reykjavikQuantity>0||this.state.product.expected;var k,Y,D="SpecialOrder"===v||v&&!t,A=this.state.product.quantity+this.state.product.akureyriQuantity+this.state.product.reykjavikQuantity,L=this.state.product.expected&&A<1;if(6===this.state.product.productType){if(this.state.product.time){var N=this.state.product.time.split(";")[0].split(":");N[1].length<2&&(N[1]="0"+N[1]),Y="kl "+N[0]+":"+N[1]}if(this.state.product.startDate){var S=new Date(this.state.product.startDate);k=S.getDate()+"."+(S.getMonth()+1)+"."+S.getFullYear()}}var x=this.state.product.insurancesAvailable.filter((function(e){return e.alreadyInCart})).map((function(e){return e.insurance.id}));return(0,w.FD)("div",{className:"payinfo",children:[null!==(e=this.state.product.contentType)&&void 0!==e&&e.includes("Icecat")?(0,w.Y)(F.A,{className:"comparison-checkbox",checked:this.state.isInComparison,onChange:function(e){return r.updateComparison(e,r.state.product.id)},children:"Bera saman"}):"",s?(0,w.Y)("h1",{className:"prod-name",children:s}):"",this.state.energyLabel?(0,w.FD)("div",{className:"energy-label-container",children:[(0,w.Y)("img",{className:"energy-label-arrow",src:"images/content/energyLabels/"+this.state.energyLabel.custom1+"_Left.png",alt:"Uppl\xfdsingar um orkunotkun",onClick:function(){return r.setState({energyLabelModalOpen:!0})}}),(0,w.FD)("div",{className:"energy-label-right",children:[n&&(0,w.FD)("div",{className:"prod-number",children:["V\xf6run\xfamer: ",n]}),this.state.energyLabel.custom2?(0,w.Y)("a",{className:"energy-label-opener",target:"__blank",href:this.state.energyLabel.custom2,children:"V\xf6ruuppl\xfdsingabla\xf0"}):(0,w.Y)(O.Ay,{className:"energy-label-opener",type:"link",onClick:function(){r.props.openTechnicalDescription();var e=document.getElementById("technical-description").getBoundingClientRect().top+window.scrollY+-100;window.scrollTo({top:e,behavior:"smooth"})},children:"V\xf6ruuppl\xfdsingabla\xf0"})]}),(0,w.Y)(C.A,{className:"energy-label-modal",width:500,bodyStyle:{minHeight:500},open:this.state.energyLabelModalOpen,title:"Orkunotkun",onCancel:function(){return r.setState({energyLabelModalOpen:!1})},style:{top:"60px"},footer:null,children:this.state.energyLabel.itemValue.includes(".pdf")?(0,w.Y)("object",{title:"Orkumi\xf0i",data:this.state.energyLabel.itemValue,type:"application/pdf",height:"900px",width:"100%"}):(0,w.Y)(P.A,{className:"energy-label",src:this.state.energyLabel.itemValue,alt:"Orkunotkun t\xe6kis",placeholder:(0,w.Y)("div",{style:{marginRight:"auto",marginLeft:"auto",marginTop:50,width:120},children:(0,w.Y)(_.A,{size:120})}),preview:!1,width:"100%"})})]}):n&&(0,w.FD)("div",{className:"prod-number",children:["V\xf6run\xfamer: ",n]}),6===g?(0,w.FD)("div",{id:"bookable-details",children:[(0,w.FD)("div",{children:[(0,w.Y)("i",{className:"material-icons",children:"location_on"})," ",this.state.product.location]}),(0,w.FD)("div",{children:[(0,w.Y)("i",{className:"material-icons",children:"access_time"}),k||""," ",Y||""]})]}):"",!0===m?(0,w.Y)("div",{id:"not-for-sale",children:"Vara ekki til \xe1 lager"}
1):D?this.getSpecialOrderPrice(v,l,o,c,d,y,b):(0,w.FD)("div",{children:[d>0&&o>d?(0,w.FD)("div",{className:"tolvutek-prices",children:[(0,w.Y)("div",{className:"price",children:(0,f.ZV)(d)}),(0,w.FD)("div",{className:"discount-info",children:[(0,w.Y)("span",{className:"list-price",children:(0,f.ZV)(o,!0,!0)}),(0,w.FD)("span",{className:"discount-percent",children:["-",b,"%"]}),(0,w.FD)("span",{className:"discount",children:["- ",(0,f.ZV)(y,!0,!0)]})]})]}):(0,w.Y)("div",{children:(0,w.Y)("span",{className:"price",children:l})}),this.state.product.offerNumber?(0,w.Y)("div",{id:"part-of-offer",children:(0,w.FD)("b",{children:["\xdeessi vara er hluti af tilbo\xf0i"," ",(0,w.Y)("a",{href:"sertilbod?offerId="+this.state.product.offerNumber,children:this.state.product.offerNumber})]})}):"",this.state.defaultPrice?(0,w.Y)(Pe,{price:this.state.defaultPrice}):""]}),this.getTolvutekAvailability(),(this.state.product.productType,this.getProductNotification(this.state.product.quantity)),this.state.product.insurancesAvailable.length>0&&this.showUpsell(x),this.state.product.custom7&&this.state.product.custom7.includes("stk. \xe1 mann")?(0,w.Y)("div",{className:"limited-offer",children:"H\xe1mark "+this.state.product.custom7}):"",!0===m?"":(0,w.FD)("div",{className:"add-to-cart-buttons",children:[D?(0,w.Y)(O.Ay,{className:"origo-button add-to-cart specialorder",onClick:function(e){return r.openChat(e)},children:"S\xe9rpanta"}):this.state.quantityInCart>0?(0,w.Y)(z.A,{quantity:this.state.quantityInCart,updateCart:this.updateCart}):(0,w.Y)(O.Ay,{className:"origo-button add-to-cart"+(L?" preorder":""),onClick:function(){var e=(0,a.A)(p().mark((function e(t){var i,n,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.state.selectedUpsell.length>0)){e.next=21;break}i=(0,I.A)(r.state.selectedUpsell),e.prev=2,i.s();case 4:if((n=i.n()).done){e.next=10;break}return a=n.value,e.next=8,(0,f.bQ)("AddToCartFromProdId",{prodId:a,quantity:1,prodIdForInsurance:h});case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),i.e(e.t0);case 15:return e.prev=15,i.f(),e.finish(15);case 18:r.props.store.dispatch((0,R.Fy)(!0)),e.next=22;break;case 21:r.props.store.dispatch((0,R.bE)(h,1,t,s,d||o));case 22:r.openUpsellModal();case 23:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})));return function(t){return e.apply(this,arguments)}}(),disabled:!t,children:t?L?"Forpanta":"B\xe6ta \xed k\xf6rfu":"F\xe6st ekki \xed netverslun"}),(0,w.Y)(V.A,{id:h,updateWishList:this.updateWishList,isOnWishList:this.state.isOnWishList,className:"productPage"}
1),this.getShareButtons()]}),this.props.isLoggedIn&&this.getWishListsDropdown(),this.state.product.insurancesAvailable.length>0?(0,w.Y)(xe,{open:this.state.upsellModalOpen,upsellProducts:this.state.product.insurancesAvailable,hideModal:this.hideUpsellModal}):"",(0,w.Y)(U.A,{open:this.state.createWishListOpen,toggleOpen:this.toggleCreateWishList,productIDToAdd:this.state.product.id})]})}}]),r}(h.default.Component),Te=Ee,Me=r(1995),We=r.n(Me),je=r(5037),qe=function(e){(0,c.A)(r,e);var t=(0,d.A)(r);function r(e){var i;return(0,s.A)(this,r),(i=t.call(this,e)).getTechnicalDescription=function(){var e=[],t=i.state.technicalDescription;return t&&(i.state.product.contentType&&(i.state.product.contentType.includes("Icecat")||i.state.product.contentType.includes("inRiver"))?t.forEach((function(t){e.push((0,w.Y)("tr",{colSpan:2,className:"group-heading",children:(0,w.Y)("td",{children:(0,w.Y)("h2",{children:t.name})})})),t.attributes.forEach((function(t,r){e.push((0,w.FD)("tr",{className:r%2===0?"even":"odd",children:[(0,w.Y)("td",{children:t.name}),(0,w.Y)("td",{children:t.value.join(", ")})]}))}))})):t.forEach((function(t){t.attributes.forEach((function(t){var r=(0,w.Y)("tr",{children:(0,w.Y)("td",{children:t.value})});e.push(r)}))}))),e},i.triggerOpen=function(e){return(0,w.FD)("span",{children:[(0,w.Y)("h3",{className:"desc-header"+(i.state.mobile?" mobile":""),children:e}),(0,w.Y)(je.A,{className:"desc-header-sign"})]})},i.triggerClosed=function(e){return(0,w.FD)("span",{children:[(0,w.Y)("h3",{className:"desc-header"+(i.state.mobile?" mobile":""),children:e}),(0,w.Y)(j.A,{className:"desc-header-sign"})]})},i.closeProdInfo=function(){i.setState({prodInfo:!1})},i.state={description:e.product.description,technicalDescription:e.product.specifications,contentType:e.product.contentType,mobile:e.mobile,productType:e.product.productType,product:e.product,prodInfo:!0,prodDetail:i.props.prodDetail},i}return(0,l.A)(r,[{key:"componentDidUpdate",value:function(e,t){this.props.prodDetail!==this.state.prodDetail&&this.setState({prodDetail:this.props.prodDetail})}},{key:"render",value:function(){var e=this.state,t=e.description,r=e.prodInfo,i=e.prodDetail,n=this.getTechnicalDescription();return(0,w.Y)("div",{className:"prodinfo",children:(0,w.FD)("div",{className:"collapsible-div",children:[(0,w.FD)(We(),{className:"product-description-collapsible",easing:"ease-in",trigger:this.triggerClosed("V\xf6rul\xfdsing"),triggerWhenOpen:this.triggerOpen("V\xf6rul\xfdsing"),open:r,children:[(0,w.Y)("div",{id:"product-description",dangerouslySetInnerHTML:{__html:t}}),this.state.product.manufacturerURL&&(0,w.Y)("p",{id:"manufacturer-url",children:(0,w.Y)("a",{target:"__blank",href:this.state.product.manufacturerURL,children:"Sko\xf0a v\xf6ru \xe1 vef framlei\xf0anda"})})]}),i||!this.state.technicalDescription||n.length<=0?"":(0,w.Y)("div",{id:"collapsible-fader"}),this.state.technicalDescription&&n.length>0?(0,w.Y)(We(),{className:"technical-description-collapsible"+(i?"":" closed"),easing:"ease-in",trigger:this.triggerClosed("T\xe6kniuppl\xfdsingar"),triggerWhenOpen:this.triggerOpen("T\xe6kniuppl\xfdsingar"),open:i,onOpening:this.props.openProdDetail,onClosing:this.props.closeProdDetail,children:(0,w.Y)("div",{id:"technical-description",children:(0,w.Y)("table",{children:(0,w.Y)("tbody",{children:this.getTechnicalDescription()})})})}):""]})})}}]),r}(h.default.Component),Be=r(7282),Re=function(e){(0,c.A)(r,e);var t=(0,d.A)(r);function r(e){var i;return(0,s.A)(this,r),(i=t.call(this,e)).getReviews=function(e){(0,a.A)(p().mark((function t(){var r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.getData("konakartjson",e);case 3:(r=t.sent).r.totalNumReviews>0&&i.setState({reviews:r.r.reviewArray}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},i.state={reviews:[]},i.getData=f.bQ.bind((0,o.A)(i)),i}return(0,l.A)(r,[{key:"componentDidMount",value:function(){var e={dataDesc:{limit:1},productId:this.props.prodId,f:"getReviewsPerProduct",s:"tolvutek"};this.getReviews(e)}},{key:"render",value:function(){if(this.state.reviews.length>0){var e=this.state.reviews[0];return(0,w.FD)("div",{className:"review",children:["hide_stars"===e.custom1?"":(0,w.Y)(Be.A,{rating:e.rating,starDimension:"33px",starSpacing:"5px",starRatedColor:"#e85607"}),(0,w.Y)("div",{className:"review-text",dangerouslySetInnerHTML:{__html:e.reviewText}})]})}return null}}]),r}(h.default.Component),Ve=r(1591),ze=(0,g.Ay)((function(){return Promise.all([r.e(2805),r.e(5568),r.e(3789),r.e(7650),r.e(4256),r.e(8105),r.e(9073),r.e(8278)]).then(r.bind(r,9059))})),Ue=function(e){(0,c.A)(r,e);var t=(0,d.A)(r);function r(e){var i;return(0,s.A)(this,r),(i=t.call(this,e)).setCartQuantity=function(e){for(var t,r=0,n=0;n<i.props.cart.products.length;n++){var a=i.props.cart.products[n];a.prodId===e&&(r=a.quantity,t=a.basketId)}i.setState({quantityInCart:r,basketId:t})},i.getManufacturer=function(e){(0,a.A)(p().mark((function t(){var r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.getData("konakartjson",{f:"getManufacturer",manufacturerId:e,languageId:9});case 3:(r=t.sent).r&&i.setState({manufacturer:r.r}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},i.getProdData=function(){(0,a.A)(p().mark((function e(){var t,r,n,a,s,l,o,c,d,u,h,m,f;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.getData(i.props.url,i.props.body);case 3:(t=e.sent).r?(a=window.displayPriceWithTax?t.r.priceIncTax:t.r.priceExTax,s=i.formatNumber(a),l=Math.round(a),o=window.displayPriceWithTax?t.r.specialPriceIncTax:t.r.specialPriceExTax,c=i.formatNumber(o),d=Math.round(o),u=null===(r=t.r.syningareintokMiscItem)||void 0===r?void 0:r.itemValue,h=null===(n=t.r.interactiveGallery)||void 0===n?void 0:n.itemValue,m=t.r.energyLabel,f=!!t.r.hideBundledProducts,i.setState({content:t.r,loading:!1,images:t.r.images.imgNames,price:s,priceInt:l,specialPrice
1:c,specialPriceInt:d,description:t.r.description,sku:t.r.sku,interactiveGallery:h,offerNumber:t.r.offerNumber,id:t.r.id,syningareintak:u,energyLabel:m,hideBundledProducts:f},i.pushToDataLayer),i.setCartQuantity(t.r.id),i.getManufacturer(t.r.manufacturerId)):i.setState({loading:!1}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},i.getStructuredData=function(){var e=i.state.content;if(null!=e){var t={"@context":"http://schema.org","@type":"Product",brand:{"@type":"Brand",name:e.manufacturerName},name:e.name,image:window.imageBase+e.image,description:e.description.replace(/(<([^>]+)>)/gi," "),mpn:e.sku,sku:e.sku,productID:e.id,url:window.location.origin+"/SelectProd?prodId="+e.id,offers:{"@type":"Offer",priceCurrency:"ISK",price:i.state.priceInt,itemCondition:"http://schema.org/NewCondition",url:window.location.origin+"/SelectProd?prodId="+e.id,availability:e.quantity>0||e.akureyriQuantity>0||e.reykjavikQuantity>0?"http://schema.org/InStock":"http://schema.org/OutOfStock",seller:{"@type":"Organization",name:"T\xf6lvutek"}}};return(0,w.Y)(Ve.A,{script:[{type:"application/ld+json",innerHTML:JSON.stringify(t)}]})}return null},i.pushToDataLayer=function(){var e=i.state.content;null!=e&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:{detail:{actionField:{list:""},products:[{name:e.name,id:e.id,price:i.state.specialPriceInt?i.state.specialPriceInt:i.state.priceInt,brand:e.manufacturerName}]}}}))},i.shouldDisplayDateAvailable=function(e){if(!e)return!1;var t=(0,f.qm)(),r=(0,f.qm)(e),i=r.diff(t,"month");return!r.isBefore(t)&&i<3},i.state={content:null,loading:!0,images:null,price:void 0,priceInt:void 0,specialPrice:void 0,description:null,sku:null,minWidth:1150,width:e.width,resize:!1,insurances:[],offerNumber:null,interactiveGallery:null,energyLabel:null,wishList:{productIds:[]},comparison:{productIds:[]},hideBundledProducts:!1,wishLists:[],manufacturer:void 0,prodDetail:!1},i.getData=f.bQ.bind((0,o.A)(i)),i.formatNumber=f.ZV.bind((0,o.A)(i)),i.alsoPurchasedSearch={dataDesc:{limit:10,offset:0},productId:i.props.prodId,languageId:9,f:"getAlsoPurchased",s:"tolvutek"},i.crossSellProductSearch={limit:15,productId:i.props.prodId,relationTypes:[2],languageId:9},i.bundledProductSearch={limit:20,productId:i.props.prodId,relationTypes:[5],languageId:9},i.bundlesProductBelongsToSearch={productId:i.props.prodId,languageId:9},i}return(0,l.A)(r,[{key:"componentDidMount",value:function(){this.getProdData(),this.props.browserWidth<=this.state.minWidth&&!this.state.resize&&this.setState({resize:!0}),this.props.store.dispatch((0,R.ok)())}},{key:"componentDidUpdate",value:function(e,t){this.props.browserWidth<=this.state.minWidth&&!this.state.resize&&this.setState({resize:!0}),this.props.browserWidth>this.state.minWidth&&this.state.resize&&this.setState({resize:!1}),this.props.cart.numberOfItems!==e.cart.numberOfItems&&this.setCartQuantity(this.state.id),this.props.wishList!==this.state.wishList&&this.setState({wishList:this.props.wishList}),this.props.wishLists!==this.state.wishLists&&this.setState({wishLists:this.props.wishLists}),this.props.comparison!==this.state.comparison&&this.setState({comparison:this.props.comparison})}},{key:"render",value:function(){var e=this,t=this.state,r=t.content,i=t.loading,n=t.images,a=t.price,s=t.priceInt,l=t.specialPrice,o=t.specialPriceInt,c=t.sku;if(i)return(0,w.Y)(_.A,{className:"center-spinner",size:120});if(!r)return(0,w.Y)("div",{children:"Uppl\xfdsingar um \xfeessa v\xf6ru finnast ekki"});var d=this.shouldDisplayDateAvailable(r.dateAvailable);return this.state.resize?(0,w.FD)("div",{children:[this.getStructuredData(),(0,w.FD)("div",{className:"row"+(this.state.resize?" mobile":""),children:[(0,w.Y)("h1",{className:"prod-name mobile",children:r.name}),(0,w.FD)("div",{className:"prod-number",children:["V\xf6run\xfamer: ",c]}),(0,w.Y)(Y,{images:n,videos:r.custom5,interactiveGallery:this.state.interactiveGallery,manufacturer:this.state.manufacturer,product:r,displayDateAvailable:d}
1),(0,w.Y)(Te,{product:r,price:a,priceInt:s,specialPrice:l,specialPriceInt:o,resize:this.state.resize,syningareintak:this.state.syningareintak,quantityInCart:this.state.quantityInCart,basketId:this.state.basketId,energyLabel:this.state.energyLabel,productIdsOnWishList:this.state.wishList.productIds,productIdsInComparison:this.state.comparison.productIds,store:this.props.store,wishLists:this.state.wishLists,displayDateAvailable:d,isLoggedIn:this.props.isLoggedIn,openTechnicalDescription:function(){return e.setState({prodDetail:!0})}}),(3===r.productType||r.productType,""),(0,w.Y)(Re,{prodId:this.props.prodId}),(0,w.Y)(qe,{product:r,mobile:!0,prodDetail:this.state.prodDetail,openProdDetail:function(){return e.setState({prodDetail:!0})},closeProdDetail:function(){return e.setState({prodDetail:!1})}})]}),3!==r.productType&&4!==r.productType||this.state.hideBundledProducts?"":(0,w.Y)("div",{id:"bundled-products",children:(0,w.Y)(ze,{url:"/FetchRelatedProducts",body:this.bundledProductSearch,heading:"V\xf6rur \xed pakkanum",bundle:!0,store:this.props.store})}),(0,w.Y)("div",{id:"cross-sell-products",children:(0,w.Y)(ze,{url:"/FetchRelatedProducts",body:this.crossSellProductSearch,heading:"Fylgihlutir og hli\xf0st\xe6\xf0ar v\xf6rur",store:this.props.store})}),!1,(0,w.Y)("div",{id:"also-purchased",children:(0,w.Y)(ze,{url:"/FetchAlsoPurchased",body:this.alsoPurchasedSearch,heading:"F\xf3lk sem keypti \xfeetta keypti l\xedka",store:this.props.store})}),(0,w.Y)("div",{id:"recently-viewed",children:(0,w.Y)(ze,{url:"/RecentlyViewed",body:{},heading:"N\xfdlega sko\xf0a\xf0",store:this.props.store})})]}):(0,w.FD)("div",{children:[this.getStructuredData(),(0,w.FD)("div",{className:"row",children:[(0,w.FD)("div",{style:{width:"100%"},className:"column-left",children:[(0,w.Y)(Y,{images:n,videos:r.custom5,interactiveGallery:this.state.interactiveGallery,manufacturer:this.state.manufacturer,product:r,displayDateAvailable:d}),(0,w.Y)(qe,{product:r,prodDetail:this.state.prodDetail,openProdDetail:function(){return e.setState({prodDetail:!0})},closeProdDetail:function(){return e.setState({prodDetail:!1})}})]}),(0,w.FD)("div",{style:{width:"100%"},className:"column-right",children:[(0,w.Y)(Te,{name:r.name,product:r,sku:c,price:a,priceInt:s,specialPrice:l,specialPriceInt:o,quantityInCart:this.state.quantityInCart,basketId:this.state.basketId,syningareintak:this.state.syningareintak,energyLabel:this.state.energyLabel,productIdsOnWishList:this.state.wishList.productIds,productIdsInComparison:this.state.comparison.productIds,store:this.props.store,wishLists:this.state.wishLists,kkSessionId:this.props.kkSessionId,displayDateAvailable:d,isLoggedIn:this.props.isLoggedIn,openTechnicalDescription:function(){return e.setState({prodDetail:!0})}}),(0,w.Y)(Re,{prodId:this.props.prodId}),(3===r.productType||r.productType,(0,w.Y)("div",{id:"cross-sell-products",children:(0,w.Y)(ze,{url:"/FetchRelatedProducts",body:this.crossSellProductSearch,heading:"Fylgihlutir og hli\xf0st\xe6\xf0ar v\xf6rur",resize:!1,slim:!0,store:this.props.store})})),!1]})]}),3===r.productType||4===r.productType?!this.state.hideBundledProducts&&(0,w.Y)("div",{id:"bundled-products",children:(0,w.Y)(ze,{url:"/FetchRelatedProducts",body:this.bundledProductSearch,heading:"V\xf6rur \xed pakkanum",bundle:!0,store:this.props.store})}):"",(0,w.Y)("div",{id:"also-purchased",children:(0,w.Y)(ze,{url:"/FetchAlsoPurchased",body:this.alsoPurchasedSearch,heading:"F\xf3lk sem keypti \xfeetta keypti l\xedka",store:this.props.store})}),(0,w.Y)("div",{id:"recently-viewed",children:(0,w.Y)(ze,{url:"/RecentlyViewed",body:{},heading:"N\xfdlega sko\xf0a\xf0",store:this.props.store})})]})}}]),r}(h.default.Component),_e=(0,m.Ng)((function(e){return e}),null)(Ue)},3324:function(e,t,r){r.d(t,{h:function(){return c}});var i,n,a=r(7906),s=["title","titleId"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},l.apply(null,arguments)}function o(e,t){var r=e.title,o=e.titleId,c=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;
1r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,s);return a.createElement("svg",l({height:"512pt",viewBox:"0 0 512 512",width:"512pt",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},c),r?a.createElement("title",{id:o},r):null,i||(i=a.createElement("path",{d:"m483.738281 0h-455.5c-15.597656.0078125-28.24218725 12.660156-28.238281 28.261719v455.5c.0078125 15.597656 12.660156 28.242187 28.261719 28.238281h455.476562c15.605469.003906 28.257813-12.644531 28.261719-28.25 0-.003906 0-.007812 0-.011719v-455.5c-.007812-15.597656-12.660156-28.24218725-28.261719-28.238281zm0 0",fill:"#4267b2"})),n||(n=a.createElement("path",{d:"m353.5 512v-198h66.75l10-77.5h-76.75v-49.359375c0-22.386719 6.214844-37.640625 38.316406-37.640625h40.683594v-69.128906c-7.078125-.941406-31.363281-3.046875-59.621094-3.046875-59 0-99.378906 36-99.378906 102.140625v57.035156h-66.5v77.5h66.5v198zm0 0",fill:"#fff"})))}var c=a.forwardRef(o);r.p},3353:function(e,t,r){var i=r(3029),n=r(2901),a=r(5501),s=r(9426),l=r(7906),o=r(1210),c=r(5206),d=r(4819),u=r(3934),p=r(2513),h=r(3829),m=r(2056),f=r(2166),g=r(3121),v=function(e){(0,a.A)(r,e);var t=(0,s.A)(r);function r(e){var n;return(0,i.A)(this,r),(n=t.call(this,e)).createWishList=function(e){var t={};t.name=e.name,t.description=e.description,t.publicWishList=e.publicWishList,t.quantityEnabled=e.quantityEnabled,(0,h.bQ)("CreateWishList",t).then((function(e){n.props.dispatch((0,m.kS)(null,n.props.productIDToAdd,null,e.wishList.id))})).then((function(){n.props.dispatch((0,m.ok)())})).then(n.props.toggleOpen)},n.createFormRef=l.default.createRef(),n.state={open:n.props.open},n}return(0,n.A)(r,[{key:"componentDidUpdate",value:function(e,t){this.props.open!==this.state.open&&this.setState({open:this.props.open})}},{key:"render",value:function(){var e=this;return(0,g.Y)(o.A,{open:this.state.open,title:"Stofna \xf3skalista",onCancel:this.props.toggleOpen,footer:[(0,g.Y)(c.Ay,{className:"origo-button white",onClick:this.props.toggleOpen,children:"Loka"},"back"),(0,g.Y)(c.Ay,{onClick:function(){return e.createFormRef.current.submit()},className:"origo-button",children:"Stofna"})],children:(0,g.FD)(d.A,{ref:this.createFormRef,onFinish:this.createWishList,children:[(0,g.Y)(d.A.Item,{name:"name",hasFeedback:!0,rules:[{required:!0,message:"Sl\xe1\xf0u inn nafn \xe1 listanum"},{type:"string",max:128,message:"Nafn lista getur ekki veri\xf0 lengra en 128 stafir"}],children:(0,g.Y)(u.A,{placeholder:"Nafn lista"})}),(0,g.Y)(d.A.Item,{name:"description",hasFeedback:!0,rules:[{type:"string",max:255,message:"L\xfdsing lista getur ekki veri\xf0 lengri en 255 stafir"}],children:(0,g.Y)(u.A.TextArea,{placeholder:"L\xfdsing lista",rows:3})}),(0,g.Y)(d.A.Item,{name:"publicWishList",valuePropName:"checked",children:(0,g.Y)(p.A,{value:!0,children:"H\xe6gt a\xf0 deila lista"})})]})})}}]),r}(l.default.Component);t.A=(0,f.Ng)((function(){return{}}),null)(v)},3370:function(e,t,r){r.d(t,{A:function(){return h}});var i=r(3029),n=r(2901),a=r(5501),s=r(9426),l=r(7906),o=r(5206),c=r(3934),d=r(5037),u=r(3847),p=r(3121),h=function(e){(0,a.A)(r,e);var t=(0,s.A)(r);function r(e){var n;return(0,i.A)(this,r),(n=t.call(this,e)).decreaseQuantity=function(e){var t=n.state.quantity-1;n.setState({quantity:t}),n.props.updateCart(e,t)},n.increaseQuantity=function(e){var t=n.state.quantity+1;n.setState({quantity:t}),n.props.updateCart(e,t)},n.onNumberChange=function(e){var t=e.target.value;if(!isNaN(t)){var r=parseInt(t);r>=0&&(n.setState({quantity:r}),n.props.updateCart(null,r))}},n.state={quantity:n.props.quantity},n}return(0,n.A)(r,[{key:"componentDidUpdate",value:function(e,t,r){this.props.quantity!==this.state.quantity&&this.setState({quantity:this.props.quantity})}},{key:"render",value:function(){return(0,p.FD)("div",{className:"number-input",children:[(0,p.Y)(o.Ay,{className:"button decrease",onClick:this.decreaseQuantity,children:(0,p.Y)(d.A,{})}),(0,p.Y)(c.A,{value:this.state.quantity,onChange:this.onNumberChange,onClick:function(e){e.preventDefault(),e.stopPropagation()}}),(0,p.Y)(o.Ay,{className:"button increase",onClick:this.increaseQuantity,children:(0,p.Y)(u.A,{})})]})}}]),r}(l.default.Component)},8759:function(e,t,r){r.d(t,{h:function(){return c}});var i,n,a=r(7906),s=["title","titleId"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},l.apply(null,arguments)}function o(e,t){var r=e.title,o=e.titleId,c=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;
1r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,s);return a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#000000",ref:t,"aria-labelledby":o},c),r?a.createElement("title",{id:o},r):null,i||(i=a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),n||(n=a.createElement("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"})))}var c=a.forwardRef(o);r.p}}]);
2//# sourceMappingURL=ProductPage.550df788.chunk.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.