@ketvietlab/ketsuite 0.1.29 → 0.1.31

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 (781) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/modules/account_backend/index.js +0 -6
  3. package/dist/modules/account_backend/index.js.map +1 -1
  4. package/dist/modules/account_backend/screens/account-defaults.d.ts.map +1 -1
  5. package/dist/modules/account_backend/screens/account-defaults.js +1 -1
  6. package/dist/modules/account_backend/screens/account-defaults.js.map +1 -1
  7. package/dist/modules/account_backend/screens/account-form.d.ts.map +1 -1
  8. package/dist/modules/account_backend/screens/account-form.js +3 -1
  9. package/dist/modules/account_backend/screens/account-form.js.map +1 -1
  10. package/dist/modules/account_backend/screens/accounts-list.d.ts.map +1 -1
  11. package/dist/modules/account_backend/screens/accounts-list.js +1 -1
  12. package/dist/modules/account_backend/screens/accounts-list.js.map +1 -1
  13. package/dist/modules/account_backend/screens/customer-invoice-form.d.ts.map +1 -1
  14. package/dist/modules/account_backend/screens/customer-invoice-form.js +1 -1
  15. package/dist/modules/account_backend/screens/customer-invoice-form.js.map +1 -1
  16. package/dist/modules/account_backend/screens/customer-invoices-list.d.ts.map +1 -1
  17. package/dist/modules/account_backend/screens/customer-invoices-list.js +1 -1
  18. package/dist/modules/account_backend/screens/customer-invoices-list.js.map +1 -1
  19. package/dist/modules/account_backend/screens/journal-entries-list.d.ts.map +1 -1
  20. package/dist/modules/account_backend/screens/journal-entries-list.js +1 -1
  21. package/dist/modules/account_backend/screens/journal-entries-list.js.map +1 -1
  22. package/dist/modules/account_backend/screens/journal-entry-create.d.ts.map +1 -1
  23. package/dist/modules/account_backend/screens/journal-entry-create.js +1 -1
  24. package/dist/modules/account_backend/screens/journal-entry-create.js.map +1 -1
  25. package/dist/modules/account_backend/screens/journal-form.d.ts.map +1 -1
  26. package/dist/modules/account_backend/screens/journal-form.js +3 -3
  27. package/dist/modules/account_backend/screens/journal-form.js.map +1 -1
  28. package/dist/modules/account_backend/screens/journals-list.d.ts.map +1 -1
  29. package/dist/modules/account_backend/screens/journals-list.js +1 -1
  30. package/dist/modules/account_backend/screens/journals-list.js.map +1 -1
  31. package/dist/modules/account_backend/screens/move-detail.d.ts.map +1 -1
  32. package/dist/modules/account_backend/screens/move-detail.js +3 -1
  33. package/dist/modules/account_backend/screens/move-detail.js.map +1 -1
  34. package/dist/modules/account_backend/screens/opening-balances.d.ts.map +1 -1
  35. package/dist/modules/account_backend/screens/opening-balances.js +2 -2
  36. package/dist/modules/account_backend/screens/opening-balances.js.map +1 -1
  37. package/dist/modules/account_backend/screens/overview.js +4 -2
  38. package/dist/modules/account_backend/screens/overview.js.map +1 -1
  39. package/dist/modules/account_backend/screens/payment-form.d.ts.map +1 -1
  40. package/dist/modules/account_backend/screens/payment-form.js +1 -1
  41. package/dist/modules/account_backend/screens/payment-form.js.map +1 -1
  42. package/dist/modules/account_backend/screens/payment-term-form.d.ts.map +1 -1
  43. package/dist/modules/account_backend/screens/payment-term-form.js +4 -2
  44. package/dist/modules/account_backend/screens/payment-term-form.js.map +1 -1
  45. package/dist/modules/account_backend/screens/payment-terms-list.d.ts.map +1 -1
  46. package/dist/modules/account_backend/screens/payment-terms-list.js +1 -1
  47. package/dist/modules/account_backend/screens/payment-terms-list.js.map +1 -1
  48. package/dist/modules/account_backend/screens/payments-list.d.ts.map +1 -1
  49. package/dist/modules/account_backend/screens/payments-list.js +1 -1
  50. package/dist/modules/account_backend/screens/payments-list.js.map +1 -1
  51. package/dist/modules/account_backend/screens/period-closes.d.ts.map +1 -1
  52. package/dist/modules/account_backend/screens/period-closes.js +1 -1
  53. package/dist/modules/account_backend/screens/period-closes.js.map +1 -1
  54. package/dist/modules/account_backend/screens/tax-form.d.ts.map +1 -1
  55. package/dist/modules/account_backend/screens/tax-form.js +3 -1
  56. package/dist/modules/account_backend/screens/tax-form.js.map +1 -1
  57. package/dist/modules/account_backend/screens/taxes-list.d.ts.map +1 -1
  58. package/dist/modules/account_backend/screens/taxes-list.js +1 -1
  59. package/dist/modules/account_backend/screens/taxes-list.js.map +1 -1
  60. package/dist/modules/account_backend/screens/vendor-bill-form.d.ts.map +1 -1
  61. package/dist/modules/account_backend/screens/vendor-bill-form.js +1 -1
  62. package/dist/modules/account_backend/screens/vendor-bill-form.js.map +1 -1
  63. package/dist/modules/account_backend/screens/vendor-bills-list.d.ts.map +1 -1
  64. package/dist/modules/account_backend/screens/vendor-bills-list.js +1 -1
  65. package/dist/modules/account_backend/screens/vendor-bills-list.js.map +1 -1
  66. package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts.map +1 -1
  67. package/dist/modules/account_partner_backend/screens/accounting-terms.js +1 -1
  68. package/dist/modules/account_partner_backend/screens/accounting-terms.js.map +1 -1
  69. package/dist/modules/activity_backend/index.d.ts.map +1 -1
  70. package/dist/modules/activity_backend/index.js +0 -2
  71. package/dist/modules/activity_backend/index.js.map +1 -1
  72. package/dist/modules/activity_backend/screens/activities-list.d.ts.map +1 -1
  73. package/dist/modules/activity_backend/screens/activities-list.js +1 -1
  74. package/dist/modules/activity_backend/screens/activities-list.js.map +1 -1
  75. package/dist/modules/address_backend/index.d.ts.map +1 -1
  76. package/dist/modules/address_backend/index.js +0 -2
  77. package/dist/modules/address_backend/index.js.map +1 -1
  78. package/dist/modules/address_backend/screens/catalogs-list.d.ts.map +1 -1
  79. package/dist/modules/address_backend/screens/catalogs-list.js +1 -1
  80. package/dist/modules/address_backend/screens/catalogs-list.js.map +1 -1
  81. package/dist/modules/attendance_backend/screens/credentials.d.ts.map +1 -1
  82. package/dist/modules/attendance_backend/screens/credentials.js +1 -1
  83. package/dist/modules/attendance_backend/screens/credentials.js.map +1 -1
  84. package/dist/modules/attendance_backend/screens/period.d.ts.map +1 -1
  85. package/dist/modules/attendance_backend/screens/period.js +1 -1
  86. package/dist/modules/attendance_backend/screens/period.js.map +1 -1
  87. package/dist/modules/backend/current-company.d.ts +4 -0
  88. package/dist/modules/backend/current-company.d.ts.map +1 -0
  89. package/dist/modules/backend/current-company.js +27 -0
  90. package/dist/modules/backend/current-company.js.map +1 -0
  91. package/dist/modules/backend/design/client/backend-shell.d.mts +2 -2
  92. package/dist/modules/backend/design/client/backend-shell.d.mts.map +1 -1
  93. package/dist/modules/backend/design/client/backend-shell.mjs +1 -1
  94. package/dist/modules/backend/design/client/backend-shell.mjs.map +4 -4
  95. package/dist/modules/backend/design/client/ket-table.d.mts +2 -2
  96. package/dist/modules/backend/design/client/ket-table.d.mts.map +1 -1
  97. package/dist/modules/backend/design/client/ket-table.mjs +1 -1
  98. package/dist/modules/backend/design/client/ket-table.mjs.map +3 -3
  99. package/dist/modules/backend/design/client/search-filter.d.mts +2 -2
  100. package/dist/modules/backend/design/client/search-filter.d.mts.map +1 -1
  101. package/dist/modules/backend/design/client/search-filter.mjs +1 -1
  102. package/dist/modules/backend/design/client/search-filter.mjs.map +3 -3
  103. package/dist/modules/backend/design/content.css +5 -5
  104. package/dist/modules/backend/design/controls.css +10 -36
  105. package/dist/modules/backend/design/forms.css +33 -188
  106. package/dist/modules/backend/design/lists.css +1 -50
  107. package/dist/modules/backend/index.d.ts +1 -0
  108. package/dist/modules/backend/index.d.ts.map +1 -1
  109. package/dist/modules/backend/index.js +1 -0
  110. package/dist/modules/backend/index.js.map +1 -1
  111. package/dist/modules/backend/optional-read.d.ts +4 -0
  112. package/dist/modules/backend/optional-read.d.ts.map +1 -0
  113. package/dist/modules/backend/optional-read.js +7 -0
  114. package/dist/modules/backend/optional-read.js.map +1 -0
  115. package/dist/modules/company_backend/index.d.ts.map +1 -1
  116. package/dist/modules/company_backend/index.js +0 -2
  117. package/dist/modules/company_backend/index.js.map +1 -1
  118. package/dist/modules/company_backend/screens/branch-form.d.ts.map +1 -1
  119. package/dist/modules/company_backend/screens/branch-form.js +3 -1
  120. package/dist/modules/company_backend/screens/branch-form.js.map +1 -1
  121. package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -1
  122. package/dist/modules/company_backend/screens/companies-list.js +1 -1
  123. package/dist/modules/company_backend/screens/companies-list.js.map +1 -1
  124. package/dist/modules/company_backend/screens/company-form.d.ts.map +1 -1
  125. package/dist/modules/company_backend/screens/company-form.js +1 -3
  126. package/dist/modules/company_backend/screens/company-form.js.map +1 -1
  127. package/dist/modules/company_backend/screens/context.d.ts.map +1 -1
  128. package/dist/modules/company_backend/screens/context.js +1 -1
  129. package/dist/modules/company_backend/screens/context.js.map +1 -1
  130. package/dist/modules/company_backend/screens/hierarchy.d.ts.map +1 -1
  131. package/dist/modules/company_backend/screens/hierarchy.js +1 -1
  132. package/dist/modules/company_backend/screens/hierarchy.js.map +1 -1
  133. package/dist/modules/crm_backend/client/crm-case-modal.d.mts +8 -8
  134. package/dist/modules/crm_backend/client/crm-case-modal.d.mts.map +1 -1
  135. package/dist/modules/crm_backend/client/crm-case-modal.mjs +1 -1
  136. package/dist/modules/crm_backend/client/crm-case-modal.mjs.map +3 -3
  137. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts +55 -55
  138. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts.map +1 -1
  139. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs +1 -1
  140. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs.map +3 -3
  141. package/dist/modules/crm_backend/messages.d.ts +0 -10
  142. package/dist/modules/crm_backend/messages.d.ts.map +1 -1
  143. package/dist/modules/crm_backend/messages.js +0 -10
  144. package/dist/modules/crm_backend/messages.js.map +1 -1
  145. package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -1
  146. package/dist/modules/crm_backend/screens/activity-planner.js +1 -1
  147. package/dist/modules/crm_backend/screens/activity-planner.js.map +1 -1
  148. package/dist/modules/crm_backend/screens/case-create.d.ts.map +1 -1
  149. package/dist/modules/crm_backend/screens/case-create.js +1 -1
  150. package/dist/modules/crm_backend/screens/case-create.js.map +1 -1
  151. package/dist/modules/crm_backend/screens/case-detail.d.ts.map +1 -1
  152. package/dist/modules/crm_backend/screens/case-detail.js +2 -2
  153. package/dist/modules/crm_backend/screens/case-detail.js.map +1 -1
  154. package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -1
  155. package/dist/modules/crm_backend/screens/cases-list.js +1 -1
  156. package/dist/modules/crm_backend/screens/cases-list.js.map +1 -1
  157. package/dist/modules/crm_backend/screens/configuration.d.ts.map +1 -1
  158. package/dist/modules/crm_backend/screens/configuration.js +1 -1
  159. package/dist/modules/crm_backend/screens/configuration.js.map +1 -1
  160. package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -1
  161. package/dist/modules/crm_backend/screens/leaderboard.js +1 -1
  162. package/dist/modules/crm_backend/screens/leaderboard.js.map +1 -1
  163. package/dist/modules/crm_backend/screens/pipeline.d.ts.map +1 -1
  164. package/dist/modules/crm_backend/screens/pipeline.js +1 -1
  165. package/dist/modules/crm_backend/screens/pipeline.js.map +1 -1
  166. package/dist/modules/flow/domain/command-check.d.ts +3 -0
  167. package/dist/modules/flow/domain/command-check.d.ts.map +1 -0
  168. package/dist/modules/flow/domain/command-check.js +9 -0
  169. package/dist/modules/flow/domain/command-check.js.map +1 -0
  170. package/dist/modules/flow/domain/command.d.ts +33 -0
  171. package/dist/modules/flow/domain/command.d.ts.map +1 -0
  172. package/dist/modules/flow/domain/command.js +35 -0
  173. package/dist/modules/flow/domain/command.js.map +1 -0
  174. package/dist/modules/flow/domain/issue-bulk.d.ts +50 -0
  175. package/dist/modules/flow/domain/issue-bulk.d.ts.map +1 -0
  176. package/dist/modules/flow/domain/issue-bulk.js +97 -0
  177. package/dist/modules/flow/domain/issue-bulk.js.map +1 -0
  178. package/dist/modules/flow/domain/issue-dependency.d.ts +19 -0
  179. package/dist/modules/flow/domain/issue-dependency.d.ts.map +1 -0
  180. package/dist/modules/flow/domain/issue-dependency.js +59 -0
  181. package/dist/modules/flow/domain/issue-dependency.js.map +1 -0
  182. package/dist/modules/flow/domain/issue-discussion.d.ts +52 -0
  183. package/dist/modules/flow/domain/issue-discussion.d.ts.map +1 -0
  184. package/dist/modules/flow/domain/issue-discussion.js +114 -0
  185. package/dist/modules/flow/domain/issue-discussion.js.map +1 -0
  186. package/dist/modules/flow/domain/issue-transfer.d.ts +62 -0
  187. package/dist/modules/flow/domain/issue-transfer.d.ts.map +1 -0
  188. package/dist/modules/flow/domain/issue-transfer.js +171 -0
  189. package/dist/modules/flow/domain/issue-transfer.js.map +1 -0
  190. package/dist/modules/flow/domain/issue-validation.d.ts +68 -0
  191. package/dist/modules/flow/domain/issue-validation.d.ts.map +1 -0
  192. package/dist/modules/flow/domain/issue-validation.js +136 -0
  193. package/dist/modules/flow/domain/issue-validation.js.map +1 -0
  194. package/dist/modules/flow/domain/issue-write.d.ts +118 -0
  195. package/dist/modules/flow/domain/issue-write.d.ts.map +1 -0
  196. package/dist/modules/flow/domain/issue-write.js +372 -0
  197. package/dist/modules/flow/domain/issue-write.js.map +1 -0
  198. package/dist/modules/flow/domain/sprint-lifecycle.d.ts +61 -0
  199. package/dist/modules/flow/domain/sprint-lifecycle.d.ts.map +1 -0
  200. package/dist/modules/flow/domain/sprint-lifecycle.js +145 -0
  201. package/dist/modules/flow/domain/sprint-lifecycle.js.map +1 -0
  202. package/dist/modules/flow/functions/board.d.ts +7 -0
  203. package/dist/modules/flow/functions/board.d.ts.map +1 -0
  204. package/dist/modules/flow/functions/board.js +59 -0
  205. package/dist/modules/flow/functions/board.js.map +1 -0
  206. package/dist/modules/flow/functions/column.d.ts +8 -0
  207. package/dist/modules/flow/functions/column.d.ts.map +1 -0
  208. package/dist/modules/flow/functions/column.js +64 -0
  209. package/dist/modules/flow/functions/column.js.map +1 -0
  210. package/dist/modules/flow/functions/effects.d.ts +21 -0
  211. package/dist/modules/flow/functions/effects.d.ts.map +1 -0
  212. package/dist/modules/flow/functions/effects.js +96 -0
  213. package/dist/modules/flow/functions/effects.js.map +1 -0
  214. package/dist/modules/flow/functions/entity-save.d.ts +4 -0
  215. package/dist/modules/flow/functions/entity-save.d.ts.map +1 -0
  216. package/dist/modules/flow/functions/entity-save.js +60 -0
  217. package/dist/modules/flow/functions/entity-save.js.map +1 -0
  218. package/dist/modules/flow/functions/epic.d.ts +26 -0
  219. package/dist/modules/flow/functions/epic.d.ts.map +1 -0
  220. package/dist/modules/flow/functions/epic.js +151 -0
  221. package/dist/modules/flow/functions/epic.js.map +1 -0
  222. package/dist/modules/flow/functions/field.d.ts +9 -0
  223. package/dist/modules/flow/functions/field.d.ts.map +1 -0
  224. package/dist/modules/flow/functions/field.js +117 -0
  225. package/dist/modules/flow/functions/field.js.map +1 -0
  226. package/dist/modules/flow/functions/index.d.ts +5 -0
  227. package/dist/modules/flow/functions/index.d.ts.map +1 -0
  228. package/dist/modules/flow/functions/index.js +42 -0
  229. package/dist/modules/flow/functions/index.js.map +1 -0
  230. package/dist/modules/flow/functions/issue-batch.d.ts +6 -0
  231. package/dist/modules/flow/functions/issue-batch.d.ts.map +1 -0
  232. package/dist/modules/flow/functions/issue-batch.js +149 -0
  233. package/dist/modules/flow/functions/issue-batch.js.map +1 -0
  234. package/dist/modules/flow/functions/issue-dependency.d.ts +8 -0
  235. package/dist/modules/flow/functions/issue-dependency.d.ts.map +1 -0
  236. package/dist/modules/flow/functions/issue-dependency.js +54 -0
  237. package/dist/modules/flow/functions/issue-dependency.js.map +1 -0
  238. package/dist/modules/flow/functions/issue-discussion.d.ts +6 -0
  239. package/dist/modules/flow/functions/issue-discussion.d.ts.map +1 -0
  240. package/dist/modules/flow/functions/issue-discussion.js +86 -0
  241. package/dist/modules/flow/functions/issue-discussion.js.map +1 -0
  242. package/dist/modules/flow/functions/issue-read.d.ts +18 -0
  243. package/dist/modules/flow/functions/issue-read.d.ts.map +1 -0
  244. package/dist/modules/flow/functions/issue-read.js +159 -0
  245. package/dist/modules/flow/functions/issue-read.js.map +1 -0
  246. package/dist/modules/flow/functions/issue-write.d.ts +9 -0
  247. package/dist/modules/flow/functions/issue-write.d.ts.map +1 -0
  248. package/dist/modules/flow/functions/issue-write.js +149 -0
  249. package/dist/modules/flow/functions/issue-write.js.map +1 -0
  250. package/dist/modules/flow/functions/issueType.d.ts +8 -0
  251. package/dist/modules/flow/functions/issueType.d.ts.map +1 -0
  252. package/dist/modules/flow/functions/issueType.js +66 -0
  253. package/dist/modules/flow/functions/issueType.js.map +1 -0
  254. package/dist/modules/flow/functions/page.d.ts +22 -0
  255. package/dist/modules/flow/functions/page.d.ts.map +1 -0
  256. package/dist/modules/flow/functions/page.js +202 -0
  257. package/dist/modules/flow/functions/page.js.map +1 -0
  258. package/dist/modules/flow/functions/project.d.ts +26 -0
  259. package/dist/modules/flow/functions/project.d.ts.map +1 -0
  260. package/dist/modules/flow/functions/project.js +381 -0
  261. package/dist/modules/flow/functions/project.js.map +1 -0
  262. package/dist/modules/flow/functions/sprint.d.ts +17 -0
  263. package/dist/modules/flow/functions/sprint.d.ts.map +1 -0
  264. package/dist/modules/flow/functions/sprint.js +173 -0
  265. package/dist/modules/flow/functions/sprint.js.map +1 -0
  266. package/dist/modules/flow/functions/tag.d.ts +14 -0
  267. package/dist/modules/flow/functions/tag.d.ts.map +1 -0
  268. package/dist/modules/flow/functions/tag.js +88 -0
  269. package/dist/modules/flow/functions/tag.js.map +1 -0
  270. package/dist/modules/flow/index.d.ts +8 -2
  271. package/dist/modules/flow/index.d.ts.map +1 -1
  272. package/dist/modules/flow/index.js +7 -2
  273. package/dist/modules/flow/index.js.map +1 -1
  274. package/dist/modules/flow/pages.d.ts +1 -1
  275. package/dist/modules/flow/pages.d.ts.map +1 -1
  276. package/dist/modules/flow/pages.js +1 -1
  277. package/dist/modules/flow/pages.js.map +1 -1
  278. package/dist/modules/flow/queries/calendar.d.ts +21 -0
  279. package/dist/modules/flow/queries/calendar.d.ts.map +1 -0
  280. package/dist/modules/flow/queries/calendar.js +31 -0
  281. package/dist/modules/flow/queries/calendar.js.map +1 -0
  282. package/dist/modules/flow/queries/issue-dependencies.d.ts +17 -0
  283. package/dist/modules/flow/queries/issue-dependencies.d.ts.map +1 -0
  284. package/dist/modules/flow/queries/issue-dependencies.js +46 -0
  285. package/dist/modules/flow/queries/issue-dependencies.js.map +1 -0
  286. package/dist/modules/flow/queries/issue-followers.d.ts +6 -0
  287. package/dist/modules/flow/queries/issue-followers.d.ts.map +1 -0
  288. package/dist/modules/flow/queries/issue-followers.js +18 -0
  289. package/dist/modules/flow/queries/issue-followers.js.map +1 -0
  290. package/dist/modules/flow/queries/issue-list.d.ts +153 -0
  291. package/dist/modules/flow/queries/issue-list.d.ts.map +1 -0
  292. package/dist/modules/flow/queries/issue-list.js +439 -0
  293. package/dist/modules/flow/queries/issue-list.js.map +1 -0
  294. package/dist/modules/flow/queries/options.d.ts +4 -0
  295. package/dist/modules/flow/queries/options.d.ts.map +1 -0
  296. package/dist/modules/flow/queries/options.js +13 -0
  297. package/dist/modules/flow/queries/options.js.map +1 -0
  298. package/dist/modules/flow/queries/progress.d.ts +24 -0
  299. package/dist/modules/flow/queries/progress.d.ts.map +1 -0
  300. package/dist/modules/flow/queries/progress.js +54 -0
  301. package/dist/modules/flow/queries/progress.js.map +1 -0
  302. package/dist/modules/flow/queries/project-list.d.ts +4 -0
  303. package/dist/modules/flow/queries/project-list.d.ts.map +1 -0
  304. package/dist/modules/flow/queries/project-list.js +19 -0
  305. package/dist/modules/flow/queries/project-list.js.map +1 -0
  306. package/dist/modules/flow_backend/messages.d.ts +1 -2
  307. package/dist/modules/flow_backend/messages.d.ts.map +1 -1
  308. package/dist/modules/flow_backend/messages.js +0 -2
  309. package/dist/modules/flow_backend/messages.js.map +1 -1
  310. package/dist/modules/flow_backend/routes.js +1 -1
  311. package/dist/modules/flow_backend/routes.js.map +1 -1
  312. package/dist/modules/flow_backend/screens/all-epics.d.ts.map +1 -1
  313. package/dist/modules/flow_backend/screens/all-epics.js +1 -1
  314. package/dist/modules/flow_backend/screens/all-epics.js.map +1 -1
  315. package/dist/modules/flow_backend/screens/all-pages.d.ts.map +1 -1
  316. package/dist/modules/flow_backend/screens/all-pages.js +1 -1
  317. package/dist/modules/flow_backend/screens/all-pages.js.map +1 -1
  318. package/dist/modules/flow_backend/screens/epic-detail.js +1 -1
  319. package/dist/modules/flow_backend/screens/epic-detail.js.map +1 -1
  320. package/dist/modules/flow_backend/screens/gantt.d.ts.map +1 -1
  321. package/dist/modules/flow_backend/screens/gantt.js +1 -1
  322. package/dist/modules/flow_backend/screens/gantt.js.map +1 -1
  323. package/dist/modules/flow_backend/screens/issue-detail.js +2 -1
  324. package/dist/modules/flow_backend/screens/issue-detail.js.map +1 -1
  325. package/dist/modules/flow_backend/screens/issues.d.ts.map +1 -1
  326. package/dist/modules/flow_backend/screens/issues.js +1 -1
  327. package/dist/modules/flow_backend/screens/issues.js.map +1 -1
  328. package/dist/modules/flow_backend/screens/map.js +1 -1
  329. package/dist/modules/flow_backend/screens/map.js.map +1 -1
  330. package/dist/modules/flow_backend/screens/my-work.d.ts.map +1 -1
  331. package/dist/modules/flow_backend/screens/my-work.js +1 -1
  332. package/dist/modules/flow_backend/screens/my-work.js.map +1 -1
  333. package/dist/modules/flow_backend/screens/page-detail.js +1 -1
  334. package/dist/modules/flow_backend/screens/page-detail.js.map +1 -1
  335. package/dist/modules/flow_backend/screens/project-create.d.ts.map +1 -1
  336. package/dist/modules/flow_backend/screens/project-create.js +1 -1
  337. package/dist/modules/flow_backend/screens/project-create.js.map +1 -1
  338. package/dist/modules/flow_backend/screens/project-pages.d.ts.map +1 -1
  339. package/dist/modules/flow_backend/screens/project-pages.js +1 -1
  340. package/dist/modules/flow_backend/screens/project-pages.js.map +1 -1
  341. package/dist/modules/flow_backend/screens/projects-list.d.ts.map +1 -1
  342. package/dist/modules/flow_backend/screens/projects-list.js +1 -1
  343. package/dist/modules/flow_backend/screens/projects-list.js.map +1 -1
  344. package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -1
  345. package/dist/modules/flow_backend/screens/sprints.js +1 -1
  346. package/dist/modules/flow_backend/screens/sprints.js.map +1 -1
  347. package/dist/modules/flow_staff_channel/channel-routes.js +1 -1
  348. package/dist/modules/flow_staff_channel/channel-routes.js.map +1 -1
  349. package/dist/modules/hospitality_billing/messages.d.ts.map +1 -1
  350. package/dist/modules/hospitality_billing/messages.js +0 -2
  351. package/dist/modules/hospitality_billing/messages.js.map +1 -1
  352. package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -1
  353. package/dist/modules/hospitality_billing/screens/billing.js +1 -1
  354. package/dist/modules/hospitality_billing/screens/billing.js.map +1 -1
  355. package/dist/modules/hospitality_billing/screens/page-frame.d.ts +1 -2
  356. package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -1
  357. package/dist/modules/hospitality_billing/screens/page-frame.js +1 -1
  358. package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -1
  359. package/dist/modules/hospitality_core/messages.js +2 -2
  360. package/dist/modules/hospitality_core/messages.js.map +1 -1
  361. package/dist/modules/hospitality_core/screens/check-out-prep.d.ts.map +1 -1
  362. package/dist/modules/hospitality_core/screens/check-out-prep.js +1 -1
  363. package/dist/modules/hospitality_core/screens/check-out-prep.js.map +1 -1
  364. package/dist/modules/hospitality_core/screens/front-desk.d.ts.map +1 -1
  365. package/dist/modules/hospitality_core/screens/front-desk.js +40 -40
  366. package/dist/modules/hospitality_core/screens/front-desk.js.map +1 -1
  367. package/dist/modules/hospitality_core/screens/page-frame.d.ts +2 -3
  368. package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -1
  369. package/dist/modules/hospitality_core/screens/page-frame.js +3 -3
  370. package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -1
  371. package/dist/modules/hospitality_core/screens/tape-chart.d.ts.map +1 -1
  372. package/dist/modules/hospitality_core/screens/tape-chart.js +3 -12
  373. package/dist/modules/hospitality_core/screens/tape-chart.js.map +1 -1
  374. package/dist/modules/hr_backend/screens/employee-form.d.ts.map +1 -1
  375. package/dist/modules/hr_backend/screens/employee-form.js +1 -1
  376. package/dist/modules/hr_backend/screens/employee-form.js.map +1 -1
  377. package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -1
  378. package/dist/modules/hr_backend/screens/leaves-list.js +1 -1
  379. package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -1
  380. package/dist/modules/livedoc/islands.d.ts +9 -0
  381. package/dist/modules/livedoc/islands.d.ts.map +1 -1
  382. package/dist/modules/loyalty_backend/messages.d.ts +0 -10
  383. package/dist/modules/loyalty_backend/messages.d.ts.map +1 -1
  384. package/dist/modules/loyalty_backend/messages.js +0 -10
  385. package/dist/modules/loyalty_backend/messages.js.map +1 -1
  386. package/dist/modules/loyalty_backend/screens/index.d.ts.map +1 -1
  387. package/dist/modules/loyalty_backend/screens/index.js +5 -5
  388. package/dist/modules/loyalty_backend/screens/index.js.map +1 -1
  389. package/dist/modules/loyalty_backend/screens/page-frame.d.ts +2 -3
  390. package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -1
  391. package/dist/modules/loyalty_backend/screens/page-frame.js +2 -2
  392. package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -1
  393. package/dist/modules/mail_backend/index.d.ts.map +1 -1
  394. package/dist/modules/mail_backend/index.js +0 -2
  395. package/dist/modules/mail_backend/index.js.map +1 -1
  396. package/dist/modules/mail_backend/screens/inbox-list.d.ts.map +1 -1
  397. package/dist/modules/mail_backend/screens/inbox-list.js +1 -1
  398. package/dist/modules/mail_backend/screens/inbox-list.js.map +1 -1
  399. package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -1
  400. package/dist/modules/mail_inbound_backend/index.js +0 -2
  401. package/dist/modules/mail_inbound_backend/index.js.map +1 -1
  402. package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts.map +1 -1
  403. package/dist/modules/mail_inbound_backend/screens/inbound-list.js +1 -1
  404. package/dist/modules/mail_inbound_backend/screens/inbound-list.js.map +1 -1
  405. package/dist/modules/mail_transport_backend/index.d.ts.map +1 -1
  406. package/dist/modules/mail_transport_backend/index.js +0 -2
  407. package/dist/modules/mail_transport_backend/index.js.map +1 -1
  408. package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts.map +1 -1
  409. package/dist/modules/mail_transport_backend/screens/outbox-list.js +1 -1
  410. package/dist/modules/mail_transport_backend/screens/outbox-list.js.map +1 -1
  411. package/dist/modules/manufacturing_backend/screens/order-execution.d.ts.map +1 -1
  412. package/dist/modules/manufacturing_backend/screens/order-execution.js +1 -1
  413. package/dist/modules/manufacturing_backend/screens/order-execution.js.map +1 -1
  414. package/dist/modules/oauth_backend/messages.d.ts +0 -4
  415. package/dist/modules/oauth_backend/messages.d.ts.map +1 -1
  416. package/dist/modules/oauth_backend/messages.js +0 -4
  417. package/dist/modules/oauth_backend/messages.js.map +1 -1
  418. package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -1
  419. package/dist/modules/oauth_backend/screens/index.js +5 -5
  420. package/dist/modules/oauth_backend/screens/index.js.map +1 -1
  421. package/dist/modules/partner_backend/screens/form.d.ts.map +1 -1
  422. package/dist/modules/partner_backend/screens/form.js +3 -1
  423. package/dist/modules/partner_backend/screens/form.js.map +1 -1
  424. package/dist/modules/partner_backend/screens/list.d.ts.map +1 -1
  425. package/dist/modules/partner_backend/screens/list.js +1 -1
  426. package/dist/modules/partner_backend/screens/list.js.map +1 -1
  427. package/dist/modules/partner_backend/screens/new.d.ts.map +1 -1
  428. package/dist/modules/partner_backend/screens/new.js +1 -1
  429. package/dist/modules/partner_backend/screens/new.js.map +1 -1
  430. package/dist/modules/pricing_backend/index.js +0 -2
  431. package/dist/modules/pricing_backend/index.js.map +1 -1
  432. package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts.map +1 -1
  433. package/dist/modules/pricing_backend/screens/pricelist-detail.js +1 -1
  434. package/dist/modules/pricing_backend/screens/pricelist-detail.js.map +1 -1
  435. package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -1
  436. package/dist/modules/pricing_backend/screens/pricelists-list.js +1 -1
  437. package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -1
  438. package/dist/modules/product_backend/client/attribute-modal.d.mts +5 -5
  439. package/dist/modules/product_backend/client/attribute-modal.d.mts.map +1 -1
  440. package/dist/modules/product_backend/client/attribute-modal.mjs +1 -1
  441. package/dist/modules/product_backend/client/attribute-modal.mjs.map +3 -3
  442. package/dist/modules/product_backend/client/product-modal.d.mts +8 -8
  443. package/dist/modules/product_backend/client/product-modal.d.mts.map +1 -1
  444. package/dist/modules/product_backend/client/product-modal.mjs +1 -1
  445. package/dist/modules/product_backend/client/product-modal.mjs.map +3 -3
  446. package/dist/modules/product_backend/client/variant-editor.d.mts +3 -3
  447. package/dist/modules/product_backend/client/variant-editor.d.mts.map +1 -1
  448. package/dist/modules/product_backend/client/variant-editor.mjs +1 -1
  449. package/dist/modules/product_backend/client/variant-editor.mjs.map +3 -3
  450. package/dist/modules/product_backend/screens/detail.d.ts.map +1 -1
  451. package/dist/modules/product_backend/screens/detail.js +3 -2
  452. package/dist/modules/product_backend/screens/detail.js.map +1 -1
  453. package/dist/modules/product_backend/screens/variant.d.ts.map +1 -1
  454. package/dist/modules/product_backend/screens/variant.js +3 -2
  455. package/dist/modules/product_backend/screens/variant.js.map +1 -1
  456. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts +185 -0
  457. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts.map +1 -0
  458. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs +2 -0
  459. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs.map +7 -0
  460. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts +52 -0
  461. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts.map +1 -0
  462. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs +2 -0
  463. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs.map +7 -0
  464. package/dist/modules/purchase_backend/index.js +83 -14
  465. package/dist/modules/purchase_backend/index.js.map +1 -1
  466. package/dist/modules/purchase_backend/modal/context.d.ts +4 -0
  467. package/dist/modules/purchase_backend/modal/context.d.ts.map +1 -0
  468. package/dist/modules/purchase_backend/modal/context.js +94 -0
  469. package/dist/modules/purchase_backend/modal/context.js.map +1 -0
  470. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts +18 -0
  471. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts.map +1 -0
  472. package/dist/modules/purchase_backend/modal/order-modal-view.js +290 -0
  473. package/dist/modules/purchase_backend/modal/order-modal-view.js.map +1 -0
  474. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts +3 -0
  475. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts.map +1 -0
  476. package/dist/modules/purchase_backend/modal/pricelist-context.js +36 -0
  477. package/dist/modules/purchase_backend/modal/pricelist-context.js.map +1 -0
  478. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts +12 -0
  479. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts.map +1 -0
  480. package/dist/modules/purchase_backend/modal/pricelist-view.js +78 -0
  481. package/dist/modules/purchase_backend/modal/pricelist-view.js.map +1 -0
  482. package/dist/modules/purchase_backend/screens/order-detail.d.ts.map +1 -1
  483. package/dist/modules/purchase_backend/screens/order-detail.js +4 -2
  484. package/dist/modules/purchase_backend/screens/order-detail.js.map +1 -1
  485. package/dist/modules/purchase_backend/screens/overview.d.ts +5 -0
  486. package/dist/modules/purchase_backend/screens/overview.d.ts.map +1 -1
  487. package/dist/modules/purchase_backend/screens/overview.js +27 -6
  488. package/dist/modules/purchase_backend/screens/overview.js.map +1 -1
  489. package/dist/modules/purchase_backend/screens/rfq-create.d.ts.map +1 -1
  490. package/dist/modules/purchase_backend/screens/rfq-create.js +1 -1
  491. package/dist/modules/purchase_backend/screens/rfq-create.js.map +1 -1
  492. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts +1 -1
  493. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts.map +1 -1
  494. package/dist/modules/purchase_backend/screens/rfqs-list.js +1 -1
  495. package/dist/modules/purchase_backend/screens/rfqs-list.js.map +1 -1
  496. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts.map +1 -1
  497. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js +1 -1
  498. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js.map +1 -1
  499. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts +2 -1
  500. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts.map +1 -1
  501. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js +2 -2
  502. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -1
  503. package/dist/modules/purchase_backend/search.d.ts +1 -1
  504. package/dist/modules/sale/functions/line-edit.d.ts +4 -0
  505. package/dist/modules/sale/functions/line-edit.d.ts.map +1 -0
  506. package/dist/modules/sale/functions/line-edit.js +120 -0
  507. package/dist/modules/sale/functions/line-edit.js.map +1 -0
  508. package/dist/modules/sale/index.d.ts.map +1 -1
  509. package/dist/modules/sale/index.js +16 -1
  510. package/dist/modules/sale/index.js.map +1 -1
  511. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts +53 -0
  512. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts.map +1 -0
  513. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs +2 -0
  514. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs.map +7 -0
  515. package/dist/modules/sale_backend/client/sale-order-modal.d.mts +161 -0
  516. package/dist/modules/sale_backend/client/sale-order-modal.d.mts.map +1 -0
  517. package/dist/modules/sale_backend/client/sale-order-modal.mjs +2 -0
  518. package/dist/modules/sale_backend/client/sale-order-modal.mjs.map +7 -0
  519. package/dist/modules/sale_backend/index.js +81 -20
  520. package/dist/modules/sale_backend/index.js.map +1 -1
  521. package/dist/modules/sale_backend/modal/context.d.ts +4 -0
  522. package/dist/modules/sale_backend/modal/context.d.ts.map +1 -0
  523. package/dist/modules/sale_backend/modal/context.js +94 -0
  524. package/dist/modules/sale_backend/modal/context.js.map +1 -0
  525. package/dist/modules/sale_backend/modal/order-modal-view.d.ts +18 -0
  526. package/dist/modules/sale_backend/modal/order-modal-view.d.ts.map +1 -0
  527. package/dist/modules/sale_backend/modal/order-modal-view.js +289 -0
  528. package/dist/modules/sale_backend/modal/order-modal-view.js.map +1 -0
  529. package/dist/modules/sale_backend/modal/policy-context.d.ts +3 -0
  530. package/dist/modules/sale_backend/modal/policy-context.d.ts.map +1 -0
  531. package/dist/modules/sale_backend/modal/policy-context.js +26 -0
  532. package/dist/modules/sale_backend/modal/policy-context.js.map +1 -0
  533. package/dist/modules/sale_backend/modal/policy-view.d.ts +11 -0
  534. package/dist/modules/sale_backend/modal/policy-view.d.ts.map +1 -0
  535. package/dist/modules/sale_backend/modal/policy-view.js +70 -0
  536. package/dist/modules/sale_backend/modal/policy-view.js.map +1 -0
  537. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts +1 -1
  538. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts.map +1 -1
  539. package/dist/modules/sale_backend/screens/invoicing-policies-list.js +1 -1
  540. package/dist/modules/sale_backend/screens/invoicing-policies-list.js.map +1 -1
  541. package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts.map +1 -1
  542. package/dist/modules/sale_backend/screens/invoicing-policy-create.js +1 -1
  543. package/dist/modules/sale_backend/screens/invoicing-policy-create.js.map +1 -1
  544. package/dist/modules/sale_backend/screens/order-detail.d.ts.map +1 -1
  545. package/dist/modules/sale_backend/screens/order-detail.js +3 -1
  546. package/dist/modules/sale_backend/screens/order-detail.js.map +1 -1
  547. package/dist/modules/sale_backend/screens/overview.d.ts +3 -0
  548. package/dist/modules/sale_backend/screens/overview.d.ts.map +1 -1
  549. package/dist/modules/sale_backend/screens/overview.js +22 -14
  550. package/dist/modules/sale_backend/screens/overview.js.map +1 -1
  551. package/dist/modules/sale_backend/screens/quotation-create.d.ts.map +1 -1
  552. package/dist/modules/sale_backend/screens/quotation-create.js +1 -1
  553. package/dist/modules/sale_backend/screens/quotation-create.js.map +1 -1
  554. package/dist/modules/sale_backend/screens/quotations-list.d.ts +1 -1
  555. package/dist/modules/sale_backend/screens/quotations-list.d.ts.map +1 -1
  556. package/dist/modules/sale_backend/screens/quotations-list.js +1 -1
  557. package/dist/modules/sale_backend/screens/quotations-list.js.map +1 -1
  558. package/dist/modules/sale_backend/screens/sales-orders-list.d.ts.map +1 -1
  559. package/dist/modules/sale_backend/screens/sales-orders-list.js +1 -1
  560. package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -1
  561. package/dist/modules/stock/functions/inventory-preview.d.ts +4 -0
  562. package/dist/modules/stock/functions/inventory-preview.d.ts.map +1 -0
  563. package/dist/modules/stock/functions/inventory-preview.js +68 -0
  564. package/dist/modules/stock/functions/inventory-preview.js.map +1 -0
  565. package/dist/modules/stock/index.d.ts.map +1 -1
  566. package/dist/modules/stock/index.js +14 -1
  567. package/dist/modules/stock/index.js.map +1 -1
  568. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts +60 -0
  569. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts.map +1 -0
  570. package/dist/modules/stock_backend/client/inventory-count-modal.mjs +2 -0
  571. package/dist/modules/stock_backend/client/inventory-count-modal.mjs.map +7 -0
  572. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts +105 -0
  573. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts.map +1 -0
  574. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs +2 -0
  575. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs.map +7 -0
  576. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts +130 -0
  577. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts.map +1 -0
  578. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs +2 -0
  579. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs.map +7 -0
  580. package/dist/modules/stock_backend/functions/index.d.ts +10 -0
  581. package/dist/modules/stock_backend/functions/index.d.ts.map +1 -0
  582. package/dist/modules/stock_backend/functions/index.js +20 -0
  583. package/dist/modules/stock_backend/functions/index.js.map +1 -0
  584. package/dist/modules/stock_backend/functions.d.ts +1 -9
  585. package/dist/modules/stock_backend/functions.d.ts.map +1 -1
  586. package/dist/modules/stock_backend/functions.js +1 -18
  587. package/dist/modules/stock_backend/functions.js.map +1 -1
  588. package/dist/modules/stock_backend/index.js +52 -0
  589. package/dist/modules/stock_backend/index.js.map +1 -1
  590. package/dist/modules/stock_backend/islands.d.ts +8 -0
  591. package/dist/modules/stock_backend/islands.d.ts.map +1 -1
  592. package/dist/modules/stock_backend/islands.js +41 -0
  593. package/dist/modules/stock_backend/islands.js.map +1 -1
  594. package/dist/modules/stock_backend/modal/configuration-context.d.ts +3 -0
  595. package/dist/modules/stock_backend/modal/configuration-context.d.ts.map +1 -0
  596. package/dist/modules/stock_backend/modal/configuration-context.js +65 -0
  597. package/dist/modules/stock_backend/modal/configuration-context.js.map +1 -0
  598. package/dist/modules/stock_backend/modal/configuration-view.d.ts +21 -0
  599. package/dist/modules/stock_backend/modal/configuration-view.d.ts.map +1 -0
  600. package/dist/modules/stock_backend/modal/configuration-view.js +201 -0
  601. package/dist/modules/stock_backend/modal/configuration-view.js.map +1 -0
  602. package/dist/modules/stock_backend/modal/configuration.d.ts +20 -0
  603. package/dist/modules/stock_backend/modal/configuration.d.ts.map +1 -0
  604. package/dist/modules/stock_backend/modal/configuration.js +117 -0
  605. package/dist/modules/stock_backend/modal/configuration.js.map +1 -0
  606. package/dist/modules/stock_backend/modal/inventory-context.d.ts +3 -0
  607. package/dist/modules/stock_backend/modal/inventory-context.d.ts.map +1 -0
  608. package/dist/modules/stock_backend/modal/inventory-context.js +37 -0
  609. package/dist/modules/stock_backend/modal/inventory-context.js.map +1 -0
  610. package/dist/modules/stock_backend/modal/inventory-view.d.ts +14 -0
  611. package/dist/modules/stock_backend/modal/inventory-view.d.ts.map +1 -0
  612. package/dist/modules/stock_backend/modal/inventory-view.js +142 -0
  613. package/dist/modules/stock_backend/modal/inventory-view.js.map +1 -0
  614. package/dist/modules/stock_backend/modal/transfer-context.d.ts +3 -0
  615. package/dist/modules/stock_backend/modal/transfer-context.d.ts.map +1 -0
  616. package/dist/modules/stock_backend/modal/transfer-context.js +54 -0
  617. package/dist/modules/stock_backend/modal/transfer-context.js.map +1 -0
  618. package/dist/modules/stock_backend/modal/transfer-view.d.ts +15 -0
  619. package/dist/modules/stock_backend/modal/transfer-view.d.ts.map +1 -0
  620. package/dist/modules/stock_backend/modal/transfer-view.js +252 -0
  621. package/dist/modules/stock_backend/modal/transfer-view.js.map +1 -0
  622. package/dist/modules/stock_backend/routes.d.ts.map +1 -1
  623. package/dist/modules/stock_backend/routes.js +117 -34
  624. package/dist/modules/stock_backend/routes.js.map +1 -1
  625. package/dist/modules/stock_backend/screens/forecast.d.ts.map +1 -1
  626. package/dist/modules/stock_backend/screens/forecast.js +5 -32
  627. package/dist/modules/stock_backend/screens/forecast.js.map +1 -1
  628. package/dist/modules/stock_backend/screens/inventory.d.ts +3 -1
  629. package/dist/modules/stock_backend/screens/inventory.d.ts.map +1 -1
  630. package/dist/modules/stock_backend/screens/inventory.js +27 -74
  631. package/dist/modules/stock_backend/screens/inventory.js.map +1 -1
  632. package/dist/modules/stock_backend/screens/location-create.d.ts.map +1 -1
  633. package/dist/modules/stock_backend/screens/location-create.js +1 -1
  634. package/dist/modules/stock_backend/screens/location-create.js.map +1 -1
  635. package/dist/modules/stock_backend/screens/locations-list.d.ts +1 -1
  636. package/dist/modules/stock_backend/screens/locations-list.d.ts.map +1 -1
  637. package/dist/modules/stock_backend/screens/locations-list.js +1 -1
  638. package/dist/modules/stock_backend/screens/locations-list.js.map +1 -1
  639. package/dist/modules/stock_backend/screens/lot-create.d.ts.map +1 -1
  640. package/dist/modules/stock_backend/screens/lot-create.js +1 -1
  641. package/dist/modules/stock_backend/screens/lot-create.js.map +1 -1
  642. package/dist/modules/stock_backend/screens/lot-detail.d.ts.map +1 -1
  643. package/dist/modules/stock_backend/screens/lot-detail.js +3 -2
  644. package/dist/modules/stock_backend/screens/lot-detail.js.map +1 -1
  645. package/dist/modules/stock_backend/screens/lots-list.d.ts +1 -1
  646. package/dist/modules/stock_backend/screens/lots-list.d.ts.map +1 -1
  647. package/dist/modules/stock_backend/screens/lots-list.js +1 -1
  648. package/dist/modules/stock_backend/screens/lots-list.js.map +1 -1
  649. package/dist/modules/stock_backend/screens/overview.d.ts +9 -0
  650. package/dist/modules/stock_backend/screens/overview.d.ts.map +1 -0
  651. package/dist/modules/stock_backend/screens/overview.js +38 -0
  652. package/dist/modules/stock_backend/screens/overview.js.map +1 -0
  653. package/dist/modules/stock_backend/screens/picking-type-create.d.ts.map +1 -1
  654. package/dist/modules/stock_backend/screens/picking-type-create.js +1 -1
  655. package/dist/modules/stock_backend/screens/picking-type-create.js.map +1 -1
  656. package/dist/modules/stock_backend/screens/picking-types-list.d.ts +1 -1
  657. package/dist/modules/stock_backend/screens/picking-types-list.d.ts.map +1 -1
  658. package/dist/modules/stock_backend/screens/picking-types-list.js +1 -1
  659. package/dist/modules/stock_backend/screens/picking-types-list.js.map +1 -1
  660. package/dist/modules/stock_backend/screens/replenishment-create.d.ts.map +1 -1
  661. package/dist/modules/stock_backend/screens/replenishment-create.js +1 -1
  662. package/dist/modules/stock_backend/screens/replenishment-create.js.map +1 -1
  663. package/dist/modules/stock_backend/screens/replenishment-list.d.ts +2 -2
  664. package/dist/modules/stock_backend/screens/replenishment-list.d.ts.map +1 -1
  665. package/dist/modules/stock_backend/screens/replenishment-list.js +2 -2
  666. package/dist/modules/stock_backend/screens/replenishment-list.js.map +1 -1
  667. package/dist/modules/stock_backend/screens/stock-route-create.d.ts.map +1 -1
  668. package/dist/modules/stock_backend/screens/stock-route-create.js +1 -1
  669. package/dist/modules/stock_backend/screens/stock-route-create.js.map +1 -1
  670. package/dist/modules/stock_backend/screens/stock-route-detail.js +2 -1
  671. package/dist/modules/stock_backend/screens/stock-route-detail.js.map +1 -1
  672. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts +1 -1
  673. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts.map +1 -1
  674. package/dist/modules/stock_backend/screens/stock-routes-list.js +1 -1
  675. package/dist/modules/stock_backend/screens/stock-routes-list.js.map +1 -1
  676. package/dist/modules/stock_backend/screens/transfer-create.d.ts.map +1 -1
  677. package/dist/modules/stock_backend/screens/transfer-create.js +1 -1
  678. package/dist/modules/stock_backend/screens/transfer-create.js.map +1 -1
  679. package/dist/modules/stock_backend/screens/transfer-detail.d.ts.map +1 -1
  680. package/dist/modules/stock_backend/screens/transfer-detail.js +3 -2
  681. package/dist/modules/stock_backend/screens/transfer-detail.js.map +1 -1
  682. package/dist/modules/stock_backend/screens/transfers-list.d.ts +1 -1
  683. package/dist/modules/stock_backend/screens/transfers-list.d.ts.map +1 -1
  684. package/dist/modules/stock_backend/screens/transfers-list.js +1 -1
  685. package/dist/modules/stock_backend/screens/transfers-list.js.map +1 -1
  686. package/dist/modules/stock_backend/screens/warehouse-create.d.ts.map +1 -1
  687. package/dist/modules/stock_backend/screens/warehouse-create.js +1 -1
  688. package/dist/modules/stock_backend/screens/warehouse-create.js.map +1 -1
  689. package/dist/modules/stock_backend/screens/warehouses-list.d.ts +1 -1
  690. package/dist/modules/stock_backend/screens/warehouses-list.d.ts.map +1 -1
  691. package/dist/modules/stock_backend/screens/warehouses-list.js +1 -1
  692. package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -1
  693. package/dist/modules/stock_backend/search.d.ts +29 -0
  694. package/dist/modules/stock_backend/search.d.ts.map +1 -1
  695. package/dist/modules/stock_backend/search.js +22 -0
  696. package/dist/modules/stock_backend/search.js.map +1 -1
  697. package/dist/modules/user_backend/client/access-policy-modal.d.mts +4 -4
  698. package/dist/modules/user_backend/client/access-policy-modal.d.mts.map +1 -1
  699. package/dist/modules/user_backend/client/access-policy-modal.mjs +1 -1
  700. package/dist/modules/user_backend/client/access-policy-modal.mjs.map +3 -3
  701. package/dist/modules/user_backend/client/role-modal.d.mts +6 -6
  702. package/dist/modules/user_backend/client/role-modal.d.mts.map +1 -1
  703. package/dist/modules/user_backend/client/role-modal.mjs +1 -1
  704. package/dist/modules/user_backend/client/role-modal.mjs.map +3 -3
  705. package/dist/modules/user_backend/client/user-modal.d.mts +9 -9
  706. package/dist/modules/user_backend/client/user-modal.d.mts.map +1 -1
  707. package/dist/modules/user_backend/client/user-modal.mjs +1 -1
  708. package/dist/modules/user_backend/client/user-modal.mjs.map +3 -3
  709. package/dist/modules/user_backend/messages.d.ts +0 -6
  710. package/dist/modules/user_backend/messages.d.ts.map +1 -1
  711. package/dist/modules/user_backend/messages.js +0 -6
  712. package/dist/modules/user_backend/messages.js.map +1 -1
  713. package/dist/modules/user_backend/screens/access-policies-list.d.ts.map +1 -1
  714. package/dist/modules/user_backend/screens/access-policies-list.js +1 -1
  715. package/dist/modules/user_backend/screens/access-policies-list.js.map +1 -1
  716. package/dist/modules/user_backend/screens/profile-form.d.ts.map +1 -1
  717. package/dist/modules/user_backend/screens/profile-form.js +1 -1
  718. package/dist/modules/user_backend/screens/profile-form.js.map +1 -1
  719. package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -1
  720. package/dist/modules/user_backend/screens/roles-list.js +1 -1
  721. package/dist/modules/user_backend/screens/roles-list.js.map +1 -1
  722. package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -1
  723. package/dist/modules/user_backend/screens/users-list.js +1 -1
  724. package/dist/modules/user_backend/screens/users-list.js.map +1 -1
  725. package/dist/modules/website_backend/screens/page-frame.d.ts +2 -3
  726. package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -1
  727. package/dist/modules/website_backend/screens/page-frame.js +2 -2
  728. package/dist/modules/website_backend/screens/page-frame.js.map +1 -1
  729. package/dist/permission-catalogue.d.ts.map +1 -1
  730. package/dist/permission-catalogue.js +2 -0
  731. package/dist/permission-catalogue.js.map +1 -1
  732. package/dist/role-templates.d.ts.map +1 -1
  733. package/dist/role-templates.js +23 -3
  734. package/dist/role-templates.js.map +1 -1
  735. package/dist/scaffold/index.js +1 -1
  736. package/dist/ui/client/live-doc-shell.d.ts +27 -1
  737. package/dist/ui/client/live-doc-shell.d.ts.map +1 -1
  738. package/dist/ui/client/live-doc-shell.js +43 -5
  739. package/dist/ui/client/live-doc-shell.js.map +1 -1
  740. package/dist/ui/client/live-doc-tail.d.ts +4 -0
  741. package/dist/ui/client/live-doc-tail.d.ts.map +1 -0
  742. package/dist/ui/client/live-doc-tail.js +21 -0
  743. package/dist/ui/client/live-doc-tail.js.map +1 -0
  744. package/dist/ui/client/live-doc-view.d.ts +18 -0
  745. package/dist/ui/client/live-doc-view.d.ts.map +1 -1
  746. package/dist/ui/client/live-doc-view.js +183 -4
  747. package/dist/ui/client/live-doc-view.js.map +1 -1
  748. package/dist/ui/client/live-doc.css +81 -0
  749. package/dist/ui/client/live-doc.d.mts +6 -3
  750. package/dist/ui/client/live-doc.d.mts.map +1 -1
  751. package/dist/ui/client/live-doc.mjs +14 -10
  752. package/dist/ui/client/live-doc.mjs.map +4 -4
  753. package/dist/ui/client/record-modal-form.d.ts +10 -0
  754. package/dist/ui/client/record-modal-form.d.ts.map +1 -1
  755. package/dist/ui/client/record-modal-form.js +3 -1
  756. package/dist/ui/client/record-modal-form.js.map +1 -1
  757. package/dist/ui/client/record-modal.d.ts +9 -1
  758. package/dist/ui/client/record-modal.d.ts.map +1 -1
  759. package/dist/ui/client/record-modal.js +78 -17
  760. package/dist/ui/client/record-modal.js.map +1 -1
  761. package/dist/ui/index.d.ts +2 -2
  762. package/dist/ui/index.d.ts.map +1 -1
  763. package/dist/ui/index.js +2 -2
  764. package/dist/ui/index.js.map +1 -1
  765. package/dist/ui/layout.d.ts +2 -2
  766. package/dist/ui/layout.d.ts.map +1 -1
  767. package/dist/ui/layout.js +3 -3
  768. package/dist/ui/layout.js.map +1 -1
  769. package/dist/ui/record-modal.d.ts +3 -0
  770. package/dist/ui/record-modal.d.ts.map +1 -1
  771. package/dist/ui/record-modal.js +15 -1
  772. package/dist/ui/record-modal.js.map +1 -1
  773. package/package.json +4 -4
  774. package/dist/modules/flow/functions.d.ts +0 -3
  775. package/dist/modules/flow/functions.d.ts.map +0 -1
  776. package/dist/modules/flow/functions.js +0 -1857
  777. package/dist/modules/flow/functions.js.map +0 -1
  778. package/dist/modules/flow/operations.d.ts +0 -414
  779. package/dist/modules/flow/operations.d.ts.map +0 -1
  780. package/dist/modules/flow/operations.js +0 -1671
  781. package/dist/modules/flow/operations.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ // @ts-nocheck Generated by tools/build-backend-client.mjs — do not edit.
