@trii/components 2.0.50 → 2.0.52

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 (482) hide show
  1. package/dist/cjs/index.js +758 -117
  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/ContactInfoPopup/ContactInfoPopup.d.ts +1 -2
  19. package/dist/cjs/types/components/EditContactModal/EditContactModal.d.ts +1 -2
  20. package/dist/cjs/types/components/EditContactModal/components/BusinessSelect/BusinessSelectEditor.d.ts +16 -0
  21. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  22. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  23. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  24. package/dist/cjs/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  25. package/dist/cjs/types/components/EditContactModal/context/EditContactApiContext.d.ts +20 -0
  26. package/dist/cjs/types/components/EditContactModal/context/EditContactViewContext.d.ts +8 -0
  27. package/dist/cjs/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +2 -2
  28. package/dist/cjs/types/components/EditContactModal/layout/Section.d.ts +3 -1
  29. package/dist/cjs/types/components/EditContactModal/services/api.d.ts +47 -0
  30. package/dist/cjs/types/i18n/config.d.ts +2 -2
  31. package/dist/cjs/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +15 -0
  32. package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
  33. package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
  34. package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
  35. package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
  36. package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
  37. package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
  38. package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
  39. package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
  40. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +8 -0
  41. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +7 -0
  42. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
  43. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
  44. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
  45. package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
  46. package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
  47. package/dist/cjs/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
  48. package/dist/cjs/types/src/components/ContactInfoPopup/index.d.ts +1 -0
  49. package/dist/cjs/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
  50. package/dist/cjs/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
  51. package/dist/cjs/types/src/components/EditContactModal/EditContactModal.d.ts +14 -0
  52. package/dist/cjs/types/src/components/EditContactModal/components/Header/Header.d.ts +23 -0
  53. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/AvatarWithActions/AvatarWithActions.d.ts +11 -0
  54. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
  55. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/Tags/Tags.d.ts +7 -0
  56. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/Tags/index.d.ts +1 -0
  57. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/index.d.ts +2 -0
  58. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  59. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  60. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  61. package/dist/cjs/types/src/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +11 -0
  62. package/dist/cjs/types/src/components/EditContactModal/components/Section/AddressInformation/index.d.ts +1 -0
  63. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/ContactInformation.d.ts +7 -0
  64. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +11 -0
  65. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/ContactMethodItem.d.ts +8 -0
  66. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/index.d.ts +1 -0
  67. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/ContactMethodPhoneItem.d.ts +6 -0
  68. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/index.d.ts +1 -0
  69. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/utils/phone.d.ts +5 -0
  70. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/index.d.ts +2 -0
  71. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/index.d.ts +1 -0
  72. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +8 -0
  73. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/Mails.d.ts +8 -0
  74. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/Body.d.ts +7 -0
  75. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/Mail.d.ts +7 -0
  76. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/index.d.ts +1 -0
  77. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/style.d.ts +19 -0
  78. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/index.d.ts +1 -0
  79. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/index.d.ts +1 -0
  80. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/index.d.ts +1 -0
  81. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/index.d.ts +1 -0
  82. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/Phones.d.ts +8 -0
  83. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/Body.d.ts +7 -0
  84. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/Phone.d.ts +7 -0
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/index.d.ts +3 -0
  95. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/index.d.ts +1 -0
  96. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/style.d.ts +15 -0
  97. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/index.d.ts +1 -0
  98. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/index.d.ts +1 -0
  99. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/index.d.ts +1 -0
  100. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/index.d.ts +1 -0
  101. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/RCSs.d.ts +8 -0
  102. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/Body.d.ts +7 -0
  103. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/RCS.d.ts +7 -0
  104. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/index.d.ts +1 -0
  105. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/style.d.ts +19 -0
  106. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/index.d.ts +1 -0
  107. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/index.d.ts +1 -0
  108. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/index.d.ts +1 -0
  109. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/index.d.ts +1 -0
  110. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/Whatsapps.d.ts +8 -0
  111. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/Body.d.ts +7 -0
  112. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/Whatsapp.d.ts +7 -0
  113. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/index.d.ts +1 -0
  114. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/style.d.ts +19 -0
  115. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/index.d.ts +1 -0
  116. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/index.d.ts +1 -0
  117. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/index.d.ts +1 -0
  118. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/index.d.ts +1 -0
  119. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/index.d.ts +4 -0
  120. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/index.d.ts +1 -0
  121. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +13 -0
  122. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/index.d.ts +1 -0
  123. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/style.d.ts +3 -0
  124. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.d.ts +11 -0
  125. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/Body.d.ts +10 -0
  126. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/Ims.d.ts +10 -0
  127. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/index.d.ts +1 -0
  128. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +7 -0
  129. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/index.d.ts +1 -0
  130. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/index.d.ts +1 -0
  131. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/index.d.ts +1 -0
  132. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.d.ts +1 -0
  133. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/types/IMS.d.ts +2 -0
  134. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +13 -0
  135. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/index.d.ts +1 -0
  136. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/style.d.ts +3 -0
  137. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/SubsectionHeader.d.ts +5 -0
  138. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/index.d.ts +1 -0
  139. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/SubsectionHeaderWithButton.d.ts +6 -0
  140. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/index.d.ts +1 -0
  141. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/style.d.ts +8 -0
  142. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +5 -0
  143. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +5 -0
  144. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/index.d.ts +1 -0
  145. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/style.d.ts +15 -0
  146. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/index.d.ts +1 -0
  147. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/index.d.ts +1 -0
  148. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/style.d.ts +6 -0
  149. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.d.ts +10 -0
  150. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +6 -0
  151. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/index.d.ts +1 -0
  152. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +12 -0
  153. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/InformationItemInputsContainer.d.ts +6 -0
  154. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/index.d.ts +1 -0
  155. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -0
  156. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/NoteDeleteButton.d.ts +18 -0
  157. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/index.d.ts +1 -0
  158. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +13 -0
  159. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/StatusAdornment.d.ts +7 -0
  160. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +5 -0
  161. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/index.d.ts +1 -0
  162. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/index.d.ts +1 -0
  163. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/index.d.ts +1 -0
  164. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/SubsectionBodyContainer.d.ts +7 -0
  165. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/index.d.ts +1 -0
  166. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +14 -0
  167. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/index.d.ts +5 -0
  168. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/CheckContactAddressData.d.ts +5 -0
  169. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/ContactAddress.d.ts +2 -0
  170. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/index.d.ts +2 -0
  171. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/hooks/useEditModal.d.ts +8 -0
  172. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/index.d.ts +1 -0
  173. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/General.d.ts +14 -0
  174. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +8 -0
  175. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +8 -0
  176. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/index.d.ts +1 -0
  177. package/dist/cjs/types/src/components/EditContactModal/components/Section/index.d.ts +3 -0
  178. package/dist/cjs/types/src/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +6 -0
  179. package/dist/cjs/types/src/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +14 -0
  180. package/dist/cjs/types/src/components/EditContactModal/context/EditContactApiContext.d.ts +171 -0
  181. package/dist/cjs/types/src/components/EditContactModal/context/EditEntityContext.d.ts +34 -0
  182. package/dist/cjs/types/src/components/EditContactModal/context/NavigateContext.d.ts +9 -0
  183. package/dist/cjs/types/src/components/EditContactModal/context/TranslationContext.d.ts +9 -0
  184. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditBusiness/types/UseEditBusiness.d.ts +55 -0
  185. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.d.ts +10 -0
  186. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +60 -0
  187. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContact/useEditContact.d.ts +10 -0
  188. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContactMethods.d.ts +52 -0
  189. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContactModalController.d.ts +44 -0
  190. package/dist/cjs/types/src/components/EditContactModal/hooks/useEntityUpdateSync.d.ts +8 -0
  191. package/dist/cjs/types/src/components/EditContactModal/hooks/useField.d.ts +18 -0
  192. package/dist/cjs/types/src/components/EditContactModal/hooks/useImage.d.ts +27 -0
  193. package/dist/cjs/types/src/components/EditContactModal/hooks/useModalCloseHandler.d.ts +6 -0
  194. package/dist/cjs/types/src/components/EditContactModal/hooks/useMultipleSelect.d.ts +20 -0
  195. package/dist/cjs/types/src/components/EditContactModal/hooks/useSelect.d.ts +13 -0
  196. package/dist/cjs/types/src/components/EditContactModal/hooks/useTagsEditorController.d.ts +26 -0
  197. package/dist/cjs/types/src/components/EditContactModal/hooks/utils/editContactHelper.d.ts +6 -0
  198. package/dist/cjs/types/src/components/EditContactModal/index.d.ts +1 -0
  199. package/dist/cjs/types/src/components/EditContactModal/layout/Section.d.ts +9 -0
  200. package/dist/cjs/types/src/components/EditContactModal/layout/SectionContent.d.ts +7 -0
  201. package/dist/cjs/types/src/components/EditContactModal/layout/index.d.ts +2 -0
  202. package/dist/cjs/types/src/components/EditContactModal/services/api.d.ts +141 -0
  203. package/dist/cjs/types/src/components/EditContactModal/services/http.d.ts +23 -0
  204. package/dist/cjs/types/src/components/EditContactModal/services/urls.d.ts +6 -0
  205. package/dist/cjs/types/src/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +16 -0
  206. package/dist/cjs/types/src/components/EditContactModal/shared/BusinessInfoLabel/index.d.ts +1 -0
  207. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +29 -0
  208. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/DateSelect.d.ts +8 -0
  209. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/index.d.ts +1 -0
  210. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +1 -0
  211. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/index.d.ts +1 -0
  212. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +18 -0
  213. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/CustomPropertyDatePicker.d.ts +8 -0
  214. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/index.d.ts +1 -0
  215. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/CustomPropertyDateRangePicker.d.ts +9 -0
  216. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/index.d.ts +1 -0
  217. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/CustomPropertyInput.d.ts +6 -0
  218. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/index.d.ts +1 -0
  219. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/types/CustomPropertyInputProps.d.ts +6 -0
  220. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/CustomPropertyOptionsSelect.d.ts +7 -0
  221. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/index.d.ts +1 -0
  222. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/CustomPropertyTimePicker.d.ts +8 -0
  223. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/index.d.ts +1 -0
  224. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/CustomPropertyTimeRangePicker.d.ts +9 -0
  225. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/index.d.ts +1 -0
  226. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts +6 -0
  227. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/index.d.ts +1 -0
  228. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +40 -0
  229. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/SelectBusinessLabel.d.ts +7 -0
  230. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/index.d.ts +1 -0
  231. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/index.d.ts +1 -0
  232. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/index.d.ts +1 -0
  233. package/dist/cjs/types/src/components/EditContactModal/shared/index.d.ts +3 -0
  234. package/dist/cjs/types/src/components/EditContactModal/types/is-business.typeguard.d.ts +7 -0
  235. package/dist/cjs/types/src/components/EditContactModal/types/is-contact.typeguard.d.ts +7 -0
  236. package/dist/cjs/types/src/components/EditContactModal/utils/contactHelper.d.ts +13 -0
  237. package/dist/cjs/types/src/components/index.d.ts +2 -0
  238. package/dist/cjs/types/src/i18n/config.d.ts +2 -0
  239. package/dist/cjs/types/src/i18n/index.d.ts +2 -0
  240. package/dist/cjs/types/src/index.d.ts +2 -0
  241. package/dist/esm/index.js +761 -121
  242. package/dist/esm/index.js.map +1 -1
  243. package/dist/esm/types/BusinessSelect/BusinessSelect.d.ts +6 -0
  244. package/dist/esm/types/BusinessSelect/components/BusinessSearchBar/BusinessSearchBar.d.ts +6 -0
  245. package/dist/esm/types/BusinessSelect/components/BusinessSearchBar/index.d.ts +1 -0
  246. package/dist/esm/types/BusinessSelect/components/BusinessSearchResults/BusinessSearchResults.d.ts +13 -0
  247. package/dist/esm/types/BusinessSelect/components/BusinessSearchResults/index.d.ts +1 -0
  248. package/dist/esm/types/BusinessSelect/components/index.d.ts +2 -0
  249. package/dist/esm/types/BusinessSelect/index.d.ts +1 -0
  250. package/dist/esm/types/BusinessSelect/types/index.d.ts +4 -0
  251. package/dist/esm/types/BusinessSelectModal/BusinessSelectModal.d.ts +5 -0
  252. package/dist/esm/types/BusinessSelectModal/index.d.ts +1 -0
  253. package/dist/esm/types/SearchLocationModal/SearchLocationModal.d.ts +26 -0
  254. package/dist/esm/types/SearchLocationModal/components/SearchLocationInput/index.d.ts +1 -0
  255. package/dist/esm/types/SearchLocationModal/components/index.d.ts +1 -0
  256. package/dist/esm/types/SearchLocationModal/googleMapsUtils.d.ts +20 -0
  257. package/dist/esm/types/SearchLocationModal/index.d.ts +1 -0
  258. package/dist/esm/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +1 -2
  259. package/dist/esm/types/components/EditContactModal/EditContactModal.d.ts +1 -2
  260. package/dist/esm/types/components/EditContactModal/components/BusinessSelect/BusinessSelectEditor.d.ts +16 -0
  261. package/dist/esm/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  262. package/dist/esm/types/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  263. package/dist/esm/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  264. package/dist/esm/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  265. package/dist/esm/types/components/EditContactModal/context/EditContactApiContext.d.ts +20 -0
  266. package/dist/esm/types/components/EditContactModal/context/EditContactViewContext.d.ts +8 -0
  267. package/dist/esm/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +2 -2
  268. package/dist/esm/types/components/EditContactModal/layout/Section.d.ts +3 -1
  269. package/dist/esm/types/components/EditContactModal/services/api.d.ts +47 -0
  270. package/dist/esm/types/i18n/config.d.ts +2 -2
  271. package/dist/esm/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +15 -0
  272. package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
  273. package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
  274. package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
  275. package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
  276. package/dist/esm/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
  277. package/dist/esm/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
  278. package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
  279. package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
  280. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +8 -0
  281. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +7 -0
  282. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
  283. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
  284. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
  285. package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
  286. package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
  287. package/dist/esm/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
  288. package/dist/esm/types/src/components/ContactInfoPopup/index.d.ts +1 -0
  289. package/dist/esm/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
  290. package/dist/esm/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
  291. package/dist/esm/types/src/components/EditContactModal/EditContactModal.d.ts +14 -0
  292. package/dist/esm/types/src/components/EditContactModal/components/Header/Header.d.ts +23 -0
  293. package/dist/esm/types/src/components/EditContactModal/components/Header/components/AvatarWithActions/AvatarWithActions.d.ts +11 -0
  294. package/dist/esm/types/src/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
  295. package/dist/esm/types/src/components/EditContactModal/components/Header/components/Tags/Tags.d.ts +7 -0
  296. package/dist/esm/types/src/components/EditContactModal/components/Header/components/Tags/index.d.ts +1 -0
  297. package/dist/esm/types/src/components/EditContactModal/components/Header/components/index.d.ts +2 -0
  298. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  299. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  300. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  301. package/dist/esm/types/src/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +11 -0
  302. package/dist/esm/types/src/components/EditContactModal/components/Section/AddressInformation/index.d.ts +1 -0
  303. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/ContactInformation.d.ts +7 -0
  304. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +11 -0
  305. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/ContactMethodItem.d.ts +8 -0
  306. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/index.d.ts +1 -0
  307. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/ContactMethodPhoneItem.d.ts +6 -0
  308. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/index.d.ts +1 -0
  309. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/utils/phone.d.ts +5 -0
  310. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/index.d.ts +2 -0
  311. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/index.d.ts +1 -0
  312. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +8 -0
  313. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/Mails.d.ts +8 -0
  314. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/Body.d.ts +7 -0
  315. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/Mail.d.ts +7 -0
  316. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/index.d.ts +1 -0
  317. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/style.d.ts +19 -0
  318. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/index.d.ts +1 -0
  319. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/index.d.ts +1 -0
  320. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/index.d.ts +1 -0
  321. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/index.d.ts +1 -0
  322. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/Phones.d.ts +8 -0
  323. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/Body.d.ts +7 -0
  324. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/Phone.d.ts +7 -0
  325. 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
  326. 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
  327. 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
  328. 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
  329. 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
  330. 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
  331. 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
  332. 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
  333. 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
  334. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/index.d.ts +3 -0
  335. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/index.d.ts +1 -0
  336. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/style.d.ts +15 -0
  337. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/index.d.ts +1 -0
  338. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/index.d.ts +1 -0
  339. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/index.d.ts +1 -0
  340. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/index.d.ts +1 -0
  341. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/RCSs.d.ts +8 -0
  342. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/Body.d.ts +7 -0
  343. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/RCS.d.ts +7 -0
  344. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/index.d.ts +1 -0
  345. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/style.d.ts +19 -0
  346. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/index.d.ts +1 -0
  347. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/index.d.ts +1 -0
  348. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/index.d.ts +1 -0
  349. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/index.d.ts +1 -0
  350. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/Whatsapps.d.ts +8 -0
  351. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/Body.d.ts +7 -0
  352. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/Whatsapp.d.ts +7 -0
  353. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/index.d.ts +1 -0
  354. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/style.d.ts +19 -0
  355. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/index.d.ts +1 -0
  356. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/index.d.ts +1 -0
  357. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/index.d.ts +1 -0
  358. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/index.d.ts +1 -0
  359. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/index.d.ts +4 -0
  360. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/index.d.ts +1 -0
  361. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +13 -0
  362. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/index.d.ts +1 -0
  363. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/style.d.ts +3 -0
  364. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.d.ts +11 -0
  365. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/Body.d.ts +10 -0
  366. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/Ims.d.ts +10 -0
  367. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/index.d.ts +1 -0
  368. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +7 -0
  369. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/index.d.ts +1 -0
  370. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/index.d.ts +1 -0
  371. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/index.d.ts +1 -0
  372. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.d.ts +1 -0
  373. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/types/IMS.d.ts +2 -0
  374. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +13 -0
  375. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/index.d.ts +1 -0
  376. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/style.d.ts +3 -0
  377. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/SubsectionHeader.d.ts +5 -0
  378. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/index.d.ts +1 -0
  379. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/SubsectionHeaderWithButton.d.ts +6 -0
  380. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/index.d.ts +1 -0
  381. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/style.d.ts +8 -0
  382. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +5 -0
  383. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +5 -0
  384. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/index.d.ts +1 -0
  385. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/style.d.ts +15 -0
  386. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/index.d.ts +1 -0
  387. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/index.d.ts +1 -0
  388. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/style.d.ts +6 -0
  389. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.d.ts +10 -0
  390. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +6 -0
  391. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/index.d.ts +1 -0
  392. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +12 -0
  393. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/InformationItemInputsContainer.d.ts +6 -0
  394. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/index.d.ts +1 -0
  395. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -0
  396. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/NoteDeleteButton.d.ts +18 -0
  397. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/index.d.ts +1 -0
  398. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +13 -0
  399. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/StatusAdornment.d.ts +7 -0
  400. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +5 -0
  401. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/index.d.ts +1 -0
  402. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/index.d.ts +1 -0
  403. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/index.d.ts +1 -0
  404. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/SubsectionBodyContainer.d.ts +7 -0
  405. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/index.d.ts +1 -0
  406. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +14 -0
  407. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/index.d.ts +5 -0
  408. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/CheckContactAddressData.d.ts +5 -0
  409. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/ContactAddress.d.ts +2 -0
  410. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/index.d.ts +2 -0
  411. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/hooks/useEditModal.d.ts +8 -0
  412. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/index.d.ts +1 -0
  413. package/dist/esm/types/src/components/EditContactModal/components/Section/General/General.d.ts +14 -0
  414. package/dist/esm/types/src/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +8 -0
  415. package/dist/esm/types/src/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +8 -0
  416. package/dist/esm/types/src/components/EditContactModal/components/Section/General/index.d.ts +1 -0
  417. package/dist/esm/types/src/components/EditContactModal/components/Section/index.d.ts +3 -0
  418. package/dist/esm/types/src/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +6 -0
  419. package/dist/esm/types/src/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +14 -0
  420. package/dist/esm/types/src/components/EditContactModal/context/EditContactApiContext.d.ts +171 -0
  421. package/dist/esm/types/src/components/EditContactModal/context/EditEntityContext.d.ts +34 -0
  422. package/dist/esm/types/src/components/EditContactModal/context/NavigateContext.d.ts +9 -0
  423. package/dist/esm/types/src/components/EditContactModal/context/TranslationContext.d.ts +9 -0
  424. package/dist/esm/types/src/components/EditContactModal/hooks/useEditBusiness/types/UseEditBusiness.d.ts +55 -0
  425. package/dist/esm/types/src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.d.ts +10 -0
  426. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +60 -0
  427. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContact/useEditContact.d.ts +10 -0
  428. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContactMethods.d.ts +52 -0
  429. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContactModalController.d.ts +44 -0
  430. package/dist/esm/types/src/components/EditContactModal/hooks/useEntityUpdateSync.d.ts +8 -0
  431. package/dist/esm/types/src/components/EditContactModal/hooks/useField.d.ts +18 -0
  432. package/dist/esm/types/src/components/EditContactModal/hooks/useImage.d.ts +27 -0
  433. package/dist/esm/types/src/components/EditContactModal/hooks/useModalCloseHandler.d.ts +6 -0
  434. package/dist/esm/types/src/components/EditContactModal/hooks/useMultipleSelect.d.ts +20 -0
  435. package/dist/esm/types/src/components/EditContactModal/hooks/useSelect.d.ts +13 -0
  436. package/dist/esm/types/src/components/EditContactModal/hooks/useTagsEditorController.d.ts +26 -0
  437. package/dist/esm/types/src/components/EditContactModal/hooks/utils/editContactHelper.d.ts +6 -0
  438. package/dist/esm/types/src/components/EditContactModal/index.d.ts +1 -0
  439. package/dist/esm/types/src/components/EditContactModal/layout/Section.d.ts +9 -0
  440. package/dist/esm/types/src/components/EditContactModal/layout/SectionContent.d.ts +7 -0
  441. package/dist/esm/types/src/components/EditContactModal/layout/index.d.ts +2 -0
  442. package/dist/esm/types/src/components/EditContactModal/services/api.d.ts +141 -0
  443. package/dist/esm/types/src/components/EditContactModal/services/http.d.ts +23 -0
  444. package/dist/esm/types/src/components/EditContactModal/services/urls.d.ts +6 -0
  445. package/dist/esm/types/src/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +16 -0
  446. package/dist/esm/types/src/components/EditContactModal/shared/BusinessInfoLabel/index.d.ts +1 -0
  447. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +29 -0
  448. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/DateSelect.d.ts +8 -0
  449. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/index.d.ts +1 -0
  450. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +1 -0
  451. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/index.d.ts +1 -0
  452. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +18 -0
  453. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/CustomPropertyDatePicker.d.ts +8 -0
  454. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/index.d.ts +1 -0
  455. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/CustomPropertyDateRangePicker.d.ts +9 -0
  456. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/index.d.ts +1 -0
  457. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/CustomPropertyInput.d.ts +6 -0
  458. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/index.d.ts +1 -0
  459. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/types/CustomPropertyInputProps.d.ts +6 -0
  460. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/CustomPropertyOptionsSelect.d.ts +7 -0
  461. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/index.d.ts +1 -0
  462. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/CustomPropertyTimePicker.d.ts +8 -0
  463. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/index.d.ts +1 -0
  464. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/CustomPropertyTimeRangePicker.d.ts +9 -0
  465. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/index.d.ts +1 -0
  466. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts +6 -0
  467. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/index.d.ts +1 -0
  468. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +40 -0
  469. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/SelectBusinessLabel.d.ts +7 -0
  470. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/index.d.ts +1 -0
  471. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/index.d.ts +1 -0
  472. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/index.d.ts +1 -0
  473. package/dist/esm/types/src/components/EditContactModal/shared/index.d.ts +3 -0
  474. package/dist/esm/types/src/components/EditContactModal/types/is-business.typeguard.d.ts +7 -0
  475. package/dist/esm/types/src/components/EditContactModal/types/is-contact.typeguard.d.ts +7 -0
  476. package/dist/esm/types/src/components/EditContactModal/utils/contactHelper.d.ts +13 -0
  477. package/dist/esm/types/src/components/index.d.ts +2 -0
  478. package/dist/esm/types/src/i18n/config.d.ts +2 -0
  479. package/dist/esm/types/src/i18n/index.d.ts +2 -0
  480. package/dist/esm/types/src/index.d.ts +2 -0
  481. package/dist/index.d.ts +6 -4
  482. package/package.json +1 -1
