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ACPW,EAAWC,IAEpBZ,EAAWC,OAAWc,EACfZ,GAeT,SAASqB,IACP,IAAIZ,EAAOxB,IACPqC,EAAaN,EAAaP,GAM9B,GAJAZ,EAAW0B,UACXzB,EAAW0B,KACXtB,EAAeO,EAEXa,EAAY,CACd,QAAgBV,IAAZX,EACF,OAAOa,EAAYZ,GAErB,GAAIG,EAIF,OAFAoB,aAAaxB,GACbA,EAAUvD,WAAWqE,EAAcpB,GAC5Ba,EAAWN,GAMtB,YAHgBU,IAAZX,IACFA,EAAUvD,WAAWqE,EAAcpB,IAE9BK,EAIT,OA3GAL,EAAOT,EAASS,IAAS,EACrBZ,EAASa,KACXQ,IAAYR,EAAQQ,QAEpBL,GADAM,EAAS,YAAaT,GACHT,EAAUD,EAASU,EAAQG,UAAY,EAAGJ,GAAQI,EACrEO,EAAW,aAAcV,IAAYA,EAAQU,SAAWA,GAoG1De,EAAUK,OApCV,gBACkBd,IAAZX,GACFwB,aAAaxB,GAEfE,EAAiB,EACjBN,EAAWK,EAAeJ,EAAWG,OAAUW,GAgCjDS,EAAUM,MA7BV,WACE,YAAmBf,IAAZX,EAAwBD,EAASkB,EAAajC,MA6BhDoC,I,sBC3LT,IAAIhE,EAAO2B,EAAQ,OAsBnBQ,EAAOC,QAJG,WACR,OAAOpC,EAAKuE,KAAK3C","sources":["components/views/Animation/CustomAnimation/arrows.jsx","components/views/Animation/CustomAnimation/slider.jsx","../node_modules/lodash/debounce.js","../node_modules/lodash/now.js"],"sourcesContent":["import React, { useEffect, useState, useRef } from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport clsx from \"clsx\";\r\nimport debounce from \"lodash/debounce\";\r\nimport makeStyles from \"@material-ui/styles/makeStyles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport ReactSVGIcon from \"@micado-digital/react-svg-icon/ReactSVGIcon\";\r\n\r\nconst useStyles = makeStyles(theme => ({\r\n\tarrow: {\r\n\t\tcursor: \"pointer\"\r\n\t},\r\n\tarrowDisabled: {\r\n\t\tdisplay: \"none\"\r\n\t},\r\n\tarrowPrev: {\r\n\t\topacity: 0.2,\r\n\t\tpointerEvents: \"none\",\r\n\t\ttransition: theme.transitions.create(\"opacity\", {\r\n\t\t\teasing: theme.transitions?.easing?.easeIn,\r\n\t\t\tduration: 300\r\n\t\t})\r\n\t},\r\n\tarrowPrevShow: {\r\n\t\topacity: 1,\r\n\t\tpointerEvents: \"all\"\r\n\t},\r\n\tarrowNext: {\r\n\t\topacity: 0.2,\r\n\t\tpointerEvents: \"none\",\r\n\t\ttransition: theme.transitions.create(\"opacity\", {\r\n\t\t\teasing: theme.transitions?.easing?.easeIn,\r\n\t\t\tduration: 300\r\n\t\t})\r\n\t},\r\n\tarrowNextShow: {\r\n\t\topacity: 1,\r\n\t\tpointerEvents: \"all\"\r\n\t}\r\n}));\r\n\r\nconst Arrows = ({ active, entries, showDuration = 2000, onChange }) => {\r\n\tconst [show, setShow] = useState(false);\r\n\tconst css = useStyles();\r\n\tconst isMounted = useRef(false);\r\n\r\n\tuseEffect(() => {\r\n\t\tisMounted.current = true;\r\n\t\tsetTimeout(() => {\r\n\t\t\tif (isMounted.current) {\r\n\t\t\t\tsetShow(true);\r\n\t\t\t}\r\n\t\t}, showDuration);\r\n\t\treturn () => {\r\n\t\t\tisMounted.current = false;\r\n\t\t};\r\n\t}, [showDuration]);\r\n\r\n\tconst handlePrev = debounce(() => {\r\n\t\tonChange(active - 1);\r\n\t}, 300);\r\n\r\n\tconst handleNext = debounce(() => {\r\n\t\tonChange(active + 1);\r\n\t}, 300);\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n\r\nArrows.propTypes = {\r\n\tactive: PropTypes.number,\r\n\tentries: PropTypes.number,\r\n\tprevIcon: PropTypes.object,\r\n\tnextIcon: PropTypes.object,\r\n\tshowDuration: PropTypes.number,\r\n\tonChange: PropTypes.func\r\n};\r\n\r\nexport default Arrows;\r\n","import React, { lazy, Suspense } from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport clsx from \"clsx\";\r\nimport makeStyles from \"@material-ui/styles/makeStyles\";\r\n\r\nconst SlideItem = lazy(() =>\r\n\timport(/* webpackChunkName: \"reactAnimationSlideItem\" */ \"./slide-item\")\r\n);\r\n\r\nconst useStyles = makeStyles(() => ({\r\n\troot: {\r\n\t\tdisplay: \"flex\",\r\n\t\tflex: 1,\r\n\t\tjustifyContent: \"center\",\r\n\t\tposition: \"relative\",\r\n\t\tzIndex: 1\r\n\t}\r\n}));\r\n\r\nconst Slider = ({\r\n\tabsoluteMediaURLs,\r\n\tactive,\r\n\tentries,\r\n\thandleArrowChange,\r\n\tSliderID,\r\n\titems,\r\n\tmediaFormats,\r\n\tplayAnimation,\r\n\tstopAnimation,\r\n\ttextStyles,\r\n\twebpFallback\r\n}) => {\r\n\tconst css = useStyles();\r\n\r\n\tconst textLength = items?.filter(item => item?.texts)?.length;\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{items.map(({ id, media, texts }, index) => {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t} key={id}>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t);\r\n\t\t\t})}\r\n\t\t
\r\n\t);\r\n};\r\n\r\nSlider.propTypes = {\r\n\tabsoluteMediaURLs: PropTypes.bool,\r\n\tactive: PropTypes.number,\r\n\titems: PropTypes.array,\r\n\tmediaFormats: PropTypes.object,\r\n\twebpFallback: PropTypes.bool\r\n};\r\n\r\nexport default Slider;\r\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n"],"names":["useStyles","makeStyles","theme","arrow","cursor","arrowDisabled","display","arrowPrev","opacity","pointerEvents","transition","transitions","create","easing","easeIn","duration","arrowPrevShow","arrowNext","arrowNextShow","active","entries","showDuration","onChange","useState","show","setShow","css","isMounted","useRef","useEffect","current","setTimeout","handlePrev","debounce","handleNext","className","clsx","onClick","src","size","SlideItem","lazy","root","flex","justifyContent","position","zIndex","absoluteMediaURLs","handleArrowChange","SliderID","items","mediaFormats","playAnimation","stopAnimation","textStyles","webpFallback","textLength","filter","item","texts","length","map","index","id","media","Suspense","fallback","textsLength","isObject","require","now","toNumber","nativeMax","Math","max","nativeMin","min","module","exports","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","timeWaiting","remainingWait","debounced","isInvoking","arguments","this","clearTimeout","cancel","flush","Date"],"sourceRoot":""}