{"ast":null,"code":"import _objectWithoutProperties from\"C:/ldt/LDT/Safemate_Management/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";var _excluded=[\"secondary\",\"isOpen\",\"onClose\",\"fixed\"];import{Button,Drawer,DrawerBody,DrawerCloseButton,DrawerContent,DrawerHeader,Flex,Text,useColorMode,useColorModeValue}from\"@chakra-ui/react\";import{Separator}from\"components/Separator/Separator\";import React from\"react\";import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";export default function Configurator(props){var secondary=props.secondary,isOpen=props.isOpen,onClose=props.onClose,fixed=props.fixed,rest=_objectWithoutProperties(props,_excluded);var _useColorMode=useColorMode(),colorMode=_useColorMode.colorMode,toggleColorMode=_useColorMode.toggleColorMode;var fixedDisplay=\"flex\";if(props.secondary){fixedDisplay=\"none\";}var textColor=useColorModeValue(\"text.700\",\"white\");var backgroundColor=useColorModeValue(\"white\",\"gray.800\");var settingsRef=React.useRef();return/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Drawer,{isOpen:props.isOpen,onClose:props.onClose,placement:document.documentElement.dir===\"rtl\"?\"left\":\"right\",finalFocusRef:settingsRef,blockScrollOnMount:false,children:/*#__PURE__*/_jsxs(DrawerContent,{bg:backgroundColor,borderRadius:\"16px\",me:{sm:\"16px\"},my:{sm:\"16px\"},children:[/*#__PURE__*/_jsxs(DrawerHeader,{pt:\"24px\",px:\"24px\",children:[/*#__PURE__*/_jsx(DrawerCloseButton,{sx:{_focus:{boxShadow:\"none\",outline:\"none\",bg:\"transparent\"}}}),/*#__PURE__*/_jsx(Text,{fontSize:\"xl\",fontWeight:700,color:textColor,mt:\"16px\",children:\"Safemate Cloud \\uC124\\uC815\"}),/*#__PURE__*/_jsx(Text,{fontSize:\"md\",fontWeight:400,color:\"text.300\",mb:\"16px\",mt:\"8px\",children:\"Safemate Cloud \\uC124\\uC815\\uC744 \\uBCC0\\uACBD\\uD560 \\uC218 \\uC788\\uC2B5\\uB2C8\\uB2E4.\"}),/*#__PURE__*/_jsx(Separator,{})]}),/*#__PURE__*/_jsx(DrawerBody,{w:\"340px\",ps:\"24px\",pe:\"40px\",children:/*#__PURE__*/_jsx(Flex,{flexDirection:\"column\",children:/*#__PURE__*/_jsxs(Flex,{justifyContent:\"space-between\",alignItems:\"center\",mb:\"24px\",children:[/*#__PURE__*/_jsx(Text,{fontSize:\"md\",fontWeight:500,color:textColor,mb:\"4px\",children:\"Dark/Light\"}),/*#__PURE__*/_jsxs(Button,{onClick:toggleColorMode,fontWeight:500,color:textColor,children:[\"Toggle \",colorMode===\"light\"?\"Dark\":\"Light\"]})]})})})]})})});}","map":{"version":3,"names":["Button","Drawer","DrawerBody","DrawerCloseButton","DrawerContent","DrawerHeader","Flex","Text","useColorMode","useColorModeValue","Separator","React","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Configurator","props","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","fontSize","fontWeight","color","mt","mb","w","ps","pe","flexDirection","justifyContent","alignItems","onClick"],"sources":["C:/ldt/LDT/Safemate_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":"+LAAA,OACEA,MAAM,CACNC,MAAM,CACNC,UAAU,CACVC,iBAAiB,CACjBC,aAAa,CACbC,YAAY,CACZC,IAAI,CACJC,IAAI,CACJC,YAAY,CACZ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