{"version":3,"sources":["../ui/src/components/player-components/snapshot/snapshot.tsx"],"sourcesContent":["import Image from \"next/image\";\r\nimport {useState} from \"react\";\r\nimport { zIndex } from \"interfaces\";\r\nimport { handleSnapShot } from \"redux-share/actions/controller.actions\";\r\nimport IMAGES from \"../../../../../images/importImages\";\r\n\r\nconst Snapshot = () => {\r\n\r\n    const [loading, setLoading] = useState(false);\r\n\r\n    return (\r\n        <div \r\n            className={`pl-absolute pl-top-3 pl-left-3 ${!loading && \"pl-cursor-pointer\"} pl-bg-secondary-600 pl-rounded-[4px]`}\r\n            style={{zIndex: zIndex.snapshot}} \r\n            onClick={() => {\r\n                if (!loading) handleSnapShot(setLoading)\r\n            }}\r\n            onDoubleClick={(event: any) => event.stopPropagation()}\r\n        >\r\n            <div className=\"pl-flex pl-items-center pl-justify-center pl-gap-1 pl-py-1 pl-px-[6px]\">\r\n                <Image src={IMAGES.scissor} width={12} height={12} />\r\n                <p className=\"pl-text-[12px] pl-text-white dark:pl-text-dark pl-font-medium\">{loading ? \"درحال ذخیره سازی\" : \"عکس گرفتن\"}</p>\r\n            </div>\r\n        </div>\r\n    )\r\n}\r\n\r\nexport default Snapshot;"],"mappings":"sLAAAA,IAAA,OAAOC,MAAW,aAClB,OAAQ,YAAAC,MAAe,QAkBX,OACI,OAAAC,EADJ,QAAAC,MAAA,oBAbZ,IAAMC,EAAW,IAAM,CAEnB,GAAM,CAACC,EAASC,CAAU,EAAIC,EAAS,EAAK,EAE5C,OACIL,EAAC,OACG,UAAW,kCAAkC,CAACG,GAAW,mBAAmB,wCAC5E,MAAO,CAAC,QAAuB,EAC/B,QAAS,IAAM,CACNA,GAASG,EAAeF,CAAU,CAC3C,EACA,cAAgBG,GAAeA,EAAM,gBAAgB,EAErD,SAAAN,EAAC,OAAI,UAAU,yEACX,UAAAD,EAACQ,EAAA,CAAM,IAAKC,EAAO,QAAS,MAAO,GAAI,OAAQ,GAAI,EACnDT,EAAC,KAAE,UAAU,gEAAiE,SAAAG,EAAU,yFAAqB,oDAAY,GAC7H,EACJ,CAER,EAEOO,EAAQR","names":["init_esm_shims","Image","useState","jsx","jsxs","Snapshot","loading","setLoading","useState","handleSnapShot","event","Image","importImages_default","snapshot_default"]}