@trii/components 2.0.48 → 2.0.51

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 (477) hide show
  1. package/dist/cjs/index.js +789 -147
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/BusinessSelect/BusinessSelect.d.ts +6 -0
  4. package/dist/cjs/types/BusinessSelect/components/BusinessSearchBar/BusinessSearchBar.d.ts +6 -0
  5. package/dist/cjs/types/BusinessSelect/components/BusinessSearchBar/index.d.ts +1 -0
  6. package/dist/cjs/types/BusinessSelect/components/BusinessSearchResults/BusinessSearchResults.d.ts +13 -0
  7. package/dist/cjs/types/BusinessSelect/components/BusinessSearchResults/index.d.ts +1 -0
  8. package/dist/cjs/types/BusinessSelect/components/index.d.ts +2 -0
  9. package/dist/cjs/types/BusinessSelect/index.d.ts +1 -0
  10. package/dist/cjs/types/BusinessSelect/types/index.d.ts +4 -0
  11. package/dist/cjs/types/BusinessSelectModal/BusinessSelectModal.d.ts +5 -0
  12. package/dist/cjs/types/BusinessSelectModal/index.d.ts +1 -0
  13. package/dist/cjs/types/SearchLocationModal/SearchLocationModal.d.ts +26 -0
  14. package/dist/cjs/types/SearchLocationModal/components/SearchLocationInput/index.d.ts +1 -0
  15. package/dist/cjs/types/SearchLocationModal/components/index.d.ts +1 -0
  16. package/dist/cjs/types/SearchLocationModal/googleMapsUtils.d.ts +20 -0
  17. package/dist/cjs/types/SearchLocationModal/index.d.ts +1 -0
  18. package/dist/cjs/types/components/EditContactModal/components/BusinessSelect/BusinessSelectEditor.d.ts +16 -0
  19. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  20. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  21. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  22. package/dist/cjs/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  23. package/dist/cjs/types/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +2 -1
  24. package/dist/cjs/types/components/EditContactModal/context/EditContactApiContext.d.ts +20 -0
  25. package/dist/cjs/types/components/EditContactModal/context/EditContactViewContext.d.ts +8 -0
  26. package/dist/cjs/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +2 -2
  27. package/dist/cjs/types/components/EditContactModal/layout/Section.d.ts +3 -1
  28. package/dist/cjs/types/components/EditContactModal/services/api.d.ts +47 -0
  29. package/dist/cjs/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +15 -0
  30. package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
  31. package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
  32. package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
  33. package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
  34. package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
  35. package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
  36. package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
  37. package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
  38. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +8 -0
  39. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +7 -0
  40. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
  41. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
  42. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
  43. package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
  44. package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
  45. package/dist/cjs/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
  46. package/dist/cjs/types/src/components/ContactInfoPopup/index.d.ts +1 -0
  47. package/dist/cjs/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
  48. package/dist/cjs/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
  49. package/dist/cjs/types/src/components/EditContactModal/EditContactModal.d.ts +14 -0
  50. package/dist/cjs/types/src/components/EditContactModal/components/Header/Header.d.ts +23 -0
  51. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/AvatarWithActions/AvatarWithActions.d.ts +11 -0
  52. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
  53. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/Tags/Tags.d.ts +7 -0
  54. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/Tags/index.d.ts +1 -0
  55. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/index.d.ts +2 -0
  56. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  57. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  58. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  59. package/dist/cjs/types/src/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +11 -0
  60. package/dist/cjs/types/src/components/EditContactModal/components/Section/AddressInformation/index.d.ts +1 -0
  61. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/ContactInformation.d.ts +7 -0
  62. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +11 -0
  63. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/ContactMethodItem.d.ts +8 -0
  64. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/index.d.ts +1 -0
  65. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/ContactMethodPhoneItem.d.ts +6 -0
  66. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/index.d.ts +1 -0
  67. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/utils/phone.d.ts +5 -0
  68. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/index.d.ts +2 -0
  69. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/index.d.ts +1 -0
  70. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +8 -0
  71. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/Mails.d.ts +8 -0
  72. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/Body.d.ts +7 -0
  73. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/Mail.d.ts +7 -0
  74. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/index.d.ts +1 -0
  75. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/style.d.ts +19 -0
  76. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/index.d.ts +1 -0
  77. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/index.d.ts +1 -0
  78. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/index.d.ts +1 -0
  79. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/index.d.ts +1 -0
  80. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/Phones.d.ts +8 -0
  81. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/Body.d.ts +7 -0
  82. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/Phone.d.ts +7 -0
  83. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/CountrySelect.d.ts +2 -0
  84. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/index.d.ts +1 -0
  85. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/style.d.ts +7 -0
  86. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/utils/countryList.d.ts +5 -0
  87. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/OptionsMenu.d.ts +17 -0
  88. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/index.d.ts +1 -0
  89. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/WhatsAppToggle.d.ts +2 -0
  90. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/index.d.ts +1 -0
  91. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/style.d.ts +8 -0
  92. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/index.d.ts +3 -0
  93. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/index.d.ts +1 -0
  94. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/style.d.ts +15 -0
  95. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/index.d.ts +1 -0
  96. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/index.d.ts +1 -0
  97. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/index.d.ts +1 -0
  98. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/index.d.ts +1 -0
  99. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/RCSs.d.ts +8 -0
  100. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/Body.d.ts +7 -0
  101. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/RCS.d.ts +7 -0
  102. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/index.d.ts +1 -0
  103. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/style.d.ts +19 -0
  104. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/index.d.ts +1 -0
  105. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/index.d.ts +1 -0
  106. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/index.d.ts +1 -0
  107. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/index.d.ts +1 -0
  108. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/Whatsapps.d.ts +8 -0
  109. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/Body.d.ts +7 -0
  110. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/Whatsapp.d.ts +7 -0
  111. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/index.d.ts +1 -0
  112. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/style.d.ts +19 -0
  113. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/index.d.ts +1 -0
  114. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/index.d.ts +1 -0
  115. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/index.d.ts +1 -0
  116. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/index.d.ts +1 -0
  117. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/index.d.ts +4 -0
  118. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/index.d.ts +1 -0
  119. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +13 -0
  120. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/index.d.ts +1 -0
  121. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/style.d.ts +3 -0
  122. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.d.ts +11 -0
  123. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/Body.d.ts +10 -0
  124. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/Ims.d.ts +10 -0
  125. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/index.d.ts +1 -0
  126. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +7 -0
  127. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/index.d.ts +1 -0
  128. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/index.d.ts +1 -0
  129. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/index.d.ts +1 -0
  130. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.d.ts +1 -0
  131. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/types/IMS.d.ts +2 -0
  132. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +13 -0
  133. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/index.d.ts +1 -0
  134. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/style.d.ts +3 -0
  135. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/SubsectionHeader.d.ts +5 -0
  136. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/index.d.ts +1 -0
  137. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/SubsectionHeaderWithButton.d.ts +6 -0
  138. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/index.d.ts +1 -0
  139. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/style.d.ts +8 -0
  140. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +5 -0
  141. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +5 -0
  142. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/index.d.ts +1 -0
  143. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/style.d.ts +15 -0
  144. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/index.d.ts +1 -0
  145. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/index.d.ts +1 -0
  146. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/style.d.ts +6 -0
  147. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.d.ts +10 -0
  148. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +6 -0
  149. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/index.d.ts +1 -0
  150. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +12 -0
  151. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/InformationItemInputsContainer.d.ts +6 -0
  152. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/index.d.ts +1 -0
  153. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -0
  154. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/NoteDeleteButton.d.ts +18 -0
  155. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/index.d.ts +1 -0
  156. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +13 -0
  157. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/StatusAdornment.d.ts +7 -0
  158. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +5 -0
  159. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/index.d.ts +1 -0
  160. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/index.d.ts +1 -0
  161. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/index.d.ts +1 -0
  162. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/SubsectionBodyContainer.d.ts +7 -0
  163. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/index.d.ts +1 -0
  164. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +14 -0
  165. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/index.d.ts +5 -0
  166. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/CheckContactAddressData.d.ts +5 -0
  167. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/ContactAddress.d.ts +2 -0
  168. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/index.d.ts +2 -0
  169. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/hooks/useEditModal.d.ts +8 -0
  170. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/index.d.ts +1 -0
  171. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/General.d.ts +14 -0
  172. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +8 -0
  173. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +8 -0
  174. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/index.d.ts +1 -0
  175. package/dist/cjs/types/src/components/EditContactModal/components/Section/index.d.ts +3 -0
  176. package/dist/cjs/types/src/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +6 -0
  177. package/dist/cjs/types/src/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +14 -0
  178. package/dist/cjs/types/src/components/EditContactModal/context/EditContactApiContext.d.ts +171 -0
  179. package/dist/cjs/types/src/components/EditContactModal/context/EditEntityContext.d.ts +34 -0
  180. package/dist/cjs/types/src/components/EditContactModal/context/NavigateContext.d.ts +9 -0
  181. package/dist/cjs/types/src/components/EditContactModal/context/TranslationContext.d.ts +9 -0
  182. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditBusiness/types/UseEditBusiness.d.ts +55 -0
  183. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.d.ts +10 -0
  184. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +60 -0
  185. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContact/useEditContact.d.ts +10 -0
  186. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContactMethods.d.ts +52 -0
  187. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContactModalController.d.ts +44 -0
  188. package/dist/cjs/types/src/components/EditContactModal/hooks/useEntityUpdateSync.d.ts +8 -0
  189. package/dist/cjs/types/src/components/EditContactModal/hooks/useField.d.ts +18 -0
  190. package/dist/cjs/types/src/components/EditContactModal/hooks/useImage.d.ts +27 -0
  191. package/dist/cjs/types/src/components/EditContactModal/hooks/useModalCloseHandler.d.ts +6 -0
  192. package/dist/cjs/types/src/components/EditContactModal/hooks/useMultipleSelect.d.ts +20 -0
  193. package/dist/cjs/types/src/components/EditContactModal/hooks/useSelect.d.ts +13 -0
  194. package/dist/cjs/types/src/components/EditContactModal/hooks/useTagsEditorController.d.ts +26 -0
  195. package/dist/cjs/types/src/components/EditContactModal/hooks/utils/editContactHelper.d.ts +6 -0
  196. package/dist/cjs/types/src/components/EditContactModal/index.d.ts +1 -0
  197. package/dist/cjs/types/src/components/EditContactModal/layout/Section.d.ts +9 -0
  198. package/dist/cjs/types/src/components/EditContactModal/layout/SectionContent.d.ts +7 -0
  199. package/dist/cjs/types/src/components/EditContactModal/layout/index.d.ts +2 -0
  200. package/dist/cjs/types/src/components/EditContactModal/services/api.d.ts +141 -0
  201. package/dist/cjs/types/src/components/EditContactModal/services/http.d.ts +23 -0
  202. package/dist/cjs/types/src/components/EditContactModal/services/urls.d.ts +6 -0
  203. package/dist/cjs/types/src/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +16 -0
  204. package/dist/cjs/types/src/components/EditContactModal/shared/BusinessInfoLabel/index.d.ts +1 -0
  205. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +29 -0
  206. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/DateSelect.d.ts +8 -0
  207. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/index.d.ts +1 -0
  208. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +1 -0
  209. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/index.d.ts +1 -0
  210. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +18 -0
  211. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/CustomPropertyDatePicker.d.ts +8 -0
  212. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/index.d.ts +1 -0
  213. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/CustomPropertyDateRangePicker.d.ts +9 -0
  214. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/index.d.ts +1 -0
  215. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/CustomPropertyInput.d.ts +6 -0
  216. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/index.d.ts +1 -0
  217. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/types/CustomPropertyInputProps.d.ts +6 -0
  218. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/CustomPropertyOptionsSelect.d.ts +7 -0
  219. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/index.d.ts +1 -0
  220. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/CustomPropertyTimePicker.d.ts +8 -0
  221. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/index.d.ts +1 -0
  222. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/CustomPropertyTimeRangePicker.d.ts +9 -0
  223. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/index.d.ts +1 -0
  224. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts +6 -0
  225. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/index.d.ts +1 -0
  226. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +40 -0
  227. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/SelectBusinessLabel.d.ts +7 -0
  228. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/index.d.ts +1 -0
  229. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/index.d.ts +1 -0
  230. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/index.d.ts +1 -0
  231. package/dist/cjs/types/src/components/EditContactModal/shared/index.d.ts +3 -0
  232. package/dist/cjs/types/src/components/EditContactModal/types/is-business.typeguard.d.ts +7 -0
  233. package/dist/cjs/types/src/components/EditContactModal/types/is-contact.typeguard.d.ts +7 -0
  234. package/dist/cjs/types/src/components/EditContactModal/utils/contactHelper.d.ts +13 -0
  235. package/dist/cjs/types/src/components/index.d.ts +2 -0
  236. package/dist/cjs/types/src/i18n/config.d.ts +2 -0
  237. package/dist/cjs/types/src/i18n/index.d.ts +2 -0
  238. package/dist/cjs/types/src/index.d.ts +2 -0
  239. package/dist/esm/index.js +791 -149
  240. package/dist/esm/index.js.map +1 -1
  241. package/dist/esm/types/BusinessSelect/BusinessSelect.d.ts +6 -0
  242. package/dist/esm/types/BusinessSelect/components/BusinessSearchBar/BusinessSearchBar.d.ts +6 -0
  243. package/dist/esm/types/BusinessSelect/components/BusinessSearchBar/index.d.ts +1 -0
  244. package/dist/esm/types/BusinessSelect/components/BusinessSearchResults/BusinessSearchResults.d.ts +13 -0
  245. package/dist/esm/types/BusinessSelect/components/BusinessSearchResults/index.d.ts +1 -0
  246. package/dist/esm/types/BusinessSelect/components/index.d.ts +2 -0
  247. package/dist/esm/types/BusinessSelect/index.d.ts +1 -0
  248. package/dist/esm/types/BusinessSelect/types/index.d.ts +4 -0
  249. package/dist/esm/types/BusinessSelectModal/BusinessSelectModal.d.ts +5 -0
  250. package/dist/esm/types/BusinessSelectModal/index.d.ts +1 -0
  251. package/dist/esm/types/SearchLocationModal/SearchLocationModal.d.ts +26 -0
  252. package/dist/esm/types/SearchLocationModal/components/SearchLocationInput/index.d.ts +1 -0
  253. package/dist/esm/types/SearchLocationModal/components/index.d.ts +1 -0
  254. package/dist/esm/types/SearchLocationModal/googleMapsUtils.d.ts +20 -0
  255. package/dist/esm/types/SearchLocationModal/index.d.ts +1 -0
  256. package/dist/esm/types/components/EditContactModal/components/BusinessSelect/BusinessSelectEditor.d.ts +16 -0
  257. package/dist/esm/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  258. package/dist/esm/types/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  259. package/dist/esm/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  260. package/dist/esm/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  261. package/dist/esm/types/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +2 -1
  262. package/dist/esm/types/components/EditContactModal/context/EditContactApiContext.d.ts +20 -0
  263. package/dist/esm/types/components/EditContactModal/context/EditContactViewContext.d.ts +8 -0
  264. package/dist/esm/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +2 -2
  265. package/dist/esm/types/components/EditContactModal/layout/Section.d.ts +3 -1
  266. package/dist/esm/types/components/EditContactModal/services/api.d.ts +47 -0
  267. package/dist/esm/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +15 -0
  268. package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
  269. package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
  270. package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
  271. package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
  272. package/dist/esm/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
  273. package/dist/esm/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
  274. package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
  275. package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
  276. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +8 -0
  277. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +7 -0
  278. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
  279. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
  280. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
  281. package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
  282. package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
  283. package/dist/esm/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
  284. package/dist/esm/types/src/components/ContactInfoPopup/index.d.ts +1 -0
  285. package/dist/esm/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
  286. package/dist/esm/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
  287. package/dist/esm/types/src/components/EditContactModal/EditContactModal.d.ts +14 -0
  288. package/dist/esm/types/src/components/EditContactModal/components/Header/Header.d.ts +23 -0
  289. package/dist/esm/types/src/components/EditContactModal/components/Header/components/AvatarWithActions/AvatarWithActions.d.ts +11 -0
  290. package/dist/esm/types/src/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
  291. package/dist/esm/types/src/components/EditContactModal/components/Header/components/Tags/Tags.d.ts +7 -0
  292. package/dist/esm/types/src/components/EditContactModal/components/Header/components/Tags/index.d.ts +1 -0
  293. package/dist/esm/types/src/components/EditContactModal/components/Header/components/index.d.ts +2 -0
  294. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  295. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  296. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  297. package/dist/esm/types/src/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +11 -0
  298. package/dist/esm/types/src/components/EditContactModal/components/Section/AddressInformation/index.d.ts +1 -0
  299. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/ContactInformation.d.ts +7 -0
  300. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +11 -0
  301. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/ContactMethodItem.d.ts +8 -0
  302. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/index.d.ts +1 -0
  303. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/ContactMethodPhoneItem.d.ts +6 -0
  304. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/index.d.ts +1 -0
  305. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/utils/phone.d.ts +5 -0
  306. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/index.d.ts +2 -0
  307. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/index.d.ts +1 -0
  308. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +8 -0
  309. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/Mails.d.ts +8 -0
  310. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/Body.d.ts +7 -0
  311. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/Mail.d.ts +7 -0
  312. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/index.d.ts +1 -0
  313. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/style.d.ts +19 -0
  314. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/index.d.ts +1 -0
  315. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/index.d.ts +1 -0
  316. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/index.d.ts +1 -0
  317. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/index.d.ts +1 -0
  318. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/Phones.d.ts +8 -0
  319. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/Body.d.ts +7 -0
  320. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/Phone.d.ts +7 -0
  321. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/CountrySelect.d.ts +2 -0
  322. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/index.d.ts +1 -0
  323. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/style.d.ts +7 -0
  324. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/utils/countryList.d.ts +5 -0
  325. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/OptionsMenu.d.ts +17 -0
  326. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/index.d.ts +1 -0
  327. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/WhatsAppToggle.d.ts +2 -0
  328. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/index.d.ts +1 -0
  329. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/style.d.ts +8 -0
  330. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/index.d.ts +3 -0
  331. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/index.d.ts +1 -0
  332. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/style.d.ts +15 -0
  333. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/index.d.ts +1 -0
  334. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/index.d.ts +1 -0
  335. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/index.d.ts +1 -0
  336. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/index.d.ts +1 -0
  337. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/RCSs.d.ts +8 -0
  338. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/Body.d.ts +7 -0
  339. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/RCS.d.ts +7 -0
  340. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/index.d.ts +1 -0
  341. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/style.d.ts +19 -0
  342. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/index.d.ts +1 -0
  343. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/index.d.ts +1 -0
  344. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/index.d.ts +1 -0
  345. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/index.d.ts +1 -0
  346. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/Whatsapps.d.ts +8 -0
  347. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/Body.d.ts +7 -0
  348. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/Whatsapp.d.ts +7 -0
  349. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/index.d.ts +1 -0
  350. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/style.d.ts +19 -0
  351. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/index.d.ts +1 -0
  352. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/index.d.ts +1 -0
  353. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/index.d.ts +1 -0
  354. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/index.d.ts +1 -0
  355. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/index.d.ts +4 -0
  356. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/index.d.ts +1 -0
  357. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +13 -0
  358. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/index.d.ts +1 -0
  359. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/style.d.ts +3 -0
  360. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.d.ts +11 -0
  361. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/Body.d.ts +10 -0
  362. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/Ims.d.ts +10 -0
  363. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/index.d.ts +1 -0
  364. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +7 -0
  365. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/index.d.ts +1 -0
  366. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/index.d.ts +1 -0
  367. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/index.d.ts +1 -0
  368. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.d.ts +1 -0
  369. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/types/IMS.d.ts +2 -0
  370. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +13 -0
  371. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/index.d.ts +1 -0
  372. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/style.d.ts +3 -0
  373. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/SubsectionHeader.d.ts +5 -0
  374. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/index.d.ts +1 -0
  375. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/SubsectionHeaderWithButton.d.ts +6 -0
  376. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/index.d.ts +1 -0
  377. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/style.d.ts +8 -0
  378. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +5 -0
  379. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +5 -0
  380. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/index.d.ts +1 -0
  381. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/style.d.ts +15 -0
  382. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/index.d.ts +1 -0
  383. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/index.d.ts +1 -0
  384. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/style.d.ts +6 -0
  385. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.d.ts +10 -0
  386. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +6 -0
  387. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/index.d.ts +1 -0
  388. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +12 -0
  389. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/InformationItemInputsContainer.d.ts +6 -0
  390. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/index.d.ts +1 -0
  391. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -0
  392. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/NoteDeleteButton.d.ts +18 -0
  393. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/index.d.ts +1 -0
  394. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +13 -0
  395. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/StatusAdornment.d.ts +7 -0
  396. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +5 -0
  397. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/index.d.ts +1 -0
  398. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/index.d.ts +1 -0
  399. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/index.d.ts +1 -0
  400. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/SubsectionBodyContainer.d.ts +7 -0
  401. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/index.d.ts +1 -0
  402. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +14 -0
  403. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/index.d.ts +5 -0
  404. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/CheckContactAddressData.d.ts +5 -0
  405. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/ContactAddress.d.ts +2 -0
  406. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/index.d.ts +2 -0
  407. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/hooks/useEditModal.d.ts +8 -0
  408. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/index.d.ts +1 -0
  409. package/dist/esm/types/src/components/EditContactModal/components/Section/General/General.d.ts +14 -0
  410. package/dist/esm/types/src/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +8 -0
  411. package/dist/esm/types/src/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +8 -0
  412. package/dist/esm/types/src/components/EditContactModal/components/Section/General/index.d.ts +1 -0
  413. package/dist/esm/types/src/components/EditContactModal/components/Section/index.d.ts +3 -0
  414. package/dist/esm/types/src/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +6 -0
  415. package/dist/esm/types/src/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +14 -0
  416. package/dist/esm/types/src/components/EditContactModal/context/EditContactApiContext.d.ts +171 -0
  417. package/dist/esm/types/src/components/EditContactModal/context/EditEntityContext.d.ts +34 -0
  418. package/dist/esm/types/src/components/EditContactModal/context/NavigateContext.d.ts +9 -0
  419. package/dist/esm/types/src/components/EditContactModal/context/TranslationContext.d.ts +9 -0
  420. package/dist/esm/types/src/components/EditContactModal/hooks/useEditBusiness/types/UseEditBusiness.d.ts +55 -0
  421. package/dist/esm/types/src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.d.ts +10 -0
  422. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +60 -0
  423. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContact/useEditContact.d.ts +10 -0
  424. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContactMethods.d.ts +52 -0
  425. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContactModalController.d.ts +44 -0
  426. package/dist/esm/types/src/components/EditContactModal/hooks/useEntityUpdateSync.d.ts +8 -0
  427. package/dist/esm/types/src/components/EditContactModal/hooks/useField.d.ts +18 -0
  428. package/dist/esm/types/src/components/EditContactModal/hooks/useImage.d.ts +27 -0
  429. package/dist/esm/types/src/components/EditContactModal/hooks/useModalCloseHandler.d.ts +6 -0
  430. package/dist/esm/types/src/components/EditContactModal/hooks/useMultipleSelect.d.ts +20 -0
  431. package/dist/esm/types/src/components/EditContactModal/hooks/useSelect.d.ts +13 -0
  432. package/dist/esm/types/src/components/EditContactModal/hooks/useTagsEditorController.d.ts +26 -0
  433. package/dist/esm/types/src/components/EditContactModal/hooks/utils/editContactHelper.d.ts +6 -0
  434. package/dist/esm/types/src/components/EditContactModal/index.d.ts +1 -0
  435. package/dist/esm/types/src/components/EditContactModal/layout/Section.d.ts +9 -0
  436. package/dist/esm/types/src/components/EditContactModal/layout/SectionContent.d.ts +7 -0
  437. package/dist/esm/types/src/components/EditContactModal/layout/index.d.ts +2 -0
  438. package/dist/esm/types/src/components/EditContactModal/services/api.d.ts +141 -0
  439. package/dist/esm/types/src/components/EditContactModal/services/http.d.ts +23 -0
  440. package/dist/esm/types/src/components/EditContactModal/services/urls.d.ts +6 -0
  441. package/dist/esm/types/src/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +16 -0
  442. package/dist/esm/types/src/components/EditContactModal/shared/BusinessInfoLabel/index.d.ts +1 -0
  443. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +29 -0
  444. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/DateSelect.d.ts +8 -0
  445. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/index.d.ts +1 -0
  446. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +1 -0
  447. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/index.d.ts +1 -0
  448. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +18 -0
  449. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/CustomPropertyDatePicker.d.ts +8 -0
  450. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/index.d.ts +1 -0
  451. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/CustomPropertyDateRangePicker.d.ts +9 -0
  452. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/index.d.ts +1 -0
  453. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/CustomPropertyInput.d.ts +6 -0
  454. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/index.d.ts +1 -0
  455. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/types/CustomPropertyInputProps.d.ts +6 -0
  456. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/CustomPropertyOptionsSelect.d.ts +7 -0
  457. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/index.d.ts +1 -0
  458. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/CustomPropertyTimePicker.d.ts +8 -0
  459. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/index.d.ts +1 -0
  460. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/CustomPropertyTimeRangePicker.d.ts +9 -0
  461. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/index.d.ts +1 -0
  462. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts +6 -0
  463. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/index.d.ts +1 -0
  464. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +40 -0
  465. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/SelectBusinessLabel.d.ts +7 -0
  466. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/index.d.ts +1 -0
  467. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/index.d.ts +1 -0
  468. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/index.d.ts +1 -0
  469. package/dist/esm/types/src/components/EditContactModal/shared/index.d.ts +3 -0
  470. package/dist/esm/types/src/components/EditContactModal/types/is-business.typeguard.d.ts +7 -0
  471. package/dist/esm/types/src/components/EditContactModal/types/is-contact.typeguard.d.ts +7 -0
  472. package/dist/esm/types/src/components/EditContactModal/utils/contactHelper.d.ts +13 -0
  473. package/dist/esm/types/src/components/index.d.ts +2 -0
  474. package/dist/esm/types/src/i18n/config.d.ts +2 -0
  475. package/dist/esm/types/src/i18n/index.d.ts +2 -0
  476. package/dist/esm/types/src/index.d.ts +2 -0
  477. package/package.json +1 -1
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { useCallback, useEffect, createContext, useContext, useState, useMemo, Children, isValidElement, cloneElement, useRef } from 'react';
3
- import { styled as styled$5, Box as Box$2, IconButton as IconButton$2, Avatar, Typography as Typography$2, CircularProgress as CircularProgress$2, Tooltip, Chip as Chip$2, Popper as Popper$2, ClickAwayListener, CardContent, Stack as Stack$2, Popover as Popover$2, TextField as TextField$1, Autocomplete, Divider, Select as Select$2, MenuItem as MenuItem$2, FormControl as FormControl$2, Button as Button$2, Menu as Menu$2, ListItemIcon, ListItemText, Modal as Modal$2, Grid, Backdrop as Backdrop$2, Fade as Fade$2 } from '@mui/material';
2
+ import React__default, { useCallback, useEffect, createContext, useContext, useState, useMemo, Children, isValidElement, cloneElement, useDeferredValue, createElement, useRef } from 'react';
3
+ import { styled as styled$5, Box as Box$2, IconButton as IconButton$2, Avatar, Typography as Typography$2, CircularProgress as CircularProgress$2, Tooltip, Chip as Chip$2, Popper as Popper$2, ClickAwayListener, CardContent, Stack as Stack$2, Popover as Popover$2, TextField as TextField$1, Autocomplete, Button as Button$2, Divider, Select as Select$2, MenuItem as MenuItem$2, FormControl as FormControl$2, Menu as Menu$2, ListItemIcon, ListItemText, Modal as Modal$2, Grid, LinearProgress, Backdrop as Backdrop$2, Fade as Fade$2 } from '@mui/material';
4
4
  import { withEmotionCache, ThemeContext, CacheProvider, Global, css, keyframes } from '@emotion/react';