package/dist/esm/index.js CHANGED
@@ -1,10 +1,9 @@
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
- import { initReactI18next, useTranslation } from 'react-i18next';
5
+ import { initReactI18next, I18nextProvider, useTranslation } from 'react-i18next';
6
6
  import i18n from 'i18next';
7
- export { default as i18n } from 'i18next';
8
7
  import * as ReactDOM from 'react-dom';
9
8
  import ReactDOM__default from 'react-dom';
10
9
 
@@ -7402,21 +7401,21 @@ var styleFunctionSx = /*#__PURE__*/Object.freeze({
7402
7401
 
7403
7402
  var require$$8 = /*@__PURE__*/getAugmentedNamespace(styleFunctionSx);
7404
7403
 
7405
- var _interopRequireDefault$j = interopRequireDefaultExports;
7404
+ var _interopRequireDefault$k = interopRequireDefaultExports;
7406
7405
  Object.defineProperty(createStyled$3, "__esModule", {
7407
7406
  value: true
7408
7407
  });
7409
7408
  var _default = createStyled$3.default = createStyled$1;
7410
7409
  var shouldForwardProp_1 = createStyled$3.shouldForwardProp = shouldForwardProp$1;
7411
7410
  createStyled$3.systemDefaultTheme = void 0;
7412
- var _extends2 = _interopRequireDefault$j(require_extends());
7413
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault$j(requireObjectWithoutPropertiesLoose());
7411
+ var _extends2 = _interopRequireDefault$k(require_extends());
7412
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault$k(requireObjectWithoutPropertiesLoose());
7414
7413
  var _styledEngine$1 = _interopRequireWildcard$2(require$$1$1);
7415
7414
  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);
7415
+ var _capitalize = _interopRequireDefault$k(require$$5);
7416
+ var _getDisplayName = _interopRequireDefault$k(require$$6);
7417
+ var _createTheme = _interopRequireDefault$k(require$$7);
7418
+ var _styleFunctionSx = _interopRequireDefault$k(require$$8);
7420
7419
  const _excluded$1v = ["ownerState"],
7421
7420
  _excluded2$d = ["variants"],
7422
7421
  _excluded3$4 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
@@ -7686,7 +7685,7 @@ var require$$1 = /*@__PURE__*/getAugmentedNamespace(formatMuiErrorMessage$1);
7686
7685
 
7687
7686
  var require$$2 = /*@__PURE__*/getAugmentedNamespace(clamp);
7688
7687
 
7689
- var _interopRequireDefault$i = interopRequireDefaultExports;
7688
+ var _interopRequireDefault$j = interopRequireDefaultExports;
7690
7689
  Object.defineProperty(colorManipulator, "__esModule", {
7691
7690
  value: true
7692
7691
  });
@@ -7708,8 +7707,8 @@ colorManipulator.private_safeEmphasize = private_safeEmphasize;
7708
7707
  colorManipulator.private_safeLighten = private_safeLighten;
7709
7708
  colorManipulator.recomposeColor = recomposeColor$1;
7710
7709
  colorManipulator.rgbToHex = rgbToHex;
7711
- var _formatMuiErrorMessage2 = _interopRequireDefault$i(require$$1);
7712
- var _clamp = _interopRequireDefault$i(require$$2);
7710
+ var _formatMuiErrorMessage2 = _interopRequireDefault$j(require$$1);
7711
+ var _clamp = _interopRequireDefault$j(require$$2);
7713
7712
  /* eslint-disable @typescript-eslint/naming-convention */
7714
7713
 
7715
7714
  /**
@@ -9075,27 +9074,27 @@ function requireCreateSvgIcon () {
9075
9074
  return createSvgIcon;
9076
9075
  }
9077
9076
 
9078
- var _interopRequireDefault$h = interopRequireDefaultExports;
9077
+ var _interopRequireDefault$i = interopRequireDefaultExports;
9079
9078
  Object.defineProperty(ArrowForward, "__esModule", {
9080
9079
  value: true
9081
9080
  });
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", {
9081
+ var default_1$j = ArrowForward.default = void 0;
9082
+ var _createSvgIcon$i = _interopRequireDefault$i(requireCreateSvgIcon());
9083
+ var _jsxRuntime$i = jsxRuntimeExports;
9084
+ default_1$j = ArrowForward.default = (0, _createSvgIcon$i.default)( /*#__PURE__*/(0, _jsxRuntime$i.jsx)("path", {
9086
9085
  d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
9087
9086
  }), 'ArrowForward');
