{"version":3,"sources":["webpack:///./Scripts/Components/ProductSlider.js","webpack:///./Scripts/Helpers/WindowSize.js","webpack:///../node_modules/keen-slider/react.js"],"names":["ProductSlider","props","dispatch","useDispatch","stateClass","setStateClass","useState","currentSlide","setCurrentSlide","slidesPerView","setSlidesPerView","windowWidth","initialWidth","window","innerWidth","initialHeight","innerHeight","size","setSize","useLayoutEffect","updateSize","addEventListener","removeEventListener","useWindowSize","sliderRef","slider","useKeenSlider","loop","slideChanged","s","details","relativeSlide","breakpoints","stylePrefix","StateStyles","startTime","useRef","changeState","el","complete","loadTime","classList","add","setTimeout","current","remove","onNeutralState","handleClickInDSIH","e","buttonParent","target","closest","Date","now","articleNumber","dataset","quantityFieldId","packageQuantity","onClick","quant","state","loadingDuration","minimumLoadingTime","onComplete","async","quantity","document","getElementById","value","cart","addToCartService","receive","ex","catchError","error","loadError","React","className","ref","children","map","child","i","key","itemType","dangerouslySetInnerHTML","__html","innerHTML","stopPropagation","prev","prevSlide","hidden","next","nextSlide","Math","floor","t","n","Object","defineProperty","enumerable","configurable","writable","r","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","push","apply","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","o","Array","isArray","Symbol","iterator","a","u","done","return","TypeError","c","from","prototype","toString","call","slice","constructor","name","test","f","h","v","p","b","m","g","y","w","M","j","O","S","A","x","k","P","E","T","D","C","L","I","V","X","Y","_","q","z","F","H","R","K","W","N","U","$","B","Z","ft","et","rt","J","Kt","cancelable","preventDefault","abs","setAttribute","Xt","Gt","lt","timeStamp","G","nt","pt","ut","removeAttribute","gt","Q","changedTouches","tt","identifier","targetTouches","ht","screenY","pageY","screenX","pageX","timestamp","hasAttribute","preventEvent","clientY","clientX","it","ot","Dt","Tt","cancelOnLeave","passive","at","ct","centered","controls","st","rtl","dt","rubberband","vertical","vt","requestAnimationFrame","bt","cancelAnimationFrame","mt","Yt","Ot","mode","Mt","jt","yt","wt","sign","duration","St","Ft","zt","friction","pow","ceil","At","l","xt","matchMedia","matches","Bt","Et","kt","autoAdjustSlidesPerView","max","d","Pt","Ct","slides","dragSpeed","offsetHeight","offsetWidth","spacing","It","resetSlide","initial","$t","_t","Vt","Lt","distance","concat","style","transform","removeProperty","Rt","Nt","Wt","qt","direction","progressTrack","progressSlides","positions","position","speed","absoluteSlide","widthOrHeight","Ht","clearTimeout","time","reduce","Ut","portion","round","destroy","refresh","moveToSlide","moveToSlideRelative","resize","options","querySelectorAll","HTMLElement","NodeList","min","indexOf","hasOwnProperty","default","useEffect","exports"],"mappings":"gLAWe,SAASA,EAAcC,GAClC,MAAMC,GAAWC,WACVC,EAAYC,IAAiBC,cAAS,KACtCC,EAAcC,IAAmBF,cAAS,IAC1CG,EAAeC,IAAoBJ,cAAS,IAC5CK,GCdI,WACX,IAAIC,EAAeC,QAAUA,OAAOC,WAAaD,OAAOC,WAAa,EACjEC,EAAgBF,QAAUA,OAAOG,YAAcH,OAAOG,YAAc,EACxE,MAAOC,EAAMC,IAAWZ,cAAS,CAACM,EAAcG,IAShD,OARAI,sBAAgB,KACd,SAASC,IACPF,EAAQ,CAACL,OAAOC,WAAYD,OAAOG,aACrC,CAGA,OAFAH,OAAOQ,iBAAiB,SAAUD,GAClCA,IACO,IAAMP,OAAOS,oBAAoB,SAAUF,EAAW,GAC5D,IACIH,CACX,CDC0BM,IACfC,EAAWC,IAAUC,mBAAc,CACtCjB,cAAeA,EACfkB,MAAM,EACNC,aAAaC,GACTrB,EAAgBqB,EAAEC,UAAUC,cAChC,EACAC,YAAa,CACT,sBAAuB,CACnBvB,cAAe,SAKrBwB,EAAc,uBACdC,EACO,YADPA,EAEO,YAFPA,EAGK,UAGLC,GAAYC,YAAO,GAYzB,MAAMC,EAAcA,CAACC,EAAIC,EAAUC,EAAW,KAC1CA,EAAWA,EAAW,EAAIA,EAAW,IAErCF,EAAGG,UAAUC,IACT,GAAGT,IACCM,EAAWL,EAAsBA,KAGzCS,YAAW,MAlBf,SAAwBL,GACpBH,EAAUS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,EAAErC,EAAErD,QAAQ2D,EAAE3D,SAAS,OAAOf,EAAEmE,GAAG,WAAWA,EAAEmM,SAAS,CAAE,GAAE,CAACjN,EAAEc,KAAK,CAACC,EAAE4B,EAAE,EAAE3B,OAAOC,eAAeH,EAAE,aAAa,CAAC5B,OAAM,GAAK,CAA9yWpB,CAAEiQ,EAAQ,EAAQ,M","file":"95.c4fe2bc1ab56882ae739.js","sourcesContent":["import React, { Fragment, useState, useEffect, useRef } from \"react\";\nimport { useKeenSlider } from \"keen-slider/react\";\nimport useWindowSize from \"../Helpers/WindowSize\";\nimport { add as addToCartService } from '../Services/Cart.service';\nimport { receive, loadError } from '../Actions/Cart.action';\nimport { catchError } from '../Actions/Error.action';\nimport { useDispatch } from 'react-redux';\n\nimport(\"keen-slider/keen-slider.min.css\");\n\n\nexport default function ProductSlider(props) {\n const dispatch = useDispatch();\n const [stateClass, setStateClass] = useState('');\n const [currentSlide, setCurrentSlide] = useState(0);\n const [slidesPerView, setSlidesPerView] = useState(4);\n const [windowWidth] = useWindowSize();\n const [sliderRef, slider] = useKeenSlider({\n slidesPerView: slidesPerView,\n loop: false,\n slideChanged(s) {\n setCurrentSlide(s.details().relativeSlide)\n },\n breakpoints: {\n \"(max-width: 1024px)\": {\n slidesPerView: 1.75\n },\n },\n });\n\n const stylePrefix = 'buy-button-in-slider';\n const StateStyles = {\n LOADING: '--loading',\n SUCCESS: '--success',\n ERROR: '--error',\n };\n\n const startTime = useRef(0);\n\n function onNeutralState(el) {\n startTime.current = 0;\n el.classList.remove(...el.classList);\n }\n\n function onLoadingState(el) {\n el.classList.add(`${stylePrefix}${StateStyles.LOADING}`);\n startTime.current = Date.now();\n }\n\n const changeState = (el, complete, loadTime = 0) => {\n loadTime = loadTime > 0 ? loadTime : 1000;\n\n el.classList.add(\n `${stylePrefix}${\n complete ? StateStyles.SUCCESS : StateStyles.ERROR\n }`);\n\n setTimeout(() => {\n onNeutralState(el);\n }, loadTime);\n };\n\n function onComplete(complete, state) {\n const loadingDuration = Date.now() - startTime.current;\n const minimumLoadingTime = props.minimumLoadingTime || 1000;\n // ensure the loading indicator is displayed at least a `minimumLoadingTime`\n // amount of time before changing it to Success or Error.\n if (loadingDuration >= minimumLoadingTime) {\n changeState(complete, state);\n } else {\n setTimeout(() => {\n changeState(complete, state, minimumLoadingTime - loadingDuration)\n }, minimumLoadingTime - loadingDuration);\n }\n }\n\n var getSlides = () => {\n return props.children.map((child, i) => {\n return
handleClickInDSIH(e)} itemType=\"http://schema.org/Product\" dangerouslySetInnerHTML={{__html: child.innerHTML}} >
\n });\n }\n\n const handleClickInDSIH = e => {\n //workaround for onclick because it can't be sent as a function in the dangerouslySetInnerHTML attribute\n let buttonParent = e.target.closest(\"buy-button\");\n if(buttonParent){\n onLoadingState(buttonParent);\n var articleNumber = buttonParent.dataset.articleNumber;\n var quantityFieldId = buttonParent.dataset.quantityFieldId\n var packageQuantity = buttonParent.dataset.packageQuantity;\n\n var quant = quantityFieldId * packageQuantity;\n\n onClick({articleNumber, quant});\n onComplete(buttonParent, true);\n }\n }\n\n const onClick = async ({ articleNumber, quantityFieldId }) => {\n\n try {\n const quantity = quantityFieldId\n ? document.getElementById(quantityFieldId).value\n : 1;\n const cart = await addToCartService({ articleNumber, quantity });\n dispatch(receive(cart));\n return true;\n } catch (ex) {\n dispatch(catchError(ex, (error) => loadError(error)));\n return false;\n }\n };\n\n const prevSlide = e => {\n e.stopPropagation();\n slider.prev();\n }\n\n const nextSlide = e => {\n e.stopPropagation();\n slider.next();\n }\n\n return(\n
\n
\n {getSlides()}\n
\n {(slider && windowWidth > 500) && \n <>\n
prevSlide(e)} hidden={currentSlide == 0}>\n \n
\n
nextSlide(e)} hidden={currentSlide >= slider.details().size - Math.floor(slidesPerView)}>\n \n
\n }\n
\n );\n}","import { useState, useLayoutEffect } from 'react';\n\nexport default function useWindowSize() {\n var initialWidth = window && window.innerWidth ? window.innerWidth : 0\n var initialHeight = window && window.innerHeight ? window.innerHeight : 0\n const [size, setSize] = useState([initialWidth, initialHeight]);\n useLayoutEffect(() => {\n function updateSize() {\n setSize([window.innerWidth, window.innerHeight]);\n }\n window.addEventListener('resize', updateSize);\n updateSize();\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n return size;\n}","/**\n * keen-slider 5.5.1\n * The HTML touch slider carousel with the most native feeling you will get.\n * https://keen-slider.io\n * Copyright 2020-2021 Eric Beyer \n * License: MIT\n * Released on: 2021-06-10\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports,require(\"react\")):\"function\"==typeof define&&define.amd?define([\"exports\",\"react\"],e):e((t=\"undefined\"!=typeof globalThis?globalThis:t||self).KeenSlider={},t.react)}(this,(function(t,e){\"use strict\";function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},z=\"data-keen-slider-moves\",F=\"data-keen-slider-v\",H=[],R=null,K=!1,W=!1,N=0,U=[];function $(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t.addEventListener(e,n,r),H.push([t,e,n,r])}function B(t){if(j&&O===Z(t)&&ft()){var n=et(t).x;if(!rt(t)&&P)return J(t);P&&(Kt(),S=n,P=!1),t.cancelable&&t.preventDefault();var r=S-n;E+=Math.abs(r),!T&&E>5&&(T=!0,e.setAttribute(z,!0)),Xt(k(r,Gt)*(lt()?-1:1),t.timeStamp),S=n}}function G(t){j||!ft()||nt(t.target)||(j=!0,P=!0,O=Z(t),T=!1,E=0,rt(t),pt(),M=v,S=et(t).x,Xt(0,t.timeStamp),ut(\"dragStart\"))}function J(t){j&&O===Z(t,!0)&&ft()&&(e.removeAttribute(z),j=!1,gt(),ut(\"dragEnd\"))}function Q(t){return t.changedTouches}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?Q(t):tt(t);return n?n[0]?n[0].identifier:\"error\":\"default\"}function tt(t){return t.targetTouches}function et(t){var e=tt(t);return{x:ht()?e?e[0].screenY:t.pageY:e?e[0].screenX:t.pageX,timestamp:t.timeStamp}}function nt(t){return t.hasAttribute(w.preventEvent)}function rt(t){var e=tt(t);if(!e)return!0;var n=e[0],r=ht()?n.clientY:n.clientX,i=ht()?n.clientX:n.clientY,o=void 0!==A&&void 0!==x&&Math.abs(x-i)<=Math.abs(A-r);return A=r,x=i,o}function it(t){ft()&&j&&t.preventDefault()}function ot(){$(window,\"orientationchange\",Dt),$(window,\"resize\",(function(){return Tt()})),$(e,\"dragstart\",(function(t){ft()&&t.preventDefault()})),$(e,\"mousedown\",G),$(w.cancelOnLeave?e:window,\"mousemove\",B),w.cancelOnLeave&&$(e,\"mouseleave\",J),$(window,\"mouseup\",J),$(e,\"touchstart\",G,{passive:!0}),$(e,\"touchmove\",B,{passive:!1}),$(e,\"touchend\",J,{passive:!0}),$(e,\"touchcancel\",J,{passive:!0}),$(window,\"wheel\",it,{passive:!1})}function at(){H.forEach((function(t){t[0].removeEventListener(t[1],t[2],t[3])})),H=[]}function ut(t){w[t]&&w[t](Gt)}function ct(){return w.centered}function ft(){return void 0!==n?n:w.controls}function st(){return w.loop&&r>1}function lt(){return w.rtl}function dt(){return!w.loop&&w.rubberband}function ht(){return!!w.vertical}function vt(){D=window.requestAnimationFrame(bt)}function pt(){D&&(window.cancelAnimationFrame(D),D=null),C=null}function bt(t){C||(C=t);var e=t-C,n=mt(e);if(e>=I)return Xt(L-X,!1),_?_():void ut(\"afterChange\");var r=Yt(n);if(0===r||st()||dt()||Y){if(0!==r&&dt()&&!Y)return Ot();X+=n,Xt(n,!1),vt()}else Xt(n-r,!1)}function mt(t){return L*V(t/I)-X}function gt(){switch(ut(\"beforeChange\"),w.mode){case\"free\":Mt();break;case\"free-snap\":jt();break;case\"snap\":default:yt()}}function yt(){wt((1===f&&0!==p?M:v)+Math.sign(p))}function wt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.duration,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=function(t){return 1+--t*t*t*t*t};St(Ft(t=zt(t,r,i)),n,o,e)}function Mt(){if(0===m)return!(!Yt(0)||st())&&wt(v);var t=w.friction/Math.pow(Math.abs(m),-.5);St(Math.pow(m,2)/t*Math.sign(m),6*Math.abs(m/t),(function(t){return 1-Math.pow(1-t,5)}))}function jt(){if(0===m)return wt(v);var t=w.friction/Math.pow(Math.abs(m),-.5),e=Math.pow(m,2)/t*Math.sign(m),n=6*Math.abs(m/t),r=(N+e)/(c/f);St((-1===p?Math.floor(r):Math.ceil(r))*(c/f)-N,n,(function(t){return 1-Math.pow(1-t,5)}))}function Ot(){if(pt(),0===m)return wt(v,!0);var t=.04/Math.pow(Math.abs(m),-.5),e=Math.pow(m,2)/t*Math.sign(m),n=function(t){return--t*t*t+1},r=m;St(e,3*Math.abs(r/t),n,!0,(function(){St(Ft(zt(v)),500,n,!0)}))}function St(t,e,n,r,i){pt(),L=t,X=0,I=e,V=n,Y=r,_=i,C=null,vt()}function At(n){var r=l(t);r.length&&(e=r[0],Tt(n),ot(),ut(\"mounted\"))}function xt(){var t,e=q.breakpoints||[];for(var n in e)window.matchMedia(n).matches&&(t=n);if(t===R)return!0;var r=(R=t)?e[R]:q;r.breakpoints&&R&&delete r.breakpoints,w=i(i(i({},Bt),q),r),K=!0,h=null,ut(\"optionsChanged\"),Et()}function kt(t){if(\"function\"==typeof t)return t();var e=w.autoAdjustSlidesPerView;e||(r=Math.max(t,r));var n=st()&&e?r-1:r;return d(t,1,Math.max(n,1))}function Pt(){xt(),W=!0,ut(\"created\")}function Et(t,e){t&&(q=t),e&&(R=null),Ct(),At(e)}function Tt(t){var n=window.innerWidth;if(xt()&&(n!==h||t)){h=n;var i=w.slides;\"number\"==typeof i?(u=null,r=i):(u=l(i,e),r=u?u.length:0);var a=w.dragSpeed;k=\"function\"==typeof a?a:function(t){return t*a},c=ht()?e.offsetHeight:e.offsetWidth,f=kt(w.slidesPerView),s=d(w.spacing,0,c/(f-1)-1),c+=s,o=ct()?(c/2-c/f/2)/c:0,It();var p=!W||K&&w.resetSlide?w.initial:v;$t(st()?p:_t(p)),ht()&&e.setAttribute(F,!0),K=!1}}function Dt(t){Tt(),setTimeout(Tt,500),setTimeout(Tt,2e3)}function Ct(){at(),Vt(),e&&e.hasAttribute(F)&&e.removeAttribute(F),ut(\"destroyed\")}function Lt(){u&&u.forEach((function(t,e){var n=g[e].distance*c-e*(c/f-s/f-s/f*(f-1)),r=ht()?0:n,i=ht()?n:0,o=\"translate3d(\".concat(r,\"px, \").concat(i,\"px, 0)\");t.style.transform=o,t.style[\"-webkit-transform\"]=o}))}function It(){u&&u.forEach((function(t){var e=\"calc(\".concat(100/f,\"% - \").concat(s/f*(f-1),\"px)\");ht()?(t.style[\"min-height\"]=e,t.style[\"max-height\"]=e):(t.style[\"min-width\"]=e,t.style[\"max-width\"]=e)}))}function Vt(){if(u){var t=[\"transform\",\"-webkit-transform\"];t=[].concat(a(t),ht?[\"min-height\",\"max-height\"]:[\"min-width\",\"max-width\"]),u.forEach((function(e){t.forEach((function(t){e.style.removeProperty(t)}))}))}}function Xt(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();Rt(t,n),e&&(t=Nt(t)),N+=t,Wt()}function Yt(t){var e=c*(r-1*(ct()?1:f))/f,n=N+t;return n>e?n-e:n<0?n:0}function _t(t){return d(t,0,r-1-(ct()?0:f-1))}function qt(){var t=Math.abs(y),e=N<0?1-t:t;return{direction:p,progressTrack:e,progressSlides:e*r/(r-1),positions:g,position:N,speed:m,relativeSlide:(v%r+r)%r,absoluteSlide:v,size:r,slidesPerView:f,widthOrHeight:c}}function zt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return st()?e?Ht(t,n):t:_t(t)}function Ft(t){return-(-c/f*t+N)}function Ht(t,e){var n=(v%r+r)%r,i=n<(t=(t%r+r)%r)?-n-r+t:-(n-t),o=n>t?r-n+t:t-n,a=e?Math.abs(i)<=o?i:o:t(r-1)/f?-r/f:n<-r/f+1?r/f:0);var i=1/f,a=n+i,u=a1?1-(a-1)*f/1:1;t.push({portion:u<0||u>1?0:u,distance:lt()?-1*n+1-i:n})}g=t,Lt(),ut(\"move\")}function Nt(t){if(st())return t;var e=Yt(t);if(!dt())return t-e;if(0===e)return t;var n;return t*(n=e/c,(1-Math.abs(n))*(1-Math.abs(n)))}function Ut(){var t=Math.round(N/(c/f));t!==v&&(!st()&&(t<0||t>r-1)||(v=t,ut(\"slideChanged\")))}function $t(t){ut(\"beforeChange\"),Xt(Ft(t),!1),ut(\"afterChange\")}var Bt={autoAdjustSlidesPerView:!0,centered:!1,breakpoints:null,controls:!0,dragSpeed:1,friction:.0025,loop:!1,initial:0,duration:500,preventEvent:\"data-keen-slider-pe\",slides:\".keen-slider__slide\",vertical:!1,resetSlide:!1,slidesPerView:1,spacing:0,mode:\"snap\",rtl:!1,rubberband:!0,cancelOnLeave:!0},Gt={controls:function(t){n=t},destroy:Ct,refresh:function(t){Et(t,!0)},next:function(){wt(v+1,!0)},prev:function(){wt(v-1,!0)},moveToSlide:function(t,e){wt(t,!0,e)},moveToSlideRelative:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;wt(t,!0,n,!0,e)},resize:function(){Tt(!0)},details:function(){return qt()},options:function(){var t=i({},w);return delete t.breakpoints,t}};return Pt(),Gt}function s(t){return Array.prototype.slice.call(t)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return\"function\"==typeof t?s(t()):\"string\"==typeof t?s(e.querySelectorAll(t)):t instanceof HTMLElement!=!1?[t]:t instanceof NodeList!=!1?t:[]}function d(t,e,n){return Math.min(Math.max(t,e),n)}Math.sign||(Math.sign=function(t){return(t>0)-(t<0)||+t});var h=function t(e,n){var r=Object.prototype.toString.call(e);if(r!==Object.prototype.toString.call(n))return!1;if([\"[object Array]\",\"[object Object]\"].indexOf(r)<0)return!1;var i=\"[object Array]\"===r?e.length:Object.keys(e).length;if(i!==(\"[object Array]\"===r?n.length:Object.keys(n).length))return!1;var o=function(e,n){var r=Object.prototype.toString.call(e);if([\"[object Array]\",\"[object Object]\"].indexOf(r)>=0){if(!t(e,n))return!1}else{if(r!==Object.prototype.toString.call(n))return!1;if(\"[object Function]\"===r){if(e.toString()!==n.toString())return!1}else if(e!==n)return!1}};if(\"[object Array]\"===r){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},n=e.useRef(),r=e.useRef();function i(t){return h(r.current,t)||(r.current=t),r.current}var a=e.useState(null),u=o(a,2),c=u[0],s=u[1];return e.useEffect((function(){var t=new f(n.current,r.current);return s(t),function(){t.destroy()}}),[i(t)]),[n,c]},Object.defineProperty(t,\"__esModule\",{value:!0})}));\n//# sourceMappingURL=react.js.map\n"],"sourceRoot":""}