5
5
  import { initReactI18next, useTranslation } from 'react-i18next';
6
6
  import i18n from 'i18next';
@@ -7402,21 +7402,21 @@ var styleFunctionSx = /*#__PURE__*/Object.freeze({
7402
7402
 
7403
7403
  var require$$8 = /*@__PURE__*/getAugmentedNamespace(styleFunctionSx);
7404
7404
 
7405
- var _interopRequireDefault$j = interopRequireDefaultExports;
7405
+ var _interopRequireDefault$k = interopRequireDefaultExports;
7406
7406
  Object.defineProperty(createStyled$3, "__esModule", {
7407
7407
  value: true
7408
7408
  });
7409
7409
  var _default = createStyled$3.default = createStyled$1;
7410
7410
  var shouldForwardProp_1 = createStyled$3.shouldForwardProp = shouldForwardProp$1;
7411
7411
  createStyled$3.systemDefaultTheme = void 0;
7412
- var _extends2 = _interopRequireDefault$j(require_extends());
7413
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault$j(requireObjectWithoutPropertiesLoose());
7412
+ var _extends2 = _interopRequireDefault$k(require_extends());
7413
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault$k(requireObjectWithoutPropertiesLoose());
7414
7414
  var _styledEngine$1 = _interopRequireWildcard$2(require$$1$1);
7415
7415
  var _deepmerge = require$$4;
7416
- var _capitalize = _interopRequireDefault$j(require$$5);
7417
- var _getDisplayName = _interopRequireDefault$j(require$$6);
7418
- var _createTheme = _interopRequireDefault$j(require$$7);
7419
- var _styleFunctionSx = _interopRequireDefault$j(require$$8);
7416
+ var _capitalize = _interopRequireDefault$k(require$$5);
7417
+ var _getDisplayName = _interopRequireDefault$k(require$$6);
7418
+ var _createTheme = _interopRequireDefault$k(require$$7);
7419
+ var _styleFunctionSx = _interopRequireDefault$k(require$$8);
7420
7420
  const _excluded$1v = ["ownerState"],
7421
7421
  _excluded2$d = ["variants"],
7422
7422
  _excluded3$4 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
@@ -7686,7 +7686,7 @@ var require$$1 = /*@__PURE__*/getAugmentedNamespace(formatMuiErrorMessage$1);
7686
7686
 
7687
7687
  var require$$2 = /*@__PURE__*/getAugmentedNamespace(clamp);
7688
7688
 
7689
- var _interopRequireDefault$i = interopRequireDefaultExports;
7689
+ var _interopRequireDefault$j = interopRequireDefaultExports;
7690
7690
  Object.defineProperty(colorManipulator, "__esModule", {
7691
7691
  value: true
7692
7692
  });
@@ -7708,8 +7708,8 @@ colorManipulator.private_safeEmphasize = private_safeEmphasize;
7708
7708
  colorManipulator.private_safeLighten = private_safeLighten;
7709
7709
  colorManipulator.recomposeColor = recomposeColor$1;
7710
7710
  colorManipulator.rgbToHex = rgbToHex;
7711
- var _formatMuiErrorMessage2 = _interopRequireDefault$i(require$$1);
7712
- var _clamp = _interopRequireDefault$i(require$$2);
7711
+ var _formatMuiErrorMessage2 = _interopRequireDefault$j(require$$1);
7712
+ var _clamp = _interopRequireDefault$j(require$$2);
7713
7713
  /* eslint-disable @typescript-eslint/naming-convention */
7714
7714
 
7715
7715
  /**
@@ -9075,27 +9075,27 @@ function requireCreateSvgIcon () {
9075
9075
  return createSvgIcon;
9076
9076
  }
9077
9077
 
9078
- var _interopRequireDefault$h = interopRequireDefaultExports;
9078
+ var _interopRequireDefault$i = interopRequireDefaultExports;
9079
9079
  Object.defineProperty(ArrowForward, "__esModule", {
9080
9080
  value: true
9081
9081
  });
9082
- var default_1$i = ArrowForward.default = void 0;
9083
- var _createSvgIcon$h = _interopRequireDefault$h(requireCreateSvgIcon());
9084
- var _jsxRuntime$h = jsxRuntimeExports;
9085
- default_1$i = ArrowForward.default = (0, _createSvgIcon$h.default)( /*#__PURE__*/(0, _jsxRuntime$h.jsx)("path", {
9082
+ var default_1$j = ArrowForward.default = void 0;
9083
+ var _createSvgIcon$i = _interopRequireDefault$i(requireCreateSvgIcon());
9084
+ var _jsxRuntime$i = jsxRuntimeExports;
9085
+ default_1$j = ArrowForward.default = (0, _createSvgIcon$i.default)( /*#__PURE__*/(0, _jsxRuntime$i.jsx)("path", {
9086
9086
  d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
9087
9087
  }), 'ArrowForward');
9088
9088
 
9089
9089
  var Message = {};
9090
9090
 
9091
- var _interopRequireDefault$g = interopRequireDefaultExports;
9091
+ var _interopRequireDefault$h = interopRequireDefaultExports;
9092
9092
  Object.defineProperty(Message, "__esModule", {
9093
9093
  value: true
9094
9094
  });
9095
- var default_1$h = Message.default = void 0;
9096
- var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
9097
- var _jsxRuntime$g = jsxRuntimeExports;
9098
- default_1$h = Message.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
9095
+ var default_1$i = Message.default = void 0;
9096
+ var _createSvgIcon$h = _interopRequireDefault$h(requireCreateSvgIcon());
9097
+ var _jsxRuntime$h = jsxRuntimeExports;
9098
+ default_1$i = Message.default = (0, _createSvgIcon$h.default)( /*#__PURE__*/(0, _jsxRuntime$h.jsx)("path", {
9099
9099
  d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"
9100
9100
  }), 'Message');
9101
9101
 
@@ -9175,7 +9175,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9175
9175
  handleNavigateToContacts(e);
9176
9176
  onClose();
9177
9177
  }
9178
- }, disabled: !contactId, "aria-label": "View contact details", children: jsxRuntimeExports.jsx(default_1$i, { fontSize: "small" }) }), jsxRuntimeExports.jsx(SmallIconButton, { color: "info", size: "small", onClick: (e) => {
9178
+ }, disabled: !contactId, "aria-label": "View contact details", children: jsxRuntimeExports.jsx(default_1$j, { fontSize: "small" }) }), jsxRuntimeExports.jsx(SmallIconButton, { color: "info", size: "small", onClick: (e) => {
9179
9179
  handleNavigateToConversations(e);
9180
9180
  onClose();
9181
9181
  }, onMouseDown: (e) => {
@@ -9184,7 +9184,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9184
9184
  handleNavigateToConversations(e);
9185
9185
  onClose();
9186
9186
  }
9187
- }, "aria-label": "Go to conversations", children: jsxRuntimeExports.jsx(default_1$h, { fontSize: "small" }) })] }), isLoading ? (jsxRuntimeExports.jsx(LoadingContainer, { children: jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) })) : (jsxRuntimeExports.jsx(ContactAvatar, { src: imgUrl, alt: avatarAlt, onError: () => onError?.(new Error('Failed to load avatar')) })), jsxRuntimeExports.jsx(ContactName$1, { variant: "h6", title: displayName, children: displayName })] }));
9187
+ }, "aria-label": "Go to conversations", children: jsxRuntimeExports.jsx(default_1$i, { fontSize: "small" }) })] }), isLoading ? (jsxRuntimeExports.jsx(LoadingContainer, { children: jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) })) : (jsxRuntimeExports.jsx(ContactAvatar, { src: imgUrl, alt: avatarAlt, onError: () => onError?.(new Error('Failed to load avatar')) })), jsxRuntimeExports.jsx(ContactName$1, { variant: "h6", title: displayName, children: displayName })] }));
9188
9188
  };
