@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,618 +0,0 @@
1
- import { sharedContext } from './chunk-J23QSWDL.js';
2
- import { __commonJS, __toESM } from './chunk-WPLOTFGW.js';
3
- import React, { useContext, useRef } from 'react';
4
- import { useIntl } from 'react-intl';
5
- import { useController } from 'react-hook-form';
6
-
7
- // ../node_modules/validator/lib/util/assertString.js
8
- var require_assertString = __commonJS({
9
- "../node_modules/validator/lib/util/assertString.js"(exports, module) {
10
- Object.defineProperty(exports, "__esModule", {
11
- value: true
12
- });
13
- exports.default = assertString;
14
- function assertString(input) {
15
- if (input === void 0 || input === null) throw new TypeError("Expected a string but received a ".concat(input));
16
- if (input.constructor.name !== "String") throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
17
- }
18
- module.exports = exports.default;
19
- module.exports.default = exports.default;
20
- }
21
- });
22
-
23
- // ../node_modules/validator/lib/isLength.js
24
- var require_isLength = __commonJS({
25
- "../node_modules/validator/lib/isLength.js"(exports, module) {
26
- Object.defineProperty(exports, "__esModule", {
27
- value: true
28
- });
29
- exports.default = isLength2;
30
- var _assertString = _interopRequireDefault(require_assertString());
31
- function _interopRequireDefault(e) {
32
- return e && e.__esModule ? e : { default: e };
33
- }
34
- function _typeof(o) {
35
- "@babel/helpers - typeof";
36
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
37
- return typeof o2;
38
- } : function(o2) {
39
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
40
- }, _typeof(o);
41
- }
42
- function isLength2(str, options) {
43
- (0, _assertString.default)(str);
44
- var min;
45
- var max;
46
- if (_typeof(options) === "object") {
47
- min = options.min || 0;
48
- max = options.max;
49
- } else {
50
- min = arguments[1] || 0;
51
- max = arguments[2];
52
- }
53
- var presentationSequences = str.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g) || [];
54
- var surrogatePairs = str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || [];
55
- var len = str.length - presentationSequences.length - surrogatePairs.length;
56
- var isInsideRange = len >= min && (typeof max === "undefined" || len <= max);
57
- if (isInsideRange && Array.isArray(options === null || options === void 0 ? void 0 : options.discreteLengths)) {
58
- return options.discreteLengths.some(function(discreteLen) {
59
- return discreteLen === len;
60
- });
61
- }
62
- return isInsideRange;
63
- }
64
- module.exports = exports.default;
65
- module.exports.default = exports.default;
66
- }
67
- });
68
-
69
- // ../node_modules/validator/lib/util/checkHost.js
70
- var require_checkHost = __commonJS({
71
- "../node_modules/validator/lib/util/checkHost.js"(exports, module) {
72
- Object.defineProperty(exports, "__esModule", {
73
- value: true
74
- });
75
- exports.default = checkHost;
76
- function isRegExp(obj) {
77
- return Object.prototype.toString.call(obj) === "[object RegExp]";
78
- }
79
- function checkHost(host, matches) {
80
- for (var i = 0; i < matches.length; i++) {
81
- var match = matches[i];
82
- if (host === match || isRegExp(match) && match.test(host)) {
83
- return true;
84
- }
85
- }
86
- return false;
87
- }
88
- module.exports = exports.default;
89
- module.exports.default = exports.default;
90
- }
91
- });
92
-
93
- // ../node_modules/validator/lib/isByteLength.js
94
- var require_isByteLength = __commonJS({
95
- "../node_modules/validator/lib/isByteLength.js"(exports, module) {
96
- Object.defineProperty(exports, "__esModule", {
97
- value: true
98
- });
99
- exports.default = isByteLength;
100
- var _assertString = _interopRequireDefault(require_assertString());
101
- function _interopRequireDefault(e) {
102
- return e && e.__esModule ? e : { default: e };
103
- }
104
- function _typeof(o) {
105
- "@babel/helpers - typeof";
106
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
107
- return typeof o2;
108
- } : function(o2) {
109
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
110
- }, _typeof(o);
111
- }
112
- function isByteLength(str, options) {
113
- (0, _assertString.default)(str);
114
- var min;
115
- var max;
116
- if (_typeof(options) === "object") {
117
- min = options.min || 0;
118
- max = options.max;
119
- } else {
120
- min = arguments[1];
121
- max = arguments[2];
122
- }
123
- var len = encodeURI(str).split(/%..|./).length - 1;
124
- return len >= min && (typeof max === "undefined" || len <= max);
125
- }
126
- module.exports = exports.default;
127
- module.exports.default = exports.default;
128
- }
129
- });
130
-
131
- // ../node_modules/validator/lib/util/merge.js
132
- var require_merge = __commonJS({
133
- "../node_modules/validator/lib/util/merge.js"(exports, module) {
134
- Object.defineProperty(exports, "__esModule", {
135
- value: true
136
- });
137
- exports.default = merge;
138
- function _typeof(o) {
139
- "@babel/helpers - typeof";
140
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
141
- return typeof o2;
142
- } : function(o2) {
143
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
144
- }, _typeof(o);
145
- }
146
- function merge() {
147
- var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
148
- var defaults = arguments.length > 1 ? arguments[1] : void 0;
149
- if (_typeof(obj) !== "object" || obj === null) {
150
- obj = {};
151
- }
152
- for (var key in defaults) {
153
- if (typeof obj[key] === "undefined") {
154
- obj[key] = defaults[key];
155
- }
156
- }
157
- return obj;
158
- }
159
- module.exports = exports.default;
160
- module.exports.default = exports.default;
161
- }
162
- });
163
-
164
- // ../node_modules/validator/lib/isFQDN.js
165
- var require_isFQDN = __commonJS({
166
- "../node_modules/validator/lib/isFQDN.js"(exports, module) {
167
- Object.defineProperty(exports, "__esModule", {
168
- value: true
169
- });
170
- exports.default = isFQDN;
171
- var _assertString = _interopRequireDefault(require_assertString());
172
- var _merge = _interopRequireDefault(require_merge());
173
- function _interopRequireDefault(e) {
174
- return e && e.__esModule ? e : { default: e };
175
- }
176
- var default_fqdn_options = {
177
- require_tld: true,
178
- allow_underscores: false,
179
- allow_trailing_dot: false,
180
- allow_numeric_tld: false,
181
- allow_wildcard: false,
182
- ignore_max_length: false
183
- };
184
- function isFQDN(str, options) {
185
- (0, _assertString.default)(str);
186
- options = (0, _merge.default)(options, default_fqdn_options);
187
- if (options.allow_trailing_dot && str[str.length - 1] === ".") {
188
- str = str.substring(0, str.length - 1);
189
- }
190
- if (options.allow_wildcard === true && str.indexOf("*.") === 0) {
191
- str = str.substring(2);
192
- }
193
- var parts = str.split(".");
194
- var tld = parts[parts.length - 1];
195
- if (options.require_tld) {
196
- if (parts.length < 2) {
197
- return false;
198
- }
199
- if (!options.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
200
- return false;
201
- }
202
- if (/\s/.test(tld)) {
203
- return false;
204
- }
205
- }
206
- if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
207
- return false;
208
- }
209
- return parts.every(function(part) {
210
- if (part.length > 63 && !options.ignore_max_length) {
211
- return false;
212
- }
213
- if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
214
- return false;
215
- }
216
- if (/[\uff01-\uff5e]/.test(part)) {
217
- return false;
218
- }
219
- if (/^-|-$/.test(part)) {
220
- return false;
221
- }
222
- if (!options.allow_underscores && /_/.test(part)) {
223
- return false;
224
- }
225
- return true;
226
- });
227
- }
228
- module.exports = exports.default;
229
- module.exports.default = exports.default;
230
- }
231
- });
232
-
233
- // ../node_modules/validator/lib/isIP.js
234
- var require_isIP = __commonJS({
235
- "../node_modules/validator/lib/isIP.js"(exports, module) {
236
- Object.defineProperty(exports, "__esModule", {
237
- value: true
238
- });
239
- exports.default = isIP;
240
- var _assertString = _interopRequireDefault(require_assertString());
241
- function _interopRequireDefault(e) {
242
- return e && e.__esModule ? e : { default: e };
243
- }
244
- function _typeof(o) {
245
- "@babel/helpers - typeof";
246
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
247
- return typeof o2;
248
- } : function(o2) {
249
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
250
- }, _typeof(o);
251
- }
252
- var IPv4SegmentFormat = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";
253
- var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
254
- var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
255
- var IPv6SegmentFormat = "(?:[0-9a-fA-F]{1,4})";
256
- var IPv6AddressRegExp = new RegExp("^(" + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ")(%[0-9a-zA-Z.]{1,})?$");
257
- function isIP(ipAddress) {
258
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
259
- (0, _assertString.default)(ipAddress);
260
- var version = (_typeof(options) === "object" ? options.version : arguments[1]) || "";
261
- if (!version) {
262
- return isIP(ipAddress, {
263
- version: 4
264
- }) || isIP(ipAddress, {
265
- version: 6
266
- });
267
- }
268
- if (version.toString() === "4") {
269
- return IPv4AddressRegExp.test(ipAddress);
270
- }
271
- if (version.toString() === "6") {
272
- return IPv6AddressRegExp.test(ipAddress);
273
- }
274
- return false;
275
- }
276
- module.exports = exports.default;
277
- module.exports.default = exports.default;
278
- }
279
- });
280
-
281
- // ../node_modules/validator/lib/isEmail.js
282
- var require_isEmail = __commonJS({
283
- "../node_modules/validator/lib/isEmail.js"(exports, module) {
284
- Object.defineProperty(exports, "__esModule", {
285
- value: true
286
- });
287
- exports.default = isEmail2;
288
- var _assertString = _interopRequireDefault(require_assertString());
289
- var _checkHost = _interopRequireDefault(require_checkHost());
290
- var _isByteLength = _interopRequireDefault(require_isByteLength());
291
- var _isFQDN = _interopRequireDefault(require_isFQDN());
292
- var _isIP = _interopRequireDefault(require_isIP());
293
- var _merge = _interopRequireDefault(require_merge());
294
- function _interopRequireDefault(e) {
295
- return e && e.__esModule ? e : { default: e };
296
- }
297
- var default_email_options = {
298
- allow_display_name: false,
299
- allow_underscores: false,
300
- require_display_name: false,
301
- allow_utf8_local_part: true,
302
- require_tld: true,
303
- blacklisted_chars: "",
304
- ignore_max_length: false,
305
- host_blacklist: [],
306
- host_whitelist: []
307
- };
308
- var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i;
309
- var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
310
- var gmailUserPart = /^[a-z\d]+$/;
311
- var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
312
- var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
313
- var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
314
- var defaultMaxEmailLength = 254;
315
- function validateDisplayName(display_name) {
316
- var display_name_without_quotes = display_name.replace(/^"(.+)"$/, "$1");
317
- if (!display_name_without_quotes.trim()) {
318
- return false;
319
- }
320
- var contains_illegal = /[\.";<>]/.test(display_name_without_quotes);
321
- if (contains_illegal) {
322
- if (display_name_without_quotes === display_name) {
323
- return false;
324
- }
325
- var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length;
326
- if (!all_start_with_back_slash) {
327
- return false;
328
- }
329
- }
330
- return true;
331
- }
332
- function isEmail2(str, options) {
333
- (0, _assertString.default)(str);
334
- options = (0, _merge.default)(options, default_email_options);
335
- if (options.require_display_name || options.allow_display_name) {
336
- var display_email = str.match(splitNameAddress);
337
- if (display_email) {
338
- var display_name = display_email[1];
339
- str = str.replace(display_name, "").replace(/(^<|>$)/g, "");
340
- if (display_name.endsWith(" ")) {
341
- display_name = display_name.slice(0, -1);
342
- }
343
- if (!validateDisplayName(display_name)) {
344
- return false;
345
- }
346
- } else if (options.require_display_name) {
347
- return false;
348
- }
349
- }
350
- if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {
351
- return false;
352
- }
353
- var parts = str.split("@");
354
- var domain = parts.pop();
355
- var lower_domain = domain.toLowerCase();
356
- if (options.host_blacklist.length > 0 && (0, _checkHost.default)(lower_domain, options.host_blacklist)) {
357
- return false;
358
- }
359
- if (options.host_whitelist.length > 0 && !(0, _checkHost.default)(lower_domain, options.host_whitelist)) {
360
- return false;
361
- }
362
- var user = parts.join("@");
363
- if (options.domain_specific_validation && (lower_domain === "gmail.com" || lower_domain === "googlemail.com")) {
364
- user = user.toLowerCase();
365
- var username = user.split("+")[0];
366
- if (!(0, _isByteLength.default)(username.replace(/\./g, ""), {
367
- min: 6,
368
- max: 30
369
- })) {
370
- return false;
371
- }
372
- var _user_parts = username.split(".");
373
- for (var i = 0; i < _user_parts.length; i++) {
374
- if (!gmailUserPart.test(_user_parts[i])) {
375
- return false;
376
- }
377
- }
378
- }
379
- if (options.ignore_max_length === false && (!(0, _isByteLength.default)(user, {
380
- max: 64
381
- }) || !(0, _isByteLength.default)(domain, {
382
- max: 254
383
- }))) {
384
- return false;
385
- }
386
- if (!(0, _isFQDN.default)(domain, {
387
- require_tld: options.require_tld,
388
- ignore_max_length: options.ignore_max_length,
389
- allow_underscores: options.allow_underscores
390
- })) {
391
- if (!options.allow_ip_domain) {
392
- return false;
393
- }
394
- if (!(0, _isIP.default)(domain)) {
395
- if (!domain.startsWith("[") || !domain.endsWith("]")) {
396
- return false;
397
- }
398
- var noBracketdomain = domain.slice(1, -1);
399
- if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) {
400
- return false;
401
- }
402
- }
403
- }
404
- if (options.blacklisted_chars) {
405
- if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), "g")) !== -1) return false;
406
- }
407
- if (user[0] === '"' && user[user.length - 1] === '"') {
408
- user = user.slice(1, user.length - 1);
409
- return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
410
- }
411
- var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
412
- var user_parts = user.split(".");
413
- for (var _i = 0; _i < user_parts.length; _i++) {
414
- if (!pattern.test(user_parts[_i])) {
415
- return false;
416
- }
417
- }
418
- return true;
419
- }
420
- module.exports = exports.default;
421
- module.exports.default = exports.default;
422
- }
423
- });
424
- var FormContext = sharedContext(
425
- "FormContext",
426
- React.createContext({
427
- submitError: "",
428
- rhf: null,
429
- api: null,
430
- setSubmitError: () => {
431
- },
432
- disabled: false
433
- })
434
- );
435
- var FormContext_default = FormContext;
436
-
437
- // src/modules/forms/hooks/useFormContext.ts
438
- var useFormContext = () => useContext(FormContext_default);
439
- var useFormContext_default = useFormContext;
440
-
441
- // src/modules/forms/lib/validators.ts
442
- var import_isLength = __toESM(require_isLength(), 1);
443
- var import_isEmail = __toESM(require_isEmail(), 1);
444
- var millisecondsInWeek = 6048e5;
445
- var millisecondsInDay = 864e5;
446
- var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
447
-
448
- // ../node_modules/date-fns/constructFrom.js
449
- function constructFrom(date, value) {
450
- if (typeof date === "function") return date(value);
451
- if (date && typeof date === "object" && constructFromSymbol in date)
452
- return date[constructFromSymbol](value);
453
- if (date instanceof Date) return new date.constructor(value);
454
- return new Date(value);
455
- }
456
-
457
- // ../node_modules/date-fns/toDate.js
458
- function toDate(argument, context) {
459
- return constructFrom(context || argument, argument);
460
- }
461
-
462
- // ../node_modules/date-fns/startOfDay.js
463
- function startOfDay(date, options) {
464
- const _date = toDate(date, options?.in);
465
- _date.setHours(0, 0, 0, 0);
466
- return _date;
467
- }
468
-
469
- // ../node_modules/date-fns/isDate.js
470
- function isDate(value) {
471
- return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
472
- }
473
-
474
- // ../node_modules/date-fns/isValid.js
475
- function isValid(date) {
476
- return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
477
- }
478
- var isString = (value) => typeof value === "string";
479
- var validateMaxLength = (max) => ({
480
- isValid: (value) => (0, import_isLength.default)(value || "", { max }),
481
- intlMessageDescriptor: { id: "error_max_length" },
482
- intlMessageValues: { maxLength: max.toString() }
483
- });
484
- var validateEmail = {
485
- isValid: (value) => (0, import_isEmail.default)(value || ""),
486
- intlMessageDescriptor: {
487
- id: "error_email",
488
- defaultMessage: "{label} must be a valid email address"
489
- }
490
- };
491
- var validateRequired = {
492
- isValid: (value) => {
493
- if (isString(value)) {
494
- return value.trim().length > 0;
495
- }
496
- if (typeof value === "number") {
497
- return true;
498
- }
499
- if (Array.isArray(value)) {
500
- return value.length > 0;
501
- }
502
- return !!value;
503
- },
504
- intlMessageDescriptor: {
505
- id: "error_required",
506
- defaultMessage: "{label} is a required field"
507
- }
508
- };
509
- var validateDate = {
510
- isValid: (value) => value ? isValid(new Date(value)) : true,
511
- intlMessageDescriptor: {
512
- id: "error_invalid_date",
513
- defaultMessage: "{label} is not a valid date"
514
- }
515
- };
516
- var validateRequiredTag = (isRequired) => ({
517
- isValid: (value) => isRequired ? value.length > 0 : true,
518
- intlMessageDescriptor: {
519
- id: "error_tag_required",
520
- defaultMessage: "{label} you must provide at least one tag"
521
- }
522
- });
523
-
524
- // src/modules/forms/hooks/useField.ts
525
- var useField = (props) => {
526
- const intl = useIntl();
527
- const { rhf, ...form } = useFormContext_default();
528
- const {
529
- name,
530
- required,
531
- errorMessage,
532
- disabled = form.disabled || rhf?.formState?.isSubmitting,
533
- label = intl.formatMessage({
534
- id: name,
535
- defaultMessage: "default_input_name",
536
- description: "DO not translate Skip this as it's the default given label when a component is not provided explicit label"
537
- }),
538
- validators = []
539
- } = props;
540
- const combinedValidators = [
541
- ...validators,
542
- required && validateRequired
543
- ].filter(Boolean);
544
- const validate = (value) => {
545
- return combinedValidators.reduce(
546
- (acc, { isValid: isValid2, intlMessageDescriptor, intlMessageValues }) => {
547
- if (acc) return acc;
548
- if (!isValid2(value))
549
- return errorMessage || intl.formatMessage(intlMessageDescriptor, {
550
- label,
551
- ...intlMessageValues
552
- });
553
- return acc;
554
- },
555
- ""
556
- );
557
- };
558
- const validateRef = useRef(validate);
559
- validateRef.current = validate;
560
- const { field, fieldState, formState } = useController({
561
- name,
562
- control: rhf?.control,
563
- rules: {
564
- validate: (value) => {
565
- const error2 = validateRef.current(value);
566
- return error2 || true;
567
- }
568
- }
569
- });
570
- const error = (fieldState.isTouched || formState.isSubmitted) && fieldState.error?.message;
571
- const onChange = (event) => {
572
- if (props.onChange) {
573
- props.onChange(event);
574
- }
575
- if (props.type === "number") {
576
- const raw = event?.target?.value;
577
- const num = raw === "" || raw == null ? null : Number(raw);
578
- field.onChange(num);
579
- } else {
580
- field.onChange(event);
581
- }
582
- };
583
- const isNullOrUndefined = (v) => {
584
- return v === null || v === void 0;
585
- };
586
- return {
587
- ...props,
588
- name,
589
- error,
590
- label,
591
- disabled,
592
- required,
593
- onChange,
594
- onBlur: field.onBlur,
595
- value: isNullOrUndefined(field.value) ? "" : field.value,
596
- setValue: (value, shouldValidate) => {
597
- rhf?.setValue(name, value, {
598
- shouldDirty: true,
599
- shouldValidate: shouldValidate ?? false
600
- });
601
- },
602
- setError: (message) => {
603
- if (message) {
604
- rhf?.setError(name, { type: "manual", message });
605
- } else {
606
- rhf?.clearErrors(name);
607
- }
608
- },
609
- setTouched: (touched) => {
610
- if (touched) {
611
- rhf?.trigger(name);
612
- }
613
- }
614
- };
615
- };
616
- var useField_default = useField;
617
-
618
- export { FormContext_default, constructFrom, isValid, millisecondsInDay, millisecondsInWeek, startOfDay, toDate, useField_default, useFormContext_default, validateDate, validateEmail, validateMaxLength, validateRequiredTag };
@@ -1,16 +0,0 @@
1
- import React, { useContext } from 'react';
2
-
3
- // src/modules/UnchainedContext/useUnchainedContext.ts
4
- var UnchainedContext = React.createContext({
5
- customProperties: {},
6
- hydrateFragment: (fragment, data) => null
7
- });
8
- var UnchainedContext_default = UnchainedContext;
9
-
10
- // src/modules/UnchainedContext/useUnchainedContext.ts
11
- var useUnchainedContext = () => {
12
- return useContext(UnchainedContext_default);
13
- };
14
- var useUnchainedContext_default = useUnchainedContext;
15
-
16
- export { useUnchainedContext_default };