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AA4E,IAAAmI,aAAA,QAAAE,MAAAzC,EAAAkB,YAAA,EAAA1L,GAAA4E,IAAAmI,aAAA,QAAAE,MAAAzC,EAAAmB,aAAA,EAAA/G,IAAAmI,aAAA,QAAAE,MAAAzC,EAAAuB,SAAA,GAAAnH,IAAAmI,aAAA,QAAAE,MAAAzC,EAAA2B,UAAA,IAAAvH,IAAAmI,aAAA,QAAAE,MAAAzC,EAAAc,IAAA,IAAA5G,GAAAE,IAAAmI,aAAA,QAAAE,MAAAzC,EAAAqC,kBAAA,EAAAjI,IAAAmI,aAAA,QAAAE,MAAAzC,EAAA6B,SAAA,EAAA3H,IAAA6C,GAAA3C,IAAAmI,aAAA,QAAAE,MAAAzC,EAAAsC,mBAAA,EAAAlI,IAAAmI,aAAA,QAAAE,MAAAzC,EAAAkC,UAAA,EAAAnF,KAAA,CAAAlD,CAAAA,OAAAiJ,OAAA,CAAA/I,CAAA","sources":["webpack://_N_E/./components/DragSlider/DragSlider.js","webpack://_N_E/./node_modules/react-compare-image/dist/bundle.js","webpack://_N_E/"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport ReactCompareImage from \"react-compare-image\";\nimport { Constants } from \"../../adapters/helpers/Constants\";\nimport DOMPurify from 'isomorphic-dompurify';\n\nconst DragSlider = (props) => {\n const { dragSliderTitle, beforeImage, afterImage, classNames, disclaimer } = props?.document?.fields;\n const getMobileViewAsset = (asset) => asset?.fields?.mobileImage?.fields?.asset?.fields?.file?.url || null; \n const getDesktopViewAsset = (asset) => asset?.fields?.desktopImage?.fields?.asset?.fields?.file?.url || null; \n \n const [beforeAsset, setbeforeAsset] = useState(''); \n const [afterAsset, setafterAsset] = useState(''); \n\n useEffect(()=> { \n const handleResize = () => {\n const isMobileView = window.innerWidth <= Constants.desktopViewStart;\n isMobileView ? setbeforeAsset(getMobileViewAsset(beforeImage)) : setbeforeAsset(getDesktopViewAsset(beforeImage)); \n isMobileView ? setafterAsset(getMobileViewAsset(afterImage)) : setafterAsset(getDesktopViewAsset(afterImage)); \n }\n \n handleResize();\n window.addEventListener('resize', handleResize);\n\n },[])\n\n const handleDrag = (e) => {\n if (typeof window.dataLayer !== 'undefined') {\n window.dataLayer.push({\n event: 'customEvent',\n GAeventCategory: 'event_informational_action',\n GAeventAction: 'event_button_click',\n GAeventLabel: 'comparison_slider'\n });\n }\n }\n\n return (\n
\n {dragSliderTitle &&

}\n
\n
\n handleDrag(e)}\n leftImageCss={{'paddingLeft':'4px'}}\n /> \n
\n
\n {disclaimer &&

}\n