9189
9189
 
9190
9190
  const Container$1 = styled$5(Box$2)({
@@ -15272,25 +15272,44 @@ const MembersSection = ({ contactData, title, navigate }) => {
15272
15272
  return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(SectionTitle, { gutterBottom: true, mt: 2, variant: "subtitle1", children: title }), contactData?.members.map((member) => (jsxRuntimeExports.jsx(MemberItem, { memberId: String(member.id), name: member.name, navigate: navigate }, member.id)))] }));
15273
15273
  };
15274
15274
 
15275
- var add$1 = "Add";
15276
- var close$1 = "Close";
15277
15275
  var labels$1 = "Labels";
15278
15276
  var phone$1 = "Phone";
15279
- var phones$1 = "Phones";
15280
- var number$1 = "Number";
15281
15277
  var business$1 = "Business";
15282
15278
  var businessMembers$1 = "Business Members";
15283
15279
  var properties$1 = "Properties";
15284
- var note$1 = "Note";
15285
15280
  var view$1 = "View";
15286
- var email$1 = "Email";
15287
15281
  var tags$1 = "Tags";
15288
15282
  var global$2 = {
15283
+ add: "Add",
15284
+ note: "Note",
15285
+ number: "Number",
15286
+ email: "Email",
15287
+ phones: "Phones",
15288
+ close: "Close",
15289
15289
  back: "Back",
15290
+ createNew: "Create new",
15291
+ "delete": "Delete",
15292
+ cancel: "Cancel",
15290
15293
  save: "Save",
15291
15294
  noOptions: "No options",
15292
15295
  noValue: "No value",
15293
- birthdate: "Birthdate"
15296
+ birthdate: "Birthdate",
15297
+ country: "Country",
15298
+ searchLocation: "Search location"
15299
+ };
15300
+ var searchLocationModal$1 = {
15301
+ searchAddress: "Search address",
15302
+ enterLocation: "Enter a location",
15303
+ city: "City",
15304
+ state: "State",
15305
+ postalCode: "Postal code",
15306
+ country: "Country",
15307
+ saveMainAddress: "Save main address",
15308
+ saveSecondaryAddress: "Save secondary address",
15309
+ loadingGoogleMaps: "Loading Google Maps...",
15310
+ googleMapsUnavailable: "Google Maps unavailable",
15311
+ googleMapsNotLoaded: "Google Maps not loaded",
15312
+ selectedPlaceNoLocation: "Selected place has no location data"
15294
15313
  };
15295
15314
  var avatar$1 = {
15296
15315
  upload: "Upload photo",
@@ -15325,44 +15344,58 @@ var conversations$1 = {
15325
15344
  }
15326
15345
  };
15327
15346
  var en = {
15328
- add: add$1,
15329
- close: close$1,
15330
15347
  labels: labels$1,
15331
15348
  phone: phone$1,
15332
- phones: phones$1,
15333
- number: number$1,
15334
15349
  business: business$1,
15335
15350
  businessMembers: businessMembers$1,
15336
15351
  properties: properties$1,
15337
- note: note$1,
15338
15352
  view: view$1,
15339
- email: email$1,
15340
15353
  tags: tags$1,
15341
15354
  global: global$2,
15355
+ searchLocationModal: searchLocationModal$1,
15342
15356
  avatar: avatar$1,
15343
15357
  contactEdit: contactEdit$1,
15344
15358
  conversations: conversations$1
15345
15359
  };
15346
15360
 
15347
- var add = "Agregar";
15348
- var close = "Cerrar";
15349
15361
  var labels = "Etiquetas";
15350
15362
  var phone = "Teléfono";
15351
- var phones = "Teléfonos";
15352
- var number = "Número";
15353
15363
  var business = "Empresa";
15354
15364
  var businessMembers = "Miembros de la empresa";
15355
15365
  var properties = "Propiedades";
15356
- var note = "Nota";
15357
15366
  var view = "Ver";
15358
- var email = "Correo Electrónico";
15359
15367
  var tags = "Etiquetas";
15360
15368
  var global$1 = {
15369
+ add: "Agregar",
15370
+ note: "Nota",
15371
+ number: "Número",
15372
+ email: "Correo Electrónico",
15373
+ close: "Cerrar",
15374
+ phones: "Teléfonos",
15375
+ "delete": "Eliminar",
15376
+ cancel: "Cancelar",
15377
+ createNew: "Crear nuevo",
15361
15378
  back: "Atrás",
15362
15379
  save: "Guardar",
15363
15380
  noOptions: "Sin opciones",
15364
15381
  noValue: "Sin valor",
15365
- birthdate: "Fecha de nacimiento"
15382
+ birthdate: "Fecha de nacimiento",
15383
+ country: "País",
15384
+ searchLocation: "Buscar ubicación"
15385
+ };
15386
+ var searchLocationModal = {
15387
+ searchAddress: "Buscar dirección",
15388
+ enterLocation: "Ingresá una ubicación",
15389
+ city: "Ciudad",
15390
+ state: "Estado",
15391
+ postalCode: "Código postal",
15392
+ country: "País",
15393
+ saveMainAddress: "Guardar como dirección principal",
15394
+ saveSecondaryAddress: "Guardar como dirección secundaria",
15395
+ loadingGoogleMaps: "Cargando Google Maps...",
15396
+ googleMapsUnavailable: "Google Maps no disponible",
15397
+ googleMapsNotLoaded: "Google Maps no está cargado",
15398
+ selectedPlaceNoLocation: "La ubicación seleccionada no tiene coordenadas"
15366
15399
  };
15367
15400
  var avatar = {
15368
15401
  upload: "Subir foto",
@@ -15397,20 +15430,15 @@ var conversations = {
15397
15430
  }
15398
15431
  };
15399
15432
  var es = {
15400
- add: add,
15401
- close: close,
15402
15433
  labels: labels,
15403
15434
  phone: phone,
15404
- phones: phones,
15405
- number: number,
15406
15435
  business: business,
15407
15436
  businessMembers: businessMembers,
15408
15437
  properties: properties,
15409
- note: note,
15410
15438
  view: view,
15411
- email: email,
15412
15439
  tags: tags,
15413
15440
  global: global$1,
15441
+ searchLocationModal: searchLocationModal,
15414
15442
  avatar: avatar,
15415
15443
  contactEdit: contactEdit,
15416
15444
  conversations: conversations
@@ -15522,45 +15550,45 @@ const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl,
15522
15550
 
15523
15551
  var Close = {};
15524
15552
 
15525
- var _interopRequireDefault$f = interopRequireDefaultExports;
15553
+ var _interopRequireDefault$g = interopRequireDefaultExports;
15526
15554
  Object.defineProperty(Close, "__esModule", {
15527
15555
  value: true
15528
15556
  });
15529
- var default_1$g = Close.default = void 0;
15530
- var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15531
- var _jsxRuntime$f = jsxRuntimeExports;
15532
- default_1$g = Close.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15557
+ var default_1$h = Close.default = void 0;
15558
+ var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
15559
+ var _jsxRuntime$g = jsxRuntimeExports;
15560
+ default_1$h = Close.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
15533
15561
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
15534
15562
  }), 'Close');
15535
15563
 
15536
15564
  var Edit = {};
15537
15565
 
15538
- var _interopRequireDefault$e = interopRequireDefaultExports;
15566
+ var _interopRequireDefault$f = interopRequireDefaultExports;
15539
15567
  Object.defineProperty(Edit, "__esModule", {
15540
15568
  value: true
15541
15569
  });
15542
- var default_1$f = Edit.default = void 0;
15543
- var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15544
- var _jsxRuntime$e = jsxRuntimeExports;
15545
- default_1$f = Edit.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15570
+ var default_1$g = Edit.default = void 0;
15571
+ var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15572
+ var _jsxRuntime$f = jsxRuntimeExports;
15573
+ default_1$g = Edit.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15546
15574
  d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
15547
15575
  }), 'Edit');
15548
15576
 
15549
15577
  var Label = {};
15550
15578
 
15551
- var _interopRequireDefault$d = interopRequireDefaultExports;
15579
+ var _interopRequireDefault$e = interopRequireDefaultExports;
15552
15580
  Object.defineProperty(Label, "__esModule", {
15553
15581
  value: true
15554
15582
  });
15555
- var default_1$e = Label.default = void 0;
15556
- var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15557
- var _jsxRuntime$d = jsxRuntimeExports;
15558
- default_1$e = Label.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15583
+ var default_1$f = Label.default = void 0;
15584
+ var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15585
+ var _jsxRuntime$e = jsxRuntimeExports;
15586
+ default_1$f = Label.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15559
15587
  d: "M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12z"
15560
15588
  }), 'Label');
15561
15589
 
15562
- const noop$4 = (key) => key;
15563
- const TranslationContext = createContext(noop$4);
15590
+ const noop$5 = (key) => key;
15591
+ const TranslationContext = createContext(noop$5);
15564
15592
  const TranslationProvider = ({ t, children }) => {
15565
15593
  return jsxRuntimeExports.jsx(TranslationContext.Provider, { value: t, children: children });
15566
15594
  };
