@unchainedshop/admin-ui 4.8.31 → 4.8.32

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 (458) hide show
  1. package/out/403/index.html +3 -3
  2. package/out/404/index.html +3 -3
  3. package/out/404.html +3 -3
  4. package/out/423/index.html +3 -3
  5. package/out/500/index.html +3 -3
  6. package/out/_next/static/chunks/{0696190awbl-j.js → 0a5nr3-_q7xx1.js} +10 -10
  7. package/out/_next/static/chunks/{1m85ne6w_6tei.js → 11go520d1hcm5.js} +1 -1
  8. package/out/_next/static/chunks/{2-kvt9e7irukm.js → 182l1mlbf0glb.js} +1 -1
  9. package/out/_next/static/chunks/{09avk6mqdin_1.js → 1wnuiwsbi70eq.js} +1 -1
  10. package/out/_next/static/chunks/{0uls4bq8a7gyh.js → 2wmsx4gjbgvfv.js} +3 -3
  11. package/out/_next/static/chunks/{1_3e6x79fcyv3.js → 41p3ng89i5lem.js} +1 -1
  12. package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_buildManifest.js +2 -2
  13. package/out/_offline/index.html +3 -3
  14. package/out/account/forgot-password/index.html +3 -3
  15. package/out/account/index.html +3 -3
  16. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  17. package/out/assortments/index.html +3 -3
  18. package/out/assortments/new/index.html +3 -3
  19. package/out/copilot/index.html +3 -3
  20. package/out/country/CountryDetailPage/index.html +3 -3
  21. package/out/country/index.html +3 -3
  22. package/out/country/new/index.html +3 -3
  23. package/out/currency/CurrencyDetailPage/index.html +3 -3
  24. package/out/currency/index.html +3 -3
  25. package/out/currency/new/index.html +3 -3
  26. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  27. package/out/delivery-provider/index.html +3 -3
  28. package/out/delivery-provider/new/index.html +3 -3
  29. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  30. package/out/enrollments/index.html +3 -3
  31. package/out/events/EventDetailPage/index.html +3 -3
  32. package/out/events/index.html +3 -3
  33. package/out/exports/index.html +3 -3
  34. package/out/external/index.html +3 -3
  35. package/out/filters/FilterDetailPage/index.html +3 -3
  36. package/out/filters/index.html +3 -3
  37. package/out/filters/new/index.html +3 -3
  38. package/out/index.html +3 -3
  39. package/out/install/index.html +3 -3
  40. package/out/language/LanguageDetailPage/index.html +3 -3
  41. package/out/language/index.html +3 -3
  42. package/out/language/new/index.html +3 -3
  43. package/out/log-in/index.html +3 -3
  44. package/out/orders/OrderDetailPage/index.html +3 -3
  45. package/out/orders/index.html +3 -3
  46. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  47. package/out/payment-provider/index.html +3 -3
  48. package/out/payment-provider/new/index.html +3 -3
  49. package/out/products/ProductDetailPage/index.html +3 -3
  50. package/out/products/index.html +3 -3
  51. package/out/products/new/index.html +3 -3
  52. package/out/quotations/QuotationDetailPage/index.html +3 -3
  53. package/out/quotations/index.html +3 -3
  54. package/out/reset-password/index.html +3 -3
  55. package/out/sign-up/index.html +3 -3
  56. package/out/styleguide/index.html +3 -3
  57. package/out/tokens/TokenDetailPage/index.html +3 -3
  58. package/out/tokens/index.html +3 -3
  59. package/out/users/UserDetailPage/index.html +3 -3
  60. package/out/users/index.html +3 -3
  61. package/out/users/new/index.html +3 -3
  62. package/out/verify-email/index.html +3 -3
  63. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  64. package/out/warehousing-provider/index.html +3 -3
  65. package/out/warehousing-provider/new/index.html +3 -3
  66. package/out/works/WorkDetailPage/index.html +3 -3
  67. package/out/works/WorkQueueListView/index.html +3 -3
  68. package/out/works/index.html +3 -3
  69. package/out/works/management/index.html +3 -3
  70. package/package.json +31 -31
  71. package/dist/chunk-3L6EZQ6P.js +0 -135
  72. package/dist/chunk-54DKBWXV.js +0 -33
  73. package/dist/chunk-5WPFHQZN.js +0 -388
  74. package/dist/chunk-6UGLNLJG.js +0 -44
  75. package/dist/chunk-BMDNY67T.js +0 -22547
  76. package/dist/chunk-BOMSMJF2.js +0 -77
  77. package/dist/chunk-COV7BREX.js +0 -50
  78. package/dist/chunk-E77YIMGR.js +0 -2083
  79. package/dist/chunk-EJDZRZSZ.js +0 -59
  80. package/dist/chunk-ELPURWDC.js +0 -75
  81. package/dist/chunk-F6LBNV3H.js +0 -9
  82. package/dist/chunk-FDHXLNZQ.js +0 -44
  83. package/dist/chunk-GY2DRQGW.js +0 -166
  84. package/dist/chunk-HERLM47Z.js +0 -309
  85. package/dist/chunk-HJKRGBDG.js +0 -694
  86. package/dist/chunk-I64TXIE7.js +0 -618
  87. package/dist/chunk-IAQPLRXZ.js +0 -16
  88. package/dist/chunk-ICJH36K4.js +0 -326
  89. package/dist/chunk-ILYPJE4N.js +0 -57
  90. package/dist/chunk-IWKDBADX.js +0 -73
  91. package/dist/chunk-IXBMHOB5.js +0 -13
  92. package/dist/chunk-IYKPRAWC.js +0 -26
  93. package/dist/chunk-J23QSWDL.js +0 -8
  94. package/dist/chunk-KH5MK6ZW.js +0 -18
  95. package/dist/chunk-KRIRF7F6.js +0 -76
  96. package/dist/chunk-NT7RB7AK.js +0 -70
  97. package/dist/chunk-OKGJ6HDE.js +0 -26
  98. package/dist/chunk-OTXM2UCD.js +0 -19
  99. package/dist/chunk-PJLYVMUM.js +0 -3308
  100. package/dist/chunk-PUI5BIKO.js +0 -41
  101. package/dist/chunk-Q6S3LBUF.js +0 -180
  102. package/dist/chunk-QHR23GVH.js +0 -1099
  103. package/dist/chunk-QWQ3WJJN.js +0 -1
  104. package/dist/chunk-RAQV2GYF.js +0 -70
  105. package/dist/chunk-VBO377AY.js +0 -14
  106. package/dist/chunk-VYEXPG3M.js +0 -107
  107. package/dist/chunk-WPLOTFGW.js +0 -36
  108. package/dist/chunk-YO6PT7KD.js +0 -13
  109. package/dist/chunk-ZUOVKRKC.js +0 -957
  110. package/dist/components/ui/Accordion/Accordion.d.ts +0 -11
  111. package/dist/components/ui/Accordion/Accordion.d.ts.map +0 -1
  112. package/dist/components/ui/Accordion/AccordionHeader.d.ts +0 -6
  113. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +0 -1
  114. package/dist/components/ui/Accordion/AccordionItem.d.ts +0 -11
  115. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +0 -1
  116. package/dist/components/ui/ActiveInActive.d.ts +0 -10
  117. package/dist/components/ui/ActiveInActive.d.ts.map +0 -1
  118. package/dist/components/ui/AnimatedCounter.d.ts +0 -7
  119. package/dist/components/ui/AnimatedCounter.d.ts.map +0 -1
  120. package/dist/components/ui/Badge.d.ts +0 -10
  121. package/dist/components/ui/Badge.d.ts.map +0 -1
  122. package/dist/components/ui/BreadCrumbs.d.ts +0 -7
  123. package/dist/components/ui/BreadCrumbs.d.ts.map +0 -1
  124. package/dist/components/ui/Button.d.ts +0 -36
  125. package/dist/components/ui/Button.d.ts.map +0 -1
  126. package/dist/components/ui/CopyableText.d.ts +0 -5
  127. package/dist/components/ui/CopyableText.d.ts.map +0 -1
  128. package/dist/components/ui/DateInput.d.ts +0 -15
  129. package/dist/components/ui/DateInput.d.ts.map +0 -1
  130. package/dist/components/ui/DateRangeFilterInput.d.ts +0 -4
  131. package/dist/components/ui/DateRangeFilterInput.d.ts.map +0 -1
  132. package/dist/components/ui/DetailHeader.d.ts +0 -6
  133. package/dist/components/ui/DetailHeader.d.ts.map +0 -1
  134. package/dist/components/ui/DraggableIcon.d.ts +0 -3
  135. package/dist/components/ui/DraggableIcon.d.ts.map +0 -1
  136. package/dist/components/ui/ErrorBoundary.d.ts +0 -18
  137. package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
  138. package/dist/components/ui/ErrorFallback.d.ts +0 -6
  139. package/dist/components/ui/ErrorFallback.d.ts.map +0 -1
  140. package/dist/components/ui/HelpText.d.ts +0 -11
  141. package/dist/components/ui/HelpText.d.ts.map +0 -1
  142. package/dist/components/ui/ImageWithFallback.d.ts +0 -7
  143. package/dist/components/ui/ImageWithFallback.d.ts.map +0 -1
  144. package/dist/components/ui/InfoTextBanner.d.ts +0 -6
  145. package/dist/components/ui/InfoTextBanner.d.ts.map +0 -1
  146. package/dist/components/ui/JSONView.d.ts +0 -6
  147. package/dist/components/ui/JSONView.d.ts.map +0 -1
  148. package/dist/components/ui/ListHeader.d.ts +0 -6
  149. package/dist/components/ui/ListHeader.d.ts.map +0 -1
  150. package/dist/components/ui/Loading.d.ts +0 -10
  151. package/dist/components/ui/Loading.d.ts.map +0 -1
  152. package/dist/components/ui/NoData.d.ts +0 -7
  153. package/dist/components/ui/NoData.d.ts.map +0 -1
  154. package/dist/components/ui/NoImage.d.ts +0 -7
  155. package/dist/components/ui/NoImage.d.ts.map +0 -1
  156. package/dist/components/ui/NoImageSvg.d.ts +0 -8
  157. package/dist/components/ui/NoImageSvg.d.ts.map +0 -1
  158. package/dist/components/ui/PageHeader.d.ts +0 -11
  159. package/dist/components/ui/PageHeader.d.ts.map +0 -1
  160. package/dist/components/ui/Pagination.d.ts +0 -8
  161. package/dist/components/ui/Pagination.d.ts.map +0 -1
  162. package/dist/components/ui/Portal/Portal.d.ts +0 -16
  163. package/dist/components/ui/Portal/Portal.d.ts.map +0 -1
  164. package/dist/components/ui/Portal/Portal.types.d.ts +0 -16
  165. package/dist/components/ui/Portal/Portal.types.d.ts.map +0 -1
  166. package/dist/components/ui/SaveAndCancelButtons.d.ts +0 -10
  167. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +0 -1
  168. package/dist/components/ui/SearchField.d.ts +0 -7
  169. package/dist/components/ui/SearchField.d.ts.map +0 -1
  170. package/dist/components/ui/Tab.d.ts +0 -18
  171. package/dist/components/ui/Tab.d.ts.map +0 -1
  172. package/dist/components/ui/Tag/TagInput.d.ts +0 -19
  173. package/dist/components/ui/Tag/TagInput.d.ts.map +0 -1
  174. package/dist/components/ui/Tag/TagList.d.ts +0 -8
  175. package/dist/components/ui/Tag/TagList.d.ts.map +0 -1
  176. package/dist/components/ui/Tag/TagListForm.d.ts +0 -8
  177. package/dist/components/ui/Tag/TagListForm.d.ts.map +0 -1
  178. package/dist/components/ui/Toggle.d.ts +0 -11
  179. package/dist/components/ui/Toggle.d.ts.map +0 -1
  180. package/dist/components/ui/ToolTip.d.ts +0 -7
  181. package/dist/components/ui/ToolTip.d.ts.map +0 -1
  182. package/dist/components/ui/card.d.ts +0 -9
  183. package/dist/components/ui/card.d.ts.map +0 -1
  184. package/dist/components/ui/chart.d.ts +0 -42
  185. package/dist/components/ui/chart.d.ts.map +0 -1
  186. package/dist/components/ui/form/CheckboxField.d.ts +0 -4
  187. package/dist/components/ui/form/CheckboxField.d.ts.map +0 -1
  188. package/dist/components/ui/form/ChoicesField.d.ts +0 -12
  189. package/dist/components/ui/form/ChoicesField.d.ts.map +0 -1
  190. package/dist/components/ui/form/Combobox.d.ts +0 -20
  191. package/dist/components/ui/form/Combobox.d.ts.map +0 -1
  192. package/dist/components/ui/form/DatePickerField.d.ts +0 -4
  193. package/dist/components/ui/form/DatePickerField.d.ts.map +0 -1
  194. package/dist/components/ui/form/EmailField.d.ts +0 -7
  195. package/dist/components/ui/form/EmailField.d.ts.map +0 -1
  196. package/dist/components/ui/form/FieldWithHelp.d.ts +0 -10
  197. package/dist/components/ui/form/FieldWithHelp.d.ts.map +0 -1
  198. package/dist/components/ui/form/FieldWrapper.d.ts +0 -8
  199. package/dist/components/ui/form/FieldWrapper.d.ts.map +0 -1
  200. package/dist/components/ui/form/FormErrors.d.ts +0 -6
  201. package/dist/components/ui/form/FormErrors.d.ts.map +0 -1
  202. package/dist/components/ui/form/JSONAreaField.d.ts +0 -7
  203. package/dist/components/ui/form/JSONAreaField.d.ts.map +0 -1
  204. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +0 -8
  205. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +0 -1
  206. package/dist/components/ui/form/PasswordField.d.ts +0 -3
  207. package/dist/components/ui/form/PasswordField.d.ts.map +0 -1
  208. package/dist/components/ui/form/SelectField.d.ts +0 -11
  209. package/dist/components/ui/form/SelectField.d.ts.map +0 -1
  210. package/dist/components/ui/form/SubmitButton.d.ts +0 -9
  211. package/dist/components/ui/form/SubmitButton.d.ts.map +0 -1
  212. package/dist/components/ui/form/TagInputField.d.ts +0 -7
  213. package/dist/components/ui/form/TagInputField.d.ts.map +0 -1
  214. package/dist/components/ui/form/TextAreaField.d.ts +0 -8
  215. package/dist/components/ui/form/TextAreaField.d.ts.map +0 -1
  216. package/dist/components/ui/form/TextField.d.ts +0 -10
  217. package/dist/components/ui/form/TextField.d.ts.map +0 -1
  218. package/dist/components/ui/form/index.d.ts +0 -18
  219. package/dist/components/ui/form/index.d.ts.map +0 -1
  220. package/dist/components/ui/icons.d.ts +0 -4
  221. package/dist/components/ui/icons.d.ts.map +0 -1
  222. package/dist/components/ui/index.d.ts +0 -47
  223. package/dist/components/ui/index.d.ts.map +0 -1
  224. package/dist/form.js +0 -2617
  225. package/dist/gql/operation-types.d.ts +0 -13239
  226. package/dist/gql/operation-types.d.ts.map +0 -1
  227. package/dist/gql/schema-types.d.ts +0 -3876
  228. package/dist/gql/schema-types.d.ts.map +0 -1
  229. package/dist/gql/types.d.ts +0 -3
  230. package/dist/gql/types.d.ts.map +0 -1
  231. package/dist/hooks.js +0 -49
  232. package/dist/lib/utils.d.ts +0 -3
  233. package/dist/lib/utils.d.ts.map +0 -1
  234. package/dist/modal.js +0 -51
  235. package/dist/modules/Auth/AuthContext.d.ts +0 -9
  236. package/dist/modules/Auth/AuthContext.d.ts.map +0 -1
  237. package/dist/modules/Auth/useAuth.d.ts +0 -6
  238. package/dist/modules/Auth/useAuth.d.ts.map +0 -1
  239. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +0 -8
  240. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +0 -1
  241. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +0 -7
  242. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +0 -1
  243. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +0 -3
  244. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +0 -1
  245. package/dist/modules/accounts/fragment/UserFragment.d.ts +0 -3
  246. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +0 -1
  247. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +0 -10
  248. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +0 -1
  249. package/dist/modules/accounts/hooks/useUsersCount.d.ts +0 -8
  250. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +0 -1
  251. package/dist/modules/accounts.js +0 -1349
  252. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +0 -8
  253. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +0 -1
  254. package/dist/modules/assortment.js +0 -1205
  255. package/dist/modules/common/components/AppContext.d.ts +0 -18
  256. package/dist/modules/common/components/AppContext.d.ts.map +0 -1
  257. package/dist/modules/common/components/FormWrapper.d.ts +0 -8
  258. package/dist/modules/common/components/FormWrapper.d.ts.map +0 -1
  259. package/dist/modules/common/components/LocaleWrapper.d.ts +0 -7
  260. package/dist/modules/common/components/LocaleWrapper.d.ts.map +0 -1
  261. package/dist/modules/common/components/MediaAvatar.d.ts +0 -6
  262. package/dist/modules/common/components/MediaAvatar.d.ts.map +0 -1
  263. package/dist/modules/common/components/SelectOptions.d.ts +0 -17
  264. package/dist/modules/common/components/SelectOptions.d.ts.map +0 -1
  265. package/dist/modules/common/components/Table.d.ts +0 -25
  266. package/dist/modules/common/components/Table.d.ts.map +0 -1
  267. package/dist/modules/common/components/TableCell.d.ts +0 -12
  268. package/dist/modules/common/components/TableCell.d.ts.map +0 -1
  269. package/dist/modules/common/components/TableRow.d.ts +0 -10
  270. package/dist/modules/common/components/TableRow.d.ts.map +0 -1
  271. package/dist/modules/common/components/ThemeWrapper.d.ts +0 -10
  272. package/dist/modules/common/components/ThemeWrapper.d.ts.map +0 -1
  273. package/dist/modules/common/data/iso-codes.d.ts +0 -4
  274. package/dist/modules/common/data/iso-codes.d.ts.map +0 -1
  275. package/dist/modules/common/data/miscellaneous.d.ts +0 -52
  276. package/dist/modules/common/data/miscellaneous.d.ts.map +0 -1
  277. package/dist/modules/common/fragments/AddressFragment.d.ts +0 -3
  278. package/dist/modules/common/fragments/AddressFragment.d.ts.map +0 -1
  279. package/dist/modules/common/hooks/useApp.d.ts +0 -11
  280. package/dist/modules/common/hooks/useApp.d.ts.map +0 -1
  281. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +0 -8
  282. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +0 -1
  283. package/dist/modules/common/hooks/useBulkSelection.d.ts +0 -12
  284. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +0 -1
  285. package/dist/modules/common/hooks/useCSVExport.d.ts +0 -10
  286. package/dist/modules/common/hooks/useCSVExport.d.ts.map +0 -1
  287. package/dist/modules/common/hooks/useCSVImport.d.ts +0 -18
  288. package/dist/modules/common/hooks/useCSVImport.d.ts.map +0 -1
  289. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +0 -5
  290. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +0 -1
  291. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +0 -10
  292. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +0 -1
  293. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +0 -23
  294. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +0 -1
  295. package/dist/modules/common/hooks/useLocalStorage.d.ts +0 -3
  296. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +0 -1
  297. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +0 -25
  298. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +0 -1
  299. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +0 -16
  300. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +0 -1
  301. package/dist/modules/common/hooks/useOutsideClick.d.ts +0 -3
  302. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +0 -1
  303. package/dist/modules/common/hooks/usePortal.d.ts +0 -20
  304. package/dist/modules/common/hooks/usePortal.d.ts.map +0 -1
  305. package/dist/modules/common/hooks/useScrollRestoration.d.ts +0 -8
  306. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +0 -1
  307. package/dist/modules/common/hooks/useShopConfiguration.d.ts +0 -8
  308. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +0 -1
  309. package/dist/modules/common/hooks/useShopInfo.d.ts +0 -41
  310. package/dist/modules/common/hooks/useShopInfo.d.ts.map +0 -1
  311. package/dist/modules/common/hooks/useStatusTypes.d.ts +0 -10
  312. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +0 -1
  313. package/dist/modules/common/hooks/useSystemRoles.d.ts +0 -7
  314. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +0 -1
  315. package/dist/modules/common/hooks/useTheme.d.ts +0 -7
  316. package/dist/modules/common/hooks/useTheme.d.ts.map +0 -1
  317. package/dist/modules/common/utils/deBounce.d.ts +0 -3
  318. package/dist/modules/common/utils/deBounce.d.ts.map +0 -1
  319. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +0 -7
  320. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +0 -1
  321. package/dist/modules/common/utils/formatUsername.d.ts +0 -3
  322. package/dist/modules/common/utils/formatUsername.d.ts.map +0 -1
  323. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +0 -30
  324. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +0 -1
  325. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +0 -4
  326. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +0 -1
  327. package/dist/modules/common/utils/sharedContext.d.ts +0 -9
  328. package/dist/modules/common/utils/sharedContext.d.ts.map +0 -1
  329. package/dist/modules/common/utils/useFormatDateTime.d.ts +0 -16
  330. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +0 -1
  331. package/dist/modules/common/utils/utils.d.ts +0 -21
  332. package/dist/modules/common/utils/utils.d.ts.map +0 -1
  333. package/dist/modules/country/fragments/CountryFragment.d.ts +0 -3
  334. package/dist/modules/country/fragments/CountryFragment.d.ts.map +0 -1
  335. package/dist/modules/country/hooks/useCountries.d.ts +0 -22
  336. package/dist/modules/country/hooks/useCountries.d.ts.map +0 -1
  337. package/dist/modules/country.js +0 -108
  338. package/dist/modules/currency.js +0 -119
  339. package/dist/modules/delivery-provider.js +0 -269
  340. package/dist/modules/enrollment.js +0 -431
  341. package/dist/modules/event.js +0 -123
  342. package/dist/modules/filter.js +0 -497
  343. package/dist/modules/forms/components/Form.d.ts +0 -8
  344. package/dist/modules/forms/components/Form.d.ts.map +0 -1
  345. package/dist/modules/forms/hooks/useField.d.ts +0 -35
  346. package/dist/modules/forms/hooks/useField.d.ts.map +0 -1
  347. package/dist/modules/forms/hooks/useForm.d.ts +0 -44
  348. package/dist/modules/forms/hooks/useForm.d.ts.map +0 -1
  349. package/dist/modules/forms/hooks/useFormContext.d.ts +0 -3
  350. package/dist/modules/forms/hooks/useFormContext.d.ts.map +0 -1
  351. package/dist/modules/forms/lib/FormContext.d.ts +0 -13
  352. package/dist/modules/forms/lib/FormContext.d.ts.map +0 -1
  353. package/dist/modules/forms/lib/clean.d.ts +0 -3
  354. package/dist/modules/forms/lib/clean.d.ts.map +0 -1
  355. package/dist/modules/forms/lib/validators.d.ts +0 -20
  356. package/dist/modules/forms/lib/validators.d.ts.map +0 -1
  357. package/dist/modules/language/fragments/LanguageFragment.d.ts +0 -3
  358. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +0 -1
  359. package/dist/modules/language/hooks/useLanguages.d.ts +0 -19
  360. package/dist/modules/language/hooks/useLanguages.d.ts.map +0 -1
  361. package/dist/modules/language.js +0 -106
  362. package/dist/modules/modal/components/AlertMessage.d.ts +0 -9
  363. package/dist/modules/modal/components/AlertMessage.d.ts.map +0 -1
  364. package/dist/modules/modal/components/DangerMessage.d.ts +0 -13
  365. package/dist/modules/modal/components/DangerMessage.d.ts.map +0 -1
  366. package/dist/modules/modal/components/ImportResultMessage.d.ts +0 -14
  367. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +0 -1
  368. package/dist/modules/modal/components/Modal.d.ts +0 -10
  369. package/dist/modules/modal/components/Modal.d.ts.map +0 -1
  370. package/dist/modules/modal/components/ModalWrapper.d.ts +0 -6
  371. package/dist/modules/modal/components/ModalWrapper.d.ts.map +0 -1
  372. package/dist/modules/modal/hooks/useModal.d.ts +0 -7
  373. package/dist/modules/modal/hooks/useModal.d.ts.map +0 -1
  374. package/dist/modules/modal/utils/ModalContext.d.ts +0 -9
  375. package/dist/modules/modal/utils/ModalContext.d.ts.map +0 -1
  376. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +0 -3
  377. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +0 -1
  378. package/dist/modules/order/fragments/OrderFragment.d.ts +0 -3
  379. package/dist/modules/order/fragments/OrderFragment.d.ts.map +0 -1
  380. package/dist/modules/order/hooks/useOrders.d.ts +0 -46
  381. package/dist/modules/order/hooks/useOrders.d.ts.map +0 -1
  382. package/dist/modules/order.js +0 -569
  383. package/dist/modules/payment-providers.js +0 -206
  384. package/dist/modules/product/hooks/useProductsCount.d.ts +0 -8
  385. package/dist/modules/product/hooks/useProductsCount.d.ts.map +0 -1
  386. package/dist/modules/product-review.js +0 -270
  387. package/dist/modules/product.js +0 -6914
  388. package/dist/modules/quotation.js +0 -324
  389. package/dist/modules/token.js +0 -143
  390. package/dist/modules/warehousing-providers.js +0 -206
  391. package/dist/modules/work/fragments/WorkFragment.d.ts +0 -3
  392. package/dist/modules/work/fragments/WorkFragment.d.ts.map +0 -1
  393. package/dist/modules/work/hooks/useAddWork.d.ts +0 -6
  394. package/dist/modules/work/hooks/useAddWork.d.ts.map +0 -1
  395. package/dist/modules/work/hooks/useWork.d.ts +0 -32
  396. package/dist/modules/work/hooks/useWork.d.ts.map +0 -1
  397. package/dist/modules/work.js +0 -232
  398. package/dist/plugins.js +0 -13
  399. package/dist/providers.js +0 -9
  400. package/dist/sdk/hooks.d.ts +0 -12
  401. package/dist/sdk/hooks.d.ts.map +0 -1
  402. package/dist/sdk/modal.d.ts +0 -7
  403. package/dist/sdk/modal.d.ts.map +0 -1
  404. package/dist/sdk/plugins.d.ts +0 -78
  405. package/dist/sdk/plugins.d.ts.map +0 -1
  406. package/dist/sdk/providers.d.ts +0 -5
  407. package/dist/sdk/providers.d.ts.map +0 -1
  408. package/dist/sdk/shims/admin-ui-plugins.d.ts +0 -3
  409. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +0 -1
  410. package/dist/sdk/shims/apollo-client-react.d.ts +0 -3
  411. package/dist/sdk/shims/apollo-client-react.d.ts.map +0 -1
  412. package/dist/sdk/shims/apollo-client.d.ts +0 -3
  413. package/dist/sdk/shims/apollo-client.d.ts.map +0 -1
  414. package/dist/sdk/shims/host.d.ts +0 -17
  415. package/dist/sdk/shims/host.d.ts.map +0 -1
  416. package/dist/sdk/shims/next-head.d.ts +0 -3
  417. package/dist/sdk/shims/next-head.d.ts.map +0 -1
  418. package/dist/sdk/shims/next-image.d.ts +0 -3
  419. package/dist/sdk/shims/next-image.d.ts.map +0 -1
  420. package/dist/sdk/shims/next-link.d.ts +0 -3
  421. package/dist/sdk/shims/next-link.d.ts.map +0 -1
  422. package/dist/sdk/shims/next-router.d.ts +0 -3
  423. package/dist/sdk/shims/next-router.d.ts.map +0 -1
  424. package/dist/sdk/shims/react-dom-client.d.ts +0 -3
  425. package/dist/sdk/shims/react-dom-client.d.ts.map +0 -1
  426. package/dist/sdk/shims/react-dom.d.ts +0 -3
  427. package/dist/sdk/shims/react-dom.d.ts.map +0 -1
  428. package/dist/sdk/shims/react-hook-form.d.ts +0 -3
  429. package/dist/sdk/shims/react-hook-form.d.ts.map +0 -1
  430. package/dist/sdk/shims/react-intl.d.ts +0 -3
  431. package/dist/sdk/shims/react-intl.d.ts.map +0 -1
  432. package/dist/sdk/shims/react-jsx-runtime.d.ts +0 -3
  433. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +0 -1
  434. package/dist/sdk/shims/react-toastify.d.ts +0 -3
  435. package/dist/sdk/shims/react-toastify.d.ts.map +0 -1
  436. package/dist/sdk/shims/react.d.ts +0 -3
  437. package/dist/sdk/shims/react.d.ts.map +0 -1
  438. package/dist/sdk/theme.d.ts +0 -26
  439. package/dist/sdk/theme.d.ts.map +0 -1
  440. package/dist/shims/admin-ui-plugins.js +0 -9
  441. package/dist/shims/apollo-client-react.js +0 -25
  442. package/dist/shims/apollo-client.js +0 -55
  443. package/dist/shims/next-head.js +0 -9
  444. package/dist/shims/next-image.js +0 -9
  445. package/dist/shims/next-link.js +0 -9
  446. package/dist/shims/next-router.js +0 -13
  447. package/dist/shims/react-dom-client.js +0 -11
  448. package/dist/shims/react-dom.js +0 -22
  449. package/dist/shims/react-hook-form.js +0 -25
  450. package/dist/shims/react-intl.js +0 -37
  451. package/dist/shims/react-jsx-runtime.js +0 -11
  452. package/dist/shims/react-toastify.js +0 -16
  453. package/dist/shims/react.js +0 -52
  454. package/dist/theme.js +0 -34
  455. package/dist/ui.js +0 -19764
  456. package/out/manifest.json +0 -48
  457. /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_clientMiddlewareManifest.js +0 -0
  458. /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_ssgManifest.js +0 -0
