dq-cus-lib 1.0.13 → 1.1.1

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.
Files changed (87) hide show
  1. package/dist/index.css +181 -0
  2. package/dist/index.css.map +1 -0
  3. package/dist/index.d.ts +29 -6
  4. package/dist/index.js +365 -1
  5. package/dist/index.js.map +1 -0
  6. package/package.json +15 -40
  7. package/dist/Card-Bfg8P2ba.mjs +0 -70
  8. package/dist/Card-DZoz07x1.js +0 -1
  9. package/dist/CardContent-C3iE4rdC.js +0 -1
  10. package/dist/CardContent-CX83Iz5u.mjs +0 -73
  11. package/dist/Container-CHiQwwon.mjs +0 -3470
  12. package/dist/Container-DRUrQLPe.js +0 -34
  13. package/dist/Paper-B1BWzC32.js +0 -3
  14. package/dist/Paper-px0ZrIl-.mjs +0 -725
  15. package/dist/Typography-DjYh_lcA.js +0 -1
  16. package/dist/Typography-dhPvE-yk.mjs +0 -524
  17. package/dist/button-BTe1MJmo.mjs +0 -2052
  18. package/dist/button-XEz-DvWZ.js +0 -132
  19. package/dist/components/common/loading.d.ts +0 -2
  20. package/dist/components/common/login-image.d.ts +0 -6
  21. package/dist/components/error.page/error.d.ts +0 -2
  22. package/dist/components/landing.page/constants.d.ts +0 -5
  23. package/dist/components/landing.page/features.d.ts +0 -3
  24. package/dist/components/landing.page/footer.d.ts +0 -7
  25. package/dist/components/landing.page/header.d.ts +0 -7
  26. package/dist/components/landing.page/hero.d.ts +0 -7
  27. package/dist/components/layout.page/api-calls.d.ts +0 -2
  28. package/dist/components/layout.page/constants.d.ts +0 -9
  29. package/dist/components/layout.page/footer.d.ts +0 -2
  30. package/dist/components/layout.page/header.d.ts +0 -5
  31. package/dist/components/signin.page/api-calls.d.ts +0 -1
  32. package/dist/components/signin.page/business-rules.d.ts +0 -1
  33. package/dist/components/signin.page/footer-links.d.ts +0 -10
  34. package/dist/components/signin.page/sign-in.d.ts +0 -6
  35. package/dist/components/user.page/card.d.ts +0 -12
  36. package/dist/components/user.page/constants.d.ts +0 -16
  37. package/dist/components/user.page/navigator-icon.d.ts +0 -8
  38. package/dist/components/user.page/navigator-link.d.ts +0 -8
  39. package/dist/constants-CYWfA_it.js +0 -1
  40. package/dist/constants-bixGJi69.mjs +0 -10
  41. package/dist/dashboard.page.d.ts +0 -4
  42. package/dist/dashboard.page.js +0 -1
  43. package/dist/dashboard.page.mjs +0 -52
  44. package/dist/dq-cus-lib.css +0 -1
  45. package/dist/error-B0u1MssC.mjs +0 -17
  46. package/dist/error-C-Fm8lre.js +0 -1
  47. package/dist/error.page.d.ts +0 -4
  48. package/dist/error.page.js +0 -1
  49. package/dist/error.page.mjs +0 -10
  50. package/dist/favicon.ico +0 -0
  51. package/dist/header-BLuHRYED.js +0 -1
  52. package/dist/header-DZeF4MvE.mjs +0 -353
  53. package/dist/index-CCRuOAqd.js +0 -292
  54. package/dist/index-gUmyoYAp.mjs +0 -477
  55. package/dist/index.mjs +0 -16
  56. package/dist/jsx-runtime-nZSsnGb7.js +0 -6
  57. package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
  58. package/dist/landing.page.d.ts +0 -4
  59. package/dist/landing.page.js +0 -3
  60. package/dist/landing.page.mjs +0 -181
  61. package/dist/layout.page.d.ts +0 -4
  62. package/dist/layout.page.js +0 -1
  63. package/dist/layout.page.mjs +0 -24
  64. package/dist/library/index.d.ts +0 -6
  65. package/dist/link-button-BkYJm52P.mjs +0 -52
  66. package/dist/link-button-yZmEF1A6.js +0 -19
  67. package/dist/logout-error.page.d.ts +0 -4
  68. package/dist/logout-error.page.js +0 -1
  69. package/dist/logout-error.page.mjs +0 -31
  70. package/dist/manifest.json +0 -15
  71. package/dist/pages/dashboard.page.d.ts +0 -2
  72. package/dist/pages/error.page.d.ts +0 -2
  73. package/dist/pages/landing.page.d.ts +0 -7
  74. package/dist/pages/layout.page.d.ts +0 -8
  75. package/dist/pages/logout-error.page.d.ts +0 -6
  76. package/dist/pages/signin.page.d.ts +0 -6
  77. package/dist/pages/wrappers/auth.wrapper.d.ts +0 -8
  78. package/dist/pages/wrappers/common-page.wrapper.d.ts +0 -2
  79. package/dist/pages/wrappers/link.navigator.d.ts +0 -8
  80. package/dist/pages/wrappers/non-auth.wrapper.d.ts +0 -6
  81. package/dist/resources/constants.d.ts +0 -7
  82. package/dist/resources/images.d.ts +0 -6
  83. package/dist/resources/routes.d.ts +0 -9
  84. package/dist/resources/status.d.ts +0 -4
  85. package/dist/signin.page.d.ts +0 -4
  86. package/dist/signin.page.js +0 -17
  87. package/dist/signin.page.mjs +0 -9761