@@ -15568,7 +15596,7 @@ const useTranslationContext = () => {
15568
15596
  const t = useContext(TranslationContext);
15569
15597
  if (!t) {
15570
15598
  console.warn('[useTranslationContext] using noop, context value is falsy');
15571
- return noop$4;
15599
+ return noop$5;
15572
15600
  }
15573
15601
  return (...args) => {
15574
15602
  const [key, ...rest] = args;
@@ -15622,7 +15650,7 @@ const Tags = ({ tags, onEditTags }) => {
15622
15650
  bgcolor: 'action.hover',
15623
15651
  color: 'text.primary',
15624
15652
  },
15625
- }, children: safeTags.length ? jsxRuntimeExports.jsx(default_1$f, { fontSize: "small" }) : jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] }), jsxRuntimeExports.jsx(Popover$2, { open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, children: jsxRuntimeExports.jsxs(Box$2, { sx: { p: 1.5, maxWidth: 320, maxHeight: 240, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle2", sx: { mb: 1 }, children: t('tags') }), jsxRuntimeExports.jsx(Stack$2, { direction: "row", spacing: 1, useFlexGap: true, flexWrap: "wrap", children: safeTags.map((tag) => (jsxRuntimeExports.jsx(Chip$2, { label: tag.name, size: "small", variant: "outlined", sx: {
15653
+ }, children: safeTags.length ? jsxRuntimeExports.jsx(default_1$g, { fontSize: "small" }) : jsxRuntimeExports.jsx(default_1$f, { fontSize: "small" }) })] }), jsxRuntimeExports.jsx(Popover$2, { open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, children: jsxRuntimeExports.jsxs(Box$2, { sx: { p: 1.5, maxWidth: 320, maxHeight: 240, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle2", sx: { mb: 1 }, children: t('tags') }), jsxRuntimeExports.jsx(Stack$2, { direction: "row", spacing: 1, useFlexGap: true, flexWrap: "wrap", children: safeTags.map((tag) => (jsxRuntimeExports.jsx(Chip$2, { label: tag.name, size: "small", variant: "outlined", sx: {
15626
15654
  borderRadius: 999,
15627
15655
  maxWidth: 160,
15628
15656
  '& .MuiChip-label': {
@@ -15724,31 +15752,31 @@ const ContactName = ({ displayName, contactType, firstName, lastName, name, enti
15724
15752
 
15725
15753
  var Delete = {};
15726
15754
 
15727
- var _interopRequireDefault$c = interopRequireDefaultExports;
15755
+ var _interopRequireDefault$d = interopRequireDefaultExports;
15728
15756
  Object.defineProperty(Delete, "__esModule", {
15729
15757
  value: true
15730
15758
  });
15731
- var default_1$d = Delete.default = void 0;
15732
- var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15733
- var _jsxRuntime$c = jsxRuntimeExports;
15734
- default_1$d = Delete.default = (0, _createSvgIcon$c.default)( /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15759
+ var default_1$e = Delete.default = void 0;
15760
+ var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15761
+ var _jsxRuntime$d = jsxRuntimeExports;
15762
+ default_1$e = Delete.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15735
15763
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
15736
15764
  }), 'Delete');
15737
15765
 
15738
15766
  var PhotoCamera = {};
15739
15767
 
15740
- var _interopRequireDefault$b = interopRequireDefaultExports;
15768
+ var _interopRequireDefault$c = interopRequireDefaultExports;
15741
15769
  Object.defineProperty(PhotoCamera, "__esModule", {
15742
15770
  value: true
15743
15771
  });
15744
- var default_1$c = PhotoCamera.default = void 0;
15745
- var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15746
- var _jsxRuntime$b = jsxRuntimeExports;
15747
- default_1$c = PhotoCamera.default = (0, _createSvgIcon$b.default)([/*#__PURE__*/(0, _jsxRuntime$b.jsx)("circle", {
15772
+ var default_1$d = PhotoCamera.default = void 0;
15773
+ var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15774
+ var _jsxRuntime$c = jsxRuntimeExports;
15775
+ default_1$d = PhotoCamera.default = (0, _createSvgIcon$c.default)([/*#__PURE__*/(0, _jsxRuntime$c.jsx)("circle", {
15748
15776
  cx: "12",
15749
15777
  cy: "12",
15750
15778
  r: "3.2"
15751
- }, "0"), /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15779
+ }, "0"), /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15752
15780
  d: "M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"
15753
15781
  }, "1")], 'PhotoCamera');
15754
15782
 
@@ -15782,11 +15810,11 @@ const AvatarWithActions = ({ src, alt, onError, onUpload, onDelete, isUploading,
15782
15810
  color: 'common.white',
15783
15811
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15784
15812
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15785
- }, children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(IconButton$2, { size: "small", "aria-label": t('avatar.delete'), onClick: onDelete, disabled: Boolean(isDeleting), sx: {
15813
+ }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) }), jsxRuntimeExports.jsx(IconButton$2, { size: "small", "aria-label": t('avatar.delete'), onClick: onDelete, disabled: Boolean(isDeleting), sx: {
15786
15814
  color: 'common.white',
15787
15815
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15788
15816
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15789
- }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) })] })] }));
15817
+ }, children: jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] })] }));
15790
15818
  };
15791
15819
 
15792
15820
  const HeaderContainer = styled$5(Box$2)({
@@ -15804,27 +15832,27 @@ const Header = ({ imgUrl, displayName, onError, tags, onEditTags, onUploadPhoto,
15804
15832
 
15805
15833
  var ArrowBack = {};
15806
15834
 
15807
- var _interopRequireDefault$a = interopRequireDefaultExports;
15835
+ var _interopRequireDefault$b = interopRequireDefaultExports;
15808
15836
  Object.defineProperty(ArrowBack, "__esModule", {
15809
15837
  value: true
15810
15838
  });
15811
- var default_1$b = ArrowBack.default = void 0;
15812
- var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15813
- var _jsxRuntime$a = jsxRuntimeExports;
15814
- default_1$b = ArrowBack.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15839
+ var default_1$c = ArrowBack.default = void 0;
15840
+ var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15841
+ var _jsxRuntime$b = jsxRuntimeExports;
15842
+ default_1$c = ArrowBack.default = (0, _createSvgIcon$b.default)( /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15815
15843
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
15816
15844
  }), 'ArrowBack');
15817
15845
 
15818
15846
  var Save = {};
15819
15847
 
15820
- var _interopRequireDefault$9 = interopRequireDefaultExports;
15848
+ var _interopRequireDefault$a = interopRequireDefaultExports;
15821
15849
  Object.defineProperty(Save, "__esModule", {
15822
15850
  value: true
15823
15851
  });
15824
- var default_1$a = Save.default = void 0;
15825
- var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
15826
- var _jsxRuntime$9 = jsxRuntimeExports;
15827
- default_1$a = Save.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
15852
+ var default_1$b = Save.default = void 0;
15853
+ var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15854
+ var _jsxRuntime$a = jsxRuntimeExports;
15855
+ default_1$b = Save.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15828
15856
  d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
15829
15857
  }), 'Save');
15830
15858
 
@@ -15833,7 +15861,7 @@ var useThemeWithoutDefault = {};
15833
15861
  Object.defineProperty(useThemeWithoutDefault, "__esModule", {
15834
15862
  value: true
15835
15863
  });
15836
- var default_1$9 = useThemeWithoutDefault.default = void 0;
15864
+ var default_1$a = useThemeWithoutDefault.default = void 0;
15837
15865
  var React = _interopRequireWildcard$1(React__default);
15838
15866
  var _styledEngine = require$$1$1;
15839
15867
  function _getRequireWildcardCache$1(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache$1 = function (e) { return e ? t : r; })(e); }
@@ -15845,7 +15873,7 @@ function useTheme$3(defaultTheme = null) {
15845
15873
  const contextTheme = React.useContext(_styledEngine.ThemeContext);
15846
15874
  return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme : contextTheme;
15847
15875
  }
15848
- default_1$9 = useThemeWithoutDefault.default = useTheme$3;
15876
+ default_1$a = useThemeWithoutDefault.default = useTheme$3;
15849
15877
 
15850
15878
  var top = 'top';
15851
15879
  var bottom = 'bottom';
@@ -18932,7 +18960,7 @@ const PopperRoot = styled$3(BasePopper, {
18932
18960
  */
18933
18961
  const Popper = /*#__PURE__*/React$1.forwardRef(function Popper(inProps, ref) {
18934
18962
  var _slots$root;
18935
- const theme = default_1$9();
18963
+ const theme = default_1$a();
18936
18964
  const props = useDefaultProps({
18937
18965
  props: inProps,
18938
18966
  name: 'MuiPopper'
@@ -19919,7 +19947,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
19919
19947
  onExited: PropTypes.func
19920
19948
  } : {}; // Name the function so it is clearer in the documentation
19921
19949
 
19922
- function noop$3() {}
19950
+ function noop$4() {}
19923
19951
 
19924
19952
  Transition.defaultProps = {
19925
19953
  in: false,
@@ -19928,12 +19956,12 @@ Transition.defaultProps = {
19928
19956
  appear: false,
19929
19957
  enter: true,
19930
19958
  exit: true,
19931
- onEnter: noop$3,
19932
- onEntering: noop$3,
19933
- onEntered: noop$3,
19934
- onExit: noop$3,
19935
- onExiting: noop$3,
19936
- onExited: noop$3
19959
+ onEnter: noop$4,
19960
+ onEntering: noop$4,
19961
+ onEntered: noop$4,
19962
+ onExit: noop$4,
19963
+ onExiting: noop$4,
19964
+ onExited: noop$4
19937
19965
  };
19938
19966
  Transition.UNMOUNTED = UNMOUNTED;
19939
19967
  Transition.EXITED = EXITED;
@@ -24831,15 +24859,43 @@ Grow.muiSupportAuto = true;
24831
24859
  var Grow$1 = Grow;
24832
24860
 
24833
24861
  const PAGE_SIZE = 20;
24834
- const AutocompletePopper = styled$3(MuiPopper)(({ theme }) => ({
24835
- zIndex: theme.zIndex.modal + 1,
24836
- }));
24837
- const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCreateNew, isCreatingNew, }) => {
24862
+ const AutocompletePopper = (props) => {
24863
+ const { popperContainer, ...rest } = props;
24864
+ return (jsxRuntimeExports.jsx(MuiPopper, { ...rest, container: popperContainer ?? rest.container, style: { ...(rest.style ?? {}), zIndex: 20000 } }));
24865
+ };
24866
+ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCreateNew, isCreatingNew, popperContainer, }) => {
24838
24867
  const t = useTranslationContext();
24839
24868
  const [searchValue, setSearchValue] = useState('');
24840
24869
  const [limit, setLimit] = useState(PAGE_SIZE);
24870
+ const deferredSearchValue = useDeferredValue(searchValue);
24841
24871
  const safeOptions = useMemo(() => options ?? [], [options]);
24842
- const visibleOptions = useMemo(() => safeOptions.slice(0, limit), [safeOptions, limit]);
24872
+ const filteredOptions = useMemo(() => {
24873
+ const q = String(deferredSearchValue ?? '')
24874
+ .trim()
24875
+ .toLowerCase();
24876
+ if (!q)
24877
+ return safeOptions;
24878
+ return safeOptions.filter((o) => String(o?.name ?? '')
24879
+ .toLowerCase()
24880
+ .includes(q));
24881
+ }, [safeOptions, deferredSearchValue]);
24882
+ const visibleOptions = useMemo(() => filteredOptions.slice(0, limit), [filteredOptions, limit]);
24883
+ const optionsWithSelectedValues = useMemo(() => {
24884
+ const byId = new Map();
24885
+ for (const selected of value ?? []) {
24886
+ if (!selected?.id)
24887
+ continue;
24888
+ byId.set(String(selected.id), selected);
24889
+ }
24890
+ for (const opt of visibleOptions ?? []) {
24891
+ if (!opt?.id)
24892
+ continue;
24893
+ if (byId.has(String(opt.id)))
24894
+ continue;
24895
+ byId.set(String(opt.id), opt);
24896
+ }
24897
+ return Array.from(byId.values());
24898
+ }, [value, visibleOptions]);
24843
24899
  const handleSearchChange = (_, newInputValue) => {
24844
24900
  setSearchValue(newInputValue ?? '');
24845
24901
  setLimit(PAGE_SIZE);
@@ -24859,7 +24915,14 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24859
24915
  alignItems: 'center',
24860
24916
  }, children: [t('global.noOptions'), jsxRuntimeExports.jsx(LoadingButton$1, { onClick: () => onCreateNew(trimmedSearchValue), loading: isCreatingNew, disabled: isDisabled, variant: "contained", size: "small", sx: { marginTop: 1.3 }, children: t('global.createNew') })] }));
24861
24917
  };
24862
- return (jsxRuntimeExports.jsxs(Box$2, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(IconButton$2, { size: "small", onClick: onBack, "aria-label": t('global.back'), disabled: isSaving, children: jsxRuntimeExports.jsx(default_1$b, { fontSize: "small" }) }), jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: t('tags') }), jsxRuntimeExports.jsx(Box$2, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$a, {}), onClick: onSave, loading: isSaving, disabled: isSaving, children: t('global.save') })] }), jsxRuntimeExports.jsx(Autocomplete, { multiple: true, disablePortal: false, value: value, onChange: (_, newValue) => onChange(newValue), options: visibleOptions, filterOptions: (x) => x, inputValue: searchValue, onInputChange: handleSearchChange, getOptionLabel: (option) => option?.name ?? '', isOptionEqualToValue: (o, v) => String(o?.id) === String(v?.id), PopperComponent: AutocompletePopper, renderOption: (props, option) => jsxRuntimeExports.jsx("li", { ...props, children: option.name ?? '' }), renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => (jsxRuntimeExports.jsx(Chip$2, { label: option.name ?? '', ...getTagProps({ index }) }))), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(TextField$1, { ...params, size: "small" }), ListboxProps: {
24918
+ return (jsxRuntimeExports.jsxs(Box$2, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(IconButton$2, { size: "small", onClick: onBack, "aria-label": t('global.back'), disabled: isSaving, children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: t('tags') }), jsxRuntimeExports.jsx(Box$2, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: onSave, loading: isSaving, disabled: isSaving, children: t('global.save') })] }), jsxRuntimeExports.jsx(Autocomplete, { multiple: true, disablePortal: false, value: value, onChange: (_, newValue) => onChange(newValue), options: optionsWithSelectedValues, filterOptions: (x) => x, inputValue: searchValue, onInputChange: handleSearchChange, getOptionLabel: (option) => option?.name ?? '', isOptionEqualToValue: (o, v) => String(o?.id) === String(v?.id), PopperComponent: (props) => (jsxRuntimeExports.jsx(AutocompletePopper, { ...props, popperContainer: popperContainer })), renderOption: (props, option) => {
24919
+ const { key, ...rest } = props;
24920
+ return (createElement("li", { ...rest, key: option?.id ? String(option.id) : String(key ?? option?.name ?? '') }, option.name ?? ''));
24921
+ }, renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => {
24922
+ const tagProps = getTagProps({ index });
24923
+ const { key, ...rest } = tagProps;
24924
+ return (jsxRuntimeExports.jsx(Chip$2, { label: option.name ?? '', ...rest }, option?.id ? String(option.id) : String(key ?? option?.name ?? index)));
24925
+ }), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(TextField$1, { ...params, size: "small" }), ListboxProps: {
24863
24926
  onScroll: onListboxScroll,
24864
24927
  sx: { maxHeight: 280, overflowY: 'auto' },
24865
24928
  }, noOptionsText: jsxRuntimeExports.jsx(CustomNoOptionsMessage, {}), sx: { width: '100%' } })] }));
