@elliemae/pui-app-sdk 5.36.2 → 5.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (837) hide show
  1. package/build/docs/404.html +2 -2
  2. package/build/docs/api/@elliemae/ds-form/index.html +2 -2
  3. package/build/docs/api/classes/Analytics/index.html +2 -2
  4. package/build/docs/api/classes/CMicroAppGuest/index.html +4 -4
  5. package/build/docs/api/classes/CMicroAppHost/index.html +4 -4
  6. package/build/docs/api/classes/ErrorBoundary/index.html +2 -2
  7. package/build/docs/api/functions/AppRoot/index.html +2 -2
  8. package/build/docs/api/functions/Autocomplete/index.html +2 -2
  9. package/build/docs/api/functions/CheckBox/index.html +2 -2
  10. package/build/docs/api/functions/ComboBox/index.html +2 -2
  11. package/build/docs/api/functions/ComboBoxV3/index.html +2 -2
  12. package/build/docs/api/functions/ConnectForm/index.html +2 -2
  13. package/build/docs/api/functions/DateInput/index.html +2 -2
  14. package/build/docs/api/functions/DatePicker/index.html +2 -2
  15. package/build/docs/api/functions/DateRangePicker/index.html +2 -2
  16. package/build/docs/api/functions/DateTimePicker/index.html +2 -2
  17. package/build/docs/api/functions/Form/index.html +2 -2
  18. package/build/docs/api/functions/FormItemLayout/index.html +2 -2
  19. package/build/docs/api/functions/FormLayoutBlockItem/index.html +2 -2
  20. package/build/docs/api/functions/FormSubmitButton/index.html +2 -2
  21. package/build/docs/api/functions/InputMask/index.html +2 -2
  22. package/build/docs/api/functions/InputText/index.html +2 -2
  23. package/build/docs/api/functions/LargeTextBox/index.html +2 -2
  24. package/build/docs/api/functions/MaskedInputText/index.html +2 -2
  25. package/build/docs/api/functions/Page/index.html +2 -2
  26. package/build/docs/api/functions/Radio/index.html +2 -2
  27. package/build/docs/api/functions/RadioGroup/index.html +2 -2
  28. package/build/docs/api/functions/RegisterService/index.html +2 -2
  29. package/build/docs/api/functions/RenderWithStateAddOns/index.html +2 -2
  30. package/build/docs/api/functions/RequireAuth/index.html +2 -2
  31. package/build/docs/api/functions/SessionTimeout/index.html +2 -2
  32. package/build/docs/api/functions/TextBox/index.html +2 -2
  33. package/build/docs/api/functions/Toggle/index.html +2 -2
  34. package/build/docs/api/functions/authSaga/index.html +2 -2
  35. package/build/docs/api/functions/authorize/index.html +2 -2
  36. package/build/docs/api/functions/cleanup/index.html +2 -2
  37. package/build/docs/api/functions/configureStore/index.html +2 -2
  38. package/build/docs/api/functions/createManager/index.html +2 -2
  39. package/build/docs/api/functions/enableReactAppForHostIntegration/index.html +2 -2
  40. package/build/docs/api/functions/fetchHostAppData/index.html +2 -2
  41. package/build/docs/api/functions/fetchUserSettings/index.html +2 -2
  42. package/build/docs/api/functions/getApiActionCreator/index.html +2 -2
  43. package/build/docs/api/functions/getAppConfigValue/index.html +2 -2
  44. package/build/docs/api/functions/getAuthHTTPClient/index.html +2 -2
  45. package/build/docs/api/functions/getAuthorizationHeader/index.html +2 -2
  46. package/build/docs/api/functions/getHTTPClient/index.html +2 -2
  47. package/build/docs/api/functions/getHostAppDataByKey/index.html +2 -2
  48. package/build/docs/api/functions/getLogger/index.html +2 -2
  49. package/build/docs/api/functions/getMicroFrontEndAppConfig/index.html +2 -2
  50. package/build/docs/api/functions/getNavigationLinks/index.html +2 -2
  51. package/build/docs/api/functions/getRedirectUrl/index.html +2 -2
  52. package/build/docs/api/functions/getSelectField/index.html +2 -2
  53. package/build/docs/api/functions/getStore/index.html +2 -2
  54. package/build/docs/api/functions/initServiceWorker/index.html +2 -2
  55. package/build/docs/api/functions/isCIBuild/index.html +2 -2
  56. package/build/docs/api/functions/isProd/index.html +2 -2
  57. package/build/docs/api/functions/isUserAuthorized/index.html +2 -2
  58. package/build/docs/api/functions/listenStorageEvents/index.html +2 -2
  59. package/build/docs/api/functions/loadAppConfig/index.html +2 -2
  60. package/build/docs/api/functions/loadable/index.html +2 -2
  61. package/build/docs/api/functions/login/index.html +2 -2
  62. package/build/docs/api/functions/notifyGuestUnloadComplete/index.html +2 -2
  63. package/build/docs/api/functions/onAuthorizationFailure/index.html +2 -2
  64. package/build/docs/api/functions/onGuestUnloadStart/index.html +2 -2
  65. package/build/docs/api/functions/redactPii/index.html +2 -2
  66. package/build/docs/api/functions/removeDoubleSlash/index.html +2 -2
  67. package/build/docs/api/functions/removeStorageEvents/index.html +2 -2
  68. package/build/docs/api/functions/render/index.html +2 -2
  69. package/build/docs/api/functions/renderHook/index.html +2 -2
  70. package/build/docs/api/functions/renderWithHostData/index.html +2 -2
  71. package/build/docs/api/functions/renderWithRedux/index.html +2 -2
  72. package/build/docs/api/functions/renderWithRouter/index.html +2 -2
  73. package/build/docs/api/functions/renderWithRouterRedux/index.html +2 -2
  74. package/build/docs/api/functions/sdkBaseQuery/index.html +2 -2
  75. package/build/docs/api/functions/sendBAEvent/index.html +2 -2
  76. package/build/docs/api/functions/sendMessageToHost/index.html +2 -2
  77. package/build/docs/api/functions/setAppConfig/index.html +2 -2
  78. package/build/docs/api/functions/setAppConfigValue/index.html +2 -2
  79. package/build/docs/api/functions/setHostAppData/index.html +2 -2
  80. package/build/docs/api/functions/setLoginParams/index.html +2 -2
  81. package/build/docs/api/functions/subscribeToResetSession/index.html +2 -2
  82. package/build/docs/api/functions/subscribeToSessionExpiry/index.html +2 -2
  83. package/build/docs/api/functions/subscribeToSessionExpiryWarning/index.html +2 -2
  84. package/build/docs/api/functions/trackActivity/index.html +2 -2
  85. package/build/docs/api/functions/useAppDispatch/index.html +2 -2
  86. package/build/docs/api/functions/useAppMiddleware/index.html +2 -2
  87. package/build/docs/api/functions/useInjectQuery/index.html +2 -2
  88. package/build/docs/api/functions/useInjectReducer/index.html +2 -2
  89. package/build/docs/api/functions/useInjectSaga/index.html +2 -2
  90. package/build/docs/api/functions/useInjectSideEffect/index.html +2 -2
  91. package/build/docs/api/functions/useMediaQueryList/index.html +2 -2
  92. package/build/docs/api/functions/useStateSelector/index.html +2 -2
  93. package/build/docs/api/functions/useStateSelectorShallow/index.html +2 -2
  94. package/build/docs/api/functions/waitFor/index.html +2 -2
  95. package/build/docs/api/functions/waitForElementToBeRemoved/index.html +2 -2
  96. package/build/docs/api/functions/withAppDecorator/index.html +2 -2
  97. package/build/docs/api/index.html +2 -2
  98. package/build/docs/api/interfaces/AppConfig/index.html +2 -2
  99. package/build/docs/api/interfaces/UseStateSelectorOptions/index.html +2 -2
  100. package/build/docs/api/type-aliases/AppDispatch/index.html +2 -2
  101. package/build/docs/api/type-aliases/AppStore/index.html +2 -2
  102. package/build/docs/api/type-aliases/Await/index.html +2 -2
  103. package/build/docs/api/type-aliases/EMUI/index.html +2 -2
  104. package/build/docs/api/type-aliases/OnHostInitCallback/index.html +2 -2
  105. package/build/docs/api/type-aliases/OnInitCallback/index.html +2 -2
  106. package/build/docs/api/type-aliases/OnMountCallback/index.html +2 -2
  107. package/build/docs/api/type-aliases/OnUnMountCallback/index.html +2 -2
  108. package/build/docs/api/type-aliases/RootState/index.html +2 -2
  109. package/build/docs/api/type-aliases/SelectStateFieldFunction/index.html +2 -2
  110. package/build/docs/api/variables/ErrorToast/index.html +2 -2
  111. package/build/docs/api/variables/GuestMicroApp/index.html +2 -2
  112. package/build/docs/api/variables/MicroApp/index.html +2 -2
  113. package/build/docs/api/variables/MicroIFrameApp/index.html +2 -2
  114. package/build/docs/api/variables/NavigationPrompt/index.html +2 -2
  115. package/build/docs/api/variables/NavigationPromptActions/index.html +2 -2
  116. package/build/docs/api/variables/Themes/index.html +2 -2
  117. package/build/docs/api/variables/VisuallyHidden/index.html +2 -2
  118. package/build/docs/api/variables/WaitMessage/index.html +2 -2
  119. package/build/docs/api/variables/act/index.html +2 -2
  120. package/build/docs/api/variables/ariaLive/index.html +2 -2
  121. package/build/docs/api/variables/auth/index.html +2 -2
  122. package/build/docs/api/variables/authReducer/index.html +2 -2
  123. package/build/docs/api/variables/clearSideEffects/index.html +2 -2
  124. package/build/docs/api/variables/createSideEffect/index.html +2 -2
  125. package/build/docs/api/variables/decorators/index.html +2 -2
  126. package/build/docs/api/variables/endSession/index.html +2 -2
  127. package/build/docs/api/variables/error/index.html +2 -2
  128. package/build/docs/api/variables/errorMiddleware/index.html +2 -2
  129. package/build/docs/api/variables/fireEvent/index.html +2 -2
  130. package/build/docs/api/variables/globalConstants/index.html +2 -2
  131. package/build/docs/api/variables/history/index.html +2 -2
  132. package/build/docs/api/variables/httpClientProps/index.html +2 -2
  133. package/build/docs/api/variables/logout/index.html +2 -2
  134. package/build/docs/api/variables/memoryHistory/index.html +2 -2
  135. package/build/docs/api/variables/removeSideEffect/index.html +2 -2
  136. package/build/docs/api/variables/resetUserIdleTime/index.html +2 -2
  137. package/build/docs/api/variables/screen/index.html +2 -2
  138. package/build/docs/api/variables/startSideEffect/index.html +2 -2
  139. package/build/docs/api/variables/updateBAEventParameters/index.html +2 -2
  140. package/build/docs/api/variables/useAppSelector/index.html +2 -2
  141. package/build/docs/api/variables/waitMessageAction/index.html +2 -2
  142. package/build/docs/api/variables/within/index.html +2 -2
  143. package/build/docs/assets/js/5c5cf8ae.8b63ef97.js +1 -0
  144. package/build/docs/assets/js/f72a372a.95621bd7.js +1 -0
  145. package/build/docs/assets/js/{main.c610e1d3.js → main.97b0cc3c.js} +2 -2
  146. package/build/docs/assets/js/{runtime~main.83819012.js → runtime~main.112dbc24.js} +1 -1
  147. package/build/docs/index.html +2 -2
  148. package/build/docs/usage-guide/index.html +2 -2
  149. package/demo/1993.5439f406.iframe.bundle.js +1 -0
  150. package/demo/1993.5439f406.iframe.bundle.js.br +0 -0
  151. package/demo/1993.5439f406.iframe.bundle.js.gz +0 -0
  152. package/demo/{docs/226.44c17e61978806b46368.manager.bundle.js → 226.c9375b7c30021f046c17.manager.bundle.js} +2 -2
  153. package/demo/226.c9375b7c30021f046c17.manager.bundle.js.br +0 -0
  154. package/demo/226.c9375b7c30021f046c17.manager.bundle.js.gz +0 -0
  155. package/demo/244.256954b6e046eb85f4d4.manager.bundle.js +1168 -0
  156. package/demo/244.256954b6e046eb85f4d4.manager.bundle.js.br +0 -0
  157. package/demo/244.256954b6e046eb85f4d4.manager.bundle.js.gz +0 -0
  158. package/demo/{docs/2776.0afcbff8.iframe.bundle.js → 2776.f375351b.iframe.bundle.js} +4 -4
  159. package/demo/2776.f375351b.iframe.bundle.js.br +0 -0
  160. package/demo/2776.f375351b.iframe.bundle.js.gz +0 -0
  161. package/demo/283.437d564d70acbedd6afc.manager.bundle.js +10 -0
  162. package/demo/283.437d564d70acbedd6afc.manager.bundle.js.br +0 -0
  163. package/demo/283.437d564d70acbedd6afc.manager.bundle.js.gz +0 -0
  164. package/demo/2833.5a9488b5.iframe.bundle.js +142 -0
  165. package/demo/2833.5a9488b5.iframe.bundle.js.br +0 -0
  166. package/demo/2833.5a9488b5.iframe.bundle.js.gz +0 -0
  167. package/demo/2986.ed047c9c.iframe.bundle.js +184 -0
  168. package/demo/2986.ed047c9c.iframe.bundle.js.br +0 -0
  169. package/demo/2986.ed047c9c.iframe.bundle.js.gz +0 -0
  170. package/demo/{docs/633.80336234.iframe.bundle.js → 3421.a5b4cc34.iframe.bundle.js} +2 -2
  171. package/demo/3421.a5b4cc34.iframe.bundle.js.br +0 -0
  172. package/demo/3421.a5b4cc34.iframe.bundle.js.gz +0 -0
  173. package/demo/3444.71dbcf1e.iframe.bundle.js +128 -0
  174. package/demo/3444.71dbcf1e.iframe.bundle.js.br +0 -0
  175. package/demo/3444.71dbcf1e.iframe.bundle.js.gz +0 -0
  176. package/demo/{docs/3782.2340d9ea.iframe.bundle.js → 3782.b5905a0d.iframe.bundle.js} +3 -3
  177. package/demo/3782.b5905a0d.iframe.bundle.js.br +0 -0
  178. package/demo/3782.b5905a0d.iframe.bundle.js.gz +0 -0
  179. package/demo/381.594512ec.iframe.bundle.js +52 -0
  180. package/demo/381.594512ec.iframe.bundle.js.br +0 -0
  181. package/demo/381.594512ec.iframe.bundle.js.gz +0 -0
  182. package/demo/{docs/4065.be52e5c0.iframe.bundle.js → 4065.e5d562cc.iframe.bundle.js} +2 -2
  183. package/demo/4065.e5d562cc.iframe.bundle.js.br +0 -0
  184. package/demo/4065.e5d562cc.iframe.bundle.js.gz +0 -0
  185. package/demo/{9786.94ae8580.iframe.bundle.js → 4175.31cf9668.iframe.bundle.js} +5 -5
  186. package/demo/4175.31cf9668.iframe.bundle.js.br +0 -0
  187. package/demo/4175.31cf9668.iframe.bundle.js.gz +0 -0
  188. package/demo/4288.11f20169.iframe.bundle.js +102 -0
  189. package/demo/4288.11f20169.iframe.bundle.js.br +0 -0
  190. package/demo/4288.11f20169.iframe.bundle.js.gz +0 -0
  191. package/demo/4333.aa9a36b0.iframe.bundle.js +22 -0
  192. package/demo/4333.aa9a36b0.iframe.bundle.js.br +0 -0
  193. package/demo/4333.aa9a36b0.iframe.bundle.js.gz +0 -0
  194. package/demo/453.d2146250.iframe.bundle.js +173 -0
  195. package/demo/453.d2146250.iframe.bundle.js.br +0 -0
  196. package/demo/453.d2146250.iframe.bundle.js.gz +0 -0
  197. package/demo/{7567.f80b04ef.iframe.bundle.js → 4705.4b999e2f.iframe.bundle.js} +6 -6
  198. package/demo/4705.4b999e2f.iframe.bundle.js.br +0 -0
  199. package/demo/4705.4b999e2f.iframe.bundle.js.gz +0 -0
  200. package/demo/4776.8393b941.iframe.bundle.js +882 -0
  201. package/demo/4776.8393b941.iframe.bundle.js.br +0 -0
  202. package/demo/4776.8393b941.iframe.bundle.js.gz +0 -0
  203. package/demo/4793.cae53252.iframe.bundle.js +174 -0
  204. package/demo/4793.cae53252.iframe.bundle.js.br +0 -0
  205. package/demo/4793.cae53252.iframe.bundle.js.gz +0 -0
  206. package/demo/{docs/605.48b486c0.iframe.bundle.js → 510.1c00d497.iframe.bundle.js} +7 -7
  207. package/demo/510.1c00d497.iframe.bundle.js.br +0 -0
  208. package/demo/510.1c00d497.iframe.bundle.js.gz +0 -0
  209. package/demo/{8919.8bb4a8d7.iframe.bundle.js → 6195.570341a5.iframe.bundle.js} +103 -103
  210. package/demo/6195.570341a5.iframe.bundle.js.br +0 -0
  211. package/demo/6195.570341a5.iframe.bundle.js.gz +0 -0
  212. package/demo/6356.c85d62b2.iframe.bundle.js +19035 -0
  213. package/demo/6356.c85d62b2.iframe.bundle.js.br +0 -0
  214. package/demo/6356.c85d62b2.iframe.bundle.js.gz +0 -0
  215. package/demo/8070.093eadd6.iframe.bundle.js +1 -0
  216. package/demo/8070.093eadd6.iframe.bundle.js.br +0 -0
  217. package/demo/8070.093eadd6.iframe.bundle.js.gz +0 -0
  218. package/demo/8283.b79dd21e.iframe.bundle.js +10 -0
  219. package/demo/8283.b79dd21e.iframe.bundle.js.br +0 -0
  220. package/demo/8283.b79dd21e.iframe.bundle.js.gz +0 -0
  221. package/demo/{2916.155884be.iframe.bundle.js → 9488.11fa0de3.iframe.bundle.js} +2 -2
  222. package/demo/9488.11fa0de3.iframe.bundle.js.br +0 -0
  223. package/demo/9488.11fa0de3.iframe.bundle.js.gz +0 -0
  224. package/demo/{2343.6b93e59b.iframe.bundle.js → 9796.4c35adaa.iframe.bundle.js} +23 -23
  225. package/demo/9796.4c35adaa.iframe.bundle.js.br +0 -0
  226. package/demo/9796.4c35adaa.iframe.bundle.js.gz +0 -0
  227. package/demo/9799.827df23b.iframe.bundle.js +2 -0
  228. package/demo/9799.827df23b.iframe.bundle.js.br +0 -0
  229. package/demo/9799.827df23b.iframe.bundle.js.gz +0 -0
  230. package/demo/9852.34fd1cd9.iframe.bundle.js +323 -0
  231. package/demo/9852.34fd1cd9.iframe.bundle.js.br +0 -0
  232. package/demo/9852.34fd1cd9.iframe.bundle.js.gz +0 -0
  233. package/demo/docs/1993.5439f406.iframe.bundle.js +1 -0
  234. package/demo/docs/1993.5439f406.iframe.bundle.js.br +0 -0
  235. package/demo/docs/1993.5439f406.iframe.bundle.js.gz +0 -0
  236. package/demo/{226.44c17e61978806b46368.manager.bundle.js → docs/226.c9375b7c30021f046c17.manager.bundle.js} +2 -2
  237. package/demo/docs/226.c9375b7c30021f046c17.manager.bundle.js.br +0 -0
  238. package/demo/docs/226.c9375b7c30021f046c17.manager.bundle.js.gz +0 -0
  239. package/demo/docs/244.256954b6e046eb85f4d4.manager.bundle.js +1168 -0
  240. package/demo/docs/244.256954b6e046eb85f4d4.manager.bundle.js.br +0 -0
  241. package/demo/docs/244.256954b6e046eb85f4d4.manager.bundle.js.gz +0 -0
  242. package/demo/{2776.0afcbff8.iframe.bundle.js → docs/2776.f375351b.iframe.bundle.js} +4 -4
  243. package/demo/docs/2776.f375351b.iframe.bundle.js.br +0 -0
  244. package/demo/docs/2776.f375351b.iframe.bundle.js.gz +0 -0
  245. package/demo/docs/283.437d564d70acbedd6afc.manager.bundle.js +10 -0
  246. package/demo/docs/283.437d564d70acbedd6afc.manager.bundle.js.br +0 -0
  247. package/demo/docs/283.437d564d70acbedd6afc.manager.bundle.js.gz +0 -0
  248. package/demo/docs/2833.5a9488b5.iframe.bundle.js +142 -0
  249. package/demo/docs/2833.5a9488b5.iframe.bundle.js.br +0 -0
  250. package/demo/docs/2833.5a9488b5.iframe.bundle.js.gz +0 -0
  251. package/demo/docs/2986.ed047c9c.iframe.bundle.js +184 -0
  252. package/demo/docs/2986.ed047c9c.iframe.bundle.js.br +0 -0
  253. package/demo/docs/2986.ed047c9c.iframe.bundle.js.gz +0 -0
  254. package/demo/{633.80336234.iframe.bundle.js → docs/3421.a5b4cc34.iframe.bundle.js} +2 -2
  255. package/demo/docs/3421.a5b4cc34.iframe.bundle.js.br +0 -0
  256. package/demo/docs/3421.a5b4cc34.iframe.bundle.js.gz +0 -0
  257. package/demo/docs/3444.71dbcf1e.iframe.bundle.js +128 -0
  258. package/demo/docs/3444.71dbcf1e.iframe.bundle.js.br +0 -0
  259. package/demo/docs/3444.71dbcf1e.iframe.bundle.js.gz +0 -0
  260. package/demo/{3782.2340d9ea.iframe.bundle.js → docs/3782.b5905a0d.iframe.bundle.js} +3 -3
  261. package/demo/docs/3782.b5905a0d.iframe.bundle.js.br +0 -0
  262. package/demo/docs/3782.b5905a0d.iframe.bundle.js.gz +0 -0
  263. package/demo/docs/381.594512ec.iframe.bundle.js +52 -0
  264. package/demo/docs/381.594512ec.iframe.bundle.js.br +0 -0
  265. package/demo/docs/381.594512ec.iframe.bundle.js.gz +0 -0
  266. package/demo/{4065.be52e5c0.iframe.bundle.js → docs/4065.e5d562cc.iframe.bundle.js} +2 -2
  267. package/demo/docs/4065.e5d562cc.iframe.bundle.js.br +0 -0
  268. package/demo/docs/4065.e5d562cc.iframe.bundle.js.gz +0 -0
  269. package/demo/docs/{9786.94ae8580.iframe.bundle.js → 4175.31cf9668.iframe.bundle.js} +5 -5
  270. package/demo/docs/4175.31cf9668.iframe.bundle.js.br +0 -0
  271. package/demo/docs/4175.31cf9668.iframe.bundle.js.gz +0 -0
  272. package/demo/docs/4288.11f20169.iframe.bundle.js +102 -0
  273. package/demo/docs/4288.11f20169.iframe.bundle.js.br +0 -0
  274. package/demo/docs/4288.11f20169.iframe.bundle.js.gz +0 -0
  275. package/demo/docs/4333.aa9a36b0.iframe.bundle.js +22 -0
  276. package/demo/docs/4333.aa9a36b0.iframe.bundle.js.br +0 -0
  277. package/demo/docs/4333.aa9a36b0.iframe.bundle.js.gz +0 -0
  278. package/demo/docs/453.d2146250.iframe.bundle.js +173 -0
  279. package/demo/docs/453.d2146250.iframe.bundle.js.br +0 -0
  280. package/demo/docs/453.d2146250.iframe.bundle.js.gz +0 -0
  281. package/demo/docs/{7567.f80b04ef.iframe.bundle.js → 4705.4b999e2f.iframe.bundle.js} +6 -6
  282. package/demo/docs/4705.4b999e2f.iframe.bundle.js.br +0 -0
  283. package/demo/docs/4705.4b999e2f.iframe.bundle.js.gz +0 -0
  284. package/demo/docs/4776.8393b941.iframe.bundle.js +882 -0
  285. package/demo/docs/4776.8393b941.iframe.bundle.js.br +0 -0
  286. package/demo/docs/4776.8393b941.iframe.bundle.js.gz +0 -0
  287. package/demo/docs/4793.cae53252.iframe.bundle.js +174 -0
  288. package/demo/docs/4793.cae53252.iframe.bundle.js.br +0 -0
  289. package/demo/docs/4793.cae53252.iframe.bundle.js.gz +0 -0
  290. package/demo/{605.48b486c0.iframe.bundle.js → docs/510.1c00d497.iframe.bundle.js} +7 -7
  291. package/demo/docs/510.1c00d497.iframe.bundle.js.br +0 -0
  292. package/demo/docs/510.1c00d497.iframe.bundle.js.gz +0 -0
  293. package/demo/docs/{8919.8bb4a8d7.iframe.bundle.js → 6195.570341a5.iframe.bundle.js} +103 -103
  294. package/demo/docs/6195.570341a5.iframe.bundle.js.br +0 -0
  295. package/demo/docs/6195.570341a5.iframe.bundle.js.gz +0 -0
  296. package/demo/docs/6356.c85d62b2.iframe.bundle.js +19035 -0
  297. package/demo/docs/6356.c85d62b2.iframe.bundle.js.br +0 -0
  298. package/demo/docs/6356.c85d62b2.iframe.bundle.js.gz +0 -0
  299. package/demo/docs/8070.093eadd6.iframe.bundle.js +1 -0
  300. package/demo/docs/8070.093eadd6.iframe.bundle.js.br +0 -0
  301. package/demo/docs/8070.093eadd6.iframe.bundle.js.gz +0 -0
  302. package/demo/docs/8283.b79dd21e.iframe.bundle.js +10 -0
  303. package/demo/docs/8283.b79dd21e.iframe.bundle.js.br +0 -0
  304. package/demo/docs/8283.b79dd21e.iframe.bundle.js.gz +0 -0
  305. package/demo/docs/{2916.155884be.iframe.bundle.js → 9488.11fa0de3.iframe.bundle.js} +2 -2
  306. package/demo/docs/9488.11fa0de3.iframe.bundle.js.br +0 -0
  307. package/demo/docs/9488.11fa0de3.iframe.bundle.js.gz +0 -0
  308. package/demo/docs/{2343.6b93e59b.iframe.bundle.js → 9796.4c35adaa.iframe.bundle.js} +23 -23
  309. package/demo/docs/9796.4c35adaa.iframe.bundle.js.br +0 -0
  310. package/demo/docs/9796.4c35adaa.iframe.bundle.js.gz +0 -0
  311. package/demo/docs/9799.827df23b.iframe.bundle.js +2 -0
  312. package/demo/docs/9799.827df23b.iframe.bundle.js.br +0 -0
  313. package/demo/docs/9799.827df23b.iframe.bundle.js.gz +0 -0
  314. package/demo/docs/9852.34fd1cd9.iframe.bundle.js +323 -0
  315. package/demo/docs/9852.34fd1cd9.iframe.bundle.js.br +0 -0
  316. package/demo/docs/9852.34fd1cd9.iframe.bundle.js.gz +0 -0
  317. package/demo/docs/iframe.html +1 -1
  318. package/demo/docs/index.html +1 -1
  319. package/demo/docs/main.93c8975a2a6b00138ca7.manager.bundle.js +1 -0
  320. package/demo/docs/main.93c8975a2a6b00138ca7.manager.bundle.js.br +0 -0
  321. package/demo/docs/main.93c8975a2a6b00138ca7.manager.bundle.js.gz +0 -0
  322. package/demo/docs/main.ad56ead4.iframe.bundle.js +5 -0
  323. package/demo/docs/main.ad56ead4.iframe.bundle.js.br +0 -0
  324. package/demo/docs/main.ad56ead4.iframe.bundle.js.gz +0 -0
  325. package/demo/docs/project.json +1 -1
  326. package/demo/docs/runtime~main.0302448f.iframe.bundle.js +2 -0
  327. package/demo/docs/runtime~main.0302448f.iframe.bundle.js.br +0 -0
  328. package/demo/docs/runtime~main.0302448f.iframe.bundle.js.gz +0 -0
  329. package/demo/docs/{runtime~main.72e00e51fcc222b87b36.manager.bundle.js → runtime~main.ee647e506e873a47d732.manager.bundle.js} +1 -1
  330. package/demo/docs/runtime~main.ee647e506e873a47d732.manager.bundle.js.br +0 -0
  331. package/demo/docs/runtime~main.ee647e506e873a47d732.manager.bundle.js.gz +0 -0
  332. package/demo/docs/{view-breakpoint-index-stories.ae7f88ff.iframe.bundle.js → view-breakpoint-index-stories.1ec1361b.iframe.bundle.js} +1 -1
  333. package/demo/docs/view-breakpoint-index-stories.1ec1361b.iframe.bundle.js.br +0 -0
  334. package/demo/docs/view-breakpoint-index-stories.1ec1361b.iframe.bundle.js.gz +0 -0
  335. package/demo/{view-error-toast-index-stories.f713b876.iframe.bundle.js → docs/view-error-toast-index-stories.d22a7a17.iframe.bundle.js} +1 -1
  336. package/demo/docs/view-error-toast-index-stories.d22a7a17.iframe.bundle.js.br +0 -0
  337. package/demo/docs/view-error-toast-index-stories.d22a7a17.iframe.bundle.js.gz +0 -0
  338. package/demo/docs/{view-fields-autocomplete-advanced-autocomplete-stories.c485b308.iframe.bundle.js → view-fields-autocomplete-advanced-autocomplete-stories.bd7ba693.iframe.bundle.js} +2 -2
  339. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.bd7ba693.iframe.bundle.js.br +0 -0
  340. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.bd7ba693.iframe.bundle.js.gz +0 -0
  341. package/demo/{view-fields-autocomplete-async-suggestions-autocomplete-stories.951ff1de.iframe.bundle.js → docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.1d58422d.iframe.bundle.js} +2 -2
  342. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.1d58422d.iframe.bundle.js.br +0 -0
  343. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.1d58422d.iframe.bundle.js.gz +0 -0
  344. package/demo/docs/{view-fields-autocomplete-index-stories.0c712f85.iframe.bundle.js → view-fields-autocomplete-index-stories.b15ef6c9.iframe.bundle.js} +2 -2
  345. package/demo/docs/view-fields-autocomplete-index-stories.b15ef6c9.iframe.bundle.js.br +0 -0
  346. package/demo/docs/view-fields-autocomplete-index-stories.b15ef6c9.iframe.bundle.js.gz +0 -0
  347. package/demo/docs/{view-fields-check-box-index-stories.8d71013f.iframe.bundle.js → view-fields-check-box-index-stories.a6d45763.iframe.bundle.js} +2 -2
  348. package/demo/docs/view-fields-check-box-index-stories.a6d45763.iframe.bundle.js.br +0 -0
  349. package/demo/docs/view-fields-check-box-index-stories.a6d45763.iframe.bundle.js.gz +0 -0
  350. package/demo/{view-fields-check-box-set-value-stories.6cbc9dd8.iframe.bundle.js → docs/view-fields-check-box-set-value-stories.541f1b88.iframe.bundle.js} +2 -2
  351. package/demo/docs/view-fields-check-box-set-value-stories.541f1b88.iframe.bundle.js.br +0 -0
  352. package/demo/docs/view-fields-check-box-set-value-stories.541f1b88.iframe.bundle.js.gz +0 -0
  353. package/demo/{view-fields-combo-box-index-stories.0f9f07da.iframe.bundle.js → docs/view-fields-combo-box-index-stories.eff47c39.iframe.bundle.js} +2 -2
  354. package/demo/docs/view-fields-combo-box-index-stories.eff47c39.iframe.bundle.js.br +0 -0
  355. package/demo/docs/view-fields-combo-box-index-stories.eff47c39.iframe.bundle.js.gz +0 -0
  356. package/demo/docs/{view-fields-combo-box-v3-index-stories.83bbfd34.iframe.bundle.js → view-fields-combo-box-v3-index-stories.93e5bc9e.iframe.bundle.js} +2 -2
  357. package/demo/docs/view-fields-combo-box-v3-index-stories.93e5bc9e.iframe.bundle.js.br +0 -0
  358. package/demo/docs/view-fields-combo-box-v3-index-stories.93e5bc9e.iframe.bundle.js.gz +0 -0
  359. package/demo/docs/view-fields-date-input-index-stories.bc75ddbd.iframe.bundle.js +189 -0
  360. package/demo/docs/view-fields-date-input-index-stories.bc75ddbd.iframe.bundle.js.br +0 -0
  361. package/demo/docs/view-fields-date-input-index-stories.bc75ddbd.iframe.bundle.js.gz +0 -0
  362. package/demo/docs/view-fields-date-picker-index-stories.db17df62.iframe.bundle.js +189 -0
  363. package/demo/docs/view-fields-date-picker-index-stories.db17df62.iframe.bundle.js.br +0 -0
  364. package/demo/docs/view-fields-date-picker-index-stories.db17df62.iframe.bundle.js.gz +0 -0
  365. package/demo/{view-fields-date-range-picker-index-stories.2dc60206.iframe.bundle.js → docs/view-fields-date-range-picker-index-stories.6bcd8c38.iframe.bundle.js} +2 -2
  366. package/demo/docs/view-fields-date-range-picker-index-stories.6bcd8c38.iframe.bundle.js.br +0 -0
  367. package/demo/docs/view-fields-date-range-picker-index-stories.6bcd8c38.iframe.bundle.js.gz +0 -0
  368. package/demo/{view-fields-date-time-picker-index-stories.609914f5.iframe.bundle.js → docs/view-fields-date-time-picker-index-stories.20425d98.iframe.bundle.js} +2 -2
  369. package/demo/docs/view-fields-date-time-picker-index-stories.20425d98.iframe.bundle.js.br +0 -0
  370. package/demo/docs/view-fields-date-time-picker-index-stories.20425d98.iframe.bundle.js.gz +0 -0
  371. package/demo/{view-fields-form-item-layout-index-stories.62838f98.iframe.bundle.js → docs/view-fields-form-item-layout-index-stories.4a2b801b.iframe.bundle.js} +2 -2
  372. package/demo/docs/view-fields-form-item-layout-index-stories.4a2b801b.iframe.bundle.js.br +0 -0
  373. package/demo/docs/view-fields-form-item-layout-index-stories.4a2b801b.iframe.bundle.js.gz +0 -0
  374. package/demo/docs/view-fields-form-layout-block-item-index-stories.7032be1f.iframe.bundle.js +266 -0
  375. package/demo/docs/view-fields-form-layout-block-item-index-stories.7032be1f.iframe.bundle.js.br +0 -0
  376. package/demo/docs/view-fields-form-layout-block-item-index-stories.7032be1f.iframe.bundle.js.gz +0 -0
  377. package/demo/docs/{view-fields-input-mask-index-stories.38198ecb.iframe.bundle.js → view-fields-input-mask-index-stories.4a1fbd54.iframe.bundle.js} +2 -2
  378. package/demo/docs/view-fields-input-mask-index-stories.4a1fbd54.iframe.bundle.js.br +0 -0
  379. package/demo/docs/view-fields-input-mask-index-stories.4a1fbd54.iframe.bundle.js.gz +0 -0
  380. package/demo/{view-fields-input-text-index-stories.da5b7794.iframe.bundle.js → docs/view-fields-input-text-index-stories.fc78135c.iframe.bundle.js} +2 -2
  381. package/demo/docs/view-fields-input-text-index-stories.fc78135c.iframe.bundle.js.br +0 -0
  382. package/demo/docs/view-fields-input-text-index-stories.fc78135c.iframe.bundle.js.gz +0 -0
  383. package/demo/docs/view-fields-large-text-box-index-stories.432becf7.iframe.bundle.js +254 -0
  384. package/demo/docs/view-fields-large-text-box-index-stories.432becf7.iframe.bundle.js.br +0 -0
  385. package/demo/docs/view-fields-large-text-box-index-stories.432becf7.iframe.bundle.js.gz +0 -0
  386. package/demo/docs/{view-fields-masked-input-text-with-money-mask-stories.7eff06e2.iframe.bundle.js → view-fields-masked-input-text-with-money-mask-stories.b4d8fb33.iframe.bundle.js} +2 -2
  387. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.b4d8fb33.iframe.bundle.js.br +0 -0
  388. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.b4d8fb33.iframe.bundle.js.gz +0 -0
  389. package/demo/{view-fields-masked-input-text-with-percentage-mask-stories.ce001747.iframe.bundle.js → docs/view-fields-masked-input-text-with-percentage-mask-stories.48c4df49.iframe.bundle.js} +2 -2
  390. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.48c4df49.iframe.bundle.js.br +0 -0
  391. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.48c4df49.iframe.bundle.js.gz +0 -0
  392. package/demo/{view-fields-radio-group-index-stories.41231f7f.iframe.bundle.js → docs/view-fields-radio-group-index-stories.e2c8cc6c.iframe.bundle.js} +2 -2
  393. package/demo/docs/view-fields-radio-group-index-stories.e2c8cc6c.iframe.bundle.js.br +0 -0
  394. package/demo/docs/view-fields-radio-group-index-stories.e2c8cc6c.iframe.bundle.js.gz +0 -0
  395. package/demo/{view-fields-radio-index-stories.1fdf3fb1.iframe.bundle.js → docs/view-fields-radio-index-stories.78b2b7b1.iframe.bundle.js} +9 -9
  396. package/demo/docs/view-fields-radio-index-stories.78b2b7b1.iframe.bundle.js.br +0 -0
  397. package/demo/docs/view-fields-radio-index-stories.78b2b7b1.iframe.bundle.js.gz +0 -0
  398. package/demo/docs/{view-fields-radio-set-value-stories.ef03f732.iframe.bundle.js → view-fields-radio-set-value-stories.10abcf04.iframe.bundle.js} +9 -9
  399. package/demo/docs/view-fields-radio-set-value-stories.10abcf04.iframe.bundle.js.br +0 -0
  400. package/demo/docs/view-fields-radio-set-value-stories.10abcf04.iframe.bundle.js.gz +0 -0
  401. package/demo/docs/view-fields-text-box-index-stories.c863f3d0.iframe.bundle.js +258 -0
  402. package/demo/docs/view-fields-text-box-index-stories.c863f3d0.iframe.bundle.js.br +0 -0
  403. package/demo/docs/view-fields-text-box-index-stories.c863f3d0.iframe.bundle.js.gz +0 -0
  404. package/demo/{view-fields-toggle-index-stories.28cd06c6.iframe.bundle.js → docs/view-fields-toggle-index-stories.e982ba25.iframe.bundle.js} +2 -2
  405. package/demo/docs/view-fields-toggle-index-stories.e982ba25.iframe.bundle.js.br +0 -0
  406. package/demo/docs/view-fields-toggle-index-stories.e982ba25.iframe.bundle.js.gz +0 -0
  407. package/demo/{view-form-index-stories.c755f338.iframe.bundle.js → docs/view-form-index-stories.81642731.iframe.bundle.js} +2 -2
  408. package/demo/docs/view-form-index-stories.81642731.iframe.bundle.js.br +0 -0
  409. package/demo/docs/view-form-index-stories.81642731.iframe.bundle.js.gz +0 -0
  410. package/demo/docs/{view-form-usecases-stories.f0193091.iframe.bundle.js → view-form-usecases-stories.55318d0f.iframe.bundle.js} +1 -1
  411. package/demo/docs/view-form-usecases-stories.55318d0f.iframe.bundle.js.br +0 -0
  412. package/demo/docs/view-form-usecases-stories.55318d0f.iframe.bundle.js.gz +0 -0
  413. package/demo/{view-intro-stories-mdx.57ddd61c.iframe.bundle.js → docs/view-intro-stories-mdx.273180e0.iframe.bundle.js} +1 -1
  414. package/demo/docs/view-intro-stories-mdx.273180e0.iframe.bundle.js.br +0 -0
  415. package/demo/docs/view-intro-stories-mdx.273180e0.iframe.bundle.js.gz +0 -0
  416. package/demo/{view-modals-error-index-stories.33a22c5c.iframe.bundle.js → docs/view-modals-error-index-stories.d8887a95.iframe.bundle.js} +1 -1
  417. package/demo/docs/view-modals-error-index-stories.d8887a95.iframe.bundle.js.br +0 -0
  418. package/demo/docs/view-modals-error-index-stories.d8887a95.iframe.bundle.js.gz +0 -0
  419. package/demo/{view-modals-navigation-prompt-index-stories.e9b6cb80.iframe.bundle.js → docs/view-modals-navigation-prompt-index-stories.788d6966.iframe.bundle.js} +1 -1
  420. package/demo/docs/view-modals-navigation-prompt-index-stories.788d6966.iframe.bundle.js.br +0 -0
  421. package/demo/docs/view-modals-navigation-prompt-index-stories.788d6966.iframe.bundle.js.gz +0 -0
  422. package/demo/iframe.html +1 -1
  423. package/demo/index.html +1 -1
  424. package/demo/main.93c8975a2a6b00138ca7.manager.bundle.js +1 -0
  425. package/demo/main.93c8975a2a6b00138ca7.manager.bundle.js.br +0 -0
  426. package/demo/main.93c8975a2a6b00138ca7.manager.bundle.js.gz +0 -0
  427. package/demo/main.ad56ead4.iframe.bundle.js +5 -0
  428. package/demo/main.ad56ead4.iframe.bundle.js.br +0 -0
  429. package/demo/main.ad56ead4.iframe.bundle.js.gz +0 -0
  430. package/demo/project.json +1 -1
  431. package/demo/runtime~main.0302448f.iframe.bundle.js +2 -0
  432. package/demo/runtime~main.0302448f.iframe.bundle.js.br +0 -0
  433. package/demo/runtime~main.0302448f.iframe.bundle.js.gz +0 -0
  434. package/demo/{runtime~main.72e00e51fcc222b87b36.manager.bundle.js → runtime~main.ee647e506e873a47d732.manager.bundle.js} +1 -1
  435. package/demo/runtime~main.ee647e506e873a47d732.manager.bundle.js.br +0 -0
  436. package/demo/runtime~main.ee647e506e873a47d732.manager.bundle.js.gz +0 -0
  437. package/demo/{view-breakpoint-index-stories.ae7f88ff.iframe.bundle.js → view-breakpoint-index-stories.1ec1361b.iframe.bundle.js} +1 -1
  438. package/demo/view-breakpoint-index-stories.1ec1361b.iframe.bundle.js.br +0 -0
  439. package/demo/view-breakpoint-index-stories.1ec1361b.iframe.bundle.js.gz +0 -0
  440. package/demo/{docs/view-error-toast-index-stories.f713b876.iframe.bundle.js → view-error-toast-index-stories.d22a7a17.iframe.bundle.js} +1 -1
  441. package/demo/view-error-toast-index-stories.d22a7a17.iframe.bundle.js.br +0 -0
  442. package/demo/view-error-toast-index-stories.d22a7a17.iframe.bundle.js.gz +0 -0
  443. package/demo/{view-fields-autocomplete-advanced-autocomplete-stories.c485b308.iframe.bundle.js → view-fields-autocomplete-advanced-autocomplete-stories.bd7ba693.iframe.bundle.js} +2 -2
  444. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.bd7ba693.iframe.bundle.js.br +0 -0
  445. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.bd7ba693.iframe.bundle.js.gz +0 -0
  446. package/demo/{docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.951ff1de.iframe.bundle.js → view-fields-autocomplete-async-suggestions-autocomplete-stories.1d58422d.iframe.bundle.js} +2 -2
  447. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.1d58422d.iframe.bundle.js.br +0 -0
  448. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.1d58422d.iframe.bundle.js.gz +0 -0
  449. package/demo/{view-fields-autocomplete-index-stories.0c712f85.iframe.bundle.js → view-fields-autocomplete-index-stories.b15ef6c9.iframe.bundle.js} +2 -2
  450. package/demo/view-fields-autocomplete-index-stories.b15ef6c9.iframe.bundle.js.br +0 -0
  451. package/demo/view-fields-autocomplete-index-stories.b15ef6c9.iframe.bundle.js.gz +0 -0
  452. package/demo/{view-fields-check-box-index-stories.8d71013f.iframe.bundle.js → view-fields-check-box-index-stories.a6d45763.iframe.bundle.js} +2 -2
  453. package/demo/view-fields-check-box-index-stories.a6d45763.iframe.bundle.js.br +0 -0
  454. package/demo/view-fields-check-box-index-stories.a6d45763.iframe.bundle.js.gz +0 -0
  455. package/demo/{docs/view-fields-check-box-set-value-stories.6cbc9dd8.iframe.bundle.js → view-fields-check-box-set-value-stories.541f1b88.iframe.bundle.js} +2 -2
  456. package/demo/view-fields-check-box-set-value-stories.541f1b88.iframe.bundle.js.br +0 -0
  457. package/demo/view-fields-check-box-set-value-stories.541f1b88.iframe.bundle.js.gz +0 -0
  458. package/demo/{docs/view-fields-combo-box-index-stories.0f9f07da.iframe.bundle.js → view-fields-combo-box-index-stories.eff47c39.iframe.bundle.js} +2 -2
  459. package/demo/view-fields-combo-box-index-stories.eff47c39.iframe.bundle.js.br +0 -0
  460. package/demo/view-fields-combo-box-index-stories.eff47c39.iframe.bundle.js.gz +0 -0
  461. package/demo/{view-fields-combo-box-v3-index-stories.83bbfd34.iframe.bundle.js → view-fields-combo-box-v3-index-stories.93e5bc9e.iframe.bundle.js} +2 -2
  462. package/demo/view-fields-combo-box-v3-index-stories.93e5bc9e.iframe.bundle.js.br +0 -0
  463. package/demo/view-fields-combo-box-v3-index-stories.93e5bc9e.iframe.bundle.js.gz +0 -0
  464. package/demo/view-fields-date-input-index-stories.bc75ddbd.iframe.bundle.js +189 -0
  465. package/demo/view-fields-date-input-index-stories.bc75ddbd.iframe.bundle.js.br +0 -0
  466. package/demo/view-fields-date-input-index-stories.bc75ddbd.iframe.bundle.js.gz +0 -0
  467. package/demo/view-fields-date-picker-index-stories.db17df62.iframe.bundle.js +189 -0
  468. package/demo/view-fields-date-picker-index-stories.db17df62.iframe.bundle.js.br +0 -0
  469. package/demo/view-fields-date-picker-index-stories.db17df62.iframe.bundle.js.gz +0 -0
  470. package/demo/{docs/view-fields-date-range-picker-index-stories.2dc60206.iframe.bundle.js → view-fields-date-range-picker-index-stories.6bcd8c38.iframe.bundle.js} +2 -2
  471. package/demo/view-fields-date-range-picker-index-stories.6bcd8c38.iframe.bundle.js.br +0 -0
  472. package/demo/view-fields-date-range-picker-index-stories.6bcd8c38.iframe.bundle.js.gz +0 -0
  473. package/demo/{docs/view-fields-date-time-picker-index-stories.609914f5.iframe.bundle.js → view-fields-date-time-picker-index-stories.20425d98.iframe.bundle.js} +2 -2
  474. package/demo/view-fields-date-time-picker-index-stories.20425d98.iframe.bundle.js.br +0 -0
  475. package/demo/view-fields-date-time-picker-index-stories.20425d98.iframe.bundle.js.gz +0 -0
  476. package/demo/{docs/view-fields-form-item-layout-index-stories.62838f98.iframe.bundle.js → view-fields-form-item-layout-index-stories.4a2b801b.iframe.bundle.js} +2 -2
  477. package/demo/view-fields-form-item-layout-index-stories.4a2b801b.iframe.bundle.js.br +0 -0
  478. package/demo/view-fields-form-item-layout-index-stories.4a2b801b.iframe.bundle.js.gz +0 -0
  479. package/demo/view-fields-form-layout-block-item-index-stories.7032be1f.iframe.bundle.js +266 -0
  480. package/demo/view-fields-form-layout-block-item-index-stories.7032be1f.iframe.bundle.js.br +0 -0
  481. package/demo/view-fields-form-layout-block-item-index-stories.7032be1f.iframe.bundle.js.gz +0 -0
  482. package/demo/{view-fields-input-mask-index-stories.38198ecb.iframe.bundle.js → view-fields-input-mask-index-stories.4a1fbd54.iframe.bundle.js} +2 -2
  483. package/demo/view-fields-input-mask-index-stories.4a1fbd54.iframe.bundle.js.br +0 -0
  484. package/demo/view-fields-input-mask-index-stories.4a1fbd54.iframe.bundle.js.gz +0 -0
  485. package/demo/{docs/view-fields-input-text-index-stories.da5b7794.iframe.bundle.js → view-fields-input-text-index-stories.fc78135c.iframe.bundle.js} +2 -2
  486. package/demo/view-fields-input-text-index-stories.fc78135c.iframe.bundle.js.br +0 -0
  487. package/demo/view-fields-input-text-index-stories.fc78135c.iframe.bundle.js.gz +0 -0
  488. package/demo/view-fields-large-text-box-index-stories.432becf7.iframe.bundle.js +254 -0
  489. package/demo/view-fields-large-text-box-index-stories.432becf7.iframe.bundle.js.br +0 -0
  490. package/demo/view-fields-large-text-box-index-stories.432becf7.iframe.bundle.js.gz +0 -0
  491. package/demo/{view-fields-masked-input-text-with-money-mask-stories.7eff06e2.iframe.bundle.js → view-fields-masked-input-text-with-money-mask-stories.b4d8fb33.iframe.bundle.js} +2 -2
  492. package/demo/view-fields-masked-input-text-with-money-mask-stories.b4d8fb33.iframe.bundle.js.br +0 -0
  493. package/demo/view-fields-masked-input-text-with-money-mask-stories.b4d8fb33.iframe.bundle.js.gz +0 -0
  494. package/demo/{docs/view-fields-masked-input-text-with-percentage-mask-stories.ce001747.iframe.bundle.js → view-fields-masked-input-text-with-percentage-mask-stories.48c4df49.iframe.bundle.js} +2 -2
  495. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.48c4df49.iframe.bundle.js.br +0 -0
  496. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.48c4df49.iframe.bundle.js.gz +0 -0
  497. package/demo/{docs/view-fields-radio-group-index-stories.41231f7f.iframe.bundle.js → view-fields-radio-group-index-stories.e2c8cc6c.iframe.bundle.js} +2 -2
  498. package/demo/view-fields-radio-group-index-stories.e2c8cc6c.iframe.bundle.js.br +0 -0
  499. package/demo/view-fields-radio-group-index-stories.e2c8cc6c.iframe.bundle.js.gz +0 -0
  500. package/demo/{docs/view-fields-radio-index-stories.1fdf3fb1.iframe.bundle.js → view-fields-radio-index-stories.78b2b7b1.iframe.bundle.js} +9 -9
  501. package/demo/view-fields-radio-index-stories.78b2b7b1.iframe.bundle.js.br +0 -0
  502. package/demo/view-fields-radio-index-stories.78b2b7b1.iframe.bundle.js.gz +0 -0
  503. package/demo/{view-fields-radio-set-value-stories.ef03f732.iframe.bundle.js → view-fields-radio-set-value-stories.10abcf04.iframe.bundle.js} +9 -9
  504. package/demo/view-fields-radio-set-value-stories.10abcf04.iframe.bundle.js.br +0 -0
  505. package/demo/view-fields-radio-set-value-stories.10abcf04.iframe.bundle.js.gz +0 -0
  506. package/demo/view-fields-text-box-index-stories.c863f3d0.iframe.bundle.js +258 -0
  507. package/demo/view-fields-text-box-index-stories.c863f3d0.iframe.bundle.js.br +0 -0
  508. package/demo/view-fields-text-box-index-stories.c863f3d0.iframe.bundle.js.gz +0 -0
  509. package/demo/{docs/view-fields-toggle-index-stories.28cd06c6.iframe.bundle.js → view-fields-toggle-index-stories.e982ba25.iframe.bundle.js} +2 -2
  510. package/demo/view-fields-toggle-index-stories.e982ba25.iframe.bundle.js.br +0 -0
  511. package/demo/view-fields-toggle-index-stories.e982ba25.iframe.bundle.js.gz +0 -0
  512. package/demo/{docs/view-form-index-stories.c755f338.iframe.bundle.js → view-form-index-stories.81642731.iframe.bundle.js} +2 -2
  513. package/demo/view-form-index-stories.81642731.iframe.bundle.js.br +0 -0
  514. package/demo/view-form-index-stories.81642731.iframe.bundle.js.gz +0 -0
  515. package/demo/{view-form-usecases-stories.f0193091.iframe.bundle.js → view-form-usecases-stories.55318d0f.iframe.bundle.js} +1 -1
  516. package/demo/view-form-usecases-stories.55318d0f.iframe.bundle.js.br +0 -0
  517. package/demo/view-form-usecases-stories.55318d0f.iframe.bundle.js.gz +0 -0
  518. package/demo/{docs/view-intro-stories-mdx.57ddd61c.iframe.bundle.js → view-intro-stories-mdx.273180e0.iframe.bundle.js} +1 -1
  519. package/demo/view-intro-stories-mdx.273180e0.iframe.bundle.js.br +0 -0
  520. package/demo/view-intro-stories-mdx.273180e0.iframe.bundle.js.gz +0 -0
  521. package/demo/{docs/view-modals-error-index-stories.33a22c5c.iframe.bundle.js → view-modals-error-index-stories.d8887a95.iframe.bundle.js} +1 -1
  522. package/demo/view-modals-error-index-stories.d8887a95.iframe.bundle.js.br +0 -0
  523. package/demo/view-modals-error-index-stories.d8887a95.iframe.bundle.js.gz +0 -0
  524. package/demo/{docs/view-modals-navigation-prompt-index-stories.e9b6cb80.iframe.bundle.js → view-modals-navigation-prompt-index-stories.788d6966.iframe.bundle.js} +1 -1
  525. package/demo/view-modals-navigation-prompt-index-stories.788d6966.iframe.bundle.js.br +0 -0
  526. package/demo/view-modals-navigation-prompt-index-stories.788d6966.iframe.bundle.js.gz +0 -0
  527. package/dist/cjs/utils/micro-frontend/guest.js +28 -4
  528. package/dist/cjs/view/guest-microapp.js +41 -8
  529. package/dist/cjs/view/tests/__snapshots__/guest-microapp.test.tsx.snap +4 -4
  530. package/dist/esm/utils/micro-frontend/guest.js +29 -5
  531. package/dist/esm/view/guest-microapp.js +42 -9
  532. package/dist/esm/view/tests/__snapshots__/guest-microapp.test.tsx.snap +4 -4
  533. package/dist/types/lib/utils/micro-frontend/guest.d.ts +1 -1
  534. package/dist/types/lib/utils/micro-frontend/host.d.ts +1 -1
  535. package/dist/types/tsconfig.tsbuildinfo +1 -1
  536. package/package.json +46 -46
  537. package/build/docs/assets/js/5c5cf8ae.0b83788b.js +0 -1
  538. package/build/docs/assets/js/f72a372a.fac24e49.js +0 -1
  539. package/demo/177.dbc7550e.iframe.bundle.js +0 -19061
  540. package/demo/177.dbc7550e.iframe.bundle.js.br +0 -0
  541. package/demo/177.dbc7550e.iframe.bundle.js.gz +0 -0
  542. package/demo/1993.33effd6f.iframe.bundle.js +0 -1
  543. package/demo/1993.33effd6f.iframe.bundle.js.br +0 -0
  544. package/demo/1993.33effd6f.iframe.bundle.js.gz +0 -0
  545. package/demo/226.44c17e61978806b46368.manager.bundle.js.br +0 -0
  546. package/demo/226.44c17e61978806b46368.manager.bundle.js.gz +0 -0
  547. package/demo/23.c291b565.iframe.bundle.js +0 -174
  548. package/demo/23.c291b565.iframe.bundle.js.br +0 -0
  549. package/demo/23.c291b565.iframe.bundle.js.gz +0 -0
  550. package/demo/2343.6b93e59b.iframe.bundle.js.br +0 -0
  551. package/demo/2343.6b93e59b.iframe.bundle.js.gz +0 -0
  552. package/demo/2561.555e9ee5.iframe.bundle.js +0 -882
  553. package/demo/2561.555e9ee5.iframe.bundle.js.br +0 -0
  554. package/demo/2561.555e9ee5.iframe.bundle.js.gz +0 -0
  555. package/demo/2776.0afcbff8.iframe.bundle.js.br +0 -0
  556. package/demo/2776.0afcbff8.iframe.bundle.js.gz +0 -0
  557. package/demo/283.560dfbd55c7addf8db94.manager.bundle.js +0 -10
  558. package/demo/283.560dfbd55c7addf8db94.manager.bundle.js.br +0 -0
  559. package/demo/283.560dfbd55c7addf8db94.manager.bundle.js.gz +0 -0
  560. package/demo/2916.155884be.iframe.bundle.js.br +0 -0
  561. package/demo/2916.155884be.iframe.bundle.js.gz +0 -0
  562. package/demo/2986.b0a04238.iframe.bundle.js +0 -184
  563. package/demo/2986.b0a04238.iframe.bundle.js.br +0 -0
  564. package/demo/2986.b0a04238.iframe.bundle.js.gz +0 -0
  565. package/demo/3659.8ff4d125.iframe.bundle.js +0 -173
  566. package/demo/3659.8ff4d125.iframe.bundle.js.br +0 -0
  567. package/demo/3659.8ff4d125.iframe.bundle.js.gz +0 -0
  568. package/demo/3782.2340d9ea.iframe.bundle.js.br +0 -0
  569. package/demo/3782.2340d9ea.iframe.bundle.js.gz +0 -0
  570. package/demo/381.c80a699b.iframe.bundle.js +0 -52
  571. package/demo/381.c80a699b.iframe.bundle.js.br +0 -0
  572. package/demo/381.c80a699b.iframe.bundle.js.gz +0 -0
  573. package/demo/4065.be52e5c0.iframe.bundle.js.br +0 -0
  574. package/demo/4065.be52e5c0.iframe.bundle.js.gz +0 -0
  575. package/demo/4333.25c68ba1.iframe.bundle.js +0 -22
  576. package/demo/4333.25c68ba1.iframe.bundle.js.br +0 -0
  577. package/demo/4333.25c68ba1.iframe.bundle.js.gz +0 -0
  578. package/demo/605.48b486c0.iframe.bundle.js.br +0 -0
  579. package/demo/605.48b486c0.iframe.bundle.js.gz +0 -0
  580. package/demo/633.80336234.iframe.bundle.js.br +0 -0
  581. package/demo/633.80336234.iframe.bundle.js.gz +0 -0
  582. package/demo/6916.f14d88da.iframe.bundle.js +0 -102
  583. package/demo/6916.f14d88da.iframe.bundle.js.br +0 -0
  584. package/demo/6916.f14d88da.iframe.bundle.js.gz +0 -0
  585. package/demo/7057.234e8ab0.iframe.bundle.js +0 -128
  586. package/demo/7057.234e8ab0.iframe.bundle.js.br +0 -0
  587. package/demo/7057.234e8ab0.iframe.bundle.js.gz +0 -0
  588. package/demo/7567.f80b04ef.iframe.bundle.js.br +0 -0
  589. package/demo/7567.f80b04ef.iframe.bundle.js.gz +0 -0
  590. package/demo/8064.08ecafdc.iframe.bundle.js +0 -323
  591. package/demo/8064.08ecafdc.iframe.bundle.js.br +0 -0
  592. package/demo/8064.08ecafdc.iframe.bundle.js.gz +0 -0
  593. package/demo/8070.9ac32aa2.iframe.bundle.js +0 -1
  594. package/demo/8070.9ac32aa2.iframe.bundle.js.br +0 -0
  595. package/demo/8070.9ac32aa2.iframe.bundle.js.gz +0 -0
  596. package/demo/8283.72e4feb3.iframe.bundle.js +0 -10
  597. package/demo/8283.72e4feb3.iframe.bundle.js.br +0 -0
  598. package/demo/8283.72e4feb3.iframe.bundle.js.gz +0 -0
  599. package/demo/8919.8bb4a8d7.iframe.bundle.js.br +0 -0
  600. package/demo/8919.8bb4a8d7.iframe.bundle.js.gz +0 -0
  601. package/demo/9181.3aa9e00d.iframe.bundle.js +0 -142
  602. package/demo/9181.3aa9e00d.iframe.bundle.js.br +0 -0
  603. package/demo/9181.3aa9e00d.iframe.bundle.js.gz +0 -0
  604. package/demo/9786.94ae8580.iframe.bundle.js.br +0 -0
  605. package/demo/9786.94ae8580.iframe.bundle.js.gz +0 -0
  606. package/demo/9799.8ba3579c.iframe.bundle.js +0 -2
  607. package/demo/9799.8ba3579c.iframe.bundle.js.br +0 -0
  608. package/demo/9799.8ba3579c.iframe.bundle.js.gz +0 -0
  609. package/demo/985.2b7062c46faf4744095c.manager.bundle.js +0 -1168
  610. package/demo/985.2b7062c46faf4744095c.manager.bundle.js.br +0 -0
  611. package/demo/985.2b7062c46faf4744095c.manager.bundle.js.gz +0 -0
  612. package/demo/docs/177.dbc7550e.iframe.bundle.js +0 -19061
  613. package/demo/docs/177.dbc7550e.iframe.bundle.js.br +0 -0
  614. package/demo/docs/177.dbc7550e.iframe.bundle.js.gz +0 -0
  615. package/demo/docs/1993.33effd6f.iframe.bundle.js +0 -1
  616. package/demo/docs/1993.33effd6f.iframe.bundle.js.br +0 -0
  617. package/demo/docs/1993.33effd6f.iframe.bundle.js.gz +0 -0
  618. package/demo/docs/226.44c17e61978806b46368.manager.bundle.js.br +0 -0
  619. package/demo/docs/226.44c17e61978806b46368.manager.bundle.js.gz +0 -0
  620. package/demo/docs/23.c291b565.iframe.bundle.js +0 -174
  621. package/demo/docs/23.c291b565.iframe.bundle.js.br +0 -0
  622. package/demo/docs/23.c291b565.iframe.bundle.js.gz +0 -0
  623. package/demo/docs/2343.6b93e59b.iframe.bundle.js.br +0 -0
  624. package/demo/docs/2343.6b93e59b.iframe.bundle.js.gz +0 -0
  625. package/demo/docs/2561.555e9ee5.iframe.bundle.js +0 -882
  626. package/demo/docs/2561.555e9ee5.iframe.bundle.js.br +0 -0
  627. package/demo/docs/2561.555e9ee5.iframe.bundle.js.gz +0 -0
  628. package/demo/docs/2776.0afcbff8.iframe.bundle.js.br +0 -0
  629. package/demo/docs/2776.0afcbff8.iframe.bundle.js.gz +0 -0
  630. package/demo/docs/283.560dfbd55c7addf8db94.manager.bundle.js +0 -10
  631. package/demo/docs/283.560dfbd55c7addf8db94.manager.bundle.js.br +0 -0
  632. package/demo/docs/283.560dfbd55c7addf8db94.manager.bundle.js.gz +0 -0
  633. package/demo/docs/2916.155884be.iframe.bundle.js.br +0 -0
  634. package/demo/docs/2916.155884be.iframe.bundle.js.gz +0 -0
  635. package/demo/docs/2986.b0a04238.iframe.bundle.js +0 -184
  636. package/demo/docs/2986.b0a04238.iframe.bundle.js.br +0 -0
  637. package/demo/docs/2986.b0a04238.iframe.bundle.js.gz +0 -0
  638. package/demo/docs/3659.8ff4d125.iframe.bundle.js +0 -173
  639. package/demo/docs/3659.8ff4d125.iframe.bundle.js.br +0 -0
  640. package/demo/docs/3659.8ff4d125.iframe.bundle.js.gz +0 -0
  641. package/demo/docs/3782.2340d9ea.iframe.bundle.js.br +0 -0
  642. package/demo/docs/3782.2340d9ea.iframe.bundle.js.gz +0 -0
  643. package/demo/docs/381.c80a699b.iframe.bundle.js +0 -52
  644. package/demo/docs/381.c80a699b.iframe.bundle.js.br +0 -0
  645. package/demo/docs/381.c80a699b.iframe.bundle.js.gz +0 -0
  646. package/demo/docs/4065.be52e5c0.iframe.bundle.js.br +0 -0
  647. package/demo/docs/4065.be52e5c0.iframe.bundle.js.gz +0 -0
  648. package/demo/docs/4333.25c68ba1.iframe.bundle.js +0 -22
  649. package/demo/docs/4333.25c68ba1.iframe.bundle.js.br +0 -0
  650. package/demo/docs/4333.25c68ba1.iframe.bundle.js.gz +0 -0
  651. package/demo/docs/605.48b486c0.iframe.bundle.js.br +0 -0
  652. package/demo/docs/605.48b486c0.iframe.bundle.js.gz +0 -0
  653. package/demo/docs/633.80336234.iframe.bundle.js.br +0 -0
  654. package/demo/docs/633.80336234.iframe.bundle.js.gz +0 -0
  655. package/demo/docs/6916.f14d88da.iframe.bundle.js +0 -102
  656. package/demo/docs/6916.f14d88da.iframe.bundle.js.br +0 -0
  657. package/demo/docs/6916.f14d88da.iframe.bundle.js.gz +0 -0
  658. package/demo/docs/7057.234e8ab0.iframe.bundle.js +0 -128
  659. package/demo/docs/7057.234e8ab0.iframe.bundle.js.br +0 -0
  660. package/demo/docs/7057.234e8ab0.iframe.bundle.js.gz +0 -0
  661. package/demo/docs/7567.f80b04ef.iframe.bundle.js.br +0 -0
  662. package/demo/docs/7567.f80b04ef.iframe.bundle.js.gz +0 -0
  663. package/demo/docs/8064.08ecafdc.iframe.bundle.js +0 -323
  664. package/demo/docs/8064.08ecafdc.iframe.bundle.js.br +0 -0
  665. package/demo/docs/8064.08ecafdc.iframe.bundle.js.gz +0 -0
  666. package/demo/docs/8070.9ac32aa2.iframe.bundle.js +0 -1
  667. package/demo/docs/8070.9ac32aa2.iframe.bundle.js.br +0 -0
  668. package/demo/docs/8070.9ac32aa2.iframe.bundle.js.gz +0 -0
  669. package/demo/docs/8283.72e4feb3.iframe.bundle.js +0 -10
  670. package/demo/docs/8283.72e4feb3.iframe.bundle.js.br +0 -0
  671. package/demo/docs/8283.72e4feb3.iframe.bundle.js.gz +0 -0
  672. package/demo/docs/8919.8bb4a8d7.iframe.bundle.js.br +0 -0
  673. package/demo/docs/8919.8bb4a8d7.iframe.bundle.js.gz +0 -0
  674. package/demo/docs/9181.3aa9e00d.iframe.bundle.js +0 -142
  675. package/demo/docs/9181.3aa9e00d.iframe.bundle.js.br +0 -0
  676. package/demo/docs/9181.3aa9e00d.iframe.bundle.js.gz +0 -0
  677. package/demo/docs/9786.94ae8580.iframe.bundle.js.br +0 -0
  678. package/demo/docs/9786.94ae8580.iframe.bundle.js.gz +0 -0
  679. package/demo/docs/9799.8ba3579c.iframe.bundle.js +0 -2
  680. package/demo/docs/9799.8ba3579c.iframe.bundle.js.br +0 -0
  681. package/demo/docs/9799.8ba3579c.iframe.bundle.js.gz +0 -0
  682. package/demo/docs/985.2b7062c46faf4744095c.manager.bundle.js +0 -1168
  683. package/demo/docs/985.2b7062c46faf4744095c.manager.bundle.js.br +0 -0
  684. package/demo/docs/985.2b7062c46faf4744095c.manager.bundle.js.gz +0 -0
  685. package/demo/docs/main.02f0e0be.iframe.bundle.js +0 -5
  686. package/demo/docs/main.02f0e0be.iframe.bundle.js.br +0 -0
  687. package/demo/docs/main.02f0e0be.iframe.bundle.js.gz +0 -0
  688. package/demo/docs/main.73d2bd95345af51e5066.manager.bundle.js +0 -1
  689. package/demo/docs/main.73d2bd95345af51e5066.manager.bundle.js.br +0 -0
  690. package/demo/docs/main.73d2bd95345af51e5066.manager.bundle.js.gz +0 -0
  691. package/demo/docs/runtime~main.72e00e51fcc222b87b36.manager.bundle.js.br +0 -0
  692. package/demo/docs/runtime~main.72e00e51fcc222b87b36.manager.bundle.js.gz +0 -0
  693. package/demo/docs/runtime~main.b870fd60.iframe.bundle.js +0 -2
  694. package/demo/docs/runtime~main.b870fd60.iframe.bundle.js.br +0 -0
  695. package/demo/docs/runtime~main.b870fd60.iframe.bundle.js.gz +0 -0
  696. package/demo/docs/view-breakpoint-index-stories.ae7f88ff.iframe.bundle.js.br +0 -0
  697. package/demo/docs/view-breakpoint-index-stories.ae7f88ff.iframe.bundle.js.gz +0 -0
  698. package/demo/docs/view-error-toast-index-stories.f713b876.iframe.bundle.js.br +0 -0
  699. package/demo/docs/view-error-toast-index-stories.f713b876.iframe.bundle.js.gz +0 -0
  700. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.c485b308.iframe.bundle.js.br +0 -0
  701. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.c485b308.iframe.bundle.js.gz +0 -0
  702. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.951ff1de.iframe.bundle.js.br +0 -0
  703. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.951ff1de.iframe.bundle.js.gz +0 -0
  704. package/demo/docs/view-fields-autocomplete-index-stories.0c712f85.iframe.bundle.js.br +0 -0
  705. package/demo/docs/view-fields-autocomplete-index-stories.0c712f85.iframe.bundle.js.gz +0 -0
  706. package/demo/docs/view-fields-check-box-index-stories.8d71013f.iframe.bundle.js.br +0 -0
  707. package/demo/docs/view-fields-check-box-index-stories.8d71013f.iframe.bundle.js.gz +0 -0
  708. package/demo/docs/view-fields-check-box-set-value-stories.6cbc9dd8.iframe.bundle.js.br +0 -0
  709. package/demo/docs/view-fields-check-box-set-value-stories.6cbc9dd8.iframe.bundle.js.gz +0 -0
  710. package/demo/docs/view-fields-combo-box-index-stories.0f9f07da.iframe.bundle.js.br +0 -0
  711. package/demo/docs/view-fields-combo-box-index-stories.0f9f07da.iframe.bundle.js.gz +0 -0
  712. package/demo/docs/view-fields-combo-box-v3-index-stories.83bbfd34.iframe.bundle.js.br +0 -0
  713. package/demo/docs/view-fields-combo-box-v3-index-stories.83bbfd34.iframe.bundle.js.gz +0 -0
  714. package/demo/docs/view-fields-date-input-index-stories.17393e40.iframe.bundle.js +0 -189
  715. package/demo/docs/view-fields-date-input-index-stories.17393e40.iframe.bundle.js.br +0 -0
  716. package/demo/docs/view-fields-date-input-index-stories.17393e40.iframe.bundle.js.gz +0 -0
  717. package/demo/docs/view-fields-date-picker-index-stories.b69cc91b.iframe.bundle.js +0 -189
  718. package/demo/docs/view-fields-date-picker-index-stories.b69cc91b.iframe.bundle.js.br +0 -0
  719. package/demo/docs/view-fields-date-picker-index-stories.b69cc91b.iframe.bundle.js.gz +0 -0
  720. package/demo/docs/view-fields-date-range-picker-index-stories.2dc60206.iframe.bundle.js.br +0 -0
  721. package/demo/docs/view-fields-date-range-picker-index-stories.2dc60206.iframe.bundle.js.gz +0 -0
  722. package/demo/docs/view-fields-date-time-picker-index-stories.609914f5.iframe.bundle.js.br +0 -0
  723. package/demo/docs/view-fields-date-time-picker-index-stories.609914f5.iframe.bundle.js.gz +0 -0
  724. package/demo/docs/view-fields-form-item-layout-index-stories.62838f98.iframe.bundle.js.br +0 -0
  725. package/demo/docs/view-fields-form-item-layout-index-stories.62838f98.iframe.bundle.js.gz +0 -0
  726. package/demo/docs/view-fields-form-layout-block-item-index-stories.e2fe9915.iframe.bundle.js +0 -266
  727. package/demo/docs/view-fields-form-layout-block-item-index-stories.e2fe9915.iframe.bundle.js.br +0 -0
  728. package/demo/docs/view-fields-form-layout-block-item-index-stories.e2fe9915.iframe.bundle.js.gz +0 -0
  729. package/demo/docs/view-fields-input-mask-index-stories.38198ecb.iframe.bundle.js.br +0 -0
  730. package/demo/docs/view-fields-input-mask-index-stories.38198ecb.iframe.bundle.js.gz +0 -0
  731. package/demo/docs/view-fields-input-text-index-stories.da5b7794.iframe.bundle.js.br +0 -0
  732. package/demo/docs/view-fields-input-text-index-stories.da5b7794.iframe.bundle.js.gz +0 -0
  733. package/demo/docs/view-fields-large-text-box-index-stories.1d82c412.iframe.bundle.js +0 -254
  734. package/demo/docs/view-fields-large-text-box-index-stories.1d82c412.iframe.bundle.js.br +0 -0
  735. package/demo/docs/view-fields-large-text-box-index-stories.1d82c412.iframe.bundle.js.gz +0 -0
  736. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.7eff06e2.iframe.bundle.js.br +0 -0
  737. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.7eff06e2.iframe.bundle.js.gz +0 -0
  738. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.ce001747.iframe.bundle.js.br +0 -0
  739. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.ce001747.iframe.bundle.js.gz +0 -0
  740. package/demo/docs/view-fields-radio-group-index-stories.41231f7f.iframe.bundle.js.br +0 -0
  741. package/demo/docs/view-fields-radio-group-index-stories.41231f7f.iframe.bundle.js.gz +0 -0
  742. package/demo/docs/view-fields-radio-index-stories.1fdf3fb1.iframe.bundle.js.br +0 -0
  743. package/demo/docs/view-fields-radio-index-stories.1fdf3fb1.iframe.bundle.js.gz +0 -0
  744. package/demo/docs/view-fields-radio-set-value-stories.ef03f732.iframe.bundle.js.br +0 -0
  745. package/demo/docs/view-fields-radio-set-value-stories.ef03f732.iframe.bundle.js.gz +0 -0
  746. package/demo/docs/view-fields-text-box-index-stories.d8873ed6.iframe.bundle.js +0 -258
  747. package/demo/docs/view-fields-text-box-index-stories.d8873ed6.iframe.bundle.js.br +0 -0
  748. package/demo/docs/view-fields-text-box-index-stories.d8873ed6.iframe.bundle.js.gz +0 -0
  749. package/demo/docs/view-fields-toggle-index-stories.28cd06c6.iframe.bundle.js.br +0 -0
  750. package/demo/docs/view-fields-toggle-index-stories.28cd06c6.iframe.bundle.js.gz +0 -0
  751. package/demo/docs/view-form-index-stories.c755f338.iframe.bundle.js.br +0 -0
  752. package/demo/docs/view-form-index-stories.c755f338.iframe.bundle.js.gz +0 -0
  753. package/demo/docs/view-form-usecases-stories.f0193091.iframe.bundle.js.br +0 -0
  754. package/demo/docs/view-form-usecases-stories.f0193091.iframe.bundle.js.gz +0 -0
  755. package/demo/docs/view-intro-stories-mdx.57ddd61c.iframe.bundle.js.br +0 -0
  756. package/demo/docs/view-intro-stories-mdx.57ddd61c.iframe.bundle.js.gz +0 -0
  757. package/demo/docs/view-modals-error-index-stories.33a22c5c.iframe.bundle.js.br +0 -0
  758. package/demo/docs/view-modals-error-index-stories.33a22c5c.iframe.bundle.js.gz +0 -0
  759. package/demo/docs/view-modals-navigation-prompt-index-stories.e9b6cb80.iframe.bundle.js.br +0 -0
  760. package/demo/docs/view-modals-navigation-prompt-index-stories.e9b6cb80.iframe.bundle.js.gz +0 -0
  761. package/demo/main.02f0e0be.iframe.bundle.js +0 -5
  762. package/demo/main.02f0e0be.iframe.bundle.js.br +0 -0
  763. package/demo/main.02f0e0be.iframe.bundle.js.gz +0 -0
  764. package/demo/main.73d2bd95345af51e5066.manager.bundle.js +0 -1
  765. package/demo/main.73d2bd95345af51e5066.manager.bundle.js.br +0 -0
  766. package/demo/main.73d2bd95345af51e5066.manager.bundle.js.gz +0 -0
  767. package/demo/runtime~main.72e00e51fcc222b87b36.manager.bundle.js.br +0 -0
  768. package/demo/runtime~main.72e00e51fcc222b87b36.manager.bundle.js.gz +0 -0
  769. package/demo/runtime~main.b870fd60.iframe.bundle.js +0 -2
  770. package/demo/runtime~main.b870fd60.iframe.bundle.js.br +0 -0
  771. package/demo/runtime~main.b870fd60.iframe.bundle.js.gz +0 -0
  772. package/demo/view-breakpoint-index-stories.ae7f88ff.iframe.bundle.js.br +0 -0
  773. package/demo/view-breakpoint-index-stories.ae7f88ff.iframe.bundle.js.gz +0 -0
  774. package/demo/view-error-toast-index-stories.f713b876.iframe.bundle.js.br +0 -0
  775. package/demo/view-error-toast-index-stories.f713b876.iframe.bundle.js.gz +0 -0
  776. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.c485b308.iframe.bundle.js.br +0 -0
  777. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.c485b308.iframe.bundle.js.gz +0 -0
  778. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.951ff1de.iframe.bundle.js.br +0 -0
  779. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.951ff1de.iframe.bundle.js.gz +0 -0
  780. package/demo/view-fields-autocomplete-index-stories.0c712f85.iframe.bundle.js.br +0 -0
  781. package/demo/view-fields-autocomplete-index-stories.0c712f85.iframe.bundle.js.gz +0 -0
  782. package/demo/view-fields-check-box-index-stories.8d71013f.iframe.bundle.js.br +0 -0
  783. package/demo/view-fields-check-box-index-stories.8d71013f.iframe.bundle.js.gz +0 -0
  784. package/demo/view-fields-check-box-set-value-stories.6cbc9dd8.iframe.bundle.js.br +0 -0
  785. package/demo/view-fields-check-box-set-value-stories.6cbc9dd8.iframe.bundle.js.gz +0 -0
  786. package/demo/view-fields-combo-box-index-stories.0f9f07da.iframe.bundle.js.br +0 -0
  787. package/demo/view-fields-combo-box-index-stories.0f9f07da.iframe.bundle.js.gz +0 -0
  788. package/demo/view-fields-combo-box-v3-index-stories.83bbfd34.iframe.bundle.js.br +0 -0
  789. package/demo/view-fields-combo-box-v3-index-stories.83bbfd34.iframe.bundle.js.gz +0 -0
  790. package/demo/view-fields-date-input-index-stories.17393e40.iframe.bundle.js +0 -189
  791. package/demo/view-fields-date-input-index-stories.17393e40.iframe.bundle.js.br +0 -0
  792. package/demo/view-fields-date-input-index-stories.17393e40.iframe.bundle.js.gz +0 -0
  793. package/demo/view-fields-date-picker-index-stories.b69cc91b.iframe.bundle.js +0 -189
  794. package/demo/view-fields-date-picker-index-stories.b69cc91b.iframe.bundle.js.br +0 -0
  795. package/demo/view-fields-date-picker-index-stories.b69cc91b.iframe.bundle.js.gz +0 -0
  796. package/demo/view-fields-date-range-picker-index-stories.2dc60206.iframe.bundle.js.br +0 -0
  797. package/demo/view-fields-date-range-picker-index-stories.2dc60206.iframe.bundle.js.gz +0 -0
  798. package/demo/view-fields-date-time-picker-index-stories.609914f5.iframe.bundle.js.br +0 -0
  799. package/demo/view-fields-date-time-picker-index-stories.609914f5.iframe.bundle.js.gz +0 -0
  800. package/demo/view-fields-form-item-layout-index-stories.62838f98.iframe.bundle.js.br +0 -0
  801. package/demo/view-fields-form-item-layout-index-stories.62838f98.iframe.bundle.js.gz +0 -0
  802. package/demo/view-fields-form-layout-block-item-index-stories.e2fe9915.iframe.bundle.js +0 -266
  803. package/demo/view-fields-form-layout-block-item-index-stories.e2fe9915.iframe.bundle.js.br +0 -0
  804. package/demo/view-fields-form-layout-block-item-index-stories.e2fe9915.iframe.bundle.js.gz +0 -0
  805. package/demo/view-fields-input-mask-index-stories.38198ecb.iframe.bundle.js.br +0 -0
  806. package/demo/view-fields-input-mask-index-stories.38198ecb.iframe.bundle.js.gz +0 -0
  807. package/demo/view-fields-input-text-index-stories.da5b7794.iframe.bundle.js.br +0 -0
  808. package/demo/view-fields-input-text-index-stories.da5b7794.iframe.bundle.js.gz +0 -0
  809. package/demo/view-fields-large-text-box-index-stories.1d82c412.iframe.bundle.js +0 -254
  810. package/demo/view-fields-large-text-box-index-stories.1d82c412.iframe.bundle.js.br +0 -0
  811. package/demo/view-fields-large-text-box-index-stories.1d82c412.iframe.bundle.js.gz +0 -0
  812. package/demo/view-fields-masked-input-text-with-money-mask-stories.7eff06e2.iframe.bundle.js.br +0 -0
  813. package/demo/view-fields-masked-input-text-with-money-mask-stories.7eff06e2.iframe.bundle.js.gz +0 -0
  814. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.ce001747.iframe.bundle.js.br +0 -0
  815. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.ce001747.iframe.bundle.js.gz +0 -0
  816. package/demo/view-fields-radio-group-index-stories.41231f7f.iframe.bundle.js.br +0 -0
  817. package/demo/view-fields-radio-group-index-stories.41231f7f.iframe.bundle.js.gz +0 -0
  818. package/demo/view-fields-radio-index-stories.1fdf3fb1.iframe.bundle.js.br +0 -0
  819. package/demo/view-fields-radio-index-stories.1fdf3fb1.iframe.bundle.js.gz +0 -0
  820. package/demo/view-fields-radio-set-value-stories.ef03f732.iframe.bundle.js.br +0 -0
  821. package/demo/view-fields-radio-set-value-stories.ef03f732.iframe.bundle.js.gz +0 -0
  822. package/demo/view-fields-text-box-index-stories.d8873ed6.iframe.bundle.js +0 -258
  823. package/demo/view-fields-text-box-index-stories.d8873ed6.iframe.bundle.js.br +0 -0
  824. package/demo/view-fields-text-box-index-stories.d8873ed6.iframe.bundle.js.gz +0 -0
  825. package/demo/view-fields-toggle-index-stories.28cd06c6.iframe.bundle.js.br +0 -0
  826. package/demo/view-fields-toggle-index-stories.28cd06c6.iframe.bundle.js.gz +0 -0
  827. package/demo/view-form-index-stories.c755f338.iframe.bundle.js.br +0 -0
  828. package/demo/view-form-index-stories.c755f338.iframe.bundle.js.gz +0 -0
  829. package/demo/view-form-usecases-stories.f0193091.iframe.bundle.js.br +0 -0
  830. package/demo/view-form-usecases-stories.f0193091.iframe.bundle.js.gz +0 -0
  831. package/demo/view-intro-stories-mdx.57ddd61c.iframe.bundle.js.br +0 -0
  832. package/demo/view-intro-stories-mdx.57ddd61c.iframe.bundle.js.gz +0 -0
  833. package/demo/view-modals-error-index-stories.33a22c5c.iframe.bundle.js.br +0 -0
  834. package/demo/view-modals-error-index-stories.33a22c5c.iframe.bundle.js.gz +0 -0
  835. package/demo/view-modals-navigation-prompt-index-stories.e9b6cb80.iframe.bundle.js.br +0 -0
  836. package/demo/view-modals-navigation-prompt-index-stories.e9b6cb80.iframe.bundle.js.gz +0 -0
  837. /package/build/docs/assets/js/{main.c610e1d3.js.LICENSE.txt → main.97b0cc3c.js.LICENSE.txt} +0 -0
@@ -0,0 +1,882 @@
1
+ "use strict";(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[4776],{"./node_modules/.pnpm/@elliemae+ds-form-combobox@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-form-combobox/dist/esm/ComboBox.js"(ht,Se,T){T.d(Se,{NB:()=>Do});var i=T("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),d=T("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),U=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),oe=T("./node_modules/.pnpm/uid@2.0.2/node_modules/uid/dist/index.mjs"),K=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/defaultProps/useMemoMergePropsWithDefault.js"),W=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/validation/typescriptValidator.js");function Ce(...e){}const Le={hasError:!1,inline:!1,withoutPortal:!1,disabled:!1,useMask:Ce,innerRef:(0,i.createRef)(),startPlacementPreference:"bottom-start",placementOrderPreference:["bottom-start","top-start"],noOptionsMessage:"No Matches Found",isNonClearable:!1,onlySelectable:!1,isSkeleton:!1,applyAriaDisabled:!1,readOnly:!1,isMenuOpenableWithReadOnly:!1,forceFocusFirstOptionOnType:!1},qe={},pe=(0,i.createContext)(qe);var Te=pe,ae=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/globalAttributesPropTypes.js"),r=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js");function Ht(...e){}const ft={...ae.P,placeholder:r.A.string.description("input's placeholder value").defaultValue(""),allOptions:r.A.oneOfType([r.A.array,r.A.object]).isRequired.description("List of original options").defaultValue([]),filteredOptions:r.A.oneOfType([r.A.array,r.A.object]).description("List of filtered options to show in the menu based on the current internal input filter value").defaultValue([]),selectedValues:r.A.oneOfType([r.A.arrayOf(r.A.object),r.A.object]).isRequired.description("Array of option or single option selected"),disabled:r.A.bool.description("wheter or not the input is disabled").defaultValue("false"),autoFocus:r.A.bool.description("Whether the combo box uses auto focus or not").defaultValue("false"),hasError:r.A.bool.description("Whether the combo box has error or not").defaultValue("false"),noOptionsMessage:r.A.string.description("Custome message to be display when no matches found after filtering").defaultValue("No Matches Found"),onChange:r.A.func.isRequired.description("function triggered when an option is selected it will send the options selected").defaultValue("() => {}"),onFilter:r.A.func.description("function triggered when user type in the combobox input").defaultValue(""),onCreate:r.A.func.description('function triggered when user select "create" a new item whenever is not a match in the all option list').defaultValue(""),onCancel:r.A.func.description("function triggered when user press ESC key").defaultValue("() => {}"),onMenuChange:r.A.func.description("function triggered when user open or close the menu list").defaultValue("() => {}"),menuMinWidth:r.A.any.description("Minimum width for the dropdown menu").defaultValue(void 0),menuMaxHeight:r.A.any.description("Maximum height for the dropdown menu").defaultValue(void 0),withoutPortal:r.A.bool.description("Whether the combobox menu is rendered in a portal or not").defaultValue(!1),innerRef:r.A.oneOfType([r.A.func,r.A.shape({current:r.A.any})]).description("reference to the component"),onlySelectable:r.A.bool.description("filtering is disabled"),isSkeleton:r.A.bool.description("whether or not the component is in skeleton state").defaultValue(!1),applyAriaDisabled:r.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1),readOnly:r.A.bool.description("Makes the component non-editable while remaining accessible.").defaultValue(!1),isMenuOpenableWithReadOnly:r.A.bool.description("Whether the menu can be opened when the input is readonly").defaultValue(!1),onSelectAll:r.A.func.description("function triggered when user select all the options").defaultValue("() => {}").deprecated({version:"25.2"}),popperProps:r.A.object.description("props to be passed to the FloatingWrapper component").defaultValue(void 0),forceFocusFirstOptionOnType:r.A.bool.description("Whether to focus the first option when typing in the input.").defaultValue(!1)},st="DSCombobox",ut={CONTAINER:"root",INPUT_WRAPPER:"input-wrapper",INPUT:"input"},Ie={OPTION:"option",SECTION:"section",SEPARATOR:"separator"},Ot={CREATABLE:"creatable"},R={SELECT_OPTION:"selectOption",CLOSE:"close",OPEN:"open",BLUR:"blur"};var N;const $=e=>e.filter(t=>t.type===N.OPTION&&!t.disabled),j=e=>e.filter(t=>t.type===Ie.OPTION),q=e=>Array.isArray(e)?e.length===0:!e,ee=e=>Array.isArray(e),xe=(e,t)=>ee(e)?e.some(s=>s?.value===t?.value):e?.value===t.value;function Ee(e){return Array.isArray(e)&&e.length>0}const rt=e=>!Array.isArray(e)&&e!==null&&typeof e=="object",fe=(e,t,n,o=1)=>{if(e.length===0)return t;let s=(t+o+e.length)%e.length,l=0;for(;l<e.length;){if(n(e[s]))return s;s=(s+o+e.length)%e.length,l+=1}return t},it=e=>Array.isArray(e)?e[e.length-1]:e,Y=(e,t)=>{if(t){const n=it(t);if(n)return n.dsId}for(let n=0;n<e.length;n+=1)if(!["section","separator"].includes(e[n].type)&&!e[n].disabled)return e[n].dsId;return""},_e=(e,t,n)=>Array.isArray(t)?t.find(s=>s.type==="option"&&s.value===e.value)?n?t:t.filter(s=>s.type==="option"&&s.value!==e.value):[...t,e]:t&&t.dsId===e.dsId?n?e:null:e,Ze=(e,t)=>e?t.filter(n=>n.type===Ie.OPTION&&n.label.toLowerCase().includes(e.toLowerCase())):t,Ue=(e,t)=>e.filter(n=>n.type===N.OPTION&&xe(t,n)),hn=(e,t={behavior:"smooth",block:"end",inline:"nearest"})=>{const n=e.getBoundingClientRect();n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)||e.scrollIntoView(t)},fn=(e,t)=>{const{filteredOptions:n,allOptions:o,onCreate:s}=e;return(0,i.useMemo)(()=>{let l=o;o?.every(c=>typeof c=="string")&&(l=o.map((c,u)=>({dsId:u.toString(),label:c,type:Ie.OPTION,value:c})));const a=n??Ze(t,l);return s&&t&&a.findIndex(c=>c.type===Ie.OPTION&&c.label===t)===-1?[{dsId:`creatable-${(0,oe.L)()}`,label:t,type:"creatable","aria-describedby":"aria-creatable"},...a]:a},[n,o,s,t])},G=e=>(0,i.useMemo)(()=>{const t=[];let n=null;return e.forEach(o=>{o.type==="section"?(n={dsId:o.dsId,type:o.type,label:o.label,options:[]},t.push(n)):(o.type==="option"||o.type==="separator")&&n?n.options.push(o):(o.type==="option"||o.type==="creatable"||o.type==="separator")&&t.push(o)}),t},[e]),X=e=>{const t=(0,K.b)(e,Le);(0,W.D)(t,ft,st);const[n,o]=(0,i.useState)(!1),[s,l]=(0,i.useState)(null),[a,c]=(0,i.useState)(""),[u,p]=(0,i.useState)(!1),m=(0,i.useRef)(null),h=(0,i.useRef)(null),f=(0,i.useRef)(null),g=(0,i.useRef)(null),S=(0,i.useRef)(null),{id:y,selectedValues:b,isMenuOpen:x,onMenuChange:v,applyAriaDisabled:I}=t,O=(0,i.useMemo)(()=>y||(0,oe.L)(5),[y]),w=(0,i.useMemo)(()=>x!==void 0?x:n,[n,x]),C=fn(t,a),M=G(C),k={scrollTo:()=>{}},D=(0,i.useRef)(k),z=(0,i.useCallback)((H,He={align:"center"})=>{D.current.scrollTo(C.findIndex(ye=>ye.dsId===H),He),requestAnimationFrame(()=>{D.current.scrollTo(C.findIndex(ye=>ye.dsId===H),He)})},[C]),[V,A]=(0,i.useState)("");(0,i.useEffect)(()=>{if(a&&t.forceFocusFirstOptionOnType){const H=Y(C);A(H),z(H,{align:"center"})}},[C,a,t.forceFocusFirstOptionOnType,z,b]);const _=(0,i.useCallback)((H,He,ye)=>{if(!I)if(v!==void 0&&v(H,He,ye),o(H),!a&&H&&!V&&!q(b)){const Ne=Y(C,b);A(Ne),z(Ne,{align:"center"})}else A("")},[I,v,a,V,b,C,z]);(0,i.useEffect)(()=>{t.inline&&_(!0,"inline")},[]);const P=t.readOnly&&!t.isMenuOpenableWithReadOnly;return(0,i.useMemo)(()=>({props:{...t},menuState:w,referenceElement:s,listRef:D,focusOptionIdx:V,selectedOptionsRef:f,controlsWrapperRef:g,inputValue:a,setInputValue:c,setMenuState:_,hasFocus:u,pillGroupRef:S,wrapperListRef:h,setHasFocus:p,setFocusOptionIdx:A,scrollOptionIntoView:z,setReferenceElement:l,setShowPopover:o,internalRef:m,correctOptions:C,instanceUid:O,optionsPerSection:M,shouldPreventContextMenuOpening:P}),[z,_,C,u,t,a,V,h,w,S,s,f,g,D,m,O,M,P])};var L=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/useGetGlobalAttributes.js"),B=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/useGetXstyledProps.js"),Z=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/useOwnerProps/index.js"),be=T("./node_modules/.pnpm/@elliemae+ds-hooks-headless-tooltip@3.57.10_styled-components@5.3.11/node_modules/@elliemae/ds-hooks-headless-tooltip/dist/esm/DSHooksHeadlessTooltip.js");const ge={withoutAnimation:!1,animationDuration:300,withoutPortal:!1,placement:"top",customOffset:[0,12]},re={withoutPortal:r.A.bool.description("If true, the tooltip will not be rendered inside a portal.").defaultValue(!1),withoutAnimation:r.A.bool.description("If true, the tooltip will not have an animation.").defaultValue(!1),portalDOMContainer:r.A.instanceOf(HTMLElement).description("The DOM element where the tooltip will be rendered.").defaultValue('the first "main" landmark available in the document or the body if no "main" is found'),animationDuration:r.A.number.description("The duration of the animation in milliseconds.").defaultValue(300),placement:r.A.oneOf(["top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"]).description("The placement of the tooltip.").defaultValue("top"),customOffset:r.A.arrayOf(r.A.number).description("The custom offset of the tooltip.").defaultValue([12,12]),placementOrderPreference:r.A.oneOfType([r.A.tuple([r.A.oneOf(["top-start"])]),r.A.tuple([r.A.oneOf(["top"])]),r.A.tuple([r.A.oneOf(["top-end"])]),r.A.tuple([r.A.oneOf(["right-start"])]),r.A.tuple([r.A.oneOf(["right"])]),r.A.tuple([r.A.oneOf(["right-end"])]),r.A.tuple([r.A.oneOf(["bottom-end"])]),r.A.tuple([r.A.oneOf(["bottom"])]),r.A.tuple([r.A.oneOf(["bottom-start"])]),r.A.tuple([r.A.oneOf(["left-end"])]),r.A.tuple([r.A.oneOf(["left"])]),r.A.tuple([r.A.oneOf(["left-start"])])]).description("The order of the placement preference."),onOpen:r.A.func.description("Callback when the tooltip is opened."),onClose:r.A.func.description("Callback when the tooltip is closed."),externallyControlledIsOpen:r.A.bool.description("If true, the context open/close state will be controlled externally.")};var Ae=T("./node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/debounce.js");const de={left:"right",right:"left",bottom:"top",top:"bottom"};function ce(e){return e.replace(/left|right|bottom|top/g,t=>de[t])}const We={start:"end",end:"start"};function ze(e){const t=e.replace(/start|end/g,n=>We[n]);return t===e?e==="right"?"left":"right":t}const Ge={left:"top",right:"bottom",bottom:"right",top:"left"};function De(e){return e.replace(/left|right|bottom|top/g,t=>Ge[t])}const Je={left:"bottom-start",right:"top-start",bottom:"top-start",top:"bottom-start"};function Qe(e){return e.replace(/left|right|bottom|top/g,t=>Je[t])}const ve=e=>[ce(e),ze(e),De(e),ce(De(e)),Qe(e),ce(Qe(e))],Ke=(e,t,n)=>Math.min(n,Math.max(t,e)),et=({placement:e,referenceRect:t,floatingRect:n,x:o,y:s,withoutPortal:l,parentOffsets:a,floatingEl:c,arrowPadding:u=12})=>{const p=e.split("-")[0],m=p==="top"||p==="bottom",h=t.left+t.width/2,f=t.top+t.height/2;let g,S;if(!l)g=h+window.scrollX,S=f+window.scrollY;else{const b=c.offsetParent,x=b?.getBoundingClientRect(),v=x?.left??0,I=x?.top??0,O=b?.scrollLeft??0,w=b?.scrollTop??0;g=h-a.left-v+O,S=f-a.top-I+w}return m?{left:`${Ke(g-o,u,n.width-u)}px`}:{top:`${Ke(S-s,u,n.height-u)}px`}};function bn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ut(e,t,n){const o=e.split("-")[0],s=e.split("-")[1],l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2;let c={x:0,y:0};switch(o){case"top":c={x:l,y:t.y-n.height};break;case"bottom":c={x:l,y:t.y+t.height};break;case"right":c={x:t.x+t.width,y:a};break;case"left":c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}const u=o?bn(o):null;if(u!=null){const p=u==="y"?"height":"width";switch(s){case"start":c[u]=c[u]-(t[p]/2-n[p]/2);break;case"end":c[u]=c[u]+(t[p]/2-n[p]/2);break;default:}}return c}const wt={top:0,right:0,bottom:0,left:0};function Tt(e){return{...e,left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height}}function pt(e){return{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,toJSON:()=>{}}}const zt=(e,t,n,o,s)=>{const l=n.split("-")[0],a=["top","bottom"].indexOf(l)>=0,c=s??{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight},u=Ut(n,e,t),p=Tt({...pt(t),...u}),m={top:c.top-p.top+wt.top,bottom:p.bottom-c.bottom+wt.bottom,left:c.left-p.left+wt.left,right:p.right-c.right+wt.right},h={x:l==="left"?-(o?.[0]??12):o?.[0]??12,y:l==="top"?-(o?.[1]??12):o?.[1]??12};if(!a){const f=h.x;h.x=h.y*(l==="right"?1:-1),h.y=f}return Object.keys(m).forEach(f=>{const g=f==="right"||f==="bottom"?1:-1,S=f==="top"||f==="bottom"?"y":"x";m[f]+=h[S]*g}),m},bt=e=>{let t=e;for(;t&&t!==document.body;){if(getComputedStyle(t).position==="fixed")return t;t=t.parentElement}return null},Gt=e=>{const t=bt(e);if(t){const n=t.getBoundingClientRect();return{top:n.top,left:n.left}}return{top:0,left:0}},gn=e=>{let t=e?.parentElement??null;for(;t&&t!==document.body;){const n=getComputedStyle(t),o=n.overflowX||n.overflow,s=n.overflowY||n.overflow,l=/(auto|scroll|hidden|clip)/.test(o),a=/(auto|scroll|hidden|clip)/.test(s);if(l||a)return t;t=t.parentElement}return null},yn=()=>({top:0,left:0,right:window.innerWidth,bottom:window.innerHeight}),xn=(e,t,n)=>{let o=e,s=t;return n.left>0&&(o+=n.left),n.right>0&&(o-=n.right),n.top>0&&(s+=n.top),n.bottom>0&&(s-=n.bottom),{x:o,y:s}},Kt=e=>e.top<=0&&e.bottom<=0&&e.left<=0&&e.right<=0,Sn=e=>{const t=Math.max(0,e.top),n=Math.max(0,e.bottom),o=Math.max(0,e.left),s=Math.max(0,e.right),l=t+n+o+s,a=Math.max(t,n,o,s);return{total:l,maxSide:a}},Yn=e=>{const t=[],n=new Set,o=s=>{n.has(s)||(n.add(s),t.push(s))};return e.forEach(s=>{o(s);const[l,a]=s.split("-");a||(o(`${l}-start`),o(`${l}-end`))}),t},In=e=>{const t=e.offsetParent;if(!t)return{left:0,top:0,scrollLeft:0,scrollTop:0};const n=t.getBoundingClientRect();return{left:n.left,top:n.top,scrollLeft:t.scrollLeft??0,scrollTop:t.scrollTop??0}},Yt=e=>{const{reference:t,floating:n,placement:o,placementOrderPreference:s,customOffset:l,withoutPortal:a}=e,c=a?Gt(t):{top:0,left:0},u=t.getBoundingClientRect(),p=n.getBoundingClientRect(),m=s||ve(o),h=Yn([o].concat(m)),f=a?gn(t):null,g=f?f.getBoundingClientRect():yn();let S=o,y=null,b={total:Number.POSITIVE_INFINITY,maxSide:Number.POSITIVE_INFINITY};for(let C=0;C<h.length;C+=1){const M=h[C],k=zt(u,p,M,l,g);if(Kt(k)){S=M,y=k;break}const D=Sn(k);(D.maxSide<b.maxSide||D.maxSide===b.maxSide&&D.total<b.total)&&(S=M,y=k,b=D)}const x=S,v=y??zt(u,p,x,l,g);let I=-v.left-c.left,O=-v.top-c.top;if(!a)I+=window.scrollX,O+=window.scrollY;else{const C=In(n);I=I-C.left+C.scrollLeft,O=O-C.top+C.scrollTop}({x:I,y:O}=xn(I,O,v));const w=et({placement:x,referenceRect:u,floatingRect:p,x:I,y:O,withoutPortal:a,parentOffsets:c,floatingEl:n,arrowPadding:12});return{coordsStyle:{transform:`translate3d(${Math.round(I)}px, ${Math.round(O)}px, 0)`,top:0,left:0},finalPlacement:x,coordsArrow:w}},Xt=e=>{const{reference:t,floating:n,placement:o,placementOrderPreference:s,customOffset:l,withoutPortal:a,preventComputing:c=!1,debounceMs:u=150}=e,[p,m]=(0,i.useState)({style:{left:0},placement:"top"}),[h,f]=(0,i.useState)({position:"absolute",zIndex:3e3,visibility:"hidden",willChange:"transform"}),[g,S]=(0,i.useState)(!1),y=t!==null&&n!==null&&!c,b=(0,i.useCallback)(()=>{if(!y)return;const{coordsStyle:w,finalPlacement:C,coordsArrow:M}=Yt({reference:t,floating:n,placement:o,placementOrderPreference:s,customOffset:l,withoutPortal:a});f(k=>({position:"absolute",zIndex:3e3,...k,...w})),m({style:M,placement:C}),S(!0)},[y,t,n,o,s,l,a]),x=(0,i.useRef)(b);x.current=b;const v=(0,i.useMemo)(()=>(0,Ae.A)(()=>{x.current()},u),[u]);(0,i.useLayoutEffect)(()=>()=>{v.cancel()},[v]),(0,i.useLayoutEffect)(()=>{y&&x.current()},[y,t,n,o,s,l,a]);const I=(0,i.useCallback)(()=>{x.current()},[]),O=(0,i.useCallback)(()=>{f(w=>({...w,visibility:"hidden"}))},[]);return(0,i.useMemo)(()=>({arrowStyles:p,floatingStyles:h,hasComputedOnce:g,updateStyles:I,debouncedUpdateStyles:v,mutableUpdateStyles:x,resetVisibilityOnly:O}),[p,h,g,I,v,O])};class Xn{intersectionObserver;positionObserverCallback;thresholdList;constructor(t,n=1e3){this.positionObserverCallback=t,this.thresholdList=new Array(n+1).fill(0).map((o,s)=>s/n)}observe(t){this.intersectionObserver=new IntersectionObserver(this.viewportCallback.bind(this),{threshold:this.thresholdList,rootMargin:"0px 0px 0px 0px",root:document}),this.intersectionObserver.observe(t)}viewportCallback(t){const n=t[0],{target:o}=n,s=n.boundingClientRect;if(this.positionObserverCallback&&this.positionObserverCallback({x:s.left,y:s.top,target:o,outOfViewport:!n.isIntersecting,rootBounds:n.rootBounds}),n.intersectionRatio>0){this.intersectionObserver?.unobserve(o),this.intersectionObserver?.disconnect();const l={threshold:this.thresholdList,rootMargin:this.getMargins(this.constructBoxWindow(s,n.rootBounds),n.rootBounds),root:document};this.intersectionObserver=new IntersectionObserver(this.intersectionObsCallback.bind(this),l),this.intersectionObserver?.observe(o)}}intersectionObsCallback(t){const n=t[0],{target:o}=n,s=n.boundingClientRect;this.positionObserverCallback&&this.positionObserverCallback({x:s.left,y:s.top,target:o,outOfViewport:!1,rootBounds:n.rootBounds}),n.intersectionRatio===0&&(this.intersectionObserver?.unobserve(o),this.intersectionObserver?.disconnect(),this.intersectionObserver=new IntersectionObserver(this.viewportCallback.bind(this),{threshold:this.thresholdList,rootMargin:"0px 0px 0px 0px",root:document}),this.intersectionObserver?.observe(o))}disconnect(){this.intersectionObserver?.disconnect()}constructBoxWindow(t,n){const o=Math.min(Math.max(n.left,t.left),n.right-t.width),s=Math.min(Math.max(n.top,t.top),n.bottom-t.height),l=o+t.width,a=s+t.height;return{left:o,top:s,right:l,bottom:a}}getMargins(t,n){let o;n?o=n:o={top:visualViewport.offsetTop,left:visualViewport.offsetLeft,right:visualViewport.width+visualViewport.offsetLeft,bottom:visualViewport.height+visualViewport.offsetTop};const s=Math.min(-(t.top-1-o.top),0),l=Math.min(-(o.right-(t.right+1)),0),a=Math.min(-(o.bottom-(t.bottom+1)),0),c=Math.min(-(t.left-1-o.left),0);return`${s}px ${l}px ${a}px ${c}px`}}const te=(e,t=()=>{})=>{i.useEffect(()=>{if(!!!window.IntersectionObserver||!e)return()=>{};const o=new Xn(t);return o.observe(e),()=>{o.disconnect()}},[e,t])},Q=(e={})=>{const t=(0,K.b)(e,ge);(0,W.D)(t,re,"FloatingContext");const{withoutPortal:n,withoutAnimation:o,portalDOMContainer:s,animationDuration:l,placement:a,customOffset:c,placementOrderPreference:u,onOpen:p,onClose:m,externallyControlledIsOpen:h}=t,[f,g]=i.useState(!1),S=(0,i.useMemo)(()=>h!==void 0?h:f,[h,f]),y=i.useCallback(()=>{g(!0),p?.()},[p]),b=i.useCallback(()=>{g(!1),m?.()},[m]),x=(0,be.E)({onOpen:y,onClose:b}),{setReferenceElement:v,referenceElement:I,hideTooltip:O,showTooltip:w}=x,[C,M]=i.useState(null),{arrowStyles:k,floatingStyles:D,hasComputedOnce:z,updateStyles:V,debouncedUpdateStyles:A,mutableUpdateStyles:_}=Xt({reference:I,floating:C,placement:a,placementOrderPreference:u,customOffset:c,withoutPortal:n,preventComputing:!S,debounceMs:150});(0,i.useEffect)(()=>{if(!S)return;const ye=[];if(C){const Ne=new ResizeObserver(()=>{_.current()});Ne.observe(C),ye.push(Ne)}return()=>ye.forEach(Ne=>Ne.disconnect())},[S,C,V,_]);const P=i.useCallback(()=>{S&&A()},[S,A]);te(I,P);const F=(0,i.useMemo)(()=>({...D,visibility:S&&z?"visible":"hidden"}),[D,z,S]),H=(0,i.useMemo)(()=>({setReference:v,setFloating:M,floating:C,reference:I}),[v,C,I]),He=(0,i.useMemo)(()=>({onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onFocus:x.onFocus,onBlur:x.onBlur}),[x.onBlur,x.onFocus,x.onMouseEnter,x.onMouseLeave]);return(0,i.useMemo)(()=>({refs:H,floatingStyles:F,handlers:He,isOpen:S,arrowStyles:k,hideTooltip:O,showTooltip:w,context:{withoutPortal:n,withoutAnimation:o,portalDOMContainer:s,animationDuration:l},mutableUpdateStyles:_,forceUpdatePosition:V}),[H,F,He,S,k,O,w,n,o,s,l,_,V])};Q.displayName="FloatingContext";const ne=(0,U.A)(Q);ne.propTypes=re;var Oe=T("./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js"),ue=T("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js"),E=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/styled/styled.js"),ie=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/styled/system.js"),he=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/styled/helpers.js");const Re="DSFloatingwrapper",we={ROOT:"root",CONTENT:"content",ARROW:"arrow",ARROW_SHADOW:"arrow_shadow",ARROW_FILL:"arrow_fill"},lt={...(0,he.lD)(Re,we),ROOT:"ds-floating-wrapper-root",ARROW:"ds-tooltip-arrow"},Et=(0,ue.i7)`
2
+ from {
3
+ opacity: 0;
4
+ transform: scale(0.8);
5
+ }
6
+
7
+ to {
8
+ opacity: 1;
9
+ transform: scale(1);
10
+ visibility: visible;
11
+ }
12
+ `,qt=(0,ue.i7)`
13
+ from {
14
+ opacity: 1;
15
+ transform: scale(1);
16
+ }
17
+
18
+ to {
19
+ opacity: 0;
20
+ transform: scale(0.8);
21
+ visibility: hidden;
22
+ }
23
+ `,An=(0,E.I)("div",{name:Re,slot:we.CONTENT})`
24
+ background-color: #fff;
25
+ box-shadow:
26
+ 0 0 0 1px rgba(16, 22, 26, 0.1),
27
+ 0 2px 4px rgba(16, 22, 26, 0.2),
28
+ 0 8px 24px rgba(16, 22, 26, 0.2);
29
+
30
+ ${({isOpen:e,animationDuration:t,withoutAnimation:n})=>!n&&(0,ie.AH)`
31
+ animation: ${e?Et:qt} ${t??100}ms ease-in;
32
+ `}
33
+ `,qn=(0,E.I)("div",{name:Re,slot:we.ROOT})``;var at=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),Me=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/xstyledPropTypes.js");const lr={context:{withoutPortal:!1,animationDuration:300,withoutAnimation:!1},customOffset:[0,12]},ar={...(0,at.Y)(Re,we),...ae.P,...Me.w,children:r.A.node.description("Content of the floating wrapper").isRequired,innerRef:r.A.oneOfType([r.A.object,r.A.func]).description("Ref for the floating wrapper").isRequired,isOpen:r.A.bool.description("Whether the floating wrapper is open").isRequired,floatingStyles:r.A.object.description("Style for the floating wrapper").isRequired,context:r.A.shape({portalDOMContainer:r.A.instanceOf(HTMLElement).description("The DOM element where the tooltip will be rendered.").defaultValue('the first "main" landmark available in the document or the body if no "main" is found'),withoutPortal:r.A.bool.description("Whether to render the floating wrapper without a portal"),animationDuration:r.A.number.description("Duration of the animation"),withoutAnimation:r.A.bool.description("Whether to render the floating wrapper without animation")}).description("Context for the floating wrapper"),onAnimationStartTriggered:r.A.func.description("Callback invoked when the component trigger the animation start. Required to properly position nested floating context without visual artefacts in case animations are used."),onAnimationEnd:r.A.func.description("Callback when the animation ends. Required to properly position nested floating context without visual artefacts in case animations are used."),customOffset:r.A.arrayOf(r.A.number).description("Custom offset for the floating wrapper")},nu=null,dr=e=>{const t=i.useMemo(()=>({...lr,...e}),[e]),n=(0,B.d)(t),o=(0,L.u)(t),s=i.useMemo(()=>(0,oe.L)(5),[]);return i.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:s,globalsAttrs:o}),[t,n,s,o])},cr=()=>{const e=document.querySelector("main");return e||console.log(`No "main" element found in the document. Using body instead.
34
+ Not having a main element is usually the start of accessibility issues related to landmarks.
35
+ If this is actually intentional, you should provide the correct DOM element to host the portal via portalDOMContainer`),e||document.body},ko=i.memo(({children:e,innerRef:t,floatingStyles:n,isOpen:o,animationDuration:s,withoutAnimation:l,handleAnimationEnd:a,xstyledProps:c,globalsAttrs:u,ownerPropsConfig:p})=>(0,d.jsx)(qn,{innerRef:t,style:n,...c,"data-testid":"ds-floating-wrapper-root",...u,...p,children:(0,d.jsx)(An,{onAnimationEnd:a,isOpen:o,animationDuration:s,withoutAnimation:l,...p,children:e})})),Zt=e=>{const{propsWithDefault:t,xstyledProps:n,globalsAttrs:o}=dr(e),{isOpen:s}=t,l=(0,Z.j)(e),{context:a,onAnimationEnd:c,onAnimationStartTriggered:u,...p}=t,{portalDOMContainer:m,withoutPortal:h,withoutAnimation:f}=a,[g,S]=i.useState(!1);i.useEffect(()=>{s&&!f&&(S(!0),u?.())},[s,u,f]);const y=i.useCallback(b=>{S(!1),c&&c(b)},[c]);if(s||g){if(h===!0)return(0,d.jsx)(ko,{xstyledProps:n,globalsAttrs:o,ownerPropsConfig:l,...p,...a,handleAnimationEnd:y});if(!h)return(0,d.jsx)(d.Fragment,{children:(0,Oe.createPortal)((0,d.jsx)(ko,{xstyledProps:n,globalsAttrs:o,ownerPropsConfig:l,...p,...a,handleAnimationEnd:y}),m||cr())})}return null};Zt.displayName=Re;const ur=(0,U.A)(Zt);ur.propTypes=ar;var Mt=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/xStyledWrapper.js");const pr=(0,E.I)("div",{name:st,slot:ut.CONTAINER})`
36
+ position: relative;
37
+ cursor: ${({disabled:e})=>e?"not-allowed":"default"};
38
+ cursor: ${({applyAriaDisabled:e})=>e?"not-allowed":"default"};
39
+ min-width: 64px;
40
+ ${Mt.L1}
41
+ `,mr=(0,E.I)("div")`
42
+ position: relative;
43
+ cursor: ${({disabled:e})=>e?"not-allowed":"default"};
44
+ cursor: ${({applyAriaDisabled:e})=>e?"not-allowed":"default"};
45
+ overflow: auto;
46
+ `;var Zn=T("./node_modules/.pnpm/@elliemae+ds-truncated-tooltip-text@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-truncated-tooltip-text/dist/esm/SimpleTruncatedTooltipText.js");const Fe={CONTROLS_WRAPPER:"combobox-controls-wrapper",CONTAINER:"combobox-container",INPUT:"combobox-input",LIST:"combobox-menu-list",NO_MATCHES_FOUND:"combobox-no-matches-found",SELECTED_VALUES:"combobox-selected-values",DROPDOWN:"combobox-dropdown-btn",OPTION:"combobox-option",ALLY_SELECTED_VALUES:"combobox-ally-selected-values"};var No=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/mergeRefs.js");const hr=(0,E.I)("input")`
47
+ color: transparent;
48
+ position: absolute;
49
+ top: 0;
50
+ left: 0;
51
+ z-index: 2;
52
+ border: none;
53
+ outline: none;
54
+ background: transparent;
55
+ width: 100%;
56
+ &:focus {
57
+ outline: none;
58
+ }
59
+ ${({isDisabled:e})=>e&&"cursor: not-allowed;"}
60
+ `,fr=(0,E.I)("input",{name:st,slot:ut.INPUT})`
61
+ line-height: 1rem;
62
+ background: transparent;
63
+ font-size: 1rem;
64
+ border: none;
65
+ overflow: hidden;
66
+ padding: 0;
67
+ z-index: 2;
68
+ outline: none;
69
+ color: ${e=>e.theme.colors.neutral[700]};
70
+ &:focus {
71
+ outline: none;
72
+ }
73
+ ${({withoutCaret:e})=>e&&"caret-color: transparent;"}
74
+ &::placeholder {
75
+ color: transparent;
76
+ }
77
+ transition: none;
78
+ ${({applyAriaDisabled:e})=>e&&"cursor: not-allowed; caret-color: transparent;"}
79
+ `,br=E.I.div`
80
+ font-style: italic;
81
+ color: ${e=>e.theme.colors.neutral[500]};
82
+ position: absolute;
83
+ display: flex;
84
+ align-items: center;
85
+ width: 100%;
86
+ user-select: none;
87
+
88
+ line-height: 1rem;
89
+ font-size: 1rem;
90
+
91
+ & span::after {
92
+ content: '';
93
+ padding: 1px;
94
+ // solve italic font style clipping issue with overflow hidden.
95
+ }
96
+ `,gr=E.I.span`
97
+ visibility: hidden;
98
+ position: absolute;
99
+ top: -9999px;
100
+ z-index: 1;
101
+ `,yr=(0,E.I)("div")`
102
+ position: relative;
103
+ align-items: center;
104
+ display: flex;
105
+ padding-right: 1px;
106
+ overflow: hidden;
107
+ `,jo=(0,E.I)("div")`
108
+ display: none;
109
+ `,xr=()=>{const{props:{useMask:e,onFilter:t,allOptions:n,applyAriaDisabled:o},setMenuState:s,setInputValue:l,setFocusOptionIdx:a}=(0,i.useContext)(Te),c=(0,i.useCallback)(m=>{o||(s(!0,"filter",m),t&&t(Ze(m.currentTarget.value,n),m.currentTarget.value),a(""),l(m.currentTarget.value))},[o,s,t,a,l,n]),u=(0,i.useCallback)((m,h)=>{s(!0,"filter",m),h&&t?t(Ze(h,n),h):!h&&t&&t(n,"")},[s,t,n]);return e({valueSetter:l,onChange:u})?.onChange||c},Sr=2,Ir=()=>{const{props:{selectedValues:e,allOptions:t,placeholder:n,onFilter:o,inline:s},setHasFocus:l,inputValue:a,setInputValue:c}=(0,i.useContext)(Te),[u,p]=(0,i.useState)(1),m=(0,i.useRef)(null),h=!a&&(s||q(e))?n:null,f=(a||"").replace(/\s/g,"\xA0")||"";(0,i.useLayoutEffect)(()=>{const b=m.current;if(!b)return;const x=Math.ceil(b.offsetWidth)+Sr;Math.abs(x-u)>=1&&p(x)},[f,u]);const g=xr(),S=(0,i.useCallback)(()=>{c(""),o&&o(t),l(!1)},[c,o,t,l]),y=(0,i.useCallback)(()=>l(!0),[l]);return(0,i.useMemo)(()=>({handleOnBlur:S,handleOnChange:g,handleOnFocus:y,showPlaceholder:h,spanReferenceText:f,width:u,spanReference:m}),[S,g,y,h,f,u])},vn=e=>!["section","separator"].includes(e.type),Ar=(e,t)=>e.label!==void 0&&e.label.toLowerCase().startsWith(t.toLowerCase()),vr=()=>{const{props:{allOptions:e,isNonClearable:t,onCancel:n,disabled:o,onKeyDown:s,onChange:l,onCreate:a,onFilter:c,onSelectAll:u,inline:p,selectedValues:m,withoutPortal:h,onlySelectable:f,applyAriaDisabled:g,readOnly:S,isMenuOpenableWithReadOnly:y},inputValue:b,correctOptions:x,menuState:v,focusOptionIdx:I,listRef:O,setMenuState:w,setInputValue:C,scrollOptionIntoView:M,setFocusOptionIdx:k}=(0,i.useContext)(pe),D=Array.isArray(m),z=j(x),V=x.findIndex(P=>P.dsId===I),A=x.find(P=>P.dsId===I);return{onInputKeyDown:(0,i.useCallback)(P=>{if(!(g||S&&!y||o)){if(s&&A?.type===Ie.OPTION&&s(P,A),["ArrowDown","ArrowUp","Enter","Spacebar"].includes(P.key)&&!v&&w(!0,R.OPEN,P),P.key==="Escape"&&(n&&n(),b&&(c&&c(e,b),C("")),p||w(!1,R.CLOSE,P)),!S&&P.key==="Enter"&&A?.type===Ot.CREATABLE&&a){a(b),k(""),c&&c(e,""),C("");return}if(y&&P.key.length===1&&!P.ctrlKey&&!P.altKey&&!P.metaKey&&(v||w(!0,R.OPEN,P)),P.key==="Enter"||P.key===" "&&P.altKey||P.key==="Tab"&&!D&&!p){if(S||A?.applyAriaDisabled)return;P.key!=="Tab"&&P.preventDefault(),P.stopPropagation(),I!==""&&(v||p)&&A?.type===Ie.OPTION&&!A.disabled&&(c&&c(e,""),C(""),D||w(!1,R.SELECT_OPTION,P),l(_e(A,m,t),A,P))}if(P.key==="Enter"&&P.altKey&&w(!1,"selectOption",P),P.key==="a"&&P.ctrlKey&&D&&u&&u(x.filter(F=>F.type==="option"&&!F.disabled),P),P.key==="ArrowDown"&&(P.preventDefault(),P.stopPropagation(),(v||p)&&(z.length||a))){const F=fe(x,V,vn);F>-1&&(k(x[F].dsId),M(x[F].dsId))}if(P.key==="ArrowUp"){if(P.preventDefault(),P.stopPropagation(),!z.length&&!a)return;const F=fe(x,V===-1?0:V,vn,-1);if(F>-1)if(v||p)k(x[F].dsId),M(x[F].dsId);else{w(!0,R.OPEN,P);const H=fe(x,0,vn,-1);k(x[H].dsId),setTimeout(()=>{M(x[H].dsId)})}}if(P.key==="Backspace"&&P.currentTarget.value.length<=0&&!p){if(S)return;const F=it(m);!P.currentTarget.value&&F&&!t&&!F.applyAriaDisabled&&l(_e(F,m),F,P)}if(P.key==="Tab"&&!p&&v&&w(!1,R.BLUR,P),f&&/^[a-zA-Z\d]$/.test(P.key)){v||w(!0,R.OPEN,P);const H=fe(x,V,ye=>vn(ye)&&Ar(ye,P.key));if(!x[H])return;k(x[H].dsId),M(x[H].dsId)}}},[s,A,a,D,b,p,h,w,n,c,C,O,I,v,z.length,x,V,k,m,l,t])}},Or=()=>{const{props:e,props:{autoFocus:t,inline:n,selectedValues:o,placeholder:s,disabled:l,innerRef:a,isLoading:c,onlySelectable:u,applyAriaDisabled:p,readOnly:m,...h},focusOptionIdx:f,hasFocus:g,internalRef:S,inputValue:y,setInputValue:b,menuState:x,instanceUid:v}=(0,i.useContext)(pe),{onInputKeyDown:I}=vr(),{spanReference:O,width:w,spanReferenceText:C,showPlaceholder:M,handleOnBlur:k,handleOnChange:D,handleOnFocus:z}=Ir(),{getOwnerProps:V,getOwnerPropsArguments:A}=(0,Z.j)(e),{tabIndex:_,id:P,"aria-describedby":F,...H}=(0,L.u)(h,{onFocus:z,onBlur:k}),He=(0,i.useMemo)(()=>P?`${F??""} ${P}_current_placeholder ${P}_feedback_message ${P}_error_message`:F,[F,P]),ye=(0,i.useMemo)(()=>Ee(o)?`options ${o.map(je=>je.label).join(", ")} selected. ${m?"Read only":""}`:typeof o?.label=="string"?`option ${o.label} selected. ${m?"Read only":""}`:m?`${s}. Read only`:s,[s,o,m]),Ne=(0,i.useMemo)(()=>{if(!c&&g&&x)return f},[f,g,c,x]),Bt=je=>{je.preventDefault(),b(je.clipboardData.getData("text/plain")),S.current?.focus()};return(0,d.jsxs)(yr,{children:[(0,d.jsx)(gr,{innerRef:O,children:C}),M&&(0,d.jsx)(br,{"aria-hidden":"true",children:(0,d.jsx)(Zn.n,{value:M})}),x===!1&&!n?(0,d.jsx)(jo,{id:`combo-listbox-${v}`}):null,(0,d.jsx)(jo,{id:`${P}_current_placeholder`,children:ye}),(0,d.jsx)(fr,{getOwnerProps:V,getOwnerPropsArguments:A,onBlur:k,onFocus:z,readOnly:m||u,...H,id:P,"data-testid":Fe.INPUT,autoFocus:t,placeholder:ye,"aria-activedescendant":Ne,"aria-expanded":x,"aria-controls":`combo-listbox-${v}`,"aria-describedby":He,"aria-autocomplete":"list",role:"combobox",disabled:l,applyAriaDisabled:p,style:{width:w},innerRef:(0,No.Px)(a,S),value:y,type:"text",onKeyDown:I,onChange:D,tabIndex:_,withoutCaret:u,autoComplete:"off","aria-readonly":m}),(0,d.jsx)(hr,{type:"text",disabled:l||p,readOnly:m,name:"hidden",tabIndex:-1,onPaste:Bt,"aria-hidden":"true",isDisabled:l||p})]})};var Lo=T("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/DSButtonV2/DSButtonV2.js"),Jn=T("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronSmallDown.js");const tt="DSCombobox",nt={ROOT:"root",INPUT_WRAPPER:"input-wrapper",INPUT:"input",DROPDOWN_BUTTON:"dropdown-button",FAST_LIST:"fast-list",SECTION_WRAPPER:"section-wrapper",SECTION_LABEL:"section-label",SINGLE_MENU_ITEM:"single-menu-item",MULTI_MENU_ITEM:"multi-menu-item",LOADING_INDICATOR:"loading-indicator",SKELETON_MENU_ITEM:"skeleton-menu-item"},ou={...(0,he.lD)(tt,nt),CONTROLS_WRAPPER:"combobox-controls-wrapper",CONTAINER:"combobox-container",INPUT:"combobox-input",LIST:"combobox-menu-list",NO_MATCHES_FOUND:"combobox-no-matches-found",SELECTED_VALUES:"combobox-selected-values",DROPDOWN:"combobox-dropdown-btn",OPTION:"combobox-option",ALLY_SELECTED_VALUES:"combobox-ally-selected-values"},wr=(0,E.I)(Lo.e,{name:tt,slot:nt.DROPDOWN_BUTTON})`
110
+ &:focus::after {
111
+ border: none;
112
+ }
113
+ &:hover:not(:disabled) {
114
+ background-color: transparent;
115
+ }
116
+
117
+ & svg {
118
+ fill: ${({theme:e,disabled:t,readOnly:n,applyAriaDisabled:o})=>t||n||o?e.colors.neutral[400]:e.colors.brand[600]};
119
+ }
120
+
121
+ ${({applyAriaDisabled:e})=>e&&"cursor: not-allowed"}
122
+ `,Tr=()=>{const{props:e,props:{disabled:t,applyAriaDisabled:n,readOnly:o,isMenuOpenableWithReadOnly:s},menuState:l,instanceUid:a}=(0,i.useContext)(Te),{getOwnerProps:c,getOwnerPropsArguments:u}=(0,Z.j)(e),p=(0,i.useCallback)(m=>{m.preventDefault()},[]);return(0,d.jsx)(wr,{getOwnerProps:c,getOwnerPropsArguments:u,onClick:p,"data-testid":Fe.DROPDOWN,"aria-controls":`combo-listbox-${a}`,"aria-labelledby":"combo-label",disabled:t,"aria-disabled":o&&!s,"aria-expanded":l,"aria-haspopup":"listbox","aria-hidden":!0,buttonType:"icon",tabIndex:-1,size:"s",applyAriaDisabled:n,children:(0,d.jsx)(Jn.A,{size:"s"})})};var J=T("./node_modules/.pnpm/@elliemae+ds-grid@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-grid/dist/esm/Grid.js"),Wo=T("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/DSButtonV3/react-desc-prop-types.js");const Jt="DSMenubutton",ot={SEPARATOR:"separator",ACTIVABLE_ITEM:"activable-item",ACTIVABLE_WITH_SUBMENU_ITEM:"activable-with-submenu-item",SKELETON_ITEM:"skeleton-item",MULTIPLE_SELECT_ITEM:"multiple-select-item",MULTIPLE_SELECT_WITH_SUBMENU_ITEM:"multiple-select-with-submenu-item",WITH_SUBMENU_ITEM:"with-submenu-item",SINGLE_SELECT_ITEM:"single-select-item",SINGLE_SELECT_WITH_SUBMENU_ITEM:"single-select-with-submenu-item",GROUP:"group"},Qn={ROOT:"root"},Er=(0,he.lD)(Jt,Qn),On={onClickOutside:()=>null,onOptionClick:()=>null,openedSubmenus:{},onSubmenuToggle:()=>null,isLoading:!1,isSkeleton:!1,maxHeight:"256px"},Fo={onItemSelected:r.A.func.description("IoC function in charge of handling the selection of a menu item, required if the menu has selectionable items").signature(`((
123
+ newSelection: DSMenuButtonT.PseudoFocusableMenuNodes[],
124
+ metainfo: { itemNode: DSMenuButtonT.PseudoFocusableMenuNodes; event?: React.SyntheticEvent },
125
+ ) => void)`),onActivateItem:r.A.func.description("IoC function in charge of handling the activation (NOT INVOKED ON SELECTION) of a menu item, required if the menu has activable items").signature(`((
126
+ itemNode: DSMenuButtonT.PseudoFocusableMenuNodes,
127
+ metainfo: { itemNode: DSMenuButtonT.PseudoFocusableMenuNodes; event?: React.SyntheticEvent },
128
+ ) => void)`),onOpen:r.A.func.description("function triggered when the widget opens the menu").signature("(()=>void)"),onClose:r.A.func.description("function triggered when the widget closes the menu").signature("(()=>void)"),onDisplayedSubmenuChange:r.A.func.description("function triggered when the widget's closes or opens a submenu").signature(`((
129
+ newOpenedItems: DSMenuButtonT.PseudoFocusableMenuNodes[],
130
+ metainfo: { itemNode: DSMenuButtonT.PseudoFocusableMenuNodes; event?: React.SyntheticEvent },
131
+ ) => void)`)},eo={ItemRenderer:r.A.node.description("Component to be used to render the items"),onClickOutside:r.A.func.description("Callback executed when you click outside the dropdown menu, or press the Esc key").defaultValue(()=>null),onOptionClick:r.A.func.description("Callback triggered when an item is clicked or pressed. We provide the next selected options, the clicked option and the event, in that order").defaultValue(()=>null),openedSubmenus:r.A.object.description("Object with the ids of the submenus as keys, and booleans as keys. Represents the state of the current opened submenus").defaultValue({}),onSubmenuToggle:r.A.func.description("Callback triggered when a submenu is opened or closed.").signature("((nextOpenedSubmenus: Record<string, boolean>, submenu: Item, e: React.MouseEvent | React.KeyboardEvent) => void)").defaultValue(()=>null),isLoading:r.A.bool.description("Whether the flyout menu should render the loading indicator").defaultValue(!1),isSkeleton:r.A.bool.description("Whether the flyout menu should render the skeleton").defaultValue(!1),maxHeight:r.A.oneOfType([r.A.string,r.A.number]).description("The maximum height of the flyout menu").defaultValue("256px")},to={options:r.A.oneOfType([r.A.array,r.A.object]).description("Array of options to display in the menu or a DSTree node to build branches from").isRequired,selectedItems:r.A.arrayOf(r.A.object).description("an array of tree-nodes or tree-items that have to be marked as selected in the GUI, required if the menu has selectionable items"),...Wo.t,...Fo,...eo,...(0,at.Y)(Jt,Qn)},Mr=to,$e=e=>{const t=e;return typeof e=="object"&&e!==null&&typeof t.plainItem=="object"&&t.plainItem?.type!==void 0&&t.dsId!==void 0},no=e=>$e(e)&&e.plainItem?.type===ot.ACTIVABLE_ITEM,$o=e=>$e(e)&&e.plainItem?.type===ot.SKELETON_ITEM,oo=e=>$e(e)&&e.plainItem?.type===ot.MULTIPLE_SELECT_ITEM,gt=e=>$e(e)&&e.plainItem?.type===ot.MULTIPLE_SELECT_WITH_SUBMENU_ITEM,Pt=e=>oo(e)||gt(e),Vo=e=>$e(e)&&e.plainItem?.type===ot.SINGLE_SELECT_ITEM,wn=e=>$e(e)&&e.plainItem?.type===ot.SINGLE_SELECT_WITH_SUBMENU_ITEM,Tn=e=>Vo(e)||wn(e),Qt=e=>Pt(e)||Tn(e),su=e=>e.flatten().filter(Qt),En=e=>$e(e)&&e.plainItem?.type===ot.WITH_SUBMENU_ITEM,Bo=e=>wn(e)||gt(e),so=e=>$e(e)&&e.plainItem?.type===ot.ACTIVABLE_WITH_SUBMENU_ITEM,dt=e=>En(e)||Bo(e)||so(e),ru=e=>e.flatten().filter(dt),Ct=e=>Qt(e)||no(e)||dt(e)||$o(e),Pr=e=>e.flatten().filter(Ct),Cr=e=>$e(e)&&e.plainItem?.type===ot.SEPARATOR,_t=e=>$e(e)&&e.plainItem?.type===ot.GROUP,en=e=>$e(e)&&e.plainItem?.type==="ROOT_ITEM",ro=e=>en(e)||dt(e)||_t(e)||wn(e)||gt(e)||so(e);var _r=T("./node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js");class Mn{dsId;childIndex;depth;plainItem;plainChildren;parent;children;tree;_hash;constructor(t,{childIndex:n,depth:o,parent:s,tree:l}){this.dsId=l.getUniqueId(t),this.childIndex=n,this.depth=o,this.parent=s??null,this.tree=l,this._hash=0,this.children=[],this.plainChildren=[],(t.subitems??[]).forEach((c,u)=>{this.plainChildren.push(this.getCleanItem(c)),this.children.push(new Mn(c,{childIndex:u,depth:o+1,parent:this,tree:l}))}),this.plainItem=this.getCleanItem(t)}fixChildIndexes=()=>{for(let t=0;t<this.children.length;t+=1)this.children[t].childIndex=t;this._hash+=1};getCleanItem=t=>{const{subitems:n,...o}=t;return(0,_r.A)(o)};get hash(){return this._hash}walk=t=>{if(t(this))for(const o of this.children)o.walk(t)};walkParents=t=>{t(this)&&this.parent&&this.parent.walkParents(t)};findNode=t=>{let n=null;return this.walk(o=>n?!1:(t(o)&&(n=o),!n)),n};findAllNodes=t=>{const n=[];return this.walk(o=>(t(o)&&n.push(o),!0)),n};flatten=()=>{const t=[];return this.walk(n=>(t.push(n),!0)),t};getPath=t=>{const n=[],o=this.tree.getNode(t);return o?(o.walkParents(s=>(n.push(s),s.dsId!==this.dsId)),n.reverse()):n};getPathIds=t=>this.getPath(t).map(n=>n.dsId);getJson=()=>({...this.plainItem,subitems:this.children?.map?.(t=>t.getJson())??void 0});addNode=t=>{const n=t.childIndex;if(n<0||n>this.children.length)throw new Error(`Invalid position ${n} for parent ${this.dsId} with item ${t.dsId}`);this.children.splice(n,0,t),this.fixChildIndexes(),t.walk(o=>(this.tree.addNodeToNodesDictionary(o),!0)),this._hash+=1};removeNode=()=>{if(!this.parent)throw new Error(`Cannot remove root node with id ${this.dsId}`);this.parent.children.splice(this.childIndex,1),this.parent.fixChildIndexes(),this.walk(t=>(this.tree.removeNodeFromNodesDictionary(t),!0)),this._hash+=1}}class Dr{root;_hash;nodes;getUniqueId;constructor(t,n){this.getUniqueId=n.getUniqueId,this.root=new Mn(t,{childIndex:0,depth:0,tree:this}),this.nodes={},this._hash=0,this.root.walk(o=>(this.nodes[o.dsId]=o,!0))}addNodeToNodesDictionary(t){if(this.nodes[t.dsId])throw new Error(`DSTree: repeated dsId ${t.dsId}`);this.nodes[t.dsId]=t}removeNodeFromNodesDictionary(t){delete this.nodes[t.dsId]}get hash(){return this._hash}getRoot=()=>this.root;getNode=t=>this.nodes[t];getNodes=()=>this.nodes;walk=t=>{this.root.walk(t)};walkParents=t=>{this.root.walkParents(t)};findNode=t=>this.root.findNode(t);findAllNodes=t=>this.root.findAllNodes(t);flatten=()=>this.root.flatten();addNode=(t,n={})=>{const{position:o,parent:s,callback:l}=n,a=s||this.root,c=o??a.children.length,u=new Mn(t,{childIndex:c,depth:a.depth+1,parent:a,tree:this});return this.getNode(a.dsId).addNode(u),this._hash+=1,l?.(u,this),u};removeNode=(t,n={})=>{const o=this.getNode(t);if(!o)throw new Error(`Node with id ${t} not found`);return o.removeNode(),this._hash+=1,n.callback?.(o,this),o};moveNode=(t,n={})=>{const o=this.removeNode(t),s=this.addNode(o.getJson(),n);return this._hash+=1,s};replaceNode=(t,n,o={})=>{const s=this.removeNode(t),l=this.addNode(n,{parent:s.parent,position:s.childIndex});return this._hash+=1,o.callback?.(l,this),l};getPath=t=>this.getRoot().getPath(t);getPathIds=t=>this.getRoot().getPathIds(t)}const Ho={dsId:r.A.oneOfType([r.A.string,r.A.number]).description("Id of the root item."),label:r.A.string.description("Item label."),"[key]":r.A.string.description("Any custom key you want to add to the item.")},Rr={rootItem:r.A.shape({...Ho,subitems:r.A.arrayOf(r.A.shape(Ho)).description("Array of subitems. Each subitem can also have subitems.")}).description("First parameter.").isRequired,opts:r.A.shape({getUniqueId:r.A.func.signature("(item) => string | number").description("Callback to get the id of each item.").isRequired}).description("Second parameter.").isRequired},kr={hash:r.A.number.description("Tree hash value."),getRoot:r.A.func.signature("() => rootItem").description("Callback to get the root item."),getNode:r.A.func.signature("(id: string | number) => item").description("Callback to get an item by id."),walk:r.A.func.signature("(callback: (item: FirstParameter) => boolean) => void").description("Callback applied to each item to determine whether to continue walking or not."),walkParents:r.A.func.signature("(callback: (item: FirstParameter) => boolean) => void").description("Callback applied to each item to determine whether to continue walking the item's parents or not."),findNode:r.A.func.signature("(callback: (item: FirstParameter) => boolean) => FirstParameter | null").description("Callback to find an item that matches the condition."),findAllNodes:r.A.func.signature("(callback: (item: FirstParameter) => boolean) => FirstParameter[]").description("Callback to find all the items that matches the condition."),flatten:r.A.func.signature("() => item[]").description("Returns an array of hte tree items."),addNode:r.A.func.signature("(item: FirstParameter, options?: AddOptions<FirstParameter> | undefined) => FirstParameter").description("Adds an item to the tree."),removeNode:r.A.func.signature("(id: string, options?: RemoveOptions<FirstParameter> | undefined) => FirstParameter").description("Removes an item from the tree."),moveNode:r.A.func.signature("(id: string, options?: MoveOptions<FirstParameter> | undefined) => FirstParameter").description("Move an item within the tree."),replaceNode:r.A.func.signature("id: string, item: FirstParameter, options?: MutateOptions<FirstParameter> | undefined) => FirstParameter").description("Replace a noe within the tree."),getPath:r.A.func.signature("(id: string | number) => FirstParameter[]").description("Get the path to an item given the item's id."),getPathIds:r.A.func.signature("(id: string | number) => (string | number)[]").description("Get the path ids to an item given the item's id.")},io=(e,t)=>{const n=(0,i.useMemo)(()=>new Dr(e,t),[t,e]),[o,s]=(0,i.useState)(n.hash),l=(0,i.useCallback)((p,m)=>{const h=(f,g)=>{m?.callback?.(f,g),s(g.hash)};return n.addNode(p,{...m,callback:h})},[n]),a=(0,i.useCallback)((p,m)=>{const h=(f,g)=>{m?.callback?.(f,g),s(g.hash)};return n.removeNode(p,{...m,callback:h})},[n]),c=(0,i.useCallback)((p,m)=>{const h=(f,g)=>{m?.callback?.(f,g),s(g.hash)};return n.moveNode(p,{...m,callback:h})},[n]),u=(0,i.useCallback)((p,m,h)=>{const f=(g,S)=>{h?.callback?.(g,S),s(S.hash)};return n.replaceNode(p,m,{...h,callback:f})},[n]);return{hash:o,getRoot:n.getRoot,getNode:n.getNode,walk:n.walk,walkParents:n.walkParents,findNode:n.findNode,findAllNodes:n.findAllNodes,flatten:n.flatten,addNode:l,removeNode:a,moveNode:c,replaceNode:u,getPath:n.getPath,getPathIds:n.getPathIds}};io.displayName="useDSTree";const Uo=(0,U.A)(io);Uo.propTypes=Rr,Uo.returnType=kr;const Nr={getUniqueId:e=>e.dsId},jr=({options:e,instanceUid:t,propsWithDefault:n})=>{const{maxHeight:o}=n||On,s=i.useMemo(()=>({dsId:`root-${t}`,type:"ROOT_ITEM",subitems:e,maxHeight:o}),[t,o,e]);return io(s,Nr)},zo=(e,t)=>{typeof e=="function"&&e(t),"current"in e&&(e.current=t)},Lr=(e,t)=>{const n=[];return e.forEach(o=>{if(!!$e(o)){n.push(o);return}const{dsId:l}=o,a=t.findNode(c=>c.dsId===l);if(!a)throw new Error(`Selected option with dsId ${l} not found in the menu tree.`);if(!Qt(a)){console.warn(`Selected option with dsId ${l} is not a selectionable node and will be ignored.`);return}n.push(a)}),n},Wr=({propsWithDefault:e,focusableNodes:t,treeRootNode:n})=>{const o=i.useRef(null),{options:s,onClickOutside:l,onOptionClick:a,openedSubmenus:c,onSubmenuToggle:u,isLoading:p,isSkeleton:m,ItemRenderer:h,innerRef:f,selectedItems:g,onDisplayedSubmenuChange:S,onItemSelected:y,onActivateItem:b,onOpen:x,onClose:v,maxHeight:I,...O}=e,w=i.useCallback(k=>{o.current=k,f&&zo(f,k)},[f]),C=i.useMemo(()=>g?Lr(g,n):[],[g,n]),M=i.useMemo(()=>({options:s,onClickOutside:l,onOptionClick:a,openedSubmenus:c,onSubmenuToggle:u,isLoading:p,isSkeleton:m,ItemRenderer:h}),[s,l,a,c,u,p,m,h]);return i.useMemo(()=>({menuBehaviouralLayerProps:{buttonDOMNodeRef:o,selectedNodes:C,focusableNodes:t,optionsTree:n,onDisplayedSubmenuChange:S,onItemSelected:y,onActivateItem:b,onOpen:x,onClose:v},opinionatedButtonProps:{...O,innerRef:w,menuSpecificProps:M}}),[C,t,n,S,y,b,x,v,O,w,M])},Fr=(e,t)=>{(0,W.D)(e,t,Jt)},$r=e=>{const t=(0,K.b)(e,On);Fr(t,to);const n=(0,B.d)(t),o=i.useMemo(()=>`menu-button${(0,oe.L)(5)}`,[]),{options:s}=t,l=Array.isArray(s)?s:[],a=jr({options:l,instanceUid:o,propsWithDefault:t}).getRoot(),c=i.useMemo(()=>Array.isArray(s)?a:s,[s,a]),u=i.useMemo(()=>Pr(c),[c]),p=Wr({propsWithDefault:t,focusableNodes:u,treeRootNode:c});return i.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:o,...p}),[t,n,o,p])};var Vr=T("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/DSButtonV3/DSButtonV3.js"),Br=T("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/SharedButtonBaseline/react-desc-prop-types.js");const tn="DSOpinionatedbutton",iu={},lo={ROOT:"root"},lu=(0,he.lD)(tn,lo),Hr={...Br.G},Go={...(0,at.Y)(tn,lo),...Wo.t,menuSpecificProps:r.A.shape(eo).description("Props for the main flyout menu").isRequired,innerRef:r.A.func.description("Ref callback for the button, if not provided how is the flyout menu being positioned?").isRequired},Ur={},Ve=(0,i.createContext)(Ur);var du=null;const Ko="DSMenubehaviouralcontextprovider",se={TRIGGER:"trigger",ITEM_BY_DSID:e=>`item-${e}`,RESET:""},zr=({propsWithDefault:e,floatingContext:t})=>{const{focusRegion:n,isMenuOpen:o,onOpinionatedOpen:s,onOpinionatedClose:l,trackFocusTrigger:a,shouldFocusImmediately:c}=i.useContext(Ve),{onClick:u,onFocus:p,innerRef:m,onKeyDown:h}=e,{refs:{setReference:f}}=t,g=i.useRef(n),S=n===se.TRIGGER&&g.current!==n;g.current=n;const y=i.useRef(o);y.current=o;const b=i.useCallback((O,...w)=>{u&&u(O,...w),y.current?l():s()},[u,l,s]),x=i.useCallback((O,...w)=>{g.current!==se.TRIGGER&&a(),p&&p(O,...w)},[p,a]),v=i.useCallback(O=>{S&&O&&(c.current?O.focus():requestAnimationFrame(()=>{O.focus()})),f(O),m&&zo(m,O)},[m,S,f,c]),I=i.useCallback((O,...w)=>{O.key==="ArrowDown"&&s(),O.key==="ArrowUp"&&s({focusLastChild:!0}),O.key==="Escape"&&l(),h&&h(O,...w)},[h,s,l]);return i.useMemo(()=>({handleTriggerKeyDown:I,handleOnClick:b,handleOnFocus:x,handleFocusIfTriggerIsFocusRegion:v}),[v,b,x,I])},Gr=(e,t)=>{(0,W.D)(e,t,tn)},Yo=["bottom-start","bottom-end","bottom","right-start","right-start","right","left-start","left-end","left","top-start","top-end","top"],Kr=(e,t)=>{const n=i.useMemo(()=>({...Hr,...e}),[e]);Gr(n,Go);const o=i.useMemo(()=>`ds-opinionated-button-${(0,oe.L)(5)}`,[]),s=Q({placement:Yo[0],placementOrderPreference:Yo,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:t.isMenuOpen}),l=zr({propsWithDefault:n,floatingContext:s});return i.useMemo(()=>({propsWithDefault:n,instanceUid:o,eventsHandlers:l,floatingContext:s}),[n,o,l,s])},me="DSMenuitem",Be={MENU_ITEM_WRAPPER:"menu-item-wrapper",MENU_ITEM_LABEL:"menu-item-label",MENU_ITEM_SECONDARY_LABEL:"menu-item-secondary-label",MENU_ITEM_ICON:"menu-item-icon",MENU_ITEM_ELLIPSIS_BUTTON:"menu-item-ellipsis-button",MENU_ITEM_CONTENT:"menu-item-content",MENU_ITEM_SEPARATOR:"menu-item-separator",MENU_ITEM_SEPARATOR_WRAPPER:"menu-item-separator-wrapper",MENU_ITEM_GROUP_LABEL:"menu-item-group-label",MENU_ITEM_SECTION_WRAPPER:"menu-item-section-wrapper",MENU_ITEM_VERTICAL_SEPARATOR:"menu-item-vertical-separator",MENU_ITEM_CONTENT_WRAPPER:"menu-item-content-wrapper"},ao=()=>(0,ie.AH)`
132
+ :after {
133
+ display: block;
134
+ content: ' ';
135
+ position: absolute;
136
+ top: 0;
137
+ left: 0;
138
+ right: 0;
139
+ bottom: 0;
140
+ border: 1px solid ${({theme:e})=>e.colors.brand[500]};
141
+ pointer-events: none;
142
+ z-index: 7;
143
+ }
144
+ `,co=()=>(0,ie.AH)`
145
+ color: ${({theme:e})=>e.colors.neutral[500]};
146
+ :hover {
147
+ color: ${({theme:e})=>e.colors.neutral[600]};
148
+ // lets target the label to controll the checkbox for multi select menu item.
149
+ label {
150
+ color: ${({theme:e})=>e.colors.neutral[600]};
151
+ }
152
+ }
153
+ cursor: not-allowed;
154
+ * {
155
+ cursor: not-allowed;
156
+ }
157
+ `,Pe=(0,E.I)("li",{name:me,slot:Be.MENU_ITEM_WRAPPER})`
158
+ cursor: pointer;
159
+ min-height: 32px;
160
+
161
+ padding-left: 16px;
162
+ padding-right: 16px;
163
+ display: grid;
164
+ align-items: center;
165
+ list-style: none;
166
+ position: relative;
167
+
168
+ ${e=>e.isActive?ao():""};
169
+
170
+ ${e=>e.disabled||e.applyAriaDisabled?co():""};
171
+
172
+ background-color: ${e=>e.isActive?e.theme.colors.brand[200]:e.theme.colors.neutral["000"]};
173
+
174
+ // focus style for standalone version
175
+ &:focus {
176
+ ${e=>e.disabled?co():e.disabled?"":ao()};
177
+ outline: none;
178
+ background-color: ${e=>e.disabled?e.theme.colors.neutral["000"]:e.theme.colors.brand[200]};
179
+ }
180
+ &:hover {
181
+ background-color: ${e=>(!e.disabled||!e.applyAriaDisabled||!e.readOnly)&&e.theme.colors.brand[200]};
182
+ }
183
+
184
+ &[aria-disabled='true'] {
185
+ ${co()}
186
+ }
187
+
188
+ ${Mt.L1}
189
+ `,Ye=(0,E.I)("span",{name:me,slot:Be.MENU_ITEM_LABEL})`
190
+ padding: 8px 0;
191
+ font-size: 1rem;
192
+ `,Xe=(0,E.I)("span",{name:me,slot:Be.MENU_ITEM_SECONDARY_LABEL})`
193
+ padding: 8px 0;
194
+ font-size: 0.8462rem;
195
+ font-style: italic;
196
+ color: ${e=>e.disabled?e.theme.colors.neutral[500]:e.theme.colors.brand[800]};
197
+ text-align: right;
198
+ `,Xo=(0,E.I)("div",{name:me,slot:Be.MENU_ITEM_ICON})`
199
+ width: 25px;
200
+ height: 24px;
201
+ display: grid;
202
+ grid-template-columns: min-content auto;
203
+ place-items: center;
204
+ `,qo=(0,E.I)("div",{name:me,slot:Be.MENU_ITEM_ELLIPSIS_BUTTON})`
205
+ position: relative;
206
+ width: 100%;
207
+ height: 100%;
208
+ display: grid;
209
+ place-items: center;
210
+ background: transparent;
211
+ :active {
212
+ ${e=>e.disabled||e.applyAriaDisabled?"":ao()}
213
+ }
214
+ `,Yr=(0,E.I)("div",{name:me,slot:Be.MENU_ITEM_CONTENT})`
215
+ display: flex;
216
+ width: 100%;
217
+ margin: 8px 0px;
218
+ `,Zo=(0,E.I)("hr",{name:me,slot:Be.MENU_ITEM_SEPARATOR})`
219
+ border: 0;
220
+ border-top: 1px solid #697489;
221
+ margin: 4px 0px;
222
+ padding: 0;
223
+ `,Jo=(0,E.I)("li",{name:me,slot:Be.MENU_ITEM_SEPARATOR_WRAPPER})`
224
+ list-style: none;
225
+ padding: 0px 16px;
226
+
227
+ ${Mt.L1}
228
+ `,Qo=(0,E.I)("span",{name:me,slot:Be.MENU_ITEM_GROUP_LABEL})`
229
+ font-size: 1rem;
230
+ color: neutral-500;
231
+ `,Xr=(0,E.I)("li",{name:me,slot:Be.MENU_ITEM_SECTION_WRAPPER})`
232
+ list-style: none;
233
+ padding: 0px 16px;
234
+ min-height: 24px;
235
+ display: flex;
236
+ align-items: center;
237
+
238
+ ${Mt.L1}
239
+ `,es=(0,E.I)("div",{name:me,slot:Be.MENU_ITEM_VERTICAL_SEPARATOR})`
240
+ width: 1px;
241
+ height: 18px;
242
+ background-color: neutral-300;
243
+ `,ke=(0,E.I)(J.Ay,{name:me,slot:Be.MENU_ITEM_CONTENT_WRAPPER})``;var ts=T("./node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/throttle.js");const mt=(0,ts.A)(e=>{e.focus()},10,{leading:!1,trailing:!0}),qr=({itemNode:e})=>{const{dsId:t,plainItem:n}=e,{label:o,secondaryLabel:s,leftDecoration:l,minWidth:a,disabled:c}=n,{focusRegion:u,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:p,handleFocusableMenuItemClick:m,handleFocusableMenuItemOnMouseEnter:h,handleFocusableMenuItemNativeFocusEvent:f}}=i.useContext(Ve),g=i.useMemo(()=>{const O=l?["min-content","auto"]:["auto"];return s&&O.push("auto"),O},[l,s]),S=i.useRef(u);S.current=u;const y=u===se.ITEM_BY_DSID(t),b=i.useCallback(O=>{O&&u===se.ITEM_BY_DSID(t)&&mt(O)},[t,u]),x=i.useCallback(()=>{h(e)},[h,e]),v=i.useCallback(O=>{f(e,O)},[f,e]),I=`ds-menu-item-${`${t}`.replace(/\s/g,"")}`;return(0,d.jsx)(Pe,{innerRef:b,onKeyDown:p,onClick:m,onMouseEnter:x,onFocus:v,as:"div",id:`${I}`,role:"menuitem",tabIndex:y?0:-1,"aria-disabled":c,applyAriaDisabled:c,children:(0,d.jsxs)(ke,{cols:g,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:a??void 0,children:[l?(0,d.jsx)(l,{}):null,(0,d.jsx)(Ye,{children:o}),s!==void 0&&(0,d.jsx)(Xe,{disabled:c,children:s})]})})},ns=["right-start","right-start","right","left-start","left-end","left"],Zr=({itemNode:e,FlyoutMenuCircularDepInject:t})=>{const{dsId:n,plainItem:o}=e,{label:s,secondaryLabel:l,leftDecoration:a,minWidth:c,disabled:u}=o,{focusRegion:p,openedSubItems:m,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:h,handleFocusableMenuItemClick:f,handleFocusableMenuItemOnMouseEnter:g,handleFocusableMenuItemNativeFocusEvent:S}}=i.useContext(Ve),y=i.useMemo(()=>{const D=a?["min-content","auto"]:["auto"];return l&&D.push("auto"),D},[a,l]),b=i.useRef(p);b.current=p;const x=m.some(D=>D.dsId===n),v=p===se.ITEM_BY_DSID(n),I=Q({placement:ns[0],placementOrderPreference:ns,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:x}),{refs:{setReference:O}}=I,w=i.useCallback(D=>{O(D),D&&p===se.ITEM_BY_DSID(n)&&mt(D)},[n,p,O]),C=i.useCallback(()=>{g(e)},[g,e]),M=i.useCallback(D=>{S(e,D)},[S,e]),k=`ds-menu-item-${`${n}`.replace(/\s/g,"")}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Pe,{innerRef:w,onKeyDown:h,onClick:f,onMouseEnter:C,onFocus:M,as:"div",id:`${k}`,tabIndex:v?0:-1,role:"menuitem","aria-controls":x?e.plainChildren.map(D=>`ds-menu-item-${`${D.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-haspopup":"menu","aria-expanded":x,"aria-disabled":u,applyAriaDisabled:u,children:(0,d.jsxs)(ke,{cols:y,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:c??void 0,children:[a?(0,d.jsx)(a,{}):null,(0,d.jsx)(Ye,{children:s}),l!==void 0&&(0,d.jsx)(Xe,{disabled:u,children:l})]})}),(0,d.jsx)(t,{isMenuOpen:x,floatingContext:I.context,floatingStyles:I.floatingStyles,setFloatingRef:I.refs.setFloating,itemNode:e})]})};var Pn=T("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/createIcon.js"),Cn=(0,Pn.w)({paths:["M7.5 12.875L4.625 10l-.875.875 3.75 3.75 8.75-8.75L15.375 5z"],height:20,width:20});const Jr=i.memo(({isSelected:e})=>(0,d.jsx)(J.Ay,{width:"16px",children:e?(0,d.jsx)(Cn,{size:"s",color:["brand-primary","600"]}):(0,d.jsx)("div",{})})),Qr=({itemNode:e})=>{const{dsId:t,plainItem:n}=e,{label:o,secondaryLabel:s,leftDecoration:l,minWidth:a,disabled:c}=n,{focusRegion:u,propsWithDefault:p,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:m,handleFocusableMenuItemClick:h,handleFocusableMenuItemOnMouseEnter:f,handleFocusableMenuItemNativeFocusEvent:g}}=i.useContext(Ve),{selectedNodes:S}=p,y=i.useMemo(()=>{const M=l?["min-content","min-content","auto"]:["min-content","auto"];return s&&M.push("auto"),M},[l,s]),b=i.useRef(u);b.current=u;const x=u===se.ITEM_BY_DSID(t),v=S.some(M=>M.dsId===t),I=i.useCallback(M=>{M&&u===se.ITEM_BY_DSID(t)&&mt(M)},[t,u]),O=i.useCallback(()=>{f(e)},[f,e]),w=i.useCallback(M=>{g(e,M)},[g,e]),C=`ds-menu-item-${`${t}`.replace(/\s/g,"")}`;return(0,d.jsx)(Pe,{innerRef:I,onKeyDown:m,onClick:h,onMouseEnter:O,onFocus:w,as:"div",id:`${C}`,tabIndex:x?0:-1,role:"menuitemcheckbox","aria-checked":v,"aria-disabled":c,applyAriaDisabled:c,children:(0,d.jsxs)(ke,{cols:y,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:a??void 0,children:[(0,d.jsx)(Jr,{isSelected:v}),l?(0,d.jsx)(l,{}):null,(0,d.jsx)(Ye,{children:o}),s!==void 0&&(0,d.jsx)(Xe,{disabled:c,children:s})]})})};var ei=(0,Pn.w)({paths:["M20.5 22h-1.9229c-.2763 0-.5-.2236-.5-.5s.2237-.5.5-.5H20.5a.501.501 0 00.5-.5v-16c0-.2759-.2246-.5-.5-.5h-2c-.2764 0-.5-.2236-.5-.5s.2236-.5.5-.5h2c.8271 0 1.5.6729 1.5 1.5v16c0 .8271-.6729 1.5-1.5 1.5zm-15.5767-.5c0-.2764-.2236-.5-.5-.5H2.5a.5007.5007 0 01-.5-.5v-16c0-.2759.2241-.5.5-.5h2c.2764 0 .5-.2236.5-.5S4.7764 3 4.5 3h-2C1.6729 3 1 3.6729 1 4.5v16c0 .8271.6729 1.5 1.5 1.5h1.9233c.2764 0 .5-.2236.5-.5zM16 12.5c0-.275-.225-.5-.5-.5h-7c-.275 0-.5.225-.5.5s.225.5.5.5h7c.275 0 .5-.225.5-.5z"],height:24,width:24}),uo=(0,Pn.w)({paths:["M12 10.5a.503.503 0 0 0-.109-.313l-4-5a.5013.5013 0 0 0-.703-.078c-.214.173-.25.488-.078.703l3.75 4.688-3.75 4.688c-.172.218-.136.531.078.703.216.172.53.138.703-.078l4-5A.501.501 0 0 0 12 10.5z"],height:20,width:20});const _n={PARENT_NOT_GROUP:new Error("Tree structure violation: parent node of single-selectionable node MUST ALWAYS be a single select group node"),GROUP_WITHOUT_PARENT:new Error("Tree structure violation: single select group node has no parent"),NODE_CANNOT_HAVE_CHILDREN:new Error("Tree structure violation: node cannot have children")},po={TRYING_TO_FOCUS_NON_FOCUSABLE_NODE:new Error("Behavioural violation: trying to focus a non-focusable node"),TRYING_TO_OPEN_SUBMENU_OF_NODE_WITHOUT_SUBMENU:new Error("Behavioural violation: trying to open submenu of node without submenu")},Dt={FOCUSED_ITEM_NODE_NOT_SET:new Error("Internal error: focused item node not set"),FOCUSED_ITEM_HAS_NO_PARENT:new Error("Internal error: focused item has no parent node (is root?)"),NODE_WITHOUT_PARENT:new Error("Internal error: the node has no parent"),CALCULATING_MULTI_SELECTION_OF_NON_MULTI_SELECTION_NODE:new Error("Internal error: the node is not multi-selectable or wrongly recognized as non-multi-selectable")},nn=e=>{const t=[];return e.walkParents(n=>(n.dsId===e.dsId||dt(n)&&t.push(n),!0)),t.reverse()},Dn=e=>{const{parent:t}=e;if(!t)throw console.log("getFocusableSiblingsList > itemNode",e),Dt.NODE_WITHOUT_PARENT;if(!ro(t))throw console.log("parentNode",t),console.log("itemNode",e),_n.NODE_CANNOT_HAVE_CHILDREN;const n=[];let o=t;if(_t(t)){if(!t.parent)throw _n.GROUP_WITHOUT_PARENT;o=t.parent}return o.children.forEach(s=>{Ct(s)&&n.push(s),_t(s)&&s.children.forEach(l=>{Ct(l)&&n.push(l)})}),n},ti=e=>{const t=[];return e.walk(n=>(Tn(n)&&t.push(n.dsId),!0)),t},ni=e=>{let t;const n=[],o=[];if(e.walkParents(s=>{if(s.dsId===e.dsId)return!0;const l=s;return _t(l)?(t=l,o.push(t),!0):(Bo(l)&&n.push(l),!0)}),!t)throw console.log("node:",e),console.log("parent:",e.parent),_n.PARENT_NOT_GROUP;return{oldestGroup:t,selectionableParentsWithSubmenu:n,groupParents:o}},oi=e=>{const t=[],n=[];return e.walk(o=>{if(o.dsId===e.dsId)return!0;const s=o;return Qt(s)&&(t.push(s),Pt(s)&&n.push(s)),!0}),{selectionableChilrens:t,multiSelectionableChilrens:n}},Rn=({itemNode:e,selectedNodes:t})=>{if(t.length===0)return!1;const{multiSelectionableChilrens:n}=oi(e),o=[];let s=!1;return t.forEach(l=>{l.dsId===e.dsId&&(s=!0),Pt(l)&&n.some(a=>a.dsId===l.dsId)&&o.push(l)}),s?n.length===0?!0:o.length===0?!1:o.length!==n.length?"mixed":!0:!1},si=(e,t)=>{const n=e.find(c=>c.dsId===t.dsId)??!1;let o=n?e.filter(({dsId:c})=>c!==t.dsId):[...e,t];const s=[],l=[],a=[];return t.walkParents(c=>{if(c.dsId===t.dsId)return!0;const u=c;return gt(u)&&(o.find(m=>m.dsId===u.dsId)?(l.push(u),Rn({itemNode:u,selectedNodes:o})===!1&&a.push(u)):s.push(u)),!0}),n?o=o.filter(({dsId:c})=>!a.some(u=>u.dsId===c)):o.push(...s),o},ri=(e,t)=>{const o=Rn({itemNode:t,selectedNodes:e})===!0;let s=o?e.filter(({dsId:u})=>u!==t.dsId):[...e,t];t.walk(u=>{const p=u;return o?s=s.filter(({dsId:m})=>m!==p.dsId):Pt(p)&&!s.find(m=>m.dsId===p.dsId)&&s.push(p),!0});const l=[],a=[],c=[];return t.walkParents(u=>{if(u.dsId===t.dsId)return!0;const p=u;return gt(p)&&(s.find(h=>h.dsId===p.dsId)?(a.push(p),Rn({itemNode:p,selectedNodes:s})===!1&&c.push(p)):l.push(p)),!0}),o?s=s.filter(({dsId:u})=>!c.some(p=>p.dsId===u)):s.push(...l),s},os=(e,t)=>{if(oo(t))return si(e,t);if(gt(t))return ri(e,t);throw console.log(t),Dt.CALCULATING_MULTI_SELECTION_OF_NON_MULTI_SELECTION_NODE},ss=["right-start","right-start","right","left-start","left-end","left"],ii=i.memo(({isSelected:e})=>(0,d.jsx)(J.Ay,{width:"16px",children:e?e==="mixed"?(0,d.jsx)(ei,{size:"s",color:["brand-primary","600"]}):(0,d.jsx)(Cn,{size:"s",color:["brand-primary","600"]}):(0,d.jsx)("div",{})})),li=({itemNode:e,FlyoutMenuCircularDepInject:t})=>{const{dsId:n,plainItem:o}=e,{label:s,secondaryLabel:l,leftDecoration:a,minWidth:c,disabled:u}=o,{focusRegion:p,propsWithDefault:m,openedSubItems:h,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:f,handleFocusableMenuItemClick:g,handleFocusableMenuItemOnMouseEnter:S,handleFocusableMenuItemNativeFocusEvent:y}}=i.useContext(Ve),{selectedNodes:b}=m,x=i.useMemo(()=>{const A=a?["min-content","min-content","auto"]:["min-content","auto"];return l&&A.push("auto"),A.push("min-content"),A},[a,l]),v=i.useRef(p);v.current=p;const I=h.some(A=>A.dsId===n),O=p===se.ITEM_BY_DSID(n),w=i.useMemo(()=>Rn({itemNode:e,selectedNodes:b}),[e,b]),C=Q({placement:ss[0],placementOrderPreference:ss,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:I}),{refs:{setReference:M}}=C,k=i.useCallback(A=>{M(A),A&&p===se.ITEM_BY_DSID(n)&&mt(A)},[n,p,M]),D=i.useCallback(()=>{S(e)},[S,e]),z=i.useCallback(A=>{y(e,A)},[y,e]),V=`ds-menu-item-${`${n}`.replace(/\s/g,"")}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Pe,{innerRef:k,onKeyDown:f,onClick:g,onMouseEnter:D,onFocus:z,as:"div",id:`${V}`,tabIndex:O?0:-1,role:"menuitemcheckbox","aria-checked":w,"aria-controls":I?e.plainChildren.map(A=>`ds-menu-item-${`${A.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-haspopup":"menu","aria-expanded":I,"aria-disabled":u,applyAriaDisabled:u,children:(0,d.jsxs)(ke,{cols:x,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:c??void 0,children:[(0,d.jsx)(ii,{isSelected:w}),a?(0,d.jsx)(a,{}):null,(0,d.jsx)(Ye,{children:s}),l!==void 0&&(0,d.jsx)(Xe,{disabled:u,children:l}),(0,d.jsx)(uo,{})]})}),(0,d.jsx)(t,{isMenuOpen:I,floatingContext:C.context,floatingStyles:C.floatingStyles,setFloatingRef:C.refs.setFloating,itemNode:e})]})},ai=(0,E.I)("div")`
244
+ width: 8px;
245
+ height: 8px;
246
+ border-radius: 50%;
247
+ background-color: #005ea2;
248
+ `,di=i.memo(({isSelected:e})=>(0,d.jsx)(J.Ay,{width:"16px",children:e?(0,d.jsx)(ai,{}):(0,d.jsx)("div",{})})),ci=({itemNode:e})=>{const{dsId:t,plainItem:n}=e,{label:o,secondaryLabel:s,leftDecoration:l,minWidth:a,disabled:c}=n,{focusRegion:u,propsWithDefault:p,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:m,handleFocusableMenuItemClick:h,handleFocusableMenuItemOnMouseEnter:f,handleFocusableMenuItemNativeFocusEvent:g}}=i.useContext(Ve),{selectedNodes:S}=p,y=i.useMemo(()=>{const M=l?["min-content","min-content","auto"]:["min-content","auto"];return s&&M.push("auto"),M},[l,s]),b=i.useRef(u);b.current=u;const x=u===se.ITEM_BY_DSID(t),v=S.some(M=>M.dsId===t),I=i.useCallback(M=>{M&&u===se.ITEM_BY_DSID(t)&&mt(M)},[t,u]),O=i.useCallback(()=>{f(e)},[f,e]),w=i.useCallback(M=>{g(e,M)},[g,e]),C=`ds-menu-item-${`${t}`.replace(/\s/g,"")}`;return(0,d.jsx)(Pe,{innerRef:I,onKeyDown:m,onClick:h,onMouseEnter:O,onFocus:w,as:"div",id:`${C}`,tabIndex:x?0:-1,role:"menuitemradio","aria-checked":v,"aria-disabled":c,applyAriaDisabled:c,children:(0,d.jsxs)(ke,{cols:y,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:a??void 0,children:[(0,d.jsx)(di,{isSelected:v}),l?(0,d.jsx)(l,{}):null,(0,d.jsx)(Ye,{children:o}),s!==void 0&&(0,d.jsx)(Xe,{disabled:c,children:s})]})})},rs=["right-start","right-start","right","left-start","left-end","left"],ui=(0,E.I)("div")`
249
+ width: 8px;
250
+ height: 8px;
251
+ border-radius: 50%;
252
+ background-color: #005ea2;
253
+ `,pi=i.memo(({isSelected:e})=>(0,d.jsx)(J.Ay,{width:"16px",children:e?(0,d.jsx)(ui,{}):(0,d.jsx)("div",{})})),mi=({itemNode:e,FlyoutMenuCircularDepInject:t})=>{const{dsId:n,plainItem:o}=e,{label:s,secondaryLabel:l,leftDecoration:a,minWidth:c,disabled:u}=o,{focusRegion:p,propsWithDefault:m,openedSubItems:h,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:f,handleFocusableMenuItemClick:g,handleFocusableMenuItemOnMouseEnter:S,handleFocusableMenuItemNativeFocusEvent:y}}=i.useContext(Ve),{selectedNodes:b}=m,x=i.useMemo(()=>{const A=a?["min-content","min-content","auto"]:["min-content","auto"];return l&&A.push("auto"),A.push("min-content"),A},[a,l]),v=i.useRef(p);v.current=p;const I=h.some(A=>A.dsId===n),O=p===se.ITEM_BY_DSID(n),w=b.some(A=>A.dsId===n),C=Q({placement:rs[0],placementOrderPreference:rs,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:I}),{refs:{setReference:M}}=C,k=i.useCallback(A=>{M(A),A&&p===se.ITEM_BY_DSID(n)&&mt(A)},[n,p,M]),D=i.useCallback(()=>{S(e)},[S,e]),z=i.useCallback(A=>{y(e,A)},[y,e]),V=`ds-menu-item-${`${n}`.replace(/\s/g,"")}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Pe,{innerRef:k,onKeyDown:f,onClick:g,onMouseEnter:D,onFocus:z,as:"div",id:`${V}`,tabIndex:O?0:-1,role:"menuitemradio","aria-checked":w,"aria-controls":I?e.plainChildren.map(A=>`ds-menu-item-${`${A.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-haspopup":"menu","aria-expanded":I,"aria-disabled":u,applyAriaDisabled:u,children:(0,d.jsxs)(ke,{cols:x,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:c??void 0,children:[(0,d.jsx)(pi,{isSelected:w}),a?(0,d.jsx)(a,{}):null,(0,d.jsx)(Ye,{children:s}),l!==void 0&&(0,d.jsx)(Xe,{disabled:u,children:l}),(0,d.jsx)(uo,{})]})}),(0,d.jsx)(t,{isMenuOpen:I,floatingContext:C.context,floatingStyles:C.floatingStyles,setFloatingRef:C.refs.setFloating,itemNode:e})]})};var is=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/th.js");const ls="DSSkeleton",hi={ROOT:"root"},fi=(0,ue.i7)`
254
+ 0% {
255
+ opacity: 1;
256
+ }
257
+ 50% {
258
+ opacity: 0.4;
259
+ }
260
+ 100% {
261
+ opacity: 1;
262
+ }
263
+ `,bi=(0,ie.AH)`
264
+ margin-top: 0;
265
+ margin-bottom: 0;
266
+ height: auto;
267
+ transform-origin: 0 55%;
268
+ transform: scale(1, 0.6);
269
+ border-radius: 4px/4%;
270
+ &:empty:before {
271
+ content: '\\00a0';
272
+ }
273
+ `,gi=(0,ie.AH)`
274
+ border-radius: 50%;
275
+ `,yi=(0,ie.AH)`
276
+ & > * {
277
+ visibility: hidden;
278
+ }
279
+
280
+ ${({w:e})=>e?"":"width: fit-content;"}
281
+ ${({h:e})=>e?"":"height: auto;"}
282
+ `,xi=(0,E.I)("div",{name:ls,slot:hi.ROOT})`
283
+ display: block;
284
+ height: 20px;
285
+ background-color: ${is.th.color("neutral-400")}2f;
286
+ ${e=>e.variant==="circular"?gi:e.variant==="text"?bi:""}
287
+ ${e=>e.withChildren?yi:""}
288
+
289
+ animation: ${fi} 1.5s ease-in-out 0.5s infinite;
290
+ ${Mt.L1}
291
+ `,Si={variant:"text"},as={...ae.P,...Me.w,variant:r.A.oneOf(["circular","rectangular","text"]).description("Variant for the skeleton").defaultValue("text")},Ii=e=>{const t=(0,K.b)(e,Si);(0,W.D)(e,as,ls);const n=(0,L.u)(t),o=(0,B.d)(t);return{propsWithDefault:t,globalAttributes:n,xstyledProps:o,withChildren:!!t.children}},Rt=e=>{const{propsWithDefault:{variant:t},withChildren:n,xstyledProps:o,globalAttributes:s}=Ii(e);return(0,d.jsx)(xi,{...s,...o,variant:t,withChildren:n,as:"span"})};Rt.displayName="DSSkeleton";const Ai=(0,U.A)(Rt);Ai.propTypes=as;const ds="16px",vi=[ds,"1fr"],Oi=({itemNode:e})=>{const{dsId:t,plainItem:n}=e,{minWidth:o}=n,{focusRegion:s,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:l,handleFocusableMenuItemOnMouseEnter:a,handleFocusableMenuItemNativeFocusEvent:c}}=i.useContext(Ve),u=i.useRef(s);u.current=s;const p=s===se.ITEM_BY_DSID(t),m=i.useCallback(b=>{b&&s===se.ITEM_BY_DSID(t)&&mt(b)},[t,s]),h=i.useCallback(()=>{a(e)},[a,e]),f=i.useCallback(b=>{c(e,b)},[c,e]),g=`ds-menu-item-${`${t}`.replace(/\s/g,"")}`,S=16+8,y=o?`calc(${o} - ${S})`:`${150-S}px`;return(0,d.jsx)(Pe,{innerRef:m,onKeyDown:l,onMouseEnter:h,onFocus:f,as:"div",id:`${g}`,role:"menuitem",tabIndex:p?0:-1,children:(0,d.jsxs)(ke,{cols:vi,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:o??"150px",children:[(0,d.jsx)(Rt,{variant:"rectangular",width:ds}),(0,d.jsx)(Rt,{variant:"rectangular",width:y})]})})},cs=["right-start","right-start","right","left-start","left-end","left"],wi=({itemNode:e,FlyoutMenuCircularDepInject:t})=>{const{dsId:n,plainItem:o}=e,{label:s,secondaryLabel:l,leftDecoration:a,minWidth:c,disabled:u}=o,{focusRegion:p,openedSubItems:m,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:h,handleFocusableMenuItemClick:f,handleFocusableMenuItemOnMouseEnter:g,handleFocusableMenuItemNativeFocusEvent:S}}=i.useContext(Ve),y=i.useMemo(()=>{const D=a?["min-content","auto"]:["auto"];return l&&D.push("auto"),D.push("min-content"),D},[a,l]),b=i.useRef(p);b.current=p;const x=p===se.ITEM_BY_DSID(n),v=m.some(D=>D.dsId===n),I=Q({placement:cs[0],placementOrderPreference:cs,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:v}),{refs:{setReference:O}}=I,w=i.useCallback(D=>{O(D),D&&p===se.ITEM_BY_DSID(n)&&mt(D)},[n,p,O]),C=i.useCallback(()=>{g(e)},[g,e]),M=i.useCallback(D=>{S(e,D)},[S,e]),k=`ds-menu-item-${`${n}`.replace(/\s/g,"")}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Pe,{innerRef:w,onKeyDown:h,onClick:f,onMouseEnter:C,onFocus:M,as:"div",id:`${k}`,tabIndex:x?0:-1,role:"menuitem","aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?e.plainChildren.map(D=>`ds-menu-item-${`${D.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-disabled":u,applyAriaDisabled:u,children:(0,d.jsxs)(ke,{cols:y,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:c??void 0,children:[a?(0,d.jsx)(a,{}):null,(0,d.jsx)(Ye,{children:s}),l!==void 0&&(0,d.jsx)(Xe,{disabled:u,children:l}),(0,d.jsx)(uo,{})]})}),(0,d.jsx)(t,{isMenuOpen:v,floatingContext:I.context,floatingStyles:I.floatingStyles,setFloatingRef:I.refs.setFloating,itemNode:e})]})},kt="DSMenuitemrendererfactory",cu={},kn={ROOT:"root",GROUP_LABEL_WRAPPER:"group-label-wrapper",LABEL_WITH_LEFT_DEC_WRAPPER:"group-label-wrapper"},uu=(0,he.lD)(kt,kn),Ti={},us={...(0,at.Y)(kt,kn),...ae.P,...Me.w,itemNode:r.A.object.description("The polymorphic item to render").isRequired,ItemRenderer:r.A.func.description("The custom item renderer"),FlyoutMenuCircularDepInject:r.A.func.description("Flyout menu component, passed to the factory to avoid circular dependency")},Ei=(e,t)=>{(0,W.D)(e,t,kt)},Mi=e=>{const t=i.useMemo(()=>({...Ti,...e}),[e]);Ei(t,us);const n=(0,B.d)(t),o=i.useMemo(()=>`ds-menu-item-renderer-factory-${(0,oe.L)(5)}`,[]);return i.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:o}),[t,n,o])},Pi=(0,E.I)(J.Ay,{name:kt,slot:kn.GROUP_LABEL_WRAPPER})`
292
+ padding: ${({theme:e})=>e.space.xxxs} ${({theme:e})=>e.space.xs};
293
+ `,Ci=(0,E.I)(J.Ay,{name:kt,slot:kn.LABEL_WITH_LEFT_DEC_WRAPPER})`
294
+ padding-left: ${({theme:e})=>e.space.xxs};
295
+ `,Nn=e=>{const{propsWithDefault:t,instanceUid:n}=Mi(e),{itemNode:o,ItemRenderer:s,FlyoutMenuCircularDepInject:l}=t;if(s)return(0,d.jsx)(s,{itemNode:o});if(Cr(o))return(0,d.jsx)(Jo,{as:"div",role:"presentation",children:(0,d.jsx)(Zo,{})});if($o(o))return(0,d.jsx)(Oi,{itemNode:o});if(no(o))return(0,d.jsx)(qr,{itemNode:o});if(oo(o))return(0,d.jsx)(Qr,{itemNode:o});if(Vo(o))return(0,d.jsx)(ci,{itemNode:o});if(En(o))return(0,d.jsx)(wi,{itemNode:o,FlyoutMenuCircularDepInject:l});if(wn(o))return(0,d.jsx)(mi,{itemNode:o,FlyoutMenuCircularDepInject:l});if(gt(o))return(0,d.jsx)(li,{itemNode:o,FlyoutMenuCircularDepInject:l});if(so(o))return(0,d.jsx)(Zr,{itemNode:o,FlyoutMenuCircularDepInject:l});if(_t(o)){const{leftDecoration:a,label:c,minWidth:u}=o.plainItem,p=c?`label-${c.replace(/\s/g,"")}`:void 0;return(0,d.jsxs)("div",{role:"group","aria-labelledby":p,style:u?{minWidth:u}:{},children:[c?(0,d.jsxs)(Pi,{cols:a?["min-content","1fr"]:["1fr"],children:[a?(0,d.jsx)(a,{}):null,(0,d.jsx)(Qo,{role:"presentation",id:p,children:a?(0,d.jsx)(Ci,{children:c}):c})]}):null,o.children.map(m=>(0,d.jsx)(Nn,{itemNode:m,FlyoutMenuCircularDepInject:l},`item-factory-${m.dsId}-${n}`))]})}throw new Error(`Invalid item type: ${JSON.stringify(o)}`)};Nn.displayName=kt;const _i=(0,U.A)(Nn);_i.propTypes=us;const Nt="DSFlyoutmenu",mu={},jn={ROOT:"root",LIST_WRAPPER:"list-wrapper"},hu=(0,he.lD)(Nt,jn),Di={...On},ps={itemNode:r.A.object.description("The parent menu node to render the menu from").isRequired,setFloatingRef:r.A.func.description("The function to set the ref of the floating element (from useFloatingContext.refs.setFloating)").isRequired,floatingStyles:r.A.object.description("The styles to apply to the floating element to correctly position it (from useFloatingContext.floatingStyles)").isRequired,floatingContext:r.A.object.description("The context object from useFloatingContext, used to allow FloatingWrapper correct functionality").isRequired,isMenuOpen:r.A.bool.description("Wheter or not this particular instance of the flyout menu is open").isRequired,...(0,at.Y)(Nt,jn),...ae.P,...eo,...Me.w},Ri=(e,t)=>{(0,W.D)(e,t,Nt)},ki=e=>{const t=i.useMemo(()=>({...Di,...e}),[e]);Ri(t,ps);const n=(0,B.d)(t),o=i.useMemo(()=>`ds-flyout-menu-${(0,oe.L)(5)}`,[]);return i.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:o}),[t,n,o])},Ni=(0,E.I)(J.Ay,{name:Nt,slot:jn.ROOT})`
296
+ min-width: 1px;
297
+ background-color: white;
298
+ padding: ${({theme:e})=>e.space.xxxs} 0;
299
+ ${Mt.L1}
300
+ `,ji=(0,E.I)("div",{name:Nt,slot:jn.LIST_WRAPPER})`
301
+ max-height: ${({$maxHeight:e})=>typeof e=="number"?`${e}px`:e};
302
+ overflow-y: auto;
303
+ padding: 0;
304
+ margin: 0;
305
+ `,Li=()=>null,Ln=e=>{const{propsWithDefault:t,xstyledProps:n}=ki(e),{instanceUid:o,globalEventsHelpers:{mainMenuRef:s,handleSubmenusRefChange:l}}=i.useContext(Ve),[a,c]=i.useState(!1),{setFloatingRef:u,floatingStyles:p,floatingContext:m,ItemRenderer:h,isMenuOpen:f,itemNode:g}=t,S=i.useCallback(x=>{if(en(g)){s.current=x;return}l(x,g.dsId)},[l,g,s]),y=i.useCallback(()=>{c(!1)},[]),b=i.useCallback(()=>{c(!0)},[]);return(0,d.jsx)(Zt,{innerRef:u,floatingStyles:p,isOpen:f,context:m,onAnimationStartTriggered:y,onAnimationEnd:b,children:(0,d.jsx)(Ni,{getOwnerProps:()=>t,getOwnerPropsArguments:()=>({}),...n,children:(0,d.jsx)(ji,{role:"menu",innerRef:S,$maxHeight:g.plainItem.maxHeight??On.maxHeight,children:g.children.map(x=>(0,d.jsx)(Nn,{itemNode:x,ItemRenderer:h,FlyoutMenuCircularDepInject:a?Ln:Li},`flyout-menu-item-${x.dsId}-${o}`))})})})};Ln.displayName=Nt;const Wi=(0,U.A)(Ln);Wi.propTypes=ps;const Fi=(0,E.I)(Vr.l,{name:tn,slot:lo.ROOT})``,mo=e=>{const t=i.useContext(Ve),{isMenuOpen:n,propsWithDefault:{optionsTree:o}}=t,{propsWithDefault:{children:s,menuSpecificProps:l,...a},eventsHandlers:{handleOnClick:c,handleOnFocus:u,handleFocusIfTriggerIsFocusRegion:p,handleTriggerKeyDown:m},floatingContext:h}=Kr(e,t);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fi,{...a,onClick:c,onFocus:u,onKeyDown:m,innerRef:p,"aria-haspopup":"menu","aria-controls":n?o.plainChildren.map(f=>`ds-menu-item-${`${f.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-expanded":n,children:s}),(0,d.jsx)(Ln,{...l,isMenuOpen:n,floatingContext:h.context,floatingStyles:h.floatingStyles,setFloatingRef:h.refs.setFloating,itemNode:o})]})};mo.displayName=tn;const $i=(0,U.A)(mo);$i.propTypes=Go;const Vi={onBlur:r.A.func.description("The function to be invoked when focus exits the wrapping container").signature("((e: React.FocusEvent, ...args: unknown[]) => void)").isRequired},ms=({onBlur:e})=>(0,i.useCallback)((t,...n)=>{const{currentTarget:o}=t;requestAnimationFrame(()=>{o.contains(document.activeElement)||e(t,...n)})},[e]),hs=(0,U.A)(ms);hs.propTypes=Vi,hs.returnType=r.A.func.description("On blur event callback for input").signature("((e: React.FocusEvent, ...args: unknown[]) => void)");const Bi={},fs={buttonDOMNodeRef:r.A.object.description("The DOM node of the button as a mutable Refs (required for performance reasons)").isRequired,children:r.A.node.description("the menu trigger and the menu components").isRequired,optionsTree:r.A.object.description("DSTree node to build branches from").isRequired,focusableNodes:r.A.arrayOf(r.A.object).description("an array of nodes that can receive pseudoFocus, obtainable via ds-tree flatten + filter(isFocusable)").isRequired,selectedNodes:r.A.arrayOf(r.A.object).description("an array of tree-nodes that have to be marked as selected in the GUI, required if the menu has selectionable items"),...Fo},Hi=({propsWithDefault:e})=>{const{onActivateItem:t,onItemSelected:n,selectedNodes:o,optionsTree:s}=e;(0,i.useEffect)(()=>{const l=s.flatten(),a={},c={};let u=!1,p=!1,m=!1;if(l.forEach(h=>{const{dsId:f}=h;Array.isArray(a[f])?(a[f].push(h),m=!0,c[f]=a[f]):a[f]=[h],no(h)&&(u=!0),Qt(h)&&(p=!0)}),m)throw console.log("duplicatedIdsNodes",c),new Error(`DSMenuButton:
306
+ The following dsId are repeated:
307
+ ${Object.keys(c).join(`
308
+ `)}
309
+
310
+ The dsId must be unique.`);if(u&&!t)throw new Error(`DSMenuButton:
311
+ Some items are activable, but onActivateItem is not provided.
312
+
313
+ You must provide onActivateItem to handle activation.`);if(p&&(!n||!o))throw new Error(`DSMenuButton:
314
+ Some items are selectionable, but onItemSelected or selectedNodes are not provided.
315
+
316
+ You must provide onItemSelected and selectedNodes to handle selection.`)},[t,n,o,s])},Ui=()=>{const e=i.useRef(!1),[t,n]=i.useState(""),o=i.useRef(""),s=i.useRef(!1),l=i.useRef(null),a=i.useCallback((0,ts.A)((y,b,x)=>(n(y),o.current=y,l.current=b,e.current=x?.shouldFocusImmediately??!1,b),50,{leading:!0,trailing:!0}),[]),c=i.useCallback((y={shouldFocusImmediately:!1})=>a(se.TRIGGER,null,y),[a]),u=i.useCallback(y=>{const b=se.ITEM_BY_DSID(y.dsId);a(b,y)},[a]),p=i.useCallback(()=>a(se.RESET,null),[a]),m=i.useCallback(y=>{if(!ro(y))throw console.log("focus first child item > itemNode",y),_n.NODE_CANNOT_HAVE_CHILDREN;if(y.children.length===0)throw console.log(y),new Error("No children found in the item node");const b=Dn(y.children[0]);if(b.length===0)throw console.log("focus first child item > itemNode",y),new Error("No focusable nodes found in the children of the item node");const x=b[0];return a(se.ITEM_BY_DSID(x.dsId),x)},[a]),h=i.useCallback(y=>{if(!ro(y))throw console.log("focus last child item > itemNode",y),new Error("Item node is not allowed to have children");if(y.children.length===0)throw console.log(y),new Error("No children found in the item node");const b=Dn(y.children[0]);if(b.length===0)throw console.log("focus last child item > itemNode",y),new Error("No focusable nodes found in the children of the item node");return a(se.ITEM_BY_DSID(b[b.length-1].dsId),b[b.length-1])},[a]),f=i.useCallback(y=>{const b=Dn(y),x=b.findIndex(O=>O.dsId===y.dsId),v=x+1<b.length?x+1:0,I=b[v];return a(se.ITEM_BY_DSID(I.dsId),I)},[a]),g=i.useCallback(y=>{const b=Dn(y),x=b.findIndex(O=>O.dsId===y.dsId),v=x-1>=0?x-1:b.length-1,I=b[v];return a(se.ITEM_BY_DSID(I.dsId),I)},[a]),S=i.useCallback(y=>{const{parent:b}=y,x=b;if(!x)throw console.log("focus parent item",{itemNode:y,parentNode:x}),new Error("No parent node found for the item node");let v=x;if(_t(x)){const w=x.parent;if(!Ct(w)&&!en(w))throw console.log("focus parent item",{itemNode:y,parentNode:x,groupParent:w}),new Error("No focusable parent node found for the item node");v=w}const I=en(v)?null:v,O=I;return O?u(O):c(),I},[u,c]);return i.useMemo(()=>({preventBlurReset:s,focusRegion:t,focusedElementItemNode:l,shouldFocusImmediately:e,trackFocusTrigger:c,trackFocusNode:u,trackFocusRegionReset:p,trackFocusFirstChildItem:m,trackFocusLastChildItem:h,trackFocusNextItem:f,trackFocusPreviousItem:g,trackFocusParentItem:S}),[t,m,h,f,u,S,g,p,c])},zi=({menuOpenStatus:e,handleChangeOpenedSubItems:t,propsWithDefault:n})=>{const{onOpinionatedClose:o,isMenuOpen:s}=e,{buttonDOMNodeRef:l}=n,a=i.useRef(null),c=i.useRef({}),u=i.useCallback((p,m)=>{p?c.current[m]=p:delete c.current[m]},[]);return i.useEffect(()=>{const p=h=>{t([],{itemNode:null,event:h}),o({skipFocus:!0})},m=h=>{!s||l.current===h.target||a.current?.contains(h.target)||Object.values(c.current).filter(Boolean).some(y=>y.contains(h.target))||(t([],{itemNode:null,event:h}),o({skipFocus:!0}))};return window.addEventListener("blur",p),document.addEventListener("mousedown",m),document.addEventListener("touchstart",m),()=>{window.removeEventListener("blur",p),document.removeEventListener("mousedown",m),document.removeEventListener("touchstart",m)}},[l,t,s,o]),i.useMemo(()=>({mainMenuRef:a,submenusRefs:c,handleSubmenusRefChange:u}),[u])},bs=(e,t)=>{const{oldestGroup:n,selectionableParentsWithSubmenu:o}=ni(t),s=ti(n),l=e.filter(a=>!s.includes(a.plainItem.dsId));return l.push(...o),l.push(t),l},Gi=({propsWithDefault:e,focusTrackers:t,menuOpenStatus:n,handleChangeOpenedSubItems:o})=>{const{onItemSelected:s,onActivateItem:l,selectedNodes:a}=e,{onOpinionatedClose:c}=n,{trackFocusFirstChildItem:u,trackFocusLastChildItem:p,trackFocusNextItem:m,trackFocusPreviousItem:h,trackFocusParentItem:f,trackFocusNode:g,focusedElementItemNode:S,trackFocusTrigger:y}=t,b=i.useCallback(({itemNode:A,event:_})=>{if(!dt(A))throw console.log("openSubmenu -> itemNode:",A),po.TRYING_TO_OPEN_SUBMENU_OF_NODE_WITHOUT_SUBMENU;const P=nn(A),F={itemNode:A,event:_},H=[...P,A];o(H,F)},[o]),x=i.useCallback(({itemNode:A,event:_})=>{const P=nn(A),F={itemNode:A,event:_},H=[...P];o(H,F)},[o]),v=i.useCallback(({itemNode:A,event:_})=>{const P={itemNode:A,event:_},F=nn(A);return F.length===0?(o([],P),{currentSubmenuWasMainMenu:!0}):(F.pop(),o(F,P),{currentSubmenuWasMainMenu:!1})},[o]),I=i.useCallback(({pseudoFocusedItemNode:A,event:_})=>{if(En(A))b({itemNode:A,event:_}),u(A);else{if(Pt(A)){const H=os(a,A);s(H,{itemNode:A,event:_})}else if(Tn(A)){const H=bs(a,A);s(H,{itemNode:A,event:_})}else l(A,{itemNode:A,event:_});o([],{itemNode:A,event:_}),c()}},[u,b,o,c,a,s,l]),O=i.useCallback(({pseudoFocusedItemNode:A,event:_})=>{if(En(A)){b({itemNode:A,event:_}),u(A);return}if(Pt(A)){const H=os(a,A);s(H,{itemNode:A,event:_});return}if(Tn(A)){const H=bs(a,A);s(H,{itemNode:A,event:_});return}l?.(A,{itemNode:A,event:_}),o([],{itemNode:A,event:_}),c()},[l,o,c,u,b,a,s]),w=i.useCallback(({pseudoFocusedItemNode:A,event:_})=>{if(dt(A)){b({itemNode:A,event:_}),u(A);return}},[b,u]),C=i.useCallback(({pseudoFocusedItemNode:A,event:_})=>{const{currentSubmenuWasMainMenu:P}=v({itemNode:A,event:_});P||f(A)},[v,f]),M=i.useCallback(A=>{const _=S.current;if(_===null)throw Dt.FOCUSED_ITEM_NODE_NOT_SET;if(_.plainItem.onKeyDown&&_.plainItem.onKeyDown(A),A.key==="Tab"){y({shouldFocusImmediately:!0}),c();return}if(A.key==="ArrowDown"){A?.preventDefault(),m(_);return}if(A.key==="ArrowUp"){A?.preventDefault(),h(_);return}if(A.key==="ArrowLeft"){A?.preventDefault(),C({pseudoFocusedItemNode:_,event:A});return}if(A.key==="Home"){if(!_.parent)throw console.log("handleFocusableMenuItemKeyDown -> Home > focused item node",_),Dt.FOCUSED_ITEM_HAS_NO_PARENT;u(_.parent);return}if(A.key==="End"){if(!_.parent)throw console.log("handleFocusableMenuItemKeyDown -> Home > focused item node",_),Dt.FOCUSED_ITEM_HAS_NO_PARENT;p(_.parent);return}if(A.key==="Escape"){if(A.altKey&&dt(_)){x({itemNode:_,event:A});return}const{currentSubmenuWasMainMenu:P}=v({itemNode:_,event:A});f(_),P&&c();return}if(!_.plainItem.disabled){if(A.key==="Enter"){I({pseudoFocusedItemNode:_,event:A});return}if(A.key===" "){A?.preventDefault(),O({pseudoFocusedItemNode:_,event:A});return}if(A.key==="ArrowRight"){A?.preventDefault(),w({pseudoFocusedItemNode:_,event:A});return}}},[S,y,m,h,C,u,p,v,f,x,c,I,O,w]),k=i.useCallback(A=>{const _=S.current;if(_===null)throw Dt.FOCUSED_ITEM_NODE_NOT_SET;if(_.plainItem.disabled)return;const P=_.parent;if(en(P))o([],{itemNode:_,event:A});else{const F=[...nn(_)];dt(_)&&F.push(_),o(F,{itemNode:_,event:A})}O({pseudoFocusedItemNode:_,event:A}),_.plainItem.onClick&&_.plainItem.onClick(A)},[S,O,o]),D=i.useCallback((A,_)=>{if(!Ct(A))throw console.log("handleFocusableMenuItemOnMouseEnter > itemNode:",A),po.TRYING_TO_FOCUS_NON_FOCUSABLE_NODE;if(g(A),!dt(A)){const P=nn(A),F={itemNode:A,event:_},H=[...P];o(H,F);return}A.plainItem.disabled||b({itemNode:A,event:_})},[o,b,g]),z=i.useCallback(A=>{if(!Ct(A))throw console.log("handleFocusableMenuItemOnMouseEnter > itemNode:",A),po.TRYING_TO_FOCUS_NON_FOCUSABLE_NODE;g(A)},[g]),V=i.useCallback((A,_)=>{D(A,_)},[D]);return i.useMemo(()=>({handleFocusableMenuItemKeyDown:M,handleFocusableMenuItemClick:k,handleFocusableMenuItemOnMouseEnter:z,handleFocusableMenuItemNativeFocusEvent:V}),[k,M,V,z])},Ki=({propsWithDefault:e,focusTrackers:t})=>{const{trackFocusTrigger:n,trackFocusFirstChildItem:o,trackFocusLastChildItem:s,preventBlurReset:l}=t,{onClose:a,onOpen:c,optionsTree:u}=e,[p,m]=i.useState(!1),h=i.useCallback(({skipFocus:g}={skipFocus:!1})=>{m(!1),a&&a(),g||n(),l.current=!1},[a,l,n]),f=i.useCallback(g=>{const{focusLastChild:S=!1}=g||{};m(!0),c&&c();const y=u;S?s(y):o(y),l.current=!0},[c,u,l,o,s]);return i.useMemo(()=>({isMenuOpen:p,onOpinionatedClose:h,onOpinionatedOpen:f}),[p,h,f])},Yi=(e,t)=>{(0,W.D)(e,t,Ko)},Xi=e=>{const t=i.useMemo(()=>({...Bi,...e}),[e]);Yi(t,fs),Hi({propsWithDefault:t});const{onDisplayedSubmenuChange:n}=t,o=i.useMemo(()=>`ds-menu-behavioural-context-provider-${(0,oe.L)(5)}`,[]),[s,l]=i.useState([]),a=i.useCallback((h,f)=>{l(h),n?.(h,f)},[n]),c=Ui(),u=Ki({propsWithDefault:t,focusTrackers:c}),p=Gi({propsWithDefault:t,focusTrackers:c,menuOpenStatus:u,handleChangeOpenedSubItems:a}),m=zi({menuOpenStatus:u,handleChangeOpenedSubItems:a,propsWithDefault:t});return i.useMemo(()=>({propsWithDefault:t,instanceUid:o,...c,...u,menuItemEventsHandlers:p,openedSubItems:s,handleChangeOpenedSubItems:a,globalEventsHelpers:m}),[t,o,c,u,p,s,a,m])},ho=e=>{const t=Xi(e),{trackFocusRegionReset:n,propsWithDefault:{children:o},preventBlurReset:s}=t,l=i.useMemo(()=>({onBlur:()=>{s.current||(n(),setTimeout(()=>{s.current=!1}))}}),[s,n]),a=ms(l);return(0,d.jsx)(Ve.Provider,{value:t,children:(0,d.jsx)("div",{onBlur:a,children:o})})};ho.displayName=Ko;const qi=(0,U.A)(ho);qi.propTypes=fs;const Zi=(0,E.I)(J.Ay,{name:Jt,slot:Qn.ROOT})``,fo=e=>{const{propsWithDefault:t,opinionatedButtonProps:n,menuBehaviouralLayerProps:o}=$r(e);return(0,d.jsx)(Zi,{"data-testid":Er.ROOT,getOwnerProps:()=>t,getOwnerPropsArguments:()=>({}),children:(0,d.jsx)(ho,{...o,children:(0,d.jsx)(mo,{...n,children:n.children})})})};fo.displayName=Jt;const Ji=(0,U.A)(fo);Ji.propTypes=Mr;const yt=({color:e,size:t=1,zIndex:n=0,borderRadius:o="12px"})=>(0,ie.AH)`
317
+ :after {
318
+ content: ' ';
319
+ position: absolute;
320
+ top: 0px;
321
+ left: 0px;
322
+ right: 0px;
323
+ bottom: 0px;
324
+ border: ${t}px solid
325
+ ${({disabled:s,applyAriaDisabled:l,readOnly:a,theme:c})=>s||l||a?c.colors.neutral[400]:e};
326
+ border-top-left-radius: ${o};
327
+ border-top-right-radius: ${o};
328
+ border-bottom-left-radius: ${o};
329
+ border-bottom-right-radius: ${o};
330
+ pointer-events: none;
331
+ z-index: ${n||""};
332
+ }
333
+ `,xt=(0,ie.AH)`
334
+ height: ${e=>e?.pillSize==="m"?"1.846rem":"1.3846rem"};
335
+ @media (max-width: ${e=>e.theme.breakpoints?.small}) {
336
+ height: ${e=>e?.pillSize==="m"?"1.5rem":"1.125rem"};
337
+ }
338
+ position: relative;
339
+
340
+ width: fit-content;
341
+
342
+ background-color: ${({theme:e,disabled:t,applyAriaDisabled:n,readOnly:o})=>t?e.colors.neutral["080"]:n||o?e.colors.neutral["050"]:e.colors.brand[250]};
343
+
344
+ outline: none;
345
+
346
+ white-space: nowrap;
347
+
348
+ padding: 0px 12px 0 12px;
349
+ border-radius: 12px;
350
+
351
+ font-size: 1rem;
352
+ line-height: 1;
353
+ user-select: ${({disabled:e,applyAriaDisabled:t})=>e||t?"none":"auto"};
354
+ cursor: ${({disabled:e,applyAriaDisabled:t})=>e||t?"not-allowed":"default"};
355
+ color: ${({theme:e,disabled:t,applyAriaDisabled:n,readOnly:o})=>t||n||o?"#616b7f":e.colors.brand[800]};
356
+ `,Qi=(0,E.I)(J.Ay)`
357
+ ${xt}
358
+
359
+ font-weight: ${e=>e.theme.fontWeights.semibold};
360
+ padding-left: ${e=>e.hasIcon||e.applyAriaDisabled||e.readOnly?"0px !important":"12px"};
361
+ `,el=(0,E.I)(J.Ay)`
362
+ ${xt}
363
+
364
+ font-weight: ${e=>e.theme.fontWeights.regular};
365
+ padding-left: ${e=>e.hasIcon||e.applyAriaDisabled?"0px !important":"12px"};
366
+ `,tl=(0,E.I)(J.Ay)`
367
+ ${xt}
368
+
369
+ font-weight: ${e=>e.theme.fontWeights.regular};
370
+ padding-left: ${e=>e.hasIcon||e.disabled?"0px !important":"12px"};
371
+ `,nl=(0,E.I)(J.Ay)`
372
+ ${xt}
373
+
374
+ background: ${e=>e.theme.colors.neutral["000"]};
375
+ padding: 0;
376
+
377
+ ${({theme:e,hasError:t})=>yt(t?{color:e.colors.danger[900]}:{color:e.colors.brand[500]})}
378
+
379
+ :focus-within {
380
+ ${e=>e.inputHasFocus?yt({color:e.theme.colors.brand[700],size:2}):""}
381
+ }
382
+
383
+ :active {
384
+ ${e=>e.inputHasFocus?yt({color:e.theme.colors.brand[500]}):""}
385
+ }
386
+
387
+ & .em-ds-input {
388
+ outline: none !important;
389
+ border: none !important;
390
+ box-shadow: none !important;
391
+ border-radius: 0 !important;
392
+ height: 100%;
393
+ background: transparent;
394
+ width: ${e=>`${e.inputWidth+(e.value===""?24:0)}px`};
395
+ padding: 0;
396
+ margin: 0 0 0 8px;
397
+ }
398
+
399
+ & .em-ds-input__tooltip-ref {
400
+ height: 100%;
401
+ }
402
+ `,gs=(0,E.I)(J.Ay)`
403
+ ${xt}
404
+ font-weight: ${e=>e.theme.fontWeights.semibold};
405
+
406
+ padding: 0 0 0 12px;
407
+ `,ol=(0,E.I)(J.Ay)`
408
+ ${xt}
409
+ font-weight: ${e=>e.theme.fontWeights.semibold};
410
+ padding-right: ${e=>e.hasIconRight?"0 !important":"12px"};
411
+ padding-left: ${e=>e.hasIconLeft?"0 !important":"12px"};
412
+ `,sl=(0,E.I)(J.Ay)`
413
+ ${xt}
414
+ font-weight: ${e=>e.theme.fontWeights.regular};
415
+ padding: 0 0 0 12px;
416
+ padding: ${({disabled:e,applyAriaDisabled:t,readOnly:n})=>e||t||n?"0 12px 0 12px":"0 0 0 12px"};
417
+ line-height: 1.2307rem;
418
+ @media (max-width: ${e=>e.theme.breakpoints?.small}) {
419
+ line-height: 1rem;
420
+ }
421
+ `,rl=(0,E.I)(J.Ay)`
422
+ width: ${({width:e})=>e};
423
+
424
+ // Pill edges
425
+ & .ds-pill-wrapper {
426
+ &:not(:first-of-type) {
427
+ &,
428
+ :after,
429
+ :before,
430
+ .ds-pill-tooltip-value:after {
431
+ border-top-left-radius: 0px;
432
+ border-bottom-left-radius: 0px;
433
+ }
434
+ }
435
+ &:not(:last-of-type) {
436
+ &,
437
+ :after,
438
+ :before,
439
+ .ds-pill-tooltip-value:after {
440
+ border-top-right-radius: 0px;
441
+ border-bottom-right-radius: 0px;
442
+ }
443
+ }
444
+ }
445
+
446
+ // Pill paddings to the left / right
447
+ & .ds-pill-wrapper-label,
448
+ & .ds-pill-wrapper-value,
449
+ & .ds-pill-wrapper-readonly {
450
+ &:not(:first-of-type) {
451
+ padding-left: 8px;
452
+ }
453
+ &:not(:last-of-type) {
454
+ padding-right: 8px;
455
+ }
456
+ }
457
+
458
+ & .ds-pill-wrapper-removable:not(:first-of-type) {
459
+ padding-left: 8px;
460
+ }
461
+
462
+ & .ds-pill-wrapper-dropdown:not(:first-of-type) {
463
+ padding-left: 8px;
464
+ }
465
+
466
+ & .ds-pill-wrapper {
467
+ :not(:first-of-type) {
468
+ .ds-pill-button-left {
469
+ border-radius: 0px;
470
+ }
471
+ .ds-pill-button-only {
472
+ border-top-left-radius: 0px;
473
+ border-bottom-left-radius: 0px;
474
+ }
475
+ }
476
+ :not(:last-of-type) {
477
+ .ds-pill-button-right {
478
+ border-radius: 0px;
479
+ }
480
+ .ds-pill-button-only {
481
+ border-top-right-radius: 0px;
482
+ border-bottom-right-radius: 0px;
483
+ }
484
+ }
485
+ }
486
+ `,il=E.I.span`
487
+ outline: none;
488
+ :focus {
489
+ ${e=>yt({color:e.theme.colors.brand[700],size:2,zIndex:3})}
490
+ }
491
+ `,ll=(0,E.I)(Lo.e)`
492
+ display: grid;
493
+ place-items: center;
494
+
495
+ position: relative;
496
+
497
+ padding: 0;
498
+ ${({width:e,height:t,theme:n})=>String(e).includes("px")&&String(t).includes("px")?`
499
+ width: ${parseInt(e,10)/13}rem;
500
+ height: ${parseInt(t,10)/13}rem;
501
+
502
+ @media (max-width: ${n.breakpoints?.small}) {
503
+ width: ${parseInt(e,10)/16}rem;
504
+ height: ${parseInt(t,10)/16}rem;
505
+ }`:`
506
+ width: ${e};
507
+ height: ${t};
508
+ `}
509
+
510
+ border-radius: 12px;
511
+
512
+ :focus {
513
+ ${e=>yt({color:e.theme.colors.brand[700],size:2,zIndex:1,borderRadius:"inherit"})}
514
+ }
515
+
516
+ cursor: pointer;
517
+ `,al=(0,E.I)(fo)`
518
+ display: grid;
519
+ place-items: center;
520
+
521
+ position: relative;
522
+
523
+ padding: 0;
524
+ ${({width:e,height:t,theme:n})=>String(e).includes("px")&&String(t).includes("px")?`
525
+ width: ${parseInt(e,10)/13}rem;
526
+ height: ${parseInt(t,10)/13}rem;
527
+
528
+ @media (max-width: ${n.breakpoints?.small}) {
529
+ width: ${parseInt(e,10)/16}rem;
530
+ height: ${parseInt(t,10)/16}rem;
531
+ }`:`
532
+ width: ${e};
533
+ height: ${t};
534
+ `}
535
+
536
+ border-radius: 12px;
537
+
538
+ :focus {
539
+ ${e=>yt({color:e.theme.colors.brand[700],size:2,zIndex:1,borderRadius:"inherit"})}
540
+ }
541
+
542
+ cursor: pointer;
543
+ `,ys="DSPill",xs="DSPillbutton",Ss="DSPillgroup";var dl=T("./node_modules/.pnpm/@elliemae+ds-legacy-common@1.0.16_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-legacy-common/dist/esm/Input/DSInput.js");const cl={innerRef:()=>null,disabled:!1,applyAriaDisabled:!1,readOnly:!1,applyTooltipOverflowWrap:!1,hasError:!1,ariaLabel:"",size:"m",labelTruncated:!0,tooltipValue:"",iconLeft:null,IconLeft:null,IconRight:null,iconRight:null,onRemove:()=>null,inputPlaceholder:"",onInputChange:()=>null,onInputClear:()=>null,inputWidth:72,inputRender:dl._C,dropdownProps:{options:[],isSkeleton:!1,isOpened:!1},onDropdownClick:()=>null,tabIndex:0},bo={type:"right",width:"100%",height:"100%"},ul={width:"fit-content",innerRef:()=>null},pl=r.A.oneOf(["label","labelOnly","value","input","dropdown","removable","readonly","menubutton"]),{children:gu,...ml}=to,hl={...ae.P,...Me.w,label:r.A.string.description("Label to show in the pill").isRequired,type:pl.description("The type of pill that you want to render").isRequired,innerRef:r.A.oneOfType([r.A.object,r.A.func]).description("Reference to the focuseable internal element of each pill (remove icons, inputs, dropdown, etc.)").defaultValue(()=>null),size:r.A.oneOf(["s","m"]).description("Vertical pill size").defaultValue("m"),ariaLabel:r.A.string.description("Aria label for the pill. If not provided we will use the label").defaultValue(""),labelTruncated:r.A.bool.description("Whether to truncate the pills label").defaultValue(!0),tooltipValue:r.A.string.description("String to show as a tooltip in the value pill").defaultValue(""),iconLeft:r.A.node.description("A component to show int the left of a readonly pill").defaultValue(null).deprecated({version:"4.x",message:"Use IconLeft instead for accessibility reasons"}),IconLeft:r.A.node.description("A component to show int the left of a label pill").defaultValue(null),IconRight:r.A.node.description("A component to show in the right of a readonly pill").defaultValue(null),iconRight:r.A.node.description("A component to show in the right of a readonly pill").defaultValue(null).deprecated({version:"4.x",message:"Use IconRight instead for accessibility reasons"}),onRemove:r.A.func.description("Callback triggered when removing a pill with the close icon").defaultValue(()=>null),inputPlaceholder:r.A.string.description("Placeholder for the input pill").defaultValue(""),onInputChange:r.A.func.description("Callback triggered when user provides input to the input pill").defaultValue(()=>null),onInputClear:r.A.func.description("Callback triggered when the user clears an input pill").defaultValue(()=>null),inputWidth:r.A.number.description("Width in pixels for the input tag in the input pill").defaultValue(150),inputId:r.A.string.description("ID for the input pill").defaultValue(void 0),disabled:r.A.bool.description("Whether the pill should be disabled. Only for value and removable pill").defaultValue(!1),applyAriaDisabled:r.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1),readOnly:r.A.bool.description("Whether the Pill is in readonly state or not.").defaultValue(!1),applyTooltipOverflowWrap:r.A.bool.description("when a tooltip is present, the tooltip text may be too long to fit in the pill. If true, the tooltip will wrap to the next line using overflow-wrap").defaultValue(!1),hasError:r.A.bool.description("Whether the pill should be in an error state. Only for input pill").defaultValue(!1),inputRender:r.A.func.description("Custom render function for the input pill").defaultValue("DSInput"),menuButtonProps:r.A.shape(ml).description("Props for the menu button pill").isRequiredIf(e=>e.type==="menubutton"),trailingComma:r.A.bool.description("Whether the disabled/aria-disabled/readonly pill should include a trailing comma or not"),dropdownProps:r.A.object.description("Properties that will be used for the dropdown-menu. For accessibility reasons this is deprecated in favour of menuButtonProps").defaultValue({}).deprecated({version:"25.3"}),onDropdownClick:r.A.func.description("Callback when dropdown button is clicked or pressed. For accessibility reasons this is deprecated in favour of menuButtonProps").defaultValue(()=>null).deprecated({version:"25.3"})},fl={...ae.P,...Me.w,type:r.A.oneOf(["only","left","right"]).description("The position in which this button will be placed. Only used for css styling internally").defaultValue("right"),width:r.A.string.description("Width of the button").defaultValue("100%"),height:r.A.string.description("Height of the button").defaultValue("100%"),innerRef:r.A.oneOfType([r.A.object,r.A.func]).description("Inner ref to button component."),"data-testid":r.A.string.description("root element data-testid"),applyAriaDisabled:r.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},Is={...ae.P,width:r.A.string.description("Width of the group").defaultValue("fit-content"),innerRef:r.A.oneOfType([r.A.object,r.A.func]).description("Reference to the pill group wrapper").defaultValue(()=>null),children:r.A.node.description("Pills to render in the group").isRequired},As=hl,vs=fl,yu=null,Os=(0,i.createContext)({onKeyboardRemove:()=>null,onKeyboardNavigation:()=>null}),go=e=>{const t=(0,K.b)(e,ul);(0,W.D)(t,Is,Ss);const n=(0,L.u)(t),o=(0,i.useMemo)(()=>`ds-pill-group-${(0,oe.L)()}`,[]),{children:s,width:l,innerRef:a}=t,c=(0,i.useCallback)(m=>{const h=[...document.querySelectorAll(`#${o} .ds-pill-focus-point`)],f=h.findIndex(g=>g.id===m);f>0?h[f-1].focus():f+1<h.length&&h[f+1].focus()},[o]),u=(0,i.useCallback)((m,h,f)=>{const g=[...document.querySelectorAll(`#${o} .ds-pill-focus-point`)],S=g.findIndex(y=>y.id===m);S>=0&&g[S+h]&&(f.stopPropagation(),g[S+h].focus())},[o]),p=(0,i.useMemo)(()=>({onKeyboardRemove:c,onKeyboardNavigation:u}),[c,u]);return(0,d.jsx)(Os.Provider,{value:p,children:(0,d.jsx)(rl,{...n,width:l,id:o,cols:i.Children.map(s,()=>"auto"),gutter:"2px",innerRef:a,children:s})})};go.displayName=Ss;const bl=(0,U.A)(go);bl.propTypes=Is;const gl=r.A.shape({dsId:r.A.string.isRequired,type:r.A.oneOf(["action"]),label:r.A.string.isRequired,secondaryLabel:r.A.string,disabled:r.A.bool,render:r.A.func}),yl=r.A.shape({dsId:r.A.string.isRequired,type:r.A.oneOf(["single"]),label:r.A.string.isRequired,secondaryLabel:r.A.string,value:r.A.any.isRequired,disabled:r.A.bool,render:r.A.func}),xl=r.A.shape({dsId:r.A.string.isRequired,type:r.A.oneOf(["checkbox"]),label:r.A.string.isRequired,secondaryLabel:r.A.string,value:r.A.any.isRequired,disabled:r.A.bool,render:r.A.func}),Sl=r.A.shape({dsId:r.A.string.isRequired,type:r.A.oneOf(["submenu"]),label:r.A.string.isRequired,secondaryLabel:r.A.string,value:r.A.any.isRequired,disabled:r.A.bool,rightAddon:r.A.oneOf(["chevron","ellipsis"]),options:r.A.array,minWidth:r.A.any,maxHeight:r.A.any,render:r.A.func}),Il=r.A.shape({dsId:r.A.string.isRequired,type:r.A.oneOf(["singleWithSubmenu"]),label:r.A.string.isRequired,secondaryLabel:r.A.string,value:r.A.any.isRequired,disabled:r.A.bool,rightAddon:r.A.oneOf(["chevron","ellipsis"]),options:r.A.array,minWidth:r.A.any,maxHeight:r.A.any,render:r.A.func}),Al=r.A.shape({dsId:r.A.string.isRequired,type:r.A.oneOf(["separator"]),label:r.A.string.isRequired,render:r.A.func}),vl=r.A.shape({dsId:r.A.string.isRequired,type:r.A.oneOf(["section"]),label:r.A.string.isRequired,render:r.A.func}),Ol=r.A.oneOfType([gl,yl,xl,Sl,Il,Al,vl]),ws={options:r.A.arrayOf(Ol).description("The array of option for the menu").omitValidation().isRequired,isOpened:r.A.bool.description("Whether the dropdown menu is opened or not").isRequired,onClickOutside:r.A.func.description("Callback executed when you click outside the dropdown menu, or press the Esc key").defaultValue(()=>null),selectedOptions:r.A.object.description("Object with the ids of the options as keys, and booleans as keys. Represents the state of the current selection in the dropdown menu").defaultValue({}),onOptionClick:r.A.func.description("Callback triggered when an item is clicked or pressed. We provide the next selected options, the clicked option and the event, in that order").defaultValue(()=>null),openedSubmenus:r.A.object.description("Object with the ids of the submenus as keys, and booleans as keys. Represents the state of the current opened submenus").defaultValue({}),onSubmenuToggle:r.A.func.description("Callback triggered when a submenu is opened or closed. We provide the next opened submenus, the clicked one and the event, in that order").defaultValue(()=>null),startPlacementPreference:r.A.string.description("Where to place the popper for the dropdown menu").defaultValue("bottom-start"),placementOrderPreference:r.A.arrayOf(r.A.string).description("Placement priorities for the dropdown menu").defaultValue(["bottom-start","top-start","right-start","right-end","left-start","left-end"]),customOffset:r.A.arrayOf(r.A.number).description("Custom offset for the dropdown menu").defaultValue([0,4]),wrapperStyles:r.A.object.description("Styling for the dropdown menu wrapper").defaultValue({}),isLoading:r.A.bool.description("Whether the dropdown menu should render the loading indicator").defaultValue(!1),zIndex:r.A.number.description("ZIndex for the popper").defaultValue(10),HeaderComp:r.A.func.description("Component to render as a header for the dropdown menu").defaultValue(void 0),actionRef:r.A.object.description("Reference where all the exposed action callbacks will be exposed"),minWidth:r.A.any.description("Minimum width for the dropdown menu").defaultValue(void 0),maxHeight:r.A.any.description("Maximum height for the dropdown menu").defaultValue(void 0),...ae.P,onKeyDown:r.A.func.description("Callback executed when a key is pressed").defaultValue(()=>null),onMouseEnter:r.A.func.description("Callback executed when the mouse enter the dropdown menu").defaultValue(()=>null),onMouseLeave:r.A.func.description("Callback executed when the mouse leaves the dropdown menu").defaultValue(()=>null),isSkeleton:r.A.bool.description("Whether the dropdown menu should render the skeleton").defaultValue(!1)},wl={onClickOutside:()=>null,onKeyDown:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,selectedOptions:{},onOptionClick:()=>null,openedSubmenus:{},onSubmenuToggle:()=>null,isLoading:!1,hasInput:!1,inputValue:"",inputPlaceholder:"Hint text",onInputChange:()=>null,startPlacementPreference:"bottom-start",placementOrderPreference:["bottom-start","top-start","right-start","right-end","left-start","left-end"],customOffset:[0,4],wrapperStyles:{},actionRef:{current:{}},as:"div",isSkeleton:!1},ct=(0,i.createContext)(void 0);var Tl=T("./node_modules/.pnpm/react-virtual@2.10.4/node_modules/react-virtual/dist/react-virtual.mjs");const El=()=>{const[e,t]=(0,i.useState)(null),n=(0,i.useRef)(null),o=(0,i.useRef)(null);return{triggerReferenceElement:e,setTriggerReferenceElement:t,listboxReference:n,inputReference:o}},jt=e=>!["section","separator"].includes(e.type)&&!("disabled"in e&&e.disabled),St="DSDropdownmenu",Lt={ROOT:"root",LOADING_WRAPPER:"loading-wrapper",LISTBOX_WRAPPER:"listbox-wrapper",HEADER_WRAPPER:"header-wrapper",OPTION_LIST_WRAPPER:"option-list-wrapper",EMPTY_STATE_WRAPPER:"empty-state-wrapper"},xu={TOP_START:"top-start",TOP:"top",TOP_END:"top-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",BOTTOM_END:"bottom-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",LEFT_END:"left-end",LEFT:"left",LEFT_START:"left-start"},Ml=()=>32,Pl=(e,t)=>{const n=(0,K.b)(e,wl);(0,W.D)(n,ws,St);const{options:o,inputValue:s,isOpened:l,actionRef:a}=n,{triggerReferenceElement:c,setTriggerReferenceElement:u,listboxReference:p,inputReference:m}=El(),[h,f]=(0,i.useState)(o.find(jt)?.dsId??"");(0,i.useEffect)(()=>{l&&f(o.find(jt)?.dsId??"")},[l,s]);const g=(0,Tl.z)({size:o.length,parentRef:p,overscan:15,paddingStart:0,estimateSize:Ml}),{scrollToIndex:S}=g,y=(0,i.useCallback)((v,I)=>{S(v,I),window.requestAnimationFrame(()=>{S(v,I)})},[S]),b=(0,i.useCallback)((v,I={align:"center"})=>{const O=o.findIndex(w=>w.dsId===v);y(O,I)},[o,y]);return(0,i.useEffect)(()=>{a?.current&&(a.current={setActiveDescendant:f,scrollOptionIntoView:b,scrollToIndex:y})},[a,b,y]),(0,i.useMemo)(()=>({props:n,virtualListHelpers:g,triggerReferenceElement:c,setTriggerReferenceElement:u,listboxReference:p,inputReference:m,activeDescendant:h,setActiveDescendant:f,scrollOptionIntoView:b,DSDropdownMenuV2:t}),[n,g,c,u,p,m,h,b,t])};var Cl=T("./node_modules/.pnpm/@elliemae+ds-popperjs@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-popperjs/dist/esm/index.js");const on={TRIGGER_WRAPPER:"dropdown-menu-trigger-wrapper",LISTBOX:"dropdown-menu-listbox",MENU_WRAPPER:"dropdown-menu-wrapper",LOADING:"dropdown-menu-loading-wrapper",OPTION:"ds-menu-item"};var _l=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/styled/system-utilities/space.js"),Ts=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/styled/system-utilities/sizing.js"),Es=T("./node_modules/.pnpm/@xstyled+system@3.7.5/node_modules/@xstyled/system/dist/index.mjs");const Dl=(0,E.I)("div",{name:St,slot:Lt.ROOT})`
544
+ width: fit-content;
545
+ ${_l.x}
546
+ ${Ts.v}
547
+ ${Es.G1C}
548
+ ${Es.Zpx}
549
+ `,Rl=(0,E.I)("div",{name:St,slot:Lt.LISTBOX_WRAPPER})`
550
+ ${Ts.v}
551
+ padding: ${e=>e.hasHeader?0:"4px"} 0 4px 0;
552
+ overflow-y: auto;
553
+ background-color: white;
554
+ outline: none;
555
+ list-style: none;
556
+ `,kl=(0,E.I)("ul",{name:St,slot:Lt.OPTION_LIST_WRAPPER})`
557
+ position: relative;
558
+ margin: 0;
559
+ padding: 0;
560
+ list-style: none;
561
+ outline: none;
562
+ `,Nl=(0,E.I)(J.Ay,{name:St,slot:Lt.LOADING_WRAPPER})`
563
+ height: ${e=>e.theme.space.xxl};
564
+ min-width: ${e=>e.minWidth}px;
565
+ background-color: white;
566
+ outline: none;
567
+ `,jl=(0,E.I)(J.Ay,{name:St,slot:Lt.EMPTY_STATE_WRAPPER})`
568
+ font-weight: ${e=>e.theme.fontWeights.regular};
569
+ font-size: ${e=>e.theme.fontSizes.value[500]};
570
+ color: ${e=>e.theme.colors.neutral[500]};
571
+ `,Ll=(0,E.I)(J.Ay)`
572
+ padding-top: ${e=>e.hasHeader?e.theme.space.xxs:0};
573
+ padding-left: ${e=>e.theme.space.xxs};
574
+ padding-right: ${e=>e.theme.space.xxs};
575
+ padding-bottom: ${e=>e.theme.space.xxs};
576
+
577
+ .em-ds-input {
578
+ :focus,
579
+ :hover {
580
+ outline: none !important;
581
+ border: none !important;
582
+ box-shadow: none !important;
583
+ }
584
+ :focus {
585
+ border: 1px solid ${e=>e.theme.colors.brand[700]} !important;
586
+ box-shadow: inset 0 0 0 1px ${e=>e.theme.colors.brand[700]} !important;
587
+ }
588
+ }
589
+ `,Wl=(0,E.I)(J.Ay,{name:St,slot:Lt.HEADER_WRAPPER})`
590
+ width: 100%;
591
+ border-bottom: 1px solid ${e=>e.theme.colors.neutral[300]};
592
+ color: ${e=>e.theme.colors.neutral[500]};
593
+ font-size: 12px;
594
+ padding-left: ${e=>e.theme.space.xxxs};
595
+ position: sticky;
596
+ top: 0;
597
+ z-index: 20;
598
+ background-color: white;
599
+ min-height: 16px;
600
+ `;var Fl=T("./node_modules/.pnpm/@elliemae+ds-form-input-text@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-form-input-text/dist/esm/DSInputText.js");const Wn=(e,t,n,o=1)=>{for(let s=(t+o+e.length)%e.length;s!==t;s=(s+o+e.length)%e.length)if(n(e[s]))return s;return t},Ms=e=>e.type==="submenu"||e.type==="singleWithSubmenu",Ps=(e,t="__root")=>{let n={};return e?.forEach(o=>{Ms(o)&&(n[o.dsId]=t,"options"in o&&(n={...n,...Ps(o.options,o.dsId)}))}),n},yo=(e,t,n)=>{if(!Ms(n)||t[n.dsId]===!1)return t;const o=Ps(e),s={...t};Object.keys(o).forEach(a=>{s[a]=!1});let l=n.dsId;for(;l!=="__root";)s[l]=!0,l=o[l];return s},$l=()=>{const{props:{options:e,onOptionClick:t,openedSubmenus:n,onSubmenuToggle:o,onKeyDown:s,selectedOptions:l,onClickOutside:a,onMouseEnter:c,onMouseLeave:u},activeDescendant:p,setActiveDescendant:m,scrollOptionIntoView:h,listboxReference:f,inputReference:g}=(0,i.useContext)(ct),S=(0,i.useCallback)(b=>{const x=e.findIndex(I=>I.dsId===p);if(x===-1)return;const v=e[x];if(b.stopPropagation(),b.code==="ArrowDown"){b.preventDefault();const I=Wn(e,x,jt);m(e[I].dsId),h(e[I].dsId)}else if(b.code==="ArrowUp"){b.preventDefault();const I=Wn(e,x,jt,-1);m(e[I].dsId),h(e[I].dsId)}else if(b.code==="ArrowRight"&&["submenu","singleWithSubmenu"].includes(v.type)&&!n[v.dsId]){b.preventDefault();const{type:I}=v;if((I==="submenu"||I==="singleWithSubmenu")&&v.applyAriaDisabled)return;o(yo(e,{...n,[v.dsId]:!0},v),v,b)}else if(["Space","Enter"].includes(b.code)){b.preventDefault();const{type:I}=v;if(I==="singleWithSubmenu"&&v.applyAriaDisabled)return;const O={...l};if(O[v.dsId]=!l[v.dsId],v?.disabled)return;t(O,v,b),v.onClick&&v.onClick(b)}else if(b.code==="Escape")a(b);else if(b.code==="Home"){const I=Wn(e,e.length-1,jt);m(e[I].dsId),h(e[I].dsId)}else if(b.code==="End"){const I=Wn(e,0,jt,-1);m(e[I].dsId),h(e[I].dsId)}v.onKeyDown&&v.onKeyDown(b),s(b)},[e,n,s,p,m,h,o,l,t,a]),y=(0,i.useCallback)(b=>{g.current?g.current.focus():f.current?.focus(),c(b)},[g,f,c]);return{onKeyDown:S,onMouseEnter:y,onMouseLeave:u}},Vl=e=>(0,d.jsx)(jl,{px:"xxs",py:"xxxs",role:"alert",...e,children:"No content available"}),It={innerRef:()=>{},wrapperStyles:{}},Wt={dsId:r.A.string.description("unique identifier that MUST NOT be repeated to ensure all functionalities works as expected").isRequired,wrapperStyles:r.A.object.description("Styles to be applied to the wrapper element.").defaultValue(It.wrapperStyles),render:r.A.func.description("A React component that can be used to render the menu item.").signature("React.ComponentType"),innerRef:r.A.oneOfType([r.A.shape({current:r.A.node}),r.A.func.description(" A ref object or callback function to access the main underlying DOM element of the menu item.")]).defaultValue("(() => {})"),original:r.A.object.description("")},Su=null,Bl={...It,label:"",value:void 0,disabled:!1,isActive:!1,onClick:()=>{},onKeyDown:()=>{},optionsShouldHavePadding:!1,tabIndex:0,applyAriaDisabled:!1,as:"li"},{tabIndex:Iu,label:Au,value:vu,...Hl}=ae.P,Cs={...Hl,...Me.w,...Wt,tabIndex:r.A.oneOfType([r.A.number,r.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed."),label:r.A.string.description("The label of the menu item."),value:r.A.any.description("The value of the menu item."),isActive:r.A.bool.description("Whether the menu item is active."),optionsShouldHavePadding:r.A.bool.description("Whether the menu item should have padding. This is used in the context of a menu with options."),secondaryLabel:r.A.string.description("The secondary label of the menu item."),applyAriaDisabled:r.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1),as:r.A.string.description("The HTML element to render the menu item as.")},Ul=Cs,zl=`${me}Action`,Gl=(e,t)=>{(0,W.D)(e,t,zl)},Kl=e=>{const t=(0,K.b)(e,Bl);Gl(t,Cs);const n=(0,L.u)(t),o=(0,B.d)(t);return i.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o}),[t,n,o])},xo=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=Kl(e),{dsId:s,label:l,secondaryLabel:a,onClick:c,onKeyDown:u,isActive:p,disabled:m,innerRef:h,wrapperStyles:f,optionsShouldHavePadding:g,render:S,applyAriaDisabled:y,readOnly:b,as:x}=t,v=i.useCallback(w=>{m||y||b||c?.(w)},[m,y,b,c]),I=i.useCallback(w=>{(y||b)&&(w.code==="Space"||w.code==="Enter")||u?.(w)},[y,b,u]),O=i.useMemo(()=>{const w=["auto"];return a&&w.push("min-content"),w},[a]);return(0,d.jsx)(Pe,{id:s,role:"option",isActive:p,disabled:m,innerRef:h,pl:g?40:16,style:f,"data-type":"action","aria-disabled":y,...n,onClick:v,onKeyDown:I,...o,as:x,children:S!==void 0?(0,d.jsx)(S,{...t}):(0,d.jsx)(ke,{cols:O,minHeight:"16px",gutter:"xxs",alignItems:"center",children:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ye,{children:l}),a!==void 0&&(0,d.jsx)(Xe,{children:a})]})})})};xo.displayName="DSActionMenuItem";const Yl=(0,U.A)(xo);Yl.propTypes=Ul;const Xl={...It,label:"",isActive:!1,disabled:!1,isSelected:!1,onClick:()=>{},onMouseDown:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},onKeyDown:()=>{},dataTestid:"ds-menu-item",tabIndex:0,applyAriaDisabled:!1},{tabIndex:Ou,label:wu,value:Tu,...ql}=ae.P,_s={...ql,...Me.w,...Wt,tabIndex:r.A.oneOfType([r.A.number,r.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed."),label:r.A.string.description("The label of the menu item."),value:r.A.any.description("The value of the menu item."),isActive:r.A.bool.description("Whether the menu item is active."),secondaryLabel:r.A.string.description("The secondary label of the menu item."),disabled:r.A.bool.description("Whether the menu item is disabled."),isSelected:r.A.bool.description("Whether the menu item is selected."),dataTestid:r.A.string.description("A custom data-testid for your e2e testing"),applyAriaDisabled:r.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},Zl=_s,Jl=`${me}Single`,Ql=(e,t)=>{(0,W.D)(e,t,Jl)},ea=e=>{const t=(0,K.b)(e,Xl);Ql(t,_s);const n=t.original??t,o=(0,L.u)(n),s=(0,B.d)(n);return i.useMemo(()=>({propsWithDefault:t,globalProps:o,xstyledProps:s}),[t,o,s])},sn=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=ea(e),{dsId:s,label:l,secondaryLabel:a,isSelected:c,onClick:u,onKeyDown:p,isActive:m,innerRef:h,onMouseDown:f,onMouseEnter:g,onMouseLeave:S,wrapperStyles:y,render:b,dataTestid:x,disabled:v,applyAriaDisabled:I,readOnly:O}=t,{getOwnerProps:w}=(0,Z.j)(t),C=i.useCallback(V=>{v||f?.(V)},[v,f]),M=i.useCallback(V=>{v||I||O||u?.(V)},[v,I,O,u]),k=i.useCallback(V=>{(I||O)&&(V.code==="Space"||V.code==="Enter")||p?.(V)},[I,O,p]),D=i.useMemo(()=>{const V={small:["1rem","auto"],medium:["1.2308rem","auto"]};return a&&(V.small.push("min-content"),V.medium.push("min-content")),V},[a]),z=I?["neutral","400"]:["brand-primary","600"];return(0,d.jsx)(Pe,{"aria-selected":c,id:s,role:"option",isActive:m,isSelected:c,innerRef:h,onMouseDown:C,onMouseEnter:g,onMouseLeave:S,className:m?"ds-list-item-active":"",style:y,"data-testid":x,disabled:v,"data-type":"single","aria-disabled":I||v,...n,onClick:M,onKeyDown:k,getOwnerProps:w,...o,children:b!==void 0?(0,d.jsx)(b,{...t}):(0,d.jsxs)(ke,{cols:D,minHeight:"16px",gutter:"xxs",alignItems:"center",getOwnerProps:w,children:[(0,d.jsx)("div",{children:c&&(0,d.jsx)(Cn,{size:"s",color:z})}),(0,d.jsx)(Ye,{getOwnerProps:w,children:l}),a!==void 0&&(0,d.jsx)(Xe,{getOwnerProps:w,children:a})]})})};sn.displayName="DSSingleMenuItem";const ta=(0,U.A)(sn);ta.propTypes=Zl;var na=T("./node_modules/.pnpm/@elliemae+ds-form-checkbox@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-form-checkbox/dist/esm/index.js");const oa={...It,label:"",isActive:!1,disabled:!1,applyAriaDisabled:!1,isSelected:!1,onClick:()=>{},onMouseDown:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},tabIndex:0},{tabIndex:Eu,label:Mu,value:Pu,...sa}=ae.P,Ds={...sa,...Me.w,...Wt,tabIndex:r.A.oneOfType([r.A.number,r.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed."),label:r.A.string.description("The label of the menu item."),isActive:r.A.bool.description("Whether the menu item is active."),isSelected:r.A.bool.description("Whether the menu item has to show the selected state or not."),value:r.A.any.description("The value of the menu item."),dataTestid:r.A.string.description("The data-testid of the menu item."),applyAriaDisabled:r.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},ra=Ds,ia=`${me}Multi`,la=(e,t)=>{(0,W.D)(e,t,ia)},aa=e=>{const t=(0,K.b)(e,oa);la(t,Ds);const n=(0,L.u)(t),o=(0,B.d)(t);return i.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o}),[t,n,o])},da=()=>{},rn=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=aa(e),{dsId:s,label:l,disabled:a,isSelected:c,isActive:u,onClick:p,dataTestid:m,innerRef:h,onMouseEnter:f,onMouseLeave:g,onMouseDown:S,wrapperStyles:y,tabIndex:b,render:x,applyAriaDisabled:v,readOnly:I}=t,{getOwnerProps:O,getOwnerPropsArguments:w}=(0,Z.j)(e),C=i.useCallback(M=>{a||v||I||p?.(M)},[a,v,I,p]);return(0,d.jsx)(Pe,{id:s,disabled:a,isActive:u,isSelected:c,innerRef:h,onMouseDown:S,onMouseEnter:f,onMouseLeave:g,role:"option",className:u?"ds-list-item-active":"","aria-selected":c,style:y,"data-testid":m,"data-type":"multi","aria-disabled":v||a,applyAriaDisabled:v,readOnly:I,...n,onClick:C,getOwnerProps:O,getOwnerPropsArguments:w,...o,children:x!==void 0?(0,d.jsx)(x,{...t}):(0,d.jsx)(Yr,{getOwnerProps:O,getOwnerPropsArguments:w,children:(0,d.jsx)(na.Lt,{disabled:a,applyAriaDisabled:v,readOnly:I,checked:c,onMouseDown:S,name:l,label:l,onChange:da,tabIndex:b,wrapLabel:!0})})})};rn.displayName="DSMultiMenuItem";const ca=(0,U.A)(rn);ca.propTypes=ra;var Rs=(0,Pn.w)({paths:["M9.496 12c-.828 0-1.5-.672-1.5-1.5S8.668 9 9.496 9s1.5.672 1.5 1.5-.672 1.5-1.5 1.5zM9.496 7c-.828 0-1.5-.672-1.5-1.5S8.668 4 9.496 4s1.5.672 1.5 1.5-.672 1.5-1.5 1.5zM9.496 17c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5z"],height:20,width:20}),ks=T("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronRight.js");const Fn={...It,label:"",isActive:!1,disabled:!1,applyAriaDisabled:!1,isSubmenuOpened:!1,onSubmenuOpen:()=>{},rightAddon:"chevron",optionsShouldHavePadding:!1,Dropdown:()=>null,dropdownProps:{options:[],onSubmenuToggle:()=>{},openedSubmenus:{},selectedOptions:{},onKeyDown:()=>{},onOptionClick:()=>{},onClickOutside:()=>{},minWidth:"auto",maxHeight:"auto"}},Ns={...ae.P,...Me.w,...Wt,tabIndex:r.A.oneOfType([r.A.number,r.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed."),label:r.A.string.description("The label of the menu item."),value:r.A.any.description("The value of the menu item."),isActive:r.A.bool.description("Whether the menu item is active.").defaultValue(Fn.isActive),optionsShouldHavePadding:r.A.bool.description("Whether the menu item should have padding. This is used in the context of a menu with options.").defaultValue(Fn.optionsShouldHavePadding),secondaryLabel:r.A.string.description("The secondary label of the menu item."),isSubmenuOpened:r.A.bool.description("Whether the submenu is opened or not.").defaultValue(Fn.isSubmenuOpened),onSubmenuOpen:r.A.func.description("Callback fired when the user tries to open the submenu."),onSubmenuClose:r.A.func.description("Callback fired when the user tries to close the submenu."),rightAddon:r.A.oneOf(["ellipsis","chevron"]).description("The visual element to display on the right side of the menu item."),Dropdown:r.A.func.description("The Dropdown component to use to render the submenu."),dropdownProps:r.A.object.description("The props to pass to the Dropdown component."),applyAriaDisabled:r.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},ua=Ns,pa=`${me}Submenu`,ma=(e,t)=>{(0,W.D)(e,t,pa)},ha=({disabled:e,isSubmenuOpened:t,onMouseEnter:n,onSubmenuOpen:o,onSubmenuClose:s,onMouseLeave:l,onMouseDown:a})=>({onMouseEnterHandler:h=>n?.(h),onMouseLeaveHandler:h=>l?.(h),onMouseDownHandler:h=>{if(e){h.preventDefault();return}a?.(h)},onEllipsisClick:h=>{e||(h.stopPropagation(),t?s?.(h):o(h))}}),fa=({isSubmenuOpened:e,onMouseEnter:t,onSubmenuOpen:n,onSubmenuClose:o,onMouseLeave:s,onMouseDown:l,disabled:a,applyAriaDisabled:c})=>{const u={current:null};return{onMouseEnterHandler:g=>{c||(u.current!==null?clearTimeout(u.current):e||n?.(g),u.current=null,t?.(g))},onMouseLeaveHandler:g=>{u.current===null&&(u.current=setTimeout(()=>{u.current=null,o?.(g)},300)),s?.(g)},onMouseDownHandler:g=>{a||l?.(g)},onEllipsisClick:()=>{throw new Error("Invoking onEllipsisClick from chevron handlers... this should never happen")}}},ba=e=>{const{rightAddon:t}=e;return(0,i.useMemo)(()=>t==="ellipsis"?ha(e):fa(e),[e,t])},ga=e=>{const t=(0,K.b)(e,Fn);ma(t,Ns);const n=t.original??t,o=(0,L.u)(n),s=(0,B.d)(n),l=ba(t);return i.useMemo(()=>({propsWithDefault:t,globalProps:o,xstyledProps:s,eventHandlers:l}),[t,o,s,l])},So=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o,eventHandlers:s}=ga(e),{dsId:l,label:a,secondaryLabel:c,isActive:u,disabled:p,applyAriaDisabled:m,isSubmenuOpened:h,rightAddon:f,innerRef:g,wrapperStyles:S,optionsShouldHavePadding:y,render:b,Dropdown:x,dropdownProps:{options:v,openedSubmenus:I,onSubmenuToggle:O,selectedOptions:w,onKeyDown:C,onOptionClick:M,onClickOutside:k,minWidth:D,maxHeight:z}}=t,[V,A]=i.useState(!1);i.useEffect(()=>{setTimeout(()=>A(Boolean(h)))},[h]);const _=i.useMemo(()=>{const Ro=["auto"];return c!==void 0&&Ro.push("min-content"),Ro.push("min-content"),Ro},[c]),{minWidth:P,...F}=o,{onMouseLeave:H,onMouseEnter:He,onMouseDown:ye,...Ne}=n,{onMouseEnterHandler:Bt,onMouseLeaveHandler:je,onMouseDownHandler:eu,onEllipsisClick:tu}=s;return(0,d.jsx)(x,{isOpened:V,options:v??[],onOptionClick:M,startPlacementPreference:"right-start",placementOrderPreference:["right-start","right-end","left-start","left-end"],selectedOptions:w,openedSubmenus:I,onSubmenuToggle:O,onKeyDown:C,onClickOutside:k,customOffset:[-4,1],wrapperStyles:{...S,w:"100%"},as:"li",role:"option",minWidth:D,maxHeight:z,"aria-selected":h,"aria-describedby":`dropdownmenu-submenu-${l}`,"data-popover-label":a,id:l,onMouseEnter:Bt,onMouseLeave:je,onMouseDown:eu,...Ne,...F,children:(0,d.jsxs)(Pe,{pr:0,isSelected:h,isActive:u,onMouseEnter:Bt,onMouseLeave:je,innerRef:g,disabled:p,"aria-disabled":m,pl:y?40:16,as:"div","data-type":"submenu",children:[b!==void 0?(0,d.jsx)(b,{...t}):(0,d.jsxs)(ke,{cols:_,gutter:"xxs",alignItems:"center",children:[(0,d.jsx)(Ye,{children:a}),c!==void 0&&(0,d.jsx)(Xe,{children:c}),(0,d.jsxs)(Xo,{children:[(0,d.jsx)(es,{}),f==="ellipsis"?(0,d.jsx)(qo,{tabIndex:-1,onClick:tu,disabled:p,applyAriaDisabled:m,children:(0,d.jsx)(Rs,{className:"ds-dropdown-menu-v2-more-options",color:p||m?["neutral","500"]:["brand-primary","600"],size:"s"})}):(0,d.jsx)(ks.A,{color:p||m?["neutral","500"]:["brand-primary","600"],size:"s"})]})]}),(0,d.jsx)("span",{id:`dropdownmenu-submenu-${l}`,style:{display:"none"},children:"submenu, to open this submenu press the Right Arrow key"})]})})};So.displayName="DSMenuItemSubmenu";const ya=(0,U.A)(So);ya.propTypes=ua;const xa={...It,role:"option"},{dsId:Cu,...Sa}=Wt,js={...Me.w,...Sa,...ae.P,role:r.A.string.description('the arial role to apply to the separator, defaults to "option"').defaultValue("option"),tabIndex:r.A.oneOfType([r.A.number,r.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed.")},Ia=js,Aa=`${me}Separator`,va=(e,t)=>{(0,W.D)(e,t,Aa)},Oa=e=>{const t=(0,K.b)(e,xa);va(t,js);const n=t.original??t,o=(0,L.u)(n),s=(0,B.d)(n);return i.useMemo(()=>({propsWithDefault:t,globalProps:o,xstyledProps:s}),[t,o,s])},ln=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=Oa(e),{wrapperStyles:s,innerRef:l,render:a}=t;return(0,d.jsx)(Jo,{style:s,innerRef:l,"aria-label":"separator",role:"option",tabIndex:void 0,...n,...o,"aria-hidden":"true",children:a?(0,d.jsx)(a,{...t}):(0,d.jsx)(Zo,{})})};ln.displayName="DSMenuItemSeparator";const wa=(0,U.A)(ln);wa.propTypes=Ia;const Ta={},Ls={...ae.P,...Me.w,label:r.A.string.description("The label of the menu item."),wrapperStyles:r.A.object.description("Styles to be applied to the wrapper element if any."),render:r.A.func.description("A React component that can be used to render the menu item if the default one is not the desired one.").signature("React.ComponentType"),innerRef:r.A.oneOfType([r.A.shape({current:r.A.node}),r.A.func.description(" A ref object or callback function to access the main underlying DOM element of the menu item.")])},Ea=Ls,Ma=`${me}Section`,Pa=(e,t)=>{(0,W.D)(e,t,Ma)},Ca=e=>{const t=(0,K.b)(e,Ta);Pa(t,Ls);const n=(0,L.u)(t),o=(0,B.d)(t);return i.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o}),[t,n,o])},Io=e=>{const{globalProps:t,xstyledProps:n}=Ca(e),{label:o,wrapperStyles:s,innerRef:l,render:a}=e;return(0,d.jsx)(Xr,{style:s,innerRef:l,role:"option",...t,...n,children:a!==void 0?(0,d.jsx)(a,{...e}):(0,d.jsx)(Qo,{children:o})})};Io.displayName="DSSectionMenuItem";const _a=(0,U.A)(Io);_a.propTypes=Ea;const At={...It,isSelected:!1,onClick:()=>{},onMouseDown:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},dataTestid:"ds-menu-item",tabIndex:0,label:"",isActive:!1,disabled:!1,applyAriaDisabled:!1,isSubmenuOpened:!1,onSubmenuOpen:()=>{},rightAddon:"chevron",optionsShouldHavePadding:!1,Dropdown:()=>null,dropdownProps:{options:[],onSubmenuToggle:()=>{},openedSubmenus:{},selectedOptions:{},onKeyDown:()=>{},onOptionClick:()=>{},onClickOutside:()=>{},minWidth:"auto",maxHeight:"auto"}},{tabIndex:_u,label:Du,value:Ru,...Da}=ae.P,Ws={...Da,...Me.w,...Wt,tabIndex:r.A.oneOfType([r.A.number,r.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed.").defaultValue(At.tabIndex),label:r.A.string.description("The label of the menu item."),value:r.A.any.description("The value of the menu item."),isActive:r.A.bool.description("Whether the menu item is active.").defaultValue(At.isActive),optionsShouldHavePadding:r.A.bool.description("Whether the menu item should have padding. This is used in the context of a menu with options.").defaultValue(At.optionsShouldHavePadding),secondaryLabel:r.A.string.description("The secondary label of the menu item."),isSelected:r.A.bool.description("Whether the menu item has to show the selected state or not.").defaultValue(At.isSelected),dataTestid:r.A.string.description("The data-testid of the menu item.").defaultValue(At.dataTestid),isSubmenuOpened:r.A.bool.description("Whether the submenu is opened or not.").defaultValue(At.isSubmenuOpened),onSubmenuOpen:r.A.func.description("Callback fired when the user tries to open the submenu."),onSubmenuClose:r.A.func.description("Callback fired when the user tries to close the submenu."),rightAddon:r.A.oneOf(["ellipsis","chevron"]).description("The visual element to display on the right side of the menu item."),Dropdown:r.A.func.description("The Dropdown component to use to render the submenu."),dropdownProps:r.A.shape({options:r.A.arrayOf(r.A.any).description("The options to display in the submenu."),onSubmenuToggle:r.A.func.description("Callback fired when the user tries to toggle the submenu. It receives the next opened submenus, the submenu and the event.").signature("((nextOpenedSubmenus: Record<string, boolean>, submenu: unknown, e: React.MouseEvent | React.KeyboardEvent) => void)"),openedSubmenus:r.A.objectOf(r.A.bool).description("The opened submenus."),selectedOptions:r.A.objectOf(r.A.bool).description("The selected options."),onKeyDown:r.A.func.description("Callback fired when the user presses a key."),onOptionClick:r.A.func.description("Callback fired when the user clicks on an option. It receives the next selected options, the clicked option and the event.").signature("((nextSelectedOptions: Record<string, boolean>, clickedOption: unknown, e: React.MouseEvent | React.KeyboardEvent) => void)"),onClickOutside:r.A.func.description("Callback fired when the user clicks outside the submenu.").signature("((e: MouseEvent | React.KeyboardEvent | TouchEvent) => void)"),minWidth:r.A.oneOfType([r.A.number,r.A.string]).description("The min width of the submenu."),maxHeight:r.A.oneOfType([r.A.number,r.A.string]).description("The max height of the submenu.")}).description("The props to pass to the Dropdown component."),applyAriaDisabled:r.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},Ra=Ws,ka=`${me}SingleWithSubmenu`,Na=(e,t)=>{(0,W.D)(e,t,ka)},ja=({disabled:e,applyAriaDisabled:t,rightAddon:n,isSubmenuOpened:o,onMouseEnter:s,onSubmenuOpen:l,onSubmenuClose:a,onMouseLeave:c})=>{const u=i.useRef(null),p=i.useCallback(f=>{n!=="ellipsis"&&(u.current!==null?clearTimeout(u.current):o||l(f),u.current=null),s(f)},[o,s,l,n]),m=i.useCallback(f=>{n!=="ellipsis"&&u.current===null&&(u.current=setTimeout(()=>{u.current=null,a?.(f)},300)),c(f)},[c,a,n]),h=i.useCallback(f=>{e||t||(f.stopPropagation(),o?a?.(f):l(f))},[e,t,o,a,l]);return i.useMemo(()=>({onMouseEnterHandler:p,onMouseLeaveHandler:m,onEllipsisClick:h}),[p,m,h])},La=e=>{const t=(0,K.b)(e,At);Na(t,Ws);const n=(0,L.u)(t),o=(0,B.d)(t),s=ja(t);return i.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o,eventHandlers:s}),[t,n,o,s])},Ao=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o,eventHandlers:s}=La(e),{onMouseEnterHandler:l,onMouseLeaveHandler:a,onEllipsisClick:c}=s,{dsId:u,label:p,secondaryLabel:m,isActive:h,disabled:f,applyAriaDisabled:g,onClick:S,isSelected:y,isSubmenuOpened:b,rightAddon:x,innerRef:v,wrapperStyles:I,render:O,Dropdown:w,dropdownProps:{options:C,openedSubmenus:M,onSubmenuToggle:k,selectedOptions:D,onKeyDown:z,onOptionClick:V,onClickOutside:A,minWidth:_,maxHeight:P}}=t,[F,H]=i.useState(!1),{minWidth:He,...ye}=o;i.useEffect(()=>{setTimeout(()=>H(b))},[b]);const Ne=i.useMemo(()=>{const je=["16px","auto"];return m&&je.push("min-content"),je.push("min-content"),je},[m]),Bt=i.useCallback(je=>{f||g||S?.(je)},[f,g,S]);return(0,d.jsx)(w,{isOpened:F,options:C??[],onOptionClick:V,startPlacementPreference:"right-start",placementOrderPreference:["right-start","right-end","left-start","left-end"],selectedOptions:D,openedSubmenus:M,onSubmenuToggle:k,onKeyDown:z,onClickOutside:A,customOffset:[-4,1],onMouseEnter:l,onMouseLeave:a,wrapperStyles:{...I,w:"100%"},minWidth:_,maxHeight:P,"data-popover-label":p,as:"li",role:"option","aria-selected":b,"aria-describedby":`dropdownmenu-submenu-${u}`,id:u,...n,...ye,children:(0,d.jsxs)(Pe,{pr:0,onClick:Bt,isSelected:b,disabled:f,"aria-disabled":g,isActive:h,onMouseEnter:l,onMouseLeave:a,as:"div",innerRef:v,"data-type":"single-with-submenu",children:[O!==void 0?(0,d.jsx)(O,{...t}):(0,d.jsxs)(ke,{cols:Ne,gutter:"xxs",alignItems:"center",children:[y?(0,d.jsx)(Cn,{size:"s",color:f||g?["neutral","500"]:["brand-primary","600"]}):(0,d.jsx)("div",{}),(0,d.jsx)(Ye,{children:p}),m!==void 0&&(0,d.jsx)(Xe,{children:m}),(0,d.jsxs)(Xo,{children:[(0,d.jsx)(es,{}),x==="ellipsis"?(0,d.jsx)(qo,{tabIndex:-1,onClick:c,disabled:f,applyAriaDisabled:g,children:(0,d.jsx)(Rs,{className:"ds-dropdown-menu-v2-more-options",color:f||g?["neutral","500"]:["brand-primary","600"],size:"s"})}):(0,d.jsx)(ks.A,{color:f||g?["neutral","500"]:["brand-primary","600"],size:"s"})]})]}),(0,d.jsx)("span",{id:`dropdownmenu-submenu-${u}`,style:{display:"none"},children:"submenu, to open this submenu press the Right Arrow key"})]})})};Ao.displayName="DSMenuItemSingleWithSubmenu";const Wa=(0,U.A)(Ao);Wa.propTypes=Ra;const Fa={wrapperStyles:{}},Fs={...ae.P,...Me.w,dsId:r.A.string.description('This is used as "id" in the DOM, you need this to be able to make this A11Y accessible.').isRequired,isActive:r.A.bool.description("Whether the menu item is active."),wrapperStyles:r.A.object.description("The styles to apply to the wrapper element, if any.")},$a=Fs,Va=`${me}Skeleton`,Ba=(e,t)=>{(0,W.D)(e,t,Va)},Ha=e=>{const t=(0,K.b)(e,Fa);Ba(t,Fs);const n=(0,L.u)(t),o=(0,B.d)(t);return i.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o}),[t,n,o])},Ua=["16px","auto"],an=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=Ha(e),{wrapperStyles:s,isActive:l,dsId:a}=t,{getOwnerProps:c}=(0,Z.j)(e);return(0,d.jsx)(Pe,{id:a,"data-type":"skeleton","data-testid":"ds-skeleton-menu-item",role:"presentation",style:s,isActive:l,getOwnerProps:c,...n,...o,children:(0,d.jsxs)(ke,{cols:Ua,minHeight:"16px",gutter:"xxs",alignItems:"center",children:[(0,d.jsx)(Rt,{variant:"rectangular",width:"20px"}),(0,d.jsx)(Rt,{variant:"rectangular",width:"100%"})]})})};an.displayName="DSMenuItemSkeleton";const za=(0,U.A)(an);za.propTypes=$a;const Ft=e=>{const t=(0,i.useRef)(e);return(0,i.useEffect)(()=>{t.current=e},[e]),t},Ga=e=>{const{props:{options:t,selectedOptions:n,onOptionClick:o,openedSubmenus:s,onSubmenuToggle:l,onMouseEnter:a,onMouseLeave:c,onMouseDown:u},listboxReference:p,inputReference:m}=(0,i.useContext)(ct),h=Ft(e),f=Ft(t),g=Ft(s),S=Ft(l),y=Ft(o),b=Ft(n),x=(0,i.useCallback)(w=>{if(w.stopPropagation(),w.preventDefault(),h?.current?.type==="singleWithSubmenu"){const{applyAriaDisabled:M}=h.current;if(M)return}const C={...b.current};C[h.current.dsId]=!b.current[h.current.dsId],!h?.current?.disabled&&(y?.current?.(C,h.current,w),w.type==="click"&&h?.current?.onClick?.(w))},[y,h,b]),v=(0,i.useCallback)(w=>{S?.current?.(yo(f.current,{...g?.current||{},[h.current.dsId]:!0},h.current),h.current,w)},[S,g,h,f]),I=(0,i.useCallback)(w=>{S?.current?.(yo(f.current,{...g?.current||{},[h.current.dsId]:!1},h.current),h.current,w),m.current?m.current.focus():p.current?.focus()},[m,p,S,g,h,f]),O=(0,i.useCallback)(w=>{w.code==="ArrowLeft"&&(I(w),w.preventDefault())},[I]);return(0,i.useMemo)(()=>({onClick:x,onSubmenuOpen:v,onSubmenuClose:I,onDropdownKeyDown:O,onMouseEnter:a,onMouseLeave:c,onMouseDown:u}),[x,v,I,O,a,c,u])},Ka=["action","single","checkbox","submenu","separator","section","singleWithSubmenu","skeleton"],Ya=e=>{const{type:t}=e;switch(t){case"action":return(0,d.jsx)(xo,{...e});case"single":return(0,d.jsx)(sn,{...e});case"checkbox":return(0,d.jsx)(rn,{...e});case"submenu":return(0,d.jsx)(So,{...e});case"separator":return(0,d.jsx)(ln,{...e});case"section":return(0,d.jsx)(Io,{...e});case"singleWithSubmenu":return(0,d.jsx)(Ao,{...e});case"skeleton":return(0,d.jsx)(an,{...e});default:const n=t;throw new Error(`Provided option type (${t}) is not valid. Please provide one of: ${Ka.join(", ")}`)}},Xa=({option:e,style:t,innerRef:n,optionsShouldHavePadding:o})=>{const{props:{selectedOptions:s,onOptionClick:l,openedSubmenus:a,onSubmenuToggle:c,onClickOutside:u},activeDescendant:p,DSDropdownMenuV2:m}=(0,i.useContext)(ct),{onDropdownKeyDown:h,...f}=Ga(e),g=(0,i.useMemo)(()=>({...f,innerRef:n,isActive:p===e.dsId,isSelected:s?!!s[e.dsId]:!1,isSubmenuOpened:a?!!a[e.dsId]:!1,tabIndex:-1,optionsShouldHavePadding:o,wrapperStyles:t,Dropdown:m,dropdownProps:{...e,options:e.type==="submenu"||e.type==="singleWithSubmenu"?e.options:[],onClickOutside:u,onOptionClick:l,onSubmenuToggle:c,selectedOptions:s,openedSubmenus:a,onKeyDown:h}}),[f,n,p,e,s,a,o,t,m,u,l,c,h]);return(0,d.jsx)(Ya,{...e,...g})},qa=()=>(0,d.jsx)(J.Ay,{children:Array(5).fill(0).map((t,n)=>(0,d.jsx)(an,{dsId:`${n}-skeleton`},`prefilled-${n}-skeleton`))}),Za=()=>{const{listboxReference:e,inputReference:t}=(0,i.useContext)(ct);(0,i.useLayoutEffect)(()=>{requestAnimationFrame(()=>{t.current?t.current.focus():e.current&&e.current.focus()})},[t,e])},Ja=()=>{const{props:{options:e}}=(0,i.useContext)(ct);return{optionsShouldHavePadding:(0,i.useMemo)(()=>e.some(n=>["single","checkbox","singleWithSubmenu"].includes(n.type)),[e])}},Qa=()=>{const e=(0,i.useContext)(ct),{triggerReferenceElement:t,props:{isSkeleton:n,options:o,hasInput:s,inputValue:l,onInputChange:a,HeaderComp:c,minWidth:u,maxHeight:p},activeDescendant:m,listboxReference:h,inputReference:f,virtualListHelpers:{totalSize:g,virtualItems:S}}=e;Za();const{onKeyDown:y,onMouseEnter:b,onMouseLeave:x}=$l(),{optionsShouldHavePadding:v}=Ja(),I=(0,i.useMemo)(()=>u!==void 0?u:Math.max(t?.offsetWidth??0,162),[t?.offsetWidth,u]);return(0,i.useMemo)(()=>S.length===0?(0,d.jsx)(Vl,{minWidth:I,maxHeight:p||400}):(0,d.jsx)(Rl,{minWidth:I,maxHeight:p||400,innerRef:h,tabIndex:0,"data-testid":on.MENU_WRAPPER,onKeyDown:y,onMouseEnter:b,onMouseLeave:x,hasHeader:!!c,children:n?(0,d.jsx)(qa,{}):(0,d.jsxs)(d.Fragment,{children:[c&&(0,d.jsx)(Wl,{alignItems:"center",children:(0,d.jsx)(c,{ctx:e})}),s&&(0,d.jsx)(Ll,{hasHeader:!!c,children:(0,d.jsx)(Fl.B,{value:l,onChange:a,innerRef:f})},"dropdown-listbox-input-wrapper"),(0,d.jsx)(kl,{"aria-activedescendant":m,"data-testid":on.LISTBOX,role:"listbox","aria-label":"List of options",style:{height:g||16},children:S.map(O=>(0,d.jsx)(Xa,{option:o[O.index],style:{position:"absolute",top:O.start,left:0,width:"100%"},innerRef:O.measureRef,optionsShouldHavePadding:v},`dropdown-listbox-option-${o[O.index].dsId}`))})]})}),[c,m,e,s,f,l,n,h,I,a,y,b,x,o,v,g,p,S])};var $s=T("./node_modules/.pnpm/@elliemae+ds-legacy-classnames@1.0.16_styled-components@5.3.11/node_modules/@elliemae/ds-legacy-classnames/dist/esm/classNameManager.js");const Vs=({componentName:e,version:t})=>{(0,i.useEffect)(()=>{console.warn(`Warning: ${e}:: this component will be deprecated in version: ${t}.`)},[e,t])};var le=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0_styled-components@5.3.11/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),Bs=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0_styled-components@5.3.11/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),Hs=T("./node_modules/.pnpm/@elliemae+ds-legacy-classnames@1.0.16_styled-components@5.3.11/node_modules/@elliemae/ds-legacy-classnames/dist/esm/aggregatedClasses.js"),vo=T("./node_modules/.pnpm/@elliemae+ds-legacy-popper@1.0.16_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-legacy-popper/dist/esm/positions.js"),Oo=T("./node_modules/.pnpm/@elliemae+ds-legacy-popper@1.0.16_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-legacy-popper/dist/esm/interaction.js"),ed=T("./node_modules/.pnpm/@elliemae+ds-legacy-popper@1.0.16_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-legacy-popper/dist/esm/DSPopper.js"),$n=T("./node_modules/.pnpm/@elliemae+ds-legacy-shared@1.0.16_@elliemae+pui-theme@2.13.0_styled-components@5.3.11/node_modules/@elliemae/ds-legacy-shared/dist/esm/constants.js");const wo={TOOLTIP:"tooltip",TOOLBAR:"toolbar"},td=(e,t,n=[])=>{if(!e)return null;const o=typeof e!="function"&&e.props?Array.isArray(e.props.children)?e.props.children:[e.props.children]:null;return typeof e=="function"?(0,d.jsx)(e,{...t,children:n}):i.cloneElement(e,{...e.props,...t},o?[...o,...n]:[...n])},To="tooltip",nd=(0,Hs.A)("div")(To,null,{propsToRemoveFromFinalElement:["isHovered","isDragged"]}),od=(0,Hs.A)("span")(To,"text",{propsToRemoveFromFinalElement:["isHovered","isDragged"]}),Eo=({containerProps:e={},innerRef:t,placement:n=vo.y.TOP,title:o="",delayClose:s=$n.$Z,delayOpen:l=$n.xp,interactionType:a=Oo.N.HOVER,triggerComponent:c,className:u="",isOpen:p=void 0,onOpen:m=()=>null,tooltipType:h=wo.TOOLTIP,showArrow:f=!0,zIndex:g,...S})=>{Vs({componentName:"ds-tooltip",version:"TBD Date: 2023 Q3"});const{cssClassName:y}=(0,$s.Ay)(To);let b=o;return typeof o=="string"&&(b=(0,d.jsx)(od,{children:o})),(0,d.jsx)(ed.Cj,{blockName:y,contentComponent:(0,d.jsx)(nd,{...e,...S,className:`tooltip-container--${h} ${u}`,innerRef:t,children:b}),delayClose:s,delayOpen:l,interactionType:a,isOpen:p,onOpen:m,placement:n,showArrow:h===wo.TOOLTIP?f:!1,triggerComponent:td(c,{}),zIndex:g,wrapExtraComponent:void 0,children:void 0,renderReference:void 0,referenceNode:void 0})},sd={containerProps:le.A.object.description("Set of Properties attached to the main container"),placement:le.A.oneOf(vo.X).description("Tooltip position").defaultValue(vo.y.TOP),title:le.A.oneOfType([le.A.string,le.A.element]).description("Tooltip content").isRequired,delayClose:le.A.string.description("Delay to close the tooltip").defaultValue($n.$Z),delayOpen:le.A.string.description("Delay to open the tooltip ").defaultValue($n.xp),interactionType:le.A.oneOf(Oo.y).description("A type indicating how to open/close the tooltip").defaultValue(Oo.N.HOVER),triggerComponent:le.A.element.description(`The component that will open/close the tooltip.
601
+ Cannot be used with disabled elements.
602
+ https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled`).isRequired,isOpen:le.A.bool.description("Whether the tooltip is visible or not").defaultValue(void 0),onOpen:le.A.func.description("Handler when the tooltip opens"),springAnimationComponent:le.A.element.description("Spring animation component"),showArrow:le.A.bool.description("Whether to show an arrow or not").defaultValue(!0),className:le.A.string.description("css class"),tooltipType:le.A.oneOf(["tooltip","toolbar"]).description("Type of tooltip").defaultValue(wo.TOOLTIP),zIndex:le.A.number.description("z-index value assigned to the tooltip").defaultValue(void 0),innerRef:le.A.oneOfType([le.A.func,le.A.object]).description("Ref to the tooltip container element")};Eo.displayName="DSTooltip";const rd=(0,Bs.A)(Eo);rd.propTypes=sd;var ku=null;const{classNameBlock:id,classNameElement:dn}=(0,$s.Ay)("circular-progress-indicator"),Vn=({size:e,showLabel:t,showTooltip:n,waiting:o,loading:s})=>{Vs({componentName:"ds-circular-progress-indicator",version:"TBD Date: 2023 Q3"});const l="Waiting...",a="Loading...",c=o&&!s?l:a;let u,p,m,h,f="0.7",g="4.8",S="45 170",y="127.5";switch(e.toUpperCase()){case"XS":u=8,p=12,m=10,h=3,f="1",S="46 174",y="133";break;case"S":u=16,p=12,m=8,h=3,f="1",S="46 174",y="133";break;case"M":u=24,p=12,m=7,h=3,f="1",g="5.5",S="46 174",y="133";break;case"L":u=32,p=13,m=6,h=3,g="5";break;case"XL":u=48,p=14,m=5,h=1;break;case"XXL":u=56,p=16,m=4,h=1;break;case"XXXL":u=64,p=16,m=5,h=2;break;default:break}const b=(0,d.jsx)("p",{"data-testid":"circular-indicator-label",className:dn("label"),style:{fontSize:`${p}px`},children:c}),x=w=>u<17||n?(0,d.jsx)(Eo,{containerProps:{id:"ds-circular-progress-indicator","data-testid":"circular-indicator-title"},interactionType:"hover",title:c,triggerComponent:w,placement:"bottom"}):w,v=(0,d.jsx)("circle",{className:dn("track"),cx:"50%",cy:"50%",fill:"none",r:"28",strokeWidth:`${h}px`}),I=(0,d.jsx)("circle",{className:dn("arc-gray"),stroke:"#E0E3E8",strokeDasharray:`${S}`,strokeDashoffset:`${y}`,cx:"50%",cy:"50%",fill:"none",r:"28",strokeWidth:`${h}px`}),O=(0,d.jsxs)("svg",{height:`${u}px`,version:"1.1",viewBox:"0 0 66 66",width:`${u}px`,"data-testid":"circular-indicator","aria-label":o&&!s?l:a,children:[(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"grad1",x1:"0%",x2:"100%",y1:"100%",y2:"0%",children:[(0,d.jsx)("stop",{offset:"0%",style:{stopColor:"#E0E3E8",stopOpacity:1}}),(0,d.jsx)("stop",{offset:"89%",style:{stopColor:"#5594e2",stopOpacity:1}}),(0,d.jsx)("stop",{offset:"100%",style:{stopColor:"#5594e2",stopOpacity:1}})]}),(0,d.jsxs)("linearGradient",{id:"grad2",x1:"0%",x2:"100%",y1:"100%",y2:"0%",children:[(0,d.jsx)("stop",{offset:"0%",style:{stopColor:"#5594e2",stopOpacity:1}}),(0,d.jsx)("stop",{offset:"11%",style:{stopColor:"#5594e2",stopOpacity:1}}),(0,d.jsx)("stop",{offset:"100%",style:{stopColor:"#E0E3E8",stopOpacity:1}})]}),(0,d.jsx)("marker",{id:"inverseL",viewBox:"0 0 5 10",refX:"0.5",refY:`${g}`,markerUnits:"strokeWidth",markerWidth:"0.5",markerHeight:`${f}`,orient:"auto",children:(0,d.jsx)("path",{d:"M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z",fill:"#FFF"})}),(0,d.jsx)("marker",{id:"inverseR",viewBox:"0 0 5 10",refX:"0",refY:"5",markerUnits:"strokeWidth",markerWidth:"0.7",markerHeight:`${f}`,children:(0,d.jsx)("path",{d:"M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z",fill:"#FFF"})})]}),v,!o&&(0,d.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,d.jsx)("path",{className:dn("arc-blue"),d:"M30,5 C17.536025,6 6,17.536027 5,31",stroke:"#5594e2",strokeWidth:`${m-.5}px`,strokeLinecap:"round","data-testid":"circular-indicator-blue-arc"}),(0,d.jsx)("path",{className:dn("arc-white"),d:"M33,5 C17.536027,5 5,17.536027 5,33",stroke:"#FFF",strokeWidth:`${m+2}px`,markerStart:"url(#inverseR)",markerEnd:"url(#inverseL)"}),I]})]});return(0,d.jsxs)("div",{className:id("wrapper"),role:"status","aria-hidden":o||s?"false":"true",children:[x(O),t&&b]})};Vn.defaultProps={size:"m",showLabel:!1,showTooltip:!1,waiting:!1,loading:!1};const ld={size:le.A.oneOf(["xs","s","m","l","xl","xxl","xxxl"]).description("Defines the size of the indicator").defaultValue("m"),showLabel:le.A.bool.description("Wheter the indicator displays its state on a label or not").defaultValue(!1),showTooltip:le.A.bool.description("Wheter the indicator displays its state on a tooltip or not").defaultValue(!1),waiting:le.A.bool.description("Defines the state of the indicator as Waiting and only displays the gray track").defaultValue(!1),loading:le.A.bool.description("Defines the state of the indicator as Loading and displays a blue spinner animation").defaultValue(!1)};Vn.displayName="CircularProgressIndicator";const ad=(0,Bs.A)(Vn);ad.propTypes=ld;var dd=Vn;const cd=()=>{const{props:{onClickOutside:e},triggerReferenceElement:t}=(0,i.useContext)(ct),n=(0,i.useRef)(null);(0,i.useLayoutEffect)(()=>{n.current?.focus()},[n]);const o=(0,i.useCallback)(s=>{(s.code==="Escape"||s.code==="ArrowLeft")&&e(s)},[e]);return(0,d.jsx)(Nl,{minWidth:t?.offsetWidth??0,justifyContent:"center",alignItems:"center","data-testid":on.LOADING,tabIndex:0,role:"status",innerRef:n,"aria-busy":"true",onKeyDown:o,children:(0,d.jsx)(dd,{size:"l"})})},ud=()=>{const{props:e,triggerReferenceElement:t,setTriggerReferenceElement:n}=(0,i.useContext)(ct),{children:o,isOpened:s,onClickOutside:l,startPlacementPreference:a,placementOrderPreference:c,customOffset:u,wrapperStyles:p,isLoading:m,zIndex:h,as:f}=e,{"data-popover-label":g,...S}=(0,L.u)(e),{minWidth:y,minHeight:b,...x}=(0,B.d)(e),v=I=>{[...document.body.querySelectorAll(`[data-testid="${on.MENU_WRAPPER}"]`)].every(w=>!w.contains(I.target))&&l(I)};return(0,d.jsxs)(Dl,{"data-testid":`${on.TRIGGER_WRAPPER}`,innerRef:n,"aria-haspopup":"listbox",...p,...S,...x,as:f,children:[o,t&&(0,d.jsx)(Cl.B2,{referenceElement:t,showPopover:s,withoutArrow:!0,withoutAnimation:!0,customOffset:u,onClickOutside:v,startPlacementPreference:a,placementOrderPreference:c,zIndex:h,"aria-label":g||"dropdown-menu popover",children:m?(0,d.jsx)(cd,{}):(0,d.jsx)(Qa,{})})]})},Bn=e=>{const t=Pl(e,Bn);return(0,d.jsx)(ct.Provider,{value:t,children:(0,d.jsx)(ud,{})})};Bn.displayName="DSDropdownMenuV2";const pd=(0,U.A)(Bn).description("Dropdown Menu");pd.propTypes=ws;const md={only:"ds-pill-button-only",left:"ds-pill-button-left",right:"ds-pill-button-right"},cn=e=>{const{children:t,...n}=e,o=(0,K.b)(n,bo);(0,W.D)(o,vs,xs);const{type:s,onClick:l,applyAriaDisabled:a,...c}=o,u=(0,i.useCallback)(p=>{a||l&&l(p)},[l,a]);return(0,d.jsx)(ll,{...c,buttonType:"raw",className:`${md[s]} ${c.className??""}`,type:"button",onClick:u,"aria-disabled":a,children:t})};cn.displayName=xs;const hd=(0,U.A)(cn).description("Pill button");hd.propTypes=vs;const vt=i.memo(({labelTruncated:e,label:t})=>e?(0,d.jsx)(Zn.n,{value:t}):t),fd=i.memo(({label:e,size:t,labelTruncated:n,dropdownProps:o,innerRef:s,ariaLabel:l,onDropdownClick:a})=>{const c=(0,i.useRef)(null),u=(0,i.useMemo)(()=>`ds-pill-${(0,oe.L)()}`,[]);return(0,d.jsxs)(gs,{pillSize:t,id:u,className:"ds-pill-wrapper ds-pill-wrapper-dropdown","data-testid":"ds-pill-wrapper",cols:["auto","minmax(24px, auto)"],gutter:"2px",alignItems:"center",justifyItems:"center",children:[(0,d.jsx)(vt,{labelTruncated:n,label:e}),(0,d.jsx)(Bn,{placementOrderPreference:["bottom-start","bottom","bottom-end","right-end","top-start","top","top-end"],...o,onClickOutside:p=>{"code"in p&&p.code==="Escape"&&c.current?.focus(),o.onClickOutside&&o.onClickOutside(p)},wrapperStyles:{w:"100%",h:"100%"},children:(0,d.jsx)(cn,{className:"ds-pill-focus-point","data-testid":"ds-pill-dropdown-chevron",innerRef:(0,No.Px)(c,s),"aria-label":l||e,type:"right",onClick:a,children:(0,d.jsx)(Jn.A,{color:["brand-primary","800"],width:20,height:20})})})]})}),bd=e=>e==="m"?{small:["1.5rem"],medium:["1.846rem"]}:{small:["1.125rem"],medium:["1.3846rem"]},gd=e=>e==="m"?{small:["auto","minmax(1.5rem, auto)"],medium:["auto","minmax(1.846rem, auto)"]}:{small:["auto","minmax(1.125rem, auto)"],medium:["auto","minmax(1.3846rem, auto)"]},yd=i.memo(({label:e,size:t,labelTruncated:n,innerRef:o,ariaLabel:s,menuButtonProps:l})=>{const a=(0,i.useMemo)(()=>`ds-pill-${(0,oe.L)()}`,[]);if(!l)throw console.log("menuButtonProps",l),new Error("menuButtonProps was not provided");if(Object.keys(l).length===0)throw console.log("menuButtonProps",l),new Error("menuButtonProps is empty");const{width:c=bo.width,height:u=bo.height}=l,p=(0,i.useMemo)(()=>bd(t),[t]),m=(0,i.useMemo)(()=>gd(t),[t]),h=(0,i.useMemo)(()=>({width:`${c}`,height:`${u}`}),[u,c]),f=s||e;return(0,d.jsxs)(gs,{pillSize:t,id:a,className:"ds-pill-wrapper ds-pill-wrapper-dropdown","data-testid":"ds-pill-wrapper",cols:m,rows:p,gutter:"2px",alignItems:"center",justifyItems:"center",children:[(0,d.jsx)(vt,{labelTruncated:n,label:e}),(0,d.jsx)(al,{innerRef:o,"aria-label":f,dsMenubuttonRoot:h,...l,"data-testid":"ds-pill-menu-button-chevron",buttonType:"raw",className:"ds-pill-button-right ds-pill-focus-point",type:"button",width:`${c}`,height:`${u}`,children:(0,d.jsx)(Jn.A,{color:["brand-primary","800"]})})]})});var xd=T("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/SvgIcon.js"),Us=e=>(0,d.jsx)(xd.Ah,{...e,viewBox:"0 0 20 20",children:(0,d.jsx)("path",{d:"M13.071 13.289l-2.828-2.828 2.828-2.828-.707-.707-2.828 2.828-2.828-2.828-.707.707 2.828 2.828-2.828 2.828.707.707 2.828-2.828 2.828 2.828z"})});const Sd=i.memo(({label:e,size:t,inputPlaceholder:n,inputWidth:o,inputRender:s,onInputChange:l,onInputClear:a,innerRef:c,hasError:u,inputId:p})=>{const m=(0,i.useRef)(null),h=(0,i.useMemo)(()=>s,[s]),f=(0,i.useMemo)(()=>p??`ds-pill-${(0,oe.L)()}`,[p]),g=(0,i.useCallback)(b=>{("code"in b&&["Enter","Space"].includes(b.code)||!("code"in b))&&(b.preventDefault(),a?.(b),m.current?.focus())},[a]),[S,y]=(0,i.useState)(!1);return(0,d.jsxs)(nl,{pillSize:t,className:"ds-pill-wrapper","data-testid":"ds-pill-wrapper",cols:e===""?["auto"]:["auto","24px"],inputWidth:o,value:e??"",inputHasFocus:S,hasError:u,children:[(0,d.jsx)(h,{id:f,className:"ds-pill-focus-point","data-testid":"ds-pill-input",innerRef:b=>{m.current=b},value:e,onChange:l,placeholder:n,onFocus:()=>y(!0),onBlur:()=>y(!1),disableTooltip:!1}),e!==""&&(0,d.jsx)(cn,{id:f,"data-testid":"ds-pill-clear-icon",innerRef:c,onClick:g,"aria-label":"Clear input",type:"right",children:(0,d.jsx)(Us,{size:"s",color:["brand-primary","700"]})})]})}),Id=i.memo(({label:e,size:t,labelTruncated:n,iconLeft:o,IconLeft:s,ariaLabel:l})=>(0,d.jsxs)(Qi,{pillSize:t,alignItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-label","data-testid":"ds-pill-wrapper","data-label":l||e,cols:[(o||s)&&"min-content","auto"].filter(a=>a),gutter:"xxxs",hasIcon:(o||s)!==null,role:"group","aria-label":e,children:[s?(0,d.jsx)(s,{label:e}):o,(0,d.jsx)(vt,{labelTruncated:n,label:e})]})),Ad=i.memo(({label:e,size:t,labelTruncated:n,iconLeft:o,IconLeft:s,ariaLabel:l,applyAriaDisabled:a,readOnly:c,trailingComma:u})=>(0,d.jsxs)(el,{pillSize:t,alignItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-label","data-testid":"ds-pill-wrapper","data-label":l||e,cols:[(o||s)&&"min-content","auto"].filter(p=>p),gutter:"xxxs",hasIcon:(o||s)!==null,role:"group","aria-label":e,applyAriaDisabled:a,readOnly:c,children:[s?(0,d.jsx)(s,{label:e}):o,(0,d.jsx)(vt,{labelTruncated:n,label:`${e}${u?",":""}`})]})),vd=i.memo(({label:e,size:t,labelTruncated:n,iconLeft:o,iconRight:s,ariaLabel:l,IconLeft:a,IconRight:c})=>{const u=o!==null||s!==null&&e==="",p=s!==null||o!==null&&e==="",m=a!==null||c!==null&&e==="",h=c!==null||a!==null&&e==="";return(0,d.jsxs)(ol,{pillSize:t,alignItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-readonly","data-testid":"ds-pill-wrapper","data-label":l||e,cols:[(o||a)&&"min-content",e&&"auto",(s||c)&&"min-content"].filter(f=>f),gutter:"xxxs",hasIconRight:p||h,hasIconLeft:u||m,children:[a?(0,d.jsx)(a,{label:e}):o,e?(0,d.jsx)(vt,{labelTruncated:n,label:e}):null,c?(0,d.jsx)(c,{label:e}):s]})}),Od=i.memo(({label:e,size:t,disabled:n,labelTruncated:o,onRemove:s,innerRef:l,ariaLabel:a,tabIndex:c,applyAriaDisabled:u})=>{const{onKeyboardRemove:p,onKeyboardNavigation:m}=(0,i.useContext)(Os),h=(0,i.useMemo)(()=>`ds-pill-${(0,oe.L)()}`,[]),f=(0,i.useCallback)(y=>{if(["Enter","Space"].includes(y.code)){if(u)return;y.preventDefault(),p&&p(h)}y.code==="ArrowLeft"&&(y.preventDefault(),m&&m(h,-1,y)),y.code==="ArrowRight"&&(y.preventDefault(),m&&m(h,1,y))},[p,m,h,u]),g=(0,i.useCallback)(y=>{u||s&&s(y)},[s,u]),S=(0,i.useMemo)(()=>n||u?["auto"]:["auto","minmax(24px, auto)"],[n,u]);return(0,d.jsxs)(sl,{pillSize:t,cols:S,disabled:n,applyAriaDisabled:u,gutter:"2px",alignItems:"center",justifyItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-removable","data-testid":"ds-pill-wrapper","data-label":a||e,children:[(0,d.jsx)(vt,{labelTruncated:o,label:e}),!n&&!u?(0,d.jsx)(cn,{className:"ds-pill-focus-point",id:h,"data-testid":"ds-pill-close-icon",innerRef:l,onClick:g,onKeyDown:f,"aria-label":`Remove ${e}`,type:"right",tabIndex:c,applyAriaDisabled:u,children:(0,d.jsx)(Us,{width:t==="s"?18:22.65,height:t==="s"?18:22.65,color:["brand-primary","700"]})}):null]})}),zs=18,Gs=.25,un=zs/13,wd=Gs/13,pn=zs/16,Td=Gs/16,Hn=un-wd,Un=pn-Td,Ks=e=>e.startsWith("top")||e.startsWith("bottom"),Ys=e=>e.startsWith("left")||e.startsWith("right"),Ed=(0,E.I)("div",{name:Re,slot:we.ARROW})`
603
+ line-height: 0;
604
+ position: absolute;
605
+ width: ${pn}rem;
606
+ height: ${pn}rem;
607
+ pointer-events: none;
608
+ background-color: transparent;
609
+ & .stroke {
610
+ fill: rgb(105, 116, 137);
611
+ fill-opacity: 0.4;
612
+ }
613
+ & .fill {
614
+ fill: rgb(255, 255, 255);
615
+ }
616
+
617
+ &[data-placement^='top'] {
618
+ svg {
619
+ transform: rotateZ(180deg);
620
+ }
621
+ bottom: -${Un}rem;
622
+ left: ${e=>e["data-placement"].endsWith("start")?"25%":e["data-placement"].endsWith("end")?"75%":""};
623
+ }
624
+ &[data-placement^='right'] {
625
+ svg {
626
+ transform: rotateZ(-90deg);
627
+ }
628
+ left: -${Un}rem;
629
+ }
630
+ &[data-placement^='bottom'] {
631
+ top: -${Un}rem;
632
+ left: ${e=>e["data-placement"].endsWith("start")?"25%":e["data-placement"].endsWith("end")?"75%":""};
633
+ }
634
+ &[data-placement^='left'] {
635
+ svg {
636
+ transform: rotateZ(90deg);
637
+ }
638
+ right: -${Un}rem;
639
+ }
640
+ margin-left: ${e=>Ks(e["data-placement"])?`-${pn/2}rem`:"0"};
641
+ margin-top: ${e=>Ys(e["data-placement"])?`-${pn/2}rem`:"0"};
642
+
643
+ @media (min-width: ${({theme:e})=>e.breakpoints.small}) {
644
+ width: ${un}rem;
645
+ height: ${un}rem;
646
+
647
+ &[data-placement^='top'] {
648
+ bottom: -${Hn}rem;
649
+ }
650
+
651
+ &[data-placement^='bottom'] {
652
+ top: -${Hn}rem;
653
+ }
654
+
655
+ &[data-placement^='left'] {
656
+ right: -${Hn}rem;
657
+ }
658
+
659
+ &[data-placement^='right'] {
660
+ left: -${Hn}rem;
661
+ }
662
+
663
+ margin-left: ${e=>Ks(e["data-placement"])?`-${un/2}rem`:"0"};
664
+
665
+ margin-top: ${e=>Ys(e["data-placement"])?`-${un/2}rem`:"0"};
666
+ }
667
+ `,Md=(0,E.I)("path",{name:Re,slot:we.ARROW_SHADOW})``,Pd=(0,E.I)("path",{name:Re,slot:we.ARROW_FILL})``,Cd=({placement:e,style:t,arrowElementRef:n,...o})=>{const s=(0,Z.j)(o),l=(0,L.u)(o),a=(0,B.d)(o);return(0,d.jsx)(Ed,{"data-placement":e,style:t,innerRef:n,"data-testid":"ds-tooltip-arrow","aria-hidden":"true",...s,...l,...a,children:(0,d.jsxs)("svg",{viewBox:"0 0 30 30",children:[(0,d.jsx)(Md,{...s,className:"stroke",d:`M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26
668
+ C26.7,29,24.6,28.1,23.7,27.1z`}),(0,d.jsx)(Pd,{...s,className:"fill",d:"M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"})]})},"popper-arrow")},_d=["top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Dd=["left","right","center","justify","initial","inherit"],Xs="DSTooltipV3",ju={TOP:"top",BOTTOM:"bottom",RIGHT:"right",LEFT:"left",TOP_START:"top-start",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",RIGHT_START:"right-start",RIGHT_END:"right-end",LEFT_START:"left-start",LEFT_END:"left-end"},qs={text:r.A.string.description("Tooltip text to be displayed on hover/focus. If both `text` and `Text` are provided, only `Text` will take precedence.").isRequiredIf(e=>!e.Text),textAlign:r.A.oneOf(Dd).description("Tooltip text alignment").defaultValue("left"),applyTooltipOverflowWrap:r.A.bool.description("when a tooltip is present, the tooltip text may be too long to fit in the pill. If true, the tooltip will wrap to the next line using overflow-wrap").defaultValue(!1),wrapWords:r.A.bool.description("Break words into a new line. Useful when words exceed tooltip max-lenght.").defaultValue(!1),children:r.A.node.description("Element to tie the tooltip to, must be a single node").isRequired,withoutPortal:r.A.bool.description("Whether or not the tooltip content should appear in a DOM portal or not").defaultValue(!0),withoutArrow:r.A.bool.description("Whether or not the tooltip should use the arrow").defaultValue(!1),withoutAnimation:r.A.bool.description("Whether or not the popper context menu should be animated").defaultValue(!1),animationDuration:r.A.number.description("Popper context menus Animation duration in ms").defaultValue(100),portalDOMContainer:r.A.oneOfType([r.A.node,r.A.oneOf([null])]).description("When using portal, the container in which to append the DOM content, defaults to document body").defaultValue(void 0),startPlacementPreference:r.A.oneOf(_d).description("start placement preferences, as per popperjs placement option").defaultValue("'top'"),customOffset:r.A.arrayOf(r.A.number).description("placement offset array").defaultValue([0,14]),id:r.A.string.description("Optional id appended to data-testid").defaultValue(""),onOpen:r.A.func.description("Optional callback to be invoked when the tooltip opens").defaultValue("() => {}"),onClose:r.A.func.description("Optional callback to be invoked when the tooltip closes").defaultValue("() => {}"),showPopover:r.A.bool.description("Whether or not the tooltip should be always shown"),Text:r.A.func.description("Custom component to be displayed in the tooltip, will receive textProps as props. If both `text` and `Text` are provided, only `Text` will take precedence.").isRequiredIf(e=>!e.text),textProps:r.A.object.description("Props to be passed to the custom Text component, if provided, used mainly to avoiding inline components definition to improve performance")},Rd=qs,Mo={TRIGGER_WRAPPER:"ds-tooltip-v3-trigger-wrapper",TOOLTIP_TEXT_WRAPPER:"ds-tooltip-v3-tooltip-text-wrapper",OPINIONATED_TEXT_WRAPPER:"ds-tooltip-v3-opinionated-text-wrapper"},kd=E.I.div`
669
+ text-align: center;
670
+ min-width: ${({theme:e})=>e.space.l};
671
+ max-width: 250px;
672
+ min-height: 30px;
673
+ display: grid;
674
+ align-items: center;
675
+ padding: ${({theme:e})=>`${e.space.xxxs} ${e.space.xs}`};
676
+ position: relative;
677
+ background-color: white;
678
+ border-radius: 2px;
679
+ font-size: 13px;
680
+ color: ${({theme:e})=>e.colors.neutral[600]};
681
+ `,Nd=E.I.div`
682
+ display: inline-block;
683
+ text-align: ${({textAlign:e})=>e};
684
+
685
+ ${({wrapWords:e,$applyTooltipOverflowWrap:t})=>t?`overflow-wrap: break-word;
686
+ white-space: pre-wrap;
687
+ min-width: 0px;`:e?`white-space: pre-wrap;
688
+ word-break: break-all;
689
+ overflow-wrap: break-word;`:`white-space: normal;
690
+ overflow-wrap: break-word;`};
691
+ `,jd=E.I.div`
692
+ position: absolute;
693
+ top: -15px;
694
+ right: -15px;
695
+ width: calc(100% + 30px);
696
+ height: calc(100% + 30px);
697
+ z-index: -1;
698
+ `,Ld=E.I.div`
699
+ display: inline-flex;
700
+ width: 100%;
701
+ `,Zs=()=>{},Wd={onOpen:Zs,onClose:Zs,id:"",textAlign:"left",wrapWords:!1,startPlacementPreference:"top",applyTooltipOverflowWrap:!1,customOffset:[0,12]},Fd=(e,t)=>{(0,W.D)(e,t,Xs)},$d=e=>{const t=(0,K.b)(e,Wd);Fd(t,qs);const n=(0,B.d)(t),o=i.useMemo(()=>`ds-tooltip-v3-${(0,oe.L)(5)}`,[]);return i.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:o}),[t,n,o])},Po=e=>{const{propsWithDefault:t}=$d(e),{text:n,startPlacementPreference:o,children:s,onOpen:l,onClose:a,id:c,textAlign:u,wrapWords:p,withoutArrow:m,customOffset:h,animationDuration:f,withoutAnimation:g,withoutPortal:S,portalDOMContainer:y,applyTooltipOverflowWrap:b,showPopover:x,Text:v,textProps:I}=t,{handlers:O,arrowStyles:w,floatingStyles:C,isOpen:M,refs:k,context:D}=Q({placement:o,customOffset:h,onOpen:l,onClose:a,withoutPortal:S,withoutAnimation:g,portalDOMContainer:y,animationDuration:f,externallyControlledIsOpen:x}),z=i.useMemo(()=>x!==void 0?x:M,[x,M]);return(0,d.jsxs)(Ld,{...O,innerRef:k.setReference,"data-testid":`${Mo.TRIGGER_WRAPPER}${c!==""?`_${c}`:""}`,children:[(0,d.jsxs)(Zt,{innerRef:k.setFloating,isOpen:z,floatingStyles:C,context:D,children:[(0,d.jsxs)(kd,{"data-testid":Mo.TOOLTIP_TEXT_WRAPPER,children:[v?(0,d.jsx)(v,{...I}):(0,d.jsx)(Nd,{"data-testid":Mo.OPINIONATED_TEXT_WRAPPER,textAlign:u,wrapWords:p,$applyTooltipOverflowWrap:b,children:n}),(0,d.jsx)(jd,{})]}),m?null:(0,d.jsx)(Cd,{...w})]}),s]})};Po.displayName=Xs;const Vd=(0,U.A)(Po);Vd.propTypes=Rd;var Lu=null;const Bd=i.memo(({label:e,size:t,labelTruncated:n,disabled:o,tooltipValue:s,iconLeft:l,ariaLabel:a,applyAriaDisabled:c,readOnly:u,applyTooltipOverflowWrap:p,trailingComma:m})=>(0,d.jsxs)(tl,{disabled:o,pillSize:t,alignItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-value","data-testid":"ds-pill-wrapper",cols:[l&&"min-content","auto"].filter(h=>h),gutter:"xxxs",hasIcon:l!==null,"data-label":a||e,applyAriaDisabled:c,readOnly:u,children:[l,s!==""?(0,d.jsx)(Po,{text:s??"",applyTooltipOverflowWrap:p,children:(0,d.jsx)(il,{className:"ds-pill-tooltip-value","aria-disabled":c,tabIndex:0,children:e})}):(0,d.jsx)(vt,{labelTruncated:n,label:`${e}${m?",":""}`})]})),Hd={dropdown:fd,menubutton:yd,input:Sd,label:Id,labelOnly:Ad,readonly:vd,removable:Od,value:Bd},zn=e=>{const t=(0,K.b)(e,cl);(0,W.D)(t,As,ys);const{type:n}=t,o=Hd[n];return(0,d.jsx)(o,{...t})};zn.displayName=ys;const Ud=(0,U.A)(zn).description("Pill");Ud.propTypes=As;const Co=e=>{const[t,n]=(0,i.useState)(e.current?.offsetWidth??0),[o,s]=(0,i.useState)(e.current?.offsetHeight??0),l=(0,i.useRef)();return(0,i.useEffect)(()=>{function a(){n(e.current?.offsetWidth??0),s(e.current?.offsetHeight??0)}l.current=new ResizeObserver(a);const c=e.current;return c&&l.current.observe(c),()=>{c&&l.current?.disconnect()}},[e]),(0,i.useMemo)(()=>({width:t,height:o}),[t,o])},zd=e=>e===0?0:8*(e.toString().length-1)+31,Gd=()=>{const{props:{selectedValues:e,isNonClearable:t,disabled:n,innerRef:o,applyAriaDisabled:s},selectedOptionsRef:l,controlsWrapperRef:a,pillGroupRef:c}=(0,i.useContext)(pe),u=e,p=Math.min(30,u.length),[m,h]=(0,i.useState)(p),{width:f}=Co(a),{width:g}=Co(o||null);return(0,i.useEffect)(()=>{p!==m&&h(p)},[p,f,g]),(0,i.useLayoutEffect)(()=>{if(l.current&&c.current){c.current&&(c.current.style.width="max-content");let S=-1,y=0;const b=l.current.offsetWidth;if([...c.current.querySelectorAll(n||s||t?".ds-pill-wrapper-value":".ds-pill-wrapper-removable, .ds-pill-wrapper-label")].map(I=>I?.offsetWidth).forEach((I,O)=>{y+=I,y+zd(p-O-1)<=b&&(S=O)}),!(p>0&&m!==p)){const I=S+1;I!==m&&h(I)}c.current&&(c.current.style.width="fit-content")}},[l,o,u,m,c,f,g,n,s,p,t]),m||1},Kd=e=>{const{pill:t,trailingComma:n}=e,{props:{onChange:o,isNonClearable:s,disabled:l,selectedValues:a,applyAriaDisabled:c,readOnly:u},internalRef:p}=(0,i.useContext)(Te),m=i.useMemo(()=>l||s?"value":c||u?"labelOnly":"removable",[l,s,c,u]);return(0,d.jsx)(zn,{size:"s",label:t.label,disabled:l,type:m,applyAriaDisabled:c||t.applyAriaDisabled,readOnly:u,trailingComma:n,tabIndex:-1,onRemove:h=>{u||(h.stopPropagation(),o(_e(t,a),t,h),p.current?.focus())}},t.value)},Yd=()=>{const{props:{selectedValues:e,disabled:t,applyAriaDisabled:n,readOnly:o},pillGroupRef:s}=(0,i.useContext)(Te),l=e,a=Gd();return(0,i.useMemo)(()=>(0,d.jsx)("div",{style:{width:l.length>0?"max-content":"0px"},"data-testid":Fe.SELECTED_VALUES,children:(0,d.jsxs)(go,{innerRef:s,children:[l.length>0&&l.slice(0,a).map((c,u)=>(0,d.jsx)(Kd,{pill:c,trailingComma:(t||n||o)&&u+1<a||l.length>0&&a!==l.length},c.dsId)),l.length>0&&a!==l.length&&(0,d.jsx)(zn,{size:"s",labelTruncated:!1,label:`+${l.length-a}`,type:"value",disabled:t,applyAriaDisabled:n,readOnly:o},"grouped")]})}),[s,l,a,t,n,o])},Xd=(0,ie.AH)`
702
+ border: 1px solid ${({theme:e})=>e.colors.neutral["080"]};
703
+ border-bottom: 1px solid ${({theme:e})=>e.colors.neutral[400]};
704
+ `,qd=(0,ie.AH)`
705
+ border: 1px solid ${({hasError:e,theme:t})=>e?t.colors.danger[900]:t.colors.neutral[400]};
706
+ ${({readOnly:e,applyAriaDisabled:t})=>e||t?Xd:""}
707
+ `,Zd=(0,ie.AH)`
708
+ background: ${({disabled:e,applyAriaDisabled:t,readOnly:n,theme:o})=>n||t?o.colors.neutral["050"]:e?o.colors.neutral["080"]:"#ffffff"};
709
+ `,Jd=(0,ie.AH)`
710
+ outline: 2px solid ${({theme:e})=>e.colors.brand[700]};
711
+ outline-offset: -2px;
712
+ `,Qd=(0,ie.AH)`
713
+ border: 1px solid ${({theme:e})=>e.colors.brand[600]};
714
+ `,ec=(0,E.I)(J.Ay,{name:st,slot:ut.INPUT_WRAPPER})`
715
+ ${Zd}
716
+ position: relative;
717
+ border-radius: 2px;
718
+ min-width: ${({minWidth:e,inline:t})=>t||!e?"":`${e}px`};
719
+ align-items: center;
720
+ align-content: center;
721
+ min-height: 28px;
722
+ padding: 3px 0px 3px 8px;
723
+ @media (max-width: ${is.th.breakpoint("small")}) {
724
+ padding: 1.25px 0px 1.25px 8px;
725
+ }
726
+ margin: ${({inline:e})=>e?"10px 16px":""};
727
+ ${qd}
728
+ &:hover {
729
+ ${({disabled:e})=>e?"":Qd}
730
+ }
731
+ &:focus-within {
732
+ ${Jd}
733
+ }
734
+ `,tc=E.I.div`
735
+ display: flex;
736
+ width: 100%;
737
+ align-items: center;
738
+ color: ${({disabled:e,readOnly:t,theme:n})=>e||t?n.colors.neutral[600]:n.colors.neutral[700]};
739
+ user-select: ${({disabled:e,applyAriaDisabled:t})=>e||t?"none":""};
740
+ `,nc=E.I.div`
741
+ font-size: 1rem;
742
+ margin-right: 3px;
743
+ display: flex;
744
+ `,oc=(0,E.I)(J.Ay)`
745
+ height: 100%;
746
+ .em-ds-button--text:focus::after {
747
+ border: none;
748
+ }
749
+ `,Wu=E.I.div``,sc=E.I.span`
750
+ height: 100%;
751
+ width: 1px;
752
+ background-color: ${({theme:e})=>e.colors.neutral[400]};
753
+ `,rc=()=>{const{internalRef:e,inputValue:t,hasFocus:n,setMenuState:o,selectedOptionsRef:s,props:{applyAriaDisabled:l,readOnly:a,isMenuOpenableWithReadOnly:c}}=(0,i.useContext)(Te),u=".ds-pill-wrapper-removable button";return{onKeyDownPills:(0,i.useCallback)(m=>{if(!(l||a&&!c)&&(m.key==="ArrowLeft"||m.key==="ArrowRight"||m.key==="ArrowUp"||m.key==="ArrowDown")&&t===""){if(m.key==="ArrowUp"||m.key==="ArrowDown"){e.current?.focus(),o(!0,"open",m);return}if(m.key==="ArrowLeft"){const h=s.current?.querySelectorAll(u);n&&h&&h[h.length-1]?.focus()}m.key==="ArrowRight"&&(m.preventDefault(),e.current?.focus())}},[t,e,o,s,n,l,a,c])}},ic=()=>{const{props:e,props:{inline:t,disabled:n,hasError:o,selectedValues:s,applyAriaDisabled:l,readOnly:a,isMenuOpenableWithReadOnly:c},selectedOptionsRef:u,setMenuState:p,setFocusOptionIdx:m,hasFocus:h,inputValue:f,listRef:g,focusOptionIdx:S,menuState:y,controlsWrapperRef:b,internalRef:x,shouldPreventContextMenuOpening:v}=(0,i.useContext)(Te),{getOwnerProps:I,getOwnerPropsArguments:O}=(0,Z.j)(e),w=(0,i.useCallback)(()=>{if(!n){if(l||v){x.current?.focus();return}if(h&&y&&!t){p(!1,"click"),m(""),x.current?.blur();return}x.current?.focus(),p(!0,"click")}},[n,g,h,y,t,p,S,a,l,c]),C=(0,i.useCallback)(z=>{l||(y||n||v?z.stopPropagation():(x.current?.focus(),p(!0,"pill-click")))},[l,y,n,x,p,v]),M=(0,i.useCallback)(z=>{(document.activeElement===x.current||t)&&z.preventDefault()},[x,t]),{onKeyDownPills:k}=rc(),D=(0,i.useMemo)(()=>t?["minmax(0px, auto)"]:["minmax(0px,max-content)","minmax(20px, auto)","8px","2.231rem"],[t]);return(0,d.jsxs)(ec,{getOwnerProps:I,getOwnerPropsArguments:O,innerRef:b,readOnly:a,cols:D,disabled:n,applyAriaDisabled:l,hasError:o,inline:t,onClick:w,onMouseDown:M,onKeyDown:k,"aria-disabled":l,"data-testid":Fe.CONTROLS_WRAPPER,children:[!t&&(0,d.jsx)(nc,{innerRef:u,onClick:C,children:Array.isArray(s)?(0,d.jsx)(Yd,{}):(0,d.jsx)(tc,{readOnly:a,"data-testid":Fe.SELECTED_VALUES,disabled:n,applyAriaDisabled:l,children:s&&f===""?(0,d.jsx)(Zn.n,{value:s.label}):null})}),(0,d.jsx)(Or,{}),(0,d.jsx)("div",{}),!t&&(0,d.jsxs)(oc,{justifyItems:"center",cols:["min-content","minmax(28px,max-content)"],justifyContent:"flex-end",children:[(0,d.jsx)(sc,{disabled:n,applyAriaDisabled:l,readOnly:a}),(0,d.jsx)(Tr,{})]})]})};function $t(e,t,n){let o=n.initialDeps??[],s;function l(){var a,c,u,p;let m;n.key&&((a=n.debug)!=null&&a.call(n))&&(m=Date.now());const h=e();if(!(h.length!==o.length||h.some((S,y)=>o[y]!==S)))return s;o=h;let g;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(g=Date.now()),s=t(...h),n.key&&((u=n.debug)!=null&&u.call(n))){const S=Math.round((Date.now()-m)*100)/100,y=Math.round((Date.now()-g)*100)/100,b=y/16,x=(v,I)=>{for(v=String(v);v.length<I;)v=" "+v;return v};console.info(`%c\u23F1 ${x(y,5)} /${x(S,5)} ms`,`
754
+ font-size: .6rem;
755
+ font-weight: bold;
756
+ color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,n?.key)}return(p=n?.onChange)==null||p.call(n,s),s}return l.updateDeps=a=>{o=a},l}function Js(e,t){if(e===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return e}const lc=(e,t)=>Math.abs(e-t)<=1,ac=(e,t,n)=>{let o;return function(...s){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,s),n)}};var dc;const Qs=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},cc=e=>e,uc=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let s=t;s<=n;s++)o.push(s);return o},pc=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;const s=a=>{const{width:c,height:u}=a;t({width:Math.round(c),height:Math.round(u)})};if(s(Qs(n)),!o.ResizeObserver)return()=>{};const l=new o.ResizeObserver(a=>{const c=()=>{const u=a[0];if(u?.borderBoxSize){const p=u.borderBoxSize[0];if(p){s({width:p.inlineSize,height:p.blockSize});return}}s(Qs(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return l.observe(n,{box:"border-box"}),()=>{l.unobserve(n)}},mn={passive:!0},Fu=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=()=>{t({width:n.innerWidth,height:n.innerHeight})};return o(),n.addEventListener("resize",o,mn),()=>{n.removeEventListener("resize",o)}},Gn=typeof window>"u"?!0:"onscrollend"in window,mc=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;let s=0;const l=e.options.useScrollendEvent&&Gn?()=>{}:ac(o,()=>{t(s,!1)},e.options.isScrollingResetDelay),a=m=>()=>{const{horizontal:h,isRtl:f}=e.options;s=h?n.scrollLeft*(f&&-1||1):n.scrollTop,l(),t(s,m)},c=a(!0),u=a(!1);u(),n.addEventListener("scroll",c,mn);const p=e.options.useScrollendEvent&&Gn;return p&&n.addEventListener("scrollend",u,mn),()=>{n.removeEventListener("scroll",c),p&&n.removeEventListener("scrollend",u)}},$u=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;let s=0;const l=e.options.useScrollendEvent&&Gn?()=>{}:dc(o,()=>{t(s,!1)},e.options.isScrollingResetDelay),a=m=>()=>{s=n[e.options.horizontal?"scrollX":"scrollY"],l(),t(s,m)},c=a(!0),u=a(!1);u(),n.addEventListener("scroll",c,mn);const p=e.options.useScrollendEvent&&Gn;return p&&n.addEventListener("scrollend",u,mn),()=>{n.removeEventListener("scroll",c),p&&n.removeEventListener("scrollend",u)}},hc=(e,t,n)=>{if(t?.borderBoxSize){const o=t.borderBoxSize[0];if(o)return Math.round(o[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Vu=(e,{adjustments:t=0,behavior:n},o)=>{var s,l;const a=e+t;(l=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||l.call(s,{[o.options.horizontal?"left":"top"]:a,behavior:n})},fc=(e,{adjustments:t=0,behavior:n},o)=>{var s,l;const a=e+t;(l=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||l.call(s,{[o.options.horizontal?"left":"top"]:a,behavior:n})};class bc{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const o=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(s=>{s.forEach(l=>{const a=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));return{disconnect:()=>{var s;(s=o())==null||s.disconnect(),n=null},observe:s=>{var l;return(l=o())==null?void 0:l.observe(s,{box:"border-box"})},unobserve:s=>{var l;return(l=o())==null?void 0:l.unobserve(s)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([o,s])=>{typeof s>"u"&&delete n[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:cc,rangeExtractor:uc,onChange:()=>{},measureElement:hc,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var o,s;(s=(o=this.options).onChange)==null||s.call(o,this,n)},this.maybeNotify=$t(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,l)=>{this.scrollAdjustments=0,this.scrollDirection=l?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=l,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,o)=>{const s=new Map,l=new Map;for(let a=o-1;a>=0;a--){const c=n[a];if(s.has(c.lane))continue;const u=l.get(c.lane);if(u==null||c.end>u.end?l.set(c.lane,c):c.end<u.end&&s.set(c.lane,!0),s.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((a,c)=>a.end===c.end?a.index-c.index:a.end-c.end)[0]:void 0},this.getMeasurementOptions=$t(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,o,s,l,a)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:o,scrollMargin:s,getItemKey:l,enabled:a}),{key:!1}),this.getMeasurements=$t(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:o,scrollMargin:s,getItemKey:l,enabled:a},c)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(m=>{this.itemSizeCache.set(m.key,m.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const p=this.measurementsCache.slice(0,u);for(let m=u;m<n;m++){const h=l(m),f=this.options.lanes===1?p[m-1]:this.getFurthestMeasurement(p,m),g=f?f.end+this.options.gap:o+s,S=c.get(h),y=typeof S=="number"?S:this.options.estimateSize(m),b=g+y,x=f?f.lane:m%this.options.lanes;p[m]={index:m,start:g,size:y,end:b,key:h,lane:x}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=$t(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,o,s,l)=>this.range=n.length>0&&o>0?gc({measurements:n,outerSize:o,scrollOffset:s,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=$t(()=>{let n=null,o=null;const s=this.calculateRange();return s&&(n=s.startIndex,o=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,o]},(n,o,s,l,a)=>l===null||a===null?[]:n({startIndex:l,endIndex:a,overscan:o,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const o=this.options.indexAttribute,s=n.getAttribute(o);return s?parseInt(s,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(n,o)=>{const s=this.indexFromElement(n),l=this.measurementsCache[s];if(!l)return;const a=l.key,c=this.elementsCache.get(a);c!==n&&(c&&this.observer.unobserve(c),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(s,this.options.measureElement(n,o,this))},this.resizeItem=(n,o)=>{const s=this.measurementsCache[n];if(!s)return;const l=this.itemSizeCache.get(s.key)??s.size,a=o-l;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,a,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,o)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,s)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(s))});return}this._measureElement(n,void 0)},this.getVirtualItems=$t(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,o)=>{const s=[];for(let l=0,a=n.length;l<a;l++){const c=n[l],u=o[c];s.push(u)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const o=this.getMeasurements();if(o.length!==0)return Js(o[er(0,o.length-1,s=>Js(o[s]).start,n)])},this.getOffsetForAlignment=(n,o,s=0)=>{const l=this.getSize(),a=this.getScrollOffset();o==="auto"&&(o=n>=a+l?"end":"start"),o==="center"?n+=(s-l)/2:o==="end"&&(n-=l);const c=this.getTotalSize()-l;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,o="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.measurementsCache[n];if(!s)return;const l=this.getSize(),a=this.getScrollOffset();if(o==="auto")if(s.end>=a+l-this.options.scrollPaddingEnd)o="end";else if(s.start<=a+this.options.scrollPaddingStart)o="start";else return[a,o];const c=o==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,o,s.size),o]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:o="start",behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,o),{adjustments:void 0,behavior:s})},this.scrollToIndex=(n,{align:o="auto",behavior:s}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const l=this.getOffsetForIndex(n,o);if(!l)return;const[a,c]=l;this._scrollToOffset(a,{adjustments:void 0,behavior:s}),s!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const p=this.getOffsetForIndex(n,c);if(!p)return;const[m]=p,h=this.getScrollOffset();lc(m,h)||this.scrollToIndex(n,{align:c,behavior:s})}else this.scrollToIndex(n,{align:c,behavior:s})}))},this.scrollBy=(n,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var n;const o=this.getMeasurements();let s;if(o.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((n=o[o.length-1])==null?void 0:n.end)??0;else{const l=Array(this.options.lanes).fill(null);let a=o.length-1;for(;a>=0&&l.some(c=>c===null);){const c=o[a];l[c.lane]===null&&(l[c.lane]=c.end),a--}s=Math.max(...l.filter(c=>c!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:o,behavior:s})=>{this.options.scrollToFn(n,{behavior:s,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const er=(e,t,n,o)=>{for(;e<=t;){const s=(e+t)/2|0,l=n(s);if(l<o)e=s+1;else if(l>o)t=s-1;else return s}return e>0?e-1:0};function gc({measurements:e,outerSize:t,scrollOffset:n,lanes:o}){const s=e.length-1,l=u=>e[u].start;if(e.length<=o)return{startIndex:0,endIndex:s};let a=er(0,s,l,n),c=a;if(o===1)for(;c<s&&e[c].end<n+t;)c++;else if(o>1){const u=Array(o).fill(0);for(;c<s&&u.some(m=>m<n+t);){const m=e[c];u[m.lane]=m.end,c++}const p=Array(o).fill(n+t);for(;a>=0&&p.some(m=>m>=n);){const m=e[a];p[m.lane]=m.start,a--}a=Math.max(0,a-a%o),c=Math.min(s,c+(o-1-c%o))}return{startIndex:a,endIndex:c}}var yc,xc,Sc;const tr=typeof document<"u"?i.useLayoutEffect:i.useEffect;function nr(e){const t=i.useReducer(()=>({}),{})[1],n={...e,onChange:(s,l)=>{var a;l?(0,Oe.flushSync)(t):t(),(a=e.onChange)==null||a.call(e,s,l)}},[o]=i.useState(()=>new bc(n));return o.setOptions(n),tr(()=>o._didMount(),[]),tr(()=>o._willUpdate()),o}function Ic(e){return nr({observeElementRect:pc,observeElementOffset:mc,scrollToFn:fc,...e})}function Bu(e){return nr({getScrollElement:()=>typeof document<"u"?window:null,observeElementRect:yc,observeElementOffset:xc,scrollToFn:Sc,initialOffset:()=>typeof document<"u"?window.scrollY:0,...e})}const Ac={estimateSize:()=>36},or={actionRef:r.A.shape({current:r.A.oneOfType([r.A.oneOf([null]),r.A.shape({scrollTo:r.A.func.description("Scroll to a index inside the list").signature("((index: number, { align: 'start' | 'center' | 'end' | 'auto' }) => void)")})])}).description("mutable reference where methods will be stored"),ItemRenderer:r.A.oneOfType([r.A.object,r.A.func]).isRequired.description("Render function for each item"),count:r.A.number.isRequired.description("Number of items to render"),extraItemProps:r.A.object.description("Extra props to pass to each item"),getId:r.A.func.isRequired.description("Function to get the key for each item"),estimateSize:r.A.func.description("Function to estimate the size of each item")},Vt="DSFastlist",Kn={CONTAINER:"container",WRAPPER_LIST:"wrapper-list",ITEM:"item"},Hu=(0,he.lD)(Vt,Kn),vc=(e,t)=>{(0,W.D)(e,t,Vt)},Oc=e=>{const t=(0,K.b)(e,Ac);vc(t,or);const{actionRef:n,count:o,estimateSize:s}=t,l=i.useRef(null),a=Ic({count:o,getScrollElement:()=>l.current,overscan:15,estimateSize:s}),c=a.getTotalSize();i.useEffect(()=>{n&&n.current&&(n.current.scrollTo=a.scrollToIndex)},[n,a]);const u=i.useMemo(()=>`ds-fast-list-${(0,oe.L)(6)}${o}`,[o]);return i.useMemo(()=>({instanceUid:u,parentRef:l,getVirtualItems:a.getVirtualItems,totalSize:c,measureElement:a.measureElement}),[a.getVirtualItems,a.measureElement,c,u])},wc=(0,E.I)("div",{name:Vt,slot:Kn.WRAPPER_LIST})`
757
+ width: 100%;
758
+ position: relative;
759
+ `,Tc=(0,E.I)("div",{name:Vt,slot:Kn.ITEM})`
760
+ position: absolute;
761
+ top: 0;
762
+ left: 0;
763
+ width: 100%;
764
+ `,Ec=(0,E.I)("div",{name:Vt,slot:Kn.CONTAINER})`
765
+ overflow: auto;
766
+ width: 100%;
767
+ height: 100%;
768
+ padding-bottom: 0;
769
+ `,Mc=e=>{const{parentRef:t,getVirtualItems:n,totalSize:o,instanceUid:s,measureElement:l}=Oc(e),{ItemRenderer:a,extraItemProps:c,getId:u}=e,p=n(),m=i.useCallback(g=>l(g),[l]),h=(0,i.useCallback)(()=>e,[e]),f=(0,L.u)(e);return(0,d.jsx)(Ec,{innerRef:t,tabIndex:-1,getOwnerProps:h,...f,children:(0,d.jsx)(wc,{style:{height:`${o+.5}px`},role:"list",getOwnerProps:h,children:p.map(g=>{const{index:S,start:y}=g;return(0,d.jsx)(Tc,{innerRef:m,"data-index":S,style:{transform:`translateY(${y}px)`},role:"listitem",getOwnerProps:h,getOwnerPropsArguments:()=>({index:u(S)}),children:(0,d.jsx)(a,{extraItemProps:c,index:S})},u(S))})})},s)},_o=e=>(0,d.jsx)(Mc,{...e});_o.displayName=Vt;const Pc=(0,U.A)(_o).description("DSFastList");Pc.propTypes=or;const Cc=(0,E.I)(J.Ay)`
770
+ min-width: ${({inline:e,minWidth:t})=>e?"100%":`${String(t)}px`};
771
+ width: ${({width:e})=>`${e}px`};
772
+ background-color: #ffffff;
773
+ z-index: 100;
774
+ `,_c=E.I.span`
775
+ font-weight: bold;
776
+ font-style: italic;
777
+ `,Dc=E.I.span`
778
+ word-break: break-all;
779
+ `,Rc=E.I.div`
780
+ padding: 14px;
781
+ `,kc=(0,E.I)("section",{name:tt,slot:nt.SECTION_WRAPPER})`
782
+ list-style: none;
783
+ min-height: 24px;
784
+ display: grid;
785
+ align-items: center;
786
+ `,Nc=(0,E.I)("header",{name:tt,slot:nt.SECTION_LABEL})`
787
+ display: flex;
788
+ align-items: center;
789
+ padding: 0px 16px;
790
+ min-height: 24px;
791
+ font-size: 1rem;
792
+ color: neutral-500;
793
+ `,jc=(0,E.I)(sn,{name:tt,slot:nt.SINGLE_MENU_ITEM})``,Lc=i.memo(e=>{const{label:t,wrapperStyles:n,focusOptionIdx:o,selectedValues:s,innerRef:l,handleOnMouseDown:a,options:c,handleClick:u,getOwnerProps:p,getOwnerPropsArguments:m}=e,h=`${t.replace(/ /g,"")}-section`,f=Array.isArray(s)?rn:jc;return(0,d.jsxs)(kc,{role:"group","aria-labelledby":h,style:n,innerRef:l,getOwnerProps:p,getOwnerPropsArguments:m,children:[(0,d.jsx)(Nc,{id:h,role:"presentation",getOwnerProps:p,getOwnerPropsArguments:m,children:t}),c?.map(g=>{const{dsId:S,type:y,value:b,label:x,readOnly:v,disabled:I,applyAriaDisabled:O,render:w,...C}=g;return y===Ie.SEPARATOR?(0,d.jsx)(ln,{},S):(0,i.createElement)(f,{getOwnerProps:p,getOwnerPropsArguments:m,value:b,label:x,dataTestid:Fe.OPTION,disabled:I,applyAriaDisabled:O||v,onClick:M=>{O||u(g,M)},onMouseDown:a,isActive:S===o,isSelected:xe(s,g),tabIndex:-1,...C,key:g.dsId,dsId:g.dsId})})]})}),sr=(0,E.I)(sn,{name:tt,slot:nt.SINGLE_MENU_ITEM,preserveLegacyDataTestId:!0})``,Wc=(0,E.I)(rn,{name:tt,slot:nt.MULTI_MENU_ITEM,preserveLegacyDataTestId:!0})``,Fc=({index:e,extraItemProps:t})=>{const{props:n,props:{onCreate:o,onChange:s,isNonClearable:l,selectedValues:a,onFilter:c,allOptions:u,readOnly:p},setMenuState:m,inputValue:h,focusOptionIdx:f,setInputValue:g,optionsPerSection:S}=(0,i.useContext)(pe),{getOwnerProps:y}=(0,Z.j)(n),b=(0,i.useCallback)(()=>({index:e}),[e]),x=t?.itemList?.[e],v=Array.isArray(a),I=v?Wc:sr,O=(0,i.useCallback)(()=>{h&&o&&(o(h),g(""),c&&c(u,h))},[c,o,h,u,g]),w=(0,i.useCallback)((M,k)=>{p||(M.type===Ie.OPTION&&(M.disabled||(c&&c(u,h),g(""),v||m(!1,"selectOption",k),s(_e(M,a,l),M,k))),k.stopPropagation(),k.preventDefault())},[c,a,u,s,m,v]),C=(0,i.useCallback)(M=>{M.preventDefault()},[]);return(0,i.useMemo)(()=>{if(x){const{dsId:M,type:k,disabled:D,applyAriaDisabled:z,readOnly:V,...A}=x,_={key:`${M}`,dsId:M.toString(),...A};return k===Ie.SECTION?(0,d.jsx)(Lc,{label:x.label,..._,options:x.options,handleClick:w,focusOptionIdx:f,handleOnMouseDown:C,selectedValues:a,getOwnerProps:y,getOwnerPropsArguments:b}):k===Ie.SEPARATOR?(0,d.jsx)(ln,{..._,render:void 0}):x.type===Ie.OPTION?(0,d.jsx)(I,{..._,value:x.value,label:x.label,dataTestid:Fe.OPTION,disabled:D,applyAriaDisabled:z||V,onClick:P=>{z||w(x,P)},onMouseDown:C,isActive:M===f,tabIndex:-1,isSelected:xe(a,x),getOwnerProps:y,getOwnerPropsArguments:b}):k===Ot.CREATABLE?(0,d.jsx)(sr,{getOwnerProps:y,getOwnerPropsArguments:b,dataTestid:Fe.OPTION,isActive:M===f,..._,render:({label:P})=>(0,d.jsxs)(J.Ay,{p:"8px",cols:["min-content","auto"],gutter:"xxs",alignItems:"center",children:[(0,d.jsx)(_c,{children:"Add:"}),(0,d.jsx)(Dc,{children:`"${P}"`})]}),label:x.label,onClick:O}):null}return null},[S,f,a,u,o,h,p])};var $c=T("./node_modules/.pnpm/@elliemae+ds-circular-progress-indicator@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-circular-progress-indicator/dist/esm/v2/DSCircularIndeterminateIndicator.js");const Vc=E.I.div`
794
+ display: flex;
795
+ justify-content: center;
796
+ height: 56px;
797
+ `,Bc=(0,E.I)($c.p,{name:tt,slot:nt.LOADING_INDICATOR})``,Hc=({getOwnerProps:e})=>(0,d.jsx)(Vc,{id:"combobox-list",children:(0,d.jsx)(Bc,{size:"m",getOwnerProps:e})});var Uu=null;const Uc=(0,E.I)(an,{name:tt,slot:nt.SKELETON_MENU_ITEM,preserveLegacyDataTestId:!0})``,zc=({instanceUid:e,getOwnerProps:t})=>{const n=[0,1,2,3,4];return(0,d.jsx)(J.Ay,{id:`combo-listbox-${e}`,children:n.map((o,s)=>(0,d.jsx)(Uc,{dsId:s.toString(),role:"presentation",getOwnerProps:t},o))})},Gc=(0,E.I)(_o,{name:tt,slot:nt.FAST_LIST})``,Kc=(0,E.I)(J.Ay)`
798
+ max-height: ${({maxHeight:e})=>e?`${String(e)}px`:"300px"};
799
+ `,Yc=()=>32,rr=()=>{const{props:e,props:{isLoading:t,menuMinWidth:n,noOptionsMessage:o,menuMaxHeight:s,onCreate:l,inline:a,isSkeleton:c},controlsWrapperRef:u,listRef:p,wrapperListRef:m,correctOptions:h,instanceUid:f}=(0,i.useContext)(pe),{getOwnerProps:g}=(0,Z.j)(e),{width:S}=Co(u),y=(0,i.useCallback)(x=>{x.preventDefault()},[]);let b;return c?b=(0,d.jsx)(zc,{instanceUid:f,getOwnerProps:g}):t?b=(0,d.jsx)(Hc,{getOwnerProps:g}):(h?.length??0)>0||l?b=(0,d.jsx)(Kc,{maxHeight:s,id:`combo-listbox-${f}`,children:(0,d.jsx)(Gc,{dsFastlistWrapperList:{role:"listbox","data-testid":Fe.LIST,"aria-label":"listbox"},dsFastlistItem:{role:"none"},actionRef:p,count:h.length,ItemRenderer:Fc,extraItemProps:{itemList:h},getId:x=>h[x].dsId,estimateSize:Yc,getOwnerProps:g})}):b=(0,d.jsx)(Rc,{id:`combo-listbox-${f}`,"data-testid":Fe.NO_MATCHES_FOUND,role:"alert",children:o}),(0,d.jsx)(Cc,{innerRef:m,inline:a,onMouseDown:y,width:S,minWidth:n,children:b})},ir=E.I.span`
800
+ position: absolute;
801
+ width: 1px;
802
+ height: 1px;
803
+ margin: -1px;
804
+ border: 0;
805
+ padding: 0;
806
+ overflow: hidden;
807
+ clip: rect(0 0 0 0);
808
+ clip-path: inset(100%);
809
+ white-space: nowrap;
810
+ `,Xc=()=>{const{props:{onCreate:e},hasFocus:t}=(0,i.useContext)(Te),n=e?(0,d.jsx)("span",{id:"aria-creatable",children:"press enter to create the option"}):"";return(0,d.jsx)(ir,{"data-testid":Fe.ALLY_SELECTED_VALUES,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text",children:t&&n})},qc=i.memo(({message:e})=>(0,d.jsx)(ir,{"aria-live":"assertive","aria-relevant":"all",children:e}));function Zc(e,t,n){(0,i.useEffect)(()=>{const o=s=>{!e||e?.contains?.(s.target)||n&&n.contains(s.target)||t(s)};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t,n])}const Jc=()=>{const{props:e,internalRef:t,setMenuState:n,menuState:o}=(0,i.useContext)(Te),{inline:s,startPlacementPreference:l,placementOrderPreference:a,isLoading:c,isSkeleton:u,applyAriaDisabled:p}=e,m=(0,L.u)(e),{zIndex:h,...f}=(0,B.d)(e),{getOwnerProps:g,getOwnerPropsArguments:S}=(0,Z.j)(e),y=h?parseInt(h,10):void 0,{className:b,"data-testid":x}=m,v=(0,i.useCallback)(D=>{D.preventDefault()},[]),I=(0,i.useCallback)(()=>{n(!1,"blur"),t?.current&&t.current.blur()},[t,n]);(0,i.useEffect)(()=>{const D=()=>{o&&n(!1,"blur")};return window.addEventListener("blur",D),()=>{window.removeEventListener("blur",D)}},[o,n]);const O=(0,i.useMemo)(()=>({placement:"bottom",withoutAnimation:!0,startPlacementPreference:l,placementOrderPreference:a,zIndex:y,customOffset:[0,5],handleCloseMenu:I,externallyControlledIsOpen:o}),[l,a,y,I,o]),{refs:w,floatingStyles:C,context:M}=Q(O),k=(0,i.useCallback)(()=>{n(!1,"blur")},[n]);return Zc(w.reference,k,w.floating),(0,d.jsxs)(pr,{"data-testid":x??Fe.CONTAINER,innerRef:w.setReference,className:b,applyAriaDisabled:p,...f,getOwnerProps:g,getOwnerPropsArguments:S,children:[(0,d.jsx)(Xc,{}),(0,d.jsx)(ic,{}),o&&s?(0,d.jsx)(rr,{}):null,o&&!s&&w.reference?(0,i.createElement)(Zt,{innerRef:w.setFloating,floatingStyles:C,isOpen:o,context:M,...e.popperProps,key:`${c}${u}`},(0,d.jsx)(mr,{tabIndex:-1,onMouseDown:v,applyAriaDisabled:p,children:(0,d.jsx)(rr,{})})):null]})},zu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,width:"1px",position:"absolute"},Do=e=>{const t=X(e);return(0,d.jsxs)(pe.Provider,{value:t,children:[(0,d.jsx)(Jc,{}),(0,d.jsx)(qc,{message:e.isLoading||e.isSkeleton?"Loading options please wait":""})]})};Do.displayName="DSComboBox";const Qc=(0,U.A)(Do);Qc.propTypes=ft},"./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronRight.js"(ht,Se,T){T.d(Se,{A:()=>U});var i=T("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),d=T("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/createIcon.js"),U=(0,d.w)({paths:["M 11.531 8.5 C 11.531 8.605 11.498 8.711 11.431 8.8 L 5.431 16.8 C 5.265 17.021 4.952 17.066 4.731 16.9 S 4.465 16.421 4.63 16.2 L 10.405 8.5 L 4.63 0.8 C 4.465 0.58 4.51 0.267 4.731 0.1 C 4.952 -0.065 5.265 -0.02 5.431 0.201 L 11.431 8.201 C 11.497 8.29 11.531 8.395 11.531 8.501 Z"],height:17,width:16})},"./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronSmallDown.js"(ht,Se,T){T.d(Se,{A:()=>K});var i=T("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),d=T("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),U=T("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/SvgIcon.js"),K=W=>(0,d.jsx)(U.Ah,{...W,viewBox:"0 0 20 20",children:(0,d.jsx)("path",{d:"M9.5 13a.503.503 0 0 1-.313-.109l-5-4a.5013.5013 0 0 1-.078-.703c.173-.214.488-.25.703-.078L9.5 11.86l4.688-3.75c.218-.172.531-.136.703.078.172.216.138.53-.078.703l-5 4A.501.501 0 0 1 9.5 13z"})})},"./node_modules/.pnpm/@elliemae+ds-legacy-shared@1.0.16_@elliemae+pui-theme@2.13.0_styled-components@5.3.11/node_modules/@elliemae/ds-legacy-shared/dist/esm/constants.js"(ht,Se,T){T.d(Se,{$Z:()=>U,xp:()=>d});var i=T("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js");const d=200,U=300,oe=null,K="am",W="pm",Ce="ArrowUp",Le="ArrowDown",qe="Backspace",pe="Escape",Te="Home",ae="Shift",r="End",Ht={min:0,max:12},ft={min:0,max:24},st={min:0,max:59},ut={hour:"hour",minutes:"minutes",seconds:"seconds",meridiem:"meridiem"}},"./node_modules/.pnpm/@elliemae+ds-popperjs@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-popperjs/dist/esm/index.js"(ht,Se,T){T.d(Se,{B2:()=>Ue});var i=T("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),d=T("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),U=T("./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js"),oe=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),K=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/styled/styled.js");const W=18,Ce=18,Le=K.I.div`
811
+ position: absolute;
812
+ width: ${W}px;
813
+ height: ${Ce}px;
814
+ pointer-events: none;
815
+ background-color: transparent;
816
+ & .stroke {
817
+ fill: neutral-500;
818
+ fill-opacity: 0.4;
819
+ }
820
+ & .fill {
821
+ fill: neutral-000;
822
+ }
823
+
824
+ &[data-placement^='top'] {
825
+ svg {
826
+ transform: rotateZ(180deg);
827
+ }
828
+ bottom: -${Ce}px;
829
+ }
830
+ &[data-placement^='right'] {
831
+ svg {
832
+ transform: rotateZ(-90deg);
833
+ }
834
+ left: -${W}px;
835
+ }
836
+ &[data-placement^='bottom'] {
837
+ top: -${Ce}px;
838
+ }
839
+ &[data-placement^='left'] {
840
+ svg {
841
+ transform: rotateZ(90deg);
842
+ }
843
+ right: -${W}px;
844
+ }
845
+ margin-left: ${G=>G["data-placement"].startsWith("top")||G["data-placement"].startsWith("bottom")?`-${W/2}px;`:"0;"};
846
+ margin-top: ${G=>G["data-placement"].startsWith("left")||G["data-placement"].startsWith("right")?`-${Ce/2}px;`:"0;"};
847
+ `,qe=({placement:G,style:X,arrowElementRef:L})=>(0,d.jsx)(Le,{"data-placement":G,style:X,innerRef:L,"data-testid":"ds-tooltip-arrow","aria-hidden":"true",children:(0,d.jsxs)("svg",{viewBox:"0 0 30 30",children:[(0,d.jsx)("path",{className:"stroke",d:`M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26
848
+ C26.7,29,24.6,28.1,23.7,27.1z`}),(0,d.jsx)("path",{className:"fill",d:"M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"})]})},"popper-arrow");var pe=T("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js"),Te=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/xStyledWrapper.js"),ae=T("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.17.23/node_modules/@elliemae/ds-system/dist/esm/styled/system.js");const r=(0,pe.i7)`
849
+ from {
850
+ opacity: 0;
851
+ transform: scale(0.8);
852
+ }
853
+
854
+ to {
855
+ opacity: 1;
856
+ transform: scale(1);
857
+ visibility: visible;
858
+ }
859
+ `,Ht=(0,pe.i7)`
860
+ from {
861
+ opacity: 1;
862
+ transform: scale(1);
863
+ }
864
+
865
+ to {
866
+ opacity: 0;
867
+ transform: scale(0.8);
868
+ visibility: hidden;
869
+ }
870
+ `,ft=(0,K.I)("div")`
871
+ z-index: ${({theme:G,zIndex:X})=>X??G.zIndex.popper};
872
+ ${Te.L1}
873
+ `,st=K.I.div`
874
+ box-shadow:
875
+ 0 0 0 1px rgba(16, 22, 26, 0.1),
876
+ 0 2px 4px rgba(16, 22, 26, 0.2),
877
+ 0 8px 24px rgba(16, 22, 26, 0.2);
878
+
879
+ ${({showPopover:G,animationDuration:X,withoutAnimation:L})=>!L&&(0,ae.AH)`
880
+ animation: ${G?r:Ht} ${X}ms ease-in;
881
+ `}
882
+ `,ut=({setPopperElement:G,popperStyles:X,popperAttributes:L,children:B,showPopover:Z,setArrowElement:be,setIsAnimating:ge,arrowStyle:re,withoutArrow:Ae,withoutAnimation:de,animationDuration:ce,zIndex:We,globalAttrs:ze,xStyledAttrs:Ge})=>{const De=(0,i.useCallback)(()=>{!Z&&!de&&ge(!1)},[Z,de,ge]),Je=(0,i.useMemo)(()=>(0,d.jsxs)(d.Fragment,{children:[B,Ae===!1?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(qe,{arrowElementRef:be,style:re,placement:L?L["data-popper-placement"]:"bottom"}),(0,d.jsx)("div",{ref:be,style:re})]}):null]}),[B,Ae,re,L,be]);return(0,d.jsx)(ft,{innerRef:G,role:"region","aria-label":"popover menu",style:X,...L,...ze,...Ge,zIndex:We,children:(0,d.jsx)(st,{showPopover:Z,animationDuration:ce,withoutAnimation:de,onAnimationEnd:De,children:Je})})};var Ie=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/useGetGlobalAttributes.js"),Ot=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/useGetXstyledProps.js"),R=T("./node_modules/.pnpm/react-popper@2.3.0_@popperjs+core@2.11.8/node_modules/react-popper/lib/esm/usePopper.js");function N(G,X){(0,i.useEffect)(()=>{const L=B=>{!G||G?.contains?.(B.target)||X(B)};return document.addEventListener("mousedown",L),document.addEventListener("touchstart",L),()=>{document.removeEventListener("mousedown",L),document.removeEventListener("touchstart",L)}},[G,X])}var $=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/defaultProps/useMemoMergePropsWithDefault.js");const j=({props:G,arrowElement:X,defaultProps:L})=>{const{boundaryElement:B,withoutArrow:Z=!1,placementOrderPreference:be=["top","bottom","left","right"],customOffset:ge=void 0}=G,re=(0,i.useMemo)(()=>{const de=[];if(de.push({name:"hide",enabled:!0}),de.push({name:"flip",options:{fallbackPlacements:be}}),!Z||ge){const ce=ge||L.customOffset;de.push({name:"offset",enabled:!0,options:{offset:ce}})}return Z||de.push({name:"arrow",options:{element:X,padding:18}}),B&&de.push({name:"preventOverflow",options:{boundary:B}}),de},[X,L,B,Z,be,ge]),{modifiers:Ae=re}=G;return(0,i.useMemo)(()=>({modifiers:Ae}),[Ae])},q=()=>{},ee={},xe=({props:G,arrowElement:X})=>{const L=(0,i.useMemo)(()=>({referenceElement:null,showPopover:!1,closeContextMenu:q,onClickOutside:q,withoutPortal:!1,withoutArrow:!1,withoutAnimation:!1,animationDuration:100,portalDOMContainer:document.body,startPlacementPreference:"top",placementOrderPreference:["top","bottom","left","right"],extraPopperStyles:ee,customOffset:[0,14]}),[]),{modifiers:B}=j({props:G,arrowElement:X,defaultProps:L});return(0,i.useMemo)(()=>({...L,modifiers:B}),[B,L])},Ee=({props:G,arrowElement:X})=>{const L=xe({props:G,arrowElement:X});return(0,$.b)(G,L)},rt=G=>{const[X,L]=(0,i.useState)(null),[B,Z]=(0,i.useState)(null),[be,ge]=(0,i.useState)(!1),re=Ee({props:G,arrowElement:B}),{referenceElement:Ae,closeContextMenu:de,onClickOutside:ce,modifiers:We,startPlacementPreference:ze}=re,Ge=(0,i.useMemo)(()=>({placement:ze,modifiers:We}),[We,ze]),De=(0,R.E)(Ae,X,Ge),{showPopover:Je,withoutAnimation:Qe}=re;(0,i.useEffect)(()=>{Je&&!Qe&&ge(!0)},[Je,Qe]),(0,i.useEffect)(()=>{re.actionRef&&(re.actionRef.current.update=De.update)},[re.actionRef,De.update]),N(X,et=>{Ae?.contains?.(et?.target)||(ce(et),de())});const ve=(0,Ie.u)(re),Ke=(0,Ot.d)(re);return(0,i.useMemo)(()=>({props:re,popperElement:X,setPopperElement:L,arrowElement:B,setArrowElement:Z,popoverHelper:De,isAnimating:be,setIsAnimating:ge,globalAttrs:ve,xStyledAttrs:Ke}),[re,X,B,De,be,ve,Ke])};var fe=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/globalAttributesPropTypes.js"),it=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/xstyledPropTypes.js"),Y=T("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js");const _e=["top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ze={...fe.P,...it.w,children:Y.A.node.description("The content of the popper").isRequired,referenceElement:Y.A.oneOfType([Y.A.node,Y.A.oneOf([null])]).description("The DOM element that needs to be used as a reference for positioning the popper.").isRequired,showPopover:Y.A.bool.description("whether or not to show the popper content").isRequired,closeContextMenu:Y.A.func.description('Callback to close the context menu, used for "on click outside", if not provided click outside will not trigger anything').defaultValue("() => {}"),withoutPortal:Y.A.bool.description("Whether or not the popper content should appear in a DOM portal or not").defaultValue(!0),withoutArrow:Y.A.bool.description("Whether or not the popper context menu should print the arrow").defaultValue(!1),withoutAnimation:Y.A.bool.description("Whether or not the popper context menu should be animated").defaultValue(!1),animationDuration:Y.A.number.description("Popper context menus Animation duration in ms").defaultValue(100),startPlacementPreference:Y.A.oneOf(_e).description("start placement preferences, as per popperjs placement option").defaultValue("'top'"),placementOrderPreference:Y.A.arrayOf(Y.A.oneOf(_e)).description('Array of placement preferences, as per popperjs "flip" placement option').defaultValue("['top', 'bottom', 'left', 'right']"),zIndex:Y.A.number.description("popperjs content z-index").defaultValue("theme.zIndex.popper"),customOffset:Y.A.arrayOf(Y.A.number).description("placement offset array").defaultValue("[0,14]"),extraPopperStyles:Y.A.object.description("Extra object styles to attach to the popper element").defaultValue({}),onClickOutside:Y.A.func.description("Callback triggered when clicking outside the popper").defaultValue(()=>null),boundaryElement:Y.A.oneOfType([Y.A.node,Y.A.oneOf([null])]).description('Bounding element to calculate upon, defaults to "clippingParents",which are the scrolling containers that may cause element to be partially or fully cut off'),portalDOMContainer:Y.A.oneOfType([Y.A.node,Y.A.oneOf([null])]).description("When using portal, the container in which to append the DOM content, defaults to document body"),modifiers:Y.A.array.description('If you provide the modifiers array for full-custom override in popper.js, it means you are responsible for completely overwriting all the existing modifiers. This includes the modifiers that control "boundaryElement," "withoutArrow," "placementOrderPreference," and "customOffset".For more detailed information, please refer to the documentation at https://popper.js.org/docs/v2/modifiers/.'),actionRef:Y.A.object.description("Ref object to access the popperjs instance methods")},Ue=G=>{const{props:{showPopover:X,withoutAnimation:L,animationDuration:B,withoutPortal:Z,withoutArrow:be,portalDOMContainer:ge,zIndex:re,extraPopperStyles:Ae},globalAttrs:de,xStyledAttrs:ce,setPopperElement:We,setArrowElement:ze,setIsAnimating:Ge,popoverHelper:De,isAnimating:Je}=rt(G),{children:Qe}=G,{styles:ve,attributes:Ke}=De,et=(0,i.useMemo)(()=>(0,d.jsx)(ut,{setPopperElement:We,popperStyles:{...ve.popper,...Ae},popperAttributes:Ke.popper,setArrowElement:ze,arrowStyle:ve.arrow,withoutArrow:be,withoutAnimation:L,animationDuration:B,zIndex:re,showPopover:X,setIsAnimating:Ge,globalAttrs:de,xStyledAttrs:ce,children:Qe}),[Ke.popper,Qe,Ge,X,Ae,ze,We,ve.arrow,ve.popper,be,L,B,re,de,ce]);if(X||Je){if(Z===!0)return et;if(ge&&Z===!1)return(0,d.jsx)(d.Fragment,{children:(0,U.createPortal)(et,ge)})}return null};Ue.displayName="DSPopperJS";const hn=(0,oe.A)(Ue).description("A dimsum custom styling wrapper on top of popperjs");hn.propTypes=Ze;var fn=null},"./node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js"(ht,Se,T){T.d(Se,{A:()=>K});var i=T("./node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js"),d=1,U=4;function oe(W){return(0,i.A)(W,d|U)}const K=oe},"./node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/throttle.js"(ht,Se,T){T.d(Se,{A:()=>K});var i=T("./node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/debounce.js"),d=T("./node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js"),U="Expected a function";function oe(W,Ce,Le){var qe=!0,pe=!0;if(typeof W!="function")throw new TypeError(U);return(0,d.A)(Le)&&(qe="leading"in Le?!!Le.leading:qe,pe="trailing"in Le?!!Le.trailing:pe),(0,i.A)(W,Ce,{leading:qe,maxWait:Ce,trailing:pe})}const K=oe},"./node_modules/.pnpm/react-virtual@2.10.4/node_modules/react-virtual/dist/react-virtual.mjs"(ht,Se,T){T.d(Se,{z:()=>ut});var i=T("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js");function d(){return d=Object.assign||function(R){for(var N=1;N<arguments.length;N++){var $=arguments[N];for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(R[j]=$[j])}return R},d.apply(this,arguments)}function U(R,N){if(R==null)return{};var $={},j=Object.keys(R),q,ee;for(ee=0;ee<j.length;ee++)q=j[ee],!(N.indexOf(q)>=0)&&($[q]=R[q]);return $}var oe=["bottom","height","left","right","top","width"],K=function(N,$){return N===void 0&&(N={}),$===void 0&&($={}),oe.some(function(j){return N[j]!==$[j]})},W=new Map,Ce,Le=function R(){var N=[];W.forEach(function($,j){var q=j.getBoundingClientRect();K(q,$.rect)&&($.rect=q,N.push($))}),N.forEach(function($){$.callbacks.forEach(function(j){return j($.rect)})}),Ce=window.requestAnimationFrame(R)};function qe(R,N){return{observe:function(){var j=W.size===0;W.has(R)?W.get(R).callbacks.push(N):W.set(R,{rect:void 0,hasRectChanged:!1,callbacks:[N]}),j&&Le()},unobserve:function(){var j=W.get(R);if(j){var q=j.callbacks.indexOf(N);q>=0&&j.callbacks.splice(q,1),j.callbacks.length||W.delete(R),W.size||cancelAnimationFrame(Ce)}}}}var pe=typeof window<"u"?i.useLayoutEffect:i.useEffect;function Te(R,N){N===void 0&&(N={width:0,height:0});var $=i.useState(R.current),j=$[0],q=$[1],ee=i.useReducer(ae,N),xe=ee[0],Ee=ee[1],rt=i.useRef(!1);return pe(function(){R.current!==j&&q(R.current)}),pe(function(){if(j&&!rt.current){rt.current=!0;var fe=j.getBoundingClientRect();Ee({rect:fe})}},[j]),i.useEffect(function(){if(j){var fe=qe(j,function(it){Ee({rect:it})});return fe.observe(),function(){fe.unobserve()}}},[j]),xe}function ae(R,N){var $=N.rect;return R.height!==$.height||R.width!==$.width?$:R}var r=function(){return 50},Ht=function(N){return N},ft=function(N,$){var j=$?"offsetWidth":"offsetHeight";return N[j]},st=function(N){for(var $=Math.max(N.start-N.overscan,0),j=Math.min(N.end+N.overscan,N.size-1),q=[],ee=$;ee<=j;ee++)q.push(ee);return q};function ut(R){var N,$=R.size,j=$===void 0?0:$,q=R.estimateSize,ee=q===void 0?r:q,xe=R.overscan,Ee=xe===void 0?1:xe,rt=R.paddingStart,fe=rt===void 0?0:rt,it=R.paddingEnd,Y=it===void 0?0:it,_e=R.parentRef,Ze=R.horizontal,Ue=R.scrollToFn,hn=R.useObserver,fn=R.initialRect,G=R.onScrollElement,X=R.scrollOffsetFn,L=R.keyExtractor,B=L===void 0?Ht:L,Z=R.measureSize,be=Z===void 0?ft:Z,ge=R.rangeExtractor,re=ge===void 0?st:ge,Ae=Ze?"width":"height",de=Ze?"scrollLeft":"scrollTop",ce=i.useRef({scrollOffset:0,measurements:[]}),We=i.useState(0),ze=We[0],Ge=We[1];ce.current.scrollOffset=ze;var De=hn||Te,Je=De(_e,fn),Qe=Je[Ae];ce.current.outerSize=Qe;var ve=i.useCallback(function(te){_e.current&&(_e.current[de]=te)},[_e,de]),Ke=Ue||ve;Ue=i.useCallback(function(te){Ke(te,ve)},[ve,Ke]);var et=i.useState({}),bn=et[0],Ut=et[1],wt=i.useCallback(function(){return Ut({})},[]),Tt=i.useRef([]),pt=i.useMemo(function(){var te=Tt.current.length>0?Math.min.apply(Math,Tt.current):0;Tt.current=[];for(var Q=ce.current.measurements.slice(0,te),ne=te;ne<j;ne++){var Oe=B(ne),ue=bn[Oe],E=Q[ne-1]?Q[ne-1].end:fe,ie=typeof ue=="number"?ue:ee(ne),he=E+ie;Q[ne]={index:ne,start:E,size:ie,end:he,key:Oe}}return Q},[ee,bn,fe,j,B]),zt=(((N=pt[j-1])==null?void 0:N.end)||fe)+Y;ce.current.measurements=pt,ce.current.totalSize=zt;var bt=G?G.current:_e.current,Gt=i.useRef(X);Gt.current=X,pe(function(){if(!bt){Ge(0);return}var te=function(ne){var Oe=Gt.current?Gt.current(ne):bt[de];Ge(Oe)};return te(),bt.addEventListener("scroll",te,{capture:!1,passive:!0}),function(){bt.removeEventListener("scroll",te)}},[bt,de]);var gn=Ot(ce.current),yn=gn.start,xn=gn.end,Kt=i.useMemo(function(){return re({start:yn,end:xn,overscan:Ee,size:pt.length})},[yn,xn,Ee,pt.length,re]),Sn=i.useRef(be);Sn.current=be;var Yn=i.useMemo(function(){for(var te=[],Q=function(E,ie){var he=Kt[E],Re=pt[he],we=d(d({},Re),{},{measureRef:function(Et){if(Et){var qt=Sn.current(Et,Ze);if(qt!==we.size){var An=ce.current.scrollOffset;we.start<An&&ve(An+(qt-we.size)),Tt.current.push(he),Ut(function(qn){var at;return d(d({},qn),{},(at={},at[we.key]=qt,at))})}}}});te.push(we)},ne=0,Oe=Kt.length;ne<Oe;ne++)Q(ne);return te},[Kt,ve,Ze,pt]),In=i.useRef(!1);pe(function(){In.current&&Ut({}),In.current=!0},[ee]);var Yt=i.useCallback(function(te,Q){var ne=Q===void 0?{}:Q,Oe=ne.align,ue=Oe===void 0?"start":Oe,E=ce.current,ie=E.scrollOffset,he=E.outerSize;ue==="auto"&&(te<=ie?ue="start":te>=ie+he?ue="end":ue="start"),ue==="start"?Ue(te):ue==="end"?Ue(te-he):ue==="center"&&Ue(te-he/2)},[Ue]),Xt=i.useCallback(function(te,Q){var ne=Q===void 0?{}:Q,Oe=ne.align,ue=Oe===void 0?"auto":Oe,E=U(ne,["align"]),ie=ce.current,he=ie.measurements,Re=ie.scrollOffset,we=ie.outerSize,lt=he[Math.max(0,Math.min(te,j-1))];if(lt){if(ue==="auto")if(lt.end>=Re+we)ue="end";else if(lt.start<=Re)ue="start";else return;var Et=ue==="center"?lt.start+lt.size/2:ue==="end"?lt.end:lt.start;Yt(Et,d({align:ue},E))}},[Yt,j]),Xn=i.useCallback(function(){for(var te=arguments.length,Q=new Array(te),ne=0;ne<te;ne++)Q[ne]=arguments[ne];Xt.apply(void 0,Q),requestAnimationFrame(function(){Xt.apply(void 0,Q)})},[Xt]);return{virtualItems:Yn,totalSize:zt,scrollToOffset:Yt,scrollToIndex:Xn,measure:wt}}var Ie=function(N,$,j,q){for(;N<=$;){var ee=(N+$)/2|0,xe=j(ee);if(xe<q)N=ee+1;else if(xe>q)$=ee-1;else return ee}return N>0?N-1:0};function Ot(R){for(var N=R.measurements,$=R.outerSize,j=R.scrollOffset,q=N.length-1,ee=function(fe){return N[fe].start},xe=Ie(0,q,ee,j),Ee=xe;Ee<q&&N[Ee].end<j+$;)Ee++;return{start:xe,end:Ee}}}}]);