{"ast":null,"code":"import _objectWithoutProperties from \"C:/LDT/DSP_Management/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nvar _excluded = [\"secondary\", \"isOpen\", \"onClose\", \"fixed\"];\nvar _jsxFileName = \"C:\\\\LDT\\\\DSP_Management\\\\src\\\\components\\\\Configurator\\\\Configurator.js\",\n  _s = $RefreshSig$();\nimport { Button, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerHeader, Flex, Text, useColorMode, useColorModeValue } from \"@chakra-ui/react\";\nimport { Separator } from \"components/Separator/Separator\";\nimport PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { jsxDEV as _jsxDEV, Fragment as _Fragment } from \"react/jsx-dev-runtime\";\nexport default function Configurator(props) {\n  _s();\n  var secondary = props.secondary,\n    isOpen = props.isOpen,\n    onClose = props.onClose,\n    fixed = props.fixed,\n    rest = _objectWithoutProperties(props, _excluded);\n  var _useColorMode = useColorMode(),\n    colorMode = _useColorMode.colorMode,\n    toggleColorMode = _useColorMode.toggleColorMode;\n  var fixedDisplay = \"flex\";\n  if (props.secondary) {\n    fixedDisplay = \"none\";\n  }\n  var textColor = useColorModeValue(\"text.700\", \"white\");\n  var backgroundColor = useColorModeValue(\"white\", \"gray.800\");\n  var settingsRef = React.useRef();\n  return /*#__PURE__*/_jsxDEV(_Fragment, {\n    children: /*#__PURE__*/_jsxDEV(Drawer, {\n      isOpen: props.isOpen,\n      onClose: props.onClose,\n      placement: document.documentElement.dir === \"rtl\" ? \"left\" : \"right\",\n      finalFocusRef: settingsRef,\n      blockScrollOnMount: false,\n      children: /*#__PURE__*/_jsxDEV(DrawerContent, {\n        bg: backgroundColor,\n        borderRadius: \"16px\",\n        me: {\n          sm: \"16px\"\n        },\n        my: {\n          sm: \"16px\"\n        },\n        children: [/*#__PURE__*/_jsxDEV(DrawerHeader, {\n          pt: \"24px\",\n          px: \"24px\",\n          children: [/*#__PURE__*/_jsxDEV(DrawerCloseButton, {\n            sx: {\n              _focus: {\n                boxShadow: \"none\",\n                outline: \"none\",\n                bg: \"transparent\"\n              }\n            }\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 51,\n            columnNumber: 13\n          }, this), /*#__PURE__*/_jsxDEV(Text, {\n            fontSize: \"xl\",\n            fontWeight: 700,\n            color: textColor,\n            mt: \"16px\",\n            children: \"Safemate Cloud \\uC124\\uC815\"\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 60,\n            columnNumber: 13\n          }, this), /*#__PURE__*/_jsxDEV(Text, {\n            fontSize: \"md\",\n            fontWeight: 400,\n            color: \"text.300\",\n            mb: \"16px\",\n            mt: \"8px\",\n            children: \"Safemate Cloud \\uC124\\uC815\\uC744 \\uBCC0\\uACBD\\uD560 \\uC218 \\uC788\\uC2B5\\uB2C8\\uB2E4.\"\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 63,\n            columnNumber: 13\n          }, this), /*#__PURE__*/_jsxDEV(Separator, {}, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 66,\n            columnNumber: 13\n          }, this)]\n        }, void 0, true, {\n          fileName: _jsxFileName,\n          lineNumber: 50,\n          columnNumber: 11\n        }, this), /*#__PURE__*/_jsxDEV(DrawerBody, {\n          w: \"340px\",\n          ps: \"24px\",\n          pe: \"40px\",\n          children: /*#__PURE__*/_jsxDEV(Flex, {\n            flexDirection: \"column\",\n            children: /*#__PURE__*/_jsxDEV(Flex, {\n              justifyContent: \"space-between\",\n              alignItems: \"center\",\n              mb: \"24px\",\n              children: [/*#__PURE__*/_jsxDEV(Text, {\n                fontSize: \"md\",\n                fontWeight: 500,\n                color: textColor,\n                mb: \"4px\",\n                children: \"Dark/Light\"\n              }, void 0, false, {\n                fileName: _jsxFileName,\n                lineNumber: 75,\n                columnNumber: 17\n              }, this), /*#__PURE__*/_jsxDEV(Button, {\n                onClick: toggleColorMode,\n                fontWeight: 500,\n                color: textColor,\n                children: [\"Toggle \", colorMode === \"light\" ? \"Dark\" : \"Light\"]\n              }, void 0, true, {\n                fileName: _jsxFileName,\n                lineNumber: 78,\n                columnNumber: 17\n              }, this)]\n            }, void 0, true, {\n              fileName: _jsxFileName,\n              lineNumber: 70,\n              columnNumber: 15\n            }, this)\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 69,\n            columnNumber: 13\n          }, this)\n        }, void 0, false, {\n          fileName: _jsxFileName,\n          lineNumber: 68,\n          columnNumber: 11\n        }, this)]\n      }, void 0, true, {\n        fileName: _jsxFileName,\n        lineNumber: 40,\n        columnNumber: 9\n      }, this)\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 33,\n      columnNumber: 7\n    }, this)\n  }, void 0, false);\n}\n_s(Configurator, \"M1PNDg/rCV1POknWQp57THG/WME=\", false, function () {\n  return [useColorMode, useColorModeValue, useColorModeValue];\n});\n_c = Configurator;\nConfigurator.propTypes = {\n  secondary: PropTypes.bool,\n  isOpen: PropTypes.bool,\n  onClose: PropTypes.func,\n  fixed: PropTypes.bool\n};\nvar _c;\n$RefreshReg$(_c, \"Configurator\");","map":{"version":3,"names":["Button","Drawer","DrawerBody","DrawerCloseButton","DrawerContent","DrawerHeader","Flex","Text","useColorMode","useColorModeValue","Separator","PropTypes","React","jsxDEV","_jsxDEV","Fragment","_Fragment","Configurator","props","_s","secondary","isOpen","onClose","fixed","rest","_objectWithoutProperties","_excluded","_useColorMode","colorMode","toggleColorMode","fixedDisplay","textColor","backgroundColor","settingsRef","useRef","children","placement","document","documentElement","dir","finalFocusRef","blockScrollOnMount","bg","borderRadius","me","sm","my","pt","px","sx","_focus","boxShadow","outline","fileName","_jsxFileName","lineNumber","columnNumber","fontSize","fontWeight","color","mt","mb","w","ps","pe","flexDirection","justifyContent","alignItems","onClick","_c","propTypes","bool","func","$RefreshReg$"],"sources":["C:/LDT/DSP_Management/src/components/Configurator/Configurator.js"],"sourcesContent":["import {\n  Button,\n  Drawer,\n  DrawerBody,\n  DrawerCloseButton,\n  DrawerContent,\n  DrawerHeader,\n  Flex,\n  Text,\n  useColorMode,\n  useColorModeValue,\n} from \"@chakra-ui/react\";\n\nimport { Separator } from \"components/Separator/Separator\";\nimport PropTypes from \"prop-types\";\nimport React from \"react\";\n\nexport default function Configurator(props) {\n  const { secondary, isOpen, onClose, fixed, ...rest } = props;\n\n  const { colorMode, toggleColorMode } = useColorMode();\n\n  let fixedDisplay = \"flex\";\n  if (props.secondary) {\n    fixedDisplay = \"none\";\n  }\n\n  const textColor = useColorModeValue(\"text.700\", \"white\");\n  const backgroundColor = useColorModeValue(\"white\", \"gray.800\")\n  const settingsRef = React.useRef();\n  return (\n    <>\n      <Drawer\n        isOpen={props.isOpen}\n        onClose={props.onClose}\n        placement={document.documentElement.dir === \"rtl\" ? \"left\" : \"right\"}\n        finalFocusRef={settingsRef}\n        blockScrollOnMount={false}\n      >\n        <DrawerContent\n          bg={backgroundColor}\n          borderRadius=\"16px\"\n          me={{\n              sm: \"16px\",\n            }}\n          my={{\n            sm: \"16px\",\n          }}\n          >\n          <DrawerHeader pt=\"24px\" px=\"24px\">\n            <DrawerCloseButton \n            sx={{\n              _focus: {\n                boxShadow: \"none\",\n                outline: \"none\",\n                bg: \"transparent\",\n              },\n            }}\n            />\n            <Text fontSize=\"xl\" fontWeight={700} color={textColor} mt=\"16px\">\n              Safemate Cloud 설정\n            </Text>\n            <Text fontSize=\"md\" fontWeight={400} color=\"text.300\" mb=\"16px\" mt=\"8px\">\n              Safemate Cloud 설정을 변경할 수 있습니다.\n            </Text>\n            <Separator />\n          </DrawerHeader>\n          <DrawerBody w=\"340px\" ps=\"24px\" pe=\"40px\">\n            <Flex flexDirection=\"column\">\n              <Flex\n                justifyContent=\"space-between\"\n                alignItems=\"center\"\n                mb=\"24px\"\n              >\n                <Text fontSize=\"md\" fontWeight={500} color={textColor} mb=\"4px\">\n                  Dark/Light\n                </Text>\n                <Button onClick={toggleColorMode} fontWeight={500} color={textColor}>\n                  Toggle {colorMode === \"light\" ? \"Dark\" : \"Light\"}\n                </Button>\n              </Flex>\n            </Flex>\n          </DrawerBody>\n        </DrawerContent>\n      </Drawer>\n    </>\n  );\n}\nConfigurator.propTypes = {\n  secondary: PropTypes.bool,\n  isOpen: PropTypes.bool,\n  onClose: PropTypes.func,\n  fixed: PropTypes.bool,\n};\n"],"mappings":";;;;AAAA,SACEA,MAAM,EACNC,MAAM,EACNC,UAAU,EACVC,iBAAiB,EACjBC,aAAa,EACbC,YAAY,EACZC,IAAI,EACJC,IAAI,EACJC,YAAY,EACZC,iBAAiB,QACZ,kBAAkB;AAEzB,SAASC,SAAS,QAAQ,gCAAgC;AAC1D,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA,EAAAC,QAAA,IAAAC,SAAA;AAE1B,eAAe,SAASC,YAAYA,CAACC,KAAK,EAAE;EAAAC,EAAA;EAC1C,IAAQC,SAAS,GAAsCF,KAAK,CAApDE,SAAS;IAAEC,MAAM,GAA8BH,KAAK,CAAzCG,MAAM;IAAEC,OAAO,GAAqBJ,KAAK,CAAjCI,OAAO;IAAEC,KAAK,GAAcL,KAAK,CAAxBK,KAAK;IAAKC,IAAI,GAAAC,wBAAA,CAAKP,KAAK,EAAAQ,SAAA;EAE5D,IAAAC,aAAA,GAAuCnB,YAAY,CAAC,CAAC;IAA7CoB,SAAS,GAAAD,aAAA,CAATC,SAAS;IAAEC,eAAe,GAAAF,aAAA,CAAfE,eAAe;EAElC,IAAIC,YAAY,GAAG,MAAM;EACzB,IAAIZ,KAAK,CAACE,SAAS,EAAE;IACnBU,YAAY,GAAG,MAAM;EACvB;EAEA,IAAMC,SAAS,GAAGtB,iBAAiB,CAAC,UAAU,EAAE,OAAO,CAAC;EACxD,IAAMuB,eAAe,GAAGvB,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC;EAC9D,IAAMwB,WAAW,GAAGrB,KAAK,CAACsB,MAAM,CAAC,CAAC;EAClC,oBACEpB,OAAA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