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IAAKA,EACLQ,IAAKP,EACLQ,MAAI,EAMJC,KAAK,SACLC,MAAO,EACPC,MAAO,EACPC,UAAW,EACXC,aAAc,EACdT,WAAYA,OCrBdU,SAASC,iBAAiB,oBAAoB,WAC1BD,SAASE,iBAAiB,+BAClCC,SAAQ,SAAAC,GAClB,IAAM1C,EAAa2C,KAAKC,MAAMF,EAAOG,QAAQ7C,aAE7C8C,EAAAA,EAAAA,QAAO,kDACN,yBAAC,EAAD,CAAO9C,WAAYA,EAAYC,SAAUD,EAAW+C,MAEpD,yBAACC,EAAD,CAAoBhD,WAAYA,EAAYC,SAAUD,EAAW+C,OAC7DL,GAELA,SAAAA,EAAQrB,gBAAgB,yBAI1B,IAAM2B,EAAqB,SAAC,GAA6B,IAA3BhD,EAA2B,EAA3BA,WAAYC,EAAe,EAAfA,SACjCwB,EAAyCzB,EAAzCyB,WAAYC,EAA6B1B,EAA7B0B,WAAYC,EAAiB3B,EAAjB2B,OAAQxB,EAASH,EAATG,KAElC8C,GAAWC,EAAAA,EAAAA,QAAO,MAWxB,OATArB,EAAAA,EAAAA,YAAU,WACT,IAAMsB,EAAeb,SAASc,cAAT,2BAA2CnD,EAA3C,oCAErBc,EAAWoC,EAAc1B,EAAY,WAAY,IACjDV,EAAWoC,EAAczB,EAAY,WAAY,IACjDX,EAAWoC,EAAcxB,EAAQ,OAAQ,MAEvC,IAEI,gCAAK0B,UAAU,mBACpBlD,EAAO,8BAAGmD,KAAMnD,GAAM,yBAAC,EAAD,CAAcoB,IAAK0B,EAAUjD,WAAYA,KAAqB,yBAAC,EAAD,CAAcuB,IAAK0B,EAAUjD,WAAYA,M","sources":["webpack://lottie-player/external var [\"wp\",\"element\"]","webpack://lottie-player/./src/Style.js","webpack://lottie-player/./src/Const/functions.js","webpack://lottie-player/./src/LottiePlayer.js","webpack://lottie-player/./src/script.js"],"sourcesContent":["var __WEBPACK_NAMESPACE_OBJECT__ = wp.element;","const Style = ({ attributes, clientId }) => {\r\n\tconst { playerAlign, link, width, controlsHeight, controlsBG, controlsIconColor, controlsIconHoverColor, controlsIconActiveColor, controlsTrackColor, controlsThumbColor } = attributes;\r\n\r\n\treturn \r\n}\r\nexport default Style;","export const toggleAttr = (selector, condition, attribute, value) => {\r\n\tcondition && selector?.setAttribute(attribute, value);\r\n\t!condition && selector?.removeAttribute(attribute, value);\r\n}","import { useEffect, forwardRef } from '@wordpress/element';\r\n\r\nimport { toggleAttr } from './Const/functions';\r\n\r\nconst LottiePlayer = ({ attributes }, ref) => {\r\n\tconst { file, isControls, isAutoplay, isLoop, background } = attributes;\r\n\r\n\tuseEffect(() => {\r\n\t\tif (ref?.current) {\r\n\t\t\ttoggleAttr(ref?.current, isControls, 'controls', '');\r\n\t\t\ttoggleAttr(ref?.current, isAutoplay, 'autoplay', '');\r\n\t\t\ttoggleAttr(ref?.current, isLoop, 'loop', '');\r\n\t\t}\r\n\t}, [ref]);\r\n\r\n\treturn