qaema-ui 0.0.57 → 0.0.59
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/_virtual/index2.js +4 -4
- package/dist/_virtual/index3.js +4 -4
- package/dist/_virtual/index4.js +4 -4
- package/dist/_virtual/index7.js +3 -2
- package/dist/_virtual/index8.js +2 -3
- package/dist/components/RequestCard.d.ts +1 -0
- package/dist/components/RequestCard.js +122 -113
- package/dist/components/Sidemenu.d.ts +1 -0
- package/dist/components/Sidemenu.js +14 -14
- package/dist/node_modules/react-bootstrap/esm/CloseButton.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Feedback.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Form.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Image.js +1 -1
- package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-smooth/es6/Animate.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as t } from "../node_modules/react-helmet-async/node_modules/react-fast-compare/index.js";
|
|
3
|
+
var a = t();
|
|
4
|
+
const m = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var a =
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../node_modules/shallowequal/index.js";
|
|
3
|
+
var a = o();
|
|
4
|
+
const t = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as o } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../node_modules/prop-types/index.js";
|
|
3
|
+
var p = /* @__PURE__ */ o();
|
|
4
|
+
const s = /* @__PURE__ */ r(p);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
package/dist/_virtual/index7.js
CHANGED
package/dist/_virtual/index8.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { j as n } from "../_virtual/jsx-runtime.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import e, { useTheme as H } from "styled-components";
|
|
4
|
+
import $ from "./Badge.js";
|
|
5
5
|
import p from "./Button.js";
|
|
6
|
-
import { useQaemaCoreTranslation as
|
|
7
|
-
import
|
|
8
|
-
import { FeatureList as
|
|
6
|
+
import { useQaemaCoreTranslation as P } from "../i18n/i18n.js";
|
|
7
|
+
import q from "../assets/svg/Riyal.svg.js";
|
|
8
|
+
import { FeatureList as W, FeatureRow as E, Bullet as M } from "./RequestSummaryCard.js";
|
|
9
9
|
import h from "./Typography.js";
|
|
10
|
-
const
|
|
10
|
+
const V = e.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
justify-content: space-between;
|
|
14
|
-
height: ${({ image:
|
|
15
|
-
`,
|
|
14
|
+
height: ${({ image: i, inModal: s }) => i ? s ? "65%" : "unset" : "100%"};
|
|
15
|
+
`, D = e.div`
|
|
16
16
|
min-width: 9.0625rem;
|
|
17
17
|
display: flex;
|
|
18
|
-
aspect-ratio: ${({ $inModal:
|
|
19
|
-
background: ${({ $background:
|
|
18
|
+
aspect-ratio: ${({ $inModal: i }) => i ? "23/9" : "11/9"};
|
|
19
|
+
background: ${({ $background: i, theme: s }) => i ?? `linear-gradient(
|
|
20
20
|
180deg,
|
|
21
|
-
${
|
|
22
|
-
${
|
|
21
|
+
${s.colors.primary.purple.n100} 0%,
|
|
22
|
+
${s.colors.primary.purple.n300} 100%
|
|
23
23
|
)`};
|
|
24
|
-
border-radius: ${({ theme:
|
|
24
|
+
border-radius: ${({ theme: i }) => i.borderRadius.md};
|
|
25
25
|
|
|
26
26
|
place-items: center;
|
|
27
27
|
overflow: hidden;
|
|
28
|
-
height: ${({ $inModal:
|
|
28
|
+
height: ${({ $inModal: i }) => i ? "35%" : "unset"};
|
|
29
29
|
img,
|
|
30
30
|
svg {
|
|
31
31
|
width: 100%;
|
|
@@ -33,99 +33,104 @@ const M = s.div`
|
|
|
33
33
|
object-fit: cover;
|
|
34
34
|
display: block;
|
|
35
35
|
}
|
|
36
|
-
`,
|
|
36
|
+
`, I = e.div`
|
|
37
37
|
display: grid;
|
|
38
38
|
grid-template-columns: '1fr';
|
|
39
|
-
gap: ${({ theme:
|
|
40
|
-
margin-top: ${({ theme:
|
|
39
|
+
gap: ${({ theme: i }) => i.spacing.xs};
|
|
40
|
+
margin-top: ${({ theme: i }) => i.spacing.xxs};
|
|
41
41
|
justify-content: 'stretch';
|
|
42
42
|
align-items: center;
|
|
43
|
-
`,
|
|
43
|
+
`, N = e(p)`
|
|
44
44
|
min-width: 9.3125rem;
|
|
45
45
|
min-height: 2rem;
|
|
46
|
-
border-radius: ${({ theme:
|
|
47
|
-
box-shadow: ${({ theme:
|
|
48
|
-
`,
|
|
46
|
+
border-radius: ${({ theme: i }) => i.borderRadius.sm};
|
|
47
|
+
box-shadow: ${({ theme: i }) => i.boxShadow.s3};
|
|
48
|
+
`, Q = e.div`
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: ${({ theme: i }) => i.spacing.xs};
|
|
52
|
+
margin-bottom: ${({ theme: i }) => i.spacing.xxs};
|
|
53
|
+
`, X = e.h3`
|
|
49
54
|
margin: 0;
|
|
50
|
-
font-family: ${({ theme:
|
|
51
|
-
font-weight: ${({ theme:
|
|
52
|
-
font-size: ${({ theme:
|
|
53
|
-
var
|
|
54
|
-
return (
|
|
55
|
+
font-family: ${({ theme: i }) => (i == null ? void 0 : i.dir) === "rtl" ? i.fonts.arabic : i.fonts.english};
|
|
56
|
+
font-weight: ${({ theme: i }) => i.typography.weights.semiBold};
|
|
57
|
+
font-size: ${({ theme: i }) => {
|
|
58
|
+
var s;
|
|
59
|
+
return (s = i.typography.sizes) == null ? void 0 : s.s4;
|
|
55
60
|
}};
|
|
56
|
-
line-height: ${({ theme:
|
|
61
|
+
line-height: ${({ theme: i }) => i.typography.lineHeights.m};
|
|
57
62
|
letter-spacing: -0.25px;
|
|
58
|
-
color: ${({ theme:
|
|
59
|
-
`,
|
|
63
|
+
color: ${({ theme: i }) => i.colors.grey.n800};
|
|
64
|
+
`, G = e.p`
|
|
60
65
|
margin: 0;
|
|
61
|
-
color: ${({ theme:
|
|
62
|
-
font-size: ${({ theme:
|
|
63
|
-
var
|
|
64
|
-
return (
|
|
66
|
+
color: ${({ theme: i }) => i.colors.grey.n400};
|
|
67
|
+
font-size: ${({ theme: i }) => {
|
|
68
|
+
var s;
|
|
69
|
+
return (s = i.typography.sizes) == null ? void 0 : s.s3;
|
|
65
70
|
}};
|
|
66
|
-
line-height: ${({ theme:
|
|
67
|
-
`,
|
|
71
|
+
line-height: ${({ theme: i }) => i.typography.lineHeights.s};
|
|
72
|
+
`, J = e.div`
|
|
68
73
|
display: flex;
|
|
69
74
|
flex-wrap: wrap;
|
|
70
|
-
gap: ${({ theme:
|
|
71
|
-
margin-top: ${({ theme:
|
|
72
|
-
margin-bottom: ${({ theme:
|
|
73
|
-
`,
|
|
75
|
+
gap: ${({ theme: i }) => i.spacing.s};
|
|
76
|
+
margin-top: ${({ theme: i }) => i.spacing.s};
|
|
77
|
+
margin-bottom: ${({ theme: i }) => i.spacing.s};
|
|
78
|
+
`, K = e.div`
|
|
74
79
|
display: flex;
|
|
75
80
|
flex-direction: column;
|
|
76
|
-
gap: ${({ theme:
|
|
77
|
-
`,
|
|
78
|
-
font-family: ${({ theme:
|
|
79
|
-
font-weight: ${({ theme:
|
|
80
|
-
font-size: ${({ theme:
|
|
81
|
-
var
|
|
82
|
-
return (
|
|
81
|
+
gap: ${({ theme: i }) => i.spacing.xs};
|
|
82
|
+
`, L = e.div`
|
|
83
|
+
font-family: ${({ theme: i }) => (i == null ? void 0 : i.dir) === "rtl" ? i.fonts.arabic : i.fonts.english};
|
|
84
|
+
font-weight: ${({ theme: i }) => i.typography.weights.semiBold};
|
|
85
|
+
font-size: ${({ theme: i }) => {
|
|
86
|
+
var s;
|
|
87
|
+
return (s = i.typography.sizes) == null ? void 0 : s.s2;
|
|
83
88
|
}};
|
|
84
|
-
line-height: ${({ theme:
|
|
89
|
+
line-height: ${({ theme: i }) => i.typography.lineHeights.xs};
|
|
85
90
|
letter-spacing: 0;
|
|
86
91
|
vertical-align: middle;
|
|
87
|
-
color: ${({ theme:
|
|
88
|
-
`,
|
|
89
|
-
width: ${({ $fixed:
|
|
92
|
+
color: ${({ theme: i }) => i.colors.grey.n650};
|
|
93
|
+
`, O = e.div`
|
|
94
|
+
width: ${({ $fixed: i }) => i ? "335px" : "100%"};
|
|
90
95
|
min-width: 11.1875rem;
|
|
91
96
|
height: 100%;
|
|
92
|
-
border-radius: ${({ theme:
|
|
93
|
-
padding: ${({ theme:
|
|
97
|
+
border-radius: ${({ theme: i }) => i.borderRadius.md};
|
|
98
|
+
padding: ${({ theme: i }) => i.spacing.sm};
|
|
94
99
|
|
|
95
|
-
background: ${({ theme:
|
|
96
|
-
box-shadow: ${({ theme:
|
|
100
|
+
background: ${({ theme: i }) => i.colors.grey.n50};
|
|
101
|
+
box-shadow: ${({ theme: i }) => i.boxShadow.s3};
|
|
97
102
|
border: none;
|
|
98
103
|
display: flex;
|
|
99
104
|
flex-direction: column;
|
|
100
|
-
gap: ${({ theme:
|
|
101
|
-
`,
|
|
105
|
+
gap: ${({ theme: i }) => i.spacing.s};
|
|
106
|
+
`, U = e.div`
|
|
102
107
|
position: relative;
|
|
103
108
|
width: 100%;
|
|
104
109
|
height: 0.5rem;
|
|
105
|
-
background: ${({ theme:
|
|
110
|
+
background: ${({ theme: i }) => i.colors.grey.n100};
|
|
106
111
|
border-radius: 0;
|
|
107
112
|
overflow: hidden;
|
|
108
113
|
&::after {
|
|
109
114
|
content: '';
|
|
110
115
|
position: absolute;
|
|
111
116
|
inset: 0;
|
|
112
|
-
width: ${({ $value:
|
|
113
|
-
background: ${({ $color:
|
|
117
|
+
width: ${({ $value: i }) => Math.min(Math.max(i, 0), 100)}%;
|
|
118
|
+
background: ${({ $color: i }) => i};
|
|
114
119
|
transition: width 250ms ease;
|
|
115
120
|
border-radius: 0;
|
|
116
121
|
}
|
|
117
|
-
`,
|
|
118
|
-
font-family: ${({ theme:
|
|
119
|
-
font-weight: ${({ theme:
|
|
120
|
-
font-size: ${({ theme:
|
|
121
|
-
var
|
|
122
|
-
return (
|
|
122
|
+
`, Y = e.span`
|
|
123
|
+
font-family: ${({ theme: i }) => (i == null ? void 0 : i.dir) === "rtl" ? i.fonts.arabic : i.fonts.english};
|
|
124
|
+
font-weight: ${({ theme: i }) => i.typography.weights.regular};
|
|
125
|
+
font-size: ${({ theme: i }) => {
|
|
126
|
+
var s;
|
|
127
|
+
return (s = i.typography.sizes) == null ? void 0 : s.s2;
|
|
123
128
|
}};
|
|
124
|
-
line-height: ${({ theme:
|
|
129
|
+
line-height: ${({ theme: i }) => i.typography.lineHeights.xs};
|
|
125
130
|
letter-spacing: 0;
|
|
126
|
-
color: ${({ theme:
|
|
127
|
-
`,
|
|
128
|
-
switch (
|
|
131
|
+
color: ${({ theme: i }) => i.colors.grey.n400};
|
|
132
|
+
`, Z = (i) => {
|
|
133
|
+
switch (i) {
|
|
129
134
|
case "accepted":
|
|
130
135
|
return { bar: "#1DBA63" };
|
|
131
136
|
case "rejected":
|
|
@@ -135,7 +140,7 @@ const M = s.div`
|
|
|
135
140
|
default:
|
|
136
141
|
return { bar: "#7259ff" };
|
|
137
142
|
}
|
|
138
|
-
},
|
|
143
|
+
}, _ = e.div`
|
|
139
144
|
display: flex;
|
|
140
145
|
flex-direction: column;
|
|
141
146
|
justify-content: space-between;
|
|
@@ -146,63 +151,67 @@ const M = s.div`
|
|
|
146
151
|
@media (max-width: 375px) {
|
|
147
152
|
align-items: center;
|
|
148
153
|
}
|
|
149
|
-
`,
|
|
154
|
+
`, C = e.div`
|
|
150
155
|
display: flex;
|
|
151
156
|
align-items: baseline;
|
|
152
|
-
color: ${({ theme:
|
|
157
|
+
color: ${({ theme: i }) => i.colors.grey.n650};
|
|
153
158
|
|
|
154
159
|
span {
|
|
155
|
-
color: ${({ theme:
|
|
160
|
+
color: ${({ theme: i }) => i.colors.grey.n650};
|
|
156
161
|
}
|
|
157
162
|
|
|
158
163
|
@media (max-width: 375px) {
|
|
159
164
|
text-align: center;
|
|
160
165
|
}
|
|
161
|
-
`,
|
|
166
|
+
`, ii = e.div`
|
|
162
167
|
display: flex;
|
|
163
168
|
align-items: center;
|
|
164
|
-
`,
|
|
165
|
-
width: ${({ $width:
|
|
169
|
+
`, ni = e.img`
|
|
170
|
+
width: ${({ $width: i = "1rem" }) => i};
|
|
166
171
|
height: 1rem;
|
|
167
172
|
object-fit: contain;
|
|
168
173
|
flex-shrink: 0;
|
|
169
174
|
margin-right: 2px;
|
|
170
|
-
`,
|
|
171
|
-
variant:
|
|
172
|
-
image:
|
|
173
|
-
title:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
`, gi = ({
|
|
176
|
+
variant: i = "hidden",
|
|
177
|
+
image: s,
|
|
178
|
+
title: y,
|
|
179
|
+
titleBadge: x,
|
|
180
|
+
subtitle: m,
|
|
181
|
+
trackingLabel: j = "Request Tracking",
|
|
182
|
+
progress: b = 0,
|
|
183
|
+
statusText: w,
|
|
178
184
|
primaryCta: t,
|
|
179
185
|
secondaryCta: l,
|
|
180
|
-
className:
|
|
181
|
-
style:
|
|
186
|
+
className: v,
|
|
187
|
+
style: k,
|
|
182
188
|
features: a,
|
|
183
|
-
featuresTitle:
|
|
189
|
+
featuresTitle: z,
|
|
184
190
|
badgeList: c,
|
|
185
191
|
price: o,
|
|
186
192
|
inModal: u = !1,
|
|
187
|
-
background:
|
|
193
|
+
background: R
|
|
188
194
|
}) => {
|
|
189
|
-
const { t: r } =
|
|
190
|
-
return /* @__PURE__ */ n.jsxs(
|
|
191
|
-
|
|
192
|
-
/* @__PURE__ */ n.jsxs(
|
|
193
|
-
/* @__PURE__ */ n.
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
const { t: r } = P(), T = Z(i), B = i !== "hidden", S = r(i === "accepted" ? "accepted" : i === "rejected" ? "rejected" : "submitted"), f = i === "hidden" ? "primary" : i === "accepted" || i === "rejected" ? "light-primary" : "outline-primary", F = i === "rejected", A = H();
|
|
196
|
+
return /* @__PURE__ */ n.jsxs(O, { className: v, style: k, children: [
|
|
197
|
+
s ? /* @__PURE__ */ n.jsx(D, { $inModal: u, $background: R, children: s }) : null,
|
|
198
|
+
/* @__PURE__ */ n.jsxs(V, { image: s, inModal: u, children: [
|
|
199
|
+
/* @__PURE__ */ n.jsxs(Q, { children: [
|
|
200
|
+
/* @__PURE__ */ n.jsx(X, { children: y }),
|
|
201
|
+
x && /* @__PURE__ */ n.jsx($, { ...x })
|
|
202
|
+
] }),
|
|
203
|
+
m ? /* @__PURE__ */ n.jsx(G, { children: m }) : null,
|
|
204
|
+
c && c.length > 0 && /* @__PURE__ */ n.jsx(J, { children: c.map((d, g) => /* @__PURE__ */ n.jsx($, { ...d }, g)) }),
|
|
196
205
|
a && a.length > 0 ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
197
|
-
/* @__PURE__ */ n.jsx(h, { variant: "h6", color:
|
|
198
|
-
/* @__PURE__ */ n.jsx(
|
|
199
|
-
/* @__PURE__ */ n.jsx(
|
|
206
|
+
/* @__PURE__ */ n.jsx(h, { variant: "h6", color: A.colors.grey.n400, children: z }),
|
|
207
|
+
/* @__PURE__ */ n.jsx(W, { children: a.map((d, g) => /* @__PURE__ */ n.jsxs(E, { children: [
|
|
208
|
+
/* @__PURE__ */ n.jsx(M, {}),
|
|
200
209
|
/* @__PURE__ */ n.jsx("span", { children: d.label })
|
|
201
210
|
] }, g)) })
|
|
202
211
|
] }) : null,
|
|
203
|
-
o && /* @__PURE__ */ n.jsx(
|
|
204
|
-
/* @__PURE__ */ n.jsxs(
|
|
205
|
-
/* @__PURE__ */ n.jsx(
|
|
212
|
+
o && /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsxs(C, { children: [
|
|
213
|
+
/* @__PURE__ */ n.jsxs(ii, { children: [
|
|
214
|
+
/* @__PURE__ */ n.jsx(ni, { src: q, alt: o == null ? void 0 : o.amount }),
|
|
206
215
|
/* @__PURE__ */ n.jsx(h, { variant: "h5", weight: "bold", children: o == null ? void 0 : o.amount })
|
|
207
216
|
] }),
|
|
208
217
|
/* @__PURE__ */ n.jsxs(h, { variant: "caption", children: [
|
|
@@ -210,23 +219,23 @@ const M = s.div`
|
|
|
210
219
|
(o == null ? void 0 : o.unit) ?? r("year")
|
|
211
220
|
] })
|
|
212
221
|
] }) }),
|
|
213
|
-
B && /* @__PURE__ */ n.jsxs(
|
|
214
|
-
/* @__PURE__ */ n.jsx(
|
|
215
|
-
/* @__PURE__ */ n.jsx(
|
|
216
|
-
/* @__PURE__ */ n.jsx(
|
|
222
|
+
B && /* @__PURE__ */ n.jsxs(K, { children: [
|
|
223
|
+
/* @__PURE__ */ n.jsx(L, { children: j }),
|
|
224
|
+
/* @__PURE__ */ n.jsx(U, { $value: b, $color: T.bar }),
|
|
225
|
+
/* @__PURE__ */ n.jsx(Y, { children: w ?? S })
|
|
217
226
|
] }),
|
|
218
|
-
/* @__PURE__ */ n.jsx(
|
|
219
|
-
t && /* @__PURE__ */ n.jsx(p, { variant:
|
|
227
|
+
/* @__PURE__ */ n.jsx(I, { children: F ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(N, { variant: f, size: "xs", onClick: t == null ? void 0 : t.onClick, children: (t == null ? void 0 : t.label) ?? "Send New Request" }) }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
228
|
+
t && /* @__PURE__ */ n.jsx(p, { variant: f, size: "md", onClick: t.onClick, children: t.label }),
|
|
220
229
|
l && /* @__PURE__ */ n.jsx(p, { variant: "light-secondary", size: "md", onClick: l.onClick, children: l.label })
|
|
221
230
|
] }) })
|
|
222
231
|
] })
|
|
223
232
|
] });
|
|
224
233
|
};
|
|
225
234
|
export {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
235
|
+
V as ContentWrapper,
|
|
236
|
+
U as ProgressBar,
|
|
237
|
+
Y as StatusText,
|
|
238
|
+
L as TrackingHeader,
|
|
239
|
+
K as TrackingWrap,
|
|
240
|
+
gi as default
|
|
232
241
|
};
|
|
@@ -129,23 +129,23 @@ const v = o.div`
|
|
|
129
129
|
}}
|
|
130
130
|
margin-bottom: ${({ theme: r }) => r.spacing.sm};
|
|
131
131
|
`, mr = (r) => {
|
|
132
|
-
const { logoSrc: C, searchPlaceHolder: k, categories: a, linkComponent: f, open: T, setOpen: E, currentPath: u, extraSideMenuItems: l, onLogoClick: D } = r, p = X(), { t: L } = M(), B = K("sidemenu"), [c, F] = m(""), [
|
|
133
|
-
const
|
|
134
|
-
a == null || a.forEach((
|
|
132
|
+
const { logoSrc: C, searchPlaceHolder: k, categories: a, linkComponent: f, open: T, setOpen: E, currentPath: u, extraSideMenuItems: l, onLogoClick: D } = r, p = X(), { t: L } = M(), B = K("sidemenu"), [c, F] = m(""), [d, N] = m(a), g = (n) => {
|
|
133
|
+
const e = [];
|
|
134
|
+
a == null || a.forEach((t) => {
|
|
135
135
|
var h;
|
|
136
|
-
const s = (h =
|
|
136
|
+
const s = (h = t == null ? void 0 : t.navItems) == null ? void 0 : h.filter((x) => {
|
|
137
137
|
var $, y;
|
|
138
138
|
return (y = ($ = x == null ? void 0 : x.title) == null ? void 0 : $.toLowerCase()) == null ? void 0 : y.includes(n == null ? void 0 : n.toLowerCase());
|
|
139
139
|
});
|
|
140
|
-
(s == null ? void 0 : s.length) > 0 &&
|
|
141
|
-
}),
|
|
142
|
-
},
|
|
140
|
+
(s == null ? void 0 : s.length) > 0 && e.push({ ...t, navItems: s });
|
|
141
|
+
}), N(e);
|
|
142
|
+
}, W = (n) => {
|
|
143
143
|
n.key === "Enter" && g(c);
|
|
144
144
|
};
|
|
145
145
|
H(() => {
|
|
146
146
|
c === "" && g(c);
|
|
147
147
|
}, [c]);
|
|
148
|
-
const z = (n,
|
|
148
|
+
const z = (n, e) => n ? e === n || (e == null ? void 0 : e.startsWith(n + "/")) : !1;
|
|
149
149
|
return /* @__PURE__ */ i.jsxs(v, { className: T ? "active" : "", $zIndex: B, children: [
|
|
150
150
|
/* @__PURE__ */ i.jsxs(A, { children: [
|
|
151
151
|
/* @__PURE__ */ i.jsx(J, { onClick: D, children: /* @__PURE__ */ i.jsx(V, { src: C, width: "6.336rem", height: "2rem" }) }),
|
|
@@ -169,18 +169,18 @@ const v = o.div`
|
|
|
169
169
|
onChange: (n) => {
|
|
170
170
|
F(n.target.value);
|
|
171
171
|
},
|
|
172
|
-
onKeyDown:
|
|
172
|
+
onKeyDown: W
|
|
173
173
|
}
|
|
174
174
|
)
|
|
175
175
|
] }) }),
|
|
176
176
|
/* @__PURE__ */ i.jsxs(G, { children: [
|
|
177
177
|
/* @__PURE__ */ i.jsxs("div", { children: [
|
|
178
|
-
(
|
|
179
|
-
(
|
|
180
|
-
var
|
|
181
|
-
return ((
|
|
178
|
+
(d == null ? void 0 : d.length) === 0 && /* @__PURE__ */ i.jsx(ir, { children: /* @__PURE__ */ i.jsx(w, { variant: "smText", children: L("NO_RESULTS_FOUND") }) }),
|
|
179
|
+
(d == null ? void 0 : d.length) > 0 && (d == null ? void 0 : d.map((n) => {
|
|
180
|
+
var e, t;
|
|
181
|
+
return ((e = n == null ? void 0 : n.navItems) == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ i.jsxs(rr, { className: n == null ? void 0 : n.code, children: [
|
|
182
182
|
/* @__PURE__ */ i.jsx(nr, { variant: "xsText", color: p.colors.grey.n300, children: n == null ? void 0 : n.title }),
|
|
183
|
-
(
|
|
183
|
+
(t = n == null ? void 0 : n.navItems) == null ? void 0 : t.map((s) => /* @__PURE__ */ i.jsx(j, { to: (s == null ? void 0 : s.path) ?? "/", component: f, wrapper: !0, children: /* @__PURE__ */ i.jsx(b, { item: { variant: "normal", active: z(s.path, u), ...s } }) }, s == null ? void 0 : s.path))
|
|
184
184
|
] }, n == null ? void 0 : n.title);
|
|
185
185
|
}))
|
|
186
186
|
] }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import f from "../../../_virtual/index.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import o from "../../../_virtual/
|
|
3
|
+
import o from "../../../_virtual/index4.js";
|
|
4
4
|
import { useBootstrapPrefix as u } from "./ThemeProvider.js";
|
|
5
5
|
import { j as p } from "../../../_virtual/jsx-runtime.js";
|
|
6
6
|
o.string, o.bool, o.bool, o.bool, o.bool;
|
|
@@ -2,9 +2,9 @@ var Q = Object.defineProperty;
|
|
|
2
2
|
var X = (e, t, r) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var h = (e, t, r) => X(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import y, { Component as R } from "react";
|
|
5
|
-
import ee from "../../../_virtual/
|
|
5
|
+
import ee from "../../../_virtual/index2.js";
|
|
6
6
|
import F from "../../../_virtual/browser.js";
|
|
7
|
-
import te from "../../../_virtual/
|
|
7
|
+
import te from "../../../_virtual/index3.js";
|
|
8
8
|
var Y = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Y || {}), $ = {
|
|
9
9
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
10
10
|
script: { type: ["application/ld+json"] },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import x, { Children as w, cloneElement as z, PureComponent as F } from "react";
|
|
2
|
-
import a from "../../../_virtual/
|
|
2
|
+
import a from "../../../_virtual/index4.js";
|
|
3
3
|
import { deepEqual as H } from "../../fast-equals/dist/esm/index.js";
|
|
4
4
|
import L from "./AnimateManager.js";
|
|
5
5
|
import { configEasing as V } from "./easing.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
2
2
|
import D from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
3
|
-
import o from "../../../_virtual/
|
|
3
|
+
import o from "../../../_virtual/index4.js";
|
|
4
4
|
import v from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
6
|
import T from "./config.js";
|
|
@@ -4,7 +4,7 @@ import P from "../../../../_virtual/isString.js";
|
|
|
4
4
|
import D from "../../../../_virtual/isFunction.js";
|
|
5
5
|
import j from "../../../../_virtual/isObject.js";
|
|
6
6
|
import { Children as p, isValidElement as w } from "react";
|
|
7
|
-
import { r as B } from "../../../../_virtual/
|
|
7
|
+
import { r as B } from "../../../../_virtual/index7.js";
|
|
8
8
|
import { isNumber as b } from "./DataUtils.js";
|
|
9
9
|
import { shallowEqual as d } from "./ShallowEqual.js";
|
|
10
10
|
import { SVGElementPropKeys as G, EventKeys as F, FilteredElementKeyMap as s } from "./types.js";
|