@reapit/elements 5.0.0-beta.67 → 5.0.0-beta.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/js/{anchor-positioning-CmSZkNof.cjs → anchor-positioning-B-1bVP2v.cjs} +7 -7
  2. package/dist/js/{anchor-positioning-B3GGsbFM.js → anchor-positioning-mAfJClCi.js} +39 -36
  3. package/dist/js/{app-switcher-DNyr8R9j.js → app-switcher-B3Gme35H.js} +3 -3
  4. package/dist/js/{app-switcher-Da0jpH_0.cjs → app-switcher-alq1ioRt.cjs} +1 -1
  5. package/dist/js/{at-a-glance-N68VKcxo.cjs → at-a-glance-Bowg_R7J.cjs} +1 -1
  6. package/dist/js/{at-a-glance-B0WukTyX.js → at-a-glance-Bvs_m_s8.js} +1 -1
  7. package/dist/js/{autocomplete-Cbhl4kCC.cjs → autocomplete-BXNYfkuS.cjs} +1 -1
  8. package/dist/js/{autocomplete-Cjqj5b4A.js → autocomplete-BY50e2OI.js} +2 -2
  9. package/dist/js/{autocomplete-control-B1yvpZcw.cjs → autocomplete-control-7AtK271I.cjs} +1 -1
  10. package/dist/js/{autocomplete-control-tyu0N1_5.js → autocomplete-control-D3qPiyZB.js} +1 -1
  11. package/dist/js/{badge-C9eQWVc1.cjs → badge-BvLnt-2S.cjs} +1 -1
  12. package/dist/js/{badge-BH7WvutW.js → badge-C_Za5PMD.js} +1 -1
  13. package/dist/js/{bottom-bar-CiDA0QAt.js → bottom-bar-DIdKkbsi.js} +1 -1
  14. package/dist/js/{bottom-bar-y_VAqgE3.cjs → bottom-bar-DeODIkXt.cjs} +1 -1
  15. package/dist/js/{combobox-BMcjE-Hz.js → combobox-1az8akBD.js} +43 -45
  16. package/dist/js/combobox-DEZrdZM-.cjs +1 -0
  17. package/dist/js/{compact-select-CGGyCX2N.cjs → compact-select-BAqO95r3.cjs} +1 -1
  18. package/dist/js/{compact-select-B-fRAGbk.js → compact-select-Cj_eJ_Gk.js} +3 -3
  19. package/dist/js/core/app-switcher.cjs +1 -1
  20. package/dist/js/core/app-switcher.js +1 -1
  21. package/dist/js/core/at-a-glance.cjs +1 -1
  22. package/dist/js/core/at-a-glance.js +1 -1
  23. package/dist/js/core/autocomplete-control.cjs +1 -1
  24. package/dist/js/core/autocomplete-control.js +1 -1
  25. package/dist/js/core/autocomplete.cjs +1 -1
  26. package/dist/js/core/autocomplete.js +1 -1
  27. package/dist/js/core/badge.cjs +1 -1
  28. package/dist/js/core/badge.js +1 -1
  29. package/dist/js/core/bottom-bar.cjs +1 -1
  30. package/dist/js/core/bottom-bar.js +1 -1
  31. package/dist/js/core/combobox.cjs +1 -1
  32. package/dist/js/core/combobox.js +30 -31
  33. package/dist/js/core/compact-select.cjs +1 -1
  34. package/dist/js/core/compact-select.js +1 -1
  35. package/dist/js/core/dialog.cjs +1 -1
  36. package/dist/js/core/dialog.js +3 -3
  37. package/dist/js/core/drawer.cjs +1 -1
  38. package/dist/js/core/drawer.js +12 -12
  39. package/dist/js/core/features.cjs +1 -1
  40. package/dist/js/core/features.js +1 -1
  41. package/dist/js/core/menu.cjs +1 -1
  42. package/dist/js/core/menu.js +1 -1
  43. package/dist/js/core/office-switcher.cjs +1 -1
  44. package/dist/js/core/office-switcher.js +128 -34
  45. package/dist/js/core/section-message.cjs +1 -1
  46. package/dist/js/core/section-message.js +1 -1
  47. package/dist/js/core/select-control.cjs +1 -1
  48. package/dist/js/core/select-control.js +1 -1
  49. package/dist/js/core/select.cjs +1 -1
  50. package/dist/js/core/select.js +1 -1
  51. package/dist/js/core/side-bar.cjs +1 -1
  52. package/dist/js/core/side-bar.js +1 -1
  53. package/dist/js/core/split-button.cjs +1 -1
  54. package/dist/js/core/split-button.js +1 -1
  55. package/dist/js/core/table.cjs +1 -1
  56. package/dist/js/core/table.js +1 -1
  57. package/dist/js/core/tooltip.cjs +1 -1
  58. package/dist/js/core/tooltip.js +1 -1
  59. package/dist/js/core/top-bar.cjs +1 -1
  60. package/dist/js/core/top-bar.js +1 -1
  61. package/dist/js/dialog-X9q5RTrQ.js +121 -0
  62. package/dist/js/dialog-j6m9UOwL.cjs +1 -0
  63. package/dist/js/drawer-DeMe2YSy.cjs +1 -0
  64. package/dist/js/drawer-n8sZIGeL.js +202 -0
  65. package/dist/js/{features-xa9s_F2X.cjs → features-DDWY0bS-.cjs} +1 -1
  66. package/dist/js/{features-DPy7FK5b.js → features-xSaxyxVa.js} +1 -1
  67. package/dist/js/index.cjs +1 -1
  68. package/dist/js/index.js +473 -472
  69. package/dist/js/lab/select-custom.cjs +1 -1
  70. package/dist/js/lab/select-custom.js +2 -2
  71. package/dist/js/{line-clamp-CcqDlxOD.js → line-clamp-B8Z8vzU2.js} +1 -1
  72. package/dist/js/{line-clamp-BHxcW-g_.cjs → line-clamp-xEX76LvR.cjs} +1 -1
  73. package/dist/js/{listbox-DaqNCLTr.js → listbox-LxpZYH0B.js} +7 -7
  74. package/dist/js/listbox-uSbN6RQG.cjs +1 -0
  75. package/dist/js/{menu-BB1lyDsI.cjs → menu-C5zczNsx.cjs} +1 -1
  76. package/dist/js/{menu-DUQjcwNM.js → menu-CP0Bep1V.js} +1 -1
  77. package/dist/js/popover-Xyg0sgru.cjs +1 -0
  78. package/dist/js/{popover-BWnbK_dO.js → popover-dzUc2bK7.js} +21 -19
  79. package/dist/js/{section-message-79DbPIVf.cjs → section-message-Bn33yi2F.cjs} +1 -1
  80. package/dist/js/{section-message-DhkYCDQk.js → section-message-CEzwuyor.js} +1 -1
  81. package/dist/js/{select-C9m1ujim.js → select-BUeFgouh.js} +2 -2
  82. package/dist/js/{select-C8XEaJmE.cjs → select-BlpaGf5-.cjs} +1 -1
  83. package/dist/js/{select-control-CNKEx3wt.js → select-control-BlU3KNOJ.js} +3 -3
  84. package/dist/js/{select-control-C5inPWYx.cjs → select-control-DlaKfZ3x.cjs} +1 -1
  85. package/dist/js/{side-bar-q0Dapddc.cjs → side-bar-BkE4eONG.cjs} +1 -1
  86. package/dist/js/{side-bar-CsPEFLGc.js → side-bar-D6aRZHCV.js} +1 -1
  87. package/dist/js/{split-button-GzVuhKx-.cjs → split-button-Bnyv8DHF.cjs} +1 -1
  88. package/dist/js/{split-button-DHHUZ-41.js → split-button-CrofNP3Q.js} +1 -1
  89. package/dist/js/style.css +1 -1
  90. package/dist/js/{table-BVLzp-xe.js → table-2CxL0Pev.js} +1 -1
  91. package/dist/js/{table-skEBWgL8.cjs → table-WHyA-HQG.cjs} +1 -1
  92. package/dist/js/{tooltip-9vKZqx5w.cjs → tooltip-BU8hYqZ9.cjs} +1 -1
  93. package/dist/js/{tooltip-C2y49rDB.js → tooltip-Bj7DqYdo.js} +1 -1
  94. package/dist/js/{top-bar-BnR_HVWD.js → top-bar-BvxpBZri.js} +2 -2
  95. package/dist/js/{top-bar-CXJfqax_.cjs → top-bar-CjUR7fhL.cjs} +1 -1
  96. package/dist/js/utils/anchor-positioning.cjs +1 -1
  97. package/dist/js/utils/anchor-positioning.js +1 -1
  98. package/dist/js/utils/dialog.cjs +1 -0
  99. package/dist/js/utils/dialog.js +9 -0
  100. package/dist/js/utils/line-clamp.cjs +1 -1
  101. package/dist/js/utils/line-clamp.js +1 -1
  102. package/dist/js/utils/listbox.cjs +1 -1
  103. package/dist/js/utils/listbox.js +1 -1
  104. package/dist/js/utils/popover.cjs +1 -1
  105. package/dist/js/utils/popover.js +2 -2
  106. package/dist/types/core/combobox/popup-dialog/event-handlers.d.ts +0 -15
  107. package/dist/types/core/combobox/popup-dialog/event-handlers.d.ts.map +1 -1
  108. package/dist/types/core/combobox/popup-dialog/popup-dialog.d.ts.map +1 -1
  109. package/dist/types/core/dialog/dialog.d.ts +13 -18
  110. package/dist/types/core/dialog/dialog.d.ts.map +1 -1
  111. package/dist/types/core/dialog/dialog.stories.d.ts +25 -0
  112. package/dist/types/core/dialog/dialog.stories.d.ts.map +1 -1
  113. package/dist/types/core/dialog/styles.d.ts +1 -6
  114. package/dist/types/core/dialog/styles.d.ts.map +1 -1
  115. package/dist/types/core/drawer/drawer.d.ts +13 -18
  116. package/dist/types/core/drawer/drawer.d.ts.map +1 -1
  117. package/dist/types/core/drawer/drawer.stories.d.ts +25 -0
  118. package/dist/types/core/drawer/drawer.stories.d.ts.map +1 -1
  119. package/dist/types/core/drawer/styles.d.ts +1 -1
  120. package/dist/types/core/drawer/styles.d.ts.map +1 -1
  121. package/dist/types/core/office-switcher/__tests__/office-switcher-select-optgroup.test.d.ts +2 -0
  122. package/dist/types/core/office-switcher/__tests__/office-switcher-select-optgroup.test.d.ts.map +1 -0
  123. package/dist/types/core/office-switcher/__tests__/office-switcher-select-option.test.d.ts +2 -0
  124. package/dist/types/core/office-switcher/__tests__/office-switcher-select-option.test.d.ts.map +1 -0
  125. package/dist/types/core/office-switcher/index.d.ts +4 -0
  126. package/dist/types/core/office-switcher/index.d.ts.map +1 -1
  127. package/dist/types/core/office-switcher/office-group/__tests__/office-group-summary.test.d.ts +2 -0
  128. package/dist/types/core/office-switcher/office-group/__tests__/office-group-summary.test.d.ts.map +1 -0
  129. package/dist/types/core/office-switcher/office-group/__tests__/office-group.test.d.ts +2 -0
  130. package/dist/types/core/office-switcher/office-group/__tests__/office-group.test.d.ts.map +1 -0
  131. package/dist/types/core/office-switcher/office-group/index.d.ts +4 -0
  132. package/dist/types/core/office-switcher/office-group/index.d.ts.map +1 -0
  133. package/dist/types/core/office-switcher/office-group/office-group-summary.d.ts +22 -0
  134. package/dist/types/core/office-switcher/office-group/office-group-summary.d.ts.map +1 -0
  135. package/dist/types/core/office-switcher/office-group/office-group.d.ts +20 -0
  136. package/dist/types/core/office-switcher/office-group/office-group.d.ts.map +1 -0
  137. package/dist/types/core/office-switcher/office-group/office-group.stories.d.ts +20 -0
  138. package/dist/types/core/office-switcher/office-group/office-group.stories.d.ts.map +1 -0
  139. package/dist/types/core/office-switcher/office-group/styles.d.ts +5 -0
  140. package/dist/types/core/office-switcher/office-group/styles.d.ts.map +1 -0
  141. package/dist/types/core/office-switcher/office-item/__tests__/office-item.test.d.ts +2 -0
  142. package/dist/types/core/office-switcher/office-item/__tests__/office-item.test.d.ts.map +1 -0
  143. package/dist/types/core/office-switcher/office-item/index.d.ts +3 -0
  144. package/dist/types/core/office-switcher/office-item/index.d.ts.map +1 -0
  145. package/dist/types/core/office-switcher/office-item/office-item.d.ts +18 -0
  146. package/dist/types/core/office-switcher/office-item/office-item.d.ts.map +1 -0
  147. package/dist/types/core/office-switcher/office-item/office-item.stories.d.ts +42 -0
  148. package/dist/types/core/office-switcher/office-item/office-item.stories.d.ts.map +1 -0
  149. package/dist/types/core/office-switcher/office-item/styles.d.ts +6 -0
  150. package/dist/types/core/office-switcher/office-item/styles.d.ts.map +1 -0
  151. package/dist/types/core/office-switcher/office-switcher-popup.figma.d.ts +2 -0
  152. package/dist/types/core/office-switcher/office-switcher-popup.figma.d.ts.map +1 -0
  153. package/dist/types/core/office-switcher/office-switcher-select-optgroup.d.ts +24 -0
  154. package/dist/types/core/office-switcher/office-switcher-select-optgroup.d.ts.map +1 -0
  155. package/dist/types/core/office-switcher/office-switcher-select-optgroup.figma.d.ts +2 -0
  156. package/dist/types/core/office-switcher/office-switcher-select-optgroup.figma.d.ts.map +1 -0
  157. package/dist/types/core/office-switcher/office-switcher-select-option.d.ts +15 -0
  158. package/dist/types/core/office-switcher/office-switcher-select-option.d.ts.map +1 -0
  159. package/dist/types/core/office-switcher/office-switcher-select-option.figma.d.ts +2 -0
  160. package/dist/types/core/office-switcher/office-switcher-select-option.figma.d.ts.map +1 -0
  161. package/dist/types/core/office-switcher/office-switcher-select.figma.d.ts +2 -0
  162. package/dist/types/core/office-switcher/office-switcher-select.figma.d.ts.map +1 -0
  163. package/dist/types/core/office-switcher/office-switcher.d.ts +23 -3
  164. package/dist/types/core/office-switcher/office-switcher.d.ts.map +1 -1
  165. package/dist/types/core/office-switcher/office-switcher.figma.d.ts +2 -0
  166. package/dist/types/core/office-switcher/office-switcher.figma.d.ts.map +1 -0
  167. package/dist/types/core/office-switcher/office-switcher.stories.d.ts +4 -0
  168. package/dist/types/core/office-switcher/office-switcher.stories.d.ts.map +1 -1
  169. package/dist/types/utils/anchor-positioning/anchor-positioning.d.ts +1 -1
  170. package/dist/types/utils/anchor-positioning/anchor-positioning.d.ts.map +1 -1
  171. package/dist/types/utils/anchor-positioning/anchor-positioning.stories.d.ts.map +1 -1
  172. package/dist/types/utils/anchor-positioning/build-anchor-positioning-css.d.ts +5 -1
  173. package/dist/types/utils/anchor-positioning/build-anchor-positioning-css.d.ts.map +1 -1
  174. package/dist/types/utils/dialog/__tests__/close-on-backdrop-click.test.d.ts +2 -0
  175. package/dist/types/utils/dialog/__tests__/close-on-backdrop-click.test.d.ts.map +1 -0
  176. package/dist/types/utils/dialog/close-on-backdrop-click.d.ts +24 -0
  177. package/dist/types/utils/dialog/close-on-backdrop-click.d.ts.map +1 -0
  178. package/dist/types/utils/dialog/index.d.ts +2 -0
  179. package/dist/types/utils/dialog/index.d.ts.map +1 -0
  180. package/dist/types/utils/index.d.ts +1 -0
  181. package/dist/types/utils/index.d.ts.map +1 -1
  182. package/dist/types/utils/listbox/dom-helpers/selectors.d.ts +8 -2
  183. package/dist/types/utils/listbox/dom-helpers/selectors.d.ts.map +1 -1
  184. package/dist/types/utils/popover/popover.d.ts +6 -2
  185. package/dist/types/utils/popover/popover.d.ts.map +1 -1
  186. package/package.json +1 -1
  187. package/dist/js/combobox-ykwrJ8qP.cjs +0 -1
  188. package/dist/js/dialog-CjN2Nll1.js +0 -116
  189. package/dist/js/dialog-oPE93fe0.cjs +0 -1
  190. package/dist/js/drawer-DcgSXF1g.cjs +0 -1
  191. package/dist/js/drawer-GNG7AmHl.js +0 -197
  192. package/dist/js/listbox-BGrp52Hs.cjs +0 -1
  193. package/dist/js/popover-CA0t-z5e.cjs +0 -1
