{"version":3,"file":"TabcordionVideo-CUUJo1KR-chunk.js","sources":["../../../src/components/page/campaign/tabcordion/TabcordionVideoModal.tsx","../../../src/components/page/campaign/tabcordion/TabcordionVideo.jsx"],"sourcesContent":["import ImageX from \"components/utility/images/ImageX\";\nimport { DDXModal } from \"components/ddx-modal/DDXModal\";\nimport React, { useEffect, useRef } from \"react\";\n\ninterface TabcordionVideoModalProps {\n\tshowModal: boolean;\n\tsetShowModal: React.Dispatch>;\n\tvid: string;\n}\n\nconst TabcordionVideoModal = ({\n\tshowModal,\n\tsetShowModal,\n\tvid\n}: React.PropsWithChildren) => {\n\tconst tabcordionModalRef = useRef(null);\n\n\tconst handleCloseModal = (e) => {\n\t\tif (e && e.type === \"keydown\" && [\"Tab\", \"Shift\"].includes(e.key)) return;\n\t\tsetShowModal(false);\n\t};\n\n\tuseEffect(() => {\n\t\tconst handleResize = () => {\n\t\t\tconst tabcordionModal = tabcordionModalRef.current;\n\n\t\t\tif (tabcordionModal) {\n\t\t\t\tsetShowModal(tabcordionModal.checkVisibility());\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener(\"resize\", handleResize);\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener(\"resize\", handleResize);\n\t\t};\n\t}, [setShowModal]);\n\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n};\n\nexport default TabcordionVideoModal;\n","import React, { useState } from \"react\";\nimport TabcordionVideoModal from \"./TabcordionVideoModal\";\nimport ButtonIcon from \"components/utility/button/ButtonIcon\";\nconst TabcordionVideo = ({ vid, image, alt }) => {\n\tconst [showModal, setShowModal] = useState(false);\n\n\tconst openModal = () => {\n\t\tsetShowModal((prev) => !prev);\n\t};\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default TabcordionVideo;\n"],"names":["TabcordionVideoModal","showModal","setShowModal","vid","tabcordionModalRef","useRef","handleCloseModal","useEffect","handleResize","tabcordionModal","jsx","DDXModal","jsxs","ImageX","TabcordionVideo","image","alt","useState","openModal","prev","ButtonIcon"],"mappings":"iMAUA,MAAMA,EAAuB,CAAC,CAC7B,UAAAC,EACA,aAAAC,EACA,IAAAC,CACD,IAA0D,CACnD,MAAAC,EAAqBC,SAAuB,IAAI,EAEhDC,EAAoB,GAAM,CAC3B,GAAK,EAAE,OAAS,WAAa,CAAC,MAAO,OAAO,EAAE,SAAS,EAAE,GAAG,GAChEJ,EAAa,EAAK,CACnB,EAEAK,OAAAA,EAAAA,UAAU,IAAM,CACf,MAAMC,EAAe,IAAM,CAC1B,MAAMC,EAAkBL,EAAmB,QAEvCK,GACUP,EAAAO,EAAgB,iBAAiB,CAEhD,EAEO,cAAA,iBAAiB,SAAUD,CAAY,EAEvC,IAAM,CACL,OAAA,oBAAoB,SAAUA,CAAY,CAClD,CAAA,EACE,CAACN,CAAY,CAAC,EAGhBQ,EAAA,IAACC,EAAA,CACA,UAAAV,EACA,iBAAAK,EACA,UAAU,0BAEV,SAACM,EAAAA,KAAA,MAAA,CAAI,GAAG,mBAAmB,IAAKR,EAC/B,SAAA,CAAAM,EAAA,IAAC,MAAA,CACA,UAAU,qBACV,SAAU,EACV,KAAK,SACL,UAAWJ,EACX,QAASA,EAET,eAACO,EAAO,CAAA,CAAA,CAAA,CACT,EACAH,EAAAA,IAAC,MAAI,CAAA,UAAU,4BACd,SAAAA,EAAA,IAAC,SAAA,CACA,UAAU,2BACV,MAAM,OACN,OAAO,OACP,YAAY,IACZ,MAAM,cACN,IAAKP,EACL,kBAAmB,GACnB,gBAAe,EAAA,CAAA,CAEjB,CAAA,CAAA,CACD,CAAA,CAAA,CACD,CAEF,EClEMW,EAAkB,CAAC,CAAE,IAAAX,EAAK,MAAAY,EAAO,IAAAC,KAAU,CAChD,KAAM,CAACf,EAAWC,CAAY,EAAIe,EAAAA,SAAS,EAAK,EAE1CC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