@wisemen/wise-crm-web 1.3.0 → 2.0.0-alpha.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 (728) hide show
  1. package/dist/BusinessDetailView-D8HooXJV.js +27 -0
  2. package/dist/CrmDetailView.vue_vue_type_script_setup_true_lang-BkLvUQyy.js +90 -0
  3. package/dist/DealCommunicationTabView-D6zhIjxy.js +199 -0
  4. package/dist/DealDetailView-CgbWlPgR.js +1393 -0
  5. package/dist/IndividualDetailView-B9LzHUAR.js +27 -0
  6. package/dist/index-BCf_EIrG.js +16643 -0
  7. package/dist/index.css +1 -0
  8. package/dist/index.d.ts +1694 -1288
  9. package/dist/index.js +27 -5598
  10. package/dist/style.css +1 -2
  11. package/dist/style.d.ts +1 -0
  12. package/dist/testing.d.ts +66 -0
  13. package/dist/testing.js +386 -366
  14. package/dist/uuid.util-B9bkU4IX.js +6560 -0
  15. package/package.json +56 -45
  16. package/README.md +0 -1037
  17. package/dist/ActivityIcon-DNdtN-M_.js +0 -19
  18. package/dist/AppSkeletonLoader-Chnz5oZv.js +0 -1099
  19. package/dist/AttachmentIcon-BLUd7LaN.js +0 -19
  20. package/dist/BoldIcon-WRYUWz15.js +0 -16
  21. package/dist/BookIcon-Bb3r5y_J.js +0 -19
  22. package/dist/BuildingIcon-DFutRg8d.js +0 -19
  23. package/dist/BuildingsIcon-BVHy6yoa.js +0 -19
  24. package/dist/BulletListIcon-BhOXLSBa.js +0 -16
  25. package/dist/BusinessDetailSidebarProvider-D__S8sa1.js +0 -2946
  26. package/dist/BusinessDetailView-Cu96XfzM.js +0 -24
  27. package/dist/ChevronDownIcon-BmyTSPND.js +0 -19
  28. package/dist/ClockIcon-BYfZAvIE.js +0 -23
  29. package/dist/ClockPlusIcon-BcNi0Y9I.js +0 -23
  30. package/dist/CopyIcon-2eV8MRv_.js +0 -19
  31. package/dist/CrmDetailHeaderCard-CacrRk2b.js +0 -2523
  32. package/dist/CrmDetailView-BJb6FSsY.js +0 -67
  33. package/dist/DealCommunicationTabView-CA1mbm_c.js +0 -140
  34. package/dist/DealDetailView-aB7D0WZu.js +0 -1049
  35. package/dist/DealExternalAttachment-wYY7tzfj.js +0 -179
  36. package/dist/DealIcon-BwUWYDxo.js +0 -19
  37. package/dist/DealSendMailDialog-CMcszATV.js +0 -1566
  38. package/dist/DownloadCloudIcon-BSrLGGrY.js +0 -19
  39. package/dist/EditWithLineIcon-BKYDPJOY.js +0 -19
  40. package/dist/Error-D6dRLq_g.js +0 -13186
  41. package/dist/FileIcon-DL1e1tAu.js +0 -19
  42. package/dist/FilterLinesIcon-DgVMySAE.js +0 -22
  43. package/dist/H1Icon-B6NEsEbj.js +0 -17
  44. package/dist/H2Icon-CNof5Ohu.js +0 -17
  45. package/dist/H3Icon-B2F2Tb6r.js +0 -17
  46. package/dist/HashIcon-C_XttKfW.js +0 -19
  47. package/dist/HomeFilledIcon-DtZ2eXxt.js +0 -16
  48. package/dist/IndividualDetailSidebarProvider-DZxDw1zQ.js +0 -609
  49. package/dist/IndividualDetailView-BeCdDJDk.js +0 -24
  50. package/dist/ItalicIcon-DqBns3yy.js +0 -17
  51. package/dist/LayersTreeIcon-DZZCSCY9.js +0 -23
  52. package/dist/LinkBrokenIcon-BNBpWSi7.js +0 -19
  53. package/dist/LinkExternalIcon-B7SHeB1_.js +0 -19
  54. package/dist/LinkIcon-8bCrZEv9.js +0 -17
  55. package/dist/LocationPinIcon-UySRqSfG.js +0 -19
  56. package/dist/MailIcon-BT7gSIZb.js +0 -19
  57. package/dist/MobilePhoneIcon-_KQGnCSS.js +0 -19
  58. package/dist/NumberedListIcon-B-JVTSAe.js +0 -17
  59. package/dist/PhoneIcon-DGGW_MNR.js +0 -19
  60. package/dist/RefreshIcon-D1QWfdPD.js +0 -19
  61. package/dist/SendIcon-BtJ-NCec.js +0 -19
  62. package/dist/SettingsIcon-CWFwJelS.js +0 -25
  63. package/dist/StarOutlineIcon-C-ELTCDQ.js +0 -19
  64. package/dist/StarYellowIcon-7wuNWaQO.js +0 -19
  65. package/dist/ThreeDotsIcon-C56RWk-0.js +0 -32
  66. package/dist/TimeLineMarkerIcon-DLmPwfs6.js +0 -18
  67. package/dist/TrashIcon-o4PWmcYe.js +0 -20
  68. package/dist/UploadCloudIcon-D2tWB0NP.js +0 -19
  69. package/dist/UserCircleIcon-DiDajcIH.js +0 -23
  70. package/dist/UserIcon-Bv1eF7ln.js +0 -22
  71. package/dist/VerticalDotsIcon-YcD73UqY.js +0 -20
  72. package/dist/WalletIcon-CUh92U5K.js +0 -19
  73. package/dist/_plugin-vue_export-helper-D3hKq4w_.js +0 -8
  74. package/dist/api/mutations/business/businessAddChildBusiness.mutation.d.ts +0 -8
  75. package/dist/api/mutations/business/businessBillingInformationUpsert.mutation.d.ts +0 -9
  76. package/dist/api/mutations/business/businessContactPersonUpdate.mutation.d.ts +0 -10
  77. package/dist/api/mutations/business/businessCreate.mutation.d.ts +0 -33
  78. package/dist/api/mutations/business/businessLinkContactPerson.mutation.d.ts +0 -13
  79. package/dist/api/mutations/business/businessPrimaryContactPersonUpdate.mutation.d.ts +0 -9
  80. package/dist/api/mutations/business/businessUnlinkContactPerson.mutation.d.ts +0 -10
  81. package/dist/api/mutations/business/businessUpdate.mutation.d.ts +0 -31
  82. package/dist/api/mutations/contactPersonCreate.mutation.d.ts +0 -11
  83. package/dist/api/mutations/deal/dealContactPersonUpdate.mutation.d.ts +0 -12
  84. package/dist/api/mutations/deal/dealCreate.mutation.d.ts +0 -10
  85. package/dist/api/mutations/deal/dealLinkContactPerson.mutation.d.ts +0 -12
  86. package/dist/api/mutations/deal/dealSetPrimaryContactPerson.mutation.d.ts +0 -14
  87. package/dist/api/mutations/deal/dealTransition.mutation.d.ts +0 -10
  88. package/dist/api/mutations/deal/dealUnlinkContactPerson.mutation.d.ts +0 -10
  89. package/dist/api/mutations/deal/dealUpdate.mutation.d.ts +0 -30
  90. package/dist/api/mutations/individual/individualBillingInformationUpdate.mutation.d.ts +0 -7
  91. package/dist/api/mutations/individual/individualContactPersonUpdate.mutation.d.ts +0 -14
  92. package/dist/api/mutations/individual/individualCreate.mutation.d.ts +0 -2
  93. package/dist/api/mutations/individual/individualGrant.mutation.d.ts +0 -8
  94. package/dist/api/mutations/individual/individualLinkContactPerson.mutation.d.ts +0 -13
  95. package/dist/api/mutations/individual/individualSetPrimaryContactPerson.mutation.d.ts +0 -13
  96. package/dist/api/mutations/individual/individualUnlinkContactPerson.mutation.d.ts +0 -9
  97. package/dist/api/mutations/individual/individualUpdate.mutation.d.ts +0 -27
  98. package/dist/api/mutations/mail/mailCreate.mutation.d.ts +0 -10
  99. package/dist/api/mutations/mail-template/mailTemplateUpdate.mutation.d.ts +0 -23
  100. package/dist/api/mutations/noteBusinessCreate.mutation.d.ts +0 -8
  101. package/dist/api/mutations/noteDealCreate.mutation.d.ts +0 -8
  102. package/dist/api/mutations/noteDelete.mutation.d.ts +0 -6
  103. package/dist/api/mutations/noteIndividualCreate.mutation.d.ts +0 -8
  104. package/dist/api/mutations/noteUpdate.mutation.d.ts +0 -13
  105. package/dist/api/queries/board/boardColumnTransition.query.d.ts +0 -5
  106. package/dist/api/queries/board/boardColumnsIndex.query.d.ts +0 -2
  107. package/dist/api/queries/business/businessActivityIndex.query.d.ts +0 -7
  108. package/dist/api/queries/business/businessBillingInformation.query.d.ts +0 -5
  109. package/dist/api/queries/business/businessContactPersonDetail.query.d.ts +0 -6
  110. package/dist/api/queries/business/businessDetail.query.d.ts +0 -5
  111. package/dist/api/queries/business/businessIndex.query.d.ts +0 -221
  112. package/dist/api/queries/business/businessStatistics.query.d.ts +0 -3
  113. package/dist/api/queries/cbe/cbeEnterpriseSearchByTerm.query.d.ts +0 -3
  114. package/dist/api/queries/deal/dealContactPersonDetail.query.d.ts +0 -5
  115. package/dist/api/queries/deal/dealDetail.query.d.ts +0 -4
  116. package/dist/api/queries/deal/dealIndex.query.d.ts +0 -220
  117. package/dist/api/queries/globalSearch.queries.d.ts +0 -5
  118. package/dist/api/queries/individual/individualActivityIndex.query.d.ts +0 -7
  119. package/dist/api/queries/individual/individualBillingInformation.query.d.ts +0 -5
  120. package/dist/api/queries/individual/individualContactPersonDetail.query.d.ts +0 -5
  121. package/dist/api/queries/individual/individualDetail.query.d.ts +0 -5
  122. package/dist/api/queries/individual/individualIndex.query.d.ts +0 -220
  123. package/dist/api/queries/individual/individualStatistics.query.d.ts +0 -3
  124. package/dist/api/queries/mail/mailIndex.query.d.ts +0 -4
  125. package/dist/api/queries/mail-template/mailTemplateDetail.query.d.ts +0 -5
  126. package/dist/api/queries/mail-template/mailTemplateIndex.query.d.ts +0 -220
  127. package/dist/api/queries/noteBusinessIndex.query.d.ts +0 -222
  128. package/dist/api/queries/noteDealIndex.query.d.ts +0 -222
  129. package/dist/api/queries/noteIndividualIndex.query.d.ts +0 -222
  130. package/dist/api/queries/recentEntities.query.d.ts +0 -220
  131. package/dist/api/queries/user/userIndex.query.d.ts +0 -220
  132. package/dist/api/services/board.service.d.ts +0 -8
  133. package/dist/api/services/business.service.d.ts +0 -34
  134. package/dist/api/services/cbe.service.d.ts +0 -5
  135. package/dist/api/services/customFieldDefinition.service.d.ts +0 -5
  136. package/dist/api/services/deal.service.d.ts +0 -27
  137. package/dist/api/services/globalSearch.service.d.ts +0 -5
  138. package/dist/api/services/individual.service.d.ts +0 -34
  139. package/dist/api/services/mail.service.d.ts +0 -10
  140. package/dist/api/services/mailTemplate.service.d.ts +0 -12
  141. package/dist/api/services/note.service.d.ts +0 -20
  142. package/dist/api/services/recentEntities.service.d.ts +0 -6
  143. package/dist/api/services/tenantConfig.service.d.ts +0 -4
  144. package/dist/api/services/user.service.d.ts +0 -6
  145. package/dist/business/BusinessAutocomplete.vue.d.ts +0 -24
  146. package/dist/business/BusinessDialog.vue.d.ts +0 -15
  147. package/dist/business/businessDialog.context.d.ts +0 -7
  148. package/dist/business/content/BusinessAddExistingChildForm.vue.d.ts +0 -12
  149. package/dist/business/content/BusinessBillingInformationCard.vue.d.ts +0 -7
  150. package/dist/business/content/BusinessBillingInformationUpdateForm.vue.d.ts +0 -13
  151. package/dist/business/content/BusinessContactPersonUpdateForm.vue.d.ts +0 -9
  152. package/dist/business/content/BusinessInfoForm.vue.d.ts +0 -11
  153. package/dist/business/content/BusinessInfoUpdateCard.vue.d.ts +0 -11
  154. package/dist/business/dialogs/BusinessAddChildBusinessDialog.vue.d.ts +0 -11
  155. package/dist/business/dialogs/BusinessContactPersonCreateDialog.vue.d.ts +0 -22
  156. package/dist/business/dialogs/BusinessContactPersonUpdateDialog.vue.d.ts +0 -13
  157. package/dist/business/routes/business.routes.d.ts +0 -3
  158. package/dist/business/sidebar/BusinessDetailSidebar.vue.d.ts +0 -7
  159. package/dist/business/sidebar/BusinessDetailSidebarAccordionBusinessInfo.vue.d.ts +0 -11
  160. package/dist/business/sidebar/BusinessDetailSidebarAccordionBusinessInfoChildren.vue.d.ts +0 -11
  161. package/dist/business/sidebar/BusinessDetailSidebarActivityContent.vue.d.ts +0 -7
  162. package/dist/business/sidebar/BusinessDetailSidebarNotesContent.vue.d.ts +0 -7
  163. package/dist/business/sidebar/BusinessDetailSidebarOverviewContent.vue.d.ts +0 -7
  164. package/dist/business/sidebar/BusinessDetailSidebarProvider.vue.d.ts +0 -7
  165. package/dist/business/views/BusinessOverview.vue.d.ts +0 -7
  166. package/dist/business/views/components/BusinessOverviewTableNameCell.vue.d.ts +0 -7
  167. package/dist/business/views/detail/BusinessDetailView.vue.d.ts +0 -10
  168. package/dist/client/apiErrorCode.gen.d.ts +0 -93
  169. package/dist/client/client/client.gen.d.ts +0 -2
  170. package/dist/client/client/index.d.ts +0 -7
  171. package/dist/client/client/types.gen.d.ts +0 -124
  172. package/dist/client/client/utils.gen.d.ts +0 -38
  173. package/dist/client/client.gen.d.ts +0 -12
  174. package/dist/client/core/auth.gen.d.ts +0 -18
  175. package/dist/client/core/bodySerializer.gen.d.ts +0 -17
  176. package/dist/client/core/params.gen.d.ts +0 -33
  177. package/dist/client/core/pathSerializer.gen.d.ts +0 -33
  178. package/dist/client/core/serverSentEvents.gen.d.ts +0 -71
  179. package/dist/client/core/types.gen.d.ts +0 -78
  180. package/dist/client/core/utils.gen.d.ts +0 -14
  181. package/dist/client/index.d.ts +0 -2
  182. package/dist/client/sdk.gen.d.ts +0 -154
  183. package/dist/client/types.gen.d.ts +0 -6619
  184. package/dist/client/zod.gen.d.ts +0 -23953
  185. package/dist/client-BpnfhHgS.js +0 -4183
  186. package/dist/component-variants/iconButton.variant.d.ts +0 -2
  187. package/dist/component-variants/index.d.ts +0 -1
  188. package/dist/components/action-tooltip/ActionTooltip.vue.d.ts +0 -27
  189. package/dist/components/action-tooltip/index.d.ts +0 -1
  190. package/dist/components/activity/ActivityList.vue.d.ts +0 -9
  191. package/dist/components/activity/ActivityListItem.vue.d.ts +0 -8
  192. package/dist/components/activity/ActivityListItemMessage.vue.d.ts +0 -7
  193. package/dist/components/animation/AnimateHeight.vue.d.ts +0 -13
  194. package/dist/components/animation/AnimateWidth.vue.d.ts +0 -16
  195. package/dist/components/animation/FormCardSubmitButtonTransition.vue.d.ts +0 -16
  196. package/dist/components/animation/OpenCrmDetailTransition.vue.d.ts +0 -13
  197. package/dist/components/api-error/ApiError.vue.d.ts +0 -7
  198. package/dist/components/app/AppAndOrSeparator.vue.d.ts +0 -13
  199. package/dist/components/app/AppForm.vue.d.ts +0 -32
  200. package/dist/components/app/AppGlobalFormError.vue.d.ts +0 -22
  201. package/dist/components/app/AppGoogleMaps.vue.d.ts +0 -10
  202. package/dist/components/app/AppGrid.vue.d.ts +0 -16
  203. package/dist/components/app/AppIconLabelPair.vue.d.ts +0 -10
  204. package/dist/components/app/AppSidebarFormFooter.vue.d.ts +0 -13
  205. package/dist/components/app/AppSidebarFormSubmitButton.vue.d.ts +0 -14
  206. package/dist/components/app/avatar-name/AppAvatarName.vue.d.ts +0 -6
  207. package/dist/components/app/button/AppUnstyledButton.vue.d.ts +0 -24
  208. package/dist/components/app/card/AppCard.vue.d.ts +0 -20
  209. package/dist/components/app/decorative/GridDecorativeBackgroundPattern.vue.d.ts +0 -3
  210. package/dist/components/app/dialog/AppConfirmDialog.vue.d.ts +0 -19
  211. package/dist/components/app/dialog/AppDialog.vue.d.ts +0 -21
  212. package/dist/components/app/dialog/AppDialogActionCancel.vue.d.ts +0 -8
  213. package/dist/components/app/dialog/AppDialogActionPrimary.vue.d.ts +0 -15
  214. package/dist/components/app/dialog/AppDialogActions.vue.d.ts +0 -13
  215. package/dist/components/app/dialog/AppDialogContainer.vue.d.ts +0 -13
  216. package/dist/components/app/dialog/AppDialogHeader.vue.d.ts +0 -19
  217. package/dist/components/app/dialog/AppDialogStepper.vue.d.ts +0 -25
  218. package/dist/components/app/dialog/AppEntityDialog.vue.d.ts +0 -25
  219. package/dist/components/app/drawer/AppDrawer.vue.d.ts +0 -21
  220. package/dist/components/app/drawer/AppDrawerHeader.vue.d.ts +0 -7
  221. package/dist/components/app/drawer/AppDrawerRoot.vue.d.ts +0 -17
  222. package/dist/components/app/empty-state/AppEmptyState.vue.d.ts +0 -9
  223. package/dist/components/app/group/AppGroup.vue.d.ts +0 -24
  224. package/dist/components/app/height-transition/AppHeightTransition.vue.d.ts +0 -13
  225. package/dist/components/app/infinite-scroll/AppInfiniteScroll.vue.d.ts +0 -19
  226. package/dist/components/app/rich-text-field/AppRichTextField.vue.d.ts +0 -36
  227. package/dist/components/app/rich-text-field/AppRichTextFieldLinkDialog.vue.d.ts +0 -9
  228. package/dist/components/app/separator/AppSeparator.vue.d.ts +0 -8
  229. package/dist/components/app/tags-input-field/AppTagsInputField.vue.d.ts +0 -31
  230. package/dist/components/app/vat-number-field/AppVatNumberField.vue.d.ts +0 -21
  231. package/dist/components/auto-focus/AutoFocus.vue.d.ts +0 -13
  232. package/dist/components/base/fieldset/BaseFieldset.vue.d.ts +0 -13
  233. package/dist/components/base/fieldset/BaseFieldsetLegend.vue.d.ts +0 -17
  234. package/dist/components/base/fieldset/baseFieldset.context.d.ts +0 -5
  235. package/dist/components/button-tooltip/ButtonTooltip.vue.d.ts +0 -25
  236. package/dist/components/cbe/CbeAutocomplete.vue.d.ts +0 -18
  237. package/dist/components/center-content/CenterContent.vue.d.ts +0 -13
  238. package/dist/components/clickable-element/ClickableElement.vue.d.ts +0 -20
  239. package/dist/components/clickable-element/index.d.ts +0 -1
  240. package/dist/components/color-provider/AppColorProvider.vue.d.ts +0 -17
  241. package/dist/components/column-layout/ColumnLayout.vue.d.ts +0 -24
  242. package/dist/components/column-layout/index.d.ts +0 -1
  243. package/dist/components/crm/CrmDetailView.vue.d.ts +0 -22
  244. package/dist/components/crm/CrmOverviewContent.vue.d.ts +0 -3
  245. package/dist/components/crm/search/CrmSearchDialog.vue.d.ts +0 -15
  246. package/dist/components/crm/search/CrmSearchDialogContent.vue.d.ts +0 -13
  247. package/dist/components/crm/search/CrmSearchDialogContentEmptyState.vue.d.ts +0 -12
  248. package/dist/components/crm/search/CrmSearchTrigger.vue.d.ts +0 -8
  249. package/dist/components/crm/search/CrmSearchTriggerActions.vue.d.ts +0 -9
  250. package/dist/components/crm-detail/CrmDetailAccordionRoot.vue.d.ts +0 -19
  251. package/dist/components/crm-detail/CrmDetailContainer.vue.d.ts +0 -13
  252. package/dist/components/crm-detail/CrmDetailContent.vue.d.ts +0 -19
  253. package/dist/components/crm-detail/CrmDetailHeaderCard.vue.d.ts +0 -24
  254. package/dist/components/crm-detail/CrmDetailHeaderContactTooltip.vue.d.ts +0 -7
  255. package/dist/components/crm-detail/CrmDetailSidebarAccordionBillingInformation.vue.d.ts +0 -8
  256. package/dist/components/crm-detail/CrmDetailSidebarAccordionContactPersonInfo.vue.d.ts +0 -14
  257. package/dist/components/crm-detail/CrmDetailSidebarAccordionCustomerInfo.vue.d.ts +0 -7
  258. package/dist/components/crm-detail/CrmDetailSidebarAccordionGenericContactPersonInfo.vue.d.ts +0 -27
  259. package/dist/components/crm-detail/CrmDetailSidebarAccordionHeaderIconButton.vue.d.ts +0 -12
  260. package/dist/components/crm-detail/CrmDetailSidebarAccordionItem.vue.d.ts +0 -24
  261. package/dist/components/crm-detail/CrmDetailSidebarCard.vue.d.ts +0 -13
  262. package/dist/components/crm-detail/CrmDetailSidebarMapCard.vue.d.ts +0 -7
  263. package/dist/components/crm-detail/CrmDetailSidebarTabs.vue.d.ts +0 -29
  264. package/dist/components/custom-field/CustomFieldCheckbox.vue.d.ts +0 -9
  265. package/dist/components/custom-field/CustomFieldDate.vue.d.ts +0 -9
  266. package/dist/components/custom-field/CustomFieldDefinitionForm.vue.d.ts +0 -23
  267. package/dist/components/custom-field/CustomFieldMultiSelect.vue.d.ts +0 -9
  268. package/dist/components/custom-field/CustomFieldNumberField.vue.d.ts +0 -9
  269. package/dist/components/custom-field/CustomFieldRadio.vue.d.ts +0 -9
  270. package/dist/components/custom-field/CustomFieldSelect.vue.d.ts +0 -9
  271. package/dist/components/custom-field/CustomFieldString.vue.d.ts +0 -9
  272. package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +0 -18
  273. package/dist/components/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -13
  274. package/dist/components/dropdown-menu/DropdownMenuHeader.vue.d.ts +0 -6
  275. package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -9
  276. package/dist/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -24
  277. package/dist/components/dropdown-menu/DropdownMenuRadioGroupItem.vue.d.ts +0 -7
  278. package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -3
  279. package/dist/components/dropdown-menu/dropdownMenu.variant.d.ts +0 -1
  280. package/dist/components/dropdown-menu/dropdownMenuItem.type.d.ts +0 -8
  281. package/dist/components/dropdown-menu/index.d.ts +0 -6
  282. package/dist/components/entity-autocomplete/EntityAutocomplete.vue.d.ts +0 -50
  283. package/dist/components/error/Error.vue.d.ts +0 -16
  284. package/dist/components/file-upload/api/services/fileUpload.service.d.ts +0 -5
  285. package/dist/components/file-upload/components/FormFileUpload.vue.d.ts +0 -58
  286. package/dist/components/file-upload/components/FormFileUploadButton.vue.d.ts +0 -9
  287. package/dist/components/file-upload/components/FormFileUploadDropzoneOverlay.vue.d.ts +0 -7
  288. package/dist/components/file-upload/components/FormFileUploadEmptyState.vue.d.ts +0 -11
  289. package/dist/components/file-upload/components/FormFileUploadItem.vue.d.ts +0 -8
  290. package/dist/components/file-upload/components/FormFileUploadItemRight.vue.d.ts +0 -8
  291. package/dist/components/file-upload/components/FormFileUploadList.vue.d.ts +0 -8
  292. package/dist/components/file-upload/components/FormFileUploadSuccessCheckmark.vue.d.ts +0 -3
  293. package/dist/components/filters/FiltersListbox.vue.d.ts +0 -7
  294. package/dist/components/filters/FiltersRoot.vue.d.ts +0 -17
  295. package/dist/components/filters/active/FiltersActive.vue.d.ts +0 -3
  296. package/dist/components/filters/active/FiltersActiveBadge.vue.d.ts +0 -21
  297. package/dist/components/filters/active/FiltersActiveFilterPopover.vue.d.ts +0 -19
  298. package/dist/components/filters/active/FiltersActiveLabel.vue.d.ts +0 -13
  299. package/dist/components/filters/active/FiltersActiveValue.vue.d.ts +0 -17
  300. package/dist/components/filters/active/types/FiltersActiveBoolean.vue.d.ts +0 -7
  301. package/dist/components/filters/active/types/FiltersActiveDate.vue.d.ts +0 -7
  302. package/dist/components/filters/active/types/FiltersActiveDateRange.vue.d.ts +0 -7
  303. package/dist/components/filters/active/types/FiltersActiveMultiSelect.vue.d.ts +0 -7
  304. package/dist/components/filters/active/types/FiltersActiveSelect.vue.d.ts +0 -7
  305. package/dist/components/filters/createFilters.composable.d.ts +0 -9
  306. package/dist/components/filters/dialog/FiltersDateDialog.vue.d.ts +0 -20
  307. package/dist/components/filters/dialog/FiltersDateRangeDialog.vue.d.ts +0 -29
  308. package/dist/components/filters/dialog/filtersDateDialog.composable.d.ts +0 -8
  309. package/dist/components/filters/dialog/filtersDateRangeDialog.composable.d.ts +0 -8
  310. package/dist/components/filters/dropdown-menu/FiltersDropdownMenu.vue.d.ts +0 -3
  311. package/dist/components/filters/dropdown-menu/types/FiltersDropdownMenuBoolean.vue.d.ts +0 -7
  312. package/dist/components/filters/dropdown-menu/types/FiltersDropdownMenuDate.vue.d.ts +0 -7
  313. package/dist/components/filters/dropdown-menu/types/FiltersDropdownMenuDateRange.vue.d.ts +0 -7
  314. package/dist/components/filters/dropdown-menu/types/FiltersDropdownMenuSelect.vue.d.ts +0 -7
  315. package/dist/components/filters/filterValue.composable.d.ts +0 -2
  316. package/dist/components/filters/filters.composable.d.ts +0 -40
  317. package/dist/components/filters/filters.context.d.ts +0 -8
  318. package/dist/components/filters/filters.type.d.ts +0 -65
  319. package/dist/components/filters/index.d.ts +0 -5
  320. package/dist/components/focusable-element/FocusableElement.vue.d.ts +0 -18
  321. package/dist/components/form/FormFieldset.vue.d.ts +0 -21
  322. package/dist/components/image/Image.vue.d.ts +0 -13
  323. package/dist/components/image/ImageBlurhash.vue.d.ts +0 -6
  324. package/dist/components/image/ImageDialog.vue.d.ts +0 -9
  325. package/dist/components/layout-container/DashboardLayoutContainer.vue.d.ts +0 -13
  326. package/dist/components/layout-container/index.d.ts +0 -1
  327. package/dist/components/logo/Logo.vue.d.ts +0 -8
  328. package/dist/components/logo/LogoWithText.vue.d.ts +0 -8
  329. package/dist/components/logo/index.d.ts +0 -2
  330. package/dist/components/notes/NoteForm.vue.d.ts +0 -8
  331. package/dist/components/notes/NoteList.vue.d.ts +0 -15
  332. package/dist/components/open-entity-button/AppOpenEntityButton.vue.d.ts +0 -20
  333. package/dist/components/reveal-on-hover-or-focus/RevealOnHoverOrFocus.vue.d.ts +0 -13
  334. package/dist/components/row-layout/RowLayout.vue.d.ts +0 -24
  335. package/dist/components/skeleton/AppSkeletonItem.vue.d.ts +0 -18
  336. package/dist/components/skeleton-loader/AppSkeletonLoader.vue.d.ts +0 -3
  337. package/dist/components/table/TableActionsLayout.vue.d.ts +0 -15
  338. package/dist/components/table/TableErrorState.vue.d.ts +0 -6
  339. package/dist/components/table/data-table/DataTable.vue.d.ts +0 -40
  340. package/dist/components/table/data-table/DataTableCell.vue.d.ts +0 -20
  341. package/dist/components/table/data-table/DataTableEmptyOrLoadingState.vue.d.ts +0 -15
  342. package/dist/components/table/data-table/DataTableEmptyOrLoadingStateBlurOverlay.vue.d.ts +0 -3
  343. package/dist/components/table/data-table/DataTableHeader.vue.d.ts +0 -3
  344. package/dist/components/table/data-table/DataTableHeaderCell.vue.d.ts +0 -3
  345. package/dist/components/table/data-table/DataTableHeaderCellProvider.vue.d.ts +0 -19
  346. package/dist/components/table/data-table/dataTable.context.d.ts +0 -14
  347. package/dist/components/table/data-table/dataTableHeaderCell.context.d.ts +0 -9
  348. package/dist/components/text/Text.vue.d.ts +0 -30
  349. package/dist/components/text/index.d.ts +0 -1
  350. package/dist/components/text/isTruncated.composable.d.ts +0 -2
  351. package/dist/components/truncate-text/TruncateText.vue.d.ts +0 -9
  352. package/dist/components/zod-error/ZodError.vue.d.ts +0 -7
  353. package/dist/composables/apiErrorToast.composable.d.ts +0 -5
  354. package/dist/composables/contactCreateDialog.composable.d.ts +0 -10
  355. package/dist/composables/context/context.composable.d.ts +0 -8
  356. package/dist/composables/crm.composable.d.ts +0 -12
  357. package/dist/composables/crmConfig.composable.d.ts +0 -32
  358. package/dist/composables/date-time-format/dateTimeFormat.composable.d.ts +0 -8
  359. package/dist/composables/entity-detail/entityDetail.composable.d.ts +0 -6
  360. package/dist/composables/geocode/geocode.composable.d.ts +0 -9
  361. package/dist/composables/google-maps-api-key/googleMapsApiKey.composable.d.ts +0 -5
  362. package/dist/composables/keyboard-shortcut-visibility/keyboardShortcutVisibility.composable.d.ts +0 -2
  363. package/dist/composables/keyset-infinite-query/keysetInfiniteQuery.composable.d.ts +0 -234
  364. package/dist/composables/offset-infinite-query/offsetInfiniteQuery.composable.d.ts +0 -235
  365. package/dist/composables/page-loader/pageLoader.composable.d.ts +0 -7
  366. package/dist/composables/route-query-state/routeQueryState.composable.d.ts +0 -12
  367. package/dist/composables/search/search.composable.d.ts +0 -13
  368. package/dist/composables/sort/sort.composable.d.ts +0 -19
  369. package/dist/composables/stepper/stepper.composable.d.ts +0 -18
  370. package/dist/composables/unsaved-changes/unsavedChanges.composable.d.ts +0 -6
  371. package/dist/contact-person/ContactPersonCreateExisitngForm.vue.d.ts +0 -12
  372. package/dist/contact-person/ContactPersonCreateForm.vue.d.ts +0 -13
  373. package/dist/contact-person/ContactPersonCreateNewForm.vue.d.ts +0 -18
  374. package/dist/contact-person/ContactPersonFormContactField.vue.d.ts +0 -9
  375. package/dist/contact-person/ContactPersonFormNameField.vue.d.ts +0 -8
  376. package/dist/deal/components/DealCommunicationMailList.vue.d.ts +0 -7
  377. package/dist/deal/components/DealCommunicationMailListSectionContainer.vue.d.ts +0 -13
  378. package/dist/deal/components/DealContactPersonCreateExistingForm.vue.d.ts +0 -12
  379. package/dist/deal/components/DealContactPersonCreateNewForm.vue.d.ts +0 -18
  380. package/dist/deal/components/DealCreateDialogExtraInfoForm.vue.d.ts +0 -8
  381. package/dist/deal/components/DealCreateDialogSelectBusinessForm.vue.d.ts +0 -12
  382. package/dist/deal/components/DealCreateDialogStepperForm.vue.d.ts +0 -15
  383. package/dist/deal/components/DealDetailSidebarGeneralInfo.vue.d.ts +0 -7
  384. package/dist/deal/components/DealDetailSidebarNameField.vue.d.ts +0 -7
  385. package/dist/deal/components/DealDetailSidebarOverviewContent.vue.d.ts +0 -7
  386. package/dist/deal/components/DealDetailSidebarTransitionSelect.vue.d.ts +0 -16
  387. package/dist/deal/components/DealDialogSidebarNotesContent.vue.d.ts +0 -7
  388. package/dist/deal/components/DealExternalAttachment.vue.d.ts +0 -7
  389. package/dist/deal/components/DealOverviewColumn.vue.d.ts +0 -13
  390. package/dist/deal/components/DealOverviewColumnItem.vue.d.ts +0 -13
  391. package/dist/deal/components/DealSendMailForm.vue.d.ts +0 -25
  392. package/dist/deal/components/DealSendMailFormAttachmentField.vue.d.ts +0 -60
  393. package/dist/deal/components/DealSendMailFormFooter.vue.d.ts +0 -14
  394. package/dist/deal/components/DealSettingsDialogMailTemplate.vue.d.ts +0 -7
  395. package/dist/deal/components/DealSettingsDialogMailTemplateFooter.vue.d.ts +0 -12
  396. package/dist/deal/components/DealSettingsDialogMailTemplateForm.vue.d.ts +0 -14
  397. package/dist/deal/components/DealSettingsDialogMailTemplateFormFields.vue.d.ts +0 -13
  398. package/dist/deal/components/DealSettingsDialogMailTemplateLocaleField.vue.d.ts +0 -8
  399. package/dist/deal/content/DealContactPersonUpdateForm.vue.d.ts +0 -9
  400. package/dist/deal/dialogs/DealContactPersonCreateDialog.vue.d.ts +0 -22
  401. package/dist/deal/dialogs/DealContactPersonUpdateDialog.vue.d.ts +0 -13
  402. package/dist/deal/dialogs/DealCreateDialog.vue.d.ts +0 -7
  403. package/dist/deal/dialogs/DealSendMailDialog.vue.d.ts +0 -23
  404. package/dist/deal/dialogs/DealSettingsDialog.vue.d.ts +0 -7
  405. package/dist/deal/routes/deal.routes.d.ts +0 -3
  406. package/dist/deal/tab-views/DealCommunicationTabView.vue.d.ts +0 -3
  407. package/dist/deal/views/DealDetailSidebar.vue.d.ts +0 -7
  408. package/dist/deal/views/DealDetailSidebarProvider.vue.d.ts +0 -7
  409. package/dist/deal/views/DealDetailView.vue.d.ts +0 -10
  410. package/dist/deal/views/DealOverview.vue.d.ts +0 -3
  411. package/dist/dialogs/contact-create/ContactCreateDialog.vue.d.ts +0 -17
  412. package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessCbeSearch.vue.d.ts +0 -12
  413. package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessContactPerson.vue.d.ts +0 -12
  414. package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessContactPersonSearch.vue.d.ts +0 -18
  415. package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessForm.vue.d.ts +0 -11
  416. package/dist/dialogs/contact-create/components/ContactCreateDialogBusinessGeneralInfo.vue.d.ts +0 -15
  417. package/dist/dialogs/contact-create/components/ContactCreateDialogContactTypeSection.vue.d.ts +0 -13
  418. package/dist/dialogs/contact-create/components/ContactCreateDialogFooter.vue.d.ts +0 -14
  419. package/dist/dialogs/contact-create/components/ContactCreateDialogFormSection.vue.d.ts +0 -16
  420. package/dist/dialogs/contact-create/components/ContactCreateDialogIndividualForm.vue.d.ts +0 -11
  421. package/dist/dialogs/contact-create/components/animations/ContactCreateDialogContentTransition.vue.d.ts +0 -13
  422. package/dist/dialogs/note/CrmDetailSidebarNotesView.vue.d.ts +0 -19
  423. package/dist/dialogs/note/NoteUpdateDialog.vue.d.ts +0 -15
  424. package/dist/helpers/assert.helper.d.ts +0 -1
  425. package/dist/icons/ActivityIcon.vue.d.ts +0 -3
  426. package/dist/icons/AttachmentIcon.vue.d.ts +0 -3
  427. package/dist/icons/BoldIcon.vue.d.ts +0 -3
  428. package/dist/icons/BookIcon.vue.d.ts +0 -3
  429. package/dist/icons/BuildingIcon.vue.d.ts +0 -3
  430. package/dist/icons/BuildingsIcon.vue.d.ts +0 -3
  431. package/dist/icons/BulletListIcon.vue.d.ts +0 -3
  432. package/dist/icons/ChevronDownIcon.vue.d.ts +0 -3
  433. package/dist/icons/ClockIcon.vue.d.ts +0 -3
  434. package/dist/icons/ClockPlusIcon.vue.d.ts +0 -3
  435. package/dist/icons/CopyIcon.vue.d.ts +0 -3
  436. package/dist/icons/DealIcon.vue.d.ts +0 -3
  437. package/dist/icons/DownloadCloudIcon.vue.d.ts +0 -3
  438. package/dist/icons/EditWithLineIcon.vue.d.ts +0 -3
  439. package/dist/icons/FileIcon.vue.d.ts +0 -3
  440. package/dist/icons/FilterLinesIcon.vue.d.ts +0 -3
  441. package/dist/icons/H1Icon.vue.d.ts +0 -3
  442. package/dist/icons/H2Icon.vue.d.ts +0 -3
  443. package/dist/icons/H3Icon.vue.d.ts +0 -3
  444. package/dist/icons/HashIcon.vue.d.ts +0 -3
  445. package/dist/icons/HomeFilledIcon.vue.d.ts +0 -3
  446. package/dist/icons/ItalicIcon.vue.d.ts +0 -3
  447. package/dist/icons/LayersTreeIcon.vue.d.ts +0 -3
  448. package/dist/icons/LinkBrokenIcon.vue.d.ts +0 -3
  449. package/dist/icons/LinkExternalIcon.vue.d.ts +0 -3
  450. package/dist/icons/LinkIcon.vue.d.ts +0 -3
  451. package/dist/icons/LocationPinIcon.vue.d.ts +0 -3
  452. package/dist/icons/MailIcon.vue.d.ts +0 -3
  453. package/dist/icons/MobilePhoneIcon.vue.d.ts +0 -3
  454. package/dist/icons/NumberedListIcon.vue.d.ts +0 -3
  455. package/dist/icons/PhoneIcon.vue.d.ts +0 -3
  456. package/dist/icons/RefreshIcon.vue.d.ts +0 -3
  457. package/dist/icons/SendIcon.vue.d.ts +0 -3
  458. package/dist/icons/SettingsIcon.vue.d.ts +0 -3
  459. package/dist/icons/StarOutlineIcon.vue.d.ts +0 -3
  460. package/dist/icons/StarYellowIcon.vue.d.ts +0 -3
  461. package/dist/icons/ThreeDotsIcon.vue.d.ts +0 -3
  462. package/dist/icons/TimeLineMarkerIcon.vue.d.ts +0 -3
  463. package/dist/icons/TrashIcon.vue.d.ts +0 -3
  464. package/dist/icons/UploadCloudIcon.vue.d.ts +0 -3
  465. package/dist/icons/UserCircleIcon.vue.d.ts +0 -3
  466. package/dist/icons/UserIcon.vue.d.ts +0 -3
  467. package/dist/icons/VerticalDotsIcon.vue.d.ts +0 -3
  468. package/dist/icons/WalletIcon.vue.d.ts +0 -3
  469. package/dist/icons/icon.d.ts +0 -55
  470. package/dist/individual/IndividualAutocomplete.vue.d.ts +0 -27
  471. package/dist/individual/IndividualDialog.vue.d.ts +0 -15
  472. package/dist/individual/content/IndividualBillingInformationCard.vue.d.ts +0 -7
  473. package/dist/individual/content/IndividualBillingInformationUpdateForm.vue.d.ts +0 -13
  474. package/dist/individual/content/IndividualContactPersonUpdateForm.vue.d.ts +0 -11
  475. package/dist/individual/content/IndividualCustomerInfoForm.vue.d.ts +0 -11
  476. package/dist/individual/content/IndividualInfoUpdateCard.vue.d.ts +0 -7
  477. package/dist/individual/dialogs/IndividualContactPersonCreateDialog.vue.d.ts +0 -22
  478. package/dist/individual/dialogs/IndividualContactPersonUpdateDialog.vue.d.ts +0 -12
  479. package/dist/individual/individualDialog.context.d.ts +0 -7
  480. package/dist/individual/routes/individual.routes.d.ts +0 -3
  481. package/dist/individual/sidebar/IndividualDetailSidebar.vue.d.ts +0 -7
  482. package/dist/individual/sidebar/IndividualDetailSidebarActivityContent.vue.d.ts +0 -7
  483. package/dist/individual/sidebar/IndividualDetailSidebarNotesContent.vue.d.ts +0 -7
  484. package/dist/individual/sidebar/IndividualDetailSidebarOverviewContent.vue.d.ts +0 -7
  485. package/dist/individual/sidebar/IndividualDetailSidebarProvider.vue.d.ts +0 -7
  486. package/dist/individual/views/IndividualOverview.vue.d.ts +0 -7
  487. package/dist/individual/views/components/IndividualOverviewTableNameCell.vue.d.ts +0 -7
  488. package/dist/individual/views/detail/IndividualDetailView.vue.d.ts +0 -10
  489. package/dist/kbo-client/client/client.gen.d.ts +0 -2
  490. package/dist/kbo-client/client/index.d.ts +0 -8
  491. package/dist/kbo-client/client/types.gen.d.ts +0 -117
  492. package/dist/kbo-client/client/utils.gen.d.ts +0 -33
  493. package/dist/kbo-client/client.gen.d.ts +0 -12
  494. package/dist/kbo-client/core/auth.gen.d.ts +0 -18
  495. package/dist/kbo-client/core/bodySerializer.gen.d.ts +0 -25
  496. package/dist/kbo-client/core/params.gen.d.ts +0 -43
  497. package/dist/kbo-client/core/pathSerializer.gen.d.ts +0 -33
  498. package/dist/kbo-client/core/queryKeySerializer.gen.d.ts +0 -18
  499. package/dist/kbo-client/core/serverSentEvents.gen.d.ts +0 -71
  500. package/dist/kbo-client/core/types.gen.d.ts +0 -78
  501. package/dist/kbo-client/core/utils.gen.d.ts +0 -19
  502. package/dist/kbo-client/index.d.ts +0 -2
  503. package/dist/kbo-client/sdk.gen.d.ts +0 -72
  504. package/dist/kbo-client/types.gen.d.ts +0 -2089
  505. package/dist/kbo-client/zod.gen.d.ts +0 -5943
  506. package/dist/libs/http.lib.d.ts +0 -3
  507. package/dist/libs/kboBaseUrl.lib.d.ts +0 -1
  508. package/dist/models/activity/activityIndex.model.d.ts +0 -24
  509. package/dist/models/activity/activityIndex.transformer.d.ts +0 -13
  510. package/dist/models/activity/activityIndexDto.model.d.ts +0 -6
  511. package/dist/models/activity/activityIndexPagination.model.d.ts +0 -5
  512. package/dist/models/activity/activityIndexPaginationDto.model.d.ts +0 -5
  513. package/dist/models/address/address.transformer.d.ts +0 -11
  514. package/dist/models/address/addressCreateForm.model.d.ts +0 -15
  515. package/dist/models/address/addressDetailDto.model.d.ts +0 -2
  516. package/dist/models/address/addressDto.model.d.ts +0 -2
  517. package/dist/models/apiError.model.d.ts +0 -7
  518. package/dist/models/billing-information/billingInformationUuid.model.d.ts +0 -3
  519. package/dist/models/board/boardColumn.model.d.ts +0 -13
  520. package/dist/models/board/boardColumn.transformer.d.ts +0 -5
  521. package/dist/models/board/boardColumnDto.model.d.ts +0 -6
  522. package/dist/models/board/boardColumnUpdate.model.d.ts +0 -7
  523. package/dist/models/board/boardColumnUuid.model.d.ts +0 -3
  524. package/dist/models/board/transition/boardColumnTransition.model.d.ts +0 -20
  525. package/dist/models/board/transition/boardColumnTransition.transformer.d.ts +0 -5
  526. package/dist/models/board/transition/boardColumnTransitionDto.model.d.ts +0 -2
  527. package/dist/models/board/transition/boardColumnTransitionTriggerType.model.d.ts +0 -8
  528. package/dist/models/board/transition/boardColumnTransitionUuid.model.d.ts +0 -3
  529. package/dist/models/brand-colors/brandColor.model.d.ts +0 -14
  530. package/dist/models/brand-colors/brandColor.transformer.d.ts +0 -5
  531. package/dist/models/business/billing-information/businessBillingInformation.model.d.ts +0 -19
  532. package/dist/models/business/billing-information/businessBillingInformation.transformer.d.ts +0 -6
  533. package/dist/models/business/billing-information/businessBillingInformationDto.model.d.ts +0 -2
  534. package/dist/models/business/billing-information/update/businessBillingInformationForm.model.d.ts +0 -90
  535. package/dist/models/business/billing-information/update/businessBillingInformationUpdate.transformer.d.ts +0 -5
  536. package/dist/models/business/billing-information/update/businessBillingInformationUpdateDto.model.d.ts +0 -2
  537. package/dist/models/business/businessUuid.model.d.ts +0 -3
  538. package/dist/models/business/contact-person/businessContactPerson.transformer.d.ts +0 -5
  539. package/dist/models/business/contact-person/businessContactPersonDetail.model.d.ts +0 -13
  540. package/dist/models/business/contact-person/businessContactPersonDetailDto.model.d.ts +0 -2
  541. package/dist/models/business/create/businessCreate.transformer.d.ts +0 -5
  542. package/dist/models/business/create/businessCreateDto.model.d.ts +0 -2
  543. package/dist/models/business/create/businessCreateForm.model.d.ts +0 -80
  544. package/dist/models/business/detail/businessDetail.model.d.ts +0 -47
  545. package/dist/models/business/detail/businessDetail.transformer.d.ts +0 -5
  546. package/dist/models/business/detail/businessDetailDto.model.d.ts +0 -2
  547. package/dist/models/business/index/businessIndex.model.d.ts +0 -11
  548. package/dist/models/business/index/businessIndex.transformer.d.ts +0 -5
  549. package/dist/models/business/index/businessIndexDto.model.d.ts +0 -2
  550. package/dist/models/business/index/businessIndexQueryParams.model.d.ts +0 -3
  551. package/dist/models/business/index/businessIndexQueryParams.transformer.d.ts +0 -6
  552. package/dist/models/business/individualItem.model.d.ts +0 -6
  553. package/dist/models/business/node/businessNode.model.d.ts +0 -14
  554. package/dist/models/business/node/businessNode.transformer.d.ts +0 -5
  555. package/dist/models/business/node/businessNodeDto.model.d.ts +0 -2
  556. package/dist/models/business/statistics/businessStatistics.model.d.ts +0 -5
  557. package/dist/models/business/statistics/businessStatistics.transformer.d.ts +0 -5
  558. package/dist/models/business/update/businessUpdate.transformer.d.ts +0 -5
  559. package/dist/models/business/update/businessUpdateDto.model.d.ts +0 -2
  560. package/dist/models/business/update/businessUpdateForm.model.d.ts +0 -58
  561. package/dist/models/cbe/cbeEnterpriseNumber.model.d.ts +0 -3
  562. package/dist/models/cbe/search/cbeEnterpriseItem.model.d.ts +0 -6
  563. package/dist/models/cbe/search/cbeEnterpriseSearch.model.d.ts +0 -15
  564. package/dist/models/cbe/search/cbeEnterpriseSearch.transformer.d.ts +0 -5
  565. package/dist/models/cbe/search/cbeEnterpriseSearchDto.model.d.ts +0 -2
  566. package/dist/models/conent-locale/contentLocaleEnum.model.d.ts +0 -8
  567. package/dist/models/contact-info/contactInfo.model.d.ts +0 -5
  568. package/dist/models/contact-person/create/contactPersonCreateExistingForm.model.d.ts +0 -12
  569. package/dist/models/contact-person/create/contactPersonCreateForm.model.d.ts +0 -10
  570. package/dist/models/contact-person/update/contactPersonUpdate.transformer.d.ts +0 -5
  571. package/dist/models/contact-person/update/contactPersonUpdateDto.model.d.ts +0 -2
  572. package/dist/models/contact-person/update/contactPersonUpdateForm.model.d.ts +0 -10
  573. package/dist/models/custom-field-definition/customFieldDefinition.transformer.d.ts +0 -5
  574. package/dist/models/custom-field-definition/customFieldDefinitionIndex.model.d.ts +0 -56
  575. package/dist/models/custom-field-definition/customFieldDefinitionIndexDto.model.d.ts +0 -2
  576. package/dist/models/custom-field-definition/customFieldDefinitionRecord.model.d.ts +0 -1
  577. package/dist/models/date/date.transformer.d.ts +0 -11
  578. package/dist/models/deal/contact-person/dealContactPerson.transformer.d.ts +0 -10
  579. package/dist/models/deal/contact-person/dealContactPersonCreateExistingForm.model.d.ts +0 -11
  580. package/dist/models/deal/contact-person/dealContactPersonCreateForm.model.d.ts +0 -9
  581. package/dist/models/deal/contact-person/dealContactPersonDetail.model.d.ts +0 -12
  582. package/dist/models/deal/contact-person/dealContactPersonDetailDto.model.d.ts +0 -2
  583. package/dist/models/deal/contact-person/dealContactPersonUpdateForm.model.d.ts +0 -9
  584. package/dist/models/deal/create/dealCreate.transformer.d.ts +0 -5
  585. package/dist/models/deal/create/dealCreateDto.model.d.ts +0 -2
  586. package/dist/models/deal/create/dealCreateForm.model.d.ts +0 -13
  587. package/dist/models/deal/dealSourceEnum.model.d.ts +0 -6
  588. package/dist/models/deal/dealUuid.model.d.ts +0 -3
  589. package/dist/models/deal/detail/dealDetail.model.d.ts +0 -41
  590. package/dist/models/deal/detail/dealDetail.transformer.d.ts +0 -5
  591. package/dist/models/deal/detail/dealDetailDto.model.d.ts +0 -2
  592. package/dist/models/deal/index/dealIndex.model.d.ts +0 -28
  593. package/dist/models/deal/index/dealIndex.transformer.d.ts +0 -5
  594. package/dist/models/deal/index/dealIndexDto.model.d.ts +0 -2
  595. package/dist/models/deal/index/dealIndexQueryParams.model.d.ts +0 -7
  596. package/dist/models/deal/index/dealIndexQueryParams.tranformer.d.ts +0 -6
  597. package/dist/models/deal/update/dealUpdate.transformer.d.ts +0 -5
  598. package/dist/models/deal/update/dealUpdateDto.model.d.ts +0 -2
  599. package/dist/models/deal/update/dealUpdateForm.model.d.ts +0 -12
  600. package/dist/models/enitityType.model.d.ts +0 -4
  601. package/dist/models/file-reference/fileReference.model.d.ts +0 -21
  602. package/dist/models/file-reference/fileReference.transformer.d.ts +0 -19
  603. package/dist/models/file-reference/fileReferenceForm.model.d.ts +0 -10
  604. package/dist/models/global-search/globalSearchItem.model.d.ts +0 -43
  605. package/dist/models/global-search/globalSearchItem.transformer.d.ts +0 -11
  606. package/dist/models/individual/billing-information/individualBillingInformation.model.d.ts +0 -14
  607. package/dist/models/individual/billing-information/individualBillingInformation.transformer.d.ts +0 -5
  608. package/dist/models/individual/billing-information/individualBillingInformationDto.model.d.ts +0 -2
  609. package/dist/models/individual/billing-information/update/individualBillingInformationForm.model.d.ts +0 -74
  610. package/dist/models/individual/billing-information/update/individualBillingInformationForm.transformer.d.ts +0 -5
  611. package/dist/models/individual/billing-information/update/individualBillingInformationFormDto.model.d.ts +0 -2
  612. package/dist/models/individual/contact-person/individualContactPerson.transformer.d.ts +0 -5
  613. package/dist/models/individual/contact-person/individualContactPersonDetail.model.d.ts +0 -12
  614. package/dist/models/individual/contact-person/individualContactPersonDetailDto.model.d.ts +0 -2
  615. package/dist/models/individual/contact-person/individualDetailContactPerson.model.d.ts +0 -11
  616. package/dist/models/individual/create/individualCreate.transformer.d.ts +0 -5
  617. package/dist/models/individual/create/individualCreateDto.model.d.ts +0 -2
  618. package/dist/models/individual/create/individualCreateForm.model.d.ts +0 -48
  619. package/dist/models/individual/detail/individualDetail.model.d.ts +0 -41
  620. package/dist/models/individual/detail/individualDetail.transformer.d.ts +0 -5
  621. package/dist/models/individual/detail/individualDetailDto.model.d.ts +0 -2
  622. package/dist/models/individual/index/individualIndex.model.d.ts +0 -8
  623. package/dist/models/individual/index/individualIndex.transformer.d.ts +0 -5
  624. package/dist/models/individual/index/individualIndexDto.model.d.ts +0 -2
  625. package/dist/models/individual/index/individualIndexQueryParams.model.d.ts +0 -3
  626. package/dist/models/individual/index/individualIndexQueryParams.transformer.d.ts +0 -6
  627. package/dist/models/individual/individualItem.model.d.ts +0 -6
  628. package/dist/models/individual/individualUuid.model.d.ts +0 -3
  629. package/dist/models/individual/statistics/individualStatistics.model.d.ts +0 -5
  630. package/dist/models/individual/statistics/individualStatistics.transformer.d.ts +0 -5
  631. package/dist/models/individual/update/individualUpdate.transformer.d.ts +0 -7
  632. package/dist/models/individual/update/individualUpdateDto.model.d.ts +0 -2
  633. package/dist/models/individual/update/individualUpdateForm.model.d.ts +0 -51
  634. package/dist/models/locale/locale.model.d.ts +0 -8
  635. package/dist/models/location/locationUuid.model.d.ts +0 -3
  636. package/dist/models/mail/create/mailCreate.transformer.d.ts +0 -6
  637. package/dist/models/mail/create/mailCreateDto.model.d.ts +0 -2
  638. package/dist/models/mail/create/mailCreateForm.model.d.ts +0 -26
  639. package/dist/models/mail/index/mailIndex.model.d.ts +0 -24
  640. package/dist/models/mail/index/mailIndex.transformer.d.ts +0 -8
  641. package/dist/models/mail/index/mailIndexDto.model.d.ts +0 -2
  642. package/dist/models/mail/index/mailIndexQueryParams.model.d.ts +0 -9
  643. package/dist/models/mail/index/mailIndexQueryParams.transformer.d.ts +0 -6
  644. package/dist/models/mail/mailUuid.model.d.ts +0 -3
  645. package/dist/models/mail-template/detail/mailTemplateDetail.model.d.ts +0 -23
  646. package/dist/models/mail-template/detail/mailTemplateDetail.transformer.d.ts +0 -5
  647. package/dist/models/mail-template/detail/mailTemplateDetailDto.model.d.ts +0 -2
  648. package/dist/models/mail-template/index/mailTemplateIndex.model.d.ts +0 -8
  649. package/dist/models/mail-template/index/mailTemplateIndex.transformer.d.ts +0 -5
  650. package/dist/models/mail-template/index/mailTemplateIndexDto.model.d.ts +0 -2
  651. package/dist/models/mail-template/index/mailTemplateIndexQueryParams.model.d.ts +0 -2
  652. package/dist/models/mail-template/index/mailTemplateIndexQueryParams.transformer.d.ts +0 -6
  653. package/dist/models/mail-template/mailTemplateUuid.model.d.ts +0 -3
  654. package/dist/models/mail-template/update/mailTemplateUpdate.transformer.d.ts +0 -5
  655. package/dist/models/mail-template/update/mailTemplateUpdateDto.model.d.ts +0 -2
  656. package/dist/models/mail-template/update/mailTemplateUpdateForm.model.d.ts +0 -36
  657. package/dist/models/notes/create/noteCreateDto.model.d.ts +0 -2
  658. package/dist/models/notes/create/noteCreateForm.model.d.ts +0 -5
  659. package/dist/models/notes/index/noteIndex.model.d.ts +0 -9
  660. package/dist/models/notes/index/noteIndexDto.model.d.ts +0 -2
  661. package/dist/models/notes/index/noteIndexQueryParams.model.d.ts +0 -2
  662. package/dist/models/notes/note.transformer.d.ts +0 -13
  663. package/dist/models/notes/noteUuid.model.d.ts +0 -3
  664. package/dist/models/phone-number/phoneNumberForm.model.d.ts +0 -3
  665. package/dist/models/recent-entities/recentEntities.transformer.d.ts +0 -10
  666. package/dist/models/recent-entities/recentEntitiesIndexQueryParams.d.ts +0 -3
  667. package/dist/models/recent-entities/recentEntitiesItem.model.d.ts +0 -8
  668. package/dist/models/recent-entities/recentEntitiesPagination.model.d.ts +0 -5
  669. package/dist/models/recent-entities/recentEntitiesPaginationDto.model.d.ts +0 -4
  670. package/dist/models/tenant-config/tenantConfig.model.d.ts +0 -30
  671. package/dist/models/tenant-config/tenantConfig.transformer.d.ts +0 -5
  672. package/dist/models/tenant-config/tenantConfigDto.model.d.ts +0 -2
  673. package/dist/models/user/index/userIndex.model.d.ts +0 -12
  674. package/dist/models/user/index/userIndex.transformer.d.ts +0 -5
  675. package/dist/models/user/index/userIndexDto.model.d.ts +0 -11
  676. package/dist/models/user/index/userIndexQueryParams.model.d.ts +0 -3
  677. package/dist/models/user/userUuid.model.d.ts +0 -3
  678. package/dist/models/vat-number/vatNumber.model.d.ts +0 -7
  679. package/dist/models/vat-number/vatNumber.transformer.d.ts +0 -8
  680. package/dist/plugins/dayjs.plugin.d.ts +0 -2
  681. package/dist/plugins/i18n.plugin.d.ts +0 -1266
  682. package/dist/plugins/pinia.plugin.d.ts +0 -1
  683. package/dist/plugins/vueQuery.plugin.d.ts +0 -5
  684. package/dist/routes/crmRoutes.composable.d.ts +0 -12
  685. package/dist/testing/factories/business.factory.d.ts +0 -10
  686. package/dist/testing/factories/deal.factory.d.ts +0 -8
  687. package/dist/testing/factories/factory.util.d.ts +0 -12
  688. package/dist/testing/factories/index.d.ts +0 -5
  689. package/dist/testing/factories/individual.factory.d.ts +0 -10
  690. package/dist/testing/factories/note.factory.d.ts +0 -10
  691. package/dist/testing/factories/tenantConfig.factory.d.ts +0 -5
  692. package/dist/testing/index.d.ts +0 -1
  693. package/dist/types/apiError.type.d.ts +0 -11
  694. package/dist/types/dialog-content-tab/dialogContentTab.type.d.ts +0 -6
  695. package/dist/types/enum.type.d.ts +0 -8
  696. package/dist/types/pagination.type.d.ts +0 -37
  697. package/dist/types/query.type.d.ts +0 -21
  698. package/dist/types/queryKey.type.d.ts +0 -115
  699. package/dist/types/table.type.d.ts +0 -64
  700. package/dist/types/withKeyboardShortcut.type.d.ts +0 -4
  701. package/dist/utils/address.util.d.ts +0 -5
  702. package/dist/utils/apiError.util.d.ts +0 -5
  703. package/dist/utils/belgianSsn.util.d.ts +0 -30
  704. package/dist/utils/color.util.d.ts +0 -6
  705. package/dist/utils/context.util.d.ts +0 -8
  706. package/dist/utils/customFieldDefinition.util.d.ts +0 -5
  707. package/dist/utils/date.util.d.ts +0 -14
  708. package/dist/utils/entityRoute.util.d.ts +0 -8
  709. package/dist/utils/entityType.util.d.ts +0 -10
  710. package/dist/utils/error.util.d.ts +0 -8
  711. package/dist/utils/file.util.d.ts +0 -5
  712. package/dist/utils/form.util.d.ts +0 -9
  713. package/dist/utils/locale.util.d.ts +0 -3
  714. package/dist/utils/logger.util.d.ts +0 -6
  715. package/dist/utils/name.util.d.ts +0 -6
  716. package/dist/utils/object.util.d.ts +0 -14
  717. package/dist/utils/string.util.d.ts +0 -5
  718. package/dist/utils/translation.util.d.ts +0 -4
  719. package/dist/utils/uuid.util.d.ts +0 -3
  720. package/dist/utils/vatNumber.util.d.ts +0 -4
  721. package/dist/uuid.util-DpiDKVoj.js +0 -11
  722. package/dist/widgets/WidgetBusinessStatistics.vue.d.ts +0 -7
  723. package/dist/widgets/WidgetIndividualStatistics.vue.d.ts +0 -7
  724. package/dist/widgets/WidgetRecentlyCreated.vue.d.ts +0 -3
  725. package/dist/widgets/components/WidgetRecentlyCreatedItem.vue.d.ts +0 -11
  726. package/dist/widgets/svg/BackgroundAvatar.vue.d.ts +0 -3
  727. package/dist/widgets/svg/BackgroundBuilding.vue.d.ts +0 -3
  728. package/dist/widgets/svg/BackgroundPattern.vue.d.ts +0 -3
