@citizenplatform/core 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -0
- package/dist/index10.js +273 -0
- package/dist/index10.js.map +1 -0
- package/dist/index100.js +31 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +165 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +48 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +8 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +6 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +14 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +8 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +7 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +16 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +7 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.js +49 -0
- package/dist/index11.js.map +1 -0
- package/dist/index110.js +22 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +22 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +9 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +20 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +149 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +20 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +9 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.js +9 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.js +11 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.js +56 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.js +16 -0
- package/dist/index12.js.map +1 -0
- package/dist/index120.js +63 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +24 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +9 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +11 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +10 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +254 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.js +20 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.js +25 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.js +250 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.js +20 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.js +20 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +13 -0
- package/dist/index130.js.map +1 -0
- package/dist/index131.js +15 -0
- package/dist/index131.js.map +1 -0
- package/dist/index132.js +117 -0
- package/dist/index132.js.map +1 -0
- package/dist/index133.js +13 -0
- package/dist/index133.js.map +1 -0
- package/dist/index134.js +22 -0
- package/dist/index134.js.map +1 -0
- package/dist/index135.js +26 -0
- package/dist/index135.js.map +1 -0
- package/dist/index136.js +20 -0
- package/dist/index136.js.map +1 -0
- package/dist/index137.js +22 -0
- package/dist/index137.js.map +1 -0
- package/dist/index138.js +12 -0
- package/dist/index138.js.map +1 -0
- package/dist/index139.js +26 -0
- package/dist/index139.js.map +1 -0
- package/dist/index14.js +17 -0
- package/dist/index14.js.map +1 -0
- package/dist/index140.js +56 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.js +12 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.js +212 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.js +4 -0
- package/dist/index144.js +5 -0
- package/dist/index145.js +5 -0
- package/dist/index15.js +9 -0
- package/dist/index15.js.map +1 -0
- package/dist/index16.js +10 -0
- package/dist/index16.js.map +1 -0
- package/dist/index17.js +7 -0
- package/dist/index17.js.map +1 -0
- package/dist/index18.js +40 -0
- package/dist/index18.js.map +1 -0
- package/dist/index19.js +13 -0
- package/dist/index19.js.map +1 -0
- package/dist/index2.js +13 -0
- package/dist/index20.js +10 -0
- package/dist/index20.js.map +1 -0
- package/dist/index21.js +61 -0
- package/dist/index21.js.map +1 -0
- package/dist/index22.js +63 -0
- package/dist/index22.js.map +1 -0
- package/dist/index23.js +12 -0
- package/dist/index23.js.map +1 -0
- package/dist/index24.js +26 -0
- package/dist/index24.js.map +1 -0
- package/dist/index25.js +48 -0
- package/dist/index25.js.map +1 -0
- package/dist/index26.js +55 -0
- package/dist/index26.js.map +1 -0
- package/dist/index27.js +71 -0
- package/dist/index27.js.map +1 -0
- package/dist/index28.js +44 -0
- package/dist/index28.js.map +1 -0
- package/dist/index29.js +117 -0
- package/dist/index29.js.map +1 -0
- package/dist/index3.js +64 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +16 -0
- package/dist/index30.js.map +1 -0
- package/dist/index31.js +28 -0
- package/dist/index31.js.map +1 -0
- package/dist/index32.js +36 -0
- package/dist/index32.js.map +1 -0
- package/dist/index33.js +25 -0
- package/dist/index33.js.map +1 -0
- package/dist/index34.js +44 -0
- package/dist/index34.js.map +1 -0
- package/dist/index35.js +160 -0
- package/dist/index35.js.map +1 -0
- package/dist/index36.js +77 -0
- package/dist/index36.js.map +1 -0
- package/dist/index37.js +14 -0
- package/dist/index37.js.map +1 -0
- package/dist/index38.js +41 -0
- package/dist/index38.js.map +1 -0
- package/dist/index39.js +6 -0
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +84 -0
- package/dist/index4.js.map +1 -0
- package/dist/index40.js +39 -0
- package/dist/index40.js.map +1 -0
- package/dist/index41.js +110 -0
- package/dist/index41.js.map +1 -0
- package/dist/index42.js +97 -0
- package/dist/index42.js.map +1 -0
- package/dist/index43.js +22 -0
- package/dist/index43.js.map +1 -0
- package/dist/index44.js +18 -0
- package/dist/index44.js.map +1 -0
- package/dist/index45.js +11 -0
- package/dist/index45.js.map +1 -0
- package/dist/index46.js +192 -0
- package/dist/index46.js.map +1 -0
- package/dist/index47.js +24 -0
- package/dist/index47.js.map +1 -0
- package/dist/index48.js +14 -0
- package/dist/index48.js.map +1 -0
- package/dist/index49.js +54 -0
- package/dist/index49.js.map +1 -0
- package/dist/index5.js +12 -0
- package/dist/index5.js.map +1 -0
- package/dist/index50.js +99 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.js +10 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.js +18 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.js +9 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.js +67 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.js +13 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +24 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +6 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +14 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +14 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +41 -0
- package/dist/index6.js.map +1 -0
- package/dist/index60.js +38 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.js +15 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.js +12 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +19 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +24 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +12 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +25 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.js +16 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.js +130 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +32 -0
- package/dist/index69.js.map +1 -0
- package/dist/index7.js +10 -0
- package/dist/index7.js.map +1 -0
- package/dist/index70.js +8 -0
- package/dist/index70.js.map +1 -0
- package/dist/index71.js +122 -0
- package/dist/index71.js.map +1 -0
- package/dist/index72.js +35 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +14 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +13 -0
- package/dist/index74.js.map +1 -0
- package/dist/index75.js +42 -0
- package/dist/index75.js.map +1 -0
- package/dist/index76.js +66 -0
- package/dist/index76.js.map +1 -0
- package/dist/index77.js +10 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +9 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +21 -0
- package/dist/index79.js.map +1 -0
- package/dist/index8.js +10 -0
- package/dist/index8.js.map +1 -0
- package/dist/index80.js +21 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +21 -0
- package/dist/index81.js.map +1 -0
- package/dist/index82.js +21 -0
- package/dist/index82.js.map +1 -0
- package/dist/index83.js +21 -0
- package/dist/index83.js.map +1 -0
- package/dist/index84.js +21 -0
- package/dist/index84.js.map +1 -0
- package/dist/index85.js +21 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.js +219 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +12 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.js +15 -0
- package/dist/index88.js.map +1 -0
- package/dist/index89.js +55 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.js +46 -0
- package/dist/index9.js.map +1 -0
- package/dist/index90.js +38 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.js +52 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.js +12 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.js +15 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.js +28 -0
- package/dist/index94.js.map +1 -0
- package/dist/index95.js +111 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +9 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +38 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +8 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +10 -0
- package/dist/index99.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index115.js","names":[],"sources":["../node_modules/@mui/material/SvgIcon/createSvgIcon.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport SvgIcon from \"./SvgIcon.mjs\";\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, {\n \"data-testid\": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,\n ref: ref,\n ...props,\n children: path\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));\n}"],"x_google_ignoreList":[0],"mappings":";;;;;AASA,SAAwB,EAAc,GAAM,GAAa;CACvD,SAAS,EAAU,GAAO,GAAK;EAC7B,OAAoB,gBAAK,GAAS;GAChC,eAAA,QAAA,IAAA,aAAwC,eAAsC,KAAA,IAAvB,GAAG,EAAY;GACjE;GACL,GAAG;GACH,UAAU;EACZ,CAAC;CACH;CAOA,OANA,QAAA,IAAA,aAA6B,iBAG3B,EAAU,cAAc,GAAG,EAAY,QAEzC,EAAU,UAAU,EAAQ,SACR,gBAAM,KAAkB,gBAAM,WAAW,CAAS,CAAC;AACzE"}
|
package/dist/index116.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./index115.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/@mui/icons-material/ArrowBack.mjs
|
|
5
|
+
var n = e(/*#__PURE__*/ t("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z" }), "ArrowBack");
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index116.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index116.js","names":[],"sources":["../node_modules/@mui/icons-material/ArrowBack.mjs"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z\"\n}), 'ArrowBack');"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAA,IAAe,EAA2B,gBAAK,QAAQ,EACrD,GAAG,4DACL,CAAC,GAAG,WAAW"}
|
package/dist/index117.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./index115.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/@mui/icons-material/ArrowForward.mjs
|
|
5
|
+
var n = e(/*#__PURE__*/ t("path", { d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" }), "ArrowForward");
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index117.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index117.js","names":[],"sources":["../node_modules/@mui/icons-material/ArrowForward.mjs"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z\"\n}), 'ArrowForward');"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAA,IAAe,EAA2B,gBAAK,QAAQ,EACrD,GAAG,2DACL,CAAC,GAAG,cAAc"}
|
package/dist/index118.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
//#region src/libs/core/context/AppThemeContext.ts
|
|
3
|
+
var t = e.createContext(null), n = () => {
|
|
4
|
+
let n = e.useContext(t);
|
|
5
|
+
if (!n) throw Error("useAppThemeContext must be inside provider");
|
|
6
|
+
return n;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as AppThemeContext, n as useAppThemeContext };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=index118.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index118.js","names":[],"sources":["../src/libs/core/context/AppThemeContext.ts"],"sourcesContent":["import React from \"react\";\r\nimport type { ThemeMode } from \"../../shared/theme/theme\";\r\nimport type { ColorScheme } from \"../../shared/theme/color\";\r\nimport type { DeviceTypeEnum } from \"libs/shared/enums/common-enums\";\r\n\r\nexport interface ContextType {\r\n mode: ThemeMode;\r\n scheme: ColorScheme;\r\n fontSize: number;\r\n sidebarOpen: boolean;\r\n currentDevice: DeviceTypeEnum;\r\n\r\n setScheme: (s: ColorScheme) => void;\r\n toggleMode: () => void;\r\n increaseFont: () => void;\r\n decreaseFont: () => void;\r\n resetTheme: () => void;\r\n toggleSidebar: (val?: boolean) => void;\r\n toggleMobileSidebar: () => void;\r\n handleCurrentDevice: (deviceType: DeviceTypeEnum) => void;\r\n}\r\n\r\nexport const AppThemeContext =\r\n React.createContext<ContextType | null>(null);\r\n\r\nexport const useAppThemeContext = (): ContextType => {\r\n const ctx = React.useContext(AppThemeContext);\r\n\r\n if (!ctx) {\r\n throw new Error(\"useAppThemeContext must be inside provider\");\r\n }\r\n\r\n return ctx;\r\n};"],"mappings":";;AAsBA,IAAa,IACX,EAAM,cAAkC,IAAI,GAEjC,UAAwC;CACnD,IAAM,IAAM,EAAM,WAAW,CAAe;CAE5C,IAAI,CAAC,GACH,MAAU,MAAM,4CAA4C;CAG9D,OAAO;AACT"}
|
package/dist/index119.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import e from "./index105.js";
|
|
2
|
+
import { useAppThemeContext as t } from "./index118.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { Link as o, Typography as s } from "@mui/material";
|
|
6
|
+
import { useTranslation as c } from "react-i18next";
|
|
7
|
+
var l = n.memo(({ text: l, size: u, color: d, sx: f, isRequired: p = !1, variantType: m = "default", onClick: h, target: g = "_self", ..._ }) => {
|
|
8
|
+
let { t: v } = c(), { fontSize: y } = t(), b = e(), x = {
|
|
9
|
+
color: n.useMemo(() => {
|
|
10
|
+
if (d) return d;
|
|
11
|
+
switch (m) {
|
|
12
|
+
case "primary": return b.palette.primary.main;
|
|
13
|
+
case "secondary": return b.palette.text.secondary;
|
|
14
|
+
case "error": return b.palette.error.main;
|
|
15
|
+
case "link": return b.palette.primary.main;
|
|
16
|
+
default: return b.palette.text.primary;
|
|
17
|
+
}
|
|
18
|
+
}, [
|
|
19
|
+
d,
|
|
20
|
+
m,
|
|
21
|
+
b
|
|
22
|
+
]),
|
|
23
|
+
fontSize: u || y,
|
|
24
|
+
...f
|
|
25
|
+
}, S = /* @__PURE__ */ a(r, { children: [typeof l == "string" ? v(l) : l, p && /* @__PURE__ */ i(s, {
|
|
26
|
+
component: "span",
|
|
27
|
+
sx: {
|
|
28
|
+
color: b.palette.error.main,
|
|
29
|
+
fontSize: u || y,
|
|
30
|
+
ml: .25
|
|
31
|
+
},
|
|
32
|
+
children: "*"
|
|
33
|
+
})] });
|
|
34
|
+
return m === "link" ? /* @__PURE__ */ i(o, {
|
|
35
|
+
target: g,
|
|
36
|
+
underline: "always",
|
|
37
|
+
onClick: h,
|
|
38
|
+
sx: {
|
|
39
|
+
...x,
|
|
40
|
+
cursor: "pointer",
|
|
41
|
+
fontWeight: 500,
|
|
42
|
+
color: b.palette.text.primary,
|
|
43
|
+
"&:hover": { opacity: .8 }
|
|
44
|
+
},
|
|
45
|
+
children: S
|
|
46
|
+
}) : /* @__PURE__ */ i(s, {
|
|
47
|
+
..._,
|
|
48
|
+
sx: x,
|
|
49
|
+
onClick: h,
|
|
50
|
+
children: S
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { l as default };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=index119.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index119.js","names":[],"sources":["../src/libs/shared/UI/typography/Typography2.tsx"],"sourcesContent":["import React from \"react\";\r\nimport {\r\n Typography,\r\n Link\r\n} from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useAppThemeContext } from \"../../../core/context/AppThemeContext\";\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport type { TypographyProps } from \"libs/shared/types/common-types\";\r\n\r\n\r\nconst Typography2: React.FC<TypographyProps> = ({\r\n text,\r\n size: propFontSize,\r\n color,\r\n sx,\r\n isRequired = false,\r\n variantType = \"default\",\r\n onClick,\r\n target = \"_self\",\r\n ...props\r\n}) => {\r\n const { t } = useTranslation();\r\n const { fontSize } = useAppThemeContext();\r\n const theme = useTheme();\r\n\r\n const resolvedColor = React.useMemo(() => {\r\n if (color) return color;\r\n\r\n switch (variantType) {\r\n case \"primary\":\r\n return theme.palette.primary.main;\r\n\r\n case \"secondary\":\r\n return theme.palette.text.secondary;\r\n\r\n case \"error\":\r\n return theme.palette.error.main;\r\n\r\n case \"link\":\r\n return theme.palette.primary.main;\r\n\r\n default:\r\n return theme.palette.text.primary;\r\n }\r\n }, [color, variantType, theme]);\r\n\r\n const commonStyle = {\r\n color: resolvedColor,\r\n fontSize: propFontSize || fontSize,\r\n ...sx,\r\n };\r\n\r\n const content = (\r\n <>\r\n {typeof text === \"string\" ? t(text) : text}\r\n {isRequired && (\r\n <Typography\r\n component=\"span\"\r\n sx={{\r\n color: theme.palette.error.main,\r\n fontSize: propFontSize || fontSize,\r\n ml: 0.25,\r\n }}\r\n >\r\n *\r\n </Typography>\r\n )}\r\n </>\r\n );\r\n\r\n if (variantType === \"link\") {\r\n return (\r\n <Link\r\n target={target}\r\n underline=\"always\"\r\n onClick={onClick}\r\n sx={{\r\n ...commonStyle,\r\n cursor: \"pointer\",\r\n fontWeight: 500,\r\n color : theme.palette.text.primary,\r\n \"&:hover\": {\r\n opacity: 0.8,\r\n },\r\n }}\r\n >\r\n {content}\r\n </Link>\r\n );\r\n }\r\n\r\n return (\r\n <Typography\r\n {...props}\r\n sx={commonStyle}\r\n onClick={onClick}\r\n >\r\n {content}\r\n </Typography>\r\n );\r\n};\r\n\r\nexport default React.memo(Typography2);"],"mappings":";;;;;;AAuGA,IAAA,IAAe,EAAM,MA5F2B,EAC9C,SACA,MAAM,GACN,UACA,OACA,gBAAa,IACb,iBAAc,WACd,YACA,YAAS,SACT,GAAG,QACC;CACJ,IAAM,EAAE,SAAM,EAAe,GACvB,EAAE,gBAAa,EAAmB,GAClC,IAAQ,EAAS,GAuBjB,IAAc;EAClB,OAtBoB,EAAM,cAAc;GACxC,IAAI,GAAO,OAAO;GAElB,QAAQ,GAAR;IACE,KAAK,WACH,OAAO,EAAM,QAAQ,QAAQ;IAE/B,KAAK,aACH,OAAO,EAAM,QAAQ,KAAK;IAE5B,KAAK,SACH,OAAO,EAAM,QAAQ,MAAM;IAE7B,KAAK,QACH,OAAO,EAAM,QAAQ,QAAQ;IAE/B,SACE,OAAO,EAAM,QAAQ,KAAK;GAC9B;EACF,GAAG;GAAC;GAAO;GAAa;EAAK,CAGpB;EACP,UAAU,KAAgB;EAC1B,GAAG;CACL,GAEM,IACJ,kBAAA,GAAA,EAAA,UAAA,CACG,OAAO,KAAS,WAAW,EAAE,CAAI,IAAI,GACrC,KACC,kBAAC,GAAD;EACE,WAAU;EACV,IAAI;GACF,OAAO,EAAM,QAAQ,MAAM;GAC3B,UAAU,KAAgB;GAC1B,IAAI;EACN;EACD,UAAA;CAEW,CAAA,CAEd,EAAA,CAAA;CAwBJ,OArBI,MAAgB,SAEhB,kBAAC,GAAD;EACU;EACR,WAAU;EACD;EACT,IAAI;GACF,GAAG;GACH,QAAQ;GACR,YAAY;GACZ,OAAQ,EAAM,QAAQ,KAAK;GAC3B,WAAW,EACT,SAAS,GACX;EACF;EAEC,UAAA;CACG,CAAA,IAKR,kBAAC,GAAD;EACE,GAAI;EACJ,IAAI;EACK;EAER,UAAA;CACS,CAAA;AAEhB,CAEqC"}
|
package/dist/index12.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "./index2.js";
|
|
2
|
+
import { require_react_is as t } from "./index5.js";
|
|
3
|
+
import { require_factoryWithTypeCheckers as n } from "./index10.js";
|
|
4
|
+
import { require_factoryWithThrowingShims as r } from "./index11.js";
|
|
5
|
+
//#region node_modules/prop-types/index.js
|
|
6
|
+
var i = /* @__PURE__ */ e(((e, i) => {
|
|
7
|
+
if (process.env.NODE_ENV !== "production") {
|
|
8
|
+
var a = t();
|
|
9
|
+
i.exports = n()(a.isElement, !0);
|
|
10
|
+
} else i.exports = r()();
|
|
11
|
+
}));
|
|
12
|
+
//#endregion
|
|
13
|
+
export default i();
|
|
14
|
+
export { i as require_prop_types };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index12.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index12.js","names":[],"sources":["../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CAOA,IAAA,QAAA,IAAA,aAA6B,cAAc;EACzC,IAAI,IAAA,EAAA;EAKJ,EAAO,UAAA,EAAA,CAAA,CAA+C,EAAQ,WAAW,CAD/C,CACkE;CAC9F,OAGE,EAAO,UAAA,EAAA,CAAA,CAAgD"}
|
package/dist/index120.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import e from "./index62.js";
|
|
2
|
+
import t from "./index116.js";
|
|
3
|
+
import n from "./index117.js";
|
|
4
|
+
import r from "./index119.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Button as o } from "@mui/material";
|
|
7
|
+
import { useTranslation as s } from "react-i18next";
|
|
8
|
+
//#region src/libs/shared/UI/button/AppButton.tsx
|
|
9
|
+
function c({ label: c, children: l, variantType: u, leftArrow: d, rightArrow: f, bgColor: p, textColor: m, disableHoverEffect: h, variant: g, isMandatory: _ = !1, sx: v, ...y }) {
|
|
10
|
+
let b = e(), x = u ?? (g === "outlined" ? "outlined" : g === "contained" ? "primary" : "secondary"), S = {
|
|
11
|
+
primary: (e) => ({
|
|
12
|
+
backgroundColor: e.palette.text.primary,
|
|
13
|
+
color: e.palette.menuText.primary,
|
|
14
|
+
"&:hover": { backgroundColor: e.palette.primary.dark }
|
|
15
|
+
}),
|
|
16
|
+
secondary: (e) => ({
|
|
17
|
+
backgroundColor: e.palette.text.primary,
|
|
18
|
+
color: u === "outlined" ? e.palette.text.primary : e.palette.menuText.secondary,
|
|
19
|
+
border: 1.2,
|
|
20
|
+
borderColor: e.palette.text.primary,
|
|
21
|
+
"&:hover": { boxShadow: "2px 2px 4px rgba(0, 0, 0, 0.1)" }
|
|
22
|
+
}),
|
|
23
|
+
outlined: (e) => ({
|
|
24
|
+
backgroundColor: e.palette.action.selected,
|
|
25
|
+
color: e.palette.text.primary,
|
|
26
|
+
border: 1.2,
|
|
27
|
+
borderColor: e.palette.disabled.main,
|
|
28
|
+
"&:hover": { boxShadow: "2px 2px 4px rgba(0, 0, 0, 0.1)" }
|
|
29
|
+
})
|
|
30
|
+
}, { t: C } = s();
|
|
31
|
+
return /* @__PURE__ */ a(o, {
|
|
32
|
+
disableElevation: !0,
|
|
33
|
+
variant: g,
|
|
34
|
+
...y,
|
|
35
|
+
startIcon: d ? /* @__PURE__ */ i(t, {}) : void 0,
|
|
36
|
+
endIcon: f ? /* @__PURE__ */ i(n, {}) : void 0,
|
|
37
|
+
sx: {
|
|
38
|
+
height: "2.4rem",
|
|
39
|
+
borderRadius: "44px",
|
|
40
|
+
padding: "12px 32px",
|
|
41
|
+
textTransform: "none",
|
|
42
|
+
fontWeight: 600,
|
|
43
|
+
gap: "4px",
|
|
44
|
+
minWidth: "auto",
|
|
45
|
+
borderWidth: "1.2px",
|
|
46
|
+
...S?.[x]?.(b) ?? {},
|
|
47
|
+
...v,
|
|
48
|
+
...p && {
|
|
49
|
+
backgroundColor: p,
|
|
50
|
+
...h && { "&:hover": { boxShadow: "2px 2px 4px rgba(0, 0, 0, 0.1)" } }
|
|
51
|
+
},
|
|
52
|
+
...m && { color: m }
|
|
53
|
+
},
|
|
54
|
+
children: [typeof c == "string" ? C(c) : l, /* @__PURE__ */ i(r, {
|
|
55
|
+
text: "",
|
|
56
|
+
isRequired: _
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { c as default };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=index120.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index120.js","names":[],"sources":["../src/libs/shared/UI/button/AppButton.tsx"],"sourcesContent":["import ArrowBackIcon from \"@mui/icons-material/ArrowBack\";\r\nimport ArrowForwardIcon from \"@mui/icons-material/ArrowForward\";\r\nimport { Button} from \"@mui/material\";\r\nimport { useTheme, type Theme } from \"@mui/system\";\r\nimport type { AppButtonProps, VariantType } from \"libs/shared/types/common-types\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\n\r\n\r\n\r\nexport default function AppButton({\r\n label,\r\n children,\r\n variantType,\r\n leftArrow,\r\n rightArrow,\r\n bgColor,\r\n textColor,\r\n disableHoverEffect,\r\n variant,\r\n isMandatory = false,\r\n sx,\r\n ...rest\r\n}: Readonly<AppButtonProps>) {\r\n const theme = useTheme();\r\n const resolvedType: VariantType =\r\n variantType ??\r\n (variant === \"outlined\"\r\n ? \"outlined\"\r\n : variant === \"contained\"\r\n ? \"primary\"\r\n : \"secondary\");\r\n\r\n const variantStyles: Record<\r\n string,\r\n (theme: Theme) => React.CSSProperties\r\n > = {\r\n primary: (theme) => ({\r\n backgroundColor: theme.palette.text.primary,\r\n color: theme.palette.menuText.primary,\r\n\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.dark,\r\n },\r\n }),\r\n\r\n secondary: (theme) => ({\r\n backgroundColor: theme.palette.text.primary,\r\n color: variantType === \"outlined\" ? theme.palette.text.primary : theme.palette.menuText.secondary,\r\n border: 1.2,\r\n borderColor: theme.palette.text.primary,\r\n \"&:hover\": {\r\n boxShadow: \"2px 2px 4px rgba(0, 0, 0, 0.1)\"\r\n },\r\n }),\r\n\r\n outlined: (theme) => ({\r\n backgroundColor: theme.palette.action.selected,\r\n color: theme.palette.text.primary ,\r\n border: 1.2,\r\n borderColor: theme.palette.disabled.main,\r\n\r\n \"&:hover\": {\r\n boxShadow: \"2px 2px 4px rgba(0, 0, 0, 0.1)\"\r\n },\r\n }),\r\n };\r\n\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <Button\r\n disableElevation\r\n variant={variant}\r\n {...rest}\r\n startIcon={leftArrow ? <ArrowBackIcon /> : undefined}\r\n endIcon={rightArrow ? <ArrowForwardIcon /> : undefined}\r\n sx={{\r\n height: '2.4rem',\r\n borderRadius: \"44px\",\r\n padding: \"12px 32px\",\r\n textTransform: \"none\",\r\n fontWeight: 600,\r\n gap: \"4px\",\r\n minWidth: \"auto\",\r\n borderWidth: \"1.2px\",\r\n ...(variantStyles?.[resolvedType]?.(theme) ?? {}),\r\n ...sx,\r\n\r\n ...(bgColor && {\r\n backgroundColor: bgColor,\r\n ...(disableHoverEffect && {\r\n \"&:hover\": { boxShadow: \"2px 2px 4px rgba(0, 0, 0, 0.1)\" },\r\n }),\r\n }),\r\n\r\n ...(textColor && { color: textColor }),\r\n }}\r\n >\r\n {typeof label === \"string\" ? t(label) : children}\r\n <Typography2 text=\"\" isRequired={isMandatory}/>\r\n </Button>\r\n );\r\n}"],"mappings":";;;;;;;;AAUA,SAAwB,EAAU,EAChC,UACA,aACA,gBACA,cACA,eACA,YACA,cACA,uBACA,YACA,iBAAc,IACd,OACA,GAAG,KACwB;CAC3B,IAAM,IAAQ,EAAS,GACjB,IACJ,MACC,MAAY,aACT,aACA,MAAY,cACV,YACA,cAEF,IAGF;EACF,UAAU,OAAW;GACnB,iBAAiB,EAAM,QAAQ,KAAK;GACpC,OAAO,EAAM,QAAQ,SAAS;GAE9B,WAAW,EACT,iBAAiB,EAAM,QAAQ,QAAQ,KACzC;EACF;EAEA,YAAY,OAAW;GACrB,iBAAiB,EAAM,QAAQ,KAAK;GACpC,OAAO,MAAgB,aAAa,EAAM,QAAQ,KAAK,UAAU,EAAM,QAAQ,SAAS;GACxF,QAAQ;GACR,aAAa,EAAM,QAAQ,KAAK;GAChC,WAAW,EACT,WAAW,iCACb;EACF;EAEA,WAAW,OAAW;GACpB,iBAAiB,EAAM,QAAQ,OAAO;GACtC,OAAO,EAAM,QAAQ,KAAK;GAC1B,QAAQ;GACR,aAAa,EAAM,QAAQ,SAAS;GAEpC,WAAW,EACT,WAAW,iCACb;EACF;CACF,GAEM,EAAE,SAAM,EAAe;CAE7B,OACI,kBAAC,GAAD;EACE,kBAAA;EACS;EACT,GAAI;EACJ,WAAW,IAAY,kBAAC,GAAD,CAAgB,CAAA,IAAI,KAAA;EAC3C,SAAS,IAAa,kBAAC,GAAD,CAAmB,CAAA,IAAI,KAAA;EAC7C,IAAI;GACF,QAAQ;GACR,cAAc;GACd,SAAS;GACT,eAAe;GACf,YAAY;GACZ,KAAK;GACL,UAAU;GACV,aAAa;GACb,GAAI,IAAgB,EAAa,GAAG,CAAK,KAAK,CAAC;GAC/C,GAAG;GAEH,GAAI,KAAW;IACb,iBAAiB;IACjB,GAAI,KAAsB,EACxB,WAAW,EAAE,WAAW,iCAAiC,EAC3D;GACF;GAEA,GAAI,KAAa,EAAE,OAAO,EAAU;EACtC;EA1BF,UAAA,CA4BG,OAAO,KAAU,WAAW,EAAE,CAAK,IAAI,GACxC,kBAAC,GAAD;GAAa,MAAK;GAAG,YAAY;EAAa,CAAA,CACxC;;AAEd"}
|
package/dist/index121.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { Box as r, Checkbox as i, FormControlLabel as a, FormHelperText as o } from "@mui/material";
|
|
4
|
+
//#region src/libs/shared/UI/checkbox/AppCheckbox.tsx
|
|
5
|
+
function s({ label: e, checked: s, onChange: c, helperText: l, ...u }) {
|
|
6
|
+
return /* @__PURE__ */ n(r, { children: [/* @__PURE__ */ t(a, {
|
|
7
|
+
control: /* @__PURE__ */ t(i, {
|
|
8
|
+
checked: s,
|
|
9
|
+
onChange: (e) => c?.(e, e.target.checked),
|
|
10
|
+
...u,
|
|
11
|
+
sx: {
|
|
12
|
+
color: "primary.main",
|
|
13
|
+
"&.Mui-disabled.Mui-checked": { color: "primary.main" },
|
|
14
|
+
"&.Mui-checked": { color: "primary.main" }
|
|
15
|
+
}
|
|
16
|
+
}),
|
|
17
|
+
label: e
|
|
18
|
+
}), l && /* @__PURE__ */ t(o, { children: l })] });
|
|
19
|
+
}
|
|
20
|
+
var c = e.memo(s);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { c as default };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=index121.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index121.js","names":[],"sources":["../src/libs/shared/UI/checkbox/AppCheckbox.tsx"],"sourcesContent":["import {\r\n FormControlLabel,\r\n Checkbox,\r\n FormHelperText,\r\n Box,\r\n type CheckboxProps,\r\n} from \"@mui/material\";\r\nimport React from \"react\";\r\n\r\ntype Props = CheckboxProps & {\r\n label?: string;\r\n helperText?: string;\r\n};\r\n\r\nfunction AppCheckbox({\r\n label,\r\n checked,\r\n onChange,\r\n helperText,\r\n ...rest\r\n}: Readonly<Props>) {\r\n return (\r\n <Box>\r\n <FormControlLabel\r\n control={\r\n <Checkbox\r\n checked={checked}\r\n onChange={(e) => onChange?.(e, e.target.checked)}\r\n {...rest}\r\n sx={{\r\n color: \"primary.main\",\r\n '&.Mui-disabled.Mui-checked': { color: \"primary.main\" },\r\n '&.Mui-checked': { color: \"primary.main\" }\r\n }}\r\n />\r\n }\r\n label={label}\r\n />\r\n\r\n {helperText && <FormHelperText>{helperText}</FormHelperText>}\r\n </Box>\r\n );\r\n}\r\n\r\nexport default React.memo(AppCheckbox)"],"mappings":";;;;AAcA,SAAS,EAAY,EACnB,UACA,YACA,aACA,eACA,GAAG,KACe;CAClB,OACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,SACE,kBAAC,GAAD;GACW;GACT,WAAW,MAAM,IAAW,GAAG,EAAE,OAAO,OAAO;GAC/C,GAAI;GACJ,IAAI;IACA,OAAO;IACP,8BAA8B,EAAE,OAAO,eAAe;IACtD,iBAAiB,EAAE,OAAO,eAAe;GAC3C;EACH,CAAA;EAEI;CACR,CAAA,GAEA,KAAc,kBAAC,GAAD,EAAA,UAAiB,EAA2B,CAAA,CACxD,EAAA,CAAA;AAET;AAEA,IAAA,IAAe,EAAM,KAAK,CAAW"}
|
package/dist/index122.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./index115.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/@mui/icons-material/MicNoneOutlined.mjs
|
|
5
|
+
var n = e(/*#__PURE__*/ t("path", { d: "M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1zm6 6c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92z" }), "MicNoneOutlined");
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index122.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index122.js","names":[],"sources":["../node_modules/@mui/icons-material/MicNoneOutlined.mjs"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1zm6 6c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92z\"\n}), 'MicNoneOutlined');"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAA,IAAe,EAA2B,gBAAK,QAAQ,EACrD,GAAG,yOACL,CAAC,GAAG,iBAAiB"}
|
package/dist/index123.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
//#region src/libs/core/context/AppThemeContext.ts
|
|
3
|
+
var t = e.createContext(null), n = () => {
|
|
4
|
+
let n = e.useContext(t);
|
|
5
|
+
if (!n) throw Error("useAppThemeContext must be inside provider");
|
|
6
|
+
return n;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as AppThemeContext, n as useAppThemeContext };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=index123.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index123.js","names":[],"sources":["../src/libs/core/context/AppThemeContext.ts"],"sourcesContent":["import React from \"react\";\r\nimport type { ThemeMode } from \"../../shared/theme/theme\";\r\nimport type { ColorScheme } from \"../../shared/theme/color\";\r\nimport type { DeviceTypeEnum } from \"libs/shared/enums/common-enums\";\r\n\r\nexport interface ContextType {\r\n mode: ThemeMode;\r\n scheme: ColorScheme;\r\n fontSize: number;\r\n sidebarOpen: boolean;\r\n currentDevice: DeviceTypeEnum;\r\n\r\n setScheme: (s: ColorScheme) => void;\r\n toggleMode: () => void;\r\n increaseFont: () => void;\r\n decreaseFont: () => void;\r\n resetTheme: () => void;\r\n toggleSidebar: (val?: boolean) => void;\r\n toggleMobileSidebar: () => void;\r\n handleCurrentDevice: (deviceType: DeviceTypeEnum) => void;\r\n}\r\n\r\nexport const AppThemeContext =\r\n React.createContext<ContextType | null>(null);\r\n\r\nexport const useAppThemeContext = (): ContextType => {\r\n const ctx = React.useContext(AppThemeContext);\r\n\r\n if (!ctx) {\r\n throw new Error(\"useAppThemeContext must be inside provider\");\r\n }\r\n\r\n return ctx;\r\n};"],"mappings":";;AAsBA,IAAa,IACX,EAAM,cAAkC,IAAI,GAEjC,UAAwC;CACnD,IAAM,IAAM,EAAM,WAAW,CAAe;CAE5C,IAAI,CAAC,GACH,MAAU,MAAM,4CAA4C;CAG9D,OAAO;AACT"}
|
package/dist/index124.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/libs/shared/enums/common-enums.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.NUMERIC = "NUMBER", e.PASSWORD = "PASSWORD", e.SELECT = "SELECT", e.EMAIL = "EMAIL", e.TEXT = "TEXT", e.FILE = "FILE", e.RADIOLIST = "RADIOLIST", e.DATE_TIME = "DATE_TIME", e.RADIO = "RADIO", e.DATE = "DATE", e.TIME = "TIME", e.YEAR = "YEAR", e.CHECKBOXLIST = "CHECKBOXLIST", e.ARRAY = "ARRAY", e.CHECKBOX = "CHECKBOX", e.PHONE = "PHONE", e.MOBILE = "MOBILE", e.HIDDEN = "HIDDEN", e.MOBILECOUNTRYCODE = "MOBILECOUNTRYCODE", e.CUSTOM = "CUSTOM", e;
|
|
4
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.INHERIT = "inherit", e.RED = "red", e.GREEN = "green", e;
|
|
6
|
+
}({});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as FieldEnum, t as MenuTextColorEnum };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=index124.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index124.js","names":[],"sources":["../src/libs/shared/enums/common-enums.ts"],"sourcesContent":["export enum ApiMethodEnum {\r\n GET = \"GET\",\r\n POST = \"POST\",\r\n PUT = \"PUT\",\r\n DELETE = \"DELETE\",\r\n PATCH = \"PATCH\",\r\n}\r\n\r\nexport enum FieldEnum {\r\n NUMERIC = \"NUMBER\",\r\n PASSWORD = \"PASSWORD\",\r\n SELECT = \"SELECT\",\r\n EMAIL = \"EMAIL\",\r\n TEXT = \"TEXT\",\r\n FILE = \"FILE\",\r\n RADIOLIST = \"RADIOLIST\",\r\n DATE_TIME = \"DATE_TIME\",\r\n RADIO = \"RADIO\",\r\n DATE = \"DATE\",\r\n TIME = \"TIME\",\r\n YEAR = \"YEAR\",\r\n CHECKBOXLIST = \"CHECKBOXLIST\",\r\n ARRAY = \"ARRAY\",\r\n CHECKBOX = \"CHECKBOX\",\r\n PHONE = \"PHONE\",\r\n MOBILE = \"MOBILE\",\r\n HIDDEN = \"HIDDEN\",\r\n MOBILECOUNTRYCODE = \"MOBILECOUNTRYCODE\",\r\n CUSTOM=\"CUSTOM\"\r\n}\r\n\r\nexport enum MenuTextColorEnum {\r\n INHERIT = \"inherit\",\r\n RED = \"red\",\r\n GREEN = \"green\",\r\n}\r\n\r\nexport enum AgePanelEnums {\r\n DATE_OF_BIRTH = 1,\r\n YEAR_OF_BIRTH = 2,\r\n AGE_RANGE = 3,\r\n}\r\n\r\nexport enum ProtestStatusEnum {\r\n REGISTERED = \"registered\",\r\n PENDING = \"pending\",\r\n MODIFICATION_REQUESTED = \"modification requested\",\r\n REJECTED = \"rejected\",\r\n APPROVED = \"approved\",\r\n}\r\n\r\nexport enum RouteEnum {\r\n INTERNAL = \"internal\",\r\n EXTERNAL = \"external\",\r\n}\r\n\r\nexport enum GaurdEnum {\r\n AUTH = \"auth\",\r\n PUBLIC = \"public\",\r\n}\r\n\r\nexport enum ThemeEnum {\r\n LIGHT = \"light\",\r\n DARK = \"dark\",\r\n}\r\n\r\nexport enum ColorEnum {\r\n PURPLE = \"purple\",\r\n BLUE = \"blue\",\r\n GREEN = \"green\",\r\n}\r\n\r\nexport enum SnackbarEnum {\r\n SUCCESS = \"success\",\r\n ERROR = \"error\",\r\n WARNING = \"warning\",\r\n INFO = \"info\",\r\n}\r\n\r\nexport enum DefaultRulesEnum {\r\n REQUIRED = \"required\",\r\n LABEL = \"label\",\r\n TYPE = \"type\",\r\n MIN_LENGTH = \"minLength\",\r\n MAX_LENGTH = \"maxLength\",\r\n AGE_BETWEEN = \"ageBetween\",\r\n IS_CHECK_CHARACTERS = \"isCheckCharacters\",\r\n IS_ALLOWED_OR_NOT_CHARACTERS = \"isAllowdOrNotCharacters\",\r\n LENGTH = \"length\",\r\n NOT_ALLOWED_STRING = \"notAllowedString\",\r\n ALLOWED_STRING = \"allowedString\",\r\n FROM_VALUE = \"fromValue\",\r\n DISABLED = \"disabled\",\r\n ISDISABLED=\"isDisabled\",\r\n INPUT_MODE = \"inputMode\",\r\n VALIDATE_SPECIFIC_CHARS = \"validateSpecificChars\",\r\n NOT_ALLOWED_SPECIFIC_CHARS = \"notAllowedSpecificChars\",\r\n MAX_VALUE = \"maxValue\",\r\n IS_NOT_ALLOWED_CHARACTERS = \"isNotAllowdCharacters\",\r\n EXTRA_REGEX = \"extraRegex\",\r\n MINIMUM_DATE = \"minimumDate\",\r\n MAXIMUM_DATE = \"maximumDate\",\r\n SERVER_FORMAT = \"serverFormat\",\r\n CLIENT_FORMAT = \"clientFormat\",\r\n DEFAULT_VALUE = \"defaultValue\",\r\n IS_CURRENT_TIME_ACCEPT = \"isCurrentTimeAccept\",\r\n CUSTOM_ERROR = \"customError\"\r\n}\r\n\r\nexport enum EConfirmationModalType {\r\n SUBMIT = \"SUBMIT\",\r\n CLEAR = \"CLEAR\",\r\n DELETE = \"DELETE\",\r\n DELETE_ALL = \"DELETE_ALL\",\r\n CHANGE = \"CHANGE\",\r\n CLOSE = \"CLOSE\",\r\n ALERT = \"ALERT\",\r\n}\r\n\r\nexport enum MinBirthYear {\r\n min0 = 0,\r\n min1 = 1,\r\n min7 = 7,\r\n min10 = 10,\r\n min18 = 18,\r\n min21 = 21,\r\n min25 = 25,\r\n min50 = 50,\r\n min100 = 100,\r\n min150 = 150,\r\n min200 = 200,\r\n}\r\n\r\nexport enum RelationTypeEnums {\r\n CLOSE = 1,\r\n DISTANCE = 2,\r\n}\r\n\r\nexport enum AddressTypeEnum {\r\n PRESENT = 1,\r\n PERMANANT = 2,\r\n PREVIOUS = 3\r\n}\r\n\r\nexport enum ButtonActionEnum {\r\n ADD = \"ADD\",\r\n EDIT = \"EDIT\",\r\n VIEW = \"VIEW\",\r\n DELETE = \"DELETE\",\r\n SUBMIT = \"SUBMIT\",\r\n CLOSE = \"CLOSE\",\r\n UPDATE = \"UPDATE\",\r\n NEXT = \"NEXT\",\r\n PRINT = \"PRINT\",\r\n SAVE = \"SAVE\",\r\n CLEAR = \"CLEAR\",\r\n SEARCH = \"SEARCH\"\r\n}\r\n\r\nexport enum IdentificationTypeEnum {\r\n PASSPORT = 1,\r\n DRIVING_LISCENCE = 2,\r\n RATION_CARD = 3,\r\n ARMS_LISCENCE = 4,\r\n VOTER_ID = 5,\r\n PAN_CARD = 6,\r\n OTHERS = 7,\r\n AADHAR_CARD = 8,\r\n}\r\n\r\nexport enum YESNO {\r\n YES = \"Y\",\r\n NO = \"N\"\r\n}\r\nexport enum DeviceTypeEnum {\r\n MOBILE = \"MOBILE\",\r\n TABLET = \"TABLET\",\r\n DESKTOP = \"DESKTOP\",\r\n}\r\n\r\nexport enum StatusCodeEnum {\r\n OK = 200,\r\n SUCCESS = 201\r\n}\r\n\r\nexport const CommonDraftnKeys = { \r\n PAGEABLE: {\r\n KEY: 'pageable',\r\n PAGE: 'page',\r\n PAGE_SIZE: 'pageSize'\r\n },\r\n MODULE_NUMBER: \"moduleNumber\",\r\n MODULE_NAME: \"module\",\r\n DRAFT_ID: \"draftId\",\r\n } as const;\r\n \r\n\r\nexport enum ModuleName { \r\n PROTEST = \"CITIZEN/PROTEST\",\r\n LOSTMOBILE = \"CITIZEN/LOST_MOB\",\r\n PROCESSION = \"CITIZEN/PROCESSION\",\r\n SR_CITIZEN = \"CITIZEN/SENIOR_CITIZEN\",\r\n COMPLAIN = \"CITIZEN/COMPL\",\r\n BLANK = \"BLANK\",\r\n EMPLOYEE_VERIFICATION = \"CITIZEN/EMPLOYEE_VERIFICATION\",\r\n}\r\n\r\nexport enum MODE {\r\n VIEW = \"view\",\r\n EDIT = \"edit\"\r\n}\r\nexport enum StatusEnum {\r\n REGISTERED= \"REGISTERED\",\r\n PENDING= \"PENDING\",\r\n MODIFICATION_REQUESTED= \"MODIFICATION REQUESTED\",\r\n REJECTED= \"REJECTED\",\r\n APPROVED= \"APPROVED\"\r\n}\r\n\r\nexport enum MinYearEnum {\r\n GENERAL = 7,\r\n SENIOR_CITIZEN = 60,\r\n ADULT = 18,\r\n UNKNOWN = 0\r\n}"],"mappings":";AAQA,IAAY,IAAL,yBAAA,GAAA;QACL,EAAA,UAAA,UACA,EAAA,WAAA,YACA,EAAA,SAAA,UACA,EAAA,QAAA,SACA,EAAA,OAAA,QACA,EAAA,OAAA,QACA,EAAA,YAAA,aACA,EAAA,YAAA,aACA,EAAA,QAAA,SACA,EAAA,OAAA,QACA,EAAA,OAAA,QACA,EAAA,OAAA,QACA,EAAA,eAAA,gBACA,EAAA,QAAA,SACA,EAAA,WAAA,YACA,EAAA,QAAA,SACA,EAAA,SAAA,UACA,EAAA,SAAA,UACA,EAAA,oBAAA,qBACA,EAAA,SAAA;AACF,EAAA,CAAA,CAAA,GAEY,IAAL,yBAAA,GAAA;QACL,EAAA,UAAA,WACA,EAAA,MAAA,OACA,EAAA,QAAA;AACF,EAAA,CAAA,CAAA"}
|
package/dist/index125.js
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
//#region node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js
|
|
2
|
+
var { slice: e, forEach: t } = [];
|
|
3
|
+
function n(n) {
|
|
4
|
+
return t.call(e.call(arguments, 1), (e) => {
|
|
5
|
+
if (e) for (let t in e) n[t] === void 0 && (n[t] = e[t]);
|
|
6
|
+
}), n;
|
|
7
|
+
}
|
|
8
|
+
function r(e) {
|
|
9
|
+
return typeof e == "string" && [
|
|
10
|
+
/<\s*script.*?>/i,
|
|
11
|
+
/<\s*\/\s*script\s*>/i,
|
|
12
|
+
/<\s*img.*?on\w+\s*=/i,
|
|
13
|
+
/<\s*\w+\s*on\w+\s*=.*?>/i,
|
|
14
|
+
/javascript\s*:/i,
|
|
15
|
+
/vbscript\s*:/i,
|
|
16
|
+
/expression\s*\(/i,
|
|
17
|
+
/eval\s*\(/i,
|
|
18
|
+
/alert\s*\(/i,
|
|
19
|
+
/document\.cookie/i,
|
|
20
|
+
/document\.write\s*\(/i,
|
|
21
|
+
/window\.location/i,
|
|
22
|
+
/innerHTML/i
|
|
23
|
+
].some((t) => t.test(e));
|
|
24
|
+
}
|
|
25
|
+
var i = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, a = function(e, t) {
|
|
26
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { path: "/" }, r = `${e}=${encodeURIComponent(t)}`;
|
|
27
|
+
if (n.maxAge > 0) {
|
|
28
|
+
let e = n.maxAge - 0;
|
|
29
|
+
if (Number.isNaN(e)) throw Error("maxAge should be a Number");
|
|
30
|
+
r += `; Max-Age=${Math.floor(e)}`;
|
|
31
|
+
}
|
|
32
|
+
if (n.domain) {
|
|
33
|
+
if (!i.test(n.domain)) throw TypeError("option domain is invalid");
|
|
34
|
+
r += `; Domain=${n.domain}`;
|
|
35
|
+
}
|
|
36
|
+
if (n.path) {
|
|
37
|
+
if (!i.test(n.path)) throw TypeError("option path is invalid");
|
|
38
|
+
r += `; Path=${n.path}`;
|
|
39
|
+
}
|
|
40
|
+
if (n.expires) {
|
|
41
|
+
if (typeof n.expires.toUTCString != "function") throw TypeError("option expires is invalid");
|
|
42
|
+
r += `; Expires=${n.expires.toUTCString()}`;
|
|
43
|
+
}
|
|
44
|
+
if (n.httpOnly && (r += "; HttpOnly"), n.secure && (r += "; Secure"), n.sameSite) switch (typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite) {
|
|
45
|
+
case !0:
|
|
46
|
+
r += "; SameSite=Strict";
|
|
47
|
+
break;
|
|
48
|
+
case "lax":
|
|
49
|
+
r += "; SameSite=Lax";
|
|
50
|
+
break;
|
|
51
|
+
case "strict":
|
|
52
|
+
r += "; SameSite=Strict";
|
|
53
|
+
break;
|
|
54
|
+
case "none":
|
|
55
|
+
r += "; SameSite=None";
|
|
56
|
+
break;
|
|
57
|
+
default: throw TypeError("option sameSite is invalid");
|
|
58
|
+
}
|
|
59
|
+
return n.partitioned && (r += "; Partitioned"), r;
|
|
60
|
+
}, o = {
|
|
61
|
+
create(e, t, n, r) {
|
|
62
|
+
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
63
|
+
path: "/",
|
|
64
|
+
sameSite: "strict"
|
|
65
|
+
};
|
|
66
|
+
n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = a(e, t, i);
|
|
67
|
+
},
|
|
68
|
+
read(e) {
|
|
69
|
+
let t = `${e}=`, n = document.cookie.split(";");
|
|
70
|
+
for (let e = 0; e < n.length; e++) {
|
|
71
|
+
let r = n[e];
|
|
72
|
+
for (; r.charAt(0) === " ";) r = r.substring(1, r.length);
|
|
73
|
+
if (r.indexOf(t) === 0) return r.substring(t.length, r.length);
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
},
|
|
77
|
+
remove(e, t) {
|
|
78
|
+
this.create(e, "", -1, t);
|
|
79
|
+
}
|
|
80
|
+
}, s = {
|
|
81
|
+
name: "cookie",
|
|
82
|
+
lookup(e) {
|
|
83
|
+
let { lookupCookie: t } = e;
|
|
84
|
+
if (t && typeof document < "u") return o.read(t) || void 0;
|
|
85
|
+
},
|
|
86
|
+
cacheUserLanguage(e, t) {
|
|
87
|
+
let { lookupCookie: n, cookieMinutes: r, cookieDomain: i, cookieOptions: a } = t;
|
|
88
|
+
n && typeof document < "u" && o.create(n, e, r, i, a);
|
|
89
|
+
}
|
|
90
|
+
}, c = {
|
|
91
|
+
name: "querystring",
|
|
92
|
+
lookup(e) {
|
|
93
|
+
let { lookupQuerystring: t } = e, n;
|
|
94
|
+
if (typeof window < "u") {
|
|
95
|
+
let { search: e } = window.location;
|
|
96
|
+
!window.location.search && window.location.hash?.indexOf("?") > -1 && (e = window.location.hash.substring(window.location.hash.indexOf("?")));
|
|
97
|
+
let r = e.substring(1).split("&");
|
|
98
|
+
for (let e = 0; e < r.length; e++) {
|
|
99
|
+
let i = r[e].indexOf("=");
|
|
100
|
+
i > 0 && r[e].substring(0, i) === t && (n = r[e].substring(i + 1));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return n;
|
|
104
|
+
}
|
|
105
|
+
}, l = {
|
|
106
|
+
name: "hash",
|
|
107
|
+
lookup(e) {
|
|
108
|
+
let { lookupHash: t, lookupFromHashIndex: n } = e, r;
|
|
109
|
+
if (typeof window < "u") {
|
|
110
|
+
let { hash: e } = window.location;
|
|
111
|
+
if (e && e.length > 2) {
|
|
112
|
+
let i = e.substring(1);
|
|
113
|
+
if (t) {
|
|
114
|
+
let e = i.split("&");
|
|
115
|
+
for (let n = 0; n < e.length; n++) {
|
|
116
|
+
let i = e[n].indexOf("=");
|
|
117
|
+
i > 0 && e[n].substring(0, i) === t && (r = e[n].substring(i + 1));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
if (r) return r;
|
|
121
|
+
if (!r && n > -1) {
|
|
122
|
+
let t = e.match(/\/([a-zA-Z-]*)/g);
|
|
123
|
+
return Array.isArray(t) ? t[typeof n == "number" ? n : 0]?.replace("/", "") : void 0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return r;
|
|
128
|
+
}
|
|
129
|
+
}, u = null, d = () => {
|
|
130
|
+
if (u !== null) return u;
|
|
131
|
+
try {
|
|
132
|
+
if (u = typeof window < "u" && window.localStorage !== null, !u) return !1;
|
|
133
|
+
let e = "i18next.translate.boo";
|
|
134
|
+
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
135
|
+
} catch {
|
|
136
|
+
u = !1;
|
|
137
|
+
}
|
|
138
|
+
return u;
|
|
139
|
+
}, f = {
|
|
140
|
+
name: "localStorage",
|
|
141
|
+
lookup(e) {
|
|
142
|
+
let { lookupLocalStorage: t } = e;
|
|
143
|
+
if (t && d()) return window.localStorage.getItem(t) || void 0;
|
|
144
|
+
},
|
|
145
|
+
cacheUserLanguage(e, t) {
|
|
146
|
+
let { lookupLocalStorage: n } = t;
|
|
147
|
+
n && d() && window.localStorage.setItem(n, e);
|
|
148
|
+
}
|
|
149
|
+
}, p = null, m = () => {
|
|
150
|
+
if (p !== null) return p;
|
|
151
|
+
try {
|
|
152
|
+
if (p = typeof window < "u" && window.sessionStorage !== null, !p) return !1;
|
|
153
|
+
let e = "i18next.translate.boo";
|
|
154
|
+
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
155
|
+
} catch {
|
|
156
|
+
p = !1;
|
|
157
|
+
}
|
|
158
|
+
return p;
|
|
159
|
+
}, h = {
|
|
160
|
+
name: "sessionStorage",
|
|
161
|
+
lookup(e) {
|
|
162
|
+
let { lookupSessionStorage: t } = e;
|
|
163
|
+
if (t && m()) return window.sessionStorage.getItem(t) || void 0;
|
|
164
|
+
},
|
|
165
|
+
cacheUserLanguage(e, t) {
|
|
166
|
+
let { lookupSessionStorage: n } = t;
|
|
167
|
+
n && m() && window.sessionStorage.setItem(n, e);
|
|
168
|
+
}
|
|
169
|
+
}, g = {
|
|
170
|
+
name: "navigator",
|
|
171
|
+
lookup(e) {
|
|
172
|
+
let t = [];
|
|
173
|
+
if (typeof navigator < "u") {
|
|
174
|
+
let { languages: e, userLanguage: n, language: r } = navigator;
|
|
175
|
+
if (e) for (let n = 0; n < e.length; n++) t.push(e[n]);
|
|
176
|
+
n && t.push(n), r && t.push(r);
|
|
177
|
+
}
|
|
178
|
+
return t.length > 0 ? t : void 0;
|
|
179
|
+
}
|
|
180
|
+
}, _ = {
|
|
181
|
+
name: "htmlTag",
|
|
182
|
+
lookup(e) {
|
|
183
|
+
let { htmlTag: t } = e, n, r = t || (typeof document < "u" ? document.documentElement : null);
|
|
184
|
+
return r && typeof r.getAttribute == "function" && (n = r.getAttribute("lang")), n;
|
|
185
|
+
}
|
|
186
|
+
}, v = {
|
|
187
|
+
name: "path",
|
|
188
|
+
lookup(e) {
|
|
189
|
+
let { lookupFromPathIndex: t } = e;
|
|
190
|
+
if (typeof window > "u") return;
|
|
191
|
+
let n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
192
|
+
if (Array.isArray(n)) return n[typeof t == "number" ? t : 0]?.replace("/", "");
|
|
193
|
+
}
|
|
194
|
+
}, y = {
|
|
195
|
+
name: "subdomain",
|
|
196
|
+
lookup(e) {
|
|
197
|
+
let { lookupFromSubdomainIndex: t } = e, n = typeof t == "number" ? t + 1 : 1, r = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
198
|
+
if (r) return r[n];
|
|
199
|
+
}
|
|
200
|
+
}, b = !1;
|
|
201
|
+
try {
|
|
202
|
+
document.cookie, b = !0;
|
|
203
|
+
} catch {}
|
|
204
|
+
var x = [
|
|
205
|
+
"querystring",
|
|
206
|
+
"cookie",
|
|
207
|
+
"localStorage",
|
|
208
|
+
"sessionStorage",
|
|
209
|
+
"navigator",
|
|
210
|
+
"htmlTag"
|
|
211
|
+
];
|
|
212
|
+
b || x.splice(1, 1);
|
|
213
|
+
var S = () => ({
|
|
214
|
+
order: x,
|
|
215
|
+
lookupQuerystring: "lng",
|
|
216
|
+
lookupCookie: "i18next",
|
|
217
|
+
lookupLocalStorage: "i18nextLng",
|
|
218
|
+
lookupSessionStorage: "i18nextLng",
|
|
219
|
+
caches: ["localStorage"],
|
|
220
|
+
excludeCacheFor: ["cimode"],
|
|
221
|
+
convertDetectedLanguage: (e) => e
|
|
222
|
+
}), C = class {
|
|
223
|
+
constructor(e) {
|
|
224
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
225
|
+
this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
226
|
+
}
|
|
227
|
+
init() {
|
|
228
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { languageUtils: {} }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
229
|
+
this.services = e, this.options = n(t, this.options || {}, S()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (e) => e.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(s), this.addDetector(c), this.addDetector(f), this.addDetector(h), this.addDetector(g), this.addDetector(_), this.addDetector(v), this.addDetector(y), this.addDetector(l);
|
|
230
|
+
}
|
|
231
|
+
addDetector(e) {
|
|
232
|
+
return this.detectors[e.name] = e, this;
|
|
233
|
+
}
|
|
234
|
+
detect() {
|
|
235
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.order, t = [];
|
|
236
|
+
return e.forEach((e) => {
|
|
237
|
+
if (this.detectors[e]) {
|
|
238
|
+
let n = this.detectors[e].lookup(this.options);
|
|
239
|
+
n && typeof n == "string" && (n = [n]), n && (t = t.concat(n));
|
|
240
|
+
}
|
|
241
|
+
}), t = t.filter((e) => e != null && !r(e)).map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
|
|
242
|
+
}
|
|
243
|
+
cacheUserLanguage(e) {
|
|
244
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
245
|
+
t && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(e) > -1 || t.forEach((t) => {
|
|
246
|
+
this.detectors[t] && this.detectors[t].cacheUserLanguage(e, this.options);
|
|
247
|
+
}));
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
C.type = "languageDetector";
|
|
251
|
+
//#endregion
|
|
252
|
+
export { C as default };
|
|
253
|
+
|
|
254
|
+
//# sourceMappingURL=index125.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index125.js","names":[],"sources":["../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js"],"sourcesContent":["const {\n slice,\n forEach\n} = [];\nfunction defaults(obj) {\n forEach.call(slice.call(arguments, 1), source => {\n if (source) {\n for (const prop in source) {\n if (obj[prop] === undefined) obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\nfunction hasXSS(input) {\n if (typeof input !== 'string') return false;\n\n // Common XSS attack patterns\n const xssPatterns = [/<\\s*script.*?>/i, /<\\s*\\/\\s*script\\s*>/i, /<\\s*img.*?on\\w+\\s*=/i, /<\\s*\\w+\\s*on\\w+\\s*=.*?>/i, /javascript\\s*:/i, /vbscript\\s*:/i, /expression\\s*\\(/i, /eval\\s*\\(/i, /alert\\s*\\(/i, /document\\.cookie/i, /document\\.write\\s*\\(/i, /window\\.location/i, /innerHTML/i];\n return xssPatterns.some(pattern => pattern.test(input));\n}\n\n// eslint-disable-next-line no-control-regex\nconst fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\nconst serializeCookie = function (name, val) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n path: '/'\n };\n const opt = options;\n const value = encodeURIComponent(val);\n let str = `${name}=${value}`;\n if (opt.maxAge > 0) {\n const maxAge = opt.maxAge - 0;\n if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');\n str += `; Max-Age=${Math.floor(maxAge)}`;\n }\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n str += `; Domain=${opt.domain}`;\n }\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n str += `; Path=${opt.path}`;\n }\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n str += `; Expires=${opt.expires.toUTCString()}`;\n }\n if (opt.httpOnly) str += '; HttpOnly';\n if (opt.secure) str += '; Secure';\n if (opt.sameSite) {\n const sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n if (opt.partitioned) str += '; Partitioned';\n return str;\n};\nconst cookie = {\n create(name, value, minutes, domain) {\n let cookieOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n path: '/',\n sameSite: 'strict'\n };\n if (minutes) {\n cookieOptions.expires = new Date();\n cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1000);\n }\n if (domain) cookieOptions.domain = domain;\n document.cookie = serializeCookie(name, value, cookieOptions);\n },\n read(name) {\n const nameEQ = `${name}=`;\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n },\n remove(name, domain) {\n this.create(name, '', -1, domain);\n }\n};\nvar cookie$1 = {\n name: 'cookie',\n // Deconstruct the options object and extract the lookupCookie property\n lookup(_ref) {\n let {\n lookupCookie\n } = _ref;\n if (lookupCookie && typeof document !== 'undefined') {\n return cookie.read(lookupCookie) || undefined;\n }\n return undefined;\n },\n // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties\n cacheUserLanguage(lng, _ref2) {\n let {\n lookupCookie,\n cookieMinutes,\n cookieDomain,\n cookieOptions\n } = _ref2;\n if (lookupCookie && typeof document !== 'undefined') {\n cookie.create(lookupCookie, lng, cookieMinutes, cookieDomain, cookieOptions);\n }\n }\n};\n\nvar querystring = {\n name: 'querystring',\n // Deconstruct the options object and extract the lookupQuerystring property\n lookup(_ref) {\n let {\n lookupQuerystring\n } = _ref;\n let found;\n if (typeof window !== 'undefined') {\n let {\n search\n } = window.location;\n if (!window.location.search && window.location.hash?.indexOf('?') > -1) {\n search = window.location.hash.substring(window.location.hash.indexOf('?'));\n }\n const query = search.substring(1);\n const params = query.split('&');\n for (let i = 0; i < params.length; i++) {\n const pos = params[i].indexOf('=');\n if (pos > 0) {\n const key = params[i].substring(0, pos);\n if (key === lookupQuerystring) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n return found;\n }\n};\n\nvar hash = {\n name: 'hash',\n // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property\n lookup(_ref) {\n let {\n lookupHash,\n lookupFromHashIndex\n } = _ref;\n let found;\n if (typeof window !== 'undefined') {\n const {\n hash\n } = window.location;\n if (hash && hash.length > 2) {\n const query = hash.substring(1);\n if (lookupHash) {\n const params = query.split('&');\n for (let i = 0; i < params.length; i++) {\n const pos = params[i].indexOf('=');\n if (pos > 0) {\n const key = params[i].substring(0, pos);\n if (key === lookupHash) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n if (found) return found;\n if (!found && lookupFromHashIndex > -1) {\n const language = hash.match(/\\/([a-zA-Z-]*)/g);\n if (!Array.isArray(language)) return undefined;\n const index = typeof lookupFromHashIndex === 'number' ? lookupFromHashIndex : 0;\n return language[index]?.replace('/', '');\n }\n }\n }\n return found;\n }\n};\n\nlet hasLocalStorageSupport = null;\nconst localStorageAvailable = () => {\n if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;\n try {\n hasLocalStorageSupport = typeof window !== 'undefined' && window.localStorage !== null;\n if (!hasLocalStorageSupport) {\n return false;\n }\n const testKey = 'i18next.translate.boo';\n window.localStorage.setItem(testKey, 'foo');\n window.localStorage.removeItem(testKey);\n } catch (e) {\n hasLocalStorageSupport = false;\n }\n return hasLocalStorageSupport;\n};\nvar localStorage = {\n name: 'localStorage',\n // Deconstruct the options object and extract the lookupLocalStorage property\n lookup(_ref) {\n let {\n lookupLocalStorage\n } = _ref;\n if (lookupLocalStorage && localStorageAvailable()) {\n return window.localStorage.getItem(lookupLocalStorage) || undefined; // Undefined ensures type consistency with the previous version of this function\n }\n return undefined;\n },\n // Deconstruct the options object and extract the lookupLocalStorage property\n cacheUserLanguage(lng, _ref2) {\n let {\n lookupLocalStorage\n } = _ref2;\n if (lookupLocalStorage && localStorageAvailable()) {\n window.localStorage.setItem(lookupLocalStorage, lng);\n }\n }\n};\n\nlet hasSessionStorageSupport = null;\nconst sessionStorageAvailable = () => {\n if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;\n try {\n hasSessionStorageSupport = typeof window !== 'undefined' && window.sessionStorage !== null;\n if (!hasSessionStorageSupport) {\n return false;\n }\n const testKey = 'i18next.translate.boo';\n window.sessionStorage.setItem(testKey, 'foo');\n window.sessionStorage.removeItem(testKey);\n } catch (e) {\n hasSessionStorageSupport = false;\n }\n return hasSessionStorageSupport;\n};\nvar sessionStorage = {\n name: 'sessionStorage',\n lookup(_ref) {\n let {\n lookupSessionStorage\n } = _ref;\n if (lookupSessionStorage && sessionStorageAvailable()) {\n return window.sessionStorage.getItem(lookupSessionStorage) || undefined;\n }\n return undefined;\n },\n cacheUserLanguage(lng, _ref2) {\n let {\n lookupSessionStorage\n } = _ref2;\n if (lookupSessionStorage && sessionStorageAvailable()) {\n window.sessionStorage.setItem(lookupSessionStorage, lng);\n }\n }\n};\n\nvar navigator$1 = {\n name: 'navigator',\n lookup(options) {\n const found = [];\n if (typeof navigator !== 'undefined') {\n const {\n languages,\n userLanguage,\n language\n } = navigator;\n if (languages) {\n // chrome only; not an array, so can't use .push.apply instead of iterating\n for (let i = 0; i < languages.length; i++) {\n found.push(languages[i]);\n }\n }\n if (userLanguage) {\n found.push(userLanguage);\n }\n if (language) {\n found.push(language);\n }\n }\n return found.length > 0 ? found : undefined;\n }\n};\n\nvar htmlTag = {\n name: 'htmlTag',\n // Deconstruct the options object and extract the htmlTag property\n lookup(_ref) {\n let {\n htmlTag\n } = _ref;\n let found;\n const internalHtmlTag = htmlTag || (typeof document !== 'undefined' ? document.documentElement : null);\n if (internalHtmlTag && typeof internalHtmlTag.getAttribute === 'function') {\n found = internalHtmlTag.getAttribute('lang');\n }\n return found;\n }\n};\n\nvar path = {\n name: 'path',\n // Deconstruct the options object and extract the lookupFromPathIndex property\n lookup(_ref) {\n let {\n lookupFromPathIndex\n } = _ref;\n if (typeof window === 'undefined') return undefined;\n const language = window.location.pathname.match(/\\/([a-zA-Z-]*)/g);\n if (!Array.isArray(language)) return undefined;\n const index = typeof lookupFromPathIndex === 'number' ? lookupFromPathIndex : 0;\n return language[index]?.replace('/', '');\n }\n};\n\nvar subdomain = {\n name: 'subdomain',\n lookup(_ref) {\n let {\n lookupFromSubdomainIndex\n } = _ref;\n // If given get the subdomain index else 1\n const internalLookupFromSubdomainIndex = typeof lookupFromSubdomainIndex === 'number' ? lookupFromSubdomainIndex + 1 : 1;\n // get all matches if window.location. is existing\n // first item of match is the match itself and the second is the first group match which should be the first subdomain match\n // is the hostname no public domain get the or option of localhost\n const language = typeof window !== 'undefined' && window.location?.hostname?.match(/^(\\w{2,5})\\.(([a-z0-9-]{1,63}\\.[a-z]{2,6})|localhost)/i);\n\n // if there is no match (null) return undefined\n if (!language) return undefined;\n // return the given group match\n return language[internalLookupFromSubdomainIndex];\n }\n};\n\n// some environments, throws when accessing document.cookie\nlet canCookies = false;\ntry {\n // eslint-disable-next-line no-unused-expressions\n document.cookie;\n canCookies = true;\n // eslint-disable-next-line no-empty\n} catch (e) {}\nconst order = ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'];\nif (!canCookies) order.splice(1, 1);\nconst getDefaults = () => ({\n order,\n lookupQuerystring: 'lng',\n lookupCookie: 'i18next',\n lookupLocalStorage: 'i18nextLng',\n lookupSessionStorage: 'i18nextLng',\n // cache user language\n caches: ['localStorage'],\n excludeCacheFor: ['cimode'],\n // cookieMinutes: 10,\n // cookieDomain: 'myDomain'\n\n convertDetectedLanguage: l => l\n});\nclass Browser {\n constructor(services) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n this.type = 'languageDetector';\n this.detectors = {};\n this.init(services, options);\n }\n init() {\n let services = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n languageUtils: {}\n };\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let i18nOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.services = services;\n this.options = defaults(options, this.options || {}, getDefaults());\n if (typeof this.options.convertDetectedLanguage === 'string' && this.options.convertDetectedLanguage.indexOf('15897') > -1) {\n this.options.convertDetectedLanguage = l => l.replace('-', '_');\n }\n\n // backwards compatibility\n if (this.options.lookupFromUrlIndex) this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;\n this.i18nOptions = i18nOptions;\n this.addDetector(cookie$1);\n this.addDetector(querystring);\n this.addDetector(localStorage);\n this.addDetector(sessionStorage);\n this.addDetector(navigator$1);\n this.addDetector(htmlTag);\n this.addDetector(path);\n this.addDetector(subdomain);\n this.addDetector(hash);\n }\n addDetector(detector) {\n this.detectors[detector.name] = detector;\n return this;\n }\n detect() {\n let detectionOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.order;\n let detected = [];\n detectionOrder.forEach(detectorName => {\n if (this.detectors[detectorName]) {\n let lookup = this.detectors[detectorName].lookup(this.options);\n if (lookup && typeof lookup === 'string') lookup = [lookup];\n if (lookup) detected = detected.concat(lookup);\n }\n });\n detected = detected.filter(d => d !== undefined && d !== null && !hasXSS(d)).map(d => this.options.convertDetectedLanguage(d));\n if (this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0\n return detected.length > 0 ? detected[0] : null; // a little backward compatibility\n }\n cacheUserLanguage(lng) {\n let caches = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.options.caches;\n if (!caches) return;\n if (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(lng) > -1) return;\n caches.forEach(cacheName => {\n if (this.detectors[cacheName]) this.detectors[cacheName].cacheUserLanguage(lng, this.options);\n });\n }\n}\nBrowser.type = 'languageDetector';\n\nexport { Browser as default };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,EACJ,UACA,eACE,CAAC;AACL,SAAS,EAAS,GAAK;CAQrB,OAPA,EAAQ,KAAK,EAAM,KAAK,WAAW,C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