@quan-erp/base-frontend 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/LICENSE.md +49 -0
  2. package/README.md +80 -0
  3. package/dist-export/api/ai-assistant/ai-assistant.api.d.ts +14 -0
  4. package/dist-export/api/ai-assistant/ai-assistant.api.d.ts.map +1 -0
  5. package/dist-export/api/ai-assistant/ai-assistant.api.js +93 -0
  6. package/dist-export/api/ai-assistant/ai-assistant.dto.d.ts +54 -0
  7. package/dist-export/api/ai-assistant/ai-assistant.dto.d.ts.map +1 -0
  8. package/dist-export/api/ai-assistant/ai-assistant.dto.js +4 -0
  9. package/dist-export/api/ai-assistant/ai-assistant.export.d.ts +7 -0
  10. package/dist-export/api/ai-assistant/ai-assistant.export.d.ts.map +1 -0
  11. package/dist-export/api/ai-assistant/ai-assistant.export.js +7 -0
  12. package/dist-export/api/ai-model/ai-model.api.d.ts +37 -0
  13. package/dist-export/api/ai-model/ai-model.api.d.ts.map +1 -0
  14. package/dist-export/api/ai-model/ai-model.api.js +80 -0
  15. package/dist-export/api/ai-tool/ai-tool.dto.d.ts +26 -0
  16. package/dist-export/api/ai-tool/ai-tool.dto.d.ts.map +1 -0
  17. package/dist-export/api/ai-tool/ai-tool.dto.js +1 -0
  18. package/dist-export/api/branch/branch.export.d.ts +11 -0
  19. package/dist-export/api/branch/branch.export.d.ts.map +1 -0
  20. package/dist-export/api/branch/branch.export.js +12 -0
  21. package/dist-export/api/branch/branch.type.d.ts +46 -0
  22. package/dist-export/api/branch/branch.type.d.ts.map +1 -0
  23. package/dist-export/api/branch/branch.type.js +44 -0
  24. package/dist-export/api/change-log/change-log.dto.d.ts +41 -0
  25. package/dist-export/api/change-log/change-log.dto.d.ts.map +1 -0
  26. package/dist-export/api/change-log/change-log.dto.js +1 -0
  27. package/dist-export/api/change-log/change-log.export.d.ts +39 -0
  28. package/dist-export/api/change-log/change-log.export.d.ts.map +1 -0
  29. package/dist-export/api/change-log/change-log.export.js +18 -0
  30. package/dist-export/api/currency/currency.export.d.ts +17 -0
  31. package/dist-export/api/currency/currency.export.d.ts.map +1 -0
  32. package/dist-export/api/currency/currency.export.js +12 -0
  33. package/dist-export/api/currency/currency.type.d.ts +21 -0
  34. package/dist-export/api/currency/currency.type.d.ts.map +1 -0
  35. package/dist-export/api/currency/currency.type.js +1 -0
  36. package/dist-export/api/currency-exchange/currency-exchange.export.d.ts +11 -0
  37. package/dist-export/api/currency-exchange/currency-exchange.export.d.ts.map +1 -0
  38. package/dist-export/api/currency-exchange/currency-exchange.export.js +12 -0
  39. package/dist-export/api/currency-exchange/currency-exchange.type.d.ts +33 -0
  40. package/dist-export/api/currency-exchange/currency-exchange.type.d.ts.map +1 -0
  41. package/dist-export/api/currency-exchange/currency-exchange.type.js +1 -0
  42. package/dist-export/api/file/file.export.d.ts +14 -0
  43. package/dist-export/api/file/file.export.d.ts.map +1 -0
  44. package/dist-export/api/file/file.export.js +12 -0
  45. package/dist-export/api/file/file.type.d.ts +39 -0
  46. package/dist-export/api/file/file.type.d.ts.map +1 -0
  47. package/dist-export/api/file/file.type.js +10 -0
  48. package/dist-export/api/firebase/firebase.d.ts +4 -0
  49. package/dist-export/api/firebase/firebase.d.ts.map +1 -0
  50. package/dist-export/api/firebase/firebase.dto.d.ts +7 -0
  51. package/dist-export/api/firebase/firebase.dto.d.ts.map +1 -0
  52. package/dist-export/api/firebase/firebase.dto.js +1 -0
  53. package/dist-export/api/firebase/firebase.export.d.ts +2 -0
  54. package/dist-export/api/firebase/firebase.export.d.ts.map +1 -0
  55. package/dist-export/api/firebase/firebase.export.js +1 -0
  56. package/dist-export/api/firebase/firebase.js +35 -0
  57. package/dist-export/api/location/location.dto.d.ts +28 -0
  58. package/dist-export/api/location/location.dto.d.ts.map +1 -0
  59. package/dist-export/api/location/location.dto.js +27 -0
  60. package/dist-export/api/location/location.export.d.ts +26 -0
  61. package/dist-export/api/location/location.export.d.ts.map +1 -0
  62. package/dist-export/api/location/location.export.js +16 -0
  63. package/dist-export/api/notification/notification.api.d.ts +9 -0
  64. package/dist-export/api/notification/notification.api.d.ts.map +1 -0
  65. package/dist-export/api/notification/notification.api.js +45 -0
  66. package/dist-export/api/notification/notification.export.d.ts +6 -0
  67. package/dist-export/api/notification/notification.export.d.ts.map +1 -0
  68. package/dist-export/api/notification/notification.export.js +13 -0
  69. package/dist-export/api/notification/notification.store.d.ts +8 -0
  70. package/dist-export/api/notification/notification.store.d.ts.map +1 -0
  71. package/dist-export/api/notification/notification.store.js +46 -0
  72. package/dist-export/api/notification/notification.type.d.ts +48 -0
  73. package/dist-export/api/notification/notification.type.d.ts.map +1 -0
  74. package/dist-export/api/notification/notification.type.js +1 -0
  75. package/dist-export/api/partner/partner.export.d.ts +15 -0
  76. package/dist-export/api/partner/partner.export.d.ts.map +1 -0
  77. package/dist-export/api/partner/partner.export.js +12 -0
  78. package/dist-export/api/partner/partner.type.d.ts +41 -0
  79. package/dist-export/api/partner/partner.type.d.ts.map +1 -0
  80. package/dist-export/api/partner/partner.type.js +1 -0
  81. package/dist-export/api/partner-shipping-address/partner-shipping-adderss.export.d.ts +18 -0
  82. package/dist-export/api/partner-shipping-address/partner-shipping-adderss.export.d.ts.map +1 -0
  83. package/dist-export/api/partner-shipping-address/partner-shipping-adderss.export.js +13 -0
  84. package/dist-export/api/partner-shipping-address/partner-shipping-address.type.d.ts +38 -0
  85. package/dist-export/api/partner-shipping-address/partner-shipping-address.type.d.ts.map +1 -0
  86. package/dist-export/api/partner-shipping-address/partner-shipping-address.type.js +36 -0
  87. package/dist-export/api/permission/permission.export.d.ts +8 -0
  88. package/dist-export/api/permission/permission.export.d.ts.map +1 -0
  89. package/dist-export/api/permission/permission.export.js +10 -0
  90. package/dist-export/api/permission/permission.lib.d.ts +5 -0
  91. package/dist-export/api/permission/permission.lib.d.ts.map +1 -0
  92. package/dist-export/api/permission/permission.lib.js +24 -0
  93. package/dist-export/api/permission/permission.type.d.ts +32 -0
  94. package/dist-export/api/permission/permission.type.d.ts.map +1 -0
  95. package/dist-export/api/permission/permission.type.js +1 -0
  96. package/dist-export/api/role-permission/role-permission.api.d.ts +25 -0
  97. package/dist-export/api/role-permission/role-permission.api.d.ts.map +1 -0
  98. package/dist-export/api/role-permission/role-permission.api.js +71 -0
  99. package/dist-export/api/role-permission/role-permission.dto.d.ts +6 -0
  100. package/dist-export/api/role-permission/role-permission.dto.d.ts.map +1 -0
  101. package/dist-export/api/role-permission/role-permission.dto.js +1 -0
  102. package/dist-export/api/role-permission/role-permission.export.d.ts +11 -0
  103. package/dist-export/api/role-permission/role-permission.export.d.ts.map +1 -0
  104. package/dist-export/api/role-permission/role-permission.export.js +9 -0
  105. package/dist-export/api/setting/setting.api.d.ts +14 -0
  106. package/dist-export/api/setting/setting.api.d.ts.map +1 -0
  107. package/dist-export/api/setting/setting.api.js +70 -0
  108. package/dist-export/api/setting/setting.export.d.ts +36 -0
  109. package/dist-export/api/setting/setting.export.d.ts.map +1 -0
  110. package/dist-export/api/setting/setting.export.js +17 -0
  111. package/dist-export/api/setting/setting.store.d.ts +11 -0
  112. package/dist-export/api/setting/setting.store.d.ts.map +1 -0
  113. package/dist-export/api/setting/setting.store.js +36 -0
  114. package/dist-export/api/setting/setting.type.d.ts +44 -0
  115. package/dist-export/api/setting/setting.type.d.ts.map +1 -0
  116. package/dist-export/api/setting/setting.type.js +27 -0
  117. package/dist-export/api/tag/tag.api.d.ts +10 -0
  118. package/dist-export/api/tag/tag.api.d.ts.map +1 -0
  119. package/dist-export/api/tag/tag.api.js +60 -0
  120. package/dist-export/api/tag/tag.dto.d.ts +8 -0
  121. package/dist-export/api/tag/tag.dto.d.ts.map +1 -0
  122. package/dist-export/api/tag/tag.dto.js +1 -0
  123. package/dist-export/api/tag/tag.export.d.ts +10 -0
  124. package/dist-export/api/tag/tag.export.d.ts.map +1 -0
  125. package/dist-export/api/tag/tag.export.js +13 -0
  126. package/dist-export/api/unit/uoc.export.d.ts +11 -0
  127. package/dist-export/api/unit/uoc.export.d.ts.map +1 -0
  128. package/dist-export/api/unit/uoc.export.js +13 -0
  129. package/dist-export/api/unit/uoc.type.d.ts +11 -0
  130. package/dist-export/api/unit/uoc.type.d.ts.map +1 -0
  131. package/dist-export/api/unit/uoc.type.js +1 -0
  132. package/dist-export/api/unit/uom.export.d.ts +14 -0
  133. package/dist-export/api/unit/uom.export.d.ts.map +1 -0
  134. package/dist-export/api/unit/uom.export.js +16 -0
  135. package/dist-export/api/unit/uom.type.d.ts +30 -0
  136. package/dist-export/api/unit/uom.type.d.ts.map +1 -0
  137. package/dist-export/api/unit/uom.type.js +1 -0
  138. package/dist-export/api/user/user.api.d.ts +28 -0
  139. package/dist-export/api/user/user.api.d.ts.map +1 -0
  140. package/dist-export/api/user/user.api.js +138 -0
  141. package/dist-export/api/user/user.export.d.ts +11 -0
  142. package/dist-export/api/user/user.export.d.ts.map +1 -0
  143. package/dist-export/api/user/user.export.js +12 -0
  144. package/dist-export/api/user/user.type.d.ts +49 -0
  145. package/dist-export/api/user/user.type.d.ts.map +1 -0
  146. package/dist-export/api/user/user.type.js +20 -0
  147. package/dist-export/api/workflow/workflow.export.d.ts +41 -0
  148. package/dist-export/api/workflow/workflow.export.d.ts.map +1 -0
  149. package/dist-export/api/workflow/workflow.export.js +19 -0
  150. package/dist-export/api/workflow/workflow.type.d.ts +210 -0
  151. package/dist-export/api/workflow/workflow.type.d.ts.map +1 -0
  152. package/dist-export/api/workflow/workflow.type.js +11 -0
  153. package/dist-export/components/change-log/change-log.export.d.ts +9 -0
  154. package/dist-export/components/change-log/change-log.export.d.ts.map +1 -0
  155. package/dist-export/components/change-log/change-log.export.js +6 -0
  156. package/dist-export/components/home-shortcut-item/home-shortcut-item.export.d.ts +4 -0
  157. package/dist-export/components/home-shortcut-item/home-shortcut-item.export.d.ts.map +1 -0
  158. package/dist-export/components/home-shortcut-item/home-shortcut-item.export.js +6 -0
  159. package/dist-export/components/home-shortcut-item/home-shortcut-item.type.d.ts +5 -0
  160. package/dist-export/components/home-shortcut-item/home-shortcut-item.type.d.ts.map +1 -0
  161. package/dist-export/components/home-shortcut-item/home-shortcut-item.type.js +1 -0
  162. package/dist-export/components/location/location.export.d.ts +8 -0
  163. package/dist-export/components/location/location.export.d.ts.map +1 -0
  164. package/dist-export/components/location/location.export.js +16 -0
  165. package/dist-export/components/location/location.type.d.ts +62 -0
  166. package/dist-export/components/location/location.type.d.ts.map +1 -0
  167. package/dist-export/components/location/location.type.js +1 -0
  168. package/dist-export/components/sportlight-search/sportlight-search.export.d.ts +15 -0
  169. package/dist-export/components/sportlight-search/sportlight-search.export.d.ts.map +1 -0
  170. package/dist-export/components/sportlight-search/sportlight-search.export.js +11 -0
  171. package/dist-export/components/sportlight-search/sportlight-search.type.d.ts +23 -0
  172. package/dist-export/components/sportlight-search/sportlight-search.type.d.ts.map +1 -0
  173. package/dist-export/components/sportlight-search/sportlight-search.type.js +5 -0
  174. package/dist-export/components/tag/tag.dropdown.d.ts +13 -0
  175. package/dist-export/components/tag/tag.dropdown.d.ts.map +1 -0
  176. package/dist-export/components/tag/tag.dropdown.export.d.ts +5 -0
  177. package/dist-export/components/tag/tag.dropdown.export.d.ts.map +1 -0
  178. package/dist-export/components/tag/tag.dropdown.export.js +6 -0
  179. package/dist-export/components/tag/tag.dropdown.js +84 -0
  180. package/dist-export/dto/base.dto.d.ts +6 -0
  181. package/dist-export/dto/base.dto.d.ts.map +1 -0
  182. package/dist-export/dto/base.dto.js +1 -0
  183. package/dist-export/export/export-dashboard.d.ts +5 -0
  184. package/dist-export/export/export-dashboard.d.ts.map +1 -0
  185. package/dist-export/export/export-dashboard.js +7 -0
  186. package/dist-export/export/export-env.d.ts +5 -0
  187. package/dist-export/export/export-env.d.ts.map +1 -0
  188. package/dist-export/export/export-env.js +5 -0
  189. package/dist-export/export/export-navigate.d.ts +3 -0
  190. package/dist-export/export/export-navigate.d.ts.map +1 -0
  191. package/dist-export/export/export-navigate.js +7 -0
  192. package/dist-export/export/export-use-is-contain-in-bottom-nav-bar.d.ts +3 -0
  193. package/dist-export/export/export-use-is-contain-in-bottom-nav-bar.d.ts.map +1 -0
  194. package/dist-export/export/export-use-is-contain-in-bottom-nav-bar.js +6 -0
  195. package/dist-export/export/index.d.ts +6 -0
  196. package/dist-export/export/index.d.ts.map +1 -0
  197. package/dist-export/export/index.js +5 -0
  198. package/dist-export/export.d.ts +131 -0
  199. package/dist-export/export.d.ts.map +1 -0
  200. package/dist-export/export.js +143 -0
  201. package/dist-export/locale/locale.export.d.ts +7 -0
  202. package/dist-export/locale/locale.export.d.ts.map +1 -0
  203. package/dist-export/locale/locale.export.js +9 -0
  204. package/dist-export/locale/locales/en-US.json +145 -0
  205. package/dist-export/locale/locales/my-MM.json +145 -0
  206. package/dist-export/locale/locales/zh-CN.json +145 -0
  207. package/dist-export/page/ai-assistant/ai-assistant.export.d.ts +5 -0
  208. package/dist-export/page/ai-assistant/ai-assistant.export.d.ts.map +1 -0
  209. package/dist-export/page/ai-assistant/ai-assistant.export.js +6 -0
  210. package/dist-export/page/ai-assistant/ai-assistant.locale.d.ts +7 -0
  211. package/dist-export/page/ai-assistant/ai-assistant.locale.d.ts.map +1 -0
  212. package/dist-export/page/ai-assistant/ai-assistant.locale.js +9 -0
  213. package/dist-export/page/ai-assistant/component/assistant.dropdown.d.ts +16 -0
  214. package/dist-export/page/ai-assistant/component/assistant.dropdown.d.ts.map +1 -0
  215. package/dist-export/page/ai-assistant/component/assistant.dropdown.js +50 -0
  216. package/dist-export/page/ai-assistant/component/icon-park-icon.d.ts +9 -0
  217. package/dist-export/page/ai-assistant/component/icon-park-icon.d.ts.map +1 -0
  218. package/dist-export/page/ai-assistant/component/icon-park-icon.js +11 -0
  219. package/dist-export/page/ai-assistant/locales/en-US.json +92 -0
  220. package/dist-export/page/ai-assistant/locales/my-MM.json +91 -0
  221. package/dist-export/page/ai-assistant/locales/zh-CN.json +91 -0
  222. package/dist-export/page/branch/branch.export.d.ts +4 -0
  223. package/dist-export/page/branch/branch.export.d.ts.map +1 -0
  224. package/dist-export/page/branch/branch.export.js +6 -0
  225. package/dist-export/page/branch/branch.types.d.ts +14 -0
  226. package/dist-export/page/branch/branch.types.d.ts.map +1 -0
  227. package/dist-export/page/branch/branch.types.js +1 -0
  228. package/dist-export/page/currency/currency.export.d.ts +6 -0
  229. package/dist-export/page/currency/currency.export.d.ts.map +1 -0
  230. package/dist-export/page/currency/currency.export.js +9 -0
  231. package/dist-export/page/currency/currency.type.d.ts +25 -0
  232. package/dist-export/page/currency/currency.type.d.ts.map +1 -0
  233. package/dist-export/page/currency/currency.type.js +1 -0
  234. package/dist-export/page/partner/partner.export.d.ts +4 -0
  235. package/dist-export/page/partner/partner.export.d.ts.map +1 -0
  236. package/dist-export/page/partner/partner.export.js +6 -0
  237. package/dist-export/page/partner/partner.types.d.ts +15 -0
  238. package/dist-export/page/partner/partner.types.d.ts.map +1 -0
  239. package/dist-export/page/partner/partner.types.js +1 -0
  240. package/dist-export/page/uoc/uoc.export.d.ts +5 -0
  241. package/dist-export/page/uoc/uoc.export.d.ts.map +1 -0
  242. package/dist-export/page/uoc/uoc.export.js +9 -0
  243. package/dist-export/page/uoc/uoc.types.d.ts +25 -0
  244. package/dist-export/page/uoc/uoc.types.d.ts.map +1 -0
  245. package/dist-export/page/uoc/uoc.types.js +1 -0
  246. package/dist-export/page/user/user.export.d.ts +4 -0
  247. package/dist-export/page/user/user.export.d.ts.map +1 -0
  248. package/dist-export/page/user/user.export.js +6 -0
  249. package/dist-export/page/user/user.types.d.ts +14 -0
  250. package/dist-export/page/user/user.types.d.ts.map +1 -0
  251. package/dist-export/page/user/user.types.js +1 -0
  252. package/dist-export/plugin/app-state.d.ts +5 -0
  253. package/dist-export/plugin/app-state.d.ts.map +1 -0
  254. package/dist-export/plugin/app-state.js +157 -0
  255. package/dist-export/plugin/export.d.ts +3 -0
  256. package/dist-export/plugin/export.d.ts.map +1 -0
  257. package/dist-export/plugin/export.js +7 -0
  258. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.export.d.ts +6 -0
  259. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.export.d.ts.map +1 -0
  260. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.export.js +6 -0
  261. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.type.d.ts +8 -0
  262. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.type.d.ts.map +1 -0
  263. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.type.js +1 -0
  264. package/dist-export/store/dto.d.ts +10 -0
  265. package/dist-export/store/dto.d.ts.map +1 -0
  266. package/dist-export/store/dto.js +11 -0
  267. package/dist-export/store/home-shortcut/home-shortcut.export.d.ts +7 -0
  268. package/dist-export/store/home-shortcut/home-shortcut.export.d.ts.map +1 -0
  269. package/dist-export/store/home-shortcut/home-shortcut.export.js +9 -0
  270. package/dist-export/store/home-shortcut/home-shortcut.type.d.ts +20 -0
  271. package/dist-export/store/home-shortcut/home-shortcut.type.d.ts.map +1 -0
  272. package/dist-export/store/home-shortcut/home-shortcut.type.js +1 -0
  273. package/dist-export/store/nav-menu/nav-menu.export.d.ts +6 -0
  274. package/dist-export/store/nav-menu/nav-menu.export.d.ts.map +1 -0
  275. package/dist-export/store/nav-menu/nav-menu.export.js +6 -0
  276. package/dist-export/store/nav-menu/nav-menu.type.d.ts +46 -0
  277. package/dist-export/store/nav-menu/nav-menu.type.d.ts.map +1 -0
  278. package/dist-export/store/nav-menu/nav-menu.type.js +1 -0
  279. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.export.d.ts +3 -0
  280. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.export.d.ts.map +1 -0
  281. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.export.js +6 -0
  282. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.type.d.ts +14 -0
  283. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.type.d.ts.map +1 -0
  284. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.type.js +1 -0
  285. package/dist-export/store/permission-template/permission-template.export.d.ts +7 -0
  286. package/dist-export/store/permission-template/permission-template.export.d.ts.map +1 -0
  287. package/dist-export/store/permission-template/permission-template.export.js +9 -0
  288. package/dist-export/store/permission-template/permission-template.type.d.ts +13 -0
  289. package/dist-export/store/permission-template/permission-template.type.d.ts.map +1 -0
  290. package/dist-export/store/permission-template/permission-template.type.js +1 -0
  291. package/dist-export/store/root-component-store/root-component.export.d.ts +6 -0
  292. package/dist-export/store/root-component-store/root-component.export.d.ts.map +1 -0
  293. package/dist-export/store/root-component-store/root-component.export.js +9 -0
  294. package/dist-export/store/root-component-store/root-component.type.d.ts +7 -0
  295. package/dist-export/store/root-component-store/root-component.type.d.ts.map +1 -0
  296. package/dist-export/store/root-component-store/root-component.type.js +1 -0
  297. package/dist-export/store/web-env/web-env.export.d.ts +6 -0
  298. package/dist-export/store/web-env/web-env.export.d.ts.map +1 -0
  299. package/dist-export/store/web-env/web-env.export.js +9 -0
  300. package/dist-export/store/web-env/web-env.store.d.ts +6 -0
  301. package/dist-export/store/web-env/web-env.store.d.ts.map +1 -0
  302. package/dist-export/store/web-env/web-env.store.js +16 -0
  303. package/dist-export/store/web-env/web-env.type.d.ts +16 -0
  304. package/dist-export/store/web-env/web-env.type.d.ts.map +1 -0
  305. package/dist-export/store/web-env/web-env.type.js +1 -0
  306. package/dist-export/utils/axios-client.d.ts +5 -0
  307. package/dist-export/utils/axios-client.d.ts.map +1 -0
  308. package/dist-export/utils/axios-client.js +84 -0
  309. package/dist-export/utils/common.d.ts +6 -0
  310. package/dist-export/utils/common.d.ts.map +1 -0
  311. package/dist-export/utils/common.js +5 -0
  312. package/dist-export/utils/index.d.ts +3 -0
  313. package/dist-export/utils/index.d.ts.map +1 -0
  314. package/dist-export/utils/index.js +2 -0
  315. package/dist-export/utils/pagination.d.ts +11 -0
  316. package/dist-export/utils/pagination.d.ts.map +1 -0
  317. package/dist-export/utils/pagination.js +6 -0
  318. package/dist-export/utils/react-query-indexed-db-persister.d.ts +7 -0
  319. package/dist-export/utils/react-query-indexed-db-persister.d.ts.map +1 -0
  320. package/dist-export/utils/react-query-indexed-db-persister.js +21 -0
  321. package/dist-export/utils/types.utils.d.ts +2 -0
  322. package/dist-export/utils/types.utils.d.ts.map +1 -0
  323. package/dist-export/utils/types.utils.js +1 -0
  324. package/package.json +182 -0