\n ) \n}\n\nexport default DragSlider;","(()=>{\"use strict\";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>l});const r=require(\"react\");var o=e.n(r);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e){for(var t=1;t{const{aspectRatio:t=\"taller\",handle:n=null,handleSize:a=40,hover:l=!1,leftImage:s,leftImageAlt:u=\"\",leftImageCss:c={},leftImageLabel:d=null,onSliderPositionChange:p=(()=>{}),rightImage:g,rightImageAlt:m=\"\",rightImageCss:f={},rightImageLabel:h=null,skeleton:b=null,sliderLineColor:v=\"#ffffff\",sliderLineWidth:x=2,sliderPositionPercentage:w=.5,vertical:y=!1}=e,E=!y,[L,O]=(0,r.useState)(w),[$,j]=(0,r.useState)(0),[S,P]=(0,r.useState)(0),[C,I]=(0,r.useState)(!1),[R,k]=(0,r.useState)(!1),[D,z]=(0,r.useState)(!1),A=(0,r.useRef)(null),M=(0,r.useRef)(null),_=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=A.current,t=new ResizeObserver((([e,...t])=>{const r=e.target.getBoundingClientRect().width;j(r)}));return t.observe(e),()=>t.disconnect()}),[]),(0,r.useEffect)((()=>(_.current.complete&&I(!0),()=>{I(!1)})),[s]),(0,r.useEffect)((()=>(M.current.complete&&k(!0),()=>{k(!1)})),[g]);const F=R&&C;(0,r.useEffect)((()=>{const e=e=>{const t=e||window.event,r=t.touches?t.touches[0].pageX:t.pageX,o=t.touches?t.touches[0].pageY:t.pageY,n=r-window.pageXOffset,i=o-window.pageYOffset,a=M.current.getBoundingClientRect();let l=E?n-a.left:i-a.top;const s=0+x/2,u=E?$-x/2:S-x/2;lu&&(l=u),O(E?l/$:l/S),p&&p(E?l/$:l/S)},r=t=>{z(!0),\"touches\"in t||t.preventDefault(),e(t),window.addEventListener(\"mousemove\",e),window.addEventListener(\"touchmove\",e)},o=()=>{z(!1),window.removeEventListener(\"mousemove\",e),window.removeEventListener(\"touchmove\",e)},n=A.current;if(F){n.addEventListener(\"touchstart\",r),window.addEventListener(\"touchend\",o),l?(n.addEventListener(\"mousemove\",e),n.addEventListener(\"mouseleave\",o)):(n.addEventListener(\"mousedown\",r),window.addEventListener(\"mouseup\",o));const i=_.current.naturalHeight/_.current.naturalWidth,a=M.current.naturalHeight/M.current.naturalWidth,s=\"taller\"===t?Math.max(i,a):Math.min(i,a);P($*s)}return()=>{n.removeEventListener(\"touchstart\",r),window.removeEventListener(\"touchend\",o),n.removeEventListener(\"mousemove\",e),n.removeEventListener(\"mouseleave\",o),n.removeEventListener(\"mousedown\",r),window.removeEventListener(\"mouseup\",o),window.removeEventListener(\"mousemove\",e),window.removeEventListener(\"touchmove\",e)}}),[F,t,S,$,E,l,x,y]);const T={container:{boxSizing:\"border-box\",position:\"relative\",width:\"100%\",height:`${S}px`,overflow:\"hidden\"},rightImage:i({clip:E?`rect(auto, auto, auto, ${$*L}px)`:`rect(${S*L}px, auto, auto, auto)`,display:\"block\",height:\"100%\",objectFit:\"cover\",position:\"absolute\",width:\"100%\"},f),leftImage:i({clip:E?`rect(auto, ${$*L}px, auto, auto)`:`rect(auto, auto, ${S*L}px, auto)`,display:\"block\",height:\"100%\",objectFit:\"cover\",position:\"absolute\",width:\"100%\"},c),slider:{alignItems:\"center\",cursor:!l&&E?\"ew-resize\":!l&&!E&&\"ns-resize\",display:\"flex\",flexDirection:E?\"column\":\"row\",height:E?\"100%\":`${a}px`,justifyContent:\"center\",left:E?$*L-a/2+\"px\":0,position:\"absolute\",top:E?0:S*L-a/2+\"px\",width:E?`${a}px`:\"100%\"},line:{background:v,boxShadow:\"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)\",flex:\"0 1 auto\",height:E?\"100%\":`${x}px`,width:E?`${x}px`:\"100%\"},handleCustom:{alignItems:\"center\",boxSizing:\"border-box\",display:\"flex\",flex:\"1 0 auto\",height:\"auto\",justifyContent:\"center\",width:\"auto\"},handleDefault:{alignItems:\"center\",border:`${x}px solid ${v}`,borderRadius:\"100%\",boxShadow:\"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)\",boxSizing:\"border-box\",display:\"flex\",flex:\"1 0 auto\",height:`${a}px`,justifyContent:\"center\",width:`${a}px`,transform:E?\"none\":\"rotate(90deg)\"},leftArrow:{border:`inset ${.15*a}px rgba(0,0,0,0)`,borderRight:`${.15*a}px solid ${v}`,height:\"0px\",marginLeft:`-${.25*a}px`,marginRight:.25*a+\"px\",width:\"0px\"},rightArrow:{border:`inset ${.15*a}px rgba(0,0,0,0)`,borderLeft:`${.15*a}px solid ${v}`,height:\"0px\",marginRight:`-${.25*a}px`,width:\"0px\"},leftLabel:{background:\"rgba(0, 0, 0, 0.5)\",color:\"white\",left:E?\"5%\":\"50%\",opacity:D?0:1,padding:\"10px 20px\",position:\"absolute\",top:E?\"50%\":\"3%\",transform:E?\"translate(0,-50%)\":\"translate(-50%, 0)\",transition:\"opacity 0.1s ease-out\"},rightLabel:{background:\"rgba(0, 0, 0, 0.5)\",color:\"white\",opacity:D?0:1,padding:\"10px 20px\",position:\"absolute\",left:E?null:\"50%\",right:E?\"5%\":null,top:E?\"50%\":null,bottom:E?null:\"3%\",transform:E?\"translate(0,-50%)\":\"translate(-50%, 0)\",transition:\"opacity 0.1s ease-out\"},leftLabelContainer:{clip:E?`rect(auto, ${$*L}px, auto, auto)`:`rect(auto, auto, ${S*L}px, auto)`,height:\"100%\",position:\"absolute\",width:\"100%\"},rightLabelContainer:{clip:E?`rect(auto, auto, auto, ${$*L}px)`:`rect(${S*L}px, auto, auto, auto)`,height:\"100%\",position:\"absolute\",width:\"100%\"}};return o().createElement(o().Fragment,null,b&&!F&&o().createElement(\"div\",{style:i({},T.container)},b),o().createElement(\"div\",{style:i(i({},T.container),{},{display:F?\"block\":\"none\"}),ref:A,\"data-testid\":\"container\"},o().createElement(\"img\",{onLoad:()=>k(!0),alt:m,\"data-testid\":\"right-image\",ref:M,src:g,style:T.rightImage}),o().createElement(\"img\",{onLoad:()=>I(!0),alt:u,\"data-testid\":\"left-image\",ref:_,src:s,style:T.leftImage}),o().createElement(\"div\",{style:T.slider},o().createElement(\"div\",{style:T.line}),n?o().createElement(\"div\",{style:T.handleCustom},n):o().createElement(\"div\",{style:T.handleDefault},o().createElement(\"div\",{style:T.leftArrow}),o().createElement(\"div\",{style:T.rightArrow})),o().createElement(\"div\",{style:T.line})),d&&o().createElement(\"div\",{style:T.leftLabelContainer},o().createElement(\"div\",{style:T.leftLabel},d)),h&&o().createElement(\"div\",{style:T.rightLabelContainer},o().createElement(\"div\",{style:T.rightLabel},h))))};module.exports=t})();","(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[3944],{\n\n/***/ 3944:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67294);\n/* harmony import */ var react_compare_image__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50864);\n/* harmony import */ var react_compare_image__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_compare_image__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24036);\n/* harmony import */ var isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29238);\n/* harmony import */ var isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85893);\n\n\n\n\n\n\n\nvar DragSlider = function DragSlider(props) {\n var _props$document;\n\n var _props$document$field = props == null ? void 0 : (_props$document = props.document) == null ? void 0 : _props$document.fields,\n dragSliderTitle = _props$document$field.dragSliderTitle,\n beforeImage = _props$document$field.beforeImage,\n afterImage = _props$document$field.afterImage,\n classNames = _props$document$field.classNames,\n disclaimer = _props$document$field.disclaimer;\n\n var getMobileViewAsset = function getMobileViewAsset(asset) {\n var _asset$fields, _asset$fields$mobileI, _asset$fields$mobileI2, _asset$fields$mobileI3, _asset$fields$mobileI4, _asset$fields$mobileI5;\n\n return (asset == null ? void 0 : (_asset$fields = asset.fields) == null ? void 0 : (_asset$fields$mobileI = _asset$fields.mobileImage) == null ? void 0 : (_asset$fields$mobileI2 = _asset$fields$mobileI.fields) == null ? void 0 : (_asset$fields$mobileI3 = _asset$fields$mobileI2.asset) == null ? void 0 : (_asset$fields$mobileI4 = _asset$fields$mobileI3.fields) == null ? void 0 : (_asset$fields$mobileI5 = _asset$fields$mobileI4.file) == null ? void 0 : _asset$fields$mobileI5.url) || null;\n };\n\n var getDesktopViewAsset = function getDesktopViewAsset(asset) {\n var _asset$fields2, _asset$fields2$deskto, _asset$fields2$deskto2, _asset$fields2$deskto3, _asset$fields2$deskto4, _asset$fields2$deskto5;\n\n return (asset == null ? void 0 : (_asset$fields2 = asset.fields) == null ? void 0 : (_asset$fields2$deskto = _asset$fields2.desktopImage) == null ? void 0 : (_asset$fields2$deskto2 = _asset$fields2$deskto.fields) == null ? void 0 : (_asset$fields2$deskto3 = _asset$fields2$deskto2.asset) == null ? void 0 : (_asset$fields2$deskto4 = _asset$fields2$deskto3.fields) == null ? void 0 : (_asset$fields2$deskto5 = _asset$fields2$deskto4.file) == null ? void 0 : _asset$fields2$deskto5.url) || null;\n };\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''),\n beforeAsset = _useState[0],\n setbeforeAsset = _useState[1];\n\n var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''),\n afterAsset = _useState2[0],\n setafterAsset = _useState2[1];\n\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n var handleResize = function handleResize() {\n var isMobileView = window.innerWidth <= _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_2__/* .Constants.desktopViewStart */ .gT.desktopViewStart;\n isMobileView ? setbeforeAsset(getMobileViewAsset(beforeImage)) : setbeforeAsset(getDesktopViewAsset(beforeImage));\n isMobileView ? setafterAsset(getMobileViewAsset(afterImage)) : setafterAsset(getDesktopViewAsset(afterImage));\n };\n\n handleResize();\n window.addEventListener('resize', handleResize);\n }, []);\n\n var handleDrag = function handleDrag(e) {\n if (typeof window.dataLayer !== 'undefined') {\n window.dataLayer.push({\n event: 'customEvent',\n GAeventCategory: 'event_informational_action',\n GAeventAction: 'event_button_click',\n GAeventLabel: 'comparison_slider'\n });\n }\n };\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(\"div\", {\n className: classNames,\n children: [dragSliderTitle && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"h2\", {\n className: \"dragslider-heading\",\n dangerouslySetInnerHTML: {\n __html: isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_3___default().sanitize(dragSliderTitle)\n }\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"div\", {\n className: \"mainWrapper\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"div\", {\n className: \"contentWrapper\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)((react_compare_image__WEBPACK_IMPORTED_MODULE_1___default()), {\n leftImage: beforeAsset,\n rightImage: afterAsset,\n sliderLineWidth: 4,\n sliderPositionPercentage: 0.95,\n onSliderPositionChange: function onSliderPositionChange(e) {\n return handleDrag(e);\n },\n leftImageCss: {\n 'paddingLeft': '4px'\n }\n })\n })\n }), disclaimer && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(\"p\", {\n className: \"dragslider-disclaimer\",\n dangerouslySetInnerHTML: {\n __html: isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_3___default().sanitize(disclaimer)\n }\n })]\n });\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DragSlider);\n\n/***/ }),\n\n/***/ 50864:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n(()=>{\"use strict\";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>l});const r=__webpack_require__(67294);var o=e.n(r);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e){for(var t=1;t{const{aspectRatio:t=\"taller\",handle:n=null,handleSize:a=40,hover:l=!1,leftImage:s,leftImageAlt:u=\"\",leftImageCss:c={},leftImageLabel:d=null,onSliderPositionChange:p=(()=>{}),rightImage:g,rightImageAlt:m=\"\",rightImageCss:f={},rightImageLabel:h=null,skeleton:b=null,sliderLineColor:v=\"#ffffff\",sliderLineWidth:x=2,sliderPositionPercentage:w=.5,vertical:y=!1}=e,E=!y,[L,O]=(0,r.useState)(w),[$,j]=(0,r.useState)(0),[S,P]=(0,r.useState)(0),[C,I]=(0,r.useState)(!1),[R,k]=(0,r.useState)(!1),[D,z]=(0,r.useState)(!1),A=(0,r.useRef)(null),M=(0,r.useRef)(null),_=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=A.current,t=new ResizeObserver((([e,...t])=>{const r=e.target.getBoundingClientRect().width;j(r)}));return t.observe(e),()=>t.disconnect()}),[]),(0,r.useEffect)((()=>(_.current.complete&&I(!0),()=>{I(!1)})),[s]),(0,r.useEffect)((()=>(M.current.complete&&k(!0),()=>{k(!1)})),[g]);const F=R&&C;(0,r.useEffect)((()=>{const e=e=>{const t=e||window.event,r=t.touches?t.touches[0].pageX:t.pageX,o=t.touches?t.touches[0].pageY:t.pageY,n=r-window.pageXOffset,i=o-window.pageYOffset,a=M.current.getBoundingClientRect();let l=E?n-a.left:i-a.top;const s=0+x/2,u=E?$-x/2:S-x/2;lu&&(l=u),O(E?l/$:l/S),p&&p(E?l/$:l/S)},r=t=>{z(!0),\"touches\"in t||t.preventDefault(),e(t),window.addEventListener(\"mousemove\",e),window.addEventListener(\"touchmove\",e)},o=()=>{z(!1),window.removeEventListener(\"mousemove\",e),window.removeEventListener(\"touchmove\",e)},n=A.current;if(F){n.addEventListener(\"touchstart\",r),window.addEventListener(\"touchend\",o),l?(n.addEventListener(\"mousemove\",e),n.addEventListener(\"mouseleave\",o)):(n.addEventListener(\"mousedown\",r),window.addEventListener(\"mouseup\",o));const i=_.current.naturalHeight/_.current.naturalWidth,a=M.current.naturalHeight/M.current.naturalWidth,s=\"taller\"===t?Math.max(i,a):Math.min(i,a);P($*s)}return()=>{n.removeEventListener(\"touchstart\",r),window.removeEventListener(\"touchend\",o),n.removeEventListener(\"mousemove\",e),n.removeEventListener(\"mouseleave\",o),n.removeEventListener(\"mousedown\",r),window.removeEventListener(\"mouseup\",o),window.removeEventListener(\"mousemove\",e),window.removeEventListener(\"touchmove\",e)}}),[F,t,S,$,E,l,x,y]);const T={container:{boxSizing:\"border-box\",position:\"relative\",width:\"100%\",height:`${S}px`,overflow:\"hidden\"},rightImage:i({clip:E?`rect(auto, auto, auto, ${$*L}px)`:`rect(${S*L}px, auto, auto, auto)`,display:\"block\",height:\"100%\",objectFit:\"cover\",position:\"absolute\",width:\"100%\"},f),leftImage:i({clip:E?`rect(auto, ${$*L}px, auto, auto)`:`rect(auto, auto, ${S*L}px, auto)`,display:\"block\",height:\"100%\",objectFit:\"cover\",position:\"absolute\",width:\"100%\"},c),slider:{alignItems:\"center\",cursor:!l&&E?\"ew-resize\":!l&&!E&&\"ns-resize\",display:\"flex\",flexDirection:E?\"column\":\"row\",height:E?\"100%\":`${a}px`,justifyContent:\"center\",left:E?$*L-a/2+\"px\":0,position:\"absolute\",top:E?0:S*L-a/2+\"px\",width:E?`${a}px`:\"100%\"},line:{background:v,boxShadow:\"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)\",flex:\"0 1 auto\",height:E?\"100%\":`${x}px`,width:E?`${x}px`:\"100%\"},handleCustom:{alignItems:\"center\",boxSizing:\"border-box\",display:\"flex\",flex:\"1 0 auto\",height:\"auto\",justifyContent:\"center\",width:\"auto\"},handleDefault:{alignItems:\"center\",border:`${x}px solid ${v}`,borderRadius:\"100%\",boxShadow:\"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)\",boxSizing:\"border-box\",display:\"flex\",flex:\"1 0 auto\",height:`${a}px`,justifyContent:\"center\",width:`${a}px`,transform:E?\"none\":\"rotate(90deg)\"},leftArrow:{border:`inset ${.15*a}px rgba(0,0,0,0)`,borderRight:`${.15*a}px solid ${v}`,height:\"0px\",marginLeft:`-${.25*a}px`,marginRight:.25*a+\"px\",width:\"0px\"},rightArrow:{border:`inset ${.15*a}px rgba(0,0,0,0)`,borderLeft:`${.15*a}px solid ${v}`,height:\"0px\",marginRight:`-${.25*a}px`,width:\"0px\"},leftLabel:{background:\"rgba(0, 0, 0, 0.5)\",color:\"white\",left:E?\"5%\":\"50%\",opacity:D?0:1,padding:\"10px 20px\",position:\"absolute\",top:E?\"50%\":\"3%\",transform:E?\"translate(0,-50%)\":\"translate(-50%, 0)\",transition:\"opacity 0.1s ease-out\"},rightLabel:{background:\"rgba(0, 0, 0, 0.5)\",color:\"white\",opacity:D?0:1,padding:\"10px 20px\",position:\"absolute\",left:E?null:\"50%\",right:E?\"5%\":null,top:E?\"50%\":null,bottom:E?null:\"3%\",transform:E?\"translate(0,-50%)\":\"translate(-50%, 0)\",transition:\"opacity 0.1s ease-out\"},leftLabelContainer:{clip:E?`rect(auto, ${$*L}px, auto, auto)`:`rect(auto, auto, ${S*L}px, auto)`,height:\"100%\",position:\"absolute\",width:\"100%\"},rightLabelContainer:{clip:E?`rect(auto, auto, auto, ${$*L}px)`:`rect(${S*L}px, auto, auto, auto)`,height:\"100%\",position:\"absolute\",width:\"100%\"}};return o().createElement(o().Fragment,null,b&&!F&&o().createElement(\"div\",{style:i({},T.container)},b),o().createElement(\"div\",{style:i(i({},T.container),{},{display:F?\"block\":\"none\"}),ref:A,\"data-testid\":\"container\"},o().createElement(\"img\",{onLoad:()=>k(!0),alt:m,\"data-testid\":\"right-image\",ref:M,src:g,style:T.rightImage}),o().createElement(\"img\",{onLoad:()=>I(!0),alt:u,\"data-testid\":\"left-image\",ref:_,src:s,style:T.leftImage}),o().createElement(\"div\",{style:T.slider},o().createElement(\"div\",{style:T.line}),n?o().createElement(\"div\",{style:T.handleCustom},n):o().createElement(\"div\",{style:T.handleDefault},o().createElement(\"div\",{style:T.leftArrow}),o().createElement(\"div\",{style:T.rightArrow})),o().createElement(\"div\",{style:T.line})),d&&o().createElement(\"div\",{style:T.leftLabelContainer},o().createElement(\"div\",{style:T.leftLabel},d)),h&&o().createElement(\"div\",{style:T.rightLabelContainer},o().createElement(\"div\",{style:T.rightLabel},h))))};module.exports=t})();\n\n/***/ })\n\n}]);"],"names":["self","push","__unused_webpack_module","__webpack_exports__","__webpack_require__","r","react__WEBPACK_IMPORTED_MODULE_0__","react_compare_image__WEBPACK_IMPORTED_MODULE_1__","react_compare_image__WEBPACK_IMPORTED_MODULE_1___default","n","_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_2__","isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_3__","isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_3___default","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__","props","_props$document","_props$document$field","document","fields","dragSliderTitle","beforeImage","afterImage","classNames","disclaimer","getMobileViewAsset","asset","_asset$fields","_asset$fields$mobileI","_asset$fields$mobileI2","_asset$fields$mobileI3","_asset$fields$mobileI4","_asset$fields$mobileI5","mobileImage","file","url","getDesktopViewAsset","_asset$fields2","_asset$fields2$deskto","_asset$fields2$deskto2","_asset$fields2$deskto3","_asset$fields2$deskto4","_asset$fields2$deskto5","desktopImage","_useState","useState","beforeAsset","setbeforeAsset","_useState2","afterAsset","setafterAsset","useEffect","handleResize","isMobileView","window","innerWidth","gT","desktopViewStart","addEventListener","handleDrag","e","dataLayer","event","GAeventCategory","GAeventAction","GAeventLabel","jsxs","className","children","jsx","dangerouslySetInnerHTML","__html","sanitize","leftImage","rightImage","sliderLineWidth","sliderPositionPercentage","onSliderPositionChange","leftImageCss","module","__unused_webpack_exports","t","__esModule","default","d","a","o","Object","defineProperty","enumerable","get","prototype","hasOwnProperty","call","Symbol","toStringTag","value","l","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","apply","i","arguments","length","forEach","toPrimitive","String","configurable","writable","getOwnPropertyDescriptors","defineProperties","aspectRatio","handle","handleSize","hover","s","leftImageAlt","u","c","leftImageLabel","p","g","rightImageAlt","m","rightImageCss","f","rightImageLabel","h","skeleton","b","sliderLineColor","v","x","w","vertical","y","E","L","O","$","j","S","P","C","I","R","k","D","z","A","useRef","M","_","current","ResizeObserver","target","getBoundingClientRect","width","observe","disconnect","complete","F","touches","pageX","pageY","pageXOffset","pageYOffset","left","top","preventDefault","removeEventListener","naturalHeight","naturalWidth","Math","max","min","T","container","boxSizing","position","height","overflow","clip","display","objectFit","slider","alignItems","cursor","flexDirection","justifyContent","line","background","boxShadow","flex","handleCustom","handleDefault","border","borderRadius","transform","leftArrow","borderRight","marginLeft","marginRight","rightArrow","borderLeft","leftLabel","color","opacity","padding","transition","rightLabel","right","bottom","leftLabelContainer","rightLabelContainer","createElement","Fragment","style","ref","onLoad","alt","src","exports"],"sourceRoot":""}