9088
9087
 
9089
9088
  var Message = {};
9090
9089
 
9091
- var _interopRequireDefault$g = interopRequireDefaultExports;
9090
+ var _interopRequireDefault$h = interopRequireDefaultExports;
9092
9091
  Object.defineProperty(Message, "__esModule", {
9093
9092
  value: true
9094
9093
  });
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", {
9094
+ var default_1$i = Message.default = void 0;
9095
+ var _createSvgIcon$h = _interopRequireDefault$h(requireCreateSvgIcon());
9096
+ var _jsxRuntime$h = jsxRuntimeExports;
9097
+ default_1$i = Message.default = (0, _createSvgIcon$h.default)( /*#__PURE__*/(0, _jsxRuntime$h.jsx)("path", {
9099
9098
  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
9099
  }), 'Message');
9101
9100
 
@@ -9175,7 +9174,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9175
9174
  handleNavigateToContacts(e);
9176
9175
  onClose();
9177
9176
  }
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) => {
9177
+ }, 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
9178
  handleNavigateToConversations(e);
9180
9179
  onClose();
9181
9180
  }, onMouseDown: (e) => {
@@ -9184,7 +9183,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9184
9183
  handleNavigateToConversations(e);
9185
9184
  onClose();
9186
9185
  }
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 })] }));
9186
+ }, "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
9187
  };
9189
9188
 