@@ -1,5 +1,5 @@
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`
1
+ "use strict";const C=require("react/jsx-runtime"),b=require("react");function d(){return CSS.supports("anchor-name","--myanchor")}async function P({elements:t,excludeInlineStyles:n=!0,useAnimationFrame:o=!1}={}){if(!d()){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 y({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 k=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"];function S({gap:t="0",placement:n}){switch(n){case"bottom":return`
3
3
  justify-self: anchor-center;
4
4
  top: anchor(bottom);
5
5
  margin-block: ${t};
@@ -47,17 +47,17 @@
47
47
  bottom: anchor(top);
48
48
  left: anchor(left);
49
49
  margin-block: ${t};
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`
50
+ `;default:return""}}function p({alignSelf:t,anchorElementId:n,bottom:o,gap:r,justifySelf:e,left:i,maxWidth:a,minWidth:s,placement:l,position:f="absolute",positionedElementId:u,positionTryFallbacks:m="none",right:$,top:g}){const c=`--${CSS.escape(n)}`,h=l?S({gap:r,placement:l}):y({alignSelf:t,bottom:o,justifySelf:e,left:i,right:$,top:g});return`
51
51
  #${CSS.escape(n)} {
52
52
  anchor-name: ${c};
53
53
  }
54
54
 
55
- #${CSS.escape(f)} {
56
- position: absolute;
55
+ #${CSS.escape(u)} {
56
+ position: ${f};
57
57
  position-anchor: ${c};
58
- position-try-fallbacks: ${u};
58
+ position-try-fallbacks: ${m};
59
59
  ${a?`max-width: ${a};`:""}
60
60
  ${s?`min-width: ${s};`:""}
61
61
  ${h}
62
62
  }
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;
63
+ `}function w({alignSelf:t,anchorElementId:n,bottom:o,gap:r="0",justifySelf:e,left:i,maxWidth:a,minWidth:s,placement:l,position:f,positionedElementId:u,positionTryFallbacks:m="none",right:$,top:g}){const c=b.useRef(null),h=p({alignSelf:t,anchorElementId:n,bottom:o,gap:r,justifySelf:e,left:i,maxWidth:a,minWidth:s,placement:l,position:f,positionedElementId:u,positionTryFallbacks:m,right:$,top:g});return b.useLayoutEffect(function(){c.current&&P({elements:[c.current]})},[h]),C.jsx("style",{ref:c,children:h})}exports.AnchorPositioning=w;exports.buildAnchorPositioningCSS=p;exports.mapPlacementToCSS=S;exports.placements=k;
@@ -1,9 +1,9 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { useRef as g, useLayoutEffect as b } from "react";
3
- function S() {
1
+ import { jsx as g } from "react/jsx-runtime";
2
+ import { useRef as b, useLayoutEffect as S } from "react";
3
+ function C() {
4
4
  return CSS.supports("anchor-name", "--myanchor");
5
5
  }
6
- async function C({
6
+ async function d({
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.
@@ -12,7 +12,7 @@ async function C({
12
12
  // animate anchors.
13
13
  useAnimationFrame: o = !1
14
14
  } = {}) {
15
- if (!S()) {
15
+ if (!C()) {
16
16
  const { polyfill: r } = await import("./polyfills/css-anchor-positioning/preload.js");
17
17
  if (t) {
18
18
  const e = t.filter((i) => i.isConnected);
@@ -31,7 +31,7 @@ async function C({
31
31
  });
32
32
  }
33
33
  }
34
- function d({
34
+ function y({
35
35
  alignSelf: t,
36
36
  top: n,
37
37
  right: o,
@@ -49,7 +49,7 @@ function d({
49
49
  ].filter(Boolean).join(`
50
50
  `);
51
51
  }
52
- const j = [
52
+ const R = [
53
53
  "top",
54
54
  "top-start",
55
55
  "top-end",
@@ -63,7 +63,7 @@ const j = [
63
63
  "left-start",
64
64
  "left-end"
65
65
  ];
66
- function y({ gap: t = "0", placement: n }) {
66
+ function P({ gap: t = "0", placement: n }) {
67
67
  switch (n) {
68
68
  case "bottom":
69
69
  return `
@@ -141,7 +141,7 @@ function y({ gap: t = "0", placement: n }) {
141
141
  return "";
142
142
  }
143
143
  }
144
- function P({
144
+ function k({
145
145
  alignSelf: t,
146
146
  anchorElementId: n,
147
147
  bottom: o,
@@ -151,35 +151,36 @@ function P({
151
151
  maxWidth: a,
152
152
  minWidth: s,
153
153
  placement: l,
154
- positionedElementId: f,
155
- positionTryFallbacks: m = "none",
156
- right: u,
157
- top: $
154
+ position: f = "absolute",
155
+ positionedElementId: m,
156
+ positionTryFallbacks: u = "none",
157
+ right: $,
158
+ top: p
158
159
  }) {
159
- const c = `--${CSS.escape(n)}`, h = l ? y({ gap: r, placement: l }) : d({
160
+ const c = `--${CSS.escape(n)}`, h = l ? P({ gap: r, placement: l }) : y({
160
161
  alignSelf: t,
161
162
  bottom: o,
162
163
  justifySelf: e,
163
164
  left: i,
164
- right: u,
165
- top: $
165
+ right: $,
166
+ top: p
166
167
  });
167
168
  return `
168
169
  #${CSS.escape(n)} {
169
170
  anchor-name: ${c};
170
171
  }
171
172
 
172
- #${CSS.escape(f)} {
173
- position: absolute;
173
+ #${CSS.escape(m)} {
174
+ position: ${f};
174
175
  position-anchor: ${c};
175
- position-try-fallbacks: ${m};
176
+ position-try-fallbacks: ${u};
176
177
  ${a ? `max-width: ${a};` : ""}
177
178
  ${s ? `min-width: ${s};` : ""}
178
179
  ${h}
179
180
  }
180
181
  `;
181
182
  }
182
- function R({
183
+ function T({
183
184
  alignSelf: t,
184
185
  anchorElementId: n,
185
186
  bottom: o,
@@ -189,12 +190,13 @@ function R({
189
190
  maxWidth: a,
190
191
  minWidth: s,
191
192
  placement: l,
192
- positionedElementId: f,
193
- positionTryFallbacks: m = "none",
194
- right: u,
195
- top: $
193
+ position: f,
194
+ positionedElementId: m,
195
+ positionTryFallbacks: u = "none",
196
+ right: $,
197
+ top: p
196
198
  }) {
197
- const c = g(null), h = P({
199
+ const c = b(null), h = k({
198
200
  alignSelf: t,
199
201
  anchorElementId: n,
200
202
  bottom: o,
@@ -204,21 +206,22 @@ function R({
204
206
  maxWidth: a,
205
207
  minWidth: s,
206
208
  placement: l,
207
- positionedElementId: f,
208
- positionTryFallbacks: m,
209
- right: u,
210
- top: $
209
+ position: f,
210
+ positionedElementId: m,
211
+ positionTryFallbacks: u,
212
+ right: $,
213
+ top: p
211
214
  });
212
- return b(
215
+ return S(
213
216
  function() {
214
- c.current && C({ elements: [c.current] });
217
+ c.current && d({ elements: [c.current] });
215
218
  },
216
219
  [h]
217
- ), /* @__PURE__ */ p("style", { ref: c, children: h });
220
+ ), /* @__PURE__ */ g("style", { ref: c, children: h });
218
221
  }
219
222
  export {
220
- R as A,
221
- P as b,
222
- y as m,
223
- j as p
223
+ T as A,
224
+ k as b,
225
+ P as m,
226
+ R as p
224
227
  };
@@ -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-DUQjcwNM.js";
3
+ import { k as r } from "./menu-CP0Bep1V.js";
4
4
  import { s as g } from "./index-AHmiDD3r.js";
5
5
  import { AppSwitcherIcon as Z } from "./icons/app-switcher.js";
6
6
  import "./avatar-DIvtb4yk.js";
7
- import { m as A } from "./top-bar-BnR_HVWD.js";
7
+ import { m as A } from "./top-bar-BvxpBZri.js";
8
8
  import "./icons/chevron-down.js";
9
- import "./tooltip-C2y49rDB.js";
9
+ import "./tooltip-Bj7DqYdo.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 e=require("react/jsx-runtime"),r=require("react"),p=require("./menu-BB1lyDsI.cjs"),d=require("./index-BAGJrh44.cjs"),V=require("./icons/app-switcher.cjs");require("./avatar-DsVPnBXn.cjs");const j=require("./top-bar-CXJfqax_.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
+ "use strict";const e=require("react/jsx-runtime"),r=require("react"),p=require("./menu-C5zczNsx.cjs"),d=require("./index-BAGJrh44.cjs"),V=require("./icons/app-switcher.cjs");require("./avatar-DsVPnBXn.cjs");const j=require("./top-bar-CjUR7fhL.cjs");require("./icons/chevron-down.cjs");require("./tooltip-BU8hYqZ9.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 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),m=require("./index-8ctufnBx.cjs"),d=require("react"),b=require("./index-BAGJrh44.cjs");require("./button-base-BR_9696S.cjs");const w=require("./button-DwYL4ezg.cjs"),J=require("./icons/chevron-left.cjs"),K=require("./icons/chevron-right.cjs"),E=require("./listbox-BGrp52Hs.cjs"),C="el-at-aglance-card",I="el-at-aglance-card-icon",y="el-at-aglance-card-label",L="el-at-aglance-card-description",N="el-at-aglance-card-value";function S({className:e,description:a,displayValue:n,icon:r,label:l,layout:c="vertical",maxWidth:s,minWidth:i,style:o,...A}){return t.jsxs("article",{...A,className:m.cx_default(e,C),"data-layout":c,style:{...o,maxWidth:s,minWidth:i},children:[r&&t.jsx("span",{className:I,children:r}),t.jsx("h1",{className:y,children:l}),a&&t.jsx("p",{className:L,children:a}),t.jsx("p",{className:N,children:n})]})}S.displayName="AtAGlance.Card";const Q="el-at-aglance-anchor-card";function O({"aria-current":e,className:a,description:n,displayValue:r,icon:l,label:c,layout:s="vertical",maxWidth:i,minWidth:o,style:A,...h}){const x=d.useId(),p=d.useId(),g=d.useId();return t.jsxs("a",{...h,"aria-current":e,"aria-labelledby":x,"aria-describedby":`${n?p:""} ${g}`,className:m.cx_default(a,C,Q),"data-layout":s,style:{...A,maxWidth:i,minWidth:o},children:[l&&t.jsx("span",{className:I,children:l}),t.jsx("span",{className:y,id:x,children:c}),n&&t.jsx("span",{className:L,id:p,children:n}),t.jsx("span",{className:N,id:g,children:r})]})}O.displayName="AtAGlance.AnchorCard";const U="el-at-aglance-button-card";function j({"aria-checked":e,"aria-pressed":a,"aria-selected":n,className:r,description:l,displayValue:c,icon:s,label:i,layout:o="vertical",maxWidth:A,minWidth:h,style:x,type:p="button",...g}){const q=d.useId(),H=d.useId(),W=d.useId();return t.jsxs("button",{...g,"aria-checked":e,"aria-pressed":a,"aria-selected":n,"aria-labelledby":q,"aria-describedby":`${l?H:""} ${W}`,className:m.cx_default(r,C,U),"data-layout":o,style:{...x,maxWidth:A,minWidth:h},type:p,children:[s&&t.jsx("span",{className:I,children:s}),t.jsx("span",{className:y,id:q,children:i}),l&&t.jsx("span",{className:L,id:H,children:l}),t.jsx("span",{className:N,id:W,children:c})]})}j.displayName="AtAGlance.ButtonCard";const F="el-at-aglance-grid",T=b.styled_default("li")({name:"ElAtAGlanceGridItem",class:"el-at-aglance-grid-item",propsAsIs:!1});function R({children:e,...a}){return t.jsx(T,{...a,children:e})}R.displayName="AtAGlance.GridItem";function G({autoColumns:e,children:a,className:n,gap:r="--spacing-4",templateColumns:l="1fr 1fr 1fr 1fr 1fr",layout:c="template",role:s,style:i,...o}){const A=s?"div":"ul",h={...c==="auto"&&e?{gridAutoColumns:e}:{},...c==="template"&&l?{gridTemplateColumns:l}:{},"--aag-grid-gap":`var(${r})`};return t.jsx(A,{...o,className:m.cx_default(n,F),"data-layout":c,role:s,style:{...i,...h},children:a})}G.displayName="AtAGlance.Grid";G.Item=R;const V=b.styled_default("div")({name:"ElAtAGlanceCarousel",class:"el-at-aglance-carousel",propsAsIs:!1}),$="el-at-aglance-carousel-grid",v="el-at-aglance-carousel-button";function X(e){const a=document.getElementById(e);if(a){const n=globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches;a.scrollBy({left:-a.clientWidth,behavior:n?"instant":"smooth"})}}function Y(e){const a=document.getElementById(e);if(a){const n=globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches;a.scrollBy({left:a.clientWidth,behavior:n?"instant":"smooth"})}}const z=.1;function Z(e){const{scrollLeft:a,scrollWidth:n,clientWidth:r}=e,l=n-r,c=l>0,s=a<z,i=a>l-z;return{canScrollLeft:c&&!s,canScrollRight:c&&!i}}function k(e){const[a,n]=d.useState({canScrollLeft:!1,canScrollRight:!1}),r=d.useRef(null);return d.useEffect(()=>{const l=document.getElementById(e);if(!l)return;function c(){r.current!==null&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{l&&n(Z({scrollLeft:l.scrollLeft,scrollWidth:l.scrollWidth,clientWidth:l.clientWidth}))})}c();const s=new AbortController;l.addEventListener("scroll",c,{signal:s.signal,passive:!0}),window.addEventListener("resize",c,{signal:s.signal,passive:!0});const i=new ResizeObserver(c);i.observe(l);const o=new MutationObserver(c);return o.observe(l,{childList:!0,subtree:!0}),()=>{s.abort(),i.disconnect(),o.disconnect(),r.current!==null&&cancelAnimationFrame(r.current)}},[e]),a}function M({children:e,className:a,columns:n="1fr",id:r,...l}){const c=d.useId(),s=r??c,{canScrollLeft:i,canScrollRight:o}=k(s);return t.jsxs(V,{"data-can-scroll-left":i,"data-can-scroll-right":o,children:[t.jsx(w.Button,{"aria-label":"Previous",className:v,"aria-disabled":!i,iconLeft:t.jsx(J.ChevronLeftIcon,{}),onClick:()=>X(s),size:"medium",tabIndex:i?0:-1,variant:"secondary"}),t.jsx(G,{...l,autoColumns:n,className:m.cx_default(a,$),id:s,layout:"auto",children:e}),t.jsx(w.Button,{"aria-label":"Next",className:v,"aria-disabled":!o,iconRight:t.jsx(K.ChevronRightIcon,{}),onClick:()=>Y(s),size:"medium",tabIndex:o?0:-1,variant:"secondary"})]})}const D=b.styled_default("header")({name:"ElAtAGlanceHeader",class:"el-at-aglance-header",propsAsIs:!1}),P=b.styled_default("h1")({name:"ElAtAGlanceHeaderTitle",class:"el-at-aglance-header-title",propsAsIs:!1});function B({accessory:e,children:a,...n}){return t.jsxs(D,{...n,children:[t.jsx(P,{children:a}),e]})}B.displayName="AtAGlance.Header";const ee=b.styled_default("section")({name:"ElAtAGlance",class:"el-at-aglance",propsAsIs:!1}),ae="el-at-aglance-listbox-option";function _({className:e,...a}){return t.jsx(E.Listbox.Option,{as:j,...a,className:m.cx_default(ae,e)})}_.displayName="AtAGlance.ListboxOption";function f(e){return t.jsx(E.Listbox,{...e,"aria-orientation":"horizontal",selectAction:"toggle",selectionFollowsFocus:!1})}f.displayName="AtAGlance.Listbox";f.Option=_;f.getValue=E.Listbox.getValue;function u(e){return t.jsx(ee,{...e})}u.AnchorCard=O;u.ButtonCard=j;u.Card=S;u.Carousel=M;u.Grid=G;u.GridItem=G.Item;u.Header=B;u.Listbox=f;u.ListboxOption=f.Option;exports.AtAGlance=u;exports.AtAGlanceAnchorCard=O;exports.AtAGlanceButtonCard=j;exports.AtAGlanceCard=S;exports.AtAGlanceCarousel=M;exports.AtAGlanceGrid=G;exports.AtAGlanceGridItem=R;exports.AtAGlanceHeader=B;exports.AtAGlanceListbox=f;exports.AtAGlanceListboxOption=_;exports.ElAtAGlanceCarousel=V;exports.ElAtAGlanceGridItem=T;exports.ElAtAGlanceHeader=D;exports.ElAtAGlanceHeaderTitle=P;exports.elAtAGlanceCard=C;exports.elAtAGlanceCardDescription=L;exports.elAtAGlanceCardIcon=I;exports.elAtAGlanceCardLabel=y;exports.elAtAGlanceCardValue=N;exports.elAtAGlanceCarouselButton=v;exports.elAtAGlanceCarouselGrid=$;exports.elAtAGlanceGrid=F;exports.useScrollObserver=k;
1
+ "use strict";const t=require("react/jsx-runtime"),m=require("./index-8ctufnBx.cjs"),d=require("react"),b=require("./index-BAGJrh44.cjs");require("./button-base-BR_9696S.cjs");const w=require("./button-DwYL4ezg.cjs"),J=require("./icons/chevron-left.cjs"),K=require("./icons/chevron-right.cjs"),E=require("./listbox-uSbN6RQG.cjs"),C="el-at-aglance-card",I="el-at-aglance-card-icon",y="el-at-aglance-card-label",L="el-at-aglance-card-description",N="el-at-aglance-card-value";function S({className:e,description:a,displayValue:n,icon:r,label:l,layout:c="vertical",maxWidth:s,minWidth:i,style:o,...A}){return t.jsxs("article",{...A,className:m.cx_default(e,C),"data-layout":c,style:{...o,maxWidth:s,minWidth:i},children:[r&&t.jsx("span",{className:I,children:r}),t.jsx("h1",{className:y,children:l}),a&&t.jsx("p",{className:L,children:a}),t.jsx("p",{className:N,children:n})]})}S.displayName="AtAGlance.Card";const Q="el-at-aglance-anchor-card";function O({"aria-current":e,className:a,description:n,displayValue:r,icon:l,label:c,layout:s="vertical",maxWidth:i,minWidth:o,style:A,...h}){const x=d.useId(),p=d.useId(),g=d.useId();return t.jsxs("a",{...h,"aria-current":e,"aria-labelledby":x,"aria-describedby":`${n?p:""} ${g}`,className:m.cx_default(a,C,Q),"data-layout":s,style:{...A,maxWidth:i,minWidth:o},children:[l&&t.jsx("span",{className:I,children:l}),t.jsx("span",{className:y,id:x,children:c}),n&&t.jsx("span",{className:L,id:p,children:n}),t.jsx("span",{className:N,id:g,children:r})]})}O.displayName="AtAGlance.AnchorCard";const U="el-at-aglance-button-card";function j({"aria-checked":e,"aria-pressed":a,"aria-selected":n,className:r,description:l,displayValue:c,icon:s,label:i,layout:o="vertical",maxWidth:A,minWidth:h,style:x,type:p="button",...g}){const q=d.useId(),H=d.useId(),W=d.useId();return t.jsxs("button",{...g,"aria-checked":e,"aria-pressed":a,"aria-selected":n,"aria-labelledby":q,"aria-describedby":`${l?H:""} ${W}`,className:m.cx_default(r,C,U),"data-layout":o,style:{...x,maxWidth:A,minWidth:h},type:p,children:[s&&t.jsx("span",{className:I,children:s}),t.jsx("span",{className:y,id:q,children:i}),l&&t.jsx("span",{className:L,id:H,children:l}),t.jsx("span",{className:N,id:W,children:c})]})}j.displayName="AtAGlance.ButtonCard";const F="el-at-aglance-grid",T=b.styled_default("li")({name:"ElAtAGlanceGridItem",class:"el-at-aglance-grid-item",propsAsIs:!1});function R({children:e,...a}){return t.jsx(T,{...a,children:e})}R.displayName="AtAGlance.GridItem";function G({autoColumns:e,children:a,className:n,gap:r="--spacing-4",templateColumns:l="1fr 1fr 1fr 1fr 1fr",layout:c="template",role:s,style:i,...o}){const A=s?"div":"ul",h={...c==="auto"&&e?{gridAutoColumns:e}:{},...c==="template"&&l?{gridTemplateColumns:l}:{},"--aag-grid-gap":`var(${r})`};return t.jsx(A,{...o,className:m.cx_default(n,F),"data-layout":c,role:s,style:{...i,...h},children:a})}G.displayName="AtAGlance.Grid";G.Item=R;const V=b.styled_default("div")({name:"ElAtAGlanceCarousel",class:"el-at-aglance-carousel",propsAsIs:!1}),$="el-at-aglance-carousel-grid",v="el-at-aglance-carousel-button";function X(e){const a=document.getElementById(e);if(a){const n=globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches;a.scrollBy({left:-a.clientWidth,behavior:n?"instant":"smooth"})}}function Y(e){const a=document.getElementById(e);if(a){const n=globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches;a.scrollBy({left:a.clientWidth,behavior:n?"instant":"smooth"})}}const z=.1;function Z(e){const{scrollLeft:a,scrollWidth:n,clientWidth:r}=e,l=n-r,c=l>0,s=a<z,i=a>l-z;return{canScrollLeft:c&&!s,canScrollRight:c&&!i}}function k(e){const[a,n]=d.useState({canScrollLeft:!1,canScrollRight:!1}),r=d.useRef(null);return d.useEffect(()=>{const l=document.getElementById(e);if(!l)return;function c(){r.current!==null&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{l&&n(Z({scrollLeft:l.scrollLeft,scrollWidth:l.scrollWidth,clientWidth:l.clientWidth}))})}c();const s=new AbortController;l.addEventListener("scroll",c,{signal:s.signal,passive:!0}),window.addEventListener("resize",c,{signal:s.signal,passive:!0});const i=new ResizeObserver(c);i.observe(l);const o=new MutationObserver(c);return o.observe(l,{childList:!0,subtree:!0}),()=>{s.abort(),i.disconnect(),o.disconnect(),r.current!==null&&cancelAnimationFrame(r.current)}},[e]),a}function M({children:e,className:a,columns:n="1fr",id:r,...l}){const c=d.useId(),s=r??c,{canScrollLeft:i,canScrollRight:o}=k(s);return t.jsxs(V,{"data-can-scroll-left":i,"data-can-scroll-right":o,children:[t.jsx(w.Button,{"aria-label":"Previous",className:v,"aria-disabled":!i,iconLeft:t.jsx(J.ChevronLeftIcon,{}),onClick:()=>X(s),size:"medium",tabIndex:i?0:-1,variant:"secondary"}),t.jsx(G,{...l,autoColumns:n,className:m.cx_default(a,$),id:s,layout:"auto",children:e}),t.jsx(w.Button,{"aria-label":"Next",className:v,"aria-disabled":!o,iconRight:t.jsx(K.ChevronRightIcon,{}),onClick:()=>Y(s),size:"medium",tabIndex:o?0:-1,variant:"secondary"})]})}const D=b.styled_default("header")({name:"ElAtAGlanceHeader",class:"el-at-aglance-header",propsAsIs:!1}),P=b.styled_default("h1")({name:"ElAtAGlanceHeaderTitle",class:"el-at-aglance-header-title",propsAsIs:!1});function B({accessory:e,children:a,...n}){return t.jsxs(D,{...n,children:[t.jsx(P,{children:a}),e]})}B.displayName="AtAGlance.Header";const ee=b.styled_default("section")({name:"ElAtAGlance",class:"el-at-aglance",propsAsIs:!1}),ae="el-at-aglance-listbox-option";function _({className:e,...a}){return t.jsx(E.Listbox.Option,{as:j,...a,className:m.cx_default(ae,e)})}_.displayName="AtAGlance.ListboxOption";function f(e){return t.jsx(E.Listbox,{...e,"aria-orientation":"horizontal",selectAction:"toggle",selectionFollowsFocus:!1})}f.displayName="AtAGlance.Listbox";f.Option=_;f.getValue=E.Listbox.getValue;function u(e){return t.jsx(ee,{...e})}u.AnchorCard=O;u.ButtonCard=j;u.Card=S;u.Carousel=M;u.Grid=G;u.GridItem=G.Item;u.Header=B;u.Listbox=f;u.ListboxOption=f.Option;exports.AtAGlance=u;exports.AtAGlanceAnchorCard=O;exports.AtAGlanceButtonCard=j;exports.AtAGlanceCard=S;exports.AtAGlanceCarousel=M;exports.AtAGlanceGrid=G;exports.AtAGlanceGridItem=R;exports.AtAGlanceHeader=B;exports.AtAGlanceListbox=f;exports.AtAGlanceListboxOption=_;exports.ElAtAGlanceCarousel=V;exports.ElAtAGlanceGridItem=T;exports.ElAtAGlanceHeader=D;exports.ElAtAGlanceHeaderTitle=P;exports.elAtAGlanceCard=C;exports.elAtAGlanceCardDescription=L;exports.elAtAGlanceCardIcon=I;exports.elAtAGlanceCardLabel=y;exports.elAtAGlanceCardValue=N;exports.elAtAGlanceCarouselButton=v;exports.elAtAGlanceCarouselGrid=$;exports.elAtAGlanceGrid=F;exports.useScrollObserver=k;
@@ -6,7 +6,7 @@ import "./button-base-BxF98pDk.js";
6
6
  import { B as W } from "./button-DYIdjjTt.js";
7
7
  import { ChevronLeftIcon as _ } from "./icons/chevron-left.js";
8
8
  import { ChevronRightIcon as q } from "./icons/chevron-right.js";
9
- import { d as N } from "./listbox-DaqNCLTr.js";
9
+ import { d as N } from "./listbox-LxpZYH0B.js";
10
10
  const I = "el-at-aglance-card", v = "el-at-aglance-card-icon", L = "el-at-aglance-card-label", E = "el-at-aglance-card-description", S = "el-at-aglance-card-value";
11
11
  function w({
12
12
  className: e,
@@ -1 +1 @@
1
- "use strict";const b=require("react/jsx-runtime"),o=require("./combobox-ykwrJ8qP.cjs");require("./button-base-BR_9696S.cjs");require("react");require("./listbox-BGrp52Hs.cjs");require("./icons/close.cjs");require("./icons/chevron-down.cjs");require("./search-input-BN3bSLzw.cjs");const p=require("./icons/search.cjs");function u({children:i,defaultOptions:n,onClick:a,placeholder:C="Search...",selectionStyle:d="default",...l}){const r=o.Combobox.useButton({onClick:a}),e=o.Combobox.useContext(),c=o.Combobox.useHasSelection(e.listboxId),m=e.multiple||!c,s=!e.multiple&&c;return d==="card"&&s?b.jsx(o.Combobox.Card,{...l,...r,action:b.jsx(o.Combobox.ClearButton,{"aria-controls":e.listboxId,disabled:e.disabled}),size:e.size,children:b.jsx(o.Combobox.SelectedContent,{defaultOptions:n,listboxId:e.listboxId,children:i})}):b.jsx(o.Combobox.Button,{...l,...r,action:s&&b.jsx(o.Combobox.ClearButton,{"aria-controls":e.listboxId,disabled:e.disabled}),leadingIcon:m&&b.jsx(p.SearchIcon,{"aria-hidden":!0}),placeholder:C,size:e.size,children:s&&b.jsx(o.Combobox.SelectedContent,{defaultOptions:n,listboxId:e.listboxId,children:i})})}u.displayName="Autocomplete.Button";function x({closeOnSelection:i="auto",...n}){return b.jsx(o.Combobox.Popup,{...n,closeOnSelection:i})}x.displayName="Autocomplete.Popup";function t(i){return b.jsx(o.Combobox,{...i})}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
+ "use strict";const b=require("react/jsx-runtime"),o=require("./combobox-DEZrdZM-.cjs");require("./button-base-BR_9696S.cjs");require("react");require("./listbox-uSbN6RQG.cjs");require("./icons/close.cjs");require("./icons/chevron-down.cjs");require("./search-input-BN3bSLzw.cjs");const p=require("./icons/search.cjs");function u({children:i,defaultOptions:n,onClick:a,placeholder:C="Search...",selectionStyle:d="default",...l}){const r=o.Combobox.useButton({onClick:a}),e=o.Combobox.useContext(),c=o.Combobox.useHasSelection(e.listboxId),m=e.multiple||!c,s=!e.multiple&&c;return d==="card"&&s?b.jsx(o.Combobox.Card,{...l,...r,action:b.jsx(o.Combobox.ClearButton,{"aria-controls":e.listboxId,disabled:e.disabled}),size:e.size,children:b.jsx(o.Combobox.SelectedContent,{defaultOptions:n,listboxId:e.listboxId,children:i})}):b.jsx(o.Combobox.Button,{...l,...r,action:s&&b.jsx(o.Combobox.ClearButton,{"aria-controls":e.listboxId,disabled:e.disabled}),leadingIcon:m&&b.jsx(p.SearchIcon,{"aria-hidden":!0}),placeholder:C,size:e.size,children:s&&b.jsx(o.Combobox.SelectedContent,{defaultOptions:n,listboxId:e.listboxId,children:i})})}u.displayName="Autocomplete.Button";function x({closeOnSelection:i="auto",...n}){return b.jsx(o.Combobox.Popup,{...n,closeOnSelection:i})}x.displayName="Autocomplete.Popup";function t(i){return b.jsx(o.Combobox,{...i})}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,8 +1,8 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { o as t } from "./combobox-BMcjE-Hz.js";
2
+ import { o as t } from "./combobox-1az8akBD.js";
3
3
  import "./button-base-BxF98pDk.js";
4
4
  import "react";
5
- import "./listbox-DaqNCLTr.js";
5
+ import "./listbox-LxpZYH0B.js";
6
6
  import "./icons/close.js";
7
7
  import "./icons/chevron-down.js";
8
8
  import "./search-input-BlrBgOkw.js";
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("./autocomplete-Cbhl4kCC.cjs"),i=require("./form-control-PgjixMOQ.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
+ "use strict";const e=require("react/jsx-runtime"),o=require("./autocomplete-BXNYfkuS.cjs"),i=require("./form-control-PgjixMOQ.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,5 +1,5 @@
1
1
  import { jsx as e, jsxs as g } from "react/jsx-runtime";
2
- import { A as t } from "./autocomplete-Cjqj5b4A.js";
2
+ import { A as t } from "./autocomplete-BY50e2OI.js";
3
3
  import { a as n } from "./form-control-DiJRG5Z3.js";
4
4
  import { useId as d } from "react";
5
5
  function o({
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),d=require("./index-BAGJrh44.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;
1
+ "use strict";const e=require("react/jsx-runtime"),d=require("./index-BAGJrh44.cjs"),i=require("./tooltip-BU8hYqZ9.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;
@@ -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-AHmiDD3r.js";
3
- import { T as c } from "./tooltip-C2y49rDB.js";
3
+ import { T as c } from "./tooltip-Bj7DqYdo.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",
@@ -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-AHmiDD3r.js";
5
- import { k as M } from "./menu-DUQjcwNM.js";
5
+ import { k as M } from "./menu-CP0Bep1V.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-BAGJrh44.cjs"),v=require("./menu-BB1lyDsI.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
+ "use strict";const e=require("react/jsx-runtime"),n=require("react"),P=require("./index-8ctufnBx.cjs"),l=require("./index-BAGJrh44.cjs"),v=require("./menu-C5zczNsx.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;