diff --git a/.eslintrc.cjs b/.eslintrc.cjs
new file mode 100644
index 0000000..3e212e1
--- /dev/null
+++ b/.eslintrc.cjs
@@ -0,0 +1,21 @@
+module.exports = {
+ root: true,
+ env: { browser: true, es2020: true },
+ extends: [
+ 'eslint:recommended',
+ 'plugin:react/recommended',
+ 'plugin:react/jsx-runtime',
+ 'plugin:react-hooks/recommended',
+ ],
+ ignorePatterns: ['dist', '.eslintrc.cjs'],
+ parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
+ settings: { react: { version: '18.2' } },
+ plugins: ['react-refresh'],
+ rules: {
+ 'react/jsx-no-target-blank': 'off',
+ 'react-refresh/only-export-components': [
+ 'warn',
+ { allowConstantExport: true },
+ ],
+ },
+}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..eb33691
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,28 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+
+# Other files to ignore
+yarn.lock
+.env
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..a1767f4
--- /dev/null
+++ b/index.html
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+ Tanami Admin
+
+
+
+
+
+
+
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..4b3e017
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,6191 @@
+{
+ "name": "tanami-admin-dashboard",
+ "version": "0.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "tanami-admin-dashboard",
+ "version": "0.0.0",
+ "dependencies": {
+ "@chakra-ui/icons": "^2.1.1",
+ "@chakra-ui/react": "^2.8.2",
+ "@emotion/react": "^11.11.4",
+ "@emotion/styled": "^11.11.5",
+ "@hookform/resolvers": "^3.3.4",
+ "@reduxjs/toolkit": "^2.2.3",
+ "bootstrap": "5.3.3",
+ "dotenv": "^16.4.5",
+ "framer-motion": "^11.1.5",
+ "js-cookie": "^3.0.5",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0",
+ "react-hook-form": "^7.51.3",
+ "react-icons": "^5.1.0",
+ "react-quill": "^2.0.0",
+ "react-redux": "^9.1.1",
+ "react-router-dom": "^6.22.3",
+ "redux-persist": "^6.0.0",
+ "redux-persist-transform-encrypt": "^5.1.1",
+ "uuid": "^9.0.1",
+ "xlsx": "^0.18.5",
+ "yup": "^1.4.0"
+ },
+ "devDependencies": {
+ "@types/react": "^18.2.66",
+ "@types/react-dom": "^18.2.22",
+ "@vitejs/plugin-react-swc": "^3.5.0",
+ "eslint": "^8.57.0",
+ "eslint-plugin-react": "^7.34.1",
+ "eslint-plugin-react-hooks": "^4.6.0",
+ "eslint-plugin-react-refresh": "^0.4.6",
+ "vite": "^5.2.0"
+ }
+ },
+ "node_modules/@aashutoshrathi/word-wrap": {
+ "version": "1.2.6",
+ "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
+ "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.24.2",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz",
+ "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==",
+ "dependencies": {
+ "@babel/highlight": "^7.24.2",
+ "picocolors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.24.3",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz",
+ "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==",
+ "dependencies": {
+ "@babel/types": "^7.24.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.24.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz",
+ "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.22.20",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz",
+ "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/highlight": {
+ "version": "7.24.2",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz",
+ "integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.22.20",
+ "chalk": "^2.4.2",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/ansi-styles": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
+ "dependencies": {
+ "color-convert": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/chalk": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
+ "dependencies": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/color-convert": {
+ "version": "1.9.3",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
+ "dependencies": {
+ "color-name": "1.1.3"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/color-name": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="
+ },
+ "node_modules/@babel/highlight/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/has-flag": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/supports-color": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.24.4",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.4.tgz",
+ "integrity": "sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==",
+ "dependencies": {
+ "regenerator-runtime": "^0.14.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.24.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz",
+ "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.23.4",
+ "@babel/helper-validator-identifier": "^7.22.20",
+ "to-fast-properties": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@chakra-ui/accordion": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/accordion/-/accordion-2.3.1.tgz",
+ "integrity": "sha512-FSXRm8iClFyU+gVaXisOSEw0/4Q+qZbFRiuhIAkVU6Boj0FxAMrlo9a8AV5TuF77rgaHytCdHk0Ng+cyUijrag==",
+ "dependencies": {
+ "@chakra-ui/descendant": "3.1.0",
+ "@chakra-ui/icon": "3.2.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-use-controllable-state": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@chakra-ui/transition": "2.1.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "framer-motion": ">=4.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/alert": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/alert/-/alert-2.2.2.tgz",
+ "integrity": "sha512-jHg4LYMRNOJH830ViLuicjb3F+v6iriE/2G5T+Sd0Hna04nukNJ1MxUmBPE+vI22me2dIflfelu2v9wdB6Pojw==",
+ "dependencies": {
+ "@chakra-ui/icon": "3.2.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@chakra-ui/spinner": "2.1.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/anatomy": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/anatomy/-/anatomy-2.2.2.tgz",
+ "integrity": "sha512-MV6D4VLRIHr4PkW4zMyqfrNS1mPlCTiCXwvYGtDFQYr+xHFfonhAuf9WjsSc0nyp2m0OdkSLnzmVKkZFLo25Tg=="
+ },
+ "node_modules/@chakra-ui/avatar": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/avatar/-/avatar-2.3.0.tgz",
+ "integrity": "sha512-8gKSyLfygnaotbJbDMHDiJoF38OHXUYVme4gGxZ1fLnQEdPVEaIWfH+NndIjOM0z8S+YEFnT9KyGMUtvPrBk3g==",
+ "dependencies": {
+ "@chakra-ui/image": "2.1.0",
+ "@chakra-ui/react-children-utils": "2.0.6",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/breadcrumb": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/breadcrumb/-/breadcrumb-2.2.0.tgz",
+ "integrity": "sha512-4cWCG24flYBxjruRi4RJREWTGF74L/KzI2CognAW/d/zWR0CjiScuJhf37Am3LFbCySP6WSoyBOtTIoTA4yLEA==",
+ "dependencies": {
+ "@chakra-ui/react-children-utils": "2.0.6",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/breakpoint-utils": {
+ "version": "2.0.8",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/breakpoint-utils/-/breakpoint-utils-2.0.8.tgz",
+ "integrity": "sha512-Pq32MlEX9fwb5j5xx8s18zJMARNHlQZH2VH1RZgfgRDpp7DcEgtRW5AInfN5CfqdHLO1dGxA7I3MqEuL5JnIsA==",
+ "dependencies": {
+ "@chakra-ui/shared-utils": "2.0.5"
+ }
+ },
+ "node_modules/@chakra-ui/button": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/button/-/button-2.1.0.tgz",
+ "integrity": "sha512-95CplwlRKmmUXkdEp/21VkEWgnwcx2TOBG6NfYlsuLBDHSLlo5FKIiE2oSi4zXc4TLcopGcWPNcm/NDaSC5pvA==",
+ "dependencies": {
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@chakra-ui/spinner": "2.1.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/card": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/card/-/card-2.2.0.tgz",
+ "integrity": "sha512-xUB/k5MURj4CtPAhdSoXZidUbm8j3hci9vnc+eZJVDqhDOShNlD6QeniQNRPRys4lWAQLCbFcrwL29C8naDi6g==",
+ "dependencies": {
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/checkbox": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/checkbox/-/checkbox-2.3.2.tgz",
+ "integrity": "sha512-85g38JIXMEv6M+AcyIGLh7igNtfpAN6KGQFYxY9tBj0eWvWk4NKQxvqqyVta0bSAyIl1rixNIIezNpNWk2iO4g==",
+ "dependencies": {
+ "@chakra-ui/form-control": "2.2.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-callback-ref": "2.1.0",
+ "@chakra-ui/react-use-controllable-state": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/react-use-safe-layout-effect": "2.1.0",
+ "@chakra-ui/react-use-update-effect": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@chakra-ui/visually-hidden": "2.2.0",
+ "@zag-js/focus-visible": "0.16.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/clickable": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/clickable/-/clickable-2.1.0.tgz",
+ "integrity": "sha512-flRA/ClPUGPYabu+/GLREZVZr9j2uyyazCAUHAdrTUEdDYCr31SVGhgh7dgKdtq23bOvAQJpIJjw/0Bs0WvbXw==",
+ "dependencies": {
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/close-button": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/close-button/-/close-button-2.1.1.tgz",
+ "integrity": "sha512-gnpENKOanKexswSVpVz7ojZEALl2x5qjLYNqSQGbxz+aP9sOXPfUS56ebyBrre7T7exuWGiFeRwnM0oVeGPaiw==",
+ "dependencies": {
+ "@chakra-ui/icon": "3.2.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/color-mode": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/color-mode/-/color-mode-2.2.0.tgz",
+ "integrity": "sha512-niTEA8PALtMWRI9wJ4LL0CSBDo8NBfLNp4GD6/0hstcm3IlbBHTVKxN6HwSaoNYfphDQLxCjT4yG+0BJA5tFpg==",
+ "dependencies": {
+ "@chakra-ui/react-use-safe-layout-effect": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/control-box": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/control-box/-/control-box-2.1.0.tgz",
+ "integrity": "sha512-gVrRDyXFdMd8E7rulL0SKeoljkLQiPITFnsyMO8EFHNZ+AHt5wK4LIguYVEq88APqAGZGfHFWXr79RYrNiE3Mg==",
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/counter": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/counter/-/counter-2.1.0.tgz",
+ "integrity": "sha512-s6hZAEcWT5zzjNz2JIWUBzRubo9la/oof1W7EKZVVfPYHERnl5e16FmBC79Yfq8p09LQ+aqFKm/etYoJMMgghw==",
+ "dependencies": {
+ "@chakra-ui/number-utils": "2.0.7",
+ "@chakra-ui/react-use-callback-ref": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/css-reset": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/css-reset/-/css-reset-2.3.0.tgz",
+ "integrity": "sha512-cQwwBy5O0jzvl0K7PLTLgp8ijqLPKyuEMiDXwYzl95seD3AoeuoCLyzZcJtVqaUZ573PiBdAbY/IlZcwDOItWg==",
+ "peerDependencies": {
+ "@emotion/react": ">=10.0.35",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/descendant": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/descendant/-/descendant-3.1.0.tgz",
+ "integrity": "sha512-VxCIAir08g5w27klLyi7PVo8BxhW4tgU/lxQyujkmi4zx7hT9ZdrcQLAted/dAa+aSIZ14S1oV0Q9lGjsAdxUQ==",
+ "dependencies": {
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/dom-utils": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/dom-utils/-/dom-utils-2.1.0.tgz",
+ "integrity": "sha512-ZmF2qRa1QZ0CMLU8M1zCfmw29DmPNtfjR9iTo74U5FPr3i1aoAh7fbJ4qAlZ197Xw9eAW28tvzQuoVWeL5C7fQ=="
+ },
+ "node_modules/@chakra-ui/editable": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/editable/-/editable-3.1.0.tgz",
+ "integrity": "sha512-j2JLrUL9wgg4YA6jLlbU88370eCRyor7DZQD9lzpY95tSOXpTljeg3uF9eOmDnCs6fxp3zDWIfkgMm/ExhcGTg==",
+ "dependencies": {
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-callback-ref": "2.1.0",
+ "@chakra-ui/react-use-controllable-state": "2.1.0",
+ "@chakra-ui/react-use-focus-on-pointer-down": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/react-use-safe-layout-effect": "2.1.0",
+ "@chakra-ui/react-use-update-effect": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/event-utils": {
+ "version": "2.0.8",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/event-utils/-/event-utils-2.0.8.tgz",
+ "integrity": "sha512-IGM/yGUHS+8TOQrZGpAKOJl/xGBrmRYJrmbHfUE7zrG3PpQyXvbLDP1M+RggkCFVgHlJi2wpYIf0QtQlU0XZfw=="
+ },
+ "node_modules/@chakra-ui/focus-lock": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/focus-lock/-/focus-lock-2.1.0.tgz",
+ "integrity": "sha512-EmGx4PhWGjm4dpjRqM4Aa+rCWBxP+Rq8Uc/nAVnD4YVqkEhBkrPTpui2lnjsuxqNaZ24fIAZ10cF1hlpemte/w==",
+ "dependencies": {
+ "@chakra-ui/dom-utils": "2.1.0",
+ "react-focus-lock": "^2.9.4"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/form-control": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/form-control/-/form-control-2.2.0.tgz",
+ "integrity": "sha512-wehLC1t4fafCVJ2RvJQT2jyqsAwX7KymmiGqBu7nQoQz8ApTkGABWpo/QwDh3F/dBLrouHDoOvGmYTqft3Mirw==",
+ "dependencies": {
+ "@chakra-ui/icon": "3.2.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/hooks": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/hooks/-/hooks-2.2.1.tgz",
+ "integrity": "sha512-RQbTnzl6b1tBjbDPf9zGRo9rf/pQMholsOudTxjy4i9GfTfz6kgp5ValGjQm2z7ng6Z31N1cnjZ1AlSzQ//ZfQ==",
+ "dependencies": {
+ "@chakra-ui/react-utils": "2.0.12",
+ "@chakra-ui/utils": "2.0.15",
+ "compute-scroll-into-view": "3.0.3",
+ "copy-to-clipboard": "3.3.3"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/icon": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/icon/-/icon-3.2.0.tgz",
+ "integrity": "sha512-xxjGLvlX2Ys4H0iHrI16t74rG9EBcpFvJ3Y3B7KMQTrnW34Kf7Da/UC8J67Gtx85mTHW020ml85SVPKORWNNKQ==",
+ "dependencies": {
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/icons": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/icons/-/icons-2.1.1.tgz",
+ "integrity": "sha512-3p30hdo4LlRZTT5CwoAJq3G9fHI0wDc0pBaMHj4SUn0yomO+RcDRlzhdXqdr5cVnzax44sqXJVnf3oQG0eI+4g==",
+ "dependencies": {
+ "@chakra-ui/icon": "3.2.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/image": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/image/-/image-2.1.0.tgz",
+ "integrity": "sha512-bskumBYKLiLMySIWDGcz0+D9Th0jPvmX6xnRMs4o92tT3Od/bW26lahmV2a2Op2ItXeCmRMY+XxJH5Gy1i46VA==",
+ "dependencies": {
+ "@chakra-ui/react-use-safe-layout-effect": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/input": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/input/-/input-2.1.2.tgz",
+ "integrity": "sha512-GiBbb3EqAA8Ph43yGa6Mc+kUPjh4Spmxp1Pkelr8qtudpc3p2PJOOebLpd90mcqw8UePPa+l6YhhPtp6o0irhw==",
+ "dependencies": {
+ "@chakra-ui/form-control": "2.2.0",
+ "@chakra-ui/object-utils": "2.1.0",
+ "@chakra-ui/react-children-utils": "2.0.6",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/layout": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/layout/-/layout-2.3.1.tgz",
+ "integrity": "sha512-nXuZ6WRbq0WdgnRgLw+QuxWAHuhDtVX8ElWqcTK+cSMFg/52eVP47czYBE5F35YhnoW2XBwfNoNgZ7+e8Z01Rg==",
+ "dependencies": {
+ "@chakra-ui/breakpoint-utils": "2.0.8",
+ "@chakra-ui/icon": "3.2.0",
+ "@chakra-ui/object-utils": "2.1.0",
+ "@chakra-ui/react-children-utils": "2.0.6",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/lazy-utils": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/lazy-utils/-/lazy-utils-2.0.5.tgz",
+ "integrity": "sha512-UULqw7FBvcckQk2n3iPO56TMJvDsNv0FKZI6PlUNJVaGsPbsYxK/8IQ60vZgaTVPtVcjY6BE+y6zg8u9HOqpyg=="
+ },
+ "node_modules/@chakra-ui/live-region": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/live-region/-/live-region-2.1.0.tgz",
+ "integrity": "sha512-ZOxFXwtaLIsXjqnszYYrVuswBhnIHHP+XIgK1vC6DePKtyK590Wg+0J0slDwThUAd4MSSIUa/nNX84x1GMphWw==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/media-query": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/media-query/-/media-query-3.3.0.tgz",
+ "integrity": "sha512-IsTGgFLoICVoPRp9ykOgqmdMotJG0CnPsKvGQeSFOB/dZfIujdVb14TYxDU4+MURXry1MhJ7LzZhv+Ml7cr8/g==",
+ "dependencies": {
+ "@chakra-ui/breakpoint-utils": "2.0.8",
+ "@chakra-ui/react-env": "3.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/menu": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/menu/-/menu-2.2.1.tgz",
+ "integrity": "sha512-lJS7XEObzJxsOwWQh7yfG4H8FzFPRP5hVPN/CL+JzytEINCSBvsCDHrYPQGp7jzpCi8vnTqQQGQe0f8dwnXd2g==",
+ "dependencies": {
+ "@chakra-ui/clickable": "2.1.0",
+ "@chakra-ui/descendant": "3.1.0",
+ "@chakra-ui/lazy-utils": "2.0.5",
+ "@chakra-ui/popper": "3.1.0",
+ "@chakra-ui/react-children-utils": "2.0.6",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-use-animation-state": "2.1.0",
+ "@chakra-ui/react-use-controllable-state": "2.1.0",
+ "@chakra-ui/react-use-disclosure": "2.1.0",
+ "@chakra-ui/react-use-focus-effect": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/react-use-outside-click": "2.2.0",
+ "@chakra-ui/react-use-update-effect": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@chakra-ui/transition": "2.1.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "framer-motion": ">=4.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/modal": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/modal/-/modal-2.3.1.tgz",
+ "integrity": "sha512-TQv1ZaiJMZN+rR9DK0snx/OPwmtaGH1HbZtlYt4W4s6CzyK541fxLRTjIXfEzIGpvNW+b6VFuFjbcR78p4DEoQ==",
+ "dependencies": {
+ "@chakra-ui/close-button": "2.1.1",
+ "@chakra-ui/focus-lock": "2.1.0",
+ "@chakra-ui/portal": "2.1.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@chakra-ui/transition": "2.1.0",
+ "aria-hidden": "^1.2.3",
+ "react-remove-scroll": "^2.5.6"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "framer-motion": ">=4.0.0",
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/number-input": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/number-input/-/number-input-2.1.2.tgz",
+ "integrity": "sha512-pfOdX02sqUN0qC2ysuvgVDiws7xZ20XDIlcNhva55Jgm095xjm8eVdIBfNm3SFbSUNxyXvLTW/YQanX74tKmuA==",
+ "dependencies": {
+ "@chakra-ui/counter": "2.1.0",
+ "@chakra-ui/form-control": "2.2.0",
+ "@chakra-ui/icon": "3.2.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-callback-ref": "2.1.0",
+ "@chakra-ui/react-use-event-listener": "2.1.0",
+ "@chakra-ui/react-use-interval": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/react-use-safe-layout-effect": "2.1.0",
+ "@chakra-ui/react-use-update-effect": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/number-utils": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/number-utils/-/number-utils-2.0.7.tgz",
+ "integrity": "sha512-yOGxBjXNvLTBvQyhMDqGU0Oj26s91mbAlqKHiuw737AXHt0aPllOthVUqQMeaYLwLCjGMg0jtI7JReRzyi94Dg=="
+ },
+ "node_modules/@chakra-ui/object-utils": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/object-utils/-/object-utils-2.1.0.tgz",
+ "integrity": "sha512-tgIZOgLHaoti5PYGPTwK3t/cqtcycW0owaiOXoZOcpwwX/vlVb+H1jFsQyWiiwQVPt9RkoSLtxzXamx+aHH+bQ=="
+ },
+ "node_modules/@chakra-ui/pin-input": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/pin-input/-/pin-input-2.1.0.tgz",
+ "integrity": "sha512-x4vBqLStDxJFMt+jdAHHS8jbh294O53CPQJoL4g228P513rHylV/uPscYUHrVJXRxsHfRztQO9k45jjTYaPRMw==",
+ "dependencies": {
+ "@chakra-ui/descendant": "3.1.0",
+ "@chakra-ui/react-children-utils": "2.0.6",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-use-controllable-state": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/popover": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/popover/-/popover-2.2.1.tgz",
+ "integrity": "sha512-K+2ai2dD0ljvJnlrzesCDT9mNzLifE3noGKZ3QwLqd/K34Ym1W/0aL1ERSynrcG78NKoXS54SdEzkhCZ4Gn/Zg==",
+ "dependencies": {
+ "@chakra-ui/close-button": "2.1.1",
+ "@chakra-ui/lazy-utils": "2.0.5",
+ "@chakra-ui/popper": "3.1.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-animation-state": "2.1.0",
+ "@chakra-ui/react-use-disclosure": "2.1.0",
+ "@chakra-ui/react-use-focus-effect": "2.1.0",
+ "@chakra-ui/react-use-focus-on-pointer-down": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "framer-motion": ">=4.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/popper": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/popper/-/popper-3.1.0.tgz",
+ "integrity": "sha512-ciDdpdYbeFG7og6/6J8lkTFxsSvwTdMLFkpVylAF6VNC22jssiWfquj2eyD4rJnzkRFPvIWJq8hvbfhsm+AjSg==",
+ "dependencies": {
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@popperjs/core": "^2.9.3"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/portal": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/portal/-/portal-2.1.0.tgz",
+ "integrity": "sha512-9q9KWf6SArEcIq1gGofNcFPSWEyl+MfJjEUg/un1SMlQjaROOh3zYr+6JAwvcORiX7tyHosnmWC3d3wI2aPSQg==",
+ "dependencies": {
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-use-safe-layout-effect": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/progress": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/progress/-/progress-2.2.0.tgz",
+ "integrity": "sha512-qUXuKbuhN60EzDD9mHR7B67D7p/ZqNS2Aze4Pbl1qGGZfulPW0PY8Rof32qDtttDQBkzQIzFGE8d9QpAemToIQ==",
+ "dependencies": {
+ "@chakra-ui/react-context": "2.1.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/provider": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/provider/-/provider-2.4.2.tgz",
+ "integrity": "sha512-w0Tef5ZCJK1mlJorcSjItCSbyvVuqpvyWdxZiVQmE6fvSJR83wZof42ux0+sfWD+I7rHSfj+f9nzhNaEWClysw==",
+ "dependencies": {
+ "@chakra-ui/css-reset": "2.3.0",
+ "@chakra-ui/portal": "2.1.0",
+ "@chakra-ui/react-env": "3.1.0",
+ "@chakra-ui/system": "2.6.2",
+ "@chakra-ui/utils": "2.0.15"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.0.0",
+ "@emotion/styled": "^11.0.0",
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/radio": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/radio/-/radio-2.1.2.tgz",
+ "integrity": "sha512-n10M46wJrMGbonaghvSRnZ9ToTv/q76Szz284gv4QUWvyljQACcGrXIONUnQ3BIwbOfkRqSk7Xl/JgZtVfll+w==",
+ "dependencies": {
+ "@chakra-ui/form-control": "2.2.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@zag-js/focus-visible": "0.16.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react": {
+ "version": "2.8.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react/-/react-2.8.2.tgz",
+ "integrity": "sha512-Hn0moyxxyCDKuR9ywYpqgX8dvjqwu9ArwpIb9wHNYjnODETjLwazgNIliCVBRcJvysGRiV51U2/JtJVrpeCjUQ==",
+ "dependencies": {
+ "@chakra-ui/accordion": "2.3.1",
+ "@chakra-ui/alert": "2.2.2",
+ "@chakra-ui/avatar": "2.3.0",
+ "@chakra-ui/breadcrumb": "2.2.0",
+ "@chakra-ui/button": "2.1.0",
+ "@chakra-ui/card": "2.2.0",
+ "@chakra-ui/checkbox": "2.3.2",
+ "@chakra-ui/close-button": "2.1.1",
+ "@chakra-ui/control-box": "2.1.0",
+ "@chakra-ui/counter": "2.1.0",
+ "@chakra-ui/css-reset": "2.3.0",
+ "@chakra-ui/editable": "3.1.0",
+ "@chakra-ui/focus-lock": "2.1.0",
+ "@chakra-ui/form-control": "2.2.0",
+ "@chakra-ui/hooks": "2.2.1",
+ "@chakra-ui/icon": "3.2.0",
+ "@chakra-ui/image": "2.1.0",
+ "@chakra-ui/input": "2.1.2",
+ "@chakra-ui/layout": "2.3.1",
+ "@chakra-ui/live-region": "2.1.0",
+ "@chakra-ui/media-query": "3.3.0",
+ "@chakra-ui/menu": "2.2.1",
+ "@chakra-ui/modal": "2.3.1",
+ "@chakra-ui/number-input": "2.1.2",
+ "@chakra-ui/pin-input": "2.1.0",
+ "@chakra-ui/popover": "2.2.1",
+ "@chakra-ui/popper": "3.1.0",
+ "@chakra-ui/portal": "2.1.0",
+ "@chakra-ui/progress": "2.2.0",
+ "@chakra-ui/provider": "2.4.2",
+ "@chakra-ui/radio": "2.1.2",
+ "@chakra-ui/react-env": "3.1.0",
+ "@chakra-ui/select": "2.1.2",
+ "@chakra-ui/skeleton": "2.1.0",
+ "@chakra-ui/skip-nav": "2.1.0",
+ "@chakra-ui/slider": "2.1.0",
+ "@chakra-ui/spinner": "2.1.0",
+ "@chakra-ui/stat": "2.1.1",
+ "@chakra-ui/stepper": "2.3.1",
+ "@chakra-ui/styled-system": "2.9.2",
+ "@chakra-ui/switch": "2.1.2",
+ "@chakra-ui/system": "2.6.2",
+ "@chakra-ui/table": "2.1.0",
+ "@chakra-ui/tabs": "3.0.0",
+ "@chakra-ui/tag": "3.1.1",
+ "@chakra-ui/textarea": "2.1.2",
+ "@chakra-ui/theme": "3.3.1",
+ "@chakra-ui/theme-utils": "2.0.21",
+ "@chakra-ui/toast": "7.0.2",
+ "@chakra-ui/tooltip": "2.3.1",
+ "@chakra-ui/transition": "2.1.0",
+ "@chakra-ui/utils": "2.0.15",
+ "@chakra-ui/visually-hidden": "2.2.0"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.0.0",
+ "@emotion/styled": "^11.0.0",
+ "framer-motion": ">=4.0.0",
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-children-utils": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-children-utils/-/react-children-utils-2.0.6.tgz",
+ "integrity": "sha512-QVR2RC7QsOsbWwEnq9YduhpqSFnZGvjjGREV8ygKi8ADhXh93C8azLECCUVgRJF2Wc+So1fgxmjLcbZfY2VmBA==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-context": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-context/-/react-context-2.1.0.tgz",
+ "integrity": "sha512-iahyStvzQ4AOwKwdPReLGfDesGG+vWJfEsn0X/NoGph/SkN+HXtv2sCfYFFR9k7bb+Kvc6YfpLlSuLvKMHi2+w==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-env": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-env/-/react-env-3.1.0.tgz",
+ "integrity": "sha512-Vr96GV2LNBth3+IKzr/rq1IcnkXv+MLmwjQH6C8BRtn3sNskgDFD5vLkVXcEhagzZMCh8FR3V/bzZPojBOyNhw==",
+ "dependencies": {
+ "@chakra-ui/react-use-safe-layout-effect": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-types": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-types/-/react-types-2.0.7.tgz",
+ "integrity": "sha512-12zv2qIZ8EHwiytggtGvo4iLT0APris7T0qaAWqzpUGS0cdUtR8W+V1BJ5Ocq+7tA6dzQ/7+w5hmXih61TuhWQ==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-animation-state": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-animation-state/-/react-use-animation-state-2.1.0.tgz",
+ "integrity": "sha512-CFZkQU3gmDBwhqy0vC1ryf90BVHxVN8cTLpSyCpdmExUEtSEInSCGMydj2fvn7QXsz/za8JNdO2xxgJwxpLMtg==",
+ "dependencies": {
+ "@chakra-ui/dom-utils": "2.1.0",
+ "@chakra-ui/react-use-event-listener": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-callback-ref": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-callback-ref/-/react-use-callback-ref-2.1.0.tgz",
+ "integrity": "sha512-efnJrBtGDa4YaxDzDE90EnKD3Vkh5a1t3w7PhnRQmsphLy3g2UieasoKTlT2Hn118TwDjIv5ZjHJW6HbzXA9wQ==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-controllable-state": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-controllable-state/-/react-use-controllable-state-2.1.0.tgz",
+ "integrity": "sha512-QR/8fKNokxZUs4PfxjXuwl0fj/d71WPrmLJvEpCTkHjnzu7LnYvzoe2wB867IdooQJL0G1zBxl0Dq+6W1P3jpg==",
+ "dependencies": {
+ "@chakra-ui/react-use-callback-ref": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-disclosure": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-disclosure/-/react-use-disclosure-2.1.0.tgz",
+ "integrity": "sha512-Ax4pmxA9LBGMyEZJhhUZobg9C0t3qFE4jVF1tGBsrLDcdBeLR9fwOogIPY9Hf0/wqSlAryAimICbr5hkpa5GSw==",
+ "dependencies": {
+ "@chakra-ui/react-use-callback-ref": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-event-listener": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-event-listener/-/react-use-event-listener-2.1.0.tgz",
+ "integrity": "sha512-U5greryDLS8ISP69DKDsYcsXRtAdnTQT+jjIlRYZ49K/XhUR/AqVZCK5BkR1spTDmO9H8SPhgeNKI70ODuDU/Q==",
+ "dependencies": {
+ "@chakra-ui/react-use-callback-ref": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-focus-effect": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-focus-effect/-/react-use-focus-effect-2.1.0.tgz",
+ "integrity": "sha512-xzVboNy7J64xveLcxTIJ3jv+lUJKDwRM7Szwn9tNzUIPD94O3qwjV7DDCUzN2490nSYDF4OBMt/wuDBtaR3kUQ==",
+ "dependencies": {
+ "@chakra-ui/dom-utils": "2.1.0",
+ "@chakra-ui/react-use-event-listener": "2.1.0",
+ "@chakra-ui/react-use-safe-layout-effect": "2.1.0",
+ "@chakra-ui/react-use-update-effect": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-focus-on-pointer-down": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-focus-on-pointer-down/-/react-use-focus-on-pointer-down-2.1.0.tgz",
+ "integrity": "sha512-2jzrUZ+aiCG/cfanrolsnSMDykCAbv9EK/4iUyZno6BYb3vziucmvgKuoXbMPAzWNtwUwtuMhkby8rc61Ue+Lg==",
+ "dependencies": {
+ "@chakra-ui/react-use-event-listener": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-interval": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-interval/-/react-use-interval-2.1.0.tgz",
+ "integrity": "sha512-8iWj+I/+A0J08pgEXP1J1flcvhLBHkk0ln7ZvGIyXiEyM6XagOTJpwNhiu+Bmk59t3HoV/VyvyJTa+44sEApuw==",
+ "dependencies": {
+ "@chakra-ui/react-use-callback-ref": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-latest-ref": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-latest-ref/-/react-use-latest-ref-2.1.0.tgz",
+ "integrity": "sha512-m0kxuIYqoYB0va9Z2aW4xP/5b7BzlDeWwyXCH6QpT2PpW3/281L3hLCm1G0eOUcdVlayqrQqOeD6Mglq+5/xoQ==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-merge-refs": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-merge-refs/-/react-use-merge-refs-2.1.0.tgz",
+ "integrity": "sha512-lERa6AWF1cjEtWSGjxWTaSMvneccnAVH4V4ozh8SYiN9fSPZLlSG3kNxfNzdFvMEhM7dnP60vynF7WjGdTgQbQ==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-outside-click": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-outside-click/-/react-use-outside-click-2.2.0.tgz",
+ "integrity": "sha512-PNX+s/JEaMneijbgAM4iFL+f3m1ga9+6QK0E5Yh4s8KZJQ/bLwZzdhMz8J/+mL+XEXQ5J0N8ivZN28B82N1kNw==",
+ "dependencies": {
+ "@chakra-ui/react-use-callback-ref": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-pan-event": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-pan-event/-/react-use-pan-event-2.1.0.tgz",
+ "integrity": "sha512-xmL2qOHiXqfcj0q7ZK5s9UjTh4Gz0/gL9jcWPA6GVf+A0Od5imEDa/Vz+533yQKWiNSm1QGrIj0eJAokc7O4fg==",
+ "dependencies": {
+ "@chakra-ui/event-utils": "2.0.8",
+ "@chakra-ui/react-use-latest-ref": "2.1.0",
+ "framesync": "6.1.2"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-previous": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-previous/-/react-use-previous-2.1.0.tgz",
+ "integrity": "sha512-pjxGwue1hX8AFcmjZ2XfrQtIJgqbTF3Qs1Dy3d1krC77dEsiCUbQ9GzOBfDc8pfd60DrB5N2tg5JyHbypqh0Sg==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-safe-layout-effect": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-safe-layout-effect/-/react-use-safe-layout-effect-2.1.0.tgz",
+ "integrity": "sha512-Knbrrx/bcPwVS1TorFdzrK/zWA8yuU/eaXDkNj24IrKoRlQrSBFarcgAEzlCHtzuhufP3OULPkELTzz91b0tCw==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-size": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-size/-/react-use-size-2.1.0.tgz",
+ "integrity": "sha512-tbLqrQhbnqOjzTaMlYytp7wY8BW1JpL78iG7Ru1DlV4EWGiAmXFGvtnEt9HftU0NJ0aJyjgymkxfVGI55/1Z4A==",
+ "dependencies": {
+ "@zag-js/element-size": "0.10.5"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-timeout": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-timeout/-/react-use-timeout-2.1.0.tgz",
+ "integrity": "sha512-cFN0sobKMM9hXUhyCofx3/Mjlzah6ADaEl/AXl5Y+GawB5rgedgAcu2ErAgarEkwvsKdP6c68CKjQ9dmTQlJxQ==",
+ "dependencies": {
+ "@chakra-ui/react-use-callback-ref": "2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-use-update-effect": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-update-effect/-/react-use-update-effect-2.1.0.tgz",
+ "integrity": "sha512-ND4Q23tETaR2Qd3zwCKYOOS1dfssojPLJMLvUtUbW5M9uW1ejYWgGUobeAiOVfSplownG8QYMmHTP86p/v0lbA==",
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/react-utils": {
+ "version": "2.0.12",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/react-utils/-/react-utils-2.0.12.tgz",
+ "integrity": "sha512-GbSfVb283+YA3kA8w8xWmzbjNWk14uhNpntnipHCftBibl0lxtQ9YqMFQLwuFOO0U2gYVocszqqDWX+XNKq9hw==",
+ "dependencies": {
+ "@chakra-ui/utils": "2.0.15"
+ },
+ "peerDependencies": {
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/select": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/select/-/select-2.1.2.tgz",
+ "integrity": "sha512-ZwCb7LqKCVLJhru3DXvKXpZ7Pbu1TDZ7N0PdQ0Zj1oyVLJyrpef1u9HR5u0amOpqcH++Ugt0f5JSmirjNlctjA==",
+ "dependencies": {
+ "@chakra-ui/form-control": "2.2.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/shared-utils": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/shared-utils/-/shared-utils-2.0.5.tgz",
+ "integrity": "sha512-4/Wur0FqDov7Y0nCXl7HbHzCg4aq86h+SXdoUeuCMD3dSj7dpsVnStLYhng1vxvlbUnLpdF4oz5Myt3i/a7N3Q=="
+ },
+ "node_modules/@chakra-ui/skeleton": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/skeleton/-/skeleton-2.1.0.tgz",
+ "integrity": "sha512-JNRuMPpdZGd6zFVKjVQ0iusu3tXAdI29n4ZENYwAJEMf/fN0l12sVeirOxkJ7oEL0yOx2AgEYFSKdbcAgfUsAQ==",
+ "dependencies": {
+ "@chakra-ui/media-query": "3.3.0",
+ "@chakra-ui/react-use-previous": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/skip-nav": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/skip-nav/-/skip-nav-2.1.0.tgz",
+ "integrity": "sha512-Hk+FG+vadBSH0/7hwp9LJnLjkO0RPGnx7gBJWI4/SpoJf3e4tZlWYtwGj0toYY4aGKl93jVghuwGbDBEMoHDug==",
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/slider": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/slider/-/slider-2.1.0.tgz",
+ "integrity": "sha512-lUOBcLMCnFZiA/s2NONXhELJh6sY5WtbRykPtclGfynqqOo47lwWJx+VP7xaeuhDOPcWSSecWc9Y1BfPOCz9cQ==",
+ "dependencies": {
+ "@chakra-ui/number-utils": "2.0.7",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-callback-ref": "2.1.0",
+ "@chakra-ui/react-use-controllable-state": "2.1.0",
+ "@chakra-ui/react-use-latest-ref": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/react-use-pan-event": "2.1.0",
+ "@chakra-ui/react-use-size": "2.1.0",
+ "@chakra-ui/react-use-update-effect": "2.1.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/spinner": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/spinner/-/spinner-2.1.0.tgz",
+ "integrity": "sha512-hczbnoXt+MMv/d3gE+hjQhmkzLiKuoTo42YhUG7Bs9OSv2lg1fZHW1fGNRFP3wTi6OIbD044U1P9HK+AOgFH3g==",
+ "dependencies": {
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/stat": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/stat/-/stat-2.1.1.tgz",
+ "integrity": "sha512-LDn0d/LXQNbAn2KaR3F1zivsZCewY4Jsy1qShmfBMKwn6rI8yVlbvu6SiA3OpHS0FhxbsZxQI6HefEoIgtqY6Q==",
+ "dependencies": {
+ "@chakra-ui/icon": "3.2.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/stepper": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/stepper/-/stepper-2.3.1.tgz",
+ "integrity": "sha512-ky77lZbW60zYkSXhYz7kbItUpAQfEdycT0Q4bkHLxfqbuiGMf8OmgZOQkOB9uM4v0zPwy2HXhe0vq4Dd0xa55Q==",
+ "dependencies": {
+ "@chakra-ui/icon": "3.2.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/styled-system": {
+ "version": "2.9.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/styled-system/-/styled-system-2.9.2.tgz",
+ "integrity": "sha512-To/Z92oHpIE+4nk11uVMWqo2GGRS86coeMmjxtpnErmWRdLcp1WVCVRAvn+ZwpLiNR+reWFr2FFqJRsREuZdAg==",
+ "dependencies": {
+ "@chakra-ui/shared-utils": "2.0.5",
+ "csstype": "^3.1.2",
+ "lodash.mergewith": "4.6.2"
+ }
+ },
+ "node_modules/@chakra-ui/switch": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/switch/-/switch-2.1.2.tgz",
+ "integrity": "sha512-pgmi/CC+E1v31FcnQhsSGjJnOE2OcND4cKPyTE+0F+bmGm48Q/b5UmKD9Y+CmZsrt/7V3h8KNczowupfuBfIHA==",
+ "dependencies": {
+ "@chakra-ui/checkbox": "2.3.2",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "framer-motion": ">=4.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/system": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/system/-/system-2.6.2.tgz",
+ "integrity": "sha512-EGtpoEjLrUu4W1fHD+a62XR+hzC5YfsWm+6lO0Kybcga3yYEij9beegO0jZgug27V+Rf7vns95VPVP6mFd/DEQ==",
+ "dependencies": {
+ "@chakra-ui/color-mode": "2.2.0",
+ "@chakra-ui/object-utils": "2.1.0",
+ "@chakra-ui/react-utils": "2.0.12",
+ "@chakra-ui/styled-system": "2.9.2",
+ "@chakra-ui/theme-utils": "2.0.21",
+ "@chakra-ui/utils": "2.0.15",
+ "react-fast-compare": "3.2.2"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.0.0",
+ "@emotion/styled": "^11.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/table": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/table/-/table-2.1.0.tgz",
+ "integrity": "sha512-o5OrjoHCh5uCLdiUb0Oc0vq9rIAeHSIRScc2ExTC9Qg/uVZl2ygLrjToCaKfaaKl1oQexIeAcZDKvPG8tVkHyQ==",
+ "dependencies": {
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/tabs": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/tabs/-/tabs-3.0.0.tgz",
+ "integrity": "sha512-6Mlclp8L9lqXmsGWF5q5gmemZXOiOYuh0SGT/7PgJVNPz3LXREXlXg2an4MBUD8W5oTkduCX+3KTMCwRrVrDYw==",
+ "dependencies": {
+ "@chakra-ui/clickable": "2.1.0",
+ "@chakra-ui/descendant": "3.1.0",
+ "@chakra-ui/lazy-utils": "2.0.5",
+ "@chakra-ui/react-children-utils": "2.0.6",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-use-controllable-state": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/react-use-safe-layout-effect": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/tag": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/tag/-/tag-3.1.1.tgz",
+ "integrity": "sha512-Bdel79Dv86Hnge2PKOU+t8H28nm/7Y3cKd4Kfk9k3lOpUh4+nkSGe58dhRzht59lEqa4N9waCgQiBdkydjvBXQ==",
+ "dependencies": {
+ "@chakra-ui/icon": "3.2.0",
+ "@chakra-ui/react-context": "2.1.0"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/textarea": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/textarea/-/textarea-2.1.2.tgz",
+ "integrity": "sha512-ip7tvklVCZUb2fOHDb23qPy/Fr2mzDOGdkrpbNi50hDCiV4hFX02jdQJdi3ydHZUyVgZVBKPOJ+lT9i7sKA2wA==",
+ "dependencies": {
+ "@chakra-ui/form-control": "2.2.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/theme": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/theme/-/theme-3.3.1.tgz",
+ "integrity": "sha512-Hft/VaT8GYnItGCBbgWd75ICrIrIFrR7lVOhV/dQnqtfGqsVDlrztbSErvMkoPKt0UgAkd9/o44jmZ6X4U2nZQ==",
+ "dependencies": {
+ "@chakra-ui/anatomy": "2.2.2",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@chakra-ui/theme-tools": "2.1.2"
+ },
+ "peerDependencies": {
+ "@chakra-ui/styled-system": ">=2.8.0"
+ }
+ },
+ "node_modules/@chakra-ui/theme-tools": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/theme-tools/-/theme-tools-2.1.2.tgz",
+ "integrity": "sha512-Qdj8ajF9kxY4gLrq7gA+Azp8CtFHGO9tWMN2wfF9aQNgG9AuMhPrUzMq9AMQ0MXiYcgNq/FD3eegB43nHVmXVA==",
+ "dependencies": {
+ "@chakra-ui/anatomy": "2.2.2",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "color2k": "^2.0.2"
+ },
+ "peerDependencies": {
+ "@chakra-ui/styled-system": ">=2.0.0"
+ }
+ },
+ "node_modules/@chakra-ui/theme-utils": {
+ "version": "2.0.21",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/theme-utils/-/theme-utils-2.0.21.tgz",
+ "integrity": "sha512-FjH5LJbT794r0+VSCXB3lT4aubI24bLLRWB+CuRKHijRvsOg717bRdUN/N1fEmEpFnRVrbewttWh/OQs0EWpWw==",
+ "dependencies": {
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@chakra-ui/styled-system": "2.9.2",
+ "@chakra-ui/theme": "3.3.1",
+ "lodash.mergewith": "4.6.2"
+ }
+ },
+ "node_modules/@chakra-ui/toast": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/toast/-/toast-7.0.2.tgz",
+ "integrity": "sha512-yvRP8jFKRs/YnkuE41BVTq9nB2v/KDRmje9u6dgDmE5+1bFt3bwjdf9gVbif4u5Ve7F7BGk5E093ARRVtvLvXA==",
+ "dependencies": {
+ "@chakra-ui/alert": "2.2.2",
+ "@chakra-ui/close-button": "2.1.1",
+ "@chakra-ui/portal": "2.1.0",
+ "@chakra-ui/react-context": "2.1.0",
+ "@chakra-ui/react-use-timeout": "2.1.0",
+ "@chakra-ui/react-use-update-effect": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5",
+ "@chakra-ui/styled-system": "2.9.2",
+ "@chakra-ui/theme": "3.3.1"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": "2.6.2",
+ "framer-motion": ">=4.0.0",
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/tooltip": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/tooltip/-/tooltip-2.3.1.tgz",
+ "integrity": "sha512-Rh39GBn/bL4kZpuEMPPRwYNnccRCL+w9OqamWHIB3Qboxs6h8cOyXfIdGxjo72lvhu1QI/a4KFqkM3St+WfC0A==",
+ "dependencies": {
+ "@chakra-ui/dom-utils": "2.1.0",
+ "@chakra-ui/popper": "3.1.0",
+ "@chakra-ui/portal": "2.1.0",
+ "@chakra-ui/react-types": "2.0.7",
+ "@chakra-ui/react-use-disclosure": "2.1.0",
+ "@chakra-ui/react-use-event-listener": "2.1.0",
+ "@chakra-ui/react-use-merge-refs": "2.1.0",
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "framer-motion": ">=4.0.0",
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/transition": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/transition/-/transition-2.1.0.tgz",
+ "integrity": "sha512-orkT6T/Dt+/+kVwJNy7zwJ+U2xAZ3EU7M3XCs45RBvUnZDr/u9vdmaM/3D/rOpmQJWgQBwKPJleUXrYWUagEDQ==",
+ "dependencies": {
+ "@chakra-ui/shared-utils": "2.0.5"
+ },
+ "peerDependencies": {
+ "framer-motion": ">=4.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@chakra-ui/utils": {
+ "version": "2.0.15",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/utils/-/utils-2.0.15.tgz",
+ "integrity": "sha512-El4+jL0WSaYYs+rJbuYFDbjmfCcfGDmRY95GO4xwzit6YAPZBLcR65rOEwLps+XWluZTy1xdMrusg/hW0c1aAA==",
+ "dependencies": {
+ "@types/lodash.mergewith": "4.6.7",
+ "css-box-model": "1.2.1",
+ "framesync": "6.1.2",
+ "lodash.mergewith": "4.6.2"
+ }
+ },
+ "node_modules/@chakra-ui/visually-hidden": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@chakra-ui/visually-hidden/-/visually-hidden-2.2.0.tgz",
+ "integrity": "sha512-KmKDg01SrQ7VbTD3+cPWf/UfpF5MSwm3v7MWi0n5t8HnnadT13MF0MJCDSXbBWnzLv1ZKJ6zlyAOeARWX+DpjQ==",
+ "peerDependencies": {
+ "@chakra-ui/system": ">=2.0.0",
+ "react": ">=18"
+ }
+ },
+ "node_modules/@emotion/babel-plugin": {
+ "version": "11.11.0",
+ "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.11.0.tgz",
+ "integrity": "sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.16.7",
+ "@babel/runtime": "^7.18.3",
+ "@emotion/hash": "^0.9.1",
+ "@emotion/memoize": "^0.8.1",
+ "@emotion/serialize": "^1.1.2",
+ "babel-plugin-macros": "^3.1.0",
+ "convert-source-map": "^1.5.0",
+ "escape-string-regexp": "^4.0.0",
+ "find-root": "^1.1.0",
+ "source-map": "^0.5.7",
+ "stylis": "4.2.0"
+ }
+ },
+ "node_modules/@emotion/cache": {
+ "version": "11.11.0",
+ "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.11.0.tgz",
+ "integrity": "sha512-P34z9ssTCBi3e9EI1ZsWpNHcfY1r09ZO0rZbRO2ob3ZQMnFI35jB536qoXbkdesr5EUhYi22anuEJuyxifaqAQ==",
+ "dependencies": {
+ "@emotion/memoize": "^0.8.1",
+ "@emotion/sheet": "^1.2.2",
+ "@emotion/utils": "^1.2.1",
+ "@emotion/weak-memoize": "^0.3.1",
+ "stylis": "4.2.0"
+ }
+ },
+ "node_modules/@emotion/hash": {
+ "version": "0.9.1",
+ "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.1.tgz",
+ "integrity": "sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ=="
+ },
+ "node_modules/@emotion/is-prop-valid": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.2.tgz",
+ "integrity": "sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw==",
+ "dependencies": {
+ "@emotion/memoize": "^0.8.1"
+ }
+ },
+ "node_modules/@emotion/memoize": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz",
+ "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA=="
+ },
+ "node_modules/@emotion/react": {
+ "version": "11.11.4",
+ "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.11.4.tgz",
+ "integrity": "sha512-t8AjMlF0gHpvvxk5mAtCqR4vmxiGHCeJBaQO6gncUSdklELOgtwjerNY2yuJNfwnc6vi16U/+uMF+afIawJ9iw==",
+ "dependencies": {
+ "@babel/runtime": "^7.18.3",
+ "@emotion/babel-plugin": "^11.11.0",
+ "@emotion/cache": "^11.11.0",
+ "@emotion/serialize": "^1.1.3",
+ "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
+ "@emotion/utils": "^1.2.1",
+ "@emotion/weak-memoize": "^0.3.1",
+ "hoist-non-react-statics": "^3.3.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@emotion/serialize": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.1.4.tgz",
+ "integrity": "sha512-RIN04MBT8g+FnDwgvIUi8czvr1LU1alUMI05LekWB5DGyTm8cCBMCRpq3GqaiyEDRptEXOyXnvZ58GZYu4kBxQ==",
+ "dependencies": {
+ "@emotion/hash": "^0.9.1",
+ "@emotion/memoize": "^0.8.1",
+ "@emotion/unitless": "^0.8.1",
+ "@emotion/utils": "^1.2.1",
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/@emotion/sheet": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.2.tgz",
+ "integrity": "sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA=="
+ },
+ "node_modules/@emotion/styled": {
+ "version": "11.11.5",
+ "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.11.5.tgz",
+ "integrity": "sha512-/ZjjnaNKvuMPxcIiUkf/9SHoG4Q196DRl1w82hQ3WCsjo1IUR8uaGWrC6a87CrYAW0Kb/pK7hk8BnLgLRi9KoQ==",
+ "dependencies": {
+ "@babel/runtime": "^7.18.3",
+ "@emotion/babel-plugin": "^11.11.0",
+ "@emotion/is-prop-valid": "^1.2.2",
+ "@emotion/serialize": "^1.1.4",
+ "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
+ "@emotion/utils": "^1.2.1"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.0.0-rc.0",
+ "react": ">=16.8.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@emotion/unitless": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz",
+ "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ=="
+ },
+ "node_modules/@emotion/use-insertion-effect-with-fallbacks": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.0.1.tgz",
+ "integrity": "sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==",
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ }
+ },
+ "node_modules/@emotion/utils": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.2.1.tgz",
+ "integrity": "sha512-Y2tGf3I+XVnajdItskUCn6LX+VUDmP6lTL4fcqsXAv43dnlbZiuW4MWQW38rW/BVWSE7Q/7+XQocmpnRYILUmg=="
+ },
+ "node_modules/@emotion/weak-memoize": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz",
+ "integrity": "sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww=="
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz",
+ "integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz",
+ "integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz",
+ "integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz",
+ "integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz",
+ "integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz",
+ "integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz",
+ "integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz",
+ "integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz",
+ "integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz",
+ "integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz",
+ "integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz",
+ "integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz",
+ "integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz",
+ "integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz",
+ "integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz",
+ "integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz",
+ "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz",
+ "integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz",
+ "integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz",
+ "integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz",
+ "integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz",
+ "integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz",
+ "integrity": "sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
+ "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==",
+ "dev": true,
+ "dependencies": {
+ "eslint-visitor-keys": "^3.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.10.0",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz",
+ "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==",
+ "dev": true,
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",
+ "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",
+ "dev": true,
+ "dependencies": {
+ "ajv": "^6.12.4",
+ "debug": "^4.3.2",
+ "espree": "^9.6.0",
+ "globals": "^13.19.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.1.0",
+ "minimatch": "^3.1.2",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "8.57.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz",
+ "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==",
+ "dev": true,
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@hookform/resolvers": {
+ "version": "3.3.4",
+ "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-3.3.4.tgz",
+ "integrity": "sha512-o5cgpGOuJYrd+iMKvkttOclgwRW86EsWJZZRC23prf0uU2i48Htq4PuT73AVb9ionFyZrwYEITuOFGF+BydEtQ==",
+ "peerDependencies": {
+ "react-hook-form": "^7.0.0"
+ }
+ },
+ "node_modules/@humanwhocodes/config-array": {
+ "version": "0.11.14",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz",
+ "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==",
+ "dev": true,
+ "dependencies": {
+ "@humanwhocodes/object-schema": "^2.0.2",
+ "debug": "^4.3.1",
+ "minimatch": "^3.0.5"
+ },
+ "engines": {
+ "node": ">=10.10.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/object-schema": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",
+ "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",
+ "dev": true
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@popperjs/core": {
+ "version": "2.11.8",
+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
+ "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/popperjs"
+ }
+ },
+ "node_modules/@reduxjs/toolkit": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.2.3.tgz",
+ "integrity": "sha512-76dll9EnJXg4EVcI5YNxZA/9hSAmZsFqzMmNRHvIlzw2WS/twfcVX3ysYrWGJMClwEmChQFC4yRq74tn6fdzRA==",
+ "dependencies": {
+ "immer": "^10.0.3",
+ "redux": "^5.0.1",
+ "redux-thunk": "^3.1.0",
+ "reselect": "^5.0.1"
+ },
+ "peerDependencies": {
+ "react": "^16.9.0 || ^17.0.0 || ^18",
+ "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0"
+ },
+ "peerDependenciesMeta": {
+ "react": {
+ "optional": true
+ },
+ "react-redux": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@remix-run/router": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.3.tgz",
+ "integrity": "sha512-Oy8rmScVrVxWZVOpEF57ovlnhpZ8CCPlnIIumVcV9nFdiSIrus99+Lw78ekXyGvVDlIsFJbSfmSovJUhCWYV3w==",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.14.3.tgz",
+ "integrity": "sha512-X9alQ3XM6I9IlSlmC8ddAvMSyG1WuHk5oUnXGw+yUBs3BFoTizmG1La/Gr8fVJvDWAq+zlYTZ9DBgrlKRVY06g==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.14.3.tgz",
+ "integrity": "sha512-eQK5JIi+POhFpzk+LnjKIy4Ks+pwJ+NXmPxOCSvOKSNRPONzKuUvWE+P9JxGZVxrtzm6BAYMaL50FFuPe0oWMQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.14.3.tgz",
+ "integrity": "sha512-Od4vE6f6CTT53yM1jgcLqNfItTsLt5zE46fdPaEmeFHvPs5SjZYlLpHrSiHEKR1+HdRfxuzXHjDOIxQyC3ptBA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.14.3.tgz",
+ "integrity": "sha512-0IMAO21axJeNIrvS9lSe/PGthc8ZUS+zC53O0VhF5gMxfmcKAP4ESkKOCwEi6u2asUrt4mQv2rjY8QseIEb1aw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.14.3.tgz",
+ "integrity": "sha512-ge2DC7tHRHa3caVEoSbPRJpq7azhG+xYsd6u2MEnJ6XzPSzQsTKyXvh6iWjXRf7Rt9ykIUWHtl0Uz3T6yXPpKw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.14.3.tgz",
+ "integrity": "sha512-ljcuiDI4V3ySuc7eSk4lQ9wU8J8r8KrOUvB2U+TtK0TiW6OFDmJ+DdIjjwZHIw9CNxzbmXY39wwpzYuFDwNXuw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.14.3.tgz",
+ "integrity": "sha512-Eci2us9VTHm1eSyn5/eEpaC7eP/mp5n46gTRB3Aar3BgSvDQGJZuicyq6TsH4HngNBgVqC5sDYxOzTExSU+NjA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.14.3.tgz",
+ "integrity": "sha512-UrBoMLCq4E92/LCqlh+blpqMz5h1tJttPIniwUgOFJyjWI1qrtrDhhpHPuFxULlUmjFHfloWdixtDhSxJt5iKw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.14.3.tgz",
+ "integrity": "sha512-5aRjvsS8q1nWN8AoRfrq5+9IflC3P1leMoy4r2WjXyFqf3qcqsxRCfxtZIV58tCxd+Yv7WELPcO9mY9aeQyAmw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.14.3.tgz",
+ "integrity": "sha512-sk/Qh1j2/RJSX7FhEpJn8n0ndxy/uf0kI/9Zc4b1ELhqULVdTfN6HL31CDaTChiBAOgLcsJ1sgVZjWv8XNEsAQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.14.3.tgz",
+ "integrity": "sha512-jOO/PEaDitOmY9TgkxF/TQIjXySQe5KVYB57H/8LRP/ux0ZoO8cSHCX17asMSv3ruwslXW/TLBcxyaUzGRHcqg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.14.3.tgz",
+ "integrity": "sha512-8ybV4Xjy59xLMyWo3GCfEGqtKV5M5gCSrZlxkPGvEPCGDLNla7v48S662HSGwRd6/2cSneMQWiv+QzcttLrrOA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.14.3.tgz",
+ "integrity": "sha512-s+xf1I46trOY10OqAtZ5Rm6lzHre/UiLA1J2uOhCFXWkbZrJRkYBPO6FhvGfHmdtQ3Bx793MNa7LvoWFAm93bg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.14.3.tgz",
+ "integrity": "sha512-+4h2WrGOYsOumDQ5S2sYNyhVfrue+9tc9XcLWLh+Kw3UOxAvrfOrSMFon60KspcDdytkNDh7K2Vs6eMaYImAZg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.14.3.tgz",
+ "integrity": "sha512-T1l7y/bCeL/kUwh9OD4PQT4aM7Bq43vX05htPJJ46RTI4r5KNt6qJRzAfNfM+OYMNEVBWQzR2Gyk+FXLZfogGw==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.14.3.tgz",
+ "integrity": "sha512-/BypzV0H1y1HzgYpxqRaXGBRqfodgoBBCcsrujT6QRcakDQdfU+Lq9PENPh5jB4I44YWq+0C2eHsHya+nZY1sA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@swc/core": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.4.16.tgz",
+ "integrity": "sha512-Xaf+UBvW6JNuV131uvSNyMXHn+bh6LyKN4tbv7tOUFQpXyz/t9YWRE04emtlUW9Y0qrm/GKFCbY8n3z6BpZbTA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "dependencies": {
+ "@swc/counter": "^0.1.2",
+ "@swc/types": "^0.1.5"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/swc"
+ },
+ "optionalDependencies": {
+ "@swc/core-darwin-arm64": "1.4.16",
+ "@swc/core-darwin-x64": "1.4.16",
+ "@swc/core-linux-arm-gnueabihf": "1.4.16",
+ "@swc/core-linux-arm64-gnu": "1.4.16",
+ "@swc/core-linux-arm64-musl": "1.4.16",
+ "@swc/core-linux-x64-gnu": "1.4.16",
+ "@swc/core-linux-x64-musl": "1.4.16",
+ "@swc/core-win32-arm64-msvc": "1.4.16",
+ "@swc/core-win32-ia32-msvc": "1.4.16",
+ "@swc/core-win32-x64-msvc": "1.4.16"
+ },
+ "peerDependencies": {
+ "@swc/helpers": "^0.5.0"
+ },
+ "peerDependenciesMeta": {
+ "@swc/helpers": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@swc/core-darwin-arm64": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.4.16.tgz",
+ "integrity": "sha512-UOCcH1GvjRnnM/LWT6VCGpIk0OhHRq6v1U6QXuPt5wVsgXnXQwnf5k3sG5Cm56hQHDvhRPY6HCsHi/p0oek8oQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-darwin-x64": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.4.16.tgz",
+ "integrity": "sha512-t3bgqFoYLWvyVtVL6KkFNCINEoOrIlyggT/kJRgi1y0aXSr0oVgcrQ4ezJpdeahZZ4N+Q6vT3ffM30yIunELNA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm-gnueabihf": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.4.16.tgz",
+ "integrity": "sha512-DvHuwvEF86YvSd0lwnzVcjOTZ0jcxewIbsN0vc/0fqm9qBdMMjr9ox6VCam1n3yYeRtj4VFgrjeNFksqbUejdQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm64-gnu": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.4.16.tgz",
+ "integrity": "sha512-9Uu5YlPbyCvbidjKtYEsPpyZlu16roOZ5c2tP1vHfnU9bgf5Tz5q5VovSduNxPHx+ed2iC1b1URODHvDzbbDuQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm64-musl": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.4.16.tgz",
+ "integrity": "sha512-/YZq/qB1CHpeoL0eMzyqK5/tYZn/rzKoCYDviFU4uduSUIJsDJQuQA/skdqUzqbheOXKAd4mnJ1hT04RbJ8FPQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-x64-gnu": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.4.16.tgz",
+ "integrity": "sha512-UUjaW5VTngZYDcA8yQlrFmqs1tLi1TxbKlnaJwoNhel9zRQ0yG1YEVGrzTvv4YApSuIiDK18t+Ip927bwucuVQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-x64-musl": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.4.16.tgz",
+ "integrity": "sha512-aFhxPifevDTwEDKPi4eRYWzC0p/WYJeiFkkpNU5Uc7a7M5iMWPAbPFUbHesdlb9Jfqs5c07oyz86u+/HySBNPQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-arm64-msvc": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.4.16.tgz",
+ "integrity": "sha512-bTD43MbhIHL2s5QgCwyleaGwl96Gk/scF2TaVKdUe4QlJCDV/YK9h5oIBAp63ckHtE8GHlH4c8dZNBiAXn4Org==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-ia32-msvc": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.4.16.tgz",
+ "integrity": "sha512-/lmZeAN/qV5XbK2SEvi8e2RkIg8FQNYiSA8y2/Zb4gTUMKVO5JMLH0BSWMiIKMstKDPDSxMWgwJaQHF8UMyPmQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-x64-msvc": {
+ "version": "1.4.16",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.4.16.tgz",
+ "integrity": "sha512-BPAfFfODWXtUu6SwaTTftDHvcbDyWBSI/oanUeRbQR5vVWkXoQ3cxLTsDluc3H74IqXS5z1Uyoe0vNo2hB1opA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/counter": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz",
+ "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==",
+ "dev": true
+ },
+ "node_modules/@swc/types": {
+ "version": "0.1.6",
+ "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.6.tgz",
+ "integrity": "sha512-/JLo/l2JsT/LRd80C3HfbmVpxOAJ11FO2RCEslFrgzLltoP9j8XIbsyDcfCt2WWyX+CM96rBoNM+IToAkFOugg==",
+ "dev": true,
+ "dependencies": {
+ "@swc/counter": "^0.1.3"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz",
+ "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==",
+ "dev": true
+ },
+ "node_modules/@types/lodash": {
+ "version": "4.17.0",
+ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.0.tgz",
+ "integrity": "sha512-t7dhREVv6dbNj0q17X12j7yDG4bD/DHYX7o5/DbDxobP0HnGPgpRz2Ej77aL7TZT3DSw13fqUTj8J4mMnqa7WA=="
+ },
+ "node_modules/@types/lodash.mergewith": {
+ "version": "4.6.7",
+ "resolved": "https://registry.npmjs.org/@types/lodash.mergewith/-/lodash.mergewith-4.6.7.tgz",
+ "integrity": "sha512-3m+lkO5CLRRYU0fhGRp7zbsGi6+BZj0uTVSwvcKU+nSlhjA9/QRNfuSGnD2mX6hQA7ZbmcCkzk5h4ZYGOtk14A==",
+ "dependencies": {
+ "@types/lodash": "*"
+ }
+ },
+ "node_modules/@types/parse-json": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",
+ "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw=="
+ },
+ "node_modules/@types/prop-types": {
+ "version": "15.7.12",
+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz",
+ "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==",
+ "devOptional": true
+ },
+ "node_modules/@types/quill": {
+ "version": "1.3.10",
+ "resolved": "https://registry.npmjs.org/@types/quill/-/quill-1.3.10.tgz",
+ "integrity": "sha512-IhW3fPW+bkt9MLNlycw8u8fWb7oO7W5URC9MfZYHBlA24rex9rs23D5DETChu1zvgVdc5ka64ICjJOgQMr6Shw==",
+ "dependencies": {
+ "parchment": "^1.1.2"
+ }
+ },
+ "node_modules/@types/react": {
+ "version": "18.2.79",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.79.tgz",
+ "integrity": "sha512-RwGAGXPl9kSXwdNTafkOEuFrTBD5SA2B3iEB96xi8+xu5ddUa/cpvyVCSNn+asgLCTHkb5ZxN8gbuibYJi4s1w==",
+ "devOptional": true,
+ "dependencies": {
+ "@types/prop-types": "*",
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "18.2.25",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.25.tgz",
+ "integrity": "sha512-o/V48vf4MQh7juIKZU2QGDfli6p1+OOi5oXx36Hffpc9adsHeXjVp8rHuPkjd8VT8sOJ2Zp05HR7CdpGTIUFUA==",
+ "dev": true,
+ "dependencies": {
+ "@types/react": "*"
+ }
+ },
+ "node_modules/@types/use-sync-external-store": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz",
+ "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA=="
+ },
+ "node_modules/@ungap/structured-clone": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz",
+ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==",
+ "dev": true
+ },
+ "node_modules/@vitejs/plugin-react-swc": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.6.0.tgz",
+ "integrity": "sha512-XFRbsGgpGxGzEV5i5+vRiro1bwcIaZDIdBRP16qwm+jP68ue/S8FJTBEgOeojtVDYrbSua3XFp71kC8VJE6v+g==",
+ "dev": true,
+ "dependencies": {
+ "@swc/core": "^1.3.107"
+ },
+ "peerDependencies": {
+ "vite": "^4 || ^5"
+ }
+ },
+ "node_modules/@zag-js/dom-query": {
+ "version": "0.16.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/dom-query/-/dom-query-0.16.0.tgz",
+ "integrity": "sha512-Oqhd6+biWyKnhKwFFuZrrf6lxBz2tX2pRQe6grUnYwO6HJ8BcbqZomy2lpOdr+3itlaUqx+Ywj5E5ZZDr/LBfQ=="
+ },
+ "node_modules/@zag-js/element-size": {
+ "version": "0.10.5",
+ "resolved": "https://registry.npmjs.org/@zag-js/element-size/-/element-size-0.10.5.tgz",
+ "integrity": "sha512-uQre5IidULANvVkNOBQ1tfgwTQcGl4hliPSe69Fct1VfYb2Fd0jdAcGzqQgPhfrXFpR62MxLPB7erxJ/ngtL8w=="
+ },
+ "node_modules/@zag-js/focus-visible": {
+ "version": "0.16.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/focus-visible/-/focus-visible-0.16.0.tgz",
+ "integrity": "sha512-a7U/HSopvQbrDU4GLerpqiMcHKEkQkNPeDZJWz38cw/6Upunh41GjHetq5TB84hxyCaDzJ6q2nEdNoBQfC0FKA==",
+ "dependencies": {
+ "@zag-js/dom-query": "0.16.0"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.11.3",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
+ "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
+ "dev": true,
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/adler-32": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.3.1.tgz",
+ "integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "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,
+ "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/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true
+ },
+ "node_modules/aria-hidden": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.4.tgz",
+ "integrity": "sha512-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A==",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/array-buffer-byte-length": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz",
+ "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.5",
+ "is-array-buffer": "^3.0.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array-includes": {
+ "version": "3.1.8",
+ "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz",
+ "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2",
+ "es-object-atoms": "^1.0.0",
+ "get-intrinsic": "^1.2.4",
+ "is-string": "^1.0.7"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.findlast": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz",
+ "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0",
+ "es-shim-unscopables": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.flat": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz",
+ "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
+ "es-shim-unscopables": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.flatmap": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz",
+ "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
+ "es-shim-unscopables": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.toreversed": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.toreversed/-/array.prototype.toreversed-1.1.2.tgz",
+ "integrity": "sha512-wwDCoT4Ck4Cz7sLtgUmzR5UV3YF5mFHUlbChCzZBQZ+0m2cl/DH3tKgvphv1nKgFsJ48oCSg6p91q2Vm0I/ZMA==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
+ "es-shim-unscopables": "^1.0.0"
+ }
+ },
+ "node_modules/array.prototype.tosorted": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.3.tgz",
+ "integrity": "sha512-/DdH4TiTmOKzyQbp/eadcCVexiCb36xJg7HshYOYJnNZFDj33GEv0P7GxsynpShhq4OLYJzbGcBDkLsDt7MnNg==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.5",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.22.3",
+ "es-errors": "^1.1.0",
+ "es-shim-unscopables": "^1.0.2"
+ }
+ },
+ "node_modules/arraybuffer.prototype.slice": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz",
+ "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==",
+ "dev": true,
+ "dependencies": {
+ "array-buffer-byte-length": "^1.0.1",
+ "call-bind": "^1.0.5",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.22.3",
+ "es-errors": "^1.2.1",
+ "get-intrinsic": "^1.2.3",
+ "is-array-buffer": "^3.0.4",
+ "is-shared-array-buffer": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/available-typed-arrays": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
+ "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",
+ "dev": true,
+ "dependencies": {
+ "possible-typed-array-names": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/babel-plugin-macros": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz",
+ "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==",
+ "dependencies": {
+ "@babel/runtime": "^7.12.5",
+ "cosmiconfig": "^7.0.0",
+ "resolve": "^1.19.0"
+ },
+ "engines": {
+ "node": ">=10",
+ "npm": ">=6"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true
+ },
+ "node_modules/bootstrap": {
+ "version": "5.3.3",
+ "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz",
+ "integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ],
+ "peerDependencies": {
+ "@popperjs/core": "^2.11.8"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dev": true,
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/call-bind": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
+ "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
+ "dependencies": {
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.4",
+ "set-function-length": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/cfb": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.2.tgz",
+ "integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==",
+ "dependencies": {
+ "adler-32": "~1.3.0",
+ "crc-32": "~1.2.0"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/clone": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz",
+ "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/codepage": {
+ "version": "1.15.0",
+ "resolved": "https://registry.npmjs.org/codepage/-/codepage-1.15.0.tgz",
+ "integrity": "sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "node_modules/color2k": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/color2k/-/color2k-2.0.3.tgz",
+ "integrity": "sha512-zW190nQTIoXcGCaU08DvVNFTmQhUpnJfVuAKfWqUQkflXKpaDdpaYoM0iluLS9lgJNHyBF58KKA2FBEwkD7wog=="
+ },
+ "node_modules/compute-scroll-into-view": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.0.3.tgz",
+ "integrity": "sha512-nadqwNxghAGTamwIqQSG433W6OADZx2vCo3UXHNrzTRHK/htu+7+L0zhjEoaeaQVNAi3YgqWDv8+tzf0hRfR+A=="
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true
+ },
+ "node_modules/convert-source-map": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
+ "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
+ },
+ "node_modules/copy-to-clipboard": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz",
+ "integrity": "sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==",
+ "dependencies": {
+ "toggle-selection": "^1.0.6"
+ }
+ },
+ "node_modules/cosmiconfig": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
+ "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",
+ "dependencies": {
+ "@types/parse-json": "^4.0.0",
+ "import-fresh": "^3.2.1",
+ "parse-json": "^5.0.0",
+ "path-type": "^4.0.0",
+ "yaml": "^1.10.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/crc-32": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
+ "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",
+ "bin": {
+ "crc32": "bin/crc32.njs"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/crypto-js": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
+ "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
+ },
+ "node_modules/css-box-model": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/css-box-model/-/css-box-model-1.2.1.tgz",
+ "integrity": "sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw==",
+ "dependencies": {
+ "tiny-invariant": "^1.0.6"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
+ },
+ "node_modules/data-view-buffer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz",
+ "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.6",
+ "es-errors": "^1.3.0",
+ "is-data-view": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/data-view-byte-length": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz",
+ "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "es-errors": "^1.3.0",
+ "is-data-view": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/data-view-byte-offset": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz",
+ "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.6",
+ "es-errors": "^1.3.0",
+ "is-data-view": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "dev": true,
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/deep-equal": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.2.tgz",
+ "integrity": "sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg==",
+ "dependencies": {
+ "is-arguments": "^1.1.1",
+ "is-date-object": "^1.0.5",
+ "is-regex": "^1.1.4",
+ "object-is": "^1.1.5",
+ "object-keys": "^1.1.1",
+ "regexp.prototype.flags": "^1.5.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true
+ },
+ "node_modules/define-data-property": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
+ "dependencies": {
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/define-properties": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
+ "dependencies": {
+ "define-data-property": "^1.0.1",
+ "has-property-descriptors": "^1.0.0",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/detect-node-es": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
+ "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ=="
+ },
+ "node_modules/doctrine": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
+ "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
+ "dev": true,
+ "dependencies": {
+ "esutils": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "16.4.5",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
+ "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/es-abstract": {
+ "version": "1.23.3",
+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz",
+ "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==",
+ "dev": true,
+ "dependencies": {
+ "array-buffer-byte-length": "^1.0.1",
+ "arraybuffer.prototype.slice": "^1.0.3",
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.7",
+ "data-view-buffer": "^1.0.1",
+ "data-view-byte-length": "^1.0.1",
+ "data-view-byte-offset": "^1.0.0",
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0",
+ "es-set-tostringtag": "^2.0.3",
+ "es-to-primitive": "^1.2.1",
+ "function.prototype.name": "^1.1.6",
+ "get-intrinsic": "^1.2.4",
+ "get-symbol-description": "^1.0.2",
+ "globalthis": "^1.0.3",
+ "gopd": "^1.0.1",
+ "has-property-descriptors": "^1.0.2",
+ "has-proto": "^1.0.3",
+ "has-symbols": "^1.0.3",
+ "hasown": "^2.0.2",
+ "internal-slot": "^1.0.7",
+ "is-array-buffer": "^3.0.4",
+ "is-callable": "^1.2.7",
+ "is-data-view": "^1.0.1",
+ "is-negative-zero": "^2.0.3",
+ "is-regex": "^1.1.4",
+ "is-shared-array-buffer": "^1.0.3",
+ "is-string": "^1.0.7",
+ "is-typed-array": "^1.1.13",
+ "is-weakref": "^1.0.2",
+ "object-inspect": "^1.13.1",
+ "object-keys": "^1.1.1",
+ "object.assign": "^4.1.5",
+ "regexp.prototype.flags": "^1.5.2",
+ "safe-array-concat": "^1.1.2",
+ "safe-regex-test": "^1.0.3",
+ "string.prototype.trim": "^1.2.9",
+ "string.prototype.trimend": "^1.0.8",
+ "string.prototype.trimstart": "^1.0.8",
+ "typed-array-buffer": "^1.0.2",
+ "typed-array-byte-length": "^1.0.1",
+ "typed-array-byte-offset": "^1.0.2",
+ "typed-array-length": "^1.0.6",
+ "unbox-primitive": "^1.0.2",
+ "which-typed-array": "^1.1.15"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
+ "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
+ "dependencies": {
+ "get-intrinsic": "^1.2.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-iterator-helpers": {
+ "version": "1.0.18",
+ "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.18.tgz",
+ "integrity": "sha512-scxAJaewsahbqTYrGKJihhViaM6DDZDDoucfvzNbK0pOren1g/daDQ3IAhzn+1G14rBG7w+i5N+qul60++zlKA==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.0",
+ "es-errors": "^1.3.0",
+ "es-set-tostringtag": "^2.0.3",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.4",
+ "globalthis": "^1.0.3",
+ "has-property-descriptors": "^1.0.2",
+ "has-proto": "^1.0.3",
+ "has-symbols": "^1.0.3",
+ "internal-slot": "^1.0.7",
+ "iterator.prototype": "^1.1.2",
+ "safe-array-concat": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz",
+ "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==",
+ "dev": true,
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz",
+ "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==",
+ "dev": true,
+ "dependencies": {
+ "get-intrinsic": "^1.2.4",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-shim-unscopables": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz",
+ "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==",
+ "dev": true,
+ "dependencies": {
+ "hasown": "^2.0.0"
+ }
+ },
+ "node_modules/es-to-primitive": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz",
+ "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==",
+ "dev": true,
+ "dependencies": {
+ "is-callable": "^1.1.4",
+ "is-date-object": "^1.0.1",
+ "is-symbol": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz",
+ "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==",
+ "dev": true,
+ "hasInstallScript": true,
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.20.2",
+ "@esbuild/android-arm": "0.20.2",
+ "@esbuild/android-arm64": "0.20.2",
+ "@esbuild/android-x64": "0.20.2",
+ "@esbuild/darwin-arm64": "0.20.2",
+ "@esbuild/darwin-x64": "0.20.2",
+ "@esbuild/freebsd-arm64": "0.20.2",
+ "@esbuild/freebsd-x64": "0.20.2",
+ "@esbuild/linux-arm": "0.20.2",
+ "@esbuild/linux-arm64": "0.20.2",
+ "@esbuild/linux-ia32": "0.20.2",
+ "@esbuild/linux-loong64": "0.20.2",
+ "@esbuild/linux-mips64el": "0.20.2",
+ "@esbuild/linux-ppc64": "0.20.2",
+ "@esbuild/linux-riscv64": "0.20.2",
+ "@esbuild/linux-s390x": "0.20.2",
+ "@esbuild/linux-x64": "0.20.2",
+ "@esbuild/netbsd-x64": "0.20.2",
+ "@esbuild/openbsd-x64": "0.20.2",
+ "@esbuild/sunos-x64": "0.20.2",
+ "@esbuild/win32-arm64": "0.20.2",
+ "@esbuild/win32-ia32": "0.20.2",
+ "@esbuild/win32-x64": "0.20.2"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "8.57.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz",
+ "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==",
+ "dev": true,
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.2.0",
+ "@eslint-community/regexpp": "^4.6.1",
+ "@eslint/eslintrc": "^2.1.4",
+ "@eslint/js": "8.57.0",
+ "@humanwhocodes/config-array": "^0.11.14",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@nodelib/fs.walk": "^1.2.8",
+ "@ungap/structured-clone": "^1.2.0",
+ "ajv": "^6.12.4",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.2",
+ "debug": "^4.3.2",
+ "doctrine": "^3.0.0",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^7.2.2",
+ "eslint-visitor-keys": "^3.4.3",
+ "espree": "^9.6.1",
+ "esquery": "^1.4.2",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^6.0.1",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "globals": "^13.19.0",
+ "graphemer": "^1.4.0",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "is-path-inside": "^3.0.3",
+ "js-yaml": "^4.1.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "levn": "^0.4.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.2",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3",
+ "strip-ansi": "^6.0.1",
+ "text-table": "^0.2.0"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-plugin-react": {
+ "version": "7.34.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.34.1.tgz",
+ "integrity": "sha512-N97CxlouPT1AHt8Jn0mhhN2RrADlUAsk1/atcT2KyA/l9Q/E6ll7OIGwNumFmWfZ9skV3XXccYS19h80rHtgkw==",
+ "dev": true,
+ "dependencies": {
+ "array-includes": "^3.1.7",
+ "array.prototype.findlast": "^1.2.4",
+ "array.prototype.flatmap": "^1.3.2",
+ "array.prototype.toreversed": "^1.1.2",
+ "array.prototype.tosorted": "^1.1.3",
+ "doctrine": "^2.1.0",
+ "es-iterator-helpers": "^1.0.17",
+ "estraverse": "^5.3.0",
+ "jsx-ast-utils": "^2.4.1 || ^3.0.0",
+ "minimatch": "^3.1.2",
+ "object.entries": "^1.1.7",
+ "object.fromentries": "^2.0.7",
+ "object.hasown": "^1.1.3",
+ "object.values": "^1.1.7",
+ "prop-types": "^15.8.1",
+ "resolve": "^2.0.0-next.5",
+ "semver": "^6.3.1",
+ "string.prototype.matchall": "^4.0.10"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "peerDependencies": {
+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8"
+ }
+ },
+ "node_modules/eslint-plugin-react-hooks": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz",
+ "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0"
+ }
+ },
+ "node_modules/eslint-plugin-react-refresh": {
+ "version": "0.4.6",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.6.tgz",
+ "integrity": "sha512-NjGXdm7zgcKRkKMua34qVO9doI7VOxZ6ancSvBELJSSoX97jyndXcSoa8XBh69JoB31dNz3EEzlMcizZl7LaMA==",
+ "dev": true,
+ "peerDependencies": {
+ "eslint": ">=7"
+ }
+ },
+ "node_modules/eslint-plugin-react/node_modules/doctrine": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",
+ "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",
+ "dev": true,
+ "dependencies": {
+ "esutils": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/eslint-plugin-react/node_modules/resolve": {
+ "version": "2.0.0-next.5",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz",
+ "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==",
+ "dev": true,
+ "dependencies": {
+ "is-core-module": "^2.13.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "7.2.2",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",
+ "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",
+ "dev": true,
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "9.6.1",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
+ "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
+ "dev": true,
+ "dependencies": {
+ "acorn": "^8.9.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^3.4.1"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz",
+ "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==",
+ "dev": true,
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/eventemitter3": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.3.tgz",
+ "integrity": "sha512-jLN68Dx5kyFHaePoXWPsCGW5qdyZQtLYHkxkg02/Mz6g0kYpDx4FyP6XfArhQdlOC4b8Mv+EMxPo/8La7Tzghg=="
+ },
+ "node_modules/extend": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
+ },
+ "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==",
+ "dev": true
+ },
+ "node_modules/fast-diff": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.2.tgz",
+ "integrity": "sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig=="
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true
+ },
+ "node_modules/fastq": {
+ "version": "1.17.1",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
+ "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==",
+ "dev": true,
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
+ "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
+ "dev": true,
+ "dependencies": {
+ "flat-cache": "^3.0.4"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ }
+ },
+ "node_modules/find-root": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
+ "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng=="
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",
+ "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",
+ "dev": true,
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.3",
+ "rimraf": "^3.0.2"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz",
+ "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==",
+ "dev": true
+ },
+ "node_modules/focus-lock": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/focus-lock/-/focus-lock-1.3.5.tgz",
+ "integrity": "sha512-QFaHbhv9WPUeLYBDe/PAuLKJ4Dd9OPvKs9xZBr3yLXnUrDNaVXKu2baDBXe3naPY30hgHYSsf2JW4jzas2mDEQ==",
+ "dependencies": {
+ "tslib": "^2.0.3"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/for-each": {
+ "version": "0.3.3",
+ "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
+ "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==",
+ "dev": true,
+ "dependencies": {
+ "is-callable": "^1.1.3"
+ }
+ },
+ "node_modules/frac": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz",
+ "integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/framer-motion": {
+ "version": "11.1.5",
+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.1.5.tgz",
+ "integrity": "sha512-ogK5fc0GBUT3AjzMXPx7f74m5V1ByRqkKQARBVHpdkYTNDxb/WriANYD+5JBo1wklQQJ1HayDZtmofQLqZFcbw==",
+ "dependencies": {
+ "tslib": "^2.4.0"
+ },
+ "peerDependencies": {
+ "@emotion/is-prop-valid": "*",
+ "react": "^18.0.0",
+ "react-dom": "^18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@emotion/is-prop-valid": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/framesync": {
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/framesync/-/framesync-6.1.2.tgz",
+ "integrity": "sha512-jBTqhX6KaQVDyus8muwZbBeGGP0XgujBRbQ7gM7BRdS3CadCZIHiawyzYLnafYcvZIh5j8WE7cxZKFn7dXhu9g==",
+ "dependencies": {
+ "tslib": "2.4.0"
+ }
+ },
+ "node_modules/framesync/node_modules/tslib": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",
+ "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ=="
+ },
+ "node_modules/fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+ "dev": true
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/function.prototype.name": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz",
+ "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
+ "functions-have-names": "^1.2.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/functions-have-names": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",
+ "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
+ "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "has-proto": "^1.0.1",
+ "has-symbols": "^1.0.3",
+ "hasown": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-nonce": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
+ "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/get-symbol-description": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz",
+ "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.5",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "dev": true,
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/globals": {
+ "version": "13.24.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
+ "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
+ "dev": true,
+ "dependencies": {
+ "type-fest": "^0.20.2"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/globalthis": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz",
+ "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==",
+ "dev": true,
+ "dependencies": {
+ "define-properties": "^1.1.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
+ "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
+ "dependencies": {
+ "get-intrinsic": "^1.1.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/graphemer": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
+ "dev": true
+ },
+ "node_modules/has-bigints": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
+ "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==",
+ "dev": true,
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/has-property-descriptors": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
+ "dependencies": {
+ "es-define-property": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-proto": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
+ "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "dependencies": {
+ "has-symbols": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/hoist-non-react-statics": {
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
+ "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
+ "dependencies": {
+ "react-is": "^16.7.0"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.3.1",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz",
+ "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==",
+ "dev": true,
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/immer": {
+ "version": "10.0.4",
+ "resolved": "https://registry.npmjs.org/immer/-/immer-10.0.4.tgz",
+ "integrity": "sha512-cuBuGK40P/sk5IzWa9QPUaAdvPHjkk1c+xYsd9oZw+YQQEV+10G0P5uMpGctZZKnyQ+ibRO08bD25nWLmYi2pw==",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/immer"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
+ "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
+ "dev": true,
+ "dependencies": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true
+ },
+ "node_modules/internal-slot": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz",
+ "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==",
+ "dev": true,
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "hasown": "^2.0.0",
+ "side-channel": "^1.0.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/invariant": {
+ "version": "2.2.4",
+ "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
+ "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
+ "dependencies": {
+ "loose-envify": "^1.0.0"
+ }
+ },
+ "node_modules/is-arguments": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz",
+ "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-array-buffer": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz",
+ "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "get-intrinsic": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg=="
+ },
+ "node_modules/is-async-function": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz",
+ "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==",
+ "dev": true,
+ "dependencies": {
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-bigint": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz",
+ "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==",
+ "dev": true,
+ "dependencies": {
+ "has-bigints": "^1.0.1"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-boolean-object": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz",
+ "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-callable": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",
+ "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-core-module": {
+ "version": "2.13.1",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz",
+ "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==",
+ "dependencies": {
+ "hasown": "^2.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-data-view": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz",
+ "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==",
+ "dev": true,
+ "dependencies": {
+ "is-typed-array": "^1.1.13"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-date-object": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz",
+ "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==",
+ "dependencies": {
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-finalizationregistry": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz",
+ "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-generator-function": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz",
+ "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==",
+ "dev": true,
+ "dependencies": {
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-map": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz",
+ "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-negative-zero": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz",
+ "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-number-object": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz",
+ "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==",
+ "dev": true,
+ "dependencies": {
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-path-inside": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
+ "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-regex": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
+ "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-set": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",
+ "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-shared-array-buffer": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz",
+ "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-string": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz",
+ "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==",
+ "dev": true,
+ "dependencies": {
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-symbol": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz",
+ "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==",
+ "dev": true,
+ "dependencies": {
+ "has-symbols": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-typed-array": {
+ "version": "1.1.13",
+ "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz",
+ "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==",
+ "dev": true,
+ "dependencies": {
+ "which-typed-array": "^1.1.14"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-weakmap": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz",
+ "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-weakref": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz",
+ "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-weakset": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz",
+ "integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "get-intrinsic": "^1.2.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/isarray": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
+ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",
+ "dev": true
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true
+ },
+ "node_modules/iterator.prototype": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz",
+ "integrity": "sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==",
+ "dev": true,
+ "dependencies": {
+ "define-properties": "^1.2.1",
+ "get-intrinsic": "^1.2.1",
+ "has-symbols": "^1.0.3",
+ "reflect.getprototypeof": "^1.0.4",
+ "set-function-name": "^2.0.1"
+ }
+ },
+ "node_modules/js-cookie": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz",
+ "integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==",
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "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==",
+ "dev": true
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true
+ },
+ "node_modules/json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="
+ },
+ "node_modules/jsx-ast-utils": {
+ "version": "3.3.5",
+ "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz",
+ "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==",
+ "dev": true,
+ "dependencies": {
+ "array-includes": "^3.1.6",
+ "array.prototype.flat": "^1.3.1",
+ "object.assign": "^4.1.4",
+ "object.values": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash": {
+ "version": "4.17.21",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true
+ },
+ "node_modules/lodash.mergewith": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz",
+ "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ=="
+ },
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.7",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
+ "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.1",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
+ "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
+ "dev": true,
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object-is": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz",
+ "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object-keys": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object.assign": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz",
+ "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.5",
+ "define-properties": "^1.2.1",
+ "has-symbols": "^1.0.3",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object.entries": {
+ "version": "1.1.8",
+ "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.8.tgz",
+ "integrity": "sha512-cmopxi8VwRIAw/fkijJohSfpef5PdN0pMQJN6VC/ZKvn0LIknWD8KtgY6KlQdEc4tIjcQ3HxSMmnvtzIscdaYQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object.fromentries": {
+ "version": "2.0.8",
+ "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz",
+ "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object.hasown": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.4.tgz",
+ "integrity": "sha512-FZ9LZt9/RHzGySlBARE3VF+gE26TxR38SdmqOqliuTnl9wrKulaQs+4dee1V+Io8VfxqzAfHu6YuRgUy8OHoTg==",
+ "dev": true,
+ "dependencies": {
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object.values": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.0.tgz",
+ "integrity": "sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "dev": true,
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.3",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz",
+ "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==",
+ "dev": true,
+ "dependencies": {
+ "@aashutoshrathi/word-wrap": "^1.2.3",
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parchment": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/parchment/-/parchment-1.1.4.tgz",
+ "integrity": "sha512-J5FBQt/pM2inLzg4hEWmzQx/8h8D0CiDxaG3vyp9rKrQRSDgBlhjdP5jQGgosEajXPSQouXGHOmVdgo7QmJuOg=="
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
+ },
+ "node_modules/path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
+ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
+ },
+ "node_modules/possible-typed-array-names": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz",
+ "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.4.38",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz",
+ "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "dependencies": {
+ "nanoid": "^3.3.7",
+ "picocolors": "^1.0.0",
+ "source-map-js": "^1.2.0"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/prop-types": {
+ "version": "15.8.1",
+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "dependencies": {
+ "loose-envify": "^1.4.0",
+ "object-assign": "^4.1.1",
+ "react-is": "^16.13.1"
+ }
+ },
+ "node_modules/property-expr": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz",
+ "integrity": "sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA=="
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
+ },
+ "node_modules/quill": {
+ "version": "1.3.7",
+ "resolved": "https://registry.npmjs.org/quill/-/quill-1.3.7.tgz",
+ "integrity": "sha512-hG/DVzh/TiknWtE6QmWAF/pxoZKYxfe3J/d/+ShUWkDvvkZQVTPeVmUJVu1uE6DDooC4fWTiCLh84ul89oNz5g==",
+ "dependencies": {
+ "clone": "^2.1.1",
+ "deep-equal": "^1.0.1",
+ "eventemitter3": "^2.0.3",
+ "extend": "^3.0.2",
+ "parchment": "^1.1.4",
+ "quill-delta": "^3.6.2"
+ }
+ },
+ "node_modules/quill-delta": {
+ "version": "3.6.3",
+ "resolved": "https://registry.npmjs.org/quill-delta/-/quill-delta-3.6.3.tgz",
+ "integrity": "sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==",
+ "dependencies": {
+ "deep-equal": "^1.0.1",
+ "extend": "^3.0.2",
+ "fast-diff": "1.1.2"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/react": {
+ "version": "18.2.0",
+ "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
+ "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-clientside-effect": {
+ "version": "1.2.6",
+ "resolved": "https://registry.npmjs.org/react-clientside-effect/-/react-clientside-effect-1.2.6.tgz",
+ "integrity": "sha512-XGGGRQAKY+q25Lz9a/4EPqom7WRjz3z9R2k4jhVKA/puQFH/5Nt27vFZYql4m4NVNdUvX8PS3O7r/Zzm7cjUlg==",
+ "dependencies": {
+ "@babel/runtime": "^7.12.13"
+ },
+ "peerDependencies": {
+ "react": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "18.2.0",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
+ "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/react-fast-compare": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz",
+ "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ=="
+ },
+ "node_modules/react-focus-lock": {
+ "version": "2.11.3",
+ "resolved": "https://registry.npmjs.org/react-focus-lock/-/react-focus-lock-2.11.3.tgz",
+ "integrity": "sha512-CfWYS86y6KvAIGxYzO1/HlWI2zGON9Fa3L2xfREDGMNFAtYj3m/ZRvnsMH4H75dj5FpgDy2LWA1Vyx+twV80vw==",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0",
+ "focus-lock": "^1.3.5",
+ "prop-types": "^15.6.2",
+ "react-clientside-effect": "^1.2.6",
+ "use-callback-ref": "^1.3.2",
+ "use-sidecar": "^1.1.2"
+ },
+ "peerDependencies": {
+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-hook-form": {
+ "version": "7.51.3",
+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.51.3.tgz",
+ "integrity": "sha512-cvJ/wbHdhYx8aviSWh28w9ImjmVsb5Y05n1+FW786vEZQJV5STNM0pW6ujS+oiBecb0ARBxJFyAnXj9+GHXACQ==",
+ "engines": {
+ "node": ">=12.22.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/react-hook-form"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17 || ^18"
+ }
+ },
+ "node_modules/react-icons": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.1.0.tgz",
+ "integrity": "sha512-D3zug1270S4hbSlIRJ0CUS97QE1yNNKDjzQe3HqY0aefp2CBn9VgzgES27sRR2gOvFK+0CNx/BW0ggOESp6fqQ==",
+ "peerDependencies": {
+ "react": "*"
+ }
+ },
+ "node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
+ },
+ "node_modules/react-quill": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/react-quill/-/react-quill-2.0.0.tgz",
+ "integrity": "sha512-4qQtv1FtCfLgoD3PXAur5RyxuUbPXQGOHgTlFie3jtxp43mXDtzCKaOgQ3mLyZfi1PUlyjycfivKelFhy13QUg==",
+ "dependencies": {
+ "@types/quill": "^1.3.10",
+ "lodash": "^4.17.4",
+ "quill": "^1.3.7"
+ },
+ "peerDependencies": {
+ "react": "^16 || ^17 || ^18",
+ "react-dom": "^16 || ^17 || ^18"
+ }
+ },
+ "node_modules/react-redux": {
+ "version": "9.1.1",
+ "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.1.1.tgz",
+ "integrity": "sha512-5ynfGDzxxsoV73+4czQM56qF43vsmgJsO22rmAvU5tZT2z5Xow/A2uhhxwXuGTxgdReF3zcp7A80gma2onRs1A==",
+ "dependencies": {
+ "@types/use-sync-external-store": "^0.0.3",
+ "use-sync-external-store": "^1.0.0"
+ },
+ "peerDependencies": {
+ "@types/react": "^18.2.25",
+ "react": "^18.0",
+ "react-native": ">=0.69",
+ "redux": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "react-native": {
+ "optional": true
+ },
+ "redux": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-remove-scroll": {
+ "version": "2.5.9",
+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.9.tgz",
+ "integrity": "sha512-bvHCLBrFfM2OgcrpPY2YW84sPdS2o2HKWJUf1xGyGLnSoEnOTOBpahIarjRuYtN0ryahCeP242yf+5TrBX/pZA==",
+ "dependencies": {
+ "react-remove-scroll-bar": "^2.3.6",
+ "react-style-singleton": "^2.2.1",
+ "tslib": "^2.1.0",
+ "use-callback-ref": "^1.3.0",
+ "use-sidecar": "^1.1.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-remove-scroll-bar": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.6.tgz",
+ "integrity": "sha512-DtSYaao4mBmX+HDo5YWYdBWQwYIQQshUV/dVxFxK+KM26Wjwp1gZ6rv6OC3oujI6Bfu6Xyg3TwK533AQutsn/g==",
+ "dependencies": {
+ "react-style-singleton": "^2.2.1",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-router": {
+ "version": "6.22.3",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.22.3.tgz",
+ "integrity": "sha512-dr2eb3Mj5zK2YISHK++foM9w4eBnO23eKnZEDs7c880P6oKbrjz/Svg9+nxqtHQK+oMW4OtjZca0RqPglXxguQ==",
+ "dependencies": {
+ "@remix-run/router": "1.15.3"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8"
+ }
+ },
+ "node_modules/react-router-dom": {
+ "version": "6.22.3",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.22.3.tgz",
+ "integrity": "sha512-7ZILI7HjcE+p31oQvwbokjk6OA/bnFxrhJ19n82Ex9Ph8fNAq+Hm/7KchpMGlTgWhUxRHMMCut+vEtNpWpowKw==",
+ "dependencies": {
+ "@remix-run/router": "1.15.3",
+ "react-router": "6.22.3"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8",
+ "react-dom": ">=16.8"
+ }
+ },
+ "node_modules/react-style-singleton": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.1.tgz",
+ "integrity": "sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==",
+ "dependencies": {
+ "get-nonce": "^1.0.0",
+ "invariant": "^2.2.4",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/redux": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz",
+ "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w=="
+ },
+ "node_modules/redux-persist": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/redux-persist/-/redux-persist-6.0.0.tgz",
+ "integrity": "sha512-71LLMbUq2r02ng2We9S215LtPu3fY0KgaGE0k8WRgl6RkqxtGfl7HUozz1Dftwsb0D/5mZ8dwAaPbtnzfvbEwQ==",
+ "peerDependencies": {
+ "redux": ">4.0.0"
+ }
+ },
+ "node_modules/redux-persist-transform-encrypt": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/redux-persist-transform-encrypt/-/redux-persist-transform-encrypt-5.1.1.tgz",
+ "integrity": "sha512-PN+yypR6fBVMEFBnwZmTN9rEovs+zmBojejIGF8WxP4Qt+Tt1MQtIUUkeUKoeG4QrMWoXtRYmbBkaWpKcdpXHg==",
+ "dependencies": {
+ "crypto-js": "^4.2.0",
+ "json-stringify-safe": "^5.0.1"
+ },
+ "peerDependencies": {
+ "redux": ">3.0.0",
+ "redux-persist": "^6.x.x"
+ }
+ },
+ "node_modules/redux-thunk": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz",
+ "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==",
+ "peerDependencies": {
+ "redux": "^5.0.0"
+ }
+ },
+ "node_modules/reflect.getprototypeof": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.6.tgz",
+ "integrity": "sha512-fmfw4XgoDke3kdI6h4xcUz1dG8uaiv5q9gcEwLS4Pnth2kxT+GZ7YehS1JTMGBQmtV7Y4GFGbs2re2NqhdozUg==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.1",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.4",
+ "globalthis": "^1.0.3",
+ "which-builtin-type": "^1.1.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/regenerator-runtime": {
+ "version": "0.14.1",
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
+ },
+ "node_modules/regexp.prototype.flags": {
+ "version": "1.5.2",
+ "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz",
+ "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==",
+ "dependencies": {
+ "call-bind": "^1.0.6",
+ "define-properties": "^1.2.1",
+ "es-errors": "^1.3.0",
+ "set-function-name": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/reselect": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.0.tgz",
+ "integrity": "sha512-aw7jcGLDpSgNDyWBQLv2cedml85qd95/iszJjN988zX1t7AVRJi19d9kto5+W7oCfQ94gyo40dVbT6g2k4/kXg=="
+ },
+ "node_modules/resolve": {
+ "version": "1.22.8",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz",
+ "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==",
+ "dependencies": {
+ "is-core-module": "^2.13.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
+ "dev": true,
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rimraf": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
+ "dev": true,
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.14.3.tgz",
+ "integrity": "sha512-ag5tTQKYsj1bhrFC9+OEWqb5O6VYgtQDO9hPDBMmIbePwhfSr+ExlcU741t8Dhw5DkPCQf6noz0jb36D6W9/hw==",
+ "dev": true,
+ "dependencies": {
+ "@types/estree": "1.0.5"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.14.3",
+ "@rollup/rollup-android-arm64": "4.14.3",
+ "@rollup/rollup-darwin-arm64": "4.14.3",
+ "@rollup/rollup-darwin-x64": "4.14.3",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.14.3",
+ "@rollup/rollup-linux-arm-musleabihf": "4.14.3",
+ "@rollup/rollup-linux-arm64-gnu": "4.14.3",
+ "@rollup/rollup-linux-arm64-musl": "4.14.3",
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.14.3",
+ "@rollup/rollup-linux-riscv64-gnu": "4.14.3",
+ "@rollup/rollup-linux-s390x-gnu": "4.14.3",
+ "@rollup/rollup-linux-x64-gnu": "4.14.3",
+ "@rollup/rollup-linux-x64-musl": "4.14.3",
+ "@rollup/rollup-win32-arm64-msvc": "4.14.3",
+ "@rollup/rollup-win32-ia32-msvc": "4.14.3",
+ "@rollup/rollup-win32-x64-msvc": "4.14.3",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/safe-array-concat": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz",
+ "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "get-intrinsic": "^1.2.4",
+ "has-symbols": "^1.0.3",
+ "isarray": "^2.0.5"
+ },
+ "engines": {
+ "node": ">=0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/safe-regex-test": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz",
+ "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.6",
+ "es-errors": "^1.3.0",
+ "is-regex": "^1.1.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.23.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
+ "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/set-function-length": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.4",
+ "gopd": "^1.0.1",
+ "has-property-descriptors": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/set-function-name": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz",
+ "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-errors": "^1.3.0",
+ "functions-have-names": "^1.2.3",
+ "has-property-descriptors": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/side-channel": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
+ "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.4",
+ "object-inspect": "^1.13.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",
+ "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ssf": {
+ "version": "0.11.2",
+ "resolved": "https://registry.npmjs.org/ssf/-/ssf-0.11.2.tgz",
+ "integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==",
+ "dependencies": {
+ "frac": "~1.1.2"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/string.prototype.matchall": {
+ "version": "4.0.11",
+ "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.11.tgz",
+ "integrity": "sha512-NUdh0aDavY2og7IbBPenWqR9exH+E26Sv8e0/eTe1tltDGZL+GtBkDAnnyBtmekfK6/Dq3MkcGtzXFEd1LQrtg==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0",
+ "get-intrinsic": "^1.2.4",
+ "gopd": "^1.0.1",
+ "has-symbols": "^1.0.3",
+ "internal-slot": "^1.0.7",
+ "regexp.prototype.flags": "^1.5.2",
+ "set-function-name": "^2.0.2",
+ "side-channel": "^1.0.6"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/string.prototype.trim": {
+ "version": "1.2.9",
+ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz",
+ "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.0",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/string.prototype.trimend": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz",
+ "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/string.prototype.trimstart": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz",
+ "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/stylis": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz",
+ "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw=="
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/text-table": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
+ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
+ "dev": true
+ },
+ "node_modules/tiny-case": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",
+ "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q=="
+ },
+ "node_modules/tiny-invariant": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="
+ },
+ "node_modules/to-fast-properties": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
+ "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/toggle-selection": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz",
+ "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ=="
+ },
+ "node_modules/toposort": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz",
+ "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg=="
+ },
+ "node_modules/tslib": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
+ "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/type-fest": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
+ "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/typed-array-buffer": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz",
+ "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "es-errors": "^1.3.0",
+ "is-typed-array": "^1.1.13"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/typed-array-byte-length": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz",
+ "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "for-each": "^0.3.3",
+ "gopd": "^1.0.1",
+ "has-proto": "^1.0.3",
+ "is-typed-array": "^1.1.13"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/typed-array-byte-offset": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz",
+ "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==",
+ "dev": true,
+ "dependencies": {
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.7",
+ "for-each": "^0.3.3",
+ "gopd": "^1.0.1",
+ "has-proto": "^1.0.3",
+ "is-typed-array": "^1.1.13"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/typed-array-length": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz",
+ "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "for-each": "^0.3.3",
+ "gopd": "^1.0.1",
+ "has-proto": "^1.0.3",
+ "is-typed-array": "^1.1.13",
+ "possible-typed-array-names": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/unbox-primitive": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
+ "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "has-bigints": "^1.0.2",
+ "has-symbols": "^1.0.3",
+ "which-boxed-primitive": "^1.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/use-callback-ref": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.2.tgz",
+ "integrity": "sha512-elOQwe6Q8gqZgDA8mrh44qRTQqpIHDcZ3hXTLjBe1i4ph8XpNJnO+aQf3NaG+lriLopI4HMx9VjQLfPQ6vhnoA==",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/use-sidecar": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.2.tgz",
+ "integrity": "sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==",
+ "dependencies": {
+ "detect-node-es": "^1.1.0",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/use-sync-external-store": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",
+ "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/uuid": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
+ "funding": [
+ "https://github.com/sponsors/broofa",
+ "https://github.com/sponsors/ctavan"
+ ],
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/vite": {
+ "version": "5.2.9",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.9.tgz",
+ "integrity": "sha512-uOQWfuZBlc6Y3W/DTuQ1Sr+oIXWvqljLvS881SVmAj00d5RdgShLcuXWxseWPd4HXwiYBFW/vXHfKFeqj9uQnw==",
+ "dev": true,
+ "dependencies": {
+ "esbuild": "^0.20.1",
+ "postcss": "^8.4.38",
+ "rollup": "^4.13.0"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^18.0.0 || >=20.0.0",
+ "less": "*",
+ "lightningcss": "^1.21.0",
+ "sass": "*",
+ "stylus": "*",
+ "sugarss": "*",
+ "terser": "^5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/which-boxed-primitive": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",
+ "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==",
+ "dev": true,
+ "dependencies": {
+ "is-bigint": "^1.0.1",
+ "is-boolean-object": "^1.1.0",
+ "is-number-object": "^1.0.4",
+ "is-string": "^1.0.5",
+ "is-symbol": "^1.0.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-builtin-type": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz",
+ "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==",
+ "dev": true,
+ "dependencies": {
+ "function.prototype.name": "^1.1.5",
+ "has-tostringtag": "^1.0.0",
+ "is-async-function": "^2.0.0",
+ "is-date-object": "^1.0.5",
+ "is-finalizationregistry": "^1.0.2",
+ "is-generator-function": "^1.0.10",
+ "is-regex": "^1.1.4",
+ "is-weakref": "^1.0.2",
+ "isarray": "^2.0.5",
+ "which-boxed-primitive": "^1.0.2",
+ "which-collection": "^1.0.1",
+ "which-typed-array": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-collection": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz",
+ "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==",
+ "dev": true,
+ "dependencies": {
+ "is-map": "^2.0.3",
+ "is-set": "^2.0.3",
+ "is-weakmap": "^2.0.2",
+ "is-weakset": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-typed-array": {
+ "version": "1.1.15",
+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz",
+ "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==",
+ "dev": true,
+ "dependencies": {
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.7",
+ "for-each": "^0.3.3",
+ "gopd": "^1.0.1",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/wmf": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wmf/-/wmf-1.0.2.tgz",
+ "integrity": "sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/word": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/word/-/word-0.3.0.tgz",
+ "integrity": "sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "dev": true
+ },
+ "node_modules/xlsx": {
+ "version": "0.18.5",
+ "resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.18.5.tgz",
+ "integrity": "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ==",
+ "dependencies": {
+ "adler-32": "~1.3.0",
+ "cfb": "~1.2.1",
+ "codepage": "~1.15.0",
+ "crc-32": "~1.2.1",
+ "ssf": "~0.11.2",
+ "wmf": "~1.0.1",
+ "word": "~0.3.0"
+ },
+ "bin": {
+ "xlsx": "bin/xlsx.njs"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/yaml": {
+ "version": "1.10.2",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/yup": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/yup/-/yup-1.4.0.tgz",
+ "integrity": "sha512-wPbgkJRCqIf+OHyiTBQoJiP5PFuAXaWiJK6AmYkzQAh5/c2K9hzSApBZG5wV9KoKSePF7sAxmNSvh/13YHkFDg==",
+ "dependencies": {
+ "property-expr": "^2.0.5",
+ "tiny-case": "^1.0.3",
+ "toposort": "^2.0.2",
+ "type-fest": "^2.19.0"
+ }
+ },
+ "node_modules/yup/node_modules/type-fest": {
+ "version": "2.19.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",
+ "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",
+ "engines": {
+ "node": ">=12.20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..9c30f1e
--- /dev/null
+++ b/package.json
@@ -0,0 +1,46 @@
+{
+ "name": "tanami-admin-dashboard",
+ "private": true,
+ "version": "0.0.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "vite build",
+ "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "@chakra-ui/icons": "^2.1.1",
+ "@chakra-ui/react": "^2.8.2",
+ "@emotion/react": "^11.11.4",
+ "@emotion/styled": "^11.11.5",
+ "@hookform/resolvers": "^3.3.4",
+ "@reduxjs/toolkit": "^2.2.3",
+ "bootstrap": "5.3.3",
+ "dotenv": "^16.4.5",
+ "framer-motion": "^11.1.5",
+ "js-cookie": "^3.0.5",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0",
+ "react-hook-form": "^7.51.3",
+ "react-icons": "^5.1.0",
+ "react-quill": "^2.0.0",
+ "react-redux": "^9.1.1",
+ "react-router-dom": "^6.22.3",
+ "redux-persist": "^6.0.0",
+ "redux-persist-transform-encrypt": "^5.1.1",
+ "uuid": "^9.0.1",
+ "xlsx": "^0.18.5",
+ "yup": "^1.4.0"
+ },
+ "devDependencies": {
+ "@types/react": "^18.2.66",
+ "@types/react-dom": "^18.2.22",
+ "@vitejs/plugin-react-swc": "^3.5.0",
+ "eslint": "^8.57.0",
+ "eslint-plugin-react": "^7.34.1",
+ "eslint-plugin-react-hooks": "^4.6.0",
+ "eslint-plugin-react-refresh": "^0.4.6",
+ "vite": "^5.2.0"
+ }
+}
diff --git a/public/vite.svg b/public/vite.svg
new file mode 100644
index 0000000..e7b8dfb
--- /dev/null
+++ b/public/vite.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/App.css b/src/App.css
new file mode 100644
index 0000000..42c4620
--- /dev/null
+++ b/src/App.css
@@ -0,0 +1,301 @@
+@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap");
+@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");
+@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
+
+* {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ /* font-family: "League Spartan", sans-serif !important; */
+ font-family: "Poppins", sans-serif !important;
+}
+
+.pointer {
+ cursor: pointer !important;
+}
+
+.activee {
+ text-decoration: none; /* Remove underline */
+ font-weight: bold; /* Optionally change font weight for active link */
+ background: linear-gradient(
+ to right,
+ #7a45fb,
+ #de41b5
+ ); /* Gradient background */
+ -webkit-background-clip: text; /* Clip text to the background area */
+ -webkit-text-fill-color: transparent; /* Fill text with the background color */
+ transition: all 0.3s ease-in-out;
+}
+
+.active {
+ background-color: #ced8e6a2;
+ /* background-color: #e2e8f01c; */
+}
+
+.link {
+ text-decoration: none;
+ transition: all 0.2s ease-in-out;
+ font-weight: 400;
+}
+
+.link:hover {
+ background-color: #ced8e6a2 !important;
+ /* background-color: #e2e8f01c !important; */
+}
+
+.active:hover {
+ background-color: #ced8e6a2 !important;
+ /* background-color: #e2e8f01c !important; */
+}
+
+.web-text-small {
+ font-size: 12px !important;
+}
+.web-text-xxsmall {
+ font-size: 9px !important;
+}
+.web-text-xsmall {
+ font-size: 11px !important;
+}
+
+.web-text-medium {
+ font-size: 13px !important;
+}
+
+.web-text-large {
+ font-size: 15px !important;
+}
+
+.rubix-text-dark {
+ color: #000000;
+}
+
+.arrow-button {
+ transition: all 0.5s;
+}
+
+.arrow-button:active {
+ background: #fff;
+}
+
+.arrow-button:focus {
+ background: #fff;
+}
+
+.arrow-button:hover {
+ background: linear-gradient(90deg, #de41b5 0%, #7a45fb 100%);
+}
+
+.greeting {
+ text-decoration: none; /* Remove underline */
+ font-weight: bold; /* Optionally change font weight for active link */
+ background: linear-gradient(
+ to right,
+ #7a45fb,
+ #de41b5
+ ); /* Gradient background */
+ -webkit-background-clip: text; /* Clip text to the background area */
+ -webkit-text-fill-color: transparent; /* Fill text with the background color */
+ transition: all 0.3s ease-in-out;
+}
+
+.primary-btn {
+ background-color: #004118 !important;
+}
+
+.team-slider .swiper-button-next:after {
+ position: absolute;
+ top: 185px;
+ width: 38px;
+ height: 38px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ border-radius: 50px;
+ font-size: 18px;
+ color: #000;
+ font-weight: 700;
+ right: 110px;
+ background-image: radial-gradient(
+ circle,
+ #ffffff,
+ #eee2f2,
+ #e7c3dc,
+ #e5a3ba,
+ #de858e
+ );
+}
+.team-slider .swiper-button-prev:after {
+ position: absolute;
+ top: 185px;
+ width: 38px;
+ height: 38px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ border-radius: 50px;
+ font-size: 18px;
+ color: #000;
+ font-weight: 700;
+ left: 110px;
+ background-image: radial-gradient(
+ circle,
+ #ffffff,
+ #eee2f2,
+ #e7c3dc,
+ #e5a3ba,
+ #de858e
+ );
+}
+
+.text-animate {
+ animation-name: text;
+ animation-duration: 5s;
+ animation-iteration-count: 1;
+}
+
+/* Total scrollbar width */
+::-webkit-scrollbar {
+ width: 4px;
+ height: 12px;
+}
+
+/* The track (background) of the scrollbar */
+::-webkit-scrollbar-track {
+ background: transparent;
+ border-radius: 10px;
+
+}
+
+/* The draggable scrollbar handle */
+::-webkit-scrollbar-thumb {
+ background: #004118;
+ border-radius: 10px;
+ cursor: grabbing;
+}
+
+/* On hover */
+::-webkit-scrollbar-thumb:hover {
+ background: #e97d88;
+}
+
+@keyframes text {
+ 0% {
+ color: #DE858E;
+ /* margin-bottom: -40px; */
+ }
+ 30% {
+ letter-spacing: 10px;
+ /* margin-bottom: -40px; */
+ }
+ 85% {
+ letter-spacing: 8px;
+ /* margin-bottom: -40px; */
+ }
+ 100% {
+ /* margin-bottom: 20px; */
+ }
+}
+
+.rotate {
+ animation: animName 10s linear infinite;
+}
+
+@keyframes animName {
+ 0% {
+ transform: rotate(0deg);
+ }
+ 100% {
+ transform: rotate(360deg);
+ }
+}
+
+.lds-ellipsis {
+ display: inline-block;
+ position: relative;
+ width: 64px;
+ height: 10px;
+}
+.lds-ellipsis div {
+ position: absolute;
+ width: 10px;
+ height: 10px;
+ border-radius: 50%;
+ background: #fff;
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
+}
+.lds-ellipsis div:nth-child(1) {
+ left: 6px;
+ animation: lds-ellipsis1 0.6s infinite;
+}
+.lds-ellipsis div:nth-child(2) {
+ left: 6px;
+ animation: lds-ellipsis2 0.6s infinite;
+}
+.lds-ellipsis div:nth-child(3) {
+ left: 26px;
+ animation: lds-ellipsis2 0.6s infinite;
+}
+.lds-ellipsis div:nth-child(4) {
+ left: 45px;
+ animation: lds-ellipsis3 0.6s infinite;
+}
+@keyframes lds-ellipsis1 {
+ 0% {
+ transform: scale(0);
+ }
+ 100% {
+ transform: scale(1);
+ }
+}
+@keyframes lds-ellipsis3 {
+ 0% {
+ transform: scale(1);
+ }
+ 100% {
+ transform: scale(0);
+ }
+}
+@keyframes lds-ellipsis2 {
+ 0% {
+ transform: translate(0, 0);
+ }
+ 100% {
+ transform: translate(19px, 0);
+ }
+}
+
+/* Extra small devices (phones, 600px and down) */
+@media only screen and (max-width: 600px) {
+ body {
+ font-size: 14px !important;
+ }
+}
+
+/* Small devices (portrait tablets and large phones, 600px and up) */
+@media only screen and (min-width: 600px) {
+ body {
+ font-size: 16px !important;
+ }
+}
+
+/* Medium devices (landscape tablets, 768px and up) */
+@media only screen and (min-width: 768px) {
+ body {
+ font-size: 18px !important;
+ }
+}
+
+/* Large devices (laptops/desktops, 992px and up) */
+@media only screen and (min-width: 992px) {
+ body {
+ font-size: 20px !important;
+ }
+}
+
+/* Extra large devices (large laptops and desktops, 1200px and up) */
+@media only screen and (min-width: 1200px) {
+ body {
+ font-size: 22px !important;
+ }
+}
diff --git a/src/App.jsx b/src/App.jsx
new file mode 100644
index 0000000..0c2871d
--- /dev/null
+++ b/src/App.jsx
@@ -0,0 +1,72 @@
+import React, { useContext, useEffect, useState } from "react";
+import "bootstrap/dist/css/bootstrap.min.css";
+import "bootstrap/dist/js/bootstrap.bundle.min.js";
+import {
+ BrowserRouter as Router,
+ Routes,
+ Route,
+ Navigate,
+} from "react-router-dom";
+import "./App.css"; // Import CSS file
+import DefaultLayout from "./Layout/DefaultLayout";
+import NotFound from "./Pages/NotFound";
+import Login from "./Pages/Login";
+import GlobalStateContext from "./Contexts/GlobalStateContext";
+import Cookies from "js-cookie";
+import NoInternetScreen from "./Pages/NoInternetScreen";
+
+const App = () => {
+ // const { isAuthenticate } = useSelector((state) => state?.auth);
+
+ const { isAuthenticate } = useContext(GlobalStateContext);
+ const isAuthenticatedInCookie = Cookies.get("isAuthenticated");
+
+ const [isOnline, setIsOnline] = useState(navigator.onLine);
+
+ useEffect(() => {
+ const handleOnlineStatusChange = () => {
+ setIsOnline(navigator.onLine);
+ };
+
+ window.addEventListener("online", handleOnlineStatusChange);
+ window.addEventListener("offline", handleOnlineStatusChange);
+
+ return () => {
+ window.removeEventListener("online", handleOnlineStatusChange);
+ window.removeEventListener("offline", handleOnlineStatusChange);
+ };
+ }, []);
+
+ const PrivateRoute = ({ children }) => {
+ if (!isAuthenticate && isAuthenticatedInCookie !== "true") {
+ return ;
+ }
+ return children;
+ };
+
+ return (
+
+
+ } />
+
+ ) : (
+
+ )
+ ) : (
+
+ )
+ }
+ />
+
+ } />
+
+
+ );
+};
+
+export default App;
diff --git a/src/Components/Banner/AddBanner.jsx b/src/Components/Banner/AddBanner.jsx
new file mode 100644
index 0000000..68499cf
--- /dev/null
+++ b/src/Components/Banner/AddBanner.jsx
@@ -0,0 +1,424 @@
+import {
+ Box,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Input,
+ Stack,
+ Textarea,
+ Heading,
+ Button,
+ useToast,
+ Divider,
+ Image,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { TiWarning } from "react-icons/ti";
+
+import { motion } from "framer-motion";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import {
+ addCommunityBannerSchema,
+ addCommunitySchema,
+} from "../../Validations/Validations";
+import { useNavigate } from "react-router-dom";
+import Loader01 from "../../Components/Loaders/Loader01";
+import Header from "../Header";
+import ToastBox from "../ToastBox";
+import BannerMainCard from "./BannerMainCard";
+
+const AddBanner = ({ createApi, navigateLink, title, center }) => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [largeImageData, setLargeImageData] = useState(null);
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ watch,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addCommunityBannerSchema),
+ });
+
+ const formData = watch();
+
+ const onSubmit = async (data) => {
+ try {
+ setIsLoading(true);
+ const formData = new FormData();
+ formData.append("heading", data.heading);
+ formData.append("sub_heading", data.sub_heading);
+ formData.append("CTO_button_link", data.CTO_button_link);
+ formData.append("CTO_button_title", data.CTO_button_title);
+ if (selectedImage[0]) {
+ formData.append("banner_image", data.banner_image[0]);
+ }
+ // Trigger the mutation
+ createApi(formData)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate(navigateLink);
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error creating community:", error);
+ setIsLoading(false);
+ }
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+ Banner info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Banner image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+ <>
+ {/* */}
+
+
+
+ {selectedImage === fallbackImage || largeImageData === null ? (
+ ""
+ ) : (
+
+ {largeImageData?.name}
+
+ {(largeImageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+ >
+
+
+
+
+
+
+
+ );
+};
+
+export default AddBanner;
diff --git a/src/Components/Banner/BannerEdit.jsx b/src/Components/Banner/BannerEdit.jsx
new file mode 100644
index 0000000..54d9879
--- /dev/null
+++ b/src/Components/Banner/BannerEdit.jsx
@@ -0,0 +1,496 @@
+import React, { useEffect, useState } from "react";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ useGetCommunityBannerByIdQuery,
+ useGetCommunityByIdQuery,
+ useUpdateCommunityBannerMutation,
+ useUpdateCommunityMutation,
+} from "../../Services/api.service";
+import { editCommunityBannerSchema, schemaEdit } from "../../Validations/Validations";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import {
+ Box,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Textarea,
+ Button,
+ Skeleton,
+ useToast,
+ Switch,
+ Tag,
+ Text,
+} from "@chakra-ui/react";
+import { TiWarning } from "react-icons/ti";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import Header from "../../Components/Header";
+import CommunityBannerCard from "../../Pages/Community/CommunityBannerCard";
+import BannerMainCard from "./BannerMainCard";
+import ToastBox from "../ToastBox";
+import { IMAGE_URI } from "../../Constants/Paginations";
+
+const BannerEdit = ({isLoading, data, updateBanner, navigateTo, refetch, center}) => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [selectedImage, setSelectedImage] = useState();
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [title, setTitle] = useState("");
+
+ const handleTitleChange = (e) => {
+ setTitle(e.target.value);
+ };
+
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ formState: { errors },
+ setValue,
+ watch
+ } = useForm({
+ resolver: yupResolver(editCommunityBannerSchema),
+ defaultValues: {
+ heading: data?.data?.Heading,
+ sub_heading: data?.data?.sub_heading,
+ CTO_button_title: data?.data?.CTO_button_title,
+ CTO_button_link: data?.data?.CTO_button_link,
+ },
+ });
+
+
+ // Watch form values to update preview
+ const formData = watch();
+
+
+
+ useEffect(() => {
+ if (data?.data) {
+ setSelectedImage(
+ `${IMAGE_URI}/${data?.data?.banner_image}`
+ );
+ setValue("heading", data?.data?.Heading);
+ setValue("sub_heading", data?.data?.sub_heading);
+ setValue("CTO_button_title", data?.data?.CTO_button_title);
+ setValue("CTO_button_link", data?.data?.CTO_button_link);
+ setValue("banner_image", data?.data?.banner_image);
+ watch()
+ }
+ }, [data, setValue]);
+
+
+ // useEffect(() => {
+ // const subscription = watch((value) => {setFormData(value)});
+ // return () => subscription.unsubscribe();
+ // }, [watch]);
+
+ const onSubmit = async (formData) => {
+ setIsLoadingEdit(true);
+ const form = new FormData();
+ form.append("heading", formData.heading);
+ form.append("sub_heading", formData.sub_heading);
+ form.append("CTO_button_title", formData.CTO_button_title);
+ form.append("CTO_button_link", formData.CTO_button_link);
+ if (formData.banner_image[0]) {
+ form.append("banner_image", formData.banner_image[0]);
+ }
+ if (formData?.banner_image === data?.data?.banner_image) {
+ form.delete("banner_image");
+ }
+ // Log the FormData entries
+ // for (const [key, value] of form.entries()) {
+ // // console.log(`${key}: ${value}`);
+ // }
+ const mutationResult = await updateBanner({ id: id, data: form })
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ refetch()
+ navigate(navigateTo);
+ // setDeleteAlert(false);
+ }
+ })
+ .catch((error) => {
+ // // console.error("Error creating community:", error);
+ setIsLoadingEdit(false);
+ // setDeleteIsLoading(false);
+ // setDeleteAlert(false);
+ });
+
+
+
+ reset();
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ return isLoading ? (
+
+ ) : (
+
+
+
+
+
+
+ Display Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Display banner
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {/* */}
+
+
+
+
+
+
+ {selectedImage === fallbackImage || largeImageData === null ? (
+ ""
+ ) : (
+
+ {largeImageData?.name}
+
+ {(largeImageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default BannerEdit;
diff --git a/src/Components/Banner/BannerMainCard.jsx b/src/Components/Banner/BannerMainCard.jsx
new file mode 100644
index 0000000..fe34985
--- /dev/null
+++ b/src/Components/Banner/BannerMainCard.jsx
@@ -0,0 +1,63 @@
+import { Box, Button, Text } from '@chakra-ui/react'
+import React from 'react'
+
+const BannerMainCard = ({heading, subHeading, buttonTitle, imgLink, center}) => {
+
+
+ const words = heading?.split(' ');
+ const firstThreeWords = words.slice(0, 3).join(' ');
+ const remainingWords = words.slice(3).join(' ');
+
+
+
+ return (
+
+
+
+ {firstThreeWords}
+ {' '}
+ {remainingWords}
+
+
+ {subHeading}
+
+
+
+
+ )
+}
+
+export default BannerMainCard
\ No newline at end of file
diff --git a/src/Components/Banner/BannerTable.jsx b/src/Components/Banner/BannerTable.jsx
new file mode 100644
index 0000000..9b7c1b3
--- /dev/null
+++ b/src/Components/Banner/BannerTable.jsx
@@ -0,0 +1,369 @@
+import React, { useRef, useState } from "react";
+import {
+ Box,
+ Text,
+ Tooltip,
+ HStack,
+ Input,
+ Select,
+ Image,
+ Menu,
+ MenuButton,
+ MenuList,
+ MenuItem,
+ Switch,
+ Portal,
+ useToast,
+} from "@chakra-ui/react";
+import { Link as RouterLink } from "react-router-dom";
+import { HiDotsVertical } from "react-icons/hi";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import DataTable from "../DataTable/DataTable";
+import Header from "../Header";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { IMAGE_URI, TABLE_PAGINATION } from "../../Constants/Paginations";
+import {
+ CheckCircleIcon,
+ ChevronLeftIcon,
+ ChevronRightIcon,
+ WarningIcon,
+} from "@chakra-ui/icons";
+import ToastBox from "../ToastBox";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const BannerCommunity = ({
+ dataArray,
+ deleteApi,
+ statusUpdateApi,
+ title,
+ addLink,
+ viewLink,
+ editLink,
+}) => {
+ // ====================================================[Hooks]===================================================================
+ const toast = useToast();
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [actionStatus, setActionStatus] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+
+ // const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ // const [currentPage, setCurrentPage] = useState(1);
+ // const [displayRange, setDisplayRange] = useState({
+ // start: TABLE_PAGINATION?.page,
+ // end: pageSize,
+ // });
+
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (bannerId, status) => {
+ if (status) {
+ return toast({
+ render: () => (
+
+ ),
+ });
+ }
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deleteApi(bannerId)
+ .then((response) => {
+ // Handle the response here
+
+ if (response?.data?.statusCode === 200) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error deleting community:", error);
+ }
+ };
+
+ const handleUpdateStatus = async (id, status) => {
+ if (status) {
+ return toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ try {
+ // Trigger the mutation
+ await statusUpdateApi({ id })
+ .then((response) => {
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => ,
+ });
+ }
+ })
+ .catch((error) => {
+ // // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error updating community status:", error);
+ }
+ }
+ };
+
+ // ====================================================[Table Filter]================================================================
+ const filteredData = dataArray?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.Heading;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Banner image",
+ "Heading",
+ "Sub heading",
+ "Button title",
+ "Active",
+ "Created At",
+ ];
+
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ "Banner image": (
+
+ ),
+ Heading: (
+
+
+
+ {item?.Heading}
+
+
+
+ ),
+ "Sub heading": (
+
+
+
+ {item?.sub_heading}
+
+
+
+ ),
+ "Button title":
+
+ {item?.CTO_button_title},
+ Active: (
+ handleUpdateStatus(item.id, item?.status)}
+ isChecked={item.status}
+ // disabled={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ // ====================================================[Pagination Setup]================================================================
+ const paginationPrev = () => {
+ if (currentPage > 1) {
+ setCurrentPage(currentPage - 1);
+ updateDisplayRange(currentPage - 1);
+ }
+ };
+
+ const paginationNext = () => {
+ const totalPages = Math.ceil(community?.data?.data?.totalItems / pageSize);
+ if (currentPage < totalPages) {
+ setCurrentPage(currentPage + 1);
+ updateDisplayRange(currentPage + 1);
+ }
+ };
+ const updateDisplayRange = (page) => {
+ const start = (page - 1) * pageSize + 1;
+ const end = Math.min(
+ start + pageSize - 1,
+ community?.data?.data?.totalItems
+ );
+ setDisplayRange({ start, end });
+ };
+
+ return (
+
+
+ {/* ====================================================[ Top bar ]================================================================ */}
+
+
+
+ setSearchTerm(e.target.value)}
+ />
+
+
+
+ {/* */}
+
+ {/*
+
+
+ {displayRange.start} - {displayRange.end} of{" "}
+ {dataArray?.data?.data?.totalItems}
+
+
+ */}
+
+
+
+
+ {/* ====================================================[ Table ]================================================================ */}
+
+ {/* ====================================================[ Alert ]================================================================ */}
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId, actionStatus)}
+ message={"Are you sure you want to delete member?"}
+ isLoading={deleteIsLoading}
+ />
+
+ );
+};
+
+export default BannerCommunity;
diff --git a/src/Components/Banner/BannerView.jsx b/src/Components/Banner/BannerView.jsx
new file mode 100644
index 0000000..6c80bd2
--- /dev/null
+++ b/src/Components/Banner/BannerView.jsx
@@ -0,0 +1,165 @@
+import React from "react";
+import { useParams } from "react-router-dom";
+import { useGetBuildBannerByIdQuery } from "../../Services/api.service";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import Header from "../../Components/Header";
+import {
+ Box,
+ Button,
+ Divider,
+ Image,
+ StackDivider,
+ Tag,
+ Text,
+ VStack,
+} from "@chakra-ui/react";
+import BannerMainCard from "./BannerMainCard";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const BannerView = ({data, isLoading, editLink, center}) => {
+ const banner = data?.data;
+
+ return isLoading ? (
+
+ ) : (
+
+
+
+
+
+ Banners Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Display banner
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+ {/* */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Status
+
+ {data?.data?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+
+ Heading
+
+
+ {banner?.Heading}
+
+
+
+
+
+ Sub heading
+
+
+ {banner?.sub_heading}
+
+
+
+
+
+ Button title
+
+
+ {banner?.CTO_button_title}
+
+
+
+
+
+ Button link
+
+
+ {banner?.CTO_button_link}
+
+
+
+
+
+ Created At
+
+
+ {formatDate(banner?.createdAt)}
+
+
+
+
+
+ Updated At
+
+
+ {formatDate(banner?.updatedAt)}
+
+
+
+
+
+
+
+ );
+};
+
+export default BannerView;
diff --git a/src/Components/BannerStack.jsx b/src/Components/BannerStack.jsx
new file mode 100644
index 0000000..a4d1744
--- /dev/null
+++ b/src/Components/BannerStack.jsx
@@ -0,0 +1,84 @@
+import { ArrowForwardIcon } from "@chakra-ui/icons";
+import { Box, Button, HStack, Skeleton, Text } from "@chakra-ui/react";
+import React from "react";
+import { Link } from "react-router-dom";
+import CommunityBannerCard from "../Pages/Community/CommunityBannerCard";
+
+const BannerStack = ({
+ stackTitle,
+ viewAllLink,
+ bannerIsLoading,
+ bannerArray,
+ viewBannerLink,
+}) => {
+
+
+ return (
+
+
+
+ {stackTitle}
+
+
+
+ }
+ colorScheme={"purple"}
+ size="sm"
+ >
+ View all
+
+
+
+
+
+ {bannerIsLoading
+ ? Array.from({ length: 3 }).map((_, index) => (
+
+
+
+ ))
+ : bannerArray?.map(
+ ({
+ id,
+ CTO_button_title,
+ banner_image,
+ Heading,
+ createdAt,
+ sub_heading,
+ status
+ }) => (
+
+
+
+ )
+ )}
+
+
+ );
+};
+
+export default BannerStack;
diff --git a/src/Components/Buttons/Button01.jsx b/src/Components/Buttons/Button01.jsx
new file mode 100644
index 0000000..1417714
--- /dev/null
+++ b/src/Components/Buttons/Button01.jsx
@@ -0,0 +1,25 @@
+import Loader01 from "../Loaders/Loader01";
+
+const Button01 = ({ title, onClick, type, backgroundColor, hover, isLoading }) => {
+ return (
+
+ );
+};
+
+export default Button01;
diff --git a/src/Components/Buttons/Button02.jsx b/src/Components/Buttons/Button02.jsx
new file mode 100644
index 0000000..cc5d079
--- /dev/null
+++ b/src/Components/Buttons/Button02.jsx
@@ -0,0 +1,47 @@
+
+import { RiLogoutCircleLine } from "react-icons/ri";
+
+const Button02 = ({ title, onClick, type, gradientColors, height, width, open }) => {
+ const [startColor, endColor] = gradientColors;
+ return (
+
+ );
+};
+
+export default Button02;
diff --git a/src/Components/ChipSelector/ChipSelector.css b/src/Components/ChipSelector/ChipSelector.css
new file mode 100644
index 0000000..4b2247d
--- /dev/null
+++ b/src/Components/ChipSelector/ChipSelector.css
@@ -0,0 +1,60 @@
+
+label {
+ display: inline-block;
+ margin-bottom: 0.5rem;
+ font-weight: bold;
+ }
+
+ .input-container {
+ display: flex;
+ flex-wrap: wrap;
+ row-gap: 1rem;
+ align-items: center;
+ border: 1px solid rgb(212, 206, 206);
+ border-radius: 0.2rem;
+ }
+
+
+
+ .chips {
+ list-style: none;
+ display: flex;
+ }
+
+ .chip {
+ background-color: #cfe1ff;
+ display: flex;
+ align-items: center;
+ padding: 0.2rem;
+ border-radius: 0.5rem;
+ margin-right: 1rem;
+ }
+
+ .chip span {
+ color: #013380;
+ }
+
+ .chip svg {
+ font-size: 2.5rem;
+ fill: #3270d1;
+ cursor: pointer;
+ transition: fill 0.2s;
+ }
+
+ .chip svg:hover {
+ fill: #2857a3;
+ transition: all 0.2s;
+ }
+
+ input {
+ font-size: 1.6rem;
+ background: transparent;
+ border: none;
+ outline: none;
+ }
+
+ .error-message {
+ margin-top: 1rem;
+ color: red;
+ }
+
\ No newline at end of file
diff --git a/src/Components/ChipSelector/ChipSelector.jsx b/src/Components/ChipSelector/ChipSelector.jsx
new file mode 100644
index 0000000..d969d75
--- /dev/null
+++ b/src/Components/ChipSelector/ChipSelector.jsx
@@ -0,0 +1,68 @@
+import React, { useState } from "react";
+import { Box, FormHelperText, Input, Tag, TagCloseButton, TagLabel } from "@chakra-ui/react";
+import { TiWarning } from "react-icons/ti";
+
+const ChipSelector = ({chips, setChips, type}) => {
+ const [text, setText] = useState("");
+ const [validationError, setValidationError] = useState("");
+
+ function removeChip(chipToRemove) {
+ const updatedChips = chips.filter((chip, index) => index !== chipToRemove);
+ setChips(updatedChips);
+ }
+
+
+ function handlePressEnter(e) {
+ if (e.key === "Enter") e.preventDefault();
+ if (e.key !== "Enter" || !text) return;
+ if (chips.includes(text)) {
+ return setValidationError("Cannot add the same input more than once");
+ }
+ setChips((prevState) => [...prevState, text]);
+ setText("");
+ setValidationError("");
+ }
+
+ return (
+
+
+ setText(e.target.value)}
+ onKeyDown={handlePressEnter}
+ />
+ {validationError && {validationError}}
+
+
+ {type ? "Please select and press enter to add date." : "Please type and press enter to add tags."}
+
+
+
+ {chips?.map((chip, i) => (
+
+ {chip}
+ removeChip(i)} />
+
+ ))}
+
+
+
+ );
+};
+
+export default ChipSelector;
diff --git a/src/Components/CommunityBanner.jsx b/src/Components/CommunityBanner.jsx
new file mode 100644
index 0000000..f1d044e
--- /dev/null
+++ b/src/Components/CommunityBanner.jsx
@@ -0,0 +1,153 @@
+import { Box, Button, Container, Text } from "@chakra-ui/react";
+import banner from "../assets/communityBanner.webp";
+
+const BannerContent = [
+ {
+ heading1: `Welcome To The`,
+ heading2: `Rubix Community`,
+ },
+ {
+ subheading: `This is a space for enterprises, dApp developers, stakeholders
+ and blockchain advocates to aggregate resources and ideas to make a difference
+ through our green blockchain technology.`,
+ },
+ {
+ btn: `Explore our community`,
+ },
+];
+
+const CommunityBanner = () => {
+ return (
+
+
+
+
+
+ {BannerContent[0].heading1}
+ {" "}
+
+ {BannerContent[0].heading2}
+
+
+
+ {BannerContent[1].subheading}
+
+
+
+
+
+
+ );
+};
+
+export default CommunityBanner;
diff --git a/src/Components/CustomAlertDialog.jsx b/src/Components/CustomAlertDialog.jsx
new file mode 100644
index 0000000..af5a6a1
--- /dev/null
+++ b/src/Components/CustomAlertDialog.jsx
@@ -0,0 +1,46 @@
+import { AlertDialog, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogOverlay, Button, useDisclosure } from "@chakra-ui/react";
+import React, { useRef } from "react";
+
+const CustomAlertDialog = ({ isOpen, onOpen, onClose, alertHandler, isLoading, message }) => {
+ // const cancelRef = useRef();
+
+ return (
+
+
+
+
+
+
+ {message}
+
+
+
+
+
+
+
+ );
+};
+
+export default CustomAlertDialog;
diff --git a/src/Components/DataTable/DataTable.jsx b/src/Components/DataTable/DataTable.jsx
new file mode 100644
index 0000000..83a9b4e
--- /dev/null
+++ b/src/Components/DataTable/DataTable.jsx
@@ -0,0 +1,51 @@
+import React from "react";
+import { Table, TableContainer, Tbody, Td, Th, Thead, Tr, Skeleton, TableCaption, Tfoot } from "@chakra-ui/react";
+import EmptySearchList from "../EmptySearchList";
+
+const DataTable = ({ data, isLoading, tableHeadRow, emptyMessage }) => {
+ const columnWidth = data && data[0] ? `${(100 / Object.keys(data[0]).length).toFixed(2)}%` : "auto";
+ return (
+
+ {data?.length === 0 ? (
+
+ ) : (
+
+ Rubix v1.0.0
+
+
+ {tableHeadRow.map((heading, index) => (
+ |
+ {isLoading ? : heading}
+ {/* {heading} */}
+ |
+ ))}
+
+
+
+ {isLoading
+ ? Array.from({ length: 12 }).map((_, index) => (
+
+ {tableHeadRow.map((_, i) => (
+ |
+
+ |
+ ))}
+
+ ))
+ : data?.map((item, index) => (
+
+ {tableHeadRow.map((heading, i) => (
+ |
+ {item[heading]}
+ |
+ ))}
+
+ ))}
+
+
+ )}
+
+ );
+};
+
+export default DataTable;
diff --git a/src/Components/EmptySearchList.jsx b/src/Components/EmptySearchList.jsx
new file mode 100644
index 0000000..d707736
--- /dev/null
+++ b/src/Components/EmptySearchList.jsx
@@ -0,0 +1,21 @@
+import { Box, Image, Text } from "@chakra-ui/react"
+import EmptySearchListImage from "../assets/EmptySearchList.svg"
+
+const EmptySearchList = ({message}) => {
+ return (
+
+
+ {message}
+ Posts of rubix will appear here.
+
+
+ )
+}
+
+export default EmptySearchList
\ No newline at end of file
diff --git a/src/Components/Functions/DebounceFunction.jsx b/src/Components/Functions/DebounceFunction.jsx
new file mode 100644
index 0000000..2f929b5
--- /dev/null
+++ b/src/Components/Functions/DebounceFunction.jsx
@@ -0,0 +1,13 @@
+import React from "react";
+
+const DebounceFunction = (func, delay) => {
+ let timeoutId;
+ return (...args) => {
+ clearTimeout(timeoutId);
+ timeoutId = setTimeout(() => {
+ func.apply(this, args);
+ }, delay);
+ };
+};
+
+export default DebounceFunction;
diff --git a/src/Components/Functions/FileNameAlter.jsx b/src/Components/Functions/FileNameAlter.jsx
new file mode 100644
index 0000000..c65feea
--- /dev/null
+++ b/src/Components/Functions/FileNameAlter.jsx
@@ -0,0 +1,8 @@
+const extractFilename = (filePath) => {
+ // Use the split method to break the path into parts based on '/'
+ const parts = filePath.split('/');
+ // Return the last part, which is the filename
+ return parts[parts.length - 1];
+};
+
+export default extractFilename ;
diff --git a/src/Components/Functions/TimeCalculator.jsx b/src/Components/Functions/TimeCalculator.jsx
new file mode 100644
index 0000000..46bce24
--- /dev/null
+++ b/src/Components/Functions/TimeCalculator.jsx
@@ -0,0 +1,35 @@
+import { useState, useEffect } from "react";
+
+const TimeCalculator = ({ JoiningDate }) => {
+ const [elapsedTime, setElapsedTime] = useState(0);
+
+ useEffect(() => {
+ const calculateTimeElapsed = () => {
+ const startDate = new Date(JoiningDate);
+ const currentDate = new Date();
+ const difference = currentDate - startDate;
+ setElapsedTime(Math.floor(difference / 1000)); // Convert milliseconds to seconds
+ };
+
+ // Calculate time elapsed initially
+ calculateTimeElapsed();
+
+ // Update time elapsed every second
+ const intervalId = setInterval(calculateTimeElapsed, 1000);
+
+ // Clear interval on component unmount
+ return () => clearInterval(intervalId);
+ }, []);
+
+ // Convert seconds to years, months, days, hours, minutes, and remaining seconds
+ const years = Math.floor(elapsedTime / (365 * 24 * 60 * 60));
+ const months = Math.floor((elapsedTime % (365 * 24 * 60 * 60)) / (30 * 24 * 60 * 60)); // Approximating a month to 30 days
+ const days = Math.floor((elapsedTime % (30 * 24 * 60 * 60)) / (24 * 60 * 60));
+ const hours = Math.floor((elapsedTime % (24 * 60 * 60)) / (60 * 60));
+ const minutes = Math.floor((elapsedTime % (60 * 60)) / 60);
+ const seconds = elapsedTime % 60;
+
+ return `${years}Y ${months}M ${hours}H ${minutes}M ${seconds}S`;
+};
+
+export default TimeCalculator;
diff --git a/src/Components/Functions/Toaster.jsx b/src/Components/Functions/Toaster.jsx
new file mode 100644
index 0000000..1b25e43
--- /dev/null
+++ b/src/Components/Functions/Toaster.jsx
@@ -0,0 +1,11 @@
+import { useToast } from "@chakra-ui/react";
+
+export const toaster = () => {
+ const toast = useToast();
+
+ return toast({
+ title: "Loged In",
+ status: "success",
+ isClosable: true,
+ });
+}
\ No newline at end of file
diff --git a/src/Components/Functions/UTCConvertor.jsx b/src/Components/Functions/UTCConvertor.jsx
new file mode 100644
index 0000000..beab87f
--- /dev/null
+++ b/src/Components/Functions/UTCConvertor.jsx
@@ -0,0 +1,16 @@
+export const formatDate = (dateString) => {
+ const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
+
+ // Create a new Date object from the provided string
+ const date = new Date(dateString);
+
+ // Extract day, month, and year components
+ const day = date.getDate();
+ const month = months[date.getMonth()];
+ const year = date.getFullYear();
+
+ // Format the date in "DD-Mon-YYYY" format
+ const formattedDate = `${day}-${month}-${year}`;
+
+ return formattedDate;
+}
\ No newline at end of file
diff --git a/src/Components/Header.jsx b/src/Components/Header.jsx
new file mode 100644
index 0000000..507df6f
--- /dev/null
+++ b/src/Components/Header.jsx
@@ -0,0 +1,83 @@
+import { AddIcon } from "@chakra-ui/icons";
+import { Box, Button, Text } from "@chakra-ui/react";
+import React from "react";
+import { Link } from "react-router-dom";
+import { IoMdDownload } from "react-icons/io";
+import * as XLSX from "xlsx";
+import { useGetNewsLetterEmailQuery } from "../Services/api.service";
+
+const Header = ({ link, btnTitle, title }) => {
+ const { data, error, isLoading } = useGetNewsLetterEmailQuery();
+
+ const handleDownload = () => {
+ if (Array.isArray(data?.data?.rows)) {
+ const worksheet = XLSX.utils.json_to_sheet(data?.data?.rows);
+ const workbook = XLSX.utils.book_new();
+ XLSX.utils.book_append_sheet(workbook, worksheet, "Sheet1");
+ XLSX.writeFile(workbook, "newsletter_emails.xlsx");
+ } else {
+ // // console.error(
+ // "Expected data to be an array but received:",
+ // data?.data?.rows
+ // );
+ }
+ };
+ return (
+
+ {/* Community */}
+
+
+ {title}
+
+
+ {/*
+ {title}
+ */}
+
+ {btnTitle ? btnTitle != "Export email" ? (
+
+ }
+ colorScheme={"forestGreen"}
+ size="sm"
+ rounded={"lg"}
+ >
+ {btnTitle}
+
+
+ ) : (
+ }
+ backgroundColor={"green.900"}
+ _hover={{
+ backgroundColor: "green.800",
+ }}
+ color={"whitesmoke"}
+ size="sm"
+ rounded={"sm"}
+ onClick={handleDownload}
+ >
+ {btnTitle}
+
+ ):""}
+
+ );
+};
+
+export default Header;
diff --git a/src/Components/HeaderMain.jsx b/src/Components/HeaderMain.jsx
new file mode 100644
index 0000000..3821060
--- /dev/null
+++ b/src/Components/HeaderMain.jsx
@@ -0,0 +1,110 @@
+import { AddIcon } from "@chakra-ui/icons";
+import {
+ Avatar,
+ Box,
+ Button,
+ Popover,
+ PopoverArrow,
+ PopoverBody,
+ PopoverContent,
+ PopoverFooter,
+ PopoverTrigger,
+ Portal,
+ Text,
+} from "@chakra-ui/react";
+import React from "react";
+import { Link } from "react-router-dom";
+import { IoMdDownload } from "react-icons/io";
+import * as XLSX from "xlsx";
+import { useGetNewsLetterEmailQuery } from "../Services/api.service";
+
+const HeaderMain = ({ link, btnTitle, title, icon, logOutHandler }) => {
+ const { data, error, isLoading } = useGetNewsLetterEmailQuery();
+
+ const handleDownload = () => {
+ if (Array.isArray(data?.data?.rows)) {
+ const worksheet = XLSX.utils.json_to_sheet(data?.data?.rows);
+ const workbook = XLSX.utils.book_new();
+ XLSX.utils.book_append_sheet(workbook, worksheet, "Sheet1");
+ XLSX.writeFile(workbook, "newsletter_emails.xlsx");
+ } else {
+ // // console.error(
+ // "Expected data to be an array but received:",
+ // data?.data?.rows
+ // );
+ }
+ };
+ return (
+
+ {/* Community */}
+
+
+ {/* */}
+ {title}
+
+
+
+
+
+
+
+
+ Profile
+
+
+
+ Help & Support
+
+
+
+ Log Out
+
+
+
+
+
+
+
+
+ Hello, developer admin
+
+
+ siddhesh@rubix.com
+
+
+
+
+
+
+
+ );
+};
+
+export default HeaderMain;
diff --git a/src/Components/ImageDropBox.jsx b/src/Components/ImageDropBox.jsx
new file mode 100644
index 0000000..d68ac5a
--- /dev/null
+++ b/src/Components/ImageDropBox.jsx
@@ -0,0 +1,77 @@
+import {
+ AspectRatio,
+ Box,
+ Container,
+ Heading,
+ Input,
+ Stack,
+ Text,
+} from "@chakra-ui/react";
+import React from "react";
+
+import { motion, useAnimation } from "framer-motion";
+
+const ImageDropBox = () => {
+ return (
+
+
+
+
+
+
+ Drop images here
+
+ or click to upload
+
+
+
+
+
+
+ );
+};
+
+export default ImageDropBox;
diff --git a/src/Components/Inputs/Input01.jsx b/src/Components/Inputs/Input01.jsx
new file mode 100644
index 0000000..61d7766
--- /dev/null
+++ b/src/Components/Inputs/Input01.jsx
@@ -0,0 +1,44 @@
+import React, { useState } from "react";
+
+const input01Style = {
+ width: "100%",
+ border: "1px solid #ADB3BD",
+ outline: "none",
+ height: 50,
+ fontSize: "16px",
+};
+
+const focusedInputStyle = {
+ border: "1px solid #38187C", // Change border color for focused state
+};
+
+const Input01 = ({ type, placeholder, onChange, name, register }) => {
+ const [isFocused, setIsFocused] = useState(false);
+
+ const handleFocus = () => {
+ setIsFocused(true);
+ };
+
+ const handleBlur = () => {
+ setIsFocused(false);
+ };
+
+ return (
+
+ );
+};
+
+export default Input01;
diff --git a/src/Components/Loaders/FullscreenLoaders.jsx b/src/Components/Loaders/FullscreenLoaders.jsx
new file mode 100644
index 0000000..3d6dfd6
--- /dev/null
+++ b/src/Components/Loaders/FullscreenLoaders.jsx
@@ -0,0 +1,18 @@
+import { Box, Spinner } from "@chakra-ui/react";
+import React from "react";
+
+const FullscreenLoaders = () => {
+ return (
+
+
+
+ );
+};
+
+export default FullscreenLoaders;
diff --git a/src/Components/Loaders/Loader01.jsx b/src/Components/Loaders/Loader01.jsx
new file mode 100644
index 0000000..89f04bc
--- /dev/null
+++ b/src/Components/Loaders/Loader01.jsx
@@ -0,0 +1,14 @@
+import React from "react";
+
+const Loader01 = () => {
+ return (
+
+ );
+};
+
+export default Loader01;
diff --git a/src/Components/TabularView/TabularView.jsx b/src/Components/TabularView/TabularView.jsx
new file mode 100644
index 0000000..de52be7
--- /dev/null
+++ b/src/Components/TabularView/TabularView.jsx
@@ -0,0 +1,136 @@
+import { Box, HStack, Input, Select, Text } from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import { useGetVideosQuery } from "../../Services/api.service";
+import { useState } from "react";
+import Header from "../../Components/Header";
+import { ChevronLeftIcon, ChevronRightIcon } from "@chakra-ui/icons";
+import DataTable from "../../Components/DataTable/DataTable";
+
+const TabularView = ({
+ apiData,
+ tableHeadRow,
+ title,
+ btnTitle,
+ link,
+ extractedArray,
+ searchTerm,
+ setSearchTerm,
+ statusFilter,
+ setStatusFilter,
+ currentPage,
+ setCurrentPage,
+ pageSize,
+ setPageSize,
+ totalPages,
+ noDataTitle,
+ totalItems,
+}) => {
+ const [displayRange, setDisplayRange] = useState({
+ start: TABLE_PAGINATION?.page,
+ end: pageSize,
+ });
+ // ====================================================[Pagination Setup]================================================================
+ const paginationPrev = () => {
+ if (currentPage > 1) {
+ setCurrentPage(currentPage - 1);
+ updateDisplayRange(currentPage - 1);
+ }
+ };
+
+ const paginationNext = () => {
+ if (currentPage < totalPages) {
+ setCurrentPage(currentPage + 1);
+ updateDisplayRange(currentPage + 1);
+ }
+ };
+ const updateDisplayRange = (page) => {
+ const start = (page - 1) * pageSize + 1;
+ const end = Math.min(start + pageSize - 1, totalItems);
+ setDisplayRange({ start, end });
+ };
+
+ return (
+
+
+
+
+
+ setSearchTerm(e.target.value)}
+ />
+
+
+
+
+
+
+
+
+ {displayRange.start} - {displayRange.end} of {totalItems}
+
+
+
+
+
+
+
+ {/* ====================================================[ Table ]================================================================ */}
+
+
+ );
+};
+
+export default TabularView;
diff --git a/src/Components/ToastBox.jsx b/src/Components/ToastBox.jsx
new file mode 100644
index 0000000..1c5a65f
--- /dev/null
+++ b/src/Components/ToastBox.jsx
@@ -0,0 +1,21 @@
+import { CheckCircleIcon, WarningIcon } from "@chakra-ui/icons";
+import { Box, Text } from "@chakra-ui/react";
+import React from "react";
+
+const ToastBox = ({ message, status }) => {
+ return (
+
+
+ {status === "error" || status === "warn" ? : }
+ {message}
+
+ );
+};
+
+export default ToastBox;
diff --git a/src/Components/WebButton.jsx b/src/Components/WebButton.jsx
new file mode 100644
index 0000000..6d425fc
--- /dev/null
+++ b/src/Components/WebButton.jsx
@@ -0,0 +1,68 @@
+
+import { Button } from '@chakra-ui/react'
+import React from 'react'
+
+const WebButton = ({title}) => {
+ return (
+ )
+}
+
+export default WebButton
\ No newline at end of file
diff --git a/src/Constants/Paginations.js b/src/Constants/Paginations.js
new file mode 100644
index 0000000..1accc24
--- /dev/null
+++ b/src/Constants/Paginations.js
@@ -0,0 +1,2 @@
+export const TABLE_PAGINATION = { page: 1, size: 10 }
+export const IMAGE_URI = import.meta.env.VITE_API_IMAGE_URL
\ No newline at end of file
diff --git a/src/Contexts/GlobalStateContext.jsx b/src/Contexts/GlobalStateContext.jsx
new file mode 100644
index 0000000..48a2ae0
--- /dev/null
+++ b/src/Contexts/GlobalStateContext.jsx
@@ -0,0 +1,6 @@
+// GlobalStateContext.js
+import { createContext } from 'react';
+
+const GlobalStateContext = createContext();
+
+export default GlobalStateContext;
diff --git a/src/Contexts/GlobalStateProvider.jsx b/src/Contexts/GlobalStateProvider.jsx
new file mode 100644
index 0000000..40c7366
--- /dev/null
+++ b/src/Contexts/GlobalStateProvider.jsx
@@ -0,0 +1,30 @@
+// GlobalStateContext.js
+import React, { useState } from "react";
+import GlobalStateContext from "./GlobalStateContext";
+
+function generateUID() {
+ // Generates a random 8-character alphanumeric string
+ return Math.random().toString(36).substring(2, 10);
+}
+
+const GlobalStateProvider = ({ children }) => {
+ const [isAuthenticate, setIsAuthenticate] = useState(false);
+ const [memberIfo, setMemberInfo] = useState();
+ const [communityMembers, setCommityMembers] = useState();
+
+ return (
+
+ {children}
+
+ );
+};
+export default GlobalStateProvider;
diff --git a/src/Images/dark-bg.png b/src/Images/dark-bg.png
new file mode 100644
index 0000000..690e6b5
Binary files /dev/null and b/src/Images/dark-bg.png differ
diff --git a/src/Images/light-bg.png b/src/Images/light-bg.png
new file mode 100644
index 0000000..3b23568
Binary files /dev/null and b/src/Images/light-bg.png differ
diff --git a/src/Images/logo.jpg b/src/Images/logo.jpg
new file mode 100644
index 0000000..38dac87
Binary files /dev/null and b/src/Images/logo.jpg differ
diff --git a/src/Images/logoDark.png b/src/Images/logoDark.png
new file mode 100644
index 0000000..cf272a3
Binary files /dev/null and b/src/Images/logoDark.png differ
diff --git a/src/Images/logoDarkMini.png b/src/Images/logoDarkMini.png
new file mode 100644
index 0000000..28e09e7
Binary files /dev/null and b/src/Images/logoDarkMini.png differ
diff --git a/src/Images/logoLight.png b/src/Images/logoLight.png
new file mode 100644
index 0000000..9f0ea48
Binary files /dev/null and b/src/Images/logoLight.png differ
diff --git a/src/Images/miniLogo.jpg b/src/Images/miniLogo.jpg
new file mode 100644
index 0000000..4c2d702
Binary files /dev/null and b/src/Images/miniLogo.jpg differ
diff --git a/src/Images/reactLogo.png b/src/Images/reactLogo.png
new file mode 100644
index 0000000..80d81cf
Binary files /dev/null and b/src/Images/reactLogo.png differ
diff --git a/src/Images/welcomeBanner.gif b/src/Images/welcomeBanner.gif
new file mode 100644
index 0000000..911d066
Binary files /dev/null and b/src/Images/welcomeBanner.gif differ
diff --git a/src/Layout/DefaultLayout.jsx b/src/Layout/DefaultLayout.jsx
new file mode 100644
index 0000000..fa15513
--- /dev/null
+++ b/src/Layout/DefaultLayout.jsx
@@ -0,0 +1,342 @@
+import React, { useContext, useState } from "react";
+import logo from "../assets/logo2.png";
+import logoMini from "../assets/logo-min.png";
+import { useDispatch } from "react-redux";
+import { loginUser } from "../Redux/Slice/auth";
+import Button02 from "../Components/Buttons/Button02";
+import { TbArrowBadgeLeftFilled } from "react-icons/tb";
+import { TbArrowBadgeRightFilled } from "react-icons/tb";
+import { ArrowBackIcon, ArrowLeftIcon, ArrowRightIcon } from "@chakra-ui/icons";
+import {
+ Link,
+ NavLink,
+ Route,
+ Routes,
+ useLocation,
+ useNavigate,
+} from "react-router-dom";
+import { RouteLink } from "../Routes/Routes";
+import NotFound from "../Pages/NotFound";
+import { nav } from "../Routes/Nav";
+import {
+ Avatar,
+ Box,
+ Button,
+ PopoverArrow,
+ PopoverBody,
+ PopoverCloseButton,
+ PopoverContent,
+ PopoverFooter,
+ PopoverHeader,
+ PopoverTrigger,
+ Portal,
+ Text,
+ WrapItem,
+ Popover,
+ Tag,
+} from "@chakra-ui/react";
+import GlobalStateContext from "../Contexts/GlobalStateContext";
+import Cookies from "js-cookie"; // Import the Cookies library
+import Header from "../Components/Header";
+import HeaderMain from "../Components/HeaderMain";
+
+const DashboardLayout = () => {
+ const navigate = useNavigate();
+ const dispach = useDispatch();
+ const location = useLocation();
+ const path = location.pathname;
+ const [isDrawerOpen, setIsDrawerOpen] = useState(false);
+ const [openDrawerClick, setOpenDrawerClick] = useState(true);
+ const { setIsAuthenticate } = useContext(GlobalStateContext);
+
+ const openDrawerOnClick = () => {
+ setOpenDrawerClick(!openDrawerClick);
+ };
+
+ const logOutHandler = () => {
+ // dispach(loginUser(false));
+ setIsAuthenticate(false);
+ Cookies.remove("isAuthenticated");
+ navigate("/login");
+ };
+
+ // // Function to get the title based on the route
+ const getTitle = () => {
+ switch (path) {
+ case "/":
+ return "👋🏻 Hi, Admin";
+ case "/investment":
+ return "Investment";
+ case "/blogs-articles":
+ return "Blogs and Articles";
+ case "/videos":
+ return "Videos";
+ case "/news":
+ return "News";
+ case "/events":
+ return "Events";
+ case "/whitepaper":
+ return "Whitepaper";
+ case "/community/":
+ return "Community";
+ case "/community":
+ return "Community";
+ case "/community/view/":
+ return "Community";
+ case "/community/add-comunity":
+ return (
+
+
+
+
+ Community
+
+ );
+ default:
+ if (path.startsWith("/community/view/")) {
+ return (
+
+
+
+
+ Community
+
+ );
+ } else if (path.startsWith("/community/edit/")) {
+ return (
+
+
+
+
+ Community
+
+ );
+ }
+ return "Tanami";
+ }
+ };
+
+
+
+
+ return (
+
+
+
+
+
+
+ {/* */}
+
+
+
+
+
+
+ );
+};
+
+export default DashboardLayout;
+
+const AppContent = () => {
+ return (
+
+ {RouteLink.map(({ path, Component }, index) => (
+ } />
+ ))}
+ } />
+
+ );
+};
diff --git a/src/Layout/animations.jsx b/src/Layout/animations.jsx
new file mode 100644
index 0000000..7ac044d
--- /dev/null
+++ b/src/Layout/animations.jsx
@@ -0,0 +1,23 @@
+import { motion } from "framer-motion";
+
+export const OPACITY_ON_LOAD = {
+ as: motion.div,
+ initial: { opacity: 0 },
+ animate: { opacity: 1 }
+}
+
+export const SLIDE_IN_BOTTOM = {
+ as: motion.div,
+ initial: { opacity: 0, y: 50 },
+ animate: { opacity: 1, y: 0 },
+ transition: { duration: 0.5, ease: "easeInOut" }
+ };
+
+
+ export const FADE_IN_SCALE_UP = {
+ as: motion.div,
+ initial: { opacity: 0, scale: 0.9 },
+ animate: { opacity: 1, scale: 1 },
+ transition: { duration: 0.5, ease: "easeInOut" }
+ };
+
\ No newline at end of file
diff --git a/src/Pages/Banners/Banner.jsx b/src/Pages/Banners/Banner.jsx
new file mode 100644
index 0000000..8a25545
--- /dev/null
+++ b/src/Pages/Banners/Banner.jsx
@@ -0,0 +1,81 @@
+import { Box, Divider } from "@chakra-ui/react";
+import React from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import {
+ useGetBuildBannerQuery,
+ useGetCommunityBannerQuery,
+ useGetEcoBannerQuery,
+ useGetHomeBannerQuery,
+ useGetLearnBannerQuery,
+ useGetNewsBannerQuery,
+} from "../../Services/api.service";
+import Header from "../../Components/Header";
+import BannerStack from "../../Components/BannerStack";
+
+const Banner = () => {
+ const communityBanner = useGetCommunityBannerQuery();
+ const learnBanner = useGetLearnBannerQuery();
+ const buildBanner = useGetBuildBannerQuery();
+ const newsBanner = useGetNewsBannerQuery();
+ const homeBanner = useGetHomeBannerQuery();
+ const ecoBanner = useGetEcoBannerQuery();
+
+ return (
+
+
+
+
+
+
+
+ item?.status === true)}
+ viewBannerLink={"/banner/banner-community/view"}
+ />
+
+
+
+
+ {/*
+ */}
+
+
+
+ );
+};
+
+export default Banner;
diff --git a/src/Pages/Banners/BannerBuild/BannerBuild.jsx b/src/Pages/Banners/BannerBuild/BannerBuild.jsx
new file mode 100644
index 0000000..0cd0279
--- /dev/null
+++ b/src/Pages/Banners/BannerBuild/BannerBuild.jsx
@@ -0,0 +1,27 @@
+import React from "react";
+import {
+ useDeleteBuildBannerMutation,
+ useGetBuildBannerQuery,
+ useUpdateBuildBannerStatusMutation,
+} from "../../../Services/api.service";
+import BannerTable from "../../../Components/Banner/BannerTable";
+
+const BannerBuild = () => {
+ const buildBanner = useGetBuildBannerQuery();
+ const [deleteBuildBanner] = useDeleteBuildBannerMutation();
+ const [updateLearnBuildStatus] = useUpdateBuildBannerStatusMutation();
+
+ return (
+
+ );
+};
+
+export default BannerBuild;
diff --git a/src/Pages/Banners/BannerBuild/BannerBuildAdd.jsx b/src/Pages/Banners/BannerBuild/BannerBuildAdd.jsx
new file mode 100644
index 0000000..bacfc53
--- /dev/null
+++ b/src/Pages/Banners/BannerBuild/BannerBuildAdd.jsx
@@ -0,0 +1,18 @@
+import AddBanner from "../../../Components/Banner/AddBanner";
+import {
+ useCreateBuildBannerMutation,
+ useCreateLearnBannerMutation,
+} from "../../../Services/api.service";
+
+const BannerBuildAdd = () => {
+ const [createBuildBannerData] = useCreateBuildBannerMutation();
+ return (
+
+ );
+};
+
+export default BannerBuildAdd;
diff --git a/src/Pages/Banners/BannerBuild/BannerBuildEdit.jsx b/src/Pages/Banners/BannerBuild/BannerBuildEdit.jsx
new file mode 100644
index 0000000..c6893b7
--- /dev/null
+++ b/src/Pages/Banners/BannerBuild/BannerBuildEdit.jsx
@@ -0,0 +1,15 @@
+import React from 'react'
+import BannerEdit from '../../../Components/Banner/BannerEdit'
+import { useParams } from 'react-router-dom';
+import { useGetBuildBannerByIdQuery, useUpdateBuildBannerMutation } from '../../../Services/api.service';
+
+const BannerBuildEdit = () => {
+ const { id } = useParams();
+ const { data, error, isLoading, refetch } = useGetBuildBannerByIdQuery(id);
+ const [updateBuildBanner] = useUpdateBuildBannerMutation();
+
+ return (
+ )
+}
+
+export default BannerBuildEdit
\ No newline at end of file
diff --git a/src/Pages/Banners/BannerBuild/BannerBuildView.jsx b/src/Pages/Banners/BannerBuild/BannerBuildView.jsx
new file mode 100644
index 0000000..722068a
--- /dev/null
+++ b/src/Pages/Banners/BannerBuild/BannerBuildView.jsx
@@ -0,0 +1,15 @@
+import React from "react";
+import { useParams } from "react-router-dom";
+import { useGetBuildBannerByIdQuery } from "../../../Services/api.service";
+import BannerView from "../../../Components/Banner/BannerView";
+
+const BannerBuildView = () => {
+ const { id } = useParams();
+ const { data, error, isLoading } = useGetBuildBannerByIdQuery(id);
+
+ return (
+
+ );
+};
+
+export default BannerBuildView;
diff --git a/src/Pages/Banners/BannerCommunity/BannerCommunity.jsx b/src/Pages/Banners/BannerCommunity/BannerCommunity.jsx
new file mode 100644
index 0000000..3eb0dc2
--- /dev/null
+++ b/src/Pages/Banners/BannerCommunity/BannerCommunity.jsx
@@ -0,0 +1,30 @@
+import React from "react";
+import {
+ useDeleteCommunityBannerMutation,
+ useGetCommunityBannerQuery,
+ useUpdateCommunityBannerStatusMutation,
+} from "../../../Services/api.service";
+import BannerTable from "../../../Components/Banner/BannerTable";
+
+const BannerCommunity = () => {
+ const communityBanner = useGetCommunityBannerQuery();
+ const [deleteCommunityBanner] = useDeleteCommunityBannerMutation();
+ const [updateCommunityBannerStatus] =
+ useUpdateCommunityBannerStatusMutation();
+
+
+
+ return (
+
+ );
+};
+
+export default BannerCommunity;
diff --git a/src/Pages/Banners/BannerCommunity/BannerCommunityAdd.jsx b/src/Pages/Banners/BannerCommunity/BannerCommunityAdd.jsx
new file mode 100644
index 0000000..852884a
--- /dev/null
+++ b/src/Pages/Banners/BannerCommunity/BannerCommunityAdd.jsx
@@ -0,0 +1,16 @@
+import { useCreateCommunityBannerMutation } from "../../../Services/api.service";
+import AddBanner from "../../../Components/Banner/AddBanner";
+
+const BannerCommunityAdd = () => {
+ const [createCommunityBannerData] = useCreateCommunityBannerMutation();
+
+ return (
+
+ );
+};
+
+export default BannerCommunityAdd;
diff --git a/src/Pages/Banners/BannerCommunity/BannerCommunityEdit.jsx b/src/Pages/Banners/BannerCommunity/BannerCommunityEdit.jsx
new file mode 100644
index 0000000..573e257
--- /dev/null
+++ b/src/Pages/Banners/BannerCommunity/BannerCommunityEdit.jsx
@@ -0,0 +1,17 @@
+import { useParams } from "react-router-dom";
+import {
+ useGetCommunityBannerByIdQuery,
+ useUpdateCommunityBannerMutation,
+} from "../../../Services/api.service";
+import BannerEdit from "../../../Components/Banner/BannerEdit";
+
+const BannerComunityEditPage = () => {
+ const { id } = useParams();
+ const { data, error, isLoading, refetch } = useGetCommunityBannerByIdQuery(id);
+ const [updateCommunityBanner] = useUpdateCommunityBannerMutation();
+
+
+ return
+};
+
+export default BannerComunityEditPage;
diff --git a/src/Pages/Banners/BannerCommunity/BannerCommunityView.jsx b/src/Pages/Banners/BannerCommunity/BannerCommunityView.jsx
new file mode 100644
index 0000000..67c30b9
--- /dev/null
+++ b/src/Pages/Banners/BannerCommunity/BannerCommunityView.jsx
@@ -0,0 +1,27 @@
+import React, { useEffect } from "react";
+import { useParams } from "react-router-dom";
+import { useGetCommunityBannerByIdQuery } from "../../../Services/api.service";
+import {
+ Box,
+ Button,
+ Divider,
+ Image,
+ StackDivider,
+ Tag,
+ VStack,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../../Layout/animations";
+import FullscreenLoaders from "../../../Components/Loaders/FullscreenLoaders";
+import { formatDate } from "../../../Components/Functions/UTCConvertor";
+import Header from "../../../Components/Header";
+import BannerView from "../../../Components/Banner/BannerView";
+
+const BannerComunityViewPage = () => {
+ const { id } = useParams();
+ const { data, error, isLoading } = useGetCommunityBannerByIdQuery(id);
+
+ return ;
+
+};
+
+export default BannerComunityViewPage;
diff --git a/src/Pages/Banners/BannerLearn/BannerLearn.jsx b/src/Pages/Banners/BannerLearn/BannerLearn.jsx
new file mode 100644
index 0000000..5dfd3e7
--- /dev/null
+++ b/src/Pages/Banners/BannerLearn/BannerLearn.jsx
@@ -0,0 +1,27 @@
+import React from "react";
+import {
+ useDeleteLearnBannerMutation,
+ useGetLearnBannerQuery,
+ useUpdateLearnBannerStatusMutation,
+} from "../../../Services/api.service";
+import BannerTable from "../../../Components/Banner/BannerTable";
+
+const BannerLearn = () => {
+ const learnBanner = useGetLearnBannerQuery();
+ const [deleteLearnBanner] = useDeleteLearnBannerMutation();
+ const [updateLearnBannerStatus] = useUpdateLearnBannerStatusMutation();
+
+ return (
+
+ );
+};
+
+export default BannerLearn;
diff --git a/src/Pages/Banners/BannerLearn/BannerLearnAdd.jsx b/src/Pages/Banners/BannerLearn/BannerLearnAdd.jsx
new file mode 100644
index 0000000..3a22ff0
--- /dev/null
+++ b/src/Pages/Banners/BannerLearn/BannerLearnAdd.jsx
@@ -0,0 +1,15 @@
+import AddBanner from "../../../Components/Banner/AddBanner";
+import { useCreateLearnBannerMutation } from "../../../Services/api.service";
+
+const BannerLearnAdd = () => {
+ const [createLearnBannerData] = useCreateLearnBannerMutation();
+ return (
+
+ );
+};
+
+export default BannerLearnAdd;
diff --git a/src/Pages/Banners/BannerLearn/BannerLearnEdit.jsx b/src/Pages/Banners/BannerLearn/BannerLearnEdit.jsx
new file mode 100644
index 0000000..2167acc
--- /dev/null
+++ b/src/Pages/Banners/BannerLearn/BannerLearnEdit.jsx
@@ -0,0 +1,15 @@
+import React from 'react'
+import BannerEdit from '../../../Components/Banner/BannerEdit'
+import { useGetCommunityBannerByIdQuery, useGetLearnBannerByIdQuery, useUpdateCommunityBannerMutation, useUpdateLearnBannerMutation } from '../../../Services/api.service';
+import { useParams } from 'react-router-dom';
+
+const BannerLearnEdit = () => {
+ const { id } = useParams();
+ const { data, error, isLoading, refetch} = useGetLearnBannerByIdQuery(id);
+ const [updateLearnBanner] = useUpdateLearnBannerMutation();
+ return (
+
+ )
+}
+
+export default BannerLearnEdit
\ No newline at end of file
diff --git a/src/Pages/Banners/BannerLearn/BannerLearnView.jsx b/src/Pages/Banners/BannerLearn/BannerLearnView.jsx
new file mode 100644
index 0000000..56a3acf
--- /dev/null
+++ b/src/Pages/Banners/BannerLearn/BannerLearnView.jsx
@@ -0,0 +1,14 @@
+import React from "react";
+import { useParams } from "react-router-dom";
+import { useGetLearnBannerByIdQuery } from "../../../Services/api.service";
+import BannerView from "../../../Components/Banner/BannerView";
+
+const BannerLearnView = () => {
+ const { id } = useParams();
+ const { data, error, isLoading } = useGetLearnBannerByIdQuery(id);
+
+
+ return ;
+};
+
+export default BannerLearnView;
diff --git a/src/Pages/Banners/BannerNews/BannerNews.jsx b/src/Pages/Banners/BannerNews/BannerNews.jsx
new file mode 100644
index 0000000..a8a8ea9
--- /dev/null
+++ b/src/Pages/Banners/BannerNews/BannerNews.jsx
@@ -0,0 +1,33 @@
+import React from "react";
+import {
+ useDeleteBuildBannerMutation,
+ useDeleteLearnBannerMutation,
+ useDeleteNewsBannerMutation,
+ useGetBuildBannerQuery,
+ useGetLearnBannerQuery,
+ useGetNewsBannerQuery,
+ useUpdateBuildBannerStatusMutation,
+ useUpdateLearnBannerStatusMutation,
+ useUpdateNewsBannerStatusMutation,
+} from "../../../Services/api.service";
+import BannerTable from "../../../Components/Banner/BannerTable";
+
+const BannerNews = () => {
+ const newsBanner = useGetNewsBannerQuery();
+ const [deleteNewsBanner] = useDeleteNewsBannerMutation();
+ const [updateNewsBuildStatus] = useUpdateNewsBannerStatusMutation();
+ const { data, error, isLoading } = useUpdateNewsBannerStatusMutation();
+ return (
+
+ );
+};
+
+export default BannerNews;
diff --git a/src/Pages/Banners/BannerNews/BannerNewsAdd.jsx b/src/Pages/Banners/BannerNews/BannerNewsAdd.jsx
new file mode 100644
index 0000000..7f04a9e
--- /dev/null
+++ b/src/Pages/Banners/BannerNews/BannerNewsAdd.jsx
@@ -0,0 +1,15 @@
+import AddBanner from "../../../Components/Banner/AddBanner";
+import { useCreateLearnBannerMutation, useCreateNewsBannerMutation } from "../../../Services/api.service";
+
+const BannerNewsAdd = () => {
+ const [createNewsBannerData] = useCreateNewsBannerMutation();
+ return (
+
+ );
+};
+
+export default BannerNewsAdd;
diff --git a/src/Pages/Banners/BannerNews/BannerNewsEdit.jsx b/src/Pages/Banners/BannerNews/BannerNewsEdit.jsx
new file mode 100644
index 0000000..67262c2
--- /dev/null
+++ b/src/Pages/Banners/BannerNews/BannerNewsEdit.jsx
@@ -0,0 +1,15 @@
+import React from 'react'
+import BannerEdit from '../../../Components/Banner/BannerEdit'
+import { useParams } from 'react-router-dom';
+import { useGetNewsBannerByIdQuery, useUpdateNewsBannerMutation } from '../../../Services/api.service';
+
+const BannerNewsEdit = () => {
+ const { id } = useParams();
+ const { data, error, isLoading } = useGetNewsBannerByIdQuery(id);
+ const [updateNewsBanner] = useUpdateNewsBannerMutation();
+ return (
+
+ )
+}
+
+export default BannerNewsEdit
\ No newline at end of file
diff --git a/src/Pages/Banners/BannerNews/BannerNewsView.jsx b/src/Pages/Banners/BannerNews/BannerNewsView.jsx
new file mode 100644
index 0000000..942f49b
--- /dev/null
+++ b/src/Pages/Banners/BannerNews/BannerNewsView.jsx
@@ -0,0 +1,14 @@
+import React from "react";
+import { useParams } from "react-router-dom";
+import { useGetLearnBannerByIdQuery, useGetNewsBannerByIdQuery } from "../../../Services/api.service";
+import BannerView from "../../../Components/Banner/BannerView";
+
+const BannerNewsView = () => {
+ const { id } = useParams();
+ const { data, error, isLoading } = useGetNewsBannerByIdQuery(id);
+
+
+ return ;
+};
+
+export default BannerNewsView;
diff --git a/src/Pages/Banners/EcoBanner/EcoBanner.jsx b/src/Pages/Banners/EcoBanner/EcoBanner.jsx
new file mode 100644
index 0000000..60ad09b
--- /dev/null
+++ b/src/Pages/Banners/EcoBanner/EcoBanner.jsx
@@ -0,0 +1,36 @@
+import React from "react";
+import {
+ useDeleteBuildBannerMutation,
+ useDeleteEcoBannerMutation,
+ useDeleteLearnBannerMutation,
+ useDeleteNewsBannerMutation,
+ useGetBuildBannerQuery,
+ useGetEcoBannerQuery,
+ useGetLearnBannerQuery,
+ useGetNewsBannerQuery,
+ useUpdateBuildBannerStatusMutation,
+ useUpdateEcoBannerStatusMutation,
+ useUpdateLearnBannerStatusMutation,
+ useUpdateNewsBannerStatusMutation,
+} from "../../../Services/api.service";
+import BannerTable from "../../../Components/Banner/BannerTable";
+
+const EcoBanner = () => {
+ const ecoBanner = useGetEcoBannerQuery();
+ const [deleteEcoBanner] = useDeleteEcoBannerMutation();
+ const [updateEcoBuildStatus] = useUpdateEcoBannerStatusMutation();
+ const { data, error, isLoading } = useUpdateNewsBannerStatusMutation();
+ return (
+
+ );
+};
+
+export default EcoBanner;
diff --git a/src/Pages/Banners/EcoBanner/EcoBannerAdd.jsx b/src/Pages/Banners/EcoBanner/EcoBannerAdd.jsx
new file mode 100644
index 0000000..eedc319
--- /dev/null
+++ b/src/Pages/Banners/EcoBanner/EcoBannerAdd.jsx
@@ -0,0 +1,15 @@
+import AddBanner from "../../../Components/Banner/AddBanner";
+import { useCreateEcoBannerMutation, useCreateLearnBannerMutation, useCreateNewsBannerMutation } from "../../../Services/api.service";
+
+const EcoBannerAdd = () => {
+ const [createEcoBannerData] = useCreateEcoBannerMutation();
+ return (
+
+ );
+};
+
+export default EcoBannerAdd;
diff --git a/src/Pages/Banners/EcoBanner/EcoBannerEdit.jsx b/src/Pages/Banners/EcoBanner/EcoBannerEdit.jsx
new file mode 100644
index 0000000..b31cd57
--- /dev/null
+++ b/src/Pages/Banners/EcoBanner/EcoBannerEdit.jsx
@@ -0,0 +1,15 @@
+import React from 'react'
+import BannerEdit from '../../../Components/Banner/BannerEdit'
+import { useParams } from 'react-router-dom';
+import { useGetEcoBannerByIdQuery, useGetNewsBannerByIdQuery, useUpdateEcoBannerMutation, useUpdateNewsBannerMutation } from '../../../Services/api.service';
+
+const EcoBannerEdit = () => {
+ const { id } = useParams();
+ const { data, error, isLoading, refetch } = useGetEcoBannerByIdQuery(id);
+ const [updateNewsBanner] = useUpdateEcoBannerMutation();
+ return (
+
+ )
+}
+
+export default EcoBannerEdit
\ No newline at end of file
diff --git a/src/Pages/Banners/EcoBanner/EcoBannerView.jsx b/src/Pages/Banners/EcoBanner/EcoBannerView.jsx
new file mode 100644
index 0000000..23a5a35
--- /dev/null
+++ b/src/Pages/Banners/EcoBanner/EcoBannerView.jsx
@@ -0,0 +1,14 @@
+import React from "react";
+import { useParams } from "react-router-dom";
+import { useGetEcoBannerByIdQuery, useGetLearnBannerByIdQuery, useGetNewsBannerByIdQuery } from "../../../Services/api.service";
+import BannerView from "../../../Components/Banner/BannerView";
+
+const EcoBannerView = () => {
+ const { id } = useParams();
+ const { data, error, isLoading } = useGetEcoBannerByIdQuery(id);
+
+
+ return ;
+};
+
+export default EcoBannerView;
diff --git a/src/Pages/Banners/HomeBanner/HomeBanner.jsx b/src/Pages/Banners/HomeBanner/HomeBanner.jsx
new file mode 100644
index 0000000..83324fb
--- /dev/null
+++ b/src/Pages/Banners/HomeBanner/HomeBanner.jsx
@@ -0,0 +1,39 @@
+import React from "react";
+import {
+ useDeleteBuildBannerMutation,
+ useDeleteHomeBannerMutation,
+ useDeleteLearnBannerMutation,
+ useDeleteNewsBannerMutation,
+ useGetBuildBannerQuery,
+ useGetHomeBannerQuery,
+ useGetLearnBannerQuery,
+ useGetNewsBannerQuery,
+ useUpdateBuildBannerStatusMutation,
+ useUpdateHomeBannerStatusMutation,
+ useUpdateLearnBannerStatusMutation,
+ useUpdateNewsBannerStatusMutation,
+} from "../../../Services/api.service";
+import BannerTable from "../../../Components/Banner/BannerTable";
+
+const HomeBanner = () => {
+ const homeBanner = useGetHomeBannerQuery();
+
+
+ const [deleteHomeBanner] = useDeleteHomeBannerMutation();
+
+ const [updateHomeBuildStatus] = useUpdateHomeBannerStatusMutation();
+ const { data, error, isLoading } = useUpdateNewsBannerStatusMutation();
+ return (
+
+ );
+};
+
+export default HomeBanner;
diff --git a/src/Pages/Banners/HomeBanner/HomeBannerAdd.jsx b/src/Pages/Banners/HomeBanner/HomeBannerAdd.jsx
new file mode 100644
index 0000000..9c065c4
--- /dev/null
+++ b/src/Pages/Banners/HomeBanner/HomeBannerAdd.jsx
@@ -0,0 +1,16 @@
+import AddBanner from "../../../Components/Banner/AddBanner";
+import { useCreateHomeBannerMutation } from "../../../Services/api.service";
+
+const HomeBannerAdd = () => {
+ const [createLearnBannerData] = useCreateHomeBannerMutation();
+ return (
+
+ );
+};
+
+export default HomeBannerAdd;
diff --git a/src/Pages/Banners/HomeBanner/HomeBannerEdit.jsx b/src/Pages/Banners/HomeBanner/HomeBannerEdit.jsx
new file mode 100644
index 0000000..b307da0
--- /dev/null
+++ b/src/Pages/Banners/HomeBanner/HomeBannerEdit.jsx
@@ -0,0 +1,18 @@
+import React from 'react'
+import BannerEdit from '../../../Components/Banner/BannerEdit'
+import { useGetCommunityBannerByIdQuery, useGetHomeBannerByIdQuery, useGetLearnBannerByIdQuery, useUpdateCommunityBannerMutation, useUpdateHomeBannerMutation, useUpdateLearnBannerMutation } from '../../../Services/api.service';
+import { useParams } from 'react-router-dom';
+
+const BannerHomeEdit = () => {
+ const { id } = useParams();
+ const { data, error, isLoading, refetch } = useGetHomeBannerByIdQuery(id);
+ const [updateLearnBanner] = useUpdateHomeBannerMutation();
+ // useEffect(() => {
+ // refetch();
+ // }, [id, refetch]);
+ return (
+
+ )
+}
+
+export default BannerHomeEdit
\ No newline at end of file
diff --git a/src/Pages/Banners/HomeBanner/HomeBannerView.jsx b/src/Pages/Banners/HomeBanner/HomeBannerView.jsx
new file mode 100644
index 0000000..1f23b7c
--- /dev/null
+++ b/src/Pages/Banners/HomeBanner/HomeBannerView.jsx
@@ -0,0 +1,14 @@
+import React from "react";
+import { useParams } from "react-router-dom";
+import { useGetHomeBannerByIdQuery, useGetNewsBannerByIdQuery } from "../../../Services/api.service";
+import BannerView from "../../../Components/Banner/BannerView";
+
+const HomeBannerView = () => {
+ const { id } = useParams();
+ const { data, error, isLoading } = useGetHomeBannerByIdQuery(id);
+
+
+ return ;
+};
+
+export default HomeBannerView;
diff --git a/src/Pages/BlogsAndArticles/AddBlogsAndArticles.jsx b/src/Pages/BlogsAndArticles/AddBlogsAndArticles.jsx
new file mode 100644
index 0000000..4a6cdff
--- /dev/null
+++ b/src/Pages/BlogsAndArticles/AddBlogsAndArticles.jsx
@@ -0,0 +1,772 @@
+import {
+ Box,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Input,
+ Text,
+ Stack,
+ Textarea,
+ Heading,
+ Button,
+ useToast,
+ Divider,
+ Image,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import fallbackImage from "../../assets/fallBackImage.png";
+import fallbackImageLarge from "../../assets/ultp-fallback-img.webp";
+import { TiWarning } from "react-icons/ti";
+
+import { motion } from "framer-motion";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import { addBlogSchema } from "../../Validations/Validations";
+import { useCreateBlogMutation } from "../../Services/api.service";
+import { useNavigate } from "react-router-dom";
+import Loader01 from "../../Components/Loaders/Loader01";
+import ReactQuill from "react-quill";
+import "react-quill/dist/quill.snow.css";
+import ChipSelector from "../../Components/ChipSelector/ChipSelector";
+import Header from "../../Components/Header";
+import ToastBox from "../../Components/ToastBox";
+
+const AddBlogsAndArticles = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [createBlog] = useCreateBlogMutation(); // Invoke the hook to get the mutation function
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [selectedImageLarge, setSelectedImageLarge] =
+ useState(fallbackImageLarge);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [smallImageData, setSmallImageData] = useState(null);
+ const [chips, setChips] = useState([]);
+ const [value, setValue] = useState("");
+ const [metaDescription, setMetaDescription] = useState("");
+
+ const handleDescriptionChange = (e) => {
+ setMetaDescription(e.target.value);
+ };
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ setValue: setYupFormValue,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addBlogSchema),
+ });
+
+
+ const onSubmit = async (data) => {
+ setYupFormValue('content', value)
+ const formData = new FormData();
+ formData.append("author_name", data.author_name);
+ formData.append("author_designation", data.author_designation);
+ formData.append("meta_description", data.meta_description);
+ formData.append("title", data.title);
+ formData.append("category", data.category);
+ formData.append("summary", data.summary);
+ formData.append("content", value); // Add the content to formData
+ if (data.profile_image[0]) {
+ formData.append("profile_image", data.profile_image[0]);
+ }
+ if (data.content_image_large[0]) {
+ formData.append("content_image_large", data.content_image_large[0]);
+ }
+ if (chips.length === 0) {
+ return toast({
+ title: "Please add tags",
+ status: "error",
+ isClosable: true,
+ });
+ } else {
+ // formData.append("tags", chips);
+ chips.forEach((tag, i) => {
+ formData.append(`tags[${i}]`, tag); // Append each tag as an array element
+ });
+ }
+
+ try {
+ setIsLoading(true);
+ createBlog(formData)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/blogs-articles");
+ }else if(response?.error?.status === 500){
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error creating community:", error);
+ }
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setSmallImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const handleImageChangeLarge = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImageLarge(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ return (
+
+
+
+
+ );
+};
+
+export default AddBlogsAndArticles;
diff --git a/src/Pages/BlogsAndArticles/BlogsAndArticles.jsx b/src/Pages/BlogsAndArticles/BlogsAndArticles.jsx
new file mode 100644
index 0000000..9374a80
--- /dev/null
+++ b/src/Pages/BlogsAndArticles/BlogsAndArticles.jsx
@@ -0,0 +1,299 @@
+import React, { useRef, useState } from "react";
+import {
+ Avatar,
+ Box,
+ Link,
+ Tag,
+ Text,
+ WrapItem,
+ Tooltip,
+ Divider,
+ Stack,
+ HStack,
+ Input,
+ Button,
+ Select,
+ Image,
+ Menu,
+ MenuButton,
+ MenuList,
+ MenuItem,
+ Switch,
+ Portal,
+ useDisclosure,
+ AlertDialog,
+ AlertDialogOverlay,
+ AlertDialogContent,
+ AlertDialogHeader,
+ AlertDialogCloseButton,
+ AlertDialogBody,
+ AlertDialogFooter,
+ useToast,
+ Skeleton,
+ VStack,
+ Badge,
+} from "@chakra-ui/react";
+import { AddIcon } from "@chakra-ui/icons";
+import DataTable from "../../Components/DataTable/DataTable";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { Link as RouterLink } from "react-router-dom";
+import {
+ useDeleteBlogMutation,
+ useDeleteCommunityMutation,
+ useGetBlogQuery,
+ useGetCommunityBannerQuery,
+ useGetCommunityByIdQuery,
+ useGetCommunityQuery,
+ useUpdateBlogStatusMutation,
+ useUpdateCommunityStatusMutation,
+} from "../../Services/api.service";
+import { HiDotsVertical } from "react-icons/hi";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import Header from "../../Components/Header";
+import ToastBox from "../../Components/ToastBox";
+import TabularView from "../../Components/TabularView/TabularView";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const BlogsAndArticles = () => {
+ // ====================================================[Hooks]===================================================================
+ const toast = useToast();
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(1);
+
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+ const blog = useGetBlogQuery({ page: currentPage, size: pageSize });
+ const [deleteBlog] = useDeleteBlogMutation();
+ const [updateBlogStatus] = useUpdateBlogStatusMutation();
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (communityId) => {
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deleteBlog(communityId)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ }
+ })
+ .catch((error) => {
+ // // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error deleting community:", error);
+ }
+ };
+
+ const handleUpdateStatus = async (id) => {
+ try {
+ // Trigger the mutation
+ await updateBlogStatus({ id })
+ .then((response) => {
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error updating community status:", error);
+ }
+ };
+
+ // ====================================================[Table Filter]================================================================
+ const filteredData = blog?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.author_name;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.active_blog;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Auther Name",
+ // "Discription",
+ "Summary",
+ "Tags",
+ "Active",
+ "Created At",
+ ];
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ "Auther Name": (
+
+
+
+
+ {item?.author_name}
+
+
+ {item?.author_designation}
+
+
+
+ ),
+ // Discription: (
+ //
+ //
+ //
+ // {item?.meta_description}
+ //
+ //
+ //
+ // ),
+ Summary: (
+
+
+
+ {item?.summary}
+
+
+
+ ),
+ Tags: (
+
+ {item?.tags?.map(({ id, tag }) => (
+
+ {tag}
+
+ ))}
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id)}
+ isChecked={item.active_blog}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete blogs?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default BlogsAndArticles;
diff --git a/src/Pages/BlogsAndArticles/EditBlogsAndArticles.jsx b/src/Pages/BlogsAndArticles/EditBlogsAndArticles.jsx
new file mode 100644
index 0000000..9ee1f57
--- /dev/null
+++ b/src/Pages/BlogsAndArticles/EditBlogsAndArticles.jsx
@@ -0,0 +1,703 @@
+import React, { useEffect, useState } from "react";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ Textarea,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ useToast,
+} from "@chakra-ui/react";
+import {
+ useGetBlogByIdQuery,
+ useUpdateBlogMutation,
+} from "../../Services/api.service";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { addBlogSchema, editBlogSchema } from "../../Validations/Validations";
+import fallbackImage from "../../assets/fallBackImage.png";
+import fallbackImageLarge from "../../assets/ultp-fallback-img.webp";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { TiWarning } from "react-icons/ti";
+import ReactQuill from "react-quill";
+import ChipSelector from "../../Components/ChipSelector/ChipSelector";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import Header from "../../Components/Header";
+import ToastBox from "../../Components/ToastBox";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const EditBlogsAndArticles = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [updateBlog] = useUpdateBlogMutation();
+ const { data, error, isLoading, refetch } = useGetBlogByIdQuery(id);
+ const blog = data?.data;
+ const [isLoading01, setIsLoading01] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [selectedImageLarge, setSelectedImageLarge] =
+ useState(fallbackImageLarge);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [smallImageData, setSmallImageData] = useState(null);
+ const [chips, setChips] = useState();
+
+
+ const [valueQuill, setValueQuill] = useState(blog?.content);
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ formState: { errors },
+ setValue,
+ } = useForm({
+ resolver: yupResolver(editBlogSchema),
+ defaultValues: {
+ author_name: "",
+ author_designation: "",
+ meta_description: "",
+ title: "",
+ category: "",
+ summary: "",
+ content: "",
+ profile_image: "",
+ content_image_large: "",
+ tags: "",
+ },
+ });
+
+ useEffect(() => {
+ if (data?.data) {
+ setSelectedImage(`${API_URL}/${blog?.profile_image}`);
+ setSelectedImageLarge(
+ `${API_URL}/${blog?.content_image_large}`
+ );
+ setValue("author_name", blog?.author_name);
+ setValue("author_designation", blog?.author_designation);
+ setValue("meta_description", blog?.meta_description);
+ setValue("title", blog?.title);
+ setValue("category", blog?.category?.blog_category);
+ setValue("summary", blog?.summary);
+ setValue("content", blog?.content);
+ setValue("tags", blog?.tags);
+ setValueQuill(blog?.content);
+ setChips(blog?.tags?.map((tagObject) => tagObject.tag));
+ }
+ }, [data, blog, setValue]);
+
+ const onSubmit = async (data) => {
+ const formData = new FormData();
+ formData.append("author_name", data.author_name);
+ formData.append("author_designation", data.author_designation);
+ formData.append("meta_description", data.meta_description);
+ formData.append("title", data.title);
+ formData.append("category", data.category);
+ formData.append("summary", data.summary);
+ formData.append("content", valueQuill); // Add the content to formData
+ if (data.profile_image[0]) {
+ formData.append("profile_image", data.profile_image[0]);
+ }
+ if (data.content_image_large[0]) {
+ formData.append("content_image_large", data.content_image_large[0]);
+ }
+ if (chips.length === 0) {
+ return toast({
+ title: "Please add tags",
+ status: "error",
+ isClosable: true,
+ });
+ } else {
+ // formData.append("tags", chips);
+ chips.forEach((tag, i) => {
+ formData.append(`tags[${i}]`, tag); // Append each tag as an array element
+ });
+ }
+
+ try {
+ setIsLoading01(true);
+ updateBlog({ id: id, data: formData })
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+ if (response?.data?.statusCode === 201) {
+ setIsLoading01(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ refetch();
+ navigate("/blogs-articles");
+ } else if (response?.error?.status === 500) {
+ setIsLoading01(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ setIsLoading01(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // // console.error("Error creating community:", error);
+ setIsLoading01(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error creating community:", error);
+ }
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setSmallImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const handleImageChangeLarge = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ // console.log(largeImageData);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImageLarge(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ if (isLoading) {
+ return ;
+ }
+ return (
+
+
+
+
+ );
+};
+
+export default EditBlogsAndArticles;
diff --git a/src/Pages/BlogsAndArticles/ViewBlogsAndArticles.jsx b/src/Pages/BlogsAndArticles/ViewBlogsAndArticles.jsx
new file mode 100644
index 0000000..f28d4e6
--- /dev/null
+++ b/src/Pages/BlogsAndArticles/ViewBlogsAndArticles.jsx
@@ -0,0 +1,228 @@
+import {
+ Badge,
+ Box,
+ Button,
+ Divider,
+ Image,
+ Tag,
+ Text,
+ useToast,
+} from "@chakra-ui/react";
+import React from "react";
+import { Link, useNavigate, useParams } from "react-router-dom";
+import { useGetBlogByIdQuery } from "../../Services/api.service";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import Header from "../../Components/Header";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewBlogsAndArticles = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetBlogByIdQuery(id);
+ const blog = data?.data;
+ if (isLoading) {
+ return ;
+ }
+ return (
+
+
+
+
+
+
+
+ Blog Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Blog's Banner image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {/* */}
+
+
+
+
+
+
+ Status
+
+ {blog.active_blog ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+ Title
+ {blog?.title}
+
+
+
+
+ Blog description
+
+
+ {blog?.meta_description}
+
+
+
+
+
+ Content
+
+
+
+
+
+
+
+
+ Blog summary
+
+
+ {blog?.summary}
+
+
+
+
+
+ Tags
+
+
+
+ {blog?.tags?.map(({ id, tag }) => (
+
+ {tag}
+
+
+ ))}
+
+
+
+
+
+ Category
+
+
+ {blog?.category?.blog_category}
+
+
+
+
+
+
+
+
+
+
+ Author's display profile
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+
+
+
+
+
+
+ Author name
+
+
+ {blog?.author_name}
+
+
+
+
+
+ Author designation
+
+
+ {blog?.author_designation}
+
+
+
+
+
+
+
+
+ );
+};
+
+export default ViewBlogsAndArticles;
diff --git a/src/Pages/Community/AddComunity.jsx b/src/Pages/Community/AddComunity.jsx
new file mode 100644
index 0000000..9268d1b
--- /dev/null
+++ b/src/Pages/Community/AddComunity.jsx
@@ -0,0 +1,384 @@
+import {
+ Box,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Input,
+ Text,
+ Stack,
+ Textarea,
+ Heading,
+ Button,
+ useToast,
+ Divider,
+ Image,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import fallbackImage from "../../assets/fallBackImage.png";
+import { TiWarning } from "react-icons/ti";
+
+import { motion } from "framer-motion";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import { addCommunitySchema } from "../../Validations/Validations";
+import {
+ useCreateCommunityMutation,
+ useGetCommunityQuery,
+} from "../../Services/api.service";
+import { useNavigate } from "react-router-dom";
+import Loader01 from "../../Components/Loaders/Loader01";
+import Header from "../../Components/Header";
+import { CloseIcon } from "@chakra-ui/icons";
+import ToastBox from "../../Components/ToastBox";
+
+const AddComunity = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const getCommunityQuery = useGetCommunityQuery();
+ const [createCommunityData] = useCreateCommunityMutation(); // Invoke the hook to get the mutation function
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [imageData, setImageData] = useState(null);
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ watch,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addCommunitySchema),
+ });
+
+ const onSubmit = async (data) => {
+ try {
+ setIsLoading(true);
+ const formData = new FormData();
+ formData.append("member_name", data.member_name);
+ formData.append("designation", data.designation);
+ formData.append("description", data.description);
+ formData.append("linkedin", data.linkedin);
+ if (data.profile_image[0]) {
+ formData.append("profile_image", data.profile_image[0]);
+ }
+ // Trigger the mutation
+ createCommunityData(formData)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/community");
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error creating community:", error);
+ }
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+ Members Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Display profile
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {selectedImage === fallbackImage || imageData === null ? (
+ ""
+ ) : (
+
+
+ {imageData?.name}
+
+ {(imageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ setSelectedImage(fallbackImage)} className=" web-text-large link rounded-2 pointer p-1" as="span" >
+
+
+ )}
+
+
+
+
+
+
+ );
+};
+
+export default AddComunity;
diff --git a/src/Pages/Community/CommCard.jsx b/src/Pages/Community/CommCard.jsx
new file mode 100644
index 0000000..a0e0b22
--- /dev/null
+++ b/src/Pages/Community/CommCard.jsx
@@ -0,0 +1,86 @@
+/* eslint-disable react/prop-types */
+/* eslint-disable no-unused-vars */
+import { Text, SimpleGrid, Card, Image, Box, Flex } from "@chakra-ui/react";
+// import map from "../../assets/images/map-pin.png";
+import linkedin from "../../assets/linkedin.png";
+import { Link } from "react-router-dom";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const CommCard = ({ id, imageUrl, name, jobTitle, description, linkdin }) => {
+ return (
+
+
+
+
+
+
+
+
+
+ {/*
*/}
+
+
+ {/*
+
{location}
+ */}
+
+ {name}
+
+
+ {jobTitle}
+
+
+ {description}
+
+
+ );
+};
+
+export default CommCard;
diff --git a/src/Pages/Community/Community.jsx b/src/Pages/Community/Community.jsx
new file mode 100644
index 0000000..318cf3b
--- /dev/null
+++ b/src/Pages/Community/Community.jsx
@@ -0,0 +1,324 @@
+import React, { useRef, useState } from "react";
+import {
+ Avatar,
+ Box,
+ Link,
+ Tag,
+ Text,
+ WrapItem,
+ Tooltip,
+ Divider,
+ Stack,
+ HStack,
+ Input,
+ Button,
+ Select,
+ Image,
+ Menu,
+ MenuButton,
+ MenuList,
+ MenuItem,
+ Switch,
+ Portal,
+ useDisclosure,
+ AlertDialog,
+ AlertDialogOverlay,
+ AlertDialogContent,
+ AlertDialogHeader,
+ AlertDialogCloseButton,
+ AlertDialogBody,
+ AlertDialogFooter,
+ useToast,
+ Skeleton,
+ VStack,
+} from "@chakra-ui/react";
+import { GrAdd } from "react-icons/gr";
+import {
+ AddIcon,
+ ChevronDownIcon,
+ ChevronLeftIcon,
+ ChevronRightIcon,
+ HamburgerIcon,
+} from "@chakra-ui/icons";
+import DataTable from "../../Components/DataTable/DataTable";
+import CommunityBanner from "../../Components/CommunityBanner";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { v4 as uuidv4 } from "uuid";
+import { Link as RouterLink } from "react-router-dom";
+import {
+ useDeleteCommunityMutation,
+ useGetCommunityBannerQuery,
+ useGetCommunityByIdQuery,
+ useGetCommunityQuery,
+ useUpdateCommunityStatusMutation,
+} from "../../Services/api.service";
+import { HiDotsVertical } from "react-icons/hi";
+import TimeCalculator from "../../Components/Functions/TimeCalculator";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import WebButton from "../../Components/WebButton";
+import CommunityCardDisplay from "./CommunityCardDisplay";
+import CommunityBannerCard from "./CommunityBannerCard";
+import Header from "../../Components/Header";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import ToastBox from "../../Components/ToastBox";
+import TabularView from "../../Components/TabularView/TabularView";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const Community = () => {
+ // ====================================================[Hooks]===================================================================
+ const cancelRef = useRef();
+ const toast = useToast();
+ const { isOpen, onOpen, onClose } = useDisclosure();
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(1);
+
+ const [displayRange, setDisplayRange] = useState({
+ start: TABLE_PAGINATION?.page,
+ end: pageSize,
+ });
+
+ const community = useGetCommunityQuery({ page: currentPage, size: pageSize });
+
+ const [deleteCommunity] = useDeleteCommunityMutation();
+ const [updateCommunityStatus] = useUpdateCommunityStatusMutation();
+
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (communityId) => {
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deleteCommunity(communityId)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ }
+ })
+ .catch((error) => {
+ // // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error deleting community:", error);
+ }
+ };
+ const handleUpdateStatus = async (id) => {
+ try {
+ // Trigger the mutation
+ await updateCommunityStatus({ id })
+ .then((response) => {
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // // console.error("Error updating community status:", error);
+ }
+ };
+
+ // ====================================================[Table Filter]================================================================
+ const filteredData = community?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.member_name;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+ const statusLower = status ? "active" : "inactive";
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Name",
+ "Description",
+ "Linked In",
+ "Active",
+ "Created At",
+ ];
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ Name: (
+
+
+
+
+ {item?.member_name}
+
+
+ {item?.designation}
+
+
+
+ ),
+ Description: (
+
+
+ {item?.description}
+
+
+ ),
+ "Linked In": (
+
+
+
+ Linked In
+
+
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id)}
+ isChecked={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ // ====================================================[Pagination Setup]================================================================
+ const paginationPrev = () => {
+ if (currentPage > 1) {
+ setCurrentPage(currentPage - 1);
+ updateDisplayRange(currentPage - 1);
+ }
+ };
+
+ const paginationNext = () => {
+ const totalPages = Math.ceil(community?.data?.data?.totalItems / pageSize);
+ if (currentPage < totalPages) {
+ setCurrentPage(currentPage + 1);
+ updateDisplayRange(currentPage + 1);
+ }
+ };
+ const updateDisplayRange = (page) => {
+ const start = (page - 1) * pageSize + 1;
+ const end = Math.min(
+ start + pageSize - 1,
+ community?.data?.data?.totalItems
+ );
+ setDisplayRange({ start, end });
+ };
+
+ return (
+ <>
+
+
+ {/* ====================================================[ Alert ]================================================================ */}
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete community?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default Community;
diff --git a/src/Pages/Community/CommunityBannerCard.jsx b/src/Pages/Community/CommunityBannerCard.jsx
new file mode 100644
index 0000000..3ba2e29
--- /dev/null
+++ b/src/Pages/Community/CommunityBannerCard.jsx
@@ -0,0 +1,188 @@
+import {
+ Badge,
+ Box,
+ Button,
+ Card,
+ CardBody,
+ CardHeader,
+ Heading,
+ Image,
+ Text,
+ Tooltip,
+} from "@chakra-ui/react";
+import React from "react";
+import WebButton from "../../Components/WebButton";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const CommunityBannerCard = ({
+ bgImage,
+ subHeading,
+ heading,
+ ctoBtnTitle,
+ createdAt,
+ status,
+}) => {
+ return (
+
+
+ {status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+
+
+
+ {heading}
+
+
+
+
+
+
+
+ {subHeading}
+
+
+
+
+
+
+ {/*
+
+ */}
+
+
+
+ {formatDate(createdAt)}
+
+
+ );
+};
+
+export default CommunityBannerCard;
diff --git a/src/Pages/Community/CommunityCardDisplay.jsx b/src/Pages/Community/CommunityCardDisplay.jsx
new file mode 100644
index 0000000..1071c94
--- /dev/null
+++ b/src/Pages/Community/CommunityCardDisplay.jsx
@@ -0,0 +1,71 @@
+import React from 'react'
+import { useGetCommunityQuery } from '../../Services/api.service';
+import CommCard from './CommCard';
+import { Box, Container, SimpleGrid, Text } from '@chakra-ui/react';
+
+
+const CommunityCardDisplay = () => {
+ const community = useGetCommunityQuery();
+ const communityData = community.data?.data?.rows
+ return (
+
+
+
+ Rubix Community
+
+
+ {communityData?.map((item) => (
+
+ ))}
+
+
+
+ )
+}
+
+export default CommunityCardDisplay
\ No newline at end of file
diff --git a/src/Pages/Community/CommunityCardsTableView.jsx b/src/Pages/Community/CommunityCardsTableView.jsx
new file mode 100644
index 0000000..c775d41
--- /dev/null
+++ b/src/Pages/Community/CommunityCardsTableView.jsx
@@ -0,0 +1,9 @@
+import React from 'react'
+
+const CommunityCardsTableView = () => {
+ return (
+ CommunityCardsTableView
+ )
+}
+
+export default CommunityCardsTableView
\ No newline at end of file
diff --git a/src/Pages/Community/ComunityEditPage.jsx b/src/Pages/Community/ComunityEditPage.jsx
new file mode 100644
index 0000000..85703ac
--- /dev/null
+++ b/src/Pages/Community/ComunityEditPage.jsx
@@ -0,0 +1,455 @@
+import React, { useEffect, useState } from "react";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ useGetCommunityByIdQuery,
+ useUpdateCommunityMutation,
+} from "../../Services/api.service";
+import { addCommunitySchema, schemaEdit } from "../../Validations/Validations";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import {
+ Box,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Textarea,
+ Button,
+ Skeleton,
+ useToast,
+ Switch,
+ Tag,
+} from "@chakra-ui/react";
+import { TiWarning } from "react-icons/ti";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import fallbackImage from "../../assets/fallBackImage.png";
+import Header from "../../Components/Header";
+import ToastBox from "../../Components/ToastBox";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ComunityEditPage = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetCommunityByIdQuery(id);
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [selectedImage, setSelectedImage] = useState();
+ const [updateCommunity] = useUpdateCommunityMutation();
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ watch,
+ formState: { errors },
+ setValue,
+ } = useForm({
+ resolver: yupResolver(addCommunitySchema),
+ defaultValues: {
+ member_name: "",
+ designation: "",
+ description: "",
+ linkedin: "",
+ profile_image: null,
+ },
+ });
+
+ useEffect(() => {
+ if (data?.data) {
+ setSelectedImage(
+ `${API_URL}/${data?.data?.profile_image}`
+ );
+ setValue("member_name", data?.data?.member_name);
+ setValue("designation", data?.data?.designation);
+ setValue("description", data?.data?.description);
+ setValue("linkedin", data?.data?.linkedin);
+ setValue("profile_image", data?.data?.profile_image);
+ }
+ }, [data, setValue]);
+
+ const onSubmit = async (formData) => {
+ setIsLoadingEdit(true);
+ const form = new FormData();
+ form.append("member_name", formData.member_name);
+ form.append("designation", formData.designation);
+ form.append("description", formData.description);
+ form.append("linkedin", formData.linkedin);
+ if (formData.profile_image[0]) {
+ form.append("profile_image", formData.profile_image[0]);
+ }
+ if (formData?.profile_image === data?.data?.profile_image) {
+ form.delete("profile_image");
+ }
+ await updateCommunity({ id: id, data: form })
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoadingEdit(false);
+
+ toast({
+ render: () => (
+
+ ),
+ });
+ navigate("/community");
+ // setDeleteAlert(false);
+ } else {
+ setIsLoading01(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // // console.error("Error creating community:", error);
+ setIsLoadingEdit(false);
+ // setDeleteIsLoading(false);
+ // setDeleteAlert(false);
+ });
+
+ // Log the FormData entries
+ // for (const [key, value] of form.entries()) {
+ // // console.log(`${key}: ${value}`);
+ // }
+
+ reset();
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ return isLoading ? (
+
+ ) : (
+
+
+
+
+
+ Members Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Display profile
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default ComunityEditPage;
diff --git a/src/Pages/Community/ComunityViewPage.jsx b/src/Pages/Community/ComunityViewPage.jsx
new file mode 100644
index 0000000..260c214
--- /dev/null
+++ b/src/Pages/Community/ComunityViewPage.jsx
@@ -0,0 +1,158 @@
+import React, { useEffect, useState } from "react";
+import { Link, useParams } from "react-router-dom";
+import {
+ useGetCommunityByIdQuery,
+} from "../../Services/api.service";
+import BannerView from "../../Components/Banner/BannerView";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { Box, Divider, Image, Tag } from "@chakra-ui/react";
+import Header from "../../Components/Header";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ComunityViewPage = () => {
+ const { id } = useParams();
+ const { data, error, isLoading } = useGetCommunityByIdQuery(id);
+
+
+ return isLoading ? (
+
+ ) : (
+
+
+
+
+
+ Banners Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Display banner
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {/* */}
+
+
+
+
+
+
+ Status
+
+ {data?.data?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+
+ Author name
+
+
+ {data?.data?.member_name}
+
+
+
+
+
+ Designation
+
+
+ {data?.data?.designation}
+
+
+
+
+
+ Description
+
+
+ {data?.data?.description}
+
+
+
+
+
+ Linked In
+
+
+ {data?.data?.linkedin}
+
+
+
+
+
+ Created At
+
+
+ {formatDate(data?.data?.createdAt)}
+
+
+
+
+
+ Updated At
+
+
+ {formatDate(data?.data?.updatedAt)}
+
+
+
+
+
+
+
+ );
+};
+
+export default ComunityViewPage;
diff --git a/src/Pages/Events/AddEvents.jsx b/src/Pages/Events/AddEvents.jsx
new file mode 100644
index 0000000..3f84475
--- /dev/null
+++ b/src/Pages/Events/AddEvents.jsx
@@ -0,0 +1,582 @@
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import Header from "../../Components/Header";
+import {
+ AspectRatio,
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Textarea,
+ useToast,
+} from "@chakra-ui/react";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { useState } from "react";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import { addEvents } from "../../Validations/Validations";
+import { TiWarning } from "react-icons/ti";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { useNavigate } from "react-router-dom";
+import { motion } from "framer-motion";
+import { useCreateEventsMutation } from "../../Services/api.service";
+import ToastBox from "../../Components/ToastBox";
+
+const AddEvents = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [createEvents] = useCreateEventsMutation(); // Invoke the hook to get the mutation function
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [isLoading, setIsLoading] = useState(false);
+
+ const [eventDatesInput, setEventsDatesInputs] = useState([]);
+
+
+ // Function to handle adding new date inputs
+ const addDateInput = () => {
+ setEventsDatesInputs([...eventDatesInput, ""]);
+ };
+
+ // Function to handle the change in date inputs
+ const handleDateChange = (index, event) => {
+ const newDates = [...eventDatesInput];
+ newDates[index] = event.target.value;
+ setEventsDatesInputs(newDates);
+ };
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ watch,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addEvents),
+ });
+
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = (data) => {
+ setIsLoading(true);
+ const formData = new FormData();
+ formData.append("title", data.title);
+ formData.append("content", data.content);
+ formData.append("location", data.location);
+ formData.append("organizer_name", data.organizer_name);
+ formData.append("organizer_mobile_number", data.organizer_mobile_number);
+ formData.append("organizer_email", data.organizer_email);
+
+ if (eventDatesInput.length === 0 || eventDatesInput[0]==="") {
+ setIsLoading(false);
+ return toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ eventDatesInput.forEach((date, index) => {
+ formData.append(`dates[${index}]`, date);
+ });
+ }
+
+ if (data.banner_image[0]) {
+ formData.append("banner_image", data.banner_image[0]);
+ }
+
+ // for (const [key, value] of formData.entries()) {
+ // // console.log(`${key}: ${value}`);
+ // }
+
+ // Trigger the mutationconst
+ const res = createEvents(formData)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setIsLoading(false);
+ toast({
+ title: response?.data?.message,
+ status: "success",
+ isClosable: true,
+ });
+ reset();
+ navigate("/events");
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoading(false);
+ toast({
+ title: response?.data?.message,
+ status: "error", // Change status to error
+ isClosable: true,
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // // console.error("Error creating community:", error?.message);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+
+ };
+
+ return (
+
+
+
+
+ {/*
+
+
+
+ */}
+
+
+
+
+
+ );
+};
+
+export default AddEvents;
diff --git a/src/Pages/Events/EditEvents.jsx b/src/Pages/Events/EditEvents.jsx
new file mode 100644
index 0000000..c26223f
--- /dev/null
+++ b/src/Pages/Events/EditEvents.jsx
@@ -0,0 +1,601 @@
+import React, { useEffect, useState } from "react";
+import {
+ useGetEventsByIdQuery,
+ useUpdateEventsMutation,
+} from "../../Services/api.service";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Tag,
+ Textarea,
+ useToast,
+} from "@chakra-ui/react";
+import { addEvents } from "../../Validations/Validations";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import Header from "../../Components/Header";
+import { TiWarning } from "react-icons/ti";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import ToastBox from "../../Components/ToastBox";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import ChipSelector from "../../Components/ChipSelector/ChipSelector";
+
+const convertToDateArray = (dateArray) => {
+ return dateArray?.map((dateString) => {
+ const date = new Date(dateString);
+ const year = date.getUTCFullYear();
+ const month = String(date.getUTCMonth() + 1).padStart(2, "0"); // getUTCMonth() is zero-based
+ const day = String(date.getUTCDate()).padStart(2, "0");
+ return `${year}-${month}-${day}`;
+ });
+};
+
+const EditEvents = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetEventsByIdQuery(id);
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [updateEvents] = useUpdateEventsMutation();
+ const [eventsDate, setEventsDate] = useState(
+ convertToDateArray(data?.data?.eventDates.map((event) => event.date))
+ );
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ watch,
+ formState: { errors },
+ setValue,
+ } = useForm({
+ resolver: yupResolver(addEvents),
+ defaultValues: {
+ title: "",
+ content: "",
+ location: "",
+ organizer_name: "",
+ organizer_mobile_number: "",
+ // eventDates: eventsDate,
+ organizer_email: "",
+ banner_image: null,
+ },
+ });
+
+ useEffect(() => {
+ if (data?.data) {
+ setSelectedImage(
+ `${API_URL}/${data?.data?.banner_image}`
+ );
+ setValue("title", data?.data?.title);
+ setValue("content", data?.data?.content);
+ setValue("location", data?.data?.location);
+ setValue("organizer_name", data?.data?.organizer_name);
+ setValue("organizer_mobile_number", data?.data?.organizer_mobile_number);
+ setValue("organizer_email", data?.data?.organizer_email);
+ setValue("content", data?.data?.content);
+ // setValue("eventDates", data?.data?.eventDates);
+ setValue("banner_image", data?.data?.banner_image);
+
+ // setValue("eventDates", eventsDate);
+ }
+ }, [data, setValue]);
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+
+ const onSubmit = (data) => {
+ setIsLoadingEdit(true);
+ const formData = new FormData();
+ formData.append("title", data.title);
+ formData.append("content", data.content);
+ formData.append("location", data.location);
+ formData.append("organizer_name", data.organizer_name);
+ formData.append("organizer_mobile_number", data.organizer_mobile_number);
+ formData.append("organizer_email", data.organizer_email);
+
+
+ if (eventsDate.length === 0) {
+ setIsLoadingEdit(false);
+ return toast({
+ render: () => (
+
+ ),
+ })
+ }else{
+ eventsDate.forEach((date, index) => {
+ formData.append(`dates[${index}]`, date);
+ });
+ }
+
+
+
+
+
+
+
+
+
+ if (data.banner_image[0]) {
+ formData.append("banner_image", data.banner_image[0]);
+ }
+
+ // for (const [key, value] of formData.entries()) {
+ // // console.log(`${key}: ${value}`);
+ // }
+
+ // Trigger the mutationconst
+ const res = updateEvents({ id: id, data: formData })
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/events");
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // // console.error("Error creating community:", error?.message);
+ setIsLoadingEdit(false);
+ // Handle error notification if needed
+ });
+ };
+
+
+ return isLoading ? (
+
+ ) : (
+
+
+
+
+
+
+
+ );
+};
+
+export default EditEvents;
diff --git a/src/Pages/Events/Events.jsx b/src/Pages/Events/Events.jsx
new file mode 100644
index 0000000..95f1819
--- /dev/null
+++ b/src/Pages/Events/Events.jsx
@@ -0,0 +1,246 @@
+import {
+ Box,
+ HStack,
+ Input,
+ Menu,
+ MenuButton,
+ MenuItem,
+ MenuList,
+ Portal,
+ Select,
+ Switch,
+ Text,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import {
+ useDeleteEventsMutation,
+ useGetEventsQuery,
+ useUpdateEventsStatusMutation,
+} from "../../Services/api.service";
+import { useState } from "react";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import Header from "../../Components/Header";
+import { ChevronLeftIcon, ChevronRightIcon } from "@chakra-ui/icons";
+import DataTable from "../../Components/DataTable/DataTable";
+import { HiDotsVertical } from "react-icons/hi";
+import { Link as RouterLink } from "react-router-dom";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import ToastBox from "../../Components/ToastBox";
+import TabularView from "../../Components/TabularView/TabularView";
+
+const Events = () => {
+ // ====================================================[Hooks]===================================================================
+ const toast = useToast();
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+ // ====================================================[Constants]===================================================================
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(TABLE_PAGINATION?.page);
+ const [displayRange, setDisplayRange] = useState({
+ start: TABLE_PAGINATION?.page,
+ end: pageSize,
+ });
+ // ====================================================[RTK Hooks]===================================================================
+ const events = useGetEventsQuery({ page: currentPage, size: pageSize });
+ const [updateEventsStatus] = useUpdateEventsStatusMutation();
+ const [deleteEvents] = useDeleteEventsMutation();
+
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (id) => {
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deleteEvents(id)
+ .then((response) => {
+ if (response?.data?.statusCode === 201) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error deleting community:", error);
+ }
+ };
+ const handleUpdateStatus = async (id) => {
+ try {
+ // Trigger the mutation
+ await updateEventsStatus({ id })
+ .then((response) => {
+ // console.log(response?.data);
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error updating community status:", error);
+ }
+ };
+
+ // ====================================================[Pagination Setup]================================================================
+ const paginationPrev = () => {
+ if (currentPage > 1) {
+ setCurrentPage(currentPage - 1);
+ updateDisplayRange(currentPage - 1);
+ }
+ };
+
+ const paginationNext = () => {
+ const totalPages = Math.ceil(events?.data?.data?.totalItems / pageSize);
+ if (currentPage < totalPages) {
+ setCurrentPage(currentPage + 1);
+ updateDisplayRange(currentPage + 1);
+ }
+ };
+
+ const updateDisplayRange = (page) => {
+ const start = (page - 1) * pageSize + 1;
+ const end = Math.min(start + pageSize - 1, events?.data?.data?.totalItems);
+ setDisplayRange({ start, end });
+ };
+
+ // ====================================================[Table Filter]================================================================
+ const filteredData = events?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.title;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Title",
+ "Organisation name",
+ "Contact no",
+ "Email",
+ "Location",
+ "Status",
+ "Created At",
+ ];
+
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ Title: {item?.title},
+ "Organisation name": item?.organizer_name,
+ "Contact no": item?.organizer_mobile_number,
+ Email: item?.organizer_email,
+ Location: item?.location,
+
+ Status: (
+ handleUpdateStatus(item?.id)}
+ isChecked={item?.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ return (
+ <>
+
+
+
+ {/* ====================================================[ Alert ]================================================================ */}
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete event?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default Events;
diff --git a/src/Pages/Events/ViewEvents.jsx b/src/Pages/Events/ViewEvents.jsx
new file mode 100644
index 0000000..a641088
--- /dev/null
+++ b/src/Pages/Events/ViewEvents.jsx
@@ -0,0 +1,193 @@
+import React from 'react'
+import { useGetEventsByIdQuery } from '../../Services/api.service';
+import { useNavigate, useParams } from 'react-router-dom';
+import { Box, Divider, Image, Tag, useToast } from '@chakra-ui/react';
+import FullscreenLoaders from '../../Components/Loaders/FullscreenLoaders';
+import { OPACITY_ON_LOAD } from '../../Layout/animations';
+import Header from '../../Components/Header';
+import { formatDate } from '../../Components/Functions/UTCConvertor';
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewEvents = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetEventsByIdQuery(id);
+ const events = data?.data;
+ if (isLoading) {
+ return ;
+ }
+ return(
+
+
+
+
+
+
+
+
+ Events Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Events Banner image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+
+
+
+
+
+
+
+
+ Status
+
+ {events?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+ Title
+ {events?.title}
+
+
+
+
+
+ Content
+
+
+ {events?.content}
+
+
+
+
+
+
+
+ Location
+
+
+ {events?.location}
+
+
+
+
+
+
+
+
+ Organisation name
+
+
+ {events?.organizer_name}
+
+
+
+
+
+
+ Organisation number
+
+
+ {events?.organizer_mobile_number}
+
+
+
+
+
+
+ Organisation email
+
+
+ {events?.organizer_email}
+
+
+
+
+
+ Event Dates
+
+
+
+ {events?.eventDates?.map(({ date }, index) => (
+
+ {formatDate(date)}
+
+ ))}
+
+
+
+
+
+
+
+ Created at
+
+
+ {formatDate(events?.createdAt)}
+
+
+
+
+
+ Updated at
+
+
+ {formatDate(events?.updatedAt)}
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
+
+export default ViewEvents
\ No newline at end of file
diff --git a/src/Pages/Faq/AddFaq.jsx b/src/Pages/Faq/AddFaq.jsx
new file mode 100644
index 0000000..8e2d021
--- /dev/null
+++ b/src/Pages/Faq/AddFaq.jsx
@@ -0,0 +1,344 @@
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ useToast,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import Header from "../../Components/Header";
+import { useNavigate } from "react-router-dom";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { addFaq } from "../../Validations/Validations";
+import { TiWarning } from "react-icons/ti";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { useCreateFaqMutation } from "../../Services/api.service";
+import ToastBox from "../../Components/ToastBox";
+import ReactQuill from "react-quill";
+
+const AddFaq = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [imageData, setImageData] = useState(null);
+ const [value, setValue] = useState(null);
+
+ const [createFaq] = useCreateFaqMutation();
+
+ // const termContent = data?.data;
+
+ const {
+ register,
+ handleSubmit,
+ watch,
+ reset,
+ setValue: setYupFormValue,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addFaq),
+ defaultValues: {
+ question: "",
+ answer: "",
+ },
+ });
+
+ // console.log(errors);
+ // const handleImageChange = (e) => {
+ // const file = e.target.files[0];
+ // setImageData(file);
+ // // setYupFormValue("banner_image", file);
+ // if (file) {
+ // const reader = new FileReader();
+ // reader.onloadend = () => {
+ // setSelectedImage(reader.result);
+ // };
+ // reader.readAsDataURL(file);
+ // }
+ // };
+
+ const onSubmit = async (data) => {
+ if (value === null) {
+ return toast({
+ render: () => (
+
+ ),
+ });
+ }
+ setYupFormValue("answer", value);
+ try {
+ setIsLoading(true);
+ // Trigger the mutation
+ createFaq(data)
+ .then((response) => {
+ // Handle the response here
+
+ if (response?.data?.statusCode === 201) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/faq");
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ }
+ };
+
+ return (
+
+
+
+
+ {/*
+
+
+ {selectedImage === fallbackImage || imageData === null ? (
+ ""
+ ) : (
+
+ {imageData?.name}
+
+ {(imageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+ */}
+
+
+
+
+ );
+};
+
+export default AddFaq;
diff --git a/src/Pages/Faq/EditFaq.jsx b/src/Pages/Faq/EditFaq.jsx
new file mode 100644
index 0000000..d530952
--- /dev/null
+++ b/src/Pages/Faq/EditFaq.jsx
@@ -0,0 +1,182 @@
+import React, { useEffect, useState } from "react";
+import Header from "../../Components/Header";
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Input,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ useGetFaqByIdQuery,
+ useUpdateFaqMutation,
+} from "../../Services/api.service";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { TiWarning } from "react-icons/ti";
+import { addFaq } from "../../Validations/Validations";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import ToastBox from "../../Components/ToastBox";
+import ReactQuill from "react-quill";
+
+const EditFaq = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetFaqByIdQuery(id);
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [updateFaq] = useUpdateFaqMutation();
+ const [valueQuill, setValueQuill] = useState(data?.data?.answer);
+
+ // console.log(data);
+
+ const {
+ register,
+ handleSubmit,
+ watch,
+ reset,
+ formState: { errors },
+ setValue,
+ } = useForm({
+ resolver: yupResolver(addFaq),
+ defaultValues: {
+ question: "",
+ answer: "",
+ },
+ });
+
+ useEffect(() => {
+ if (data?.data) {
+ setValue("question", data?.data?.question);
+ setValueQuill(data?.data?.answer || ""); // Set initial value for Quill
+ }
+ }, [data, setValue]);
+
+ const onSubmit = async (formData) => {
+ if (!valueQuill || valueQuill.trim() === "") {
+ toast({
+ render: () => (
+
+ ),
+ });
+ return;
+ }
+
+ setIsLoadingEdit(true);
+ const updatedData = {
+ ...formData,
+ answer: valueQuill, // Include the value from ReactQuill
+ };
+
+ await updateFaq({ id, data: updatedData })
+ .then((response) => {
+ if (response?.data?.statusCode === 200) {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ reset();
+ navigate("/faq");
+ } else {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.error("Error updating FAQ:", error);
+ setIsLoadingEdit(false);
+ });
+ };
+
+ if (isLoading) {
+ return ;
+ }
+
+ return (
+
+
+
+
+
+
+
+ );
+};
+
+export default EditFaq;
diff --git a/src/Pages/Faq/Faq.jsx b/src/Pages/Faq/Faq.jsx
new file mode 100644
index 0000000..9f4fc8b
--- /dev/null
+++ b/src/Pages/Faq/Faq.jsx
@@ -0,0 +1,254 @@
+import {
+ Box,
+ Image,
+ Menu,
+ MenuButton,
+ MenuItem,
+ MenuList,
+ Portal,
+ Switch,
+ Text,
+ Tooltip,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import {
+ useCreateFaqMutation,
+ useDeleteFaqMutation,
+ useGetFaqQuery,
+ useUpdateFaqStatusMutation,
+} from "../../Services/api.service";
+import { useState } from "react";
+import TabularView from "../../Components/TabularView/TabularView";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import { HiDotsVertical } from "react-icons/hi";
+import { Link } from "react-router-dom";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import ToastBox from "../../Components/ToastBox";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+
+const Faq = () => {
+ const toast = useToast();
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(1);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [actionStatus, setActionStatus] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+
+ const faqPage = useCreateFaqMutation();
+
+ const faq = useGetFaqQuery({ page: currentPage, size: pageSize });
+
+
+ const [deleteFaq] = useDeleteFaqMutation();
+ const [updateFaqStatus] = useUpdateFaqStatusMutation();
+
+ const filteredData = faq?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.question;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Title",
+ // "Content",
+ "Active",
+ "Created At",
+ ];
+
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ Title: (
+
+
+
+
+ {item?.question}
+
+
+
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id, item?.status)}
+ isChecked={item.status}
+ // disabled={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (communityId, status) => {
+ if (status) {
+ return toast({
+ render: () => (
+
+ ),
+ });
+ }
+
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ const response = await deleteFaq(communityId);
+
+ // Handle the response here
+ // console.log("Mutation response:", response?.data?.statusCode);
+ // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ } catch (error) {
+ // console.error("Error deleting community:", error);
+ toast({
+ render: () => (
+
+ ),
+ });
+ } finally {
+ // Ensure the loading state is reset and alert is closed
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ }
+ };
+
+ const handleUpdateStatus = async (id) => {
+ try {
+ await updateFaqStatus({ id })
+ .then((response) => {
+ // console.log(response?.data);
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ // whitePaper?.refetch()
+ }
+ })
+ .catch((error) => {
+ // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error updating community status:", error);
+ }
+ };
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete Faq?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default Faq;
diff --git a/src/Pages/Faq/ViewFaq.jsx b/src/Pages/Faq/ViewFaq.jsx
new file mode 100644
index 0000000..55caa3d
--- /dev/null
+++ b/src/Pages/Faq/ViewFaq.jsx
@@ -0,0 +1,97 @@
+import React from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { Box, Divider, Image, Tag, Text, useToast } from "@chakra-ui/react";
+import { useNavigate, useParams } from "react-router-dom";
+import Header from "../../Components/Header";
+import {
+ useGetFaqByIdQuery,
+ useGetPolicyByIdQuery,
+} from "../../Services/api.service";
+import { AttachmentIcon } from "@chakra-ui/icons";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import pdf from "../../assets/pdfscreen.png";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewFaq = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetFaqByIdQuery(id);
+ const viewFaq = data?.data;
+
+ // // console.log(viewPolicy?.banner_image);
+ // // console.log(`https://rubix.betadelivery.com/${viewPolicy?.banner_image}`);
+
+ if (isLoading) {
+ return ;
+ }
+
+ return (
+
+
+
+
+ {/*
+
+
+
+ */}
+
+
+
+
+ Status
+
+ {viewFaq?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+ Title
+
+ {viewFaq?.question}
+
+
+
+
+ Content
+
+
+ {viewFaq?.answer}
+
+
+
+
+
+
+
+ );
+};
+
+export default ViewFaq;
diff --git a/src/Pages/Investment/Investment.jsx b/src/Pages/Investment/Investment.jsx
new file mode 100644
index 0000000..e003b93
--- /dev/null
+++ b/src/Pages/Investment/Investment.jsx
@@ -0,0 +1,11 @@
+import { Box } from '@chakra-ui/react'
+import React from 'react'
+import { OPACITY_ON_LOAD } from '../../Layout/animations'
+
+const Investment = () => {
+ return (
+
+ )
+}
+
+export default Investment
\ No newline at end of file
diff --git a/src/Pages/Login.jsx b/src/Pages/Login.jsx
new file mode 100644
index 0000000..a1242bc
--- /dev/null
+++ b/src/Pages/Login.jsx
@@ -0,0 +1,273 @@
+import { useNavigate } from "react-router-dom";
+import Input01 from "../Components/Inputs/Input01";
+import logo from "../assets/logo2.png";
+import { useDispatch, useSelector } from "react-redux";
+import { loginUser } from "../Redux/Slice/auth";
+import { useContext, useEffect, useState } from "react";
+import Button01 from "../Components/Buttons/Button01";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import { TiWarning } from "react-icons/ti";
+import Loader01 from "../Components/Loaders/Loader01";
+import Asset1 from "../assets/asset1.png";
+import Asset2 from "../assets/asset2.png";
+import {
+ Button,
+ FormControl,
+ FormLabel,
+ Input,
+ InputGroup,
+ InputRightElement,
+ useToast,
+} from "@chakra-ui/react";
+import GlobalStateContext from "../Contexts/GlobalStateContext";
+import Cookies from "js-cookie";
+import { validationSchema } from "../Validations/Validations";
+import ToastBox from "../Components/ToastBox";
+
+const Login = () => {
+ const [show, setShow] = useState(false);
+ const handleClick = () => setShow(!show);
+ const { isAuthenticate, setIsAuthenticate } = useContext(GlobalStateContext);
+ const toast = useToast();
+ // const { isAuthenticate } = useSelector((state) => state?.auth);
+ const [isLoading, setIsLoading] = useState(false);
+
+ const navigate = useNavigate();
+ const dispatch = useDispatch();
+
+ useEffect(() => {
+ if (isAuthenticate) {
+ navigate("/");
+ }
+ }, [navigate, isAuthenticate]);
+
+ const onSubmit = (value) => {
+ setIsLoading(true);
+ if (value.name === "Admin" && value.password === "Admin") {
+ return setTimeout(() => {
+ // dispatch(loginUser(true));
+ setIsAuthenticate(true);
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ Cookies.set("isAuthenticated", true, { expires: 7 });
+ navigate("/");
+ }, 2000); // 3-second delay
+ } else {
+ return setTimeout(() => {
+ // dispatch(loginUser(true));
+ setIsAuthenticate(false);
+ setIsLoading(false);
+
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/login");
+ }, 2000);
+ }
+ };
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(validationSchema),
+ });
+
+ return (
+
+
+
+
+ Tanami v1.0.0
+
+
+ {/*

+
+

*/}
+
+

+
+ {/*

*/}
+

+
+ );
+};
+
+export default Login;
diff --git a/src/Pages/NewLetter/NewsLetter.jsx b/src/Pages/NewLetter/NewsLetter.jsx
new file mode 100644
index 0000000..08c9aa2
--- /dev/null
+++ b/src/Pages/NewLetter/NewsLetter.jsx
@@ -0,0 +1,232 @@
+import {
+ Box,
+ Button,
+ Image,
+ Menu,
+ MenuButton,
+ MenuItem,
+ MenuList,
+ Portal,
+ Switch,
+ Text,
+ Tooltip,
+ useToast,
+} from "@chakra-ui/react";
+import {
+ AlertDialog,
+ AlertDialogBody,
+ AlertDialogCloseButton,
+ AlertDialogContent,
+ AlertDialogFooter,
+ AlertDialogOverlay,
+ useDisclosure,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import {
+ useDeleteEmailMutation,
+ useGetNewsLetterEmailQuery,
+ useGetNewsLetterQuery,
+} from "../../Services/api.service";
+import { useState } from "react";
+import TabularView from "../../Components/TabularView/TabularView";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import { HiDotsVertical } from "react-icons/hi";
+import { Link } from "react-router-dom";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import ToastBox from "../../Components/ToastBox";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import { DeleteIcon } from "@chakra-ui/icons";
+
+const NewsLetter = () => {
+ const toast = useToast();
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(1);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [actionStatus, setActionStatus] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+
+ const { data } = useGetNewsLetterQuery({ page: currentPage, size: pageSize });
+ // // console.log(useGetNewsletterQuery);
+ const email = data?.data?.rows;
+ // console.log(email);
+
+ const [deleteEmail] = useDeleteEmailMutation();
+ // const [updateFaqStatus] = useUpdateFaqStatusMutation();
+
+ const handleDelete = async (communityId, status) => {
+ if (status) {
+ return toast({
+ render: () => (
+
+ ),
+ });
+ }
+
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ const response = await deleteEmail(communityId);
+
+ // Handle the response here
+ // console.log("Mutation response:", response?.data?.statusCode);
+ // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ } catch (error) {
+ // console.error("Error deleting community:", error);
+ toast({
+ render: () => (
+
+ ),
+ });
+ } finally {
+ // Ensure the loading state is reset and alert is closed
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ }
+ };
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Title",
+ // "Content",
+ "Created At",
+ "Actions",
+ ];
+
+ const extractedArray = email?.map((item, index) => {
+ return {
+ Title: (
+
+
+
+ {item?.email}
+
+
+
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+ {/* */}
+
+ ),
+ Actions: (
+
+
+
+ ),
+ };
+ });
+
+ // ====================================================[Functions]===================================================================
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete Email?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default NewsLetter;
diff --git a/src/Pages/News/AddNews.jsx b/src/Pages/News/AddNews.jsx
new file mode 100644
index 0000000..62868bf
--- /dev/null
+++ b/src/Pages/News/AddNews.jsx
@@ -0,0 +1,424 @@
+import {
+ Box,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Input,
+ Text,
+ Stack,
+ Textarea,
+ Heading,
+ Button,
+ useToast,
+ Divider,
+ Image,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { TiWarning } from "react-icons/ti";
+
+import { motion } from "framer-motion";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import {
+ addCommunityBannerSchema,
+ addCommunitySchema,
+ addNews,
+} from "../../Validations/Validations";
+import {
+ useCreateCommunityBannerMutation,
+ useCreateCommunityMutation,
+ useCreateNewsMutation,
+ useGetCommunityQuery,
+} from "../../Services/api.service";
+import { useNavigate } from "react-router-dom";
+import Loader01 from "../../Components/Loaders/Loader01";
+import Header from "../../Components/Header";
+import ToastBox from "../../Components/ToastBox";
+
+const AddNews = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [createNews] = useCreateNewsMutation(); // Invoke the hook to get the mutation function
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [imageData, setImageData] = useState(null);
+
+ const today = new Date().toISOString().split("T")[0];
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ watch,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addNews),
+ });
+
+ const formData = watch()
+
+ const onSubmit = async (data) => {
+ const date = new Date(data?.release_date).toUTCString();
+ try {
+ setIsLoading(true);
+ const formData = new FormData();
+ formData.append("title", data.title);
+ formData.append("meta_description", data.meta_description);
+ formData.append("content", data.content);
+ formData.append("release_date", date);
+ if (data.banner_image[0]) {
+ formData.append("banner_image", data.banner_image[0]);
+ }
+ // Trigger the mutation
+ createNews(formData)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/news");
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ }
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+ Banner info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Banner image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {selectedImage === fallbackImage || imageData === null ? (
+ ""
+ ) : (
+
+ {imageData?.name}
+
+ {(imageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default AddNews;
diff --git a/src/Pages/News/EditNews.jsx b/src/Pages/News/EditNews.jsx
new file mode 100644
index 0000000..29159e0
--- /dev/null
+++ b/src/Pages/News/EditNews.jsx
@@ -0,0 +1,458 @@
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Tag,
+ Textarea,
+ useToast,
+} from "@chakra-ui/react";
+import React, { useEffect, useState } from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import Header from "../../Components/Header";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ useGetNewsByIdQuery,
+ useUpdateNewsMutation,
+} from "../../Services/api.service";
+import { addNews, editNews } from "../../Validations/Validations";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import { TiWarning } from "react-icons/ti";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import ToastBox from "../../Components/ToastBox";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const EditNews = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading, refetch } = useGetNewsByIdQuery(id);
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [updateNews] = useUpdateNewsMutation();
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ formState: { errors },
+ watch,
+ setValue,
+ } = useForm({
+ resolver: yupResolver(editNews),
+ defaultValues: {
+ title: "",
+ release_date: "",
+ meta_description: "",
+ content: "",
+ banner_image: null,
+ },
+ });
+
+
+ const formData = watch()
+
+
+ useEffect(() => {
+ if (data?.data) {
+ setSelectedImage(
+ `${API_URL}/${data?.data?.banner_image}`
+ );
+ setValue("title", data?.data?.title);
+ setValue("meta_description", data?.data?.meta_description);
+ setValue("release_date", data?.data?.release_date);
+ setValue("content", data?.data?.content);
+ setValue("banner_image", data?.data?.banner_image);
+ }
+ }, [data, setValue]);
+
+ // console.log(errors);
+
+ const onSubmit = async (data) => {
+ setIsLoadingEdit(true);
+ const form = new FormData();
+ form.append("title", data?.title);
+ form.append("meta_description", data?.meta_description);
+ form.append("content", data?.content);
+ form.append("release_date", data?.release_date);
+ if (largeImageData !== null) {
+ form.append("banner_image", largeImageData);
+ }
+
+ await updateNews({ id: id, data: form })
+ .then((response) => {
+ if (response?.data?.statusCode === 200) {
+ setIsLoadingEdit(false);
+
+ toast({
+ render: () => (
+
+ ),
+ });
+ refetch();
+ navigate("/news");
+ // setDeleteAlert(false);
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setIsLoadingEdit(false);
+ // setDeleteIsLoading(false);
+ // setDeleteAlert(false);
+ });
+ reset();
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ return isLoading ? (
+
+ ) : (
+
+
+
+
+
+
+ Members Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Display profile
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {selectedImage === fallbackImage || largeImageData === null ? (
+ ""
+ ) : (
+
+
+ {largeImageData && largeImageData?.name}
+
+
+ {largeImageData &&
+ (largeImageData?.size / (1024 * 1024)).toFixed(2)}{" "}
+ mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default EditNews;
diff --git a/src/Pages/News/HelpAndSupport.jsx b/src/Pages/News/HelpAndSupport.jsx
new file mode 100644
index 0000000..61e1d01
--- /dev/null
+++ b/src/Pages/News/HelpAndSupport.jsx
@@ -0,0 +1,86 @@
+import React from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { Box, Text } from "@chakra-ui/react";
+import Header from "../../Components/Header";
+
+import { FaInstagram } from "react-icons/fa";
+import { FaFacebook } from "react-icons/fa";
+
+const HelpAndSupport = () => {
+ return (
+
+
+
+ Follow us on social!
+
+
+ {" "}
+
+ Instagram
+
+
+
+
+ {" "}
+
+ {" "}
+ facebook
+
+
+
+
+
+
+
+
+
+
+ General Inquiries
+
+
+
+ ideas@wdipl.com
+
+
+
+
+
+
+
+ Tanami v1.0.0
+
+
+
+ );
+};
+
+export default HelpAndSupport;
diff --git a/src/Pages/News/News.jsx b/src/Pages/News/News.jsx
new file mode 100644
index 0000000..56ffd57
--- /dev/null
+++ b/src/Pages/News/News.jsx
@@ -0,0 +1,265 @@
+import React, { useState } from "react";
+import {
+ Box,
+ Text,
+ Tooltip,
+ HStack,
+ Input,
+ Select,
+ Menu,
+ MenuButton,
+ MenuList,
+ MenuItem,
+ Switch,
+ Portal,
+ useToast,
+} from "@chakra-ui/react";
+import { ChevronLeftIcon, ChevronRightIcon } from "@chakra-ui/icons";
+import DataTable from "../../Components/DataTable/DataTable";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { Link as RouterLink } from "react-router-dom";
+import {
+ useDeleteNewsMutation,
+ useGetNewsQuery,
+ useUpdateNewsStatusMutation,
+} from "../../Services/api.service";
+import { HiDotsVertical } from "react-icons/hi";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import Header from "../../Components/Header";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import TabularView from "../../Components/TabularView/TabularView";
+import ToastBox from "../../Components/ToastBox";
+
+const News = () => {
+ // ====================================================[Hooks]===================================================================
+ const toast = useToast();
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+ // ====================================================[Constants]===================================================================
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(TABLE_PAGINATION?.page);
+ const [displayRange, setDisplayRange] = useState({
+ start: TABLE_PAGINATION?.page,
+ end: pageSize,
+ });
+ // ====================================================[RTK Hooks]===================================================================
+ const news = useGetNewsQuery({ page: currentPage, size: pageSize });
+ const [deleteNews] = useDeleteNewsMutation();
+ const [updateNewsStatus] = useUpdateNewsStatusMutation();
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (id) => {
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deleteNews(id)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error deleting community:", error);
+ }
+ };
+
+ const handleUpdateStatus = async (id) => {
+ try {
+ // Trigger the mutation
+ await updateNewsStatus({ id })
+ .then((response) => {
+ // console.log(response?.data);
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error updating community status:", error);
+ }
+ };
+ // ====================================================[Table Filter]================================================================
+ const filteredData = news?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.title;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Title",
+ "Description",
+ "Content",
+ "Release Data",
+ "Active",
+ "Created At",
+ ];
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ Title: {item?.title},
+ Description: (
+
+
+
+ {item?.meta_description}
+
+
+
+ ),
+ Content: (
+
+
+
+ {item?.content}
+
+
+
+ ),
+ "Release Data": (
+
+ {formatDate(item?.release_date)}
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id)}
+ isChecked={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+ // ====================================================[Pagination Setup]================================================================
+ const paginationPrev = () => {
+ if (currentPage > 1) {
+ setCurrentPage(currentPage - 1);
+ updateDisplayRange(currentPage - 1);
+ }
+ };
+
+ const paginationNext = () => {
+ const totalPages = Math.ceil(news?.data?.data?.totalItems / pageSize);
+ if (currentPage < totalPages) {
+ setCurrentPage(currentPage + 1);
+ updateDisplayRange(currentPage + 1);
+ }
+ };
+ const updateDisplayRange = (page) => {
+ const start = (page - 1) * pageSize + 1;
+ const end = Math.min(start + pageSize - 1, news?.data?.data?.totalItems);
+ setDisplayRange({ start, end });
+ };
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete news?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default News;
diff --git a/src/Pages/News/ViewNews.jsx b/src/Pages/News/ViewNews.jsx
new file mode 100644
index 0000000..05e9f41
--- /dev/null
+++ b/src/Pages/News/ViewNews.jsx
@@ -0,0 +1,140 @@
+import { Box, Divider, Image, Tag, useToast } from "@chakra-ui/react";
+import React from "react";
+import Header from "../../Components/Header";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import {
+ useGetNewsByIdQuery,
+ useGetNewsQuery,
+} from "../../Services/api.service";
+import { useNavigate, useParams } from "react-router-dom";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewNews = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetNewsByIdQuery(id);
+ // const { data, error, isLoading } = useGetNewsQuery();
+ const news = data?.data;
+
+ if (isLoading) {
+ return ;
+ }
+ return (
+
+
+
+
+
+
+ News Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ News Banner image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+
+
+
+
+
+
+ Status
+
+ {news?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+ Title
+ {news?.title}
+
+
+
+
+ Meta description
+
+
+ {news?.meta_description}
+
+
+
+
+
+ Content
+
+
+ {news?.content}
+
+
+
+
+
+ Created at
+
+
+ {formatDate(news?.createdAt)}
+
+
+
+
+
+ Updated at
+
+
+ {formatDate(news?.updatedAt)}
+
+
+
+
+ Release date
+
+
+ {formatDate(news?.release_date)}
+
+
+
+
+
+ );
+};
+
+export default ViewNews;
diff --git a/src/Pages/NoInternetScreen.jsx b/src/Pages/NoInternetScreen.jsx
new file mode 100644
index 0000000..2f14c0f
--- /dev/null
+++ b/src/Pages/NoInternetScreen.jsx
@@ -0,0 +1,22 @@
+import { Box, Image, Text } from '@chakra-ui/react'
+import noInternet from "../assets/Error.svg"
+
+const NoInternetScreen = () => {
+ return (
+
+
+ No Internet !
+
+
+ )
+}
+
+export default NoInternetScreen
\ No newline at end of file
diff --git a/src/Pages/NotFound.jsx b/src/Pages/NotFound.jsx
new file mode 100644
index 0000000..859fc43
--- /dev/null
+++ b/src/Pages/NotFound.jsx
@@ -0,0 +1,8 @@
+
+const NotFound = () => {
+ return (
+ NotFound
+ )
+}
+
+export default NotFound
\ No newline at end of file
diff --git a/src/Pages/Partners/AddPartners.jsx b/src/Pages/Partners/AddPartners.jsx
new file mode 100644
index 0000000..6a21941
--- /dev/null
+++ b/src/Pages/Partners/AddPartners.jsx
@@ -0,0 +1,363 @@
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Textarea,
+ useToast,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import Header from "../../Components/Header";
+import { useNavigate } from "react-router-dom";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import {
+ addPartnerCard,
+ addPolicy,
+ addTerms,
+ addWhitePapers,
+} from "../../Validations/Validations";
+import { TiWarning } from "react-icons/ti";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import {
+ useCreatePartnersMutation,
+ useCreatePolicyMutation,
+} from "../../Services/api.service";
+import ToastBox from "../../Components/ToastBox";
+import ReactQuill from "react-quill";
+
+const AddPartner = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [imageData, setImageData] = useState(null);
+ const [value, setValue] = useState("");
+
+ const [createPartner] = useCreatePartnersMutation();
+
+ // const termContent = data?.data;
+
+ const {
+ register,
+ handleSubmit,
+ watch,
+ reset,
+ // setValue: setYupFormValue,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addPartnerCard),
+ defaultValues: {
+ website_link: "",
+ description: "",
+ banner_image: "",
+ },
+ });
+
+ // console.log(errors);
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setImageData(file);
+ // setYupFormValue("banner_image", file);
+ // console.log(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = async (data) => {
+ // setYupFormValue("description", value);
+ try {
+ setIsLoading(true);
+ const formData = new FormData();
+ formData.append("website_link", data?.website_link);
+ formData.append("description", data?.description);
+ // console.log(selectedImage);
+ if (data?.banner_image) {
+ formData.append("banner_image", data?.banner_image[0]);
+ }
+ for (let [key, value] of formData.entries()) {
+ // console.log(key, value);
+ }
+ // Trigger the mutation
+ createPartner(formData)
+ .then((response) => {
+ // Handle the response here
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/partners");
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+
+ {selectedImage === fallbackImage || imageData === null ? (
+ ""
+ ) : (
+
+ {imageData?.name}
+
+ {(imageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default AddPartner;
diff --git a/src/Pages/Partners/EditPartners.jsx b/src/Pages/Partners/EditPartners.jsx
new file mode 100644
index 0000000..29d548e
--- /dev/null
+++ b/src/Pages/Partners/EditPartners.jsx
@@ -0,0 +1,366 @@
+import React, { useEffect, useState } from "react";
+import Header from "../../Components/Header";
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Text,
+ Textarea,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ useGetPartnersByIdQuery,
+ useGetPolicyByIdQuery,
+ useUpdatePartnersMutation,
+ useUpdatePolicyMutation,
+} from "../../Services/api.service";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { TiWarning } from "react-icons/ti";
+import { addPartnerCard, addPolicy } from "../../Validations/Validations";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { AttachmentIcon } from "@chakra-ui/icons";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { motion } from "framer-motion";
+import ToastBox from "../../Components/ToastBox";
+import ReactQuill from "react-quill";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const EditPartner = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading, refetch } = useGetPartnersByIdQuery(id);
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [updatePartners] = useUpdatePartnersMutation();
+ const [valueQuill, setValueQuill] = useState(data?.data?.content);
+
+ const {
+ register,
+ handleSubmit,
+ watch,
+ reset,
+ formState: { errors },
+ setValue,
+ } = useForm({
+ resolver: yupResolver(addPartnerCard),
+ defaultValues: {
+ website_link: "",
+ description: "",
+ banner_image: "",
+ },
+ });
+
+ const partnerCard = data?.data;
+ // // console.log(termContent);
+
+ useEffect(() => {
+ if (data?.data) {
+ setSelectedImage(
+ `${API_URL}/${data?.data?.company_logo}`
+ );
+ setValue("website_link", data?.data?.website_link);
+ setValue("description", data?.data?.description);
+ setValue("banner_image", data?.data?.banner_image);
+ // setValueQuill(data?.data?.content);
+ }
+ }, [data, setValue]);
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = async (data) => {
+ // console.log(data);
+
+ setIsLoadingEdit(true);
+ const form = new FormData();
+ form.append("website_link", data?.website_link);
+ form.append("description", data?.description);
+ if (data?.banner_image[0]) {
+ form.append("banner_image", data?.banner_image[0]);
+ }
+
+ // Log formData entries
+ for (let [key, value] of form.entries()) {
+ // console.log(`${key}: ${value}`);
+ }
+
+ await updatePartners({ id: id, data: form })
+ .then((response) => {
+ // // console.log(response?.error?.data?.error?.message);
+ if (response?.data?.statusCode === 200) {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ refetch();
+ reset();
+ navigate("/partners");
+ // setDeleteAlert(false);
+ } else {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setIsLoadingEdit(false);
+ // setDeleteIsLoading(false);
+ // setDeleteAlert(false);
+ });
+ };
+
+ // console.log(errors);
+ if (isLoading) {
+ return ;
+ }
+ return (
+
+
+
+
+
+
+
+ {selectedImage === fallbackImage || largeImageData === null ? (
+ ""
+ ) : (
+
+
+ {largeImageData && largeImageData?.name}
+
+
+ {largeImageData &&
+ (largeImageData?.size / (1024 * 1024)).toFixed(2)}{" "}
+ mb
+
+
+ )}
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default EditPartner;
diff --git a/src/Pages/Partners/Partner.jsx b/src/Pages/Partners/Partner.jsx
new file mode 100644
index 0000000..78381ec
--- /dev/null
+++ b/src/Pages/Partners/Partner.jsx
@@ -0,0 +1,261 @@
+import {
+ Box,
+ Image,
+ Menu,
+ MenuButton,
+ MenuItem,
+ MenuList,
+ Portal,
+ Switch,
+ Text,
+ Tooltip,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import {
+ useCreatePartnersMutation,
+ useDeletePartnersMutation,
+ useGetPartnersQuery,
+ useUpdatePartnersStatusMutation,
+} from "../../Services/api.service";
+import { useState } from "react";
+import TabularView from "../../Components/TabularView/TabularView";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import { HiDotsVertical } from "react-icons/hi";
+import { Link } from "react-router-dom";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import ToastBox from "../../Components/ToastBox";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+
+const Partner = () => {
+ const toast = useToast();
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(1);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [actionStatus, setActionStatus] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+
+ const partnersPage = useCreatePartnersMutation({
+ page: currentPage,
+ size: pageSize,
+ });
+
+ const partners = useGetPartnersQuery({
+ page: currentPage,
+ size: pageSize,
+ });
+
+ const [deletePartners] = useDeletePartnersMutation();
+ const [updatePartnerStatus] = useUpdatePartnersStatusMutation();
+
+ // console.log(partners?.data?.data?.rows);
+
+ const filteredData = partners?.data?.data?.rows?.filter((item) => {
+ // // console.log(item.description);
+ // Filter by name (case insensitive)
+ const name = item.description;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Title",
+ // "Content",
+ "Active",
+ "Created At",
+ ];
+
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ Title: (
+
+
+
+
+ {extractFilename(item?.description)}
+
+
+
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id, item?.status)}
+ isChecked={item.status}
+ // disabled={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ const handleDelete = async (communityId, status) => {
+ if (status) {
+ return toast({
+ render: () => (
+
+ ),
+ });
+ }
+
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ const response = await deletePartners(communityId);
+
+ // Handle the response here
+ // console.log("Mutation response:", response?.data?.statusCode);
+ // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ } catch (error) {
+ // console.error("Error deleting community:", error);
+ toast({
+ render: () => (
+
+ ),
+ });
+ } finally {
+ // Ensure the loading state is reset and alert is closed
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ }
+ };
+
+ const handleUpdateStatus = async (id) => {
+ try {
+ await updatePartnerStatus({ id })
+ .then((response) => {
+ // console.log(response?.data);
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ // whitePaper?.refetch()
+ }
+ })
+ .catch((error) => {
+ // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error updating community status:", error);
+ }
+ };
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete Partners?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default Partner;
diff --git a/src/Pages/Partners/ViewPartner.jsx b/src/Pages/Partners/ViewPartner.jsx
new file mode 100644
index 0000000..5e364bc
--- /dev/null
+++ b/src/Pages/Partners/ViewPartner.jsx
@@ -0,0 +1,101 @@
+import React from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { Box, Divider, Image, Tag, Text, useToast } from "@chakra-ui/react";
+import { useNavigate, useParams } from "react-router-dom";
+import Header from "../../Components/Header";
+import {
+ useGetPartnersByIdQuery,
+ useGetPolicyByIdQuery,
+} from "../../Services/api.service";
+import { AttachmentIcon } from "@chakra-ui/icons";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import pdf from "../../assets/pdfscreen.png";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewPartner = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetPartnersByIdQuery(id);
+ const viewPolicy = data?.data;
+
+ // console.log(viewPolicy);
+ // console.log(`https://rubix.betadelivery.com/${viewPolicy?.company_logo}`);
+
+ if (isLoading) {
+ return ;
+ }
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Status
+
+ {viewPolicy?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+
+ Description
+
+
+ {viewPolicy?.description}
+
+
+
+ Link
+
+ {viewPolicy?.website_link}
+
+
+
+
+
+
+
+ );
+};
+
+export default ViewPartner;
diff --git a/src/Pages/Policy/AddPolicy.jsx b/src/Pages/Policy/AddPolicy.jsx
new file mode 100644
index 0000000..03791d4
--- /dev/null
+++ b/src/Pages/Policy/AddPolicy.jsx
@@ -0,0 +1,352 @@
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ useToast,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import Header from "../../Components/Header";
+import { useNavigate } from "react-router-dom";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import {
+ addPolicy,
+ addTerms,
+ addWhitePapers,
+} from "../../Validations/Validations";
+import { TiWarning } from "react-icons/ti";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { useCreatePolicyMutation } from "../../Services/api.service";
+import ToastBox from "../../Components/ToastBox";
+import ReactQuill from "react-quill";
+
+const AddPolicy = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [imageData, setImageData] = useState(null);
+ const [value, setValue] = useState("");
+
+ const [createPolicy] = useCreatePolicyMutation();
+
+ // const termContent = data?.data;
+
+ const {
+ register,
+ handleSubmit,
+ watch,
+ reset,
+ setValue: setYupFormValue,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addPolicy),
+ defaultValues: {
+ title: "",
+ content: "",
+ banner_image: "",
+ },
+ });
+
+ // console.log(errors);
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setImageData(file);
+ // setYupFormValue("banner_image", file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = async (data) => {
+ setYupFormValue("content", value);
+ try {
+ setIsLoading(true);
+ const formData = new FormData();
+ formData.append("title", data?.title);
+ formData.append("content", data?.content);
+ if (selectedImage[0]) {
+ formData.append("banner_image", data?.image[0]);
+ }
+ // for (let [key, value] of formData.entries()) {
+ // // console.log(key, value);
+ // }
+ // Trigger the mutation
+ createPolicy(formData)
+ .then((response) => {
+ // Handle the response here
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/policy");
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+
+ {selectedImage === fallbackImage || imageData === null ? (
+ ""
+ ) : (
+
+ {imageData?.name}
+
+ {(imageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default AddPolicy;
diff --git a/src/Pages/Policy/EditPolicy.jsx b/src/Pages/Policy/EditPolicy.jsx
new file mode 100644
index 0000000..ad0a752
--- /dev/null
+++ b/src/Pages/Policy/EditPolicy.jsx
@@ -0,0 +1,342 @@
+import React, { useEffect, useState } from "react";
+import Header from "../../Components/Header";
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Text,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ useGetPolicyByIdQuery,
+ useUpdatePolicyMutation,
+} from "../../Services/api.service";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { TiWarning } from "react-icons/ti";
+import { addPolicy } from "../../Validations/Validations";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { AttachmentIcon } from "@chakra-ui/icons";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { motion } from "framer-motion";
+import ToastBox from "../../Components/ToastBox";
+import ReactQuill from "react-quill";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const EditPolicy = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetPolicyByIdQuery(id);
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [updatePolicy] = useUpdatePolicyMutation();
+ const [valueQuill, setValueQuill] = useState(data?.data?.content);
+
+ // console.log(valueQuill);
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ formState: { errors },
+ setValue,
+ } = useForm({
+ resolver: yupResolver(addPolicy),
+ defaultValues: {
+ title: "",
+ content: "",
+ banner_image: null,
+ },
+ });
+
+ const policyContent = data?.data;
+ // // console.log(termContent);
+
+ useEffect(() => {
+ if (data?.data) {
+ setSelectedImage(
+ `${API_URL}/${data?.data?.banner_image}`
+ );
+ setValue("title", data?.data?.title);
+ setValue("content", data?.data?.content);
+ setValue("banner_image", data?.data?.banner_image);
+ setValueQuill(data?.data?.content);
+ }
+ }, [data, setValue]);
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = async (data) => {
+ // console.log(data);
+
+ setIsLoadingEdit(true);
+ const form = new FormData();
+ form.append("title", data?.title);
+ form.append("content", valueQuill);
+ if (data?.banner_image[0]) {
+ form.append("banner_image", data?.image[0]);
+ }
+
+ // Log formData entries
+ for (let [key, value] of form.entries()) {
+ // console.log(`${key}: ${value}`);
+ }
+
+ await updatePolicy({ id: id, data: form })
+ .then((response) => {
+ // // console.log(response?.error?.data?.error?.message);
+ if (response?.data?.statusCode === 200) {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ reset();
+ navigate("/policy");
+ // setDeleteAlert(false);
+ } else {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setIsLoadingEdit(false);
+ // setDeleteIsLoading(false);
+ // setDeleteAlert(false);
+ });
+ };
+
+ // console.log(errors);
+ if (isLoading) {
+ return ;
+ }
+ return (
+
+
+
+
+
+
+
+ {selectedImage === fallbackImage || largeImageData === null ? (
+ ""
+ ) : (
+
+
+ {largeImageData && largeImageData?.name}
+
+
+ {largeImageData &&
+ (largeImageData?.size / (1024 * 1024)).toFixed(2)}{" "}
+ mb
+
+
+ )}
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default EditPolicy;
diff --git a/src/Pages/Policy/Policy.jsx b/src/Pages/Policy/Policy.jsx
new file mode 100644
index 0000000..05dbb8b
--- /dev/null
+++ b/src/Pages/Policy/Policy.jsx
@@ -0,0 +1,250 @@
+import {
+ Box,
+ Image,
+ Menu,
+ MenuButton,
+ MenuItem,
+ MenuList,
+ Portal,
+ Switch,
+ Text,
+ Tooltip,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import {
+ useCreatePolicyMutation,
+ useDeletePolicyMutation,
+ useGetPolicyQuery,
+ useUpdatePolicyStatusMutation,
+} from "../../Services/api.service";
+import { useState } from "react";
+import TabularView from "../../Components/TabularView/TabularView";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import { HiDotsVertical } from "react-icons/hi";
+import { Link } from "react-router-dom";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import ToastBox from "../../Components/ToastBox";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+
+const Policy = () => {
+ const toast = useToast();
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(1);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [actionStatus, setActionStatus] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+
+ const policyPage = useCreatePolicyMutation({
+ page: currentPage,
+ size: pageSize,
+ });
+
+ const policy = useGetPolicyQuery({
+ page: currentPage,
+ size: pageSize,
+ });
+
+ const [deletePolicy] = useDeletePolicyMutation();
+ const [updatePolicyStatus] = useUpdatePolicyStatusMutation();
+
+ const filteredData = policy?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.title;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Title",
+ // "Content",
+ "Active",
+ "Created At",
+ ];
+
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ Title: (
+
+
+
+
+ {extractFilename(item?.title)}
+
+
+
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id, item?.status)}
+ isChecked={item.status}
+ // disabled={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (communityId, status) => {
+ if (status) {
+ return toast({
+ render: () => (
+
+ ),
+ });
+ }
+
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deletePolicy(communityId)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.log("Error deleting community:", error);
+ }
+ };
+
+ const handleUpdateStatus = async (id) => {
+ try {
+ await updatePolicyStatus({ id })
+ .then((response) => {
+ // console.log(response?.data);
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ // whitePaper?.refetch()
+ }
+ })
+ .catch((error) => {
+ // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error updating community status:", error);
+ }
+ };
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete Policy?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default Policy;
diff --git a/src/Pages/Policy/ViewPolicy.jsx b/src/Pages/Policy/ViewPolicy.jsx
new file mode 100644
index 0000000..aa55c6d
--- /dev/null
+++ b/src/Pages/Policy/ViewPolicy.jsx
@@ -0,0 +1,98 @@
+import React from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { Box, Divider, Image, Tag, Text, useToast } from "@chakra-ui/react";
+import { useNavigate, useParams } from "react-router-dom";
+import Header from "../../Components/Header";
+import { useGetPolicyByIdQuery } from "../../Services/api.service";
+import { AttachmentIcon } from "@chakra-ui/icons";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import pdf from "../../assets/pdfscreen.png";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewPolicy = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetPolicyByIdQuery(id);
+ const viewPolicy = data?.data;
+
+ // console.log(viewPolicy?.banner_image);
+ // console.log(`https://rubix.betadelivery.com/${viewPolicy?.banner_image}`);
+
+ if (isLoading) {
+ return ;
+ }
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Status
+
+ {viewPolicy?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+ Title
+
+ {viewPolicy?.title}
+
+
+
+
+ Content
+
+
+ {viewPolicy?.content}
+
+
+
+
+
+
+
+ );
+};
+
+export default ViewPolicy;
diff --git a/src/Pages/Terms/AddTerms.jsx b/src/Pages/Terms/AddTerms.jsx
new file mode 100644
index 0000000..ac2e630
--- /dev/null
+++ b/src/Pages/Terms/AddTerms.jsx
@@ -0,0 +1,352 @@
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ useToast,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import Header from "../../Components/Header";
+import { useNavigate } from "react-router-dom";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { addTerms, addWhitePapers } from "../../Validations/Validations";
+import { TiWarning } from "react-icons/ti";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import {
+ useCreateTermsMutation,
+ useCreateWhitepaperMutation,
+ useGetTermsByIdQuery,
+} from "../../Services/api.service";
+import ToastBox from "../../Components/ToastBox";
+import ReactQuill from "react-quill";
+
+const AddTerms = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [imageData, setImageData] = useState(null);
+ const [value, setValue] = useState("");
+
+ const [createTerms] = useCreateTermsMutation();
+
+ // const termContent = data?.data;
+
+ const {
+ register,
+ handleSubmit,
+ watch,
+ reset,
+ setValue: setYupFormValue,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addTerms),
+ defaultValues: {
+ title: "",
+ content: "",
+ banner_image: "",
+ },
+ });
+
+ // console.log(errors);
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setImageData(file);
+ // setYupFormValue("banner_image", file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = async (data) => {
+ setYupFormValue("content", value);
+ try {
+ setIsLoading(true);
+ const formData = new FormData();
+ formData.append("title", data?.title);
+ formData.append("content", data?.content);
+ if (selectedImage[0]) {
+ formData.append("banner_image", data?.image[0]);
+ }
+ for (let [key, value] of formData.entries()) {
+ // console.log(key, value);
+ }
+ // Trigger the mutation
+ createTerms(formData)
+ .then((response) => {
+ // Handle the response here
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/terms");
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ } else {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+
+ {selectedImage === fallbackImage || imageData === null ? (
+ ""
+ ) : (
+
+ {imageData?.name}
+
+ {(imageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default AddTerms;
diff --git a/src/Pages/Terms/EditTerms.jsx b/src/Pages/Terms/EditTerms.jsx
new file mode 100644
index 0000000..a8d2324
--- /dev/null
+++ b/src/Pages/Terms/EditTerms.jsx
@@ -0,0 +1,356 @@
+import React, { useEffect, useState } from "react";
+import Header from "../../Components/Header";
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Text,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ useGetNewsByIdQuery,
+ useGetTermsByIdQuery,
+ useGetWhitepaperByIdQuery,
+ useUpdateTermsMutation,
+ useUpdateWhitepaperMutation,
+} from "../../Services/api.service";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { TiWarning } from "react-icons/ti";
+import { addTerms, addWhitePapers } from "../../Validations/Validations";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { AttachmentIcon } from "@chakra-ui/icons";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { motion } from "framer-motion";
+import ToastBox from "../../Components/ToastBox";
+import ReactQuill from "react-quill";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const EditTerms = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetTermsByIdQuery(id);
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [updateTerms] = useUpdateTermsMutation();
+
+ const {
+ register,
+ handleSubmit,
+ watch,
+ reset,
+ formState: { errors },
+ setValue,
+ } = useForm({
+ resolver: yupResolver(addTerms),
+ defaultValues: {
+ title: "",
+ content: "",
+ banner_image: null,
+ },
+ });
+
+ // console.log("----------", data?.data?.banner_image);
+
+ const termContent = data?.data;
+ // // console.log(termContent);
+ const [valueQuill, setValueQuill] = useState(termContent?.content);
+
+ useEffect(() => {
+ if (data?.data) {
+ setSelectedImage(
+ `${API_URL}/${data?.data?.banner_image}`
+ );
+ setValue("title", data?.data?.title);
+ setValue("content", data?.data?.content);
+ setValue("banner_image", data?.data?.banner_image);
+ setValueQuill(data?.data?.content);
+ }
+ }, [data, setValue]);
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = async (data) => {
+ // console.log(data);
+ setIsLoadingEdit(true);
+ const form = new FormData();
+ form.append("title", data?.title);
+ form.append("content", valueQuill);
+ if (data?.banner_image[0]) {
+ form.append("banner_image", data?.image[0]);
+ }
+
+ // Log formData entries
+ for (let [key, value] of form.entries()) {
+ // console.log(`${key}: ${value}`);
+ }
+
+ await updateTerms({ id: id, data: form })
+ .then((response) => {
+ // // console.log(response?.error?.data?.error?.message);
+ if (response?.data?.statusCode === 200) {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ reset();
+ navigate("/terms");
+ // setDeleteAlert(false);
+ } else {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setIsLoadingEdit(false);
+ // setDeleteIsLoading(false);
+ // setDeleteAlert(false);
+ });
+ };
+
+ // console.log(errors);
+ if (isLoading) {
+ return ;
+ }
+ return (
+
+
+
+
+
+
+
+ {selectedImage === fallbackImage || largeImageData === null ? (
+ ""
+ ) : (
+
+
+ {largeImageData && largeImageData?.name}
+
+
+ {largeImageData &&
+ (largeImageData?.size / (1024 * 1024)).toFixed(2)}{" "}
+ mb
+
+
+ )}
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default EditTerms;
diff --git a/src/Pages/Terms/Terms.jsx b/src/Pages/Terms/Terms.jsx
new file mode 100644
index 0000000..e625b9e
--- /dev/null
+++ b/src/Pages/Terms/Terms.jsx
@@ -0,0 +1,252 @@
+import {
+ Box,
+ Image,
+ Menu,
+ MenuButton,
+ MenuItem,
+ MenuList,
+ Portal,
+ Switch,
+ Text,
+ Tooltip,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import {
+ useCreateTermsMutation,
+ useDeleteTermsMutation,
+ useGetTermsQuery,
+ useGetWhitePaperQuery,
+ useUpdateTermsStatusMutation,
+ useUpdateWhitepaperStatusMutation,
+} from "../../Services/api.service";
+import { useState } from "react";
+import TabularView from "../../Components/TabularView/TabularView";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import { HiDotsVertical } from "react-icons/hi";
+import { Link } from "react-router-dom";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import ToastBox from "../../Components/ToastBox";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+
+const Terms = () => {
+ const toast = useToast();
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(1);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [actionStatus, setActionStatus] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+
+ const termsPage = useCreateTermsMutation({
+ page: currentPage,
+ size: pageSize,
+ });
+
+ const terms = useGetTermsQuery({
+ page: currentPage,
+ size: pageSize,
+ });
+
+ const [deletePolicy] = useDeleteTermsMutation();
+ const [updateTermsStatus] = useUpdateTermsStatusMutation();
+
+ const filteredData = terms?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.title;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Title",
+ // "Content",
+ "Active",
+ "Created At",
+ ];
+
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ Title: (
+
+
+
+
+ {extractFilename(item?.title)}
+
+
+
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id, item?.status)}
+ isChecked={item.status}
+ // disabled={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (communityId, status) => {
+ if (status) {
+ return toast({
+ render: () => (
+
+ ),
+ });
+ }
+
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deletePolicy(communityId)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.log("Error deleting community:", error);
+ }
+ };
+
+ const handleUpdateStatus = async (id) => {
+ try {
+ await updateTermsStatus({ id })
+ .then((response) => {
+ // console.log(response?.data);
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ // whitePaper?.refetch()
+ }
+ })
+ .catch((error) => {
+ // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error updating community status:", error);
+ }
+ };
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete Terms and condition?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default Terms;
diff --git a/src/Pages/Terms/ViewTerms.jsx b/src/Pages/Terms/ViewTerms.jsx
new file mode 100644
index 0000000..0a03ee9
--- /dev/null
+++ b/src/Pages/Terms/ViewTerms.jsx
@@ -0,0 +1,98 @@
+import React from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { Box, Divider, Image, Tag, Text, useToast } from "@chakra-ui/react";
+import { useNavigate, useParams } from "react-router-dom";
+import Header from "../../Components/Header";
+import { useGetTermsByIdQuery } from "../../Services/api.service";
+import { AttachmentIcon } from "@chakra-ui/icons";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import pdf from "../../assets/pdfscreen.png";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewTerms = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetTermsByIdQuery(id);
+ const viewTerms = data?.data;
+
+ // console.log(viewTerms?.banner_image);
+ // console.log(`https://rubix.betadelivery.com/${viewTerms?.banner_image}`);
+
+ if (isLoading) {
+ return ;
+ }
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Status
+
+ {viewTerms?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+ Title
+
+ {viewTerms?.title}
+
+
+
+
+ Content
+
+
+ {viewTerms?.content}
+
+
+
+
+
+
+
+ );
+};
+
+export default ViewTerms;
diff --git a/src/Pages/UnderConstruction.jsx b/src/Pages/UnderConstruction.jsx
new file mode 100644
index 0000000..d859231
--- /dev/null
+++ b/src/Pages/UnderConstruction.jsx
@@ -0,0 +1,25 @@
+import { Box, Image, Text } from '@chakra-ui/react'
+import React from 'react'
+import noInternet from "../assets/Error.svg"
+
+const UnderConstruction = () => {
+ return (
+
+
+
+ Comming soon...
+
+
+ )
+}
+
+export default UnderConstruction
\ No newline at end of file
diff --git a/src/Pages/Usecase/AddUseCase.jsx b/src/Pages/Usecase/AddUseCase.jsx
new file mode 100644
index 0000000..7908a0c
--- /dev/null
+++ b/src/Pages/Usecase/AddUseCase.jsx
@@ -0,0 +1,597 @@
+import {
+ Box,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Input,
+ Text,
+ Stack,
+ Textarea,
+ Heading,
+ Button,
+ useToast,
+ Divider,
+ Image,
+ Kbd,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { TiWarning } from "react-icons/ti";
+
+import { motion } from "framer-motion";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import {
+ addCommunityBannerSchema,
+ addCommunitySchema,
+ addNews,
+ addUsecase,
+} from "../../Validations/Validations";
+import {
+ useCreateCommunityBannerMutation,
+ useCreateCommunityMutation,
+ useCreateNewsMutation,
+ useCreateUsecaseMutation,
+ useGetCommunityQuery,
+} from "../../Services/api.service";
+import { useNavigate } from "react-router-dom";
+import Loader01 from "../../Components/Loaders/Loader01";
+import Header from "../../Components/Header";
+import ReactQuill from "react-quill";
+import ToastBox from "../../Components/ToastBox";
+
+const AddUseCase = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [createUsecase] = useCreateUsecaseMutation();
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [selectedIcon, setSelectedIcon] = useState(fallbackImage);
+ const [imageData, setImageData] = useState(null);
+ const [chips, setChips] = useState([]);
+ const [value, setValue] = useState("");
+ const [icon, setIcon] = useState(null);
+ const [iconData, setIconData] = useState(null);
+ const [metaDescription, setMetaDescription] = useState("");
+
+ const handleDescriptionChange = (e) => {
+ setMetaDescription(e.target.value);
+ };
+
+ const {
+ register,
+ handleSubmit,
+ watch,
+ reset,
+ setValue: setUseCaseValue,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addUsecase),
+ });
+
+
+ // console.log(errors);
+
+ const onSubmit = async (data) => {
+ setIsLoading(true);
+ setUseCaseValue("content", value);
+ // console.log(data);
+ // console.log(data);
+
+ const formData = new FormData();
+
+ // Append simple fields
+ formData.append("title", data.title);
+ formData.append("meta_description", data.meta_description);
+ formData.append("content", data.content);
+
+ if (data.banner_image && data.banner_image.length > 0) {
+ formData.append("banner_image", data.banner_image[0]);
+ }
+
+ if (data.icon && data.icon.length > 0) {
+ formData.append("icon", data.icon[0]);
+ }
+
+ // console.log(data.attachment);
+
+
+
+
+ // Log and append file attachments
+ if (data.attachment && data.attachment.length > 0) {
+ Array.from(data.attachment).forEach((file, index) => {
+ formData.append("attachment", file);
+ });
+ }
+
+
+ // Log formData entries
+ // for (let [key, value] of formData.entries()) {
+ // // console.log(`${key}: ${value}`);
+ // }
+
+ try {
+ // Trigger the mutation
+ createUsecase(formData)
+ .then((response) => {
+ // Handle the response here
+ // console.log("Mutation response:", response);
+ // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ setIsLoading(false)
+ navigate("/usecase");
+ } else if(response?.error?.status === 500){
+ // console.log(response?.error?.data?.error?.message);
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ }
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const handleIconChange = (e) => {
+ const file = e.target.files[0];
+ setIconData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedIcon(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+ Usecase Image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {selectedImage === fallbackImage || imageData === null ? (
+ ""
+ ) : (
+
+ {imageData?.name}
+
+ {(imageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ {selectedIcon === fallbackImage || iconData === null ? (
+ ""
+ ) : (
+
+ {iconData?.name}
+
+ {(iconData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default AddUseCase;
diff --git a/src/Pages/Usecase/EditUseCase.jsx b/src/Pages/Usecase/EditUseCase.jsx
new file mode 100644
index 0000000..8c7a829
--- /dev/null
+++ b/src/Pages/Usecase/EditUseCase.jsx
@@ -0,0 +1,603 @@
+import React, { useEffect, useState } from "react";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ Textarea,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ useToast,
+ Kbd,
+} from "@chakra-ui/react";
+import {
+ useGetUsecaseByIdQuery,
+ useUpdateUsecaseMutation,
+} from "../../Services/api.service";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { editUsecase } from "../../Validations/Validations";
+import fallbackImage from "../../assets/fallBackImage.png";
+import fallbackImageLarge from "../../assets/ultp-fallback-img.webp";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { TiWarning } from "react-icons/ti";
+import ReactQuill from "react-quill";
+import ChipSelector from "../../Components/ChipSelector/ChipSelector";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import Header from "../../Components/Header";
+import ToastBox from "../../Components/ToastBox";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const EditUseCase = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [updateBlog] = useUpdateUsecaseMutation();
+ const { data, error, isLoading } = useGetUsecaseByIdQuery(id);
+ const blog = data?.data;
+ const [isLoading01, setIsLoading01] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImageLarge);
+ const [selectedImageLarge, setSelectedImageLarge] =
+ useState(fallbackImageLarge);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [smallImageData, setSmallImageData] = useState(null);
+ const [chips, setChips] = useState();
+ const [metaDescription, setMetaDescription] = useState("");
+
+ const handleDescriptionChange = (e) => {
+ setMetaDescription(e.target.value);
+ };
+
+ const [valueQuill, setValueQuill] = useState(blog?.content);
+
+ const {
+ register,
+ handleSubmit,
+ watch,
+ reset,
+ formState: { errors },
+ setValue,
+ } = useForm({
+ resolver: yupResolver(editUsecase),
+ defaultValues: {
+ title: blog?.title,
+ meta_description: blog?.meta_description,
+ content: blog?.content,
+ // banner_image: null,
+ // icon: null,
+ // attachment: null,
+ },
+ });
+
+ useEffect(() => {
+ if (data?.data) {
+ setSelectedImage(`${API_URL}/${blog?.icon}`);
+ setSelectedImageLarge(
+ `${API_URL}/${blog?.bannerImage}`
+ );
+ setValue("meta_description", blog?.meta_description);
+ setValue("title", blog?.title);
+ setValue("content", blog?.content);
+ setValue("attachment", blog?.attachment);
+ setValueQuill(blog?.content);
+ }
+ }, [data, blog, setValue]);
+
+ const onSubmit = async (data) => {
+ const formData = new FormData();
+ formData.append("meta_description", data.meta_description);
+ formData.append("title", data.title);
+ formData.append("category", data.category);
+ formData.append("summary", data.summary);
+ formData.append("content", valueQuill); // Add the content to formData
+ if (data?.banner_image[0] || selectedImageLarge !== fallbackImageLarge) {
+ formData.append("banner_image", data.banner_image[0]);
+ }
+ if (data?.icon[0]) {
+ formData.append("icon", data.icon[0]);
+ }
+ if (data?.attachment !== blog?.attachment) {
+ Array.from(data?.attachment).forEach((file, index) => {
+ formData.append(`attachment`, file);
+ });
+ }
+
+ try {
+ setIsLoading01(true);
+ updateBlog({ id: id, data: formData })
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+ // console.log(response);
+
+ if (response?.data?.statusCode === 200) {
+ setIsLoading01(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/usecase");
+ } else if (response?.error?.status === 500) {
+ setIsLoading01(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading01(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ }
+ };
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setSmallImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const handleImageChangeLarge = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ // console.log(largeImageData);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImageLarge(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ if (isLoading) {
+ return ;
+ }
+ return (
+
+
+
+
+
+ Usecase Image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {selectedImageLarge === fallbackImage || largeImageData === null ? (
+ ""
+ ) : (
+
+ {largeImageData?.name}
+
+ {(largeImageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ Icon Image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+ {selectedImage === fallbackImage || smallImageData === null ? (
+ ""
+ ) : (
+
+ {smallImageData?.name}
+
+ {(smallImageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default EditUseCase;
diff --git a/src/Pages/Usecase/Usecase.jsx b/src/Pages/Usecase/Usecase.jsx
new file mode 100644
index 0000000..d8950e5
--- /dev/null
+++ b/src/Pages/Usecase/Usecase.jsx
@@ -0,0 +1,271 @@
+import React, { useState } from "react";
+import {
+ Box,
+ Text,
+ Tooltip,
+ HStack,
+ Input,
+ Select,
+ Menu,
+ MenuButton,
+ MenuList,
+ MenuItem,
+ Switch,
+ Portal,
+ useToast,
+ Image,
+ Avatar,
+} from "@chakra-ui/react";
+import { ChevronLeftIcon, ChevronRightIcon } from "@chakra-ui/icons";
+import DataTable from "../../Components/DataTable/DataTable";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { Link as RouterLink } from "react-router-dom";
+import {
+ useDeleteEcoBannerMutation,
+ useDeleteNewsMutation,
+ useDeleteUsecaseMutation,
+ useGetNewsQuery,
+ useGetUsecaseQuery,
+ useUpdateNewsStatusMutation,
+ useUpdateUsecaseStatusMutation,
+} from "../../Services/api.service";
+import { HiDotsVertical } from "react-icons/hi";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import Header from "../../Components/Header";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import TabularView from "../../Components/TabularView/TabularView";
+import ToastBox from "../../Components/ToastBox";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const Usecase = () => {
+ // ====================================================[Hooks]===================================================================
+ const toast = useToast();
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+ // ====================================================[Constants]===================================================================
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(TABLE_PAGINATION?.page);
+ const [displayRange, setDisplayRange] = useState({
+ start: TABLE_PAGINATION?.page,
+ end: pageSize,
+ });
+ // ====================================================[RTK Hooks]===================================================================
+ const useCase = useGetUsecaseQuery({ page: currentPage, size: pageSize });
+
+ const [deleteUsecase] = useDeleteUsecaseMutation();
+ const [updateUsecaseStatus] = useUpdateUsecaseStatusMutation();
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (id) => {
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deleteUsecase(id)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error deleting community:", error);
+ }
+ };
+
+ const handleUpdateStatus = async (id) => {
+ try {
+ // Trigger the mutation
+ await updateUsecaseStatus({ id })
+ .then((response) => {
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error updating community status:", error);
+ }
+ };
+ // ====================================================[Table Filter]================================================================
+ const filteredData = useCase?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.title;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ // "Icon",
+ "Title",
+ "Description",
+ "Updated Date",
+ "Active",
+ "Created At",
+ ];
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ Title: (
+
+
+
+ {item?.title}
+
+
+ ),
+ // Title: {item?.title},
+ Description: (
+
+
+
+ {item?.meta_description}
+
+
+
+ ),
+ // Content: (
+ //
+ //
+ //
+ // {item?.content}
+ //
+ //
+ //
+ // ),
+ "Updated Date": (
+
+ {formatDate(item?.updatedAt)}
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id)}
+ isChecked={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ const updateDisplayRange = (page) => {
+ const start = (page - 1) * pageSize + 1;
+ const end = Math.min(start + pageSize - 1, useCase?.data?.data?.totalItems);
+ setDisplayRange({ start, end });
+ };
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete usecase?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default Usecase;
diff --git a/src/Pages/Usecase/ViewUseCase.jsx b/src/Pages/Usecase/ViewUseCase.jsx
new file mode 100644
index 0000000..a1fd13b
--- /dev/null
+++ b/src/Pages/Usecase/ViewUseCase.jsx
@@ -0,0 +1,164 @@
+import { Box, Divider, Image, Tag, Text, useToast } from "@chakra-ui/react";
+import React from "react";
+import Header from "../../Components/Header";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import {
+ useGetUsecaseByIdQuery,
+} from "../../Services/api.service";
+import { useNavigate, useParams } from "react-router-dom";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewUseCase = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetUsecaseByIdQuery(id);
+ const usecase = data?.data;
+
+ if (isLoading) {
+ return ;
+ }
+
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ Icon image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+
+
+
+ Usecase Banner image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Status
+
+ {usecase?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+ Title
+ {usecase?.title}
+
+
+
+
+ Usecase description
+
+
+ {usecase?.meta_description}
+
+
+
+
+
+ Content
+
+
+
+
+
+
+
+
+ Created at
+
+
+ {formatDate(usecase?.createdAt)}
+
+
+
+
+
+ Updated at
+
+
+ {formatDate(usecase?.updatedAt)}
+
+
+
+
+
+
+
+ );
+};
+
+export default ViewUseCase;
diff --git a/src/Pages/Videos/AddVideos.jsx b/src/Pages/Videos/AddVideos.jsx
new file mode 100644
index 0000000..12d0e92
--- /dev/null
+++ b/src/Pages/Videos/AddVideos.jsx
@@ -0,0 +1,393 @@
+import { Box, Button, Divider, FormControl, FormHelperText, FormLabel, Heading, Image, Input, Stack, Textarea, useToast } from "@chakra-ui/react";
+import React, { useState } from "react";
+import { useNavigate } from "react-router-dom";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import Header from "../../Components/Header";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { addNews, addVideos } from "../../Validations/Validations";
+import { TiWarning } from "react-icons/ti";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { useCreateVideosMutation } from "../../Services/api.service";
+import ToastBox from "../../Components/ToastBox";
+
+const AddVideos = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [createVideos] = useCreateVideosMutation();
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [imageData, setImageData] = useState(null);
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ watch,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addVideos),
+ });
+
+ const formData = watch();
+
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+
+
+ const onSubmit = async (data) => {
+ // const date = new Date(data?.release_date).toUTCString();
+ try {
+ setIsLoading(true);
+ const formData = new FormData();
+ formData.append("title", data.title);
+ formData.append("description", data.description);
+ formData.append("duration", data.duration);
+ formData.append("embeddedCode", data.embeddedCode);
+ if (data.thumbnail[0]) {
+ formData.append("thumbnail", data.thumbnail[0]);
+ }
+
+ for (const [key, value] of formData.entries()) {
+ // console.log(`${key}: ${value}`);
+ }
+ // Trigger the mutation
+ createVideos(formData)
+ .then((response) => {
+ if (response?.data?.statusCode === 201) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/videos");
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ }
+ // console.log(data);
+ };
+
+
+ return (
+
+
+
+
+
+
+ Banner info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Banner image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {selectedImage === fallbackImage || imageData === null ? (
+ ""
+ ) : (
+
+ {imageData?.name}
+
+ {(imageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default AddVideos;
diff --git a/src/Pages/Videos/EditVideos.jsx b/src/Pages/Videos/EditVideos.jsx
new file mode 100644
index 0000000..4587bb3
--- /dev/null
+++ b/src/Pages/Videos/EditVideos.jsx
@@ -0,0 +1,450 @@
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Tag,
+ Textarea,
+ useToast,
+} from "@chakra-ui/react";
+import React, { useEffect, useState } from "react";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ useGetVideosByIdQuery,
+ useUpdateVideosMutation,
+} from "../../Services/api.service";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import Header from "../../Components/Header";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { addVideos } from "../../Validations/Validations";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { motion } from "framer-motion";
+import { TiWarning } from "react-icons/ti";
+import ToastBox from "../../Components/ToastBox";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const EditVideos = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetVideosByIdQuery(id);
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [updateVideos] = useUpdateVideosMutation();
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ formState: { errors },
+ setValue,
+ watch,
+ } = useForm({
+ resolver: yupResolver(addVideos),
+ defaultValues: {
+ title: "",
+ description: "",
+ duration: "",
+ embeddedCode: "",
+ thumbnail: null,
+ },
+ });
+
+ const formData = watch()
+
+ useEffect(() => {
+ if (data?.data?.data) {
+ setSelectedImage(
+ `${API_URL}/${data?.data?.data?.thumbnail}`
+ );
+ setValue("title", data?.data?.data?.title);
+ setValue("description", data?.data?.data?.description);
+ setValue("duration", data?.data?.data?.duration);
+ setValue("embeddedCode", data?.data?.data?.embeddedCode);
+ setValue("thumbnail", data?.data?.data?.thumbnail);
+ }
+ }, [data, setValue]);
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = async (data) => {
+ setIsLoadingEdit(true);
+ const form = new FormData();
+ form.append("title", data?.title);
+ form.append("description", data?.description);
+ form.append("duration", data?.duration);
+ form.append("embeddedCode", data?.embeddedCode);
+ if (largeImageData !== null) {
+ form.append("thumbnail", largeImageData);
+ }
+ await updateVideos({ id: id, data: form })
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setIsLoadingEdit(false);
+
+ toast({
+ render: () => (
+
+ ),
+ });
+ navigate("/videos");
+ // setDeleteAlert(false);
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setIsLoadingEdit(false);
+ // setDeleteIsLoading(false);
+ // setDeleteAlert(false);
+ });
+ reset();
+ };
+
+ return isLoading ? (
+
+ ) : (
+
+
+
+
+
+
+ Members Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Display profile
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {selectedImage === fallbackImage || largeImageData === null ? (
+ ""
+ ) : (
+
+
+ {largeImageData && largeImageData?.name}
+
+
+ {largeImageData &&
+ (largeImageData?.size / (1024 * 1024)).toFixed(2)}{" "}
+ mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default EditVideos;
diff --git a/src/Pages/Videos/Videos.jsx b/src/Pages/Videos/Videos.jsx
new file mode 100644
index 0000000..b6c5154
--- /dev/null
+++ b/src/Pages/Videos/Videos.jsx
@@ -0,0 +1,244 @@
+import {
+ Box,
+ HStack,
+ Image,
+ Input,
+ Menu,
+ MenuButton,
+ MenuItem,
+ MenuList,
+ Portal,
+ Select,
+ Switch,
+ Text,
+ Tooltip,
+ useToast,
+} from "@chakra-ui/react";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import {
+ useDeleteVideosMutation,
+ useGetVideosQuery,
+ useUpdateVideosStatusMutation,
+} from "../../Services/api.service";
+import { useState } from "react";
+import Header from "../../Components/Header";
+import { ChevronLeftIcon, ChevronRightIcon } from "@chakra-ui/icons";
+import DataTable from "../../Components/DataTable/DataTable";
+import TabularView from "../../Components/TabularView/TabularView";
+import { HiDotsVertical } from "react-icons/hi";
+import { Link } from "react-router-dom";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import ToastBox from "../../Components/ToastBox";
+
+const Videos = () => {
+ const toast = useToast();
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(1);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+
+ const videos = useGetVideosQuery({ page: currentPage, size: pageSize });
+ const [deleteVideos] = useDeleteVideosMutation();
+ const [updateVideoStatus] = useUpdateVideosStatusMutation();
+
+ const filteredData = videos?.data?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.title;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Title",
+ "Description",
+ "Duration",
+ "Active",
+ "Created At",
+ ];
+
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+ Title: (
+
+
+
+ {item?.title}
+
+
+
+ ),
+ Description: (
+
+
+
+ {item?.description}
+
+
+
+ ),
+ Duration: (
+
+ {item?.duration} sec
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id, item?.status)}
+ isChecked={item.status}
+ // disabled={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (communityId) => {
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deleteVideos(communityId)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.log("Error deleting community:", error);
+ }
+ };
+
+ const handleUpdateStatus = async (id) => {
+ try {
+ // Trigger the mutation
+ await updateVideoStatus({ id })
+ .then((response) => {
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error updating community status:", error);
+ }
+ };
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete video?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default Videos;
+
+// Event & Community Pending
diff --git a/src/Pages/Videos/ViewVideos.jsx b/src/Pages/Videos/ViewVideos.jsx
new file mode 100644
index 0000000..c193e92
--- /dev/null
+++ b/src/Pages/Videos/ViewVideos.jsx
@@ -0,0 +1,183 @@
+import { Box, Divider, Image, Tag, useToast } from "@chakra-ui/react";
+import React from "react";
+import { useNavigate, useParams } from "react-router-dom";
+import { useGetVideosByIdQuery } from "../../Services/api.service";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import Header from "../../Components/Header";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewVideos = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetVideosByIdQuery(id);
+ const videos = data?.data?.data;
+ // console.log(videos);
+
+ if (isLoading) {
+ return ;
+ }
+ return (
+
+
+
+
+
+
+ Video Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Video thumbnail image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+
+
+
+
+
+
+ Status
+
+ {videos?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+ Title
+
+ {videos?.title}
+
+
+
+
+
+ videos description
+
+
+ {videos?.description}
+
+
+
+
+
+
+
+ videos duration
+
+
+ {videos?.duration}
+
+
+
+
+
+
+
+
+ Video
+
+
+
+
+
+ {/* */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default ViewVideos;
diff --git a/src/Pages/WelcomePage.jsx b/src/Pages/WelcomePage.jsx
new file mode 100644
index 0000000..b04a4dc
--- /dev/null
+++ b/src/Pages/WelcomePage.jsx
@@ -0,0 +1,18 @@
+import { Box, Text } from "@chakra-ui/react";
+import React from "react";
+import welcome from '../Images/welcomeBanner.gif'
+
+const WelcomePage = () => {
+ return (
+
+
+ );
+};
+
+export default WelcomePage;
diff --git a/src/Pages/Whitepapers/AddWhitepapers.jsx b/src/Pages/Whitepapers/AddWhitepapers.jsx
new file mode 100644
index 0000000..e029feb
--- /dev/null
+++ b/src/Pages/Whitepapers/AddWhitepapers.jsx
@@ -0,0 +1,341 @@
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ useToast,
+} from "@chakra-ui/react";
+import React, { useState } from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import Header from "../../Components/Header";
+import { useNavigate } from "react-router-dom";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { addWhitePapers } from "../../Validations/Validations";
+import { TiWarning } from "react-icons/ti";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { useForm } from "react-hook-form";
+import { motion } from "framer-motion";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { useCreateWhitepaperMutation } from "../../Services/api.service";
+import ToastBox from "../../Components/ToastBox";
+
+const AddWhitepapers = () => {
+ const toast = useToast();
+ const navigate = useNavigate();
+ const [isLoading, setIsLoading] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [imageData, setImageData] = useState(null);
+
+ const [createWhitepaper] = useCreateWhitepaperMutation();
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ watch,
+ formState: { errors },
+ } = useForm({
+ resolver: yupResolver(addWhitePapers),
+ });
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = async (data) => {
+ try {
+ setIsLoading(true);
+ const formData = new FormData();
+ formData.append("title", data.title);
+ if (data.image[0]) {
+ formData.append("image", data.image[0]);
+ }
+ if (data.document[0]) {
+ formData.append("document", data.document[0]);
+ }
+ // Trigger the mutation
+ createWhitepaper(formData)
+ .then((response) => {
+ // Handle the response here
+
+ if (response?.data?.statusCode === 201) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ reset();
+ navigate("/whitepaper");
+ } else if (response?.data?.statusCode === 500) {
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ // Handle error notification if needed
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error creating community:", error);
+ setIsLoading(false);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+ Whitepaper Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Whitepaper Banner image
+
+
+ Below is the whitepaper Banner image that will be whitepaper on the
+ community page.
+
+
+
+
+ {selectedImage === fallbackImage || imageData === null ? (
+ ""
+ ) : (
+
+ {imageData?.name}
+
+ {(imageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ );
+};
+
+export default AddWhitepapers;
diff --git a/src/Pages/Whitepapers/EditWhitepaper.jsx b/src/Pages/Whitepapers/EditWhitepaper.jsx
new file mode 100644
index 0000000..3f56811
--- /dev/null
+++ b/src/Pages/Whitepapers/EditWhitepaper.jsx
@@ -0,0 +1,370 @@
+import React, { useEffect, useState } from "react";
+import Header from "../../Components/Header";
+import {
+ Box,
+ Button,
+ Divider,
+ FormControl,
+ FormHelperText,
+ FormLabel,
+ Heading,
+ Image,
+ Input,
+ Stack,
+ Text,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import fallbackImage from "../../assets/ultp-fallback-img.webp";
+import { useNavigate, useParams } from "react-router-dom";
+import {
+ useGetNewsByIdQuery,
+ useGetWhitepaperByIdQuery,
+ useUpdateWhitepaperMutation,
+} from "../../Services/api.service";
+import { useForm } from "react-hook-form";
+import { yupResolver } from "@hookform/resolvers/yup";
+import { TiWarning } from "react-icons/ti";
+import { addWhitePapers } from "../../Validations/Validations";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import { AttachmentIcon } from "@chakra-ui/icons";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import Loader01 from "../../Components/Loaders/Loader01";
+import { motion } from "framer-motion";
+import ToastBox from "../../Components/ToastBox";
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const EditWhitepaper = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetWhitepaperByIdQuery(id);
+ const [isLoadingEdit, setIsLoadingEdit] = useState(false);
+ const [selectedImage, setSelectedImage] = useState(fallbackImage);
+ const [largeImageData, setLargeImageData] = useState(null);
+ const [updateWhitepaper] = useUpdateWhitepaperMutation();
+
+ const {
+ register,
+ handleSubmit,
+ reset,
+ watch,
+ formState: { errors },
+ setValue,
+ } = useForm({
+ resolver: yupResolver(addWhitePapers),
+ defaultValues: {
+ title: "",
+ image: null,
+ },
+ });
+
+ useEffect(() => {
+ if (data?.data?.data) {
+ setSelectedImage(
+ `${API_URL}/${data?.data?.data?.bannerImage}`
+ );
+ setValue("title", data?.data?.data?.title);
+ setValue("image", data?.data?.data?.image);
+ setValue("bannerImage", data?.data?.data?.bannerImage);
+ }
+ }, [data, setValue]);
+
+ const handleImageChange = (e) => {
+ const file = e.target.files[0];
+ setLargeImageData(file);
+ if (file) {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ setSelectedImage(reader.result);
+ };
+ reader.readAsDataURL(file);
+ }
+ };
+
+ const onSubmit = async (data) => {
+ // console.log(data);
+ setIsLoadingEdit(true);
+ const form = new FormData();
+ form.append("title", data?.title);
+ if (data.document[0]) {
+ form.append("document", data.document[0]);
+ }
+ if (data?.image[0]) {
+ form.append("image", data?.image[0]);
+ }
+// Log formData entries
+for (let [key, value] of form.entries()) {
+ // console.log(`${key}: ${value}`);
+}
+
+ await updateWhitepaper({ id: id, data: form })
+ .then((response) => {
+ if (response?.data?.statusCode === 201) {
+ setIsLoadingEdit(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ navigate("/whitepaper");
+ // setDeleteAlert(false);
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setIsLoadingEdit(false);
+ // setDeleteIsLoading(false);
+ // setDeleteAlert(false);
+ });
+ reset();
+ };
+
+ if (isLoading) {
+ return ;
+ }
+ return (
+
+
+
+
+
+
+ Members Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Display profile
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+ {selectedImage === fallbackImage || largeImageData === null ? (
+ ""
+ ) : (
+
+
+ {largeImageData && largeImageData?.name}
+
+
+ {largeImageData &&
+ (largeImageData?.size / (1024 * 1024)).toFixed(2)}{" "}
+ mb
+
+
+ )}
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default EditWhitepaper;
diff --git a/src/Pages/Whitepapers/ViewWhitePaper.jsx b/src/Pages/Whitepapers/ViewWhitePaper.jsx
new file mode 100644
index 0000000..381142b
--- /dev/null
+++ b/src/Pages/Whitepapers/ViewWhitePaper.jsx
@@ -0,0 +1,111 @@
+import React from "react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { Box, Divider, Image, Tag, Text, useToast } from "@chakra-ui/react";
+import { useNavigate, useParams } from "react-router-dom";
+import Header from "../../Components/Header";
+import { useGetWhitepaperByIdQuery } from "../../Services/api.service";
+import { AttachmentIcon } from "@chakra-ui/icons";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+import FullscreenLoaders from "../../Components/Loaders/FullscreenLoaders";
+import pdf from "../../assets/pdfscreen.png"
+const API_URL = import.meta.env.VITE_API_BASE_URL;
+
+const ViewWhitePaper = () => {
+ const { id } = useParams();
+ const toast = useToast();
+ const navigate = useNavigate();
+ const { data, error, isLoading } = useGetWhitepaperByIdQuery(id);
+ const whitepaper = data?.data?.data;
+ // console.log(whitepaper?.document);
+
+ if (isLoading) {
+ return ;
+ }
+
+ return (
+
+
+
+
+
+
+ Whitepaper Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+
+
+
+ Whitepaper Banner image
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+
+
+
+
+
+
+ Status
+
+ {whitepaper?.status ? (
+
+ Active
+
+ ) : (
+
+ Inactive
+
+ )}
+
+
+
+ Title
+ {whitepaper?.title}
+
+
+
+
+ Document
+
+ {extractFilename(whitepaper?.document)}
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default ViewWhitePaper;
diff --git a/src/Pages/Whitepapers/Whitepapers.jsx b/src/Pages/Whitepapers/Whitepapers.jsx
new file mode 100644
index 0000000..096b1a0
--- /dev/null
+++ b/src/Pages/Whitepapers/Whitepapers.jsx
@@ -0,0 +1,257 @@
+import {
+ Box,
+ Image,
+ Menu,
+ MenuButton,
+ MenuItem,
+ MenuList,
+ Portal,
+ Switch,
+ Text,
+ Tooltip,
+ useToast,
+} from "@chakra-ui/react";
+import { OPACITY_ON_LOAD } from "../../Layout/animations";
+import { TABLE_PAGINATION } from "../../Constants/Paginations";
+import {
+ useDeleteWhitepaperMutation,
+ useGetWhitePaperQuery,
+ useUpdateWhitepaperStatusMutation,
+} from "../../Services/api.service";
+import { useState } from "react";
+import TabularView from "../../Components/TabularView/TabularView";
+import CustomAlertDialog from "../../Components/CustomAlertDialog";
+import { HiDotsVertical } from "react-icons/hi";
+import { Link } from "react-router-dom";
+import { formatDate } from "../../Components/Functions/UTCConvertor";
+import ToastBox from "../../Components/ToastBox";
+import extractFilename from "../../Components/Functions/FileNameAlter";
+
+const Whitepapers = () => {
+ const toast = useToast();
+ const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
+ const [currentPage, setCurrentPage] = useState(1);
+ const [searchTerm, setSearchTerm] = useState("");
+ const [statusFilter, setStatusFilter] = useState("all");
+
+ const [deleteAlert, setDeleteAlert] = useState(false);
+ const [actionId, setActionId] = useState(null);
+ const [actionStatus, setActionStatus] = useState(null);
+ const [deleteIsLoading, setDeleteIsLoading] = useState(false);
+
+ const whitePaper = useGetWhitePaperQuery({
+ page: currentPage,
+ size: pageSize,
+ });
+ const [deleteWhitepaper] = useDeleteWhitepaperMutation();
+ const [updateWhitepaperStatus] = useUpdateWhitepaperStatusMutation();
+
+ const filteredData = whitePaper?.data?.data?.data?.rows?.filter((item) => {
+ // Filter by name (case insensitive)
+ const name = item.title;
+ const searchLower = searchTerm.toLowerCase();
+ const nameMatches = name.toLowerCase().includes(searchLower);
+
+ // Filter by status
+ const status = item.status;
+
+ const statusMatches =
+ statusFilter === "all" ||
+ (statusFilter === "active" && status === true) ||
+ (statusFilter === "inactive" && status === false);
+
+ return nameMatches && statusMatches;
+ });
+
+
+
+ // ====================================================[Table Setup]================================================================
+ const tableHeadRow = [
+ "Title",
+ "Document",
+ "Active",
+ "Created At",
+ ];
+
+ const extractedArray = filteredData?.map((item, index) => {
+ return {
+
+ Title: (
+
+
+
+ {item?.title}
+
+ ),
+ Document: (
+
+
+
+ {extractFilename(item?.document)}
+
+
+
+ ),
+ Active: (
+ handleUpdateStatus(item.id, item?.status)}
+ isChecked={item.status}
+ // disabled={item.status}
+ />
+ ),
+ "Created At": (
+
+
+ {formatDate(item?.createdAt)}
+
+
+
+ ),
+ };
+ });
+
+ // ====================================================[Functions]===================================================================
+ const handleDelete = async (communityId, status) => {
+ if (status) {
+ return toast({
+ render: () => (
+
+ ),
+ });
+ }
+
+ try {
+ // Trigger the mutation
+ setDeleteIsLoading(true);
+ await deleteWhitepaper(communityId)
+ .then((response) => {
+ // Handle the response here
+ // // console.log("Mutation response:", response?.data?.statusCode);
+ // // console.log("Mutation response:", response?.data?.message);
+
+ if (response?.data?.statusCode === 201) {
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+ }
+ })
+ .catch((error) => {
+ // console.error("Error creating community:", error);
+ setDeleteIsLoading(false);
+ setDeleteAlert(false);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.log("Error deleting community:", error);
+ }
+ };
+
+ const handleUpdateStatus = async (id) => {
+ try {
+ await updateWhitepaperStatus({ id })
+ .then((response) => {
+ // console.log(response?.data);
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => (
+
+ ),
+ });
+
+ // whitePaper?.refetch()
+ }
+ })
+ .catch((error) => {
+ // console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ // console.error("Error updating community status:", error);
+ }
+ };
+
+
+ return (
+ <>
+
+ setDeleteAlert(false)}
+ isOpen={deleteAlert}
+ alertHandler={() => handleDelete(actionId)}
+ message={"Are you sure you want to delete whitepaper?"}
+ isLoading={deleteIsLoading}
+ />
+ >
+ );
+};
+
+export default Whitepapers;
+
+
+
+
+
diff --git a/src/Redux/Slice/auth.js b/src/Redux/Slice/auth.js
new file mode 100644
index 0000000..ccc070e
--- /dev/null
+++ b/src/Redux/Slice/auth.js
@@ -0,0 +1,80 @@
+import { createSlice } from "@reduxjs/toolkit";
+
+// export const AuthMe = createAsyncThunk(
+// "auth/Me",
+// async (args, { rejectWithValue, dispatch }) => {
+// try {
+// const res = await authMeService();
+// if (res?.status === 200) return res.data;
+// return rejectWithValue(res);
+// } catch (err) {
+// return rejectWithValue(err.response);
+// }
+// }
+// );
+
+const initialState = {
+ isLoading: true,
+ isError: false,
+ error: null,
+ message: null,
+ isAuthenticate: false,
+};
+
+const authMeSlice = createSlice({
+ name: "auth",
+ initialState: initialState,
+ reducers: {
+ logoutUser: (state, action) => {
+ state = initialState;
+ },
+ loginUser: (state, action) => {
+ state.isAuthenticate = action.payload;
+ },
+ },
+ // extraReducers: (builder) => {
+ // builder
+ // .addCase(AuthMe.pending, (state) => {
+ // state.isLoading = true;
+ // })
+ // .addCase(AuthMe.fulfilled, (state, action) => {
+ // state.isLoading = false;
+ // state.profileData = action.payload?.data;
+ // })
+ // .addCase(AuthMe.rejected, (state, action) => {
+ // state.isLoading = false;
+ // })
+ // .addCase(AuthReGenrateAccessToken.pending, (state) => {
+ // state.isLoading = true;
+ // })
+ // .addCase(AuthReGenrateAccessToken.fulfilled, (state, action) => {
+ // state.isLoading = false;
+ // state.accessToken = action.payload?.accessToken || null;
+ // })
+ // .addCase(AuthReGenrateAccessToken.rejected, (state) => {
+ // state.isAuthenticate = false;
+ // state.isLoading = false;
+ // })
+ // .addCase(AuthLogin.pending, (state) => {
+ // state.isLoading = true;
+ // })
+ // .addCase(AuthLogin.fulfilled, (state, action) => {
+ // state.isLoading = false;
+ // state.isAuthenticate = true;
+ // state.role = action.payload.role[0].title;
+ // state.group = action.payload.group[0].title;
+ // state.actions = action.payload.role[0].actions;
+ // state.resources = action.payload.resources;
+ // state.accessToken = action.payload.accessToken;
+ // state.refreshToken = action.payload.refreshToken;
+ // })
+ // .addCase(AuthLogin.rejected, (state, action) => {
+ // state.isLoading = false;
+ // state.isError = true;
+ // state.error = action.payload;
+ // });
+ // },
+});
+
+export const { logoutUser, loginUser } = authMeSlice.actions;
+export default authMeSlice.reducer;
diff --git a/src/Redux/Store.js b/src/Redux/Store.js
new file mode 100644
index 0000000..3350ae4
--- /dev/null
+++ b/src/Redux/Store.js
@@ -0,0 +1,43 @@
+import { configureStore } from "@reduxjs/toolkit";
+import { combineReducers } from "redux";
+import { persistReducer, persistStore } from "redux-persist";
+import storage from "redux-persist/lib/storage"; // defaults to localStorage for web
+import { encryptTransform } from "redux-persist-transform-encrypt";
+import auth from "./Slice/auth";
+
+// Import your reducers and combine them
+const rootReducer = combineReducers({
+ // Add your reducers here
+ auth: auth,
+});
+
+// Define encryption for persisted state
+const encryptor = encryptTransform({
+ secretKey: "webStore",
+ onError: function (error) {
+ // console.log(error);
+ },
+});
+
+// Configuration for persisting the Redux store
+const persistConfig = {
+ key: "root",
+ storage,
+ transforms: [encryptor],
+};
+
+// Create a persisted reducer
+const persistedReducer = persistReducer(persistConfig, rootReducer);
+
+// Create the Redux store
+export const store = configureStore({
+ reducer: persistedReducer,
+ middleware: (getDefaultMiddleware) =>
+ getDefaultMiddleware({
+ serializableCheck: false,
+ }), // This line already includes thunk middleware
+});
+
+// Export store state and persistor
+export const RootState = store.getState();
+export const persistor = persistStore(store);
diff --git a/src/Routes/Nav.js b/src/Routes/Nav.js
new file mode 100644
index 0000000..692efec
--- /dev/null
+++ b/src/Routes/Nav.js
@@ -0,0 +1,97 @@
+import { FaHome, FaTable } from "react-icons/fa";
+import { FiHome } from "react-icons/fi";
+import { RiBloggerLine } from "react-icons/ri";
+import { LuVideo } from "react-icons/lu";
+import { HiOutlineNewspaper } from "react-icons/hi";
+import { IoMdPaper } from "react-icons/io";
+import { MdOutlineEvent } from "react-icons/md";
+import { CgCommunity } from "react-icons/cg";
+import { AiOutlineIdcard } from "react-icons/ai";
+import { LuMonitorPause } from "react-icons/lu";
+import { MdOutlinePrivacyTip } from "react-icons/md";
+import { GrDocumentVerified } from "react-icons/gr";
+import { FaQuestionCircle } from "react-icons/fa";
+import { MdOutlineSettingsApplications } from "react-icons/md";
+import { MdOutlineUnsubscribe } from "react-icons/md";
+
+export const nav = [
+ // {
+ // title: "Home",
+ // path: "/",
+ // Icon: FiHome,
+ // },
+ {
+ title: "MAIN MENU",
+ path: null,
+ },
+ {
+ title: "Investment",
+ path: "/investment",
+ Icon: HiOutlineNewspaper,
+ },
+ // {
+ // title: "Banners",
+ // path: "/banner",
+ // Icon: AiOutlineIdcard,
+ // },
+ // {
+ // title: "Blogs",
+ // path: "/blogs-articles",
+ // Icon: RiBloggerLine,
+ // },
+ // {
+ // title: "Videos",
+ // path: "/videos",
+ // Icon: LuVideo,
+ // },
+ // {
+ // title: "News",
+ // path: "/news",
+ // Icon: HiOutlineNewspaper,
+ // },
+ // {
+ // title: "Events",
+ // path: "/events",
+ // Icon: MdOutlineEvent,
+ // },
+ // {
+ // title: "Whitepaper",
+ // path: "/whitepaper",
+ // Icon: IoMdPaper,
+ // },
+ // {
+ // title: "Community",
+ // path: "/community",
+ // Icon: CgCommunity,
+ // },
+ // {
+ // title: "Usecase",
+ // path: "/usecase",
+ // Icon: LuMonitorPause,
+ // },
+ // {
+ // title: "Terms & Conditions",
+ // path: "/terms",
+ // Icon: GrDocumentVerified,
+ // },
+ // {
+ // title: "Privacy Policy",
+ // path: "/policy",
+ // Icon: MdOutlinePrivacyTip,
+ // },
+ // {
+ // title: "FAQ",
+ // path: "/faq",
+ // Icon: FaQuestionCircle,
+ // },
+ // {
+ // title: "Partners Card",
+ // path: "/partners",
+ // Icon: MdOutlineSettingsApplications,
+ // },
+ // {
+ // title: "News Letter",
+ // path: "/newsLetter",
+ // Icon: MdOutlineUnsubscribe,
+ // },
+];
diff --git a/src/Routes/PrivateRoute.jsx b/src/Routes/PrivateRoute.jsx
new file mode 100644
index 0000000..bd2e149
--- /dev/null
+++ b/src/Routes/PrivateRoute.jsx
@@ -0,0 +1,18 @@
+import React, { useContext } from 'react';
+import { Navigate, Outlet, useNavigate } from 'react-router-dom';
+import GlobalStateContext from '../Contexts/GlobalStateContext';
+
+
+const PrivateRoute = ({ children }) => {
+ const navigate = useNavigate()
+const { isAuthenticate } = useContext(GlobalStateContext);
+const isAuthenticatedInCookie = Cookies.get("isAuthenticated");
+
+
+ if (!isAuthenticate && isAuthenticatedInCookie !== "true") {
+ return navigate('/login');
+ }
+ return children;
+};
+
+export default PrivateRoute;
\ No newline at end of file
diff --git a/src/Routes/Routes.js b/src/Routes/Routes.js
new file mode 100644
index 0000000..e36851d
--- /dev/null
+++ b/src/Routes/Routes.js
@@ -0,0 +1,214 @@
+import BlogsAndArticles from "../Pages/BlogsAndArticles/BlogsAndArticles";
+import AddComunity from "../Pages/Community/AddComunity";
+import Community from "../Pages/Community/Community";
+import ComunityEditPage from "../Pages/Community/ComunityEditPage";
+import ComunityViewPage from "../Pages/Community/ComunityViewPage";
+import Events from "../Pages/Events/Events";
+import Banner from "../Pages/Banners/Banner";
+import Videos from "../Pages/Videos/Videos";
+import BannerCommunity from "../Pages/Banners/BannerCommunity/BannerCommunity";
+import BannerComunityEditPage from "../Pages/Banners/BannerCommunity/BannerCommunityEdit";
+import BannerComunityViewPage from "../Pages/Banners/BannerCommunity/BannerCommunityView";
+import AddBlogsAndArticles from "../Pages/BlogsAndArticles/AddBlogsAndArticles";
+import News from "../Pages/News/News";
+import AddNews from "../Pages/News/AddNews";
+import EditNews from "../Pages/News/EditNews";
+import ViewNews from "../Pages/News/ViewNews";
+import ViewBlogsAndArticles from "../Pages/BlogsAndArticles/ViewBlogsAndArticles";
+import EditBlogsAndArticles from "../Pages/BlogsAndArticles/EditBlogsAndArticles";
+import BannerLearn from "../Pages/Banners/BannerLearn/BannerLearn";
+import HelpAndSupport from "../Pages/News/HelpAndSupport";
+import AddEvents from "../Pages/Events/AddEvents";
+import ViewLearnBanner from "../Pages/Banners/BannerLearn/BannerLearnView";
+import BannerBuildView from "../Pages/Banners/BannerBuild/BannerBuildView";
+import BannerBuild from "../Pages/Banners/BannerBuild/BannerBuild";
+import BannerNews from "../Pages/Banners/BannerNews/BannerNews";
+import BannerCommunityAdd from "../Pages/Banners/BannerCommunity/BannerCommunityAdd";
+import BannerLearnAdd from "../Pages/Banners/BannerLearn/BannerLearnAdd";
+import BannerBuildAdd from "../Pages/Banners/BannerBuild/BannerBuildAdd";
+import BannerNewsView from "../Pages/Banners/BannerNews/BannerNewsView";
+import HomeBanner from "../Pages/Banners/HomeBanner/HomeBanner";
+import BannerNewsAdd from "../Pages/Banners/BannerNews/BannerNewsAdd";
+import HomeBannerView from "../Pages/Banners/HomeBanner/HomeBannerView";
+import HomeBannerAdd from "../Pages/Banners/HomeBanner/HomeBannerAdd";
+import AddWhitepapers from "../Pages/Whitepapers/AddWhitepapers";
+import ViewWhitePaper from "../Pages/Whitepapers/ViewWhitePaper";
+import EditWhitepaper from "../Pages/Whitepapers/EditWhitepaper";
+import UnderConstruction from "../Pages/UnderConstruction";
+import BannerEdit from "../Components/Banner/BannerEdit";
+import BannerLearnEdit from "../Pages/Banners/BannerLearn/BannerLearnEdit";
+import BannerBuildEdit from "../Pages/Banners/BannerBuild/BannerBuildEdit";
+import BannerNewsEdit from "../Pages/Banners/BannerNews/BannerNewsEdit";
+import BannerHomeEdit from "../Pages/Banners/HomeBanner/HomeBannerEdit";
+import ViewEvents from "../Pages/Events/ViewEvents";
+import EditEvents from "../Pages/Events/EditEvents";
+import AddVideos from "../Pages/Videos/AddVideos";
+import ViewVideos from "../Pages/Videos/ViewVideos";
+import EditVideos from "../Pages/Videos/EditVideos";
+import EcoBanner from "../Pages/Banners/EcoBanner/EcoBanner";
+import EcoBannerAdd from "../Pages/Banners/EcoBanner/EcoBannerAdd";
+import EcoBannerView from "../Pages/Banners/EcoBanner/EcoBannerView";
+import EcoBannerEdit from "../Pages/Banners/EcoBanner/EcoBannerEdit";
+import Usecase from "../Pages/Usecase/Usecase";
+import AddUseCase from "../Pages/Usecase/AddUseCase";
+import ViewUseCase from "../Pages/Usecase/ViewUseCase";
+import EditUseCase from "../Pages/Usecase/EditUseCase";
+
+import Whitepapers from "../Pages/Whitepapers/Whitepapers";
+import WelcomePage from "../Pages/WelcomePage";
+import AddTerms from "../Pages/Terms/AddTerms";
+import Terms from "../Pages/Terms/Terms";
+import EditTerms from "../Pages/Terms/EditTerms";
+import ViewTerms from "../Pages/Terms/ViewTerms";
+import AddPolicy from "../Pages/Policy/AddPolicy";
+import ViewPolicy from "../Pages/Policy/ViewPolicy";
+import EditPolicy from "../Pages/Policy/EditPolicy";
+import Policy from "../Pages/Policy/Policy";
+import Faq from "../Pages/Faq/Faq";
+import AddFaq from "../Pages/Faq/AddFaq";
+import ViewFaq from "../Pages/Faq/ViewFaq";
+import EditFaq from "../Pages/Faq/EditFaq";
+import Partner from "../Pages/Partners/Partner";
+import AddPartner from "../Pages/Partners/AddPartners";
+import ViewPartner from "../Pages/Partners/ViewPartner";
+import EditPartner from "../Pages/Partners/EditPartners";
+import newsLetter from "../Pages/NewLetter/NewsLetter";
+import NewsLetter from "../Pages/NewLetter/NewsLetter";
+import Investment from "../Pages/Investment/Investment";
+
+export const RouteLink = [
+ { path: "/", Component: WelcomePage },
+ { path: "/banner", Component: Banner },
+ { path: "/help-and-support", Component: HelpAndSupport },
+
+ // =============[ Videos ]================
+ { path: "/videos", Component: Videos },
+ { path: "videos/add-videos", Component: AddVideos },
+ { path: "videos/view/:id", Component: ViewVideos },
+ { path: "videos/edit/:id", Component: EditVideos },
+
+ // =============[ Whitepapers ]================
+ { path: "/whitepaper", Component: Whitepapers },
+ { path: "whitepaper/add-whitepaper", Component: AddWhitepapers },
+ { path: "whitepaper/view/:id", Component: ViewWhitePaper },
+ { path: "whitepaper/edit/:id", Component: EditWhitepaper },
+
+ // =============[ Community ]================
+ { path: "/community", Component: Community },
+ { path: "community/view/:id", Component: ComunityViewPage },
+ { path: "community/edit/:id", Component: ComunityEditPage },
+ { path: "community/add-community", Component: AddComunity },
+
+ // =============[ Community banner ]================
+ { path: "banner/banner-community", Component: BannerCommunity },
+ { path: "banner/banner-community/add-banner", Component: BannerCommunityAdd },
+ {
+ path: "banner/banner-community/edit/:id",
+ Component: BannerComunityEditPage,
+ },
+ {
+ path: "banner/banner-community/view/:id",
+ Component: BannerComunityViewPage,
+ },
+
+ // =============[ learn banner ]================
+ { path: "banner/learn", Component: BannerLearn },
+ { path: "banner/learn/add-banner", Component: BannerLearnAdd },
+ { path: "banner/learn/view/:id", Component: ViewLearnBanner },
+ { path: "banner/learn/edit/:id", Component: BannerLearnEdit },
+
+ // =============[ eco banner ]================
+ { path: "banner/eco", Component: EcoBanner },
+ { path: "banner/eco/add-banner", Component: EcoBannerAdd },
+ { path: "banner/eco/view/:id", Component: EcoBannerView },
+ { path: "banner/eco/edit/:id", Component: EcoBannerEdit },
+
+ // =============[ build banner ]================
+ { path: "banner/build", Component: BannerBuild },
+ { path: "banner/build/add-banner", Component: BannerBuildAdd },
+ { path: "banner/build/view/:id", Component: BannerBuildView },
+ { path: "banner/build/edit/:id", Component: BannerBuildEdit },
+
+ // =============[ news banner ]================
+ { path: "banner/news", Component: BannerNews },
+ { path: "banner/news/add-banner", Component: BannerNewsAdd },
+ { path: "banner/news/view/:id", Component: BannerNewsView },
+ { path: "banner/news/edit/:id", Component: BannerNewsEdit },
+
+ // =============[ ecosystem banner ]================
+ { path: "banner/ecosystem", Component: UnderConstruction },
+ { path: "banner/ecosystem/add-banner", Component: UnderConstruction },
+ { path: "banner/ecosystem/view/:id", Component: UnderConstruction },
+ { path: "banner/ecosystem/edit/:id", Component: UnderConstruction },
+
+ // =============[ home banner ]================
+ { path: "banner/home", Component: HomeBanner },
+ { path: "banner/home/add-banner", Component: HomeBannerAdd },
+ { path: "banner/home/view/:id", Component: HomeBannerView },
+ { path: "banner/home/edit/:id", Component: BannerHomeEdit },
+
+ // =============[ blog ]================
+ { path: "/blogs-articles", Component: BlogsAndArticles },
+ { path: "blogs-articles/add-blog", Component: AddBlogsAndArticles },
+ { path: "blogs-articles/view/:id", Component: ViewBlogsAndArticles },
+ { path: "blogs-articles/edit/:id", Component: EditBlogsAndArticles },
+
+ // =============[ news ]================
+ { path: "/news", Component: News },
+ { path: "/news/view/:id", Component: ViewNews },
+ { path: "/news/add-news", Component: AddNews },
+ { path: "/news/edit/:id", Component: EditNews },
+
+ // =============[ events ]================
+ { path: "/events", Component: Events },
+ { path: "/events/add-events", Component: AddEvents },
+ { path: "/events/view/:id", Component: ViewEvents },
+ { path: "/events/edit/:id", Component: EditEvents },
+
+
+ // =============[ useCase ]================
+ { path: "/usecase", Component: Usecase },
+ { path: "/usecase/add-usecase", Component: AddUseCase },
+ { path: "/usecase/view/:id", Component: ViewUseCase },
+ { path: "/usecase/edit/:id", Component: EditUseCase },
+
+
+ // =============[ Terms ]================
+ { path: "/terms", Component: Terms },
+ { path: "/terms/add-terms", Component: AddTerms },
+ { path: "/terms/view/:id", Component: ViewTerms },
+ { path: "/terms/edit/:id", Component: EditTerms },
+
+ // =============[ Policy ]================
+ { path: "/policy", Component: Policy },
+ { path: "/policy/add-policy", Component: AddPolicy },
+ { path: "/policy/view/:id", Component: ViewPolicy },
+ { path: "/policy/edit/:id", Component: EditPolicy },
+
+ // =============[ Faq ]================
+ { path: "/faq", Component: Faq },
+ { path: "/faq/add-faq", Component: AddFaq },
+ { path: "/faq/view/:id", Component: ViewFaq },
+ { path: "/faq/edit/:id", Component: EditFaq },
+
+ // =============[ Partners ]================
+ { path: "/partners", Component: Partner },
+ { path: "/partners/add-partners", Component: AddPartner },
+ { path: "/partners/view/:id", Component: ViewPartner },
+ { path: "/partners/edit/:id", Component: EditPartner },
+
+ // =============[ NewLetter ]================
+ { path: "/newsLetter", Component: NewsLetter },
+
+
+
+
+
+
+ // =============[ Tanami ]================
+ { path: "/investment", Component: Investment },
+
+
+
+
+];
diff --git a/src/Services/api.service.js b/src/Services/api.service.js
new file mode 100644
index 0000000..17f6af6
--- /dev/null
+++ b/src/Services/api.service.js
@@ -0,0 +1,884 @@
+// Need to use the React-specific entry point to import createApi
+import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
+const baseUrl = import.meta.env.VITE_API_BASE_URL + "/api"
+
+// Define a service using a base URL and expected endpoints
+export const rubixApi = createApi({
+ reducerPath: "api",
+ baseQuery: fetchBaseQuery({ baseUrl }),
+ tagTypes: [
+ "getCommunity",
+ "getCommunityById",
+ "getCommunityBanner",
+ "getCommunityBannerById",
+ "getCommunityBanner",
+ "getCommunityBannerById",
+ "getLearnBanner",
+ "getLearnBannerById",
+ "getBuildBanner",
+ "getNewsBanner",
+ "getNews",
+ "getNewsById",
+ "getBlog",
+ "getBlogById",
+ "getEvents",
+ "getEventsById",
+ "getEventsBanner",
+ "getEventsBannerById",
+ "getEventsBanner",
+ "getEventsBannerById",
+
+ "getVideos",
+
+ "getWhitePaper",
+ "getEcoBanner",
+ "getUseCaseById",
+ "getUseCase",
+ "getTerms",
+ "getPolicy",
+ "getFaq",
+ "getPartners",
+
+ "getNewsLetter",
+ ],
+ endpoints: (builder) => ({
+ // ===============[ Community cards endpoints ]=======================
+ getCommunity: builder.query({
+ query: ({ page, size }) => `/admin/community?page=${page}&size=${size}`,
+ providesTags: ["getCommunity"],
+ }),
+ getCommunityById: builder.query({
+ query: (id) => `/admin/community/${id}`,
+ providesTags: ["getCommunityById"],
+ }),
+ createCommunity: builder.mutation({
+ query: (newCommunity) => ({
+ url: "/admin/community",
+ method: "POST",
+ body: newCommunity,
+ }),
+ invalidatesTags: ["getCommunity"],
+ }),
+ deleteCommunity: builder.mutation({
+ query: (communityId) => ({
+ url: `/admin/community/${communityId}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getCommunity"],
+ }),
+ updateCommunityStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/community/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getCommunity"],
+ }),
+ updateCommunity: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/community/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getCommunity"],
+ }),
+
+ // ===============[ Community Banners endpoints ]=======================
+ getCommunityBanner: builder.query({
+ query: () => "/admin/main-community",
+ providesTags: ["getCommunityBanner"],
+ }),
+ getCommunityBannerById: builder.query({
+ query: (id) => `/admin/main-community/${id}`,
+ providesTags: ["getCommunityBannerById"],
+ }),
+ createCommunityBanner: builder.mutation({
+ query: (newBanner) => ({
+ url: "/admin/main-community",
+ method: "POST",
+ body: newBanner,
+ }),
+ invalidatesTags: ["getCommunityBanner"],
+ }),
+ deleteCommunityBanner: builder.mutation({
+ query: (communityBannerId) => ({
+ url: `/admin/main-community/${communityBannerId}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getCommunityBanner"],
+ }),
+ updateCommunityBanner: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/main-community/${id}`,
+ method: "PUT",
+ body: data,
+ }),
+ invalidatesTags: ["getCommunityBanner"],
+ }),
+ updateCommunityBannerStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/main/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getCommunityBanner"],
+ }),
+
+ // ===============[ Learn Banners endpoints ]=======================
+ getLearnBanner: builder.query({
+ query: () => "/admin/learn",
+ providesTags: ["getLearnBanner"],
+ }),
+ getLearnBannerById: builder.query({
+ query: (id) => `/admin/learn/${id}`,
+ providesTags: ["getLearnBannerById"],
+ }),
+ createLearnBanner: builder.mutation({
+ query: (newBanner) => ({
+ url: "/admin/learn",
+ method: "POST",
+ body: newBanner,
+ }),
+ invalidatesTags: ["getLearnBanner"],
+ }),
+ deleteLearnBanner: builder.mutation({
+ query: (id) => ({
+ url: `/admin/learn/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getLearnBanner"],
+ }),
+ updateLearnBanner: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/learn/${id}`,
+ method: "PUT",
+ body: data,
+ }),
+ invalidatesTags: ["getLearnBanner"],
+ }),
+ updateLearnBannerStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/learn/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getLearnBanner"],
+ }),
+
+ // ===============[ Build Banners endpoints ]=======================
+ getBuildBanner: builder.query({
+ query: () => "/admin/build",
+ providesTags: ["getBuildBanner"],
+ }),
+ getBuildBannerById: builder.query({
+ query: (id) => `/admin/build/${id}`,
+ providesTags: ["getBuildBannerById"],
+ }),
+ deleteBuildBanner: builder.mutation({
+ query: (id) => ({
+ url: `/admin/build/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getBuildBanner"],
+ }),
+ updateBuildBannerStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/build/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getBuildBanner"],
+ }),
+ updateBuildBanner: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/build/${id}`,
+ method: "PUT",
+ body: data,
+ }),
+ invalidatesTags: ["getBuildBanner"],
+ }),
+
+ createBuildBanner: builder.mutation({
+ query: (newBanner) => ({
+ url: "/admin/build",
+ method: "POST",
+ body: newBanner,
+ }),
+ invalidatesTags: ["getBuildBanner"],
+ }),
+
+ // ===============[ News Banners endpoints ]=======================
+ getNewsBanner: builder.query({
+ query: () => "/admin/main-news",
+ providesTags: ["getNewsBanner"],
+ }),
+ getNewsBannerById: builder.query({
+ query: (id) => `/admin/main-news/${id}`,
+ providesTags: ["getNewsBannerById"],
+ }),
+ deleteNewsBanner: builder.mutation({
+ query: (id) => ({
+ url: `/admin/main-news/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getNewsBanner"],
+ }),
+ updateNewsBannerStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/main-news/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getNewsBanner"],
+ }),
+ updateNewsBanner: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/main-news/${id}`,
+ method: "PUT",
+ body: data,
+ }),
+ invalidatesTags: ["getNewsBanner"],
+ }),
+ createNewsBanner: builder.mutation({
+ query: (newBanner) => ({
+ url: "/admin/main-news",
+ method: "POST",
+ body: newBanner,
+ }),
+ invalidatesTags: ["getNewsBanner"],
+ }),
+
+ // ================[ Blog endpoints ]====================
+ getBlog: builder.query({
+ query: ({ page, size }) => `/admin/blog?page=${page}&size=${size}`,
+ providesTags: ["getBlog"],
+ }),
+ getBlogById: builder.query({
+ query: (id) => `/admin/blog/${id}`,
+ transformResponse: (response) => {
+ if (response.error) {
+ throw new Error(response.error.message);
+ }
+ return response;
+ },
+ providesTags: ["getBlogById"],
+ }),
+ createBlog: builder.mutation({
+ query: (newBlog) => ({
+ url: "/admin/blog",
+ method: "POST",
+ body: newBlog,
+ }),
+ invalidatesTags: ["getBlog"],
+ }),
+ deleteBlog: builder.mutation({
+ query: (blogId) => ({
+ url: `/admin/blog/${blogId}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getBlog"],
+ }),
+ updateBlog: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/blog/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getBlog"],
+ }),
+ updateBlogStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/blog/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getBlog"],
+ }),
+
+ // ================[ News ]====================
+ getNews: builder.query({
+ query: ({ page, size }) => `/admin/news?page=${page}&size=${size}`,
+ providesTags: ["getNews"],
+ }),
+ getNewsById: builder.query({
+ query: (id) => `/admin/news/${id}`,
+ providesTags: ["getNewsById"],
+ }),
+ createNews: builder.mutation({
+ query: (news) => ({
+ url: "/admin/news",
+ method: "POST",
+ body: news,
+ }),
+ invalidatesTags: ["getNews"],
+ }),
+ updateNewsStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/news/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getNews"],
+ }),
+ updateNews: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/news/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getNews"],
+ }),
+ deleteNews: builder.mutation({
+ query: (blogId) => ({
+ url: `/admin/news/${blogId}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getNews"],
+ }),
+
+ // ================[ events ]====================
+ getEvents: builder.query({
+ query: ({ page, size }) => `/admin/events?page=${page}&size=${size}`,
+ providesTags: ["getEvents"],
+ }),
+ createEvents: builder.mutation({
+ query: (news) => ({
+ url: "/admin/events",
+ method: "POST",
+ body: news,
+ }),
+ invalidatesTags: ["getEvents"],
+ }),
+ updateEventsStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/events/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getEvents"],
+ }),
+ deleteEvents: builder.mutation({
+ query: (blogId) => ({
+ url: `/admin/events/${blogId}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getEvents"],
+ }),
+ getEventsById: builder.query({
+ query: (id) => `/admin/events/${id}`,
+ providesTags: ["getEvents"],
+ }),
+ updateEvents: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/events/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getEvents"],
+ }),
+
+ // ===============[ Home Banners endpoints ]=======================
+ getHomeBanner: builder.query({
+ query: () => "/admin/home",
+ providesTags: ["getHomeBanner"],
+ }),
+ createHomeBanner: builder.mutation({
+ query: (newBanner) => ({
+ url: "/admin/home",
+ method: "POST",
+ body: newBanner,
+ }),
+ invalidatesTags: ["getHomeBanner"],
+ }),
+
+ getHomeBannerById: builder.query({
+ query: (id) => `/admin/home/${id}`,
+ providesTags: ["getHomeBannerById"],
+ }),
+ deleteHomeBanner: builder.mutation({
+ query: (id) => ({
+ url: `/admin/home/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getHomeBanner"],
+ }),
+ updateHomeBannerStatus: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/home/change-visibility/${id}`,
+ method: "POST",
+ body: data,
+ }),
+ invalidatesTags: ["getHomeBanner"],
+ }),
+ updateHomeBanner: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/home/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getHomeBanner"],
+ }),
+
+ // ===============[ Ecosystem Banners endpoints ]=======================
+ getEcoBanner: builder.query({
+ query: () => "/admin/eco",
+ providesTags: ["getEcoBanner"],
+ }),
+ createEcoBanner: builder.mutation({
+ query: (newBanner) => ({
+ url: "/admin/eco",
+ method: "POST",
+ body: newBanner,
+ }),
+ invalidatesTags: ["getEcoBanner"],
+ }),
+ getEcoBannerById: builder.query({
+ query: (id) => `/admin/eco/${id}`,
+ providesTags: ["getEcoBannerById"],
+ }),
+ deleteEcoBanner: builder.mutation({
+ query: (id) => ({
+ url: `/admin/eco/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getEcoBanner"],
+ }),
+ updateEcoBannerStatus: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/eco/change-visibility/${id}`,
+ method: "POST",
+ body: data,
+ }),
+ invalidatesTags: ["getEcoBanner"],
+ }),
+ updateEcoBanner: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/eco/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getEcoBanner"],
+ }),
+
+ // ===============[ Videos endpoints ]=======================
+ getVideos: builder.query({
+ query: ({ page, size }) => `/admin/video?page=${page}&size=${size}`,
+ providesTags: ["getVideos"],
+ }),
+
+ createVideos: builder.mutation({
+ query: (video) => ({
+ url: "/admin/video",
+ method: "POST",
+ body: video,
+ }),
+ invalidatesTags: ["getVideos"],
+ }),
+
+ getVideosById: builder.query({
+ query: (id) => `/admin/video/${id}`,
+ providesTags: ["getVideos"],
+ }),
+
+ updateVideos: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/video/${id}`,
+ method: "PUT",
+ body: data,
+ }),
+ invalidatesTags: ["getVideos"],
+ }),
+
+ updateVideosStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/video/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getVideos"],
+ }),
+ deleteVideos: builder.mutation({
+ query: (id) => ({
+ url: `/admin/video/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getVideos"],
+ }),
+
+ // ===============[ White paper endpoints ]=======================
+ getWhitePaper: builder.query({
+ query: ({ page, size }) => `/admin/whitepaper?page=${page}&size=${size}`,
+ providesTags: ["getWhitePaper"],
+ }),
+ updateWhitepaperStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/whitepaper/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getWhitePaper"],
+ }),
+ deleteWhitepaper: builder.mutation({
+ query: (id) => ({
+ url: `/admin/whitepaper/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getWhitePaper"],
+ }),
+
+ createWhitepaper: builder.mutation({
+ query: (newBanner) => ({
+ url: "/admin/whitepaper",
+ method: "POST",
+ body: newBanner,
+ }),
+ invalidatesTags: ["getWhitePaper"],
+ }),
+ getWhitepaperById: builder.query({
+ query: (id) => `/admin/whitepaper/${id}`,
+ providesTags: ["getWhitePaper"],
+ }),
+ updateWhitepaper: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/whitepaper/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getWhitePaper"],
+ }),
+
+ // ===============[ Usecase endpoints ]=======================
+ getUsecase: builder.query({
+ query: ({ page, size }) => `/admin/tech?page=${page}&size=${size}`,
+ providesTags: ["getUseCase"],
+ }),
+ createUsecase: builder.mutation({
+ query: (newBanner) => ({
+ url: "/admin/tech",
+ method: "POST",
+ body: newBanner,
+ }),
+ invalidatesTags: ["getUseCase"],
+ }),
+ getUsecaseById: builder.query({
+ query: (id) => `/admin/tech/${id}`,
+ providesTags: ["getUseCaseById"],
+ }),
+ deleteUsecase: builder.mutation({
+ query: (id) => ({
+ url: `/admin/tech/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getUseCase"],
+ }),
+ updateUsecaseStatus: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/tech/change-visibility/${id}`,
+ method: "POST",
+ body: data,
+ }),
+ invalidatesTags: ["getUseCase"],
+ }),
+ updateUsecase: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/tech/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getUseCase"],
+ }),
+
+ // ===============[ Terms endpoints ]=======================
+ getTerms: builder.query({
+ query: ({ page, size }) =>
+ `/admin/term-condition?page=${page}&size=${size}`,
+ providesTags: ["getTerms"],
+ }),
+ deleteTerms: builder.mutation({
+ query: (id) => ({
+ url: `/admin/term-condition/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getTerms"],
+ }),
+ createTerms: builder.mutation({
+ query: (data) => ({
+ url: `/admin/term-condition`,
+ method: "POST",
+ body: data,
+ }),
+ invalidatesTags: ["getTerms"],
+ }),
+ updateTermsStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/term-condition/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getTerms"],
+ }),
+ updateTerms: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/term-condition/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getTerms"],
+ }),
+ getTermsById: builder.query({
+ query: (id) => `/admin/term-condition/${id}`,
+ providesTags: ["getTerms"],
+ }),
+
+ // ===============[ Terms endpoints ]=======================
+ getPolicy: builder.query({
+ query: ({ page, size }) => `/admin/policy?page=${page}&size=${size}`,
+ providesTags: ["getPolicy"],
+ }),
+ deletePolicy: builder.mutation({
+ query: (id) => ({
+ url: `/admin/policy/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getPolicy"],
+ }),
+ createPolicy: builder.mutation({
+ query: (data) => ({
+ url: `/admin/policy`,
+ method: "POST",
+ body: data,
+ }),
+ invalidatesTags: ["getPolicy"],
+ }),
+ updatePolicyStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/policy/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getPolicy"],
+ }),
+ updatePolicy: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/policy/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getPolicy"],
+ }),
+ getPolicyById: builder.query({
+ query: (id) => `/admin/policy/${id}`,
+ providesTags: ["getPolicy"],
+ }),
+
+ // ===============[ Faq endpoints ]=======================
+ getFaq: builder.query({
+ query: ({ page, size }) => `/admin/faq?page=${page}&size=${size}`,
+ providesTags: ["getFaq"],
+ }),
+ deleteFaq: builder.mutation({
+ query: (id) => ({
+ url: `/admin/faq/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getFaq"],
+ }),
+ createFaq: builder.mutation({
+ query: (data) => ({
+ url: `/admin/faq`,
+ method: "POST",
+ body: data,
+ }),
+ invalidatesTags: ["getFaq"],
+ }),
+ updateFaqStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/faq/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getFaq"],
+ }),
+ updateFaq: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/faq/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getFaq"],
+ }),
+ getFaqById: builder.query({
+ query: (id) => `/admin/faq/${id}`,
+ providesTags: ["getFaq"],
+ }),
+
+ // ===============[ Cards endpoints ]=======================
+ getPartners: builder.query({
+ query: ({ page, size }) => `/admin/card?page=${page}&size=${size}`,
+ providesTags: ["getPartners"],
+ }),
+ deletePartners: builder.mutation({
+ query: (id) => ({
+ url: `/admin/card/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getPartners"],
+ }),
+ createPartners: builder.mutation({
+ query: (data) => ({
+ url: `/admin/card`,
+ method: "POST",
+ body: data,
+ }),
+ invalidatesTags: ["getPartners"],
+ }),
+ updatePartnersStatus: builder.mutation({
+ query: ({ id }) => ({
+ url: `/admin/card/change-visibility/${id}`,
+ method: "POST",
+ }),
+ invalidatesTags: ["getPartners"],
+ }),
+ updatePartners: builder.mutation({
+ query: ({ id, data }) => ({
+ url: `/admin/card/${id}`,
+ method: "PUT",
+ body: data, // Include the data you want to send in the request body
+ }),
+ invalidatesTags: ["getPartners"],
+ }),
+ getPartnersById: builder.query({
+ query: (id) => `/admin/card/${id}`,
+ providesTags: ["getPartners"],
+ }),
+
+ // ===============[ Cards endpoints ]=======================
+ getNewsLetter: builder.query({
+ query: ({ page, size }) => `newsLetter/request?page=${page}&size=${size}`,
+ providesTags: ["getNewsLetter"],
+ }),
+ deleteEmail: builder.mutation({
+ query: (id) => ({
+ url: `/newsLetter/request/${id}`,
+ method: "DELETE",
+ }),
+ invalidatesTags: ["getNewsLetter"],
+ }),
+ getNewsLetterEmail: builder.query({
+ query: () => "newsLetter/request",
+ providesTags: ["getNewsLetter"],
+ }),
+ }),
+});
+
+export const {
+ useGetCommunityQuery,
+ useGetCommunityByIdQuery,
+ useCreateCommunityMutation,
+ useDeleteCommunityMutation,
+ useUpdateCommunityStatusMutation,
+ useUpdateCommunityMutation,
+
+ useGetCommunityBannerQuery,
+ useCreateCommunityBannerMutation,
+ useDeleteCommunityBannerMutation,
+ useUpdateCommunityBannerMutation,
+ useGetCommunityBannerByIdQuery,
+ useUpdateCommunityBannerStatusMutation,
+
+ useCreateLearnBannerMutation,
+ useDeleteLearnBannerMutation,
+ useGetLearnBannerByIdQuery,
+ useGetLearnBannerQuery,
+ useUpdateLearnBannerMutation,
+ useUpdateLearnBannerStatusMutation,
+
+ useGetBuildBannerQuery,
+ useGetBuildBannerByIdQuery,
+ useDeleteBuildBannerMutation,
+ useUpdateBuildBannerStatusMutation,
+ useCreateBuildBannerMutation,
+ useUpdateBuildBannerMutation,
+
+ useGetNewsBannerQuery,
+ useGetNewsBannerByIdQuery,
+ useDeleteNewsBannerMutation,
+ useUpdateNewsBannerStatusMutation,
+ useCreateNewsBannerMutation,
+ useUpdateNewsBannerMutation,
+
+ useGetBlogQuery,
+ useGetBlogByIdQuery,
+ useCreateBlogMutation,
+ useDeleteBlogMutation,
+ useUpdateBlogMutation,
+ useUpdateBlogStatusMutation,
+
+ useGetNewsQuery,
+ useUpdateNewsStatusMutation,
+ useDeleteNewsMutation,
+ useCreateNewsMutation,
+ useGetNewsByIdQuery,
+ useUpdateNewsMutation,
+
+ useGetHomeBannerQuery,
+ useCreateHomeBannerMutation,
+ useDeleteHomeBannerMutation,
+ useUpdateHomeBannerStatusMutation,
+ useGetHomeBannerByIdQuery,
+ useUpdateHomeBannerMutation,
+
+ useGetEventsQuery,
+ useCreateEventsMutation,
+ useUpdateEventsStatusMutation,
+ useDeleteEventsMutation,
+ useUpdateEventsMutation,
+ useGetEventsByIdQuery,
+
+ useGetVideosQuery,
+ useCreateVideosMutation,
+ useDeleteVideosMutation,
+ useUpdateVideosStatusMutation,
+ useGetVideosByIdQuery,
+ useUpdateVideosMutation,
+
+ useGetWhitePaperQuery,
+ useUpdateWhitepaperStatusMutation,
+ useDeleteWhitepaperMutation,
+ useCreateWhitepaperMutation,
+ useGetWhitepaperByIdQuery,
+ useUpdateWhitepaperMutation,
+
+ useGetEcoBannerByIdQuery,
+ useGetEcoBannerQuery,
+ useUpdateEcoBannerMutation,
+ useUpdateEcoBannerStatusMutation,
+ useDeleteEcoBannerMutation,
+ useCreateEcoBannerMutation,
+
+ useCreateUsecaseMutation,
+ useGetUsecaseByIdQuery,
+ useUpdateUsecaseMutation,
+ useDeleteUsecaseMutation,
+ useGetUsecaseQuery,
+ useUpdateUsecaseStatusMutation,
+
+ useGetTermsQuery,
+ useDeleteTermsMutation,
+ useCreateTermsMutation,
+ useUpdateTermsStatusMutation,
+ useUpdateTermsMutation,
+ useGetTermsByIdQuery,
+
+ useGetPolicyQuery,
+ useDeletePolicyMutation,
+ useCreatePolicyMutation,
+ useUpdatePolicyStatusMutation,
+ useUpdatePolicyMutation,
+ useGetPolicyByIdQuery,
+
+ useGetFaqQuery,
+ useDeleteFaqMutation,
+ useCreateFaqMutation,
+ useUpdateFaqStatusMutation,
+ useUpdateFaqMutation,
+ useGetFaqByIdQuery,
+
+ useGetPartnersQuery,
+ useDeletePartnersMutation,
+ useCreatePartnersMutation,
+ useUpdatePartnersStatusMutation,
+ useUpdatePartnersMutation,
+ useGetPartnersByIdQuery,
+
+ useGetNewsLetterQuery,
+ useDeleteEmailMutation,
+ useGetNewsLetterEmailQuery,
+} = rubixApi;
diff --git a/src/Store/Store.js b/src/Store/Store.js
new file mode 100644
index 0000000..89758e4
--- /dev/null
+++ b/src/Store/Store.js
@@ -0,0 +1,17 @@
+// Store.js
+
+import { configureStore } from '@reduxjs/toolkit';
+import { setupListeners } from '@reduxjs/toolkit/query';
+import { rubixApi } from '../Services/api.service';
+
+export const store = configureStore({
+ reducer: {
+ [rubixApi.reducerPath]: rubixApi.reducer,
+ },
+ middleware: (getDefaultMiddleware) =>
+ getDefaultMiddleware().concat(rubixApi.middleware),
+});
+
+setupListeners(store.dispatch);
+
+export default store; // Make sure to export the store variable
diff --git a/src/Theme/Theme.js b/src/Theme/Theme.js
new file mode 100644
index 0000000..c0b54cb
--- /dev/null
+++ b/src/Theme/Theme.js
@@ -0,0 +1,57 @@
+// theme.js
+import { extendTheme } from "@chakra-ui/react";
+
+const customTheme = extendTheme({
+ colors: {
+ customPink: {
+ 50: '#ffe5e9',
+ 100: '#ffbcc9',
+ 200: '#ff93a8',
+ 300: '#ff6a87',
+ 400: '#ff4166',
+ 500: '#ff1845', // you can choose your custom color values here
+ 600: '#db1139',
+ 700: '#b70d2d',
+ 800: '#930921',
+ 900: '#700616',
+ },
+ forestGreen: {
+ 50: '#ffe6e9',
+ 100: '#f8c2c7',
+ 200: '#ef9da4',
+ 300: '#e67882',
+ 400: '#dd5460',
+ 500: '#DE858E', // primary shade for your custom color
+ 600: '#DE858E',
+ 700: '#DE858E',
+ 800: '#DE858E',
+ 900: '#DE858E',
+ },
+ forestGreen: {
+ "50": "#e6f3e9",
+ "100": "#c2e1c7",
+ "200": "#9dcda4",
+ "300": "#78b982",
+ "400": "#54a560",
+ "500": "#004118", // primary shade for your custom color
+ "600": "#003b14",
+ "700": "#003310",
+ "800": "#002b0c",
+ "900": "#002308"
+ }
+
+ },
+ components: {
+ Switch: {
+ baseStyle: {
+ track: {
+ _checked: {
+ bg: 'forestGreen.500', // using your custom color here
+ },
+ },
+ },
+ },
+ },
+});
+
+export default customTheme;
diff --git a/src/Validations/Validations.js b/src/Validations/Validations.js
new file mode 100644
index 0000000..4500474
--- /dev/null
+++ b/src/Validations/Validations.js
@@ -0,0 +1,797 @@
+import * as Yup from "yup";
+
+export const validationSchema = Yup.object().shape({
+ name: Yup.string().required("Owner name is required"),
+ password: Yup.string().required("Password is required"),
+});
+
+export const addCommunitySchema = Yup.object().shape({
+ member_name: Yup.string().required("Name is required"),
+ designation: Yup.string().required("Designation is required"),
+ description: Yup.string().required("Description is required"),
+ linkedin: Yup.string()
+ .url("Invalid LinkedIn URL")
+ .required("Linked In link is required"),
+ profile_image: Yup.mixed()
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .optional(),
+});
+
+export const schemaEdit = Yup.object().shape({
+ member_name: Yup.string().required("Name is required"),
+ designation: Yup.string().required("Designation is required"),
+ description: Yup.string().required("Description is required"),
+ linkedin: Yup.string()
+ .url("Invalid LinkedIn URL")
+ .required("LinkedIn is required"),
+});
+
+export const addCommunityBannerSchema = Yup.object().shape({
+ heading: Yup.string().required("Name is required"),
+ sub_heading: Yup.string().required("Designation is required"),
+ CTO_button_title: Yup.string().required("Description is required"),
+ CTO_button_link: Yup.string()
+ .url("Invalid LinkedIn URL")
+ .required("LinkedIn is required"),
+ banner_image: Yup.mixed()
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .optional(),
+});
+
+export const editCommunityBannerSchema = Yup.object().shape({
+ heading: Yup.string().required("Name is required"),
+ sub_heading: Yup.string().required("Designation is required"),
+ CTO_button_title: Yup.string().required("Description is required"),
+ CTO_button_link: Yup.string()
+ .url("Invalid LinkedIn URL")
+ .required("LinkedIn is required"),
+});
+
+export const addBlogSchema = Yup.object().shape({
+ author_name: Yup.string().required("Author is required"),
+ author_designation: Yup.string().required("Author designation is required"),
+ title: Yup.string().required("Title is required"),
+ meta_description: Yup.string().required("Description is required"),
+ content: Yup.string(),
+ summary: Yup.string().required("Summary is required"),
+ profile_image: Yup.mixed()
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // console.log(files[0].type)
+
+ const SUPPORTED_FORMATS = [
+ "image/jpeg",
+ "image/jpg",
+ "image/png",
+ // "image/gif",
+ "image/tiff",
+ "image/svg+xml",
+ ];
+ try {
+ if (files.length !== 0) {
+ return files && SUPPORTED_FORMATS.includes(files[0].type);
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ })
+ .optional(),
+ content_image_large: Yup.mixed()
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .optional(),
+});
+
+export const editBlogSchema = Yup.object().shape({
+ author_name: Yup.string().required("Author is required"),
+ author_designation: Yup.string().required("Author designation is required"),
+ title: Yup.string().required("Title is required"),
+ meta_description: Yup.string().required("Description is required"),
+ content: Yup.string(),
+ summary: Yup.string().required("Summary is required"),
+ profile_image: Yup.mixed()
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // console.log(files[0].type)
+
+ const SUPPORTED_FORMATS = [
+ "image/jpeg",
+ "image/jpg",
+ "image/png",
+ // "image/gif",
+ "image/tiff",
+ "image/svg+xml",
+ ];
+ try {
+ if (files.length !== 0) {
+ return files && SUPPORTED_FORMATS.includes(files[0].type);
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ })
+ .optional(),
+ content_image_large: Yup.mixed()
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .optional(),
+});
+
+export const addNews = Yup.object().shape({
+ title: Yup.string().required("Author is required"),
+ release_date: Yup.date().required("Release date is required"),
+ meta_description: Yup.string().required("Description is required"),
+ content: Yup.string().required("Content is required"),
+ banner_image: Yup.mixed()
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ // .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // // console.log(files[0].type)
+
+ // const SUPPORTED_FORMATS = [
+ // "image/jpeg",
+ // "image/png",
+ // "image/gif",
+ // "image/tiff",
+ // "image/svg+xml",
+ // ];
+ // try {
+ // if (files.length !== 0) {
+ //
+ // return files && SUPPORTED_FORMATS.includes(files[0].type);
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // })
+ .optional(),
+});
+
+export const editNews = Yup.object().shape({
+ title: Yup.string(),
+ release_date: Yup.date(),
+ meta_description: Yup.string(),
+ content: Yup.string(),
+ banner_image: Yup.mixed()
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ // .test(
+ // "fileSize",
+ // " The maximum size of profile picture is 10MB.",
+ // (files) => {
+ // //if u want to allow only certain file sizes
+ // try {
+ // if (files.length !== 0) {
+ // return files[0].size <= 10000000;
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // }
+ // )
+ // .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // // console.log(files[0].type)
+
+ // const SUPPORTED_FORMATS = [
+ // "image/jpeg",
+ // "image/png",
+ // "image/gif",
+ // "image/tiff",
+ // "image/svg+xml",
+ // ];
+ // try {
+ // if (files.length !== 0) {
+ //
+ // return files && SUPPORTED_FORMATS.includes(files[0].type);
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // })
+ .optional(),
+});
+
+export const addEvents = Yup.object().shape({
+ title: Yup.string().required("title is required"),
+ content: Yup.string().required("content is required"),
+ location: Yup.string().required("location is required"),
+ organizer_name: Yup.string().required("Org name date is required"),
+ eventDates: Yup.string(),
+ organizer_mobile_number: Yup.string()
+ .required("Org contact is required")
+ .matches(/^[0-9]{10}$/, "Mobile number must be 10 digits"),
+ organizer_email: Yup.string()
+ .required("Org email is required")
+ .email("Please enter valid email"),
+ banner_image: Yup.mixed()
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ // .test(
+ // "fileSize",
+ // " The maximum size of profile picture is 10MB.",
+ // (files) => {
+ // //if u want to allow only certain file sizes
+ // try {
+ // if (files.length !== 0) {
+ // return files[0].size <= 10000000;
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // }
+ // )
+ // .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // // console.log(files[0].type)
+
+ // const SUPPORTED_FORMATS = [
+ // "image/jpeg",
+ // "image/png",
+ // "image/gif",
+ // "image/tiff",
+ // "image/svg+xml",
+ // ];
+ // try {
+ // if (files.length !== 0) {
+ //
+ // return files && SUPPORTED_FORMATS.includes(files[0].type);
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // })
+ .optional(),
+});
+
+export const addWhitePapers = Yup.object().shape({
+ title: Yup.string().required("title is required"),
+ image: Yup.mixed()
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ // .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // // console.log(files[0].type)
+
+ // const SUPPORTED_FORMATS = [
+ // "image/jpeg",
+ // "image/jpg",
+ // "image/png",
+ // "image/gif",
+ // "image/tiff",
+ // "image/svg+xml",
+ // ];
+ // try {
+ // if (files.length !== 0) {
+ //
+ // return files && SUPPORTED_FORMATS.includes(files[0].type);
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // })
+ .optional(),
+ document: Yup.mixed()
+ // .test("required", "You need to provide a file", (files) => {
+ // // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ // if (files) return true;
+ // return false;
+ // })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .optional(),
+ // .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // // console.log(files[0].type)
+
+ // const SUPPORTED_FORMATS = [
+ // "image/jpeg",
+ // "image/png",
+ // "image/jpg",
+ // "image/gif",
+ // "image/tiff",
+ // "image/svg+xml",
+ // ];
+ // try {
+ // if (files.length !== 0) {
+ //
+ // return files && SUPPORTED_FORMATS.includes(files[0].type);
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // })
+});
+
+// test("fileSize", "Image must be at least 10MB", (value) => {
+// if (!value) return true;
+// const fileSizeInBytes = value.size;
+// const fileSizeInMB = fileSizeInBytes / (1024 * 1024);
+// return fileSizeInMB >= 10;
+// })
+
+export const addVideos = Yup.object().shape({
+ title: Yup.string().required("Name is required"),
+ thumbnail: Yup.mixed()
+ .required("Thumbnail is required")
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ ),
+ description: Yup.string().required("Description is required"),
+ duration: Yup.string().required("LinkedIn is required"),
+ embeddedCode: Yup.string().required("LinkedIn is required"),
+});
+
+export const addUsecase = Yup.object().shape({
+ title: Yup.string().required("Name is required"),
+ meta_description: Yup.string().required("Description is required"),
+ attachment: Yup.mixed(),
+ content: Yup.string(),
+ banner_image: Yup.mixed()
+ // .required("Thumbnail is required")
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .optional(),
+ icon: Yup.mixed()
+ // .required("Icon is required")
+ .test("required", "You need to provide a file", (files) => {
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .optional(),
+});
+
+export const editUsecase = Yup.object().shape({
+ title: Yup.string().required("Name is required"),
+ meta_description: Yup.string().required("Description is required"),
+ attachment: Yup.mixed(),
+ content: Yup.string(),
+ banner_image: Yup.mixed()
+ // .required("Thumbnail is required")
+ .test("required", "You need to provide a file", (files) => {
+ // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ //if u want to allow only certain file sizes
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .optional(),
+ icon: Yup.mixed()
+ // .required("Icon is required")
+ .test("required", "You need to provide a file", (files) => {
+ if (files) return true;
+ return false;
+ })
+ .test(
+ "fileSize",
+ " The maximum size of profile picture is 10MB.",
+ (files) => {
+ try {
+ if (files.length !== 0) {
+ return files[0].size <= 10000000;
+ }
+ return true;
+ } catch (error) {
+ return false;
+ }
+ }
+ )
+ .optional(),
+});
+
+export const addTerms = Yup.object().shape({
+ title: Yup.string().required("title is required"),
+ content: Yup.string(),
+ banner_image: Yup.mixed()
+ // .test("required", "You need to provide a file", (files) => {
+ // // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ // if (files) return true;
+ // return false;
+ // })
+ // .test(
+ // "fileSize",
+ // " The maximum size of profile picture is 10MB.",
+ // (files) => {
+ // //if u want to allow only certain file sizes
+ // try {
+ // if (files.length !== 0) {
+ // return files[0].size <= 10000000;
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // }
+ // )
+ .optional(),
+ // .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // // console.log(files[0].type)
+
+ // const SUPPORTED_FORMATS = [
+ // "image/jpeg",
+ // "image/png",
+ // "image/jpg",
+ // "image/gif",
+ // "image/tiff",
+ // "image/svg+xml",
+ // ];
+ // try {
+ // if (files.length !== 0) {
+ //
+ // return files && SUPPORTED_FORMATS.includes(files[0].type);
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // })
+});
+
+export const addPolicy = Yup.object().shape({
+ title: Yup.string().required("title is required"),
+ content: Yup.string(),
+ banner_image: Yup.mixed()
+ // .test("required", "You need to provide a file", (files) => {
+ // // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ // if (files) return true;
+ // return false;
+ // })
+ // .test(
+ // "fileSize",
+ // " The maximum size of profile picture is 10MB.",
+ // (files) => {
+ // //if u want to allow only certain file sizes
+ // try {
+ // if (files.length !== 0) {
+ // return files[0].size <= 10000000;
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // }
+ // )
+ .optional(),
+ // .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // // console.log(files[0].type)
+
+ // const SUPPORTED_FORMATS = [
+ // "image/jpeg",
+ // "image/png",
+ // "image/jpg",
+ // "image/gif",
+ // "image/tiff",
+ // "image/svg+xml",
+ // ];
+ // try {
+ // if (files.length !== 0) {
+ //
+ // return files && SUPPORTED_FORMATS.includes(files[0].type);
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // })
+});
+
+export const addPartnerCard = Yup.object().shape({
+ website_link: Yup.string().required("link is required"),
+ description: Yup.string().required("description is required"),
+ banner_image: Yup.mixed()
+ .required("logo is required")
+ // .test("required", "You need to provide a file", (files) => {
+ // // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ // if (files) return true;
+ // return false;
+ // })
+ // .test(
+ // "fileSize",
+ // " The maximum size of profile picture is 10MB.",
+ // (files) => {
+ // //if u want to allow only certain file sizes
+ // try {
+ // if (files.length !== 0) {
+ // return files[0].size <= 10000000;
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // }
+ // )
+ .optional(),
+ // .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // // console.log(files[0].type)
+
+ // const SUPPORTED_FORMATS = [
+ // "image/jpeg",
+ // "image/png",
+ // "image/jpg",
+ // "image/gif",
+ // "image/tiff",
+ // "image/svg+xml",
+ // ];
+ // try {
+ // if (files.length !== 0) {
+ //
+ // return files && SUPPORTED_FORMATS.includes(files[0].type);
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // })
+});
+
+export const addFaq = Yup.object().shape({
+ question: Yup.string().required("Qustion is required"),
+ answer: Yup.string()
+ // banner_image: Yup.mixed()
+ // .test("required", "You need to provide a file", (files) => {
+ // // return file && file.size <-- u can use this if you don't want to allow empty files to be uploaded;
+ // if (files) return true;
+ // return false;
+ // })
+ // .test(
+ // "fileSize",
+ // " The maximum size of profile picture is 10MB.",
+ // (files) => {
+ // //if u want to allow only certain file sizes
+ // try {
+ // if (files.length !== 0) {
+ // return files[0].size <= 10000000;
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // }
+ // )
+ .optional(),
+ // .test("file_formate", "Image file has unsupported format.", (files) => {
+ // // // // console.log(files[0].type)
+
+ // const SUPPORTED_FORMATS = [
+ // "image/jpeg",
+ // "image/png",
+ // "image/jpg",
+ // "image/gif",
+ // "image/tiff",
+ // "image/svg+xml",
+ // ];
+ // try {
+ // if (files.length !== 0) {
+ //
+ // return files && SUPPORTED_FORMATS.includes(files[0].type);
+ // }
+ // return true;
+ // } catch (error) {
+ // return false;
+ // }
+ // })
+});
diff --git a/src/assets/Ellipse-37.png b/src/assets/Ellipse-37.png
new file mode 100644
index 0000000..cd7e58a
Binary files /dev/null and b/src/assets/Ellipse-37.png differ
diff --git a/src/assets/Ellipse-38.png b/src/assets/Ellipse-38.png
new file mode 100644
index 0000000..6af52ca
Binary files /dev/null and b/src/assets/Ellipse-38.png differ
diff --git a/src/assets/Ellipse-39.png b/src/assets/Ellipse-39.png
new file mode 100644
index 0000000..8b58fe6
Binary files /dev/null and b/src/assets/Ellipse-39.png differ
diff --git a/src/assets/Ellipse.png b/src/assets/Ellipse.png
new file mode 100644
index 0000000..f2db4bf
Binary files /dev/null and b/src/assets/Ellipse.png differ
diff --git a/src/assets/EmptySearchList.svg b/src/assets/EmptySearchList.svg
new file mode 100644
index 0000000..0796885
--- /dev/null
+++ b/src/assets/EmptySearchList.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/Error.svg b/src/assets/Error.svg
new file mode 100644
index 0000000..f5b3a2c
--- /dev/null
+++ b/src/assets/Error.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/asset1.png b/src/assets/asset1.png
new file mode 100644
index 0000000..ea628db
Binary files /dev/null and b/src/assets/asset1.png differ
diff --git a/src/assets/asset2.png b/src/assets/asset2.png
new file mode 100644
index 0000000..24fca2f
Binary files /dev/null and b/src/assets/asset2.png differ
diff --git a/src/assets/communityBanner.webp b/src/assets/communityBanner.webp
new file mode 100644
index 0000000..df4629d
Binary files /dev/null and b/src/assets/communityBanner.webp differ
diff --git a/src/assets/fallBackImage.png b/src/assets/fallBackImage.png
new file mode 100644
index 0000000..494e1de
Binary files /dev/null and b/src/assets/fallBackImage.png differ
diff --git a/src/assets/favicon.png b/src/assets/favicon.png
new file mode 100644
index 0000000..e32f05c
Binary files /dev/null and b/src/assets/favicon.png differ
diff --git a/src/assets/favicone.png b/src/assets/favicone.png
new file mode 100644
index 0000000..72359f5
Binary files /dev/null and b/src/assets/favicone.png differ
diff --git a/src/assets/linkedin.png b/src/assets/linkedin.png
new file mode 100644
index 0000000..1e7032b
Binary files /dev/null and b/src/assets/linkedin.png differ
diff --git a/src/assets/logo-min.png b/src/assets/logo-min.png
new file mode 100644
index 0000000..8185f0a
Binary files /dev/null and b/src/assets/logo-min.png differ
diff --git a/src/assets/logo.png b/src/assets/logo.png
new file mode 100644
index 0000000..27762b7
Binary files /dev/null and b/src/assets/logo.png differ
diff --git a/src/assets/logo2.png b/src/assets/logo2.png
new file mode 100644
index 0000000..da697bc
Binary files /dev/null and b/src/assets/logo2.png differ
diff --git a/src/assets/pdfscreen.png b/src/assets/pdfscreen.png
new file mode 100644
index 0000000..24653f4
Binary files /dev/null and b/src/assets/pdfscreen.png differ
diff --git a/src/assets/photo-1472313420546-a46e561861d8.avif b/src/assets/photo-1472313420546-a46e561861d8.avif
new file mode 100644
index 0000000..601721c
Binary files /dev/null and b/src/assets/photo-1472313420546-a46e561861d8.avif differ
diff --git a/src/assets/react.svg b/src/assets/react.svg
new file mode 100644
index 0000000..6c87de9
--- /dev/null
+++ b/src/assets/react.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/ultp-fallback-img.webp b/src/assets/ultp-fallback-img.webp
new file mode 100644
index 0000000..4b4fce4
Binary files /dev/null and b/src/assets/ultp-fallback-img.webp differ
diff --git a/src/main.jsx b/src/main.jsx
new file mode 100644
index 0000000..dc04b23
--- /dev/null
+++ b/src/main.jsx
@@ -0,0 +1,23 @@
+import React from "react";
+import ReactDOM from "react-dom/client";
+import App from "./App.jsx";
+// import { persistor, store } from "./Redux/Store.js";
+
+import { Provider } from "react-redux";
+import { PersistGate } from "redux-persist/integration/react";
+import { ChakraProvider } from "@chakra-ui/react";
+import GlobalStateProvider from "./Contexts/GlobalStateProvider";
+import { store } from "./Store/Store.js";
+import customTheme from "./Theme/Theme.js";
+
+ReactDOM.createRoot(document.getElementById("root")).render(
+
+
+ {/* */}
+
+
+
+ {/* */}
+
+
+);
diff --git a/vite.config.js b/vite.config.js
new file mode 100644
index 0000000..861b04b
--- /dev/null
+++ b/vite.config.js
@@ -0,0 +1,7 @@
+import { defineConfig } from 'vite'
+import react from '@vitejs/plugin-react-swc'
+
+// https://vitejs.dev/config/
+export default defineConfig({
+ plugins: [react()],
+})