@@ -1,1566 +0,0 @@
1
- import { G as e, H as t, J as n, K as r, L as i, V as a, Y as o, Z as s, at as c, p as l, q as u, z as d } from "./Error-D6dRLq_g.js";
2
- import { a as f, c as p, l as m, o as h, t as g } from "./AppSkeletonLoader-Chnz5oZv.js";
3
- import { $ as _, A as ee, D as te, E as ne, H as re, S as ie, U as ae, V as oe, _ as se, _t as ce, b as le, et as ue, f as de, h as fe, i as pe, it as me, lt as he, m as ge, r as _e, t as ve, tt as ye } from "./client-BpnfhHgS.js";
4
- import { t as be } from "./_plugin-vue_export-helper-D3hKq4w_.js";
5
- import { a as xe, i as Se, n as v, o as Ce, r as we, t as Te } from "./DealExternalAttachment-wYY7tzfj.js";
6
- import y, { z as b } from "zod";
7
- import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createTextVNode as D, createVNode as O, defineComponent as k, mergeModels as A, mergeProps as j, normalizeClass as M, onBeforeUnmount as Ee, onMounted as N, openBlock as P, ref as F, renderList as I, renderSlot as L, toDisplayString as R, unref as z, useAttrs as De, useId as B, useModel as Oe, useTemplateRef as ke, watch as Ae, withCtx as V } from "vue";
8
- import { useI18n as H } from "vue-i18n";
9
- import { FileUploadStatus as U, PaginationParamsBuilder as je, VcButton as Me, VcDialog as W, VcDialogCloseButton as Ne, VcDialogContent as Pe, VcDialogDescription as Fe, VcDialogTitle as Ie, VcFileUploadDropzone as Le, VcFileUploadItem as Re, VcFileUploadItemRemove as ze, VcFileUploadItemReplace as Be, VcFileUploadRoot as Ve, VcFileUploadTrigger as He, VcFormField as G, VcFormFieldLabel as K, VcIcon as q, VcIconButton as J, VcKeyboardShortcut as Ue, VcSpinner as We, VcTextField as Ge, VcTooltipArrow as Ke, VcTooltipContent as qe, VcTooltipInnerContent as Je, VcTooltipPortal as Ye, VcTooltipRoot as Xe, VcTooltipTrigger as Ze, useDialog as Qe, useToast as $e } from "@wisemen/vue-core-components";
10
- import { useElementSize as et } from "@vueuse/core";
11
- import { useForm as tt } from "formango";
12
- import { AnimatePresence as Y, Motion as X, MotionConfig as nt, motion as rt } from "motion-v";
13
- import { ListboxContent as it, ListboxItem as at, ListboxRoot as ot, Primitive as st, TagsInputInput as ct, TagsInputItem as lt, TagsInputItemDelete as ut, TagsInputItemText as dt, TagsInputRoot as ft } from "reka-ui";
14
- import pt from "@tiptap/extension-link";
15
- import { StarterKit as mt } from "@tiptap/starter-kit";
16
- import { EditorContent as ht, useEditor as gt } from "@tiptap/vue-3";
17
- //#endregion
18
- //#region src/components/app/tags-input-field/AppTagsInputField.vue
19
- var _t = /* @__PURE__ */ k({
20
- __name: "AppTagsInputField",
21
- props: /* @__PURE__ */ A({
22
- isDisabled: { type: Boolean },
23
- isRequired: { type: Boolean },
24
- isTouched: { type: Boolean },
25
- errorMessage: {},
26
- label: {},
27
- placeholder: {}
28
- }, {
29
- modelValue: { required: !0 },
30
- modelModifiers: {}
31
- }),
32
- emits: /* @__PURE__ */ A(["blur"], ["update:modelValue"]),
33
- setup(e, { emit: t }) {
34
- let n = e, r = t, i = Oe(e, "modelValue"), a = B();
35
- return (e, t) => (P(), C(z(G), {
36
- "is-touched": n.isTouched,
37
- hint: null,
38
- label: n.label,
39
- "input-id": z(a),
40
- "error-message": n.errorMessage,
41
- "is-required": n.isRequired,
42
- for: `tags-input-${z(a)}`,
43
- class: "!mt-0 w-full"
44
- }, {
45
- label: V(() => [L(e.$slots, "label")]),
46
- default: V(() => [O(z(ft), {
47
- id: `tags-input-${n.placeholder}`,
48
- modelValue: i.value,
49
- "onUpdate:modelValue": t[1] ||= (e) => i.value = e,
50
- "add-on-blur": !0,
51
- "add-on-paste": !0,
52
- delimiter: ";",
53
- class: "gap-sm border-secondary bg-primary px-sm py-xxs flex max-h-50 min-h-10 w-full flex-wrap items-center overflow-y-auto rounded-md border"
54
- }, {
55
- default: V(() => [(P(!0), T(x, null, I(i.value, (e) => (P(), C(z(lt), {
56
- key: e,
57
- value: e,
58
- class: "gap-xs border-primary px-xs text-secondary my-[0.18rem] flex items-center justify-center rounded-sm border text-xs aria-[current=true]:bg-brand-500"
59
- }, {
60
- default: V(() => [O(z(dt), { class: "pl-sm text-xs" }), O(z(ut), { class: "group p-xs rounded-full bg-transparent" }, {
61
- default: V(() => [O(z(q), {
62
- icon: "close",
63
- class: "size-3 duration-200 group-hover:scale-110"
64
- })]),
65
- _: 1
66
- })]),
67
- _: 1
68
- }, 8, ["value"]))), 128)), O(z(ct), {
69
- placeholder: n.placeholder,
70
- class: "px-sm h-8 flex-1 rounded-full bg-transparent text-sm placeholder:text-placeholder focus:outline-none",
71
- onBlur: t[0] ||= (e) => r("blur")
72
- }, null, 8, ["placeholder"])]),
73
- _: 1
74
- }, 8, ["id", "modelValue"])]),
75
- _: 3
76
- }, 8, [
77
- "is-touched",
78
- "label",
79
- "input-id",
80
- "error-message",
81
- "is-required",
82
- "for"
83
- ]));
84
- }
85
- }), vt = {}, yt = { class: "flex size-full items-center justify-center" };
86
- function bt(e, t) {
87
- return P(), T("div", yt, [L(e.$slots, "default")]);
88
- }
89
- var xt = /* @__PURE__ */ be(vt, [["render", bt]]), St = /* @__PURE__ */ k({
90
- __name: "AnimateHeight",
91
- setup(e) {
92
- let t = F(null), { height: n } = et(t), r = F(!1);
93
- return N(() => {
94
- setTimeout(() => {
95
- r.value = !0;
96
- }, 50);
97
- }), (e, i) => (P(), C(z(X), {
98
- animate: { height: z(n) },
99
- transition: {
100
- bounce: 0,
101
- duration: r.value ? .3 : 0,
102
- type: "spring"
103
- },
104
- tabindex: "-1",
105
- class: "relative overflow-clip"
106
- }, {
107
- default: V(() => [E("div", {
108
- ref_key: "el",
109
- ref: t
110
- }, [L(e.$slots, "default")], 512)]),
111
- _: 3
112
- }, 8, ["animate", "transition"]));
113
- }
114
- }), Ct = class {
115
- static fromDto(e) {
116
- return {
117
- uuid: e.uuid,
118
- color: e.color,
119
- config: {
120
- maxDaysInColumnBeforeHighlight: e.config.maxDaysInColumnBeforeHighlight,
121
- onlyShowLeadInColumn: e.config.onlyShowLeadInColumn
122
- },
123
- displayName: e.displayName,
124
- position: e.position
125
- };
126
- }
127
- }, wt = class {
128
- static fromDto(e) {
129
- return {
130
- uuid: e.uuid,
131
- toColumnUuid: e.toColumnUuid,
132
- toColumnColor: e.toColumnColor,
133
- toColumnDisplayName: e.toColumnDisplayName,
134
- toColumnKey: e.toColumnKey,
135
- triggers: e.triggers.map((e) => ({
136
- uuid: e.uuid,
137
- config: e.config,
138
- triggerType: e.triggerType
139
- }))
140
- };
141
- }
142
- }, Tt = class {
143
- static async getAllColumns() {
144
- return (await fe()).data.items.map(Ct.fromDto);
145
- }
146
- static async getTransitions(e, t) {
147
- return (await ge({
148
- query: { triggerTypes: t },
149
- path: { boardColumnUuid: e }
150
- })).data.items.map(wt.fromDto);
151
- }
152
- }, Et = class {
153
- static fromDto(e) {
154
- return {
155
- uuid: e.uuid,
156
- email: e.email,
157
- firstName: e.firstName,
158
- lastName: e.lastName,
159
- roles: e.roles.map((e) => ({
160
- uuid: e.uuid,
161
- name: e.name
162
- }))
163
- };
164
- }
165
- }, Dt = class {
166
- static async getAll(e) {
167
- let t = await me({ query: e });
168
- return {
169
- data: t.data.items.map(Et.fromDto),
170
- meta: t.data.meta
171
- };
172
- }
173
- };
174
- //#endregion
175
- //#region src/api/queries/user/userIndex.query.ts
176
- function Ot(e) {
177
- return i({
178
- queryFn: (t) => Dt.getAll({
179
- pagination: t,
180
- search: e.params.search?.value
181
- }),
182
- queryKey: { userIndex: { params: e.params } }
183
- });
184
- }
185
- //#endregion
186
- //#region src/components/button-tooltip/ButtonTooltip.vue?vue&type=script&setup=true&lang.ts
187
- var kt = {
188
- key: 0,
189
- class: "text-secondary max-w-xs text-center text-xs"
190
- }, Z = /* @__PURE__ */ k({
191
- __name: "ButtonTooltip",
192
- props: {
193
- isDisabled: {
194
- type: Boolean,
195
- default: !1
196
- },
197
- keyboardKeys: { default: null },
198
- label: { default: null },
199
- side: { default: null }
200
- },
201
- setup(e) {
202
- let t = e;
203
- return (e, n) => (P(), C(z(Xe), {
204
- "delay-duration": 400,
205
- "is-popover-arrow-hidden": !0,
206
- "disable-hoverable-content": !0,
207
- "popover-side": t.side ?? void 0,
208
- "is-disabled": t.isDisabled
209
- }, {
210
- default: V(() => [O(z(Ze), null, {
211
- default: V(() => [L(e.$slots, "default")]),
212
- _: 3
213
- }), O(z(Ye), null, {
214
- default: V(() => [O(z(qe), null, {
215
- default: V(() => [O(z(X), {
216
- initial: {
217
- opacity: 0,
218
- filter: "blur(2px)"
219
- },
220
- animate: {
221
- opacity: 1,
222
- filter: "blur(0)"
223
- },
224
- exit: {
225
- opacity: 0,
226
- filter: "blur(2px)"
227
- },
228
- transition: { duration: .2 }
229
- }, {
230
- default: V(() => [O(z(Je), null, {
231
- default: V(() => [O(f, {
232
- gap: "sm",
233
- class: "p-xs"
234
- }, {
235
- default: V(() => [t.label === null ? w("", !0) : (P(), T("span", kt, R(t.label), 1)), t.keyboardKeys === null ? w("", !0) : (P(), C(z(Ue), {
236
- key: 1,
237
- "keyboard-keys": t.keyboardKeys
238
- }, null, 8, ["keyboard-keys"]))]),
239
- _: 1
240
- })]),
241
- _: 1
242
- }), O(z(Ke))]),
243
- _: 1
244
- })]),
245
- _: 1
246
- })]),
247
- _: 1
248
- })]),
249
- _: 3
250
- }, 8, ["popover-side", "is-disabled"]));
251
- }
252
- }), At = /* @__PURE__ */ k({
253
- inheritAttrs: !1,
254
- __name: "TruncateText",
255
- props: {
256
- as: { default: "span" },
257
- label: {}
258
- },
259
- setup(e) {
260
- let t = e, n = De(), r = ke("primitiveRef"), i = F(!1), a = null;
261
- function o(e) {
262
- i.value = e.scrollWidth > e.clientWidth;
263
- }
264
- return N(() => {
265
- let e = r.value?.$el ?? null;
266
- e !== null && (o(e), a = new ResizeObserver(() => {
267
- o(e);
268
- }), a.observe(e));
269
- }), Ee(() => {
270
- a?.disconnect();
271
- }), (e, a) => (P(), C(Z, {
272
- "is-disabled": !i.value,
273
- label: t.label
274
- }, {
275
- default: V(() => [O(z(st), j({
276
- ref_key: "primitiveRef",
277
- ref: r,
278
- as: t.as,
279
- class: "max-w-full truncate"
280
- }, z(n)), {
281
- default: V(() => [D(R(t.label), 1)]),
282
- _: 1
283
- }, 16, ["as"])]),
284
- _: 1
285
- }, 8, ["is-disabled", "label"]));
286
- }
287
- }), jt = class {
288
- static fromDto(e) {
289
- return {
290
- contactPersonUuid: e.contactPersonUuid,
291
- dealUuid: e.dealUuid,
292
- isPrimary: e.isPrimary,
293
- email: e.email,
294
- firstName: e.firstName,
295
- lastName: e.lastName,
296
- mobilePhone: e.mobilePhone,
297
- phone: e.phone
298
- };
299
- }
300
- }, Mt = class {
301
- static toDto(e) {
302
- return {
303
- email: c.trimOrNull(e.email),
304
- firstName: e.firstName,
305
- lastName: e.lastName,
306
- mobilePhone: e.mobilePhone,
307
- phone: e.phone
308
- };
309
- }
310
- }, Nt = class {
311
- static toDto(e) {
312
- return {
313
- clientId: {
314
- uuid: e.clientId.uuid,
315
- type: e.clientId.type
316
- },
317
- dealOwnerUuid: null,
318
- name: e.name,
319
- dealLanguage: e.dealLanguage,
320
- dealSource: e.dealSource
321
- };
322
- }
323
- }, Q = class {
324
- static toFullName(e) {
325
- return `${e.firstName} ${e.lastName}`;
326
- }
327
- }, Pt = class {
328
- static fromDto(e) {
329
- return {
330
- uuid: e.uuid,
331
- createdAt: h.fromDto(e.createdAt),
332
- updatedAt: e.updatedAt,
333
- name: e.name,
334
- boardColumn: {
335
- uuid: e.boardColumn.uuid,
336
- color: e.boardColumn.color,
337
- displayName: e.boardColumn.displayName
338
- },
339
- client: e.client,
340
- contactPersons: e.contactPersons.map((e) => ({
341
- uuid: e.uuid,
342
- isPrimary: e.isPrimary,
343
- email: e.email,
344
- firstName: e.firstName,
345
- lastName: e.lastName,
346
- mobilePhone: e.mobilePhone,
347
- phone: e.phone
348
- })),
349
- createdBy: {
350
- uuid: e.createdBy.uuid,
351
- name: Q.toFullName({
352
- firstName: e.createdBy.firstName ?? "",
353
- lastName: e.createdBy.lastName ?? ""
354
- })
355
- },
356
- dealLanguage: e.dealLanguage,
357
- dealSource: e.dealSource,
358
- owner: e.owner ? {
359
- uuid: e.owner.uuid,
360
- name: Q.toFullName({
361
- firstName: e.owner.firstName ?? "",
362
- lastName: e.owner.lastName ?? ""
363
- })
364
- } : null
365
- };
366
- }
367
- }, Ft = class {
368
- static fromDto(e) {
369
- return {
370
- uuid: e.uuid,
371
- createdAt: h.fromDto(e.createdAt),
372
- name: e.name,
373
- boardColumn: e.boardColumn,
374
- client: e.client,
375
- createdBy: {
376
- uuid: e.createdBy.uuid,
377
- name: Q.toFullName({
378
- firstName: e.createdBy.firstName ?? "",
379
- lastName: e.createdBy.lastName ?? ""
380
- })
381
- },
382
- dealLanguage: e.dealLanguage,
383
- dealSource: e.dealSource,
384
- owner: e.owner ? {
385
- uuid: e.owner.uuid,
386
- name: Q.toFullName({
387
- firstName: e.owner.firstName ?? "",
388
- lastName: e.owner.lastName ?? ""
389
- })
390
- } : null
391
- };
392
- }
393
- }, It = class {
394
- static toDto(e) {
395
- return {
396
- filter: {
397
- boardColumnUuids: e.filters.boardColumnUuid,
398
- dealOwnerUuids: e.filters.dealOwnerUuids
399
- },
400
- pagination: e.pagination
401
- };
402
- }
403
- }, Lt = class {
404
- static toDto(e) {
405
- return {
406
- dealOwnerUuid: e.dealOwner?.uuid ?? void 0,
407
- name: e?.name ?? void 0,
408
- dealLanguage: e?.dealLanguage ?? void 0,
409
- dealSource: e?.dealSource ?? void 0
410
- };
411
- }
412
- }, Rt = class {
413
- static async create(e) {
414
- return (await _e({ body: Nt.toDto(e) })).data.uuid;
415
- }
416
- static async createContactPerson() {}
417
- static async getAll(e) {
418
- let t = await ae({ query: It.toDto(e) });
419
- return {
420
- data: t.data.items.map(Ft.fromDto),
421
- meta: t.data.meta
422
- };
423
- }
424
- static async getBySearchTerm(e) {
425
- let t = await ae({ query: new je().withLimit(5).withSearch(e).build() });
426
- return {
427
- data: t.data.items.map(Ft.fromDto),
428
- meta: t.data.meta
429
- };
430
- }
431
- static async getByUuid(e) {
432
- let t = await re({ path: { dealUuid: e } });
433
- return Pt.fromDto(t.data);
434
- }
435
- static async getContactPerson(e, t) {
436
- let n = await oe({ path: {
437
- contactPersonUuid: t,
438
- dealUuid: e
439
- } });
440
- return jt.fromDto(n.data);
441
- }
442
- static async linkContactPerson(e, t, n) {
443
- await de({
444
- body: {
445
- contactPersonUuid: t,
446
- email: c.trimOrNull(n.email),
447
- mobilePhone: n.mobilePhone,
448
- phone: n.phone
449
- },
450
- path: { dealUuid: e }
451
- });
452
- }
453
- static async setPrimaryContactPerson(e, t) {
454
- await se({ path: {
455
- contactPersonUuid: t,
456
- dealUuid: e
457
- } });
458
- }
459
- static async transition(e, t) {
460
- await le({
461
- body: { boardColumnUuid: t },
462
- path: { dealUuid: e }
463
- });
464
- }
465
- static async unlinkContactPerson(e, t) {
466
- await ie({
467
- body: { contactPersonUuid: t },
468
- path: { dealUuid: e }
469
- });
470
- }
471
- static async update(e, t) {
472
- await te({
473
- body: Lt.toDto(t),
474
- path: { dealUuid: e }
475
- });
476
- }
477
- static async updateContactPerson(e, t, n) {
478
- await ne({
479
- body: Mt.toDto(n),
480
- path: {
481
- contactPersonUuid: t,
482
- dealUuid: e
483
- }
484
- });
485
- }
486
- };
487
- b.enum(ce);
488
- var zt = class {
489
- static i18nKeys = s({
490
- "de-DE": "wise_crm.language.de",
491
- "en-US": "wise_crm.language.en",
492
- "fr-BE": "wise_crm.language.fr",
493
- "nl-BE": "wise_crm.language.nl"
494
- });
495
- static getI18nKey(e) {
496
- return this.i18nKeys.get(e);
497
- }
498
- }, Bt = class {
499
- static i18nKeys = s({
500
- mail: "wise_crm.enum.source.mail",
501
- phone: "wise_crm.enum.source.phone",
502
- tender: "wise_crm.enum.source.tender",
503
- website: "wise_crm.enum.source.website"
504
- });
505
- static getI18nKey(e) {
506
- return this.i18nKeys.get(e);
507
- }
508
- }, Vt = class {
509
- static fromDto(e) {
510
- return {
511
- uuid: e.uuid,
512
- createdAt: h.fromDto(e.createdAt),
513
- updatedAt: h.fromDto(e.updatedAt),
514
- defaultBCC: e.defaultBCC,
515
- defaultCC: e.defaultCC,
516
- displayName: e.displayName,
517
- key: e.key,
518
- locales: e.locales.map((e) => ({
519
- uuid: e.uuid,
520
- createdAt: h.fromDto(e.createdAt),
521
- updatedAt: h.fromDto(e.updatedAt),
522
- attachments: e.attachments.map(Ce.fromDto),
523
- language: e.language,
524
- message: e.message,
525
- subject: e.subject
526
- }))
527
- };
528
- }
529
- }, Ht = class {
530
- static fromDto(e) {
531
- return {
532
- uuid: e.uuid,
533
- createdAt: h.fromDto(e.createdAt),
534
- updatedAt: h.fromDto(e.updatedAt),
535
- name: e.name
536
- };
537
- }
538
- }, Ut = class {
539
- static toDto(e) {
540
- return { pagination: e.pagination };
541
- }
542
- }, Wt = class {
543
- static toDto(e) {
544
- return {
545
- defaultBCC: e.defaultBCC,
546
- defaultCC: e.defaultCC,
547
- locales: e.locales.map((e) => ({
548
- attachments: e.attachments.map((e) => e.uuid),
549
- language: e.language,
550
- message: e.message,
551
- replyTo: e.replyTo,
552
- subject: e.subject
553
- }))
554
- };
555
- }
556
- }, Gt = class {
557
- static async getAll(e) {
558
- let t = await ye({ query: Ut.toDto(e) });
559
- return {
560
- data: t.data.items.map(Ht.fromDto),
561
- meta: t.data.meta
562
- };
563
- }
564
- static async getByKey(e) {
565
- let t = await _({ path: { mailTemplateKey: e } });
566
- return Vt.fromDto(t.data);
567
- }
568
- static async getByUuid(e) {
569
- let t = await ue({ path: { mailTemplateUuid: e } });
570
- return Vt.fromDto(t.data);
571
- }
572
- static async update(e, t) {
573
- await ee({
574
- body: Wt.toDto(t),
575
- path: { mailTemplateUuid: e }
576
- });
577
- }
578
- };
579
- //#endregion
580
- //#region src/api/queries/mail-template/mailTemplateDetail.query.ts
581
- function Kt(e) {
582
- return p({
583
- queryFn: () => Gt.getByUuid(e.value),
584
- queryKey: { mailTemplateDetail: { mailTemplateUuid: e } }
585
- });
586
- }
587
- function qt(e) {
588
- return p({
589
- queryFn: () => Gt.getByKey(e.value),
590
- queryKey: { mailTemplateDetailByKey: { mailTemplateKey: e } }
591
- });
592
- }
593
- //#endregion
594
- //#region src/components/app/rich-text-field/AppRichTextFieldLinkDialog.vue?vue&type=script&setup=true&lang.ts
595
- var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ k({
596
- __name: "AppRichTextFieldLinkDialog",
597
- emits: ["close", "confirm"],
598
- setup(e, { emit: i }) {
599
- let o = i, s = H(), c = tt({
600
- schema: b.object({ url: b.string().url() }),
601
- onSubmit: (e) => {
602
- o("confirm", e.url);
603
- }
604
- }), l = c.register("url");
605
- function f() {
606
- o("close");
607
- }
608
- return (e, i) => (P(), C(z(W), { onClose: f }, {
609
- default: V(() => [E("div", Jt, [O(d, {
610
- title: z(s).t("rich_text.link_dialog.title"),
611
- icon: "link"
612
- }, {
613
- "closse-button": V(() => [O(z(Ne))]),
614
- _: 1
615
- }, 8, ["title"]), O(t, { form: z(c) }, {
616
- default: V(() => [O(z(Ge), j({ label: z(s).t("rich_text.link_dialog.url") }, z(a)(z(l))), null, 16, ["label"]), O(r, null, {
617
- default: V(() => [O(n, { label: z(s).t("shared.cancel") }, null, 8, ["label"]), O(u, {
618
- label: z(s).t("shared.confirm"),
619
- onClick: i[0] ||= (e) => z(c).submit()
620
- }, null, 8, ["label"])]),
621
- _: 1
622
- })]),
623
- _: 1
624
- }, 8, ["form"])])]),
625
- _: 1
626
- }));
627
- }
628
- }), Xt = ["id"], Zt = { class: "p-sm h-full" }, Qt = /* @__PURE__ */ k({
629
- __name: "AppRichTextField",
630
- props: /* @__PURE__ */ A({
631
- isDisabled: {
632
- type: Boolean,
633
- default: !1
634
- },
635
- isRequired: {
636
- type: Boolean,
637
- default: !1
638
- },
639
- isTouched: {
640
- type: Boolean,
641
- default: !1
642
- },
643
- errorMessage: { default: null },
644
- errors: {},
645
- label: {}
646
- }, {
647
- modelValue: { required: !0 },
648
- modelModifiers: {}
649
- }),
650
- emits: /* @__PURE__ */ A(["blur"], ["update:modelValue"]),
651
- setup(e, { emit: t }) {
652
- let n = e, r = t, i = Oe(e, "modelValue"), a = B(), o = gt({
653
- content: i.value,
654
- editorProps: { attributes: { class: "bg-primary text-primary p-2xl prose prose-sm w-full max-w-none text-secondary outline-none focus-visible:ring-2 ring-offset-1 ring-fg-brand-secondary rounded-sm min-h-[15rem] h-full" } },
655
- extensions: [mt, pt.configure({ defaultProtocol: "https" })],
656
- onBlur() {
657
- r("blur");
658
- },
659
- onUpdate({ editor: e }) {
660
- i.value = e.getHTML();
661
- }
662
- }), s = Qe(Yt), c = S(() => [
663
- {
664
- id: "bold",
665
- icon: "bold",
666
- onClick: () => void o.value?.chain().focus().toggleBold().run()
667
- },
668
- {
669
- id: "italic",
670
- icon: "italic",
671
- onClick: () => void o.value?.chain().focus().toggleItalic().run()
672
- },
673
- {
674
- id: "heading",
675
- isActiveOptions: { level: 1 },
676
- icon: "h1Icon",
677
- onClick: () => void o.value?.chain().focus().toggleHeading({ level: 1 }).run()
678
- },
679
- {
680
- id: "heading",
681
- isActiveOptions: { level: 2 },
682
- icon: "h2Icon",
683
- onClick: () => void o.value?.chain().focus().toggleHeading({ level: 2 }).run()
684
- },
685
- {
686
- id: "heading",
687
- isActiveOptions: { level: 3 },
688
- icon: "h3Icon",
689
- onClick: () => void o.value?.chain().focus().toggleHeading({ level: 3 }).run()
690
- },
691
- {
692
- id: "link",
693
- icon: "link",
694
- onClick: () => {
695
- s.open({ onConfirm: (e) => {
696
- o.value?.chain().focus().extendMarkRange("link").setLink({ href: e }).run(), s.close();
697
- } });
698
- }
699
- },
700
- {
701
- id: "bulletList",
702
- icon: "bulletList",
703
- onClick: () => void o.value?.chain().focus().toggleBulletList().run()
704
- },
705
- {
706
- id: "orderedList",
707
- icon: "numberedList",
708
- onClick: () => void o.value?.chain().focus().toggleOrderedList().run()
709
- }
710
- ]);
711
- return Ae(i, (e) => {
712
- e !== o.value?.getHTML() && ((e === null || e === "") && o.value?.commands.clearContent(), o.value?.commands.setContent(e || ""));
713
- }), (e, t) => (P(), C(z(G), {
714
- for: z(a),
715
- "is-touched": n.isTouched,
716
- "error-message": n.errorMessage,
717
- hint: null,
718
- label: n.label,
719
- "is-required": n.isRequired,
720
- class: "h-full"
721
- }, {
722
- label: V(() => [L(e.$slots, "label")]),
723
- default: V(() => [E("div", {
724
- id: z(a),
725
- class: M([{
726
- "border-error-subtle": n.errorMessage !== null && n.isTouched,
727
- "border-secondary": !(n.errorMessage !== null && n.isTouched)
728
- }, "bg-primary flex flex-col overflow-hidden rounded-lg border"])
729
- }, [O(z(ot), { orientation: "horizontal" }, {
730
- default: V(() => [O(z(it), { class: "gap-sm p-sm border-secondary flex border-b" }, {
731
- default: V(() => [(P(!0), T(x, null, I(c.value, (e, t) => (P(), C(z(at), {
732
- key: t,
733
- value: t,
734
- class: M([{
735
- "bg-tertiary text-primary": z(o)?.isActive(e.id, e.isActiveOptions),
736
- "text-quaternary": !z(o)?.isActive(e.id, e.isActiveOptions)
737
- }, "rounded-md"]),
738
- "as-child": !0
739
- }, {
740
- default: V(() => [O(l, { onClick: () => e.onClick() }, {
741
- default: V(() => [O(z(q), {
742
- icon: e.icon,
743
- class: "text-primary size-8"
744
- }, null, 8, ["icon"])]),
745
- _: 2
746
- }, 1032, ["onClick"])]),
747
- _: 2
748
- }, 1032, ["value", "class"]))), 128))]),
749
- _: 1
750
- })]),
751
- _: 1
752
- }), E("div", Zt, [O(z(ht), {
753
- modelValue: i.value,
754
- "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
755
- editor: z(o),
756
- class: "h-full"
757
- }, null, 8, ["modelValue", "editor"])])], 10, Xt)]),
758
- _: 3
759
- }, 8, [
760
- "for",
761
- "is-touched",
762
- "error-message",
763
- "label",
764
- "is-required"
765
- ]));
766
- }
767
- }), $t = class {
768
- static async confirmUpload(e, t) {
769
- await ve({
770
- body: { blurHash: t },
771
- path: { file: e }
772
- });
773
- }
774
- static async getFileInfo(e, t) {
775
- let n = await pe({ body: {
776
- name: e,
777
- mimeType: t
778
- } });
779
- return {
780
- uuid: n.data.uuid,
781
- uploadUrl: n.data.uploadUrl
782
- };
783
- }
784
- }, en = { class: "text-brand-secondary text-sm font-medium" }, tn = /* @__PURE__ */ k({
785
- __name: "FormFileUploadDropzoneOverlay",
786
- props: {
787
- isHoveringOverDropzone: { type: Boolean },
788
- isHoveringOverPage: { type: Boolean }
789
- },
790
- setup(e) {
791
- let t = e, n = H();
792
- return (e, r) => (P(), C(z(Y), null, {
793
- default: V(() => [t.isHoveringOverPage ? (P(), C(z(X), {
794
- key: 0,
795
- class: M([{ "animate-pulse": !t.isHoveringOverDropzone }, "border-brand-500/50 pointer-events-none absolute inset-0 z-10 overflow-hidden rounded-xl border-[1.5px] border-dashed"]),
796
- initial: { opacity: 0 },
797
- animate: { opacity: 1 },
798
- exit: { opacity: 0 }
799
- }, {
800
- default: V(() => [O(z(Y), null, {
801
- default: V(() => [t.isHoveringOverDropzone ? (P(), C(z(X), {
802
- key: 0,
803
- initial: {
804
- opacity: 0,
805
- scale: 1.01
806
- },
807
- animate: {
808
- opacity: 1,
809
- scale: 1
810
- },
811
- exit: {
812
- opacity: 0,
813
- scale: 1.01
814
- },
815
- class: "bg-brand-primary/90 absolute inset-0"
816
- }, {
817
- default: V(() => [O(xt, null, {
818
- default: V(() => [E("p", en, R(z(n).t("component.file_upload.dropzone.drop_files")), 1)]),
819
- _: 1
820
- })]),
821
- _: 1
822
- })) : w("", !0)]),
823
- _: 1
824
- })]),
825
- _: 1
826
- }, 8, ["class"])) : w("", !0)]),
827
- _: 1
828
- }));
829
- }
830
- }), nn = {
831
- width: "100%",
832
- height: "100%",
833
- viewBox: "0 0 12 12",
834
- fill: "none",
835
- xmlns: "http://www.w3.org/2000/svg",
836
- "aria-hidden": "true"
837
- }, rn = /* @__PURE__ */ k({
838
- __name: "FormFileUploadSuccessCheckmark",
839
- setup(e) {
840
- let t = {
841
- hidden: {
842
- opacity: 0,
843
- pathLength: 0
844
- },
845
- visible: {
846
- opacity: 1,
847
- pathLength: 1,
848
- transition: {
849
- opacity: { duration: .01 },
850
- pathLength: {
851
- bounce: 0,
852
- duration: .5,
853
- type: "spring"
854
- }
855
- }
856
- }
857
- };
858
- return (e, n) => (P(), T("svg", nn, [O(z(rt).path, {
859
- variants: t,
860
- tabindex: "-1",
861
- initial: "hidden",
862
- d: "M2 6L4.5 8.5L10 3",
863
- stroke: "currentColor",
864
- "stroke-width": "1.5",
865
- "stroke-linecap": "round",
866
- "stroke-linejoin": "round",
867
- animate: "visible",
868
- exit: "hidden"
869
- })]));
870
- }
871
- }), an = /* @__PURE__ */ k({
872
- __name: "FormFileUploadItemRight",
873
- props: {
874
- isMultiple: { type: Boolean },
875
- item: {}
876
- },
877
- setup(e) {
878
- let t = e, n = F(!1);
879
- function r(e) {
880
- e.url !== null && Se.download(e.url, e.name);
881
- }
882
- return Ae(() => t.item.status, (e) => {
883
- e === U.SUCCESS && (n.value = !0, setTimeout(() => {
884
- n.value = !1;
885
- }, 2e3));
886
- }), (e, i) => (P(), C(z(Y), { mode: "popLayout" }, {
887
- default: V(() => [n.value ? (P(), C(z(X), {
888
- key: 0,
889
- variants: {
890
- hidden: {
891
- opacity: 0,
892
- scale: .95
893
- },
894
- visible: {
895
- opacity: 1,
896
- scale: 1
897
- }
898
- },
899
- initial: "hidden",
900
- animate: "visible",
901
- exit: "hidden",
902
- class: "flex size-8 items-center justify-center"
903
- }, {
904
- default: V(() => [O(rn, { class: "text-disabled size-4" })]),
905
- _: 1
906
- })) : t.item.status === z(U).SUCCESS ? (P(), C(z(X), {
907
- key: 1,
908
- initial: {
909
- opacity: 0,
910
- scale: .95
911
- },
912
- animate: {
913
- opacity: 1,
914
- scale: 1
915
- }
916
- }, {
917
- default: V(() => [O(xe, null, {
918
- default: V(() => [O(f, { gap: "none" }, {
919
- default: V(() => [
920
- O(Z, { label: "Replace" }, {
921
- default: V(() => [O(z(Be), null, {
922
- default: V(() => [O(z(J), {
923
- "class-config": { root: "hover:!bg-tertiary" },
924
- icon: "refresh",
925
- label: "Replace",
926
- variant: "tertiary"
927
- })]),
928
- _: 1
929
- })]),
930
- _: 1
931
- }),
932
- O(Z, { label: "Download" }, {
933
- default: V(() => [t.item.url === null ? w("", !0) : (P(), C(z(J), {
934
- key: 0,
935
- "class-config": { root: "hover:!bg-tertiary" },
936
- icon: "downloadCloud",
937
- label: "Download",
938
- variant: "tertiary",
939
- onClick: i[0] ||= (e) => r(t.item)
940
- }))]),
941
- _: 1
942
- }),
943
- O(Z, { label: "Remove" }, {
944
- default: V(() => [O(z(ze), null, {
945
- default: V(() => [O(z(J), {
946
- icon: "trash",
947
- label: "Remove",
948
- variant: "destructive-tertiary"
949
- })]),
950
- _: 1
951
- })]),
952
- _: 1
953
- })
954
- ]),
955
- _: 1
956
- })]),
957
- _: 1
958
- })]),
959
- _: 1
960
- })) : t.item.status === z(U).PENDING || t.item.status === z(U).UPLOADING ? (P(), C(z(X), {
961
- key: 2,
962
- initial: { opacity: 0 },
963
- animate: { opacity: 1 },
964
- exit: {
965
- opacity: 0,
966
- scale: .95
967
- },
968
- class: "flex size-8 items-center justify-center"
969
- }, {
970
- default: V(() => [O(z(We), { class: "text-tertiary size-4" })]),
971
- _: 1
972
- })) : w("", !0)]),
973
- _: 1
974
- }));
975
- }
976
- }), on = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~".split(""), $ = (e) => {
977
- let t = 0;
978
- for (let n = 0; n < e.length; n++) {
979
- let r = e[n], i = on.indexOf(r);
980
- t = t * 83 + i;
981
- }
982
- return t;
983
- }, sn = (e) => {
984
- let t = e / 255;
985
- return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
986
- }, cn = (e) => {
987
- let t = Math.max(0, Math.min(1, e));
988
- return Math.trunc(t <= .0031308 ? t * 12.92 * 255 + .5 : (1.055 * t ** .4166666666666667 - .055) * 255 + .5);
989
- }, ln = (e) => e < 0 ? -1 : 1, un = (e, t) => ln(e) * Math.abs(e) ** +t, dn = class extends Error {
990
- constructor(e) {
991
- super(e), this.name = "ValidationError", this.message = e;
992
- }
993
- }, fn = (e) => {
994
- if (!e || e.length < 6) throw new dn("The blurhash string must be at least 6 characters");
995
- let t = $(e[0]), n = Math.floor(t / 9) + 1, r = t % 9 + 1;
996
- if (e.length !== 4 + 2 * r * n) throw new dn(`blurhash length mismatch: length is ${e.length} but it should be ${4 + 2 * r * n}`);
997
- }, pn = (e) => {
998
- let t = e >> 16, n = e >> 8 & 255, r = e & 255;
999
- return [
1000
- sn(t),
1001
- sn(n),
1002
- sn(r)
1003
- ];
1004
- }, mn = (e, t) => {
1005
- let n = Math.floor(e / 361), r = Math.floor(e / 19) % 19, i = e % 19;
1006
- return [
1007
- un((n - 9) / 9, 2) * t,
1008
- un((r - 9) / 9, 2) * t,
1009
- un((i - 9) / 9, 2) * t
1010
- ];
1011
- }, hn = (e, t, n, r) => {
1012
- fn(e), r |= 1;
1013
- let i = $(e[0]), a = Math.floor(i / 9) + 1, o = i % 9 + 1, s = ($(e[1]) + 1) / 166, c = Array(o * a);
1014
- for (let t = 0; t < c.length; t++) t === 0 ? c[t] = pn($(e.substring(2, 6))) : c[t] = mn($(e.substring(4 + t * 2, 6 + t * 2)), s * r);
1015
- let l = t * 4, u = new Uint8ClampedArray(l * n);
1016
- for (let e = 0; e < n; e++) for (let r = 0; r < t; r++) {
1017
- let i = 0, s = 0, d = 0;
1018
- for (let l = 0; l < a; l++) for (let a = 0; a < o; a++) {
1019
- let u = Math.cos(Math.PI * r * a / t) * Math.cos(Math.PI * e * l / n), f = c[a + l * o];
1020
- i += f[0] * u, s += f[1] * u, d += f[2] * u;
1021
- }
1022
- let f = cn(i), p = cn(s), m = cn(d);
1023
- u[4 * r + 0 + e * l] = f, u[4 * r + 1 + e * l] = p, u[4 * r + 2 + e * l] = m, u[4 * r + 3 + e * l] = 255;
1024
- }
1025
- return u;
1026
- }, gn = /* @__PURE__ */ k({
1027
- __name: "ImageBlurhash",
1028
- props: { blurhash: {} },
1029
- setup(e) {
1030
- let t = e, n = F(null);
1031
- function r(e, t) {
1032
- let { height: n, width: r } = t, i = hn(e, r, n), a = t.getContext("2d"), o = a.createImageData(r, n);
1033
- o.data.set(i), a.putImageData(o, 0, 0);
1034
- }
1035
- function i() {
1036
- n.value !== null && r(t.blurhash, n.value);
1037
- }
1038
- return N(() => {
1039
- i();
1040
- }), (e, t) => (P(), T("canvas", {
1041
- ref_key: "canvasRef",
1042
- ref: n,
1043
- width: "100%",
1044
- height: "100%"
1045
- }, null, 512));
1046
- }
1047
- }), _n = { class: "sr-only" }, vn = { class: "p-lg absolute top-0 left-0 z-1 flex w-full justify-end" }, yn = ["src", "alt"], bn = /* @__PURE__ */ k({
1048
- __name: "ImageDialog",
1049
- props: {
1050
- imageId: {},
1051
- fit: {},
1052
- imageAlt: {},
1053
- imageUrl: {}
1054
- },
1055
- setup(e) {
1056
- let t = e;
1057
- return (e, n) => (P(), C(z(W), {
1058
- "is-close-button-hidden": !0,
1059
- size: "xl"
1060
- }, {
1061
- default: V(() => [
1062
- O(z(Ie), null, {
1063
- default: V(() => [...n[0] ||= [E("h1", { class: "sr-only" }, " Image ", -1)]]),
1064
- _: 1
1065
- }),
1066
- O(z(Fe), null, {
1067
- default: V(() => [E("p", _n, R(t.imageAlt), 1)]),
1068
- _: 1
1069
- }),
1070
- E("div", vn, [O(z(Ne), null, {
1071
- default: V(() => [O(z(J), {
1072
- "class-config": { root: "bg-primary/50 backdrop-blur-md text-primary border-none shadow-none" },
1073
- icon: "close",
1074
- label: "close",
1075
- variant: "primary"
1076
- })]),
1077
- _: 1
1078
- })]),
1079
- E("img", {
1080
- src: t.imageUrl,
1081
- alt: t.imageAlt,
1082
- exit: { opacity: 1 },
1083
- class: "size-full object-contain"
1084
- }, null, 8, yn)
1085
- ]),
1086
- _: 1
1087
- }));
1088
- }
1089
- }), xn = { class: "relative isolate overflow-hidden" }, Sn = ["disabled"], Cn = { class: "sr-only" }, wn = ["src", "alt"], Tn = /* @__PURE__ */ k({
1090
- __name: "Image",
1091
- props: {
1092
- isZoomEnabled: {
1093
- type: Boolean,
1094
- default: !1
1095
- },
1096
- alt: {},
1097
- blurhash: { default: null },
1098
- fit: {},
1099
- src: {}
1100
- },
1101
- setup(e) {
1102
- let t = e, n = B(), r = Qe(bn), i = F(!0);
1103
- function a() {
1104
- i.value = !1;
1105
- }
1106
- function o() {
1107
- r.open({
1108
- imageId: n,
1109
- fit: t.fit,
1110
- imageAlt: t.alt,
1111
- imageUrl: t.src
1112
- });
1113
- }
1114
- return (e, n) => (P(), T("div", xn, [O(z(Y), { initial: !1 }, {
1115
- default: V(() => [i.value ? (P(), C(z(X), {
1116
- key: 0,
1117
- exit: { opacity: 0 },
1118
- transition: { duration: .2 },
1119
- class: "absolute inset-0 z-1"
1120
- }, {
1121
- default: V(() => [t.blurhash === null ? w("", !0) : (P(), C(gn, {
1122
- key: 0,
1123
- blurhash: t.blurhash
1124
- }, null, 8, ["blurhash"]))]),
1125
- _: 1
1126
- })) : w("", !0), E("button", j(z(r).triggerProps.value, {
1127
- class: [{ "pointer-events-none": !t.isZoomEnabled }, "block size-full cursor-pointer outline-none"],
1128
- disabled: !t.isZoomEnabled,
1129
- variant: "unstyled",
1130
- type: "button",
1131
- onClick: o
1132
- }), [E("span", Cn, " Zoom image " + R(t.alt), 1), E("img", {
1133
- src: t.src,
1134
- alt: t.alt,
1135
- class: M([{
1136
- "object-cover": t.fit === "cover",
1137
- "object-contain": t.fit === "contain"
1138
- }, "size-full"]),
1139
- onLoad: a
1140
- }, null, 42, wn)], 16, Sn)]),
1141
- _: 1
1142
- })]));
1143
- }
1144
- }), En = { class: "group bg-secondary px-lg py-md max-w-full overflow-hidden rounded-xl" }, Dn = {
1145
- key: 1,
1146
- "aria-hidden": !0,
1147
- class: "flex size-8 items-center justify-center"
1148
- }, On = { class: "relative" }, kn = { class: "text-primary-on-brand absolute bottom-0.5 left-1/2 z-89 -translate-x-1/2 text-[0.625rem] font-medium" }, An = { class: "flex items-center justify-between overflow-hidden" }, jn = { class: "flex flex-col overflow-hidden" }, Mn = { class: "text-tertiary text-xs" }, Nn = { class: "bg-quaternary h-0.75 w-28 shrink-0 rounded-full" }, Pn = /* @__PURE__ */ k({
1149
- __name: "FormFileUploadItem",
1150
- props: {
1151
- isMultiple: { type: Boolean },
1152
- item: {}
1153
- },
1154
- setup(e) {
1155
- let t = e;
1156
- return (e, n) => (P(), C(z(Re), { item: t.item }, {
1157
- default: V(() => [E("li", En, [O(f, { justify: "between" }, {
1158
- default: V(() => [O(f, {
1159
- gap: "lg",
1160
- class: "overflow-hidden"
1161
- }, {
1162
- default: V(() => [t.item.url !== null && t.item.mimeType.startsWith("image/") ? (P(), C(Tn, {
1163
- key: 0,
1164
- "is-zoom-enabled": !0,
1165
- alt: t.item.name,
1166
- src: t.item.url,
1167
- blurhash: t.item.status === z(U).SUCCESS ? t.item.blurHash : null,
1168
- class: "size-8 shrink-0 rounded-md",
1169
- fit: "cover"
1170
- }, null, 8, [
1171
- "alt",
1172
- "src",
1173
- "blurhash"
1174
- ])) : (P(), T("div", Dn, [E("div", On, [O(z(q), {
1175
- icon: "file",
1176
- class: "text-brand-500 size-8"
1177
- }), E("div", kn, R(z(Se).mimeTypeToExtension(t.item.mimeType)), 1)])])), E("div", An, [E("div", jn, [O(At, {
1178
- label: t.item.name,
1179
- class: "text-primary truncate text-sm"
1180
- }, null, 8, ["label"]), O(f, null, {
1181
- default: V(() => [E("span", Mn, R(t.item.mimeType), 1), O(z(Y), { initial: !1 }, {
1182
- default: V(() => [t.item.status === z(U).UPLOADING || t.item.status === z(U).PENDING ? (P(), C(z(X), {
1183
- key: 0,
1184
- exit: { opacity: 0 },
1185
- "as-child": !0
1186
- }, {
1187
- default: V(() => [E("div", Nn, [O(z(X), {
1188
- animate: { width: t.item.status === z(U).UPLOADING ? `${t.item.progress}%` : "0%" },
1189
- initial: { width: "0%" },
1190
- class: "bg-brand-solid h-full rounded-full"
1191
- }, null, 8, ["animate"])])]),
1192
- _: 1
1193
- })) : w("", !0)]),
1194
- _: 1
1195
- })]),
1196
- _: 1
1197
- })])])]),
1198
- _: 1
1199
- }), O(an, {
1200
- "is-multiple": t.isMultiple,
1201
- item: t.item
1202
- }, null, 8, ["is-multiple", "item"])]),
1203
- _: 1
1204
- })])]),
1205
- _: 1
1206
- }, 8, ["item"]));
1207
- }
1208
- }), Fn = b.object({
1209
- uuid: b.string(),
1210
- name: b.string(),
1211
- blurHash: b.string().nullable(),
1212
- mimeType: b.string(),
1213
- order: b.number(),
1214
- url: b.string().nullable()
1215
- });
1216
- //#endregion
1217
- //#region src/api/queries/deal/dealDetail.query.ts
1218
- function In(e) {
1219
- return p({
1220
- queryFn: () => Rt.getByUuid(e.value),
1221
- queryKey: { dealDetail: { dealUuid: e } }
1222
- });
1223
- }
1224
- //#endregion
1225
- //#region src/api/mutations/mail/mailCreate.mutation.ts
1226
- function Ln() {
1227
- return m({
1228
- queryFn: async ({ body: e, params: t }) => {
1229
- await we.create(e, t.externalAttachments);
1230
- },
1231
- queryKeysToInvalidate: {
1232
- dealDetail: { dealUuid: (e) => e.dealUuid },
1233
- mailIndex: {}
1234
- }
1235
- });
1236
- }
1237
- //#endregion
1238
- //#region src/deal/components/DealSendMailFormAttachmentField.vue?vue&type=script&setup=true&lang.ts
1239
- var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-col justify-start" }, Bn = { class: "relative" }, Vn = { class: "overflow-hidden" }, Hn = { class: "gap-sm py-md flex overflow-x-auto" }, Un = /* @__PURE__ */ k({
1240
- __name: "DealSendMailFormAttachmentField",
1241
- props: /* @__PURE__ */ A({
1242
- id: { default: null },
1243
- isRequired: {
1244
- type: Boolean,
1245
- default: !1
1246
- },
1247
- isTouched: {
1248
- type: Boolean,
1249
- default: !1
1250
- },
1251
- accept: {},
1252
- errorMessage: { default: null },
1253
- externalAttachments: { default: () => [] },
1254
- hint: { default: null },
1255
- label: { default: null }
1256
- }, {
1257
- modelValue: { required: !0 },
1258
- modelModifiers: {}
1259
- }),
1260
- emits: ["update:modelValue"],
1261
- setup(e) {
1262
- let t = e, n = Oe(e, "modelValue"), r = $e(), i = H(), a = B(), o = S(() => Array.isArray(n.value));
1263
- function s(e) {
1264
- r.error({
1265
- title: o.value ? i.t("component.file_upload.error.multiple_files_rejected") : i.t("component.file_upload.error.single_file_rejected"),
1266
- description: e.map((e) => e.name).join(", ")
1267
- });
1268
- }
1269
- return (e, r) => (P(), T("div", Rn, [O(z(Ve), {
1270
- modelValue: n.value,
1271
- "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
1272
- accept: t.accept,
1273
- "get-file-info": z($t).getFileInfo,
1274
- "confirm-upload": z($t).confirmUpload,
1275
- onFilesRejected: s
1276
- }, {
1277
- default: V(({ items: e }) => [O(z(nt), { transition: {
1278
- duration: .3,
1279
- type: "spring",
1280
- bounce: 0
1281
- } }, {
1282
- default: V(() => [E("div", zn, [O(z(He), null, {
1283
- default: V(() => [O(z(Me), {
1284
- class: "w-fit",
1285
- "icon-left": "attachment",
1286
- variant: "secondary"
1287
- }, {
1288
- default: V(() => [D(R(z(i).t("wise_crm.deal.send_mail.attachment_field.add_attachment")), 1)]),
1289
- _: 1
1290
- })]),
1291
- _: 1
1292
- }), e.length > 0 || t.externalAttachments.length > 0 ? (P(), C(z(Le), { key: 0 }, {
1293
- default: V(({ isHoveringOverPage: n, isHoveringOverDropzone: r }) => [O(z(G), {
1294
- for: z(a),
1295
- hint: t.hint,
1296
- "error-message": t.errorMessage,
1297
- "is-required": t.isRequired,
1298
- "is-touched": t.isTouched,
1299
- label: z(i).t("wise_crm.deal.send_mail.attachment_field.mail_attachments_label")
1300
- }, {
1301
- label: V(() => [O(z(K), { class: "sr-only" })]),
1302
- default: V(() => [E("div", Bn, [O(tn, {
1303
- "is-hovering-over-page": n,
1304
- "is-hovering-over-dropzone": r
1305
- }, null, 8, ["is-hovering-over-page", "is-hovering-over-dropzone"]), O(St, null, {
1306
- default: V(() => [O(z(Y), {
1307
- initial: !1,
1308
- mode: "popLayout"
1309
- }, {
1310
- default: V(() => [E("div", Vn, [E("ul", Hn, [(P(!0), T(x, null, I(t.externalAttachments, (e) => (P(), C(Te, {
1311
- key: e.uuid,
1312
- attachment: e
1313
- }, null, 8, ["attachment"]))), 128)), (P(!0), T(x, null, I(e, (e) => (P(), T("div", {
1314
- key: e.key,
1315
- class: "w-90"
1316
- }, [O(Pn, {
1317
- item: e,
1318
- "is-multiple": o.value
1319
- }, null, 8, ["item", "is-multiple"])]))), 128))])])]),
1320
- _: 2
1321
- }, 1024)]),
1322
- _: 2
1323
- }, 1024)])]),
1324
- _: 2
1325
- }, 1032, [
1326
- "for",
1327
- "hint",
1328
- "error-message",
1329
- "is-required",
1330
- "is-touched",
1331
- "label"
1332
- ])]),
1333
- _: 2
1334
- }, 1024)) : w("", !0)])]),
1335
- _: 2
1336
- }, 1024)]),
1337
- _: 1
1338
- }, 8, [
1339
- "modelValue",
1340
- "accept",
1341
- "get-file-info",
1342
- "confirm-upload"
1343
- ])]));
1344
- }
1345
- }), Wn = { class: "gap-md text-tertiary flex items-center" }, Gn = {
1346
- key: 0,
1347
- class: "gap-xs flex items-center"
1348
- }, Kn = { class: "text-xs" }, qn = /* @__PURE__ */ k({
1349
- __name: "DealSendMailFormFooter",
1350
- props: {
1351
- isGeneratingPdf: {
1352
- type: Boolean,
1353
- default: !1
1354
- },
1355
- isSubmitting: {
1356
- type: Boolean,
1357
- default: !1
1358
- }
1359
- },
1360
- emits: ["cancel"],
1361
- setup(t, { emit: n }) {
1362
- let r = t, i = n, a = H();
1363
- function o() {
1364
- i("cancel");
1365
- }
1366
- return (n, i) => (P(), C(e, { class: "pt-lg gap-md border-secondary flex justify-between border-t" }, {
1367
- default: V(() => [O(z(Me), {
1368
- variant: "secondary",
1369
- size: "lg",
1370
- onClick: o
1371
- }, {
1372
- default: V(() => [D(R(z(a).t("wise_crm.form.cancel")), 1)]),
1373
- _: 1
1374
- }), E("div", Wn, [t.isGeneratingPdf ? (P(), T("div", Gn, [O(z(We), { class: "size-3" }), E("span", Kn, R(z(a).t("wise_crm.deal.send_mail.pdf_generating")), 1)])) : w("", !0), O(z(Me), {
1375
- "is-loading": r.isSubmitting,
1376
- "is-disabled": t.isGeneratingPdf,
1377
- size: "lg",
1378
- type: "submit"
1379
- }, {
1380
- default: V(() => [D(R(z(a).t("wise_crm.form.send")), 1)]),
1381
- _: 1
1382
- }, 8, ["is-loading", "is-disabled"])])]),
1383
- _: 1
1384
- }));
1385
- }
1386
- }), Jn = y.uuid().brand("MailTemplateUuid"), Yn = y.object({
1387
- clientId: y.object({
1388
- uuid: y.uuid(),
1389
- type: y.enum(he)
1390
- }),
1391
- dealUuid: y.uuid(),
1392
- mailTemplateUuid: Jn,
1393
- attachments: Fn.array(),
1394
- bcc: y.array(y.email()).nullable(),
1395
- cc: y.array(y.email()).nullable(),
1396
- from: y.email().nullable(),
1397
- replyTo: y.email().nullable(),
1398
- subject: y.string().min(1),
1399
- text: y.string().min(1),
1400
- to: y.array(y.email()).min(1)
1401
- }), Xn = { class: "flex-1 overflow-y-auto" }, Zn = /* @__PURE__ */ k({
1402
- __name: "DealSendMailForm",
1403
- props: {
1404
- dealUuid: {},
1405
- isGeneratingPdf: { type: Boolean },
1406
- client: {},
1407
- dealLanguage: {},
1408
- defaultSenderEmails: {},
1409
- externalAttachments: { default: () => [] },
1410
- template: {}
1411
- },
1412
- emits: ["close"],
1413
- setup(e, { emit: n }) {
1414
- let r = e, i = n, s = H(), c = o(), l = Ln(), u = S(() => r.template.locales.findIndex((e) => e.language === r.dealLanguage)), d = tt({
1415
- initialState: {
1416
- clientId: {
1417
- uuid: r.client.uuid,
1418
- type: r.client.type
1419
- },
1420
- dealUuid: r.dealUuid,
1421
- mailTemplateUuid: r.template.uuid,
1422
- attachments: [...r.template.locales[u.value]?.attachments.map(Ce.toForm) ?? []],
1423
- bcc: r.template.defaultBCC,
1424
- cc: r.template.defaultCC,
1425
- from: null,
1426
- replyTo: null,
1427
- subject: r.template.locales[u.value]?.subject ?? null,
1428
- text: r.template.locales[u.value]?.message ?? null,
1429
- to: r.defaultSenderEmails ?? []
1430
- },
1431
- schema: Yn,
1432
- onSubmit: async (e) => {
1433
- try {
1434
- await l.execute({
1435
- body: e,
1436
- params: {
1437
- dealUuid: r.dealUuid,
1438
- externalAttachments: r.externalAttachments
1439
- }
1440
- }), _();
1441
- } catch (e) {
1442
- c.show(e);
1443
- }
1444
- }
1445
- });
1446
- d.register("bcc"), d.register("cc"), d.register("replyTo"), d.register("from"), d.register("dealUuid", r.dealUuid), d.register("clientId", r.client);
1447
- let p = d.register("subject"), m = d.register("to"), h = d.register("attachments", []), g = d.register("text");
1448
- function _() {
1449
- i("close");
1450
- }
1451
- return (e, n) => (P(), C(t, {
1452
- form: z(d),
1453
- class: "flex h-full flex-col"
1454
- }, {
1455
- default: V(() => [E("div", Xn, [
1456
- O(v, { class: "pr-6xl" }, {
1457
- default: V(() => [O(z(Ge), j(z(a)(z(p)), {
1458
- "class-config": {
1459
- input: "text-xl",
1460
- root: "border-none shadow-none text-md"
1461
- },
1462
- placeholder: z(s).t("wise_crm.deal.send_mail_form.subject_placeholder")
1463
- }), null, 16, ["placeholder"])]),
1464
- _: 1
1465
- }),
1466
- O(v, null, {
1467
- default: V(() => [O(f, null, {
1468
- default: V(() => [O(_t, j(z(a)(z(m)), {
1469
- label: z(s).t("wise_crm.deal.send_mail_form.to_label"),
1470
- placeholder: z(s).t("wise_crm.deal.send_mail_form.email_placeholder")
1471
- }), {
1472
- label: V(() => [O(z(K), { class: "sr-only" })]),
1473
- _: 1
1474
- }, 16, ["label", "placeholder"])]),
1475
- _: 1
1476
- })]),
1477
- _: 1
1478
- }),
1479
- O(v, null, {
1480
- default: V(() => [O(Un, j({ "external-attachments": r.externalAttachments }, z(a)(z(h)), { accept: ["application/pdf", "image/*"] }), null, 16, ["external-attachments"])]),
1481
- _: 1
1482
- }),
1483
- O(v, { class: "flex-1 border-b-0" }, {
1484
- default: V(() => [O(Qt, j(z(a)(z(g)), { label: z(s).t("wise_crm.deal.send_mail_form.message_label") }), {
1485
- label: V(() => [O(z(K), { class: "sr-only" })]),
1486
- _: 1
1487
- }, 16, ["label"])]),
1488
- _: 1
1489
- })
1490
- ]), O(qn, {
1491
- "is-generating-pdf": r.isGeneratingPdf,
1492
- "is-submitting": z(d).isSubmitting.value,
1493
- onCancel: _
1494
- }, null, 8, ["is-generating-pdf", "is-submitting"])]),
1495
- _: 1
1496
- }, 8, ["form"]));
1497
- }
1498
- }), Qn = {
1499
- key: 0,
1500
- class: "p-xl"
1501
- }, $n = /* @__PURE__ */ k({
1502
- __name: "DealSendMailDialog",
1503
- props: {
1504
- dealUuid: {},
1505
- client: {},
1506
- defaultSenderEmails: {},
1507
- externalAttachments: { default: () => [] },
1508
- generatePdfFile: {},
1509
- templateKey: {}
1510
- },
1511
- emits: ["close"],
1512
- setup(e, { emit: t }) {
1513
- let n = e, r = t, i = o(), a = F(n.generatePdfFile !== void 0), s = F(null), c = S(() => s.value === null ? n.externalAttachments : [...n.externalAttachments, s.value]), l = In(S(() => n.dealUuid)), u = S(() => l.data.value?.dealLanguage ?? ce.NL_BE), d = qt(S(() => n.templateKey));
1514
- function p() {
1515
- r("close");
1516
- }
1517
- async function m() {
1518
- if (n.generatePdfFile !== void 0) try {
1519
- s.value = await n.generatePdfFile;
1520
- } catch (e) {
1521
- i.show(e);
1522
- } finally {
1523
- a.value = !1;
1524
- }
1525
- }
1526
- return N(async () => {
1527
- await m();
1528
- }), (e, t) => (P(), C(z(W), {
1529
- "class-config": { closeButton: { root: "bg-primary" } },
1530
- class: "h-200 max-h-[90vh] w-280 max-w-[90vw]",
1531
- onClose: p
1532
- }, {
1533
- default: V(() => [O(z(Pe), { class: "h-full w-full border" }, {
1534
- default: V(() => [z(d).isLoading.value ? (P(), T("div", Qn, [O(f, {
1535
- direction: "col",
1536
- class: "h-full"
1537
- }, {
1538
- default: V(() => [O(g, { class: "h-40 w-full" }), O(g, { class: "mt-xl w-full flex-1" })]),
1539
- _: 1
1540
- })])) : z(d).data.value !== null && z(l).data.value !== null ? (P(), C(Zn, {
1541
- key: 1,
1542
- "default-sender-emails": z(l).data.value.contactPersons.map((e) => e.email).filter((e) => e !== null),
1543
- "deal-language": u.value,
1544
- template: z(d).data.value,
1545
- client: n.client,
1546
- "deal-uuid": n.dealUuid,
1547
- "external-attachments": c.value,
1548
- "is-generating-pdf": a.value,
1549
- onClose: p
1550
- }, null, 8, [
1551
- "default-sender-emails",
1552
- "deal-language",
1553
- "template",
1554
- "client",
1555
- "deal-uuid",
1556
- "external-attachments",
1557
- "is-generating-pdf"
1558
- ])) : w("", !0)]),
1559
- _: 1
1560
- })]),
1561
- _: 1
1562
- }));
1563
- }
1564
- });
1565
- //#endregion
1566
- export { St as _, tn as a, Kt as c, zt as d, Rt as f, Tt as g, Ot as h, Pn as i, Gt as l, Z as m, In as n, $t as o, At as p, Fn as r, Qt as s, $n as t, Bt as u, xt as v, _t as y };