@ketvietlab/ketsuite 0.1.25 → 0.1.30

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 (1557) hide show
  1. package/dist/cache.d.ts +23 -0
  2. package/dist/cache.d.ts.map +1 -0
  3. package/dist/cache.js +71 -0
  4. package/dist/cache.js.map +1 -0
  5. package/dist/cli-watch.d.ts +4 -0
  6. package/dist/cli-watch.d.ts.map +1 -0
  7. package/dist/cli-watch.js +52 -0
  8. package/dist/cli-watch.js.map +1 -0
  9. package/dist/cli.js +45 -17
  10. package/dist/cli.js.map +1 -1
  11. package/dist/deployment.d.ts +11 -0
  12. package/dist/deployment.d.ts.map +1 -1
  13. package/dist/deployment.js +49 -39
  14. package/dist/deployment.js.map +1 -1
  15. package/dist/deployments/commerce.d.ts +4 -0
  16. package/dist/deployments/commerce.d.ts.map +1 -0
  17. package/dist/deployments/commerce.js +34 -0
  18. package/dist/deployments/commerce.js.map +1 -0
  19. package/dist/deployments/common.d.ts +54 -0
  20. package/dist/deployments/common.d.ts.map +1 -0
  21. package/dist/deployments/common.js +112 -0
  22. package/dist/deployments/common.js.map +1 -0
  23. package/dist/deployments/hospitality.d.ts +4 -0
  24. package/dist/deployments/hospitality.d.ts.map +1 -0
  25. package/dist/deployments/hospitality.js +103 -0
  26. package/dist/deployments/hospitality.js.map +1 -0
  27. package/dist/deployments/office.d.ts +4 -0
  28. package/dist/deployments/office.d.ts.map +1 -0
  29. package/dist/deployments/office.js +31 -0
  30. package/dist/deployments/office.js.map +1 -0
  31. package/dist/development.d.ts +16 -0
  32. package/dist/development.d.ts.map +1 -1
  33. package/dist/development.js +31 -0
  34. package/dist/development.js.map +1 -1
  35. package/dist/index.d.ts +3 -0
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +3 -0
  38. package/dist/index.js.map +1 -1
  39. package/dist/modules/account_backend/index.js +364 -877
  40. package/dist/modules/account_backend/index.js.map +1 -1
  41. package/dist/modules/account_backend/screens/account-defaults.d.ts.map +1 -1
  42. package/dist/modules/account_backend/screens/account-defaults.js +1 -1
  43. package/dist/modules/account_backend/screens/account-defaults.js.map +1 -1
  44. package/dist/modules/account_backend/screens/account-form.d.ts.map +1 -1
  45. package/dist/modules/account_backend/screens/account-form.js +3 -1
  46. package/dist/modules/account_backend/screens/account-form.js.map +1 -1
  47. package/dist/modules/account_backend/screens/accounts-list.d.ts.map +1 -1
  48. package/dist/modules/account_backend/screens/accounts-list.js +5 -15
  49. package/dist/modules/account_backend/screens/accounts-list.js.map +1 -1
  50. package/dist/modules/account_backend/screens/customer-invoice-form.d.ts.map +1 -1
  51. package/dist/modules/account_backend/screens/customer-invoice-form.js +1 -1
  52. package/dist/modules/account_backend/screens/customer-invoice-form.js.map +1 -1
  53. package/dist/modules/account_backend/screens/customer-invoices-list.d.ts.map +1 -1
  54. package/dist/modules/account_backend/screens/customer-invoices-list.js +5 -15
  55. package/dist/modules/account_backend/screens/customer-invoices-list.js.map +1 -1
  56. package/dist/modules/account_backend/screens/journal-entries-list.d.ts.map +1 -1
  57. package/dist/modules/account_backend/screens/journal-entries-list.js +5 -15
  58. package/dist/modules/account_backend/screens/journal-entries-list.js.map +1 -1
  59. package/dist/modules/account_backend/screens/journal-entry-create.d.ts.map +1 -1
  60. package/dist/modules/account_backend/screens/journal-entry-create.js +1 -1
  61. package/dist/modules/account_backend/screens/journal-entry-create.js.map +1 -1
  62. package/dist/modules/account_backend/screens/journal-form.d.ts.map +1 -1
  63. package/dist/modules/account_backend/screens/journal-form.js +3 -3
  64. package/dist/modules/account_backend/screens/journal-form.js.map +1 -1
  65. package/dist/modules/account_backend/screens/journals-list.d.ts.map +1 -1
  66. package/dist/modules/account_backend/screens/journals-list.js +5 -15
  67. package/dist/modules/account_backend/screens/journals-list.js.map +1 -1
  68. package/dist/modules/account_backend/screens/move-detail.d.ts.map +1 -1
  69. package/dist/modules/account_backend/screens/move-detail.js +3 -1
  70. package/dist/modules/account_backend/screens/move-detail.js.map +1 -1
  71. package/dist/modules/account_backend/screens/opening-balances.d.ts +3 -1
  72. package/dist/modules/account_backend/screens/opening-balances.d.ts.map +1 -1
  73. package/dist/modules/account_backend/screens/opening-balances.js +12 -6
  74. package/dist/modules/account_backend/screens/opening-balances.js.map +1 -1
  75. package/dist/modules/account_backend/screens/overview.js +4 -2
  76. package/dist/modules/account_backend/screens/overview.js.map +1 -1
  77. package/dist/modules/account_backend/screens/payment-form.d.ts.map +1 -1
  78. package/dist/modules/account_backend/screens/payment-form.js +1 -1
  79. package/dist/modules/account_backend/screens/payment-form.js.map +1 -1
  80. package/dist/modules/account_backend/screens/payment-term-form.d.ts.map +1 -1
  81. package/dist/modules/account_backend/screens/payment-term-form.js +4 -2
  82. package/dist/modules/account_backend/screens/payment-term-form.js.map +1 -1
  83. package/dist/modules/account_backend/screens/payment-terms-list.d.ts.map +1 -1
  84. package/dist/modules/account_backend/screens/payment-terms-list.js +6 -17
  85. package/dist/modules/account_backend/screens/payment-terms-list.js.map +1 -1
  86. package/dist/modules/account_backend/screens/payments-list.d.ts.map +1 -1
  87. package/dist/modules/account_backend/screens/payments-list.js +5 -15
  88. package/dist/modules/account_backend/screens/payments-list.js.map +1 -1
  89. package/dist/modules/account_backend/screens/period-closes.d.ts +3 -1
  90. package/dist/modules/account_backend/screens/period-closes.d.ts.map +1 -1
  91. package/dist/modules/account_backend/screens/period-closes.js +40 -36
  92. package/dist/modules/account_backend/screens/period-closes.js.map +1 -1
  93. package/dist/modules/account_backend/screens/tax-form.d.ts.map +1 -1
  94. package/dist/modules/account_backend/screens/tax-form.js +3 -1
  95. package/dist/modules/account_backend/screens/tax-form.js.map +1 -1
  96. package/dist/modules/account_backend/screens/taxes-list.d.ts.map +1 -1
  97. package/dist/modules/account_backend/screens/taxes-list.js +5 -15
  98. package/dist/modules/account_backend/screens/taxes-list.js.map +1 -1
  99. package/dist/modules/account_backend/screens/vendor-bill-form.d.ts.map +1 -1
  100. package/dist/modules/account_backend/screens/vendor-bill-form.js +1 -1
  101. package/dist/modules/account_backend/screens/vendor-bill-form.js.map +1 -1
  102. package/dist/modules/account_backend/screens/vendor-bills-list.d.ts.map +1 -1
  103. package/dist/modules/account_backend/screens/vendor-bills-list.js +5 -15
  104. package/dist/modules/account_backend/screens/vendor-bills-list.js.map +1 -1
  105. package/dist/modules/account_backend/search-functions.d.ts +4 -0
  106. package/dist/modules/account_backend/search-functions.d.ts.map +1 -0
  107. package/dist/modules/account_backend/search-functions.js +5 -0
  108. package/dist/modules/account_backend/search-functions.js.map +1 -0
  109. package/dist/modules/account_backend/search.d.ts +774 -0
  110. package/dist/modules/account_backend/search.d.ts.map +1 -0
  111. package/dist/modules/account_backend/search.js +312 -0
  112. package/dist/modules/account_backend/search.js.map +1 -0
  113. package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts.map +1 -1
  114. package/dist/modules/account_partner_backend/screens/accounting-terms.js +1 -1
  115. package/dist/modules/account_partner_backend/screens/accounting-terms.js.map +1 -1
  116. package/dist/modules/activity_backend/index.d.ts.map +1 -1
  117. package/dist/modules/activity_backend/index.js +0 -2
  118. package/dist/modules/activity_backend/index.js.map +1 -1
  119. package/dist/modules/activity_backend/screens/activities-list.d.ts.map +1 -1
  120. package/dist/modules/activity_backend/screens/activities-list.js +1 -1
  121. package/dist/modules/activity_backend/screens/activities-list.js.map +1 -1
  122. package/dist/modules/address_backend/index.js +2 -2
  123. package/dist/modules/address_backend/index.js.map +1 -1
  124. package/dist/modules/address_backend/routes.d.ts.map +1 -1
  125. package/dist/modules/address_backend/routes.js +32 -7
  126. package/dist/modules/address_backend/routes.js.map +1 -1
  127. package/dist/modules/address_backend/screens/catalogs-list.d.ts +3 -1
  128. package/dist/modules/address_backend/screens/catalogs-list.d.ts.map +1 -1
  129. package/dist/modules/address_backend/screens/catalogs-list.js +15 -9
  130. package/dist/modules/address_backend/screens/catalogs-list.js.map +1 -1
  131. package/dist/modules/address_backend/screens/country-browser.d.ts.map +1 -1
  132. package/dist/modules/address_backend/screens/country-browser.js +7 -15
  133. package/dist/modules/address_backend/screens/country-browser.js.map +1 -1
  134. package/dist/modules/address_backend/search-functions.d.ts +4 -0
  135. package/dist/modules/address_backend/search-functions.d.ts.map +1 -0
  136. package/dist/modules/address_backend/search-functions.js +7 -0
  137. package/dist/modules/address_backend/search-functions.js.map +1 -0
  138. package/dist/modules/address_backend/search.d.ts +38 -0
  139. package/dist/modules/address_backend/search.d.ts.map +1 -0
  140. package/dist/modules/address_backend/search.js +40 -0
  141. package/dist/modules/address_backend/search.js.map +1 -0
  142. package/dist/modules/attendance_backend/screens/credentials.d.ts.map +1 -1
  143. package/dist/modules/attendance_backend/screens/credentials.js +1 -1
  144. package/dist/modules/attendance_backend/screens/credentials.js.map +1 -1
  145. package/dist/modules/attendance_backend/screens/period.d.ts.map +1 -1
  146. package/dist/modules/attendance_backend/screens/period.js +1 -1
  147. package/dist/modules/attendance_backend/screens/period.js.map +1 -1
  148. package/dist/modules/backend/catalogue.d.ts.map +1 -1
  149. package/dist/modules/backend/catalogue.js +16 -13
  150. package/dist/modules/backend/catalogue.js.map +1 -1
  151. package/dist/modules/backend/collection-search.d.ts +16 -0
  152. package/dist/modules/backend/collection-search.d.ts.map +1 -0
  153. package/dist/modules/backend/collection-search.js +43 -0
  154. package/dist/modules/backend/collection-search.js.map +1 -0
  155. package/dist/modules/backend/current-company.d.ts +4 -0
  156. package/dist/modules/backend/current-company.d.ts.map +1 -0
  157. package/dist/modules/backend/current-company.js +27 -0
  158. package/dist/modules/backend/current-company.js.map +1 -0
  159. package/dist/modules/backend/design/HANDOFF.md +1 -1
  160. package/dist/modules/backend/design/auth.css +61 -0
  161. package/dist/modules/backend/design/brand/logo-dark.png +0 -0
  162. package/dist/modules/backend/design/brand/logo-light.png +0 -0
  163. package/dist/modules/backend/design/client/backend-shell.d.mts +2 -2
  164. package/dist/modules/backend/design/client/backend-shell.d.mts.map +1 -1
  165. package/dist/modules/backend/design/client/backend-shell.mjs +1 -1
  166. package/dist/modules/backend/design/client/backend-shell.mjs.map +4 -4
  167. package/dist/modules/backend/design/client/ket-table.d.mts +10 -0
  168. package/dist/modules/backend/design/client/ket-table.d.mts.map +1 -0
  169. package/dist/modules/backend/design/client/ket-table.mjs +2 -0
  170. package/dist/modules/backend/design/client/ket-table.mjs.map +7 -0
  171. package/dist/modules/backend/design/client/lightbox.d.mts +22 -0
  172. package/dist/modules/backend/design/client/lightbox.d.mts.map +1 -0
  173. package/dist/modules/backend/design/client/lightbox.mjs +2 -0
  174. package/dist/modules/backend/design/client/lightbox.mjs.map +7 -0
  175. package/dist/modules/backend/design/client/relation-select.d.mts +12 -3
  176. package/dist/modules/backend/design/client/relation-select.d.mts.map +1 -1
  177. package/dist/modules/backend/design/client/relation-select.mjs +1 -1
  178. package/dist/modules/backend/design/client/relation-select.mjs.map +4 -4
  179. package/dist/modules/backend/design/client/search-filter.d.mts +10 -0
  180. package/dist/modules/backend/design/client/search-filter.d.mts.map +1 -0
  181. package/dist/modules/backend/design/client/search-filter.mjs +2 -0
  182. package/dist/modules/backend/design/client/search-filter.mjs.map +7 -0
  183. package/dist/modules/backend/design/content.css +43 -5
  184. package/dist/modules/backend/design/forms.css +130 -229
  185. package/dist/modules/backend/design/foundation.css +0 -51
  186. package/dist/modules/backend/design/lists.css +79 -7
  187. package/dist/modules/backend/design/user-workflow.css +0 -20
  188. package/dist/modules/backend/global-search.d.ts +3 -0
  189. package/dist/modules/backend/global-search.d.ts.map +1 -0
  190. package/dist/modules/backend/global-search.js +82 -0
  191. package/dist/modules/backend/global-search.js.map +1 -0
  192. package/dist/modules/backend/index.d.ts +27 -0
  193. package/dist/modules/backend/index.d.ts.map +1 -1
  194. package/dist/modules/backend/index.js +24 -0
  195. package/dist/modules/backend/index.js.map +1 -1
  196. package/dist/modules/backend/islands.d.ts +44 -1
  197. package/dist/modules/backend/islands.d.ts.map +1 -1
  198. package/dist/modules/backend/islands.js +25 -1
  199. package/dist/modules/backend/islands.js.map +1 -1
  200. package/dist/modules/backend/joints.d.ts.map +1 -1
  201. package/dist/modules/backend/joints.js +12 -0
  202. package/dist/modules/backend/joints.js.map +1 -1
  203. package/dist/modules/backend/ket-table.d.ts +7 -0
  204. package/dist/modules/backend/ket-table.d.ts.map +1 -0
  205. package/dist/modules/backend/ket-table.js +2 -0
  206. package/dist/modules/backend/ket-table.js.map +1 -0
  207. package/dist/modules/backend/messages.d.ts.map +1 -1
  208. package/dist/modules/backend/messages.js +144 -0
  209. package/dist/modules/backend/messages.js.map +1 -1
  210. package/dist/modules/backend/optional-read.d.ts +4 -0
  211. package/dist/modules/backend/optional-read.d.ts.map +1 -0
  212. package/dist/modules/backend/optional-read.js +7 -0
  213. package/dist/modules/backend/optional-read.js.map +1 -0
  214. package/dist/modules/backend/paging.d.ts.map +1 -1
  215. package/dist/modules/backend/paging.js +2 -1
  216. package/dist/modules/backend/paging.js.map +1 -1
  217. package/dist/modules/backend/relation-select.d.ts +2 -2
  218. package/dist/modules/backend/relation-select.d.ts.map +1 -1
  219. package/dist/modules/backend/routes.d.ts.map +1 -1
  220. package/dist/modules/backend/routes.js +2 -0
  221. package/dist/modules/backend/routes.js.map +1 -1
  222. package/dist/modules/backend/row-list.d.ts +63 -0
  223. package/dist/modules/backend/row-list.d.ts.map +1 -0
  224. package/dist/modules/backend/row-list.js +252 -0
  225. package/dist/modules/backend/row-list.js.map +1 -0
  226. package/dist/modules/backend/screen.d.ts +3 -3
  227. package/dist/modules/backend/screen.d.ts.map +1 -1
  228. package/dist/modules/backend/screen.js +6 -7
  229. package/dist/modules/backend/screen.js.map +1 -1
  230. package/dist/modules/backend/search-filter-state.d.ts +42 -0
  231. package/dist/modules/backend/search-filter-state.d.ts.map +1 -0
  232. package/dist/modules/backend/search-filter-state.js +277 -0
  233. package/dist/modules/backend/search-filter-state.js.map +1 -0
  234. package/dist/modules/backend/search-filter.d.ts +77 -0
  235. package/dist/modules/backend/search-filter.d.ts.map +1 -0
  236. package/dist/modules/backend/search-filter.js +259 -0
  237. package/dist/modules/backend/search-filter.js.map +1 -0
  238. package/dist/modules/channel_api/core.d.ts +1 -0
  239. package/dist/modules/channel_api/core.d.ts.map +1 -1
  240. package/dist/modules/channel_api/core.js.map +1 -1
  241. package/dist/modules/channel_api/customer.d.ts.map +1 -1
  242. package/dist/modules/channel_api/customer.js +4 -5
  243. package/dist/modules/channel_api/customer.js.map +1 -1
  244. package/dist/modules/company_backend/index.d.ts.map +1 -1
  245. package/dist/modules/company_backend/index.js +2 -2
  246. package/dist/modules/company_backend/index.js.map +1 -1
  247. package/dist/modules/company_backend/routes.d.ts.map +1 -1
  248. package/dist/modules/company_backend/routes.js +33 -27
  249. package/dist/modules/company_backend/routes.js.map +1 -1
  250. package/dist/modules/company_backend/screens/branch-form.d.ts.map +1 -1
  251. package/dist/modules/company_backend/screens/branch-form.js +3 -1
  252. package/dist/modules/company_backend/screens/branch-form.js.map +1 -1
  253. package/dist/modules/company_backend/screens/companies-list.d.ts +3 -3
  254. package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -1
  255. package/dist/modules/company_backend/screens/companies-list.js +18 -18
  256. package/dist/modules/company_backend/screens/companies-list.js.map +1 -1
  257. package/dist/modules/company_backend/screens/company-form.d.ts.map +1 -1
  258. package/dist/modules/company_backend/screens/company-form.js +1 -3
  259. package/dist/modules/company_backend/screens/company-form.js.map +1 -1
  260. package/dist/modules/company_backend/screens/context.d.ts.map +1 -1
  261. package/dist/modules/company_backend/screens/context.js +1 -1
  262. package/dist/modules/company_backend/screens/context.js.map +1 -1
  263. package/dist/modules/company_backend/screens/hierarchy.d.ts.map +1 -1
  264. package/dist/modules/company_backend/screens/hierarchy.js +1 -2
  265. package/dist/modules/company_backend/screens/hierarchy.js.map +1 -1
  266. package/dist/modules/company_backend/search-functions.d.ts +4 -0
  267. package/dist/modules/company_backend/search-functions.d.ts.map +1 -0
  268. package/dist/modules/company_backend/search-functions.js +7 -0
  269. package/dist/modules/company_backend/search-functions.js.map +1 -0
  270. package/dist/modules/company_backend/search.d.ts +24 -0
  271. package/dist/modules/company_backend/search.d.ts.map +1 -0
  272. package/dist/modules/company_backend/search.js +24 -0
  273. package/dist/modules/company_backend/search.js.map +1 -0
  274. package/dist/modules/crm/functions/activities.js +7 -10
  275. package/dist/modules/crm/functions/activities.js.map +1 -1
  276. package/dist/modules/crm/functions/case-modal-context.d.ts +3 -0
  277. package/dist/modules/crm/functions/case-modal-context.d.ts.map +1 -0
  278. package/dist/modules/crm/functions/case-modal-context.js +156 -0
  279. package/dist/modules/crm/functions/case-modal-context.js.map +1 -0
  280. package/dist/modules/crm/functions/cases.d.ts.map +1 -1
  281. package/dist/modules/crm/functions/cases.js +35 -2
  282. package/dist/modules/crm/functions/cases.js.map +1 -1
  283. package/dist/modules/crm/functions/configuration.js +1 -1
  284. package/dist/modules/crm/functions/configuration.js.map +1 -1
  285. package/dist/modules/crm/functions/gamification.d.ts.map +1 -1
  286. package/dist/modules/crm/functions/gamification.js +11 -7
  287. package/dist/modules/crm/functions/gamification.js.map +1 -1
  288. package/dist/modules/crm/functions/index.d.ts.map +1 -1
  289. package/dist/modules/crm/functions/index.js +4 -0
  290. package/dist/modules/crm/functions/index.js.map +1 -1
  291. package/dist/modules/crm/functions/reporting.d.ts +3 -0
  292. package/dist/modules/crm/functions/reporting.d.ts.map +1 -0
  293. package/dist/modules/crm/functions/reporting.js +140 -0
  294. package/dist/modules/crm/functions/reporting.js.map +1 -0
  295. package/dist/modules/crm/functions/shared.d.ts +1 -0
  296. package/dist/modules/crm/functions/shared.d.ts.map +1 -1
  297. package/dist/modules/crm/functions/shared.js +17 -9
  298. package/dist/modules/crm/functions/shared.js.map +1 -1
  299. package/dist/modules/crm/messages.d.ts +8 -1
  300. package/dist/modules/crm/messages.d.ts.map +1 -1
  301. package/dist/modules/crm/messages.js +14 -0
  302. package/dist/modules/crm/messages.js.map +1 -1
  303. package/dist/modules/crm/models.d.ts.map +1 -1
  304. package/dist/modules/crm/models.js +7 -0
  305. package/dist/modules/crm/models.js.map +1 -1
  306. package/dist/modules/crm/operations.d.ts +4 -1
  307. package/dist/modules/crm/operations.d.ts.map +1 -1
  308. package/dist/modules/crm/operations.js +39 -7
  309. package/dist/modules/crm/operations.js.map +1 -1
  310. package/dist/modules/crm/reporting.d.ts +115 -0
  311. package/dist/modules/crm/reporting.d.ts.map +1 -0
  312. package/dist/modules/crm/reporting.js +241 -0
  313. package/dist/modules/crm/reporting.js.map +1 -0
  314. package/dist/modules/crm_backend/client/crm-case-modal.d.mts +302 -0
  315. package/dist/modules/crm_backend/client/crm-case-modal.d.mts.map +1 -0
  316. package/dist/modules/crm_backend/client/crm-case-modal.mjs +2 -0
  317. package/dist/modules/crm_backend/client/crm-case-modal.mjs.map +7 -0
  318. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts +55 -55
  319. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts.map +1 -1
  320. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs +1 -1
  321. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs.map +4 -4
  322. package/dist/modules/crm_backend/client/crm-kanban-view.mjs +1 -1
  323. package/dist/modules/crm_backend/client/crm-kanban-view.mjs.map +1 -1
  324. package/dist/modules/crm_backend/collection-rows.d.ts +6 -0
  325. package/dist/modules/crm_backend/collection-rows.d.ts.map +1 -0
  326. package/dist/modules/crm_backend/collection-rows.js +15 -0
  327. package/dist/modules/crm_backend/collection-rows.js.map +1 -0
  328. package/dist/modules/crm_backend/index.d.ts.map +1 -1
  329. package/dist/modules/crm_backend/index.js +2 -15
  330. package/dist/modules/crm_backend/index.js.map +1 -1
  331. package/dist/modules/crm_backend/islands.d.ts +1 -0
  332. package/dist/modules/crm_backend/islands.d.ts.map +1 -1
  333. package/dist/modules/crm_backend/islands.js +5 -0
  334. package/dist/modules/crm_backend/islands.js.map +1 -1
  335. package/dist/modules/crm_backend/messages.d.ts +34 -10
  336. package/dist/modules/crm_backend/messages.d.ts.map +1 -1
  337. package/dist/modules/crm_backend/messages.js +34 -10
  338. package/dist/modules/crm_backend/messages.js.map +1 -1
  339. package/dist/modules/crm_backend/modal/case-modal-view.d.ts +23 -0
  340. package/dist/modules/crm_backend/modal/case-modal-view.d.ts.map +1 -0
  341. package/dist/modules/crm_backend/modal/case-modal-view.js +640 -0
  342. package/dist/modules/crm_backend/modal/case-modal-view.js.map +1 -0
  343. package/dist/modules/crm_backend/routes.d.ts.map +1 -1
  344. package/dist/modules/crm_backend/routes.js +71 -15
  345. package/dist/modules/crm_backend/routes.js.map +1 -1
  346. package/dist/modules/crm_backend/screens/activity-planner.d.ts +1 -0
  347. package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -1
  348. package/dist/modules/crm_backend/screens/activity-planner.js +15 -11
  349. package/dist/modules/crm_backend/screens/activity-planner.js.map +1 -1
  350. package/dist/modules/crm_backend/screens/case-create.d.ts.map +1 -1
  351. package/dist/modules/crm_backend/screens/case-create.js +1 -1
  352. package/dist/modules/crm_backend/screens/case-create.js.map +1 -1
  353. package/dist/modules/crm_backend/screens/case-detail.d.ts.map +1 -1
  354. package/dist/modules/crm_backend/screens/case-detail.js +2 -2
  355. package/dist/modules/crm_backend/screens/case-detail.js.map +1 -1
  356. package/dist/modules/crm_backend/screens/cases-list.d.ts +1 -0
  357. package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -1
  358. package/dist/modules/crm_backend/screens/cases-list.js +17 -26
  359. package/dist/modules/crm_backend/screens/cases-list.js.map +1 -1
  360. package/dist/modules/crm_backend/screens/configuration.d.ts.map +1 -1
  361. package/dist/modules/crm_backend/screens/configuration.js +18 -16
  362. package/dist/modules/crm_backend/screens/configuration.js.map +1 -1
  363. package/dist/modules/crm_backend/screens/leaderboard.d.ts +2 -0
  364. package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -1
  365. package/dist/modules/crm_backend/screens/leaderboard.js +12 -18
  366. package/dist/modules/crm_backend/screens/leaderboard.js.map +1 -1
  367. package/dist/modules/crm_backend/screens/pipeline.d.ts.map +1 -1
  368. package/dist/modules/crm_backend/screens/pipeline.js +1 -1
  369. package/dist/modules/crm_backend/screens/pipeline.js.map +1 -1
  370. package/dist/modules/flow/domain/command-check.d.ts +3 -0
  371. package/dist/modules/flow/domain/command-check.d.ts.map +1 -0
  372. package/dist/modules/flow/domain/command-check.js +9 -0
  373. package/dist/modules/flow/domain/command-check.js.map +1 -0
  374. package/dist/modules/flow/domain/command.d.ts +33 -0
  375. package/dist/modules/flow/domain/command.d.ts.map +1 -0
  376. package/dist/modules/flow/domain/command.js +35 -0
  377. package/dist/modules/flow/domain/command.js.map +1 -0
  378. package/dist/modules/flow/domain/issue-bulk.d.ts +50 -0
  379. package/dist/modules/flow/domain/issue-bulk.d.ts.map +1 -0
  380. package/dist/modules/flow/domain/issue-bulk.js +97 -0
  381. package/dist/modules/flow/domain/issue-bulk.js.map +1 -0
  382. package/dist/modules/flow/domain/issue-dependency.d.ts +19 -0
  383. package/dist/modules/flow/domain/issue-dependency.d.ts.map +1 -0
  384. package/dist/modules/flow/domain/issue-dependency.js +59 -0
  385. package/dist/modules/flow/domain/issue-dependency.js.map +1 -0
  386. package/dist/modules/flow/domain/issue-discussion.d.ts +52 -0
  387. package/dist/modules/flow/domain/issue-discussion.d.ts.map +1 -0
  388. package/dist/modules/flow/domain/issue-discussion.js +114 -0
  389. package/dist/modules/flow/domain/issue-discussion.js.map +1 -0
  390. package/dist/modules/flow/domain/issue-transfer.d.ts +62 -0
  391. package/dist/modules/flow/domain/issue-transfer.d.ts.map +1 -0
  392. package/dist/modules/flow/domain/issue-transfer.js +171 -0
  393. package/dist/modules/flow/domain/issue-transfer.js.map +1 -0
  394. package/dist/modules/flow/domain/issue-validation.d.ts +68 -0
  395. package/dist/modules/flow/domain/issue-validation.d.ts.map +1 -0
  396. package/dist/modules/flow/domain/issue-validation.js +136 -0
  397. package/dist/modules/flow/domain/issue-validation.js.map +1 -0
  398. package/dist/modules/flow/domain/issue-write.d.ts +118 -0
  399. package/dist/modules/flow/domain/issue-write.d.ts.map +1 -0
  400. package/dist/modules/flow/domain/issue-write.js +372 -0
  401. package/dist/modules/flow/domain/issue-write.js.map +1 -0
  402. package/dist/modules/flow/domain/sprint-lifecycle.d.ts +61 -0
  403. package/dist/modules/flow/domain/sprint-lifecycle.d.ts.map +1 -0
  404. package/dist/modules/flow/domain/sprint-lifecycle.js +145 -0
  405. package/dist/modules/flow/domain/sprint-lifecycle.js.map +1 -0
  406. package/dist/modules/flow/functions/board.d.ts +7 -0
  407. package/dist/modules/flow/functions/board.d.ts.map +1 -0
  408. package/dist/modules/flow/functions/board.js +59 -0
  409. package/dist/modules/flow/functions/board.js.map +1 -0
  410. package/dist/modules/flow/functions/column.d.ts +8 -0
  411. package/dist/modules/flow/functions/column.d.ts.map +1 -0
  412. package/dist/modules/flow/functions/column.js +64 -0
  413. package/dist/modules/flow/functions/column.js.map +1 -0
  414. package/dist/modules/flow/functions/effects.d.ts +21 -0
  415. package/dist/modules/flow/functions/effects.d.ts.map +1 -0
  416. package/dist/modules/flow/functions/effects.js +96 -0
  417. package/dist/modules/flow/functions/effects.js.map +1 -0
  418. package/dist/modules/flow/functions/entity-save.d.ts +4 -0
  419. package/dist/modules/flow/functions/entity-save.d.ts.map +1 -0
  420. package/dist/modules/flow/functions/entity-save.js +60 -0
  421. package/dist/modules/flow/functions/entity-save.js.map +1 -0
  422. package/dist/modules/flow/functions/epic.d.ts +26 -0
  423. package/dist/modules/flow/functions/epic.d.ts.map +1 -0
  424. package/dist/modules/flow/functions/epic.js +151 -0
  425. package/dist/modules/flow/functions/epic.js.map +1 -0
  426. package/dist/modules/flow/functions/field.d.ts +9 -0
  427. package/dist/modules/flow/functions/field.d.ts.map +1 -0
  428. package/dist/modules/flow/functions/field.js +117 -0
  429. package/dist/modules/flow/functions/field.js.map +1 -0
  430. package/dist/modules/flow/functions/index.d.ts +5 -0
  431. package/dist/modules/flow/functions/index.d.ts.map +1 -0
  432. package/dist/modules/flow/functions/index.js +42 -0
  433. package/dist/modules/flow/functions/index.js.map +1 -0
  434. package/dist/modules/flow/functions/issue-batch.d.ts +6 -0
  435. package/dist/modules/flow/functions/issue-batch.d.ts.map +1 -0
  436. package/dist/modules/flow/functions/issue-batch.js +149 -0
  437. package/dist/modules/flow/functions/issue-batch.js.map +1 -0
  438. package/dist/modules/flow/functions/issue-dependency.d.ts +8 -0
  439. package/dist/modules/flow/functions/issue-dependency.d.ts.map +1 -0
  440. package/dist/modules/flow/functions/issue-dependency.js +54 -0
  441. package/dist/modules/flow/functions/issue-dependency.js.map +1 -0
  442. package/dist/modules/flow/functions/issue-discussion.d.ts +6 -0
  443. package/dist/modules/flow/functions/issue-discussion.d.ts.map +1 -0
  444. package/dist/modules/flow/functions/issue-discussion.js +86 -0
  445. package/dist/modules/flow/functions/issue-discussion.js.map +1 -0
  446. package/dist/modules/flow/functions/issue-read.d.ts +18 -0
  447. package/dist/modules/flow/functions/issue-read.d.ts.map +1 -0
  448. package/dist/modules/flow/functions/issue-read.js +159 -0
  449. package/dist/modules/flow/functions/issue-read.js.map +1 -0
  450. package/dist/modules/flow/functions/issue-write.d.ts +9 -0
  451. package/dist/modules/flow/functions/issue-write.d.ts.map +1 -0
  452. package/dist/modules/flow/functions/issue-write.js +149 -0
  453. package/dist/modules/flow/functions/issue-write.js.map +1 -0
  454. package/dist/modules/flow/functions/issueType.d.ts +8 -0
  455. package/dist/modules/flow/functions/issueType.d.ts.map +1 -0
  456. package/dist/modules/flow/functions/issueType.js +66 -0
  457. package/dist/modules/flow/functions/issueType.js.map +1 -0
  458. package/dist/modules/flow/functions/page.d.ts +22 -0
  459. package/dist/modules/flow/functions/page.d.ts.map +1 -0
  460. package/dist/modules/flow/functions/page.js +202 -0
  461. package/dist/modules/flow/functions/page.js.map +1 -0
  462. package/dist/modules/flow/functions/project.d.ts +26 -0
  463. package/dist/modules/flow/functions/project.d.ts.map +1 -0
  464. package/dist/modules/flow/functions/project.js +381 -0
  465. package/dist/modules/flow/functions/project.js.map +1 -0
  466. package/dist/modules/flow/functions/sprint.d.ts +17 -0
  467. package/dist/modules/flow/functions/sprint.d.ts.map +1 -0
  468. package/dist/modules/flow/functions/sprint.js +173 -0
  469. package/dist/modules/flow/functions/sprint.js.map +1 -0
  470. package/dist/modules/flow/functions/tag.d.ts +14 -0
  471. package/dist/modules/flow/functions/tag.d.ts.map +1 -0
  472. package/dist/modules/flow/functions/tag.js +88 -0
  473. package/dist/modules/flow/functions/tag.js.map +1 -0
  474. package/dist/modules/flow/index.d.ts +8 -2
  475. package/dist/modules/flow/index.d.ts.map +1 -1
  476. package/dist/modules/flow/index.js +7 -2
  477. package/dist/modules/flow/index.js.map +1 -1
  478. package/dist/modules/flow/pages.d.ts +1 -1
  479. package/dist/modules/flow/pages.d.ts.map +1 -1
  480. package/dist/modules/flow/pages.js +1 -1
  481. package/dist/modules/flow/pages.js.map +1 -1
  482. package/dist/modules/flow/queries/calendar.d.ts +21 -0
  483. package/dist/modules/flow/queries/calendar.d.ts.map +1 -0
  484. package/dist/modules/flow/queries/calendar.js +31 -0
  485. package/dist/modules/flow/queries/calendar.js.map +1 -0
  486. package/dist/modules/flow/queries/issue-dependencies.d.ts +17 -0
  487. package/dist/modules/flow/queries/issue-dependencies.d.ts.map +1 -0
  488. package/dist/modules/flow/queries/issue-dependencies.js +46 -0
  489. package/dist/modules/flow/queries/issue-dependencies.js.map +1 -0
  490. package/dist/modules/flow/queries/issue-followers.d.ts +6 -0
  491. package/dist/modules/flow/queries/issue-followers.d.ts.map +1 -0
  492. package/dist/modules/flow/queries/issue-followers.js +18 -0
  493. package/dist/modules/flow/queries/issue-followers.js.map +1 -0
  494. package/dist/modules/flow/queries/issue-list.d.ts +153 -0
  495. package/dist/modules/flow/queries/issue-list.d.ts.map +1 -0
  496. package/dist/modules/flow/queries/issue-list.js +439 -0
  497. package/dist/modules/flow/queries/issue-list.js.map +1 -0
  498. package/dist/modules/flow/queries/options.d.ts +4 -0
  499. package/dist/modules/flow/queries/options.d.ts.map +1 -0
  500. package/dist/modules/flow/queries/options.js +13 -0
  501. package/dist/modules/flow/queries/options.js.map +1 -0
  502. package/dist/modules/flow/queries/progress.d.ts +24 -0
  503. package/dist/modules/flow/queries/progress.d.ts.map +1 -0
  504. package/dist/modules/flow/queries/progress.js +54 -0
  505. package/dist/modules/flow/queries/progress.js.map +1 -0
  506. package/dist/modules/flow/queries/project-list.d.ts +4 -0
  507. package/dist/modules/flow/queries/project-list.d.ts.map +1 -0
  508. package/dist/modules/flow/queries/project-list.js +19 -0
  509. package/dist/modules/flow/queries/project-list.js.map +1 -0
  510. package/dist/modules/flow_backend/index.js +2 -1
  511. package/dist/modules/flow_backend/index.js.map +1 -1
  512. package/dist/modules/flow_backend/messages.d.ts +1 -2
  513. package/dist/modules/flow_backend/messages.d.ts.map +1 -1
  514. package/dist/modules/flow_backend/messages.js +0 -2
  515. package/dist/modules/flow_backend/messages.js.map +1 -1
  516. package/dist/modules/flow_backend/routes.d.ts.map +1 -1
  517. package/dist/modules/flow_backend/routes.js +182 -127
  518. package/dist/modules/flow_backend/routes.js.map +1 -1
  519. package/dist/modules/flow_backend/screens/all-epics.d.ts.map +1 -1
  520. package/dist/modules/flow_backend/screens/all-epics.js +37 -45
  521. package/dist/modules/flow_backend/screens/all-epics.js.map +1 -1
  522. package/dist/modules/flow_backend/screens/all-pages.d.ts.map +1 -1
  523. package/dist/modules/flow_backend/screens/all-pages.js +43 -51
  524. package/dist/modules/flow_backend/screens/all-pages.js.map +1 -1
  525. package/dist/modules/flow_backend/screens/epic-detail.js +1 -1
  526. package/dist/modules/flow_backend/screens/epic-detail.js.map +1 -1
  527. package/dist/modules/flow_backend/screens/gantt.d.ts.map +1 -1
  528. package/dist/modules/flow_backend/screens/gantt.js +1 -1
  529. package/dist/modules/flow_backend/screens/gantt.js.map +1 -1
  530. package/dist/modules/flow_backend/screens/issue-detail.js +2 -1
  531. package/dist/modules/flow_backend/screens/issue-detail.js.map +1 -1
  532. package/dist/modules/flow_backend/screens/issues.d.ts.map +1 -1
  533. package/dist/modules/flow_backend/screens/issues.js +68 -82
  534. package/dist/modules/flow_backend/screens/issues.js.map +1 -1
  535. package/dist/modules/flow_backend/screens/map.js +1 -1
  536. package/dist/modules/flow_backend/screens/map.js.map +1 -1
  537. package/dist/modules/flow_backend/screens/my-work.d.ts.map +1 -1
  538. package/dist/modules/flow_backend/screens/my-work.js +63 -69
  539. package/dist/modules/flow_backend/screens/my-work.js.map +1 -1
  540. package/dist/modules/flow_backend/screens/page-detail.js +1 -1
  541. package/dist/modules/flow_backend/screens/page-detail.js.map +1 -1
  542. package/dist/modules/flow_backend/screens/project-create.d.ts.map +1 -1
  543. package/dist/modules/flow_backend/screens/project-create.js +1 -1
  544. package/dist/modules/flow_backend/screens/project-create.js.map +1 -1
  545. package/dist/modules/flow_backend/screens/project-pages.d.ts.map +1 -1
  546. package/dist/modules/flow_backend/screens/project-pages.js +1 -2
  547. package/dist/modules/flow_backend/screens/project-pages.js.map +1 -1
  548. package/dist/modules/flow_backend/screens/projects-list.d.ts.map +1 -1
  549. package/dist/modules/flow_backend/screens/projects-list.js +41 -64
  550. package/dist/modules/flow_backend/screens/projects-list.js.map +1 -1
  551. package/dist/modules/flow_backend/screens/sprints.d.ts +3 -1
  552. package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -1
  553. package/dist/modules/flow_backend/screens/sprints.js +77 -73
  554. package/dist/modules/flow_backend/screens/sprints.js.map +1 -1
  555. package/dist/modules/flow_backend/search-functions.d.ts +13 -0
  556. package/dist/modules/flow_backend/search-functions.d.ts.map +1 -0
  557. package/dist/modules/flow_backend/search-functions.js +40 -0
  558. package/dist/modules/flow_backend/search-functions.js.map +1 -0
  559. package/dist/modules/flow_backend/search.d.ts +48 -0
  560. package/dist/modules/flow_backend/search.d.ts.map +1 -0
  561. package/dist/modules/flow_backend/search.js +57 -0
  562. package/dist/modules/flow_backend/search.js.map +1 -0
  563. package/dist/modules/flow_staff_channel/channel-routes.js +1 -1
  564. package/dist/modules/flow_staff_channel/channel-routes.js.map +1 -1
  565. package/dist/modules/hospitality_billing/index.js +2 -1
  566. package/dist/modules/hospitality_billing/index.js.map +1 -1
  567. package/dist/modules/hospitality_billing/menus.js +2 -2
  568. package/dist/modules/hospitality_billing/menus.js.map +1 -1
  569. package/dist/modules/hospitality_billing/messages.js +2 -2
  570. package/dist/modules/hospitality_billing/messages.js.map +1 -1
  571. package/dist/modules/hospitality_billing/routes.d.ts.map +1 -1
  572. package/dist/modules/hospitality_billing/routes.js +39 -5
  573. package/dist/modules/hospitality_billing/routes.js.map +1 -1
  574. package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -1
  575. package/dist/modules/hospitality_billing/screens/billing.js +21 -17
  576. package/dist/modules/hospitality_billing/screens/billing.js.map +1 -1
  577. package/dist/modules/hospitality_billing/screens/charge-rules.d.ts +4 -2
  578. package/dist/modules/hospitality_billing/screens/charge-rules.d.ts.map +1 -1
  579. package/dist/modules/hospitality_billing/screens/charge-rules.js +14 -9
  580. package/dist/modules/hospitality_billing/screens/charge-rules.js.map +1 -1
  581. package/dist/modules/hospitality_billing/screens/page-frame.d.ts +3 -2
  582. package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -1
  583. package/dist/modules/hospitality_billing/screens/page-frame.js +2 -4
  584. package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -1
  585. package/dist/modules/hospitality_billing/screens/shared.d.ts +4 -4
  586. package/dist/modules/hospitality_billing/screens/shared.d.ts.map +1 -1
  587. package/dist/modules/hospitality_billing/screens/shared.js +2 -2
  588. package/dist/modules/hospitality_billing/screens/shared.js.map +1 -1
  589. package/dist/modules/hospitality_billing/search-functions.d.ts +4 -0
  590. package/dist/modules/hospitality_billing/search-functions.d.ts.map +1 -0
  591. package/dist/modules/hospitality_billing/search-functions.js +16 -0
  592. package/dist/modules/hospitality_billing/search-functions.js.map +1 -0
  593. package/dist/modules/hospitality_billing/search.d.ts +66 -0
  594. package/dist/modules/hospitality_billing/search.d.ts.map +1 -0
  595. package/dist/modules/hospitality_billing/search.js +92 -0
  596. package/dist/modules/hospitality_billing/search.js.map +1 -0
  597. package/dist/modules/hospitality_core/content.d.ts.map +1 -1
  598. package/dist/modules/hospitality_core/content.js +3 -0
  599. package/dist/modules/hospitality_core/content.js.map +1 -1
  600. package/dist/modules/hospitality_core/housekeeping.d.ts.map +1 -1
  601. package/dist/modules/hospitality_core/housekeeping.js +13 -4
  602. package/dist/modules/hospitality_core/housekeeping.js.map +1 -1
  603. package/dist/modules/hospitality_core/index.d.ts.map +1 -1
  604. package/dist/modules/hospitality_core/index.js +2 -0
  605. package/dist/modules/hospitality_core/index.js.map +1 -1
  606. package/dist/modules/hospitality_core/menus.d.ts.map +1 -1
  607. package/dist/modules/hospitality_core/menus.js +27 -30
  608. package/dist/modules/hospitality_core/menus.js.map +1 -1
  609. package/dist/modules/hospitality_core/messages.d.ts.map +1 -1
  610. package/dist/modules/hospitality_core/messages.js +6 -2
  611. package/dist/modules/hospitality_core/messages.js.map +1 -1
  612. package/dist/modules/hospitality_core/routes.d.ts.map +1 -1
  613. package/dist/modules/hospitality_core/routes.js +135 -47
  614. package/dist/modules/hospitality_core/routes.js.map +1 -1
  615. package/dist/modules/hospitality_core/screens/amenities.d.ts +4 -2
  616. package/dist/modules/hospitality_core/screens/amenities.d.ts.map +1 -1
  617. package/dist/modules/hospitality_core/screens/amenities.js +9 -5
  618. package/dist/modules/hospitality_core/screens/amenities.js.map +1 -1
  619. package/dist/modules/hospitality_core/screens/check-out-prep.d.ts.map +1 -1
  620. package/dist/modules/hospitality_core/screens/check-out-prep.js +1 -1
  621. package/dist/modules/hospitality_core/screens/check-out-prep.js.map +1 -1
  622. package/dist/modules/hospitality_core/screens/cleaning-tasks.d.ts.map +1 -1
  623. package/dist/modules/hospitality_core/screens/cleaning-tasks.js +45 -30
  624. package/dist/modules/hospitality_core/screens/cleaning-tasks.js.map +1 -1
  625. package/dist/modules/hospitality_core/screens/folios.d.ts +4 -2
  626. package/dist/modules/hospitality_core/screens/folios.d.ts.map +1 -1
  627. package/dist/modules/hospitality_core/screens/folios.js +10 -4
  628. package/dist/modules/hospitality_core/screens/folios.js.map +1 -1
  629. package/dist/modules/hospitality_core/screens/front-desk.d.ts.map +1 -1
  630. package/dist/modules/hospitality_core/screens/front-desk.js +40 -40
  631. package/dist/modules/hospitality_core/screens/front-desk.js.map +1 -1
  632. package/dist/modules/hospitality_core/screens/page-frame.d.ts +4 -3
  633. package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -1
  634. package/dist/modules/hospitality_core/screens/page-frame.js +4 -7
  635. package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -1
  636. package/dist/modules/hospitality_core/screens/policies.d.ts +4 -2
  637. package/dist/modules/hospitality_core/screens/policies.d.ts.map +1 -1
  638. package/dist/modules/hospitality_core/screens/policies.js +9 -5
  639. package/dist/modules/hospitality_core/screens/policies.js.map +1 -1
  640. package/dist/modules/hospitality_core/screens/properties.d.ts +4 -2
  641. package/dist/modules/hospitality_core/screens/properties.d.ts.map +1 -1
  642. package/dist/modules/hospitality_core/screens/properties.js +49 -42
  643. package/dist/modules/hospitality_core/screens/properties.js.map +1 -1
  644. package/dist/modules/hospitality_core/screens/rate-plans.d.ts.map +1 -1
  645. package/dist/modules/hospitality_core/screens/rate-plans.js +19 -15
  646. package/dist/modules/hospitality_core/screens/rate-plans.js.map +1 -1
  647. package/dist/modules/hospitality_core/screens/reservations.d.ts.map +1 -1
  648. package/dist/modules/hospitality_core/screens/reservations.js +26 -19
  649. package/dist/modules/hospitality_core/screens/reservations.js.map +1 -1
  650. package/dist/modules/hospitality_core/screens/room-types.d.ts.map +1 -1
  651. package/dist/modules/hospitality_core/screens/room-types.js +23 -19
  652. package/dist/modules/hospitality_core/screens/room-types.js.map +1 -1
  653. package/dist/modules/hospitality_core/screens/rooms.d.ts.map +1 -1
  654. package/dist/modules/hospitality_core/screens/rooms.js +26 -19
  655. package/dist/modules/hospitality_core/screens/rooms.js.map +1 -1
  656. package/dist/modules/hospitality_core/screens/shared.d.ts +4 -4
  657. package/dist/modules/hospitality_core/screens/shared.d.ts.map +1 -1
  658. package/dist/modules/hospitality_core/screens/shared.js +2 -2
  659. package/dist/modules/hospitality_core/screens/shared.js.map +1 -1
  660. package/dist/modules/hospitality_core/screens/stays.d.ts +4 -2
  661. package/dist/modules/hospitality_core/screens/stays.d.ts.map +1 -1
  662. package/dist/modules/hospitality_core/screens/stays.js +10 -4
  663. package/dist/modules/hospitality_core/screens/stays.js.map +1 -1
  664. package/dist/modules/hospitality_core/screens/tape-chart.d.ts.map +1 -1
  665. package/dist/modules/hospitality_core/screens/tape-chart.js +3 -12
  666. package/dist/modules/hospitality_core/screens/tape-chart.js.map +1 -1
  667. package/dist/modules/hospitality_core/search-functions.d.ts +10 -0
  668. package/dist/modules/hospitality_core/search-functions.d.ts.map +1 -0
  669. package/dist/modules/hospitality_core/search-functions.js +17 -0
  670. package/dist/modules/hospitality_core/search-functions.js.map +1 -0
  671. package/dist/modules/hospitality_core/search.d.ts +218 -0
  672. package/dist/modules/hospitality_core/search.d.ts.map +1 -0
  673. package/dist/modules/hospitality_core/search.js +201 -0
  674. package/dist/modules/hospitality_core/search.js.map +1 -0
  675. package/dist/modules/hr_backend/index.d.ts.map +1 -1
  676. package/dist/modules/hr_backend/index.js +2 -0
  677. package/dist/modules/hr_backend/index.js.map +1 -1
  678. package/dist/modules/hr_backend/routes.d.ts.map +1 -1
  679. package/dist/modules/hr_backend/routes.js +55 -71
  680. package/dist/modules/hr_backend/routes.js.map +1 -1
  681. package/dist/modules/hr_backend/screens/employee-form.d.ts.map +1 -1
  682. package/dist/modules/hr_backend/screens/employee-form.js +1 -1
  683. package/dist/modules/hr_backend/screens/employee-form.js.map +1 -1
  684. package/dist/modules/hr_backend/screens/employees-list.d.ts +3 -1
  685. package/dist/modules/hr_backend/screens/employees-list.d.ts.map +1 -1
  686. package/dist/modules/hr_backend/screens/employees-list.js +14 -12
  687. package/dist/modules/hr_backend/screens/employees-list.js.map +1 -1
  688. package/dist/modules/hr_backend/screens/leaves-list.d.ts +3 -1
  689. package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -1
  690. package/dist/modules/hr_backend/screens/leaves-list.js +11 -10
  691. package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -1
  692. package/dist/modules/hr_backend/search-functions.d.ts +4 -0
  693. package/dist/modules/hr_backend/search-functions.d.ts.map +1 -0
  694. package/dist/modules/hr_backend/search-functions.js +8 -0
  695. package/dist/modules/hr_backend/search-functions.js.map +1 -0
  696. package/dist/modules/hr_backend/search.d.ts +73 -0
  697. package/dist/modules/hr_backend/search.d.ts.map +1 -0
  698. package/dist/modules/hr_backend/search.js +67 -0
  699. package/dist/modules/hr_backend/search.js.map +1 -0
  700. package/dist/modules/livedoc/islands.d.ts +10 -0
  701. package/dist/modules/livedoc/islands.d.ts.map +1 -1
  702. package/dist/modules/loyalty_backend/index.js +176 -215
  703. package/dist/modules/loyalty_backend/index.js.map +1 -1
  704. package/dist/modules/loyalty_backend/messages.d.ts +0 -10
  705. package/dist/modules/loyalty_backend/messages.d.ts.map +1 -1
  706. package/dist/modules/loyalty_backend/messages.js +0 -10
  707. package/dist/modules/loyalty_backend/messages.js.map +1 -1
  708. package/dist/modules/loyalty_backend/screens/index.d.ts.map +1 -1
  709. package/dist/modules/loyalty_backend/screens/index.js +321 -326
  710. package/dist/modules/loyalty_backend/screens/index.js.map +1 -1
  711. package/dist/modules/loyalty_backend/screens/page-frame.d.ts +7 -5
  712. package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -1
  713. package/dist/modules/loyalty_backend/screens/page-frame.js +3 -3
  714. package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -1
  715. package/dist/modules/loyalty_backend/search-functions.d.ts +4 -0
  716. package/dist/modules/loyalty_backend/search-functions.d.ts.map +1 -0
  717. package/dist/modules/loyalty_backend/search-functions.js +11 -0
  718. package/dist/modules/loyalty_backend/search-functions.js.map +1 -0
  719. package/dist/modules/loyalty_backend/search.d.ts +33 -0
  720. package/dist/modules/loyalty_backend/search.d.ts.map +1 -0
  721. package/dist/modules/loyalty_backend/search.js +85 -0
  722. package/dist/modules/loyalty_backend/search.js.map +1 -0
  723. package/dist/modules/mail_backend/index.d.ts.map +1 -1
  724. package/dist/modules/mail_backend/index.js +0 -2
  725. package/dist/modules/mail_backend/index.js.map +1 -1
  726. package/dist/modules/mail_backend/screens/inbox-list.d.ts.map +1 -1
  727. package/dist/modules/mail_backend/screens/inbox-list.js +1 -1
  728. package/dist/modules/mail_backend/screens/inbox-list.js.map +1 -1
  729. package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -1
  730. package/dist/modules/mail_inbound_backend/index.js +0 -2
  731. package/dist/modules/mail_inbound_backend/index.js.map +1 -1
  732. package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts.map +1 -1
  733. package/dist/modules/mail_inbound_backend/screens/inbound-list.js +1 -1
  734. package/dist/modules/mail_inbound_backend/screens/inbound-list.js.map +1 -1
  735. package/dist/modules/mail_transport_backend/index.d.ts.map +1 -1
  736. package/dist/modules/mail_transport_backend/index.js +0 -2
  737. package/dist/modules/mail_transport_backend/index.js.map +1 -1
  738. package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts.map +1 -1
  739. package/dist/modules/mail_transport_backend/screens/outbox-list.js +1 -1
  740. package/dist/modules/mail_transport_backend/screens/outbox-list.js.map +1 -1
  741. package/dist/modules/manufacturing_backend/index.d.ts.map +1 -1
  742. package/dist/modules/manufacturing_backend/index.js +14 -0
  743. package/dist/modules/manufacturing_backend/index.js.map +1 -1
  744. package/dist/modules/manufacturing_backend/routes.d.ts.map +1 -1
  745. package/dist/modules/manufacturing_backend/routes.js +74 -20
  746. package/dist/modules/manufacturing_backend/routes.js.map +1 -1
  747. package/dist/modules/manufacturing_backend/screens/boms-list.d.ts +3 -1
  748. package/dist/modules/manufacturing_backend/screens/boms-list.d.ts.map +1 -1
  749. package/dist/modules/manufacturing_backend/screens/boms-list.js +12 -11
  750. package/dist/modules/manufacturing_backend/screens/boms-list.js.map +1 -1
  751. package/dist/modules/manufacturing_backend/screens/order-execution.d.ts.map +1 -1
  752. package/dist/modules/manufacturing_backend/screens/order-execution.js +1 -1
  753. package/dist/modules/manufacturing_backend/screens/order-execution.js.map +1 -1
  754. package/dist/modules/manufacturing_backend/screens/orders-list.d.ts +3 -1
  755. package/dist/modules/manufacturing_backend/screens/orders-list.d.ts.map +1 -1
  756. package/dist/modules/manufacturing_backend/screens/orders-list.js +13 -12
  757. package/dist/modules/manufacturing_backend/screens/orders-list.js.map +1 -1
  758. package/dist/modules/manufacturing_backend/screens/work-centers-list.d.ts +3 -1
  759. package/dist/modules/manufacturing_backend/screens/work-centers-list.d.ts.map +1 -1
  760. package/dist/modules/manufacturing_backend/screens/work-centers-list.js +13 -12
  761. package/dist/modules/manufacturing_backend/screens/work-centers-list.js.map +1 -1
  762. package/dist/modules/manufacturing_backend/search-functions.d.ts +4 -0
  763. package/dist/modules/manufacturing_backend/search-functions.d.ts.map +1 -0
  764. package/dist/modules/manufacturing_backend/search-functions.js +9 -0
  765. package/dist/modules/manufacturing_backend/search-functions.js.map +1 -0
  766. package/dist/modules/manufacturing_backend/search.d.ts +99 -0
  767. package/dist/modules/manufacturing_backend/search.d.ts.map +1 -0
  768. package/dist/modules/manufacturing_backend/search.js +75 -0
  769. package/dist/modules/manufacturing_backend/search.js.map +1 -0
  770. package/dist/modules/oauth_backend/index.d.ts.map +1 -1
  771. package/dist/modules/oauth_backend/index.js +2 -0
  772. package/dist/modules/oauth_backend/index.js.map +1 -1
  773. package/dist/modules/oauth_backend/messages.d.ts +0 -4
  774. package/dist/modules/oauth_backend/messages.d.ts.map +1 -1
  775. package/dist/modules/oauth_backend/messages.js +0 -4
  776. package/dist/modules/oauth_backend/messages.js.map +1 -1
  777. package/dist/modules/oauth_backend/routes.d.ts.map +1 -1
  778. package/dist/modules/oauth_backend/routes.js +33 -2
  779. package/dist/modules/oauth_backend/routes.js.map +1 -1
  780. package/dist/modules/oauth_backend/screens/index.d.ts +7 -3
  781. package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -1
  782. package/dist/modules/oauth_backend/screens/index.js +114 -104
  783. package/dist/modules/oauth_backend/screens/index.js.map +1 -1
  784. package/dist/modules/oauth_backend/search-functions.d.ts +4 -0
  785. package/dist/modules/oauth_backend/search-functions.d.ts.map +1 -0
  786. package/dist/modules/oauth_backend/search-functions.js +8 -0
  787. package/dist/modules/oauth_backend/search-functions.js.map +1 -0
  788. package/dist/modules/oauth_backend/search.d.ts +68 -0
  789. package/dist/modules/oauth_backend/search.d.ts.map +1 -0
  790. package/dist/modules/oauth_backend/search.js +69 -0
  791. package/dist/modules/oauth_backend/search.js.map +1 -0
  792. package/dist/modules/partner/functions.d.ts.map +1 -1
  793. package/dist/modules/partner/functions.js +121 -23
  794. package/dist/modules/partner/functions.js.map +1 -1
  795. package/dist/modules/partner_backend/functions.d.ts +13 -0
  796. package/dist/modules/partner_backend/functions.d.ts.map +1 -0
  797. package/dist/modules/partner_backend/functions.js +56 -0
  798. package/dist/modules/partner_backend/functions.js.map +1 -0
  799. package/dist/modules/partner_backend/index.d.ts.map +1 -1
  800. package/dist/modules/partner_backend/index.js +28 -6
  801. package/dist/modules/partner_backend/index.js.map +1 -1
  802. package/dist/modules/partner_backend/routes.d.ts.map +1 -1
  803. package/dist/modules/partner_backend/routes.js +269 -86
  804. package/dist/modules/partner_backend/routes.js.map +1 -1
  805. package/dist/modules/partner_backend/screens/form.d.ts.map +1 -1
  806. package/dist/modules/partner_backend/screens/form.js +3 -1
  807. package/dist/modules/partner_backend/screens/form.js.map +1 -1
  808. package/dist/modules/partner_backend/screens/index.d.ts +1 -1
  809. package/dist/modules/partner_backend/screens/index.d.ts.map +1 -1
  810. package/dist/modules/partner_backend/screens/list.d.ts +3 -4
  811. package/dist/modules/partner_backend/screens/list.d.ts.map +1 -1
  812. package/dist/modules/partner_backend/screens/list.js +13 -92
  813. package/dist/modules/partner_backend/screens/list.js.map +1 -1
  814. package/dist/modules/partner_backend/screens/new.d.ts.map +1 -1
  815. package/dist/modules/partner_backend/screens/new.js +1 -1
  816. package/dist/modules/partner_backend/screens/new.js.map +1 -1
  817. package/dist/modules/partner_backend/screens/types.d.ts +0 -11
  818. package/dist/modules/partner_backend/screens/types.d.ts.map +1 -1
  819. package/dist/modules/pos_backend/index.js +34 -9
  820. package/dist/modules/pos_backend/index.js.map +1 -1
  821. package/dist/modules/pos_backend/screens.d.ts +4 -2
  822. package/dist/modules/pos_backend/screens.d.ts.map +1 -1
  823. package/dist/modules/pos_backend/screens.js +105 -96
  824. package/dist/modules/pos_backend/screens.js.map +1 -1
  825. package/dist/modules/pos_backend/search-functions.d.ts +4 -0
  826. package/dist/modules/pos_backend/search-functions.d.ts.map +1 -0
  827. package/dist/modules/pos_backend/search-functions.js +7 -0
  828. package/dist/modules/pos_backend/search-functions.js.map +1 -0
  829. package/dist/modules/pos_backend/search.d.ts +41 -0
  830. package/dist/modules/pos_backend/search.d.ts.map +1 -0
  831. package/dist/modules/pos_backend/search.js +33 -0
  832. package/dist/modules/pos_backend/search.js.map +1 -0
  833. package/dist/modules/pricing_backend/index.js +31 -4
  834. package/dist/modules/pricing_backend/index.js.map +1 -1
  835. package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts.map +1 -1
  836. package/dist/modules/pricing_backend/screens/pricelist-detail.js +1 -1
  837. package/dist/modules/pricing_backend/screens/pricelist-detail.js.map +1 -1
  838. package/dist/modules/pricing_backend/screens/pricelists-list.d.ts +3 -1
  839. package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -1
  840. package/dist/modules/pricing_backend/screens/pricelists-list.js +14 -12
  841. package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -1
  842. package/dist/modules/pricing_backend/search-functions.d.ts +4 -0
  843. package/dist/modules/pricing_backend/search-functions.d.ts.map +1 -0
  844. package/dist/modules/pricing_backend/search-functions.js +11 -0
  845. package/dist/modules/pricing_backend/search-functions.js.map +1 -0
  846. package/dist/modules/pricing_backend/search.d.ts +41 -0
  847. package/dist/modules/pricing_backend/search.d.ts.map +1 -0
  848. package/dist/modules/pricing_backend/search.js +34 -0
  849. package/dist/modules/pricing_backend/search.js.map +1 -0
  850. package/dist/modules/product/attribute-draft.d.ts +3 -0
  851. package/dist/modules/product/attribute-draft.d.ts.map +1 -0
  852. package/dist/modules/product/attribute-draft.js +126 -0
  853. package/dist/modules/product/attribute-draft.js.map +1 -0
  854. package/dist/modules/product/attribute-modal-context.d.ts +4 -0
  855. package/dist/modules/product/attribute-modal-context.d.ts.map +1 -0
  856. package/dist/modules/product/attribute-modal-context.js +57 -0
  857. package/dist/modules/product/attribute-modal-context.js.map +1 -0
  858. package/dist/modules/product/attribute-modal-labels.d.ts +3 -0
  859. package/dist/modules/product/attribute-modal-labels.d.ts.map +1 -0
  860. package/dist/modules/product/attribute-modal-labels.js +30 -0
  861. package/dist/modules/product/attribute-modal-labels.js.map +1 -0
  862. package/dist/modules/product/functions.d.ts.map +1 -1
  863. package/dist/modules/product/functions.js +7 -1
  864. package/dist/modules/product/functions.js.map +1 -1
  865. package/dist/modules/product/messages.d.ts.map +1 -1
  866. package/dist/modules/product/messages.js +24 -0
  867. package/dist/modules/product/messages.js.map +1 -1
  868. package/dist/modules/product/models.d.ts.map +1 -1
  869. package/dist/modules/product/models.js +14 -2
  870. package/dist/modules/product/models.js.map +1 -1
  871. package/dist/modules/product/product-modal-context.d.ts.map +1 -1
  872. package/dist/modules/product/product-modal-context.js +20 -30
  873. package/dist/modules/product/product-modal-context.js.map +1 -1
  874. package/dist/modules/product/record-images.d.ts +12 -0
  875. package/dist/modules/product/record-images.d.ts.map +1 -0
  876. package/dist/modules/product/record-images.js +37 -0
  877. package/dist/modules/product/record-images.js.map +1 -0
  878. package/dist/modules/product/search.d.ts +3 -0
  879. package/dist/modules/product/search.d.ts.map +1 -1
  880. package/dist/modules/product/search.js +4 -0
  881. package/dist/modules/product/search.js.map +1 -1
  882. package/dist/modules/product/variant-setup.d.ts +46 -0
  883. package/dist/modules/product/variant-setup.d.ts.map +1 -0
  884. package/dist/modules/product/variant-setup.js +444 -0
  885. package/dist/modules/product/variant-setup.js.map +1 -0
  886. package/dist/modules/product_backend/attribute-search-state.d.ts +22 -0
  887. package/dist/modules/product_backend/attribute-search-state.d.ts.map +1 -0
  888. package/dist/modules/product_backend/attribute-search-state.js +62 -0
  889. package/dist/modules/product_backend/attribute-search-state.js.map +1 -0
  890. package/dist/modules/product_backend/attributes-search.d.ts +10 -0
  891. package/dist/modules/product_backend/attributes-search.d.ts.map +1 -0
  892. package/dist/modules/product_backend/attributes-search.js +67 -0
  893. package/dist/modules/product_backend/attributes-search.js.map +1 -0
  894. package/dist/modules/product_backend/client/attribute-modal.d.mts +62 -0
  895. package/dist/modules/product_backend/client/attribute-modal.d.mts.map +1 -0
  896. package/dist/modules/product_backend/client/attribute-modal.mjs +2 -0
  897. package/dist/modules/product_backend/client/attribute-modal.mjs.map +7 -0
  898. package/dist/modules/product_backend/client/product-modal.d.mts +45 -44
  899. package/dist/modules/product_backend/client/product-modal.d.mts.map +1 -1
  900. package/dist/modules/product_backend/client/product-modal.mjs +1 -1
  901. package/dist/modules/product_backend/client/product-modal.mjs.map +4 -4
  902. package/dist/modules/product_backend/client/product.css +262 -0
  903. package/dist/modules/product_backend/client/variant-editor.d.mts +16 -0
  904. package/dist/modules/product_backend/client/variant-editor.d.mts.map +1 -0
  905. package/dist/modules/product_backend/client/variant-editor.mjs +2 -0
  906. package/dist/modules/product_backend/client/variant-editor.mjs.map +7 -0
  907. package/dist/modules/product_backend/functions.d.ts.map +1 -0
  908. package/dist/modules/product_backend/functions.js +29 -0
  909. package/dist/modules/product_backend/functions.js.map +1 -0
  910. package/dist/modules/product_backend/index.d.ts.map +1 -1
  911. package/dist/modules/product_backend/index.js +227 -5
  912. package/dist/modules/product_backend/index.js.map +1 -1
  913. package/dist/modules/product_backend/islands.d.ts +20 -0
  914. package/dist/modules/product_backend/islands.d.ts.map +1 -1
  915. package/dist/modules/product_backend/islands.js +25 -0
  916. package/dist/modules/product_backend/islands.js.map +1 -1
  917. package/dist/modules/product_backend/menus.d.ts.map +1 -1
  918. package/dist/modules/product_backend/menus.js +4 -5
  919. package/dist/modules/product_backend/menus.js.map +1 -1
  920. package/dist/modules/product_backend/modal/attribute-modal-view.d.ts +25 -0
  921. package/dist/modules/product_backend/modal/attribute-modal-view.d.ts.map +1 -0
  922. package/dist/modules/product_backend/modal/attribute-modal-view.js +180 -0
  923. package/dist/modules/product_backend/modal/attribute-modal-view.js.map +1 -0
  924. package/dist/modules/product_backend/modal/product-modal-view.d.ts +25 -6
  925. package/dist/modules/product_backend/modal/product-modal-view.d.ts.map +1 -1
  926. package/dist/modules/product_backend/modal/product-modal-view.js +334 -251
  927. package/dist/modules/product_backend/modal/product-modal-view.js.map +1 -1
  928. package/dist/modules/product_backend/routes.d.ts.map +1 -1
  929. package/dist/modules/product_backend/routes.js +159 -200
  930. package/dist/modules/product_backend/routes.js.map +1 -1
  931. package/dist/modules/product_backend/screens/attributes.d.ts +18 -4
  932. package/dist/modules/product_backend/screens/attributes.d.ts.map +1 -1
  933. package/dist/modules/product_backend/screens/attributes.js +71 -63
  934. package/dist/modules/product_backend/screens/attributes.js.map +1 -1
  935. package/dist/modules/product_backend/screens/detail.d.ts.map +1 -1
  936. package/dist/modules/product_backend/screens/detail.js +3 -2
  937. package/dist/modules/product_backend/screens/detail.js.map +1 -1
  938. package/dist/modules/product_backend/screens/list.d.ts +13 -7
  939. package/dist/modules/product_backend/screens/list.d.ts.map +1 -1
  940. package/dist/modules/product_backend/screens/list.js +38 -57
  941. package/dist/modules/product_backend/screens/list.js.map +1 -1
  942. package/dist/modules/product_backend/screens/variant.d.ts.map +1 -1
  943. package/dist/modules/product_backend/screens/variant.js +3 -2
  944. package/dist/modules/product_backend/screens/variant.js.map +1 -1
  945. package/dist/modules/product_media/functions.d.ts.map +1 -1
  946. package/dist/modules/product_media/functions.js +2 -0
  947. package/dist/modules/product_media/functions.js.map +1 -1
  948. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts +185 -0
  949. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts.map +1 -0
  950. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs +2 -0
  951. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs.map +7 -0
  952. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts +52 -0
  953. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts.map +1 -0
  954. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs +2 -0
  955. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs.map +7 -0
  956. package/dist/modules/purchase_backend/index.js +192 -215
  957. package/dist/modules/purchase_backend/index.js.map +1 -1
  958. package/dist/modules/purchase_backend/modal/context.d.ts +4 -0
  959. package/dist/modules/purchase_backend/modal/context.d.ts.map +1 -0
  960. package/dist/modules/purchase_backend/modal/context.js +94 -0
  961. package/dist/modules/purchase_backend/modal/context.js.map +1 -0
  962. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts +18 -0
  963. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts.map +1 -0
  964. package/dist/modules/purchase_backend/modal/order-modal-view.js +290 -0
  965. package/dist/modules/purchase_backend/modal/order-modal-view.js.map +1 -0
  966. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts +3 -0
  967. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts.map +1 -0
  968. package/dist/modules/purchase_backend/modal/pricelist-context.js +36 -0
  969. package/dist/modules/purchase_backend/modal/pricelist-context.js.map +1 -0
  970. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts +12 -0
  971. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts.map +1 -0
  972. package/dist/modules/purchase_backend/modal/pricelist-view.js +78 -0
  973. package/dist/modules/purchase_backend/modal/pricelist-view.js.map +1 -0
  974. package/dist/modules/purchase_backend/screens/order-detail.d.ts.map +1 -1
  975. package/dist/modules/purchase_backend/screens/order-detail.js +4 -2
  976. package/dist/modules/purchase_backend/screens/order-detail.js.map +1 -1
  977. package/dist/modules/purchase_backend/screens/order-list-shared.js +2 -2
  978. package/dist/modules/purchase_backend/screens/order-list-shared.js.map +1 -1
  979. package/dist/modules/purchase_backend/screens/overview.d.ts +5 -0
  980. package/dist/modules/purchase_backend/screens/overview.d.ts.map +1 -1
  981. package/dist/modules/purchase_backend/screens/overview.js +27 -6
  982. package/dist/modules/purchase_backend/screens/overview.js.map +1 -1
  983. package/dist/modules/purchase_backend/screens/purchase-orders-list.d.ts.map +1 -1
  984. package/dist/modules/purchase_backend/screens/purchase-orders-list.js +11 -13
  985. package/dist/modules/purchase_backend/screens/purchase-orders-list.js.map +1 -1
  986. package/dist/modules/purchase_backend/screens/rfq-create.d.ts.map +1 -1
  987. package/dist/modules/purchase_backend/screens/rfq-create.js +1 -1
  988. package/dist/modules/purchase_backend/screens/rfq-create.js.map +1 -1
  989. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts +1 -1
  990. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts.map +1 -1
  991. package/dist/modules/purchase_backend/screens/rfqs-list.js +10 -15
  992. package/dist/modules/purchase_backend/screens/rfqs-list.js.map +1 -1
  993. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts.map +1 -1
  994. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js +1 -1
  995. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js.map +1 -1
  996. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts +2 -1
  997. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts.map +1 -1
  998. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js +11 -21
  999. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -1
  1000. package/dist/modules/purchase_backend/search-functions.d.ts +4 -0
  1001. package/dist/modules/purchase_backend/search-functions.d.ts.map +1 -0
  1002. package/dist/modules/purchase_backend/search-functions.js +9 -0
  1003. package/dist/modules/purchase_backend/search-functions.js.map +1 -0
  1004. package/dist/modules/purchase_backend/search.d.ts +128 -0
  1005. package/dist/modules/purchase_backend/search.d.ts.map +1 -0
  1006. package/dist/modules/purchase_backend/search.js +106 -0
  1007. package/dist/modules/purchase_backend/search.js.map +1 -0
  1008. package/dist/modules/sale/functions/line-edit.d.ts +4 -0
  1009. package/dist/modules/sale/functions/line-edit.d.ts.map +1 -0
  1010. package/dist/modules/sale/functions/line-edit.js +120 -0
  1011. package/dist/modules/sale/functions/line-edit.js.map +1 -0
  1012. package/dist/modules/sale/index.d.ts.map +1 -1
  1013. package/dist/modules/sale/index.js +16 -1
  1014. package/dist/modules/sale/index.js.map +1 -1
  1015. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts +53 -0
  1016. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts.map +1 -0
  1017. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs +2 -0
  1018. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs.map +7 -0
  1019. package/dist/modules/sale_backend/client/sale-order-modal.d.mts +161 -0
  1020. package/dist/modules/sale_backend/client/sale-order-modal.d.mts.map +1 -0
  1021. package/dist/modules/sale_backend/client/sale-order-modal.mjs +2 -0
  1022. package/dist/modules/sale_backend/client/sale-order-modal.mjs.map +7 -0
  1023. package/dist/modules/sale_backend/index.js +160 -48
  1024. package/dist/modules/sale_backend/index.js.map +1 -1
  1025. package/dist/modules/sale_backend/modal/context.d.ts +4 -0
  1026. package/dist/modules/sale_backend/modal/context.d.ts.map +1 -0
  1027. package/dist/modules/sale_backend/modal/context.js +94 -0
  1028. package/dist/modules/sale_backend/modal/context.js.map +1 -0
  1029. package/dist/modules/sale_backend/modal/order-modal-view.d.ts +18 -0
  1030. package/dist/modules/sale_backend/modal/order-modal-view.d.ts.map +1 -0
  1031. package/dist/modules/sale_backend/modal/order-modal-view.js +289 -0
  1032. package/dist/modules/sale_backend/modal/order-modal-view.js.map +1 -0
  1033. package/dist/modules/sale_backend/modal/policy-context.d.ts +3 -0
  1034. package/dist/modules/sale_backend/modal/policy-context.d.ts.map +1 -0
  1035. package/dist/modules/sale_backend/modal/policy-context.js +26 -0
  1036. package/dist/modules/sale_backend/modal/policy-context.js.map +1 -0
  1037. package/dist/modules/sale_backend/modal/policy-view.d.ts +11 -0
  1038. package/dist/modules/sale_backend/modal/policy-view.d.ts.map +1 -0
  1039. package/dist/modules/sale_backend/modal/policy-view.js +70 -0
  1040. package/dist/modules/sale_backend/modal/policy-view.js.map +1 -0
  1041. package/dist/modules/sale_backend/order-collection.d.ts +7 -0
  1042. package/dist/modules/sale_backend/order-collection.d.ts.map +1 -0
  1043. package/dist/modules/sale_backend/order-collection.js +27 -0
  1044. package/dist/modules/sale_backend/order-collection.js.map +1 -0
  1045. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts +1 -1
  1046. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts.map +1 -1
  1047. package/dist/modules/sale_backend/screens/invoicing-policies-list.js +10 -14
  1048. package/dist/modules/sale_backend/screens/invoicing-policies-list.js.map +1 -1
  1049. package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts.map +1 -1
  1050. package/dist/modules/sale_backend/screens/invoicing-policy-create.js +1 -1
  1051. package/dist/modules/sale_backend/screens/invoicing-policy-create.js.map +1 -1
  1052. package/dist/modules/sale_backend/screens/order-detail.d.ts.map +1 -1
  1053. package/dist/modules/sale_backend/screens/order-detail.js +3 -1
  1054. package/dist/modules/sale_backend/screens/order-detail.js.map +1 -1
  1055. package/dist/modules/sale_backend/screens/overview.d.ts +3 -0
  1056. package/dist/modules/sale_backend/screens/overview.d.ts.map +1 -1
  1057. package/dist/modules/sale_backend/screens/overview.js +24 -16
  1058. package/dist/modules/sale_backend/screens/overview.js.map +1 -1
  1059. package/dist/modules/sale_backend/screens/quotation-create.d.ts.map +1 -1
  1060. package/dist/modules/sale_backend/screens/quotation-create.js +1 -1
  1061. package/dist/modules/sale_backend/screens/quotation-create.js.map +1 -1
  1062. package/dist/modules/sale_backend/screens/quotations-list.d.ts +1 -1
  1063. package/dist/modules/sale_backend/screens/quotations-list.d.ts.map +1 -1
  1064. package/dist/modules/sale_backend/screens/quotations-list.js +12 -23
  1065. package/dist/modules/sale_backend/screens/quotations-list.js.map +1 -1
  1066. package/dist/modules/sale_backend/screens/sales-orders-list.d.ts.map +1 -1
  1067. package/dist/modules/sale_backend/screens/sales-orders-list.js +11 -20
  1068. package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -1
  1069. package/dist/modules/sale_backend/search-functions.d.ts +4 -0
  1070. package/dist/modules/sale_backend/search-functions.d.ts.map +1 -0
  1071. package/dist/modules/sale_backend/search-functions.js +9 -0
  1072. package/dist/modules/sale_backend/search-functions.js.map +1 -0
  1073. package/dist/modules/sale_backend/search.d.ts +146 -0
  1074. package/dist/modules/sale_backend/search.d.ts.map +1 -0
  1075. package/dist/modules/sale_backend/search.js +112 -0
  1076. package/dist/modules/sale_backend/search.js.map +1 -0
  1077. package/dist/modules/stock/functions/inventory-preview.d.ts +4 -0
  1078. package/dist/modules/stock/functions/inventory-preview.d.ts.map +1 -0
  1079. package/dist/modules/stock/functions/inventory-preview.js +68 -0
  1080. package/dist/modules/stock/functions/inventory-preview.js.map +1 -0
  1081. package/dist/modules/stock/index.d.ts.map +1 -1
  1082. package/dist/modules/stock/index.js +14 -1
  1083. package/dist/modules/stock/index.js.map +1 -1
  1084. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts +60 -0
  1085. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts.map +1 -0
  1086. package/dist/modules/stock_backend/client/inventory-count-modal.mjs +2 -0
  1087. package/dist/modules/stock_backend/client/inventory-count-modal.mjs.map +7 -0
  1088. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts +105 -0
  1089. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts.map +1 -0
  1090. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs +2 -0
  1091. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs.map +7 -0
  1092. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts +130 -0
  1093. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts.map +1 -0
  1094. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs +2 -0
  1095. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs.map +7 -0
  1096. package/dist/modules/stock_backend/functions/index.d.ts +10 -0
  1097. package/dist/modules/stock_backend/functions/index.d.ts.map +1 -0
  1098. package/dist/modules/stock_backend/functions/index.js +20 -0
  1099. package/dist/modules/stock_backend/functions/index.js.map +1 -0
  1100. package/dist/modules/stock_backend/functions.d.ts +2 -0
  1101. package/dist/modules/stock_backend/functions.d.ts.map +1 -0
  1102. package/dist/modules/stock_backend/functions.js +2 -0
  1103. package/dist/modules/stock_backend/functions.js.map +1 -0
  1104. package/dist/modules/stock_backend/index.js +85 -10
  1105. package/dist/modules/stock_backend/index.js.map +1 -1
  1106. package/dist/modules/stock_backend/islands.d.ts +8 -0
  1107. package/dist/modules/stock_backend/islands.d.ts.map +1 -1
  1108. package/dist/modules/stock_backend/islands.js +41 -0
  1109. package/dist/modules/stock_backend/islands.js.map +1 -1
  1110. package/dist/modules/stock_backend/modal/configuration-context.d.ts +3 -0
  1111. package/dist/modules/stock_backend/modal/configuration-context.d.ts.map +1 -0
  1112. package/dist/modules/stock_backend/modal/configuration-context.js +65 -0
  1113. package/dist/modules/stock_backend/modal/configuration-context.js.map +1 -0
  1114. package/dist/modules/stock_backend/modal/configuration-view.d.ts +21 -0
  1115. package/dist/modules/stock_backend/modal/configuration-view.d.ts.map +1 -0
  1116. package/dist/modules/stock_backend/modal/configuration-view.js +201 -0
  1117. package/dist/modules/stock_backend/modal/configuration-view.js.map +1 -0
  1118. package/dist/modules/stock_backend/modal/configuration.d.ts +20 -0
  1119. package/dist/modules/stock_backend/modal/configuration.d.ts.map +1 -0
  1120. package/dist/modules/stock_backend/modal/configuration.js +117 -0
  1121. package/dist/modules/stock_backend/modal/configuration.js.map +1 -0
  1122. package/dist/modules/stock_backend/modal/inventory-context.d.ts +3 -0
  1123. package/dist/modules/stock_backend/modal/inventory-context.d.ts.map +1 -0
  1124. package/dist/modules/stock_backend/modal/inventory-context.js +37 -0
  1125. package/dist/modules/stock_backend/modal/inventory-context.js.map +1 -0
  1126. package/dist/modules/stock_backend/modal/inventory-view.d.ts +14 -0
  1127. package/dist/modules/stock_backend/modal/inventory-view.d.ts.map +1 -0
  1128. package/dist/modules/stock_backend/modal/inventory-view.js +142 -0
  1129. package/dist/modules/stock_backend/modal/inventory-view.js.map +1 -0
  1130. package/dist/modules/stock_backend/modal/transfer-context.d.ts +3 -0
  1131. package/dist/modules/stock_backend/modal/transfer-context.d.ts.map +1 -0
  1132. package/dist/modules/stock_backend/modal/transfer-context.js +54 -0
  1133. package/dist/modules/stock_backend/modal/transfer-context.js.map +1 -0
  1134. package/dist/modules/stock_backend/modal/transfer-view.d.ts +15 -0
  1135. package/dist/modules/stock_backend/modal/transfer-view.d.ts.map +1 -0
  1136. package/dist/modules/stock_backend/modal/transfer-view.js +252 -0
  1137. package/dist/modules/stock_backend/modal/transfer-view.js.map +1 -0
  1138. package/dist/modules/stock_backend/routes.d.ts.map +1 -1
  1139. package/dist/modules/stock_backend/routes.js +274 -82
  1140. package/dist/modules/stock_backend/routes.js.map +1 -1
  1141. package/dist/modules/stock_backend/screens/forecast.d.ts.map +1 -1
  1142. package/dist/modules/stock_backend/screens/forecast.js +5 -32
  1143. package/dist/modules/stock_backend/screens/forecast.js.map +1 -1
  1144. package/dist/modules/stock_backend/screens/inventory.d.ts +3 -1
  1145. package/dist/modules/stock_backend/screens/inventory.d.ts.map +1 -1
  1146. package/dist/modules/stock_backend/screens/inventory.js +27 -74
  1147. package/dist/modules/stock_backend/screens/inventory.js.map +1 -1
  1148. package/dist/modules/stock_backend/screens/location-create.d.ts.map +1 -1
  1149. package/dist/modules/stock_backend/screens/location-create.js +1 -1
  1150. package/dist/modules/stock_backend/screens/location-create.js.map +1 -1
  1151. package/dist/modules/stock_backend/screens/locations-list.d.ts +1 -1
  1152. package/dist/modules/stock_backend/screens/locations-list.d.ts.map +1 -1
  1153. package/dist/modules/stock_backend/screens/locations-list.js +11 -22
  1154. package/dist/modules/stock_backend/screens/locations-list.js.map +1 -1
  1155. package/dist/modules/stock_backend/screens/lot-create.d.ts.map +1 -1
  1156. package/dist/modules/stock_backend/screens/lot-create.js +1 -1
  1157. package/dist/modules/stock_backend/screens/lot-create.js.map +1 -1
  1158. package/dist/modules/stock_backend/screens/lot-detail.d.ts.map +1 -1
  1159. package/dist/modules/stock_backend/screens/lot-detail.js +3 -2
  1160. package/dist/modules/stock_backend/screens/lot-detail.js.map +1 -1
  1161. package/dist/modules/stock_backend/screens/lots-list.d.ts +1 -1
  1162. package/dist/modules/stock_backend/screens/lots-list.d.ts.map +1 -1
  1163. package/dist/modules/stock_backend/screens/lots-list.js +11 -13
  1164. package/dist/modules/stock_backend/screens/lots-list.js.map +1 -1
  1165. package/dist/modules/stock_backend/screens/overview.d.ts +9 -0
  1166. package/dist/modules/stock_backend/screens/overview.d.ts.map +1 -0
  1167. package/dist/modules/stock_backend/screens/overview.js +38 -0
  1168. package/dist/modules/stock_backend/screens/overview.js.map +1 -0
  1169. package/dist/modules/stock_backend/screens/picking-type-create.d.ts.map +1 -1
  1170. package/dist/modules/stock_backend/screens/picking-type-create.js +1 -1
  1171. package/dist/modules/stock_backend/screens/picking-type-create.js.map +1 -1
  1172. package/dist/modules/stock_backend/screens/picking-types-list.d.ts +1 -1
  1173. package/dist/modules/stock_backend/screens/picking-types-list.d.ts.map +1 -1
  1174. package/dist/modules/stock_backend/screens/picking-types-list.js +11 -22
  1175. package/dist/modules/stock_backend/screens/picking-types-list.js.map +1 -1
  1176. package/dist/modules/stock_backend/screens/replenishment-create.d.ts.map +1 -1
  1177. package/dist/modules/stock_backend/screens/replenishment-create.js +1 -1
  1178. package/dist/modules/stock_backend/screens/replenishment-create.js.map +1 -1
  1179. package/dist/modules/stock_backend/screens/replenishment-list.d.ts +2 -2
  1180. package/dist/modules/stock_backend/screens/replenishment-list.d.ts.map +1 -1
  1181. package/dist/modules/stock_backend/screens/replenishment-list.js +12 -23
  1182. package/dist/modules/stock_backend/screens/replenishment-list.js.map +1 -1
  1183. package/dist/modules/stock_backend/screens/stock-route-create.d.ts.map +1 -1
  1184. package/dist/modules/stock_backend/screens/stock-route-create.js +1 -1
  1185. package/dist/modules/stock_backend/screens/stock-route-create.js.map +1 -1
  1186. package/dist/modules/stock_backend/screens/stock-route-detail.js +2 -1
  1187. package/dist/modules/stock_backend/screens/stock-route-detail.js.map +1 -1
  1188. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts +1 -1
  1189. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts.map +1 -1
  1190. package/dist/modules/stock_backend/screens/stock-routes-list.js +12 -23
  1191. package/dist/modules/stock_backend/screens/stock-routes-list.js.map +1 -1
  1192. package/dist/modules/stock_backend/screens/transfer-create.d.ts.map +1 -1
  1193. package/dist/modules/stock_backend/screens/transfer-create.js +1 -1
  1194. package/dist/modules/stock_backend/screens/transfer-create.js.map +1 -1
  1195. package/dist/modules/stock_backend/screens/transfer-detail.d.ts.map +1 -1
  1196. package/dist/modules/stock_backend/screens/transfer-detail.js +3 -2
  1197. package/dist/modules/stock_backend/screens/transfer-detail.js.map +1 -1
  1198. package/dist/modules/stock_backend/screens/transfers-list.d.ts +1 -1
  1199. package/dist/modules/stock_backend/screens/transfers-list.d.ts.map +1 -1
  1200. package/dist/modules/stock_backend/screens/transfers-list.js +12 -23
  1201. package/dist/modules/stock_backend/screens/transfers-list.js.map +1 -1
  1202. package/dist/modules/stock_backend/screens/warehouse-create.d.ts.map +1 -1
  1203. package/dist/modules/stock_backend/screens/warehouse-create.js +1 -1
  1204. package/dist/modules/stock_backend/screens/warehouse-create.js.map +1 -1
  1205. package/dist/modules/stock_backend/screens/warehouses-list.d.ts +1 -1
  1206. package/dist/modules/stock_backend/screens/warehouses-list.d.ts.map +1 -1
  1207. package/dist/modules/stock_backend/screens/warehouses-list.js +11 -22
  1208. package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -1
  1209. package/dist/modules/stock_backend/search.d.ts +286 -0
  1210. package/dist/modules/stock_backend/search.d.ts.map +1 -0
  1211. package/dist/modules/stock_backend/search.js +371 -0
  1212. package/dist/modules/stock_backend/search.js.map +1 -0
  1213. package/dist/modules/storage/functions.d.ts.map +1 -1
  1214. package/dist/modules/storage/functions.js +28 -5
  1215. package/dist/modules/storage/functions.js.map +1 -1
  1216. package/dist/modules/storage/jobs.d.ts.map +1 -1
  1217. package/dist/modules/storage/jobs.js +120 -2
  1218. package/dist/modules/storage/jobs.js.map +1 -1
  1219. package/dist/modules/storage/models.d.ts.map +1 -1
  1220. package/dist/modules/storage/models.js +21 -0
  1221. package/dist/modules/storage/models.js.map +1 -1
  1222. package/dist/modules/storage/policy.d.ts +27 -0
  1223. package/dist/modules/storage/policy.d.ts.map +1 -1
  1224. package/dist/modules/storage/policy.js +14 -0
  1225. package/dist/modules/storage/policy.js.map +1 -1
  1226. package/dist/modules/storage/routes.d.ts +1 -0
  1227. package/dist/modules/storage/routes.d.ts.map +1 -1
  1228. package/dist/modules/storage/routes.js +36 -10
  1229. package/dist/modules/storage/routes.js.map +1 -1
  1230. package/dist/modules/user/access-denial.d.ts +3 -0
  1231. package/dist/modules/user/access-denial.d.ts.map +1 -0
  1232. package/dist/modules/user/access-denial.js +34 -0
  1233. package/dist/modules/user/access-denial.js.map +1 -0
  1234. package/dist/modules/user/access-policy.d.ts +16 -0
  1235. package/dist/modules/user/access-policy.d.ts.map +1 -0
  1236. package/dist/modules/user/access-policy.js +455 -0
  1237. package/dist/modules/user/access-policy.js.map +1 -0
  1238. package/dist/modules/user/access-surfaces.d.ts +26 -0
  1239. package/dist/modules/user/access-surfaces.d.ts.map +1 -0
  1240. package/dist/modules/user/access-surfaces.js +76 -0
  1241. package/dist/modules/user/access-surfaces.js.map +1 -0
  1242. package/dist/modules/user/authorization.d.ts +12 -1
  1243. package/dist/modules/user/authorization.d.ts.map +1 -1
  1244. package/dist/modules/user/authorization.js +342 -36
  1245. package/dist/modules/user/authorization.js.map +1 -1
  1246. package/dist/modules/user/functions.d.ts.map +1 -1
  1247. package/dist/modules/user/functions.js +26 -3
  1248. package/dist/modules/user/functions.js.map +1 -1
  1249. package/dist/modules/user/index.d.ts.map +1 -1
  1250. package/dist/modules/user/index.js +13 -1
  1251. package/dist/modules/user/index.js.map +1 -1
  1252. package/dist/modules/user/modal-labels.d.ts +3 -0
  1253. package/dist/modules/user/modal-labels.d.ts.map +1 -0
  1254. package/dist/modules/user/modal-labels.js +30 -0
  1255. package/dist/modules/user/modal-labels.js.map +1 -0
  1256. package/dist/modules/user/modal-messages.d.ts +4 -0
  1257. package/dist/modules/user/modal-messages.d.ts.map +1 -0
  1258. package/dist/modules/user/modal-messages.js +15 -0
  1259. package/dist/modules/user/modal-messages.js.map +1 -0
  1260. package/dist/modules/user/models.d.ts.map +1 -1
  1261. package/dist/modules/user/models.js +48 -0
  1262. package/dist/modules/user/models.js.map +1 -1
  1263. package/dist/modules/user/permission-areas.d.ts +20 -0
  1264. package/dist/modules/user/permission-areas.d.ts.map +1 -0
  1265. package/dist/modules/user/permission-areas.js +89 -0
  1266. package/dist/modules/user/permission-areas.js.map +1 -0
  1267. package/dist/modules/user/policy-jobs.d.ts +4 -0
  1268. package/dist/modules/user/policy-jobs.d.ts.map +1 -0
  1269. package/dist/modules/user/policy-jobs.js +15 -0
  1270. package/dist/modules/user/policy-jobs.js.map +1 -0
  1271. package/dist/modules/user/role-modal-context.d.ts +3 -0
  1272. package/dist/modules/user/role-modal-context.d.ts.map +1 -0
  1273. package/dist/modules/user/role-modal-context.js +264 -0
  1274. package/dist/modules/user/role-modal-context.js.map +1 -0
  1275. package/dist/modules/user/roles.d.ts.map +1 -1
  1276. package/dist/modules/user/roles.js +2 -0
  1277. package/dist/modules/user/roles.js.map +1 -1
  1278. package/dist/modules/user/user-modal-context.d.ts +5 -1
  1279. package/dist/modules/user/user-modal-context.d.ts.map +1 -1
  1280. package/dist/modules/user/user-modal-context.js +227 -31
  1281. package/dist/modules/user/user-modal-context.js.map +1 -1
  1282. package/dist/modules/user_backend/access-options.d.ts +25 -0
  1283. package/dist/modules/user_backend/access-options.d.ts.map +1 -0
  1284. package/dist/modules/user_backend/access-options.js +38 -0
  1285. package/dist/modules/user_backend/access-options.js.map +1 -0
  1286. package/dist/modules/user_backend/access-policy-routes.d.ts +3 -0
  1287. package/dist/modules/user_backend/access-policy-routes.d.ts.map +1 -0
  1288. package/dist/modules/user_backend/access-policy-routes.js +76 -0
  1289. package/dist/modules/user_backend/access-policy-routes.js.map +1 -0
  1290. package/dist/modules/user_backend/client/access-policy-modal.d.mts +123 -0
  1291. package/dist/modules/user_backend/client/access-policy-modal.d.mts.map +1 -0
  1292. package/dist/modules/user_backend/client/access-policy-modal.mjs +2 -0
  1293. package/dist/modules/user_backend/client/access-policy-modal.mjs.map +7 -0
  1294. package/dist/modules/user_backend/client/role-modal.d.mts +103 -0
  1295. package/dist/modules/user_backend/client/role-modal.d.mts.map +1 -0
  1296. package/dist/modules/user_backend/client/role-modal.mjs +2 -0
  1297. package/dist/modules/user_backend/client/role-modal.mjs.map +7 -0
  1298. package/dist/modules/user_backend/client/user-modal.d.mts +160 -7
  1299. package/dist/modules/user_backend/client/user-modal.d.mts.map +1 -1
  1300. package/dist/modules/user_backend/client/user-modal.mjs +1 -1
  1301. package/dist/modules/user_backend/client/user-modal.mjs.map +4 -4
  1302. package/dist/modules/user_backend/index.d.ts +2 -2
  1303. package/dist/modules/user_backend/index.d.ts.map +1 -1
  1304. package/dist/modules/user_backend/index.js +4 -2
  1305. package/dist/modules/user_backend/index.js.map +1 -1
  1306. package/dist/modules/user_backend/islands.d.ts +14 -1
  1307. package/dist/modules/user_backend/islands.d.ts.map +1 -1
  1308. package/dist/modules/user_backend/islands.js +11 -3
  1309. package/dist/modules/user_backend/islands.js.map +1 -1
  1310. package/dist/modules/user_backend/managed-role-routes.d.ts +3 -0
  1311. package/dist/modules/user_backend/managed-role-routes.d.ts.map +1 -0
  1312. package/dist/modules/user_backend/managed-role-routes.js +44 -0
  1313. package/dist/modules/user_backend/managed-role-routes.js.map +1 -0
  1314. package/dist/modules/user_backend/menus.d.ts.map +1 -1
  1315. package/dist/modules/user_backend/menus.js +9 -7
  1316. package/dist/modules/user_backend/menus.js.map +1 -1
  1317. package/dist/modules/user_backend/messages.d.ts +508 -6
  1318. package/dist/modules/user_backend/messages.d.ts.map +1 -1
  1319. package/dist/modules/user_backend/messages.js +546 -44
  1320. package/dist/modules/user_backend/messages.js.map +1 -1
  1321. package/dist/modules/user_backend/modal/access-policy-modal-view.d.ts +43 -0
  1322. package/dist/modules/user_backend/modal/access-policy-modal-view.d.ts.map +1 -0
  1323. package/dist/modules/user_backend/modal/access-policy-modal-view.js +384 -0
  1324. package/dist/modules/user_backend/modal/access-policy-modal-view.js.map +1 -0
  1325. package/dist/modules/user_backend/modal/access-surfaces.d.ts +51 -0
  1326. package/dist/modules/user_backend/modal/access-surfaces.d.ts.map +1 -0
  1327. package/dist/modules/user_backend/modal/access-surfaces.js +138 -0
  1328. package/dist/modules/user_backend/modal/access-surfaces.js.map +1 -0
  1329. package/dist/modules/user_backend/modal/role-modal-view.d.ts +48 -0
  1330. package/dist/modules/user_backend/modal/role-modal-view.d.ts.map +1 -0
  1331. package/dist/modules/user_backend/modal/role-modal-view.js +488 -0
  1332. package/dist/modules/user_backend/modal/role-modal-view.js.map +1 -0
  1333. package/dist/modules/user_backend/modal/user-modal-view.d.ts +45 -0
  1334. package/dist/modules/user_backend/modal/user-modal-view.d.ts.map +1 -1
  1335. package/dist/modules/user_backend/modal/user-modal-view.js +1317 -71
  1336. package/dist/modules/user_backend/modal/user-modal-view.js.map +1 -1
  1337. package/dist/modules/user_backend/routes.d.ts.map +1 -1
  1338. package/dist/modules/user_backend/routes.js +109 -571
  1339. package/dist/modules/user_backend/routes.js.map +1 -1
  1340. package/dist/modules/user_backend/screens/access-policies-list.d.ts +31 -0
  1341. package/dist/modules/user_backend/screens/access-policies-list.d.ts.map +1 -0
  1342. package/dist/modules/user_backend/screens/access-policies-list.js +54 -0
  1343. package/dist/modules/user_backend/screens/access-policies-list.js.map +1 -0
  1344. package/dist/modules/user_backend/screens/index.d.ts +1 -3
  1345. package/dist/modules/user_backend/screens/index.d.ts.map +1 -1
  1346. package/dist/modules/user_backend/screens/index.js +2 -3
  1347. package/dist/modules/user_backend/screens/index.js.map +1 -1
  1348. package/dist/modules/user_backend/screens/profile-form.d.ts.map +1 -1
  1349. package/dist/modules/user_backend/screens/profile-form.js +1 -1
  1350. package/dist/modules/user_backend/screens/profile-form.js.map +1 -1
  1351. package/dist/modules/user_backend/screens/roles-list.d.ts +9 -3
  1352. package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -1
  1353. package/dist/modules/user_backend/screens/roles-list.js +15 -23
  1354. package/dist/modules/user_backend/screens/roles-list.js.map +1 -1
  1355. package/dist/modules/user_backend/screens/users-list.d.ts +7 -5
  1356. package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -1
  1357. package/dist/modules/user_backend/screens/users-list.js +29 -21
  1358. package/dist/modules/user_backend/screens/users-list.js.map +1 -1
  1359. package/dist/modules/user_backend/search-functions.d.ts +4 -0
  1360. package/dist/modules/user_backend/search-functions.d.ts.map +1 -0
  1361. package/dist/modules/user_backend/search-functions.js +13 -0
  1362. package/dist/modules/user_backend/search-functions.js.map +1 -0
  1363. package/dist/modules/user_backend/search.d.ts +128 -0
  1364. package/dist/modules/user_backend/search.d.ts.map +1 -0
  1365. package/dist/modules/user_backend/search.js +131 -0
  1366. package/dist/modules/user_backend/search.js.map +1 -0
  1367. package/dist/modules/website/cms.d.ts.map +1 -1
  1368. package/dist/modules/website/cms.js +17 -7
  1369. package/dist/modules/website/cms.js.map +1 -1
  1370. package/dist/modules/website/customer.d.ts +61 -1
  1371. package/dist/modules/website/customer.d.ts.map +1 -1
  1372. package/dist/modules/website/customer.js +197 -15
  1373. package/dist/modules/website/customer.js.map +1 -1
  1374. package/dist/modules/website/index.d.ts.map +1 -1
  1375. package/dist/modules/website/index.js +16 -2
  1376. package/dist/modules/website/index.js.map +1 -1
  1377. package/dist/modules/website/models.d.ts.map +1 -1
  1378. package/dist/modules/website/models.js +15 -0
  1379. package/dist/modules/website/models.js.map +1 -1
  1380. package/dist/modules/website/publication.d.ts.map +1 -1
  1381. package/dist/modules/website/publication.js +11 -5
  1382. package/dist/modules/website/publication.js.map +1 -1
  1383. package/dist/modules/website_backend/collection.d.ts +12 -0
  1384. package/dist/modules/website_backend/collection.d.ts.map +1 -0
  1385. package/dist/modules/website_backend/collection.js +17 -0
  1386. package/dist/modules/website_backend/collection.js.map +1 -0
  1387. package/dist/modules/website_backend/functions.d.ts +10 -0
  1388. package/dist/modules/website_backend/functions.d.ts.map +1 -0
  1389. package/dist/modules/website_backend/functions.js +37 -0
  1390. package/dist/modules/website_backend/functions.js.map +1 -0
  1391. package/dist/modules/website_backend/index.js +2 -0
  1392. package/dist/modules/website_backend/index.js.map +1 -1
  1393. package/dist/modules/website_backend/routes.d.ts.map +1 -1
  1394. package/dist/modules/website_backend/routes.js +124 -29
  1395. package/dist/modules/website_backend/routes.js.map +1 -1
  1396. package/dist/modules/website_backend/screens/index.d.ts +4 -8
  1397. package/dist/modules/website_backend/screens/index.d.ts.map +1 -1
  1398. package/dist/modules/website_backend/screens/index.js +685 -666
  1399. package/dist/modules/website_backend/screens/index.js.map +1 -1
  1400. package/dist/modules/website_backend/screens/page-frame.d.ts +7 -5
  1401. package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -1
  1402. package/dist/modules/website_backend/screens/page-frame.js +3 -3
  1403. package/dist/modules/website_backend/screens/page-frame.js.map +1 -1
  1404. package/dist/modules/website_backend/search.d.ts +125 -0
  1405. package/dist/modules/website_backend/search.d.ts.map +1 -0
  1406. package/dist/modules/website_backend/search.js +135 -0
  1407. package/dist/modules/website_backend/search.js.map +1 -0
  1408. package/dist/permission-catalogue.d.ts.map +1 -1
  1409. package/dist/permission-catalogue.js +180 -24
  1410. package/dist/permission-catalogue.js.map +1 -1
  1411. package/dist/phone.d.ts +32 -0
  1412. package/dist/phone.d.ts.map +1 -0
  1413. package/dist/phone.js +101 -0
  1414. package/dist/phone.js.map +1 -0
  1415. package/dist/role-templates.d.ts +79 -0
  1416. package/dist/role-templates.d.ts.map +1 -0
  1417. package/dist/role-templates.js +212 -0
  1418. package/dist/role-templates.js.map +1 -0
  1419. package/dist/scaffold/index.d.ts +1 -1
  1420. package/dist/scaffold/index.d.ts.map +1 -1
  1421. package/dist/scaffold/index.js +10 -5
  1422. package/dist/scaffold/index.js.map +1 -1
  1423. package/dist/scaffold/templates/README.md.tmpl +2 -1
  1424. package/dist/scaffold/templates/ket.workspace.mjs.tmpl +4 -1
  1425. package/dist/scaffold/templates/package.json.tmpl +2 -2
  1426. package/dist/ui/actions.d.ts +2 -0
  1427. package/dist/ui/actions.d.ts.map +1 -1
  1428. package/dist/ui/actions.js +1 -1
  1429. package/dist/ui/actions.js.map +1 -1
  1430. package/dist/ui/chrome.d.ts +19 -6
  1431. package/dist/ui/chrome.d.ts.map +1 -1
  1432. package/dist/ui/chrome.js +12 -7
  1433. package/dist/ui/chrome.js.map +1 -1
  1434. package/dist/ui/client/bulk-selection.d.ts +7 -0
  1435. package/dist/ui/client/bulk-selection.d.ts.map +1 -0
  1436. package/dist/ui/client/bulk-selection.js +67 -0
  1437. package/dist/ui/client/bulk-selection.js.map +1 -0
  1438. package/dist/ui/client/ket-table-view.d.ts +3 -0
  1439. package/dist/ui/client/ket-table-view.d.ts.map +1 -0
  1440. package/dist/ui/client/ket-table-view.js +27 -0
  1441. package/dist/ui/client/ket-table-view.js.map +1 -0
  1442. package/dist/ui/client/live-doc-shell.d.ts +66 -2
  1443. package/dist/ui/client/live-doc-shell.d.ts.map +1 -1
  1444. package/dist/ui/client/live-doc-shell.js +83 -6
  1445. package/dist/ui/client/live-doc-shell.js.map +1 -1
  1446. package/dist/ui/client/live-doc-tail.d.ts +4 -0
  1447. package/dist/ui/client/live-doc-tail.d.ts.map +1 -0
  1448. package/dist/ui/client/live-doc-tail.js +21 -0
  1449. package/dist/ui/client/live-doc-tail.js.map +1 -0
  1450. package/dist/ui/client/live-doc-view.d.ts +47 -1
  1451. package/dist/ui/client/live-doc-view.d.ts.map +1 -1
  1452. package/dist/ui/client/live-doc-view.js +318 -5
  1453. package/dist/ui/client/live-doc-view.js.map +1 -1
  1454. package/dist/ui/client/live-doc.css +81 -0
  1455. package/dist/ui/client/live-doc.d.mts +11 -4
  1456. package/dist/ui/client/live-doc.d.mts.map +1 -1
  1457. package/dist/ui/client/live-doc.mjs +14 -10
  1458. package/dist/ui/client/live-doc.mjs.map +4 -4
  1459. package/dist/ui/client/record-modal-form.d.ts +34 -0
  1460. package/dist/ui/client/record-modal-form.d.ts.map +1 -1
  1461. package/dist/ui/client/record-modal-form.js +17 -1
  1462. package/dist/ui/client/record-modal-form.js.map +1 -1
  1463. package/dist/ui/client/record-modal.d.ts +56 -6
  1464. package/dist/ui/client/record-modal.d.ts.map +1 -1
  1465. package/dist/ui/client/record-modal.js +235 -39
  1466. package/dist/ui/client/record-modal.js.map +1 -1
  1467. package/dist/ui/client/search-filter-view.d.ts +2 -0
  1468. package/dist/ui/client/search-filter-view.d.ts.map +1 -0
  1469. package/dist/ui/client/search-filter-view.js +6 -0
  1470. package/dist/ui/client/search-filter-view.js.map +1 -0
  1471. package/dist/ui/client/table-selection-view.d.ts.map +1 -1
  1472. package/dist/ui/client/table-selection-view.js +33 -16
  1473. package/dist/ui/client/table-selection-view.js.map +1 -1
  1474. package/dist/ui/client/user-modal-client.d.ts +6 -0
  1475. package/dist/ui/client/user-modal-client.d.ts.map +1 -0
  1476. package/dist/ui/client/user-modal-client.js +4 -0
  1477. package/dist/ui/client/user-modal-client.js.map +1 -0
  1478. package/dist/ui/client/user-workflow.d.ts.map +1 -1
  1479. package/dist/ui/client/user-workflow.js +4 -3
  1480. package/dist/ui/client/user-workflow.js.map +1 -1
  1481. package/dist/ui/client/variant-attribute-create.d.ts +19 -0
  1482. package/dist/ui/client/variant-attribute-create.d.ts.map +1 -0
  1483. package/dist/ui/client/variant-attribute-create.js +177 -0
  1484. package/dist/ui/client/variant-attribute-create.js.map +1 -0
  1485. package/dist/ui/client/variant-editor-view.d.ts +72 -0
  1486. package/dist/ui/client/variant-editor-view.d.ts.map +1 -0
  1487. package/dist/ui/client/variant-editor-view.js +943 -0
  1488. package/dist/ui/client/variant-editor-view.js.map +1 -0
  1489. package/dist/ui/collection-state.d.ts +11 -0
  1490. package/dist/ui/collection-state.d.ts.map +1 -0
  1491. package/dist/ui/collection-state.js +45 -0
  1492. package/dist/ui/collection-state.js.map +1 -0
  1493. package/dist/ui/collection.d.ts +23 -0
  1494. package/dist/ui/collection.d.ts.map +1 -0
  1495. package/dist/ui/collection.js +118 -0
  1496. package/dist/ui/collection.js.map +1 -0
  1497. package/dist/ui/form.d.ts +1 -1
  1498. package/dist/ui/form.d.ts.map +1 -1
  1499. package/dist/ui/form.js +1 -1
  1500. package/dist/ui/form.js.map +1 -1
  1501. package/dist/ui/index.d.ts +3 -1
  1502. package/dist/ui/index.d.ts.map +1 -1
  1503. package/dist/ui/index.js +3 -1
  1504. package/dist/ui/index.js.map +1 -1
  1505. package/dist/ui/layout.d.ts +8 -9
  1506. package/dist/ui/layout.d.ts.map +1 -1
  1507. package/dist/ui/layout.js +27 -12
  1508. package/dist/ui/layout.js.map +1 -1
  1509. package/dist/ui/list-page.d.ts +4 -2
  1510. package/dist/ui/list-page.d.ts.map +1 -1
  1511. package/dist/ui/list-page.js +29 -4
  1512. package/dist/ui/list-page.js.map +1 -1
  1513. package/dist/ui/nav.d.ts +2 -3
  1514. package/dist/ui/nav.d.ts.map +1 -1
  1515. package/dist/ui/nav.js +4 -8
  1516. package/dist/ui/nav.js.map +1 -1
  1517. package/dist/ui/navigation.d.ts +1 -0
  1518. package/dist/ui/navigation.d.ts.map +1 -1
  1519. package/dist/ui/navigation.js +3 -3
  1520. package/dist/ui/navigation.js.map +1 -1
  1521. package/dist/ui/table.d.ts +2 -0
  1522. package/dist/ui/table.d.ts.map +1 -1
  1523. package/dist/ui/table.js +24 -0
  1524. package/dist/ui/table.js.map +1 -1
  1525. package/dist/ui/user-workflow.d.ts +2 -1
  1526. package/dist/ui/user-workflow.d.ts.map +1 -1
  1527. package/dist/ui/user-workflow.js +44 -29
  1528. package/dist/ui/user-workflow.js.map +1 -1
  1529. package/package.json +14 -4
  1530. package/dist/modules/flow/functions.d.ts.map +0 -1
  1531. package/dist/modules/flow/functions.js +0 -1876
  1532. package/dist/modules/flow/functions.js.map +0 -1
  1533. package/dist/modules/flow/operations.d.ts +0 -414
  1534. package/dist/modules/flow/operations.d.ts.map +0 -1
  1535. package/dist/modules/flow/operations.js +0 -1671
  1536. package/dist/modules/flow/operations.js.map +0 -1
  1537. package/dist/modules/user_backend/access-routes.d.ts +0 -31
  1538. package/dist/modules/user_backend/access-routes.d.ts.map +0 -1
  1539. package/dist/modules/user_backend/access-routes.js +0 -447
  1540. package/dist/modules/user_backend/access-routes.js.map +0 -1
  1541. package/dist/modules/user_backend/screens/presets-form.d.ts +0 -16
  1542. package/dist/modules/user_backend/screens/presets-form.d.ts.map +0 -1
  1543. package/dist/modules/user_backend/screens/presets-form.js +0 -37
  1544. package/dist/modules/user_backend/screens/presets-form.js.map +0 -1
  1545. package/dist/modules/user_backend/screens/role-form.d.ts +0 -21
  1546. package/dist/modules/user_backend/screens/role-form.d.ts.map +0 -1
  1547. package/dist/modules/user_backend/screens/role-form.js +0 -93
  1548. package/dist/modules/user_backend/screens/role-form.js.map +0 -1
  1549. package/dist/modules/user_backend/screens/user-form.d.ts +0 -56
  1550. package/dist/modules/user_backend/screens/user-form.d.ts.map +0 -1
  1551. package/dist/modules/user_backend/screens/user-form.js +0 -202
  1552. package/dist/modules/user_backend/screens/user-form.js.map +0 -1
  1553. package/dist/ui/client/relation-select-view.d.ts +0 -77
  1554. package/dist/ui/client/relation-select-view.d.ts.map +0 -1
  1555. package/dist/ui/client/relation-select-view.js +0 -216
  1556. package/dist/ui/client/relation-select-view.js.map +0 -1
  1557. /package/dist/modules/{flow → product_backend}/functions.d.ts +0 -0
