diff --git a/package-lock.json b/package-lock.json index f3b2f07..aeda0dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@ant-design/plots": "^1.2.6", "@autocomplete/material-ui": "0.0.17", + "@capacitor-mlkit/barcode-scanning": "^8.0.1", "@dnd-kit/core": "^6.3.1", "@dnd-kit/sortable": "^10.0.0", "@emotion/react": "^11.11.4", @@ -19,6 +20,8 @@ "@reduxjs/toolkit": "^1.9.5", "@tanstack/react-query": "^5.90.11", "@tanstack/react-query-devtools": "^5.91.1", + "@tanstack/react-virtual": "^3.13.18", + "@zxing/library": "^0.21.3", "antd": "^5.17.4", "antd-img-crop": "^4.22.0", "aos": "^2.3.4", @@ -48,6 +51,7 @@ "mui-autocomplete": "^2.0.1", "number-to-words": "^1.2.4", "pdf-lib": "^1.17.1", + "qr-scanner": "^1.4.2", "qrcode": "^1.5.3", "qrcode.react": "^4.2.0", "react": "^18.3.1", @@ -581,7 +585,6 @@ "version": "7.28.6", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.6.tgz", "integrity": "sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==", - "dev": true, "engines": { "node": ">=6.9.0" } @@ -590,7 +593,6 @@ "version": "7.28.6", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.6.tgz", "integrity": "sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==", - "dev": true, "dependencies": { "@babel/code-frame": "^7.28.6", "@babel/generator": "^7.28.6", @@ -619,8 +621,7 @@ "node_modules/@babel/core/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" }, "node_modules/@babel/generator": { "version": "7.28.6", @@ -637,11 +638,23 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", + "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/types": "^7.27.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-compilation-targets": { "version": "7.28.6", "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", - "dev": true, "dependencies": { "@babel/compat-data": "^7.28.6", "@babel/helper-validator-option": "^7.27.1", @@ -657,7 +670,6 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, "dependencies": { "yallist": "^3.0.2" } @@ -665,8 +677,7 @@ "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" }, "node_modules/@babel/helper-globals": { "version": "7.28.0", @@ -692,7 +703,6 @@ "version": "7.28.6", "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", - "dev": true, "dependencies": { "@babel/helper-module-imports": "^7.28.6", "@babel/helper-validator-identifier": "^7.28.5", @@ -709,7 +719,6 @@ "version": "7.28.6", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", - "dev": true, "engines": { "node": ">=6.9.0" } @@ -734,7 +743,6 @@ "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", - "dev": true, "engines": { "node": ">=6.9.0" } @@ -743,7 +751,6 @@ "version": "7.28.6", "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", - "dev": true, "dependencies": { "@babel/template": "^7.28.6", "@babel/types": "^7.28.6" @@ -766,6 +773,74 @@ "node": ">=6.0.0" } }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz", + "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.28.0.tgz", + "integrity": "sha512-D6Eujc2zMxKjfa4Zxl4GHMsmhKKZ9VpcqIchJLvwTxad9zWIYulwYItBovpDOoNLISpcZSXoDJ5gaGbQUDqViA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.28.6.tgz", + "integrity": "sha512-61bxqhiRfAACulXSLd/GxqmAedUSrRZIu/cbaT18T1CetkTmtDN15it7i80ru4DVqRK1WMxQhXs+Lf9kajm5Ow==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/plugin-syntax-jsx": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.27.1.tgz", + "integrity": "sha512-ykDdF5yI4f1WrAolLqeF3hmYU12j9ntLQl/AOG1HAS21jxyg1Q0/J/tpREuYLfatGdGmXp/3yS0ZA76kOlVq9Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-transform-react-jsx-self": { "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", @@ -796,6 +871,44 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.27.1.tgz", + "integrity": "sha512-JfuinvDOsD9FVMTHpzA/pBLisxpv1aSf+OIV8lgH3MuWrks19R27e6a6DipIg4aX1Zm9Wpb04p8wljfKrVSnPA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.28.5.tgz", + "integrity": "sha512-Z3J8vhRq7CeLjdC58jLv4lnZ5RKFUJWqH5emvxmv9Hv3BD1T9R/Im713R4MTKwvFaV74ejZ3sM01LyEKk4ugNQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-option": "^7.27.1", + "@babel/plugin-transform-react-display-name": "^7.28.0", + "@babel/plugin-transform-react-jsx": "^7.27.1", + "@babel/plugin-transform-react-jsx-development": "^7.27.1", + "@babel/plugin-transform-react-pure-annotations": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/runtime": { "version": "7.28.6", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.6.tgz", @@ -846,6 +959,35 @@ "node": ">=6.9.0" } }, + "node_modules/@capacitor-mlkit/barcode-scanning": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@capacitor-mlkit/barcode-scanning/-/barcode-scanning-8.0.1.tgz", + "integrity": "sha512-94SyxzbcQ2HBd7yxS34dqc0PzwdOw8/98xBrjw1ioznE/Ksky/iwsip5Bm8P8Qg+dgnJYWz7NcIPjd+6bLjVoQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/capawesome-team/" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/capawesome" + } + ], + "license": "Apache-2.0", + "peerDependencies": { + "@capacitor/core": ">=8.0.0" + } + }, + "node_modules/@capacitor/core": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-8.1.0.tgz", + "integrity": "sha512-UfMBMWc1v7J+14AhH03QmeNwV3HZx3qnOWhpwnHfzALEwAwlV/itQOQqcasMQYhOHWL0tiymc5ByaLTn7KKQxw==", + "license": "MIT", + "peer": true, + "dependencies": { + "tslib": "^2.1.0" + } + }, "node_modules/@dnd-kit/accessibility": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/@dnd-kit/accessibility/-/accessibility-3.1.1.tgz", @@ -1479,6 +1621,30 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -1769,7 +1935,6 @@ "version": "2.3.5", "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -2803,6 +2968,381 @@ } } }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.58.0.tgz", + "integrity": "sha512-mr0tmS/4FoVk1cnaeN244A/wjvGDNItZKR8hRhnmCzygyRXYtKF5jVDSIILR1U97CTzAYmbgIj/Dukg62ggG5w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "peer": true + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.58.0.tgz", + "integrity": "sha512-+s++dbp+/RTte62mQD9wLSbiMTV+xr/PeRJEc/sFZFSBRlHPNPVaf5FXlzAL77Mr8FtSfQqCN+I598M8U41ccQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "peer": true + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.58.0.tgz", + "integrity": "sha512-MFWBwTcYs0jZbINQBXHfSrpSQJq3IUOakcKPzfeSznONop14Pxuqa0Kg19GD0rNBMPQI2tFtu3UzapZpH0Uc1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.58.0.tgz", + "integrity": "sha512-yiKJY7pj9c9JwzuKYLFaDZw5gma3fI9bkPEIyofvVfsPqjCWPglSHdpdwXpKGvDeYDms3Qal8qGMEHZ1M/4Udg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.58.0.tgz", + "integrity": "sha512-x97kCoBh5MOevpn/CNK9W1x8BEzO238541BGWBc315uOlN0AD/ifZ1msg+ZQB05Ux+VF6EcYqpiagfLJ8U3LvQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "peer": true + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.58.0.tgz", + "integrity": "sha512-Aa8jPoZ6IQAG2eIrcXPpjRcMjROMFxCt1UYPZZtCxRV68WkuSigYtQ/7Zwrcr2IvtNJo7T2JfDXyMLxq5L4Jlg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.58.0.tgz", + "integrity": "sha512-Ob8YgT5kD/lSIYW2Rcngs5kNB/44Q2RzBSPz9brf2WEtcGR7/f/E9HeHn1wYaAwKBni+bdXEwgHvUd0x12lQSA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.58.0.tgz", + "integrity": "sha512-K+RI5oP1ceqoadvNt1FecL17Qtw/n9BgRSzxif3rTL2QlIu88ccvY+Y9nnHe/cmT5zbH9+bpiJuG1mGHRVwF4Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.58.0.tgz", + "integrity": "sha512-T+17JAsCKUjmbopcKepJjHWHXSjeW7O5PL7lEFaeQmiVyw4kkc5/lyYKzrv6ElWRX/MrEWfPiJWqbTvfIvjM1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.58.0.tgz", + "integrity": "sha512-cCePktb9+6R9itIJdeCFF9txPU7pQeEHB5AbHu/MKsfH/k70ZtOeq1k4YAtBv9Z7mmKI5/wOLYjQ+B9QdxR6LA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.58.0.tgz", + "integrity": "sha512-iekUaLkfliAsDl4/xSdoCJ1gnnIXvoNz85C8U8+ZxknM5pBStfZjeXgB8lXobDQvvPRCN8FPmmuTtH+z95HTmg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.58.0.tgz", + "integrity": "sha512-68ofRgJNl/jYJbxFjCKE7IwhbfxOl1muPN4KbIqAIe32lm22KmU7E8OPvyy68HTNkI2iV/c8y2kSPSm2mW/Q9Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.58.0.tgz", + "integrity": "sha512-dpz8vT0i+JqUKuSNPCP5SYyIV2Lh0sNL1+FhM7eLC457d5B9/BC3kDPp5BBftMmTNsBarcPcoz5UGSsnCiw4XQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.58.0.tgz", + "integrity": "sha512-4gdkkf9UJ7tafnweBCR/mk4jf3Jfl0cKX9Np80t5i78kjIH0ZdezUv/JDI2VtruE5lunfACqftJ8dIMGN4oHew==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.58.0.tgz", + "integrity": "sha512-YFS4vPnOkDTD/JriUeeZurFYoJhPf9GQQEF/v4lltp3mVcBmnsAdjEWhr2cjUCZzZNzxCG0HZOvJU44UGHSdzw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.58.0.tgz", + "integrity": "sha512-x2xgZlFne+QVNKV8b4wwaCS8pwq3y14zedZ5DqLzjdRITvreBk//4Knbcvm7+lWmms9V9qFp60MtUd0/t/PXPw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.58.0.tgz", + "integrity": "sha512-jIhrujyn4UnWF8S+DHSkAkDEO3hLX0cjzxJZPLF80xFyzyUIYgSMRcYQ3+uqEoyDD2beGq7Dj7edi8OnJcS/hg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.58.0.tgz", + "integrity": "sha512-+410Srdoh78MKSJxTQ+hZ/Mx+ajd6RjjPwBPNd0R3J9FtL6ZA0GqiiyNjCO9In0IzZkCNrpGymSfn+kgyPQocg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.58.0.tgz", + "integrity": "sha512-ZjMyby5SICi227y1MTR3VYBpFTdZs823Rs/hpakufleBoufoOIB6jtm9FEoxn/cgO7l6PM2rCEl5Kre5vX0QrQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.58.0.tgz", + "integrity": "sha512-ds4iwfYkSQ0k1nb8LTcyXw//ToHOnNTJtceySpL3fa7tc/AsE+UpUFphW126A6fKBGJD5dhRvg8zw1rvoGFxmw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "peer": true + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.58.0.tgz", + "integrity": "sha512-fd/zpJniln4ICdPkjWFhZYeY/bpnaN9pGa6ko+5WD38I0tTqk9lXMgXZg09MNdhpARngmxiCg0B0XUamNw/5BQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "peer": true + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.58.0.tgz", + "integrity": "sha512-YpG8dUOip7DCz3nr/JUfPbIUo+2d/dy++5bFzgi4ugOGBIox+qMbbqt/JoORwvI/C9Kn2tz6+Bieoqd5+B1CjA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.58.0.tgz", + "integrity": "sha512-b9DI8jpFQVh4hIXFr0/+N/TzLdpBIoPzjt0Rt4xJbW3mzguV3mduR9cNgiuFcuL/TeORejJhCWiAXe3E/6PxWA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.58.0.tgz", + "integrity": "sha512-CSrVpmoRJFN06LL9xhkitkwUcTZtIotYAF5p6XOR2zW0Zz5mzb3IPpcoPhB02frzMHFNo1reQ9xSF5fFm3hUsQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.58.0.tgz", + "integrity": "sha512-QFsBgQNTnh5K0t/sBsjJLq24YVqEIVkGpfN2VHsnN90soZyhaiA9UUHufcctVNL4ypJY0wrwad0wslx2KJQ1/w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, "node_modules/@sindresorhus/is": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", @@ -2936,6 +3476,33 @@ "react": "^18 || ^19" } }, + "node_modules/@tanstack/react-virtual": { + "version": "3.13.18", + "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.13.18.tgz", + "integrity": "sha512-dZkhyfahpvlaV0rIKnvQiVoWPyURppl6w4m9IwMDpuIjcJ1sD9YGWrt0wISvgU7ewACXx2Ct46WPgI6qAD4v6A==", + "license": "MIT", + "dependencies": { + "@tanstack/virtual-core": "3.13.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/@tanstack/virtual-core": { + "version": "3.13.18", + "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.13.18.tgz", + "integrity": "sha512-Mx86Hqu1k39icq2Zusq+Ey2J6dDWTjDvEv43PJtRCoEYTLyfaPnxIQ6iy7YAOK0NV/qOEmZQ/uCufrppZxTgcg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -3119,6 +3686,12 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==" }, + "node_modules/@types/offscreencanvas": { + "version": "2019.7.3", + "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.7.3.tgz", + "integrity": "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==", + "license": "MIT" + }, "node_modules/@types/pako": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@types/pako/-/pako-2.0.4.tgz", @@ -3263,6 +3836,28 @@ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, + "node_modules/@zxing/library": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/@zxing/library/-/library-0.21.3.tgz", + "integrity": "sha512-hZHqFe2JyH/ZxviJZosZjV+2s6EDSY0O24R+FQmlWZBZXP9IqMo7S3nb3+2LBWxodJQkSurdQGnqE7KXqrYgow==", + "license": "MIT", + "dependencies": { + "ts-custom-error": "^3.2.1" + }, + "engines": { + "node": ">= 10.4.0" + }, + "optionalDependencies": { + "@zxing/text-encoding": "~0.9.0" + } + }, + "node_modules/@zxing/text-encoding": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@zxing/text-encoding/-/text-encoding-0.9.0.tgz", + "integrity": "sha512-U/4aVJ2mxI0aDNI8Uq0wEhMgY+u4CNtEb0om3+y3+niDAsoTCOB33UF0sxpzqzdqXLqmvc+vZyAt4O8pPdfkwA==", + "license": "(Unlicense OR Apache-2.0)", + "optional": true + }, "node_modules/acorn": { "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", @@ -3293,18 +3888,16 @@ } }, "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + "license": "MIT", + "peer": true, "dependencies": { - "fast-deep-equal": "^3.1.1", + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "json-schema-traverse": "^0.3.0" } }, "node_modules/ajv-formats": { @@ -3346,6 +3939,13 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, + "node_modules/ajv/node_modules/fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==", + "license": "MIT", + "peer": true + }, "node_modules/align-text": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", @@ -3363,6 +3963,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", + "license": "BSD-3-Clause OR MIT", "engines": { "node": ">=0.4.2" } @@ -3418,6 +4019,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3426,6 +4028,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3888,7 +4491,6 @@ "version": "2.9.18", "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.18.tgz", "integrity": "sha512-e23vBV1ZLfjb9apvfPk4rHVu2ry6RIr2Wfs+O324okSidrX7pTAnEJPCh/O5BtRlr7QtZI7ktOP3vsqr7Z5XoA==", - "dev": true, "bin": { "baseline-browser-mapping": "dist/cli.js" } @@ -4086,7 +4688,6 @@ "version": "4.28.1", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", - "dev": true, "funding": [ { "type": "opencollective", @@ -4268,7 +4869,6 @@ "version": "1.0.30001766", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001766.tgz", "integrity": "sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==", - "dev": true, "funding": [ { "type": "opencollective", @@ -4358,6 +4958,7 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "license": "MIT", "dependencies": { "ansi-styles": "^2.2.1", "escape-string-regexp": "^1.0.2", @@ -4476,6 +5077,17 @@ "node": ">=6" } }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "license": "MIT", + "peer": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, "node_modules/codepage": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/codepage/-/codepage-1.15.0.tgz", @@ -5335,8 +5947,7 @@ "node_modules/electron-to-chromium": { "version": "1.5.279", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.279.tgz", - "integrity": "sha512-0bblUU5UNdOt5G7XqGiJtpZMONma6WAfq9vsFmtn9x1+joAObr6x1chfqyxFSDCAFwFhCQDrqeAr6MYdpwJ9Hg==", - "dev": true + "integrity": "sha512-0bblUU5UNdOt5G7XqGiJtpZMONma6WAfq9vsFmtn9x1+joAObr6x1chfqyxFSDCAFwFhCQDrqeAr6MYdpwJ9Hg==" }, "node_modules/electron/node_modules/@types/node": { "version": "16.18.126", @@ -5628,7 +6239,6 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, "engines": { "node": ">=6" } @@ -5807,6 +6417,23 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/eslint/node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -5898,6 +6525,13 @@ "node": ">=8" } }, + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, "node_modules/eslint/node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -6229,7 +6863,8 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", @@ -6397,6 +7032,20 @@ "uglify-js": "^2.6.2" } }, + "node_modules/fmin/node_modules/rollup": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.25.8.tgz", + "integrity": "sha512-a2S4Bh3bgrdO4BhKr2E4nZkjTvrJ2m2bWjMTzVYtoqSCn0HnuxosXnaJUHrMEziOWr3CzL9GjilQQKcyCQpJoA==", + "license": "MIT", + "dependencies": { + "chalk": "^1.1.1", + "minimist": "^1.2.0", + "source-map-support": "^0.3.2" + }, + "bin": { + "rollup": "bin/rollup" + } + }, "node_modules/follow-redirects": { "version": "1.15.11", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", @@ -6552,7 +7201,6 @@ "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, "engines": { "node": ">=6.9.0" } @@ -6816,6 +7464,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", + "license": "MIT", "dependencies": { "ansi-regex": "^2.0.0" }, @@ -8028,9 +8677,11 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" }, "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==", + "license": "MIT", + "peer": true }, "node_modules/json-schema-typed": { "version": "8.0.2", @@ -8073,7 +8724,6 @@ "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, "bin": { "json5": "lib/cli.js" }, @@ -8795,8 +9445,7 @@ "node_modules/node-releases": { "version": "2.0.27", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", - "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", - "dev": true + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==" }, "node_modules/normalize-path": { "version": "3.0.0", @@ -9455,10 +10104,21 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, + "node_modules/qr-scanner": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/qr-scanner/-/qr-scanner-1.4.2.tgz", + "integrity": "sha512-kV1yQUe2FENvn59tMZW6mOVfpq9mGxGf8l6+EGaXUOd4RBOLg7tRC83OrirM5AtDvZRpdjdlXURsHreAOSPOUw==", + "license": "MIT", + "dependencies": { + "@types/offscreencanvas": "^2019.6.4" + } + }, "node_modules/qr.js": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/qr.js/-/qr.js-0.0.0.tgz", @@ -10940,16 +11600,49 @@ } }, "node_modules/rollup": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.25.8.tgz", - "integrity": "sha512-a2S4Bh3bgrdO4BhKr2E4nZkjTvrJ2m2bWjMTzVYtoqSCn0HnuxosXnaJUHrMEziOWr3CzL9GjilQQKcyCQpJoA==", + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.58.0.tgz", + "integrity": "sha512-wbT0mBmWbIvvq8NeEYWWvevvxnOyhKChir47S66WCxw1SXqhw7ssIYejnQEVt7XYQpsj2y8F9PM+Cr3SNEa0gw==", + "dev": true, + "license": "MIT", + "peer": true, "dependencies": { - "chalk": "^1.1.1", - "minimist": "^1.2.0", - "source-map-support": "^0.3.2" + "@types/estree": "1.0.8" }, "bin": { - "rollup": "bin/rollup" + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.58.0", + "@rollup/rollup-android-arm64": "4.58.0", + "@rollup/rollup-darwin-arm64": "4.58.0", + "@rollup/rollup-darwin-x64": "4.58.0", + "@rollup/rollup-freebsd-arm64": "4.58.0", + "@rollup/rollup-freebsd-x64": "4.58.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.58.0", + "@rollup/rollup-linux-arm-musleabihf": "4.58.0", + "@rollup/rollup-linux-arm64-gnu": "4.58.0", + "@rollup/rollup-linux-arm64-musl": "4.58.0", + "@rollup/rollup-linux-loong64-gnu": "4.58.0", + "@rollup/rollup-linux-loong64-musl": "4.58.0", + "@rollup/rollup-linux-ppc64-gnu": "4.58.0", + "@rollup/rollup-linux-ppc64-musl": "4.58.0", + "@rollup/rollup-linux-riscv64-gnu": "4.58.0", + "@rollup/rollup-linux-riscv64-musl": "4.58.0", + "@rollup/rollup-linux-s390x-gnu": "4.58.0", + "@rollup/rollup-linux-x64-gnu": "4.58.0", + "@rollup/rollup-linux-x64-musl": "4.58.0", + "@rollup/rollup-openbsd-x64": "4.58.0", + "@rollup/rollup-openharmony-arm64": "4.58.0", + "@rollup/rollup-win32-arm64-msvc": "4.58.0", + "@rollup/rollup-win32-ia32-msvc": "4.58.0", + "@rollup/rollup-win32-x64-gnu": "4.58.0", + "@rollup/rollup-win32-x64-msvc": "4.58.0", + "fsevents": "~2.3.2" } }, "node_modules/rollup-plugin-obfuscator": { @@ -11434,6 +12127,7 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.3.3.tgz", "integrity": "sha512-9O4+y9n64RewmFoKUZ/5Tx9IHIcXM6Q+RTSw6ehnqybUz4a7iwR3Eaw80uLtqqQ5D0C+5H03D4KKGo9PdP33Gg==", + "license": "MIT", "dependencies": { "source-map": "0.1.32" } @@ -11636,6 +12330,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "license": "MIT", "dependencies": { "ansi-regex": "^2.0.0" }, @@ -11702,6 +12397,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "license": "MIT", "engines": { "node": ">=0.8.0" } @@ -11999,6 +12695,15 @@ "resolved": "https://registry.npmjs.org/trim-canvas/-/trim-canvas-0.1.2.tgz", "integrity": "sha512-nd4Ga3iLFV94mdhW9JFMLpQbHUyCQuhFOD71PEAt1NjtMD5wbZctzhX8c3agHNybMR5zXD1XTGoIEWk995E6pQ==" }, + "node_modules/ts-custom-error": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-3.3.1.tgz", + "integrity": "sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -12272,7 +12977,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", - "dev": true, "funding": [ { "type": "opencollective", @@ -12378,6 +13082,8 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", "dependencies": { "punycode": "^2.1.0" } diff --git a/package.json b/package.json index 187784c..213d7b5 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "dependencies": { "@ant-design/plots": "^1.2.6", "@autocomplete/material-ui": "0.0.17", + "@capacitor-mlkit/barcode-scanning": "^8.0.1", "@dnd-kit/core": "^6.3.1", "@dnd-kit/sortable": "^10.0.0", "@emotion/react": "^11.11.4", @@ -23,6 +24,7 @@ "@tanstack/react-query": "^5.90.11", "@tanstack/react-query-devtools": "^5.91.1", "@tanstack/react-virtual": "^3.13.18", + "@zxing/library": "^0.21.3", "antd": "^5.17.4", "antd-img-crop": "^4.22.0", "aos": "^2.3.4", @@ -52,6 +54,7 @@ "mui-autocomplete": "^2.0.1", "number-to-words": "^1.2.4", "pdf-lib": "^1.17.1", + "qr-scanner": "^1.4.2", "qrcode": "^1.5.3", "qrcode.react": "^4.2.0", "react": "^18.3.1", diff --git a/src/Components/AddProduct/AddProduct.jsx b/src/Components/AddProduct/AddProduct.jsx index 6a1d6af..23bb908 100644 --- a/src/Components/AddProduct/AddProduct.jsx +++ b/src/Components/AddProduct/AddProduct.jsx @@ -53,6 +53,9 @@ export default function AddProduct({ products, setProducts }) { return (
| + | {column.title?.toUpperCase()} | ))} @@ -53,9 +61,12 @@ const ReceivedStocksModal = ({
|---|---|
| + | {renderCell(column, row, index)} | ))} @@ -64,13 +75,10 @@ const ReceivedStocksModal = ({
|
- {!isMobile ? (
- {''}
- )}
- |
- )}
- {item.OptionName == 'Sl.No' && (
-
- {!isMobile ? (
- Sl.No
- )}
- |
- )}
- {item.OptionName == 'Item' && (
-
- {!isMobile ? (
- Item
- )}
- |
- )}
- {item.OptionName == 'MRP' && (
-
- {!isMobile ? (
- MRP
- )}
- |
- )}
- {item.OptionName == 'Discount' && (
-
- {!isMobile ? (
- ₹/%
- )}
- |
- )}
- {item.OptionName == 'Quantity' && (
- {
- if (tableData?.length > 0) {
- OpenEditTotalAmount();
- }
- }}
- // onClick={tableData?.length>0? OpenEditTotalAmount :""}
- >
- {!isMobile ? (
- Qty
- )}
- |
- )}
- {item.OptionName == 'Rate' && (
-
- {!isMobile ? (
- Rt
- )}
- |
- )}
- {item.OptionName == 'Amount' && (
-
- {!isMobile ? (
- Amt
- )}
- |
- )}
+
|---|
|
+ {!isMobile ? (
+ {''}
+ )}
+ |
+ )}
+ {item.OptionName == 'Sl.No' && (
+
+ {!isMobile ? (
+ Sl.No
+ )}
+ |
+ )}
+ {item.OptionName == 'Item' && (
+
+ {!isMobile ? (
+ Item
+ )}
+ |
+ )}
+ {item.OptionName == 'MRP' && (
+
+ {!isMobile ? (
+ MRP
+ )}
+ |
+ )}
+ {item.OptionName == 'Discount' && (
+
+ {!isMobile ? (
+ ₹/%
+ )}
+ |
+ )}
+ {item.OptionName == 'Quantity' && (
+ {
+ if (tableData?.length > 0) {
+ OpenEditTotalAmount();
+ }
+ }}
+ // onClick={tableData?.length>0? OpenEditTotalAmount :""}
+ >
+ {!isMobile ? (
+ Qty
+ )}
+ |
+ )}
+ {item.OptionName == 'Rate' && (
+
+ {!isMobile ? (
+ Rt
+ )}
+ |
+ )}
+ {item.OptionName == 'Amount' && (
+
+ {!isMobile ? (
+ Amt
+ )}
+ |
+ )}
- {item.OptionName == 'Delete' && (
-
- {tableData?.length > 0 ? (
- |
+ {tableData?.length > 0 ? (
+ |
- )}
- >
- ))}
-
+ {' '}
+ {!isMobile ? (
+
+
+ {' '}
+
+ )}
+
- {' '}
{!isMobile ? (
-
-
- ) : (
-
@@ -2387,456 +2246,458 @@ const BSBillingTable1 = () => {
)}
- {!isMobile ? (
-
- )}
-
- {' '}
-
- )}
- | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
+ |
+ )}
+
+ {tableitem.OptionName == 'Sl.No' && (
+ { + if (editField) { + handleEditQuantity(item); + } + }} + > + {index + 1} + | + )} + {tableitem.OptionName == 'Item' && ( +
+ item.FullProductIdentifierDtls?.length > 0 ||
+ item.ProductIdentifierDtls?.length > 0
+ ? handleImeiDetails(item)
+ : editField && handleEditQuantity(item)
+ }
+ >
+ {item.ProdName}
+ {' '}
+ {item?.BrandName !== null ? item?.BrandName : ''}
+ {item?.Type != 'C' && (
+ <>
+ + ( + {!item?.ProdVariantName?.toLowerCase()?.includes( + 'variant' + ) && {item?.ProdVariantName} } + {item?.Size} + {item?.SinglePc == 'Y' + ? 'PCS' + : item?.UomName} + ) + + {item?.OfferMessage && + !Array.isArray(item.OfferMessage) && ( ++ {item.OfferMessage?.split('>')?.[0] + + `> ${item?.OrderQty} Eligible Free`} + + )} + > + )} + {item?.Type === 'C' && ( +
+ {item.ProdDetail?.map((prod, index) => (
+
+ )}
+ {productBasedExtraCharges?.find(
+ (find) => find.ProdId === item.ProdId
+ ) !== undefined && (
+ + {prod.ProdName} - {prod.Size}{' '} + {prod.UomName} + + ))} +
+ Extra Charges :{' '}
+ {
+ productBasedExtraCharges?.find(
+ (find) => find.ProdId === item.ProdId
+ )?.TotalAmt
+ }
+
+ )}
+ |
+ )}
+ {tableitem.OptionName == 'MRP' && (
+ { + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.MRP} + | + )} + {tableitem.OptionName == 'Discount' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item?.Type != 'C' + ? item.Offer && item.Offer > 0 + ? item.Offer + : '-' + : item?.OfferPrice && item?.OfferPrice > 0 + ? item?.OfferType === 'F' + ? `₹${item.OfferPrice}` + : `${item.OfferPrice}%` + : '-'} + | + )} + {tableitem.OptionName == 'Quantity' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.OrderQty} + | + )} + {tableitem.OptionName == 'Rate' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {allowDecimal + ? Number(item?.OrderRate || 0).toFixed(2) + : Number(item?.OrderRate || 0)} + | + )} + {tableitem.OptionName == 'Amount' && ( +{ + // if (editField) { + // handleEditQuantity(item); + // } + if (GetCustId) { + handleCustomerProductPriceHistory(item); + } + }} + > + {allowDecimal + ? Number( + item?.TotalAmt - (item?.Offer || 0) || 0 + ).toFixed(2) + : Number( + item?.TotalAmt - (item?.Offer || 0) || 0 + )} + | + )} + + {tableitem.OptionName == 'Delete' && ( + removeFromCart(item)}
+ >
+ |
+ )}
+ >
+ ))}
+ |||||||
|
- |
- )}
-
- {tableitem.OptionName == 'Sl.No' && (
- { - if (editField) { - handleEditQuantity(item); - } - }} - > - {index + 1} - | - )} - {tableitem.OptionName == 'Item' && ( -
- item.FullProductIdentifierDtls?.length > 0 ||
- item.ProductIdentifierDtls?.length > 0
- ? handleImeiDetails(item)
- : editField && handleEditQuantity(item)
- }
- >
- {item.ProdName}
- {' '}
- {item?.BrandName !== null ? item?.BrandName : ''}
- {item?.Type != 'C' && (
- <>
- - ( - {!item?.ProdVariantName?.toLowerCase()?.includes( - 'variant' - ) && {item?.ProdVariantName} } - {item?.Size} - {item?.SinglePc == 'Y' - ? 'PCS' - : item?.UomName} - ) - - {item?.OfferMessage && - !Array.isArray(item.OfferMessage) && ( -- {item.OfferMessage?.split('>')?.[0] + - `> ${item?.OrderQty} Eligible Free`} - - )} - > - )} - {item?.Type === 'C' && ( -
- {item.ProdDetail?.map((prod, index) => (
-
- )}
- {productBasedExtraCharges?.find(
- (find) => find.ProdId === item.ProdId
- ) !== undefined && (
- - {prod.ProdName} - {prod.Size} {prod.UomName} - - ))} -
- Extra Charges :{' '}
- {
- productBasedExtraCharges?.find(
- (find) => find.ProdId === item.ProdId
- )?.TotalAmt
- }
-
- )}
- |
- )}
- {tableitem.OptionName == 'MRP' && (
- { - if (editField) { - handleEditQuantity(item); - } - }} - > - {item.MRP} - | - )} - {tableitem.OptionName == 'Discount' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {item?.Type != 'C' - ? item.Offer && item.Offer > 0 - ? item.Offer - : '-' - : item?.OfferPrice && item?.OfferPrice > 0 - ? item?.OfferType === 'F' - ? `₹${item.OfferPrice}` - : `${item.OfferPrice}%` - : '-'} - | - )} - {tableitem.OptionName == 'Quantity' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {item.OrderQty} - | - )} - {tableitem.OptionName == 'Rate' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {allowDecimal - ? Number(item?.OrderRate || 0).toFixed(2) - : Number(item?.OrderRate || 0)} - | - )} - {tableitem.OptionName == 'Amount' && ( -{ - // if (editField) { - // handleEditQuantity(item); - // } - if (GetCustId) { - handleCustomerProductPriceHistory(item); - } - }} - > - {allowDecimal - ? Number( - item?.TotalAmt - (item?.Offer || 0) || 0 - ).toFixed(2) - : Number( - item?.TotalAmt - (item?.Offer || 0) || 0 - )} - | - )} - - {tableitem.OptionName == 'Delete' && ( - removeFromCart(item)}
- >
- |
- )}
- >
- ))}
- |||||||
|
+ |
+ )}
+
+ {tableitem.OptionName == 'Sl.No' && (
{
+ if (editField) {
+ handleEditQuantity(item);
+ }
+ }}
>
- |
)}
-
- {tableitem.OptionName == 'Sl.No' && (
- { - if (editField) { - handleEditQuantity(item); - } - }} - > - {OldtableDataTakeAway?.length + index + 1} - | - )} - {tableitem.OptionName == 'Item' && ( - {
- if (editField) {
- handleEditQuantity(item);
- }
- }}
- >
- {item.ProdName}
- {' '}
- {item?.BrandName !== null ? item?.BrandName : ''}
- {item?.Type != 'C' && (
- <>
- { + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.ProdName} + {' '} + {item?.BrandName !== null ? item?.BrandName : ''} + {item?.Type != 'C' && ( + <> + + ( + {!item?.ProdVariantName?.toLowerCase()?.includes( + 'variant' + ) && {item?.ProdVariantName} } + {item?.Size} + {item?.SinglePc == 'Y' + ? 'PCS' + : item?.UomName} + ) + + {item?.OfferMessage && + !Array.isArray(item.OfferMessage) && ( ++ {item.OfferMessage?.split('>')?.[0] + + `> ${item?.OrderQty} Eligible Free`} + + )} + > + )} + {item?.Type === 'C' && ( +
- (
- {!item?.ProdVariantName?.toLowerCase()?.includes(
- 'variant'
- ) && {item?.ProdVariantName} }
- {item?.Size}
- {item?.SinglePc == 'Y'
- ? 'PCS'
- : item?.UomName}
- )
-
- {item?.OfferMessage &&
- !Array.isArray(item.OfferMessage) && (
-
+ )}
+ {productBasedExtraCharges?.find(
+ (find) => find.ProdId === item.ProdId
+ ) !== undefined && (
- {item.OfferMessage?.split('>')?.[0] + - `> ${item?.OrderQty} Eligible Free`} + {item.ProdDetail?.map((prod, index) => ( + + {prod.ProdName} - {prod.Size}{' '} + {prod.UomName} - )} - > - )} - {item?.Type === 'C' && ( -
- {item.ProdDetail?.map((prod, index) => (
-
- )}
- {productBasedExtraCharges?.find(
- (find) => find.ProdId === item.ProdId
- ) !== undefined && (
+ ))}
+ - {prod.ProdName} - {prod.Size} {prod.UomName} - - ))} - {
}
)}
- |
- )}
- {tableitem.OptionName == 'MRP' && (
- { - if (editField) { - handleEditQuantity(item); - } - }} - > - {item.MRP} - | - )} - {tableitem.OptionName == 'Discount' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {item?.Type != 'C' - ? item.Offer && item.Offer > 0 - ? item.Offer - : '-' - : item?.OfferPrice && item?.OfferPrice > 0 - ? item?.OfferType === 'F' - ? `₹${item.OfferPrice}` - : `${item.OfferPrice}%` - : '-'} - | - )} - {tableitem.OptionName == 'Quantity' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {item.OrderQty} - | - )} - {tableitem.OptionName == 'Rate' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {allowDecimal - ? Number(item?.OrderRate || 0).toFixed(2) - : Number(item?.OrderRate || 0)} - | - )} - {tableitem.OptionName == 'Amount' && ( -{ - // if (editField) { - // handleEditQuantity(item); - // } - if (GetCustId) { - handleCustomerProductPriceHistory(item); - } - }} - > - {allowDecimal - ? Number( - item?.TotalAmt - (item?.Offer || 0) || 0 - ).toFixed(2) - : Number( - item?.TotalAmt - (item?.Offer || 0) || 0 - )} - | - )} + + )} + {tableitem.OptionName == 'MRP' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.MRP} + | + )} + {tableitem.OptionName == 'Discount' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item?.Type != 'C' + ? item.Offer && item.Offer > 0 + ? item.Offer + : '-' + : item?.OfferPrice && item?.OfferPrice > 0 + ? item?.OfferType === 'F' + ? `₹${item.OfferPrice}` + : `${item.OfferPrice}%` + : '-'} + | + )} + {tableitem.OptionName == 'Quantity' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.OrderQty} + | + )} + {tableitem.OptionName == 'Rate' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {allowDecimal + ? Number(item?.OrderRate || 0).toFixed(2) + : Number(item?.OrderRate || 0)} + | + )} + {tableitem.OptionName == 'Amount' && ( +{ + // if (editField) { + // handleEditQuantity(item); + // } + if (GetCustId) { + handleCustomerProductPriceHistory(item); + } + }} + > + {allowDecimal + ? Number( + item?.TotalAmt - (item?.Offer || 0) || 0 + ).toFixed(2) + : Number( + item?.TotalAmt - (item?.Offer || 0) || 0 + )} + | + )} - {tableitem.OptionName == 'Delete' && ( - removeFromCart(item)}
- >
- |
- )}
- >
- ))}
- |
|
+ |
+ )}
+
+ {tableitem.OptionName == 'Sl.No' && (
{
+ if (editField) {
+ handleEditQuantity(item);
+ }
+ }}
>
- |
)}
-
- {tableitem.OptionName == 'Sl.No' && (
- { - if (editField) { - handleEditQuantity(item); - } - }} - > - {OldtableDataDinein?.length + - OldtableDataTakeAway?.length + - index + - 1} - | - )} - {tableitem.OptionName == 'Item' && ( -- item.FullProductIdentifierDtls?.length > 0 || + {tableitem.OptionName == 'Item' && ( + |
+ item.FullProductIdentifierDtls?.length > 0 ||
item.ProductIdentifierDtls?.length > 0
- ? handleImeiDetails(item)
- : editField && handleEditQuantity(item)
- }
- >
- {item?.Type !== 'OS'
- ? item.ProdName
- : item.ServiceName}
- {' '}
- {item?.BrandName !== null ? item?.BrandName : ''}
- {item?.Type != 'C' && (
- <>
- + {item?.Type !== 'OS' + ? item.ProdName + : item.ServiceName} + {' '} + {item?.BrandName !== null ? item?.BrandName : ''} + {item?.Type != 'C' && ( + <> + + {item?.Type !== 'OS' && ( + <> + {!item?.ProdVariantName?.toLowerCase()?.includes( + 'variant' + ) && ( + {item?.ProdVariantName} + )} + {item?.Size} + {item?.SinglePc == 'Y' + ? 'PCS' + : item?.UomName} + > + )} + + {item?.OfferMessage && + !Array.isArray(item.OfferMessage) && ( ++ {item.OfferMessage?.split('>')?.[0] + + `> ${item?.OrderQty} Eligible Free`} + + )} + > + )} + {item?.Type === 'C' && ( +
- {item?.Type !== 'OS' && (
- <>
- {!item?.ProdVariantName?.toLowerCase()?.includes(
- 'variant'
- ) && (
- {item?.ProdVariantName}
- )}
- {item?.Size}
- {item?.SinglePc == 'Y'
- ? 'PCS'
- : item?.UomName}
- >
- )}
-
- {item?.OfferMessage &&
- !Array.isArray(item.OfferMessage) && (
-
+ )}
+ {productBasedExtraCharges?.find(
+ (find) => find.ProdId === item.ProdId
+ ) !== undefined && (
- {item.OfferMessage?.split('>')?.[0] + - `> ${item?.OrderQty} Eligible Free`} + {item.ProdDetail?.map((prod, index) => ( + + {prod.ProdName} - {prod.Size}{' '} + {prod.UomName} - )} - > - )} - {item?.Type === 'C' && ( -
- {item.ProdDetail?.map((prod, index) => (
-
- )}
- {productBasedExtraCharges?.find(
- (find) => find.ProdId === item.ProdId
- ) !== undefined && (
+ ))}
+ - {prod.ProdName} - {prod.Size} {prod.UomName} - - ))} - {
}
)}
- |
- )}
- {tableitem.OptionName == 'MRP' && (
- { - if (editField) { - handleEditQuantity(item); - } - }} - > - {item.MRP} - | - )} - {tableitem.OptionName == 'Discount' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {item?.Type != 'C' - ? item.Offer && item.Offer > 0 - ? item.Offer - : '-' - : item?.OfferPrice && item?.OfferPrice > 0 - ? item?.OfferType === 'F' - ? `₹${item.OfferPrice}` - : `${item.OfferPrice}%` - : '-'} - | - )} - {tableitem.OptionName == 'Quantity' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {item.OrderQty} - | - )} - {tableitem.OptionName == 'Rate' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {allowDecimal - ? Number(item?.OrderRate || 0).toFixed(2) - : Number(item?.OrderRate || 0)} - | - )} - {tableitem.OptionName == 'Amount' && ( -{ - // if (editField) { - // handleEditQuantity(item); - // } - if (GetCustId) { - handleCustomerProductPriceHistory(item); - } - }} - > - {allowDecimal - ? Number( - item?.TotalAmt - (item?.Offer || 0) || 0 - ).toFixed(2) - : Number( - item?.TotalAmt - (item?.Offer || 0) || 0 - )} - | - )} + + )} + {tableitem.OptionName == 'MRP' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.MRP} + | + )} + {tableitem.OptionName == 'Discount' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item?.Type != 'C' + ? item.Offer && item.Offer > 0 + ? item.Offer + : '-' + : item?.OfferPrice && item?.OfferPrice > 0 + ? item?.OfferType === 'F' + ? `₹${item.OfferPrice}` + : `${item.OfferPrice}%` + : '-'} + | + )} + {tableitem.OptionName == 'Quantity' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.OrderQty} + | + )} + {tableitem.OptionName == 'Rate' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {allowDecimal + ? Number(item?.OrderRate || 0).toFixed(2) + : Number(item?.OrderRate || 0)} + | + )} + {tableitem.OptionName == 'Amount' && ( +{ + // if (editField) { + // handleEditQuantity(item); + // } + if (GetCustId) { + handleCustomerProductPriceHistory(item); + } + }} + > + {allowDecimal + ? Number( + item?.TotalAmt - (item?.Offer || 0) || 0 + ).toFixed(2) + : Number( + item?.TotalAmt - (item?.Offer || 0) || 0 + )} + | + )} - {tableitem.OptionName == 'Delete' && ( - removeFromCart(item)}
- >
- |
- )}
- >
- ))}
-
|
+ |
+ )}
+
+ {tableitem.OptionName == 'Sl.No' && (
{
+ if (editField) {
+ handleEditQuantity(item);
+ }
+ }}
>
- |
)}
-
- {tableitem.OptionName == 'Sl.No' && (
- { - if (editField) { - handleEditQuantity(item); - } - }} - > - {OldtableDataTakeAway?.length + - OldtableDataDinein?.length + - tableDataTakeAway?.length + - index + - 1} - | - )} - {tableitem.OptionName == 'Item' && ( - {
- if (editField) {
- handleEditQuantity(item);
- }
- }}
- >
- {item.ProdName}
- {' '}
- {item?.BrandName !== null ? item?.BrandName : ''}
- {item?.Type != 'C' && (
- <>
- { + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.ProdName} + {' '} + {item?.BrandName !== null ? item?.BrandName : ''} + {item?.Type != 'C' && ( + <> + + ( + {!item?.ProdVariantName?.toLowerCase()?.includes( + 'variant' + ) && {item?.ProdVariantName} } + {item?.Size} + {item?.SinglePc == 'Y' + ? 'PCS' + : item?.UomName} + ) + + {item?.OfferMessage && + !Array.isArray(item.OfferMessage) && ( ++ {item.OfferMessage?.split('>')?.[0] + + `> ${item?.OrderQty} Eligible Free`} + + )} + > + )} + {item?.Type === 'C' && ( +
- (
- {!item?.ProdVariantName?.toLowerCase()?.includes(
- 'variant'
- ) && {item?.ProdVariantName} }
- {item?.Size}
- {item?.SinglePc == 'Y'
- ? 'PCS'
- : item?.UomName}
- )
-
- {item?.OfferMessage &&
- !Array.isArray(item.OfferMessage) && (
-
+ )}
+ {productBasedExtraCharges?.find(
+ (find) => find.ProdId === item.ProdId
+ ) !== undefined && (
- {item.OfferMessage?.split('>')?.[0] + - `> ${item?.OrderQty} Eligible Free`} + {item.ProdDetail?.map((prod, index) => ( + + {prod.ProdName} - {prod.Size}{' '} + {prod.UomName} - )} - > - )} - {item?.Type === 'C' && ( -
- {item.ProdDetail?.map((prod, index) => (
-
- )}
- {productBasedExtraCharges?.find(
- (find) => find.ProdId === item.ProdId
- ) !== undefined && (
+ ))}
+ - {prod.ProdName} - {prod.Size} {prod.UomName} - - ))} - {
}
)}
- |
- )}
- {tableitem.OptionName == 'MRP' && (
- { - if (editField) { - handleEditQuantity(item); - } - }} - > - {item.MRP} - | - )} - {tableitem.OptionName == 'Discount' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {item?.Type != 'C' - ? item.Offer && item.Offer > 0 - ? item.Offer - : '-' - : item?.OfferPrice && item?.OfferPrice > 0 - ? item?.OfferType === 'F' - ? `₹${item.OfferPrice}` - : `${item.OfferPrice}%` - : '-'} - | - )} - {tableitem.OptionName == 'Quantity' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {item.OrderQty} - | - )} - {tableitem.OptionName == 'Rate' && ( -{ - if (editField) { - handleEditQuantity(item); - } - }} - > - {allowDecimal - ? Number(item?.OrderRate || 0).toFixed(2) - : Number(item?.OrderRate || 0)} - | - )} - {tableitem.OptionName == 'Amount' && ( -{ - // if (editField) { - // handleEditQuantity(item); - // } - if (GetCustId) { - handleCustomerProductPriceHistory(item); - } - }} - > - {allowDecimal - ? Number( - item?.TotalAmt - (item?.Offer || 0) || 0 - ).toFixed(2) - : Number( - item?.TotalAmt - (item?.Offer || 0) || 0 - )} - | - )} + + )} + {tableitem.OptionName == 'MRP' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.MRP} + | + )} + {tableitem.OptionName == 'Discount' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item?.Type != 'C' + ? item.Offer && item.Offer > 0 + ? item.Offer + : '-' + : item?.OfferPrice && item?.OfferPrice > 0 + ? item?.OfferType === 'F' + ? `₹${item.OfferPrice}` + : `${item.OfferPrice}%` + : '-'} + | + )} + {tableitem.OptionName == 'Quantity' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {item.OrderQty} + | + )} + {tableitem.OptionName == 'Rate' && ( +{ + if (editField) { + handleEditQuantity(item); + } + }} + > + {allowDecimal + ? Number(item?.OrderRate || 0).toFixed(2) + : Number(item?.OrderRate || 0)} + | + )} + {tableitem.OptionName == 'Amount' && ( +{ + // if (editField) { + // handleEditQuantity(item); + // } + if (GetCustId) { + handleCustomerProductPriceHistory(item); + } + }} + > + {allowDecimal + ? Number( + item?.TotalAmt - (item?.Offer || 0) || 0 + ).toFixed(2) + : Number( + item?.TotalAmt - (item?.Offer || 0) || 0 + )} + | + )} - {tableitem.OptionName == 'Delete' && ( - removeFromCart(item)}
- >
- |
- )}
- >
- ))}
- removeFromCart(item)}
+ >
+ |
+ )}
+ >
+ ))}
+
+ ))}
+ {tableDataDinein?.length > 0 && EditQuantity && (
+
{orderCardDetail?.length || 0}
-- {orderCardDetail?.reduce((acc, item) => { - const isWeightScale = item?.ScaleType === 'weight'; - - if (isWeightScale) { - return ( - acc + - (Weightasquantity - ? Math.round(Number(item?.OrderQty || 0)) - : 1) - ); - } - - return acc + Math.round(Number(item?.OrderQty || 0)); - }, 0)} -
-- ₹ - {orderCardDetail?.reduce( - (acc, data) => parseFloat(data?.TotalAmt || 0) + acc, - 0 - )} -
-{safeRound(TotalTaxAmount)}
+{orderCardDetail?.length || 0}
{safeRound(extra)}
++ {orderCardDetail?.reduce((acc, item) => { + const isWeightScale = item?.ScaleType === 'weight'; + + if (isWeightScale) { + return ( + acc + + (Weightasquantity + ? Math.round(Number(item?.OrderQty || 0)) + : 1) + ); + } + + return acc + Math.round(Number(item?.OrderQty || 0)); + }, 0)} +
++ ₹ + {orderCardDetail?.reduce( + (acc, data) => parseFloat(data?.TotalAmt || 0) + acc, + 0 + )} +
+{safeRound(TotalTaxAmount)}
+{safeRound(extra)}
++ -₹ + {(OverAllSales > 0 ? OverAllSales : 0) + + (OverAllEstimate > 0 ? OverAllEstimate : 0) + + (Discount > 0 ? Discount : 0)} +
++ ₹ + {safeRound( + credit && overAllBal >= 0 + ? Math.max(0, TotalAmount - overAllBal) + : TotalAmount + )} +
- -₹ - {(OverAllSales > 0 ? OverAllSales : 0) + - (OverAllEstimate > 0 ? OverAllEstimate : 0) + - (Discount > 0 ? Discount : 0)} -
- ₹ - {safeRound(credit && overAllBal >= 0 - ? Math.max(0, TotalAmount - overAllBal) - : TotalAmount)} -
-Refund: ₹{(previousNetAmount || 0) - (currentOrderNetAmount || 0)}
: ( - <> -+ handleUPIButtonClick(payment?.ModeId, payment?.ModeName) + : () => + handlePaymentMode(payment?.ModeId, payment?.ModeName); + + return ( +
+ Refund: ₹ + {(previousNetAmount || 0) - (currentOrderNetAmount || 0)} +
+ ) : ( + <> ++ {isMobile ? ( + `₹ ${safeRound( OrderType === 'Failed' ? FailedTotalAmt : credit && overAllBal >= 0 ? Math.max(0, TotalAmount - overAllBal) : TotalAmount - )} - /> + )}` + ) : ( +
{ + let Filterdata1 = ComboCardata?.filter( + (item) => item?.ServiceCategory === ProdCat + ); + let Filterdata2 = ComboCardata?.filter( + (item) => item?.ServiceCategory === ProdCat + ); -let Filterdata1 = ComboCardata?.filter((item) => item?.ServiceCategory === ProdCat) -let Filterdata2 = ComboCardata?.filter((item) => item?.ServiceCategory === ProdCat) - - -let Filterdata = ComboCardata?.filter((item) => item?.ServiceCategory === ProdCat)?.[0]?.ServiceDetails; -let Filterdatas = ComboCardata?.filter((item) => item?.ServiceCategory === ProdCat)?.[0]?.ServiceDetails; - + let Filterdata = ComboCardata?.filter( + (item) => item?.ServiceCategory === ProdCat + )?.[0]?.ServiceDetails; + let Filterdatas = ComboCardata?.filter( + (item) => item?.ServiceCategory === ProdCat + )?.[0]?.ServiceDetails; let data1 = { compId: CompId, @@ -430,7 +437,6 @@ let Filterdatas = ComboCardata?.filter((item) => item?.ServiceCategory === ProdC }; const handleClick2 = async () => { - getTaxname(); getUom(); setIndexVal(-1); @@ -511,8 +517,10 @@ let Filterdatas = ComboCardata?.filter((item) => item?.ServiceCategory === ProdC }; useEffect(() => { - holdnamedrop(); - }, [AppId, CompId, BranchId]); + if (isModalOpen) { + holdnamedrop(); + } + }, [isModalOpen]); const holdnamedrop = async () => { let data = { @@ -526,13 +534,7 @@ let Filterdatas = ComboCardata?.filter((item) => item?.ServiceCategory === ProdC const response = await dispatch(getUomData()).unwrap(); - // setTableuomname(response?.data?.data); - // let UomId = response?.data?.data?.filter( - // (item) => item.ConfigName?.toLowerCase() === 'pcs' - // )?.[0]?.['ConfigId']; - // formRef.current?.setFieldsValue({ UOM: UomId }); - // setselectedUom(UomId); - + const UomTypePreference = ApplicationPreferenceData?.find( (preference) => preference?.PreferredCatName === 'Product Uom' )?.PreferenceCatDetails; @@ -718,17 +720,7 @@ let Filterdatas = ComboCardata?.filter((item) => item?.ServiceCategory === ProdC handleCancel(); formRef?.current?.resetFields(); - resetForm(); - let data = { - CompId: CompId, - BranchId: BranchId, - AppId: AppId, - ProdType: 'O', - }; - const respons = await dispatch(othernamedrop(data)).unwrap(); - if (respons?.data?.statusCode == 1) { - setTabledropname(respons?.data?.data); - } + resetForm(); }; const handleValuesChange = (values) => { @@ -860,20 +852,19 @@ let Filterdatas = ComboCardata?.filter((item) => item?.ServiceCategory === ProdC }; useEffect(() => { - if (typeof searchData === 'string' && categoryData?.length > 0) { - const searchTerm = searchData?.trim()?.toLowerCase(); - const foundIndex = categoryData.findIndex( - (cat) => - typeof cat.ProdCatName === 'string' && - cat.ProdCatName?.trim()?.toLowerCase() === searchTerm - ); - if (foundIndex !== -1) { - setIndexVal(foundIndex); + if (typeof searchData === 'string' && categoryData?.length > 0) { + const searchTerm = searchData?.trim()?.toLowerCase(); + const foundIndex = categoryData.findIndex( + (cat) => + typeof cat.ProdCatName === 'string' && + cat.ProdCatName?.trim()?.toLowerCase() === searchTerm + ); + if (foundIndex !== -1) { + setIndexVal(foundIndex); + } + } else if (categoryData?.length > 0) { + setIndexVal(0); } - } else if (categoryData?.length > 0) { - setIndexVal(0); - } - }, [searchData, categoryData]); useEffect(() => { @@ -893,14 +884,13 @@ let Filterdatas = ComboCardata?.filter((item) => item?.ServiceCategory === ProdC let Data = response?.data?.data; setCombocardata(Data?.ServiceCategories); - } }; return ( <> - -
- Favourites -
-- Favourites -
-- Others -
-Parking
+
+ Quick Add
(Alt +N)
+
Dine In
+Take Away
+Extra Charge
+Re Print
+Parking
-
- Quick Add
(Alt +N)
-
Dine In
-Take Away
-Extra Charge
-Re Print
-UPI
} */} - -UPI
} */} + {/* {UpiOption === "" && payment?.ModeName?.toLowerCase() === "upi" &&UPI
} */} -UPI
} */} - {/*Hold
*/} +Hold
*/} -Adv Amt
+Adv Amt
-Item Name:
+ {ProductSearch?.length > 5 && + QuickAdd && + GetmultipleSearchDatas.some( + (e) => e.toLowerCase() === 'qrcode' + ) && ( +Item Name:
+{qtydata?.ProdName}
+{qtydata?.ProdName}
-- {item?.Size + ' ' + item?.UomName} -
- {returnQtyCount( - item?.ProdId, - item, - CartOrderDetails - ) > 0 || item?.StockAvailable !== 'Y' ? ( -- ₹ - - { - item?.ProdVariantDetails?.[0]?.StockDetails?.[0] - ?.SellPrice +
+ {item?.Size + ' ' + item?.UomName}
- ) : ( - '' - )} + {returnQtyCount( + item?.ProdId, + item, + CartOrderDetails + ) > 0 || item?.StockAvailable !== 'Y' ? ( ++ ₹ + + { + item?.ProdVariantDetails?.[0] + ?.StockDetails?.[0]?.SellPrice + } +
+ ) : ( + '' + )} +No product details available
- )} -Item Name:
-{qtydata?.ProdName}
-Item Quantity:
-- {qtydata?.ProductDetail?.[QtyIndex]?.Size}{' '} - {onePeiceFlow - ? 'PCS' - : qtydata?.ProductDetail?.[QtyIndex]?.UomName} -
-No product details available
+ )}Item Name:
+ +Item Name:
++ {qtydata?.ProdName} +
+{qtydata?.ProdName}
+Item Quantity:
++ {qtydata?.ProductDetail?.[QtyIndex]?.Size}{' '} + {onePeiceFlow + ? 'PCS' + : qtydata?.ProductDetail?.[QtyIndex]?.UomName} +
+Item Quantity:
-- {qtydata?.ProductDetail?.[QtyIndex]?.Size}{' '} - {onePeiceFlow - ? 'PCS' - : qtydata?.ProductDetail?.[QtyIndex]?.UomName} -
-Item Name:
++ {qtydata?.ProdName} +
+Item Quantity:
++ {qtydata?.ProductDetail?.[QtyIndex]?.Size}{' '} + {onePeiceFlow + ? 'PCS' + : qtydata?.ProductDetail?.[QtyIndex]?.UomName} +
+- ₹{' '} - { - item?.TotalAmt - } + ₹ {item?.TotalAmt} {/* {item?.TotalAmt} */} {/* {ItemSellingPrice(item)} */} @@ -4170,8 +4147,7 @@ const BSOtherServiceItemCard = (props) => { {'(1 Combo Pack)'} */}
- ) - } + )}+
- {item?.ProdName}{' '} - {/* {(item?.OverallQuantity !== undefined && + // Width: cardFunction?.BigImage && "70px", + fontSize: + !cardFunction?.BigImage && + !cardFunction?.SmallImage && + '12px', //naresh27 + whiteSpace: + !cardFunction?.BigImage && + 'pre-wrap', + margin: 'auto', + fontFamily: SelectedCardFont + ? SelectedCardFont + : '', + color: SelectedCardColor + ? SelectedCardColor?.['FontColor'] + : '', + textOverflow: 'ellipsis', + }} + className="BSItemCard-itemName" + > + {item?.ProdName}{' '} + {/* {(item?.OverallQuantity !== undefined && returnCount( item?.ComboName, item?.OverallQuantity, @@ -4432,80 +4406,79 @@ const BSOtherServiceItemCard = (props) => { No Stock
)} */} - - {cardFunction?.Price && - ((item?.OverallQuantity !== undefined && - item?.OverallQuantity !== 0 && - item?.OverallQuantity !== null) || - item?.ProductDetail?.some( - (item) => - item?.StockAvailable !== 'Y' - )) && ( -- ₹ {ItemSellingPrice(item)} - {/* {item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0]?.SellPrice} */} - {/* {ItemSellingPrice(item)} */} - - ({ItemSize(item)} - {ItemUomName(item)}) - -
- )} -
- {item?.OverallQuantity !== null && (
-
{' '} @@ -4582,10 +4556,8 @@ const BSOtherServiceItemCard = (props) => {
{
fontSize:
!cardFunction?.SmallImage
? cardFunction?.BigImage &&
- '12px'
+ '12px'
: '12px',
textAlign: 'center',
lineHeight: '2',
@@ -4897,8 +4892,8 @@ const BsBookingitemCard = (props) => {
: '',
color: SelectedCardColor
? SelectedCardColor?.[
- 'FontColor'
- ]
+ 'FontColor'
+ ]
: '',
}}
>
@@ -4984,39 +4979,39 @@ const BsBookingitemCard = (props) => {
cardFunction?.Background &&
(SelectedCardColor
? SelectedCardColor?.[
- 'BackgroundColor'
- ]
+ 'BackgroundColor'
+ ]
: ''),
padding:
!cardFunction?.ImageUp &&
- !cardFunction?.ImageDown
+ !cardFunction?.ImageDown
? cardFunction?.SmallImage &&
- '5px 9px'
+ '5px 9px'
: '8px 2px',
flexDirection:
cardFunction?.ImageRight &&
- 'row-reverse'
+ 'row-reverse'
? cardFunction?.ImageRight &&
- 'row-reverse'
+ 'row-reverse'
: cardFunction?.ImageUp && 'column'
? cardFunction?.ImageUp &&
- 'column'
+ 'column'
: cardFunction?.ImageDown &&
- 'column-reverse'
+ 'column-reverse'
? cardFunction?.ImageDown &&
- 'column-reverse'
+ 'column-reverse'
: cardFunction?.ImageLeft &&
- 'row',
+ 'row',
borderRadius:
cardFunction?.EdgeCurve && '6px',
width:
!cardFunction?.ImageUp &&
- !cardFunction?.ImageDown &&
- !cardFunction?.BigImage &&
- !cardFunction?.ImageRight &&
- cardFunction?.SmallImage &&
- (cardFunction?.ImageUp ||
- cardFunction?.ImageDown)
+ !cardFunction?.ImageDown &&
+ !cardFunction?.BigImage &&
+ !cardFunction?.ImageRight &&
+ cardFunction?.SmallImage &&
+ (cardFunction?.ImageUp ||
+ cardFunction?.ImageDown)
? '6rem'
: cardFunction?.BigImage && '9rem',
height:
@@ -5033,43 +5028,43 @@ const BsBookingitemCard = (props) => {
onClick={(e) => {
CardOnclick(item, index);
}}
- // data-aos="zoom-in" data-aos-duration="600"
+ // data-aos="zoom-in" data-aos-duration="600"
>
{(cardFunction?.BigImage ||
cardFunction?.SmallImage) && (
-
- )}
+ ? item?.ProductDetail?.[0]
+ ?.ProdLogo
+ : defaultimage
+ }
+ alt=""
+ />
+ )}
{' '} @@ -5989,30 +5992,30 @@ const BsBookingitemCard = (props) => { {slots.map((timeSlot, idx) => { const isBooked = timeSlot?.SlotStatus?.toLowerCase() == - 'booked' || false; + 'booked' || false; const isBlocked = timeSlot?.SlotStatus?.toLowerCase() == - 'blocked' || false; + 'blocked' || false; const isPartiallyBooked = timeSlot?.SlotStatus?.toLowerCase() === - 'partially booked' || false; + 'partially booked' || false; const isPartiallyBlocked = timeSlot?.SlotStatus?.toLowerCase() === - 'partially blocked' || false; + 'partially blocked' || false; const isSelected = CartOrderDetails?.some( (selected) => selected.ProdId === - timeSlot?.ProdId && + timeSlot?.ProdId && selected.InwardDtlId === - timeSlot?.InwardDtlId && + timeSlot?.InwardDtlId && selected.VariantAvailableFrom === - timeSlot?.VariantAvailableFrom && + timeSlot?.VariantAvailableFrom && selected.VariantAvailableTo === - timeSlot?.VariantAvailableTo && + timeSlot?.VariantAvailableTo && selected.BookedDate === - timeSlot?.BookedDate + timeSlot?.BookedDate ); const isAlreadyAdded = @@ -6020,25 +6023,25 @@ const BsBookingitemCard = (props) => { const itemDate = item?.BookedDate ? new Date( - item?.BookedDate - ).toLocaleDateString() + item?.BookedDate + ).toLocaleDateString() : null; return ( item?.InwardDtlId === - timeSlot?.InwardDtlId && + timeSlot?.InwardDtlId && item?.VariantAvailableFrom === - timeSlot?.VariantAvailableFrom && + timeSlot?.VariantAvailableFrom && item?.VariantAvailableTo === - timeSlot?.VariantAvailableTo && + timeSlot?.VariantAvailableTo && item?.ProdVariantName?.toLowerCase() === - timeSlot?.VarientName?.toLowerCase() && + timeSlot?.VarientName?.toLowerCase() && itemDate === dataDate && (item?.SinglePc === 'Y' ? returnVariantStock( - data, - CartOrderDetails - ) === 0 + data, + CartOrderDetails + ) === 0 : true) ); }); @@ -6051,13 +6054,13 @@ const BsBookingitemCard = (props) => { selectedSlots?.some( (selected) => selected.InwardDtlId === - timeSlot?.InwardDtlId && + timeSlot?.InwardDtlId && selected.VariantAvailableFrom === - timeSlot?.VariantAvailableFrom && + timeSlot?.VariantAvailableFrom && selected.VariantAvailableTo === - timeSlot?.VariantAvailableTo && + timeSlot?.VariantAvailableTo && selected.TempDate === - timeSlot?.BookedDate + timeSlot?.BookedDate ); const isDisabled = isBooked || @@ -6070,25 +6073,26 @@ const BsBookingitemCard = (props) => { return (
Back to Signin
-Loading…
Back to Signin
++ ({UserType}) +
+
+ Sign Out
- Sign Out
Total Amount:{TotalAmount}
+Total Amount:{TotalAmount}
- <>{calculateField()}> - {TotalAmount > TotalSplitAmount && - SplitSelPayMode[`PaymentStatus-${count}`] === 'S' && ( -Upload Profile
Total Amount : {safeRound(TotalAmount)}
-- Remaining Balance : {TotalAmount - (isNaN(TotalSplitAmount) ? 0 : TotalSplitAmount)}
+Total Amount : {safeRound(TotalAmount)}
++ Remaining Balance :{' '} + {TotalAmount - + (isNaN(TotalSplitAmount) ? 0 : TotalSplitAmount)}{' '} +
- <>{calculateField()}> - {TotalAmount > TotalSplitAmount && - SplitSelPayMode[`PaymentStatus-${count}`] === 'S' && ( -