@@ -0,0 +1,46 @@
1
+ import { v4 } from 'uuid';
2
+ export let inAppNotificationCallbacks = [];
3
+ export let firebaseForegroundNotificationCallbacks = [];
4
+ export let firebaseBackgroundNotificationCallbacks = [];
5
+ export const inAppNotificationCallbackRegistry = {
6
+ register(pluginName, callback) {
7
+ const id = v4();
8
+ inAppNotificationCallbacks.push({
9
+ id,
10
+ callback,
11
+ pluginName
12
+ });
13
+ return id;
14
+ },
15
+ deregister(id) {
16
+ inAppNotificationCallbacks = inAppNotificationCallbacks.filter(cb => cb.id !== id);
17
+ }
18
+ };
19
+ export const firebaseForegroundNotificationCallbackRegistry = {
20
+ register(pluginName, callback) {
21
+ const id = v4();
22
+ firebaseForegroundNotificationCallbacks.push({
23
+ id,
24
+ callback,
25
+ pluginName
26
+ });
27
+ return id;
28
+ },
29
+ deregister(id) {
30
+ firebaseForegroundNotificationCallbacks = firebaseForegroundNotificationCallbacks.filter(cb => cb.id !== id);
31
+ }
32
+ };
33
+ export const firebaseBackgroundNotificationCallbackRegistry = {
34
+ register(pluginName, callback) {
35
+ const id = v4();
36
+ firebaseBackgroundNotificationCallbacks.push({
37
+ id,
38
+ callback,
39
+ pluginName
40
+ });
41
+ return id;
42
+ },
43
+ deregister(id) {
44
+ firebaseBackgroundNotificationCallbacks = firebaseBackgroundNotificationCallbacks.filter(cb => cb.id !== id);
45
+ }
46
+ };
@@ -0,0 +1,48 @@
1
+ import type { MessagePayload } from "firebase/messaging";
2
+ import type { MediaFileDto } from "../file/file.type";
3
+ import type { FirebaseNotificationData } from "../firebase/firebase.dto";
4
+ export type NotificationDto = {
5
+ id: number;
6
+ icon?: MediaFileDto;
7
+ title?: string;
8
+ subtitle?: string;
9
+ body?: string;
10
+ topic: string;
11
+ url?: string;
12
+ data?: FirebaseNotificationData;
13
+ targetType: string;
14
+ isRead: boolean;
15
+ createDate: string;
16
+ pluginName: string;
17
+ };
18
+ export type InAppNotificationCallback = (notification: NotificationDto) => void;
19
+ export type FirebaseForegroundNotificationCallback = (notification: MessagePayload) => void;
20
+ export type FirebaseBackgroundNotificationCallback = (notification: MessagePayload) => void;
21
+ export type InAppNotificationRegistryStoreType = {
22
+ id: string;
23
+ pluginName: string;
24
+ callback: InAppNotificationCallback;
25
+ };
26
+ export type FirebaseForegroundNotificationRegistryStoreType = {
27
+ id: string;
28
+ pluginName: string;
29
+ callback: FirebaseForegroundNotificationCallback;
30
+ };
31
+ export type FirebaseBackgroundNotificationRegistryStoreType = {
32
+ id: string;
33
+ pluginName: string;
34
+ callback: FirebaseBackgroundNotificationCallback;
35
+ };
36
+ export type InAppNotificationCallbackRegistry = {
37
+ register: (pluginName: string, callback: InAppNotificationCallback) => string;
38
+ deregister: (id: string) => void;
39
+ };
40
+ export type FirebaseForegroundNotificationCallbackRegistry = {
41
+ register: (pluginName: string, callback: FirebaseForegroundNotificationCallback) => string;
42
+ deregister: (id: string) => void;
43
+ };
44
+ export type FirebaseBackgroundNotificationCallbackRegistry = {
45
+ register: (pluginName: string, callback: FirebaseBackgroundNotificationCallback) => string;
46
+ deregister: (id: string) => void;
47
+ };
48
+ //# sourceMappingURL=notification.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.type.d.ts","sourceRoot":"","sources":["../../../src/api/notification/notification.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AAExE,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AAGD,MAAM,MAAM,yBAAyB,GAAG,CAAC,YAAY,EAAE,eAAe,KAAK,IAAI,CAAA;AAC/E,MAAM,MAAM,sCAAsC,GAAG,CAAC,YAAY,EAAE,cAAc,KAAK,IAAI,CAAA;AAC3F,MAAM,MAAM,sCAAsC,GAAG,CAAC,YAAY,EAAE,cAAc,KAAK,IAAI,CAAA;AAG3F,MAAM,MAAM,kCAAkC,GAAG;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,yBAAyB,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,+CAA+C,GAAG;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,sCAAsC,CAAA;CACnD,CAAA;AAGD,MAAM,MAAM,+CAA+C,GAAG;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,sCAAsC,CAAA;CACnD,CAAA;AAID,MAAM,MAAM,iCAAiC,GAAG;IAC5C,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,MAAM,CAAC;IAC9E,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,8CAA8C,GAAG;IACzD,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,sCAAsC,KAAK,MAAM,CAAC;IAC3F,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,8CAA8C,GAAG;IACzD,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,sCAAsC,KAAK,MAAM,CAAC;IAC3F,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { type RequestIndexPaginationDto } from "@quan-erp/shared-frontend-core";
2
+ import type { UseMutationResult, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
3
+ import type { CreatePartnerDto, PartnerDto } from "./partner.type";
4
+ export * from './partner.type';
5
+ export type PartnerQueryDto = RequestIndexPaginationDto<string, number, number, {
6
+ isSupplier?: boolean;
7
+ isCustomer?: boolean;
8
+ }>;
9
+ export declare function usePartnerQuery(query?: PartnerQueryDto, option?: Omit<UseQueryOptions<PartnerDto[]>, 'queryFn' | 'queryKey'>): UseQueryResult<PartnerDto[], Error>;
10
+ export declare function useCreatePartnerQuery(): UseMutationResult<any, Error, CreatePartnerDto, unknown>;
11
+ export declare function useUpdatePartnerQuery(): UseMutationResult<any, Error, {
12
+ id: number;
13
+ customer: CreatePartnerDto;
14
+ }, unknown>;
15
+ //# sourceMappingURL=partner.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partner.export.d.ts","sourceRoot":"","sources":["../../../src/api/partner/partner.export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3F,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACnE,cAAc,gBAAgB,CAAA;AAE9B,MAAM,MAAM,eAAe,GAAG,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC,CAAC;AAMH,wBAAgB,eAAe,CAC3B,KAAK,GAAE,eAAoB,EAC3B,MAAM,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,uCAGvE;AAKD,wBAAgB,qBAAqB,6DAEpC;AAKD,wBAAgB,qBAAqB;QAD0B,MAAM;cAAY,gBAAgB;YAGhG"}
@@ -0,0 +1,12 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { APINames } from "../../export";
3
+ export * from './partner.type';
4
+ export function usePartnerQuery(query = {}, option) {
5
+ return PluginAPI.use('builtin', APINames.usePartnerQuery)(query, option);
6
+ }
7
+ export function useCreatePartnerQuery() {
8
+ return PluginAPI.use('builtin', APINames.useCreatePartnerQuery)();
9
+ }
10
+ export function useUpdatePartnerQuery() {
11
+ return PluginAPI.use('builtin', APINames.useUpdatePartnerQuery)();
12
+ }
@@ -0,0 +1,41 @@
1
+ import type { PartnerShippingAddressDto } from "../partner-shipping-address/partner-shipping-address.type";
2
+ import type { TagDto } from "../tag/tag.dto";
3
+ export interface CreatePartnerDto {
4
+ firstName: string;
5
+ lastName: string;
6
+ sex?: 'male' | 'female';
7
+ dob?: string;
8
+ email?: string;
9
+ phone?: string;
10
+ phone2?: string;
11
+ phone3?: string;
12
+ address?: string;
13
+ city?: string;
14
+ country?: string;
15
+ isActive?: boolean;
16
+ internalNotes?: string;
17
+ isCustomer?: boolean;
18
+ isSupplier?: boolean;
19
+ tags?: number[];
20
+ }
21
+ export interface PartnerDto {
22
+ id: number;
23
+ firstName: string;
24
+ lastName: string;
25
+ sex?: 'male' | 'female';
26
+ dob?: string;
27
+ email?: string;
28
+ phone?: string;
29
+ phone2?: string;
30
+ phone3?: string;
31
+ address?: string;
32
+ city?: string;
33
+ country?: string;
34
+ isActive?: boolean;
35
+ internalNotes?: string;
36
+ isCustomer: boolean;
37
+ isSupplier: boolean;
38
+ tags?: TagDto[];
39
+ shippingAddress: PartnerShippingAddressDto[];
40
+ }
41
+ //# sourceMappingURL=partner.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partner.type.d.ts","sourceRoot":"","sources":["../../../src/api/partner/partner.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAC;AAC3G,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IACvB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAID,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IACvB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,eAAe,EAAE,yBAAyB,EAAE,CAAA;CAC7C"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { UseMutationResult } from "@tanstack/react-query";
2
+ import type { CreatePartnerShippingAddressDto, PartnerShippingAddressDto } from "./partner-shipping-address.type";
3
+ export * from './partner-shipping-address.type';
4
+ export type UseCreatePartnerShippingAddressQuery = () => UseMutationResult<any, Error, {
5
+ partnerId: number;
6
+ } & CreatePartnerShippingAddressDto, unknown>;
7
+ export declare function useCreateParnterShippingAddressQuery(): UseMutationResult<any, Error, {
8
+ partnerId: number;
9
+ } & CreatePartnerShippingAddressDto, unknown>;
10
+ export type UseUpdatePartnerShippingAddressQuery = () => UseMutationResult<any, Error, PartnerShippingAddressDto, unknown>;
11
+ export declare function useUpdatePartnerShippingAddressQuery(): UseMutationResult<any, Error, PartnerShippingAddressDto, unknown>;
12
+ export type UseDeletePartnerShippingAddressQuery = () => UseMutationResult<any, Error, {
13
+ id: number;
14
+ }, unknown>;
15
+ export declare function useDeletePartnerShippingAddressQuery(): UseMutationResult<any, Error, {
16
+ id: number;
17
+ }, unknown>;
18
+ //# sourceMappingURL=partner-shipping-adderss.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partner-shipping-adderss.export.d.ts","sourceRoot":"","sources":["../../../src/api/partner-shipping-address/partner-shipping-adderss.export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D,OAAO,KAAK,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAClH,cAAc,iCAAiC,CAAA;AAE/C,MAAM,MAAM,oCAAoC,GAAG,MAAM,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE;IACnF,SAAS,EAAE,MAAM,CAAC;CACrB,GAAG,+BAA+B,EAAE,OAAO,CAAC,CAAA;AAC7C,wBAAgB,oCAAoC;eAFrC,MAAM;8CAIpB;AAGD,MAAM,MAAM,oCAAoC,GAAG,MAAM,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAA;AAC1H,wBAAgB,oCAAoC,sEAEnD;AASD,MAAM,MAAM,oCAAoC,GAAG,MAAM,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE;IACnF,EAAE,EAAE,MAAM,CAAC;CACd,EAAE,OAAO,CAAC,CAAA;AACX,wBAAgB,oCAAoC;QAF5C,MAAM;YAIb"}
@@ -0,0 +1,13 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { BUILTIN_PLUGIN } from "../../utils/common";
3
+ import { APINames } from "../../export";
4
+ export * from './partner-shipping-address.type';
5
+ export function useCreateParnterShippingAddressQuery() {
6
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useCreateParnterShippingAddressQuery)();
7
+ }
8
+ export function useUpdatePartnerShippingAddressQuery() {
9
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useUpdateParnterShippingAddressQuery)();
10
+ }
11
+ export function useDeletePartnerShippingAddressQuery() {
12
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useDeleteParnterShippingAddressQuery)();
13
+ }
@@ -0,0 +1,38 @@
1
+ import type { CountryDto, DivisionDto, StateDto, TownshipDto } from "../location/location.dto";
2
+ export declare class CreatePartnerShippingAddressDto {
3
+ address: string;
4
+ countryId: number;
5
+ divisionId: number;
6
+ stateId: number;
7
+ townshipId: number;
8
+ postalCode?: string;
9
+ isDefault?: boolean;
10
+ lat?: number;
11
+ lng?: number;
12
+ }
13
+ export declare class UpdatePartnerShippingAddressDto {
14
+ id: number;
15
+ address?: string;
16
+ countryId?: number;
17
+ divisionId?: number;
18
+ stateId?: number;
19
+ townshipId?: number;
20
+ postalCode?: string;
21
+ isDefault?: boolean;
22
+ lat?: number;
23
+ lng?: number;
24
+ }
25
+ export declare class PartnerShippingAddressDto {
26
+ id: number;
27
+ partnerId: number;
28
+ address?: string;
29
+ country?: CountryDto;
30
+ township?: TownshipDto;
31
+ state?: StateDto;
32
+ division?: DivisionDto;
33
+ postalCode?: string;
34
+ isDefault: boolean;
35
+ lat?: number;
36
+ lng?: number;
37
+ }
38
+ //# sourceMappingURL=partner-shipping-address.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partner-shipping-address.type.d.ts","sourceRoot":"","sources":["../../../src/api/partner-shipping-address/partner-shipping-address.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE/F,qBAAa,+BAA+B;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,qBAAa,+BAA+B;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,qBAAa,yBAAyB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,QAAQ,CAAC,EAAE,WAAW,CAAA;IACtB,KAAK,CAAC,EAAE,QAAQ,CAAA;IAChB,QAAQ,CAAC,EAAE,WAAW,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1,36 @@
1
+ export class CreatePartnerShippingAddressDto {
2
+ address;
3
+ countryId;
4
+ divisionId;
5
+ stateId;
6
+ townshipId;
7
+ postalCode;
8
+ isDefault;
9
+ lat;
10
+ lng;
11
+ }
12
+ export class UpdatePartnerShippingAddressDto {
13
+ id;
14
+ address;
15
+ countryId;
16
+ divisionId;
17
+ stateId;
18
+ townshipId;
19
+ postalCode;
20
+ isDefault;
21
+ lat;
22
+ lng;
23
+ }
24
+ export class PartnerShippingAddressDto {
25
+ id;
26
+ partnerId;
27
+ address;
28
+ country;
29
+ township;
30
+ state;
31
+ division;
32
+ postalCode;
33
+ isDefault;
34
+ lat;
35
+ lng;
36
+ }
@@ -0,0 +1,8 @@
1
+ import type { StoreApi, UseBoundStore } from "zustand";
2
+ import type { AllowedAPIPermissionState, ProtectedPropsType } from "./permission.type";
3
+ import type { ReactNode } from "react";
4
+ export * from './permission.type';
5
+ export type UseAllowedAPIPermissions = () => UseBoundStore<StoreApi<AllowedAPIPermissionState>>;
6
+ export declare function useAllowedAPIPermission(): UseAllowedAPIPermissions;
7
+ export declare function Protected(props: ProtectedPropsType): ReactNode;
8
+ //# sourceMappingURL=permission.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.export.d.ts","sourceRoot":"","sources":["../../../src/api/permission/permission.export.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,cAAc,mBAAmB,CAAA;AAEjC,MAAM,MAAM,wBAAwB,GAAG,MAAM,aAAa,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC,CAAA;AAC/F,wBAAgB,uBAAuB,6BAEtC;AAKD,wBAAgB,SAAS,CAAC,KAAK,EAAE,kBAAkB,aAElD"}
@@ -0,0 +1,10 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { APINames } from "../../export";
3
+ import { BUILTIN_PLUGIN } from "../../utils/common";
4
+ export * from './permission.type';
5
+ export function useAllowedAPIPermission() {
6
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.AllowedAPIPermissions);
7
+ }
8
+ export function Protected(props) {
9
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.Protected)(props);
10
+ }
@@ -0,0 +1,5 @@
1
+ import type { ApiPermission, WithApiMetadataFetchFn } from "@quan-erp/shared-types";
2
+ import type { AnyPermissionTypes, ApiPermissionTypes, WithApiPermissionTypes } from "./permission.type";
3
+ export declare function normalizeRequiredApi(requiredApis: null | undefined | ApiPermissionTypes | (() => ApiPermissionTypes) | WithApiPermissionTypes | (() => WithApiPermissionTypes) | AnyPermissionTypes): ApiPermission[];
4
+ export declare function withApiMetadataFetchFn<T extends (...args: any[]) => any>(p: WithApiMetadataFetchFn<T>): WithApiMetadataFetchFn<T>;
5
+ //# sourceMappingURL=permission.lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.lib.d.ts","sourceRoot":"","sources":["../../../src/api/permission/permission.lib.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGxG,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,IAAI,GAAG,SAAS,GAAG,kBAAkB,GAAG,CAAC,MAAM,kBAAkB,CAAC,GAAG,sBAAsB,GAAG,CAAC,MAAM,sBAAsB,CAAC,GAAG,kBAAkB,GAAG,aAAa,EAAE,CAoBrN;AAED,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAEjI"}
@@ -0,0 +1,24 @@
1
+ export function normalizeRequiredApi(requiredApis) {
2
+ if (requiredApis === null || requiredApis === undefined)
3
+ return [];
4
+ if (typeof requiredApis === 'function') {
5
+ return normalizeRequiredApi(requiredApis());
6
+ }
7
+ if (Array.isArray(requiredApis)) {
8
+ if (requiredApis.length === 0)
9
+ return [];
10
+ return requiredApis.map(r => {
11
+ if ("api" in r && "fetchFn" in r) {
12
+ return r.api;
13
+ }
14
+ return r;
15
+ });
16
+ }
17
+ if ("api" in requiredApis && "fetchFn" in requiredApis) {
18
+ return [requiredApis.api];
19
+ }
20
+ return [requiredApis];
21
+ }
22
+ export function withApiMetadataFetchFn(p) {
23
+ return p;
24
+ }
@@ -0,0 +1,32 @@
1
+ import type { ApiPermission, WithApiMetadataFetchFn } from "@quan-erp/shared-types";
2
+ import type { HtmlHTMLAttributes, ReactNode } from "react";
3
+ export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS' | 'HEAD';
4
+ export type Permissions = ApiPermission & {
5
+ allow: boolean;
6
+ };
7
+ export type ApiPermissionTypes = ApiPermission | ApiPermission[];
8
+ export type WithApiPermissionTypes = WithApiMetadataFetchFn<any> | WithApiMetadataFetchFn<any>[];
9
+ export type AnyPermissionTypes = (ApiPermission | WithApiMetadataFetchFn<any>)[];
10
+ export interface AllowedAPIPermissionState {
11
+ allowedAPIs: Permissions[];
12
+ cached: Record<string, boolean>;
13
+ setAllowedAPIPermission: (api: Permissions | Permissions[]) => void;
14
+ include(api: ApiPermission[]): boolean[];
15
+ checkIsAllowAPI: (requiredApis: ApiPermission[], apiList?: Permissions[] | Record<string, boolean>, props?: {
16
+ userRoleId?: number;
17
+ }) => boolean;
18
+ }
19
+ export type ProtectedPropsType = {
20
+ children: ReactNode;
21
+ pluginName?: string;
22
+ parentClassName?: string;
23
+ parentHTMLDivAttribute?: HtmlHTMLAttributes<HTMLDivElement>;
24
+ warpperClassName?: string;
25
+ warpperHTMLDivAttributes?: HtmlHTMLAttributes<HTMLDivElement>;
26
+ showProtectedFallbackAs?: 'restricted' | 'route-not-found' | 'hidden' | 'custom';
27
+ protectedFallbackComponent?: ReactNode;
28
+ participateInAssistantGuide?: boolean;
29
+ enableProtection?: boolean;
30
+ requiredApis: ApiPermission | ApiPermission[] | (() => (ApiPermission | ApiPermission[])) | WithApiMetadataFetchFn<any> | WithApiMetadataFetchFn<any>[] | AnyPermissionTypes;
31
+ };
32
+ //# sourceMappingURL=permission.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.type.d.ts","sourceRoot":"","sources":["../../../src/api/permission/permission.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAK1F,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG;IACtC,KAAK,EAAE,OAAO,CAAC;CAClB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,aAAa,EAAE,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC,GAAG,CAAC,GAAG,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAA;AAChG,MAAM,MAAM,kBAAkB,GAAG,CAAC,aAAa,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAC,EAAE,CAAA;AAEhF,MAAM,WAAW,yBAAyB;IACtC,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,uBAAuB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,WAAW,EAAE,KAAK,IAAI,CAAC;IACpE,OAAO,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IACzC,eAAe,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAA;CAClJ;AAGD,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAC9D,uBAAuB,CAAC,EAAE,YAAY,GAAG,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACjF,0BAA0B,CAAC,EAAE,SAAS,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,EAAE,aAAa,GAAG,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,aAAa,GAAG,aAAa,EAAE,CAAC,CAAC,GACzF,sBAAsB,CAAC,GAAG,CAAC,GAAG,sBAAsB,CAAC,GAAG,CAAC,EAAE,GAC3D,kBAAkB,CAAA;CACrB,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { RequestDto, type RequestIndexPaginationDto } from "@quan-erp/shared-frontend-core";
2
+ import { type UseQueryOptions } from "@tanstack/react-query";
3
+ import type { RoleDto } from "./role-permission.dto";
4
+ export declare const getRoleApi: import("@quan-erp/shared-types").WithApiMetadataFetchFn<(skip?: number, limit?: number, options?: {
5
+ search?: string;
6
+ }) => Promise<RoleDto[]>>;
7
+ export declare const ROLE_QUERY_CACHE_KEY = "role";
8
+ export declare function useRoleQuery(query?: RequestIndexPaginationDto, option?: Omit<UseQueryOptions<RoleDto[]>, 'queryFn' | 'queryKey'>): import("@tanstack/react-query").UseQueryResult<NoInfer<RoleDto[]>, Error>;
9
+ export interface CreateRoleDto {
10
+ name: string;
11
+ initialPageRoute?: string | undefined | null;
12
+ }
13
+ export declare const createRoleApi: import("@quan-erp/shared-types").WithApiMetadataFetchFn<(role: CreateRoleDto) => Promise<import("axios").AxiosResponse<any, RequestDto<CreateRoleDto>, {}, any>>>;
14
+ export declare const updateRoleByIdApi: import("@quan-erp/shared-types").WithApiMetadataFetchFn<(id: number, role: CreateRoleDto) => Promise<import("axios").AxiosResponse<any, RequestDto<CreateRoleDto>, {}, any>>>;
15
+ export declare function useCreateRoleQuery({ isUpdate }?: {
16
+ isUpdate?: boolean;
17
+ }): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<any, RequestDto<CreateRoleDto>, {}, any>, Error, {
18
+ id?: number;
19
+ role: CreateRoleDto;
20
+ }, unknown>;
21
+ export declare function useUpdateRoleQuery(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<any, RequestDto<CreateRoleDto>, {}, any>, Error, {
22
+ id?: number;
23
+ role: CreateRoleDto;
24
+ }, unknown>;
25
+ //# sourceMappingURL=role-permission.api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-permission.api.d.ts","sourceRoot":"","sources":["../../../src/api/role-permission/role-permission.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGpF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAMrD,eAAO,MAAM,UAAU,kEAEG,MAAM,UAAa,MAAM,YAAiB;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAU1G,CAAC;AAEH,eAAO,MAAM,oBAAoB,SAAS,CAAA;AAC1C,wBAAgB,YAAY,CACxB,KAAK,GAAE,yBAA8B,EACrC,MAAM,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,6EASpE;AAQD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAC/C;AAED,eAAO,MAAM,aAAa,iEAEA,aAAa,qFAGrC,CAAC;AACH,eAAO,MAAM,iBAAiB,+DAEN,MAAM,QAAQ,aAAa,qFAGjD,CAAC;AACH,wBAAgB,kBAAkB,CAAC,EAAE,QAAgB,EAAE,GAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO;SAE1C,MAAM;UAAQ,aAAa;YAapE;AAID,wBAAgB,kBAAkB;SAEQ,MAAM;UAAQ,aAAa;YASpE"}
@@ -0,0 +1,71 @@
1
+ import { RequestDto } from "@quan-erp/shared-frontend-core";
2
+ import { useMutation, useQuery } from "@tanstack/react-query";
3
+ import axiosClient from "../../utils/axios-client";
4
+ import { useAppRegistry } from "../../plugin/app-state";
5
+ import { DEFAULT_STALE_TIME } from "../../utils/common";
6
+ import { resolveIndexPagination } from "../../utils/pagination";
7
+ import { withApiMetadataFetchFn } from "../permission/permission.lib";
8
+ export const getRoleApi = withApiMetadataFetchFn({
9
+ api: { method: 'GET', url: '/role' },
10
+ fetchFn: async (skip = 0, limit = 10, options) => {
11
+ const response = await axiosClient.get(`/role`, {
12
+ params: {
13
+ skip,
14
+ limit,
15
+ search: options?.search
16
+ }
17
+ });
18
+ return response.data.payload;
19
+ }
20
+ });
21
+ export const ROLE_QUERY_CACHE_KEY = 'role';
22
+ export function useRoleQuery(query = {}, option) {
23
+ const { currentPage, pageSize, skip, query: search } = resolveIndexPagination(query);
24
+ return useQuery({
25
+ queryKey: [ROLE_QUERY_CACHE_KEY, currentPage, pageSize, search],
26
+ staleTime: DEFAULT_STALE_TIME,
27
+ queryFn: () => getRoleApi.fetchFn(skip, pageSize, search ? { search } : undefined),
28
+ ...(option || {}),
29
+ });
30
+ }
31
+ export const createRoleApi = withApiMetadataFetchFn({
32
+ api: { method: 'POST', url: '/role' },
33
+ fetchFn: async (role) => {
34
+ return await axiosClient.post('/role', new RequestDto(role));
35
+ }
36
+ });
37
+ export const updateRoleByIdApi = withApiMetadataFetchFn({
38
+ api: { method: 'PUT', url: '/role/:id' },
39
+ fetchFn: async (id, role) => {
40
+ return await axiosClient.put(`/role/${id}`, new RequestDto(role));
41
+ }
42
+ });
43
+ export function useCreateRoleQuery({ isUpdate = false } = {}) {
44
+ return useMutation({
45
+ mutationFn: ({ id, role }) => {
46
+ if (isUpdate) {
47
+ return updateRoleByIdApi.fetchFn(id, role);
48
+ }
49
+ else {
50
+ return createRoleApi.fetchFn(role);
51
+ }
52
+ },
53
+ onSuccess: () => {
54
+ setTimeout(() => {
55
+ useAppRegistry.getState().queryClient.invalidateQueries({ queryKey: [ROLE_QUERY_CACHE_KEY], exact: false });
56
+ }, 500);
57
+ }
58
+ });
59
+ }
60
+ export function useUpdateRoleQuery() {
61
+ return useMutation({
62
+ mutationFn: ({ id, role }) => {
63
+ return updateRoleByIdApi.fetchFn(id, role);
64
+ },
65
+ onSuccess: () => {
66
+ setTimeout(() => {
67
+ useAppRegistry.getState().queryClient.invalidateQueries({ queryKey: [ROLE_QUERY_CACHE_KEY], exact: false });
68
+ }, 500);
69
+ }
70
+ });
71
+ }
@@ -0,0 +1,6 @@
1
+ export interface RoleDto {
2
+ id: number;
3
+ name: string;
4
+ initialPageRoute?: string | undefined | null;
5
+ }
6
+ //# sourceMappingURL=role-permission.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-permission.dto.d.ts","sourceRoot":"","sources":["../../../src/api/role-permission/role-permission.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAC/C"}
@@ -0,0 +1,11 @@
1
+ import { type RequestIndexPaginationDto } from "@quan-erp/shared-frontend-core";
2
+ import type { UseMutationResult, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
3
+ import type { RoleDto } from "./role-permission.dto";
4
+ import type { CreateRoleDto } from "./role-permission.api";
5
+ import type { AxiosResponse } from "axios";
6
+ export declare function useRoleQuery(query?: RequestIndexPaginationDto, option?: Omit<UseQueryOptions<RoleDto[]>, 'queryFn' | 'queryKey'>): UseQueryResult<RoleDto[], Error>;
7
+ export declare function useUpdateRoleQuery(): UseMutationResult<AxiosResponse<any, any, {}, any>, Error, {
8
+ id?: number;
9
+ role: CreateRoleDto;
10
+ }, unknown>;
11
+ //# sourceMappingURL=role-permission.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-permission.export.d.ts","sourceRoot":"","sources":["../../../src/api/role-permission/role-permission.export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAG3F,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAQ3C,wBAAgB,YAAY,CACxB,KAAK,GAAE,yBAA8B,EACrC,MAAM,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,oCAGpE;AAOD,wBAAgB,kBAAkB;SAHzB,MAAM;UACL,aAAa;YAItB"}
@@ -0,0 +1,9 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { APINames } from "../../export";
3
+ import { BUILTIN_PLUGIN } from "../../utils/common";
4
+ export function useRoleQuery(query = {}, option) {
5
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useRoleQuery)(query, option);
6
+ }
7
+ export function useUpdateRoleQuery() {
8
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useUpdateRoleQuery)();
9
+ }
@@ -0,0 +1,14 @@
1
+ import { type UseQueryOptions } from "@tanstack/react-query";
2
+ import type { SettingMapValue } from "./setting.type";
3
+ export declare const getPrivateSettingApi: import("@quan-erp/shared-types").WithApiMetadataFetchFn<() => Promise<SettingMapValue>>;
4
+ export declare const getPublicSettingApi: import("@quan-erp/shared-types").WithApiMetadataFetchFn<(props?: {
5
+ baseUrl?: string;
6
+ }) => Promise<SettingMapValue>>;
7
+ export declare const SETTING_QUERY_KEY = "setting";
8
+ export declare function useSettingQuery(param: {
9
+ mode: 'private' | 'public';
10
+ }, option?: Omit<UseQueryOptions<SettingMapValue>, 'queryFn' | 'queryKey'>): import("@tanstack/react-query").UseQueryResult<NoInfer<SettingMapValue>, Error>;
11
+ export declare function useUpdateSettingQuery({ many }?: {
12
+ many: boolean;
13
+ }): import("@tanstack/react-query").UseMutationResult<any, Error, SettingMapValue, unknown>;
14
+ //# sourceMappingURL=setting.api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting.api.d.ts","sourceRoot":"","sources":["../../../src/api/setting/setting.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIpF,OAAO,KAAK,EAAmB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AASvE,eAAO,MAAM,oBAAoB,gEAEV,OAAO,CAAC,eAAe,CAAC,CAI7C,CAAA;AAEF,eAAO,MAAM,mBAAmB,mEAEJ;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,OAAO,CAAC,eAAe,CAAC,CAMzE,CAAA;AACF,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,wBAAgB,eAAe,CAC3B,KAAK,EAAE;IAAE,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAA;CAAE,EACrC,MAAM,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,mFAiB1E;AAmBD,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,GAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAoB,2FAoBlF"}