{"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