9190
9189
  const Container$1 = styled$5(Box$2)({
@@ -15294,7 +15293,22 @@ var global$2 = {
15294
15293
  noOptions: "No options",
15295
15294
  noValue: "No value",
15296
15295
  birthdate: "Birthdate",
15297
- country: "Country"
15296
+ country: "Country",
15297
+ searchLocation: "Search location"
15298
+ };
15299
+ var searchLocationModal$1 = {
15300
+ searchAddress: "Search address",
15301
+ enterLocation: "Enter a location",
15302
+ city: "City",
15303
+ state: "State",
15304
+ postalCode: "Postal code",
15305
+ country: "Country",
15306
+ saveMainAddress: "Save main address",
15307
+ saveSecondaryAddress: "Save secondary address",
15308
+ loadingGoogleMaps: "Loading Google Maps...",
15309
+ googleMapsUnavailable: "Google Maps unavailable",
15310
+ googleMapsNotLoaded: "Google Maps not loaded",
15311
+ selectedPlaceNoLocation: "Selected place has no location data"
15298
15312
  };
15299
15313
  var avatar$1 = {
15300
15314
  upload: "Upload photo",
@@ -15337,6 +15351,7 @@ var en = {
15337
15351
  view: view$1,
15338
15352
  tags: tags$1,
15339
15353
  global: global$2,
15354
+ searchLocationModal: searchLocationModal$1,
15340
15355
  avatar: avatar$1,
15341
15356
  contactEdit: contactEdit$1,
15342
15357
  conversations: conversations$1
@@ -15364,7 +15379,22 @@ var global$1 = {
15364
15379
  noOptions: "Sin opciones",
15365
15380
  noValue: "Sin valor",
15366
15381
  birthdate: "Fecha de nacimiento",
15367
- country: "País"
15382
+ country: "País",
15383
+ searchLocation: "Buscar ubicación"
15384
+ };
15385
+ var searchLocationModal = {
15386
+ searchAddress: "Buscar dirección",
15387
+ enterLocation: "Ingresá una ubicación",
15388
+ city: "Ciudad",
15389
+ state: "Estado",
15390
+ postalCode: "Código postal",
15391
+ country: "País",
15392
+ saveMainAddress: "Guardar como dirección principal",
15393
+ saveSecondaryAddress: "Guardar como dirección secundaria",
15394
+ loadingGoogleMaps: "Cargando Google Maps...",
15395
+ googleMapsUnavailable: "Google Maps no disponible",
15396
+ googleMapsNotLoaded: "Google Maps no está cargado",
15397
+ selectedPlaceNoLocation: "La ubicación seleccionada no tiene coordenadas"
15368
15398
  };
15369
15399
  var avatar = {
15370
15400
  upload: "Subir foto",
@@ -15407,6 +15437,7 @@ var es = {
15407
15437
  view: view,
15408
15438
  tags: tags,
15409
15439
  global: global$1,
15440
+ searchLocationModal: searchLocationModal,
15410
15441
  avatar: avatar,
15411
15442
  contactEdit: contactEdit,
15412
15443
  conversations: conversations
@@ -15416,7 +15447,8 @@ const resources = {
15416
15447
  en: { translation: en },
15417
15448
  es: { translation: es },
15418
15449
  };
15419
- i18n.use(initReactI18next).init({
15450
+ const i18nInstance = i18n.createInstance();
15451
+ i18nInstance.use(initReactI18next).init({
15420
15452
  resources,
15421
15453
  lng: 'en',
15422
15454
  fallbackLng: 'en',
@@ -15455,7 +15487,7 @@ const PopupContainer = styled$5(Box$2)(({ theme }) => ({
15455
15487
  background: '#616161',
15456
15488
  },
15457
15489
  }));
15458
- const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl, navigate, language = 'en', }) => {
15490
+ const ContactInfoPopupContent = ({ open, anchorEl, onClose, contactData, avatarImgUrl, navigate, language = 'en', }) => {
15459
15491
  const { t: i18nT, i18n } = useTranslation();
15460
15492
  useEffect(() => {
15461
15493
  if (language) {
@@ -15515,48 +15547,51 @@ const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl,
15515
15547
  }, [open, onClose]);
15516
15548
  return (jsxRuntimeExports.jsx(Popper$2, { sx: { zIndex: 1300 }, open: open, anchorEl: anchorEl, placement: "bottom-start", "data-popper-child": "true", children: jsxRuntimeExports.jsx(ClickAwayListener, { onClickAway: onClose, children: jsxRuntimeExports.jsx(PopupContainer, { children: jsxRuntimeExports.jsxs(CardContent, { children: [jsxRuntimeExports.jsx(Header$1, { navigate: navigate, contactId: contactData?.id, imgUrl: avatarImgUrl, name: contactData?.name, onClose: onClose, isBusiness: dataIsBusiness }), jsxRuntimeExports.jsx(LabelsSection, { contactData: contactData, title: t('labels') }), dataIsContact && jsxRuntimeExports.jsx(BusinessSection, { contactData: contactData, title: t('business') }), dataIsBusiness && (jsxRuntimeExports.jsx(MembersSection, { contactData: contactData, title: t('businessMembers'), navigate: navigate })), contactMethods.map((method, index) => (jsxRuntimeExports.jsx(ContactMethod$1, { icon: method.icon, title: method.title, contactList: method.contactList, showTitle: method.showTitle }, index))), jsxRuntimeExports.jsx(Properties, { properties: contactData?.properties, title: t('properties') })] }) }) }) }));
15517
15549
  };
15550
+ const ContactInfoPopup = (props) => {
15551
+ return (jsxRuntimeExports.jsx(I18nextProvider, { i18n: i18nInstance, children: jsxRuntimeExports.jsx(ContactInfoPopupContent, { ...props }) }));
15552
+ };
15518
15553
 
15519
15554
  var Close = {};
15520
15555
 
15521
- var _interopRequireDefault$f = interopRequireDefaultExports;
15556
+ var _interopRequireDefault$g = interopRequireDefaultExports;
15522
15557
  Object.defineProperty(Close, "__esModule", {
15523
15558
  value: true
15524
15559
  });
15525
- var default_1$g = Close.default = void 0;
15526
- var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15527
- var _jsxRuntime$f = jsxRuntimeExports;
15528
- default_1$g = Close.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15560
+ var default_1$h = Close.default = void 0;
15561
+ var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
15562
+ var _jsxRuntime$g = jsxRuntimeExports;
15563
+ default_1$h = Close.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
15529
15564
  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"
15530
15565
  }), 'Close');
15531
15566
 
15532
15567
  var Edit = {};
15533
15568
 
15534
- var _interopRequireDefault$e = interopRequireDefaultExports;
15569
+ var _interopRequireDefault$f = interopRequireDefaultExports;
15535
15570
  Object.defineProperty(Edit, "__esModule", {
15536
15571
  value: true
15537
15572
  });
15538
- var default_1$f = Edit.default = void 0;
15539
- var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15540
- var _jsxRuntime$e = jsxRuntimeExports;
15541
- default_1$f = Edit.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15573
+ var default_1$g = Edit.default = void 0;
15574
+ var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15575
+ var _jsxRuntime$f = jsxRuntimeExports;
15576
+ default_1$g = Edit.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15542
15577
  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"
15543
15578
  }), 'Edit');
15544
15579
 
15545
15580
  var Label = {};
15546
15581
 
15547
- var _interopRequireDefault$d = interopRequireDefaultExports;
15582
+ var _interopRequireDefault$e = interopRequireDefaultExports;
15548
15583
  Object.defineProperty(Label, "__esModule", {
15549
15584
  value: true
15550
15585
  });
15551
- var default_1$e = Label.default = void 0;
15552
- var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15553
- var _jsxRuntime$d = jsxRuntimeExports;
15554
- default_1$e = Label.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15586
+ var default_1$f = Label.default = void 0;
15587
+ var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15588
+ var _jsxRuntime$e = jsxRuntimeExports;
15589
+ default_1$f = Label.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15555
15590
  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"
15556
15591
  }), 'Label');
15557
15592
 
15558
- const noop$4 = (key) => key;
15559
- const TranslationContext = createContext(noop$4);
15593
+ const noop$5 = (key) => key;
15594
+ const TranslationContext = createContext(noop$5);
15560
15595
  const TranslationProvider = ({ t, children }) => {
15561
15596
  return jsxRuntimeExports.jsx(TranslationContext.Provider, { value: t, children: children });
15562
15597
  };
@@ -15564,7 +15599,7 @@ const useTranslationContext = () => {
15564
15599
  const t = useContext(TranslationContext);
15565
15600
  if (!t) {
15566
15601
  console.warn('[useTranslationContext] using noop, context value is falsy');
15567
- return noop$4;
15602
+ return noop$5;
15568
15603
  }
15569
15604
  return (...args) => {
15570
15605
  const [key, ...rest] = args;
@@ -15618,7 +15653,7 @@ const Tags = ({ tags, onEditTags }) => {
15618
15653
  bgcolor: 'action.hover',
15619
15654
  color: 'text.primary',
15620
15655
  },
15621
- }, 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: {
15656
+ }, 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: {
15622
15657
  borderRadius: 999,
15623
15658
  maxWidth: 160,
15624
15659
  '& .MuiChip-label': {
@@ -15720,31 +15755,31 @@ const ContactName = ({ displayName, contactType, firstName, lastName, name, enti
15720
15755
 
15721
15756
  var Delete = {};
15722
15757
 
15723
- var _interopRequireDefault$c = interopRequireDefaultExports;
15758
+ var _interopRequireDefault$d = interopRequireDefaultExports;
15724
15759
  Object.defineProperty(Delete, "__esModule", {
15725
15760
  value: true
15726
15761
  });
15727
- var default_1$d = Delete.default = void 0;
15728
- var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15729
- var _jsxRuntime$c = jsxRuntimeExports;
15730
- default_1$d = Delete.default = (0, _createSvgIcon$c.default)( /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15762
+ var default_1$e = Delete.default = void 0;
15763
+ var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15764
+ var _jsxRuntime$d = jsxRuntimeExports;
15765
+ default_1$e = Delete.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15731
15766
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
15732
15767
  }), 'Delete');
15733
15768
 
15734
15769
  var PhotoCamera = {};
15735
15770
 
15736
- var _interopRequireDefault$b = interopRequireDefaultExports;
15771
+ var _interopRequireDefault$c = interopRequireDefaultExports;
15737
15772
  Object.defineProperty(PhotoCamera, "__esModule", {
15738
15773
  value: true
15739
15774
  });
15740
- var default_1$c = PhotoCamera.default = void 0;
15741
- var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15742
- var _jsxRuntime$b = jsxRuntimeExports;
15743
- default_1$c = PhotoCamera.default = (0, _createSvgIcon$b.default)([/*#__PURE__*/(0, _jsxRuntime$b.jsx)("circle", {
15775
+ var default_1$d = PhotoCamera.default = void 0;
15776
+ var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15777
+ var _jsxRuntime$c = jsxRuntimeExports;
15778
+ default_1$d = PhotoCamera.default = (0, _createSvgIcon$c.default)([/*#__PURE__*/(0, _jsxRuntime$c.jsx)("circle", {
15744
15779
  cx: "12",
15745
15780
  cy: "12",
15746
15781
  r: "3.2"
15747
- }, "0"), /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15782
+ }, "0"), /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15748
15783
  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"
15749
15784
  }, "1")], 'PhotoCamera');
15750
15785
 
@@ -15778,11 +15813,11 @@ const AvatarWithActions = ({ src, alt, onError, onUpload, onDelete, isUploading,
15778
15813
  color: 'common.white',
15779
15814
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15780
15815
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15781
- }, 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: {
15816
+ }, 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: {
15782
15817
  color: 'common.white',
15783
15818
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15784
15819
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15785
- }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) })] })] }));
15820
+ }, children: jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] })] }));
15786
15821
  };
15787
15822
 
