You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
6.7 KiB

2 years ago
{"ast":null,"code":"var _jsxFileName = \"/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/RoomCardInfo/index.js\";\nimport React from \"react\";\nimport QRCode from \"react-qr-code\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nconst RoomCardInfo = _ref => {\n let {\n items\n } = _ref;\n return /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"w-[600px] h-[344px] p-4 relative flex flex-row items-center justify-between rounded-md border bg-surface border-surfaceBorder\",\n children: [/*#__PURE__*/_jsxDEV(\"img\", {\n src: \"images/RoomCardInfoflower2.svg\",\n alt: \"flower\",\n className: \"w-1/2 absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 7\n }, this), items.map((item, index) => /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"space-y-2\",\n children: [/*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-lg text-primary font-bold mb-4\",\n children: item.name\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 11\n }, this), /*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-xs text-primary\",\n children: [\"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0648\\u0631\\u0648\\u062F:\", /*#__PURE__*/_jsxDEV(\"span\", {\n className: \"mr-1\",\n children: item.enterData\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 11\n }, this), /*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-xs text-primary\",\n children: [\"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0627\\u0646\\u0642\\u0636\\u0627 \\u0627\\u0642\\u0627\\u0645\\u062A:\", /*#__PURE__*/_jsxDEV(\"span\", {\n className: \"mr-1\",\n children: item.expireData\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 11\n }, this), /*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-xs text-primary\",\n children: [\"\\u0634\\u0645\\u0627\\u0631\\u0647 \\u0645\\u062D\\u0644 \\u0627\\u0642\\u0627\\u0645\\u062A:\", /*#__PURE__*/_jsxDEV(\"span\", {\n className: \"mr-1\",\n children: item.roomNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }, this)]\n }, index, true, {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 9\n }, this)), /*#__PURE__*/_jsxDEV(QRCode, {\n size: \"150\",\n fgColor: \"#143F6B\",\n bgColor: \"transparent\",\n value: \"hey\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 6,\n columnNumber: 5\n }, this);\n};\n\n_c = RoomCardInfo;\nexport default RoomCardInfo;\nRoomCardInfo.defaultProps = {\n items: [{\n name: \"کامران هوشمند\",\n enterData: \"1400/11/13\",\n expireData: \"1400/11/20\",\n roomNumber: \"B14 سالن شهید عباسی\"\n }]\n};\n\nvar _c;\n\n$RefreshReg$(_c, \"RoomCardInfo\");","map":{"version":3,"names":["React","QRCode","RoomCardInfo","items","map","item","index","name","enterData","expireData","roomNumber","defaultProps"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/RoomCardInfo/index.js"],"sourcesContent":["import React from \"react\";\nimport QRCode from \"react-qr-code\";\n\nconst RoomCardInfo = ({ items }) => {\n