2
+ import{each as $a}from"/_ket/view/index.js";import{Fragment as st,jsx as W,jsxs as Ba}from"/_ket/view/jsx-runtime.js";var lt=["action","action-leading","action-label","action-spinner","action-group"],Ka=e=>Ba(st,{children:[e.loading===!0&&W("span",{"data-ui":"action-spinner","aria-hidden":"true"}),e.loading!==!0&&e.leading!==void 0&&W("span",{"data-ui":"action-leading","aria-hidden":"true",children:e.leading}),!e.iconOnly&&W("span",{"data-ui":"action-label",children:e.label})]}),O=e=>W("button",{"data-ui":"action","data-variant":e.variant??"secondary","data-size":e.size??"default",type:e.type??"button",name:e.name??null,value:e.value??null,form:e.form??null,disabled:e.disabled===!0||e.loading===!0,"aria-busy":e.loading===!0?"true":null,"aria-describedby":e.describedBy??null,"aria-expanded":e.expanded===void 0?null:String(e.expanded),"aria-controls":e.controls??null,children:W(Ka,{...e})});var Z=e=>W("div",{"data-ui":"action-group",role:"group","aria-label":e.label??null,children:$a(e.actions,(t,i)=>i,t=>W(st,{children:t}))});import{jsx as Dn,jsxs as An}from"/_ket/view/jsx-runtime.js";var dt=["badge","tag","tag-remove","count-badge","avatar","code","text","media-label","media-label-image","media-label-copy"];import{each as qa}from"/_ket/view/index.js";import{Fragment as Pe,jsx as S,jsxs as Y}from"/_ket/view/jsx-runtime.js";var ct=["notice","notice-mark","notice-copy","notice-title","notice-message","notice-actions","empty","empty-mark","empty-title","empty-message","empty-actions","loading","loading-label"],Na={info:()=>Y(Pe,{children:[S("circle",{cx:"12",cy:"12",r:"10"}),S("path",{d:"M12 16v-4"}),S("path",{d:"M12 8h.01"})]}),positive:()=>Y(Pe,{children:[S("circle",{cx:"12",cy:"12",r:"10"}),S("path",{d:"m9 12 2 2 4-4"})]}),warning:()=>Y(Pe,{children:[S("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),S("path",{d:"M12 9v4"}),S("path",{d:"M12 17h.01"})]}),danger:()=>Y(Pe,{children:[S("circle",{cx:"12",cy:"12",r:"10"}),S("path",{d:"M12 8v4"}),S("path",{d:"M12 16h.01"})]})},V=e=>Y("aside",{"data-ui":"notice","data-pattern":"notice","data-tone":e.tone??"info",role:e.tone==="danger"?"alert":"status",children:[S("span",{"data-ui":"notice-mark","aria-hidden":"true",children:S("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false",children:Na[e.tone??"info"]()})}),Y("div",{"data-ui":"notice-copy",children:[S("p",{"data-ui":"notice-title",children:e.title}),S("p",{"data-ui":"notice-message",children:e.message})]}),e.actions!==void 0&&S("div",{"data-ui":"notice-actions",children:e.actions})]});var oe=e=>Y("div",{"data-ui":"loading",role:"status","aria-live":"polite",children:[S("span",{"data-ui":"loading-label",children:e.label}),S("div",{"data-ui":"skeleton","aria-hidden":"true",children:qa(Array.from({length:Math.max(1,e.lines??3)}),(t,i)=>i,(t,i)=>S("span",{"data-ui":"skeleton-line","data-line":String(i+1)}))})]});import{each as Ne}from"/_ket/view/index.js";import{each as ni}from"/_ket/view/index.js";import{jsx as I,jsxs as fe}from"/_ket/view/jsx-runtime.js";var ut=["modal-layer","modal-backdrop","modal-sheet","modal-head","modal-heading","modal-title-row","modal-title","modal-description","modal-close","modal-body","modal-actions"],j=e=>{let t=e.mode==="client",i=e.mode==="embedded";return fe("div",{"data-ui":"modal-layer","data-mode":e.mode??"overlay","data-route-modal":i||t?null:"true","data-client-modal":t?"true":null,"data-presentation":e.presentation??"sheet","data-unsaved-prompt":e.unsavedPrompt??null,children:[t?I("button",{"data-ui":"modal-backdrop",type:"button","aria-hidden":"true",tabIndex:-1,children:I("span",{children:e.closeLabel})}):I("a",{"data-ui":"modal-backdrop",href:e.closeHref??"#","aria-label":e.closeLabel,children:I("span",{children:e.closeLabel})}),fe("section",{id:e.id,"data-ui":"modal-sheet","data-size":e.size??"default","data-height":e.height==="fixed"?"fixed":null,style:e.height==="fixed"&&e.fixedHeight?`--kv-modal-fixed-height: ${e.fixedHeight}`:"",...e.dialogSemantics==="parent"?{}:{role:"dialog","aria-modal":i?"false":"true"},"aria-labelledby":e.dialogSemantics==="parent"?null:`${e.id}-title`,"aria-describedby":e.dialogSemantics!=="parent"&&e.description?`${e.id}-description`:null,tabindex:i?null:"-1",children:[fe("header",{"data-ui":"modal-head",children:[fe("div",{"data-ui":"modal-heading",children:[fe("div",{"data-ui":"modal-title-row",children:[I("h2",{"data-ui":"modal-title",id:`${e.id}-title`,children:e.title}),e.status!==void 0&&e.status]}),!!e.description&&I("p",{"data-ui":"modal-description",id:`${e.id}-description`,children:e.description})]}),t?I("button",{"data-ui":"modal-close",type:"button","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"}):I("a",{"data-ui":"modal-close",href:e.closeHref??"#","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"})]}),I("div",{"data-ui":"modal-body",children:e.body}),e.actions!==void 0&&I("footer",{"data-ui":"modal-actions",children:e.actions})]})]})};import{Fragment as Vn,jsx as Xn,jsxs as zn}from"/_ket/view/jsx-runtime.js";import{Fragment as jn,jsx as Zn,jsxs as Yn}from"/_ket/view/jsx-runtime.js";var gt=["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 oi,jsx as ft,jsxs as Ua}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"];var qe=e=>Ua("details",{"data-ui":"disclosure",open:e.open===!0?!0:void 0,children:[ft("summary",{"data-ui":"disclosure-summary",children:e.summary}),ft("div",{"data-ui":"disclosure-body",children:e.body})]});import{each as _a}from"/_ket/view/index.js";import{Fragment as Wa,jsx as be}from"/_ket/view/jsx-runtime.js";var Le=(e,t)=>e.control!==void 0?be(Wa,{children:e.control}):e.type==="textarea"?be("textarea",{"data-ui":"field-control","data-appearance":e.appearance==="embedded"?"embedded":null,id:e.id,name:e.name,placeholder:e.placeholder??null,required:e.required===!0,disabled:e.disabled===!0,readonly:e.readOnly===!0,"aria-invalid":e.error?"true":null,"aria-describedby":t,children:String(e.value??"")}):e.type==="select"?be("select",{"data-ui":"field-control","data-appearance":e.appearance==="embedded"?"embedded":null,id:e.id,name:e.name,required:e.required===!0,disabled:e.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":t,children:_a(e.options??[],i=>i.value,i=>be("option",{value:i.value,selected:String(e.value??"")===i.value,disabled:i.disabled===!0,children:i.label}))}):be("input",{"data-ui":"field-control","data-appearance":e.appearance==="embedded"?"embedded":null,id:e.id,type:e.type==="decimal"?"number":e.type??"text",name:e.name,value:e.type==="checkbox"?"1":String(e.value??""),checked:e.type==="checkbox"&&(e.value===!0||e.value==="1"),placeholder:e.placeholder??null,required:e.required===!0,disabled:e.disabled===!0,readonly:e.readOnly===!0,min:e.min,max:e.max,"aria-invalid":e.error?"true":null,"aria-describedby":t,autocomplete:e.autocomplete??"off",step:e.type==="decimal"?e.step??"any":e.step??null});import{jsx as x,jsxs as J}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"],ht=e=>!!e.error||(e.fields?.some(ht)??!1),Q=e=>{let t=e.help?`${e.id}-help`:null,i=e.error?`${e.id}-error`:null,u=[t,i].filter(Boolean).join(" ")||null,g=J("span",{"data-ui":"field-label",children:[e.label,e.required&&x("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]});return e.fields?J("div",{"data-ui":"field","data-kind":"group","data-span":"full","data-invalid":String(!!e.error),children:[x(qe,{summary:e.label,open:e.open||ht(e),body:x("div",{"data-ui":"form-grid",children:Ne(e.fields.map(m=>({...m,disabled:e.disabled||m.disabled,readOnly:e.readOnly||m.readOnly})),m=>m.id,m=>x(Q,{...m}))})}),!!e.help&&x("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&x("small",{"data-ui":"field-error",id:i??void 0,children:e.error})]}):e.type==="checkbox-group"?J("div",{"data-ui":"field","data-kind":"checkbox-group","data-span":e.span??"half","data-invalid":String(!!e.error),children:[J("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&x("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),x("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"group","aria-labelledby":`${e.id}-label`,children:Ne(e.options??[],m=>m.name??m.value,m=>J("label",{"data-ui":"field-option",children:[x("input",{"data-ui":"field-option-input",type:"checkbox",name:m.name??`${e.name}[]`,value:m.value,checked:m.checked===!0,disabled:e.disabled===!0||m.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":u,autocomplete:"off"}),x("span",{children:m.label})]}))}),!!e.help&&x("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&x("small",{"data-ui":"field-error",id:i??void 0,children:e.error})]}):e.type==="radio"?J("div",{"data-ui":"field","data-kind":"radio","data-span":e.span??"half","data-invalid":String(!!e.error),children:[J("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&x("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),x("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"radiogroup","aria-labelledby":`${e.id}-label`,children:Ne(e.options??[],m=>m.value,m=>J("label",{"data-ui":"field-option",children:[x("input",{"data-ui":"field-option-input",type:"radio",name:e.name,value:m.value,checked:String(e.value??"")===m.value,required:e.required===!0,disabled:e.disabled===!0||m.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":u,autocomplete:"off"}),x("span",{children:m.label})]}))}),!!e.help&&x("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&x("small",{"data-ui":"field-error",id:i??void 0,children:e.error})]}):J("label",{"data-ui":"field","data-kind":e.type??"text","data-label-hidden":e.labelHidden?"true":null,"data-selection-hidden":e.selectionHidden?"true":null,"data-span":e.span??"half","data-invalid":String(!!e.error),for:e.id,children:[e.type==="checkbox"&&Le(e,u),g,e.type!=="checkbox"&&Le(e,u),!!e.help&&x("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&x("small",{"data-ui":"field-error",id:i??void 0,children:e.error})]})};import{each as Za}from"/_ket/view/index.js";import{jsx as le,jsxs as Xe}from"/_ket/view/jsx-runtime.js";var yt=["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"];var vt=e=>Xe("a",{"data-ui":"tab","data-active":e.active===!0?"true":null,id:e.elementId,href:e.href,"aria-current":e.active===!0?"page":null,"aria-controls":e.controls,children:[e.label,e.count!==void 0&&le("span",{"data-ui":"tab-count",children:String(e.count)})]}),xt=(e,t)=>`${e}-${t.replace(/[^a-zA-Z0-9_-]+/gu,"-")}-tab`,St=e=>Xe("nav",{"data-ui":"tabs","data-pattern":"tabs","aria-label":e.label,children:[Za(e.items,t=>t.id,t=>le(vt,{...t,elementId:e.id?xt(e.id,t.id):void 0,controls:e.panelId})),e.extension]}),Tt=e=>le("section",{"data-ui":"tab-panel",id:e.id,"aria-labelledby":e.labelledBy,tabindex:"-1",children:e.body}),Je=e=>{let t=`${e.id}-tabs`,i=`${e.id}-panel`,u=e.items.find(g=>g.active===!0);return Xe("div",{"data-ui":"tabbed-view",children:[e.context!==void 0&&e.context!==""?le("div",{"data-ui":"tabbed-view-context",children:e.context}):"",le(St,{id:t,label:e.label,items:e.items,extension:e.extension,panelId:i}),le(Tt,{id:i,labelledBy:u?xt(t,u.id):void 0,body:e.body})]})};import{jsx as Ti,jsxs as ki}from"/_ket/view/jsx-runtime.js";var kt=["progress","progress-label","progress-value","progress-track","progress-bar"];import{each as Ci}from"/_ket/view/index.js";import{Fragment as Ei,jsx as Li,jsxs as Mi}from"/_ket/view/jsx-runtime.js";var wt=["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 Rt=["popover","popover-trigger","popover-panel","popover-close"];import{jsx as $i,jsxs as Ki}from"/_ket/view/jsx-runtime.js";var Ct=["tooltip","tooltip-trigger","tooltip-content"];import{jsx as Xi}from"/_ket/view/jsx-runtime.js";var Pt=["dialog","confirm-dialog-message"];import{each as Gi}from"/_ket/view/index.js";import{jsx as _i,jsxs as Wi}from"/_ket/view/jsx-runtime.js";var Lt=["toast-region","toast","toast-copy","toast-title","toast-message","toast-actions"];import{jsx as ji}from"/_ket/view/jsx-runtime.js";var Mt=["spinner","visually-hidden"];import{each as tr}from"/_ket/view/index.js";import{jsx as nr}from"/_ket/view/jsx-runtime.js";var Et=["skeleton","skeleton-line"];import{each as or,effect as lr,signal as sr}from"/_ket/view/index.js";import{jsx as ur,jsxs as cr}from"/_ket/view/jsx-runtime.js";var Ft=["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 fr,signal as br}from"/_ket/view/index.js";import{jsx as hr,jsxs as yr}from"/_ket/view/jsx-runtime.js";var Ht=["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 Tr,signal as kr}from"/_ket/view/index.js";import{Fragment as Pr,jsx as Cr,jsxs as Rr}from"/_ket/view/jsx-runtime.js";var Ot=["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 Or,effect as Dr,signal as Ar}from"/_ket/view/index.js";import{jsx as Er}from"/_ket/view/jsx-runtime.js";var Dt=["formatted-date","formatted-number","formatted-money"];import{Fragment as qr,jsx as Nr,jsxs as Jr}from"/_ket/view/jsx-runtime.js";var $t=["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 no=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","summary",'[tabindex]:not([tabindex="-1"])'].join(",");var an=['[data-ui="timeframe-menu"]','[data-ui="view-settings"]'],io=an.map(e=>`${e}[open]`).join(", ");import{jsx as lo,jsxs as so}from"/_ket/view/jsx-runtime.js";import{jsx as fo,jsxs as bo}from"/_ket/view/jsx-runtime.js";var Kt=["switch-control","switch-track"];import{each as yo}from"/_ket/view/index.js";import{Fragment as ko,jsx as So,jsxs as To}from"/_ket/view/jsx-runtime.js";var Bt=["combobox","combobox-input-row","combobox-toggle","combobox-listbox","combobox-option","combobox-empty","tag-picker"];import{Fragment as Oo,jsx as Fo,jsxs as Ho}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 $o,jsxs as Ko}from"/_ket/view/jsx-runtime.js";var Nt=["file-upload","drop-zone","upload-status"];import{jsx as Jo}from"/_ket/view/jsx-runtime.js";var Jt=["relation-picker"];import{each as Vo}from"/_ket/view/index.js";import{jsx as Wo,jsxs as Zo}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 el,jsxs as tl}from"/_ket/view/jsx-runtime.js";var zt=["inline-edit","inline-edit-value","inline-edit-form","inline-edit-actions"];import{each as fl}from"/_ket/view/index.js";import{each as ol}from"/_ket/view/index.js";import{Fragment as ul,jsx as dl,jsxs as cl}from"/_ket/view/jsx-runtime.js";var Vt=["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 yl,jsxs as vl}from"/_ket/view/jsx-runtime.js";var Gt=["resource-list","resource-list-item","resource-list-select","resource-list-link"];import{each as Tl}from"/_ket/view/index.js";import{jsx as wl,jsxs as Rl}from"/_ket/view/jsx-runtime.js";var Ut=["data-grid-scroll","data-grid","data-grid-cap","data-grid-cell"];import{each as Ll}from"/_ket/view/index.js";import{jsx as El,jsxs as Fl}from"/_ket/view/jsx-runtime.js";var _t=["tree","tree-item","tree-link","tree-grid","tree-grid-row"];import{each as Dl}from"/_ket/view/index.js";import{jsx as Il,jsxs as $l}from"/_ket/view/jsx-runtime.js";var Wt=["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 ql}from"/_ket/view/index.js";import{jsx as Jl,jsxs as Xl}from"/_ket/view/jsx-runtime.js";var Zt=["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 Gl}from"/_ket/view/index.js";import{jsx as _l,jsxs as Wl}from"/_ket/view/jsx-runtime.js";var Yt=["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 sn}from"/_ket/view/index.js";import{jsx as Ee,jsxs as dn}from"/_ket/view/jsx-runtime.js";var jt=["description-list","key-value","key-value-label","key-value-value","person","person-body","avatar-group","status"],Qt=e=>dn("div",{"data-ui":"key-value",children:[Ee("dt",{"data-ui":"key-value-label",children:e.label}),Ee("dd",{"data-ui":"key-value-value",children:e.value??e.emptyLabel??"\u2014"})]}),Fe=e=>Ee("dl",{"data-ui":"description-list","aria-label":e.label,"data-columns":String(e.columns??2),"data-layout":e.layout==="strip"?"strip":null,children:sn(e.items,t=>t.id,t=>Ee(Qt,{...t}))});import{each as as}from"/_ket/view/index.js";import{jsx as ls,jsxs as ss}from"/_ket/view/jsx-runtime.js";var ta=["record-summary","record-summary-main","record-actions","record-rail"];import{each as us}from"/_ket/view/index.js";import{jsx as bs,jsxs as ps}from"/_ket/view/jsx-runtime.js";var aa=["activity-timeline","activity-item","activity-marker","audit-log","audit-item"];import{each as vs}from"/_ket/view/index.js";import{jsx as Ts,jsxs as ks}from"/_ket/view/jsx-runtime.js";var na=["attachments","attachment","media-gallery","media-item"];import{each as Cs}from"/_ket/view/index.js";import{Fragment as Es,jsx as Ls,jsxs as Ms}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 As}from"/_ket/view/index.js";import{Fragment as Ns,jsx as Bs,jsxs as qs}from"/_ket/view/jsx-runtime.js";var ra=["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 Ws,jsxs as Ys}from"/_ket/view/jsx-runtime.js";var oa=["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-tools","list-page-toolbar","list-page-controls","list-page-status","list-page-body","list-page-footer"];import{jsx as td,jsxs as ad}from"/_ket/view/jsx-runtime.js";var la=["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 sa=["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 ud,jsxs as md}from"/_ket/view/jsx-runtime.js";var da=["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 ca=["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 Sd}from"/_ket/view/index.js";import{jsx as kd,jsxs as wd}from"/_ket/view/jsx-runtime.js";var ua=["pipeline","pipeline-step","pipeline-arrow","pipeline-step-label","pipeline-step-value","pipeline-step-node"];import{each as Md}from"/_ket/view/index.js";import{jsx as Od,jsxs as Dd}from"/_ket/view/jsx-runtime.js";var ma=["record-form","form-errors","form-grid","form-actions"];import{each as Jd}from"/_ket/view/index.js";import{jsx as Gd,jsxs as Ud}from"/_ket/view/jsx-runtime.js";var ga=["reorder-list","reorder-list-value","reorder-list-rows","reorder-list-row","reorder-list-content","reorder-list-controls"];var fa={actions:lt,feedback:ct,fields:pt,status:dt,navigation:yt,progress:kt,menu:wt,reorderList:ga,popover:Rt,tooltip:Ct,dialog:Pt,toast:Lt,spinner:Mt,skeleton:Et,lightbox:Ht,relationSelect:Ft,searchFilter:Ot,ketTable:$t,scalarFields:Kt,combobox:Bt,dateTime:qt,upload:Nt,relationPicker:Jt,listControls:Xt,inlineEdit:zt,resourceList:Gt,dataGrid:Ut,tree:_t,matrix:Wt,barChart:Zt,timeframe:Yt,recordDisplay:jt,formattedValues:Dt,recordComposition:ta,activity:aa,media:na,layouts:bt,shell:gt,appNavigation:ia,table:ra,listChrome:Vt,listPage:oa,formPage:sa,recordPage:la,dashboardPage:da,boardPage:ca,modal:ut,pipeline:ua,form:ma},fn=[...new Set(Object.values(fa).flat())].sort(),bn=Object.freeze(Object.fromEntries(Object.entries(fa).map(([e,t])=>[e,[...t]])));import{signal as C}from"/_ket/view/index.js";import{jsx as hn}from"/_ket/view/jsx-runtime.js";var He="record";var he="recordDialog";var pn=/^[a-z][a-z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,ba=e=>pn.test(e),ye=(e,t)=>{if(!ba(t.kind))throw new TypeError(`invalid record kind "${t.kind}"`);let i=new URL(String(e),"http://ket.local");return i.searchParams.set(He,`${t.kind}:${t.id}`),t.tab?i.searchParams.set("tab",t.tab):i.searchParams.delete("tab"),t.dialog?i.searchParams.set(he,t.dialog):i.searchParams.delete(he),`${i.pathname}${i.search}`};var pa=e=>{let t=new URL(String(e),"http://ket.local");return t.searchParams.delete(He),t.searchParams.delete("tab"),t.searchParams.delete(he),`${t.pathname}${t.search}`},se=e=>{let t=new URL(String(e),"http://ket.local"),i=t.searchParams.get(He)??"",u=i.indexOf(":");if(u<=0||u===i.length-1)return null;let g=i.slice(0,u);return ba(g)?{kind:g,id:i.slice(u+1),tab:t.searchParams.get("tab"),...t.searchParams.get(he)?{dialog:t.searchParams.get(he)}:{}}:null},Ue=e=>hn("span",{"data-ui":"record-modal-host","data-record-kind":e,hidden:!0});import{jsx as Oe,jsxs as yn}from"/_ket/view/jsx-runtime.js";var _e=e=>yn("form",{"data-ui":"record-form",method:"post",action:"","data-record-kind":e.kind,"data-record-dropzone":e.dropzone?"":null,id:e.id,"data-record-dirty":e.dirty===!0?"true":null,children:[e.command?Oe("input",{type:"hidden",name:ve,value:e.command,autocomplete:"off"}):"",Object.entries(e.hidden??{}).map(([t,i])=>Oe("input",{type:"hidden",name:t,value:i,autocomplete:"off"})),e.fields.length?Oe("div",{"data-ui":"form-grid",children:e.fields.map(t=>Q(t))}):null,e.body,e.actions?.length?Oe("div",{"data-ui":"form-actions",children:Z({actions:e.actions})}):""]});import{Fragment as xe,jsx as of,jsxs as Se}from"/_ket/view/jsx-runtime.js";var ya=e=>{let t=e??{};return(Array.isArray(t.errors)?t.errors:Array.isArray(t.issues)?t.issues:[]).map(u=>{let g=u??{},m=Array.isArray(g.path)?g.path.join("."):null;return{field:typeof g.field=="string"?g.field:m,code:String(g.code??"invalid"),message:typeof g.message=="string"?g.message:null,params:g.params&&typeof g.params=="object"?g.params:{}}})},Ca=async(e,t,i={})=>{let u=new URL(e,"https://record.invalid");if(u.origin!=="https://record.invalid"||!e.startsWith("/")||e.startsWith("//"))throw new Error("Record commands require a same-origin route");let g=await fetch(u.pathname+u.search,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",...i.idempotencyKey?{"idempotency-key":i.idempotencyKey}:{}},body:JSON.stringify(t),signal:i.signal}),m=await g.json().catch(()=>({}));if(!g.ok||m.ok===!1)return{ok:!1,issues:ya(m.error??m),message:g.status>=500?null:m.error?.message??m.message??null,status:g.status};let k=m.value;return k&&typeof k=="object"&&k.ok===!1?{ok:!1,issues:ya(k),message:null,status:g.status}:{ok:!0,value:m.value}},va=(e,t,i={})=>Ca(`/_ket/fn/${encodeURIComponent(e)}`,t,i),vn=async(e,t)=>{let i=new URL(e,location.href);if(i.origin!==location.origin)throw new Error("Record context must stay same-origin");let u=await fetch(i.href,{credentials:"same-origin",signal:t,headers:{accept:"application/json"}});return u.ok?{ok:!0,value:await u.json()}:{ok:!1,issues:[],message:null,status:u.status}},xn=30,Sn=Object.freeze({"recordModal.close":"Close","recordModal.loading":"Loading\u2026","recordModal.loadFailed":"The record could not be read.","recordModal.notFound":"The record is gone or you cannot see it.","recordModal.retry":"Retry","recordModal.errorTitle":"Not saved","recordModal.saveFailed":"That did not work. Try again.","recordModal.savedTitle":"Saved","recordModal.saved":"The change is in.","recordModal.unsaved":"Discard what you typed?","recordModal.uploadFailed":"The file could not be uploaded. Try again."}),Ae=(e,t)=>t.messages?.[e]??t.previous?.[e]??t.labels?.[e]??Sn[e]??(/^E_[A-Z_]+$/u.test(e)?Ae("recordModal.saveFailed",t):e),Tn=(e,t)=>{let i=Ae(e,t);return i===e?Ae("recordModal.saveFailed",t):i},ve="__command",xa="data-record-dialog",Sa=(e,t={})=>e.replace(/\{([a-zA-Z0-9_]+)\}/gu,(i,u)=>u in t?String(t[u]??""):i),Pa=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].join(", "),Ta=e=>[...e.querySelectorAll(Pa)].filter(t=>!t.hidden&&t.getAttribute("aria-hidden")!=="true"&&!t.matches('[data-ui="modal-backdrop"]'));var kn=e=>{let t=[],i=e;for(;i&&i!==document.body;){let u=i.parentElement;if(!u)break;for(let g of u.children)g instanceof HTMLElement&&g!==i&&!g.matches("script, style, template")&&(t.push({element:g,inert:g.inert}),g.inert=!0);i=u}return()=>{for(let{element:u,inert:g}of t)u.inert=g}},ka=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,wn=e=>Object.entries(e.values).some(([t,i])=>i!==e.initialValues[t])||Object.entries(e.checks).some(([t,i])=>i!==e.initialChecks[t]),wa=(e,t)=>{let i=u=>Object.fromEntries(Object.entries(u).filter(([g])=>!t.includes(g)));return{values:i(e.values),checks:i(e.checks),initialValues:i(e.initialValues),initialChecks:i(e.initialChecks)}},P=()=>({values:{},checks:{},initialValues:{},initialChecks:{}}),Ra=(e,t)=>`${e}\0${t}`,De="__all:",We=e=>e.after??"close",Rn=400,Cn=(e,t=Rn)=>{let i,u=()=>{clearTimeout(i),i=void 0};return{set:g=>{if(u(),!g){e(!1);return}i=setTimeout(()=>e(!0),t)},stop:u}},Pn='a, button, input, select, textarea, label, summary, details, [data-ui="select-cell"]',Ln=e=>{let t=e?.closest("a[href]");return t?t.target&&t.target!=="_self"?null:t.href:e?.closest(Pn)?null:e?.closest("[data-row-href]")?.getAttribute("data-row-href")??null},La=e=>()=>{let t=C(null),i=C("idle"),u=C(null),g=C(null),m=C([]),k=C(P()),w=C(P()),Ye=C(!1),je=C(!1),Qe=Cn(r=>je.set(r)),ee=C(!1),et=r=>{Ye.set(r),Qe.set(r),r&&ee.set(!1)},T=C(null),de=C(0),ce=C({}),E=C({}),$=C(null),D=new Map,Fa=(r,s)=>{for(D.delete(r),D.set(r,s);D.size>xn;)D.delete(D.keys().next().value)},R=null,Te=null,ke=!1,Ie=null,A=null,te=null,ue=null,Ha=()=>typeof e.labels=="function"?e.labels():e.labels??{},tt=()=>({messages:u()?.messages,previous:ue,labels:Ha()}),K=(r,s)=>Sa(Ae(r,tt()),s),at=r=>r.message??Sa(Tn(r.code,tt()),r.params),nt=r=>[...e.tabs??[],...e.extensionTabs?.(r)??[]].filter(s=>s.visible?.(r)??!0),we=(r,s,d="record")=>{let l=()=>d==="dialog"?w():k(),o={kind:e.kind,id:r.id,creating:r.id==="new",tab:r.tab,data:s,t:K,fieldError:f=>{let a=m().find(n=>n.field===f);return a?at(a):null},draft:(f,a="")=>{let n=l();return n.initialValues[f]??=a,n.values[f]??a},recordDraft:(f,a="")=>k().values[f]??a,draftChecked:(f,a="1",n=!1)=>{let c=l(),p=Ra(f,a);return c.initialChecks[p]??=n,c.checks[p]??n},outcome:f=>{let a=$();return a?.command===f?a.value:null},busy:je(),dialog:T(),href:f=>ye(location.href,{kind:e.kind,id:r.id,tab:f}),state:(f,a="")=>(d==="dialog"?E()[f]:void 0)??ce()[f]??a},y=nt(o);return y.length&&!y.some(f=>f.id===r.tab)&&(o.tab=y[0].id),o},me=null,G=async(r,s=!1)=>{Te?.abort();let d=new AbortController;Te=d;let l=e.cache===!1?void 0:D.get(r);l&&(ue=l.messages??ue,u.set(l),i.set("ready"),s=!0),s||i.set("loading"),g.set(null);try{let o=r==="new",y="route"in e.context?await vn(e.context.route(r,o),d.signal):await va(e.context.fn,e.context.input?e.context.input(r,o):o?{}:{id:r},{signal:d.signal});if(d.signal.aborted)return;if(!y.ok||!y.value){g.set(y.ok?"recordModal.notFound":y.message??"recordModal.loadFailed"),i.set("error");return}ue=y.value.messages??ue,e.cache!==!1&&Fa(r,y.value),u.set(y.value),i.set("ready"),me&&e.dialogs?.[me]&&(T.set({name:me,params:{}}),re()),me=null}catch(o){if(d.signal.aborted||o?.name==="AbortError")return;g.set("recordModal.loadFailed"),i.set("error")}},Re=()=>R?[...R.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]')]:[],ae=()=>Re()[0]??null,$e=()=>Re().at(-1)??null,ne=0,ie=()=>{if(e.fixedHeight||i()!=="ready")return;let r=ae()?.querySelector('[data-ui="modal-sheet"][data-height="fixed"]');if(!r)return;if(window.matchMedia("(max-width: 47.9375rem)").matches){r.style.setProperty("height","100dvh","important"),r.style.removeProperty("min-height");return}let s=r.querySelector('[data-ui="tabbed-view"]');if(!s)return;let d=s.querySelector('[data-ui="tab-panel"]'),l=d?.scrollTop??0;r.style.setProperty("height","auto","important"),r.style.setProperty("min-height","0"),s.style.setProperty("height","auto"),ne=Math.max(ne,Math.ceil(r.getBoundingClientRect().height)),s.style.removeProperty("height");let o=getComputedStyle(r).maxHeight;r.style.setProperty("min-height",o==="none"?`${ne}px`:`min(${ne}px, ${o})`),d&&(d.scrollTop=l)},U=(r,s)=>{if(!r)return;let d=s==="dialog"?w():k(),l={values:{...d.values},checks:{...d.checks},initialValues:{...d.initialValues},initialChecks:{...d.initialChecks}};for(let o of r.querySelectorAll("input[name], select[name], textarea[name]"))if(!(o.disabled||o.name===ve)){if(o instanceof HTMLInputElement){if(o.type==="file"||o.type==="hidden")continue;if(o.type==="checkbox"||o.type==="radio"){let y=Ra(o.name,o.value);l.initialChecks[y]??=o.defaultChecked,l.checks[y]=o.checked,o.type==="checkbox"?l.values[o.name]=o.checked?o.value:"":o.checked&&(l.values[o.name]=o.value),l.initialValues[o.name]=l.values[o.name]??"";continue}}l.initialValues[o.name]??=o instanceof HTMLSelectElement?[...o.options].find(y=>y.defaultSelected)?.value??o.options[0]?.value??"":o.defaultValue,l.values[o.name]=o.value}s==="dialog"?w.set(l):k.set(l)},Ce=()=>{let r=Re();U(r[0]??null,"record"),r.length>1&&U(r.at(-1)??null,"dialog")},it=r=>{if(!r)return!0;let s=T()&&r===$e()?"dialog":"record";U(r,s);let d=s==="dialog"?w():k(),l=[...r.querySelectorAll('input[type="file"]')].some(o=>!o.disabled&&!!o.files?.length);return!wn(d)&&!l?!0:globalThis.confirm(K("recordModal.unsaved"))},re=r=>{requestAnimationFrame(()=>{let s=Re(),d=s[0],l=s.at(-1);if(!l)return;d&&(d.inert=s.length>1);let o=r?.();if(o?.isConnected&&l.contains(o)){o.focus();return}if(l.contains(document.activeElement))return;let y=l.querySelector('[data-ui="modal-sheet"]');(Ta(l).find(a=>!a.matches('[data-ui="modal-close"]'))??y)?.focus()})},X=(r,s,d,l,o)=>{let y=t(),f=y?.id===r,a=s??(f?y.tab:"");f||(ne=0,me=o??null,Ie=document.activeElement instanceof HTMLElement?document.activeElement:null,m.set([]),ee.set(!1),k.set(P()),w.set(P()),E.set({}),ce.set({}),$.set(null),T.set(null),A=null,u.set(null),G(r)),f&&o&&e.dialogs?.[o]&&(Ce(),w.set(P()),E.set({}),T.set({name:o,params:{}})),t.set({id:r,tab:a});let n=ye(location.href,{kind:e.kind,id:r,tab:a||null,dialog:o});d==="push"?(history.replaceState({...history.state??{},__ketScroll:[window.scrollX,window.scrollY]},"",location.href),history.pushState({...history.state??{},__ketRecordModal:e.kind},"",n),ke=!0):d==="replace"&&history.replaceState(history.state??{},"",n),R&&!te&&(te=kn(R)),re(l)},ge=r=>{Te?.abort(),t.set(null),ne=0,T.set(null),m.set([]),ee.set(!1),k.set(P()),w.set(P()),E.set({}),ce.set({}),$.set(null),i.set("idle"),u.set(null),te?.(),te=null,r==="history"&&ke?(ke=!1,history.back()):r!=="none"&&(ke=!1,history.replaceState(history.state??{},"",pa(location.href)));let s=Ie;Ie=null,A=null,s?.isConnected&&requestAnimationFrame(()=>s.focus())},rt=()=>{if(T()){if(!it($e()))return;let r=A;A=null,T.set(null);let s=t();s&&history.replaceState(history.state??{},"",ye(location.href,{kind:e.kind,id:s.id,tab:s.tab})),w.set(P()),E.set({}),m.set([]),$.set(null),re(()=>r?.isConnected?r:null);return}it(ae())&&ge("history")},Oa=async(r,s,d)=>{let l=e.commands?.[r],o=t(),y=u()?.data;if(!l||!o||y===void 0||Ye())return;let f=new FormData(s,d instanceof HTMLButtonElement?d:null),a=s.closest('[data-ui="modal-layer"][data-client-modal="true"]'),n=T()&&a===$e()?"dialog":"record";U(a,n);let c=we(o,y,n);if(l.confirm){let p=l.confirm(c);if(p&&!globalThis.confirm(p))return}et(!0),m.set([]);try{let p={};for(let[b,H]of Object.entries(l.upload??{})){let L=f.get(b);if(!(L instanceof File)||L.size===0)continue;let q=new FormData;for(let[Ke,Ia]of Object.entries(H(f,c)))q.append(Ke,Ia);q.append("file",L,L.name);let N=await fetch("/files",{method:"POST",credentials:"same-origin",body:q}),M=await N.json().catch(()=>null);if(!N.ok||!M?.id){m.set([{field:null,code:"recordModal.uploadFailed",message:typeof M?.message=="string"?M.message:null,params:{}}]);return}p[b]={id:String(M.id),name:typeof M.name=="string"?M.name:null}}let v=(b,H)=>va(b,H,{idempotencyKey:ka()}),h=l.route?await Ca(l.route,l.input(f,c,p),{idempotencyKey:ka()}):await v(l.fn,l.input(f,c,p));for(let b of h.ok?l.also??[]:[])if(!(b.when&&!b.when(c))&&(h=await v(b.fn,b.input(f,c,p)),!h.ok))break;if(!h.ok){$.set(null),m.set(h.issues.length?h.issues.map(b=>({...b,field:b.field&&l.issueField?l.issueField(b.field,f,c):b.field})):[{field:null,code:h.message??"recordModal.saveFailed",message:h.message,params:{}}]);return}if(l.preview){$.set({command:r,value:h.value}),de.set(de()+1);return}n==="dialog"?(w.set(P()),E.set({})):k.set(P()),l.clearRecordDrafts?.length&&k.set(wa(k(),l.clearRecordDrafts)),$.set(We(l)==="stay"?{command:r,value:h.value}:null),s.reset();let B=h.value,z=We(l)==="open"?l.created?.(h.value)??(B&&typeof B=="object"&&B.id!=null?String(B.id):null):null;D.delete(o.id),z&&D.delete(z);let _=()=>{document.dispatchEvent(new CustomEvent("ket:records-changed",{detail:{kind:e.kind,ids:[z??o.id]}}))};if(l.navigate){let b=new URL(l.navigate(h.value,c),location.href);if(b.origin!==location.origin)throw new Error("Record navigation must stay same-origin");ge("none"),location.assign(b.href);return}let F=We(l);if(F!=="close"&&ee.set(!0),F==="open"){T.set(null),w.set(P()),E.set({}),z?X(z,l.openTab??null,"replace"):ge("history"),_();return}if(_(),F==="close")ge("history");else if(F==="reload"){let b=A;A=null,T.set(null),w.set(P()),E.set({}),history.replaceState(history.state??{},"",ye(location.href,{kind:e.kind,id:o.id,tab:o.tab})),await G(o.id),re(()=>b?.isConnected?b:null)}else if(F==="refresh")await G(o.id,!0);else if(F==="stay")de.set(de()+1);else if("tab"in F)A=null,T.set(null),w.set(P()),E.set({}),X(o.id,F.tab,"replace"),await G(o.id);else{let b=F.dialog?null:A;A=F.dialog&&d instanceof HTMLElement?d:null,T.set(F.dialog?{name:F.dialog,params:{}}:null),w.set(P()),E.set({}),await G(o.id,!0),re(()=>b?.isConnected?b:null)}}catch{m.set([{field:null,code:"recordModal.saveFailed",message:null,params:{}}])}finally{et(!1)}},ot=r=>{let s=m().filter(o=>!o.field),d=m().filter(o=>o.field&&!R?.querySelector(`[name="${CSS.escape(o.field)}"]`)),l=[...s,...d];return l.length?V({title:r.t("recordModal.errorTitle"),message:l.map(at).join(" \xB7 "),tone:"danger"}):ee()?V({title:r.t("recordModal.savedTitle"),message:r.t("recordModal.saved"),tone:"positive"}):""},Da=()=>{let r=t();if(!r)return"";if(i()==="error")return Se(xe,{children:[V({title:K("recordModal.errorTitle"),message:K(g()??"recordModal.loadFailed"),tone:"danger"}),O({label:K("recordModal.retry"),variant:"secondary",name:"intent",value:"retry"})]});let s=u()?.data;if(i()!=="ready"||s===void 0)return oe({label:K("recordModal.loading")});let d=we(r,s),l=nt(d),o=l.find(n=>n.id===d.tab),y=e.header?.(d)??"",f=ot(d),a=o?o.view(d):e.body?.(d)??"";return l.length?Je({id:`record-view-${e.kind.replaceAll(".","-")}`,label:e.title(d),items:l.map(n=>({id:n.id,label:n.label(d),href:d.href(n.id),active:n.id===d.tab})),context:y!==""||f!==""?Se(xe,{children:[y,f]}):void 0,body:a}):Se(xe,{children:[y,f,a]})},Aa=()=>{let r=t(),s=T(),d=u()?.data;if(!r||!s||d===void 0)return"";let l=e.dialogs?.[s.name];if(!l)return"";let o=we(r,d,"dialog");return j({id:`record-dialog-${e.kind.replaceAll(".","-")}-${s.name}`,mode:"client",presentation:"dialog",size:l.size??"default",title:l.title(o),description:l.description?.(o),actions:l.actions?.(o),closeLabel:K("recordModal.close"),body:Se(xe,{children:[ot(o),l.view(o)]})})};return{view:()=>{de();let r=t();if(!r)return Ue(e.kind);let s=u()?.data,d=s===void 0?null:we(r,s);return Se(xe,{children:[Ue(e.kind),j({id:`record-modal-${e.kind.replaceAll(".","-")}`,mode:"client",presentation:"dialog",size:e.size??"default",height:(e.tabs?.length??0)+(e.extensionTabs?1:0)>1?"fixed":"content",fixedHeight:e.fixedHeight??"auto",title:d?e.title(d):K("recordModal.loading"),description:d?e.description?.(d)??null:null,status:d?e.status?.(d):void 0,actions:d?e.actions?.(d):void 0,closeLabel:K("recordModal.close"),body:Da()}),Aa()]})},mount:({root:r,lifetime:s})=>{R=r,document.addEventListener("click",a=>{if(a.defaultPrevented||a.button!==0||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)return;let n=a.target instanceof Element?a.target:null,c=n?.closest('[data-ui="modal-layer"][data-client-modal="true"]');if(c&&R?.contains(c)){if(n?.closest('[data-ui="modal-close"], [data-ui="modal-backdrop"], [data-record-close]')){a.preventDefault(),rt();return}let b=n?.closest("button[data-record-state], a[data-record-state], [data-record-state-trigger]");if(b){a.preventDefault(),Ce();let L=b.getAttribute("data-record-reset-fields");if(L){let N=JSON.parse(L);if(Array.isArray(N)&&N.every(M=>typeof M=="string")){let M=T()?w:k;M.set(wa(M(),N))}}let q=T()?E:ce;q.set({...q(),[b.getAttribute("data-record-state-trigger")??b.getAttribute("data-record-state")??""]:b.getAttribute("data-record-value")??""});return}let H=n?.closest(`[${xa}]`);if(H){a.preventDefault(),U(ae(),"record");let L=document.activeElement;A=L instanceof HTMLElement&&H.contains(L)?L:H.querySelector(Pa),w.set(P()),E.set({});let q={};for(let[N,M]of Object.entries(H.dataset))N.startsWith("recordParam")&&M!==void 0&&(q[N.slice(11).replace(/^./u,Ke=>Ke.toLowerCase())]=M);m.set([]),$.set(null),ee.set(!1),T.set({name:H.getAttribute(xa)??"",params:q}),re();return}if(n?.closest('button[name="intent"][value="retry"]')){a.preventDefault();let L=t();L&&G(L.id);return}}let p=Ln(n);if(!p)return;let v=new URL(p,location.href);if(v.origin!==location.origin||v.pathname!==location.pathname)return;let h=se(v);if(!h||h.kind!==e.kind)return;a.preventDefault();let B=t(),z="route"in e.context?e.context.query??[]:[],_=new URL(location.href);if(z.some(b=>_.searchParams.get(b)!==v.searchParams.get(b))){U(ae(),"record");for(let b of z){let H=v.searchParams.get(b);H===null?_.searchParams.delete(b):_.searchParams.set(b,H)}history.replaceState(history.state??{},"",_.href),B?.id===h.id&&G(B.id)}if(B?.id===h.id){if((h.tab??"")===B.tab&&!h.dialog)return;U(ae(),"record"),m.set([]),$.set(null),X(h.id,h.tab??null,"replace",()=>ae()?.querySelector('[data-ui="tab"][data-active="true"]')??null);return}X(h.id,h.tab??null,"push",void 0,h.dialog)},{signal:s,capture:!0}),document.addEventListener("keydown",a=>{if(a.defaultPrevented||a.key!=="Enter"&&a.key!==" ")return;let n=a.target instanceof Element?a.target:null;if(!n?.matches('[data-row-href][tabindex="0"]'))return;let c=n.getAttribute("data-row-href"),p=c?new URL(c,location.href):null;if(!p||p.origin!==location.origin||p.pathname!==location.pathname)return;let v=se(p);!v||v.kind!==e.kind||(a.preventDefault(),X(v.id,v.tab??null,"push",void 0,v.dialog))},{signal:s,capture:!0}),document.addEventListener("submit",a=>{let n=a.target instanceof HTMLFormElement?a.target:null;if(!n||!R?.contains(n))return;a.preventDefault();let c=a.submitter??null,p=(c instanceof HTMLButtonElement&&c.name===ve?c.value:null)??String(new FormData(n).get(ve)??"");Oa(p,n,c)},{signal:s}),document.addEventListener("keydown",a=>{if(!t())return;let n=R?.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]'),c=n?.[n.length-1];if(!c)return;if(a.key==="Escape"){a.preventDefault(),rt();return}if(a.key!=="Tab")return;let p=Ta(c);if(!p.length){a.preventDefault(),c.querySelector('[data-ui="modal-sheet"]')?.focus();return}let v=p[0],h=p.at(-1);a.shiftKey&&(document.activeElement===v||!c.contains(document.activeElement))?(a.preventDefault(),h.focus()):!a.shiftKey&&(document.activeElement===h||!c.contains(document.activeElement))&&(a.preventDefault(),v.focus())},{signal:s}),document.addEventListener("change",a=>{let n=a.target instanceof Element?a.target:null;if(!n||!R?.contains(n))return;if(n instanceof HTMLInputElement&&n.type==="checkbox"&&n.form){let p=n.form;if(p.querySelector(`input[type="checkbox"][name^="${De}"]`)){if(n.name.startsWith(De)){let v=n.name.slice(De.length);for(let h of p.querySelectorAll('input[type="checkbox"]'))!h.disabled&&!h.name.startsWith(De)&&h.name.startsWith(v)&&(h.checked=n.checked)}Ce();return}}let c=n.getAttribute("data-record-state")??(["relation-native","reorder-list-value"].includes(n.getAttribute("data-ui")??"")?n.getAttribute("name"):null);if((n instanceof HTMLSelectElement||n instanceof HTMLInputElement)&&c){Ce();let p=T()?E:ce;p.set({...p(),[c]:n.value});return}n instanceof HTMLInputElement&&n.type==="file"&&(n.hasAttribute("data-record-submit")||n.form?.hasAttribute("data-record-dropzone"))&&n.files?.length&&n.form?.requestSubmit()},{signal:s});let d=a=>{let c=(a.target instanceof Element?a.target:null)?.closest("form[data-record-dropzone]")??null;return c&&R?.contains(c)?c:null};document.addEventListener("dragover",a=>{let n=d(a);n&&(a.preventDefault(),n.dataset.drag="1")},{signal:s}),document.addEventListener("dragleave",a=>{let n=d(a);if(!n)return;let c=a.relatedTarget;c instanceof Node&&n.contains(c)||delete n.dataset.drag},{signal:s}),document.addEventListener("drop",a=>{let n=d(a);if(!n)return;a.preventDefault(),delete n.dataset.drag;let c=a.dataTransfer?.files,p=n.querySelector('input[type="file"]');if(!p||!c?.length)return;let v=new DataTransfer;v.items.add(c[0]),p.files=v.files,n.requestSubmit()},{signal:s});let l="ket-island, div[data-ket-island]",o=a=>a instanceof Element&&(a.matches(l)||a.querySelector(l)!==null),y=new MutationObserver(a=>{ie();for(let n of a){for(let c of n.removedNodes)o(c)&&document.dispatchEvent(new CustomEvent("ket:islands-detach",{detail:{root:c}}));for(let c of n.addedNodes)o(c)&&c.isConnected&&document.dispatchEvent(new CustomEvent("ket:islands-attach",{detail:{root:c}}))}});y.observe(R,{childList:!0,subtree:!0,characterData:!0}),s.addEventListener("abort",()=>y.disconnect()),window.addEventListener("resize",ie,{signal:s}),R.addEventListener("load",ie,{capture:!0,signal:s}),R.addEventListener("toggle",ie,{capture:!0,signal:s}),document.fonts?.ready.then(()=>{s.aborted||ie()}),ie(),document.addEventListener("ket:records-changed",a=>{let n=a.detail;if(n?.kind===e.kind)if(!Array.isArray(n.ids)||!n.ids.length)D.clear();else for(let c of n.ids)D.delete(String(c))},{signal:s}),document.addEventListener("ket:popstate",a=>{let n=se(location.href),c=n?.kind===e.kind;!c&&!t()||(a.preventDefault(),c&&n?X(n.id,n.tab??null,"none",void 0,n.dialog):ge("none"))},{signal:s}),document.addEventListener("ket:navigation-complete",()=>{let a=se(location.href);a?.kind===e.kind&&!t()&&X(a.id,a.tab??null,"none",void 0,a.dialog)},{signal:s});let f=se(location.href);f?.kind===e.kind&&X(f.id,f.tab??null,"none",void 0,f.dialog),s.addEventListener("abort",()=>{Te?.abort(),Qe.stop(),te?.(),te=null,R=null})}}};var Ma={vi:{"recordModal.close":"\u0110\xF3ng","recordModal.loading":"\u0110ang t\u1EA3i\u2026","recordModal.loadFailed":"Kh\xF4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c d\u1EEF li\u1EC7u. H\xE3y th\u1EED l\u1EA1i.","recordModal.notFound":"M\u1EE5c n\xE0y kh\xF4ng c\xF2n t\u1ED3n t\u1EA1i ho\u1EB7c b\u1EA1n kh\xF4ng c\xF3 quy\u1EC1n xem.","recordModal.retry":"Th\u1EED l\u1EA1i","recordModal.errorTitle":"Ch\u01B0a l\u01B0u \u0111\u01B0\u1EE3c","recordModal.saveFailed":"Thao t\xE1c kh\xF4ng th\xE0nh c\xF4ng. H\xE3y th\u1EED l\u1EA1i.","recordModal.savedTitle":"\u0110\xE3 l\u01B0u","recordModal.saved":"Thay \u0111\u1ED5i \u0111\xE3 \u0111\u01B0\u1EE3c ghi nh\u1EADn.","recordModal.unsaved":"B\u1ECF c\xE1c thay \u0111\u1ED5i ch\u01B0a l\u01B0u?","recordModal.uploadFailed":"Kh\xF4ng t\u1EA3i \u0111\u01B0\u1EE3c t\u1EC7p l\xEAn. H\xE3y th\u1EED l\u1EA1i."},en:{"recordModal.close":"Close","recordModal.loading":"Loading\u2026","recordModal.loadFailed":"The record could not be read. Try again.","recordModal.notFound":"The record is gone or you cannot see it.","recordModal.retry":"Retry","recordModal.errorTitle":"Not saved","recordModal.saveFailed":"That did not work. Try again.","recordModal.savedTitle":"Saved","recordModal.saved":"The changes have been saved.","recordModal.unsaved":"Discard unsaved changes?","recordModal.uploadFailed":"The file could not be uploaded. Try again."}};import{jsx as Ze}from"/_ket/view/jsx-runtime.js";var Ea=()=>typeof document<"u"&&document.documentElement.lang==="en"?"en":"vi",Mn={kind:"sale.invoicePolicy",size:"default",labels:()=>Ma[Ea()],context:{route:(e,t)=>`/admin/sales/invoice-policy/${t?"new":encodeURIComponent(e)}/context?lang=${Ea()}`,query:["company","branch"]},title:e=>e.creating?e.t("sale_backend.action.savePolicy"):String(e.data.record.name),body:e=>e.data.save?Ze(_e,{kind:e.kind,command:"save",fields:[...e.creating?[{id:"policy-product",name:"templateId",label:e.t("sale_backend.field.product"),type:"select",required:!0,value:e.draft("templateId"),options:e.data.rows.map(t=>({value:String(t.id),label:String(t.name)})),error:e.fieldError("templateId"),disabled:e.busy}]:[],{id:"policy-value",name:"invoicePolicy",label:e.t("sale_backend.field.invoicePolicy"),type:"radio",required:!0,value:e.draft("invoicePolicy",String(e.data.record.invoicePolicy??"order")),options:["order","delivery"].map(t=>({value:t,label:e.t(`sale_backend.invoicePolicy.${t}`)})),error:e.fieldError("invoicePolicy"),disabled:e.busy}],actions:[Ze(O,{type:"submit",label:e.t("recordModal.save"),variant:"primary",disabled:e.busy})]}):Ze(Fe,{items:[{id:"policy",label:e.t("sale_backend.field.invoicePolicy"),value:e.t(`sale_backend.invoicePolicy.${e.data.record.invoicePolicy??"order"}`)}]}),commands:{save:{fn:"sale.setInvoicePolicy",input:(e,t)=>({templateId:t.creating?String(e.get("templateId")??""):t.id,invoicePolicy:String(e.get("invoicePolicy")??"")}),after:"close"}}},ff=La(Mn);export{Mn as invoicingPolicyDefinition,ff as invoicingPolicyModal};