@@ -473,3 +473,64 @@
473
473
  min-inline-size: 0;
474
474
  }
475
475
  }
476
+
477
+ @layer ket.app {
478
+ @media (max-width: 48rem) {
479
+ [data-ui="sidebar-foot"] {
480
+ --admin-control-height: var(--kv-touch-target);
481
+ }
482
+ }
483
+ }
484
+
485
+ @layer ket.app {
486
+ [data-ui="sidebar-foot"][data-placement="header"] {
487
+ flex: 0 0 auto;
488
+ margin: 0;
489
+ padding: 0;
490
+ border: 0;
491
+ }
492
+ [data-ui="sidebar-foot"][data-placement="header"] [data-ui="sidebar-tools"] {
493
+ padding: 0;
494
+ border: 0;
495
+ gap: var(--kv-space-2);
496
+ }
497
+ [data-ui="sidebar-foot"][data-placement="header"]
498
+ :is([data-ui="action"][name="theme"], [data-ui="viewer-trigger"]) {
499
+ inline-size: var(--kv-space-7);
500
+ block-size: var(--kv-space-7);
501
+ min-inline-size: var(--kv-space-7);
502
+ min-block-size: var(--kv-space-7);
503
+ padding: 0;
504
+ border: 0;
505
+ background: transparent;
506
+ border-radius: var(--kv-radius-full);
507
+ }
508
+ [data-ui="sidebar-foot"][data-placement="header"] [data-ui="viewer-trigger"] > [data-ui="avatar"] {
509
+ inline-size: var(--kv-space-7);
510
+ block-size: var(--kv-space-7);
511
+ border-radius: var(--kv-radius-full);
512
+ font-size: var(--kv-text-xs);
513
+ }
514
+ [data-ui="sidebar-foot"][data-placement="header"] [data-ui="viewer-presence"] {
515
+ inline-size: var(--kv-space-2);
516
+ block-size: var(--kv-space-2);
517
+ inset-inline-end: calc((100% - var(--kv-space-7)) / 2 - var(--kv-space-0-5));
518
+ inset-block-end: calc((100% - var(--kv-space-7)) / 2 - var(--kv-space-0-5));
519
+ }
520
+ [data-ui="sidebar-foot"][data-placement="header"] [data-ui="viewer-menu"] {
521
+ inset-block-start: calc(100% + var(--kv-space-2));
522
+ inset-block-end: auto;
523
+ max-inline-size: calc(100vw - var(--kv-space-4));
524
+ }
525
+ @media (max-width: 48rem) {
526
+ [data-ui="sidebar-foot"][data-placement="header"]
527
+ [data-ui="sidebar-tools"]
528
+ :is([data-ui="action"], [data-ui="viewer-trigger"], [data-ui="indicator"]) {
529
+ min-inline-size: var(--kv-touch-target);
530
+ min-block-size: var(--kv-touch-target);
531
+ }
532
+ [data-ui="sidebar-foot"][data-placement="header"] [data-ui="sidebar-tools"] {
533
+ gap: var(--kv-space-1);
534
+ }
535
+ }
536
+ }
@@ -1,6 +1,6 @@
1
- declare var $c: ({ navigation: a, lifetime: t }: {
1
+ declare var Xg: ({ navigation: e, lifetime: t }: {
2
2
  lifetime: any;
3
3
  navigation: any;
4
4
  }) => () => void;
5
- export { $c as backendShell };
5
+ export { Xg as backendShell };
6
6
  //# sourceMappingURL=backend-shell.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"backend-shell.d.mts","sourceRoot":"","sources":["../../../../../../../../packages/ketsuite/src/modules/backend/design/client/backend-shell.mjs"],"names":[],"mappings":"AAC4+zB,QAAA,IAAo1O,EAAE;;;gBAAiJ,CAAC;AAAA,OAAM,EAAC,EAAE,IAAI,YAAY,EAAC,CAAC"}
1
+ {"version":3,"file":"backend-shell.d.mts","sourceRoot":"","sources":["../../../../../../../../packages/ketsuite/src/modules/backend/design/client/backend-shell.mjs"],"names":[],"mappings":"AACgk8C,QAAA,IAAwkP,EAAE;;;gBAAqiB,CAAC;AAAA,OAAM,EAAC,EAAE,IAAI,YAAY,EAAC,CAAC"}
@@ -1,2 +1,2 @@
1
1
  // @ts-nocheck Generated by tools/build-backend-client.mjs — do not edit.
2
- function ie(a){let t,i,n=0;async function u(l){let s=l.querySelector("input[type=email]"),y=l.querySelector("[data-email-status]");if(!s||!y)return;t?.abort(),clearTimeout(i);let P=++n,w=s.value.trim(),C=l.querySelector("[data-email-next]"),H=l.querySelector("[data-email-retry]"),L=(S,O)=>{y.textContent=S,C&&(C.disabled=!O),s.setAttribute("aria-invalid",String(!O)),l.dataset.emailAvailable=O?"true":"false"};if(H&&(H.hidden=!0),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(w)){L(w?"Email ch\u01B0a \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng.":"Nh\u1EADp email \u0111\u1EC3 ki\u1EC3m tra.",!1);return}L("\u0110ang ki\u1EC3m tra email\u2026",!1),i=setTimeout(async()=>{t=new AbortController;try{let S=await fetch(l.dataset.emailCheck,{method:"POST",cache:"no-store",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({email:w}),signal:AbortSignal.any([t.signal,AbortSignal.timeout(1e4)])});if(!S.ok)throw new Error("email-check-failed");let O=await S.json();if(P!==n||!l.isConnected)return;if(!O.ok)throw new Error("email-check-failed");L(O.available?"Email c\xF3 th\u1EC3 s\u1EED d\u1EE5ng.":"Email \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng. Nh\u1EADp email kh\xE1c.",O.available)}catch{if(P!==n||!l.isConnected)return;L("Ch\u01B0a ki\u1EC3m tra \u0111\u01B0\u1EE3c email. Vui l\xF2ng th\u1EED l\u1EA1i.",!1),H&&(H.hidden=!1)}},400)}function d(l,s=!1){let y=l.querySelector('select[name="companyId"]'),P=l.querySelector('select[name="branchId"]'),w=l.querySelector('select[name="scopeKind"]')?.value;if(P&&y){s&&(P.value="");for(let S of P.options)S.value&&(S.hidden=S.dataset.companyId!==y.value,S.disabled=S.hidden)}let C=w==="tenant"?"tenant":w==="branch"?`branch:${y?.value}:${P?.value}`:`company:${y?.value}`;for(let S of l.querySelectorAll("[data-assigned-scopes]")){let D=JSON.parse(S.dataset.assignedScopes??"[]").includes(C);S.disabled=S.dataset.roleDisabled==="true"||D;let F=S.closest("[data-role-option]"),J=F?.querySelector("[data-role-assigned]"),X=F?.querySelector("[data-role-description]");J&&(J.hidden=!D),X&&(X.hidden=D),S.disabled&&(S.checked=!1)}let H=y?.closest('[data-ui="form-field"]'),L=P?.closest('[data-ui="form-field"]');H&&(H.hidden=w==="tenant"),L&&(L.hidden=w==="tenant"||w==="company")}function b(){for(let l of document.querySelectorAll("form[data-user-workflow]"))l.dataset.initialized||(l.dataset.initialized="true",d(l),u(l))}document.addEventListener("input",l=>{let s=l.target,y=s.closest("form[data-user-workflow]");if(y&&(s.type==="email"&&u(y),s.matches("[data-role-search]"))){let P=0;for(let C of y.querySelectorAll("[data-role-option]"))C.hidden=!C.textContent?.toLocaleLowerCase("vi").includes(s.value.toLocaleLowerCase("vi")),C.hidden||P++;let w=y.querySelector("[data-role-empty]");w&&(w.hidden=P>0)}},{signal:a}),document.addEventListener("change",l=>{let s=l.target,y=s.closest("form[data-user-workflow]");y&&s.matches('select[name="companyId"],select[name="branchId"],select[name="scopeKind"]')&&d(y,s.matches('select[name="companyId"]'))},{signal:a}),document.addEventListener("click",l=>{let s=l.target;s.matches("[data-email-retry]")&&u(s.closest("form"))},{signal:a}),document.addEventListener("submit",l=>{let s=l.target;s.matches("form[data-user-workflow]")&&s.querySelector("input[type=email]")&&s.dataset.emailAvailable!=="true"&&l.preventDefault()},{signal:a});let v=new MutationObserver(b);return v.observe(document.documentElement,{childList:!0,subtree:!0}),b(),()=>{t?.abort(),clearTimeout(i),v.disconnect()}}import{each as qt}from"/_ket/view/index.js";import{Fragment as zt,jsx as Vt,jsxs as Ut}from"/_ket/view/jsx-runtime.js";var ne=["action","action-leading","action-label","action-spinner","action-group"];import{jsx as Zt,jsxs as Qt}from"/_ket/view/jsx-runtime.js";var re=["badge","tag","tag-remove","count-badge","avatar","code"];import{each as ea}from"/_ket/view/index.js";import{Fragment as ia,jsx as aa,jsxs as na}from"/_ket/view/jsx-runtime.js";var le=["notice","notice-mark","notice-copy","notice-title","notice-message","notice-actions","empty","empty-mark","empty-title","empty-message","empty-actions","loading","loading-label"];import{each as Fa}from"/_ket/view/index.js";import{each as va}from"/_ket/view/index.js";import{Fragment as sa,jsx as oa,jsxs as da}from"/_ket/view/jsx-runtime.js";import{jsx as ga,jsxs as ba}from"/_ket/view/jsx-runtime.js";var de=["app-shell","app-sidebar","app-main","app-right-rail","page","page-context","page-header","page-heading","page-eyebrow","page-title-row","page-title","page-description","page-subline","page-status","page-actions","page-meta","page-body","record-canvas","record-content","record-section","record-section-title"];import{Fragment as wa,jsx as Ta,jsxs as ka}from"/_ket/view/jsx-runtime.js";var se=["stack","inline","grid","card-grid","surface","surface-head","surface-heading","surface-title","surface-description","surface-actions","disclosure","disclosure-summary","disclosure-body","section","section-head","section-eyebrow","section-title","section-description","section-actions","section-body","content-card","card-media","card-head","card-leading","card-heading","card-eyebrow","card-title","card-summary","card-status","card-body","card-meta","card-actions","kanban","kanban-card","kanban-media","kanban-title","kanban-meta","kanban-note","kanban-actions","metric","metric-icon","metric-label","metric-value","metric-detail"];import{each as Ha}from"/_ket/view/index.js";import{Fragment as Ea,jsx as Ma}from"/_ket/view/jsx-runtime.js";import{jsx as Na,jsxs as Ba}from"/_ket/view/jsx-runtime.js";var ce=["field","field-label","field-required","field-control","field-options","field-option","field-option-input","field-help","field-error"];import{each as Ga}from"/_ket/view/index.js";import{jsx as za,jsxs as Ua}from"/_ket/view/jsx-runtime.js";var ue=["breadcrumbs","breadcrumb","breadcrumb-overflow","breadcrumb-overflow-trigger","breadcrumb-overflow-list","nav-list","nav-item","nav-item-leading","nav-item-label","nav-item-count","tabs","tab","tab-count","tabbed-view","tabbed-view-context","tab-panel"];import{jsx as Za,jsxs as Qa}from"/_ket/view/jsx-runtime.js";var me=["progress","progress-label","progress-value","progress-track","progress-bar"];import{each as ei}from"/_ket/view/index.js";import{Fragment as ni,jsx as ai,jsxs as ii}from"/_ket/view/jsx-runtime.js";var ge=["menu","menu-trigger","menu-trigger-count","menu-panel","menu-search","menu-search-input","menu-label","menu-separator","menu-item","menu-item-leading","menu-item-copy","menu-item-check","menu-item-shortcut"];import{jsx as oi,jsxs as di}from"/_ket/view/jsx-runtime.js";var be=["popover","popover-trigger","popover-panel","popover-close"];import{jsx as ui,jsxs as mi}from"/_ket/view/jsx-runtime.js";var fe=["tooltip","tooltip-trigger","tooltip-content"];import{jsx as fi,jsxs as hi}from"/_ket/view/jsx-runtime.js";var he=["modal-layer","modal-backdrop","modal-sheet","modal-head","modal-heading","modal-title-row","modal-title","modal-description","modal-close","modal-body","modal-actions"];import{jsx as Si}from"/_ket/view/jsx-runtime.js";var pe=["dialog","confirm-dialog-message"];import{each as ki}from"/_ket/view/index.js";import{jsx as Ri,jsxs as Ci}from"/_ket/view/jsx-runtime.js";var ye=["toast-region","toast","toast-copy","toast-title","toast-message","toast-actions"];import{jsx as Oi}from"/_ket/view/jsx-runtime.js";var ve=["spinner","visually-hidden"];import{each as Ai}from"/_ket/view/index.js";import{jsx as Ii}from"/_ket/view/jsx-runtime.js";var xe=["skeleton","skeleton-line"];var ft=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","summary",'[tabindex]:not([tabindex="-1"])'].join(","),$=a=>[...a.querySelectorAll(ft)].filter(t=>t instanceof HTMLElement&&!t.hidden&&t.getAttribute("aria-hidden")!=="true"&&(typeof t.checkVisibility!="function"||t.checkVisibility())),ht=['[data-ui="timeframe-menu"]','[data-ui="view-settings"]'],Se=ht.map(a=>`${a}[open]`).join(", "),_=(a=document)=>{let t=document.activeElement instanceof HTMLElement?document.activeElement:null,i=a.querySelector('[data-ui="modal-layer"][data-route-modal="true"] [role="dialog"]'),n=a.querySelector('[data-ui="app-shell"], [data-ui="shell"]'),u=n instanceof HTMLElement?n.inert:!1;if(i instanceof HTMLElement){n instanceof HTMLElement&&!n.contains(i)&&(n.inert=!0);let e=$(i)[0];(e instanceof HTMLElement?e:i).focus()}let d=[...a.querySelectorAll('[data-ui="menu"]')].filter(e=>e instanceof HTMLDetailsElement),b=e=>{let o=e.querySelector('[data-ui="menu-trigger"]');o instanceof HTMLElement&&o.setAttribute("aria-expanded",String(e.open))},v=d.map(e=>{let o=()=>b(e);return e.addEventListener("toggle",o),b(e),()=>e.removeEventListener("toggle",o)}),l=window.matchMedia("(max-width: 48rem)"),s=document.documentElement,y=s.dataset.kvNavigationOpen,P=[...a.querySelectorAll('[data-ui="app-navigation"]')].filter(e=>e instanceof HTMLDetailsElement),w=new Map,C=e=>{let o=w.get(e);if(o?.targets){for(let{element:r,inert:f}of o.targets)r.inert=f;o.targets=null}},H=()=>{l.matches&&P.some(o=>o.open)?s.dataset.kvNavigationOpen="true":y===void 0?delete s.dataset.kvNavigationOpen:s.dataset.kvNavigationOpen=y},L=e=>{let o=e.querySelector('[data-ui="navigation-trigger"]'),r=e.querySelector('[data-ui="navigation-drawer"]');if(!(o instanceof HTMLElement)||!(r instanceof HTMLElement))return;let f=l.matches;if(o.dataset.open=String(f&&e.open),!f){r.removeAttribute("role"),r.removeAttribute("aria-modal"),r.removeAttribute("aria-label"),C(e),H();return}if(r.setAttribute("role","dialog"),r.setAttribute("aria-modal","true"),r.setAttribute("aria-label",r.dataset.navigationLabel??"Navigation"),!e.open){C(e),H();return}let h=w.get(e)??{};if(!h.targets){let p=e.closest('[data-ui="app-shell"], [data-ui="shell"]'),k=p?[...p.querySelectorAll(':scope > [data-ui="app-main"], :scope > [data-ui="main"], :scope > [data-ui="app-right-rail"]')].filter(R=>R instanceof HTMLElement).map(R=>({element:R,inert:R.inert})):[];for(let{element:R}of k)R.inert=!0;h.targets=k,h.returnFocus=document.activeElement instanceof HTMLElement?document.activeElement:o,w.set(e,h),queueMicrotask(()=>{if(!e.open||!l.matches)return;let R=r.querySelector('[data-ui="navigation-item"][aria-current="page"]'),A=$(r)[0],E=R instanceof HTMLElement?R:A;(E instanceof HTMLElement?E:r).focus()})}H()},S=(e,o=!0)=>{let r=w.get(e);e.open=!1,L(e),o&&r?.returnFocus instanceof HTMLElement&&r.returnFocus.isConnected&&r.returnFocus.focus(),w.delete(e)},O=P.map(e=>{let o=()=>L(e),r=f=>{let h=f.target;if(!(h instanceof Element))return;let k=h.closest('[data-ui="navigation-branch-trigger"]')?.closest('[data-ui="navigation-branch"]');if(k instanceof HTMLDetailsElement&&k.open){f.preventDefault();return}!l.matches||!e.open||(h.closest('[data-ui="navigation-close"]')||h.closest('[data-ui="navigation-backdrop"]')||h.closest('[data-ui="navigation-item"]'))&&S(e)};return e.addEventListener("toggle",o),e.addEventListener("click",r),L(e),()=>{e.removeEventListener("toggle",o),e.removeEventListener("click",r),C(e)}}),D=()=>{for(let e of P)e.open?S(e,!1):L(e)};l.addEventListener("change",D);for(let e of a.querySelectorAll('[data-ui="popover"][data-open="true"]')){let o=e.querySelector('[data-ui="popover-trigger"]'),r=e.querySelector('[data-ui="popover-panel"]');if(!(o instanceof HTMLElement)||!(r instanceof HTMLElement))continue;let f=o.getBoundingClientRect(),h=8,p=e.getAttribute("data-placement")??"bottom-start",k=p.startsWith("top"),R=p.endsWith("end"),A=f.top-r.offsetHeight-h,E=f.bottom+h,I=A>=8,m=E+r.offsetHeight<=window.innerHeight-8,c=k?I||!m:!m&&I,T=R?f.right-r.offsetWidth:f.left,g=Math.max(8,Math.min(T,window.innerWidth-r.offsetWidth-8)),x=Math.max(8,Math.min(c?A:E,window.innerHeight-r.offsetHeight-8));r.dataset.runtimePositioned="true",r.dataset.runtimePlacement=`${c?"top":"bottom"}-${R?"end":"start"}`,r.style.left=`${Math.round(g)}px`,r.style.top=`${Math.round(x)}px`,r.style.right="auto",r.style.bottom="auto"}let F=e=>{let o=P.find(m=>l.matches&&m.open);if(o instanceof HTMLDetailsElement){let m=o.querySelector('[data-ui="navigation-drawer"]');if(e.key==="Escape"){S(o),e.preventDefault();return}if(e.key==="Tab"&&m instanceof HTMLElement){let c=$(m),T=c[0],g=c.at(-1);if(!c.length){e.preventDefault(),m.focus();return}if(e.shiftKey&&(document.activeElement===T||document.activeElement===m)){e.preventDefault(),g instanceof HTMLElement&&g.focus();return}if(!e.shiftKey&&document.activeElement===g){e.preventDefault(),T instanceof HTMLElement&&T.focus();return}}}let r=document.activeElement?.closest('[data-ui="tree"] [role="treeitem"]');if(r instanceof HTMLElement){let m=r.closest('[data-ui="tree"]'),c=m?[...m.querySelectorAll('[role="treeitem"]')].filter(x=>x instanceof HTMLElement):[],T=c.indexOf(r),g=-1;if(e.key==="ArrowDown")g=Math.min(c.length-1,T+1);else if(e.key==="ArrowUp")g=Math.max(0,T-1);else if(e.key==="Home")g=0;else if(e.key==="End")g=c.length-1;else if(e.key==="ArrowRight"){let x=Number(r.getAttribute("aria-level"));r.getAttribute("aria-expanded")==="true"&&Number(c[T+1]?.getAttribute("aria-level"))>x&&(g=T+1)}else if(e.key==="ArrowLeft"){let x=Number(r.getAttribute("aria-level"));x>1&&(g=c.findLastIndex((N,ot)=>ot<T&&Number(N.getAttribute("aria-level"))<x))}if(g>=0&&c[g]){for(let x of c)x.tabIndex=-1;c[g].tabIndex=0,c[g].focus(),e.preventDefault();return}}let f=document.activeElement?.closest('[data-ui="tree-grid-row"]');if(f instanceof HTMLElement){let m=f.closest('[data-ui="tree-grid"]'),c=m?[...m.querySelectorAll('[data-ui="tree-grid-row"]')].filter(x=>x instanceof HTMLElement):[],T=c.indexOf(f),g=e.key==="ArrowDown"?Math.min(c.length-1,T+1):e.key==="ArrowUp"?Math.max(0,T-1):e.key==="Home"?0:e.key==="End"?c.length-1:-1;if(g>=0&&c[g]){for(let x of c)x.tabIndex=-1;c[g].tabIndex=0,c[g].focus(),e.preventDefault();return}}let h=document.activeElement?.closest('[data-ui="menu"]');if(h instanceof HTMLDetailsElement&&!h.open){let m=h.querySelector('[data-ui="menu-trigger"]');if(document.activeElement===m&&(e.key==="ArrowDown"||e.key==="ArrowUp")){h.open=!0;let c=[...h.querySelectorAll('[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]')].filter(g=>g instanceof HTMLElement&&g.getAttribute("aria-disabled")!=="true"),T=e.key==="ArrowUp"?c.at(-1):c[0];T instanceof HTMLElement&&T.focus(),e.preventDefault();return}}let p=document.activeElement?.closest('[data-ui="menu"][open]');if(p instanceof HTMLDetailsElement){let m=p.querySelector('[data-ui="menu-trigger"]'),c=[...p.querySelectorAll('[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]')].filter(N=>N instanceof HTMLElement&&N.getAttribute("aria-disabled")!=="true"),T=document.activeElement,g=T instanceof HTMLElement?c.indexOf(T):-1,x=-1;if(e.key==="ArrowDown"?x=g<0?0:(g+1)%c.length:e.key==="ArrowUp"?x=g<0?c.length-1:(g-1+c.length)%c.length:e.key==="Home"?x=0:e.key==="End"&&(x=c.length-1),x>=0&&c[x]instanceof HTMLElement){c[x].focus(),e.preventDefault();return}if((e.key==="Enter"||e.key===" ")&&document.activeElement===m){c[0]instanceof HTMLElement&&c[0].focus(),e.preventDefault();return}}if(e.key==="Escape"&&p instanceof HTMLDetailsElement){p.open=!1;let m=p.querySelector('[data-ui="menu-trigger"]');m instanceof HTMLElement&&m.focus(),e.preventDefault();return}let k=[...a.querySelectorAll(Se)].at(-1);if(e.key==="Escape"&&k instanceof HTMLDetailsElement){k.open=!1;let m=k.querySelector("summary");m instanceof HTMLElement&&m.focus(),e.preventDefault();return}let R=document.activeElement?.closest('[data-ui="popover"][data-open="true"]');if(e.key==="Escape"&&R instanceof HTMLElement){let m=R.querySelector('[data-ui="popover-close"]');m instanceof HTMLElement&&m.click(),e.preventDefault();return}if(!(i instanceof HTMLElement))return;if(e.key==="Escape"){let m=i.querySelector('[data-ui="modal-close"]');m instanceof HTMLElement&&m.click(),e.preventDefault();return}if(e.key!=="Tab")return;let A=$(i);if(!A.length){e.preventDefault(),i.focus();return}let E=A[0],I=A.at(-1);e.shiftKey&&(document.activeElement===E||document.activeElement===i)?(e.preventDefault(),I instanceof HTMLElement&&I.focus()):!e.shiftKey&&document.activeElement===I&&(e.preventDefault(),E instanceof HTMLElement&&E.focus())},J=e=>{let o=[...e.querySelectorAll('[data-ui="row-select"]')].filter(p=>p instanceof HTMLInputElement&&!p.disabled),r=o.filter(p=>p.checked),f=e.querySelector('[data-ui="select-all"]');f instanceof HTMLInputElement&&(f.checked=o.length>0&&r.length===o.length,f.indeterminate=r.length>0&&r.length<o.length);for(let p of o)p.closest('[data-ui="row"]')?.toggleAttribute("data-selected",p.checked);let h=o[0]?.getAttribute("form");if(h)for(let p of document.querySelectorAll(`[data-ui="bulk-actions"][data-form="${CSS.escape(h)}"]`)){r.length?p.setAttribute("data-has-selection","true"):p.removeAttribute("data-has-selection");for(let k of p.querySelectorAll('[data-ui="bulk-count"]'))k.textContent=String(r.length);for(let k of p.querySelectorAll('[data-ui="bulk-action-list"] button'))k instanceof HTMLButtonElement&&k.dataset.kvAlwaysDisabled!=="true"&&(k.disabled=r.length===0)}},X=e=>{let o=e.target;if(!(o instanceof HTMLInputElement))return;let r=o.getAttribute("data-ui");if(r!=="select-all"&&r!=="row-select")return;let f=o.closest('[data-ui="table"]');if(f){if(r==="select-all")for(let h of f.querySelectorAll('[data-ui="row-select"]'))h instanceof HTMLInputElement&&!h.disabled&&(h.checked=o.checked);J(f)}};for(let e of a.querySelectorAll('[data-ui="table"]'))e.querySelector('[data-ui="row-select"]')&&J(e);document.addEventListener("change",X);let ae=e=>{let o=e.target;if(o instanceof Node){for(let r of a.querySelectorAll('[data-ui="menu"][open]')){if(!(r instanceof HTMLDetailsElement))continue;let f=o instanceof Element?o.closest('[data-ui="menu-item"]'):null;(!r.contains(o)||f&&f.getAttribute("aria-disabled")!=="true")&&(r.open=!1)}for(let r of a.querySelectorAll(Se))r instanceof HTMLDetailsElement&&!r.contains(o)&&(r.open=!1)}};return document.addEventListener("keydown",F),document.addEventListener("click",ae),()=>{document.removeEventListener("keydown",F),document.removeEventListener("click",ae),document.removeEventListener("change",X);for(let e of v)e();l.removeEventListener("change",D);for(let e of O)e();y===void 0?delete s.dataset.kvNavigationOpen:s.dataset.kvNavigationOpen=y,n instanceof HTMLElement&&(n.inert=u),t?.isConnected&&t.focus()}};import{jsx as Ki,jsxs as Ni}from"/_ket/view/jsx-runtime.js";import{jsx as Vi,jsxs as zi}from"/_ket/view/jsx-runtime.js";var ke=["switch-control","switch-track"];import{each as _i}from"/_ket/view/index.js";import{Fragment as en,jsx as Yi,jsxs as ji}from"/_ket/view/jsx-runtime.js";var Pe=["combobox","combobox-input-row","combobox-toggle","combobox-listbox","combobox-option","combobox-empty","tag-picker"];import{jsx as ln,jsxs as on}from"/_ket/view/jsx-runtime.js";var Re=["date-range"];import{jsx as un,jsxs as mn}from"/_ket/view/jsx-runtime.js";var Ce=["file-upload","drop-zone","upload-status"];import{jsx as hn}from"/_ket/view/jsx-runtime.js";var Le=["relation-picker"];import{each as vn}from"/_ket/view/index.js";import{jsx as wn,jsxs as kn}from"/_ket/view/jsx-runtime.js";var He=["search-bar","filter-bar","applied-filters","applied-filter","saved-views","saved-view","view-settings","view-settings-options"];import{jsx as Ln,jsxs as Hn}from"/_ket/view/jsx-runtime.js";var Oe=["inline-edit","inline-edit-value","inline-edit-form","inline-edit-actions"];import{each as $n}from"/_ket/view/index.js";import{each as Dn}from"/_ket/view/index.js";import{Fragment as Kn,jsx as Jn,jsxs as Xn}from"/_ket/view/jsx-runtime.js";var Ee=["list-chrome","list-chrome-row","list-search","list-search-label","list-search-input","list-search-submit","list-filter-menus","list-facets","list-facet","list-facet-count","list-view-switch","list-view","list-sort","list-sort-label","list-sort-select","list-status","list-actions","bulk-actions","bulk-summary","bulk-count","bulk-action-list","pager-bar","pager-summary","pager-pages","pager-page","pager-actions","pager-link"];import{jsx as zn,jsxs as Un}from"/_ket/view/jsx-runtime.js";var Me=["resource-list","resource-list-item","resource-list-select","resource-list-link"];import{each as Zn}from"/_ket/view/index.js";import{jsx as Yn,jsxs as jn}from"/_ket/view/jsx-runtime.js";var Ae=["data-grid-scroll","data-grid","data-grid-cap","data-grid-cell"];import{each as ar}from"/_ket/view/index.js";import{jsx as nr,jsxs as rr}from"/_ket/view/jsx-runtime.js";var De=["tree","tree-item","tree-link","tree-grid","tree-grid-row"];import{each as dr}from"/_ket/view/index.js";import{jsx as cr,jsxs as ur}from"/_ket/view/jsx-runtime.js";var Ie=["data-matrix","data-matrix-head","data-matrix-heading","data-matrix-eyebrow","data-matrix-title","data-matrix-description","data-matrix-summary","data-matrix-scroll","data-matrix-table","data-matrix-column","data-matrix-row-head","data-matrix-row-leading","data-matrix-row-title","data-matrix-row-description","data-matrix-row-status","data-matrix-row-actions","data-matrix-cell"];import{each as br}from"/_ket/view/index.js";import{jsx as hr,jsxs as pr}from"/_ket/view/jsx-runtime.js";var Fe=["bar-chart","bar-chart-rows","bar-chart-row","bar-chart-label","bar-chart-caption","bar-chart-track","bar-chart-fill","bar-chart-segment","bar-chart-value","bar-chart-scale","bar-chart-legend","bar-chart-legend-item","bar-chart-legend-swatch","bar-chart-empty"];import{each as xr}from"/_ket/view/index.js";import{jsx as Tr,jsxs as wr}from"/_ket/view/jsx-runtime.js";var Je=["timeframe","timeframe-menu","timeframe-trigger","timeframe-label","timeframe-value","timeframe-content","timeframe-option","timeframe-option-label","timeframe-option-detail","timeframe-range","timeframe-asof","timeframe-note"];import{each as Rr}from"/_ket/view/index.js";import{jsx as Hr,jsxs as Or}from"/_ket/view/jsx-runtime.js";var Xe=["description-list","key-value","key-value-label","key-value-value","person","person-body","avatar-group","status"];import{jsx as Ar}from"/_ket/view/jsx-runtime.js";var Ke=["formatted-date","formatted-number","formatted-money"];import{each as Fr}from"/_ket/view/index.js";import{jsx as Br,jsxs as $r}from"/_ket/view/jsx-runtime.js";var Be=["record-summary","record-summary-main","record-actions","record-rail"];import{each as Vr}from"/_ket/view/index.js";import{jsx as _r,jsxs as Zr}from"/_ket/view/jsx-runtime.js";var qe=["activity-timeline","activity-item","activity-marker","audit-log","audit-item"];import{each as jr}from"/_ket/view/index.js";import{jsx as al,jsxs as il}from"/_ket/view/jsx-runtime.js";var Ge=["attachments","attachment","media-gallery","media-item"];import{each as ll}from"/_ket/view/index.js";import{Fragment as cl,jsx as dl,jsxs as sl}from"/_ket/view/jsx-runtime.js";var Ve=["app-navigation","navigation-trigger","navigation-trigger-icon","navigation-trigger-identity","navigation-trigger-label","navigation-layer","navigation-backdrop","navigation-drawer","navigation-header","navigation-identity","navigation-context","navigation-close","navigation-groups","navigation-group","navigation-group-label","navigation-items","navigation-supplementary","navigation-item","navigation-branch","navigation-branch-trigger","navigation-children","navigation-item-leading","navigation-item-copy","navigation-item-label","navigation-item-description","navigation-item-count","navigation-footer"];import{each as fl}from"/_ket/view/index.js";import{Fragment as Sl,jsx as vl,jsxs as xl}from"/_ket/view/jsx-runtime.js";var ze=["table-scroll","table","table-caption","select-col","select-all","col","sort-link","sort-icon","row","group-row","group-cell","group-link","group-indent","group-count","group-pager","group-pager-actions","cell","select-cell","row-select","row-link"];import{jsx as Hl,jsxs as Ol}from"/_ket/view/jsx-runtime.js";var Ue=["list-page","list-page-context","list-page-header","list-page-heading","list-page-title-row","list-page-eyebrow","list-page-title","list-page-description","list-page-actions","list-page-toolbar","list-page-controls","list-page-status","list-page-body","list-page-footer"];import{jsx as Dl,jsxs as Il}from"/_ket/view/jsx-runtime.js";var We=["record-page","record-page-context","record-page-header","record-page-title-row","record-page-heading","record-page-title","record-page-subline","record-page-status","record-page-description","record-page-actions","record-page-meta","record-page-controller","record-page-navigation","record-page-layout","record-page-body","record-page-aside"];var _e=["form-page","form-page-context","form-page-header","form-page-title-row","form-page-heading","form-page-title","form-page-subline","form-page-status","form-page-description","form-page-actions","form-page-meta","form-page-controller","form-page-navigation","form-page-layout","form-page-body","form-page-aside"];import{jsx as Gl,jsxs as Vl}from"/_ket/view/jsx-runtime.js";var Ze=["dashboard-page","dashboard-page-context","dashboard-page-header","dashboard-page-heading","dashboard-page-eyebrow","dashboard-page-title-row","dashboard-page-title","dashboard-page-subline","dashboard-page-status","dashboard-page-description","dashboard-page-actions","dashboard-page-meta","dashboard-page-body"];var Qe=["board-page","board-page-context","board-page-header","board-page-heading","board-page-eyebrow","board-page-title-row","board-page-title","board-page-subline","board-page-status","board-page-description","board-page-actions","board-page-meta","board-page-toolbar","board-page-controls","board-page-body"];import{each as eo}from"/_ket/view/index.js";import{jsx as ao,jsxs as io}from"/_ket/view/jsx-runtime.js";var Ye=["pipeline","pipeline-step","pipeline-arrow","pipeline-step-label","pipeline-step-value","pipeline-step-node"];import{each as so}from"/_ket/view/index.js";import{jsx as go,jsxs as bo}from"/_ket/view/jsx-runtime.js";var je=["record-form","form-errors","form-grid","form-actions"];var et={actions:ne,feedback:le,fields:ce,status:re,navigation:ue,progress:me,menu:ge,popover:be,tooltip:fe,dialog:pe,toast:ye,spinner:ve,skeleton:xe,scalarFields:ke,combobox:Pe,dateTime:Re,upload:Ce,relationPicker:Le,listControls:He,inlineEdit:Oe,resourceList:Me,dataGrid:Ae,tree:De,matrix:Ie,barChart:Fe,timeframe:Je,recordDisplay:Xe,formattedValues:Ke,recordComposition:Be,activity:qe,media:Ge,layouts:se,shell:de,appNavigation:Ve,table:ze,listChrome:Ee,listPage:Ue,formPage:_e,recordPage:We,dashboardPage:Ze,boardPage:Qe,modal:he,pipeline:Ye,form:je},Ct=[...new Set(Object.values(et).flat())].sort(),Lt=Object.freeze(Object.fromEntries(Object.entries(et).map(([a,t])=>[a,[...t]])));var ee="ket.backend.theme",j=['[data-ui="search-menu"]','[data-ui="col-config"]','[data-ui="bulk-actions"]','[data-ui="viewer"]','[data-ui="record-more"]'].join(", "),nt=globalThis,M=a=>a.target instanceof Element?a.target:null,z=a=>a==="light"||a==="dark"?a:null,Ht=()=>{try{return z(localStorage.getItem(ee))}catch{return null}},Ot=a=>{try{localStorage.setItem(ee,a)}catch{}},rt=()=>z(document.documentElement.dataset.theme)??(matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=()=>{let a=String(rt()==="dark");for(let t of document.querySelectorAll('[data-ui="sidebar-tools"] [data-ui="action"][name="theme"]'))t.setAttribute("aria-pressed",a)},Et=a=>{let t=Ht();t&&(document.documentElement.dataset.theme=t),G(),document.addEventListener("click",i=>{let n=M(i)?.closest('[data-ui="sidebar-tools"] [data-ui="action"][name="theme"]');if(!n||n.disabled)return;let u=rt()==="dark"?"light":"dark";document.documentElement.dataset.theme=u,Ot(u),G()},{signal:a}),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{z(document.documentElement.dataset.theme)||G()},{signal:a}),addEventListener("storage",i=>{if(i.key!==ee)return;let n=z(i.newValue);n?document.documentElement.dataset.theme=n:delete document.documentElement.dataset.theme,G()},{signal:a})},Mt=a=>{let t=[...a.querySelectorAll('[data-ui="row-select"]:not(:disabled)')],i=t.filter(u=>u.checked).length,n=a.querySelector('[data-ui="select-all"]');if(n&&(n.checked=t.length>0&&i===t.length,n.indeterminate=i>0&&i<t.length),!i){let u=a.closest('[data-ui="app-shell"]');for(let d of u?.querySelectorAll('[data-ui="bulk-actions"][open]')??[])d.removeAttribute("open")}},At=(a,t)=>{document.addEventListener("change",i=>{let n=M(i);if(!(n instanceof HTMLInputElement)||!n.matches('[data-ui="select-all"], [data-ui="row-select"]'))return;let u=n.closest('[data-ui="table"]');if(u){if(n.matches('[data-ui="select-all"]'))for(let d of u.querySelectorAll('[data-ui="row-select"]:not(:disabled)'))d.checked=n.checked;Mt(u)}},{signal:a}),document.addEventListener("click",i=>{if(i.defaultPrevented||i.button!==0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey)return;let n=M(i);if(n?.closest('a, button, input, select, textarea, label, summary, details, [data-ui="select-cell"]'))return;let d=n?.closest('[data-ui="row"][data-row-href]')?.getAttribute("data-row-href");d&&(i.preventDefault(),t.navigate(d))},{signal:a}),document.addEventListener("keydown",i=>{if(i.defaultPrevented||i.key!=="Enter"&&i.key!==" ")return;let n=M(i),d=(n?.matches('[data-ui="row"][data-row-href][tabindex="0"]')?n:null)?.getAttribute("data-row-href");d&&(i.preventDefault(),te(d,t))},{signal:a})},tt=()=>[...document.querySelectorAll(`${j}[open]`)],Dt=a=>{document.addEventListener("click",t=>{let i=M(t)?.closest(j);for(let n of tt())n!==i&&!n.contains(i??null)&&n.removeAttribute("open")},{signal:a}),document.addEventListener("keydown",t=>{if(t.key!=="Escape")return;let i=tt();if(!i.length)return;let n=document.activeElement?.closest(j),u=n?.open?n:i.at(-1);u?.removeAttribute("open"),u?.querySelector("summary")?.focus(),t.preventDefault()},{signal:a})},It=a=>{document.addEventListener("click",t=>{let i=M(t)?.closest('[data-ui="chrome-search-toggle"]'),n=i?.getAttribute("aria-controls");if(!i||!n)return;let u=document.getElementById(n);!(u instanceof HTMLDialogElement)||u.open||(u.showModal(),i.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>u.querySelector('[data-presentation="modal"] [data-ui="chrome-search-input"]')?.focus()))},{signal:a}),document.addEventListener("cancel",t=>{M(t)?.matches('[data-ui="chrome-search-modal"]')&&t.preventDefault()},{capture:!0,signal:a}),document.addEventListener("close",t=>{let i=M(t);if(!(i instanceof HTMLDialogElement)||!i.matches('[data-ui="chrome-search-modal"]'))return;let n=document.querySelector(`[data-ui="chrome-search-toggle"][aria-controls="${CSS.escape(i.id)}"]`);n?.setAttribute("aria-expanded","false"),n?.focus()},{capture:!0,signal:a})},Ft=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].join(", "),V=()=>document.querySelector('[data-ui="modal-layer"][data-route-modal="true"]'),at=a=>[...a.querySelectorAll(Ft)].filter(t=>!t.hidden&&t.getAttribute("aria-hidden")!=="true"&&!t.matches('[data-ui="modal-backdrop"]')),te=(a,t)=>{t.navigate(a)},Jt=(a,t)=>a.composedPath().some(i=>i instanceof HTMLElement&&i!==t&&i.matches('[data-ui="modal-layer"][data-presentation="dialog"]')),lt=a=>{for(let t of a.querySelectorAll('input:not([type="hidden"])'))if(!t.disabled){if(t.type==="checkbox"||t.type==="radio"){if(t.checked!==t.defaultChecked)return!0}else if(t.value!==t.defaultValue)return!0}for(let t of a.querySelectorAll("textarea"))if(!t.disabled&&t.value!==t.defaultValue)return!0;for(let t of a.querySelectorAll("select"))if(!t.disabled){for(let i of t.options)if(i.selected!==i.defaultSelected)return!0}return!1},it=a=>{if(!lt(a))return!0;let t=a.getAttribute("data-unsaved-prompt");return t?nt.confirm(t):!0},Xt=(a,t)=>{if(typeof EventSource!="function")return;let i=null,n=null,u=()=>{n?.close(),n=null,i=null},d=()=>{let v=document.querySelector('[data-ui="live-region"][data-stream]');if(v===i)return;u();let l=v instanceof HTMLElement?v.dataset.stream??"":"";if(!l)return;i=v,n=new EventSource(`/_ket/stream/${encodeURIComponent(l)}`);let s=()=>te(location.href,t);n.onmessage=s,n.addEventListener("done",()=>{u(),s()}),n.onerror=()=>{n?.readyState===EventSource.CLOSED&&u()}};d();let b=new MutationObserver(d);return b.observe(document.body,{childList:!0,subtree:!0}),addEventListener("pagehide",u,{signal:a}),()=>{b.disconnect(),u()}},Kt=(a,t)=>{let i=new WeakSet,n=()=>{let d=V();!d||i.has(d)||(i.add(d),requestAnimationFrame(()=>{let b=d.querySelector('[data-ui="modal-sheet"]');(at(d).find(l=>!l.matches('[data-ui="modal-close"]'))??b)?.focus()}))};n();let u=new MutationObserver(n);return u.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("click",d=>{let b=V();if(!b)return;let v=d.composedPath().find(l=>l instanceof HTMLElement&&(l.matches('[data-ui="modal-close"], [data-ui="modal-backdrop"], a[data-ui="tab"]')||l.matches('a[data-ui="action"][href]')));!v||!b.contains(v)||it(b)||(d.preventDefault(),d.stopPropagation())},{capture:!0,signal:a}),document.addEventListener("click",d=>{let b=document.querySelector("[data-save-before-navigation]"),v=b instanceof HTMLFormElement?b:b?.querySelector("form"),l=M(d)?.closest("a[href]");if(!b||!v||!l||V()||!lt(b)||(d.preventDefault(),d.stopPropagation(),!nt.confirm(b.dataset.saveBeforeNavigation)))return;let s=v.querySelector('input[name="returnTo"]');s||(s=document.createElement("input"),s.type="hidden",s.name="returnTo",v.append(s)),s.value=l.href,v.requestSubmit()},{capture:!0,signal:a}),document.addEventListener("keydown",d=>{let b=V();if(!b||Jt(d,b))return;if(d.key==="Escape"){let y=b.querySelector('[data-ui="modal-close"]');if(!y||(d.preventDefault(),!it(b)))return;te(y.getAttribute("href")??y.href,t);return}if(d.key!=="Tab")return;let v=at(b);if(!v.length)return;let l=v[0],s=v.at(-1);d.shiftKey&&document.activeElement===l?(d.preventDefault(),s.focus()):!d.shiftKey&&document.activeElement===s&&(d.preventDefault(),l.focus())},{signal:a}),()=>u.disconnect()},Nt=(a,t)=>{document.addEventListener("ket:records-changed",()=>{document.querySelector('[data-ket-slot="backend.content"]')&&t.navigate(location.href,{replace:!0})},{signal:a})},$c=({navigation:a,lifetime:t})=>{Nt(t,a);let i=_(document),n=ie(t);Et(t),At(t,a),Dt(t),It(t);let u=Kt(t,a),d=Xt(t,a);return()=>{i(),d?.(),u(),n()}};export{$c as backendShell};
2
+ var lt=(e,t)=>{let n=c=>c.nodeType===3?!!c.textContent?.trim():c instanceof Element?c.matches('[data-ui="bulk-form"]')?!c.hidden:c.matches('[data-ui="inline"], [data-ui="list-page-tools"]')?[...c.childNodes].some(n):!0:!1,a=()=>{if(t.aborted)return;let c=new Set;for(let f of e.querySelectorAll('form[data-ui="bulk-form"]')){let u=[...f.elements].some(L=>L instanceof HTMLInputElement&&!L.disabled&&(L.matches('[data-ui="row-select"], [data-ui="kt-row-select"]')&&L.checked||L.type==="hidden"&&L.parentElement?.matches('[data-ui="kt-select-persisted"]')&&L.value==="1"));if(f.hidden=!u,!u)for(let L of f.querySelectorAll('details[data-ui="bulk-actions"][open]'))L.open=!1;let P=f.closest('[data-ui="list-page-tools"]');P&&c.add(P);let H=f.closest('[data-ui="list-page-actions"]');H&&c.add(H)}for(let f of c)f.hidden=![...f.childNodes].some(n)},r=!1,o=()=>{r||t.aborted||(r=!0,queueMicrotask(()=>{r=!1,a()}))};e.addEventListener("change",o,{signal:t}),e.addEventListener("reset",o,{signal:t});let l=new MutationObserver(o);l.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["checked","disabled","form"]});let S=()=>l.disconnect();return t.addEventListener("abort",S,{once:!0}),a(),S};function st(e){let t,n,a=0;async function r(c){let f=c.querySelector("input[type=email]"),u=c.querySelector("[data-email-status]");if(!f||!u)return;t?.abort(),clearTimeout(n);let P=++a,H=f.value.trim(),L=c.querySelector('button[type="submit"][name="step"]'),E=c.querySelector("[data-email-retry]"),N=(x,C)=>{u.textContent=x,L&&(L.disabled=!C),f.setAttribute("aria-invalid",String(!C)),c.dataset.emailAvailable=C?"true":"false"};if(E&&(E.hidden=!0),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(H)){N(H?"Email ch\u01B0a \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng.":"Nh\u1EADp email \u0111\u1EC3 ki\u1EC3m tra.",!1);return}N("\u0110ang ki\u1EC3m tra email\u2026",!1),n=setTimeout(async()=>{t=new AbortController;try{let x=await fetch(c.dataset.emailCheck,{method:"POST",cache:"no-store",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({email:H}),signal:AbortSignal.any([t.signal,AbortSignal.timeout(1e4)])});if(!x.ok)throw new Error("email-check-failed");let C=await x.json();if(P!==a||!c.isConnected)return;if(!C.ok)throw new Error("email-check-failed");N(C.available?"Email c\xF3 th\u1EC3 s\u1EED d\u1EE5ng.":"Email \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng. Nh\u1EADp email kh\xE1c.",C.available)}catch{if(P!==a||!c.isConnected)return;N("Ch\u01B0a ki\u1EC3m tra \u0111\u01B0\u1EE3c email. Vui l\xF2ng th\u1EED l\u1EA1i.",!1),E&&(E.hidden=!1)}},400)}function o(c,f=!1){let u=c.querySelector('select[name="companyId"]'),P=c.querySelector('select[name="branchId"]'),H=c.querySelector('select[name="scopeKind"]')?.value;if(P&&u){f&&(P.value="");for(let x of P.options)x.value&&(x.hidden=x.dataset.companyId!==u.value,x.disabled=x.hidden)}let L=H==="tenant"?"tenant":H==="branch"?`branch:${u?.value}:${P?.value}`:`company:${u?.value}`;for(let x of c.querySelectorAll("[data-assigned-scopes]")){let $=JSON.parse(x.dataset.assignedScopes??"[]").includes(L);x.disabled=x.dataset.roleDisabled==="true"||$;let W=x.closest("[data-role-option]"),A=W?.querySelector("[data-role-assigned]"),_=W?.querySelector("[data-role-description]");A&&(A.hidden=!$),_&&(_.hidden=$),x.disabled&&(x.checked=!1)}let E=u?.closest('[data-ui="form-field"]'),N=P?.closest('[data-ui="form-field"]');E&&(E.hidden=H==="tenant"),N&&(N.hidden=H==="tenant"||H==="company")}function l(){for(let c of document.querySelectorAll("form[data-user-workflow]"))c.dataset.initialized||(c.dataset.initialized="true",o(c),r(c))}document.addEventListener("input",c=>{let f=c.target,u=f.closest("form[data-user-workflow]");if(u&&(f.type==="email"&&r(u),f.matches("[data-role-search]"))){let P=0;for(let L of u.querySelectorAll("[data-role-option]"))L.hidden=!L.textContent?.toLocaleLowerCase("vi").includes(f.value.toLocaleLowerCase("vi")),L.hidden||P++;let H=u.querySelector("[data-role-empty]");H&&(H.hidden=P>0)}},{signal:e}),document.addEventListener("change",c=>{let f=c.target,u=f.closest("form[data-user-workflow]");u&&f.matches('select[name="companyId"],select[name="branchId"],select[name="scopeKind"]')&&o(u,f.matches('select[name="companyId"]'))},{signal:e}),document.addEventListener("click",c=>{let u=c.target.closest("[data-email-retry]");u&&r(u.closest("form"))},{signal:e}),document.addEventListener("submit",c=>{let f=c.target;f.matches("form[data-user-workflow]")&&f.querySelector("input[type=email]")&&f.dataset.emailAvailable!=="true"&&c.preventDefault()},{signal:e});let S=new MutationObserver(l);return S.observe(document.documentElement,{childList:!0,subtree:!0}),l(),()=>{t?.abort(),clearTimeout(n),S.disconnect()}}import{each as mi}from"/_ket/view/index.js";import{Fragment as bi,jsx as fi,jsxs as pi}from"/_ket/view/jsx-runtime.js";var dt=["action","action-leading","action-label","action-spinner","action-group"];import{jsx as vi,jsxs as xi}from"/_ket/view/jsx-runtime.js";var ct=["badge","tag","tag-remove","count-badge","avatar","code","text","media-label","media-label-image","media-label-copy"];import{each as wi}from"/_ket/view/index.js";import{Fragment as Li,jsx as Ri,jsxs as Ci}from"/_ket/view/jsx-runtime.js";var ut=["notice","notice-mark","notice-copy","notice-title","notice-message","notice-actions","empty","empty-mark","empty-title","empty-message","empty-actions","loading","loading-label"];import{each as un}from"/_ket/view/index.js";import{each as Wi}from"/_ket/view/index.js";import{jsx as Hi,jsxs as Mi}from"/_ket/view/jsx-runtime.js";var mt=["modal-layer","modal-backdrop","modal-sheet","modal-head","modal-heading","modal-title-row","modal-title","modal-description","modal-close","modal-body","modal-actions"];import{Fragment as Ai,jsx as Di,jsxs as Ii}from"/_ket/view/jsx-runtime.js";import{Fragment as Xi,jsx as Ni,jsxs as Ji}from"/_ket/view/jsx-runtime.js";var ft=["app-shell","app-shell-topbar","app-topbar","app-location-bar","app-location-context","app-brand","app-topbar-brand","app-topbar-context","global-search-trigger","global-search-trigger-label","global-search-shortcut","global-search-dialog","global-search","global-search-input","global-search-submit","app-sidebar","app-main","app-right-rail","page","page-context","page-header","page-heading","page-eyebrow","page-title-row","page-title","page-subline","page-status","page-actions","page-meta","page-body","record-canvas","record-content","record-section","record-section-title"];import{Fragment as Qi,jsx as Zi,jsxs as ji}from"/_ket/view/jsx-runtime.js";var bt=["stack","inline","grid","card-grid","surface","surface-head","surface-heading","surface-title","surface-description","surface-actions","disclosure","disclosure-summary","disclosure-body","section","section-head","section-eyebrow","section-title","section-description","section-actions","section-body","content-card","card-media","card-head","card-leading","card-heading","card-eyebrow","card-title","card-summary","card-status","card-body","card-meta","card-actions","kanban","kanban-card","kanban-media","kanban-title","kanban-meta","kanban-note","kanban-actions","metric","metric-icon","metric-label","metric-value","metric-detail"];import{each as rn}from"/_ket/view/index.js";import{Fragment as ln,jsx as sn}from"/_ket/view/jsx-runtime.js";import{jsx as bn,jsxs as pn}from"/_ket/view/jsx-runtime.js";var pt=["field","field-label","field-required","field-control","field-options","field-option","field-option-input","field-help","field-error"];import{each as vn}from"/_ket/view/index.js";import{jsx as Sn,jsxs as Tn}from"/_ket/view/jsx-runtime.js";var ht=["breadcrumbs","breadcrumb","breadcrumb-overflow","breadcrumb-overflow-trigger","breadcrumb-overflow-list","nav-list","nav-item","nav-item-leading","nav-item-label","nav-item-count","tabs","tab","tab-count","tabbed-view","tabbed-view-context","tab-panel"];import{jsx as Rn,jsxs as Ln}from"/_ket/view/jsx-runtime.js";var yt=["progress","progress-label","progress-value","progress-track","progress-bar"];import{each as En}from"/_ket/view/index.js";import{Fragment as On,jsx as Mn,jsxs as Fn}from"/_ket/view/jsx-runtime.js";var vt=["menu","menu-trigger","menu-trigger-count","menu-panel","menu-search","menu-search-input","menu-label","menu-separator","menu-item","menu-item-leading","menu-item-copy","menu-item-check","menu-item-shortcut"];import{jsx as An,jsxs as Bn}from"/_ket/view/jsx-runtime.js";var xt=["popover","popover-trigger","popover-panel","popover-close"];import{jsx as qn,jsxs as Nn}from"/_ket/view/jsx-runtime.js";var St=["tooltip","tooltip-trigger","tooltip-content"];import{jsx as Vn}from"/_ket/view/jsx-runtime.js";var Tt=["dialog","confirm-dialog-message"];import{each as _n}from"/_ket/view/index.js";import{jsx as Zn,jsxs as Qn}from"/_ket/view/jsx-runtime.js";var wt=["toast-region","toast","toast-copy","toast-title","toast-message","toast-actions"];import{jsx as tr}from"/_ket/view/jsx-runtime.js";var kt=["spinner","visually-hidden"];import{each as nr}from"/_ket/view/index.js";import{jsx as or}from"/_ket/view/jsx-runtime.js";var Rt=["skeleton","skeleton-line"];import{each as dr,effect as cr,signal as ur}from"/_ket/view/index.js";import{jsx as fr,jsxs as gr}from"/_ket/view/jsx-runtime.js";var Lt=["relation-select","relation-native","relation-trigger","relation-value","relation-caret","relation-chips","relation-chip","relation-chip-clear","relation-menu","relation-search","relation-options","relation-option","relation-footer","relation-empty","relation-editor","relation-dialog-toolbar","relation-search-field","relation-search-icon","relation-dialog-list","relation-dialog-row","relation-dialog-main","relation-dialog-meta","relation-dialog-actions"];import{each as hr,signal as yr}from"/_ket/view/index.js";import{jsx as xr,jsxs as Sr}from"/_ket/view/jsx-runtime.js";var Ct=["lightbox","lightbox-thumbs","lightbox-thumb","lightbox-empty","lightbox-layer","lightbox-backdrop","lightbox-toolbar","lightbox-counter","lightbox-tool","lightbox-stage","lightbox-image","lightbox-nav","lightbox-caption"];import{each as Rr,signal as Lr}from"/_ket/view/index.js";import{Fragment as Hr,jsx as Er,jsxs as Pr}from"/_ket/view/jsx-runtime.js";var Pt=["search-filter","search-filter-bar","search-filter-section-toggle","search-filter-sheet","search-filter-clear","search-filter-icon","search-filter-field","search-filter-input","search-filter-facets","search-filter-facet","search-filter-facet-remove","search-filter-suggestions","search-filter-suggestion","search-filter-toggle","search-filter-columns","search-filter-column","search-filter-column-title","search-filter-empty","search-filter-grouping","search-filter-grouping-head","search-filter-grouping-list","search-filter-grouping-item","search-filter-grouping-order","search-filter-grouping-label","search-filter-grouping-actions","search-filter-grouping-action","search-filter-grouping-clear","search-filter-grouping-add-label","custom-filter","custom-filter-row","custom-filter-add","custom-group-by","favorite-list","favorite-item","favorite-item-default","favorite-item-remove","favorite-save","favorite-save-toggle","favorite-save-row"];import{each as Ar,effect as Br,signal as Kr}from"/_ket/view/index.js";import{jsx as Or}from"/_ket/view/jsx-runtime.js";var Et=["formatted-date","formatted-number","formatted-money"];import{Fragment as Xr,jsx as Gr,jsxs as zr}from"/_ket/view/jsx-runtime.js";var Ft=["ket-table","kt-scroll","kt-selection-target","kt-grid","kt-select-col","kt-select-all","kt-col","kt-sort-button","kt-sort-icon","kt-row","kt-cell","kt-person","kt-select-cell","kt-row-select","kt-row-link","kt-group-row","kt-group-cell","kt-group-toggle","kt-group-indent","kt-group-count","kt-group-pager","kt-pager","kt-pager-label","kt-pager-button","kt-select-persisted","kt-caption","kt-tools"];var q=e=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;let[t,n,a]=e.split("-").map(Number);if(t<1||t>9999)return null;let r=new Date(0);return r.setUTCFullYear(t,n-1,a),r.setUTCHours(0,0,0,0),r.getUTCFullYear()===t&&r.getUTCMonth()===n-1&&r.getUTCDate()===a?r:null},Oe=e=>[String(e.getUTCFullYear()).padStart(4,"0"),String(e.getUTCMonth()+1).padStart(2,"0"),String(e.getUTCDate()).padStart(2,"0")].join("-"),ie=(e,t)=>{let n=q(e);if(!n)return"";n.setUTCDate(n.getUTCDate()+t);let a=Oe(n);return q(a)?a:""},ee=(e,t)=>{let n=q(e);if(!n)return"";let a=n.getUTCDate();n.setUTCDate(1),n.setUTCMonth(n.getUTCMonth()+t);let r=new Date(n);r.setUTCMonth(r.getUTCMonth()+1,0),n.setUTCDate(Math.min(a,r.getUTCDate()));let o=Oe(n);return q(o)?o:""},ne=e=>`${e.slice(0,7)}-01`,fe=e=>{let t=q(e);return t?(t.setUTCMonth(t.getUTCMonth()+1,0),Oe(t)):""};var De=(e,t)=>{if(!q(t))return null;if(e==="today")return[t,t];if(e==="yesterday"){let r=ie(t,-1);return r?[r,r]:null}if(e==="thisMonth")return[ne(t),fe(t)];if(e==="lastMonth"){let r=ee(t,-1);return r?[ne(r),fe(r)]:null}let n={last7:7,last30:30,last90:90}[e],a=n?ie(t,1-n):"";return a?[a,t]:null},Ot=(e,t="",n="")=>!!q(e)&&(!q(t)||e>=t)&&(!q(n)||e<=n),ce=(e,t)=>e<=t?[e,t]:[t,e],Ie=(e,t)=>{if(!q(e)||!q(t))return"";let n=(a,r=!0)=>`${a.slice(8,10)}/${a.slice(5,7)}${r?`/${a.slice(0,4)}`:""}`;return`${n(e,e.slice(0,4)!==t.slice(0,4))} \u2013 ${n(t)}`};var U=e=>{let t=q(e);if(!t)throw new RangeError(`Invalid civil date: ${e}`);return t},X=(e,t)=>{if(!Ot(t,e.min,e.max))return!1;let n=Number(e.step||1);if(e.step==="any"||!Number.isFinite(n)||n<=0)return!0;let a=q(e.min)??q(e.getAttribute("value")??"")??U("1970-01-01");return Math.abs((U(t).getTime()-a.getTime())/864e5/n%1)<1e-6},Te=new WeakMap,Dt=0,Ae="",It="",Da=e=>{let t=[],n=e;for(;n.parentElement;){let r=n.parentElement;for(let o of r.children){if(!(o instanceof HTMLElement)||o===n)continue;let l=Te.get(o)??{users:0,prior:o.inert};l.users++,Te.set(o,l),o.inert=!0,t.push(o)}if(r===document.body)break;n=r}let a=document.documentElement.style;return Dt++===0&&(Ae=a.overflow,It=a.getPropertyPriority("overflow"),a.setProperty("overflow","hidden")),()=>{for(let r of t){let o=Te.get(r);o&&--o.users===0&&(r.inert=o.prior,Te.delete(r))}--Dt===0&&(Ae?a.setProperty("overflow",Ae,It):a.removeProperty("overflow"))}},Ia=e=>{let t=e.querySelector('[data-ui="date-calendar"]'),n=e.querySelector('[name="kv-date-open"]'),a=[...e.querySelectorAll('[data-ui="date-inputs"] input[type="date"], [data-ui="date-boundary"]')];if(!(t instanceof HTMLElement)||!(n instanceof HTMLButtonElement)||!a.length||!("showPopover"in t))return()=>{};let r=t,o=n,l=e.dataset.dateMode==="range",S=e.dataset.dateLocale==="en"?"en-GB":"vi-VN",c=Number(e.dataset.dateWeekStart??1),f=JSON.parse(e.dataset.dateLabels??"{}"),u=r.querySelector('[data-ui="date-calendar-months"]'),P=r.querySelector('[data-ui="date-calendar-status"]'),H=r.querySelector('[value="apply"]'),L=e.querySelector('[data-ui="date-range-error"]'),E=a[1],N=a.map(s=>s.value),x=e.querySelector('input[type="text"]'),C=e.querySelector("select"),$=x instanceof HTMLInputElement?x:E,W=$?.getAttribute("aria-invalid"),A=$?.getAttribute("aria-describedby"),_=o,re=()=>{let s=new Date,d=`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`;return q(e.dataset.dateToday??"")?e.dataset.dateToday??d:d},be=new Intl.DateTimeFormat(S,{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}),oe=new Intl.DateTimeFormat(S,{day:"2-digit",month:"2-digit",year:"numeric",timeZone:"UTC"}),i=new Intl.DateTimeFormat(S,{month:"long",year:"numeric",timeZone:"UTC"}),h=new Intl.DateTimeFormat(S,{weekday:"short",timeZone:"UTC"}),m=re(),p="",y="",k="",g=[],M=()=>r.matches(":popover-open"),O=()=>window.innerWidth<768,G=null,z=()=>{M()&&O()?(G??=Da(r),r.setAttribute("aria-modal","true")):(G?.(),G=null,r.removeAttribute("aria-modal"))},T=()=>l?O()?12:2:1,v=s=>{let d=ne(s);return l&&O()&&ee(d,-2)||d},B=()=>{let s=u.getBoundingClientRect().top,d=[...u.children].find(b=>b.getBoundingClientRect().bottom>s+1);return d instanceof HTMLElement?d.dataset.dateMonth??p:p},R=()=>{if(!l||!O())return;let s=u.querySelector(`[data-date-month="${ne(y)}"]`);s instanceof HTMLElement&&(u.scrollTop+=s.getBoundingClientRect().top-u.getBoundingClientRect().top-parseFloat(getComputedStyle(u).paddingTop))},D=s=>{if(!O())return;let d=s.getBoundingClientRect(),b=u.getBoundingClientRect();d.top<b.top?u.scrollTop+=d.top-b.top:d.bottom>b.bottom&&(u.scrollTop+=d.bottom-b.bottom)},Y=()=>a.every(s=>!s.disabled&&!s.readOnly),pe=()=>!!g[0]&&X(a[0],g[0])&&(!l||!!g[1]&&g[0]<=g[1]&&X(E,g[1])),le=()=>{if(!E||!$)return!0;let s=a[0].value,d=E.value,b=!s&&!d,F=!a[0].disabled&&!E.disabled&&(b?a.some(K=>K.required):!X(a[0],s)||!X(E,d)||s>d);if(x instanceof HTMLInputElement&&(x.value=Ie(s,d)),L instanceof HTMLElement&&(L.hidden=!F,$.setAttribute("aria-describedby",[A,F?L.id:""].filter(Boolean).join(" "))),F?$.setAttribute("aria-invalid","true"):W?$.setAttribute("aria-invalid",W):$.removeAttribute("aria-invalid"),C instanceof HTMLSelectElement){C.disabled=!Y();let K=[...C.options].filter(w=>{let I=De(w.value,m);return w.disabled=!!I&&(!X(a[0],I[0])||!X(E,I[1])),I&&I[0]===s&&I[1]===d});C.value=(K.find(w=>w.value===k)??K[0])?.value??"custom"}return!F},Ue=s=>{let d=a.filter((b,F)=>b.value!==s[F]);a.forEach((b,F)=>{b.value=s[F]}),le();for(let b of[...d,...d.length&&x instanceof HTMLInputElement?[x]:[]])b.dispatchEvent(new Event("input",{bubbles:!0})),b.dispatchEvent(new Event("change",{bubbles:!0}))},Ce=(s="")=>{let[d,b]=l&&g[0]&&!g[1]&&s?ce(g[0],s):[g[0],g[1]??g[0]];for(let F of u.querySelectorAll("button[data-date]")){let K=F,w=K.dataset.date??"",I=K.parentElement,J=w===g[0]||w===g[1];K.dataset.selected=String(J),I&&(I.dataset.inRange=String(l&&!!d&&!!b&&w>=d&&w<=b),I.setAttribute("aria-selected",String(J||l&&!!d&&!!b&&w>=d&&w<=b)))}},he=()=>{if(!M()||O())return;let s=o.getBoundingClientRect(),d=parseFloat(getComputedStyle(r).scrollMarginTop),b=d;r.style.setProperty("--kv-date-max-height",`${Math.max(0,window.innerHeight-d*2)}px`);let F=r.getBoundingClientRect(),K=Math.max(d,Math.min(s.left+F.width<=window.innerWidth-d?s.left:s.right-F.width,window.innerWidth-F.width-d)),w=s.bottom+b,I=w+F.height<=window.innerHeight-d?w:Math.max(d,s.top-F.height-b);r.style.setProperty("--kv-date-left",`${K}px`),r.style.setProperty("--kv-date-top",`${I}px`)},ue=(s=!1)=>{let d=u.scrollTop;u.replaceChildren(),r.dataset.months=String(T());for(let F=0;F<T();F++){let K=ee(p,F);if(!K)continue;let w=document.createElement("section");w.dataset.ui="date-month",w.dataset.dateMonth=K;let I=document.createElement("h4");I.dataset.ui="date-month-title",I.id=`${r.id}-month-${F}`,I.textContent=i.format(U(K)),O()||I.setAttribute("aria-live","polite"),w.append(I);let J=document.createElement("table");J.dataset.ui="date-grid",J.setAttribute("role","grid"),J.setAttribute("aria-labelledby",I.id),l&&J.setAttribute("aria-multiselectable","true");let Q=J.createTHead().insertRow();for(let te=0;te<7;te++){let se=document.createElement("th");se.dataset.ui="date-weekday",se.scope="col",se.textContent=h.format(U(ie("2026-09-06",(te+c)%7))),Q.append(se)}let me=J.createTBody(),rt=(U(K).getUTCDay()-c+7)%7,ot=U(fe(K)).getUTCDate(),xa=O()?Math.ceil((rt+ot)/7):6;for(let te=0;te<xa;te++){let se=me.insertRow();for(let Pe=0;Pe<7;Pe++){let Ee=se.insertCell();Ee.dataset.ui="date-cell";let ve=te*7+Pe-rt+1;if(ve<1||ve>ot){Ee.setAttribute("aria-hidden","true");continue}let de=ie(K,ve-1),V=document.createElement("button");if(V.type="button",V.dataset.ui="date-day",V.dataset.date=de,V.textContent=String(ve),V.setAttribute("aria-label",be.format(U(de))),de===m&&V.setAttribute("aria-current","date"),l&&g[0]&&!g[1]){let[Sa,Ta]=ce(g[0],de);V.disabled=!X(a[0],Sa)||!X(E,Ta)}else V.disabled=!X(a[0],de);V.tabIndex=de===y&&!V.disabled?0:-1,Ee.append(V)}}w.append(J),u.append(w)}u.scrollTop=d;let b=u.querySelector('button[tabindex="0"]')??u.querySelector("button:not(:disabled)");b instanceof HTMLButtonElement&&(b.tabIndex=0,y=b.dataset.date??y,s&&(b.focus({preventScroll:!0}),D(b)));for(let F of["previous","next"]){let K=r.querySelector(`[value="${F}"]`);K.disabled=!ee(l&&O()?ne(y):p,F==="previous"?-1:l&&O()?1:T())}H.disabled=!pe(),P.textContent=g[0]?l&&!g[1]?`${oe.format(U(g[0]))} \xB7 ${f.chooseEnd}`:`${oe.format(U(g[0]))}${l?` \u2014 ${oe.format(U(g[1]))}`:""}`:l?f.chooseStart:f.chooseDate,Ce(s&&l&&g[0]&&!g[1]?y:""),he()},ye=(s=o)=>{if(!Y())return;_=s,m=re(),g=a.map(b=>q(b.value)?b.value:""),y=g[0]||m,q(a[0].min)&&y<a[0].min&&(y=a[0].min),q(a[0].max)&&y>a[0].max&&(y=a[0].max),p=v(y),ue(),r.showPopover(),z(),o.setAttribute("aria-expanded","true"),he(),R();let d=u.querySelector('button[tabindex="0"]');if(d instanceof HTMLElement)d.focus({preventScroll:!0}),D(d);else{let b=r.querySelector('[value="cancel"]');b instanceof HTMLElement&&b.focus()}},Z=(s=!1)=>{M()&&r.hidePopover(),z(),o.setAttribute("aria-expanded","false"),s&&_.isConnected&&_.focus({preventScroll:!0})},We=s=>{if(s.target===x&&x instanceof HTMLElement){M()?Z(!0):ye(x);return}let d=s.target instanceof Element?s.target.closest("button"):null;if(!(!(d instanceof HTMLButtonElement)||d.disabled)){if(d===o){M()?Z(!0):ye();return}if(!(!r.contains(d)||!Y())){if(d.dataset.date){let b=d.dataset.date;k="",g=l?g[0]&&!g[1]?ce(g[0],b):[b,""]:[b],y=b,ue(!0)}else if(d.name==="kv-date-command"){if(d.value==="cancel")Z(!0);else if(d.value==="apply"&&pe()){let b=[...g];Z(!0),Ue(b)}else if(d.value==="previous"||d.value==="next"){let b=ee(l&&O()?B():p,d.value==="previous"?-1:1);if(!b)return;y=b,p=l&&O()?v(b):b,ue(),R()}}}}},_e=s=>{if(!M()&&s.target===x&&x instanceof HTMLElement&&["Enter"," ","ArrowDown"].includes(s.key)){s.preventDefault(),ye(x);return}if(!M())return;if(s.key==="Escape"){s.preventDefault(),s.stopImmediatePropagation(),Z(!0);return}if(s.key==="Tab"&&O()){let J=[...r.querySelectorAll('button:not(:disabled):not([tabindex="-1"]), select:not(:disabled)')],Q=J[0],me=J.at(-1);if(s.shiftKey&&document.activeElement===Q&&me instanceof HTMLElement){s.preventDefault(),me.focus();return}if(!s.shiftKey&&document.activeElement===me&&Q instanceof HTMLElement){s.preventDefault(),Q.focus();return}}let d=s.target;if(!(d instanceof HTMLButtonElement)||!d.dataset.date)return;let b=d.dataset.date,F=(U(b).getUTCDay()-c+7)%7,K={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7,Home:-F,End:6-F},w=s.key in K?ie(b,K[s.key]):s.key==="PageUp"||s.key==="PageDown"?ee(b,(s.key==="PageUp"?-1:1)*(s.shiftKey?12:1)):"";if(!w)return;s.preventDefault();for(let J=0;J<366&&w;J++){let Q=l&&g[0]&&!g[1]?ce(g[0],w):[w];if(X(a[0],Q[0])&&(!Q[1]||X(E,Q[1])))break;w=ie(w,w<b?-1:1)}let I=l&&g[0]&&!g[1]?ce(g[0],w):[w];!w||!X(a[0],I[0])||I[1]&&!X(E,I[1])||(y=w,(w<p||w>fe(ee(p,T()-1)))&&(p=ne(w)),ue(!0))},Ye=s=>{let d=s.target;l&&g[0]&&!g[1]&&d instanceof HTMLButtonElement&&!d.disabled&&Ce(d.dataset.date)},Ze=()=>Ce(),Qe=()=>{z(),o.setAttribute("aria-expanded",String(M())),M()||(g=[])},je=s=>{M()&&s.target instanceof Node&&!r.contains(s.target)&&s.target!==o&&Z()},et=O(),tt=()=>{if(M()){let s=et!==O();s&&(p=v(y)),z(),ue(u.contains(document.activeElement)),s&&R()}et=O()},at=s=>{if(s.target===C&&C instanceof HTMLSelectElement&&Y()){m=re();let d=De(C.value,m);d&&X(a[0],d[0])&&X(E,d[1])?(k=C.value,Z(!0),Ue(d)):(le(),ye(C))}else le()},it=s=>{!le()&&!a[0].form?.noValidate&&!(s.submitter instanceof HTMLButtonElement&&s.submitter.formNoValidate)&&(s.preventDefault(),$?.focus())},nt=()=>{Z(),setTimeout(()=>{l&&a.forEach((s,d)=>{s.value=N[d]}),k="",le()})};return e.dataset.dateEnhanced="true",le(),e.addEventListener("click",We),e.addEventListener("keydown",_e),e.addEventListener("change",at),r.addEventListener("toggle",Qe),u.addEventListener("pointerover",Ye),u.addEventListener("pointerleave",Ze),document.addEventListener("focusin",je),window.addEventListener("resize",tt),window.addEventListener("scroll",he,!0),a[0].form?.addEventListener("reset",nt),a[0].form?.addEventListener("submit",it),()=>{Z(),delete e.dataset.dateEnhanced,e.removeEventListener("click",We),e.removeEventListener("keydown",_e),e.removeEventListener("change",at),r.removeEventListener("toggle",Qe),u.removeEventListener("pointerover",Ye),u.removeEventListener("pointerleave",Ze),document.removeEventListener("focusin",je),window.removeEventListener("resize",tt),window.removeEventListener("scroll",he,!0),a[0].form?.removeEventListener("reset",nt),a[0].form?.removeEventListener("submit",it),C instanceof HTMLSelectElement&&(C.disabled=!0)}},Be=new WeakMap,Aa=e=>{let t=Be.get(e);t||(t={users:0,cleanup:Ia(e)},Be.set(e,t));let n=t;return n.users++,()=>{--n.users===0&&(n.cleanup(),Be.delete(e))}},At=e=>{if(typeof HTMLElement>"u"||typeof Node>"u")return()=>{};let t=new Map,n=()=>{for(let[o,l]of t)o!==e&&!e.contains(o)&&(l(),t.delete(o));let r=[...e.querySelectorAll("[data-date-mode]")];e instanceof HTMLElement&&e.matches("[data-date-mode]")&&r.unshift(e);for(let o of r)o instanceof HTMLElement&&!t.has(o)&&t.set(o,Aa(o))};n();let a=typeof MutationObserver>"u"?null:new MutationObserver(n);return e instanceof Node&&a?.observe(e,{childList:!0,subtree:!0}),()=>{a?.disconnect();for(let r of t.values())r();t.clear()}};var Ba=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","summary",'[tabindex]:not([tabindex="-1"])'].join(","),we=e=>[...e.querySelectorAll(Ba)].filter(t=>t instanceof HTMLElement&&!t.hidden&&t.getAttribute("aria-hidden")!=="true"&&(typeof t.checkVisibility!="function"||t.checkVisibility())),Ka=['[data-ui="timeframe-menu"]','[data-ui="view-settings"]'],Bt=Ka.map(e=>`${e}[open]`).join(", "),$a=e=>{let t=[],n=[...e.querySelectorAll('[data-ui="global-search-trigger"]')],a=[];for(let o of n){let l=[...e.querySelectorAll('[data-ui="global-search-dialog"]')].find(A=>A.id===o.getAttribute("aria-controls"));if(!(o instanceof HTMLElement)||!(l instanceof HTMLDialogElement))continue;let S=l.querySelector('[data-ui="global-search-input"]'),c=l.querySelector('[data-ui="global-search"]'),f=l.querySelector("template");if(!(S instanceof HTMLInputElement)||!(c instanceof HTMLElement)||!(f instanceof HTMLTemplateElement))continue;let u=f.content.querySelector('[data-ui="modal-layer"]'),P=f.content.querySelector('[data-ui="modal-body"]');if(!u||!P)continue;let H=()=>{l.append(c),f.content.append(u)},L=o.querySelector('[data-ui="global-search-shortcut"]');L instanceof HTMLElement&&(L.textContent=/Mac|iPhone|iPad/.test(navigator.platform)?"\u2318 K":"Ctrl K",L.hidden=!1);let E=()=>{if(o.closest("[inert]"))return!1;if(!l.open){if(e.querySelector('dialog[open], [data-ui="modal-layer"][data-route-modal="true"]'))return!1;l.append(u),P.append(c),l.showModal()}return o.setAttribute("aria-expanded","true"),S.focus(),S.select(),!0};a.push(E);let N=()=>{H(),o.setAttribute("aria-expanded","false"),o.isConnected&&o.focus()},x=A=>{A.button!==0||A.metaKey||A.ctrlKey||A.shiftKey||A.altKey||E()&&A.preventDefault()},C=A=>{A.target instanceof Element&&A.target.closest('[data-ui="modal-close"], [data-ui="modal-backdrop"]')&&l.close()},$=A=>{A.preventDefault(),A.stopPropagation(),l.close()},W=()=>l.close();o.addEventListener("click",x),l.addEventListener("click",C),l.addEventListener("cancel",$),l.addEventListener("close",N),l.addEventListener("submit",W),t.push(()=>{o.removeEventListener("click",x),l.removeEventListener("click",C),l.removeEventListener("cancel",$),l.removeEventListener("close",N),l.removeEventListener("submit",W),l.open&&l.close(),H()})}let r=o=>{(o.ctrlKey||o.metaKey)&&o.key.toLowerCase()==="k"&&!o.altKey&&!o.defaultPrevented&&a.some(l=>l())&&o.preventDefault()};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r);for(let o of t)o()}},Ke=(e=document)=>{let t=At(e),n=$a(e),a=document.activeElement instanceof HTMLElement?document.activeElement:null,r=e.querySelector('[data-ui="modal-layer"][data-route-modal="true"] [role="dialog"]'),o=e.querySelector('[data-ui="app-shell"], [data-ui="shell"]'),l=o instanceof HTMLElement?o.inert:!1;if(r instanceof HTMLElement){o instanceof HTMLElement&&!o.contains(r)&&(o.inert=!0);let i=we(r)[0];(i instanceof HTMLElement?i:r).focus()}let S=[...e.querySelectorAll('[data-ui="menu"]')].filter(i=>i instanceof HTMLDetailsElement),c=i=>{let h=i.querySelector('[data-ui="menu-trigger"]');h instanceof HTMLElement&&h.setAttribute("aria-expanded",String(i.open))},f=S.map(i=>{let h=()=>c(i);return i.addEventListener("toggle",h),c(i),()=>i.removeEventListener("toggle",h)}),u=window.matchMedia("(max-width: 48rem)"),P=document.documentElement,H=P.dataset.kvNavigationOpen,L=[...e.querySelectorAll('[data-ui="app-navigation"]')].filter(i=>i instanceof HTMLDetailsElement),E=new Map,N=i=>{let h=E.get(i);if(h?.targets){for(let{element:m,inert:p}of h.targets)m.inert=p;h.targets=null}},x=()=>{u.matches&&L.some(h=>h.open)?P.dataset.kvNavigationOpen="true":H===void 0?delete P.dataset.kvNavigationOpen:P.dataset.kvNavigationOpen=H},C=i=>{let h=i.querySelector('[data-ui="navigation-trigger"]'),m=i.querySelector('[data-ui="navigation-drawer"]');if(!(h instanceof HTMLElement)||!(m instanceof HTMLElement))return;let p=u.matches;h.dataset.open=String(p&&i.open);for(let k of e.querySelectorAll('[data-ui="navigation-toggle"]'))k.getAttribute("aria-controls")===m.id&&k.setAttribute("aria-expanded",String(p&&i.open));if(!p){m.removeAttribute("role"),m.removeAttribute("aria-modal"),m.removeAttribute("aria-label"),N(i),x();return}if(m.setAttribute("role","dialog"),m.setAttribute("aria-modal","true"),m.setAttribute("aria-label",m.dataset.navigationLabel??"Navigation"),!i.open){N(i),x();return}let y=E.get(i)??{};if(!y.targets){let k=i.closest('[data-ui="app-shell"], [data-ui="shell"]'),g=k?[...k.querySelectorAll(':scope > [data-ui="app-main"], :scope > [data-ui="main"], :scope > [data-ui="app-right-rail"], :scope > [data-ui="app-shell-topbar"]')].filter(M=>M instanceof HTMLElement).map(M=>({element:M,inert:M.inert})):[];y.returnFocus=document.activeElement instanceof HTMLElement?document.activeElement:h;for(let{element:M}of g)M.inert=!0;y.targets=g,E.set(i,y),queueMicrotask(()=>{if(!i.open||!u.matches)return;let M=m.querySelector('[data-ui="navigation-item"][aria-current="page"]'),O=we(m)[0],G=M instanceof HTMLElement?M:O;(G instanceof HTMLElement?G:m).focus()})}x()},$=(i,h=!0)=>{let m=E.get(i);i.open=!1,C(i),h&&m?.returnFocus instanceof HTMLElement&&m.returnFocus.isConnected&&m.returnFocus.focus(),E.delete(i)},W=L.map(i=>{let h=()=>C(i),m=p=>{let y=p.target;if(!(y instanceof Element))return;let g=y.closest('[data-ui="navigation-branch-trigger"]')?.closest('[data-ui="navigation-branch"]');if(g instanceof HTMLDetailsElement&&g.open){p.preventDefault();return}!u.matches||!i.open||(y.closest('[data-ui="navigation-close"]')||y.closest('[data-ui="navigation-backdrop"]')||y.closest('[data-ui="navigation-item"]'))&&$(i)};return i.addEventListener("toggle",h),i.addEventListener("click",m),C(i),()=>{i.removeEventListener("toggle",h),i.removeEventListener("click",m),N(i)}}),A=()=>{for(let i of L)i.open?$(i,!1):C(i)};u.addEventListener("change",A);for(let i of e.querySelectorAll('[data-ui="popover"][data-open="true"]')){let h=i.querySelector('[data-ui="popover-trigger"]'),m=i.querySelector('[data-ui="popover-panel"]');if(!(h instanceof HTMLElement)||!(m instanceof HTMLElement))continue;let p=h.getBoundingClientRect(),y=8,k=i.getAttribute("data-placement")??"bottom-start",g=k.startsWith("top"),M=k.endsWith("end"),O=p.top-m.offsetHeight-y,G=p.bottom+y,z=O>=8,T=G+m.offsetHeight<=window.innerHeight-8,v=g?z||!T:!T&&z,B=M?p.right-m.offsetWidth:p.left,R=Math.max(8,Math.min(B,window.innerWidth-m.offsetWidth-8)),D=Math.max(8,Math.min(v?O:G,window.innerHeight-m.offsetHeight-8));m.dataset.runtimePositioned="true",m.dataset.runtimePlacement=`${v?"top":"bottom"}-${M?"end":"start"}`,m.style.left=`${Math.round(R)}px`,m.style.top=`${Math.round(D)}px`,m.style.right="auto",m.style.bottom="auto"}let _=i=>{let h=L.find(T=>u.matches&&T.open);if(h instanceof HTMLDetailsElement){let T=h.querySelector('[data-ui="navigation-drawer"]');if(i.key==="Escape"){$(h),i.preventDefault();return}if(i.key==="Tab"&&T instanceof HTMLElement){let v=we(T),B=v[0],R=v.at(-1);if(!v.length){i.preventDefault(),T.focus();return}if(i.shiftKey&&(document.activeElement===B||document.activeElement===T)){i.preventDefault(),R instanceof HTMLElement&&R.focus();return}if(!i.shiftKey&&document.activeElement===R){i.preventDefault(),B instanceof HTMLElement&&B.focus();return}}}let m=document.activeElement?.closest('[data-ui="tree"] [role="treeitem"]');if(m instanceof HTMLElement){let T=m.closest('[data-ui="tree"]'),v=T?[...T.querySelectorAll('[role="treeitem"]')].filter(D=>D instanceof HTMLElement):[],B=v.indexOf(m),R=-1;if(i.key==="ArrowDown")R=Math.min(v.length-1,B+1);else if(i.key==="ArrowUp")R=Math.max(0,B-1);else if(i.key==="Home")R=0;else if(i.key==="End")R=v.length-1;else if(i.key==="ArrowRight"){let D=Number(m.getAttribute("aria-level"));m.getAttribute("aria-expanded")==="true"&&Number(v[B+1]?.getAttribute("aria-level"))>D&&(R=B+1)}else if(i.key==="ArrowLeft"){let D=Number(m.getAttribute("aria-level"));D>1&&(R=v.findLastIndex((Y,pe)=>pe<B&&Number(Y.getAttribute("aria-level"))<D))}if(R>=0&&v[R]){for(let D of v)D.tabIndex=-1;v[R].tabIndex=0,v[R].focus(),i.preventDefault();return}}let p=document.activeElement?.closest('[data-ui="tree-grid-row"]');if(p instanceof HTMLElement){let T=p.closest('[data-ui="tree-grid"]'),v=T?[...T.querySelectorAll('[data-ui="tree-grid-row"]')].filter(D=>D instanceof HTMLElement):[],B=v.indexOf(p),R=i.key==="ArrowDown"?Math.min(v.length-1,B+1):i.key==="ArrowUp"?Math.max(0,B-1):i.key==="Home"?0:i.key==="End"?v.length-1:-1;if(R>=0&&v[R]){for(let D of v)D.tabIndex=-1;v[R].tabIndex=0,v[R].focus(),i.preventDefault();return}}let y=document.activeElement?.closest('[data-ui="menu"]');if(y instanceof HTMLDetailsElement&&!y.open){let T=y.querySelector('[data-ui="menu-trigger"]');if(document.activeElement===T&&(i.key==="ArrowDown"||i.key==="ArrowUp")){y.open=!0;let v=[...y.querySelectorAll('[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]')].filter(R=>R instanceof HTMLElement&&R.getAttribute("aria-disabled")!=="true"),B=i.key==="ArrowUp"?v.at(-1):v[0];B instanceof HTMLElement&&B.focus(),i.preventDefault();return}}let k=document.activeElement?.closest('[data-ui="menu"][open]');if(k instanceof HTMLDetailsElement){let T=k.querySelector('[data-ui="menu-trigger"]'),v=[...k.querySelectorAll('[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]')].filter(Y=>Y instanceof HTMLElement&&Y.getAttribute("aria-disabled")!=="true"),B=document.activeElement,R=B instanceof HTMLElement?v.indexOf(B):-1,D=-1;if(i.key==="ArrowDown"?D=R<0?0:(R+1)%v.length:i.key==="ArrowUp"?D=R<0?v.length-1:(R-1+v.length)%v.length:i.key==="Home"?D=0:i.key==="End"&&(D=v.length-1),D>=0&&v[D]instanceof HTMLElement){v[D].focus(),i.preventDefault();return}if((i.key==="Enter"||i.key===" ")&&document.activeElement===T){v[0]instanceof HTMLElement&&v[0].focus(),i.preventDefault();return}}if(i.key==="Escape"&&k instanceof HTMLDetailsElement){k.open=!1;let T=k.querySelector('[data-ui="menu-trigger"]');T instanceof HTMLElement&&T.focus(),i.preventDefault();return}let g=[...e.querySelectorAll(Bt)].at(-1);if(i.key==="Escape"&&g instanceof HTMLDetailsElement){g.open=!1;let T=g.querySelector("summary");T instanceof HTMLElement&&T.focus(),i.preventDefault();return}let M=document.activeElement?.closest('[data-ui="popover"][data-open="true"]');if(i.key==="Escape"&&M instanceof HTMLElement){let T=M.querySelector('[data-ui="popover-close"]');T instanceof HTMLElement&&T.click(),i.preventDefault();return}if(!(r instanceof HTMLElement))return;if(i.key==="Escape"){let T=r.querySelector('[data-ui="modal-close"]');T instanceof HTMLElement&&T.click(),i.preventDefault();return}if(i.key!=="Tab")return;let O=we(r);if(!O.length){i.preventDefault(),r.focus();return}let G=O[0],z=O.at(-1);i.shiftKey&&(document.activeElement===G||document.activeElement===r)?(i.preventDefault(),z instanceof HTMLElement&&z.focus()):!i.shiftKey&&document.activeElement===z&&(i.preventDefault(),G instanceof HTMLElement&&G.focus())},re=i=>{let h=[...i.querySelectorAll('[data-ui="row-select"]')].filter(k=>k instanceof HTMLInputElement&&!k.disabled),m=h.filter(k=>k.checked),p=i.querySelector('[data-ui="select-all"]');p instanceof HTMLInputElement&&(p.checked=h.length>0&&m.length===h.length,p.indeterminate=m.length>0&&m.length<h.length);for(let k of h)k.closest('[data-ui="row"]')?.toggleAttribute("data-selected",k.checked);let y=h[0]?.getAttribute("form");if(y)for(let k of document.querySelectorAll(`[data-ui="bulk-actions"][data-form="${CSS.escape(y)}"]`)){m.length?k.setAttribute("data-has-selection","true"):k.removeAttribute("data-has-selection");for(let g of k.querySelectorAll('[data-ui="bulk-count"]'))g.textContent=String(m.length);for(let g of k.querySelectorAll('[data-ui="bulk-action-list"] button'))g instanceof HTMLButtonElement&&g.dataset.kvAlwaysDisabled!=="true"&&(g.disabled=m.length===0)}},be=i=>{let h=i.target;if(!(h instanceof HTMLInputElement))return;let m=h.getAttribute("data-ui");if(m!=="select-all"&&m!=="row-select")return;let p=h.closest('[data-ui="table"]');if(p){if(m==="select-all")for(let y of p.querySelectorAll('[data-ui="row-select"]'))y instanceof HTMLInputElement&&!y.disabled&&(y.checked=h.checked);re(p)}};for(let i of e.querySelectorAll('[data-ui="table"]'))i.querySelector('[data-ui="row-select"]')&&re(i);document.addEventListener("change",be);let oe=i=>{let h=i.target;if(!(h instanceof Node))return;let m=h instanceof Element?h.closest('[data-ui="navigation-toggle"]'):null;if(m instanceof HTMLElement&&u.matches){let p=L.find(y=>y.querySelector('[data-ui="navigation-drawer"]')?.id===m.getAttribute("aria-controls"));p&&(p.open?$(p):(p.open=!0,C(p)));return}for(let p of e.querySelectorAll('[data-ui="menu"][open]')){if(!(p instanceof HTMLDetailsElement))continue;let y=h instanceof Element?h.closest('[data-ui="menu-item"]'):null;(!p.contains(h)||y&&y.getAttribute("aria-disabled")!=="true")&&(p.open=!1)}for(let p of e.querySelectorAll(Bt))p instanceof HTMLDetailsElement&&!p.contains(h)&&(p.open=!1)};return document.addEventListener("keydown",_),document.addEventListener("click",oe),()=>{n(),t(),document.removeEventListener("keydown",_),document.removeEventListener("click",oe),document.removeEventListener("change",be);for(let i of f)i();u.removeEventListener("change",A);for(let i of W)i();H===void 0?delete P.dataset.kvNavigationOpen:P.dataset.kvNavigationOpen=H,o instanceof HTMLElement&&(o.inert=l),a?.isConnected&&a.focus()}};import{jsx as jr,jsxs as eo}from"/_ket/view/jsx-runtime.js";import{jsx as ro,jsxs as oo}from"/_ket/view/jsx-runtime.js";var Kt=["switch-control","switch-track"];import{each as co}from"/_ket/view/index.js";import{Fragment as bo,jsx as go,jsxs as fo}from"/_ket/view/jsx-runtime.js";var $t=["combobox","combobox-input-row","combobox-toggle","combobox-listbox","combobox-option","combobox-empty","tag-picker"];import{Fragment as Ro,jsx as wo,jsxs as ko}from"/_ket/view/jsx-runtime.js";var qt=["date-picker","date-range","date-inputs","date-control-row","date-tools","date-range-error","date-calendar","date-calendar-head","date-calendar-title","date-calendar-body","date-field-control","date-range-preset","date-boundary","date-calendar-months","date-month","date-month-title","date-grid","date-weekday","date-cell","date-day","date-calendar-footer","date-calendar-status"];import{jsx as Eo,jsxs as Ho}from"/_ket/view/jsx-runtime.js";var Nt=["file-upload","drop-zone","upload-status"];import{jsx as Do}from"/_ket/view/jsx-runtime.js";var Jt=["relation-picker"];import{each as Bo}from"/_ket/view/index.js";import{jsx as No,jsxs as Jo}from"/_ket/view/jsx-runtime.js";var Xt=["search-bar","filter-bar","applied-filters","applied-filter","saved-views","saved-view","view-settings","view-settings-options"];import{jsx as Vo,jsxs as Uo}from"/_ket/view/jsx-runtime.js";var Gt=["inline-edit","inline-edit-value","inline-edit-form","inline-edit-actions"];import{each as ol}from"/_ket/view/index.js";import{each as Qo}from"/_ket/view/index.js";import{Fragment as il,jsx as tl,jsxs as al}from"/_ket/view/jsx-runtime.js";var zt=["list-chrome","list-chrome-row","list-search","list-search-label","list-search-input","list-search-submit","list-filter-menus","list-facets","list-facet","list-facet-count","list-view-switch","list-view","list-sort","list-sort-label","list-sort-select","list-status","list-actions","bulk-actions","bulk-summary","bulk-count","bulk-action-list","pager-bar","pager-summary","pager-pages","pager-page","pager-actions","pager-link"];import{jsx as cl,jsxs as ul}from"/_ket/view/jsx-runtime.js";var Vt=["resource-list","resource-list-item","resource-list-select","resource-list-link"];import{each as fl}from"/_ket/view/index.js";import{jsx as pl,jsxs as hl}from"/_ket/view/jsx-runtime.js";var Ut=["data-grid-scroll","data-grid","data-grid-cap","data-grid-cell"];import{each as xl}from"/_ket/view/index.js";import{jsx as Tl,jsxs as wl}from"/_ket/view/jsx-runtime.js";var Wt=["tree","tree-item","tree-link","tree-grid","tree-grid-row"];import{each as Ll}from"/_ket/view/index.js";import{jsx as Pl,jsxs as El}from"/_ket/view/jsx-runtime.js";var _t=["data-matrix","data-matrix-head","data-matrix-heading","data-matrix-eyebrow","data-matrix-title","data-matrix-description","data-matrix-summary","data-matrix-scroll","data-matrix-table","data-matrix-column","data-matrix-row-head","data-matrix-row-leading","data-matrix-row-title","data-matrix-row-description","data-matrix-row-status","data-matrix-row-actions","data-matrix-cell"];import{each as Fl}from"/_ket/view/index.js";import{jsx as Dl,jsxs as Il}from"/_ket/view/jsx-runtime.js";var Yt=["bar-chart","bar-chart-rows","bar-chart-row","bar-chart-label","bar-chart-caption","bar-chart-track","bar-chart-fill","bar-chart-segment","bar-chart-value","bar-chart-scale","bar-chart-legend","bar-chart-legend-item","bar-chart-legend-swatch","bar-chart-empty"];import{each as Kl}from"/_ket/view/index.js";import{jsx as ql,jsxs as Nl}from"/_ket/view/jsx-runtime.js";var Zt=["timeframe","timeframe-menu","timeframe-trigger","timeframe-label","timeframe-value","timeframe-content","timeframe-option","timeframe-option-label","timeframe-option-detail","timeframe-range","timeframe-asof","timeframe-note"];import{each as Gl}from"/_ket/view/index.js";import{jsx as Ul,jsxs as Wl}from"/_ket/view/jsx-runtime.js";var Qt=["description-list","key-value","key-value-label","key-value-value","person","person-body","avatar-group","status"];import{each as Zl}from"/_ket/view/index.js";import{jsx as as,jsxs as is}from"/_ket/view/jsx-runtime.js";var ea=["record-summary","record-summary-main","record-actions","record-rail"];import{each as os}from"/_ket/view/index.js";import{jsx as cs,jsxs as us}from"/_ket/view/jsx-runtime.js";var ta=["activity-timeline","activity-item","activity-marker","audit-log","audit-item"];import{each as fs}from"/_ket/view/index.js";import{jsx as hs,jsxs as ys}from"/_ket/view/jsx-runtime.js";var aa=["attachments","attachment","media-gallery","media-item"];import{each as Ss}from"/_ket/view/index.js";import{Fragment as Rs,jsx as ws,jsxs as ks}from"/_ket/view/jsx-runtime.js";var ia=["app-navigation","navigation-trigger","navigation-toggle","navigation-trigger-icon","navigation-trigger-identity","navigation-trigger-label","navigation-layer","navigation-backdrop","navigation-drawer","navigation-header","navigation-identity","navigation-context","navigation-close","navigation-groups","navigation-group","navigation-group-label","navigation-items","navigation-supplementary","navigation-item","navigation-branch","navigation-branch-trigger","navigation-children","navigation-item-leading","navigation-item-copy","navigation-item-label","navigation-item-description","navigation-item-count","navigation-footer"];import{each as Hs}from"/_ket/view/index.js";import{Fragment as As,jsx as Ds,jsxs as Is}from"/_ket/view/jsx-runtime.js";var na=["table-scroll","table","table-caption","select-col","select-all","col","sort-link","sort-icon","row","group-row","group-cell","group-link","group-indent","group-count","group-pager","group-pager-actions","cell","select-cell","row-select","row-link"];import{Fragment as zs,jsx as Gs,jsxs as Vs}from"/_ket/view/jsx-runtime.js";var ra=["list-page","list-page-context","list-page-header","list-page-heading","list-page-title-row","list-page-eyebrow","list-page-title","list-page-actions","list-page-tools","list-page-toolbar","list-page-controls","list-page-status","list-page-body","list-page-footer"];import{jsx as Ys,jsxs as Zs}from"/_ket/view/jsx-runtime.js";var oa=["record-page","record-page-context","record-page-header","record-page-title-row","record-page-heading","record-page-title","record-page-subline","record-page-status","record-page-actions","record-page-meta","record-page-controller","record-page-navigation","record-page-layout","record-page-body","record-page-aside"];var la=["form-page","form-page-context","form-page-header","form-page-title-row","form-page-heading","form-page-title","form-page-subline","form-page-status","form-page-actions","form-page-meta","form-page-controller","form-page-navigation","form-page-layout","form-page-body","form-page-aside"];import{jsx as od,jsxs as ld}from"/_ket/view/jsx-runtime.js";var sa=["dashboard-page","dashboard-page-context","dashboard-page-header","dashboard-page-heading","dashboard-page-eyebrow","dashboard-page-title-row","dashboard-page-title","dashboard-page-subline","dashboard-page-status","dashboard-page-actions","dashboard-page-meta","dashboard-page-body"];var da=["board-page","board-page-context","board-page-header","board-page-heading","board-page-eyebrow","board-page-title-row","board-page-title","board-page-subline","board-page-status","board-page-actions","board-page-meta","board-page-toolbar","board-page-controls","board-page-body"];import{each as pd}from"/_ket/view/index.js";import{jsx as yd,jsxs as vd}from"/_ket/view/jsx-runtime.js";var ca=["pipeline","pipeline-step","pipeline-arrow","pipeline-step-label","pipeline-step-value","pipeline-step-node"];import{each as kd}from"/_ket/view/index.js";import{jsx as Pd,jsxs as Ed}from"/_ket/view/jsx-runtime.js";var ua=["record-form","form-errors","form-grid","form-actions"];import{each as Bd}from"/_ket/view/index.js";import{jsx as Nd,jsxs as Jd}from"/_ket/view/jsx-runtime.js";var ma=["reorder-list","reorder-list-value","reorder-list-rows","reorder-list-row","reorder-list-content","reorder-list-controls"];var ga={actions:dt,feedback:ut,fields:pt,status:ct,navigation:ht,progress:yt,menu:vt,reorderList:ma,popover:xt,tooltip:St,dialog:Tt,toast:wt,spinner:kt,skeleton:Rt,lightbox:Ct,relationSelect:Lt,searchFilter:Pt,ketTable:Ft,scalarFields:Kt,combobox:$t,dateTime:qt,upload:Nt,relationPicker:Jt,listControls:Xt,inlineEdit:Gt,resourceList:Vt,dataGrid:Ut,tree:Wt,matrix:_t,barChart:Yt,timeframe:Zt,recordDisplay:Qt,formattedValues:Et,recordComposition:ea,activity:ta,media:aa,layouts:bt,shell:ft,appNavigation:ia,table:na,listChrome:zt,listPage:ra,formPage:la,recordPage:oa,dashboardPage:sa,boardPage:da,modal:mt,pipeline:ca,form:ua},_a=[...new Set(Object.values(ga).flat())].sort(),Ya=Object.freeze(Object.fromEntries(Object.entries(ga).map(([e,t])=>[e,[...t]])));var ze="ket.backend.theme",Ge=['[data-ui="search-menu"]','[data-ui="col-config"]','[data-ui="bulk-actions"]','[data-ui="viewer"]','[data-ui="record-more"]'].join(", "),ha=globalThis,j=e=>e.target instanceof Element?e.target:null,Le=e=>e==="light"||e==="dark"?e:null,Za=()=>{try{return Le(localStorage.getItem(ze))}catch{return null}},Qa=e=>{try{localStorage.setItem(ze,e)}catch{}},ya=()=>Le(document.documentElement.dataset.theme)??(matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ke=()=>{let e=String(ya()==="dark");for(let t of document.querySelectorAll('[data-ui="sidebar-tools"] [data-ui="action"][name="theme"]'))t.setAttribute("aria-pressed",e)},ja=e=>{let t=Za();t&&(document.documentElement.dataset.theme=t),ke(),document.addEventListener("click",n=>{let a=j(n)?.closest('[data-ui="sidebar-tools"] [data-ui="action"][name="theme"]');if(!a||a.disabled)return;let r=ya()==="dark"?"light":"dark";document.documentElement.dataset.theme=r,Qa(r),ke()},{signal:e}),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Le(document.documentElement.dataset.theme)||ke()},{signal:e}),addEventListener("storage",n=>{if(n.key!==ze)return;let a=Le(n.newValue);a?document.documentElement.dataset.theme=a:delete document.documentElement.dataset.theme,ke()},{signal:e})},ei=e=>{let t=[...e.querySelectorAll(':is([data-ui="row-select"], [data-ui="kt-row-select"]):not(:disabled)')],n=t.filter(r=>r.checked).length,a=e.querySelector('[data-ui="select-all"], [data-ui="kt-select-all"]');a&&(a.checked=t.length>0&&n===t.length,a.indeterminate=n>0&&n<t.length)},ti=(e,t)=>{document.addEventListener("change",n=>{let a=j(n);if(!(a instanceof HTMLInputElement)||!a.matches('[data-ui="select-all"], [data-ui="row-select"], [data-ui="ket-table"][data-server="true"] input'))return;let r=a.closest('[data-ui="table"], [data-ui="ket-table"][data-server="true"] [data-ui="kt-grid"]');if(r){if(a.matches('[data-ui="select-all"], [data-ui="kt-select-all"]'))for(let o of r.querySelectorAll(':is([data-ui="row-select"], [data-ui="kt-row-select"]):not(:disabled)'))o.checked=a.checked;ei(r)}},{signal:e}),document.addEventListener("click",n=>{if(n.defaultPrevented||n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey)return;let a=j(n);if(a?.closest('a, button, input, select, textarea, label, summary, details, [data-ui="select-cell"], [data-ui="kt-select-cell"]'))return;let o=a?.closest('[data-ui="row"][data-row-href], [data-ui="kt-row"][data-row-href]')?.getAttribute("data-row-href");o&&(n.preventDefault(),t.navigate(o))},{signal:e}),document.addEventListener("keydown",n=>{if(n.defaultPrevented||n.key!=="Enter"&&n.key!==" ")return;let a=j(n),o=(a?.matches(':is([data-ui="row"], [data-ui="kt-row"])[data-row-href][tabindex="0"]')?a:null)?.getAttribute("data-row-href");o&&(n.preventDefault(),Ve(o,t))},{signal:e})},fa=()=>[...document.querySelectorAll(Ge.split(", ").map(e=>`${e}[open]`).join(", "))],ai=e=>{document.addEventListener("click",t=>{let n=j(t)?.closest(Ge);for(let a of fa())a!==n&&!a.contains(n??null)&&a.removeAttribute("open")},{signal:e}),document.addEventListener("keydown",t=>{if(t.defaultPrevented||t.key!=="Escape")return;let n=fa();if(!n.length)return;let a=document.activeElement?.closest(Ge),r=a?.open?a:n.at(-1);r?.removeAttribute("open"),r?.querySelector("summary")?.focus(),t.preventDefault()},{signal:e})},ii=e=>{document.addEventListener("click",t=>{let n=j(t)?.closest('[data-ui="chrome-search-toggle"]'),a=n?.getAttribute("aria-controls");if(!n||!a)return;let r=document.getElementById(a);!(r instanceof HTMLDialogElement)||r.open||(r.showModal(),n.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>r.querySelector('[data-presentation="modal"] [data-ui="chrome-search-input"]')?.focus()))},{signal:e}),document.addEventListener("cancel",t=>{j(t)?.matches('[data-ui="chrome-search-modal"]')&&t.preventDefault()},{capture:!0,signal:e}),document.addEventListener("close",t=>{let n=j(t);if(!(n instanceof HTMLDialogElement)||!n.matches('[data-ui="chrome-search-modal"]'))return;let a=document.querySelector(`[data-ui="chrome-search-toggle"][aria-controls="${CSS.escape(n.id)}"]`);a?.setAttribute("aria-expanded","false"),a?.focus()},{capture:!0,signal:e})},ni=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].join(", "),Re=()=>document.querySelector('[data-ui="modal-layer"][data-route-modal="true"]'),ba=e=>[...e.querySelectorAll(ni)].filter(t=>!t.hidden&&t.getAttribute("aria-hidden")!=="true"&&!t.matches('[data-ui="modal-backdrop"]')),Ve=(e,t)=>{t.navigate(e)},ri=(e,t)=>e.composedPath().some(n=>n instanceof HTMLElement&&n!==t&&n.matches('[data-ui="modal-layer"][data-presentation="dialog"]')),va=e=>{for(let t of e.querySelectorAll('input:not([type="hidden"])'))if(!t.disabled){if(t.type==="checkbox"||t.type==="radio"){if(t.checked!==t.defaultChecked)return!0}else if(t.value!==t.defaultValue)return!0}for(let t of e.querySelectorAll("textarea"))if(!t.disabled&&t.value!==t.defaultValue)return!0;for(let t of e.querySelectorAll("select"))if(!t.disabled){for(let n of t.options)if(n.selected!==n.defaultSelected)return!0}return!1},pa=e=>{if(!va(e))return!0;let t=e.getAttribute("data-unsaved-prompt");return t?ha.confirm(t):!0},oi=(e,t)=>{if(typeof EventSource!="function")return;let n=null,a=null,r=()=>{a?.close(),a=null,n=null},o=()=>{let S=document.querySelector('[data-ui="live-region"][data-stream]');if(S===n)return;r();let c=S instanceof HTMLElement?S.dataset.stream??"":"";if(!c)return;n=S,a=new EventSource(`/_ket/stream/${encodeURIComponent(c)}`);let f=()=>Ve(location.href,t);a.onmessage=f,a.addEventListener("done",()=>{r(),f()}),a.onerror=()=>{a?.readyState===EventSource.CLOSED&&r()}};o();let l=new MutationObserver(o);return l.observe(document.body,{childList:!0,subtree:!0}),addEventListener("pagehide",r,{signal:e}),()=>{l.disconnect(),r()}},li=(e,t)=>{let n=new WeakSet,a=()=>{let o=Re();!o||n.has(o)||(n.add(o),requestAnimationFrame(()=>{let l=o.querySelector('[data-ui="modal-sheet"]');(ba(o).find(c=>!c.matches('[data-ui="modal-close"]'))??l)?.focus()}))};a();let r=new MutationObserver(a);return r.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("click",o=>{let l=Re();if(!l)return;let S=o.composedPath().find(c=>c instanceof HTMLElement&&(c.matches('[data-ui="modal-close"], [data-ui="modal-backdrop"], a[data-ui="tab"]')||c.matches('a[data-ui="action"][href]')));!S||!l.contains(S)||pa(l)||(o.preventDefault(),o.stopPropagation())},{capture:!0,signal:e}),document.addEventListener("click",o=>{let l=document.querySelector("[data-save-before-navigation]"),S=l instanceof HTMLFormElement?l:l?.querySelector("form"),c=j(o)?.closest("a[href]");if(!l||!S||!c||Re()||!va(l)||(o.preventDefault(),o.stopPropagation(),!ha.confirm(l.dataset.saveBeforeNavigation)))return;let f=S.querySelector('input[name="returnTo"]');f||(f=document.createElement("input"),f.type="hidden",f.name="returnTo",S.append(f)),f.value=c.href,S.requestSubmit()},{capture:!0,signal:e}),document.addEventListener("keydown",o=>{let l=Re();if(!l||ri(o,l))return;if(o.key==="Escape"){let u=l.querySelector('[data-ui="modal-close"]');if(!u||(o.preventDefault(),!pa(l)))return;Ve(u.getAttribute("href")??u.href,t);return}if(o.key!=="Tab")return;let S=ba(l);if(!S.length)return;let c=S[0],f=S.at(-1);o.shiftKey&&document.activeElement===c?(o.preventDefault(),f.focus()):!o.shiftKey&&document.activeElement===f&&(o.preventDefault(),c.focus())},{signal:e}),()=>r.disconnect()},si=(e,t)=>{document.addEventListener("ket:records-changed",()=>{document.querySelector('[data-ket-slot="backend.content"]')&&t.navigate(location.href,{replace:!0})},{signal:e})},Xg=({navigation:e,lifetime:t})=>{document.addEventListener("ket:search-filter-navigate",S=>{let{id:c,href:f,signal:u,respondWith:P}=S.detail;P(e.navigate(f,{preserveContext:!0,fallback:"error",signal:u}).then(()=>{let H=matchMedia("(max-width: 640px)").matches?"search-filter-toggle":"search-filter-input";document.getElementById(c)?.querySelector(`[data-ui="${H}"]`)?.focus({preventScroll:!0})}))},{signal:t}),si(t,e);let n=Ke(document),a=st(t);ja(t),ti(t,e);let r=lt(document,t);ai(t),ii(t);let o=li(t,e),l=oi(t,e);return()=>{n(),r(),l?.(),o(),a()}};export{Xg as backendShell};