@@ -24959,6 +25022,16 @@ async function updateEntity({ baseUrl, spaceId, entityType, entityId, body, sign
24959
25022
  const url = joinUrl(urls.CONTACTS, path);
24960
25023
  return requestJson({ url, method: 'PUT', body, signal });
24961
25024
  }
25025
+ async function fetchBusinessTableData({ baseUrl, spaceId, pagination, signal, }) {
25026
+ const urls = getApiUrls(baseUrl, spaceId);
25027
+ const url = joinUrl(urls.CONTACTS, '/Search');
25028
+ return requestJson({ url, method: 'POST', body: pagination, signal });
25029
+ }
25030
+ async function createBusiness({ baseUrl, spaceId, business, signal }) {
25031
+ const urls = getApiUrls(baseUrl, spaceId);
25032
+ const url = joinUrl(urls.CONTACTS, '/business');
25033
+ return requestJson({ url, method: 'POST', body: business, signal });
25034
+ }
24962
25035
  async function deleteAddress({ baseUrl, spaceId, data, signal }) {
24963
25036
  const urls = getApiUrls(baseUrl, spaceId);
24964
25037
  const url = joinUrl(urls.CONTACTS, '/contactAddresses');
@@ -25005,6 +25078,8 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25005
25078
  fetchLabels: ({ signal } = {}) => fetchLabels({ baseUrl, spaceId, signal }),
25006
25079
  createLabel: ({ name, signal }) => createLabel({ baseUrl, spaceId, name, signal }),
25007
25080
  fetchContact: ({ contactId, signal }) => fetchContact({ baseUrl, spaceId, contactId, signal }),
25081
+ fetchBusinessTableData: ({ pagination, signal }) => fetchBusinessTableData({ baseUrl, spaceId, pagination, signal }),
25082
+ createBusiness: ({ business, signal }) => createBusiness({ baseUrl, spaceId, business, signal }),
25008
25083
  fetchContactFields: ({ forType, signal }) => fetchContactFields({ baseUrl, spaceId, forType, signal }),
25009
25084
  updateEntity: ({ entityType, entityId, body, signal }) => updateEntity({ baseUrl, spaceId, entityType, entityId, body, signal }),
25010
25085
  deleteAddress: ({ data, signal }) => deleteAddress({ baseUrl, spaceId, data, signal }),
@@ -25018,6 +25093,296 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25018
25093
  uploadAvatar: ({ contactId, file, signal }) => uploadAvatar({ baseUrl, spaceId, contactId, file, signal }),
25019
25094
  });
25020
25095
 