15788
15823
  const HeaderContainer = styled$5(Box$2)({
@@ -15800,27 +15835,27 @@ const Header = ({ imgUrl, displayName, onError, tags, onEditTags, onUploadPhoto,
15800
15835
 
15801
15836
  var ArrowBack = {};
15802
15837
 
15803
- var _interopRequireDefault$a = interopRequireDefaultExports;
15838
+ var _interopRequireDefault$b = interopRequireDefaultExports;
15804
15839
  Object.defineProperty(ArrowBack, "__esModule", {
15805
15840
  value: true
15806
15841
  });
15807
- var default_1$b = ArrowBack.default = void 0;
15808
- var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15809
- var _jsxRuntime$a = jsxRuntimeExports;
15810
- default_1$b = ArrowBack.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15842
+ var default_1$c = ArrowBack.default = void 0;
15843
+ var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15844
+ var _jsxRuntime$b = jsxRuntimeExports;
15845
+ default_1$c = ArrowBack.default = (0, _createSvgIcon$b.default)( /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15811
15846
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
15812
15847
  }), 'ArrowBack');
15813
15848
 
15814
15849
  var Save = {};
15815
15850
 
15816
- var _interopRequireDefault$9 = interopRequireDefaultExports;
15851
+ var _interopRequireDefault$a = interopRequireDefaultExports;
15817
15852
  Object.defineProperty(Save, "__esModule", {
15818
15853
  value: true
15819
15854
  });
15820
- var default_1$a = Save.default = void 0;
15821
- var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
15822
- var _jsxRuntime$9 = jsxRuntimeExports;
15823
- default_1$a = Save.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
15855
+ var default_1$b = Save.default = void 0;
15856
+ var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15857
+ var _jsxRuntime$a = jsxRuntimeExports;
15858
+ default_1$b = Save.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15824
15859
  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"
15825
15860
  }), 'Save');
15826
15861
 
@@ -15829,7 +15864,7 @@ var useThemeWithoutDefault = {};
15829
15864
  Object.defineProperty(useThemeWithoutDefault, "__esModule", {
15830
15865
  value: true
15831
15866
  });
15832
- var default_1$9 = useThemeWithoutDefault.default = void 0;
15867
+ var default_1$a = useThemeWithoutDefault.default = void 0;
15833
15868
  var React = _interopRequireWildcard$1(React__default);
15834
15869
  var _styledEngine = require$$1$1;
15835
15870
  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); }
@@ -15841,7 +15876,7 @@ function useTheme$3(defaultTheme = null) {
15841
15876
  const contextTheme = React.useContext(_styledEngine.ThemeContext);
15842
15877
  return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme : contextTheme;
15843
15878
  }
15844
- default_1$9 = useThemeWithoutDefault.default = useTheme$3;
15879
+ default_1$a = useThemeWithoutDefault.default = useTheme$3;
15845
15880
 
15846
15881
  var top = 'top';
15847
15882
  var bottom = 'bottom';
@@ -18928,7 +18963,7 @@ const PopperRoot = styled$3(BasePopper, {
18928
18963
  */
18929
18964
  const Popper = /*#__PURE__*/React$1.forwardRef(function Popper(inProps, ref) {
18930
18965
  var _slots$root;
18931
- const theme = default_1$9();
18966
+ const theme = default_1$a();
18932
18967
  const props = useDefaultProps({
18933
18968
  props: inProps,
18934
18969
  name: 'MuiPopper'
@@ -19915,7 +19950,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
19915
19950
  onExited: PropTypes.func
19916
19951
  } : {}; // Name the function so it is clearer in the documentation
19917
19952
 
19918
- function noop$3() {}
19953
+ function noop$4() {}
19919
19954
 
19920
19955
  Transition.defaultProps = {
19921
19956
  in: false,
@@ -19924,12 +19959,12 @@ Transition.defaultProps = {
19924
19959
  appear: false,
19925
19960
  enter: true,
19926
19961
  exit: true,
19927
- onEnter: noop$3,
19928
- onEntering: noop$3,
19929
- onEntered: noop$3,
19930
- onExit: noop$3,
19931
- onExiting: noop$3,
19932
- onExited: noop$3
19962
+ onEnter: noop$4,
19963
+ onEntering: noop$4,
19964
+ onEntered: noop$4,
19965
+ onExit: noop$4,
19966
+ onExiting: noop$4,
19967
+ onExited: noop$4
19933
19968
  };
19934
19969
  Transition.UNMOUNTED = UNMOUNTED;
19935
19970
  Transition.EXITED = EXITED;
@@ -24835,8 +24870,35 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24835
24870
  const t = useTranslationContext();
24836
24871
  const [searchValue, setSearchValue] = useState('');
24837
24872
  const [limit, setLimit] = useState(PAGE_SIZE);
24873
+ const deferredSearchValue = useDeferredValue(searchValue);
24838
24874
  const safeOptions = useMemo(() => options ?? [], [options]);
24839
- const visibleOptions = useMemo(() => safeOptions.slice(0, limit), [safeOptions, limit]);
24875
+ const filteredOptions = useMemo(() => {
24876
+ const q = String(deferredSearchValue ?? '')
24877
+ .trim()
24878
+ .toLowerCase();
24879
+ if (!q)
24880
+ return safeOptions;
24881
+ return safeOptions.filter((o) => String(o?.name ?? '')
24882
+ .toLowerCase()
24883
+ .includes(q));
24884
+ }, [safeOptions, deferredSearchValue]);
24885
+ const visibleOptions = useMemo(() => filteredOptions.slice(0, limit), [filteredOptions, limit]);
24886
+ const optionsWithSelectedValues = useMemo(() => {
24887
+ const byId = new Map();
24888
+ for (const selected of value ?? []) {
24889
+ if (!selected?.id)
24890
+ continue;
24891
+ byId.set(String(selected.id), selected);
24892
+ }
24893
+ for (const opt of visibleOptions ?? []) {
24894
+ if (!opt?.id)
24895
+ continue;
24896
+ if (byId.has(String(opt.id)))
24897
+ continue;
24898
+ byId.set(String(opt.id), opt);
24899
+ }
24900
+ return Array.from(byId.values());
24901
+ }, [value, visibleOptions]);
24840
24902
  const handleSearchChange = (_, newInputValue) => {
24841
24903
  setSearchValue(newInputValue ?? '');
24842
24904
  setLimit(PAGE_SIZE);
@@ -24856,7 +24918,14 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24856
24918
  alignItems: 'center',
24857
24919
  }, 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') })] }));
24858
24920
  };
24859
- 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: (props) => (jsxRuntimeExports.jsx(AutocompletePopper, { ...props, popperContainer: popperContainer })), 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: {
24921
+ 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) => {
24922
+ const { key, ...rest } = props;
24923
+ return (createElement("li", { ...rest, key: option?.id ? String(option.id) : String(key ?? option?.name ?? '') }, option.name ?? ''));
24924
+ }, renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => {
24925
+ const tagProps = getTagProps({ index });
24926
+ const { key, ...rest } = tagProps;
24927
+ return (jsxRuntimeExports.jsx(Chip$2, { label: option.name ?? '', ...rest }, option?.id ? String(option.id) : String(key ?? option?.name ?? index)));
24928
+ }), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(TextField$1, { ...params, size: "small" }), ListboxProps: {
24860
24929
  onScroll: onListboxScroll,
24861
24930
  sx: { maxHeight: 280, overflowY: 'auto' },
24862
24931
  }, noOptionsText: jsxRuntimeExports.jsx(CustomNoOptionsMessage, {}), sx: { width: '100%' } })] }));
@@ -24956,6 +25025,16 @@ async function updateEntity({ baseUrl, spaceId, entityType, entityId, body, sign
24956
25025
  const url = joinUrl(urls.CONTACTS, path);
24957
25026
  return requestJson({ url, method: 'PUT', body, signal });
24958
25027
  }
25028
+ async function fetchBusinessTableData({ baseUrl, spaceId, pagination, signal, }) {
25029
+ const urls = getApiUrls(baseUrl, spaceId);
25030
+ const url = joinUrl(urls.CONTACTS, '/Search');
25031
+ return requestJson({ url, method: 'POST', body: pagination, signal });
25032
+ }
25033
+ async function createBusiness({ baseUrl, spaceId, business, signal }) {
25034
+ const urls = getApiUrls(baseUrl, spaceId);
25035
+ const url = joinUrl(urls.CONTACTS, '/business');
25036
+ return requestJson({ url, method: 'POST', body: business, signal });
25037
+ }
24959
25038
  async function deleteAddress({ baseUrl, spaceId, data, signal }) {
24960
25039
  const urls = getApiUrls(baseUrl, spaceId);
24961
25040
  const url = joinUrl(urls.CONTACTS, '/contactAddresses');
@@ -25002,6 +25081,8 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25002
25081
  fetchLabels: ({ signal } = {}) => fetchLabels({ baseUrl, spaceId, signal }),
25003
25082
  createLabel: ({ name, signal }) => createLabel({ baseUrl, spaceId, name, signal }),
25004
25083
  fetchContact: ({ contactId, signal }) => fetchContact({ baseUrl, spaceId, contactId, signal }),
25084
+ fetchBusinessTableData: ({ pagination, signal }) => fetchBusinessTableData({ baseUrl, spaceId, pagination, signal }),
25085
+ createBusiness: ({ business, signal }) => createBusiness({ baseUrl, spaceId, business, signal }),
25005
25086
  fetchContactFields: ({ forType, signal }) => fetchContactFields({ baseUrl, spaceId, forType, signal }),
25006
25087
  updateEntity: ({ entityType, entityId, body, signal }) => updateEntity({ baseUrl, spaceId, entityType, entityId, body, signal }),
25007
25088
  deleteAddress: ({ data, signal }) => deleteAddress({ baseUrl, spaceId, data, signal }),
@@ -25015,6 +25096,296 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25015
25096
  uploadAvatar: ({ contactId, file, signal }) => uploadAvatar({ baseUrl, spaceId, contactId, file, signal }),
25016
25097
  });
25017
25098
 
