dq-cus-lib 1.0.13 → 1.1.0
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.css +181 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +29 -6
- package/dist/index.js +365 -1
- package/dist/index.js.map +1 -0
- package/package.json +15 -40
- package/dist/Card-Bfg8P2ba.mjs +0 -70
- package/dist/Card-DZoz07x1.js +0 -1
- package/dist/CardContent-C3iE4rdC.js +0 -1
- package/dist/CardContent-CX83Iz5u.mjs +0 -73
- package/dist/Container-CHiQwwon.mjs +0 -3470
- package/dist/Container-DRUrQLPe.js +0 -34
- package/dist/Paper-B1BWzC32.js +0 -3
- package/dist/Paper-px0ZrIl-.mjs +0 -725
- package/dist/Typography-DjYh_lcA.js +0 -1
- package/dist/Typography-dhPvE-yk.mjs +0 -524
- package/dist/button-BTe1MJmo.mjs +0 -2052
- package/dist/button-XEz-DvWZ.js +0 -132
- package/dist/components/common/loading.d.ts +0 -2
- package/dist/components/common/login-image.d.ts +0 -6
- package/dist/components/error.page/error.d.ts +0 -2
- package/dist/components/landing.page/constants.d.ts +0 -5
- package/dist/components/landing.page/features.d.ts +0 -3
- package/dist/components/landing.page/footer.d.ts +0 -7
- package/dist/components/landing.page/header.d.ts +0 -7
- package/dist/components/landing.page/hero.d.ts +0 -7
- package/dist/components/layout.page/api-calls.d.ts +0 -2
- package/dist/components/layout.page/constants.d.ts +0 -9
- package/dist/components/layout.page/footer.d.ts +0 -2
- package/dist/components/layout.page/header.d.ts +0 -5
- package/dist/components/signin.page/api-calls.d.ts +0 -1
- package/dist/components/signin.page/business-rules.d.ts +0 -1
- package/dist/components/signin.page/footer-links.d.ts +0 -10
- package/dist/components/signin.page/sign-in.d.ts +0 -6
- package/dist/components/user.page/card.d.ts +0 -12
- package/dist/components/user.page/constants.d.ts +0 -16
- package/dist/components/user.page/navigator-icon.d.ts +0 -8
- package/dist/components/user.page/navigator-link.d.ts +0 -8
- package/dist/constants-CYWfA_it.js +0 -1
- package/dist/constants-bixGJi69.mjs +0 -10
- package/dist/dashboard.page.d.ts +0 -4
- package/dist/dashboard.page.js +0 -1
- package/dist/dashboard.page.mjs +0 -52
- package/dist/dq-cus-lib.css +0 -1
- package/dist/error-B0u1MssC.mjs +0 -17
- package/dist/error-C-Fm8lre.js +0 -1
- package/dist/error.page.d.ts +0 -4
- package/dist/error.page.js +0 -1
- package/dist/error.page.mjs +0 -10
- package/dist/favicon.ico +0 -0
- package/dist/header-BLuHRYED.js +0 -1
- package/dist/header-DZeF4MvE.mjs +0 -353
- package/dist/index-CCRuOAqd.js +0 -292
- package/dist/index-gUmyoYAp.mjs +0 -477
- package/dist/index.mjs +0 -16
- package/dist/jsx-runtime-nZSsnGb7.js +0 -6
- package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
- package/dist/landing.page.d.ts +0 -4
- package/dist/landing.page.js +0 -3
- package/dist/landing.page.mjs +0 -181
- package/dist/layout.page.d.ts +0 -4
- package/dist/layout.page.js +0 -1
- package/dist/layout.page.mjs +0 -24
- package/dist/library/index.d.ts +0 -6
- package/dist/link-button-BkYJm52P.mjs +0 -52
- package/dist/link-button-yZmEF1A6.js +0 -19
- package/dist/logout-error.page.d.ts +0 -4
- package/dist/logout-error.page.js +0 -1
- package/dist/logout-error.page.mjs +0 -31
- package/dist/manifest.json +0 -15
- package/dist/pages/dashboard.page.d.ts +0 -2
- package/dist/pages/error.page.d.ts +0 -2
- package/dist/pages/landing.page.d.ts +0 -7
- package/dist/pages/layout.page.d.ts +0 -8
- package/dist/pages/logout-error.page.d.ts +0 -6
- package/dist/pages/signin.page.d.ts +0 -6
- package/dist/pages/wrappers/auth.wrapper.d.ts +0 -8
- package/dist/pages/wrappers/common-page.wrapper.d.ts +0 -2
- package/dist/pages/wrappers/link.navigator.d.ts +0 -8
- package/dist/pages/wrappers/non-auth.wrapper.d.ts +0 -6
- package/dist/resources/constants.d.ts +0 -7
- package/dist/resources/images.d.ts +0 -6
- package/dist/resources/routes.d.ts +0 -9
- package/dist/resources/status.d.ts +0 -4
- package/dist/signin.page.d.ts +0 -4
- package/dist/signin.page.js +0 -17
- package/dist/signin.page.mjs +0 -9761
package/dist/index.css
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/* src/styles/index.css */
|
|
2
|
+
:root {
|
|
3
|
+
--primary-color: #4CA8B4;
|
|
4
|
+
--primary-color-hover: #2E8C99;
|
|
5
|
+
--text-color: #003B4F;
|
|
6
|
+
--disabled-color: #d4d4d4;
|
|
7
|
+
--neutral-color: #ffffff;
|
|
8
|
+
--background-color: #f3f3f3;
|
|
9
|
+
--alert-error: rgba(255, 67, 67);
|
|
10
|
+
--alert-error-hover: rgb(223, 0, 0);
|
|
11
|
+
}
|
|
12
|
+
.full-hw-window {
|
|
13
|
+
min-height: 100vh;
|
|
14
|
+
min-width: 100vw;
|
|
15
|
+
}
|
|
16
|
+
.sign-in-logo {
|
|
17
|
+
width: 200px;
|
|
18
|
+
}
|
|
19
|
+
.wrapped-btn {
|
|
20
|
+
width: auto !important;
|
|
21
|
+
}
|
|
22
|
+
.wrapped-btn-neutral.MuiButton-outlined {
|
|
23
|
+
color: red !important;
|
|
24
|
+
border-color: var(--primary-color) !important;
|
|
25
|
+
background: var(--neutral-color) !important;
|
|
26
|
+
}
|
|
27
|
+
.outlined-btn {
|
|
28
|
+
border: 1px solid var(--primary-color) !important;
|
|
29
|
+
color: var(--primary-color) !important;
|
|
30
|
+
background-color: transparent !important;
|
|
31
|
+
padding: 6px 16px !important;
|
|
32
|
+
font-size: 0.875rem !important;
|
|
33
|
+
font-weight: 500 !important;
|
|
34
|
+
line-height: 1.75 !important;
|
|
35
|
+
border-radius: 4px !important;
|
|
36
|
+
text-transform: uppercase !important;
|
|
37
|
+
transition: all 0.3s ease !important;
|
|
38
|
+
cursor: pointer !important;
|
|
39
|
+
outline: none !important;
|
|
40
|
+
}
|
|
41
|
+
.outlined-btn:hover {
|
|
42
|
+
border: 1px solid var(--primary-color-hover) !important;
|
|
43
|
+
color: var(--primary-color-hover) !important;
|
|
44
|
+
background-color: rgba(var(--primary-color-hover), 0.04) !important;
|
|
45
|
+
}
|
|
46
|
+
.user-option {
|
|
47
|
+
background: none;
|
|
48
|
+
border: none;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
color: var(--text-color);
|
|
51
|
+
text-align: center;
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
}
|
|
54
|
+
.user-option:hover {
|
|
55
|
+
color: var(--primary-color-hover);
|
|
56
|
+
}
|
|
57
|
+
.header-link {
|
|
58
|
+
font-weight: 700;
|
|
59
|
+
font-size: .85rem;
|
|
60
|
+
}
|
|
61
|
+
.logo-navbar {
|
|
62
|
+
width: 28px;
|
|
63
|
+
}
|
|
64
|
+
.header-toolbar {
|
|
65
|
+
min-height: 32px !important;
|
|
66
|
+
height: auto !important;
|
|
67
|
+
padding-top: 2px !important;
|
|
68
|
+
padding-bottom: 2px !important;
|
|
69
|
+
}
|
|
70
|
+
.header-avatar {
|
|
71
|
+
width: 28px !important;
|
|
72
|
+
height: 28px !important;
|
|
73
|
+
font-size: 14px !important;
|
|
74
|
+
}
|
|
75
|
+
.footer-layer {
|
|
76
|
+
box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.05);
|
|
77
|
+
border-top: 1px solid rgb(216, 216, 216, 0.25);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* src/components/css/error.page.css */
|
|
81
|
+
.error-404 {
|
|
82
|
+
font-weight: 800;
|
|
83
|
+
letter-spacing: 0.1em;
|
|
84
|
+
}
|
|
85
|
+
.error-text {
|
|
86
|
+
font-weight: 800;
|
|
87
|
+
}
|
|
88
|
+
@media (max-width: 576px) {
|
|
89
|
+
.error-404 {
|
|
90
|
+
color: var(--alert-error);
|
|
91
|
+
font-size: 18vw;
|
|
92
|
+
}
|
|
93
|
+
.error-emoji {
|
|
94
|
+
font-size: 16vw;
|
|
95
|
+
}
|
|
96
|
+
.error-text {
|
|
97
|
+
font-size: 6vw;
|
|
98
|
+
}
|
|
99
|
+
.error-desc {
|
|
100
|
+
font-size: 3.25vw;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@media (min-width: 576px) {
|
|
104
|
+
.error-404 {
|
|
105
|
+
color: var(--alert-error);
|
|
106
|
+
font-size: 8vw;
|
|
107
|
+
}
|
|
108
|
+
.error-emoji {
|
|
109
|
+
font-size: 7vw;
|
|
110
|
+
}
|
|
111
|
+
.error-text {
|
|
112
|
+
font-size: 4vw;
|
|
113
|
+
}
|
|
114
|
+
.error-desc {
|
|
115
|
+
font-size: 2vw;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@media (min-width: 992px) {
|
|
119
|
+
.error-desc {
|
|
120
|
+
font-size: 1.5vw;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
.error-wrapper {
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 50%;
|
|
126
|
+
left: 50%;
|
|
127
|
+
transform: translate(-50%, -50%);
|
|
128
|
+
text-align: center;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* src/components/css/landing.page.css */
|
|
132
|
+
.header-logo {
|
|
133
|
+
width: 120px;
|
|
134
|
+
}
|
|
135
|
+
@media (max-width: 992px) {
|
|
136
|
+
.landing-info-header {
|
|
137
|
+
font-size: 36px;
|
|
138
|
+
font-weight: 800;
|
|
139
|
+
line-height: 42px;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
@media (min-width: 992px) {
|
|
143
|
+
.landing-info-header {
|
|
144
|
+
font-size: 36px;
|
|
145
|
+
font-weight: 800;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
.landing-info-sub-header {
|
|
149
|
+
font-size: 16px;
|
|
150
|
+
font-weight: 600;
|
|
151
|
+
line-height: 28px;
|
|
152
|
+
}
|
|
153
|
+
.landing-info-button {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
background-color: rgb(255, 75, 146);
|
|
156
|
+
border-radius: 25px;
|
|
157
|
+
color: var(--neutral-color);
|
|
158
|
+
border: none;
|
|
159
|
+
font-weight: 800;
|
|
160
|
+
padding-left: 25px;
|
|
161
|
+
padding-right: 25px;
|
|
162
|
+
padding-top: 10px;
|
|
163
|
+
padding-bottom: 10px;
|
|
164
|
+
}
|
|
165
|
+
.title-image-demo {
|
|
166
|
+
max-width: 100%;
|
|
167
|
+
width: 100%;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* src/components/css/sign-in.page.css */
|
|
171
|
+
.sign-in-card-wrapper {
|
|
172
|
+
width: auto;
|
|
173
|
+
min-height: auto;
|
|
174
|
+
height: auto;
|
|
175
|
+
margin: auto !important;
|
|
176
|
+
padding: 20px;
|
|
177
|
+
}
|
|
178
|
+
.small-btn-link-p {
|
|
179
|
+
font-size: 14px !important;
|
|
180
|
+
}
|
|
181
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/styles/index.css","../src/components/css/error.page.css","../src/components/css/landing.page.css","../src/components/css/sign-in.page.css"],"sourcesContent":[":root{\n --primary-color: #4CA8B4;\n --primary-color-hover: #2E8C99;\n --text-color: #003B4F;\n --disabled-color: #d4d4d4;\n --neutral-color: #ffffff;\n --background-color: #f3f3f3;\n --alert-error: rgba(255, 67, 67);\n --alert-error-hover: rgb(223, 0, 0);\n}\n\n.full-hw-window{\n min-height: 100vh;\n min-width: 100vw;\n}\n\n.sign-in-logo{\n width: 200px;\n}\n\n.wrapped-btn {\n width: auto !important;\n}\n\n.wrapped-btn-neutral.MuiButton-outlined {\n color: red !important;\n border-color: var(--primary-color) !important;\n background: var(--neutral-color) !important;\n}\n\n.outlined-btn {\n border: 1px solid var(--primary-color) !important;\n color: var(--primary-color) !important;\n background-color: transparent !important;\n padding: 6px 16px !important;\n font-size: 0.875rem !important;\n font-weight: 500 !important;\n line-height: 1.75 !important;\n border-radius: 4px !important;\n text-transform: uppercase !important;\n transition: all 0.3s ease !important;\n cursor: pointer !important;\n outline: none !important;\n}\n\n.outlined-btn:hover {\n border: 1px solid var(--primary-color-hover) !important;\n color: var(--primary-color-hover) !important;\n background-color: rgba(var(--primary-color-hover), 0.04) !important;\n}\n\n.user-option{\n background: none;\n border: none;\n cursor: pointer;\n color: var(--text-color);\n text-align: center;\n font-size: 12px;\n}\n\n.user-option:hover{\n color: var(--primary-color-hover);\n}\n\n.header-link{\n font-weight: 700;\n font-size: .85rem;\n}\n\n.logo-navbar{\n width: 28px;\n}\n\n.header-toolbar{\n min-height: 32px !important;\n height: auto !important;\n padding-top: 2px !important; \n padding-bottom: 2px !important;\n}\n\n.header-avatar{\n width: 28px !important;\n height: 28px !important;\n font-size: 14px !important;\n}\n\n.footer-layer{\n box-shadow: 0px 0px 7px rgba(0,0,0,0.05);\n border-top: 1px solid rgb(216, 216, 216, 0.25);\n}\n\n",".error-404{\n font-weight: 800;\n letter-spacing: 0.1em;\n}\n\n.error-text {\n font-weight: 800;\n}\n\n@media (max-width: 576px) {\n .error-404 {\n color: var(--alert-error);\n font-size: 18vw;\n }\n .error-emoji{\n font-size: 16vw;\n }\n .error-text{\n font-size: 6vw;\n }\n .error-desc{\n font-size: 3.25vw;\n }\n}\n\n@media (min-width: 576px) {\n .error-404 {\n color: var(--alert-error);\n font-size: 8vw;\n }\n .error-emoji{\n font-size: 7vw;\n }\n .error-text{\n font-size: 4vw;\n }\n .error-desc{\n font-size: 2vw;\n }\n}\n\n@media (min-width: 992px) {\n .error-desc{\n font-size: 1.5vw;\n }\n}\n\n.error-wrapper{\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n}",".header-logo{\n width: 120px;\n}\n\n@media (max-width: 992px) {\n .landing-info-header{\n font-size: 36px;\n font-weight: 800;\n line-height: 42px;\n }\n}\n\n@media (min-width: 992px) {\n .landing-info-header{\n font-size: 36px;\n font-weight: 800;\n }\n}\n\n.landing-info-sub-header{\n font-size: 16px;\n font-weight: 600;\n line-height: 28px;\n}\n\n.landing-info-button{\n cursor: pointer;\n background-color: rgb(255, 75, 146);\n border-radius: 25px;\n color: var(--neutral-color);\n border: none;\n font-weight: 800;\n padding-left: 25px;\n padding-right: 25px;\n padding-top: 10px;\n padding-bottom: 10px;\n}\n\n.title-image-demo{\n max-width: 100%;\n width: 100%;\n}",".sign-in-card-wrapper{\n width: auto;\n min-height: auto;\n height: auto;\n margin: auto !important;\n padding: 20px;\n}\n\n.small-btn-link-p {\n font-size: 14px !important;\n}\n"],"mappings":";AAAA;AACI,mBAAiB;AACjB,yBAAuB;AACvB,gBAAc;AACd,oBAAkB;AAClB,mBAAiB;AACjB,sBAAoB;AACpB,iBAAe,KAAK,GAAG,EAAE,EAAE,EAAE;AAC7B,uBAAqB,IAAI,GAAG,EAAE,CAAC,EAAE;AACrC;AAEA,CAAC;AACG,cAAY;AACZ,aAAW;AACf;AAEA,CAAC;AACG,SAAO;AACX;AAEA,CAAC;AACG,SAAO;AACX;AAEA,CAAC,mBAAmB,CAAC;AACjB,SAAO;AACP,gBAAc,IAAI;AAClB,cAAY,IAAI;AACpB;AAEA,CAAC;AACG,UAAQ,IAAI,MAAM,IAAI;AACtB,SAAO,IAAI;AACX,oBAAkB;AAClB,WAAS,IAAI;AACb,aAAW;AACX,eAAa;AACb,eAAa;AACb,iBAAe;AACf,kBAAgB;AAChB,cAAY,IAAI,KAAK;AACrB,UAAQ;AACR,WAAS;AACb;AAEA,CAfC,YAeY;AACT,UAAQ,IAAI,MAAM,IAAI;AACtB,SAAO,IAAI;AACX,oBAAkB,KAAK,IAAI,sBAAsB,EAAE;AACvD;AAEA,CAAC;AACG,cAAY;AACZ,UAAQ;AACR,UAAQ;AACR,SAAO,IAAI;AACX,cAAY;AACZ,aAAW;AACf;AAEA,CATC,WASW;AACR,SAAO,IAAI;AACf;AAEA,CAAC;AACG,eAAa;AACb,aAAW;AACf;AAEA,CAAC;AACG,SAAO;AACX;AAEA,CAAC;AACG,cAAY;AACZ,UAAQ;AACR,eAAa;AACb,kBAAgB;AACpB;AAEA,CAAC;AACG,SAAO;AACP,UAAQ;AACR,aAAW;AACf;AAEA,CAAC;AACG,cAAY,IAAI,IAAI,IAAI,KAAK,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC;AACnC,cAAY,IAAI,MAAM,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AAC7C;;;ACzFA,CAAC;AACG,eAAa;AACb,kBAAgB;AACpB;AAEA,CAAC;AACG,eAAa;AACjB;AAEA,QAAO,WAAY;AACf,GAVH;AAWO,WAAO,IAAI;AACX,eAAW;AACf;AACA,GAAC;AACG,eAAW;AACf;AACA,GAZH;AAaO,eAAW;AACf;AACA,GAAC;AACG,eAAW;AACf;AACJ;AAEA,QAAO,WAAY;AACf,GA1BH;AA2BO,WAAO,IAAI;AACX,eAAW;AACf;AACA,GAhBC;AAiBG,eAAW;AACf;AACA,GA5BH;AA6BO,eAAW;AACf;AACA,GAhBC;AAiBG,eAAW;AACf;AACJ;AAEA,QAAO,WAAY;AACf,GAtBC;AAuBG,eAAW;AACf;AACJ;AAEA,CAAC;AACG,YAAU;AACV,OAAK;AACL,QAAM;AACN,aAAW,UAAU,IAAI,EAAE;AAC3B,cAAY;AAChB;;;ACrDA,CAAC;AACG,SAAO;AACX;AAEA,QAAO,WAAY;AACf,GAAC;AACG,eAAW;AACX,iBAAa;AACb,iBAAa;AACjB;AACJ;AAEA,QAAO,WAAY;AACf,GARC;AASG,eAAW;AACX,iBAAa;AACjB;AACJ;AAEA,CAAC;AACG,aAAW;AACX,eAAa;AACb,eAAa;AACjB;AAEA,CAAC;AACG,UAAQ;AACR,oBAAkB,IAAI,GAAG,EAAE,EAAE,EAAE;AAC/B,iBAAe;AACf,SAAO,IAAI;AACX,UAAQ;AACR,eAAa;AACb,gBAAc;AACd,iBAAe;AACf,eAAa;AACb,kBAAgB;AACpB;AAEA,CAAC;AACG,aAAW;AACX,SAAO;AACX;;;ACzCA,CAAC;AACG,SAAO;AACP,cAAY;AACZ,UAAQ;AACR,UAAQ;AACR,WAAS;AACb;AAEA,CAAC;AACG,aAAW;AACf;","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useNavigate } from 'react-router-dom';
|
|
2
|
+
import React$1 from 'react';
|
|
3
|
+
|
|
4
|
+
interface LogoutErrorProps {
|
|
5
|
+
navigate: ReturnType<typeof useNavigate>;
|
|
6
|
+
}
|
|
7
|
+
declare const LogoutErrorPage: React.FC<LogoutErrorProps>;
|
|
8
|
+
|
|
9
|
+
declare const ErrorPage: React.FC;
|
|
10
|
+
|
|
11
|
+
interface LandingPageProps {
|
|
12
|
+
navigate: ReturnType<typeof useNavigate>;
|
|
13
|
+
}
|
|
14
|
+
declare const LandingPage: React$1.FC<LandingPageProps>;
|
|
15
|
+
|
|
16
|
+
interface LayoutPageProps {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
Header: React.ElementType;
|
|
19
|
+
Footer: React.ElementType;
|
|
20
|
+
username: String;
|
|
21
|
+
}
|
|
22
|
+
declare const LayoutPage: React.FC<LayoutPageProps>;
|
|
23
|
+
|
|
24
|
+
interface SigninPageProps {
|
|
25
|
+
navigate: ReturnType<typeof useNavigate>;
|
|
26
|
+
}
|
|
27
|
+
declare const SigninPage: React.FC<SigninPageProps>;
|
|
28
|
+
|
|
29
|
+
export { ErrorPage, LandingPage, LayoutPage, LogoutErrorPage, SigninPage as SignInPage };
|
package/dist/index.js
CHANGED
|
@@ -1 +1,365 @@
|
|
|
1
|
-
|
|
1
|
+
import Box7 from '@mui/material/Box';
|
|
2
|
+
import Container from '@mui/material/Container';
|
|
3
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
|
+
import { auth, Resize, Loading, Button, LinkButton, alertService, Alerts, Textbox, PasswordTextbox, CheckBox, setLocalStorage, planAuth, postcall, configService } from 'sspart-fe-lib';
|
|
5
|
+
import AppBar from '@mui/material/AppBar';
|
|
6
|
+
import Toolbar from '@mui/material/Toolbar';
|
|
7
|
+
import Stack from '@mui/material/Stack';
|
|
8
|
+
import { useEffect, useState } from 'react';
|
|
9
|
+
import { useTheme } from '@mui/material/styles';
|
|
10
|
+
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
11
|
+
import Grid4 from '@mui/material/Grid';
|
|
12
|
+
import Typography from '@mui/material/Typography';
|
|
13
|
+
import CardContent from '@mui/material/CardContent';
|
|
14
|
+
import CameraAltIcon from '@mui/icons-material/CameraAlt';
|
|
15
|
+
import AddchartIcon from '@mui/icons-material/Addchart';
|
|
16
|
+
import BarChartIcon from '@mui/icons-material/BarChart';
|
|
17
|
+
import TimelineIcon from '@mui/icons-material/Timeline';
|
|
18
|
+
import CalendarMonthIcon from '@mui/icons-material/CalendarMonth';
|
|
19
|
+
import AccountBalanceIcon from '@mui/icons-material/AccountBalance';
|
|
20
|
+
import Card from '@mui/material/Card';
|
|
21
|
+
|
|
22
|
+
// src/pages/logout-error.page.tsx
|
|
23
|
+
var Error = () => {
|
|
24
|
+
return /* @__PURE__ */ jsx(Container, { className: "error-wrapper", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
25
|
+
/* @__PURE__ */ jsxs("div", { className: "error-404", children: [
|
|
26
|
+
"4",
|
|
27
|
+
/* @__PURE__ */ jsx("span", { className: "error-emoji", role: "img", "aria-label": "0", children: "\u{1F635}" }),
|
|
28
|
+
"4"
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ jsx("div", { className: "error-text", children: "OOPS! PAGE NOT BE FOUND" }),
|
|
31
|
+
/* @__PURE__ */ jsxs("p", { className: "error-desc mt-2", children: [
|
|
32
|
+
"Sorry, but the page you are looking for does not exist. We must have removed, renamed or never created it ",
|
|
33
|
+
/* @__PURE__ */ jsx("span", { "aria-label": "face", role: "img", children: "\u{1F92A}" })
|
|
34
|
+
] })
|
|
35
|
+
] }) });
|
|
36
|
+
};
|
|
37
|
+
var error_default = Error;
|
|
38
|
+
|
|
39
|
+
// src/resources/images.tsx
|
|
40
|
+
var IMAGE_LINKS = {
|
|
41
|
+
SMALL_ICON: "https://i.ibb.co/24Qy7m1/Dhe-Quest64.png",
|
|
42
|
+
NAMELOGO: "https://i.ibb.co/qYhSRLJ4/Dhe-Quest128-Full.png",
|
|
43
|
+
WALLPAPER: "https://i.imgur.com/nBm1Ub3.png"
|
|
44
|
+
};
|
|
45
|
+
var LoadingComp = () => {
|
|
46
|
+
return /* @__PURE__ */ jsx(Loading, { path: IMAGE_LINKS.SMALL_ICON });
|
|
47
|
+
};
|
|
48
|
+
var loading_default = LoadingComp;
|
|
49
|
+
var Header = ({ navigate }) => {
|
|
50
|
+
const onClick = (name) => {
|
|
51
|
+
if (name) navigate(`/${name}`);
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ jsx(AppBar, { position: "static", color: "default", children: /* @__PURE__ */ jsxs(Toolbar, { children: [
|
|
54
|
+
/* @__PURE__ */ jsx(Box7, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ jsx("img", { className: "header-logo", alt: "...", src: IMAGE_LINKS.NAMELOGO }) }),
|
|
55
|
+
/* @__PURE__ */ jsx(Box7, { children: /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, children: [
|
|
56
|
+
/* @__PURE__ */ jsx(Button, { name: "signup", onClick, variant: "text", text: "Sign Up" }),
|
|
57
|
+
/* @__PURE__ */ jsx(Button, { name: "signin", onClick, variant: "outlined", text: "Login" })
|
|
58
|
+
] }) })
|
|
59
|
+
] }) });
|
|
60
|
+
};
|
|
61
|
+
var header_default = Header;
|
|
62
|
+
var LogoutErrorPage = ({ navigate }) => {
|
|
63
|
+
if (auth.isAuthenticated()) return /* @__PURE__ */ jsx(loading_default, {});
|
|
64
|
+
return /* @__PURE__ */ jsxs(Box7, { sx: { width: "100%" }, children: [
|
|
65
|
+
/* @__PURE__ */ jsx(header_default, { navigate }),
|
|
66
|
+
/* @__PURE__ */ jsx(error_default, {})
|
|
67
|
+
] });
|
|
68
|
+
};
|
|
69
|
+
var logout_error_page_default = LogoutErrorPage;
|
|
70
|
+
|
|
71
|
+
// src/resources/constants.tsx
|
|
72
|
+
var TITLES = {
|
|
73
|
+
LANDING_PAGE_TITLE: "DheQuest | Analyze and Automate Your Trades with Precision, Maximize Profits, and Stay Ahead of the Market",
|
|
74
|
+
SIGN_IN_PAGE_TITLE: "DheQuest | Securely Sign In to Your Automated Trading Platform",
|
|
75
|
+
ERROR_PAGE_TITLE: "DheQuest | Oops! Something Went Wrong"
|
|
76
|
+
};
|
|
77
|
+
var ON_RESIZE = 900;
|
|
78
|
+
var ErrorPage = () => {
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
document.title = TITLES.ERROR_PAGE_TITLE;
|
|
81
|
+
}, []);
|
|
82
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(error_default, {}) });
|
|
83
|
+
};
|
|
84
|
+
var error_page_default = ErrorPage;
|
|
85
|
+
var Hero = ({ navigate }) => {
|
|
86
|
+
const theme = useTheme();
|
|
87
|
+
const isMobile = useMediaQuery(theme.breakpoints.down("md"));
|
|
88
|
+
const onClick = () => {
|
|
89
|
+
navigate("/signup");
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ jsx(Box7, { display: "flex", flexDirection: "column", minHeight: "91.5vh", height: "auto", children: /* @__PURE__ */ jsx(Container, { style: { flex: "1", display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsxs(Grid4, { container: true, alignItems: "center", children: [
|
|
92
|
+
/* @__PURE__ */ jsx(Grid4, { size: { xs: 12, md: 5 }, className: "mt-4", children: /* @__PURE__ */ jsxs(Box7, { children: [
|
|
93
|
+
/* @__PURE__ */ jsx("div", { className: "landing-info-header", children: "Trading platform with cutting-edge GTT capabilities." }),
|
|
94
|
+
/* @__PURE__ */ jsx("div", { className: "landing-info-sub-header mt-4", children: "Experience the future of trading with GTT. Elevate your strategies with DheQuest's superior service. The future is here\u2014trade smarter today." }),
|
|
95
|
+
/* @__PURE__ */ jsx("button", { className: "landing-info-button mt-4", onClick, children: "Sign Up" })
|
|
96
|
+
] }) }),
|
|
97
|
+
/* @__PURE__ */ jsx(Grid4, { size: { xs: 12, md: 7 }, className: "mt-4", children: /* @__PURE__ */ jsx(Box7, { display: "flex", justifyContent: isMobile ? "center" : "end", children: /* @__PURE__ */ jsx("img", { className: "title-image-demo", alt: "...", src: IMAGE_LINKS.WALLPAPER }) }) })
|
|
98
|
+
] }) }) });
|
|
99
|
+
};
|
|
100
|
+
var hero_default = Hero;
|
|
101
|
+
var FEATURES = [
|
|
102
|
+
{
|
|
103
|
+
title: "Advanced Order Types",
|
|
104
|
+
description: "Execute your trades with precision using a variety of advanced order types, including limit orders, stop-loss orders, take-profit orders, and more.",
|
|
105
|
+
icon: /* @__PURE__ */ jsx(CameraAltIcon, { sx: { fontSize: "3.5rem" } })
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
title: "Real-time Market Depth",
|
|
109
|
+
description: "Gain valuable insights into market liquidity and order flow with real-time market depth data. See the current buy and sell order.",
|
|
110
|
+
icon: /* @__PURE__ */ jsx(AddchartIcon, { sx: { fontSize: "3.5rem" } })
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: "Margin Trading and Leverage",
|
|
114
|
+
description: "Amplify your trading power with margin trading and leverage. Access greater capital and potentially increase your profits.",
|
|
115
|
+
icon: /* @__PURE__ */ jsx(BarChartIcon, { sx: { fontSize: "3.5rem" } })
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
title: "Portfolio Analytics",
|
|
119
|
+
description: "Analyze your trading performance with detailed portfolio analytics. improvement and optimize your trading strategies.",
|
|
120
|
+
icon: /* @__PURE__ */ jsx(TimelineIcon, { sx: { fontSize: "3.5rem" } })
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
title: "Alerts and Notifications",
|
|
124
|
+
description: "Stay informed about critical market events with customizable alerts and notifications. important events to react quickly to market changes.",
|
|
125
|
+
icon: /* @__PURE__ */ jsx(CalendarMonthIcon, { sx: { fontSize: "3.5rem" } })
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
title: "API Access",
|
|
129
|
+
description: "Integrate our platform with your own trading tools and applications using our powerful API. Develop custom trading strategies.",
|
|
130
|
+
icon: /* @__PURE__ */ jsx(AccountBalanceIcon, { sx: { fontSize: "3.5rem" } })
|
|
131
|
+
}
|
|
132
|
+
];
|
|
133
|
+
var Features = () => {
|
|
134
|
+
return /* @__PURE__ */ jsxs(Box7, { sx: { padding: 6, backgroundColor: "#f9f9f9" }, children: [
|
|
135
|
+
/* @__PURE__ */ jsxs(Container, { children: [
|
|
136
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h4", align: "center", gutterBottom: true, mb: 4, sx: { fontWeight: "bold" }, children: "Key Features" }),
|
|
137
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body2", align: "center", gutterBottom: true, mb: 4, sx: { lineHeight: "40px " }, children: "Automate your trading strategies with our robust algorithmic trading capabilities. Develop, backtest, and deploy custom trading bots to execute trades based on predefined rules and parameters, allowing you to capitalize on market opportunities 24/7." })
|
|
138
|
+
] }),
|
|
139
|
+
/* @__PURE__ */ jsx(Grid4, { container: true, spacing: 6, marginBottom: 4, paddingTop: 4, children: FEATURES.map((feature, index) => /* @__PURE__ */ jsx(Grid4, { size: { xs: 12, sm: 6, md: 4 }, textAlign: "center", children: /* @__PURE__ */ jsxs(CardContent, { children: [
|
|
140
|
+
feature.icon,
|
|
141
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h6", sx: { fontWeight: "bold" }, gutterBottom: true, children: feature.title }),
|
|
142
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body2", gutterBottom: true, sx: { lineHeight: "40px " }, children: feature.description })
|
|
143
|
+
] }) }, index)) })
|
|
144
|
+
] });
|
|
145
|
+
};
|
|
146
|
+
var features_default = Features;
|
|
147
|
+
var Footer = ({ navigate }) => {
|
|
148
|
+
const onClick = (name) => {
|
|
149
|
+
if (name) navigate(`/${name}`);
|
|
150
|
+
};
|
|
151
|
+
return /* @__PURE__ */ jsxs(Box7, { sx: { textAlign: "center", padding: 4, backgroundColor: "#f9f9f9" }, children: [
|
|
152
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "body2", gutterBottom: true, children: [
|
|
153
|
+
/* @__PURE__ */ jsx(LinkButton, { name: "privacy-policy", text: "Privacy Policy", onClick }),
|
|
154
|
+
" | ",
|
|
155
|
+
/* @__PURE__ */ jsx(LinkButton, { name: "terms-and-conditions", text: "Terms and Conditions", onClick }),
|
|
156
|
+
" | ",
|
|
157
|
+
/* @__PURE__ */ jsx(LinkButton, { name: "cookie-policy", text: "Cookie Policy", onClick }),
|
|
158
|
+
" "
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "body2", color: "textSecondary", children: [
|
|
161
|
+
"\xA9 ",
|
|
162
|
+
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
163
|
+
" SSPART Enterprise Pvt Ltd. All rights reserved."
|
|
164
|
+
] }),
|
|
165
|
+
/* @__PURE__ */ jsx(Box7, { sx: { marginTop: 2 }, children: /* @__PURE__ */ jsx(LinkButton, { name: "contact-us", text: "Contact Us", className: "wrapped-btn outlined-btn", onClick }) })
|
|
166
|
+
] });
|
|
167
|
+
};
|
|
168
|
+
var footer_default = Footer;
|
|
169
|
+
var LandingPage = ({ navigate }) => {
|
|
170
|
+
useEffect(() => {
|
|
171
|
+
document.title = TITLES.LANDING_PAGE_TITLE;
|
|
172
|
+
}, []);
|
|
173
|
+
return /* @__PURE__ */ jsxs(Box7, { sx: { width: "100%" }, children: [
|
|
174
|
+
/* @__PURE__ */ jsx(header_default, { navigate }),
|
|
175
|
+
/* @__PURE__ */ jsx(hero_default, { navigate }),
|
|
176
|
+
/* @__PURE__ */ jsx(features_default, {}),
|
|
177
|
+
/* @__PURE__ */ jsx(footer_default, { navigate })
|
|
178
|
+
] });
|
|
179
|
+
};
|
|
180
|
+
var landing_page_default = LandingPage;
|
|
181
|
+
var LayoutPage = ({ children, Header: Header2, Footer: Footer2, username }) => {
|
|
182
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
183
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
184
|
+
/* @__PURE__ */ jsx(Resize, { maxWidth: ON_RESIZE, ShortElement: /* @__PURE__ */ jsx(Fragment, {}), LongElement: /* @__PURE__ */ jsx(Header2, { username }) }),
|
|
185
|
+
children
|
|
186
|
+
] }),
|
|
187
|
+
/* @__PURE__ */ jsx(Resize, { maxWidth: ON_RESIZE, ShortElement: /* @__PURE__ */ jsx(Footer2, {}), LongElement: /* @__PURE__ */ jsx(Fragment, {}) })
|
|
188
|
+
] });
|
|
189
|
+
};
|
|
190
|
+
var layout_page_default = LayoutPage;
|
|
191
|
+
var FooterLinks = ({ navigate, link1, title1, link2, title2 }) => {
|
|
192
|
+
const onClick = (name) => {
|
|
193
|
+
if (name) navigate(`${name}`);
|
|
194
|
+
};
|
|
195
|
+
return /* @__PURE__ */ jsxs(Grid4, { container: true, justifyContent: "space-between", alignItems: "center", children: [
|
|
196
|
+
/* @__PURE__ */ jsx(Grid4, { children: /* @__PURE__ */ jsx(LinkButton, { className: "small-btn-link-p", name: link1, text: title1, onClick }) }),
|
|
197
|
+
/* @__PURE__ */ jsx(Grid4, { children: /* @__PURE__ */ jsx(LinkButton, { className: "small-btn-link-p", name: link2, text: title2, onClick }) })
|
|
198
|
+
] });
|
|
199
|
+
};
|
|
200
|
+
var footer_links_default = FooterLinks;
|
|
201
|
+
var LoginImage = ({ image, title }) => {
|
|
202
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
203
|
+
/* @__PURE__ */ jsx(Grid4, { mt: 1, children: /* @__PURE__ */ jsx(Grid4, { children: /* @__PURE__ */ jsx("img", { className: "sign-in-logo", alt: "...", src: image }) }) }),
|
|
204
|
+
/* @__PURE__ */ jsx(Grid4, { mt: 1, children: /* @__PURE__ */ jsx(Grid4, { textAlign: "center", children: /* @__PURE__ */ jsx(Typography, { variant: "h6", color: "var(--primary-color)", children: title }) }) })
|
|
205
|
+
] });
|
|
206
|
+
};
|
|
207
|
+
var login_image_default = LoginImage;
|
|
208
|
+
var ROUTE_MAP = {
|
|
209
|
+
signin: { service: "user", path: "/user/signin" }
|
|
210
|
+
};
|
|
211
|
+
function CUSTOMER_ROUTES(routeKey) {
|
|
212
|
+
const config = configService.getData();
|
|
213
|
+
console.log("Config from cus in routes.jsx", config);
|
|
214
|
+
const HOST_MAP = {
|
|
215
|
+
user: config.API_USER_API_HOST,
|
|
216
|
+
trade: config.API_TRADE_API_HOST
|
|
217
|
+
};
|
|
218
|
+
const route = ROUTE_MAP[routeKey];
|
|
219
|
+
const host = HOST_MAP[route.service];
|
|
220
|
+
console.log("full from cus in routes.jsx", `${host}${route.path}`);
|
|
221
|
+
return `${host}${route.path}`;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// src/components/signin.page/api-calls.tsx
|
|
225
|
+
var login = async (username, password, tandc, rememberme) => {
|
|
226
|
+
return await postcall(CUSTOMER_ROUTES("signin"), { username, password, tandc, rememberme }, "sign-in");
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
// src/resources/status.tsx
|
|
230
|
+
var STATUS_CODE_MESSAGES = {
|
|
231
|
+
PLEASE_ENTER_USERNAME: "Please provide a valid Username",
|
|
232
|
+
PLEASE_ENTER_PASSWORD: "Please provide a valid Password"
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
// src/components/signin.page/business-rules.tsx
|
|
236
|
+
var validateLoginForm = (data) => {
|
|
237
|
+
const errors = {};
|
|
238
|
+
if (!data.username) {
|
|
239
|
+
errors["username"] = STATUS_CODE_MESSAGES.PLEASE_ENTER_USERNAME;
|
|
240
|
+
}
|
|
241
|
+
if (!data.password) {
|
|
242
|
+
errors["password"] = STATUS_CODE_MESSAGES.PLEASE_ENTER_PASSWORD;
|
|
243
|
+
}
|
|
244
|
+
alertService.setData(errors);
|
|
245
|
+
return Object.keys(errors).length === 0;
|
|
246
|
+
};
|
|
247
|
+
var SignIn = ({ navigate }) => {
|
|
248
|
+
const [validationErrors, setValidationErrors] = useState({});
|
|
249
|
+
const [formData, setFormData] = useState({
|
|
250
|
+
username: "",
|
|
251
|
+
password: "",
|
|
252
|
+
tandc: false,
|
|
253
|
+
rememberme: false
|
|
254
|
+
});
|
|
255
|
+
useEffect(() => {
|
|
256
|
+
return () => {
|
|
257
|
+
alertService.resetData();
|
|
258
|
+
};
|
|
259
|
+
}, []);
|
|
260
|
+
const handleChange = (name, value) => {
|
|
261
|
+
setFormData({ ...formData, [name]: value });
|
|
262
|
+
};
|
|
263
|
+
const handleSubmit = async (e) => {
|
|
264
|
+
e.preventDefault();
|
|
265
|
+
if (validateLoginForm(formData)) {
|
|
266
|
+
alertService.resetData();
|
|
267
|
+
const { username, password, tandc, rememberme } = formData;
|
|
268
|
+
const result = await login(username, password, tandc, rememberme);
|
|
269
|
+
if (result && result.username) {
|
|
270
|
+
const { username: username2, fullname, permissions } = result;
|
|
271
|
+
setLocalStorage("username", username2);
|
|
272
|
+
setLocalStorage("fullname", fullname);
|
|
273
|
+
planAuth.setData({ username: username2, fullname, permissions });
|
|
274
|
+
auth.authenticate(() => navigate("/dashboard"));
|
|
275
|
+
}
|
|
276
|
+
} else {
|
|
277
|
+
setValidationErrors(alertService.getData());
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
const onClick = (name) => {
|
|
281
|
+
if (name) navigate(`/${name}`);
|
|
282
|
+
};
|
|
283
|
+
return /* @__PURE__ */ jsxs(Grid4, { container: true, direction: "column", alignItems: "center", justifyContent: "center", children: [
|
|
284
|
+
/* @__PURE__ */ jsx(login_image_default, { image: IMAGE_LINKS.NAMELOGO, title: "Sign in" }),
|
|
285
|
+
/* @__PURE__ */ jsxs(Box7, { component: "form", onSubmit: handleSubmit, noValidate: true, sx: { m: 0, width: "100%" }, children: [
|
|
286
|
+
/* @__PURE__ */ jsx(Alerts, { id: "sign-in", className: "mt-2 mb-4" }),
|
|
287
|
+
/* @__PURE__ */ jsx(
|
|
288
|
+
Textbox,
|
|
289
|
+
{
|
|
290
|
+
id: "username",
|
|
291
|
+
name: "username",
|
|
292
|
+
type: "text",
|
|
293
|
+
placeholder: "Username",
|
|
294
|
+
size: "medium",
|
|
295
|
+
validation: validationErrors.username,
|
|
296
|
+
value: formData.username,
|
|
297
|
+
onChange: handleChange,
|
|
298
|
+
mandate: true
|
|
299
|
+
}
|
|
300
|
+
),
|
|
301
|
+
/* @__PURE__ */ jsx(Box7, { sx: { mb: 2 } }),
|
|
302
|
+
/* @__PURE__ */ jsx(
|
|
303
|
+
PasswordTextbox,
|
|
304
|
+
{
|
|
305
|
+
id: "password",
|
|
306
|
+
name: "password",
|
|
307
|
+
placeholder: "Password",
|
|
308
|
+
size: "medium",
|
|
309
|
+
validation: validationErrors.password,
|
|
310
|
+
value: formData.password,
|
|
311
|
+
onChange: handleChange,
|
|
312
|
+
mandate: true
|
|
313
|
+
}
|
|
314
|
+
),
|
|
315
|
+
/* @__PURE__ */ jsx(Box7, { sx: { mb: 2 } }),
|
|
316
|
+
/* @__PURE__ */ jsx(
|
|
317
|
+
CheckBox,
|
|
318
|
+
{
|
|
319
|
+
name: "rememberme",
|
|
320
|
+
label: "Remember me",
|
|
321
|
+
value: formData.rememberme,
|
|
322
|
+
onChange: handleChange
|
|
323
|
+
}
|
|
324
|
+
),
|
|
325
|
+
/* @__PURE__ */ jsx(
|
|
326
|
+
CheckBox,
|
|
327
|
+
{
|
|
328
|
+
name: "tandc",
|
|
329
|
+
value: formData.tandc,
|
|
330
|
+
validation: validationErrors.tandc,
|
|
331
|
+
label: /* @__PURE__ */ jsxs("span", { children: [
|
|
332
|
+
"I agree to DheQuest's ",
|
|
333
|
+
/* @__PURE__ */ jsx(LinkButton, { name: "terms", text: "Terms & Conditions", onClick })
|
|
334
|
+
] }),
|
|
335
|
+
onChange: handleChange
|
|
336
|
+
}
|
|
337
|
+
),
|
|
338
|
+
/* @__PURE__ */ jsx(Box7, { sx: { mb: 2 } }),
|
|
339
|
+
/* @__PURE__ */ jsx(Button, { text: "Sign In", type: "submit" }),
|
|
340
|
+
/* @__PURE__ */ jsx(Box7, { sx: { mb: 2 } }),
|
|
341
|
+
/* @__PURE__ */ jsx(
|
|
342
|
+
footer_links_default,
|
|
343
|
+
{
|
|
344
|
+
navigate,
|
|
345
|
+
link1: "/user/forget-password",
|
|
346
|
+
title1: "Forgot password?",
|
|
347
|
+
link2: "/signup",
|
|
348
|
+
title2: "Don't have an account? Sign Up"
|
|
349
|
+
}
|
|
350
|
+
)
|
|
351
|
+
] })
|
|
352
|
+
] });
|
|
353
|
+
};
|
|
354
|
+
var sign_in_default = SignIn;
|
|
355
|
+
var SigninPage = ({ navigate }) => {
|
|
356
|
+
useEffect(() => {
|
|
357
|
+
document.title = TITLES.SIGN_IN_PAGE_TITLE;
|
|
358
|
+
}, []);
|
|
359
|
+
return /* @__PURE__ */ jsx(Grid4, { container: true, spacing: 0, direction: "row", alignItems: "center", justifyContent: "center", className: "full-hw-window", children: /* @__PURE__ */ jsx(Container, { component: "main", maxWidth: "xs", children: /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx("div", { className: "sign-in-card-wrapper modal-body", children: /* @__PURE__ */ jsx(sign_in_default, { navigate }) }) }) }) });
|
|
360
|
+
};
|
|
361
|
+
var signin_page_default = SigninPage;
|
|
362
|
+
|
|
363
|
+
export { error_page_default as ErrorPage, landing_page_default as LandingPage, layout_page_default as LayoutPage, logout_error_page_default as LogoutErrorPage, signin_page_default as SignInPage };
|
|
364
|
+
//# sourceMappingURL=index.js.map
|
|
365
|
+
//# sourceMappingURL=index.js.map
|