25096
+ const isGoogleMapsLoaded = () => {
25097
+ return Boolean(window?.google?.maps?.places?.Autocomplete);
25098
+ };
25099
+ const waitForGoogleMaps = (maxWaitTime = 10000) => {
25100
+ return new Promise((resolve) => {
25101
+ if (isGoogleMapsLoaded()) {
25102
+ resolve(true);
25103
+ return;
25104
+ }
25105
+ const startTime = Date.now();
25106
+ const checkInterval = 100;
25107
+ const interval = window.setInterval(() => {
25108
+ if (isGoogleMapsLoaded()) {
25109
+ window.clearInterval(interval);
25110
+ resolve(true);
25111
+ return;
25112
+ }
25113
+ if (Date.now() - startTime > maxWaitTime) {
25114
+ window.clearInterval(interval);
25115
+ resolve(false);
25116
+ }
25117
+ }, checkInterval);
25118
+ });
25119
+ };
25120
+ const useGoogleMapsStatus = () => {
25121
+ const [isLoaded, setIsLoaded] = useState(false);
25122
+ const [isLoading, setIsLoading] = useState(true);
25123
+ const [error, setError] = useState(null);
25124
+ useEffect(() => {
25125
+ const checkStatus = async () => {
25126
+ try {
25127
+ const loaded = await waitForGoogleMaps(10000);
25128
+ setIsLoaded(loaded);
25129
+ if (!loaded) {
25130
+ setError('Google Maps API failed to load');
25131
+ }
25132
+ }
25133
+ catch {
25134
+ setError('Error loading Google Maps API');
25135
+ setIsLoaded(false);
25136
+ }
25137
+ finally {
25138
+ setIsLoading(false);
25139
+ }
25140
+ };
25141
+ checkStatus();
25142
+ }, []);
25143
+ return { isLoaded, isLoading, error };
25144
+ };
25145
+
25146
+ const SearchLocationInput = ({ onPlaceSelected, onError, placeholder }) => {
25147
+ const t = useTranslationContext();
25148
+ const inputRef = useRef(null);
25149
+ const autocompleteRef = useRef(null);
25150
+ const placeSelectedRef = useRef(onPlaceSelected);
25151
+ const errorRef = useRef(onError);
25152
+ const { isLoaded, isLoading, error: mapsError } = useGoogleMapsStatus();
25153
+ const currentPlaceholder = useMemo(() => {
25154
+ if (isLoading)
25155
+ return t('searchLocationModal.loadingGoogleMaps');
25156
+ if (mapsError)
25157
+ return t('searchLocationModal.googleMapsUnavailable');
25158
+ if (!isLoaded)
25159
+ return t('searchLocationModal.googleMapsNotLoaded');
25160
+ return placeholder ?? t('searchLocationModal.enterLocation');
25161
+ }, [isLoaded, isLoading, mapsError, placeholder, t]);
25162
+ useEffect(() => {
25163
+ placeSelectedRef.current = onPlaceSelected;
25164
+ }, [onPlaceSelected]);
25165
+ useEffect(() => {
25166
+ errorRef.current = onError;
25167
+ }, [onError]);
25168
+ useEffect(() => {
25169
+ if (!isLoaded)
25170
+ return;
25171
+ if (!inputRef.current)
25172
+ return;
25173
+ if (autocompleteRef.current)
25174
+ return;
25175
+ const googleAny = window?.google;
25176
+ if (!googleAny?.maps?.places?.Autocomplete) {
25177
+ errorRef.current?.(t('searchLocationModal.googleMapsUnavailable'));
25178
+ return;
25179
+ }
25180
+ inputRef.current.focus();
25181
+ let observer = null;
25182
+ const applyPacContainerStyles = () => {
25183
+ const pacContainers = document.querySelectorAll('.pac-container');
25184
+ pacContainers.forEach((container) => {
25185
+ const el = container;
25186
+ el.style.zIndex = '20000';
25187
+ el.style.position = 'fixed';
25188
+ });
25189
+ };
25190
+ observer = new MutationObserver((mutations) => {
25191
+ for (const mutation of mutations) {
25192
+ for (const node of Array.from(mutation.addedNodes)) {
25193
+ if (node.nodeType !== Node.ELEMENT_NODE)
25194
+ continue;
25195
+ const element = node;
25196
+ if (!element.classList?.contains('pac-container'))
25197
+ continue;
25198
+ element.style.zIndex = '20000';
25199
+ element.style.position = 'fixed';
25200
+ }
25201
+ }
25202
+ });
25203
+ observer.observe(document.body, {
25204
+ childList: true,
25205
+ subtree: true,
25206
+ });
25207
+ applyPacContainerStyles();
25208
+ window.setTimeout(applyPacContainerStyles, 100);
25209
+ autocompleteRef.current = new googleAny.maps.places.Autocomplete(inputRef.current, {
25210
+ types: ['geocode'],
25211
+ componentRestrictions: { country: 'ar' },
25212
+ });
25213
+ const listener = autocompleteRef.current.addListener?.('place_changed', () => {
25214
+ const place = autocompleteRef.current?.getPlace?.();
25215
+ if (!place?.geometry?.location) {
25216
+ errorRef.current?.(t('searchLocationModal.selectedPlaceNoLocation'));
25217
+ return;
25218
+ }
25219
+ let city = '';
25220
+ let state = '';
25221
+ let country = '';
25222
+ let postalCode = '';
25223
+ let streetName = '';
25224
+ let streetNumber = '';
25225
+ const components = place.address_components ?? [];
25226
+ for (const component of components) {
25227
+ const types = component?.types ?? [];
25228
+ if (types.includes('locality') || types.includes('administrative_area_level_2')) {
25229
+ city = component.long_name;
25230
+ continue;
25231
+ }
25232
+ if (types.includes('administrative_area_level_1')) {
25233
+ state = component.long_name;
25234
+ continue;
25235
+ }
25236
+ if (types.includes('country')) {
25237
+ country = component.long_name;
25238
+ continue;
25239
+ }
25240
+ if (types.includes('postal_code')) {
25241
+ postalCode = component.long_name;
25242
+ continue;
25243
+ }
25244
+ if (types.includes('route')) {
25245
+ streetName = component.long_name;
25246
+ continue;
25247
+ }
25248
+ if (types.includes('street_number')) {
25249
+ streetNumber = component.long_name;
25250
+ }
25251
+ }
25252
+ const lat = typeof place.geometry.location.lat === 'function' ? place.geometry.location.lat() : 0;
25253
+ const lng = typeof place.geometry.location.lng === 'function' ? place.geometry.location.lng() : 0;
25254
+ const result = {
25255
+ location: { lat, lng },
25256
+ address: place.formatted_address ?? '',
25257
+ city,
25258
+ state,
25259
+ country,
25260
+ postalCode,
25261
+ streetName,
25262
+ streetNumber,
25263
+ shortAddress: [streetName, streetNumber].filter(Boolean).join(' '),
25264
+ };
25265
+ placeSelectedRef.current(result);
25266
+ });
25267
+ return () => {
25268
+ if (observer)
25269
+ observer.disconnect();
25270
+ if (listener?.remove)
25271
+ listener.remove();
25272
+ autocompleteRef.current = null;
25273
+ };
25274
+ }, [isLoaded, t]);
25275
+ const isDisabled = isLoading || !isLoaded || Boolean(mapsError);
25276
+ return (jsxRuntimeExports.jsx(TextField$1, { fullWidth: true, size: "small", inputRef: inputRef, placeholder: currentPlaceholder, disabled: isDisabled, error: Boolean(mapsError) }));
25277
+ };
25278
+
25279
+ const EMPTY_DRAFT = {
25280
+ street: '',
25281
+ city: '',
25282
+ state: '',
25283
+ zipcode: '',
25284
+ country: '',
25285
+ };
25286
+ const SearchLocationEditor = ({ baseUrl, spaceId, entityType, entityId, onBack, onEntityUpdated, }) => {
25287
+ const t = useTranslationContext();
25288
+ const [draft, setDraft] = useState(EMPTY_DRAFT);
25289
+ const [query, setQuery] = useState('');
25290
+ const [error, setError] = useState('');
25291
+ const [isSavingMain, setIsSavingMain] = useState(false);
25292
+ const [isSavingSecondary, setIsSavingSecondary] = useState(false);
25293
+ const canSubmit = useMemo(() => {
25294
+ return Boolean(String(draft.street ?? '').trim() ||
25295
+ String(draft.city ?? '').trim() ||
25296
+ String(draft.state ?? '').trim() ||
25297
+ String(draft.zipcode ?? '').trim() ||
25298
+ String(draft.country ?? '').trim());
25299
+ }, [draft]);
25300
+ const handlePlaceSelected = (result) => {
25301
+ setQuery(result.address ?? '');
25302
+ const computedStreet = String(result.shortAddress ?? '').trim() ||
25303
+ [result.streetName, result.streetNumber].filter(Boolean).join(' ').trim();
25304
+ setDraft({
25305
+ street: computedStreet,
25306
+ city: result.city ?? '',
25307
+ state: result.state ?? '',
25308
+ zipcode: result.postalCode ?? '',
25309
+ country: result.country ?? '',
25310
+ });
25311
+ setError('');
25312
+ };
25313
+ const handleError = (errorMessage) => {
25314
+ setError(String(errorMessage ?? ''));
25315
+ };
25316
+ const handleChange = (key) => (e) => {
25317
+ const next = e.target.value;
25318
+ setDraft((prev) => ({ ...prev, [key]: next }));
25319
+ };
25320
+ const handleSaveMainAddress = async () => {
25321
+ if (isSavingMain)
25322
+ return;
25323
+ if (!baseUrl || !spaceId)
25324
+ return;
25325
+ if (!entityId)
25326
+ return;
25327
+ setIsSavingMain(true);
25328
+ try {
25329
+ const updated = await updateEntity({
25330
+ baseUrl,
25331
+ spaceId,
25332
+ entityType,
25333
+ entityId,
25334
+ body: {
25335
+ address1: {
25336
+ street: String(draft.street ?? ''),
25337
+ city: String(draft.city ?? ''),
25338
+ state: String(draft.state ?? ''),
25339
+ zipcode: String(draft.zipcode ?? ''),
25340
+ country: String(draft.country ?? ''),
25341
+ },
25342
+ },
25343
+ });
25344
+ onEntityUpdated?.(updated);
25345
+ onBack();
25346
+ }
25347
+ finally {
25348
+ setIsSavingMain(false);
25349
+ }
25350
+ };
25351
+ const handleSaveSecondaryAddress = async () => {
25352
+ if (isSavingSecondary)
25353
+ return;
25354
+ if (!baseUrl || !spaceId)
25355
+ return;
25356
+ if (!entityId)
25357
+ return;
25358
+ setIsSavingSecondary(true);
25359
+ try {
25360
+ const updated = await updateEntity({
25361
+ baseUrl,
25362
+ spaceId,
25363
+ entityType,
25364
+ entityId,
25365
+ body: {
25366
+ address2: {
25367
+ street: String(draft.street ?? ''),
25368
+ city: String(draft.city ?? ''),
25369
+ state: String(draft.state ?? ''),
25370
+ zipcode: String(draft.zipcode ?? ''),
25371
+ country: String(draft.country ?? ''),
25372
+ },
25373
+ },
25374
+ });
25375
+ onEntityUpdated?.(updated);
25376
+ onBack();
25377
+ }
25378
+ finally {
25379
+ setIsSavingSecondary(false);
25380
+ }
25381
+ };
25382
+ const isDisabled = !canSubmit || isSavingMain || isSavingSecondary;
25383
+ return (jsxRuntimeExports.jsxs(Box$2, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(IconButton$2, { size: "small", onClick: onBack, "aria-label": t('global.back'), children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: t('searchLocationModal.searchAddress') }), jsxRuntimeExports.jsx(Box$2, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: handleSaveMainAddress, loading: isSavingMain, disabled: isDisabled, sx: { mr: 1 }, children: t('searchLocationModal.saveMainAddress') }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "outlined", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: handleSaveSecondaryAddress, loading: isSavingSecondary, disabled: isDisabled, children: t('searchLocationModal.saveSecondaryAddress') })] }), jsxRuntimeExports.jsxs(Stack$2, { spacing: 2, children: [jsxRuntimeExports.jsxs(Box$2, { sx: { position: 'relative', zIndex: 1400 }, children: [jsxRuntimeExports.jsx(SearchLocationInput, { onPlaceSelected: handlePlaceSelected, onError: handleError, placeholder: t('searchLocationModal.enterLocation') }), error ? (jsxRuntimeExports.jsx(Typography$2, { variant: "caption", color: "error", sx: { mt: 0.5, display: 'block' }, children: error })) : null] }), jsxRuntimeExports.jsx(TextField$1, { label: t('conversations.contactDetails.street'), value: draft.street, onChange: handleChange('street'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsxs(Stack$2, { direction: { xs: 'column', sm: 'row' }, spacing: 2, children: [jsxRuntimeExports.jsx(TextField$1, { label: t('searchLocationModal.city'), value: draft.city, onChange: handleChange('city'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsx(TextField$1, { label: t('searchLocationModal.state'), value: draft.state, onChange: handleChange('state'), fullWidth: true, size: "small" })] }), jsxRuntimeExports.jsxs(Stack$2, { direction: { xs: 'column', sm: 'row' }, spacing: 2, children: [jsxRuntimeExports.jsx(TextField$1, { label: t('searchLocationModal.postalCode'), value: draft.zipcode, onChange: handleChange('zipcode'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsx(TextField$1, { label: t('searchLocationModal.country'), value: draft.country, onChange: handleChange('country'), fullWidth: true, size: "small" })] }), query ? (jsxRuntimeExports.jsx(Typography$2, { variant: "caption", sx: { opacity: 0.7 }, children: query })) : null] })] }));
25384
+ };
25385
+
25021
25386
  /**
25022
25387
  * Type guard to check if an object is an IBusiness
25023
25388
  * @param obj The object to check
@@ -26641,14 +27006,28 @@ const resolveUserLabel = ({ userId, users, currentUser, }) => {
26641
27006
  return fromUsers?.name?.trim() || fromUsers?.email || null;
26642
27007
  };
26643
27008
 
26644
- const Section = ({ title, children }) => {
27009
+ var AddLocationAlt = {};
27010
+
27011
+ var _interopRequireDefault$9 = interopRequireDefaultExports;
27012
+ Object.defineProperty(AddLocationAlt, "__esModule", {
27013
+ value: true
27014
+ });
27015
+ var default_1$9 = AddLocationAlt.default = void 0;
27016
+ var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
27017
+ var _jsxRuntime$9 = jsxRuntimeExports;
27018
+ default_1$9 = AddLocationAlt.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
27019
+ d: "M20 1v3h3v2h-3v3h-2V6h-3V4h3V1zm-8 12c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m2-9.75V7h3v3h2.92c.05.39.08.79.08 1.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 6.22 7.8 3 12 3c.68 0 1.35.08 2 .25"
27020
+ }), 'AddLocationAlt');
27021
+
27022
+ const Section = ({ title, children, enableDirectionSearch = false, onDirectionSearchClick, }) => {
27023
+ const t = useTranslationContext();
26645
27024
  return (jsxRuntimeExports.jsxs(Box$2, { sx: {
26646
27025
  border: '1px solid',
26647
27026
  borderColor: 'divider',
26648
27027
  borderRadius: 2,
26649
27028
  p: 2,
26650
27029
  mb: 2,
26651
- }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: title }), jsxRuntimeExports.jsx(Divider, { sx: { my: 1.5 } }), children] }));
27030
+ }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: title }), enableDirectionSearch && (jsxRuntimeExports.jsx(Button$2, { startIcon: jsxRuntimeExports.jsx(default_1$9, { sx: { color: 'primary.main', height: 18, width: 18 } }), size: "small", variant: "outlined", color: "primary", onClick: () => onDirectionSearchClick && onDirectionSearchClick(), children: t('global.searchLocation') })), jsxRuntimeExports.jsx(Divider, { sx: { my: 1.5 } }), children] }));
26652
27031
  };
26653
27032
 
26654
27033
  const SectionContent = ({ children, ...boxProps }) => {
@@ -32969,7 +33348,7 @@ const PickersDayFiller = styled$3('div', {
32969
33348
  opacity: 0,
32970
33349
  pointerEvents: 'none'
32971
33350
  }));
32972
- const noop$2 = () => {};
33351
+ const noop$3 = () => {};
32973
33352
  const PickersDayRaw = /*#__PURE__*/React$1.forwardRef(function PickersDay(inProps, forwardedRef) {
32974
33353
  const props = useThemeProps({
32975
33354
  props: inProps,
@@ -32982,11 +33361,11 @@ const PickersDayRaw = /*#__PURE__*/React$1.forwardRef(function PickersDay(inProp
32982
33361
  isAnimating,
32983
33362
  onClick,
32984
33363
  onDaySelect,
32985
- onFocus = noop$2,
32986
- onBlur = noop$2,
32987
- onKeyDown = noop$2,
32988
- onMouseDown = noop$2,
32989
- onMouseEnter = noop$2,
33364
+ onFocus = noop$3,
33365
+ onBlur = noop$3,
33366
+ onKeyDown = noop$3,
33367
+ onMouseDown = noop$3,
33368
+ onMouseEnter = noop$3,
32990
33369
  children,
32991
33370
  day,
32992
33371
  selected,
@@ -43481,7 +43860,7 @@ const _excluded$y = ["enableAccessibleFieldDOMStructure"],
43481
43860
  _excluded6 = ["ownerState"],
43482
43861
  _excluded7 = ["ownerState"],
43483
43862
  _excluded8 = ["InputProps", "inputProps"];
43484
- const noop$1 = () => {};
43863
+ const noop$2 = () => {};
43485
43864
  const cleanFieldResponse = _ref => {
43486
43865
  let {
43487
43866
  enableAccessibleFieldDOMStructure
@@ -43498,7 +43877,7 @@ const cleanFieldResponse = _ref => {
43498
43877
  openPickerAriaLabel
43499
43878
  } = fieldResponse,
43500
43879
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded2$6);
43501
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43880
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43502
43881
  return {
43503
43882
  clearable,
43504
43883
  onClear,
@@ -43533,8 +43912,8 @@ const cleanFieldResponse = _ref => {
43533
43912
  openPickerAriaLabel
43534
43913
  } = fieldResponse,
43535
43914
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded3);
43536
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43537
- const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$1;
43915
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43916
+ const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$2;
43538
43917
  return {
43539
43918
  clearable,
43540
43919
  onClear,
@@ -52752,6 +53131,18 @@ default_1$8 = Cancel.default = (0, _createSvgIcon$8.default)( /*#__PURE__*/(0, _
52752
53131
  d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"
52753
53132
  }), 'Cancel');
52754
53133
 
53134
+ const noop$1 = { view: 'main', setView: () => { } };
53135
+ const EditContactViewContext = createContext(null);
53136
+ const EditContactViewProvider = EditContactViewContext.Provider;
53137
+ const useEditContactView = () => {
53138
+ const ctx = useContext(EditContactViewContext);
53139
+ if (!ctx) {
53140
+ console.warn('[useEditContactView] using noop, context value is missing');
53141
+ return noop$1;
53142
+ }
53143
+ return ctx;
53144
+ };
53145
+
52755
53146
  const noop = () => { };
52756
53147
  const NavigateContext = createContext(noop);
52757
53148
  const NavigateProvider = ({ navigate, children }) => {
@@ -52822,6 +53213,7 @@ const StyledSaveCancelButton$1 = styled$5(IconButton$2)({
52822
53213
  const EntityInfoLabel = (props) => {
52823
53214
  const { title, value, isNotEditable, displayValue, baseUrl, spaceId, minWidth, onEntityUpdated } = props;
52824
53215
  const t = useTranslationContext();
53216
+ const { setView } = useEditContactView();
52825
53217
  const inputType = props.inputType ?? 'text';
52826
53218
  const [isEditing, setIsEditing] = useState(false);
52827
53219
  const [isSaving, setIsSaving] = useState(false);
@@ -52838,15 +53230,26 @@ const EntityInfoLabel = (props) => {
52838
53230
  return;
52839
53231
  const check = () => {
52840
53232
  const next = el.scrollWidth > el.clientWidth;
52841
- setIsTitleTruncated(next);
53233
+ setIsTitleTruncated((prev) => (prev === next ? prev : next));
52842
53234
  };
52843
53235
  check();
52844
53236
  if (typeof ResizeObserver !== 'undefined') {
53237
+ let rafId = 0;
52845
53238
  const ro = new ResizeObserver(() => {
52846
- check();
53239
+ if (typeof window === 'undefined') {
53240
+ check();
53241
+ return;
53242
+ }
53243
+ if (rafId)
53244
+ window.cancelAnimationFrame(rafId);
53245
+ rafId = window.requestAnimationFrame(() => {
53246
+ check();
53247
+ });
52847
53248
  });
52848
53249
  ro.observe(el);
52849
53250
  return () => {
53251
+ if (typeof window !== 'undefined' && rafId)
53252
+ window.cancelAnimationFrame(rafId);
52850
53253
  ro.disconnect();
52851
53254
  };
52852
53255
  }
@@ -52856,7 +53259,7 @@ const EntityInfoLabel = (props) => {
52856
53259
  return () => {
52857
53260
  window.removeEventListener('resize', check);
52858
53261
  };
52859
- }, [title, isEditing]);
53262
+ }, [title]);
52860
53263
  useEffect(() => {
52861
53264
  if (props.entityType === 'business') {
52862
53265
  setInputValue(value);
@@ -52867,7 +53270,7 @@ const EntityInfoLabel = (props) => {
52867
53270
  }, [value, props.entityType]);
52868
53271
  const handleEditClick = () => {
52869
53272
  if (props.entityType === 'contact' && inputType === 'selectBusiness') {
52870
- console.log('Not implemented yet');
53273
+ setView('businessSelect');
52871
53274
  return;
52872
53275
  }
52873
53276
  setIsEditing((prev) => !prev);
@@ -52966,7 +53369,7 @@ const EntityInfoLabel = (props) => {
52966
53369
  overflow: 'hidden',
52967
53370
  textOverflow: 'ellipsis',
52968
53371
  whiteSpace: 'nowrap',
52969
- }, children: title }) })) : (jsxRuntimeExports.jsx(Typography$2, { ref: titleRef, component: "span", variant: "body2", letterSpacing: -0.5, fontWeight: '600', alignSelf: 'center', flexGrow: isEditing ? 1 : 0, color: (theme) => theme.palette.text.primary, noWrap: true, sx: { minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, children: title })), isNotEditable ? null : isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$a, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$3, { className: "edit-icon", size: "small", onClick: handleEditClick, children: jsxRuntimeExports.jsx(default_1$f, {}) }))] }), jsxRuntimeExports.jsx(Box$2, { width: isEditing ? '100%' : '50%', position: "relative", children: isEditing && inputType === 'text' ? (jsxRuntimeExports.jsx(TextField$1, { value: textValue, onChange: handleInputChange, variant: "standard", size: "small", sx: { width: '100%' } })) : isEditing && (inputType === 'select' || inputType === 'selectMembers') ? (jsxRuntimeExports.jsxs(Select$2, { value: selectValue, onChange: handleSelectChange, variant: "standard", size: "small", sx: { width: '100%' }, children: [props.entityType === 'contact' ? (jsxRuntimeExports.jsx(MenuItem$2, { value: "", children: t('conversations.contactDetails.contactInfo.emptySelection') })) : null, options.map((option, index) => (jsxRuntimeExports.jsx(MenuItem$2, { value: option.id, children: props.entityType === 'contact'
53372
+ }, children: title }) })) : (jsxRuntimeExports.jsx(Typography$2, { ref: titleRef, component: "span", variant: "body2", letterSpacing: -0.5, fontWeight: '600', alignSelf: 'center', flexGrow: isEditing ? 1 : 0, color: (theme) => theme.palette.text.primary, noWrap: true, sx: { minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, children: title })), isNotEditable ? null : isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$b, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$3, { className: "edit-icon", size: "small", onClick: handleEditClick, children: jsxRuntimeExports.jsx(default_1$g, {}) }))] }), jsxRuntimeExports.jsx(Box$2, { width: isEditing ? '100%' : '50%', position: "relative", children: isEditing && inputType === 'text' ? (jsxRuntimeExports.jsx(TextField$1, { value: textValue, onChange: handleInputChange, variant: "standard", size: "small", sx: { width: '100%' } })) : isEditing && (inputType === 'select' || inputType === 'selectMembers') ? (jsxRuntimeExports.jsxs(Select$2, { value: selectValue, onChange: handleSelectChange, variant: "standard", size: "small", sx: { width: '100%' }, children: [props.entityType === 'contact' ? (jsxRuntimeExports.jsx(MenuItem$2, { value: "", children: t('conversations.contactDetails.contactInfo.emptySelection') })) : null, options.map((option, index) => (jsxRuntimeExports.jsx(MenuItem$2, { value: option.id, children: props.entityType === 'contact'
52970
53373
  ? option.name?.trim() || (isUserInfo(option) ? option.email : '') || 'Sin nombre'
52971
53374
  : option.name?.trim() || option.email || 'Sin nombre' }, index)))] })) : isEditing && isContactBirthdayProps(props) ? (jsxRuntimeExports.jsx(DateSelect, { birthDate: props.contact.field.birthDate, setBirthDate: props.contact.action.setBirthDate, dateFormat: props.dateFormat })) : !isEditing &&
52972
53375
  props.entityType === 'contact' &&
@@ -54941,15 +55344,26 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
54941
55344
  return;
54942
55345
  const check = () => {
54943
55346
  const next = el.scrollWidth > el.clientWidth;
54944
- setIsTitleTruncated(next);
55347
+ setIsTitleTruncated((prev) => (prev === next ? prev : next));
54945
55348
  };
54946
55349
  check();
54947
55350
  if (typeof ResizeObserver !== 'undefined') {
55351
+ let rafId = 0;
54948
55352
  const ro = new ResizeObserver(() => {
54949
- check();
55353
+ if (typeof window === 'undefined') {
55354
+ check();
55355
+ return;
55356
+ }
55357
+ if (rafId)
55358
+ window.cancelAnimationFrame(rafId);
55359
+ rafId = window.requestAnimationFrame(() => {
55360
+ check();
55361
+ });
54950
55362
  });
54951
55363
  ro.observe(el);
54952
55364
  return () => {
55365
+ if (typeof window !== 'undefined' && rafId)
55366
+ window.cancelAnimationFrame(rafId);
54953
55367
  ro.disconnect();
54954
55368
  };
54955
55369
  }
@@ -54959,7 +55373,7 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
54959
55373
  return () => {
54960
55374
  window.removeEventListener('resize', check);
54961
55375
  };
54962
- }, [customContactFields, property.nameKey, isEditing]);
55376
+ }, [customContactFields, property.nameKey]);
54963
55377
  const handleInputChange = (name, value) => {
54964
55378
  const updatedValue = property.type === Contacts.ContactField_type.DATERANGE
54965
55379
  ? Array.isArray(value) && value[0] && value[1]
@@ -55012,7 +55426,7 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
55012
55426
  else
55013
55427
  return (jsxRuntimeExports.jsx(CustomPropertyInput, { type: type, nameKey: nameKey, value: value, onChange: handleInputChange }));
55014
55428
  };
55015
- return (jsxRuntimeExports.jsxs(ContactBox, { className: `fadein ${property.type === Contacts.ContactField_type.LONGTEXT ? 'contacts-col-12' : 'contacts-col-5'}`, children: [jsxRuntimeExports.jsxs(Box$2, { display: "flex", position: "relative", minHeight: "25px", alignItems: "center", children: [isTitleTruncated ? (jsxRuntimeExports.jsx(Tooltip, { title: getPropertyName(property.nameKey), arrow: true, children: jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) }) })) : (jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) })), isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$a, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$2, { className: "edit-icon", size: "small", onClick: toggleEdit, children: jsxRuntimeExports.jsx(default_1$f, {}) }))] }), jsxRuntimeExports.jsx(Box$2, { width: isEditing || property.type === Contacts.ContactField_type.LONGTEXT ? '100%' : '50%', position: "relative", children: isEditing ? (EditField()) : (jsxRuntimeExports.jsx(FieldValue, { children: hasValue(property?.value)
55429
+ return (jsxRuntimeExports.jsxs(ContactBox, { className: `fadein ${property.type === Contacts.ContactField_type.LONGTEXT ? 'contacts-col-12' : 'contacts-col-5'}`, children: [jsxRuntimeExports.jsxs(Box$2, { display: "flex", position: "relative", minHeight: "25px", alignItems: "center", children: [isTitleTruncated ? (jsxRuntimeExports.jsx(Tooltip, { title: getPropertyName(property.nameKey), arrow: true, children: jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) }) })) : (jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) })), isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$b, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$2, { className: "edit-icon", size: "small", onClick: toggleEdit, children: jsxRuntimeExports.jsx(default_1$g, {}) }))] }), jsxRuntimeExports.jsx(Box$2, { width: isEditing || property.type === Contacts.ContactField_type.LONGTEXT ? '100%' : '50%', position: "relative", children: isEditing ? (EditField()) : (jsxRuntimeExports.jsx(FieldValue, { children: hasValue(property?.value)
55016
55430
  ? property.type === Contacts.ContactField_type.DATERANGE
55017
55431
  ? (() => {
55018
55432
  if (typeof property.value === 'string') {
@@ -56668,7 +57082,6 @@ const StyledBox = styled$5(Box$2)(({ theme }) => ({
56668
57082
  const StyledTypography = styled$5(Typography$2)(({}) => ({
56669
57083
  letterSpacing: -0.5,
56670
57084
  fontSize: 14,
56671
- fontWeight: 600,
56672
57085
  }));
56673
57086
  const HeaderBox = styled$5(Box$2)(({}) => ({
56674
57087
  display: 'flex',
@@ -56690,7 +57103,7 @@ const StyledIconButton = styled$5(IconButton$2)({
56690
57103
  marginLeft: '15px',
56691
57104
  });
56692
57105
  const ContactMethod = ({ title, methodItems, isPhone, handleEdit, owner }) => {
56693
- return (jsxRuntimeExports.jsxs(StyledBox, { children: [jsxRuntimeExports.jsxs(HeaderBox, { children: [jsxRuntimeExports.jsx(StyledTypography, { children: title }), jsxRuntimeExports.jsx(StyledIconButton, { className: "edit-icon", size: "small", onClick: handleEdit, children: jsxRuntimeExports.jsx(default_1$f, { fontSize: "small", sx: { color: (theme) => theme.palette.secondary.main } }) })] }), jsxRuntimeExports.jsx(MethodItemsBox, { children: methodItems.map((item, index) => {
57106
+ return (jsxRuntimeExports.jsxs(StyledBox, { children: [jsxRuntimeExports.jsxs(HeaderBox, { children: [jsxRuntimeExports.jsx(StyledTypography, { children: title }), jsxRuntimeExports.jsx(StyledIconButton, { className: "edit-icon", size: "small", onClick: handleEdit, children: jsxRuntimeExports.jsx(default_1$g, { fontSize: "small", sx: { color: (theme) => theme.palette.secondary.main } }) })] }), jsxRuntimeExports.jsx(MethodItemsBox, { children: methodItems.map((item, index) => {
56694
57107
  if (isPhone) {
56695
57108
  return jsxRuntimeExports.jsx(ContactMethodPhoneItem, { item: item }, index);
56696
57109
  }
@@ -56869,7 +57282,7 @@ const OptionsMenu = ({ onDelete, addressData, handleLinkAccountSave, checked, on
56869
57282
  };
56870
57283
  return (jsxRuntimeExports.jsxs(Box$2, { children: [jsxRuntimeExports.jsx(IconButton$2, { "aria-controls": open ? 'basic-menu' : undefined, "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, onClick: handleClick, children: jsxRuntimeExports.jsx(default_1$5, {}) }), jsxRuntimeExports.jsxs(Menu$2, { id: "basic-menu", anchorEl: anchorEl, open: open, onClose: handleClose, MenuListProps: {
56871
57284
  'aria-labelledby': 'basic-button',
56872
- }, children: [jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleDelete, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: jsxRuntimeExports.jsx(default_1$d, { color: "error" }) }), jsxRuntimeExports.jsx(ListItemText, { children: t('global.delete') })] }), channelType === 5 && (jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleCheckWA, disabled: !checked, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: verifying ? (jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 })) : (jsxRuntimeExports.jsx(default_1$4, { sx: { color: 'green' } })) }), jsxRuntimeExports.jsx(ListItemText, { children: t('optionsMenu.verifyWspAccount') })] })), channelType === 21 && (jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleCheckRCS, disabled: !checked, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: verifying ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$3, {}) }), jsxRuntimeExports.jsx(ListItemText, { children: t('optionsMenu.verifyRCSAccount') })] }))] }), jsxRuntimeExports.jsx(Modal$2, { open: modalOpen, onClose: handleModalClose, "aria-labelledby": "modal-modal-title", "aria-describedby": "modal-modal-description", children: jsxRuntimeExports.jsx(Box$2, { sx: {
57285
+ }, children: [jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleDelete, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: jsxRuntimeExports.jsx(default_1$e, { color: "error" }) }), jsxRuntimeExports.jsx(ListItemText, { children: t('global.delete') })] }), channelType === 5 && (jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleCheckWA, disabled: !checked, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: verifying ? (jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 })) : (jsxRuntimeExports.jsx(default_1$4, { sx: { color: 'green' } })) }), jsxRuntimeExports.jsx(ListItemText, { children: t('optionsMenu.verifyWspAccount') })] })), channelType === 21 && (jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleCheckRCS, disabled: !checked, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: verifying ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$3, {}) }), jsxRuntimeExports.jsx(ListItemText, { children: t('optionsMenu.verifyRCSAccount') })] }))] }), jsxRuntimeExports.jsx(Modal$2, { open: modalOpen, onClose: handleModalClose, "aria-labelledby": "modal-modal-title", "aria-describedby": "modal-modal-description", children: jsxRuntimeExports.jsx(Box$2, { sx: {
56873
57286
  position: 'absolute',
56874
57287
  top: '50%',
56875
57288
  left: '50%',
@@ -56949,7 +57362,7 @@ const NoteDeleteButton = (props) => {
56949
57362
  ...noteDeleteButtonStyle.container,
56950
57363
  }, children: [addressIsSaved && (jsxRuntimeExports.jsx(TextField$1, { size: "small", label: t('global.note'), variant: "outlined", onChange: (e) => props.handleNoteFieldChange(e, id, channelType), value: note, fullWidth: true, InputLabelProps: {
56951
57364
  shrink: true,
56952
- }, className: "contacts-smallInput", sx: noteDeleteButtonStyle.noteTextField })), jsxRuntimeExports.jsx(IconButton$2, { onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$a, { color: "primary" }) }), jsxRuntimeExports.jsx(OptionsMenu, { onDelete: () => props.handleDeleteAddress(id, channelType), addressData: props.addressData, handleLinkAccountSave: handleLinkAccountSave, checked: checked && !isSaving, onCheckContactAddress: async (type) => {
57365
+ }, className: "contacts-smallInput", sx: noteDeleteButtonStyle.noteTextField })), jsxRuntimeExports.jsx(IconButton$2, { onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$b, { color: "primary" }) }), jsxRuntimeExports.jsx(OptionsMenu, { onDelete: () => props.handleDeleteAddress(id, channelType), addressData: props.addressData, handleLinkAccountSave: handleLinkAccountSave, checked: checked && !isSaving, onCheckContactAddress: async (type) => {
56953
57366
  if (!api)
56954
57367
  return null;
56955
57368
  try {
@@ -57471,7 +57884,7 @@ const ContactInformation = ({ ownerData }) => {
57471
57884
  .map((method) => (jsxRuntimeExports.jsx(ContactMethod, { handleEdit: () => openModal(method.modalTitle), title: method.title, methodItems: method.items, isPhone: method.isPhone, owner: ownerData }, method.key))) }) }), jsxRuntimeExports.jsx(EditModal, { open: isOpen, onClose: closeModal, title: title })] }));
57472
57885
  };
57473
57886
 
57474
- const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, }) => {
57887
+ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, onDirectionSearchClick, }) => {
57475
57888
  const commonProps = {
57476
57889
  baseUrl,
57477
57890
  spaceId,
@@ -57490,7 +57903,7 @@ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntity
57490
57903
  }), minWidth: "100%" }), jsxRuntimeExports.jsx(EntityInfoLabel, { entityType: entityType, title: t('conversations.contactDetails.country'), value: entityData[addressNumber]?.country ?? '', ...commonProps, constructUpdateObject: (value) => ({
57491
57904
  [addressNumber]: { country: value },
57492
57905
  }), minWidth: "100%" })] })] }));
