{"ast":null,"code":"var _jsxFileName = \"/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/DistributedData/index.js\";\nimport React from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nconst DistributedData = _ref => {\n let {\n items1\n } = _ref;\n return /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"w-[404px] flex flex-col items-center gap-y-4 mx-auto bg-gray-400 md:bg-surface border border-surfaceBorder shadow-sm rounded p-3\",\n children: items1.map((row, index) => /*#__PURE__*/_jsxDEV(\"div\", {\n className: `flex flex-row items-center justify-around w-full border-surfaceBorder pb-3 ${index + 1 < items1.length ? \"border-b\" : \"\"}`,\n children: row.map((item, index) => /*#__PURE__*/_jsxDEV(\"div\", {\n className: `flex items-center justify-around font-bold text-xs border-surfaceBorder flex-1 ${index + 1 < row.length ? \"border-l\" : \"\"} ${(item === null || item === void 0 ? void 0 : item.className) || \"\"}`,\n children: [item.name && /*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-primary text-center\",\n children: item.name\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 17\n }, this), item.number && /*#__PURE__*/_jsxDEV(\"span\", {\n className: `mt-2 ${item.remaining ? \"text-[#E16524]\" : \"text-secondary\"}`,\n children: item.number\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 13\n }, this))\n }, index, false, {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 9\n }, this))\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 5,\n columnNumber: 5\n }, this);\n};\n\n_c = DistributedData;\nexport default DistributedData;\nDistributedData.defaultProps = {\n items1: [[{\n name: \"تعداد کارمندان محترم\",\n number: \"259 نفر\",\n className: \"flex-col\"\n }, {\n name: \"تعداد مهمانان محترم\",\n number: \"569 نفر\",\n remaining: false,\n className: \"flex-col\"\n }], [{\n name: \"ظرفیت باقیمانده کارمندان محترم\",\n number: \"5 نفر\",\n remaining: true,\n className: \"flex-col\"\n }, {\n name: \"ظرفیت باقیمانده مهمانان محترم\",\n number: \"6 نفر\",\n remaining: true,\n className: \"flex-col\"\n }]],\n items: [[{\n name: \"صبح\",\n number: \"5:03\"\n }, {\n name: \"طلوع\",\n number: \"6:27\"\n }, {\n name: \"ظهر\",\n number: \"12:15\"\n }, {\n name: \"غروب\",\n number: \"18:05\"\n }, {\n name: \"مغرب\",\n number: \"18:23\"\n }, {\n name: \"نیمه شب\",\n number: \"18:23\"\n }]]\n}; // distributedData\n\nvar _c;\n\n$RefreshReg$(_c, \"DistributedData\");","map":{"version":3,"names":["React","DistributedData","items1","map","row","index","length","item","className","name","number","remaining","defaultProps","items"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/DistributedData/index.js"],"sourcesContent":["import React from \"react\";\n\nconst DistributedData = ({ items1 }) => {\n return (\n
\n {items1.map((row, index) => (\n \n {row.map((item, index) => (\n \n {item.name && (\n

{item.name}

\n )}\n {item.number && (\n \n {item.number}\n \n )}\n
\n ))}\n \n ))}\n \n );\n};\n\nexport default DistributedData;\n\nDistributedData.defaultProps = {\n items1: [\n [\n {\n name: \"تعداد کارمندان محترم\",\n number: \"259 نفر\",\n className: \"flex-col\",\n },\n {\n name: \"تعداد مهمانان محترم\",\n number: \"569 نفر\",\n remaining: false,\n className: \"flex-col\",\n },\n ],\n [\n {\n name: \"ظرفیت باقیمانده کارمندان محترم\",\n number: \"5 نفر\",\n remaining: true,\n className: \"flex-col\",\n },\n {\n name: \"ظرفیت باقیمانده مهمانان محترم\",\n number: \"6 نفر\",\n remaining: true,\n className: \"flex-col\",\n },\n ],\n ],\n\n items: [\n [\n {\n name: \"صبح\",\n number: \"5:03\",\n },\n {\n name: \"طلوع\",\n number: \"6:27\",\n },\n {\n name: \"ظهر\",\n number: \"12:15\",\n },\n {\n name: \"غروب\",\n number: \"18:05\",\n },\n {\n name: \"مغرب\",\n number: \"18:23\",\n },\n {\n name: \"نیمه شب\",\n number: \"18:23\",\n },\n ],\n ],\n};\n\n// distributedData\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;;;AAEA,MAAMC,eAAe,GAAG,QAAgB;EAAA,IAAf;IAAEC;EAAF,CAAe;EACtC,oBACE;IAAK,SAAS,EAAC,kIAAf;IAAA,UACGA,MAAM,CAACC,GAAP,CAAW,CAACC,GAAD,EAAMC,KAAN,kBACV;MACE,SAAS,EAAG,8EACVA,KAAK,GAAG,CAAR,GAAYH,MAAM,CAACI,MAAnB,GAA4B,UAA5B,GAAyC,EAC1C,EAHH;MAAA,UAMGF,GAAG,CAACD,GAAJ,CAAQ,CAACI,IAAD,EAAOF,KAAP,kBACP;QACE,SAAS,EAAG,mFACVA,KAAK,GAAG,CAAR,GAAYD,GAAG,CAACE,MAAhB,GAAyB,UAAzB,GAAsC,EACvC,IAAG,CAAAC,IAAI,SAAJ,IAAAA,IAAI,WAAJ,YAAAA,IAAI,CAAEC,SAAN,KAAmB,EAAG,EAH5B;QAAA,WAKGD,IAAI,CAACE,IAAL,iBACC;UAAG,SAAS,EAAC,0BAAb;UAAA,UAAyCF,IAAI,CAACE;QAA9C;UAAA;UAAA;UAAA;QAAA,QANJ,EAQGF,IAAI,CAACG,MAAL,iBACC;UACE,SAAS,EAAG,QACVH,IAAI,CAACI,SAAL,GAAiB,gBAAjB,GAAoC,gBACrC,EAHH;UAAA,UAKGJ,IAAI,CAACG;QALR;UAAA;UAAA;UAAA;QAAA,QATJ;MAAA;QAAA;QAAA;QAAA;MAAA,QADD;IANH,GAIOL,KAJP;MAAA;MAAA;MAAA;IAAA,QADD;EADH;IAAA;IAAA;IAAA;EAAA,QADF;AAiCD,CAlCD;;KAAMJ,e;AAoCN,eAAeA,eAAf;AAEAA,eAAe,CAACW,YAAhB,GAA+B;EAC7BV,MAAM,EAAE,CACN,CACE;IACEO,IAAI,EAAE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