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 lines
12 KiB
1 lines
12 KiB
{"ast":null,"code":"var _jsxFileName = \"/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/CustomToast2/index.js\";\nimport React from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-dev-runtime\";\n\nconst CustomToast2 = _ref => {\n let {\n items,\n num\n } = _ref;\n return /*#__PURE__*/_jsxDEV(_Fragment, {\n children: items.slice(0, num).map((item, index) => /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"flex flex-row items-center p-4 bg-surface border border-success rounded mt-4\",\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"flex flex-row items-center flex-1 \",\n children: [/*#__PURE__*/_jsxDEV(\"img\", {\n src: item.profilePic,\n className: \"rounded-full w-16\",\n alt: item.profilePic\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"flex flex-col mr-2\",\n children: [/*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-sm text-primaryText\",\n children: item.name\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }, this), /*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-xs mt-1.5 mb-1 text-primaryLight\",\n children: [/*#__PURE__*/_jsxDEV(\"span\", {\n className: \"ml-1\",\n children: \"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0648\\u0631\\u0648\\u062F:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 17\n }, this), item.enteryData]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }, this), /*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-xs text-primaryLight\",\n children: [/*#__PURE__*/_jsxDEV(\"span\", {\n children: \"\\u06A9\\u062F \\u0645\\u0644\\u06CC\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 17\n }, this), item.idCard]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"flex flex-row items-center\",\n children: [/*#__PURE__*/_jsxDEV(\"span\", {\n className: \"px-2 py-0.5 mr-2 rounded-sm bg-[#C9E2B388] text-[#468722] font-bold\",\n children: item.number\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"img\", {\n src: \"images/CustomToastpen-icon.svg\",\n alt: \"pen\",\n className: \"mr-4 cursor-pointer\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 11\n }, this)]\n }, index, true, {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 9\n }, this))\n }, void 0, false);\n};\n\n_c = CustomToast2;\nexport default CustomToast2;\nCustomToast2.defaultProps = {\n num: 5,\n items: [{\n profilePic: \"images/CustomToast2profilePic1.svg\",\n name: \"کامبیز هوشنمند\",\n enteryData: \"1401/02/01\",\n idCard: 2980817631,\n number: \"B06\"\n }, {\n profilePic: \"images/CustomToast2profilePic2.svg\",\n name: \"پارسا ایرانی\",\n enteryData: \"1400/07/19\",\n idCard: 7000817631,\n number: \"B04\"\n }, {\n profilePic: \"images/CustomToast2profilePic3.svg\",\n name: \"کامران مرادی\",\n enteryData: \"1400/07/19\",\n idCard: 2423817631,\n number: \"B02\"\n }, {\n profilePic: \"images/CustomToast2profilePic4.svg\",\n name: \"محمد علوی\",\n enteryData: \"1400/07/19\",\n idCard: 3340817631,\n number: \"B01\"\n }, {\n profilePic: \"images/CustomToast2profilePic5.svg\",\n name: \"محمد محمدی\",\n enteryData: \"1400/07/19\",\n idCard: 3110817631,\n number: \"B07\"\n }, {\n profilePic: \"images/CustomToast2profilePic1.svg\",\n name: \"کامبیز هوشنمند\",\n enteryData: \"1401/02/01\",\n idCard: 2980817631,\n number: \"B06\"\n }, {\n profilePic: \"images/CustomToast2profilePic2.svg\",\n name: \"پارسا ایرانی\",\n enteryData: \"1400/07/19\",\n idCard: 7000817631,\n number: \"B04\"\n }, {\n profilePic: \"images/CustomToast2profilePic3.svg\",\n name: \"کامران مرادی\",\n enteryData: \"1400/07/19\",\n idCard: 2423817631,\n number: \"B02\"\n }, {\n profilePic: \"images/CustomToast2profilePic4.svg\",\n name: \"محمد علوی\",\n enteryData: \"1400/07/19\",\n idCard: 3340817631,\n number: \"B01\"\n }, {\n profilePic: \"images/CustomToast2profilePic5.svg\",\n name: \"محمد محمدی\",\n enteryData: \"1400/07/19\",\n idCard: 3110817631,\n number: \"B07\"\n }, {\n profilePic: \"images/CustomToast2profilePic5.svg\",\n name: \"محمد محمدی\",\n enteryData: \"1400/07/19\",\n idCard: 3110817631,\n number: \"B07\"\n }]\n};\n\nvar _c;\n\n$RefreshReg$(_c, \"CustomToast2\");","map":{"version":3,"names":["React","CustomToast2","items","num","slice","map","item","index","profilePic","name","enteryData","idCard","number","defaultProps"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/CustomToast2/index.js"],"sourcesContent":["import React from \"react\";\n\nconst CustomToast2 = ({ items, num }) => {\n return (\n <>\n {items.slice(0, num).map((item, index) => (\n <div\n key={index}\n className=\"flex flex-row items-center p-4 bg-surface border border-success rounded mt-4\"\n >\n {/* right */}\n <div className=\"flex flex-row items-center flex-1 \">\n <img\n src={item.profilePic}\n className=\"rounded-full w-16\"\n alt={item.profilePic}\n />\n <div className=\"flex flex-col mr-2\">\n <p className=\"text-sm text-primaryText\">{item.name}</p>\n <p className=\"text-xs mt-1.5 mb-1 text-primaryLight\">\n <span className=\"ml-1\">تاریخ ورود:</span>\n {item.enteryData}\n </p>\n <p className=\"text-xs text-primaryLight\">\n <span>کد ملی</span>\n {item.idCard}\n </p>\n </div>\n </div>\n {/* left */}\n <div className=\"flex flex-row items-center\">\n <span className=\"px-2 py-0.5 mr-2 rounded-sm bg-[#C9E2B388] text-[#468722] font-bold\">\n {item.number}\n </span>\n <img\n src=\"images/CustomToastpen-icon.svg\"\n alt=\"pen\"\n className=\"mr-4 cursor-pointer\"\n />\n </div>\n </div>\n ))}\n </>\n );\n};\n\nexport default CustomToast2;\n\nCustomToast2.defaultProps = {\n num: 5,\n\n items: [\n {\n profilePic: \"images/CustomToast2profilePic1.svg\",\n name: \"کامبیز هوشنمند\",\n enteryData: \"1401/02/01\",\n idCard: 2980817631,\n number: \"B06\",\n },\n {\n profilePic: \"images/CustomToast2profilePic2.svg\",\n name: \"پارسا ایرانی\",\n enteryData: \"1400/07/19\",\n idCard: 7000817631,\n number: \"B04\",\n },\n {\n profilePic: \"images/CustomToast2profilePic3.svg\",\n name: \"کامران مرادی\",\n enteryData: \"1400/07/19\",\n idCard: 2423817631,\n number: \"B02\",\n },\n {\n profilePic: \"images/CustomToast2profilePic4.svg\",\n name: \"محمد علوی\",\n enteryData: \"1400/07/19\",\n idCard: 3340817631,\n number: \"B01\",\n },\n {\n profilePic: \"images/CustomToast2profilePic5.svg\",\n name: \"محمد محمدی\",\n enteryData: \"1400/07/19\",\n idCard: 3110817631,\n number: \"B07\",\n },\n {\n profilePic: \"images/CustomToast2profilePic1.svg\",\n name: \"کامبیز هوشنمند\",\n enteryData: \"1401/02/01\",\n idCard: 2980817631,\n number: \"B06\",\n },\n {\n profilePic: \"images/CustomToast2profilePic2.svg\",\n name: \"پارسا ایرانی\",\n enteryData: \"1400/07/19\",\n idCard: 7000817631,\n number: \"B04\",\n },\n {\n profilePic: \"images/CustomToast2profilePic3.svg\",\n name: \"کامران مرادی\",\n enteryData: \"1400/07/19\",\n idCard: 2423817631,\n number: \"B02\",\n },\n {\n profilePic: \"images/CustomToast2profilePic4.svg\",\n name: \"محمد علوی\",\n enteryData: \"1400/07/19\",\n idCard: 3340817631,\n number: \"B01\",\n },\n {\n profilePic: \"images/CustomToast2profilePic5.svg\",\n name: \"محمد محمدی\",\n enteryData: \"1400/07/19\",\n idCard: 3110817631,\n number: \"B07\",\n },\n {\n profilePic: \"images/CustomToast2profilePic5.svg\",\n name: \"محمد محمدی\",\n enteryData: \"1400/07/19\",\n idCard: 3110817631,\n number: \"B07\",\n },\n ],\n};\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;;;;AAEA,MAAMC,YAAY,GAAG,QAAoB;EAAA,IAAnB;IAAEC,KAAF;IAASC;EAAT,CAAmB;EACvC,oBACE;IAAA,UACGD,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeD,GAAf,EAAoBE,GAApB,CAAwB,CAACC,IAAD,EAAOC,KAAP,kBACvB;MAEE,SAAS,EAAC,8EAFZ;MAAA,wBAKE;QAAK,SAAS,EAAC,oCAAf;QAAA,wBACE;UACE,GAAG,EAAED,IAAI,CAACE,UADZ;UAEE,SAAS,EAAC,mBAFZ;UAGE,GAAG,EAAEF,IAAI,CAACE;QAHZ;UAAA;UAAA;UAAA;QAAA,QADF,eAME;UAAK,SAAS,EAAC,oBAAf;UAAA,wBACE;YAAG,SAAS,EAAC,0BAAb;YAAA,UAAyCF,IAAI,CAACG;UAA9C;YAAA;YAAA;YAAA;UAAA,QADF,eAEE;YAAG,SAAS,EAAC,uCAAb;YAAA,wBACE;cAAM,SAAS,EAAC,MAAhB;cAAA;YAAA;cAAA;cAAA;cAAA;YAAA,QADF,EAEGH,IAAI,CAACI,UAFR;UAAA;YAAA;YAAA;YAAA;UAAA,QAFF,eAME;YAAG,SAAS,EAAC,2BAAb;YAAA,wBACE;cAAA;YAAA;cAAA;c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