25099
+ const isGoogleMapsLoaded = () => {
25100
+ return Boolean(window?.google?.maps?.places?.Autocomplete);
25101
+ };
25102
+ const waitForGoogleMaps = (maxWaitTime = 10000) => {
25103
+ return new Promise((resolve) => {
25104
+ if (isGoogleMapsLoaded()) {
25105
+ resolve(true);
25106
+ return;
25107
+ }
25108
+ const startTime = Date.now();
25109
+ const checkInterval = 100;
25110
+ const interval = window.setInterval(() => {
25111
+ if (isGoogleMapsLoaded()) {
25112
+ window.clearInterval(interval);
25113
+ resolve(true);
25114
+ return;
25115
+ }
25116
+ if (Date.now() - startTime > maxWaitTime) {
25117
+ window.clearInterval(interval);
25118
+ resolve(false);
25119
+ }
25120
+ }, checkInterval);
25121
+ });
25122
+ };
25123
+ const useGoogleMapsStatus = () => {
25124
+ const [isLoaded, setIsLoaded] = useState(false);
25125
+ const [isLoading, setIsLoading] = useState(true);
25126
+ const [error, setError] = useState(null);
25127
+ useEffect(() => {
25128
+ const checkStatus = async () => {
25129
+ try {
25130
+ const loaded = await waitForGoogleMaps(10000);
25131
+ setIsLoaded(loaded);
25132
+ if (!loaded) {
25133
+ setError('Google Maps API failed to load');
25134
+ }
25135
+ }
25136
+ catch {
25137
+ setError('Error loading Google Maps API');
25138
+ setIsLoaded(false);
25139
+ }
25140
+ finally {
25141
+ setIsLoading(false);
25142
+ }
25143
+ };
25144
+ checkStatus();
25145
+ }, []);
25146
+ return { isLoaded, isLoading, error };
25147
+ };
25148
+
25149
+ const SearchLocationInput = ({ onPlaceSelected, onError, placeholder }) => {
25150
+ const t = useTranslationContext();
25151
+ const inputRef = useRef(null);
25152
+ const autocompleteRef = useRef(null);
25153
+ const placeSelectedRef = useRef(onPlaceSelected);
25154
+ const errorRef = useRef(onError);
25155
+ const { isLoaded, isLoading, error: mapsError } = useGoogleMapsStatus();
25156
+ const currentPlaceholder = useMemo(() => {
25157
+ if (isLoading)
25158
+ return t('searchLocationModal.loadingGoogleMaps');
25159
+ if (mapsError)
25160
+ return t('searchLocationModal.googleMapsUnavailable');
25161
+ if (!isLoaded)
25162
+ return t('searchLocationModal.googleMapsNotLoaded');
25163
+ return placeholder ?? t('searchLocationModal.enterLocation');
25164
+ }, [isLoaded, isLoading, mapsError, placeholder, t]);
25165
+ useEffect(() => {
25166
+ placeSelectedRef.current = onPlaceSelected;
25167
+ }, [onPlaceSelected]);
25168
+ useEffect(() => {
25169
+ errorRef.current = onError;
25170
+ }, [onError]);
25171
+ useEffect(() => {
25172
+ if (!isLoaded)
25173
+ return;
25174
+ if (!inputRef.current)
25175
+ return;
25176
+ if (autocompleteRef.current)
25177
+ return;
25178
+ const googleAny = window?.google;
25179
+ if (!googleAny?.maps?.places?.Autocomplete) {
25180
+ errorRef.current?.(t('searchLocationModal.googleMapsUnavailable'));
25181
+ return;
25182
+ }
25183
+ inputRef.current.focus();
25184
+ let observer = null;
25185
+ const applyPacContainerStyles = () => {
25186
+ const pacContainers = document.querySelectorAll('.pac-container');
25187
+ pacContainers.forEach((container) => {
25188
+ const el = container;
25189
+ el.style.zIndex = '20000';
25190
+ el.style.position = 'fixed';
25191
+ });
25192
+ };
25193
+ observer = new MutationObserver((mutations) => {
25194
+ for (const mutation of mutations) {
25195
+ for (const node of Array.from(mutation.addedNodes)) {
25196
+ if (node.nodeType !== Node.ELEMENT_NODE)
25197
+ continue;
25198
+ const element = node;
25199
+ if (!element.classList?.contains('pac-container'))
25200
+ continue;
25201
+ element.style.zIndex = '20000';
25202
+ element.style.position = 'fixed';
25203
+ }
25204
+ }
25205
+ });
25206
+ observer.observe(document.body, {
25207
+ childList: true,
25208
+ subtree: true,
25209
+ });
25210
+ applyPacContainerStyles();
25211
+ window.setTimeout(applyPacContainerStyles, 100);
25212
+ autocompleteRef.current = new googleAny.maps.places.Autocomplete(inputRef.current, {
25213
+ types: ['geocode'],
25214
+ componentRestrictions: { country: 'ar' },
25215
+ });
25216
+ const listener = autocompleteRef.current.addListener?.('place_changed', () => {
25217
+ const place = autocompleteRef.current?.getPlace?.();
25218
+ if (!place?.geometry?.location) {
25219
+ errorRef.current?.(t('searchLocationModal.selectedPlaceNoLocation'));
25220
+ return;
25221
+ }
25222
+ let city = '';
25223
+ let state = '';
25224
+ let country = '';
25225
+ let postalCode = '';
25226
+ let streetName = '';
25227
+ let streetNumber = '';
25228
+ const components = place.address_components ?? [];
25229
+ for (const component of components) {
25230
+ const types = component?.types ?? [];
25231
+ if (types.includes('locality') || types.includes('administrative_area_level_2')) {
25232
+ city = component.long_name;
25233
+ continue;
25234
+ }
25235
+ if (types.includes('administrative_area_level_1')) {
25236
+ state = component.long_name;
25237
+ continue;
25238
+ }
25239
+ if (types.includes('country')) {
25240
+ country = component.long_name;
25241
+ continue;
25242
+ }
25243
+ if (types.includes('postal_code')) {
25244
+ postalCode = component.long_name;
25245
+ continue;
25246
+ }
25247
+ if (types.includes('route')) {
25248
+ streetName = component.long_name;
25249
+ continue;
25250
+ }
25251
+ if (types.includes('street_number')) {
25252
+ streetNumber = component.long_name;
25253
+ }
25254
+ }
25255
+ const lat = typeof place.geometry.location.lat === 'function' ? place.geometry.location.lat() : 0;
25256
+ const lng = typeof place.geometry.location.lng === 'function' ? place.geometry.location.lng() : 0;
25257
+ const result = {
25258
+ location: { lat, lng },
25259
+ address: place.formatted_address ?? '',
25260
+ city,
25261
+ state,
25262
+ country,
25263
+ postalCode,
25264
+ streetName,
25265
+ streetNumber,
25266
+ shortAddress: [streetName, streetNumber].filter(Boolean).join(' '),
25267
+ };
25268
+ placeSelectedRef.current(result);
25269
+ });
25270
+ return () => {
25271
+ if (observer)
25272
+ observer.disconnect();
25273
+ if (listener?.remove)
25274
+ listener.remove();
25275
+ autocompleteRef.current = null;
25276
+ };
25277
+ }, [isLoaded, t]);
25278
+ const isDisabled = isLoading || !isLoaded || Boolean(mapsError);
25279
+ return (jsxRuntimeExports.jsx(TextField$1, { fullWidth: true, size: "small", inputRef: inputRef, placeholder: currentPlaceholder, disabled: isDisabled, error: Boolean(mapsError) }));
25280
+ };
25281
+
25282
+ const EMPTY_DRAFT = {
25283
+ street: '',
25284
+ city: '',
25285
+ state: '',
25286
+ zipcode: '',
25287
+ country: '',
25288
+ };
25289
+ const SearchLocationEditor = ({ baseUrl, spaceId, entityType, entityId, onBack, onEntityUpdated, }) => {
25290
+ const t = useTranslationContext();
25291
+ const [draft, setDraft] = useState(EMPTY_DRAFT);
25292
+ const [query, setQuery] = useState('');
25293
+ const [error, setError] = useState('');
25294
+ const [isSavingMain, setIsSavingMain] = useState(false);
25295
+ const [isSavingSecondary, setIsSavingSecondary] = useState(false);
25296
+ const canSubmit = useMemo(() => {
25297
+ return Boolean(String(draft.street ?? '').trim() ||
25298
+ String(draft.city ?? '').trim() ||
25299
+ String(draft.state ?? '').trim() ||
25300
+ String(draft.zipcode ?? '').trim() ||
25301
+ String(draft.country ?? '').trim());
25302
+ }, [draft]);
25303
+ const handlePlaceSelected = (result) => {
25304
+ setQuery(result.address ?? '');
25305
+ const computedStreet = String(result.shortAddress ?? '').trim() ||
25306
+ [result.streetName, result.streetNumber].filter(Boolean).join(' ').trim();
25307
+ setDraft({
25308
+ street: computedStreet,
25309
+ city: result.city ?? '',
25310
+ state: result.state ?? '',
25311
+ zipcode: result.postalCode ?? '',
25312
+ country: result.country ?? '',
25313
+ });
25314
+ setError('');
25315
+ };
25316
+ const handleError = (errorMessage) => {
25317
+ setError(String(errorMessage ?? ''));
25318
+ };
25319
+ const handleChange = (key) => (e) => {
25320
+ const next = e.target.value;
25321
+ setDraft((prev) => ({ ...prev, [key]: next }));
25322
+ };
25323
+ const handleSaveMainAddress = async () => {
25324
+ if (isSavingMain)
25325
+ return;
25326
+ if (!baseUrl || !spaceId)
25327
+ return;
25328
+ if (!entityId)
25329
+ return;
25330
+ setIsSavingMain(true);
25331
+ try {
25332
+ const updated = await updateEntity({
25333
+ baseUrl,
25334
+ spaceId,
25335
+ entityType,
25336
+ entityId,
25337
+ body: {
25338
+ address1: {
25339
+ street: String(draft.street ?? ''),
25340
+ city: String(draft.city ?? ''),
25341
+ state: String(draft.state ?? ''),
25342
+ zipcode: String(draft.zipcode ?? ''),
25343
+ country: String(draft.country ?? ''),
25344
+ },
25345
+ },
25346
+ });
25347
+ onEntityUpdated?.(updated);
25348
+ onBack();
25349
+ }
25350
+ finally {
25351
+ setIsSavingMain(false);
25352
+ }
25353
+ };
25354
+ const handleSaveSecondaryAddress = async () => {
25355
+ if (isSavingSecondary)
25356
+ return;
25357
+ if (!baseUrl || !spaceId)
25358
+ return;
25359
+ if (!entityId)
25360
+ return;
25361
+ setIsSavingSecondary(true);
25362
+ try {
25363
+ const updated = await updateEntity({
25364
+ baseUrl,
25365
+ spaceId,
25366
+ entityType,
25367
+ entityId,
25368
+ body: {
25369
+ address2: {
25370
+ street: String(draft.street ?? ''),
25371
+ city: String(draft.city ?? ''),
25372
+ state: String(draft.state ?? ''),
25373
+ zipcode: String(draft.zipcode ?? ''),
25374
+ country: String(draft.country ?? ''),
25375
+ },
25376
+ },
25377
+ });
25378
+ onEntityUpdated?.(updated);
25379
+ onBack();
25380
+ }
25381
+ finally {
25382
+ setIsSavingSecondary(false);
25383
+ }
25384
+ };
25385
+ const isDisabled = !canSubmit || isSavingMain || isSavingSecondary;
25386
+ 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] })] }));
25387
+ };
25388
+
25018
25389
  /**
25019
25390
  * Type guard to check if an object is an IBusiness
25020
25391
  * @param obj The object to check
@@ -26638,14 +27009,28 @@ const resolveUserLabel = ({ userId, users, currentUser, }) => {
26638
27009
  return fromUsers?.name?.trim() || fromUsers?.email || null;
26639
27010
  };
26640
27011
 
26641
- const Section = ({ title, children }) => {
27012
+ var AddLocationAlt = {};
27013
+
27014
+ var _interopRequireDefault$9 = interopRequireDefaultExports;
27015
+ Object.defineProperty(AddLocationAlt, "__esModule", {
27016
+ value: true
27017
+ });
27018
+ var default_1$9 = AddLocationAlt.default = void 0;
27019
+ var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
27020
+ var _jsxRuntime$9 = jsxRuntimeExports;
27021
+ default_1$9 = AddLocationAlt.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
27022
+ 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"
27023
+ }), 'AddLocationAlt');
27024
+
27025
+ const Section = ({ title, children, enableDirectionSearch = false, onDirectionSearchClick, }) => {
27026
+ const t = useTranslationContext();
26642
27027
  return (jsxRuntimeExports.jsxs(Box$2, { sx: {
26643
27028
  border: '1px solid',
26644
27029
  borderColor: 'divider',
26645
27030
  borderRadius: 2,
26646
27031
  p: 2,
26647
27032
  mb: 2,
26648
- }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: title }), jsxRuntimeExports.jsx(Divider, { sx: { my: 1.5 } }), children] }));
27033
+ }, 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] }));
26649
27034
  };
26650
27035
 
26651
27036
  const SectionContent = ({ children, ...boxProps }) => {
@@ -32966,7 +33351,7 @@ const PickersDayFiller = styled$3('div', {
32966
33351
  opacity: 0,
32967
33352
  pointerEvents: 'none'
32968
33353
  }));
32969
- const noop$2 = () => {};
33354
+ const noop$3 = () => {};
32970
33355
  const PickersDayRaw = /*#__PURE__*/React$1.forwardRef(function PickersDay(inProps, forwardedRef) {
32971
33356
  const props = useThemeProps({
32972
33357
  props: inProps,
@@ -32979,11 +33364,11 @@ const PickersDayRaw = /*#__PURE__*/React$1.forwardRef(function PickersDay(inProp
32979
33364
  isAnimating,
32980
33365
  onClick,
32981
33366
  onDaySelect,
32982
- onFocus = noop$2,
32983
- onBlur = noop$2,
32984
- onKeyDown = noop$2,
32985
- onMouseDown = noop$2,
32986
- onMouseEnter = noop$2,
33367
+ onFocus = noop$3,
33368
+ onBlur = noop$3,
33369
+ onKeyDown = noop$3,
33370
+ onMouseDown = noop$3,
33371
+ onMouseEnter = noop$3,
32987
33372
  children,
32988
33373
  day,
32989
33374
  selected,
@@ -43478,7 +43863,7 @@ const _excluded$y = ["enableAccessibleFieldDOMStructure"],
43478
43863
  _excluded6 = ["ownerState"],
43479
43864
  _excluded7 = ["ownerState"],
43480
43865
  _excluded8 = ["InputProps", "inputProps"];
43481
- const noop$1 = () => {};
43866
+ const noop$2 = () => {};
43482
43867
  const cleanFieldResponse = _ref => {
43483
43868
  let {
43484
43869
  enableAccessibleFieldDOMStructure
@@ -43495,7 +43880,7 @@ const cleanFieldResponse = _ref => {
43495
43880
  openPickerAriaLabel
43496
43881
  } = fieldResponse,
43497
43882
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded2$6);
43498
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43883
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43499
43884
  return {
43500
43885
  clearable,
43501
43886
  onClear,
@@ -43530,8 +43915,8 @@ const cleanFieldResponse = _ref => {
43530
43915
  openPickerAriaLabel
43531
43916
  } = fieldResponse,
43532
43917
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded3);
43533
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43534
- const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$1;
43918
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43919
+ const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$2;
43535
43920
  return {
43536
43921
  clearable,
43537
43922
  onClear,
@@ -52749,6 +53134,18 @@ default_1$8 = Cancel.default = (0, _createSvgIcon$8.default)( /*#__PURE__*/(0, _
52749
53134
  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"
52750
53135
  }), 'Cancel');
52751
53136
 
53137
+ const noop$1 = { view: 'main', setView: () => { } };
53138
+ const EditContactViewContext = createContext(null);
53139
+ const EditContactViewProvider = EditContactViewContext.Provider;
53140
+ const useEditContactView = () => {
53141
+ const ctx = useContext(EditContactViewContext);
53142
+ if (!ctx) {
53143
+ console.warn('[useEditContactView] using noop, context value is missing');
53144
+ return noop$1;
53145
+ }
53146
+ return ctx;
53147
+ };
53148
+
52752
53149
  const noop = () => { };
52753
53150
  const NavigateContext = createContext(noop);
52754
53151
  const NavigateProvider = ({ navigate, children }) => {
@@ -52819,6 +53216,7 @@ const StyledSaveCancelButton$1 = styled$5(IconButton$2)({
52819
53216
  const EntityInfoLabel = (props) => {
52820
53217
  const { title, value, isNotEditable, displayValue, baseUrl, spaceId, minWidth, onEntityUpdated } = props;
52821
53218
  const t = useTranslationContext();
53219
+ const { setView } = useEditContactView();
52822
53220
  const inputType = props.inputType ?? 'text';
52823
53221
  const [isEditing, setIsEditing] = useState(false);
52824
53222
  const [isSaving, setIsSaving] = useState(false);
@@ -52835,15 +53233,26 @@ const EntityInfoLabel = (props) => {
52835
53233
  return;
52836
53234
  const check = () => {
52837
53235
  const next = el.scrollWidth > el.clientWidth;
52838
- setIsTitleTruncated(next);
53236
+ setIsTitleTruncated((prev) => (prev === next ? prev : next));
52839
53237
  };
52840
53238
  check();
52841
53239
  if (typeof ResizeObserver !== 'undefined') {
53240
+ let rafId = 0;
52842
53241
  const ro = new ResizeObserver(() => {
52843
- check();
53242
+ if (typeof window === 'undefined') {
53243
+ check();
53244
+ return;
53245
+ }
53246
+ if (rafId)
53247
+ window.cancelAnimationFrame(rafId);
53248
+ rafId = window.requestAnimationFrame(() => {
53249
+ check();
53250
+ });
52844
53251
  });
52845
53252
  ro.observe(el);
52846
53253
  return () => {
53254
+ if (typeof window !== 'undefined' && rafId)
53255
+ window.cancelAnimationFrame(rafId);
52847
53256
  ro.disconnect();
52848
53257
  };
52849
53258
  }
@@ -52853,7 +53262,7 @@ const EntityInfoLabel = (props) => {
52853
53262
  return () => {
52854
53263
  window.removeEventListener('resize', check);
52855
53264
  };
52856
- }, [title, isEditing]);
53265
+ }, [title]);
52857
53266
  useEffect(() => {
52858
53267
  if (props.entityType === 'business') {
52859
53268
  setInputValue(value);
@@ -52864,7 +53273,7 @@ const EntityInfoLabel = (props) => {
52864
53273
  }, [value, props.entityType]);
52865
53274
  const handleEditClick = () => {
52866
53275
  if (props.entityType === 'contact' && inputType === 'selectBusiness') {
52867
- console.log('Not implemented yet');
53276
+ setView('businessSelect');
52868
53277
  return;
52869
53278
  }
52870
53279
  setIsEditing((prev) => !prev);
@@ -52963,7 +53372,7 @@ const EntityInfoLabel = (props) => {
52963
53372
  overflow: 'hidden',
52964
53373
  textOverflow: 'ellipsis',
52965
53374
  whiteSpace: 'nowrap',
52966
- }, 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'
53375
+ }, 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'
52967
53376
  ? option.name?.trim() || (isUserInfo(option) ? option.email : '') || 'Sin nombre'
52968
53377
  : 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 &&
52969
53378
  props.entityType === 'contact' &&
@@ -55020,7 +55429,7 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
55020
55429
  else
55021
55430
  return (jsxRuntimeExports.jsx(CustomPropertyInput, { type: type, nameKey: nameKey, value: value, onChange: handleInputChange }));
55022
55431
  };
55023
- 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)
55432
+ 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)
55024
55433
  ? property.type === Contacts.ContactField_type.DATERANGE
55025
55434
  ? (() => {
55026
55435
  if (typeof property.value === 'string') {
@@ -56697,7 +57106,7 @@ const StyledIconButton = styled$5(IconButton$2)({
56697
57106
  marginLeft: '15px',
56698
57107
  });
56699
57108
  const ContactMethod = ({ title, methodItems, isPhone, handleEdit, owner }) => {
56700
- 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) => {
57109
+ 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) => {
56701
57110
  if (isPhone) {
56702
57111
  return jsxRuntimeExports.jsx(ContactMethodPhoneItem, { item: item }, index);
56703
57112
  }
@@ -56876,7 +57285,7 @@ const OptionsMenu = ({ onDelete, addressData, handleLinkAccountSave, checked, on
56876
57285
  };
56877
57286
  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: {
56878
57287
  'aria-labelledby': 'basic-button',
56879
- }, 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: {
57288
+ }, 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: {
56880
57289
  position: 'absolute',
56881
57290
  top: '50%',
56882
57291
  left: '50%',
@@ -56956,7 +57365,7 @@ const NoteDeleteButton = (props) => {
56956
57365
  ...noteDeleteButtonStyle.container,
56957
57366
  }, 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: {
56958
57367
  shrink: true,
56959
- }, 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) => {
57368
+ }, 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) => {
56960
57369
  if (!api)
56961
57370
  return null;
56962
57371
  try {
@@ -57478,7 +57887,7 @@ const ContactInformation = ({ ownerData }) => {
57478
57887
  .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 })] }));
57479
57888
  };
57480
57889
 
57481
- const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, }) => {
57890
+ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, onDirectionSearchClick, }) => {
57482
57891
  const commonProps = {
57483
57892
  baseUrl,
57484
57893
  spaceId,
@@ -57497,7 +57906,7 @@ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntity
57497
57906
  }), minWidth: "100%" }), jsxRuntimeExports.jsx(EntityInfoLabel, { entityType: entityType, title: t('conversations.contactDetails.country'), value: entityData[addressNumber]?.country ?? '', ...commonProps, constructUpdateObject: (value) => ({
57498
57907
  [addressNumber]: { country: value },
57499
57908
  }), minWidth: "100%" })] })] }));
