@reapit/elements 5.0.0-beta.65 → 5.0.0-beta.66
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/js/{anchor-positioning-CVXI9jJO.js → anchor-positioning-B3GGsbFM.js} +27 -23
- package/dist/js/{anchor-positioning-B1du9Wtv.cjs → anchor-positioning-CmSZkNof.cjs} +14 -10
- package/dist/js/{app-switcher-DrA-3CTV.cjs → app-switcher-D8xQB_PB.cjs} +1 -1
- package/dist/js/{app-switcher-CdvLWLFj.js → app-switcher-D_gWoT1i.js} +3 -3
- package/dist/js/{autocomplete-D3dPhE8Z.js → autocomplete-C1P0l4Sz.js} +1 -1
- package/dist/js/{autocomplete-CYxComaA.cjs → autocomplete-DMYTBlo5.cjs} +1 -1
- package/dist/js/{autocomplete-control-ciJlNJl0.js → autocomplete-control-CH1F7ZB8.js} +1 -1
- package/dist/js/{autocomplete-control-CjSBJS9l.cjs → autocomplete-control-R1DkYZrT.cjs} +1 -1
- package/dist/js/{badge-B4weQtHe.js → badge-DEjb7x5J.js} +1 -1
- package/dist/js/{badge-Bms7oWTK.cjs → badge-DdUFUlQT.cjs} +1 -1
- package/dist/js/{bottom-bar-CGZKFvKr.js → bottom-bar-CxOR1id3.js} +1 -1
- package/dist/js/{bottom-bar-f8rXTa1u.cjs → bottom-bar-ei7FfStd.cjs} +1 -1
- package/dist/js/{combobox-DtvFjGJH.cjs → combobox-BQ-ie7tr.cjs} +1 -1
- package/dist/js/{combobox-CZZ5mxom.js → combobox-BmEn5_wr.js} +1 -1
- package/dist/js/core/app-switcher.cjs +1 -1
- package/dist/js/core/app-switcher.js +1 -1
- package/dist/js/core/autocomplete-control.cjs +1 -1
- package/dist/js/core/autocomplete-control.js +1 -1
- package/dist/js/core/autocomplete.cjs +1 -1
- package/dist/js/core/autocomplete.js +1 -1
- package/dist/js/core/badge.cjs +1 -1
- package/dist/js/core/badge.js +1 -1
- package/dist/js/core/bottom-bar.cjs +1 -1
- package/dist/js/core/bottom-bar.js +1 -1
- package/dist/js/core/combobox.cjs +1 -1
- package/dist/js/core/combobox.js +1 -1
- package/dist/js/core/compact-select.cjs +1 -1
- package/dist/js/core/compact-select.js +2 -2
- package/dist/js/core/features.cjs +1 -1
- package/dist/js/core/features.js +1 -1
- package/dist/js/core/menu.cjs +1 -1
- package/dist/js/core/menu.js +1 -1
- package/dist/js/core/section-message.cjs +1 -1
- package/dist/js/core/section-message.js +1 -1
- package/dist/js/core/select-control.cjs +1 -1
- package/dist/js/core/select-control.js +1 -1
- package/dist/js/core/select.cjs +1 -1
- package/dist/js/core/select.js +1 -1
- package/dist/js/core/side-bar.cjs +1 -1
- package/dist/js/core/side-bar.js +1 -1
- package/dist/js/core/split-button.cjs +1 -1
- package/dist/js/core/split-button.js +1 -1
- package/dist/js/core/table.cjs +1 -1
- package/dist/js/core/table.js +1 -1
- package/dist/js/core/tooltip.cjs +1 -1
- package/dist/js/core/tooltip.js +1 -1
- package/dist/js/core/top-bar.cjs +1 -1
- package/dist/js/core/top-bar.js +1 -1
- package/dist/js/{features-xqjwDAS8.cjs → features-BGQkJuYP.cjs} +1 -1
- package/dist/js/{features-Cw6F_1Kx.js → features-pVA5cu_D.js} +1 -1
- package/dist/js/index.cjs +1 -1
- package/dist/js/index.js +18 -18
- package/dist/js/lab/select-custom.cjs +1 -1
- package/dist/js/lab/select-custom.js +2 -2
- package/dist/js/{line-clamp-Cjqgeaqb.js → line-clamp-C6MCRdIh.js} +1 -1
- package/dist/js/{line-clamp-CHNeGLIi.cjs → line-clamp-CQ0HzJvS.cjs} +1 -1
- package/dist/js/{menu-B0COo9_q.js → menu-CptC_thY.js} +1 -1
- package/dist/js/{menu-3uzyqdE-.cjs → menu-ybrDXXWX.cjs} +1 -1
- package/dist/js/{popover-Vl3YZS_1.js → popover-BWnbK_dO.js} +1 -1
- package/dist/js/{popover-DEFBfQ-G.cjs → popover-CA0t-z5e.cjs} +1 -1
- package/dist/js/{section-message-BWhUBSet.js → section-message-3puvP_6g.js} +1 -1
- package/dist/js/{section-message-YIsyXZEy.cjs → section-message-D_QLKO__.cjs} +1 -1
- package/dist/js/{select-D8uav0QV.cjs → select-CcR9HOPC.cjs} +1 -1
- package/dist/js/{select-_dfxrGPp.js → select-D7kQaydd.js} +1 -1
- package/dist/js/{select-control-DmXnYhjM.js → select-control-D2Tpa8uG.js} +2 -2
- package/dist/js/{select-control-Dmqk_gJz.cjs → select-control-Dup-VNuH.cjs} +1 -1
- package/dist/js/{side-bar-D0fDnmTe.cjs → side-bar-GoZg8YT7.cjs} +1 -1
- package/dist/js/{side-bar-DWCkYG21.js → side-bar-H2dIgupe.js} +1 -1
- package/dist/js/{split-button-D1NjiGHT.cjs → split-button-DRsdvSIQ.cjs} +1 -1
- package/dist/js/{split-button-DeGp8RJw.js → split-button-Ni4Bjsnt.js} +1 -1
- package/dist/js/{table-RxRbS1GH.js → table-BI6oa_4B.js} +1 -1
- package/dist/js/{table-Jrjv2Xmz.cjs → table-CJc3YXXL.cjs} +1 -1
- package/dist/js/{tooltip-CFeEMRgw.cjs → tooltip-9vKZqx5w.cjs} +1 -1
- package/dist/js/{tooltip-CPCyw6HR.js → tooltip-C2y49rDB.js} +1 -1
- package/dist/js/{top-bar-D9Io8XJv.cjs → top-bar-DTGJMtjk.cjs} +1 -1
- package/dist/js/{top-bar-C1tgeYq_.js → top-bar-u7GAwV-2.js} +2 -2
- package/dist/js/utils/anchor-positioning.cjs +1 -1
- package/dist/js/utils/anchor-positioning.js +1 -1
- package/dist/js/utils/line-clamp.cjs +1 -1
- package/dist/js/utils/line-clamp.js +1 -1
- package/dist/js/utils/popover.cjs +1 -1
- package/dist/js/utils/popover.js +2 -2
- package/dist/types/utils/anchor-positioning/map-placement-to-css.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g, useLayoutEffect as b } from "react";
|
|
3
3
|
function S() {
|
|
4
4
|
return CSS.supports("anchor-name", "--myanchor");
|
|
5
5
|
}
|
|
6
|
-
async function
|
|
6
|
+
async function C({
|
|
7
7
|
elements: t,
|
|
8
8
|
// By default, we only want to polyfill inline styles on elements explicitly specified in the `elements`
|
|
9
9
|
// option. This is the opposite of the polyfill's default behaviour.
|
|
@@ -31,7 +31,7 @@ async function d({
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function d({
|
|
35
35
|
alignSelf: t,
|
|
36
36
|
top: n,
|
|
37
37
|
right: o,
|
|
@@ -67,7 +67,8 @@ function y({ gap: t = "0", placement: n }) {
|
|
|
67
67
|
switch (n) {
|
|
68
68
|
case "bottom":
|
|
69
69
|
return `
|
|
70
|
-
|
|
70
|
+
justify-self: anchor-center;
|
|
71
|
+
top: anchor(bottom);
|
|
71
72
|
margin-block: ${t};
|
|
72
73
|
`;
|
|
73
74
|
case "bottom-end":
|
|
@@ -84,7 +85,8 @@ function y({ gap: t = "0", placement: n }) {
|
|
|
84
85
|
`;
|
|
85
86
|
case "left":
|
|
86
87
|
return `
|
|
87
|
-
|
|
88
|
+
align-self: anchor-center;
|
|
89
|
+
right: anchor(left);
|
|
88
90
|
margin-inline: ${t};
|
|
89
91
|
`;
|
|
90
92
|
case "left-end":
|
|
@@ -101,7 +103,8 @@ function y({ gap: t = "0", placement: n }) {
|
|
|
101
103
|
`;
|
|
102
104
|
case "right":
|
|
103
105
|
return `
|
|
104
|
-
|
|
106
|
+
align-self: anchor-center;
|
|
107
|
+
left: anchor(right);
|
|
105
108
|
margin-inline: ${t};
|
|
106
109
|
`;
|
|
107
110
|
case "right-end":
|
|
@@ -118,7 +121,8 @@ function y({ gap: t = "0", placement: n }) {
|
|
|
118
121
|
`;
|
|
119
122
|
case "top":
|
|
120
123
|
return `
|
|
121
|
-
|
|
124
|
+
bottom: anchor(top);
|
|
125
|
+
justify-self: anchor-center;
|
|
122
126
|
margin-block: ${t};
|
|
123
127
|
`;
|
|
124
128
|
case "top-end":
|
|
@@ -144,32 +148,32 @@ function P({
|
|
|
144
148
|
gap: r,
|
|
145
149
|
justifySelf: e,
|
|
146
150
|
left: i,
|
|
147
|
-
maxWidth:
|
|
151
|
+
maxWidth: a,
|
|
148
152
|
minWidth: s,
|
|
149
153
|
placement: l,
|
|
150
154
|
positionedElementId: f,
|
|
151
155
|
positionTryFallbacks: m = "none",
|
|
152
156
|
right: u,
|
|
153
|
-
top:
|
|
157
|
+
top: $
|
|
154
158
|
}) {
|
|
155
|
-
const
|
|
159
|
+
const c = `--${CSS.escape(n)}`, h = l ? y({ gap: r, placement: l }) : d({
|
|
156
160
|
alignSelf: t,
|
|
157
161
|
bottom: o,
|
|
158
162
|
justifySelf: e,
|
|
159
163
|
left: i,
|
|
160
164
|
right: u,
|
|
161
|
-
top:
|
|
165
|
+
top: $
|
|
162
166
|
});
|
|
163
167
|
return `
|
|
164
168
|
#${CSS.escape(n)} {
|
|
165
|
-
anchor-name: ${
|
|
169
|
+
anchor-name: ${c};
|
|
166
170
|
}
|
|
167
171
|
|
|
168
172
|
#${CSS.escape(f)} {
|
|
169
173
|
position: absolute;
|
|
170
|
-
position-anchor: ${
|
|
174
|
+
position-anchor: ${c};
|
|
171
175
|
position-try-fallbacks: ${m};
|
|
172
|
-
${
|
|
176
|
+
${a ? `max-width: ${a};` : ""}
|
|
173
177
|
${s ? `min-width: ${s};` : ""}
|
|
174
178
|
${h}
|
|
175
179
|
}
|
|
@@ -182,35 +186,35 @@ function R({
|
|
|
182
186
|
gap: r = "0",
|
|
183
187
|
justifySelf: e,
|
|
184
188
|
left: i,
|
|
185
|
-
maxWidth:
|
|
189
|
+
maxWidth: a,
|
|
186
190
|
minWidth: s,
|
|
187
191
|
placement: l,
|
|
188
192
|
positionedElementId: f,
|
|
189
193
|
positionTryFallbacks: m = "none",
|
|
190
194
|
right: u,
|
|
191
|
-
top:
|
|
195
|
+
top: $
|
|
192
196
|
}) {
|
|
193
|
-
const
|
|
197
|
+
const c = g(null), h = P({
|
|
194
198
|
alignSelf: t,
|
|
195
199
|
anchorElementId: n,
|
|
196
200
|
bottom: o,
|
|
197
201
|
gap: r,
|
|
198
202
|
justifySelf: e,
|
|
199
203
|
left: i,
|
|
200
|
-
maxWidth:
|
|
204
|
+
maxWidth: a,
|
|
201
205
|
minWidth: s,
|
|
202
206
|
placement: l,
|
|
203
207
|
positionedElementId: f,
|
|
204
208
|
positionTryFallbacks: m,
|
|
205
209
|
right: u,
|
|
206
|
-
top:
|
|
210
|
+
top: $
|
|
207
211
|
});
|
|
208
|
-
return
|
|
212
|
+
return b(
|
|
209
213
|
function() {
|
|
210
|
-
|
|
214
|
+
c.current && C({ elements: [c.current] });
|
|
211
215
|
},
|
|
212
216
|
[h]
|
|
213
|
-
), /* @__PURE__ */
|
|
217
|
+
), /* @__PURE__ */ p("style", { ref: c, children: h });
|
|
214
218
|
}
|
|
215
219
|
export {
|
|
216
220
|
R as A,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
`)}const y=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"];function
|
|
3
|
-
|
|
1
|
+
"use strict";const p=require("react/jsx-runtime"),$=require("react");function C(){return CSS.supports("anchor-name","--myanchor")}async function d({elements:t,excludeInlineStyles:n=!0,useAnimationFrame:o=!1}={}){if(!C()){const{polyfill:r}=await Promise.resolve().then(()=>require("./polyfills/css-anchor-positioning/preload.cjs"));if(t){const e=t.filter(i=>i.isConnected);if(e.length===0)return;await r({elements:e,excludeInlineStyles:n,useAnimationFrame:o});return}await r({excludeInlineStyles:n,useAnimationFrame:o})}}function P({alignSelf:t,top:n,right:o,bottom:r,left:e,justifySelf:i}){return[t&&`align-self: ${t};`,r&&`bottom: ${r};`,i&&`justify-self: ${i};`,e&&`left: ${e};`,o&&`right: ${o};`,n&&`top: ${n};`].filter(Boolean).join(`
|
|
2
|
+
`)}const y=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"];function b({gap:t="0",placement:n}){switch(n){case"bottom":return`
|
|
3
|
+
justify-self: anchor-center;
|
|
4
|
+
top: anchor(bottom);
|
|
4
5
|
margin-block: ${t};
|
|
5
6
|
`;case"bottom-end":return`
|
|
6
7
|
top: anchor(bottom);
|
|
@@ -11,7 +12,8 @@
|
|
|
11
12
|
left: anchor(left);
|
|
12
13
|
margin-block: ${t};
|
|
13
14
|
`;case"left":return`
|
|
14
|
-
|
|
15
|
+
align-self: anchor-center;
|
|
16
|
+
right: anchor(left);
|
|
15
17
|
margin-inline: ${t};
|
|
16
18
|
`;case"left-end":return`
|
|
17
19
|
bottom: anchor(bottom);
|
|
@@ -22,7 +24,8 @@
|
|
|
22
24
|
right: anchor(left);
|
|
23
25
|
margin-inline: ${t};
|
|
24
26
|
`;case"right":return`
|
|
25
|
-
|
|
27
|
+
align-self: anchor-center;
|
|
28
|
+
left: anchor(right);
|
|
26
29
|
margin-inline: ${t};
|
|
27
30
|
`;case"right-end":return`
|
|
28
31
|
bottom: anchor(bottom);
|
|
@@ -33,7 +36,8 @@
|
|
|
33
36
|
left: anchor(right);
|
|
34
37
|
margin-inline: ${t};
|
|
35
38
|
`;case"top":return`
|
|
36
|
-
|
|
39
|
+
bottom: anchor(top);
|
|
40
|
+
justify-self: anchor-center;
|
|
37
41
|
margin-block: ${t};
|
|
38
42
|
`;case"top-end":return`
|
|
39
43
|
bottom: anchor(top);
|
|
@@ -43,17 +47,17 @@
|
|
|
43
47
|
bottom: anchor(top);
|
|
44
48
|
left: anchor(left);
|
|
45
49
|
margin-block: ${t};
|
|
46
|
-
`;default:return""}}function
|
|
50
|
+
`;default:return""}}function S({alignSelf:t,anchorElementId:n,bottom:o,gap:r,justifySelf:e,left:i,maxWidth:a,minWidth:s,placement:l,positionedElementId:f,positionTryFallbacks:u="none",right:m,top:g}){const c=`--${CSS.escape(n)}`,h=l?b({gap:r,placement:l}):P({alignSelf:t,bottom:o,justifySelf:e,left:i,right:m,top:g});return`
|
|
47
51
|
#${CSS.escape(n)} {
|
|
48
52
|
anchor-name: ${c};
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
#${CSS.escape(
|
|
55
|
+
#${CSS.escape(f)} {
|
|
52
56
|
position: absolute;
|
|
53
57
|
position-anchor: ${c};
|
|
54
|
-
position-try-fallbacks: ${
|
|
58
|
+
position-try-fallbacks: ${u};
|
|
55
59
|
${a?`max-width: ${a};`:""}
|
|
56
60
|
${s?`min-width: ${s};`:""}
|
|
57
61
|
${h}
|
|
58
62
|
}
|
|
59
|
-
`}function k({alignSelf:t,anchorElementId:n,bottom:o,gap:r="0",justifySelf:e,left:i,maxWidth:a,minWidth:s,placement:l,positionedElementId:
|
|
63
|
+
`}function k({alignSelf:t,anchorElementId:n,bottom:o,gap:r="0",justifySelf:e,left:i,maxWidth:a,minWidth:s,placement:l,positionedElementId:f,positionTryFallbacks:u="none",right:m,top:g}){const c=$.useRef(null),h=S({alignSelf:t,anchorElementId:n,bottom:o,gap:r,justifySelf:e,left:i,maxWidth:a,minWidth:s,placement:l,positionedElementId:f,positionTryFallbacks:u,right:m,top:g});return $.useLayoutEffect(function(){c.current&&d({elements:[c.current]})},[h]),p.jsx("style",{ref:c,children:h})}exports.AnchorPositioning=k;exports.buildAnchorPositioningCSS=S;exports.mapPlacementToCSS=b;exports.placements=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("react"),p=require("./menu-3uzyqdE-.cjs"),d=require("./index-Dmlb2--K.cjs"),V=require("./icons/app-switcher.cjs");require("./avatar-B0abtPQ0.cjs");const j=require("./top-bar-D9Io8XJv.cjs");require("./icons/chevron-down.cjs");require("./tooltip-CFeEMRgw.cjs");const B="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M17.01%2020.678V18.39l-7.844%206.822%207.843%206.746V29.77c6.655-.082%2012.74-3.402%2012.74-6.755v-6.67c-3.157%204.295-11.41%204.352-12.74%204.333Z'/%3e%3cpath%20fill='%23607890'%20d='M29.437%2013.618c-.581-5.312-9.128-6.367-12.428-6.576v8.667c4.476.192%207.105%201.594%208.066%202.031.772-.366%203.477-1.787%204.362-4.122Z'/%3e%3c/svg%3e",D="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M17.01%2020.678V18.39l-7.844%206.822%207.843%206.746V29.77c6.655-.082%2012.74-3.402%2012.74-6.755v-6.67c-3.157%204.295-11.41%204.352-12.74%204.333Z'/%3e%3cpath%20fill='%234E56EA'%20d='M29.437%2013.618c-.581-5.312-9.128-6.367-12.428-6.576v8.667c4.476.192%207.105%201.594%208.066%202.031.772-.366%203.477-1.787%204.362-4.122Z'/%3e%3c/svg%3e",P="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e",H="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M20%207.769c7.183%200%2013%205.694%2013%2012.692%200%205.122-3.115%209.703-7.946%2011.706-.16.032-.255.064-.382.064a.82.82%200%200%201-.794-.541c-.19-.445.032-.923.477-1.113%204.195-1.718%206.897-5.694%206.897-10.116%200-6.075-5.054-11.006-11.284-11.006S8.685%2014.418%208.685%2020.46c0%203.881%202.13%207.507%205.562%209.479l.223.096c.381.19.826.286%201.303.286%201.623%200%202.933-1.227%203.317-2.952a5.51%205.51%200%200%201-1.251-.324%206.643%206.643%200%200%201-4.163-4.325c-.255-.89.413-1.813%201.398-1.813h10.108c.985%200%201.652.923%201.398%201.813-.751%202.495-2.979%204.393-5.717%204.674-.442%202.671-2.5%204.613-5.058%204.613a4.77%204.77%200%200%201-2.034-.445l-.319-.128C9.48%2029.177%207%2024.946%207%2020.461%207%2013.463%2012.817%207.77%2020%207.77Zm-2.701%206.774c.35%200%20.636.286.636.635v4.2h-2.512v-4.2c0-.35.286-.635.636-.636h1.24Zm6.96%200c.35%200%20.636.285.636.635v4.2h-2.51v-4.2c0-.35.286-.636.635-.636h1.24Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",G="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M20%207.769c7.183%200%2013%205.694%2013%2012.692%200%205.122-3.115%209.702-7.946%2011.706-.159.032-.254.064-.381.064a.821.821%200%200%201-.795-.541c-.19-.445.032-.923.477-1.113%204.195-1.718%206.897-5.694%206.897-10.116%200-5.885-4.743-10.697-10.703-10.992l-.581-.013c-6.23%200-11.283%204.962-11.283%2011.005%200%203.881%202.13%207.508%205.562%209.48l.223.096c.381.19.826.286%201.303.286%201.623%200%202.933-1.227%203.317-2.952a5.515%205.515%200%200%201-1.251-.324%206.644%206.644%200%200%201-4.164-4.326c-.254-.89.414-1.813%201.4-1.813h10.107c.985%200%201.652.922%201.398%201.813-.75%202.495-2.978%204.392-5.716%204.674-.442%202.672-2.5%204.613-5.06%204.613-.73%200-1.43-.159-2.034-.445l-.318-.127C9.48%2029.177%207%2024.946%207%2020.461%207%2013.463%2012.816%207.77%2020%207.77Zm-2.701%206.774c.35%200%20.635.286.636.635v4.2h-2.512v-4.2c0-.35.286-.635.636-.636h1.24Zm6.96%200c.35%200%20.636.286.636.635v4.2h-2.51v-4.2c0-.35.286-.636.635-.636h1.24Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",C="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M31.917%208.042%207%2020.181l8.608%202.32%2010.827-8.6-7.233%2010.466%209.373%208.591%203.341-24.916Z'/%3e%3c/svg%3e",L="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M31.917%208.042%207%2020.181l8.608%202.32%2010.827-8.6-7.233%2010.466%209.373%208.591%203.341-24.916Z'/%3e%3c/svg%3e",N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",W="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",O="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",U="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",q="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M16.037%2011.648c-1.782-1.53-4.199-2.515-6.87-2.628v17.178c2.956.114%205.632%201.198%207.6%202.889.968.832%201.766%201.81%202.343%202.893V17.993c0-2.47-1.177-4.717-3.073-6.345ZM30.833%209.02c-2.671.113-5.089%201.098-6.87%202.628-1.896%201.628-3.073%203.874-3.073%206.344V31.98a10.076%2010.076%200%200%201%202.343-2.893c1.968-1.691%204.644-2.776%207.6-2.89V9.02Z'/%3e%3c/svg%3e",T="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M16.037%2011.648c-1.782-1.53-4.199-2.515-6.87-2.628v17.178c2.956.114%205.632%201.198%207.6%202.889.968.832%201.766%201.81%202.343%202.893V17.993c0-2.47-1.177-4.717-3.073-6.345ZM30.833%209.02c-2.671.113-5.089%201.098-6.87%202.628-1.896%201.628-3.073%203.874-3.073%206.344V31.98a10.076%2010.076%200%200%201%202.343-2.893c1.968-1.691%204.644-2.776%207.6-2.89V9.02Z'/%3e%3c/svg%3e",Y="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-sales-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M10.41%206v3.779h15.048v19.537h4.132V6H10.41Z'/%3e%3cpath%20fill='%23fff'%20d='M20.967%2034V13.837L10.41%209.78v20.166L20.967%2034Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-sales-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",k="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-sales__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M10.41%206v3.779h15.048v19.537h4.132V6H10.41Z'/%3e%3cpath%20fill='%23fff'%20d='M20.967%2034V13.837L10.41%209.78v20.166L20.967%2034Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-sales__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",K="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='m17.713%2016.581%203.058%203.057c2.352%202.352%204.84.257%205.793-1.265.562-.896%201.067-1.752%201.438-2.585.868-1.95%201.001-3.5.356-4.146-.646-.645-2.195-.512-4.146.356-2.06.917-4.346%202.533-6.498%204.583Zm8.355-6.841c-4.35-2.577-9.987-2.148-13.909%201.287l4.421%204.421c3.38-3.231%206.857-5.262%209.488-5.707Zm-15.041%202.419c-3.435%203.922-3.864%209.559-1.286%2013.909.445-2.632%202.475-6.108%205.707-9.488l-4.421-4.421Zm8.988%2015.231.002-.002c-2.217%201.58-4.337%202.576-6.084%202.871%204.35%202.578%209.986%202.149%2013.909-1.286l-1.736-1.736c-2.567-2.567-4.366-1-6.091.153Zm-3.72.374c2.521-1.384%206.276-4.061%202.851-7.486l-2.565-2.565c-2.05%202.153-3.665%204.438-4.582%206.5-.868%201.95-1.001%203.5-.356%204.145.646.646%202.195.512%204.146-.355.168-.075.336-.155.506-.239ZM30.26%2013.931c-.304%201.798-1.35%203.99-3.01%206.275-.137.176-.276.36-.412.551-.987%201.392-1.778%203.17.312%205.261l1.824%201.824c3.433-3.923%203.863-9.56%201.286-13.91Z'/%3e%3c/svg%3e",z="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='m17.713%2016.581%203.058%203.057c2.352%202.352%204.84.257%205.793-1.265.562-.896%201.067-1.752%201.438-2.585.868-1.95%201.001-3.5.356-4.146-.646-.645-2.195-.512-4.146.356-2.06.917-4.346%202.533-6.498%204.583Zm8.355-6.841c-4.35-2.577-9.987-2.148-13.909%201.287l4.421%204.421c3.38-3.231%206.857-5.262%209.488-5.707Zm-15.041%202.419c-3.435%203.922-3.864%209.559-1.286%2013.909.445-2.632%202.475-6.108%205.707-9.488l-4.421-4.421Zm8.988%2015.231.002-.002c-2.217%201.58-4.337%202.576-6.084%202.871%204.35%202.578%209.986%202.149%2013.909-1.286l-1.736-1.736c-2.567-2.567-4.366-1-6.091.153Zm-3.72.374c2.521-1.384%206.276-4.061%202.851-7.486l-2.565-2.565c-2.05%202.153-3.665%204.438-4.582%206.5-.868%201.95-1.001%203.5-.356%204.145.646.646%202.195.512%204.146-.355.168-.075.336-.155.506-.239ZM30.26%2013.931c-.304%201.798-1.35%203.99-3.01%206.275-.137.176-.276.36-.412.551-.987%201.392-1.778%203.17.312%205.261l1.824%201.824c3.433-3.923%203.863-9.56%201.286-13.91Z'/%3e%3c/svg%3e",$="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234C56F3'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%234C56F3'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e",X="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%23607890'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e";function m({hasAccess:t,productId:a}){switch(a){case"agentBox":return t?e.jsx("img",{src:k}):e.jsx("img",{src:Y});case"autoResponder":return t?e.jsx("img",{src:D}):e.jsx("img",{src:B});case"consoleCloud":return t?e.jsx("img",{src:U}):e.jsx("img",{src:O});case"ireBdm":return t?e.jsx("img",{src:$}):e.jsx("img",{src:X});case"ireWeb":return t?e.jsx("img",{src:W}):e.jsx("img",{src:N});case"mmiWeb":return t?e.jsx("img",{src:G}):e.jsx("img",{src:R});case"reapitForms":return t?e.jsx("img",{src:L}):e.jsx("img",{src:C});case"reapitWebsites":return t?e.jsx("img",{src:z}):e.jsx("img",{src:K});case"reapitProposals":return t?e.jsx("img",{src:T}):e.jsx("img",{src:q});case"keyWhere":return t?e.jsx("img",{src:H}):e.jsx("img",{src:P})}}const h=r.createContext(!1);function u(){return r.useContext(h)}function v({children:t}){return e.jsx(p.Menu.Group,{label:"EXPLORE",children:e.jsx(h.Provider,{value:!1,children:t})})}const f=d.styled_default("a")({name:"ElAppSwitcherMenuItemAnchor",class:"el-app-switcher-menu-item-anchor",propsAsIs:!1}),w=d.styled_default("div")({name:"ElAppSwitcherMenuItemAvatar",class:"el-app-switcher-menu-item-avatar",propsAsIs:!1}),x=d.styled_default("span")({name:"ElAppSwitcherMenuItemLabel",class:"el-app-switcher-menu-item-label",propsAsIs:!1}),M=d.styled_default("span")({name:"ElAppSwitcherMenuItemSupplementaryInfo",class:"el-app-switcher-menu-item-supplementary-info",propsAsIs:!1});function A({avatar:t,appName:a,href:l,supplementaryInfo:i,...c}){const n=r.useId(),o=r.useId();return e.jsxs(f,{...c,"aria-labelledby":n,"aria-describedby":o,href:l,target:"_blank",rel:"noreferrer",children:[e.jsx(w,{"aria-hidden":!0,children:t}),e.jsx(x,{id:n,children:a}),e.jsx(M,{id:o,children:i})]})}function Z({"aria-label":t,...a}){return e.jsx(j.TopBarNavIconItemButton,{...a,"aria-label":t??"App Switcher",icon:e.jsx(V.AppSwitcherIcon,{})})}const J={autoResponder:{appName:"Auto Responder",supplementaryInfo:"Auto-enquiry follow up"},agentBox:{appName:"Reapit Sales",supplementaryInfo:"Real estate CRM"},consoleCloud:{appName:"Reapit PM",supplementaryInfo:"Property management"},ireBdm:{appName:"Lettings BDM",supplementaryInfo:"Business development"},ireWeb:{appName:"Reapit Lettings",supplementaryInfo:"Leasing management"},keyWhere:{appName:"KeyWhere",supplementaryInfo:"Key management"},mmiWeb:{appName:"Move Me In",supplementaryInfo:"Utility connections service"},reapitForms:{appName:"Reapit Forms",supplementaryInfo:"Documents & digital signing"},reapitWebsites:{appName:"Reapit Websites",supplementaryInfo:"Website builder"},reapitProposals:{appName:"Reapit Proposals",supplementaryInfo:"Interactive digital proposals"}},F=["ireWeb","consoleCloud","agentBox","keyWhere","ireBdm","mmiWeb"];function I({appName:t,avatar:a,href:l,productId:i,supplementaryInfo:c,...n}){const o=u(),{appName:E,supplementaryInfo:_}=J[i];return e.jsx(s.MenuItem,{...n,appName:t??E,avatar:a??e.jsx(s.AppAvatar,{hasAccess:o,productId:i}),href:l,supplementaryInfo:c??_})}function b({children:t}){return e.jsx(p.Menu.Group,{label:"YOUR APPS",children:e.jsx(h.Provider,{value:!0,children:t})})}function g(t,a){for(const l of a)if(new RegExp(`^${l}$`,"i").test(t))return!0;return!1}function y(t){return F.filter(a=>g(a,t))}function S(t){return F.filter(a=>!g(a,t))}function s({children:t,id:a,...l}){const i=a??r.useId(),c=r.useId();return e.jsxs(e.Fragment,{children:[e.jsx(Z,{...l,...p.Menu.getTriggerProps({id:i,popoverTarget:c,popoverTargetAction:"toggle"})}),e.jsx(p.Menu,{"aria-labelledby":i,id:c,placement:"bottom-start",children:t})]})}s.AppAvatar=m;s.Divider=p.Menu.Divider;s.ExploreMenuGroup=v;s.MenuItem=A;s.ProductMenuItem=I;s.YourAppsMenuGroup=b;s.getDisplayableProductsForExploreGroup=S;s.getDisplayableProductsForYourAppsGroup=y;exports.AppAvatar=m;exports.AppSwitcher=s;exports.AppSwitcherExploreMenuGroup=v;exports.AppSwitcherMenuGroupHasAccessContext=h;exports.AppSwitcherMenuItem=A;exports.AppSwitcherNavIconButton=Z;exports.AppSwitcherProductMenuItem=I;exports.AppSwitcherYourAppsMenuGroup=b;exports.ElAppSwitcherMenuItemAnchor=f;exports.ElAppSwitcherMenuItemAvatar=w;exports.ElAppSwitcherMenuItemLabel=x;exports.ElAppSwitcherMenuItemSupplementaryInfo=M;exports.getDisplayableProductsForExploreGroup=S;exports.getDisplayableProductsForYourAppsGroup=y;exports.isProductAccessible=g;exports.useAppSwitcherMenuGroupHasAccessContext=u;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("react"),p=require("./menu-ybrDXXWX.cjs"),d=require("./index-Dmlb2--K.cjs"),V=require("./icons/app-switcher.cjs");require("./avatar-B0abtPQ0.cjs");const j=require("./top-bar-DTGJMtjk.cjs");require("./icons/chevron-down.cjs");require("./tooltip-9vKZqx5w.cjs");const B="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M17.01%2020.678V18.39l-7.844%206.822%207.843%206.746V29.77c6.655-.082%2012.74-3.402%2012.74-6.755v-6.67c-3.157%204.295-11.41%204.352-12.74%204.333Z'/%3e%3cpath%20fill='%23607890'%20d='M29.437%2013.618c-.581-5.312-9.128-6.367-12.428-6.576v8.667c4.476.192%207.105%201.594%208.066%202.031.772-.366%203.477-1.787%204.362-4.122Z'/%3e%3c/svg%3e",D="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M17.01%2020.678V18.39l-7.844%206.822%207.843%206.746V29.77c6.655-.082%2012.74-3.402%2012.74-6.755v-6.67c-3.157%204.295-11.41%204.352-12.74%204.333Z'/%3e%3cpath%20fill='%234E56EA'%20d='M29.437%2013.618c-.581-5.312-9.128-6.367-12.428-6.576v8.667c4.476.192%207.105%201.594%208.066%202.031.772-.366%203.477-1.787%204.362-4.122Z'/%3e%3c/svg%3e",P="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e",H="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M20%207.769c7.183%200%2013%205.694%2013%2012.692%200%205.122-3.115%209.703-7.946%2011.706-.16.032-.255.064-.382.064a.82.82%200%200%201-.794-.541c-.19-.445.032-.923.477-1.113%204.195-1.718%206.897-5.694%206.897-10.116%200-6.075-5.054-11.006-11.284-11.006S8.685%2014.418%208.685%2020.46c0%203.881%202.13%207.507%205.562%209.479l.223.096c.381.19.826.286%201.303.286%201.623%200%202.933-1.227%203.317-2.952a5.51%205.51%200%200%201-1.251-.324%206.643%206.643%200%200%201-4.163-4.325c-.255-.89.413-1.813%201.398-1.813h10.108c.985%200%201.652.923%201.398%201.813-.751%202.495-2.979%204.393-5.717%204.674-.442%202.671-2.5%204.613-5.058%204.613a4.77%204.77%200%200%201-2.034-.445l-.319-.128C9.48%2029.177%207%2024.946%207%2020.461%207%2013.463%2012.817%207.77%2020%207.77Zm-2.701%206.774c.35%200%20.636.286.636.635v4.2h-2.512v-4.2c0-.35.286-.635.636-.636h1.24Zm6.96%200c.35%200%20.636.285.636.635v4.2h-2.51v-4.2c0-.35.286-.636.635-.636h1.24Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",G="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M20%207.769c7.183%200%2013%205.694%2013%2012.692%200%205.122-3.115%209.702-7.946%2011.706-.159.032-.254.064-.381.064a.821.821%200%200%201-.795-.541c-.19-.445.032-.923.477-1.113%204.195-1.718%206.897-5.694%206.897-10.116%200-5.885-4.743-10.697-10.703-10.992l-.581-.013c-6.23%200-11.283%204.962-11.283%2011.005%200%203.881%202.13%207.508%205.562%209.48l.223.096c.381.19.826.286%201.303.286%201.623%200%202.933-1.227%203.317-2.952a5.515%205.515%200%200%201-1.251-.324%206.644%206.644%200%200%201-4.164-4.326c-.254-.89.414-1.813%201.4-1.813h10.107c.985%200%201.652.922%201.398%201.813-.75%202.495-2.978%204.392-5.716%204.674-.442%202.672-2.5%204.613-5.06%204.613-.73%200-1.43-.159-2.034-.445l-.318-.127C9.48%2029.177%207%2024.946%207%2020.461%207%2013.463%2012.816%207.77%2020%207.77Zm-2.701%206.774c.35%200%20.635.286.636.635v4.2h-2.512v-4.2c0-.35.286-.635.636-.636h1.24Zm6.96%200c.35%200%20.636.286.636.635v4.2h-2.51v-4.2c0-.35.286-.636.635-.636h1.24Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",C="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M31.917%208.042%207%2020.181l8.608%202.32%2010.827-8.6-7.233%2010.466%209.373%208.591%203.341-24.916Z'/%3e%3c/svg%3e",L="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M31.917%208.042%207%2020.181l8.608%202.32%2010.827-8.6-7.233%2010.466%209.373%208.591%203.341-24.916Z'/%3e%3c/svg%3e",N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",W="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",O="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",U="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",q="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M16.037%2011.648c-1.782-1.53-4.199-2.515-6.87-2.628v17.178c2.956.114%205.632%201.198%207.6%202.889.968.832%201.766%201.81%202.343%202.893V17.993c0-2.47-1.177-4.717-3.073-6.345ZM30.833%209.02c-2.671.113-5.089%201.098-6.87%202.628-1.896%201.628-3.073%203.874-3.073%206.344V31.98a10.076%2010.076%200%200%201%202.343-2.893c1.968-1.691%204.644-2.776%207.6-2.89V9.02Z'/%3e%3c/svg%3e",T="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M16.037%2011.648c-1.782-1.53-4.199-2.515-6.87-2.628v17.178c2.956.114%205.632%201.198%207.6%202.889.968.832%201.766%201.81%202.343%202.893V17.993c0-2.47-1.177-4.717-3.073-6.345ZM30.833%209.02c-2.671.113-5.089%201.098-6.87%202.628-1.896%201.628-3.073%203.874-3.073%206.344V31.98a10.076%2010.076%200%200%201%202.343-2.893c1.968-1.691%204.644-2.776%207.6-2.89V9.02Z'/%3e%3c/svg%3e",Y="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-sales-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M10.41%206v3.779h15.048v19.537h4.132V6H10.41Z'/%3e%3cpath%20fill='%23fff'%20d='M20.967%2034V13.837L10.41%209.78v20.166L20.967%2034Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-sales-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",k="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-sales__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M10.41%206v3.779h15.048v19.537h4.132V6H10.41Z'/%3e%3cpath%20fill='%23fff'%20d='M20.967%2034V13.837L10.41%209.78v20.166L20.967%2034Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-sales__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",K="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='m17.713%2016.581%203.058%203.057c2.352%202.352%204.84.257%205.793-1.265.562-.896%201.067-1.752%201.438-2.585.868-1.95%201.001-3.5.356-4.146-.646-.645-2.195-.512-4.146.356-2.06.917-4.346%202.533-6.498%204.583Zm8.355-6.841c-4.35-2.577-9.987-2.148-13.909%201.287l4.421%204.421c3.38-3.231%206.857-5.262%209.488-5.707Zm-15.041%202.419c-3.435%203.922-3.864%209.559-1.286%2013.909.445-2.632%202.475-6.108%205.707-9.488l-4.421-4.421Zm8.988%2015.231.002-.002c-2.217%201.58-4.337%202.576-6.084%202.871%204.35%202.578%209.986%202.149%2013.909-1.286l-1.736-1.736c-2.567-2.567-4.366-1-6.091.153Zm-3.72.374c2.521-1.384%206.276-4.061%202.851-7.486l-2.565-2.565c-2.05%202.153-3.665%204.438-4.582%206.5-.868%201.95-1.001%203.5-.356%204.145.646.646%202.195.512%204.146-.355.168-.075.336-.155.506-.239ZM30.26%2013.931c-.304%201.798-1.35%203.99-3.01%206.275-.137.176-.276.36-.412.551-.987%201.392-1.778%203.17.312%205.261l1.824%201.824c3.433-3.923%203.863-9.56%201.286-13.91Z'/%3e%3c/svg%3e",z="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='m17.713%2016.581%203.058%203.057c2.352%202.352%204.84.257%205.793-1.265.562-.896%201.067-1.752%201.438-2.585.868-1.95%201.001-3.5.356-4.146-.646-.645-2.195-.512-4.146.356-2.06.917-4.346%202.533-6.498%204.583Zm8.355-6.841c-4.35-2.577-9.987-2.148-13.909%201.287l4.421%204.421c3.38-3.231%206.857-5.262%209.488-5.707Zm-15.041%202.419c-3.435%203.922-3.864%209.559-1.286%2013.909.445-2.632%202.475-6.108%205.707-9.488l-4.421-4.421Zm8.988%2015.231.002-.002c-2.217%201.58-4.337%202.576-6.084%202.871%204.35%202.578%209.986%202.149%2013.909-1.286l-1.736-1.736c-2.567-2.567-4.366-1-6.091.153Zm-3.72.374c2.521-1.384%206.276-4.061%202.851-7.486l-2.565-2.565c-2.05%202.153-3.665%204.438-4.582%206.5-.868%201.95-1.001%203.5-.356%204.145.646.646%202.195.512%204.146-.355.168-.075.336-.155.506-.239ZM30.26%2013.931c-.304%201.798-1.35%203.99-3.01%206.275-.137.176-.276.36-.412.551-.987%201.392-1.778%203.17.312%205.261l1.824%201.824c3.433-3.923%203.863-9.56%201.286-13.91Z'/%3e%3c/svg%3e",$="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234C56F3'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%234C56F3'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e",X="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%23607890'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e";function m({hasAccess:t,productId:a}){switch(a){case"agentBox":return t?e.jsx("img",{src:k}):e.jsx("img",{src:Y});case"autoResponder":return t?e.jsx("img",{src:D}):e.jsx("img",{src:B});case"consoleCloud":return t?e.jsx("img",{src:U}):e.jsx("img",{src:O});case"ireBdm":return t?e.jsx("img",{src:$}):e.jsx("img",{src:X});case"ireWeb":return t?e.jsx("img",{src:W}):e.jsx("img",{src:N});case"mmiWeb":return t?e.jsx("img",{src:G}):e.jsx("img",{src:R});case"reapitForms":return t?e.jsx("img",{src:L}):e.jsx("img",{src:C});case"reapitWebsites":return t?e.jsx("img",{src:z}):e.jsx("img",{src:K});case"reapitProposals":return t?e.jsx("img",{src:T}):e.jsx("img",{src:q});case"keyWhere":return t?e.jsx("img",{src:H}):e.jsx("img",{src:P})}}const h=r.createContext(!1);function u(){return r.useContext(h)}function v({children:t}){return e.jsx(p.Menu.Group,{label:"EXPLORE",children:e.jsx(h.Provider,{value:!1,children:t})})}const f=d.styled_default("a")({name:"ElAppSwitcherMenuItemAnchor",class:"el-app-switcher-menu-item-anchor",propsAsIs:!1}),w=d.styled_default("div")({name:"ElAppSwitcherMenuItemAvatar",class:"el-app-switcher-menu-item-avatar",propsAsIs:!1}),x=d.styled_default("span")({name:"ElAppSwitcherMenuItemLabel",class:"el-app-switcher-menu-item-label",propsAsIs:!1}),M=d.styled_default("span")({name:"ElAppSwitcherMenuItemSupplementaryInfo",class:"el-app-switcher-menu-item-supplementary-info",propsAsIs:!1});function A({avatar:t,appName:a,href:l,supplementaryInfo:i,...c}){const n=r.useId(),o=r.useId();return e.jsxs(f,{...c,"aria-labelledby":n,"aria-describedby":o,href:l,target:"_blank",rel:"noreferrer",children:[e.jsx(w,{"aria-hidden":!0,children:t}),e.jsx(x,{id:n,children:a}),e.jsx(M,{id:o,children:i})]})}function Z({"aria-label":t,...a}){return e.jsx(j.TopBarNavIconItemButton,{...a,"aria-label":t??"App Switcher",icon:e.jsx(V.AppSwitcherIcon,{})})}const J={autoResponder:{appName:"Auto Responder",supplementaryInfo:"Auto-enquiry follow up"},agentBox:{appName:"Reapit Sales",supplementaryInfo:"Real estate CRM"},consoleCloud:{appName:"Reapit PM",supplementaryInfo:"Property management"},ireBdm:{appName:"Lettings BDM",supplementaryInfo:"Business development"},ireWeb:{appName:"Reapit Lettings",supplementaryInfo:"Leasing management"},keyWhere:{appName:"KeyWhere",supplementaryInfo:"Key management"},mmiWeb:{appName:"Move Me In",supplementaryInfo:"Utility connections service"},reapitForms:{appName:"Reapit Forms",supplementaryInfo:"Documents & digital signing"},reapitWebsites:{appName:"Reapit Websites",supplementaryInfo:"Website builder"},reapitProposals:{appName:"Reapit Proposals",supplementaryInfo:"Interactive digital proposals"}},F=["ireWeb","consoleCloud","agentBox","keyWhere","ireBdm","mmiWeb"];function I({appName:t,avatar:a,href:l,productId:i,supplementaryInfo:c,...n}){const o=u(),{appName:E,supplementaryInfo:_}=J[i];return e.jsx(s.MenuItem,{...n,appName:t??E,avatar:a??e.jsx(s.AppAvatar,{hasAccess:o,productId:i}),href:l,supplementaryInfo:c??_})}function b({children:t}){return e.jsx(p.Menu.Group,{label:"YOUR APPS",children:e.jsx(h.Provider,{value:!0,children:t})})}function g(t,a){for(const l of a)if(new RegExp(`^${l}$`,"i").test(t))return!0;return!1}function y(t){return F.filter(a=>g(a,t))}function S(t){return F.filter(a=>!g(a,t))}function s({children:t,id:a,...l}){const i=a??r.useId(),c=r.useId();return e.jsxs(e.Fragment,{children:[e.jsx(Z,{...l,...p.Menu.getTriggerProps({id:i,popoverTarget:c,popoverTargetAction:"toggle"})}),e.jsx(p.Menu,{"aria-labelledby":i,id:c,placement:"bottom-start",children:t})]})}s.AppAvatar=m;s.Divider=p.Menu.Divider;s.ExploreMenuGroup=v;s.MenuItem=A;s.ProductMenuItem=I;s.YourAppsMenuGroup=b;s.getDisplayableProductsForExploreGroup=S;s.getDisplayableProductsForYourAppsGroup=y;exports.AppAvatar=m;exports.AppSwitcher=s;exports.AppSwitcherExploreMenuGroup=v;exports.AppSwitcherMenuGroupHasAccessContext=h;exports.AppSwitcherMenuItem=A;exports.AppSwitcherNavIconButton=Z;exports.AppSwitcherProductMenuItem=I;exports.AppSwitcherYourAppsMenuGroup=b;exports.ElAppSwitcherMenuItemAnchor=f;exports.ElAppSwitcherMenuItemAvatar=w;exports.ElAppSwitcherMenuItemLabel=x;exports.ElAppSwitcherMenuItemSupplementaryInfo=M;exports.getDisplayableProductsForExploreGroup=S;exports.getDisplayableProductsForYourAppsGroup=y;exports.isProductAccessible=g;exports.useAppSwitcherMenuGroupHasAccessContext=u;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as h, Fragment as u } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as x, useContext as M, useId as o } from "react";
|
|
3
|
-
import { k as r } from "./menu-
|
|
3
|
+
import { k as r } from "./menu-CptC_thY.js";
|
|
4
4
|
import { s as g } from "./index-YtxCR-9e.js";
|
|
5
5
|
import { AppSwitcherIcon as Z } from "./icons/app-switcher.js";
|
|
6
6
|
import "./avatar-VyxUOz5Y.js";
|
|
7
|
-
import { k as A } from "./top-bar-
|
|
7
|
+
import { k as A } from "./top-bar-u7GAwV-2.js";
|
|
8
8
|
import "./icons/chevron-down.js";
|
|
9
|
-
import "./tooltip-
|
|
9
|
+
import "./tooltip-C2y49rDB.js";
|
|
10
10
|
const F = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M17.01%2020.678V18.39l-7.844%206.822%207.843%206.746V29.77c6.655-.082%2012.74-3.402%2012.74-6.755v-6.67c-3.157%204.295-11.41%204.352-12.74%204.333Z'/%3e%3cpath%20fill='%23607890'%20d='M29.437%2013.618c-.581-5.312-9.128-6.367-12.428-6.576v8.667c4.476.192%207.105%201.594%208.066%202.031.772-.366%203.477-1.787%204.362-4.122Z'/%3e%3c/svg%3e", b = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M17.01%2020.678V18.39l-7.844%206.822%207.843%206.746V29.77c6.655-.082%2012.74-3.402%2012.74-6.755v-6.67c-3.157%204.295-11.41%204.352-12.74%204.333Z'/%3e%3cpath%20fill='%234E56EA'%20d='M29.437%2013.618c-.581-5.312-9.128-6.367-12.428-6.576v8.667c4.476.192%207.105%201.594%208.066%202.031.772-.366%203.477-1.787%204.362-4.122Z'/%3e%3c/svg%3e", y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e", I = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e", E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M20%207.769c7.183%200%2013%205.694%2013%2012.692%200%205.122-3.115%209.703-7.946%2011.706-.16.032-.255.064-.382.064a.82.82%200%200%201-.794-.541c-.19-.445.032-.923.477-1.113%204.195-1.718%206.897-5.694%206.897-10.116%200-6.075-5.054-11.006-11.284-11.006S8.685%2014.418%208.685%2020.46c0%203.881%202.13%207.507%205.562%209.479l.223.096c.381.19.826.286%201.303.286%201.623%200%202.933-1.227%203.317-2.952a5.51%205.51%200%200%201-1.251-.324%206.643%206.643%200%200%201-4.163-4.325c-.255-.89.413-1.813%201.398-1.813h10.108c.985%200%201.652.923%201.398%201.813-.751%202.495-2.979%204.393-5.717%204.674-.442%202.671-2.5%204.613-5.058%204.613a4.77%204.77%200%200%201-2.034-.445l-.319-.128C9.48%2029.177%207%2024.946%207%2020.461%207%2013.463%2012.817%207.77%2020%207.77Zm-2.701%206.774c.35%200%20.636.286.636.635v4.2h-2.512v-4.2c0-.35.286-.635.636-.636h1.24Zm6.96%200c.35%200%20.636.285.636.635v4.2h-2.51v-4.2c0-.35.286-.636.635-.636h1.24Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", V = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M20%207.769c7.183%200%2013%205.694%2013%2012.692%200%205.122-3.115%209.702-7.946%2011.706-.159.032-.254.064-.381.064a.821.821%200%200%201-.795-.541c-.19-.445.032-.923.477-1.113%204.195-1.718%206.897-5.694%206.897-10.116%200-5.885-4.743-10.697-10.703-10.992l-.581-.013c-6.23%200-11.283%204.962-11.283%2011.005%200%203.881%202.13%207.508%205.562%209.48l.223.096c.381.19.826.286%201.303.286%201.623%200%202.933-1.227%203.317-2.952a5.515%205.515%200%200%201-1.251-.324%206.644%206.644%200%200%201-4.164-4.326c-.254-.89.414-1.813%201.4-1.813h10.107c.985%200%201.652.922%201.398%201.813-.75%202.495-2.978%204.392-5.716%204.674-.442%202.672-2.5%204.613-5.06%204.613-.73%200-1.43-.159-2.034-.445l-.318-.127C9.48%2029.177%207%2024.946%207%2020.461%207%2013.463%2012.816%207.77%2020%207.77Zm-2.701%206.774c.35%200%20.635.286.636.635v4.2h-2.512v-4.2c0-.35.286-.635.636-.636h1.24Zm6.96%200c.35%200%20.636.286.636.635v4.2h-2.51v-4.2c0-.35.286-.636.635-.636h1.24Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", _ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M31.917%208.042%207%2020.181l8.608%202.32%2010.827-8.6-7.233%2010.466%209.373%208.591%203.341-24.916Z'/%3e%3c/svg%3e", S = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M31.917%208.042%207%2020.181l8.608%202.32%2010.827-8.6-7.233%2010.466%209.373%208.591%203.341-24.916Z'/%3e%3c/svg%3e", B = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", D = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", P = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", H = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", R = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M16.037%2011.648c-1.782-1.53-4.199-2.515-6.87-2.628v17.178c2.956.114%205.632%201.198%207.6%202.889.968.832%201.766%201.81%202.343%202.893V17.993c0-2.47-1.177-4.717-3.073-6.345ZM30.833%209.02c-2.671.113-5.089%201.098-6.87%202.628-1.896%201.628-3.073%203.874-3.073%206.344V31.98a10.076%2010.076%200%200%201%202.343-2.893c1.968-1.691%204.644-2.776%207.6-2.89V9.02Z'/%3e%3c/svg%3e", C = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='M16.037%2011.648c-1.782-1.53-4.199-2.515-6.87-2.628v17.178c2.956.114%205.632%201.198%207.6%202.889.968.832%201.766%201.81%202.343%202.893V17.993c0-2.47-1.177-4.717-3.073-6.345ZM30.833%209.02c-2.671.113-5.089%201.098-6.87%202.628-1.896%201.628-3.073%203.874-3.073%206.344V31.98a10.076%2010.076%200%200%201%202.343-2.893c1.968-1.691%204.644-2.776%207.6-2.89V9.02Z'/%3e%3c/svg%3e", G = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-sales-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M10.41%206v3.779h15.048v19.537h4.132V6H10.41Z'/%3e%3cpath%20fill='%23fff'%20d='M20.967%2034V13.837L10.41%209.78v20.166L20.967%2034Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-sales-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", L = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-sales__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M10.41%206v3.779h15.048v19.537h4.132V6H10.41Z'/%3e%3cpath%20fill='%23fff'%20d='M20.967%2034V13.837L10.41%209.78v20.166L20.967%2034Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-sales__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", N = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='m17.713%2016.581%203.058%203.057c2.352%202.352%204.84.257%205.793-1.265.562-.896%201.067-1.752%201.438-2.585.868-1.95%201.001-3.5.356-4.146-.646-.645-2.195-.512-4.146.356-2.06.917-4.346%202.533-6.498%204.583Zm8.355-6.841c-4.35-2.577-9.987-2.148-13.909%201.287l4.421%204.421c3.38-3.231%206.857-5.262%209.488-5.707Zm-15.041%202.419c-3.435%203.922-3.864%209.559-1.286%2013.909.445-2.632%202.475-6.108%205.707-9.488l-4.421-4.421Zm8.988%2015.231.002-.002c-2.217%201.58-4.337%202.576-6.084%202.871%204.35%202.578%209.986%202.149%2013.909-1.286l-1.736-1.736c-2.567-2.567-4.366-1-6.091.153Zm-3.72.374c2.521-1.384%206.276-4.061%202.851-7.486l-2.565-2.565c-2.05%202.153-3.665%204.438-4.582%206.5-.868%201.95-1.001%203.5-.356%204.145.646.646%202.195.512%204.146-.355.168-.075.336-.155.506-.239ZM30.26%2013.931c-.304%201.798-1.35%203.99-3.01%206.275-.137.176-.276.36-.412.551-.987%201.392-1.778%203.17.312%205.261l1.824%201.824c3.433-3.923%203.863-9.56%201.286-13.91Z'/%3e%3c/svg%3e", W = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='m17.713%2016.581%203.058%203.057c2.352%202.352%204.84.257%205.793-1.265.562-.896%201.067-1.752%201.438-2.585.868-1.95%201.001-3.5.356-4.146-.646-.645-2.195-.512-4.146.356-2.06.917-4.346%202.533-6.498%204.583Zm8.355-6.841c-4.35-2.577-9.987-2.148-13.909%201.287l4.421%204.421c3.38-3.231%206.857-5.262%209.488-5.707Zm-15.041%202.419c-3.435%203.922-3.864%209.559-1.286%2013.909.445-2.632%202.475-6.108%205.707-9.488l-4.421-4.421Zm8.988%2015.231.002-.002c-2.217%201.58-4.337%202.576-6.084%202.871%204.35%202.578%209.986%202.149%2013.909-1.286l-1.736-1.736c-2.567-2.567-4.366-1-6.091.153Zm-3.72.374c2.521-1.384%206.276-4.061%202.851-7.486l-2.565-2.565c-2.05%202.153-3.665%204.438-4.582%206.5-.868%201.95-1.001%203.5-.356%204.145.646.646%202.195.512%204.146-.355.168-.075.336-.155.506-.239ZM30.26%2013.931c-.304%201.798-1.35%203.99-3.01%206.275-.137.176-.276.36-.412.551-.987%201.392-1.778%203.17.312%205.261l1.824%201.824c3.433-3.923%203.863-9.56%201.286-13.91Z'/%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234C56F3'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%234C56F3'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e", U = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%23607890'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e";
|
|
11
11
|
function T({ hasAccess: a, productId: t }) {
|
|
12
12
|
switch (t) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const b=require("react/jsx-runtime"),o=require("./combobox-
|
|
1
|
+
"use strict";const b=require("react/jsx-runtime"),o=require("./combobox-BQ-ie7tr.cjs");require("./button-base-tw0zLUCC.cjs");require("react");require("./listbox-BbmKy0PR.cjs");require("./icons/close.cjs");require("./icons/chevron-down.cjs");require("./search-input-V5FfarRw.cjs");const h=require("./icons/search.cjs");function u({children:n,defaultOptions:i,onClick:a,placeholder:C="Search...",selectionStyle:m="default",...r}){const l=o.Combobox.useButton({onClick:a}),e=o.Combobox.useContext(),s=o.Combobox.useHasSelection(e.listboxId),p=s&&!e.multiple,d=!s,c=s&&!e.multiple;return m==="card"&&c?b.jsx(o.Combobox.Card,{...r,...l,action:b.jsx(o.Combobox.ClearButton,{"aria-controls":e.listboxId,disabled:e.disabled}),size:e.size,children:b.jsx(o.Combobox.SelectedContent,{defaultOptions:i,listboxId:e.listboxId,children:n})}):b.jsx(o.Combobox.Button,{...r,...l,action:p&&b.jsx(o.Combobox.ClearButton,{"aria-controls":e.listboxId,disabled:e.disabled}),leadingIcon:d&&b.jsx(h.SearchIcon,{"aria-hidden":!0}),placeholder:C,size:e.size,children:c&&b.jsx(o.Combobox.SelectedContent,{defaultOptions:i,listboxId:e.listboxId,children:n})})}u.displayName="Autocomplete.Button";function x({closeOnSelection:n="auto",...i}){return b.jsx(o.Combobox.Popup,{...i,closeOnSelection:n})}x.displayName="Autocomplete.Popup";function t(n){return b.jsx(o.Combobox,{...n})}t.getValue=o.Combobox.getListboxValue;t.getListboxId=o.Combobox.getListboxId;t.getPopupId=o.Combobox.getPopupId;t.Button=u;t.CardDefaultContent=o.Combobox.CardDefaultContent;t.Divider=o.Combobox.Divider;t.DefaultOptionsContext=o.Combobox.DefaultOptionsContext;t.Listbox=o.Combobox.Listbox;t.Option=o.Combobox.Option;t.OptionAdditionalInfo=o.Combobox.OptionAdditionalInfo;t.Optgroup=o.Combobox.Optgroup;t.Placeholder=o.Combobox.ListboxPlaceholder;t.Popup=x;t.SearchInput=o.Combobox.SearchInput;t.SelectionChips=o.Combobox.SelectionChips;t.SelectionChipsItem=o.Combobox.SelectionChipsItem;t.useState=o.Combobox.useState;exports.Autocomplete=t;exports.AutocompleteButton=u;exports.AutocompletePopup=x;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import { A as t } from "./autocomplete-
|
|
2
|
+
import { A as t } from "./autocomplete-C1P0l4Sz.js";
|
|
3
3
|
import { a as n } from "./form-control-Cv1xUB2V.js";
|
|
4
4
|
import { useId as d } from "react";
|
|
5
5
|
function o({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),o=require("./autocomplete-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("./autocomplete-DMYTBlo5.cjs"),i=require("./form-control-Be_ITYmU.cjs"),u=require("react");function t({children:C,defaultOptions:h,disabled:d,errorText:l,helpText:c,id:x,label:n,maxWidth:v,multiple:p,renderChips:b,required:s,size:m="medium",...f}){const j=u.useId(),r=x??j,a=u.useId(),A=u.useId(),I=u.useId();return e.jsx(i.FormControl,{as:"div",size:m,maxWidth:v,children:e.jsxs(o.Autocomplete.DefaultOptionsContext.Provider,{value:h??[],children:[n&&e.jsx(i.FormControl.Label,{htmlFor:r,id:a,isRequired:s,children:n}),e.jsx(o.Autocomplete,{...f,"aria-describedby":c&&!l?A:void 0,"aria-errormessage":l?I:void 0,"aria-invalid":l?!0:void 0,"aria-labelledby":n?a:void 0,disabled:d,id:r,multiple:p,required:s,size:m,children:C}),l?e.jsx(i.FormControl.ErrorText,{id:I,children:l}):c&&e.jsx(i.FormControl.HelpText,{id:A,children:c}),p&&e.jsx(o.Autocomplete.SelectionChips,{disabled:d,listboxId:o.Autocomplete.getListboxId(r),children:b})]})})}t.getValue=o.Autocomplete.getValue;t.Button=o.Autocomplete.Button;t.CardDefaultContent=o.Autocomplete.CardDefaultContent;t.Divider=o.Autocomplete.Divider;t.Listbox=o.Autocomplete.Listbox;t.Option=o.Autocomplete.Option;t.OptionAdditionalInfo=o.Autocomplete.OptionAdditionalInfo;t.Optgroup=o.Autocomplete.Optgroup;t.Placeholder=o.Autocomplete.Placeholder;t.Popup=o.Autocomplete.Popup;t.SearchInput=o.Autocomplete.SearchInput;t.SelectionChipsItem=o.Autocomplete.SelectionChipsItem;t.useState=o.Autocomplete.useState;exports.AutocompleteControl=t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as B, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { s as l } from "./index-YtxCR-9e.js";
|
|
3
|
-
import { T as c } from "./tooltip-
|
|
3
|
+
import { T as c } from "./tooltip-C2y49rDB.js";
|
|
4
4
|
import { useId as i } from "react";
|
|
5
5
|
const P = ["neutral", "success", "pending", "warning", "danger", "inactive", "accent_1", "accent_2"], f = /* @__PURE__ */ l("span")({
|
|
6
6
|
name: "ElBadge",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),d=require("./index-Dmlb2--K.cjs"),i=require("./tooltip-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),d=require("./index-Dmlb2--K.cjs"),i=require("./tooltip-9vKZqx5w.cjs"),u=require("react"),x=["neutral","success","pending","warning","danger","inactive","accent_1","accent_2"],g=d.styled_default("span")({name:"ElBadge",class:"el-badge",propsAsIs:!1}),p=d.styled_default("span")({name:"ElBadgeLabelContainer",class:"el-badge-label-container",propsAsIs:!1}),o=d.styled_default("span")({name:"ElBadgeIconContainer",class:"el-badge-icon-container",propsAsIs:!1});function j({"aria-label":n,children:t,colour:I,iconLeft:a,iconRight:s,id:b,variant:B="default",...E}){const r=!t&&(a||s)&&!(a&&s)&&n,l=b??u.useId(),c=u.useId(),C=r?i.Tooltip.getTriggerProps({id:l,tooltipId:c,tooltipPurpose:"label"}):{"aria-label":n,id:l};return e.jsxs(g,{...E,...C,"data-colour":I,"data-variant":B,children:[r&&e.jsx(i.Tooltip,{triggerId:l,id:c,placement:"top",children:n}),a&&e.jsx(o,{"aria-hidden":!0,children:a}),t&&e.jsx(p,{children:t}),s&&e.jsx(o,{"aria-hidden":!0,children:s})]})}exports.Badge=j;exports.ElBadge=g;exports.ElBadgeIconContainer=o;exports.ElBadgeLabelContainer=p;exports.badgeColours=x;
|
|
@@ -2,7 +2,7 @@ import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as N, useContext as S, useId as g, useRef as h, useEffect as v, useState as P } from "react";
|
|
3
3
|
import { c as R } from "./index-BsMVp4qF.js";
|
|
4
4
|
import { s } from "./index-YtxCR-9e.js";
|
|
5
|
-
import { k as M } from "./menu-
|
|
5
|
+
import { k as M } from "./menu-CptC_thY.js";
|
|
6
6
|
import { MoreIcon as j } from "./icons/more.js";
|
|
7
7
|
const I = N(null);
|
|
8
8
|
function x() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),n=require("react"),P=require("./index-8ctufnBx.cjs"),l=require("./index-Dmlb2--K.cjs"),v=require("./menu-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),n=require("react"),P=require("./index-8ctufnBx.cjs"),l=require("./index-Dmlb2--K.cjs"),v=require("./menu-ybrDXXWX.cjs"),w=require("./icons/more.cjs"),p=n.createContext(null);function L(){const t=n.useContext(p);if(!t)throw new Error("BottomBarContext not defined: useBottomBarContext can only be used in a child of BottomBarContext");return t}const j="el-bottom-bar-item",h=l.styled_default("span")({name:"ElBottomBarItemIcon",class:"el-bottom-bar-item-icon",propsAsIs:!1}),C=l.styled_default("span")({name:"ElBottomBarItemLabel",class:"el-bottom-bar-item-label",propsAsIs:!1}),y=l.styled_default("span")({name:"ElBottomBarItemBadge",class:"el-bottom-bar-item-badge",propsAsIs:!1});function b({as:t,children:o,className:s,icon:r,hasBadge:a,...c}){return e.jsxs(t,{...c,className:P.cx_default(j,s),children:[e.jsxs(h,{"aria-hidden":"true",children:[a&&e.jsx(y,{}),r]}),e.jsx(C,{children:o})]})}function A(t){return e.jsx(b,{...t,as:"a"})}function x(t){return e.jsx(b,{as:"button",...t})}const T=l.styled_default("menu")({name:"ElBottomBarMenuList",class:"el-bottom-bar-menu-list",propsAsIs:!1}),E=l.styled_default("li")({name:"ElBottomBarMenuListItem",class:"el-bottom-bar-menu-list-item",propsAsIs:!1});function _({children:t,...o}){return e.jsx(E,{children:e.jsx(A,{...o,children:t})})}_.displayName="BottomBar.Item";function N({children:t,hasBadge:o,icon:s=e.jsx(w.MoreIcon,{}),id:r,label:a="More",maxHeight:c,maxWidth:i,...f}){const d=n.useId(),u=r??n.useId(),I=n.useRef(null),{state:M}=L();return n.useEffect(function(){const g=I.current?.lastElementChild;M==="retracted"&&g instanceof HTMLElement&&g.hidePopover()},[M]),e.jsxs(E,{ref:I,children:[e.jsx(x,{...f,...v.Menu.getTriggerProps({id:u,popoverTarget:d,popoverTargetAction:"toggle"}),hasBadge:o,icon:s,children:a}),e.jsx(v.Menu,{"aria-labelledby":u,id:d,maxHeight:c,maxWidth:i,placement:"top-end",children:t})]})}N.displayName="BottomBar.MenuItem";function m({children:t,...o}){return e.jsx(T,{...o,children:t})}m.displayName="BottomBar.MenuList";m.Item=_;m.MenuItem=N;const R=l.styled_default("div")({name:"ElBottomBarContainer",class:"el-bottom-bar-container",propsAsIs:!1}),q=l.styled_default("nav")({name:"ElBottomBarNav",class:"el-bottom-bar-nav",propsAsIs:!1}),S=t=>{const[o,s]=n.useState("extended"),r=n.useRef(0);return n.useEffect(function(){if(!t)return;const c=document.getElementById(t);if(!c)return;const i=new AbortController;function f(d){const u=d.currentTarget;if(u instanceof HTMLElement){const I=u.scrollTop-r.current;s(I<0?"extended":"retracted"),r.current=u.scrollTop}}return c.addEventListener("scroll",f,{signal:i.signal}),()=>{i.abort()}},[t]),o};function B({"aria-label":t="Bottom navigation",children:o,scrollContainerId:s,...r}){const a=S(s);return e.jsx(R,{children:e.jsx(q,{...r,"aria-label":t,"data-state":a,children:e.jsx(p.Provider,{value:{state:a},children:o})})})}B.Item=m.Item;B.ItemButton=x;B.MenuItem=m.MenuItem;B.MenuList=m;B.Context=p;B.useContext=L;exports.BottomBar=B;exports.BottomBarItemAnchor=A;exports.BottomBarItemBase=b;exports.BottomBarItemButton=x;exports.BottomBarMenuList=m;exports.ElBottomBarContainer=R;exports.ElBottomBarItemBadge=y;exports.ElBottomBarItemIcon=h;exports.ElBottomBarItemLabel=C;exports.ElBottomBarMenuList=T;exports.ElBottomBarMenuListItem=E;exports.ElBottomBarNav=q;exports.elBottomBarItem=j;exports.useBottomBarObserver=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime");require("./button-base-tw0zLUCC.cjs");const d=require("react"),H=require("./button-Ccwmxlgv.cjs"),C=require("./listbox-BbmKy0PR.cjs"),Z=require("./icons/close.cjs"),Qo=require("./icons/chevron-down.cjs"),oo=require("./search-input-V5FfarRw.cjs"),Zo=require("./anchor-positioning-B1du9Wtv.cjs"),eo=require("./index-8ctufnBx.cjs"),i=require("./index-Dmlb2--K.cjs"),to=require("./utils/breakpoints.cjs"),Q=require("./drawer-D5SIlpKa.cjs"),no=require("./use-match-media-BfoAxEfC.cjs"),oe=require("./icons/check.cjs"),ao=require("./chip-group-66bqmP7S.cjs");function so({"aria-label":o="Clear selection","aria-controls":e,onClick:t,...a}){const s=r=>{t?.(r),C.clearListboxValue(e)};return n.jsx(H.Button,{...a,"aria-controls":e,"aria-label":o,hasNoPadding:!0,iconLeft:n.jsx(Z.CloseIcon,{}),onClick:s,size:"small",variant:"tertiary"})}function v(o){const e=typeof o=="string"?document.getElementById(o):o;if(!e){const t=typeof o=="string"?`with ID "${o}"`:"(passed by reference)";throw new Error(`closeComboboxPopup: Element ${t} not found in the DOM`)}if(!(e instanceof HTMLDialogElement)){const t=typeof o=="string"?`with ID "${o}"`:"(passed by reference)";throw new Error(`closeComboboxPopup: Element ${t} is not an HTMLDialogElement`)}e.close()}const j={AUTO:"auto",ALWAYS:"always",NEVER:"never"};function lo(o){if(o.defaultPrevented||!o.isTrusted)return;const e=ro(o.target);if(!e)return;const{closeOnSelection:t}=o.currentTarget.dataset;if(t!==j.NEVER){if(t===j.ALWAYS){v(o.currentTarget);return}if(t===j.AUTO){const{listboxId:a}=e.dataset,s=a?document.getElementById(a):null;ee(s)&&v(o.currentTarget)}}}function io(o){!("closedBy"in HTMLDialogElement.prototype)&&o.target===o.currentTarget&&o.currentTarget.close()}function ro(o){return o instanceof HTMLElement?o.closest('[role="option"]'):null}function ee(o){return"ariaMultiSelectable"in Element.prototype?o?.ariaMultiSelectable==="false":o?.getAttribute("aria-multiselectable")==="false"}function bo(o){const{preserveSearchOnClose:e}=o.currentTarget.dataset;if(e==="true")return;const t=o.currentTarget.querySelector("input");t instanceof HTMLInputElement&&oo.clearSearchInput(t)}const _=d.createContext(null);function V(){const o=d.useContext(_);if(!o)throw new Error("useComboboxPopupDialogContext requires a ComboboxPopupDialog ancestor");return o}function w(o){const e=typeof o=="string"?document.getElementById(o):o;if(!e){const t=typeof o=="string"?`with ID "${o}"`:"(passed by reference)";throw new Error(`openComboboxPopup: Element ${t} not found in the DOM`)}if(!(e instanceof HTMLDialogElement)){const t=typeof o=="string"?`with ID "${o}"`:"(passed by reference)";throw new Error(`openComboboxPopup: Element ${t} is not an HTMLDialogElement`)}e.showModal()}function te(){return n.jsx("form",{role:"none",children:n.jsx(H.Button,{"aria-label":"Close",formMethod:"dialog",iconLeft:n.jsx(Z.CloseIcon,{"aria-hidden":!0}),size:"large",type:"submit",variant:"tertiary"})})}const co="el-combobox-popup-dialog",uo=i.styled_default("div")({name:"ElComboboxPopupDialogHeader",class:"el-combobox-popup-dialog-header",propsAsIs:!1}),po=i.styled_default("div")({name:"ElComboboxPopupDialogListboxContainer",class:"el-combobox-popup-dialog-listbox-container",propsAsIs:!1}),N="calc(anchor-size(width) + 2 * var(--combobox-popup-padding))",xo="calc(anchor(left) - var(--combobox-popup-padding))",Co="calc(anchor(top) - var(--combobox-popup-padding))";function g({"aria-labelledby":o,children:e,className:t,closeOnSelection:a="auto",id:s,maxHeight:r,maxWidth:b=N,minWidth:c=N,onCancel:p,onClose:x,onClick:m,preserveSearchOnClose:f=!1,search:E,style:B,variant:h="auto",...A}){const D=no.useMatchMedia(to.isWidthAtOrAbove("SM")),M=h==="popover"||h==="auto"&&D,K=h==="drawer"||h==="auto"&&!D,Xo=Q.useCancelCloseRequests("any",p),Jo=Q.useWithStopPropagation(O=>{x?.(O),E&&bo(O)}),Ko=O=>{m?.(O),lo(O),io(O)};return n.jsx("dialog",{...A,"aria-labelledby":o,className:eo.cx_default(co,t),closedby:"any","data-close-on-selection":a,"data-preserve-search-on-close":f,"data-variant":h,id:s,onCancel:Xo,onClose:Jo,onClick:Ko,style:{...B,maxHeight:r},children:n.jsxs(_.Provider,{value:{variant:h},children:[M&&n.jsx(Zo.AnchorPositioning,{anchorElementId:o,left:xo,maxWidth:b,minWidth:c,positionedElementId:s,positionTryFallbacks:"flip-block, flip-inline",top:Co}),(E||K)&&n.jsxs(uo,{children:[E,K&&n.jsx(te,{})]}),n.jsx(po,{children:e})]})})}g.Context=_;g.useContext=V;g.open=w;g.close=v;function mo(o,e){const t=d.useRef(e);d.useEffect(function(){t.current=e},[e]),d.useEffect(function(){const s=document.getElementById(o);if(s instanceof HTMLElement){const r=new AbortController;return s.addEventListener("toggle",b=>t.current(b),{signal:r.signal}),()=>r.abort()}},[o])}function fo(o){const[e,t]=d.useState(!1);return mo(o,a=>{t(a.newState==="open")}),e}function Eo({"aria-label":o="Open popup","aria-controls":e,onClick:t,...a}){const s=r=>{t?.(r),w(e)};return n.jsx(H.Button,{...a,"aria-controls":e,"aria-label":o,hasNoPadding:!0,iconLeft:n.jsx(Qo.ChevronDownIcon,{}),onClick:s,size:"small",tabIndex:-1,variant:"tertiary"})}const ho=i.styled_default("div")({name:"ElComboboxButtonContainer",class:"el-combobox-button-container",propsAsIs:!1}),go=i.styled_default("button")({name:"ElComboboxButton",class:"el-combobox-button",propsAsIs:!1}),Io=i.styled_default("span")({name:"ElComboboxButtonIconContainer",class:"el-combobox-button-icon-container",propsAsIs:!1}),Oo=i.styled_default("span")({name:"ElComboboxButtonLabelContainer",class:"el-combobox-button-label-container",propsAsIs:!1}),yo=i.styled_default("span")({name:"ElComboboxButtonActionContainer",class:"el-combobox-button-action-container",propsAsIs:!1});function y({action:o,"aria-controls":e,"aria-expanded":t,children:a,className:s,id:r,leadingIcon:b,placeholder:c="Select an option",size:p="medium",style:x,...m}){const f=!!a;return n.jsxs(ho,{className:s,"data-size":p,style:x,children:[n.jsxs(go,{...m,"aria-autocomplete":"list","aria-controls":e,"aria-expanded":t,"aria-haspopup":"dialog",id:r,role:"combobox",type:"button",children:[b&&n.jsx(Io,{children:b}),n.jsx(Oo,{"data-has-selection":f,"data-placeholder":c,children:f?a:c})]}),o&&n.jsx(yo,{children:o})]})}y.ClearButton=so;y.OpenPopupButton=Eo;const Lo=i.styled_default("div")({name:"ElComboboxCard",class:"el-combobox-card",propsAsIs:!1}),So=i.styled_default("button")({name:"ElComboboxCardButton",class:"el-combobox-card-button",propsAsIs:!1}),Ao=i.styled_default("span")({name:"ElComboboxCardActionContainer",class:"el-combobox-card-action-container",propsAsIs:!1});function Po({action:o,"aria-controls":e,"aria-disabled":t=!0,"aria-expanded":a,children:s,className:r,id:b,onClick:c,size:p="medium",style:x,...m}){const f=E=>{if(E.currentTarget.getAttribute("aria-disabled")==="true"){E.stopPropagation(),E.preventDefault();return}c?.(E)};return n.jsxs(Lo,{className:r,"data-size":p,style:x,children:[n.jsx(So,{...m,"aria-autocomplete":"list","aria-controls":e,"aria-disabled":t,"aria-expanded":a,"aria-haspopup":"dialog",id:b,onClick:f,role:"combobox",type:"button",children:s}),o&&n.jsx(Ao,{children:o})]})}const Bo=i.styled_default("span")({name:"ElComboboxCardDefaultContent",class:"el-combobox-card-default-content",propsAsIs:!1}),Do=i.styled_default("span")({name:"ElComboboxCardDefaultContentLabel",class:"el-combobox-card-default-content-label",propsAsIs:!1}),jo=i.styled_default("span")({name:"ElComboboxCardDefaultContentAdditionalInfo",class:"el-combobox-card-default-content-additional-info",propsAsIs:!1});function $({additionalInfo:o,children:e,...t}){return n.jsxs(Bo,{...t,children:[n.jsx(Do,{children:e}),n.jsx(jo,{children:o})]})}$.displayName="Combobox.CardDefaultContent";const T=d.createContext(null);function L(){const o=d.useContext(T);if(!o)throw new Error("useComboboxContext requires a Combobox ancestor");return o}const vo=d.createContext([]);function k(){return d.useContext(vo)}const _o=i.styled_default("div")({name:"ElComboboxListbox",class:"el-combobox-listbox",propsAsIs:!1}),wo=i.styled_default("div")({name:"ElComboboxListboxPlaceholder",class:"el-combobox-listbox-placeholder",propsAsIs:!1});function z({children:o,size:e="medium",...t}){return C.useListboxRenderContext()==="native"?null:n.jsx(wo,{...t,"aria-live":"polite","data-size":e,role:"status",children:o})}z.displayName="Combobox.ListboxPlaceholder";const To=i.styled_default("div")({name:"ElComboboxOptgroup",class:"el-combobox-optgroup",propsAsIs:!1}),ko=i.styled_default("div")({name:"ElComboboxOptgroupLabelContainer",class:"el-combobox-optgroup-label-container",propsAsIs:!1});function qo({"aria-label":o,children:e,label:t,...a}){const s=d.useId();return n.jsxs(To,{...a,"aria-label":o,"aria-labelledby":o?void 0:s,role:"group",children:[t&&n.jsx(ko,{id:s,children:t}),e]})}function R(o){return n.jsx(C.Listbox.Optgroup,{as:qo,...o})}R.displayName="Combobox.Optgroup";function W(o){return"ariaLabelledByElements"in Element.prototype?o.ariaLabelledByElements?.at(0)?.textContent??o.textContent:document.getElementById(o.getAttribute("aria-labelledby"))?.textContent??o.textContent}const Mo=i.styled_default("button")({name:"ElComboboxOption",class:"el-combobox-option",propsAsIs:!1}),No=i.styled_default("span")({name:"ElComboboxOptionCheckIconContainer",class:"el-combobox-option-check-icon-container",propsAsIs:!1}),Ho=i.styled_default("span")({name:"ElComboboxOptionLabel",class:"el-combobox-option-label",propsAsIs:!1}),F=i.styled_default("span")({name:"ElComboboxOptionTextContainer",class:"el-combobox-option-text-container",propsAsIs:!1}),G=i.styled_default("span")({name:"ElComboboxOptionBadgeContainer",class:"el-combobox-option-badge-container",propsAsIs:!1}),Vo=i.styled_default("span")({name:"ElComboboxOptionAdditionalInfoContainer",class:"el-combobox-option-additional-info-container",propsAsIs:!1}),$o=i.styled_default("span")({name:"ElComboboxOptionAdditionalInfo",class:"el-combobox-option-additional-info",propsAsIs:!1}),zo=i.styled_default("span")({name:"ElComboboxOptionAdditionalInfoIconContainer",class:"el-combobox-option-additional-info-icon-container",propsAsIs:!1});function U({badge:o,children:e,icon:t,...a}){return n.jsxs($o,{...a,children:[t&&n.jsx(zo,{children:t}),n.jsx(F,{children:e}),o&&n.jsx(G,{children:o})]})}U.displayName="Combobox.OptionAdditionalInfo";function S({badge:o,children:e,additionalInfo:t,size:a="medium",...s}){const r=d.useId(),b=d.useId(),c=d.useId(),p=[o&&r,t&&c].filter(x=>!!x).join(" ")||void 0;return n.jsxs(Mo,{...s,"aria-labelledby":b,"aria-details":p,"data-size":a,role:"option",type:"button",children:[n.jsx(No,{"aria-hidden":!0,children:n.jsx(oe.CheckIcon,{})}),n.jsxs(Ho,{children:[n.jsx(F,{id:b,children:e}),o&&n.jsx(G,{id:r,children:o})]}),t&&n.jsx(Vo,{id:c,children:t})]})}S.getOptionLabel=W;S.AdditionalInfo=U;function I(o){const{size:e}=L();return n.jsx(C.Listbox.Option,{as:S,...o,size:e==="small"?"medium":e})}I.displayName="Combobox.Option";I.getLabel=S.getOptionLabel;I.AdditionalInfo=S.AdditionalInfo;function u({defaultValue:o,...e}){const a=k().map(p=>p.value),{disabled:s,listboxId:r,multiple:b,required:c}=L();return n.jsx(C.Listbox,{...e,as:_o,"aria-disabled":s,"aria-multiselectable":b,"aria-orientation":"vertical","aria-required":c,defaultValue:o??a,id:r,selectionFollowsFocus:!1})}u.displayName="Combobox.Listbox";u.Divider=C.Listbox.Divider;u.Optgroup=R;u.Option=I;u.OptionAdditionalInfo=I.AdditionalInfo;u.Placeholder=z;u.clearValue=C.Listbox.clearValue;u.getOptionLabel=I.getLabel;u.getSelectedOptions=C.Listbox.getSelectedOptions;u.getValue=C.Listbox.getValue;u.setOptionSelectedState=C.Listbox.setOptionSelectedState;u.useState=C.Listbox.useState;function P(o){const{comboboxId:e,popupId:t}=L();return n.jsx(g,{...o,"aria-labelledby":e,id:t,children:o.children})}P.displayName="Combobox.Popup";P.show=g.open;P.hide=g.close;function ne({isXSBreakpoint:o,popupVariant:e}){switch(e){case"drawer":return"borderless";case"popover":return"default";case"auto":return o?"borderless":"default"}}function Ro(o){const{variant:e}=V(),t=no.useMatchMedia(to.isWidthBelow("SM")),a=ne({isXSBreakpoint:t,popupVariant:e});return n.jsx(oo.SearchInput,{...o,type:"text",variant:a})}Ro.displayName="Combobox.SearchInput";function q(o,e=[]){const[t,a]=d.useState(()=>e);return C.useListboxSelectionObserver(o,(s,r)=>{a(b=>{const c=b.filter(x=>r.includes(x.value)),p=s.filter(x=>!b.some(m=>m.value===x.value)).map(x=>({label:W(x),value:x.value}));return[...c,...p]})}),t}function ae({children:o,defaultOptions:e,listboxId:t}){const a=k(),s=q(t,e??a);return o?.(s)??s.at(0)?.label}const Wo=d.createContext(null);function se(){const o=d.useContext(Wo);if(!o)throw new Error("useComboboxSelectionChipsContext requires a ComboboxSelectionChips ancestor");return o}function Fo({children:o,value:e,...t}){const a=se();return n.jsx(ao.ChipGroup.Item,{...t,"aria-controls":a.listboxId,"aria-label":`Remove ${o}`,onClick:()=>C.setListboxOptionSelectedState(a.listboxId,e,()=>!1),value:e,children:o})}const le="el-combobox-selection-chips";function Y({children:o,className:e,defaultOptions:t,listboxId:a,...s}){const r=k(),b=q(a,t??r),c=o?.(b)??b.map(p=>n.jsx(Fo,{value:p.value,children:p.label},p.value));return b.length>0&&n.jsx(ao.ChipGroup,{...s,className:eo.cx_default(le,e),variant:"selection",children:n.jsx(Wo.Provider,{value:{listboxId:a},children:c})})}Y.Item=Fo;const Go=i.styled_default("div")({name:"ElCombobox",class:"el-combobox",propsAsIs:!1});function X(o){return`${o}-listbox`}function J(o){return`${o}-popup`}function Uo({onClick:o}={}){const{ariaDescribedBy:e,ariaErrorMessage:t,ariaInvalid:a,ariaLabelledBy:s,comboboxId:r,disabled:b,popupId:c,required:p}=L(),x=fo(c);return{"aria-controls":c,"aria-describedby":e,"aria-errormessage":t,"aria-expanded":x,"aria-invalid":a,"aria-labelledby":s,"aria-required":p,disabled:b,id:r,onClick:f=>{o?.(f),w(c)},role:"combobox"}}function Yo(o){const[e,t]=d.useState(!1);return C.useListboxSelectionObserver(o,(a,s)=>{t(s.length>0)}),e}function l({"aria-describedby":o,"aria-errormessage":e,"aria-invalid":t,"aria-labelledby":a,children:s,disabled:r=!1,id:b,maxWidth:c,multiple:p=!1,required:x=!1,showValidity:m=!1,size:f="medium",style:E,...B}){const h=d.useId(),A=b??h,D=X(A),M=J(A);return n.jsx(T.Provider,{value:{ariaDescribedBy:o,ariaErrorMessage:e,ariaInvalid:t,ariaLabelledBy:a,comboboxId:A,disabled:r,listboxId:D,multiple:p,popupId:M,required:x,size:f},children:n.jsx(Go,{...B,"data-show-validity":m,style:{"--combobox-max-width":c,...E},children:s})})}l.getOptionLabel=u.getOptionLabel;l.getListboxValue=C.Listbox.getValue;l.getListboxId=X;l.getPopupId=J;l.Button=y;l.Card=Po;l.CardDefaultContent=$;l.ClearButton=y.ClearButton;l.Divider=u.Divider;l.Listbox=u;l.ListboxPlaceholder=u.Placeholder;l.OpenPopupButton=y.OpenPopupButton;l.Optgroup=u.Optgroup;l.Option=u.Option;l.OptionAdditionalInfo=u.OptionAdditionalInfo;l.Popup=P;l.SearchInput=Ro;l.SelectedContent=ae;l.SelectionChips=Y;l.SelectionChipsItem=Y.Item;l.Context=T;l.DefaultOptionsContext=vo;l.useButton=Uo;l.useContext=L;l.useDefaultOptionsContext=k;l.useHasSelection=Yo;l.useSelectedOptions=q;l.useState=u.useState;exports.CLOSE_ON_SELECTION=j;exports.Combobox=l;exports.ComboboxButton=y;exports.ComboboxButtonClearButton=so;exports.ComboboxButtonOpenPopupButton=Eo;exports.ComboboxCard=Po;exports.ComboboxCardDefaultContent=$;exports.ComboboxContext=T;exports.ComboboxListbox=u;exports.ComboboxListboxOptgroup=R;exports.ComboboxListboxOption=I;exports.ComboboxListboxPlaceholder=z;exports.ComboboxOptgroup=qo;exports.ComboboxOption=S;exports.ComboboxOptionAdditionalInfo=U;exports.ComboboxPopup=P;exports.ComboboxPopupDialog=g;exports.ComboboxPopupDialogContext=_;exports.ElCombobox=Go;exports.ElComboboxButton=go;exports.ElComboboxButtonActionContainer=yo;exports.ElComboboxButtonContainer=ho;exports.ElComboboxButtonIconContainer=Io;exports.ElComboboxButtonLabelContainer=Oo;exports.ElComboboxCard=Lo;exports.ElComboboxCardActionContainer=Ao;exports.ElComboboxCardButton=So;exports.ElComboboxCardDefaultContent=Bo;exports.ElComboboxCardDefaultContentAdditionalInfo=jo;exports.ElComboboxCardDefaultContentLabel=Do;exports.ElComboboxListbox=_o;exports.ElComboboxListboxPlaceholder=wo;exports.ElComboboxOptgroup=To;exports.ElComboboxOptgroupLabelContainer=ko;exports.ElComboboxOption=Mo;exports.ElComboboxOptionAdditionalInfo=$o;exports.ElComboboxOptionAdditionalInfoContainer=Vo;exports.ElComboboxOptionAdditionalInfoIconContainer=zo;exports.ElComboboxOptionBadgeContainer=G;exports.ElComboboxOptionCheckIconContainer=No;exports.ElComboboxOptionLabel=Ho;exports.ElComboboxOptionTextContainer=F;exports.ElComboboxPopupDialogHeader=uo;exports.ElComboboxPopupDialogListboxContainer=po;exports.clearSearchInputOnClose=bo;exports.closeComboboxPopup=v;exports.closeOnBackdropClick=io;exports.defaultPopupInsetLeft=xo;exports.defaultPopupInsetTop=Co;exports.defaultPopupWidth=N;exports.elComboboxPopupDialog=co;exports.getComboboxListboxId=X;exports.getComboboxPopupId=J;exports.getOptionElement=ro;exports.getOptionLabel=W;exports.maybeCloseOnSelection=lo;exports.openComboboxPopup=w;exports.useComboboxButton=Uo;exports.useComboboxContext=L;exports.useComboboxHasSelection=Yo;exports.useComboboxPopupDialogContext=V;exports.useComboboxPopupObserver=mo;exports.useComboboxPopupState=fo;exports.useComboboxSelectedOptions=q;
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime");require("./button-base-tw0zLUCC.cjs");const d=require("react"),H=require("./button-Ccwmxlgv.cjs"),C=require("./listbox-BbmKy0PR.cjs"),Z=require("./icons/close.cjs"),Qo=require("./icons/chevron-down.cjs"),oo=require("./search-input-V5FfarRw.cjs"),Zo=require("./anchor-positioning-CmSZkNof.cjs"),eo=require("./index-8ctufnBx.cjs"),i=require("./index-Dmlb2--K.cjs"),to=require("./utils/breakpoints.cjs"),Q=require("./drawer-D5SIlpKa.cjs"),no=require("./use-match-media-BfoAxEfC.cjs"),oe=require("./icons/check.cjs"),ao=require("./chip-group-66bqmP7S.cjs");function so({"aria-label":o="Clear selection","aria-controls":e,onClick:t,...a}){const s=r=>{t?.(r),C.clearListboxValue(e)};return n.jsx(H.Button,{...a,"aria-controls":e,"aria-label":o,hasNoPadding:!0,iconLeft:n.jsx(Z.CloseIcon,{}),onClick:s,size:"small",variant:"tertiary"})}function v(o){const e=typeof o=="string"?document.getElementById(o):o;if(!e){const t=typeof o=="string"?`with ID "${o}"`:"(passed by reference)";throw new Error(`closeComboboxPopup: Element ${t} not found in the DOM`)}if(!(e instanceof HTMLDialogElement)){const t=typeof o=="string"?`with ID "${o}"`:"(passed by reference)";throw new Error(`closeComboboxPopup: Element ${t} is not an HTMLDialogElement`)}e.close()}const j={AUTO:"auto",ALWAYS:"always",NEVER:"never"};function lo(o){if(o.defaultPrevented||!o.isTrusted)return;const e=ro(o.target);if(!e)return;const{closeOnSelection:t}=o.currentTarget.dataset;if(t!==j.NEVER){if(t===j.ALWAYS){v(o.currentTarget);return}if(t===j.AUTO){const{listboxId:a}=e.dataset,s=a?document.getElementById(a):null;ee(s)&&v(o.currentTarget)}}}function io(o){!("closedBy"in HTMLDialogElement.prototype)&&o.target===o.currentTarget&&o.currentTarget.close()}function ro(o){return o instanceof HTMLElement?o.closest('[role="option"]'):null}function ee(o){return"ariaMultiSelectable"in Element.prototype?o?.ariaMultiSelectable==="false":o?.getAttribute("aria-multiselectable")==="false"}function bo(o){const{preserveSearchOnClose:e}=o.currentTarget.dataset;if(e==="true")return;const t=o.currentTarget.querySelector("input");t instanceof HTMLInputElement&&oo.clearSearchInput(t)}const _=d.createContext(null);function V(){const o=d.useContext(_);if(!o)throw new Error("useComboboxPopupDialogContext requires a ComboboxPopupDialog ancestor");return o}function w(o){const e=typeof o=="string"?document.getElementById(o):o;if(!e){const t=typeof o=="string"?`with ID "${o}"`:"(passed by reference)";throw new Error(`openComboboxPopup: Element ${t} not found in the DOM`)}if(!(e instanceof HTMLDialogElement)){const t=typeof o=="string"?`with ID "${o}"`:"(passed by reference)";throw new Error(`openComboboxPopup: Element ${t} is not an HTMLDialogElement`)}e.showModal()}function te(){return n.jsx("form",{role:"none",children:n.jsx(H.Button,{"aria-label":"Close",formMethod:"dialog",iconLeft:n.jsx(Z.CloseIcon,{"aria-hidden":!0}),size:"large",type:"submit",variant:"tertiary"})})}const co="el-combobox-popup-dialog",uo=i.styled_default("div")({name:"ElComboboxPopupDialogHeader",class:"el-combobox-popup-dialog-header",propsAsIs:!1}),po=i.styled_default("div")({name:"ElComboboxPopupDialogListboxContainer",class:"el-combobox-popup-dialog-listbox-container",propsAsIs:!1}),N="calc(anchor-size(width) + 2 * var(--combobox-popup-padding))",xo="calc(anchor(left) - var(--combobox-popup-padding))",Co="calc(anchor(top) - var(--combobox-popup-padding))";function g({"aria-labelledby":o,children:e,className:t,closeOnSelection:a="auto",id:s,maxHeight:r,maxWidth:b=N,minWidth:c=N,onCancel:p,onClose:x,onClick:m,preserveSearchOnClose:f=!1,search:E,style:B,variant:h="auto",...A}){const D=no.useMatchMedia(to.isWidthAtOrAbove("SM")),M=h==="popover"||h==="auto"&&D,K=h==="drawer"||h==="auto"&&!D,Xo=Q.useCancelCloseRequests("any",p),Jo=Q.useWithStopPropagation(O=>{x?.(O),E&&bo(O)}),Ko=O=>{m?.(O),lo(O),io(O)};return n.jsx("dialog",{...A,"aria-labelledby":o,className:eo.cx_default(co,t),closedby:"any","data-close-on-selection":a,"data-preserve-search-on-close":f,"data-variant":h,id:s,onCancel:Xo,onClose:Jo,onClick:Ko,style:{...B,maxHeight:r},children:n.jsxs(_.Provider,{value:{variant:h},children:[M&&n.jsx(Zo.AnchorPositioning,{anchorElementId:o,left:xo,maxWidth:b,minWidth:c,positionedElementId:s,positionTryFallbacks:"flip-block, flip-inline",top:Co}),(E||K)&&n.jsxs(uo,{children:[E,K&&n.jsx(te,{})]}),n.jsx(po,{children:e})]})})}g.Context=_;g.useContext=V;g.open=w;g.close=v;function mo(o,e){const t=d.useRef(e);d.useEffect(function(){t.current=e},[e]),d.useEffect(function(){const s=document.getElementById(o);if(s instanceof HTMLElement){const r=new AbortController;return s.addEventListener("toggle",b=>t.current(b),{signal:r.signal}),()=>r.abort()}},[o])}function fo(o){const[e,t]=d.useState(!1);return mo(o,a=>{t(a.newState==="open")}),e}function Eo({"aria-label":o="Open popup","aria-controls":e,onClick:t,...a}){const s=r=>{t?.(r),w(e)};return n.jsx(H.Button,{...a,"aria-controls":e,"aria-label":o,hasNoPadding:!0,iconLeft:n.jsx(Qo.ChevronDownIcon,{}),onClick:s,size:"small",tabIndex:-1,variant:"tertiary"})}const ho=i.styled_default("div")({name:"ElComboboxButtonContainer",class:"el-combobox-button-container",propsAsIs:!1}),go=i.styled_default("button")({name:"ElComboboxButton",class:"el-combobox-button",propsAsIs:!1}),Io=i.styled_default("span")({name:"ElComboboxButtonIconContainer",class:"el-combobox-button-icon-container",propsAsIs:!1}),Oo=i.styled_default("span")({name:"ElComboboxButtonLabelContainer",class:"el-combobox-button-label-container",propsAsIs:!1}),yo=i.styled_default("span")({name:"ElComboboxButtonActionContainer",class:"el-combobox-button-action-container",propsAsIs:!1});function y({action:o,"aria-controls":e,"aria-expanded":t,children:a,className:s,id:r,leadingIcon:b,placeholder:c="Select an option",size:p="medium",style:x,...m}){const f=!!a;return n.jsxs(ho,{className:s,"data-size":p,style:x,children:[n.jsxs(go,{...m,"aria-autocomplete":"list","aria-controls":e,"aria-expanded":t,"aria-haspopup":"dialog",id:r,role:"combobox",type:"button",children:[b&&n.jsx(Io,{children:b}),n.jsx(Oo,{"data-has-selection":f,"data-placeholder":c,children:f?a:c})]}),o&&n.jsx(yo,{children:o})]})}y.ClearButton=so;y.OpenPopupButton=Eo;const Lo=i.styled_default("div")({name:"ElComboboxCard",class:"el-combobox-card",propsAsIs:!1}),So=i.styled_default("button")({name:"ElComboboxCardButton",class:"el-combobox-card-button",propsAsIs:!1}),Ao=i.styled_default("span")({name:"ElComboboxCardActionContainer",class:"el-combobox-card-action-container",propsAsIs:!1});function Po({action:o,"aria-controls":e,"aria-disabled":t=!0,"aria-expanded":a,children:s,className:r,id:b,onClick:c,size:p="medium",style:x,...m}){const f=E=>{if(E.currentTarget.getAttribute("aria-disabled")==="true"){E.stopPropagation(),E.preventDefault();return}c?.(E)};return n.jsxs(Lo,{className:r,"data-size":p,style:x,children:[n.jsx(So,{...m,"aria-autocomplete":"list","aria-controls":e,"aria-disabled":t,"aria-expanded":a,"aria-haspopup":"dialog",id:b,onClick:f,role:"combobox",type:"button",children:s}),o&&n.jsx(Ao,{children:o})]})}const Bo=i.styled_default("span")({name:"ElComboboxCardDefaultContent",class:"el-combobox-card-default-content",propsAsIs:!1}),Do=i.styled_default("span")({name:"ElComboboxCardDefaultContentLabel",class:"el-combobox-card-default-content-label",propsAsIs:!1}),jo=i.styled_default("span")({name:"ElComboboxCardDefaultContentAdditionalInfo",class:"el-combobox-card-default-content-additional-info",propsAsIs:!1});function $({additionalInfo:o,children:e,...t}){return n.jsxs(Bo,{...t,children:[n.jsx(Do,{children:e}),n.jsx(jo,{children:o})]})}$.displayName="Combobox.CardDefaultContent";const T=d.createContext(null);function L(){const o=d.useContext(T);if(!o)throw new Error("useComboboxContext requires a Combobox ancestor");return o}const vo=d.createContext([]);function k(){return d.useContext(vo)}const _o=i.styled_default("div")({name:"ElComboboxListbox",class:"el-combobox-listbox",propsAsIs:!1}),wo=i.styled_default("div")({name:"ElComboboxListboxPlaceholder",class:"el-combobox-listbox-placeholder",propsAsIs:!1});function z({children:o,size:e="medium",...t}){return C.useListboxRenderContext()==="native"?null:n.jsx(wo,{...t,"aria-live":"polite","data-size":e,role:"status",children:o})}z.displayName="Combobox.ListboxPlaceholder";const To=i.styled_default("div")({name:"ElComboboxOptgroup",class:"el-combobox-optgroup",propsAsIs:!1}),ko=i.styled_default("div")({name:"ElComboboxOptgroupLabelContainer",class:"el-combobox-optgroup-label-container",propsAsIs:!1});function qo({"aria-label":o,children:e,label:t,...a}){const s=d.useId();return n.jsxs(To,{...a,"aria-label":o,"aria-labelledby":o?void 0:s,role:"group",children:[t&&n.jsx(ko,{id:s,children:t}),e]})}function R(o){return n.jsx(C.Listbox.Optgroup,{as:qo,...o})}R.displayName="Combobox.Optgroup";function W(o){return"ariaLabelledByElements"in Element.prototype?o.ariaLabelledByElements?.at(0)?.textContent??o.textContent:document.getElementById(o.getAttribute("aria-labelledby"))?.textContent??o.textContent}const Mo=i.styled_default("button")({name:"ElComboboxOption",class:"el-combobox-option",propsAsIs:!1}),No=i.styled_default("span")({name:"ElComboboxOptionCheckIconContainer",class:"el-combobox-option-check-icon-container",propsAsIs:!1}),Ho=i.styled_default("span")({name:"ElComboboxOptionLabel",class:"el-combobox-option-label",propsAsIs:!1}),F=i.styled_default("span")({name:"ElComboboxOptionTextContainer",class:"el-combobox-option-text-container",propsAsIs:!1}),G=i.styled_default("span")({name:"ElComboboxOptionBadgeContainer",class:"el-combobox-option-badge-container",propsAsIs:!1}),Vo=i.styled_default("span")({name:"ElComboboxOptionAdditionalInfoContainer",class:"el-combobox-option-additional-info-container",propsAsIs:!1}),$o=i.styled_default("span")({name:"ElComboboxOptionAdditionalInfo",class:"el-combobox-option-additional-info",propsAsIs:!1}),zo=i.styled_default("span")({name:"ElComboboxOptionAdditionalInfoIconContainer",class:"el-combobox-option-additional-info-icon-container",propsAsIs:!1});function U({badge:o,children:e,icon:t,...a}){return n.jsxs($o,{...a,children:[t&&n.jsx(zo,{children:t}),n.jsx(F,{children:e}),o&&n.jsx(G,{children:o})]})}U.displayName="Combobox.OptionAdditionalInfo";function S({badge:o,children:e,additionalInfo:t,size:a="medium",...s}){const r=d.useId(),b=d.useId(),c=d.useId(),p=[o&&r,t&&c].filter(x=>!!x).join(" ")||void 0;return n.jsxs(Mo,{...s,"aria-labelledby":b,"aria-details":p,"data-size":a,role:"option",type:"button",children:[n.jsx(No,{"aria-hidden":!0,children:n.jsx(oe.CheckIcon,{})}),n.jsxs(Ho,{children:[n.jsx(F,{id:b,children:e}),o&&n.jsx(G,{id:r,children:o})]}),t&&n.jsx(Vo,{id:c,children:t})]})}S.getOptionLabel=W;S.AdditionalInfo=U;function I(o){const{size:e}=L();return n.jsx(C.Listbox.Option,{as:S,...o,size:e==="small"?"medium":e})}I.displayName="Combobox.Option";I.getLabel=S.getOptionLabel;I.AdditionalInfo=S.AdditionalInfo;function u({defaultValue:o,...e}){const a=k().map(p=>p.value),{disabled:s,listboxId:r,multiple:b,required:c}=L();return n.jsx(C.Listbox,{...e,as:_o,"aria-disabled":s,"aria-multiselectable":b,"aria-orientation":"vertical","aria-required":c,defaultValue:o??a,id:r,selectionFollowsFocus:!1})}u.displayName="Combobox.Listbox";u.Divider=C.Listbox.Divider;u.Optgroup=R;u.Option=I;u.OptionAdditionalInfo=I.AdditionalInfo;u.Placeholder=z;u.clearValue=C.Listbox.clearValue;u.getOptionLabel=I.getLabel;u.getSelectedOptions=C.Listbox.getSelectedOptions;u.getValue=C.Listbox.getValue;u.setOptionSelectedState=C.Listbox.setOptionSelectedState;u.useState=C.Listbox.useState;function P(o){const{comboboxId:e,popupId:t}=L();return n.jsx(g,{...o,"aria-labelledby":e,id:t,children:o.children})}P.displayName="Combobox.Popup";P.show=g.open;P.hide=g.close;function ne({isXSBreakpoint:o,popupVariant:e}){switch(e){case"drawer":return"borderless";case"popover":return"default";case"auto":return o?"borderless":"default"}}function Ro(o){const{variant:e}=V(),t=no.useMatchMedia(to.isWidthBelow("SM")),a=ne({isXSBreakpoint:t,popupVariant:e});return n.jsx(oo.SearchInput,{...o,type:"text",variant:a})}Ro.displayName="Combobox.SearchInput";function q(o,e=[]){const[t,a]=d.useState(()=>e);return C.useListboxSelectionObserver(o,(s,r)=>{a(b=>{const c=b.filter(x=>r.includes(x.value)),p=s.filter(x=>!b.some(m=>m.value===x.value)).map(x=>({label:W(x),value:x.value}));return[...c,...p]})}),t}function ae({children:o,defaultOptions:e,listboxId:t}){const a=k(),s=q(t,e??a);return o?.(s)??s.at(0)?.label}const Wo=d.createContext(null);function se(){const o=d.useContext(Wo);if(!o)throw new Error("useComboboxSelectionChipsContext requires a ComboboxSelectionChips ancestor");return o}function Fo({children:o,value:e,...t}){const a=se();return n.jsx(ao.ChipGroup.Item,{...t,"aria-controls":a.listboxId,"aria-label":`Remove ${o}`,onClick:()=>C.setListboxOptionSelectedState(a.listboxId,e,()=>!1),value:e,children:o})}const le="el-combobox-selection-chips";function Y({children:o,className:e,defaultOptions:t,listboxId:a,...s}){const r=k(),b=q(a,t??r),c=o?.(b)??b.map(p=>n.jsx(Fo,{value:p.value,children:p.label},p.value));return b.length>0&&n.jsx(ao.ChipGroup,{...s,className:eo.cx_default(le,e),variant:"selection",children:n.jsx(Wo.Provider,{value:{listboxId:a},children:c})})}Y.Item=Fo;const Go=i.styled_default("div")({name:"ElCombobox",class:"el-combobox",propsAsIs:!1});function X(o){return`${o}-listbox`}function J(o){return`${o}-popup`}function Uo({onClick:o}={}){const{ariaDescribedBy:e,ariaErrorMessage:t,ariaInvalid:a,ariaLabelledBy:s,comboboxId:r,disabled:b,popupId:c,required:p}=L(),x=fo(c);return{"aria-controls":c,"aria-describedby":e,"aria-errormessage":t,"aria-expanded":x,"aria-invalid":a,"aria-labelledby":s,"aria-required":p,disabled:b,id:r,onClick:f=>{o?.(f),w(c)},role:"combobox"}}function Yo(o){const[e,t]=d.useState(!1);return C.useListboxSelectionObserver(o,(a,s)=>{t(s.length>0)}),e}function l({"aria-describedby":o,"aria-errormessage":e,"aria-invalid":t,"aria-labelledby":a,children:s,disabled:r=!1,id:b,maxWidth:c,multiple:p=!1,required:x=!1,showValidity:m=!1,size:f="medium",style:E,...B}){const h=d.useId(),A=b??h,D=X(A),M=J(A);return n.jsx(T.Provider,{value:{ariaDescribedBy:o,ariaErrorMessage:e,ariaInvalid:t,ariaLabelledBy:a,comboboxId:A,disabled:r,listboxId:D,multiple:p,popupId:M,required:x,size:f},children:n.jsx(Go,{...B,"data-show-validity":m,style:{"--combobox-max-width":c,...E},children:s})})}l.getOptionLabel=u.getOptionLabel;l.getListboxValue=C.Listbox.getValue;l.getListboxId=X;l.getPopupId=J;l.Button=y;l.Card=Po;l.CardDefaultContent=$;l.ClearButton=y.ClearButton;l.Divider=u.Divider;l.Listbox=u;l.ListboxPlaceholder=u.Placeholder;l.OpenPopupButton=y.OpenPopupButton;l.Optgroup=u.Optgroup;l.Option=u.Option;l.OptionAdditionalInfo=u.OptionAdditionalInfo;l.Popup=P;l.SearchInput=Ro;l.SelectedContent=ae;l.SelectionChips=Y;l.SelectionChipsItem=Y.Item;l.Context=T;l.DefaultOptionsContext=vo;l.useButton=Uo;l.useContext=L;l.useDefaultOptionsContext=k;l.useHasSelection=Yo;l.useSelectedOptions=q;l.useState=u.useState;exports.CLOSE_ON_SELECTION=j;exports.Combobox=l;exports.ComboboxButton=y;exports.ComboboxButtonClearButton=so;exports.ComboboxButtonOpenPopupButton=Eo;exports.ComboboxCard=Po;exports.ComboboxCardDefaultContent=$;exports.ComboboxContext=T;exports.ComboboxListbox=u;exports.ComboboxListboxOptgroup=R;exports.ComboboxListboxOption=I;exports.ComboboxListboxPlaceholder=z;exports.ComboboxOptgroup=qo;exports.ComboboxOption=S;exports.ComboboxOptionAdditionalInfo=U;exports.ComboboxPopup=P;exports.ComboboxPopupDialog=g;exports.ComboboxPopupDialogContext=_;exports.ElCombobox=Go;exports.ElComboboxButton=go;exports.ElComboboxButtonActionContainer=yo;exports.ElComboboxButtonContainer=ho;exports.ElComboboxButtonIconContainer=Io;exports.ElComboboxButtonLabelContainer=Oo;exports.ElComboboxCard=Lo;exports.ElComboboxCardActionContainer=Ao;exports.ElComboboxCardButton=So;exports.ElComboboxCardDefaultContent=Bo;exports.ElComboboxCardDefaultContentAdditionalInfo=jo;exports.ElComboboxCardDefaultContentLabel=Do;exports.ElComboboxListbox=_o;exports.ElComboboxListboxPlaceholder=wo;exports.ElComboboxOptgroup=To;exports.ElComboboxOptgroupLabelContainer=ko;exports.ElComboboxOption=Mo;exports.ElComboboxOptionAdditionalInfo=$o;exports.ElComboboxOptionAdditionalInfoContainer=Vo;exports.ElComboboxOptionAdditionalInfoIconContainer=zo;exports.ElComboboxOptionBadgeContainer=G;exports.ElComboboxOptionCheckIconContainer=No;exports.ElComboboxOptionLabel=Ho;exports.ElComboboxOptionTextContainer=F;exports.ElComboboxPopupDialogHeader=uo;exports.ElComboboxPopupDialogListboxContainer=po;exports.clearSearchInputOnClose=bo;exports.closeComboboxPopup=v;exports.closeOnBackdropClick=io;exports.defaultPopupInsetLeft=xo;exports.defaultPopupInsetTop=Co;exports.defaultPopupWidth=N;exports.elComboboxPopupDialog=co;exports.getComboboxListboxId=X;exports.getComboboxPopupId=J;exports.getOptionElement=ro;exports.getOptionLabel=W;exports.maybeCloseOnSelection=lo;exports.openComboboxPopup=w;exports.useComboboxButton=Uo;exports.useComboboxContext=L;exports.useComboboxHasSelection=Yo;exports.useComboboxPopupDialogContext=V;exports.useComboboxPopupObserver=mo;exports.useComboboxPopupState=fo;exports.useComboboxSelectedOptions=q;
|
|
@@ -6,7 +6,7 @@ import { c as fo, i as ho, d as f, k as Y, s as go } from "./listbox-BBRIGXRu.js
|
|
|
6
6
|
import { CloseIcon as G } from "./icons/close.js";
|
|
7
7
|
import { ChevronDownIcon as Eo } from "./icons/chevron-down.js";
|
|
8
8
|
import { c as Io, S as Oo } from "./search-input-BIATSynI.js";
|
|
9
|
-
import { A as Ao } from "./anchor-positioning-
|
|
9
|
+
import { A as Ao } from "./anchor-positioning-B3GGsbFM.js";
|
|
10
10
|
import { c as X } from "./index-BsMVp4qF.js";
|
|
11
11
|
import { s as l } from "./index-YtxCR-9e.js";
|
|
12
12
|
import { isWidthAtOrAbove as So, isWidthBelow as yo } from "./utils/breakpoints.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../app-switcher-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../app-switcher-D8xQB_PB.cjs");exports.AppAvatar=e.AppAvatar;exports.AppSwitcher=e.AppSwitcher;exports.AppSwitcherExploreMenuGroup=e.AppSwitcherExploreMenuGroup;exports.AppSwitcherMenuGroupHasAccessContext=e.AppSwitcherMenuGroupHasAccessContext;exports.AppSwitcherMenuItem=e.AppSwitcherMenuItem;exports.AppSwitcherNavIconButton=e.AppSwitcherNavIconButton;exports.AppSwitcherProductMenuItem=e.AppSwitcherProductMenuItem;exports.AppSwitcherYourAppsMenuGroup=e.AppSwitcherYourAppsMenuGroup;exports.ElAppSwitcherMenuItemAnchor=e.ElAppSwitcherMenuItemAnchor;exports.ElAppSwitcherMenuItemAvatar=e.ElAppSwitcherMenuItemAvatar;exports.ElAppSwitcherMenuItemLabel=e.ElAppSwitcherMenuItemLabel;exports.ElAppSwitcherMenuItemSupplementaryInfo=e.ElAppSwitcherMenuItemSupplementaryInfo;exports.getDisplayableProductsForExploreGroup=e.getDisplayableProductsForExploreGroup;exports.getDisplayableProductsForYourAppsGroup=e.getDisplayableProductsForYourAppsGroup;exports.isProductAccessible=e.isProductAccessible;exports.useAppSwitcherMenuGroupHasAccessContext=e.useAppSwitcherMenuGroupHasAccessContext;
|