@@ -1,353 +0,0 @@
1
- import { j as s } from "./jsx-runtime-tc70JA_2.mjs";
2
- import { I as m, S as I, b as f } from "./button-BTe1MJmo.mjs";
3
- import * as v from "react";
4
- import { g as x, u as B, c as A, a as c, s as k, P as r } from "./Container-CHiQwwon.mjs";
5
- import { b as T, c as j, P as N, m as O, d as R, B as b } from "./Paper-px0ZrIl-.mjs";
6
- function w(o) {
7
- return x("MuiAppBar", o);
8
- }
9
- T("MuiAppBar", ["root", "positionFixed", "positionAbsolute", "positionSticky", "positionStatic", "positionRelative", "colorDefault", "colorPrimary", "colorSecondary", "colorInherit", "colorTransparent", "colorError", "colorInfo", "colorSuccess", "colorWarning"]);
10
- const M = (o) => {
11
- const {
12
- color: a,
13
- position: t,
14
- classes: e
15
- } = o, n = {
16
- root: ["root", `color${c(a)}`, `position${c(t)}`]
17
- };
18
- return j(n, w, e);
19
- }, y = (o, a) => o ? `${o.replace(")", "")}, ${a})` : a, D = k(N, {
20
- name: "MuiAppBar",
21
- slot: "Root",
22
- overridesResolver: (o, a) => {
23
- const {
24
- ownerState: t
25
- } = o;
26
- return [a.root, a[`position${c(t.position)}`], a[`color${c(t.color)}`]];
27
- }
28
- })(O(({
29
- theme: o
30
- }) => ({
31
- display: "flex",
32
- flexDirection: "column",
33
- width: "100%",
34
- boxSizing: "border-box",
35
- // Prevent padding issue with the Modal and fixed positioned AppBar.
36
- flexShrink: 0,
37
- variants: [{
38
- props: {
39
- position: "fixed"
40
- },
41
- style: {
42
- position: "fixed",
43
- zIndex: (o.vars || o).zIndex.appBar,
44
- top: 0,
45
- left: "auto",
46
- right: 0,
47
- "@media print": {
48
- // Prevent the app bar to be visible on each printed page.
49
- position: "absolute"
50
- }
51
- }
52
- }, {
53
- props: {
54
- position: "absolute"
55
- },
56
- style: {
57
- position: "absolute",
58
- zIndex: (o.vars || o).zIndex.appBar,
59
- top: 0,
60
- left: "auto",
61
- right: 0
62
- }
63
- }, {
64
- props: {
65
- position: "sticky"
66
- },
67
- style: {
68
- position: "sticky",
69
- zIndex: (o.vars || o).zIndex.appBar,
70
- top: 0,
71
- left: "auto",
72
- right: 0
73
- }
74
- }, {
75
- props: {
76
- position: "static"
77
- },
78
- style: {
79
- position: "static"
80
- }
81
- }, {
82
- props: {
83
- position: "relative"
84
- },
85
- style: {
86
- position: "relative"
87
- }
88
- }, {
89
- props: {
90
- color: "inherit"
91
- },
92
- style: {
93
- "--AppBar-color": "inherit",
94
- color: "var(--AppBar-color)"
95
- }
96
- }, {
97
- props: {
98
- color: "default"
99
- },
100
- style: {
101
- "--AppBar-background": o.vars ? o.vars.palette.AppBar.defaultBg : o.palette.grey[100],
102
- "--AppBar-color": o.vars ? o.vars.palette.text.primary : o.palette.getContrastText(o.palette.grey[100]),
103
- ...o.applyStyles("dark", {
104
- "--AppBar-background": o.vars ? o.vars.palette.AppBar.defaultBg : o.palette.grey[900],
105
- "--AppBar-color": o.vars ? o.vars.palette.text.primary : o.palette.getContrastText(o.palette.grey[900])
106
- })
107
- }
108
- }, ...Object.entries(o.palette).filter(R(["contrastText"])).map(([a]) => ({
109
- props: {
110
- color: a
111
- },
112
- style: {
113
- "--AppBar-background": (o.vars ?? o).palette[a].main,
114
- "--AppBar-color": (o.vars ?? o).palette[a].contrastText
115
- }
116
- })), {
117
- props: (a) => a.enableColorOnDark === !0 && !["inherit", "transparent"].includes(a.color),
118
- style: {
119
- backgroundColor: "var(--AppBar-background)",
120
- color: "var(--AppBar-color)"
121
- }
122
- }, {
123
- props: (a) => a.enableColorOnDark === !1 && !["inherit", "transparent"].includes(a.color),
124
- style: {
125
- backgroundColor: "var(--AppBar-background)",
126
- color: "var(--AppBar-color)",
127
- ...o.applyStyles("dark", {
128
- backgroundColor: o.vars ? y(o.vars.palette.AppBar.darkBg, "var(--AppBar-background)") : null,
129
- color: o.vars ? y(o.vars.palette.AppBar.darkColor, "var(--AppBar-color)") : null
130
- })
131
- }
132
- }, {
133
- props: {
134
- color: "transparent"
135
- },
136
- style: {
137
- "--AppBar-background": "transparent",
138
- "--AppBar-color": "inherit",
139
- backgroundColor: "var(--AppBar-background)",
140
- color: "var(--AppBar-color)",
141
- ...o.applyStyles("dark", {
142
- backgroundImage: "none"
143
- })
144
- }
145
- }]
146
- }))), S = /* @__PURE__ */ v.forwardRef(function(a, t) {
147
- const e = B({
148
- props: a,
149
- name: "MuiAppBar"
150
- }), {
151
- className: n,
152
- color: p = "primary",
153
- enableColorOnDark: u = !1,
154
- position: l = "fixed",
155
- ...d
156
- } = e, i = {
157
- ...e,
158
- color: p,
159
- position: l,
160
- enableColorOnDark: u
161
- }, g = M(i);
162
- return /* @__PURE__ */ s.jsx(D, {
163
- square: !0,
164
- component: "header",
165
- ownerState: i,
166
- elevation: 4,
167
- className: A(g.root, n, l === "fixed" && "mui-fixed"),
168
- ref: t,
169
- ...d
170
- });
171
- });
172
- process.env.NODE_ENV !== "production" && (S.propTypes = {
173
- // ┌────────────────────────────── Warning ──────────────────────────────┐
174
- // │ These PropTypes are generated from the TypeScript type definitions. │
175
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
176
- // └─────────────────────────────────────────────────────────────────────┘
177
- /**
178
- * The content of the component.
179
- */
180
- children: r.node,
181
- /**
182
- * Override or extend the styles applied to the component.
183
- */
184
- classes: r.object,
185
- /**
186
- * @ignore
187
- */
188
- className: r.string,
189
- /**
190
- * The color of the component.
191
- * It supports both default and custom theme colors, which can be added as shown in the
192
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
193
- * @default 'primary'
194
- */
195
- color: r.oneOfType([r.oneOf(["default", "inherit", "primary", "secondary", "transparent", "error", "info", "success", "warning"]), r.string]),
196
- /**
197
- * Shadow depth, corresponds to `dp` in the spec.
198
- * It accepts values between 0 and 24 inclusive.
199
- * @default 4
200
- */
201
- elevation: r.number,
202
- /**
203
- * If true, the `color` prop is applied in dark mode.
204
- * @default false
205
- */
206
- enableColorOnDark: r.bool,
207
- /**
208
- * The positioning type. The behavior of the different options is described
209
- * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position).
210
- * Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
211
- * @default 'fixed'
212
- */
213
- position: r.oneOf(["absolute", "fixed", "relative", "static", "sticky"]),
214
- /**
215
- * If `false`, rounded corners are enabled.
216
- * @default true
217
- */
218
- square: r.bool,
219
- /**
220
- * The system prop that allows defining system overrides as well as additional CSS styles.
221
- */
222
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
223
- });
224
- function z(o) {
225
- return x("MuiToolbar", o);
226
- }
227
- T("MuiToolbar", ["root", "gutters", "regular", "dense"]);
228
- const E = (o) => {
229
- const {
230
- classes: a,
231
- disableGutters: t,
232
- variant: e
233
- } = o;
234
- return j({
235
- root: ["root", !t && "gutters", e]
236
- }, z, a);
237
- }, G = k("div", {
238
- name: "MuiToolbar",
239
- slot: "Root",
240
- overridesResolver: (o, a) => {
241
- const {
242
- ownerState: t
243
- } = o;
244
- return [a.root, !t.disableGutters && a.gutters, a[t.variant]];
245
- }
246
- })(O(({
247
- theme: o
248
- }) => ({
249
- position: "relative",
250
- display: "flex",
251
- alignItems: "center",
252
- variants: [{
253
- props: ({
254
- ownerState: a
255
- }) => !a.disableGutters,
256
- style: {
257
- paddingLeft: o.spacing(2),
258
- paddingRight: o.spacing(2),
259
- [o.breakpoints.up("sm")]: {
260
- paddingLeft: o.spacing(3),
261
- paddingRight: o.spacing(3)
262
- }
263
- }
264
- }, {
265
- props: {
266
- variant: "dense"
267
- },
268
- style: {
269
- minHeight: 48
270
- }
271
- }, {
272
- props: {
273
- variant: "regular"
274
- },
275
- style: o.mixins.toolbar
276
- }]
277
- }))), C = /* @__PURE__ */ v.forwardRef(function(a, t) {
278
- const e = B({
279
- props: a,
280
- name: "MuiToolbar"
281
- }), {
282
- className: n,
283
- component: p = "div",
284
- disableGutters: u = !1,
285
- variant: l = "regular",
286
- ...d
287
- } = e, i = {
288
- ...e,
289
- component: p,
290
- disableGutters: u,
291
- variant: l
292
- }, g = E(i);
293
- return /* @__PURE__ */ s.jsx(G, {
294
- as: p,
295
- className: A(g.root, n),
296
- ref: t,
297
- ownerState: i,
298
- ...d
299
- });
300
- });
301
- process.env.NODE_ENV !== "production" && (C.propTypes = {
302
- // ┌────────────────────────────── Warning ──────────────────────────────┐
303
- // │ These PropTypes are generated from the TypeScript type definitions. │
304
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
305
- // └─────────────────────────────────────────────────────────────────────┘
306
- /**
307
- * The Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`.
308
- * The Toolbar is a flex container, allowing flex item properties to be used to lay out the children.
309
- */
310
- children: r.node,
311
- /**
312
- * Override or extend the styles applied to the component.
313
- */
314
- classes: r.object,
315
- /**
316
- * @ignore
317
- */
318
- className: r.string,
319
- /**
320
- * The component used for the root node.
321
- * Either a string to use a HTML element or a component.
322
- */
323
- component: r.elementType,
324
- /**
325
- * If `true`, disables gutter padding.
326
- * @default false
327
- */
328
- disableGutters: r.bool,
329
- /**
330
- * The system prop that allows defining system overrides as well as additional CSS styles.
331
- */
332
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
333
- /**
334
- * The variant to use.
335
- * @default 'regular'
336
- */
337
- variant: r.oneOfType([r.oneOf(["dense", "regular"]), r.string])
338
- });
339
- const V = ({ navigate: o }) => {
340
- const a = (t) => {
341
- t && o(`/${t}`);
342
- };
343
- return /* @__PURE__ */ s.jsx(S, { position: "static", color: "default", children: /* @__PURE__ */ s.jsxs(C, { children: [
344
- /* @__PURE__ */ s.jsx(b, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ s.jsx("img", { className: "header-logo", alt: "...", src: m.NAMELOGO }) }),
345
- /* @__PURE__ */ s.jsx(b, { children: /* @__PURE__ */ s.jsxs(I, { direction: "row", spacing: 1, children: [
346
- /* @__PURE__ */ s.jsx(f, { name: "signup", onClick: a, variant: "text", text: "Sign Up" }),
347
- /* @__PURE__ */ s.jsx(f, { name: "signin", onClick: a, variant: "outlined", text: "Login" })
348
- ] }) })
349
- ] }) });
350
- };
351
- export {
352
- V as H
353
- };
@@ -1,292 +0,0 @@
1
- "use strict";function E(a,{insertAt:n}={}){if(typeof document>"u")return;const t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",n==="top"&&t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e),e.styleSheet?e.styleSheet.cssText=a:e.appendChild(document.createTextNode(a))}E(`:focus {
2
- outline: none !important;
3
- }
4
- body {
5
- color: var(--text-color) !important;
6
- margin: 0;
7
- background-color: var(--background-color);
8
- font-family:
9
- "Inter",
10
- "-apple-system",
11
- "BlinkMacSystemFont",
12
- "Segoe UI",
13
- "Roboto",
14
- "Helvetica",
15
- "Arial",
16
- "PT Serif",
17
- "Seravek",
18
- "YuGothic",
19
- "Apple SD Gothic Neo",
20
- "Oxygen",
21
- "Ubuntu",
22
- "Cantarell",
23
- "Fira Sans",
24
- "Droid Sans",
25
- sans-serif;
26
- -webkit-font-smoothing: antialiased;
27
- -moz-osx-font-smoothing: grayscale;
28
- }
29
- @media (max-width: 900px) {
30
- body {
31
- background-color: var(--neutral-color);
32
- }
33
- }
34
- @media (min-width: 900px) {
35
- body {
36
- background-color: var(--background-color);
37
- }
38
- }
39
- a {
40
- text-decoration: none;
41
- cursor: pointer;
42
- transition: all 0.2s ease-in-out;
43
- color: var(--primary-color);
44
- }
45
- a:hover {
46
- color: var(--text-color);
47
- }
48
- .noselect {
49
- -webkit-touch-callout: none;
50
- -webkit-user-select: none;
51
- -khtml-user-select: none;
52
- -moz-user-select: none;
53
- -ms-user-select: none;
54
- user-select: none;
55
- }
56
- .m-1 {
57
- margin-left: 4px;
58
- margin-right: 4px;
59
- margin-top: 4px;
60
- margin-bottom: 4px;
61
- }
62
- .m-2 {
63
- margin-left: 8px;
64
- margin-right: 8px;
65
- margin-top: 8px;
66
- margin-bottom: 8px;
67
- }
68
- .m-3 {
69
- margin-left: 12px;
70
- margin-right: 12px;
71
- margin-top: 12px;
72
- margin-bottom: 12px;
73
- }
74
- .m-4 {
75
- margin-left: 16px;
76
- margin-right: 16px;
77
- margin-top: 16px;
78
- margin-bottom: 16px;
79
- }
80
- .mx-1 {
81
- margin-left: 4px;
82
- margin-right: 4px;
83
- }
84
- .mx-2 {
85
- margin-left: 8px;
86
- margin-right: 8px;
87
- }
88
- .mx-3 {
89
- margin-left: 12px;
90
- margin-right: 12px;
91
- }
92
- .mx-4 {
93
- margin-left: 16px;
94
- margin-right: 16px;
95
- }
96
- .my-1 {
97
- margin-top: 4px;
98
- margin-bottom: 4px;
99
- }
100
- .my-2 {
101
- margin-top: 8px;
102
- margin-bottom: 8px;
103
- }
104
- .my-3 {
105
- margin-top: 12px;
106
- margin-bottom: 12px;
107
- }
108
- .my-4 {
109
- margin-top: 16px;
110
- margin-bottom: 16px;
111
- }
112
- .mt-1 {
113
- margin-top: 4px;
114
- }
115
- .mt-2 {
116
- margin-top: 8px;
117
- }
118
- .mt-3 {
119
- margin-top: 12px;
120
- }
121
- .mt-4 {
122
- margin-top: 16px;
123
- }
124
- .mt-auto {
125
- margin-top: auto;
126
- }
127
- .mb-1 {
128
- margin-bottom: 4px;
129
- }
130
- .mb-2 {
131
- margin-bottom: 8px;
132
- }
133
- .mb-3 {
134
- margin-bottom: 12px;
135
- }
136
- .mb-4 {
137
- margin-bottom: 16px;
138
- }
139
- .ms-1 {
140
- margin-left: 4px;
141
- }
142
- .ms-2 {
143
- margin-left: 8px;
144
- }
145
- .ms-3 {
146
- margin-left: 12px;
147
- }
148
- .ms-4 {
149
- margin-left: 16px;
150
- }
151
- .me-1 {
152
- margin-right: 4px;
153
- }
154
- .me-2 {
155
- margin-right: 8px;
156
- }
157
- .me-3 {
158
- margin-right: 12px;
159
- }
160
- .me-4 {
161
- margin-right: 16px;
162
- }
163
- .p-1 {
164
- padding-left: 4px;
165
- padding-right: 4px;
166
- padding-top: 4px;
167
- padding-bottom: 4px;
168
- }
169
- .p-2 {
170
- padding-left: 8px;
171
- padding-right: 8px;
172
- padding-top: 8px;
173
- padding-bottom: 8px;
174
- }
175
- .p-3 {
176
- padding-left: 12px;
177
- padding-right: 12px;
178
- padding-top: 12px;
179
- padding-bottom: 12px;
180
- }
181
- .p-4 {
182
- padding-left: 16px;
183
- padding-right: 16px;
184
- padding-top: 16px;
185
- padding-bottom: 16px;
186
- }
187
- .px-1 {
188
- padding-left: 4px;
189
- padding-right: 4px;
190
- }
191
- .px-2 {
192
- padding-left: 8px;
193
- padding-right: 8px;
194
- }
195
- .px-3 {
196
- padding-left: 12px;
197
- padding-right: 12px;
198
- }
199
- .px-4 {
200
- padding-left: 16px;
201
- padding-right: 16px;
202
- }
203
- .py-1 {
204
- padding-top: 4px;
205
- padding-bottom: 4px;
206
- }
207
- .py-2 {
208
- padding-top: 8px;
209
- padding-bottom: 8px;
210
- }
211
- .py-3 {
212
- padding-top: 12px;
213
- padding-bottom: 12px;
214
- }
215
- .py-4 {
216
- padding-top: 16px;
217
- padding-bottom: 16px;
218
- }
219
- .pt-1 {
220
- padding-top: 4px;
221
- }
222
- .pt-2 {
223
- padding-top: 8px;
224
- }
225
- .pt-3 {
226
- padding-top: 12px;
227
- }
228
- .pt-4 {
229
- padding-top: 16px;
230
- }
231
- .pb-1 {
232
- padding-bottom: 4px;
233
- }
234
- .pb-2 {
235
- padding-bottom: 8px;
236
- }
237
- .pb-3 {
238
- padding-bottom: 12px;
239
- }
240
- .pb-4 {
241
- padding-bottom: 16px;
242
- }
243
- .ps-1 {
244
- padding-left: 4px;
245
- }
246
- .ps-2 {
247
- padding-left: 8px;
248
- }
249
- .ps-3 {
250
- padding-left: 12px;
251
- }
252
- .ps-4 {
253
- padding-left: 16px;
254
- }
255
- .pe-1 {
256
- padding-right: 4px;
257
- }
258
- .pe-2 {
259
- padding-right: 8px;
260
- }
261
- .pe-3 {
262
- padding-right: 12px;
263
- }
264
- .pe-4 {
265
- padding-right: 16px;
266
- }
267
- .modal-content {
268
- background-color: var(--neutral-color) !important;
269
- }
270
- .cloud-modal-header {
271
- padding-left: 10px;
272
- padding-right: 10px;
273
- padding-top: 5px;
274
- padding-bottom: 5px;
275
- font-weight: 800 !important;
276
- border-bottom: 1px solid #dee2e6;
277
- position: -webkit-sticky;
278
- position: sticky;
279
- top: 0;
280
- background-color: var(--neutral-color);
281
- z-index: 3;
282
- display: flex;
283
- align-items: center;
284
- }
285
- .modal-body {
286
- position: relative;
287
- -webkit-box-flex: 1;
288
- -ms-flex: 1 1 auto;
289
- flex: 1 1 auto;
290
- padding: 1rem;
291
- }
292
- `);var o={PAGE_SPINNER:"pagespinner",DISPLAY_ALERT:"displayalert",DISPLAY_SNACKBAR:"displaysnackbar"},h={ERROR:"error"},D={SUCCESS:"Success",FAILURE:"Failure"},P=class S{static instance=null;observers={};instanceId;constructor(){this.instanceId=Math.random()}static getInstance(){return this.instance||(this.instance=new S),this.instance}postNotification(n,t){const e=this.observers[n];if(e)for(const i of e)i.callBack(t)}removeObserver(n,t){const e=this.observers[t];e&&(this.observers[t]=e.filter(i=>i.observer!==n))}addObserver(n,t,e){this.observers[n]||(this.observers[n]=[]),this.observers[n].push({observer:t,callBack:e})}},r=P.getInstance(),R=(a,n,t)=>{r.postNotification(o.PAGE_SPINNER,!1),r.postNotification(o.DISPLAY_ALERT,{alert:{alertType:a,alertText:n},id:t})},C=a=>{r.postNotification(o.PAGE_SPINNER,!1),r.postNotification(o.DISPLAY_ALERT,{alert:void 0,id:a})},T=(a,n)=>{r.postNotification(o.PAGE_SPINNER,!1),r.postNotification(o.DISPLAY_SNACKBAR,{alert:{alertType:a,alertText:n}})},x={UNKNOWN:"Something went wrong, please try again later",FORBIDDEN:"User is not authorized to perform this action"},_=class p{static instance=null;authenticated;constructor(){this.authenticated=!1}static getInstance(){return p.instance||(p.instance=new p),p.instance}isAuthenticated(){return this.authenticated}authenticate(n){this.authenticated=!0,n()}signout(n){this.authenticated=!1,n()}},y=_.getInstance(),w=(a,n)=>{const t=encodeURIComponent(a),e=encodeURIComponent(n);localStorage.setItem(t,e)},v=a=>{const n=encodeURIComponent(a);localStorage.removeItem(n)},k=class s{static instance=null;purchasePlan;navigate=null;constructor(){this.purchasePlan=this.getDefaultPlan()}static getInstance(){return s.instance||(s.instance=new s),s.instance}setData(n){this.purchasePlan={...this.purchasePlan,...n}}getData(){return this.purchasePlan}clearAll(){this.purchasePlan=this.getDefaultPlan()}setNavigate(n){this.navigate=n}goToNavigate(n){this.navigate&&this.navigate(n)}getDefaultPlan(){return{}}},N=k.getInstance(),O=async a=>(a===x.FORBIDDEN&&(v("username"),v("fullname"),y.signout(U)),a),U=()=>{N.goToNavigate("/signin")},L={"Content-Type":"application/json"},B=async a=>{const n=await a.text();return n?JSON.parse(n):null},G=async({apipath:a,method:n,body:t,id:e,isFormData:i=!1,spinner:d=!0,mute:g=!1,showSnackBar:u=!1})=>{const A=i?{}:L;d&&r.postNotification(o.PAGE_SPINNER,!0);try{const f=await fetch(a,{method:n,headers:A,credentials:"include",body:t?i?t:JSON.stringify(t):void 0}),m=await B(f);if(m&&m.status===D.SUCCESS)return g||C(e),m.output;if(!g){const I=await O(m.code||x.UNKNOWN);b(g,u,I,e)}}catch{b(g,u,x.UNKNOWN,e);return}finally{d&&r.postNotification(o.PAGE_SPINNER,!1)}},b=(a,n,t,e)=>{a||(n?T(h.ERROR,t):R(h.ERROR,t,e))},F=(a={})=>async(n,t,e,i,d)=>G({...a,apipath:n,method:t,body:e,id:i,isFormData:d}),K=F({}),Y=(a,n,t)=>K(a,"POST",n,t),V=class c{static instance=null;configData={};constructor(){}static getInstance(){return c.instance||(c.instance=new c),c.instance}setData(n){this.configData={...n}}getData(){return this.configData}resetData(){this.configData={}}},M=V.getInstance(),z=class l{static instance=null;alertData={};constructor(){}static getInstance(){return l.instance||(l.instance=new l),l.instance}setData(n){this.alertData={...n}}getData(){return this.alertData}resetData(){this.alertData={}}},j=z.getInstance();exports.alert_data_service_default=j;exports.authentication_default=y;exports.config_service_default=M;exports.plan_authentication_default=N;exports.postcall=Y;exports.setLocalStorage=w;