57500
- 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') })] }) }));
57909
+ 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') })] }) }));
57501
57910
  };
57502
57911
 
57503
57912
  const useEntityUpdateSync = ({ entity, setEntity }) => {
@@ -57670,7 +58079,226 @@ const useModalCloseHandler = ({ onClose }) => {
57670
58079
  return handleClose;
57671
58080
  };
57672
58081
 
57673
- const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, language = 'en', navigate, }) => {
58082
+ const DEFAULT_PAGINATION = {
58083
+ format: 'IBusiness',
58084
+ total: 0,
58085
+ lastPage: 1,
58086
+ perPage: 10,
58087
+ order: 'ASC',
58088
+ orderColumn: 'Id',
58089
+ };
58090
+ const BusinessSelectEditor = ({ baseUrl, spaceId, contactId, initialBusiness, onBack, onEntityUpdated, currentUser, }) => {
58091
+ const t = useTranslationContext();
58092
+ const api = useEditContactApi();
58093
+ const timerRef = useRef(null);
58094
+ const abortRef = useRef(null);
58095
+ const [inputValue, setInputValue] = useState(() => initialBusiness?.businessName ?? '');
58096
+ const [hasSearched, setHasSearched] = useState(false);
58097
+ const [isLoading, setIsLoading] = useState(false);
58098
+ const [isLoadingTimer, setIsLoadingTimer] = useState(false);
58099
+ const [options, setOptions] = useState([]);
58100
+ const [selected, setSelected] = useState(initialBusiness ?? null);
58101
+ const [currentPage, setCurrentPage] = useState(1);
58102
+ const [isNextPage, setIsNextPage] = useState(false);
58103
+ const [allLoaded, setAllLoaded] = useState(false);
58104
+ const ownerValue = useMemo(() => {
58105
+ const displayName = currentUser?.display_name;
58106
+ const email = currentUser?.email;
58107
+ return String(displayName || email || '').trim();
58108
+ }, [currentUser]);
58109
+ useEffect(() => {
58110
+ return () => {
58111
+ if (timerRef.current) {
58112
+ clearTimeout(timerRef.current);
58113
+ timerRef.current = null;
58114
+ }
58115
+ abortRef.current?.abort();
58116
+ };
58117
+ }, []);
58118
+ useEffect(() => {
58119
+ setSelected(initialBusiness ?? null);
58120
+ setInputValue(initialBusiness?.businessName ?? '');
58121
+ }, [initialBusiness]);
58122
+ const resetSearchState = () => {
58123
+ abortRef.current?.abort();
58124
+ abortRef.current = null;
58125
+ if (timerRef.current) {
58126
+ clearTimeout(timerRef.current);
58127
+ timerRef.current = null;
58128
+ }
58129
+ setHasSearched(false);
58130
+ setAllLoaded(false);
58131
+ setCurrentPage(1);
58132
+ setIsNextPage(false);
58133
+ setOptions([]);
58134
+ };
58135
+ const mapBusinesses = (businesses) => {
58136
+ return businesses
58137
+ .filter((b) => Boolean(b?.id))
58138
+ .map((b) => ({ businessId: String(b.id), businessName: String(b.name ?? '') }));
58139
+ };
58140
+ const fetchPage = async ({ query, page }) => {
58141
+ if (!api)
58142
+ return;
58143
+ abortRef.current?.abort();
58144
+ const controller = new AbortController();
58145
+ abortRef.current = controller;
58146
+ setIsLoading(true);
58147
+ try {
58148
+ const pagination = {
58149
+ ...DEFAULT_PAGINATION,
58150
+ currentPage: page,
58151
+ filter: [
58152
+ {
58153
+ value: query,
58154
+ column: 'name',
58155
+ condition: '',
58156
+ },
58157
+ ],
58158
+ };
58159
+ const response = await api.fetchBusinessTableData({ pagination, signal: controller.signal });
58160
+ if (controller.signal.aborted)
58161
+ return;
58162
+ const next = mapBusinesses((response?.contactos ?? []));
58163
+ setHasSearched(true);
58164
+ const total = response?.paginacion?.total ?? 0;
58165
+ setOptions((prev) => {
58166
+ const merged = page === 1
58167
+ ? next
58168
+ : (() => {
58169
+ const byId = new Map();
58170
+ for (const item of prev)
58171
+ byId.set(item.businessId, item);
58172
+ for (const item of next)
58173
+ byId.set(item.businessId, item);
58174
+ return Array.from(byId.values());
58175
+ })();
58176
+ if (total && merged.length >= total) {
58177
+ setAllLoaded(true);
58178
+ }
58179
+ return merged;
58180
+ });
58181
+ }
58182
+ finally {
58183
+ setIsLoading(false);
58184
+ setIsLoadingTimer(false);
58185
+ setIsNextPage(false);
58186
+ }
58187
+ };
58188
+ const handleQueryChanged = (value) => {
58189
+ resetSearchState();
58190
+ if (!value)
58191
+ return;
58192
+ if (timerRef.current) {
58193
+ clearTimeout(timerRef.current);
58194
+ timerRef.current = null;
58195
+ }
58196
+ setIsLoadingTimer(true);
58197
+ timerRef.current = setTimeout(() => {
58198
+ void fetchPage({ query: value, page: 1 });
58199
+ }, 800);
58200
+ };
58201
+ const handleScroll = (e) => {
58202
+ const element = e.target;
58203
+ const bottom = element.scrollHeight - element.scrollTop - element.clientHeight < 1;
58204
+ if (!bottom)
58205
+ return;
58206
+ if (allLoaded)
58207
+ return;
58208
+ if (isLoading)
58209
+ return;
58210
+ if (!inputValue)
58211
+ return;
58212
+ const nextPage = currentPage + 1;
58213
+ setIsNextPage(true);
58214
+ setCurrentPage(nextPage);
58215
+ void fetchPage({ query: inputValue, page: nextPage });
58216
+ };
58217
+ const handleCreateBusiness = async () => {
58218
+ if (!api)
58219
+ return;
58220
+ if (!ownerValue)
58221
+ return;
58222
+ const name = String(inputValue ?? '').trim();
58223
+ if (!name)
58224
+ return;
58225
+ setIsLoading(true);
58226
+ try {
58227
+ const business = {
58228
+ name,
58229
+ owner: ownerValue,
58230
+ imageUrl: '',
58231
+ members: [],
58232
+ tags: [],
58233
+ properties: [],
58234
+ address1: {
58235
+ street: '',
58236
+ city: '',
58237
+ state: '',
58238
+ zipcode: '',
58239
+ country: '',
58240
+ },
58241
+ address2: {
58242
+ street: '',
58243
+ city: '',
58244
+ state: '',
58245
+ zipcode: '',
58246
+ country: '',
58247
+ },
58248
+ };
58249
+ const created = await api.createBusiness({ business });
58250
+ const createdOption = {
58251
+ businessId: String(created.id ?? ''),
58252
+ businessName: String(created.name ?? name),
58253
+ };
58254
+ setOptions([createdOption]);
58255
+ setSelected(createdOption);
58256
+ setHasSearched(true);
58257
+ }
58258
+ finally {
58259
+ setIsLoading(false);
58260
+ }
58261
+ };
58262
+ const handleSave = async () => {
58263
+ if (!baseUrl || !spaceId)
58264
+ return;
58265
+ if (!contactId)
58266
+ return;
58267
+ const businessId = selected?.businessId ?? '';
58268
+ const updated = await updateEntity({
58269
+ baseUrl,
58270
+ spaceId,
58271
+ entityType: 'contact',
58272
+ entityId: contactId,
58273
+ body: {
58274
+ businessId,
58275
+ },
58276
+ });
58277
+ onEntityUpdated?.(updated);
58278
+ onBack();
58279
+ };
58280
+ 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') }));
58281
+ const isSavingDisabled = !contactId || !baseUrl || !spaceId;
58282
+ 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) => {
58283
+ setSelected(newValue);
58284
+ }, inputValue: inputValue, onInputChange: (event, newValue, reason) => {
58285
+ setInputValue(newValue);
58286
+ if (reason !== 'input')
58287
+ return;
58288
+ handleQueryChanged(newValue);
58289
+ }, 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: {
58290
+ ...params.InputProps,
58291
+ endAdornment: (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [isLoading || isLoadingTimer ? (jsxRuntimeExports.jsx(CircularProgress$2, { size: 18, sx: { mr: 1 } })) : null, params.InputProps.endAdornment] })),
58292
+ } })), ListboxProps: {
58293
+ sx: {
58294
+ maxHeight: 240,
58295
+ overflowY: 'auto',
58296
+ },
58297
+ onScroll: handleScroll,
58298
+ } })] })] }));
58299
+ };
58300
+
58301
+ const EditContactModalContent = ({ open, onClose, baseUrl, spaceId, contactId, sx, language = 'en', navigate, }) => {
57674
58302
  const { t: i18nT, i18n } = useTranslation();
57675
58303
  const modalContentRef = useRef(null);
57676
58304
  useEffect(() => {
@@ -57740,21 +58368,33 @@ const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, lang
57740
58368
  top: 5,
57741
58369
  color: (theme) => theme.palette.grey[500],
57742
58370
  zIndex: 1,
57743
- }, size: "small", children: jsxRuntimeExports.jsx(default_1$g, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(Box$2, { sx: {
58371
+ }, size: "small", children: jsxRuntimeExports.jsx(default_1$h, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(Box$2, { sx: {
57744
58372
  display: 'flex',
57745
58373
  justifyContent: 'center',
57746
58374
  alignItems: 'center',
57747
58375
  minHeight: 220,
57748
- }, 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: () => {
57749
- setView('tags');
57750
- }, 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' ||
57751
- selectors.contactType === 'business'
57752
- ? selectors.contactType
57753
- : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
57754
- selectors.contactType === 'business'
57755
- ? selectors.contactType
57756
- : '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, popperContainer: modalContentRef.current }) }) })] }) })) : null] }) }) }) }) }) }));
57757
- };
57758
-
57759
- export { ContactInfoPopup, EditContactModal };
58376
+ }, 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: () => {
58377
+ setView('tags');
58378
+ }, 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
58379
+ ? state.contactData.firstName
58380
+ : undefined, lastName: selectors.isContact
58381
+ ? state.contactData.lastName
58382
+ : 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' ||
58383
+ selectors.contactType === 'business'
58384
+ ? selectors.contactType
58385
+ : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
58386
+ selectors.contactType === 'business'
58387
+ ? selectors.contactType
58388
+ : '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
58389
+ ? {
58390
+ businessId: String(state.contactData.businessId),
58391
+ businessName: String(state.contactData.businessName ?? ''),
58392
+ }
58393
+ : null, onBack: () => setView('main'), onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }) }) })] }) }) })) : null] }) }) }) }) }) }));
58394
+ };
58395
+ const EditContactModal = (props) => {
58396
+ return (jsxRuntimeExports.jsx(I18nextProvider, { i18n: i18nInstance, children: jsxRuntimeExports.jsx(EditContactModalContent, { ...props }) }));
58397
+ };
58398
+
58399
+ export { ContactInfoPopup, EditContactModal, i18nInstance as i18n };
57760
58400
  //# sourceMappingURL=index.js.map