@@ -1,388 +0,0 @@
1
- import { Ke, Oe, f as f$1 } from './chunk-3L6EZQ6P.js';
2
- import { E, m, n as n$1 } from './chunk-FDHXLNZQ.js';
3
- import { Y, r, u3, i3, y, u2, o2, l3, oe, y2, x, n, S, k3, f2, p2, H, n2, K, s4, l4 as l4$1, le, B, A, M, n3, u, v, T2, I, p, f, s2, l, t3, o4, d, w2 as w2$1, c2, t, A2, s3, i } from './chunk-QHR23GVH.js';
4
- import { ModalContext_default } from './chunk-VBO377AY.js';
5
- import l4, { createContext, useRef, useReducer, createRef, useCallback, useMemo, useContext, useState, Fragment, useEffect } from 'react';
6
- import { useIntl } from 'react-intl';
7
- import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
8
-
9
- var e = createContext(() => {
10
- });
11
- function C({ value: t3, children: o4 }) {
12
- return l4.createElement(e.Provider, { value: t3 }, o4);
13
- }
14
-
15
- // ../node_modules/@headlessui/react/dist/hooks/use-escape.js
16
- function a(o4$1, r3 = typeof document != "undefined" ? document.defaultView : null, t3) {
17
- let n6 = I(o4$1, "escape");
18
- E(r3, "keydown", (e2) => {
19
- n6 && (e2.defaultPrevented || e2.key === o4.Escape && t3(e2));
20
- });
21
- }
22
- function f4() {
23
- var t3;
24
- let [e2] = useState(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [o4, c2] = useState((t3 = e2 == null ? void 0 : e2.matches) != null ? t3 : false);
25
- return n(() => {
26
- if (!e2) return;
27
- function n6(r3) {
28
- c2(r3.matches);
29
- }
30
- return e2.addEventListener("change", n6), () => e2.removeEventListener("change", n6);
31
- }, [e2]), o4;
32
- }
33
- function S2({ defaultContainers: l5 = [], portals: n6, mainTreeNode: o4 } = {}) {
34
- let c2 = o2(() => {
35
- var r3, u5;
36
- let i5 = l(o4), t3$1 = [];
37
- for (let e2 of l5) e2 !== null && (t3(e2) ? t3$1.push(e2) : "current" in e2 && t3(e2.current) && t3$1.push(e2.current));
38
- if (n6 != null && n6.current) for (let e2 of n6.current) t3$1.push(e2);
39
- for (let e2 of (r3 = i5 == null ? void 0 : i5.querySelectorAll("html > *, body > *")) != null ? r3 : []) e2 !== document.body && e2 !== document.head && t3(e2) && e2.id !== "headlessui-portal-root" && (o4 && (e2.contains(o4) || e2.contains((u5 = o4 == null ? void 0 : o4.getRootNode()) == null ? void 0 : u5.host)) || t3$1.some((E2) => e2.contains(E2)) || t3$1.push(e2));
40
- return t3$1;
41
- });
42
- return { resolveContainers: c2, contains: o2((i5) => c2().some((t3) => t3.contains(i5))) };
43
- }
44
- var d2 = createContext(null);
45
- function j({ children: l5, node: n6 }) {
46
- let [o4, c2] = useState(null), i5 = x2(n6 != null ? n6 : o4);
47
- return l4.createElement(d2.Provider, { value: i5 }, l5, i5 === null && l4.createElement(f, { features: s2.Hidden, ref: (t3$1) => {
48
- var r3, u5;
49
- if (t3$1) {
50
- for (let e2 of (u5 = (r3 = l(t3$1)) == null ? void 0 : r3.querySelectorAll("html > *, body > *")) != null ? u5 : []) if (e2 !== document.body && e2 !== document.head && t3(e2) && e2 != null && e2.contains(t3$1)) {
51
- c2(e2);
52
- break;
53
- }
54
- }
55
- } }));
56
- }
57
- function x2(l5 = null) {
58
- var n6;
59
- return (n6 = useContext(d2)) != null ? n6 : l5;
60
- }
61
- var a2 = ((r3) => (r3[r3.Forwards = 0] = "Forwards", r3[r3.Backwards = 1] = "Backwards", r3))(a2 || {});
62
- function u4() {
63
- let e2 = useRef(0);
64
- return s3(true, "keydown", (r3) => {
65
- r3.key === "Tab" && (e2.current = r3.shiftKey ? 1 : 0);
66
- }, true), e2;
67
- }
68
-
69
- // ../node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js
70
- function x3(o4) {
71
- if (!o4) return /* @__PURE__ */ new Set();
72
- if (typeof o4 == "function") return new Set(o4());
73
- let t3$1 = /* @__PURE__ */ new Set();
74
- for (let e2 of o4.current) t3(e2.current) && t3$1.add(e2.current);
75
- return t3$1;
76
- }
77
- var $ = "div";
78
- var G = ((n6) => (n6[n6.None = 0] = "None", n6[n6.InitialFocus = 1] = "InitialFocus", n6[n6.TabLock = 2] = "TabLock", n6[n6.FocusLock = 4] = "FocusLock", n6[n6.RestoreFocus = 8] = "RestoreFocus", n6[n6.AutoFocus = 16] = "AutoFocus", n6))(G || {});
79
- function w2(o4, t3) {
80
- let e2 = useRef(null), r3 = y(e2, t3), { initialFocus: u5, initialFocusFallback: a3, containers: n6, features: s5 = 15, ...f5 } = o4;
81
- l3() || (s5 = 0);
82
- let l5 = u2(e2.current);
83
- re(s5, { ownerDocument: l5 });
84
- let T2$1 = ne(s5, { ownerDocument: l5, container: e2, initialFocus: u5, initialFocusFallback: a3 });
85
- oe2(s5, { ownerDocument: l5, container: e2, containers: n6, previousActiveElement: T2$1 });
86
- let g = u4(), A3 = o2((c2) => {
87
- if (!n3(e2.current)) return;
88
- let E2 = e2.current;
89
- ((V) => V())(() => {
90
- u(g.current, { [a2.Forwards]: () => {
91
- v(E2, T2.First, { skipElements: [c2.relatedTarget, a3] });
92
- }, [a2.Backwards]: () => {
93
- v(E2, T2.Last, { skipElements: [c2.relatedTarget, a3] });
94
- } });
95
- });
96
- }), v2 = I(!!(s5 & 2), "focus-trap#tab-lock"), N = p(), b2 = useRef(false), k2 = { ref: r3, onKeyDown(c2) {
97
- c2.key == "Tab" && (b2.current = true, N.requestAnimationFrame(() => {
98
- b2.current = false;
99
- }));
100
- }, onBlur(c2) {
101
- if (!(s5 & 4)) return;
102
- let E2 = x3(n6);
103
- n3(e2.current) && E2.add(e2.current);
104
- let L = c2.relatedTarget;
105
- i(L) && L.dataset.headlessuiFocusGuard !== "true" && (I2(E2, L) || (b2.current ? v(e2.current, u(g.current, { [a2.Forwards]: () => T2.Next, [a2.Backwards]: () => T2.Previous }) | T2.WrapAround, { relativeTo: c2.target }) : i(c2.target) && w2$1(c2.target)));
106
- } }, B2 = K();
107
- return l4.createElement(l4.Fragment, null, v2 && l4.createElement(f, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: A3, features: s2.Focusable }), B2({ ourProps: k2, theirProps: f5, defaultTag: $, name: "FocusTrap" }), v2 && l4.createElement(f, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: A3, features: s2.Focusable }));
108
- }
109
- var ee = Y(w2);
110
- var ge = Object.assign(ee, { features: G });
111
- function te(o4 = true) {
112
- let t3 = useRef(n$1.slice());
113
- return m(([e2], [r3]) => {
114
- r3 === true && e2 === false && t(() => {
115
- t3.current.splice(0);
116
- }), r3 === false && e2 === true && (t3.current = n$1.slice());
117
- }, [o4, n$1, t3]), o2(() => {
118
- var e2;
119
- return (e2 = t3.current.find((r3) => r3 != null && r3.isConnected)) != null ? e2 : null;
120
- });
121
- }
122
- function re(o4, { ownerDocument: t3 }) {
123
- let e2 = !!(o4 & 8), r3 = te(e2);
124
- m(() => {
125
- e2 || d(t3 == null ? void 0 : t3.body) && w2$1(r3());
126
- }, [e2]), c2(() => {
127
- e2 && w2$1(r3());
128
- });
129
- }
130
- function ne(o4, { ownerDocument: t3, container: e2, initialFocus: r3, initialFocusFallback: u5 }) {
131
- let a3 = useRef(null), n6 = I(!!(o4 & 1), "focus-trap#initial-focus"), s5 = f$1();
132
- return m(() => {
133
- if (o4 === 0) return;
134
- if (!n6) {
135
- u5 != null && u5.current && w2$1(u5.current);
136
- return;
137
- }
138
- let f5 = e2.current;
139
- f5 && t(() => {
140
- if (!s5.current) return;
141
- let l5 = t3 == null ? void 0 : t3.activeElement;
142
- if (r3 != null && r3.current) {
143
- if ((r3 == null ? void 0 : r3.current) === l5) {
144
- a3.current = l5;
145
- return;
146
- }
147
- } else if (f5.contains(l5)) {
148
- a3.current = l5;
149
- return;
150
- }
151
- if (r3 != null && r3.current) w2$1(r3.current);
152
- else {
153
- if (o4 & 16) {
154
- if (v(f5, T2.First | T2.AutoFocus) !== A2.Error) return;
155
- } else if (v(f5, T2.First) !== A2.Error) return;
156
- if (u5 != null && u5.current && (w2$1(u5.current), (t3 == null ? void 0 : t3.activeElement) === u5.current)) return;
157
- console.warn("There are no focusable elements inside the <FocusTrap />");
158
- }
159
- a3.current = t3 == null ? void 0 : t3.activeElement;
160
- });
161
- }, [u5, n6, o4]), a3;
162
- }
163
- function oe2(o4, { ownerDocument: t3, container: e2, containers: r3, previousActiveElement: u5 }) {
164
- let a3 = f$1(), n6 = !!(o4 & 4);
165
- E(t3 == null ? void 0 : t3.defaultView, "focus", (s5) => {
166
- if (!n6 || !a3.current) return;
167
- let f5 = x3(r3);
168
- n3(e2.current) && f5.add(e2.current);
169
- let l5 = u5.current;
170
- if (!l5) return;
171
- let T2 = s5.target;
172
- n3(T2) ? I2(f5, T2) ? (u5.current = T2, w2$1(T2)) : (s5.preventDefault(), s5.stopPropagation(), w2$1(l5)) : w2$1(u5.current);
173
- }, true);
174
- }
175
- function I2(o4, t3) {
176
- for (let e2 of o4) if (e2.contains(t3)) return true;
177
- return false;
178
- }
179
-
180
- // ../node_modules/@headlessui/react/dist/components/dialog/dialog.js
181
- var we = ((o4) => (o4[o4.Open = 0] = "Open", o4[o4.Closed = 1] = "Closed", o4))(we || {});
182
- var Be = ((t3) => (t3[t3.SetTitleId = 0] = "SetTitleId", t3))(Be || {});
183
- var Ue = { [0](e2, t3) {
184
- return e2.titleId === t3.id ? e2 : { ...e2, titleId: t3.id };
185
- } };
186
- var w3 = createContext(null);
187
- w3.displayName = "DialogContext";
188
- function O(e2) {
189
- let t3 = useContext(w3);
190
- if (t3 === null) {
191
- let o4 = new Error(`<${e2} /> is missing a parent <Dialog /> component.`);
192
- throw Error.captureStackTrace && Error.captureStackTrace(o4, O), o4;
193
- }
194
- return t3;
195
- }
196
- function He(e2, t3) {
197
- return u(t3.type, Ue, e2, t3);
198
- }
199
- var z = Y(function(t3, o4) {
200
- let a3 = r(), { id: n6 = `headlessui-dialog-${a3}`, open: i5, onClose: p4, initialFocus: d3, role: s5 = "dialog", autoFocus: f5 = true, __demoMode: u5 = false, unmount: y3 = false, ...S3 } = t3, R = useRef(false);
201
- s5 = (function() {
202
- return s5 === "dialog" || s5 === "alertdialog" ? s5 : (R.current || (R.current = true, console.warn(`Invalid role [${s5}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
203
- })();
204
- let g = u3();
205
- i5 === void 0 && g !== null && (i5 = (g & i3.Open) === i3.Open);
206
- let T2 = useRef(null), I3 = y(T2, o4), F2 = u2(T2.current), c2 = i5 ? 0 : 1, [b2, Q] = useReducer(He, { titleId: null, descriptionId: null, panelRef: createRef() }), m2 = o2(() => p4(false)), B2 = o2((r3) => Q({ type: 0, id: r3 })), D = l3() ? c2 === 0 : false, [Z, ee2] = oe(), te2 = { get current() {
207
- var r3;
208
- return (r3 = b2.panelRef.current) != null ? r3 : T2.current;
209
- } }, v2 = x2(), { resolveContainers: M3 } = S2({ mainTreeNode: v2, portals: Z, defaultContainers: [te2] }), U = g !== null ? (g & i3.Closing) === i3.Closing : false;
210
- y2(u5 || U ? false : D, { allowed: o2(() => {
211
- var r3, W;
212
- return [(W = (r3 = T2.current) == null ? void 0 : r3.closest("[data-headlessui-portal]")) != null ? W : null];
213
- }), disallowed: o2(() => {
214
- var r3;
215
- return [(r3 = v2 == null ? void 0 : v2.closest("body > *:not(#headlessui-portal-root)")) != null ? r3 : null];
216
- }) });
217
- let P = x.get(null);
218
- n(() => {
219
- if (D) return P.actions.push(n6), () => P.actions.pop(n6);
220
- }, [P, n6, D]);
221
- let H2 = S(P, useCallback((r3) => P.selectors.isTop(r3, n6), [P, n6]));
222
- k3(H2, M3, (r3) => {
223
- r3.preventDefault(), m2();
224
- }), a(H2, F2 == null ? void 0 : F2.defaultView, (r3) => {
225
- r3.preventDefault(), r3.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), m2();
226
- }), f2(u5 || U ? false : D, F2, M3), p2(D, T2, m2);
227
- let [oe3, ne2] = H(), re2 = useMemo(() => [{ dialogState: c2, close: m2, setTitleId: B2, unmount: y3 }, b2], [c2, m2, B2, y3, b2]), N = n2({ open: c2 === 0 }), le2 = { ref: I3, id: n6, role: s5, tabIndex: -1, "aria-modal": u5 ? void 0 : c2 === 0 ? true : void 0, "aria-labelledby": b2.titleId, "aria-describedby": oe3, unmount: y3 }, ae = !f4(), E2 = G.None;
228
- D && !u5 && (E2 |= G.RestoreFocus, E2 |= G.TabLock, f5 && (E2 |= G.AutoFocus), ae && (E2 |= G.InitialFocus));
229
- let ie = K();
230
- return l4.createElement(s4, null, l4.createElement(l4$1, { force: true }, l4.createElement(le, null, l4.createElement(w3.Provider, { value: re2 }, l4.createElement(B, { target: T2 }, l4.createElement(l4$1, { force: false }, l4.createElement(ne2, { slot: N }, l4.createElement(ee2, null, l4.createElement(ge, { initialFocus: d3, initialFocusFallback: T2, containers: M3, features: E2 }, l4.createElement(C, { value: m2 }, ie({ ourProps: le2, theirProps: S3, slot: N, defaultTag: Ne, features: We, visible: c2 === 0, name: "Dialog" })))))))))));
231
- });
232
- var Ne = "div";
233
- var We = A.RenderStrategy | A.Static;
234
- function $e(e2, t3) {
235
- let { transition: o4 = false, open: a3, ...n6 } = e2, i5 = u3(), p4 = e2.hasOwnProperty("open") || i5 !== null, d3 = e2.hasOwnProperty("onClose");
236
- if (!p4 && !d3) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
237
- if (!p4) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
238
- if (!d3) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
239
- if (!i5 && typeof e2.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e2.open}`);
240
- if (typeof e2.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e2.onClose}`);
241
- return (a3 !== void 0 || o4) && !n6.static ? l4.createElement(j, null, l4.createElement(Ke, { show: a3, transition: o4, unmount: n6.unmount }, l4.createElement(z, { ref: t3, ...n6 }))) : l4.createElement(j, null, l4.createElement(z, { ref: t3, open: a3, ...n6 }));
242
- }
243
- var je = "div";
244
- function Ye(e2, t3) {
245
- let o4 = r(), { id: a3 = `headlessui-dialog-panel-${o4}`, transition: n6 = false, ...i5 } = e2, [{ dialogState: p4, unmount: d3 }, s5] = O("Dialog.Panel"), f5 = y(t3, s5.panelRef), u5 = n2({ open: p4 === 0 }), y3 = o2((I3) => {
246
- I3.stopPropagation();
247
- }), S3 = { ref: f5, id: a3, onClick: y3 }, R = n6 ? Oe : Fragment, g = n6 ? { unmount: d3 } : {}, T2 = K();
248
- return l4.createElement(R, { ...g }, T2({ ourProps: S3, theirProps: i5, slot: u5, defaultTag: je, name: "Dialog.Panel" }));
249
- }
250
- var Je = "div";
251
- function Ke2(e2, t3) {
252
- let { transition: o4 = false, ...a3 } = e2, [{ dialogState: n6, unmount: i5 }] = O("Dialog.Backdrop"), p4 = n2({ open: n6 === 0 }), d3 = { ref: t3, "aria-hidden": true }, s5 = o4 ? Oe : Fragment, f5 = o4 ? { unmount: i5 } : {}, u5 = K();
253
- return l4.createElement(s5, { ...f5 }, u5({ ourProps: d3, theirProps: a3, slot: p4, defaultTag: Je, name: "Dialog.Backdrop" }));
254
- }
255
- var Xe = "h2";
256
- function Ve(e2, t3) {
257
- let o4 = r(), { id: a3 = `headlessui-dialog-title-${o4}`, ...n6 } = e2, [{ dialogState: i5, setTitleId: p4 }] = O("Dialog.Title"), d3 = y(t3);
258
- useEffect(() => (p4(a3), () => p4(null)), [a3, p4]);
259
- let s5 = n2({ open: i5 === 0 }), f5 = { ref: d3, id: a3 };
260
- return K()({ ourProps: f5, theirProps: n6, slot: s5, defaultTag: Xe, name: "Dialog.Title" });
261
- }
262
- var qe = Y($e);
263
- var ze = Y(Ye);
264
- Y(Ke2);
265
- var Qe = Y(Ve);
266
- var ht = Object.assign(qe, { Panel: ze, Title: Qe, Description: M });
267
- var Modal = ({
268
- onClose: close,
269
- children,
270
- visible = false,
271
- closeOnOutsideClick = false
272
- }) => {
273
- const intl = useIntl();
274
- const handleClose = () => {
275
- if (closeOnOutsideClick && close) {
276
- close();
277
- }
278
- };
279
- return /* @__PURE__ */ jsx(Ke, { show: visible, children: /* @__PURE__ */ jsxs(ht, { onClose: handleClose, className: "relative z-50", children: [
280
- /* @__PURE__ */ jsx(
281
- Oe,
282
- {
283
- enter: "ease-out duration-200",
284
- enterFrom: "opacity-0",
285
- enterTo: "opacity-100",
286
- leave: "ease-in duration-150",
287
- leaveFrom: "opacity-100",
288
- leaveTo: "opacity-0",
289
- children: /* @__PURE__ */ jsx(
290
- "div",
291
- {
292
- className: "fixed inset-0 bg-slate-950/60 backdrop-blur-sm",
293
- "aria-hidden": "true"
294
- }
295
- )
296
- }
297
- ),
298
- /* @__PURE__ */ jsx("div", { className: "fixed inset-0 overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ jsx(
299
- Oe,
300
- {
301
- enter: "ease-out duration-200",
302
- enterFrom: "opacity-0 scale-95 translate-y-4",
303
- enterTo: "opacity-100 scale-100 translate-y-0",
304
- leave: "ease-in duration-150",
305
- leaveFrom: "opacity-100 scale-100 translate-y-0",
306
- leaveTo: "opacity-0 scale-95 translate-y-4",
307
- children: /* @__PURE__ */ jsxs(ze, { className: "relative w-full max-w-lg transform overflow-hidden rounded-lg bg-surface px-4 pt-5 pb-4 text-left shadow-2xl sm:p-6", children: [
308
- /* @__PURE__ */ jsx("div", { className: "absolute top-0 right-0 pt-4 pr-4 sm:block", children: /* @__PURE__ */ jsxs(
309
- "button",
310
- {
311
- id: "modal_close",
312
- type: "button",
313
- onClick: close,
314
- className: "rounded-md bg-surface-input text-text-muted hover:text-text-secondary focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",
315
- children: [
316
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: intl.formatMessage({
317
- id: "close",
318
- defaultMessage: "Close"
319
- }) }),
320
- /* @__PURE__ */ jsx(
321
- "svg",
322
- {
323
- className: "h-6 w-6",
324
- xmlns: "http://www.w3.org/2000/svg",
325
- fill: "none",
326
- viewBox: "0 0 24 24",
327
- stroke: "currentColor",
328
- "aria-hidden": "true",
329
- children: /* @__PURE__ */ jsx(
330
- "path",
331
- {
332
- strokeLinecap: "round",
333
- strokeLinejoin: "round",
334
- strokeWidth: "2",
335
- d: "M6 18L18 6M6 6l12 12"
336
- }
337
- )
338
- }
339
- )
340
- ]
341
- }
342
- ) }),
343
- children && l4.isValidElement(children) ? l4.cloneElement(children, {
344
- close
345
- }) : children
346
- ] })
347
- }
348
- ) }) })
349
- ] }) });
350
- };
351
- var Modal_default = Modal;
352
- var ModalWrapper = ({ children }) => {
353
- const [modalChildren, setChildren] = useState(null);
354
- const [closeOnOutsideClick, setCloseOnOutsideClick] = useState(false);
355
- const hideModal = () => setChildren(null);
356
- const [onClose, setOnClose] = useState(() => hideModal);
357
- const ctx = useMemo(() => {
358
- const setModal = (newModalChildren, { closeOnOutsideClick: newCloseOnOutsideClick = false } = {}) => {
359
- return new Promise((resolve) => {
360
- if (!newModalChildren) {
361
- resolve(true);
362
- }
363
- setCloseOnOutsideClick(newCloseOnOutsideClick);
364
- setChildren(() => newModalChildren);
365
- setOnClose(() => () => {
366
- hideModal();
367
- resolve(true);
368
- });
369
- });
370
- };
371
- return { setModal };
372
- }, []);
373
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
374
- /* @__PURE__ */ jsx(
375
- Modal_default,
376
- {
377
- visible: !!modalChildren,
378
- onClose,
379
- closeOnOutsideClick,
380
- children: modalChildren
381
- }
382
- ),
383
- /* @__PURE__ */ jsx(ModalContext_default.Provider, { value: ctx, children })
384
- ] });
385
- };
386
- var ModalWrapper_default = ModalWrapper;
387
-
388
- export { ModalWrapper_default, Modal_default };
@@ -1,44 +0,0 @@
1
- // src/sdk/shims/host.ts
2
- function hostDep(specifier) {
3
- let resolved = void 0;
4
- let didResolve = false;
5
- const resolve = () => {
6
- if (didResolve) return resolved;
7
- const deps = typeof window !== "undefined" && window.__UNCHAINED_PLUGIN_DEPS__;
8
- const dep = deps?.[specifier];
9
- if (!dep) {
10
- throw new Error(
11
- `Unchained admin-ui plugin runtime: host dependency "${specifier}" is not available. Plugin modules can only be loaded by the admin-ui after its plugin runtime is initialized.`
12
- );
13
- }
14
- resolved = dep;
15
- didResolve = true;
16
- return dep;
17
- };
18
- return new Proxy(/* @__PURE__ */ Object.create(null), {
19
- get(_target, prop) {
20
- if (prop === Symbol.toPrimitive || prop === Symbol.toStringTag) {
21
- return void 0;
22
- }
23
- return resolve()[prop];
24
- },
25
- set(_target, prop, value) {
26
- resolve()[prop] = value;
27
- return true;
28
- },
29
- has(_target, prop) {
30
- return prop in resolve();
31
- },
32
- ownKeys() {
33
- return Reflect.ownKeys(resolve());
34
- },
35
- getOwnPropertyDescriptor(_target, prop) {
36
- return Object.getOwnPropertyDescriptor(resolve(), prop);
37
- },
38
- getPrototypeOf() {
39
- return Object.getPrototypeOf(resolve());
40
- }
41
- });
42
- }
43
-
44
- export { hostDep };