57493
- return (jsxRuntimeExports.jsx(Section, { title: t('conversations.contactDetails.addressInformation'), children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-4", children: [jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address1", title: t('conversations.contactDetails.primaryAddress') }), jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address2", title: t('conversations.contactDetails.secondaryAddress') })] }) }));
57906
+ return (jsxRuntimeExports.jsx(Section, { title: t('conversations.contactDetails.addressInformation'), enableDirectionSearch: true, onDirectionSearchClick: onDirectionSearchClick, children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-4", children: [jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address1", title: t('conversations.contactDetails.primaryAddress') }), jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address2", title: t('conversations.contactDetails.secondaryAddress') })] }) }));
57494
57907
  };
57495
57908
 
57496
57909
  const useEntityUpdateSync = ({ entity, setEntity }) => {
@@ -57663,8 +58076,228 @@ const useModalCloseHandler = ({ onClose }) => {
57663
58076
  return handleClose;
57664
58077
  };
57665
58078
 
58079
+ const DEFAULT_PAGINATION = {
58080
+ format: 'IBusiness',
58081
+ total: 0,
58082
+ lastPage: 1,
58083
+ perPage: 10,
58084
+ order: 'ASC',
58085
+ orderColumn: 'Id',
58086
+ };
58087
+ const BusinessSelectEditor = ({ baseUrl, spaceId, contactId, initialBusiness, onBack, onEntityUpdated, currentUser, }) => {
58088
+ const t = useTranslationContext();
58089
+ const api = useEditContactApi();
58090
+ const timerRef = useRef(null);
58091
+ const abortRef = useRef(null);
58092
+ const [inputValue, setInputValue] = useState(() => initialBusiness?.businessName ?? '');
58093
+ const [hasSearched, setHasSearched] = useState(false);
58094
+ const [isLoading, setIsLoading] = useState(false);
58095
+ const [isLoadingTimer, setIsLoadingTimer] = useState(false);
58096
+ const [options, setOptions] = useState([]);
58097
+ const [selected, setSelected] = useState(initialBusiness ?? null);
58098
+ const [currentPage, setCurrentPage] = useState(1);
58099
+ const [isNextPage, setIsNextPage] = useState(false);
58100
+ const [allLoaded, setAllLoaded] = useState(false);
58101
+ const ownerValue = useMemo(() => {
58102
+ const displayName = currentUser?.display_name;
58103
+ const email = currentUser?.email;
58104
+ return String(displayName || email || '').trim();
58105
+ }, [currentUser]);
58106
+ useEffect(() => {
58107
+ return () => {
58108
+ if (timerRef.current) {
58109
+ clearTimeout(timerRef.current);
58110
+ timerRef.current = null;
58111
+ }
58112
+ abortRef.current?.abort();
58113
+ };
58114
+ }, []);
58115
+ useEffect(() => {
58116
+ setSelected(initialBusiness ?? null);
58117
+ setInputValue(initialBusiness?.businessName ?? '');
58118
+ }, [initialBusiness]);
58119
+ const resetSearchState = () => {
58120
+ abortRef.current?.abort();
58121
+ abortRef.current = null;
58122
+ if (timerRef.current) {
58123
+ clearTimeout(timerRef.current);
58124
+ timerRef.current = null;
58125
+ }
58126
+ setHasSearched(false);
58127
+ setAllLoaded(false);
58128
+ setCurrentPage(1);
58129
+ setIsNextPage(false);
58130
+ setOptions([]);
58131
+ };
58132
+ const mapBusinesses = (businesses) => {
58133
+ return businesses
58134
+ .filter((b) => Boolean(b?.id))
58135
+ .map((b) => ({ businessId: String(b.id), businessName: String(b.name ?? '') }));
58136
+ };
58137
+ const fetchPage = async ({ query, page }) => {
58138
+ if (!api)
58139
+ return;
58140
+ abortRef.current?.abort();
58141
+ const controller = new AbortController();
58142
+ abortRef.current = controller;
58143
+ setIsLoading(true);
58144
+ try {
58145
+ const pagination = {
58146
+ ...DEFAULT_PAGINATION,
58147
+ currentPage: page,
58148
+ filter: [
58149
+ {
58150
+ value: query,
58151
+ column: 'name',
58152
+ condition: '',
58153
+ },
58154
+ ],
58155
+ };
58156
+ const response = await api.fetchBusinessTableData({ pagination, signal: controller.signal });
58157
+ if (controller.signal.aborted)
58158
+ return;
58159
+ const next = mapBusinesses((response?.contactos ?? []));
58160
+ setHasSearched(true);
58161
+ const total = response?.paginacion?.total ?? 0;
58162
+ setOptions((prev) => {
58163
+ const merged = page === 1
58164
+ ? next
58165
+ : (() => {
58166
+ const byId = new Map();
58167
+ for (const item of prev)
58168
+ byId.set(item.businessId, item);
58169
+ for (const item of next)
58170
+ byId.set(item.businessId, item);
58171
+ return Array.from(byId.values());
58172
+ })();
58173
+ if (total && merged.length >= total) {
58174
+ setAllLoaded(true);
58175
+ }
58176
+ return merged;
58177
+ });
58178
+ }
58179
+ finally {
58180
+ setIsLoading(false);
58181
+ setIsLoadingTimer(false);
58182
+ setIsNextPage(false);
58183
+ }
58184
+ };
58185
+ const handleQueryChanged = (value) => {
58186
+ resetSearchState();
58187
+ if (!value)
58188
+ return;
58189
+ if (timerRef.current) {
58190
+ clearTimeout(timerRef.current);
58191
+ timerRef.current = null;
58192
+ }
58193
+ setIsLoadingTimer(true);
58194
+ timerRef.current = setTimeout(() => {
58195
+ void fetchPage({ query: value, page: 1 });
58196
+ }, 800);
58197
+ };
58198
+ const handleScroll = (e) => {
58199
+ const element = e.target;
58200
+ const bottom = element.scrollHeight - element.scrollTop - element.clientHeight < 1;
58201
+ if (!bottom)
58202
+ return;
58203
+ if (allLoaded)
58204
+ return;
58205
+ if (isLoading)
58206
+ return;
58207
+ if (!inputValue)
58208
+ return;
58209
+ const nextPage = currentPage + 1;
58210
+ setIsNextPage(true);
58211
+ setCurrentPage(nextPage);
58212
+ void fetchPage({ query: inputValue, page: nextPage });
58213
+ };
58214
+ const handleCreateBusiness = async () => {
58215
+ if (!api)
58216
+ return;
58217
+ if (!ownerValue)
58218
+ return;
58219
+ const name = String(inputValue ?? '').trim();
58220
+ if (!name)
58221
+ return;
58222
+ setIsLoading(true);
58223
+ try {
58224
+ const business = {
58225
+ name,
58226
+ owner: ownerValue,
58227
+ imageUrl: '',
58228
+ members: [],
58229
+ tags: [],
58230
+ properties: [],
58231
+ address1: {
58232
+ street: '',
58233
+ city: '',
58234
+ state: '',
58235
+ zipcode: '',
58236
+ country: '',
58237
+ },
58238
+ address2: {
58239
+ street: '',
58240
+ city: '',
58241
+ state: '',
58242
+ zipcode: '',
58243
+ country: '',
58244
+ },
58245
+ };
58246
+ const created = await api.createBusiness({ business });
58247
+ const createdOption = {
58248
+ businessId: String(created.id ?? ''),
58249
+ businessName: String(created.name ?? name),
58250
+ };
58251
+ setOptions([createdOption]);
58252
+ setSelected(createdOption);
58253
+ setHasSearched(true);
58254
+ }
58255
+ finally {
58256
+ setIsLoading(false);
58257
+ }
58258
+ };
58259
+ const handleSave = async () => {
58260
+ if (!baseUrl || !spaceId)
58261
+ return;
58262
+ if (!contactId)
58263
+ return;
58264
+ const businessId = selected?.businessId ?? '';
58265
+ const updated = await updateEntity({
58266
+ baseUrl,
58267
+ spaceId,
58268
+ entityType: 'contact',
58269
+ entityId: contactId,
58270
+ body: {
58271
+ businessId,
58272
+ },
58273
+ });
58274
+ onEntityUpdated?.(updated);
58275
+ onBack();
58276
+ };
58277
+ const noOptionsNode = hasSearched && options.length === 0 && inputValue ? (jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { px: 1, py: 0.5 }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "body2", children: t('global.noOptions') }), jsxRuntimeExports.jsx(LoadingButton$1, { size: "small", variant: "contained", onClick: handleCreateBusiness, loading: isLoading, disabled: isLoading || !ownerValue, children: t('global.createNew') })] })) : (jsxRuntimeExports.jsx(Typography$2, { variant: "body2", children: t('global.noOptions') }));
58278
+ const isSavingDisabled = !contactId || !baseUrl || !spaceId;
58279
+ return (jsxRuntimeExports.jsxs(Box$2, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(IconButton$2, { size: "small", onClick: onBack, "aria-label": t('global.back'), children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: t('conversations.contactDetails.business') }), jsxRuntimeExports.jsx(Box$2, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: handleSave, loading: false, disabled: isSavingDisabled, children: t('global.save') })] }), jsxRuntimeExports.jsxs(Box$2, { sx: { position: 'relative' }, children: [isLoading || isLoadingTimer || isNextPage ? (jsxRuntimeExports.jsx(Box$2, { sx: { position: 'absolute', left: 0, right: 0, top: 0 }, children: jsxRuntimeExports.jsx(LinearProgress, { sx: { borderRadius: 1 } }) })) : null, jsxRuntimeExports.jsx(Autocomplete, { fullWidth: true, disablePortal: true, value: selected, onChange: (event, newValue) => {
58280
+ setSelected(newValue);
58281
+ }, inputValue: inputValue, onInputChange: (event, newValue, reason) => {
58282
+ setInputValue(newValue);
58283
+ if (reason !== 'input')
58284
+ return;
58285
+ handleQueryChanged(newValue);
58286
+ }, options: options, getOptionLabel: (option) => option?.businessName ?? '', isOptionEqualToValue: (opt, val) => opt.businessId === val.businessId, noOptionsText: noOptionsNode, renderInput: (params) => (jsxRuntimeExports.jsx(TextField$1, { ...params, size: "small", label: t('conversations.contactDetails.business'), placeholder: t('global.noValue'), InputProps: {
58287
+ ...params.InputProps,
58288
+ endAdornment: (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [isLoading || isLoadingTimer ? (jsxRuntimeExports.jsx(CircularProgress$2, { size: 18, sx: { mr: 1 } })) : null, params.InputProps.endAdornment] })),
58289
+ } })), ListboxProps: {
58290
+ sx: {
58291
+ maxHeight: 240,
58292
+ overflowY: 'auto',
58293
+ },
58294
+ onScroll: handleScroll,
58295
+ } })] })] }));
58296
+ };
58297
+
57666
58298
  const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, language = 'en', navigate, }) => {
57667
58299
  const { t: i18nT, i18n } = useTranslation();
58300
+ const modalContentRef = useRef(null);
57668
58301
  useEffect(() => {
57669
58302
  if (language) {
57670
58303
  i18n.changeLanguage(language);
@@ -57723,29 +58356,38 @@ const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, lang
57723
58356
  boxShadow: 24,
57724
58357
  outline: 0,
57725
58358
  p: 3,
57726
- overflow: 'hidden',
58359
+ overflow: 'visible',
57727
58360
  };
57728
58361
  const mergedSx = Array.isArray(sx) ? [baseSx, ...sx] : sx ? [baseSx, sx] : baseSx;
57729
- return (jsxRuntimeExports.jsx(EditContactApiProvider, { value: api, children: jsxRuntimeExports.jsx(TranslationProvider, { t: t, children: jsxRuntimeExports.jsx(NavigateProvider, { navigate: navigate, children: jsxRuntimeExports.jsx(Modal$2, { open: open, onClose: handleClose, closeAfterTransition: true, slots: { backdrop: Backdrop$2 }, slotProps: { backdrop: { timeout: 200 } }, children: jsxRuntimeExports.jsx(Fade$2, { in: open, timeout: 200, children: jsxRuntimeExports.jsxs(Box$2, { sx: mergedSx, children: [jsxRuntimeExports.jsx(IconButton$2, { "aria-label": "close", onClick: handleClose, sx: {
58362
+ return (jsxRuntimeExports.jsx(EditContactApiProvider, { value: api, children: jsxRuntimeExports.jsx(TranslationProvider, { t: t, children: jsxRuntimeExports.jsx(NavigateProvider, { navigate: navigate, children: jsxRuntimeExports.jsx(Modal$2, { open: open, onClose: handleClose, closeAfterTransition: true, slots: { backdrop: Backdrop$2 }, slotProps: { backdrop: { timeout: 200 } }, children: jsxRuntimeExports.jsx(Fade$2, { in: open, timeout: 200, children: jsxRuntimeExports.jsxs(Box$2, { sx: mergedSx, ref: modalContentRef, children: [jsxRuntimeExports.jsx(IconButton$2, { "aria-label": "close", onClick: handleClose, sx: {
57730
58363
  position: 'absolute',
57731
- right: 8,
57732
- top: 8,
58364
+ right: 5,
58365
+ top: 5,
57733
58366
  color: (theme) => theme.palette.grey[500],
57734
58367
  zIndex: 1,
57735
- }, children: jsxRuntimeExports.jsx(default_1$g, {}) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(Box$2, { sx: {
58368
+ }, size: "small", children: jsxRuntimeExports.jsx(default_1$h, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(Box$2, { sx: {
57736
58369
  display: 'flex',
57737
58370
  justifyContent: 'center',
57738
58371
  alignItems: 'center',
57739
58372
  minHeight: 220,
57740
- }, children: jsxRuntimeExports.jsx(CircularProgress$2, {}) })) : state.error ? (jsxRuntimeExports.jsx(Box$2, { sx: { mb: 2 }, children: "Failed to load contact" })) : state.contactData ? (jsxRuntimeExports.jsx(EditEntityProvider, { entityType: selectors.contactType === 'business' ? 'business' : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, children: jsxRuntimeExports.jsxs(Box$2, { sx: { position: 'relative', height: '100%' }, children: [jsxRuntimeExports.jsx(Fade$2, { in: view === 'main', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsxs(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Header, { imgUrl: image.imageUrl, displayName: selectors.displayName, tags: selectors.tags, onEditTags: () => {
57741
- setView('tags');
57742
- }, onUploadPhoto: image.action.uploadImage, onPhotoFileChange: image.inputAtributes.onChange, photoInputRef: image.inputAtributes.ref, isUploadingPhoto: image.isUploading, onDeletePhoto: image.action.deleteImage, isDeletingPhoto: image.isDeleting, contactType: selectors.contactType, entityId: state.contactData?.id, firstName: selectors.isContact ? state.contactData.firstName : undefined, lastName: selectors.isContact ? state.contactData.lastName : undefined, name: selectors.isBusiness ? state.contactData.name : undefined, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsxs(Box$2, { sx: { px: 1, pb: 2 }, children: [jsxRuntimeExports.jsx(General, { dateFormat: selectors.userTrii?.regCon_dateFormat || 'MM/dd/yyyy', entityType: selectors.contactType === 'contact' ||
57743
- selectors.contactType === 'business'
57744
- ? selectors.contactType
57745
- : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
57746
- selectors.contactType === 'business'
57747
- ? selectors.contactType
57748
- : 'contact', entityData: state.contactData, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsx(ContactInformation, { ownerData: state.contactData })] })] }) }), jsxRuntimeExports.jsx(Fade$2, { in: view === 'tags', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(TagsEditor, { value: draftLabels, options: labelsOptions, onChange: setDraftLabels, onBack: () => setView('main'), onSave: handleSaveTags, isSaving: isSavingTags, onCreateNew: handleCreateLabel, isCreatingNew: isCreatingLabel }) }) })] }) })) : null] }) }) }) }) }) }));
58373
+ }, children: jsxRuntimeExports.jsx(CircularProgress$2, {}) })) : state.error ? (jsxRuntimeExports.jsx(Box$2, { sx: { mb: 2 }, children: "Failed to load contact" })) : state.contactData ? (jsxRuntimeExports.jsx(EditContactViewProvider, { value: { view, setView }, children: jsxRuntimeExports.jsx(EditEntityProvider, { entityType: selectors.contactType === 'business' ? 'business' : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, children: jsxRuntimeExports.jsxs(Box$2, { sx: { position: 'relative', height: '100%' }, children: [jsxRuntimeExports.jsx(Fade$2, { in: view === 'main', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsxs(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Header, { imgUrl: image.imageUrl, displayName: selectors.displayName, tags: selectors.tags, onEditTags: () => {
58374
+ setView('tags');
58375
+ }, onUploadPhoto: image.action.uploadImage, onPhotoFileChange: image.inputAtributes.onChange, photoInputRef: image.inputAtributes.ref, isUploadingPhoto: image.isUploading, onDeletePhoto: image.action.deleteImage, isDeletingPhoto: image.isDeleting, contactType: selectors.contactType, entityId: state.contactData?.id, firstName: selectors.isContact
58376
+ ? state.contactData.firstName
58377
+ : undefined, lastName: selectors.isContact
58378
+ ? state.contactData.lastName
58379
+ : undefined, name: selectors.isBusiness ? state.contactData.name : undefined, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsxs(Box$2, { sx: { px: 1, pb: 2 }, children: [jsxRuntimeExports.jsx(General, { dateFormat: selectors.userTrii?.regCon_dateFormat || 'MM/dd/yyyy', entityType: selectors.contactType === 'contact' ||
58380
+ selectors.contactType === 'business'
58381
+ ? selectors.contactType
58382
+ : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
58383
+ selectors.contactType === 'business'
58384
+ ? selectors.contactType
58385
+ : 'contact', entityData: state.contactData, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, onDirectionSearchClick: () => setView('searchLocation') }), jsxRuntimeExports.jsx(ContactInformation, { ownerData: state.contactData })] })] }) }), jsxRuntimeExports.jsx(Fade$2, { in: view === 'searchLocation', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(SearchLocationEditor, { baseUrl: baseUrl, spaceId: spaceId, entityType: selectors.contactType === 'business' ? 'business' : 'contact', entityId: String(state.contactData.id), onBack: () => setView('main'), onEntityUpdated: handleEntityUpdated }) }) }), jsxRuntimeExports.jsx(Fade$2, { in: view === 'tags', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(TagsEditor, { value: draftLabels, options: labelsOptions, onChange: setDraftLabels, onBack: () => setView('main'), onSave: handleSaveTags, isSaving: isSavingTags, onCreateNew: handleCreateLabel, isCreatingNew: isCreatingLabel, popperContainer: modalContentRef.current }) }) }), jsxRuntimeExports.jsx(Fade$2, { in: view === 'businessSelect', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(BusinessSelectEditor, { baseUrl: baseUrl, spaceId: spaceId, contactId: String(state.contactData.id), initialBusiness: selectors.isContact && state.contactData?.businessId
58386
+ ? {
58387
+ businessId: String(state.contactData.businessId),
58388
+ businessName: String(state.contactData.businessName ?? ''),
58389
+ }
58390
+ : null, onBack: () => setView('main'), onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }) }) })] }) }) })) : null] }) }) }) }) }) }));
57749
58391
  };
57750
58392
 
57751
58393
  export { ContactInfoPopup, EditContactModal };