@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/cjs/index.js CHANGED
@@ -7421,21 +7421,21 @@ var styleFunctionSx = /*#__PURE__*/Object.freeze({
7421
7421
 
7422
7422
  var require$$8 = /*@__PURE__*/getAugmentedNamespace(styleFunctionSx);
7423
7423
 
7424
- var _interopRequireDefault$j = interopRequireDefaultExports;
7424
+ var _interopRequireDefault$k = interopRequireDefaultExports;
7425
7425
  Object.defineProperty(createStyled$3, "__esModule", {
7426
7426
  value: true
7427
7427
  });
7428
7428
  var _default = createStyled$3.default = createStyled$1;
7429
7429
  var shouldForwardProp_1 = createStyled$3.shouldForwardProp = shouldForwardProp$1;
7430
7430
  createStyled$3.systemDefaultTheme = void 0;
7431
- var _extends2 = _interopRequireDefault$j(require_extends());
7432
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault$j(requireObjectWithoutPropertiesLoose());
7431
+ var _extends2 = _interopRequireDefault$k(require_extends());
7432
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault$k(requireObjectWithoutPropertiesLoose());
7433
7433
  var _styledEngine$1 = _interopRequireWildcard$2(require$$1$1);
7434
7434
  var _deepmerge = require$$4;
7435
- var _capitalize = _interopRequireDefault$j(require$$5);
7436
- var _getDisplayName = _interopRequireDefault$j(require$$6);
7437
- var _createTheme = _interopRequireDefault$j(require$$7);
7438
- var _styleFunctionSx = _interopRequireDefault$j(require$$8);
7435
+ var _capitalize = _interopRequireDefault$k(require$$5);
7436
+ var _getDisplayName = _interopRequireDefault$k(require$$6);
7437
+ var _createTheme = _interopRequireDefault$k(require$$7);
7438
+ var _styleFunctionSx = _interopRequireDefault$k(require$$8);
7439
7439
  const _excluded$1v = ["ownerState"],
7440
7440
  _excluded2$d = ["variants"],
7441
7441
  _excluded3$4 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
@@ -7705,7 +7705,7 @@ var require$$1 = /*@__PURE__*/getAugmentedNamespace(formatMuiErrorMessage$1);
7705
7705
 
7706
7706
  var require$$2 = /*@__PURE__*/getAugmentedNamespace(clamp);
7707
7707
 
7708
- var _interopRequireDefault$i = interopRequireDefaultExports;
7708
+ var _interopRequireDefault$j = interopRequireDefaultExports;
7709
7709
  Object.defineProperty(colorManipulator, "__esModule", {
7710
7710
  value: true
7711
7711
  });
@@ -7727,8 +7727,8 @@ colorManipulator.private_safeEmphasize = private_safeEmphasize;
7727
7727
  colorManipulator.private_safeLighten = private_safeLighten;
7728
7728
  colorManipulator.recomposeColor = recomposeColor$1;
7729
7729
  colorManipulator.rgbToHex = rgbToHex;
7730
- var _formatMuiErrorMessage2 = _interopRequireDefault$i(require$$1);
7731
- var _clamp = _interopRequireDefault$i(require$$2);
7730
+ var _formatMuiErrorMessage2 = _interopRequireDefault$j(require$$1);
7731
+ var _clamp = _interopRequireDefault$j(require$$2);
7732
7732
  /* eslint-disable @typescript-eslint/naming-convention */
7733
7733
 
7734
7734
  /**
@@ -9094,27 +9094,27 @@ function requireCreateSvgIcon () {
9094
9094
  return createSvgIcon;
9095
9095
  }
9096
9096
 
9097
- var _interopRequireDefault$h = interopRequireDefaultExports;
9097
+ var _interopRequireDefault$i = interopRequireDefaultExports;
9098
9098
  Object.defineProperty(ArrowForward, "__esModule", {
9099
9099
  value: true
9100
9100
  });
9101
- var default_1$i = ArrowForward.default = void 0;
9102
- var _createSvgIcon$h = _interopRequireDefault$h(requireCreateSvgIcon());
9103
- var _jsxRuntime$h = jsxRuntimeExports;
9104
- default_1$i = ArrowForward.default = (0, _createSvgIcon$h.default)( /*#__PURE__*/(0, _jsxRuntime$h.jsx)("path", {
9101
+ var default_1$j = ArrowForward.default = void 0;
9102
+ var _createSvgIcon$i = _interopRequireDefault$i(requireCreateSvgIcon());
9103
+ var _jsxRuntime$i = jsxRuntimeExports;
9104
+ default_1$j = ArrowForward.default = (0, _createSvgIcon$i.default)( /*#__PURE__*/(0, _jsxRuntime$i.jsx)("path", {
9105
9105
  d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
9106
9106
  }), 'ArrowForward');
9107
9107
 
9108
9108
  var Message = {};
9109
9109
 
9110
- var _interopRequireDefault$g = interopRequireDefaultExports;
9110
+ var _interopRequireDefault$h = interopRequireDefaultExports;
9111
9111
  Object.defineProperty(Message, "__esModule", {
9112
9112
  value: true
9113
9113
  });
9114
- var default_1$h = Message.default = void 0;
9115
- var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
9116
- var _jsxRuntime$g = jsxRuntimeExports;
9117
- default_1$h = Message.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
9114
+ var default_1$i = Message.default = void 0;
9115
+ var _createSvgIcon$h = _interopRequireDefault$h(requireCreateSvgIcon());
9116
+ var _jsxRuntime$h = jsxRuntimeExports;
9117
+ default_1$i = Message.default = (0, _createSvgIcon$h.default)( /*#__PURE__*/(0, _jsxRuntime$h.jsx)("path", {
9118
9118
  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"
9119
9119
  }), 'Message');
9120
9120
 
@@ -9194,7 +9194,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9194
9194
  handleNavigateToContacts(e);
9195
9195
  onClose();
9196
9196
  }
9197
- }, disabled: !contactId, "aria-label": "View contact details", children: jsxRuntimeExports.jsx(default_1$i, { fontSize: "small" }) }), jsxRuntimeExports.jsx(SmallIconButton, { color: "info", size: "small", onClick: (e) => {
9197
+ }, disabled: !contactId, "aria-label": "View contact details", children: jsxRuntimeExports.jsx(default_1$j, { fontSize: "small" }) }), jsxRuntimeExports.jsx(SmallIconButton, { color: "info", size: "small", onClick: (e) => {
9198
9198
  handleNavigateToConversations(e);
9199
9199
  onClose();
9200
9200
  }, onMouseDown: (e) => {
@@ -9203,7 +9203,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9203
9203
  handleNavigateToConversations(e);
9204
9204
  onClose();
9205
9205
  }
9206
- }, "aria-label": "Go to conversations", children: jsxRuntimeExports.jsx(default_1$h, { fontSize: "small" }) })] }), isLoading ? (jsxRuntimeExports.jsx(LoadingContainer, { children: jsxRuntimeExports.jsx(material.CircularProgress, { 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 })] }));
9206
+ }, "aria-label": "Go to conversations", children: jsxRuntimeExports.jsx(default_1$i, { fontSize: "small" }) })] }), isLoading ? (jsxRuntimeExports.jsx(LoadingContainer, { children: jsxRuntimeExports.jsx(material.CircularProgress, { 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 })] }));
9207
9207
  };
9208
9208
 
9209
9209
  const Container$1 = material.styled(material.Box)({
@@ -15313,7 +15313,22 @@ var global$2 = {
15313
15313
  noOptions: "No options",
15314
15314
  noValue: "No value",
15315
15315
  birthdate: "Birthdate",
15316
- country: "Country"
15316
+ country: "Country",
15317
+ searchLocation: "Search location"
15318
+ };
15319
+ var searchLocationModal$1 = {
15320
+ searchAddress: "Search address",
15321
+ enterLocation: "Enter a location",
15322
+ city: "City",
15323
+ state: "State",
15324
+ postalCode: "Postal code",
15325
+ country: "Country",
15326
+ saveMainAddress: "Save main address",
15327
+ saveSecondaryAddress: "Save secondary address",
15328
+ loadingGoogleMaps: "Loading Google Maps...",
15329
+ googleMapsUnavailable: "Google Maps unavailable",
15330
+ googleMapsNotLoaded: "Google Maps not loaded",
15331
+ selectedPlaceNoLocation: "Selected place has no location data"
15317
15332
  };
15318
15333
  var avatar$1 = {
15319
15334
  upload: "Upload photo",
@@ -15356,6 +15371,7 @@ var en = {
15356
15371
  view: view$1,
15357
15372
  tags: tags$1,
15358
15373
  global: global$2,
15374
+ searchLocationModal: searchLocationModal$1,
15359
15375
  avatar: avatar$1,
15360
15376
  contactEdit: contactEdit$1,
15361
15377
  conversations: conversations$1
@@ -15383,7 +15399,22 @@ var global$1 = {
15383
15399
  noOptions: "Sin opciones",
15384
15400
  noValue: "Sin valor",
15385
15401
  birthdate: "Fecha de nacimiento",
15386
- country: "País"
15402
+ country: "País",
15403
+ searchLocation: "Buscar ubicación"
15404
+ };
15405
+ var searchLocationModal = {
15406
+ searchAddress: "Buscar dirección",
15407
+ enterLocation: "Ingresá una ubicación",
15408
+ city: "Ciudad",
15409
+ state: "Estado",
15410
+ postalCode: "Código postal",
15411
+ country: "País",
15412
+ saveMainAddress: "Guardar como dirección principal",
15413
+ saveSecondaryAddress: "Guardar como dirección secundaria",
15414
+ loadingGoogleMaps: "Cargando Google Maps...",
15415
+ googleMapsUnavailable: "Google Maps no disponible",
15416
+ googleMapsNotLoaded: "Google Maps no está cargado",
15417
+ selectedPlaceNoLocation: "La ubicación seleccionada no tiene coordenadas"
15387
15418
  };
15388
15419
  var avatar = {
15389
15420
  upload: "Subir foto",
@@ -15426,6 +15457,7 @@ var es = {
15426
15457
  view: view,
15427
15458
  tags: tags,
15428
15459
  global: global$1,
15460
+ searchLocationModal: searchLocationModal,
15429
15461
  avatar: avatar,
15430
15462
  contactEdit: contactEdit,
15431
15463
  conversations: conversations
@@ -15435,7 +15467,8 @@ const resources = {
15435
15467
  en: { translation: en },
15436
15468
  es: { translation: es },
15437
15469
  };
15438
- i18n.use(reactI18next.initReactI18next).init({
15470
+ const i18nInstance = i18n.createInstance();
15471
+ i18nInstance.use(reactI18next.initReactI18next).init({
15439
15472
  resources,
15440
15473
  lng: 'en',
15441
15474
  fallbackLng: 'en',
@@ -15474,7 +15507,7 @@ const PopupContainer = material.styled(material.Box)(({ theme }) => ({
15474
15507
  background: '#616161',
15475
15508
  },
15476
15509
  }));
15477
- const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl, navigate, language = 'en', }) => {
15510
+ const ContactInfoPopupContent = ({ open, anchorEl, onClose, contactData, avatarImgUrl, navigate, language = 'en', }) => {
15478
15511
  const { t: i18nT, i18n } = reactI18next.useTranslation();
15479
15512
  React$1.useEffect(() => {
15480
15513
  if (language) {
@@ -15534,48 +15567,51 @@ const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl,
15534
15567
  }, [open, onClose]);
15535
15568
  return (jsxRuntimeExports.jsx(material.Popper, { sx: { zIndex: 1300 }, open: open, anchorEl: anchorEl, placement: "bottom-start", "data-popper-child": "true", children: jsxRuntimeExports.jsx(material.ClickAwayListener, { onClickAway: onClose, children: jsxRuntimeExports.jsx(PopupContainer, { children: jsxRuntimeExports.jsxs(material.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') })] }) }) }) }));
15536
15569
  };
15570
+ const ContactInfoPopup = (props) => {
15571
+ return (jsxRuntimeExports.jsx(reactI18next.I18nextProvider, { i18n: i18nInstance, children: jsxRuntimeExports.jsx(ContactInfoPopupContent, { ...props }) }));
15572
+ };
15537
15573
 
15538
15574
  var Close = {};
15539
15575
 
15540
- var _interopRequireDefault$f = interopRequireDefaultExports;
15576
+ var _interopRequireDefault$g = interopRequireDefaultExports;
15541
15577
  Object.defineProperty(Close, "__esModule", {
15542
15578
  value: true
15543
15579
  });
15544
- var default_1$g = Close.default = void 0;
15545
- var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15546
- var _jsxRuntime$f = jsxRuntimeExports;
15547
- default_1$g = Close.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15580
+ var default_1$h = Close.default = void 0;
15581
+ var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
15582
+ var _jsxRuntime$g = jsxRuntimeExports;
15583
+ default_1$h = Close.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
15548
15584
  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"
15549
15585
  }), 'Close');
15550
15586
 
15551
15587
  var Edit = {};
15552
15588
 
15553
- var _interopRequireDefault$e = interopRequireDefaultExports;
15589
+ var _interopRequireDefault$f = interopRequireDefaultExports;
15554
15590
  Object.defineProperty(Edit, "__esModule", {
15555
15591
  value: true
15556
15592
  });
15557
- var default_1$f = Edit.default = void 0;
15558
- var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15559
- var _jsxRuntime$e = jsxRuntimeExports;
15560
- default_1$f = Edit.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15593
+ var default_1$g = Edit.default = void 0;
15594
+ var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15595
+ var _jsxRuntime$f = jsxRuntimeExports;
15596
+ default_1$g = Edit.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15561
15597
  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"
15562
15598
  }), 'Edit');
15563
15599
 
15564
15600
  var Label = {};
15565
15601
 
15566
- var _interopRequireDefault$d = interopRequireDefaultExports;
15602
+ var _interopRequireDefault$e = interopRequireDefaultExports;
15567
15603
  Object.defineProperty(Label, "__esModule", {
15568
15604
  value: true
15569
15605
  });
15570
- var default_1$e = Label.default = void 0;
15571
- var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15572
- var _jsxRuntime$d = jsxRuntimeExports;
15573
- default_1$e = Label.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15606
+ var default_1$f = Label.default = void 0;
15607
+ var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15608
+ var _jsxRuntime$e = jsxRuntimeExports;
15609
+ default_1$f = Label.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15574
15610
  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"
15575
15611
  }), 'Label');
15576
15612
 
15577
- const noop$4 = (key) => key;
15578
- const TranslationContext = React$1.createContext(noop$4);
15613
+ const noop$5 = (key) => key;
15614
+ const TranslationContext = React$1.createContext(noop$5);
15579
15615
  const TranslationProvider = ({ t, children }) => {
15580
15616
  return jsxRuntimeExports.jsx(TranslationContext.Provider, { value: t, children: children });
15581
15617
  };
@@ -15583,7 +15619,7 @@ const useTranslationContext = () => {
15583
15619
  const t = React$1.useContext(TranslationContext);
15584
15620
  if (!t) {
15585
15621
  console.warn('[useTranslationContext] using noop, context value is falsy');
15586
- return noop$4;
15622
+ return noop$5;
15587
15623
  }
15588
15624
  return (...args) => {
15589
15625
  const [key, ...rest] = args;
@@ -15637,7 +15673,7 @@ const Tags = ({ tags, onEditTags }) => {
15637
15673
  bgcolor: 'action.hover',
15638
15674
  color: 'text.primary',
15639
15675
  },
15640
- }, children: safeTags.length ? jsxRuntimeExports.jsx(default_1$f, { fontSize: "small" }) : jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] }), jsxRuntimeExports.jsx(material.Popover, { open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, children: jsxRuntimeExports.jsxs(material.Box, { sx: { p: 1.5, maxWidth: 320, maxHeight: 240, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle2", sx: { mb: 1 }, children: t('tags') }), jsxRuntimeExports.jsx(material.Stack, { direction: "row", spacing: 1, useFlexGap: true, flexWrap: "wrap", children: safeTags.map((tag) => (jsxRuntimeExports.jsx(material.Chip, { label: tag.name, size: "small", variant: "outlined", sx: {
15676
+ }, children: safeTags.length ? jsxRuntimeExports.jsx(default_1$g, { fontSize: "small" }) : jsxRuntimeExports.jsx(default_1$f, { fontSize: "small" }) })] }), jsxRuntimeExports.jsx(material.Popover, { open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, children: jsxRuntimeExports.jsxs(material.Box, { sx: { p: 1.5, maxWidth: 320, maxHeight: 240, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle2", sx: { mb: 1 }, children: t('tags') }), jsxRuntimeExports.jsx(material.Stack, { direction: "row", spacing: 1, useFlexGap: true, flexWrap: "wrap", children: safeTags.map((tag) => (jsxRuntimeExports.jsx(material.Chip, { label: tag.name, size: "small", variant: "outlined", sx: {
15641
15677
  borderRadius: 999,
15642
15678
  maxWidth: 160,
15643
15679
  '& .MuiChip-label': {
@@ -15739,31 +15775,31 @@ const ContactName = ({ displayName, contactType, firstName, lastName, name, enti
15739
15775
 
15740
15776
  var Delete = {};
15741
15777
 
15742
- var _interopRequireDefault$c = interopRequireDefaultExports;
15778
+ var _interopRequireDefault$d = interopRequireDefaultExports;
15743
15779
  Object.defineProperty(Delete, "__esModule", {
15744
15780
  value: true
15745
15781
  });
15746
- var default_1$d = Delete.default = void 0;
15747
- var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15748
- var _jsxRuntime$c = jsxRuntimeExports;
15749
- default_1$d = Delete.default = (0, _createSvgIcon$c.default)( /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15782
+ var default_1$e = Delete.default = void 0;
15783
+ var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15784
+ var _jsxRuntime$d = jsxRuntimeExports;
15785
+ default_1$e = Delete.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15750
15786
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
15751
15787
  }), 'Delete');
15752
15788
 
15753
15789
  var PhotoCamera = {};
15754
15790
 
15755
- var _interopRequireDefault$b = interopRequireDefaultExports;
15791
+ var _interopRequireDefault$c = interopRequireDefaultExports;
15756
15792
  Object.defineProperty(PhotoCamera, "__esModule", {
15757
15793
  value: true
15758
15794
  });
15759
- var default_1$c = PhotoCamera.default = void 0;
15760
- var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15761
- var _jsxRuntime$b = jsxRuntimeExports;
15762
- default_1$c = PhotoCamera.default = (0, _createSvgIcon$b.default)([/*#__PURE__*/(0, _jsxRuntime$b.jsx)("circle", {
15795
+ var default_1$d = PhotoCamera.default = void 0;
15796
+ var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15797
+ var _jsxRuntime$c = jsxRuntimeExports;
15798
+ default_1$d = PhotoCamera.default = (0, _createSvgIcon$c.default)([/*#__PURE__*/(0, _jsxRuntime$c.jsx)("circle", {
15763
15799
  cx: "12",
15764
15800
  cy: "12",
15765
15801
  r: "3.2"
15766
- }, "0"), /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15802
+ }, "0"), /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15767
15803
  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"
15768
15804
  }, "1")], 'PhotoCamera');
15769
15805
 
@@ -15797,11 +15833,11 @@ const AvatarWithActions = ({ src, alt, onError, onUpload, onDelete, isUploading,
15797
15833
  color: 'common.white',
15798
15834
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15799
15835
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15800
- }, children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.IconButton, { size: "small", "aria-label": t('avatar.delete'), onClick: onDelete, disabled: Boolean(isDeleting), sx: {
15836
+ }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.IconButton, { size: "small", "aria-label": t('avatar.delete'), onClick: onDelete, disabled: Boolean(isDeleting), sx: {
15801
15837
  color: 'common.white',
15802
15838
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15803
15839
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15804
- }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) })] })] }));
15840
+ }, children: jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] })] }));
15805
15841
  };
15806
15842
 
15807
15843
  const HeaderContainer = material.styled(material.Box)({
@@ -15819,27 +15855,27 @@ const Header = ({ imgUrl, displayName, onError, tags, onEditTags, onUploadPhoto,
15819
15855
 
15820
15856
  var ArrowBack = {};
15821
15857
 
15822
- var _interopRequireDefault$a = interopRequireDefaultExports;
15858
+ var _interopRequireDefault$b = interopRequireDefaultExports;
15823
15859
  Object.defineProperty(ArrowBack, "__esModule", {
15824
15860
  value: true
15825
15861
  });
15826
- var default_1$b = ArrowBack.default = void 0;
15827
- var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15828
- var _jsxRuntime$a = jsxRuntimeExports;
15829
- default_1$b = ArrowBack.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15862
+ var default_1$c = ArrowBack.default = void 0;
15863
+ var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15864
+ var _jsxRuntime$b = jsxRuntimeExports;
15865
+ default_1$c = ArrowBack.default = (0, _createSvgIcon$b.default)( /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15830
15866
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
15831
15867
  }), 'ArrowBack');
15832
15868
 
15833
15869
  var Save = {};
15834
15870
 
15835
- var _interopRequireDefault$9 = interopRequireDefaultExports;
15871
+ var _interopRequireDefault$a = interopRequireDefaultExports;
15836
15872
  Object.defineProperty(Save, "__esModule", {
15837
15873
  value: true
15838
15874
  });
15839
- var default_1$a = Save.default = void 0;
15840
- var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
15841
- var _jsxRuntime$9 = jsxRuntimeExports;
15842
- default_1$a = Save.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
15875
+ var default_1$b = Save.default = void 0;
15876
+ var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15877
+ var _jsxRuntime$a = jsxRuntimeExports;
15878
+ default_1$b = Save.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15843
15879
  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"
15844
15880
  }), 'Save');
15845
15881
 
@@ -15848,7 +15884,7 @@ var useThemeWithoutDefault = {};
15848
15884
  Object.defineProperty(useThemeWithoutDefault, "__esModule", {
15849
15885
  value: true
15850
15886
  });
15851
- var default_1$9 = useThemeWithoutDefault.default = void 0;
15887
+ var default_1$a = useThemeWithoutDefault.default = void 0;
15852
15888
  var React = _interopRequireWildcard$1(React$1);
15853
15889
  var _styledEngine = require$$1$1;
15854
15890
  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); }
@@ -15860,7 +15896,7 @@ function useTheme$3(defaultTheme = null) {
15860
15896
  const contextTheme = React.useContext(_styledEngine.ThemeContext);
15861
15897
  return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme : contextTheme;
15862
15898
  }
15863
- default_1$9 = useThemeWithoutDefault.default = useTheme$3;
15899
+ default_1$a = useThemeWithoutDefault.default = useTheme$3;
15864
15900
 
15865
15901
  var top = 'top';
15866
15902
  var bottom = 'bottom';
@@ -18947,7 +18983,7 @@ const PopperRoot = styled$3(BasePopper, {
18947
18983
  */
18948
18984
  const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
18949
18985
  var _slots$root;
18950
- const theme = default_1$9();
18986
+ const theme = default_1$a();
18951
18987
  const props = useDefaultProps({
18952
18988
  props: inProps,
18953
18989
  name: 'MuiPopper'
@@ -19934,7 +19970,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
19934
19970
  onExited: PropTypes.func
19935
19971
  } : {}; // Name the function so it is clearer in the documentation
19936
19972
 
19937
- function noop$3() {}
19973
+ function noop$4() {}
19938
19974
 
19939
19975
  Transition.defaultProps = {
19940
19976
  in: false,
@@ -19943,12 +19979,12 @@ Transition.defaultProps = {
19943
19979
  appear: false,
19944
19980
  enter: true,
19945
19981
  exit: true,
19946
- onEnter: noop$3,
19947
- onEntering: noop$3,
19948
- onEntered: noop$3,
19949
- onExit: noop$3,
19950
- onExiting: noop$3,
19951
- onExited: noop$3
19982
+ onEnter: noop$4,
19983
+ onEntering: noop$4,
19984
+ onEntered: noop$4,
19985
+ onExit: noop$4,
19986
+ onExiting: noop$4,
19987
+ onExited: noop$4
19952
19988
  };
19953
19989
  Transition.UNMOUNTED = UNMOUNTED;
19954
19990
  Transition.EXITED = EXITED;
@@ -24854,8 +24890,35 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24854
24890
  const t = useTranslationContext();
24855
24891
  const [searchValue, setSearchValue] = React$1.useState('');
24856
24892
  const [limit, setLimit] = React$1.useState(PAGE_SIZE);
24893
+ const deferredSearchValue = React$1.useDeferredValue(searchValue);
24857
24894
  const safeOptions = React$1.useMemo(() => options ?? [], [options]);
24858
- const visibleOptions = React$1.useMemo(() => safeOptions.slice(0, limit), [safeOptions, limit]);
24895
+ const filteredOptions = React$1.useMemo(() => {
24896
+ const q = String(deferredSearchValue ?? '')
24897
+ .trim()
24898
+ .toLowerCase();
24899
+ if (!q)
24900
+ return safeOptions;
24901
+ return safeOptions.filter((o) => String(o?.name ?? '')
24902
+ .toLowerCase()
24903
+ .includes(q));
24904
+ }, [safeOptions, deferredSearchValue]);
24905
+ const visibleOptions = React$1.useMemo(() => filteredOptions.slice(0, limit), [filteredOptions, limit]);
24906
+ const optionsWithSelectedValues = React$1.useMemo(() => {
24907
+ const byId = new Map();
24908
+ for (const selected of value ?? []) {
24909
+ if (!selected?.id)
24910
+ continue;
24911
+ byId.set(String(selected.id), selected);
24912
+ }
24913
+ for (const opt of visibleOptions ?? []) {
24914
+ if (!opt?.id)
24915
+ continue;
24916
+ if (byId.has(String(opt.id)))
24917
+ continue;
24918
+ byId.set(String(opt.id), opt);
24919
+ }
24920
+ return Array.from(byId.values());
24921
+ }, [value, visibleOptions]);
24859
24922
  const handleSearchChange = (_, newInputValue) => {
24860
24923
  setSearchValue(newInputValue ?? '');
24861
24924
  setLimit(PAGE_SIZE);
@@ -24875,7 +24938,14 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24875
24938
  alignItems: 'center',
24876
24939
  }, 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') })] }));
24877
24940
  };
24878
- return (jsxRuntimeExports.jsxs(material.Box, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(material.IconButton, { size: "small", onClick: onBack, "aria-label": t('global.back'), disabled: isSaving, children: jsxRuntimeExports.jsx(default_1$b, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: t('tags') }), jsxRuntimeExports.jsx(material.Box, { 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(material.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(material.Chip, { label: option.name ?? '', ...getTagProps({ index }) }))), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(material.TextField, { ...params, size: "small" }), ListboxProps: {
24941
+ return (jsxRuntimeExports.jsxs(material.Box, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(material.IconButton, { size: "small", onClick: onBack, "aria-label": t('global.back'), disabled: isSaving, children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: t('tags') }), jsxRuntimeExports.jsx(material.Box, { 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(material.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) => {
24942
+ const { key, ...rest } = props;
24943
+ return (React$1.createElement("li", { ...rest, key: option?.id ? String(option.id) : String(key ?? option?.name ?? '') }, option.name ?? ''));
24944
+ }, renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => {
24945
+ const tagProps = getTagProps({ index });
24946
+ const { key, ...rest } = tagProps;
24947
+ return (jsxRuntimeExports.jsx(material.Chip, { label: option.name ?? '', ...rest }, option?.id ? String(option.id) : String(key ?? option?.name ?? index)));
24948
+ }), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(material.TextField, { ...params, size: "small" }), ListboxProps: {
24879
24949
  onScroll: onListboxScroll,
24880
24950
  sx: { maxHeight: 280, overflowY: 'auto' },
24881
24951
  }, noOptionsText: jsxRuntimeExports.jsx(CustomNoOptionsMessage, {}), sx: { width: '100%' } })] }));
@@ -24975,6 +25045,16 @@ async function updateEntity({ baseUrl, spaceId, entityType, entityId, body, sign
24975
25045
  const url = joinUrl(urls.CONTACTS, path);
24976
25046
  return requestJson({ url, method: 'PUT', body, signal });
24977
25047
  }
25048
+ async function fetchBusinessTableData({ baseUrl, spaceId, pagination, signal, }) {
25049
+ const urls = getApiUrls(baseUrl, spaceId);
25050
+ const url = joinUrl(urls.CONTACTS, '/Search');
25051
+ return requestJson({ url, method: 'POST', body: pagination, signal });
25052
+ }
25053
+ async function createBusiness({ baseUrl, spaceId, business, signal }) {
25054
+ const urls = getApiUrls(baseUrl, spaceId);
25055
+ const url = joinUrl(urls.CONTACTS, '/business');
25056
+ return requestJson({ url, method: 'POST', body: business, signal });
25057
+ }
24978
25058
  async function deleteAddress({ baseUrl, spaceId, data, signal }) {
24979
25059
  const urls = getApiUrls(baseUrl, spaceId);
24980
25060
  const url = joinUrl(urls.CONTACTS, '/contactAddresses');
@@ -25021,6 +25101,8 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25021
25101
  fetchLabels: ({ signal } = {}) => fetchLabels({ baseUrl, spaceId, signal }),
25022
25102
  createLabel: ({ name, signal }) => createLabel({ baseUrl, spaceId, name, signal }),
25023
25103
  fetchContact: ({ contactId, signal }) => fetchContact({ baseUrl, spaceId, contactId, signal }),
25104
+ fetchBusinessTableData: ({ pagination, signal }) => fetchBusinessTableData({ baseUrl, spaceId, pagination, signal }),
25105
+ createBusiness: ({ business, signal }) => createBusiness({ baseUrl, spaceId, business, signal }),
25024
25106
  fetchContactFields: ({ forType, signal }) => fetchContactFields({ baseUrl, spaceId, forType, signal }),
25025
25107
  updateEntity: ({ entityType, entityId, body, signal }) => updateEntity({ baseUrl, spaceId, entityType, entityId, body, signal }),
25026
25108
  deleteAddress: ({ data, signal }) => deleteAddress({ baseUrl, spaceId, data, signal }),
@@ -25034,6 +25116,296 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25034
25116
  uploadAvatar: ({ contactId, file, signal }) => uploadAvatar({ baseUrl, spaceId, contactId, file, signal }),
25035
25117
  });
25036
25118
 
25119
+ const isGoogleMapsLoaded = () => {
25120
+ return Boolean(window?.google?.maps?.places?.Autocomplete);
25121
+ };
25122
+ const waitForGoogleMaps = (maxWaitTime = 10000) => {
25123
+ return new Promise((resolve) => {
25124
+ if (isGoogleMapsLoaded()) {
25125
+ resolve(true);
25126
+ return;
25127
+ }
25128
+ const startTime = Date.now();
25129
+ const checkInterval = 100;
25130
+ const interval = window.setInterval(() => {
25131
+ if (isGoogleMapsLoaded()) {
25132
+ window.clearInterval(interval);
25133
+ resolve(true);
25134
+ return;
25135
+ }
25136
+ if (Date.now() - startTime > maxWaitTime) {
25137
+ window.clearInterval(interval);
25138
+ resolve(false);
25139
+ }
25140
+ }, checkInterval);
25141
+ });
25142
+ };
25143
+ const useGoogleMapsStatus = () => {
25144
+ const [isLoaded, setIsLoaded] = React$1.useState(false);
25145
+ const [isLoading, setIsLoading] = React$1.useState(true);
25146
+ const [error, setError] = React$1.useState(null);
25147
+ React$1.useEffect(() => {
25148
+ const checkStatus = async () => {
25149
+ try {
25150
+ const loaded = await waitForGoogleMaps(10000);
25151
+ setIsLoaded(loaded);
25152
+ if (!loaded) {
25153
+ setError('Google Maps API failed to load');
25154
+ }
25155
+ }
25156
+ catch {
25157
+ setError('Error loading Google Maps API');
25158
+ setIsLoaded(false);
25159
+ }
25160
+ finally {
25161
+ setIsLoading(false);
25162
+ }
25163
+ };
25164
+ checkStatus();
25165
+ }, []);
25166
+ return { isLoaded, isLoading, error };
25167
+ };
25168
+
25169
+ const SearchLocationInput = ({ onPlaceSelected, onError, placeholder }) => {
25170
+ const t = useTranslationContext();
25171
+ const inputRef = React$1.useRef(null);
25172
+ const autocompleteRef = React$1.useRef(null);
25173
+ const placeSelectedRef = React$1.useRef(onPlaceSelected);
25174
+ const errorRef = React$1.useRef(onError);
25175
+ const { isLoaded, isLoading, error: mapsError } = useGoogleMapsStatus();
25176
+ const currentPlaceholder = React$1.useMemo(() => {
25177
+ if (isLoading)
25178
+ return t('searchLocationModal.loadingGoogleMaps');
25179
+ if (mapsError)
25180
+ return t('searchLocationModal.googleMapsUnavailable');
25181
+ if (!isLoaded)
25182
+ return t('searchLocationModal.googleMapsNotLoaded');
25183
+ return placeholder ?? t('searchLocationModal.enterLocation');
25184
+ }, [isLoaded, isLoading, mapsError, placeholder, t]);
25185
+ React$1.useEffect(() => {
25186
+ placeSelectedRef.current = onPlaceSelected;
25187
+ }, [onPlaceSelected]);
25188
+ React$1.useEffect(() => {
25189
+ errorRef.current = onError;
25190
+ }, [onError]);
25191
+ React$1.useEffect(() => {
25192
+ if (!isLoaded)
25193
+ return;
25194
+ if (!inputRef.current)
25195
+ return;
25196
+ if (autocompleteRef.current)
25197
+ return;
25198
+ const googleAny = window?.google;
25199
+ if (!googleAny?.maps?.places?.Autocomplete) {
25200
+ errorRef.current?.(t('searchLocationModal.googleMapsUnavailable'));
25201
+ return;
25202
+ }
25203
+ inputRef.current.focus();
25204
+ let observer = null;
25205
+ const applyPacContainerStyles = () => {
25206
+ const pacContainers = document.querySelectorAll('.pac-container');
25207
+ pacContainers.forEach((container) => {
25208
+ const el = container;
25209
+ el.style.zIndex = '20000';
25210
+ el.style.position = 'fixed';
25211
+ });
25212
+ };
25213
+ observer = new MutationObserver((mutations) => {
25214
+ for (const mutation of mutations) {
25215
+ for (const node of Array.from(mutation.addedNodes)) {
25216
+ if (node.nodeType !== Node.ELEMENT_NODE)
25217
+ continue;
25218
+ const element = node;
25219
+ if (!element.classList?.contains('pac-container'))
25220
+ continue;
25221
+ element.style.zIndex = '20000';
25222
+ element.style.position = 'fixed';
25223
+ }
25224
+ }
25225
+ });
25226
+ observer.observe(document.body, {
25227
+ childList: true,
25228
+ subtree: true,
25229
+ });
25230
+ applyPacContainerStyles();
25231
+ window.setTimeout(applyPacContainerStyles, 100);
25232
+ autocompleteRef.current = new googleAny.maps.places.Autocomplete(inputRef.current, {
25233
+ types: ['geocode'],
25234
+ componentRestrictions: { country: 'ar' },
25235
+ });
25236
+ const listener = autocompleteRef.current.addListener?.('place_changed', () => {
25237
+ const place = autocompleteRef.current?.getPlace?.();
25238
+ if (!place?.geometry?.location) {
25239
+ errorRef.current?.(t('searchLocationModal.selectedPlaceNoLocation'));
25240
+ return;
25241
+ }
25242
+ let city = '';
25243
+ let state = '';
25244
+ let country = '';
25245
+ let postalCode = '';
25246
+ let streetName = '';
25247
+ let streetNumber = '';
25248
+ const components = place.address_components ?? [];
25249
+ for (const component of components) {
25250
+ const types = component?.types ?? [];
25251
+ if (types.includes('locality') || types.includes('administrative_area_level_2')) {
25252
+ city = component.long_name;
25253
+ continue;
25254
+ }
25255
+ if (types.includes('administrative_area_level_1')) {
25256
+ state = component.long_name;
25257
+ continue;
25258
+ }
25259
+ if (types.includes('country')) {
25260
+ country = component.long_name;
25261
+ continue;
25262
+ }
25263
+ if (types.includes('postal_code')) {
25264
+ postalCode = component.long_name;
25265
+ continue;
25266
+ }
25267
+ if (types.includes('route')) {
25268
+ streetName = component.long_name;
25269
+ continue;
25270
+ }
25271
+ if (types.includes('street_number')) {
25272
+ streetNumber = component.long_name;
25273
+ }
25274
+ }
25275
+ const lat = typeof place.geometry.location.lat === 'function' ? place.geometry.location.lat() : 0;
25276
+ const lng = typeof place.geometry.location.lng === 'function' ? place.geometry.location.lng() : 0;
25277
+ const result = {
25278
+ location: { lat, lng },
25279
+ address: place.formatted_address ?? '',
25280
+ city,
25281
+ state,
25282
+ country,
25283
+ postalCode,
25284
+ streetName,
25285
+ streetNumber,
25286
+ shortAddress: [streetName, streetNumber].filter(Boolean).join(' '),
25287
+ };
25288
+ placeSelectedRef.current(result);
25289
+ });
25290
+ return () => {
25291
+ if (observer)
25292
+ observer.disconnect();
25293
+ if (listener?.remove)
25294
+ listener.remove();
25295
+ autocompleteRef.current = null;
25296
+ };
25297
+ }, [isLoaded, t]);
25298
+ const isDisabled = isLoading || !isLoaded || Boolean(mapsError);
25299
+ return (jsxRuntimeExports.jsx(material.TextField, { fullWidth: true, size: "small", inputRef: inputRef, placeholder: currentPlaceholder, disabled: isDisabled, error: Boolean(mapsError) }));
25300
+ };
25301
+
25302
+ const EMPTY_DRAFT = {
25303
+ street: '',
25304
+ city: '',
25305
+ state: '',
25306
+ zipcode: '',
25307
+ country: '',
25308
+ };
25309
+ const SearchLocationEditor = ({ baseUrl, spaceId, entityType, entityId, onBack, onEntityUpdated, }) => {
25310
+ const t = useTranslationContext();
25311
+ const [draft, setDraft] = React$1.useState(EMPTY_DRAFT);
25312
+ const [query, setQuery] = React$1.useState('');
25313
+ const [error, setError] = React$1.useState('');
25314
+ const [isSavingMain, setIsSavingMain] = React$1.useState(false);
25315
+ const [isSavingSecondary, setIsSavingSecondary] = React$1.useState(false);
25316
+ const canSubmit = React$1.useMemo(() => {
25317
+ return Boolean(String(draft.street ?? '').trim() ||
25318
+ String(draft.city ?? '').trim() ||
25319
+ String(draft.state ?? '').trim() ||
25320
+ String(draft.zipcode ?? '').trim() ||
25321
+ String(draft.country ?? '').trim());
25322
+ }, [draft]);
25323
+ const handlePlaceSelected = (result) => {
25324
+ setQuery(result.address ?? '');
25325
+ const computedStreet = String(result.shortAddress ?? '').trim() ||
25326
+ [result.streetName, result.streetNumber].filter(Boolean).join(' ').trim();
25327
+ setDraft({
25328
+ street: computedStreet,
25329
+ city: result.city ?? '',
25330
+ state: result.state ?? '',
25331
+ zipcode: result.postalCode ?? '',
25332
+ country: result.country ?? '',
25333
+ });
25334
+ setError('');
25335
+ };
25336
+ const handleError = (errorMessage) => {
25337
+ setError(String(errorMessage ?? ''));
25338
+ };
25339
+ const handleChange = (key) => (e) => {
25340
+ const next = e.target.value;
25341
+ setDraft((prev) => ({ ...prev, [key]: next }));
25342
+ };
25343
+ const handleSaveMainAddress = async () => {
25344
+ if (isSavingMain)
25345
+ return;
25346
+ if (!baseUrl || !spaceId)
25347
+ return;
25348
+ if (!entityId)
25349
+ return;
25350
+ setIsSavingMain(true);
25351
+ try {
25352
+ const updated = await updateEntity({
25353
+ baseUrl,
25354
+ spaceId,
25355
+ entityType,
25356
+ entityId,
25357
+ body: {
25358
+ address1: {
25359
+ street: String(draft.street ?? ''),
25360
+ city: String(draft.city ?? ''),
25361
+ state: String(draft.state ?? ''),
25362
+ zipcode: String(draft.zipcode ?? ''),
25363
+ country: String(draft.country ?? ''),
25364
+ },
25365
+ },
25366
+ });
25367
+ onEntityUpdated?.(updated);
25368
+ onBack();
25369
+ }
25370
+ finally {
25371
+ setIsSavingMain(false);
25372
+ }
25373
+ };
25374
+ const handleSaveSecondaryAddress = async () => {
25375
+ if (isSavingSecondary)
25376
+ return;
25377
+ if (!baseUrl || !spaceId)
25378
+ return;
25379
+ if (!entityId)
25380
+ return;
25381
+ setIsSavingSecondary(true);
25382
+ try {
25383
+ const updated = await updateEntity({
25384
+ baseUrl,
25385
+ spaceId,
25386
+ entityType,
25387
+ entityId,
25388
+ body: {
25389
+ address2: {
25390
+ street: String(draft.street ?? ''),
25391
+ city: String(draft.city ?? ''),
25392
+ state: String(draft.state ?? ''),
25393
+ zipcode: String(draft.zipcode ?? ''),
25394
+ country: String(draft.country ?? ''),
25395
+ },
25396
+ },
25397
+ });
25398
+ onEntityUpdated?.(updated);
25399
+ onBack();
25400
+ }
25401
+ finally {
25402
+ setIsSavingSecondary(false);
25403
+ }
25404
+ };
25405
+ const isDisabled = !canSubmit || isSavingMain || isSavingSecondary;
25406
+ return (jsxRuntimeExports.jsxs(material.Box, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(material.IconButton, { size: "small", onClick: onBack, "aria-label": t('global.back'), children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: t('searchLocationModal.searchAddress') }), jsxRuntimeExports.jsx(material.Box, { 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(material.Stack, { spacing: 2, children: [jsxRuntimeExports.jsxs(material.Box, { sx: { position: 'relative', zIndex: 1400 }, children: [jsxRuntimeExports.jsx(SearchLocationInput, { onPlaceSelected: handlePlaceSelected, onError: handleError, placeholder: t('searchLocationModal.enterLocation') }), error ? (jsxRuntimeExports.jsx(material.Typography, { variant: "caption", color: "error", sx: { mt: 0.5, display: 'block' }, children: error })) : null] }), jsxRuntimeExports.jsx(material.TextField, { label: t('conversations.contactDetails.street'), value: draft.street, onChange: handleChange('street'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsxs(material.Stack, { direction: { xs: 'column', sm: 'row' }, spacing: 2, children: [jsxRuntimeExports.jsx(material.TextField, { label: t('searchLocationModal.city'), value: draft.city, onChange: handleChange('city'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsx(material.TextField, { label: t('searchLocationModal.state'), value: draft.state, onChange: handleChange('state'), fullWidth: true, size: "small" })] }), jsxRuntimeExports.jsxs(material.Stack, { direction: { xs: 'column', sm: 'row' }, spacing: 2, children: [jsxRuntimeExports.jsx(material.TextField, { label: t('searchLocationModal.postalCode'), value: draft.zipcode, onChange: handleChange('zipcode'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsx(material.TextField, { label: t('searchLocationModal.country'), value: draft.country, onChange: handleChange('country'), fullWidth: true, size: "small" })] }), query ? (jsxRuntimeExports.jsx(material.Typography, { variant: "caption", sx: { opacity: 0.7 }, children: query })) : null] })] }));
25407
+ };
25408
+
25037
25409
  /**
25038
25410
  * Type guard to check if an object is an IBusiness
25039
25411
  * @param obj The object to check
@@ -26657,14 +27029,28 @@ const resolveUserLabel = ({ userId, users, currentUser, }) => {
26657
27029
  return fromUsers?.name?.trim() || fromUsers?.email || null;
26658
27030
  };
26659
27031
 
26660
- const Section = ({ title, children }) => {
27032
+ var AddLocationAlt = {};
27033
+
27034
+ var _interopRequireDefault$9 = interopRequireDefaultExports;
27035
+ Object.defineProperty(AddLocationAlt, "__esModule", {
27036
+ value: true
27037
+ });
27038
+ var default_1$9 = AddLocationAlt.default = void 0;
27039
+ var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
27040
+ var _jsxRuntime$9 = jsxRuntimeExports;
27041
+ default_1$9 = AddLocationAlt.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
27042
+ 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"
27043
+ }), 'AddLocationAlt');
27044
+
27045
+ const Section = ({ title, children, enableDirectionSearch = false, onDirectionSearchClick, }) => {
27046
+ const t = useTranslationContext();
26661
27047
  return (jsxRuntimeExports.jsxs(material.Box, { sx: {
26662
27048
  border: '1px solid',
26663
27049
  borderColor: 'divider',
26664
27050
  borderRadius: 2,
26665
27051
  p: 2,
26666
27052
  mb: 2,
26667
- }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: title }), jsxRuntimeExports.jsx(material.Divider, { sx: { my: 1.5 } }), children] }));
27053
+ }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: title }), enableDirectionSearch && (jsxRuntimeExports.jsx(material.Button, { 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(material.Divider, { sx: { my: 1.5 } }), children] }));
26668
27054
  };
26669
27055
 
26670
27056
  const SectionContent = ({ children, ...boxProps }) => {
@@ -32985,7 +33371,7 @@ const PickersDayFiller = styled$3('div', {
32985
33371
  opacity: 0,
32986
33372
  pointerEvents: 'none'
32987
33373
  }));
32988
- const noop$2 = () => {};
33374
+ const noop$3 = () => {};
32989
33375
  const PickersDayRaw = /*#__PURE__*/React__namespace.forwardRef(function PickersDay(inProps, forwardedRef) {
32990
33376
  const props = useThemeProps({
32991
33377
  props: inProps,
@@ -32998,11 +33384,11 @@ const PickersDayRaw = /*#__PURE__*/React__namespace.forwardRef(function PickersD
32998
33384
  isAnimating,
32999
33385
  onClick,
33000
33386
  onDaySelect,
33001
- onFocus = noop$2,
33002
- onBlur = noop$2,
33003
- onKeyDown = noop$2,
33004
- onMouseDown = noop$2,
33005
- onMouseEnter = noop$2,
33387
+ onFocus = noop$3,
33388
+ onBlur = noop$3,
33389
+ onKeyDown = noop$3,
33390
+ onMouseDown = noop$3,
33391
+ onMouseEnter = noop$3,
33006
33392
  children,
33007
33393
  day,
33008
33394
  selected,
@@ -43497,7 +43883,7 @@ const _excluded$y = ["enableAccessibleFieldDOMStructure"],
43497
43883
  _excluded6 = ["ownerState"],
43498
43884
  _excluded7 = ["ownerState"],
43499
43885
  _excluded8 = ["InputProps", "inputProps"];
43500
- const noop$1 = () => {};
43886
+ const noop$2 = () => {};
43501
43887
  const cleanFieldResponse = _ref => {
43502
43888
  let {
43503
43889
  enableAccessibleFieldDOMStructure
@@ -43514,7 +43900,7 @@ const cleanFieldResponse = _ref => {
43514
43900
  openPickerAriaLabel
43515
43901
  } = fieldResponse,
43516
43902
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded2$6);
43517
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43903
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43518
43904
  return {
43519
43905
  clearable,
43520
43906
  onClear,
@@ -43549,8 +43935,8 @@ const cleanFieldResponse = _ref => {
43549
43935
  openPickerAriaLabel
43550
43936
  } = fieldResponse,
43551
43937
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded3);
43552
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43553
- const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$1;
43938
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43939
+ const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$2;
43554
43940
  return {
43555
43941
  clearable,
43556
43942
  onClear,
@@ -52768,6 +53154,18 @@ default_1$8 = Cancel.default = (0, _createSvgIcon$8.default)( /*#__PURE__*/(0, _
52768
53154
  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"
52769
53155
  }), 'Cancel');
52770
53156
 
53157
+ const noop$1 = { view: 'main', setView: () => { } };
53158
+ const EditContactViewContext = React$1.createContext(null);
53159
+ const EditContactViewProvider = EditContactViewContext.Provider;
53160
+ const useEditContactView = () => {
53161
+ const ctx = React$1.useContext(EditContactViewContext);
53162
+ if (!ctx) {
53163
+ console.warn('[useEditContactView] using noop, context value is missing');
53164
+ return noop$1;
53165
+ }
53166
+ return ctx;
53167
+ };
53168
+
52771
53169
  const noop = () => { };
52772
53170
  const NavigateContext = React$1.createContext(noop);
52773
53171
  const NavigateProvider = ({ navigate, children }) => {
@@ -52838,6 +53236,7 @@ const StyledSaveCancelButton$1 = material.styled(material.IconButton)({
52838
53236
  const EntityInfoLabel = (props) => {
52839
53237
  const { title, value, isNotEditable, displayValue, baseUrl, spaceId, minWidth, onEntityUpdated } = props;
52840
53238
  const t = useTranslationContext();
53239
+ const { setView } = useEditContactView();
52841
53240
  const inputType = props.inputType ?? 'text';
52842
53241
  const [isEditing, setIsEditing] = React$1.useState(false);
52843
53242
  const [isSaving, setIsSaving] = React$1.useState(false);
@@ -52854,15 +53253,26 @@ const EntityInfoLabel = (props) => {
52854
53253
  return;
52855
53254
  const check = () => {
52856
53255
  const next = el.scrollWidth > el.clientWidth;
52857
- setIsTitleTruncated(next);
53256
+ setIsTitleTruncated((prev) => (prev === next ? prev : next));
52858
53257
  };
52859
53258
  check();
52860
53259
  if (typeof ResizeObserver !== 'undefined') {
53260
+ let rafId = 0;
52861
53261
  const ro = new ResizeObserver(() => {
52862
- check();
53262
+ if (typeof window === 'undefined') {
53263
+ check();
53264
+ return;
53265
+ }
53266
+ if (rafId)
53267
+ window.cancelAnimationFrame(rafId);
53268
+ rafId = window.requestAnimationFrame(() => {
53269
+ check();
53270
+ });
52863
53271
  });
52864
53272
  ro.observe(el);
52865
53273
  return () => {
53274
+ if (typeof window !== 'undefined' && rafId)
53275
+ window.cancelAnimationFrame(rafId);
52866
53276
  ro.disconnect();
52867
53277
  };
52868
53278
  }
@@ -52872,7 +53282,7 @@ const EntityInfoLabel = (props) => {
52872
53282
  return () => {
52873
53283
  window.removeEventListener('resize', check);
52874
53284
  };
52875
- }, [title, isEditing]);
53285
+ }, [title]);
52876
53286
  React$1.useEffect(() => {
52877
53287
  if (props.entityType === 'business') {
52878
53288
  setInputValue(value);
@@ -52883,7 +53293,7 @@ const EntityInfoLabel = (props) => {
52883
53293
  }, [value, props.entityType]);
52884
53294
  const handleEditClick = () => {
52885
53295
  if (props.entityType === 'contact' && inputType === 'selectBusiness') {
52886
- console.log('Not implemented yet');
53296
+ setView('businessSelect');
52887
53297
  return;
52888
53298
  }
52889
53299
  setIsEditing((prev) => !prev);
@@ -52982,7 +53392,7 @@ const EntityInfoLabel = (props) => {
52982
53392
  overflow: 'hidden',
52983
53393
  textOverflow: 'ellipsis',
52984
53394
  whiteSpace: 'nowrap',
52985
- }, children: title }) })) : (jsxRuntimeExports.jsx(material.Typography, { 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(material.CircularProgress, { 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(material.Box, { width: isEditing ? '100%' : '50%', position: "relative", children: isEditing && inputType === 'text' ? (jsxRuntimeExports.jsx(material.TextField, { value: textValue, onChange: handleInputChange, variant: "standard", size: "small", sx: { width: '100%' } })) : isEditing && (inputType === 'select' || inputType === 'selectMembers') ? (jsxRuntimeExports.jsxs(material.Select, { value: selectValue, onChange: handleSelectChange, variant: "standard", size: "small", sx: { width: '100%' }, children: [props.entityType === 'contact' ? (jsxRuntimeExports.jsx(material.MenuItem, { value: "", children: t('conversations.contactDetails.contactInfo.emptySelection') })) : null, options.map((option, index) => (jsxRuntimeExports.jsx(material.MenuItem, { value: option.id, children: props.entityType === 'contact'
53395
+ }, children: title }) })) : (jsxRuntimeExports.jsx(material.Typography, { 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(material.CircularProgress, { 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(material.Box, { width: isEditing ? '100%' : '50%', position: "relative", children: isEditing && inputType === 'text' ? (jsxRuntimeExports.jsx(material.TextField, { value: textValue, onChange: handleInputChange, variant: "standard", size: "small", sx: { width: '100%' } })) : isEditing && (inputType === 'select' || inputType === 'selectMembers') ? (jsxRuntimeExports.jsxs(material.Select, { value: selectValue, onChange: handleSelectChange, variant: "standard", size: "small", sx: { width: '100%' }, children: [props.entityType === 'contact' ? (jsxRuntimeExports.jsx(material.MenuItem, { value: "", children: t('conversations.contactDetails.contactInfo.emptySelection') })) : null, options.map((option, index) => (jsxRuntimeExports.jsx(material.MenuItem, { value: option.id, children: props.entityType === 'contact'
52986
53396
  ? option.name?.trim() || (isUserInfo(option) ? option.email : '') || 'Sin nombre'
52987
53397
  : 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 &&
52988
53398
  props.entityType === 'contact' &&
@@ -55039,7 +55449,7 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
55039
55449
  else
55040
55450
  return (jsxRuntimeExports.jsx(CustomPropertyInput, { type: type, nameKey: nameKey, value: value, onChange: handleInputChange }));
55041
55451
  };
55042
- return (jsxRuntimeExports.jsxs(ContactBox, { className: `fadein ${property.type === Contacts.ContactField_type.LONGTEXT ? 'contacts-col-12' : 'contacts-col-5'}`, children: [jsxRuntimeExports.jsxs(material.Box, { display: "flex", position: "relative", minHeight: "25px", alignItems: "center", children: [isTitleTruncated ? (jsxRuntimeExports.jsx(material.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(material.CircularProgress, { 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(material.Box, { width: isEditing || property.type === Contacts.ContactField_type.LONGTEXT ? '100%' : '50%', position: "relative", children: isEditing ? (EditField()) : (jsxRuntimeExports.jsx(FieldValue, { children: hasValue(property?.value)
55452
+ return (jsxRuntimeExports.jsxs(ContactBox, { className: `fadein ${property.type === Contacts.ContactField_type.LONGTEXT ? 'contacts-col-12' : 'contacts-col-5'}`, children: [jsxRuntimeExports.jsxs(material.Box, { display: "flex", position: "relative", minHeight: "25px", alignItems: "center", children: [isTitleTruncated ? (jsxRuntimeExports.jsx(material.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(material.CircularProgress, { 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(material.Box, { width: isEditing || property.type === Contacts.ContactField_type.LONGTEXT ? '100%' : '50%', position: "relative", children: isEditing ? (EditField()) : (jsxRuntimeExports.jsx(FieldValue, { children: hasValue(property?.value)
55043
55453
  ? property.type === Contacts.ContactField_type.DATERANGE
55044
55454
  ? (() => {
55045
55455
  if (typeof property.value === 'string') {
@@ -56716,7 +57126,7 @@ const StyledIconButton = material.styled(material.IconButton)({
56716
57126
  marginLeft: '15px',
56717
57127
  });
56718
57128
  const ContactMethod = ({ title, methodItems, isPhone, handleEdit, owner }) => {
56719
- 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) => {
57129
+ 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) => {
56720
57130
  if (isPhone) {
56721
57131
  return jsxRuntimeExports.jsx(ContactMethodPhoneItem, { item: item }, index);
56722
57132
  }
@@ -56895,7 +57305,7 @@ const OptionsMenu = ({ onDelete, addressData, handleLinkAccountSave, checked, on
56895
57305
  };
56896
57306
  return (jsxRuntimeExports.jsxs(material.Box, { children: [jsxRuntimeExports.jsx(material.IconButton, { "aria-controls": open ? 'basic-menu' : undefined, "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, onClick: handleClick, children: jsxRuntimeExports.jsx(default_1$5, {}) }), jsxRuntimeExports.jsxs(material.Menu, { id: "basic-menu", anchorEl: anchorEl, open: open, onClose: handleClose, MenuListProps: {
56897
57307
  'aria-labelledby': 'basic-button',
56898
- }, children: [jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleDelete, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: jsxRuntimeExports.jsx(default_1$d, { color: "error" }) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('global.delete') })] }), channelType === 5 && (jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleCheckWA, disabled: !checked, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: verifying ? (jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 })) : (jsxRuntimeExports.jsx(default_1$4, { sx: { color: 'green' } })) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('optionsMenu.verifyWspAccount') })] })), channelType === 21 && (jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleCheckRCS, disabled: !checked, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: verifying ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$3, {}) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('optionsMenu.verifyRCSAccount') })] }))] }), jsxRuntimeExports.jsx(material.Modal, { open: modalOpen, onClose: handleModalClose, "aria-labelledby": "modal-modal-title", "aria-describedby": "modal-modal-description", children: jsxRuntimeExports.jsx(material.Box, { sx: {
57308
+ }, children: [jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleDelete, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: jsxRuntimeExports.jsx(default_1$e, { color: "error" }) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('global.delete') })] }), channelType === 5 && (jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleCheckWA, disabled: !checked, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: verifying ? (jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 })) : (jsxRuntimeExports.jsx(default_1$4, { sx: { color: 'green' } })) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('optionsMenu.verifyWspAccount') })] })), channelType === 21 && (jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleCheckRCS, disabled: !checked, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: verifying ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$3, {}) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('optionsMenu.verifyRCSAccount') })] }))] }), jsxRuntimeExports.jsx(material.Modal, { open: modalOpen, onClose: handleModalClose, "aria-labelledby": "modal-modal-title", "aria-describedby": "modal-modal-description", children: jsxRuntimeExports.jsx(material.Box, { sx: {
56899
57309
  position: 'absolute',
56900
57310
  top: '50%',
56901
57311
  left: '50%',
@@ -56975,7 +57385,7 @@ const NoteDeleteButton = (props) => {
56975
57385
  ...noteDeleteButtonStyle.container,
56976
57386
  }, children: [addressIsSaved && (jsxRuntimeExports.jsx(material.TextField, { size: "small", label: t('global.note'), variant: "outlined", onChange: (e) => props.handleNoteFieldChange(e, id, channelType), value: note, fullWidth: true, InputLabelProps: {
56977
57387
  shrink: true,
56978
- }, className: "contacts-smallInput", sx: noteDeleteButtonStyle.noteTextField })), jsxRuntimeExports.jsx(material.IconButton, { onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(material.CircularProgress, { 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) => {
57388
+ }, className: "contacts-smallInput", sx: noteDeleteButtonStyle.noteTextField })), jsxRuntimeExports.jsx(material.IconButton, { onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(material.CircularProgress, { 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) => {
56979
57389
  if (!api)
56980
57390
  return null;
56981
57391
  try {
@@ -57497,7 +57907,7 @@ const ContactInformation = ({ ownerData }) => {
57497
57907
  .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 })] }));
57498
57908
  };
57499
57909
 
57500
- const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, }) => {
57910
+ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, onDirectionSearchClick, }) => {
57501
57911
  const commonProps = {
57502
57912
  baseUrl,
57503
57913
  spaceId,
@@ -57516,7 +57926,7 @@ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntity
57516
57926
  }), minWidth: "100%" }), jsxRuntimeExports.jsx(EntityInfoLabel, { entityType: entityType, title: t('conversations.contactDetails.country'), value: entityData[addressNumber]?.country ?? '', ...commonProps, constructUpdateObject: (value) => ({
57517
57927
  [addressNumber]: { country: value },
57518
57928
  }), minWidth: "100%" })] })] }));
57519
- 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') })] }) }));
57929
+ 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') })] }) }));
57520
57930
  };
57521
57931
 
57522
57932
  const useEntityUpdateSync = ({ entity, setEntity }) => {
@@ -57689,7 +58099,226 @@ const useModalCloseHandler = ({ onClose }) => {
57689
58099
  return handleClose;
57690
58100
  };
57691
58101
 
57692
- const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, language = 'en', navigate, }) => {
58102
+ const DEFAULT_PAGINATION = {
58103
+ format: 'IBusiness',
58104
+ total: 0,
58105
+ lastPage: 1,
58106
+ perPage: 10,
58107
+ order: 'ASC',
58108
+ orderColumn: 'Id',
58109
+ };
58110
+ const BusinessSelectEditor = ({ baseUrl, spaceId, contactId, initialBusiness, onBack, onEntityUpdated, currentUser, }) => {
58111
+ const t = useTranslationContext();
58112
+ const api = useEditContactApi();
58113
+ const timerRef = React$1.useRef(null);
58114
+ const abortRef = React$1.useRef(null);
58115
+ const [inputValue, setInputValue] = React$1.useState(() => initialBusiness?.businessName ?? '');
58116
+ const [hasSearched, setHasSearched] = React$1.useState(false);
58117
+ const [isLoading, setIsLoading] = React$1.useState(false);
58118
+ const [isLoadingTimer, setIsLoadingTimer] = React$1.useState(false);
58119
+ const [options, setOptions] = React$1.useState([]);
58120
+ const [selected, setSelected] = React$1.useState(initialBusiness ?? null);
58121
+ const [currentPage, setCurrentPage] = React$1.useState(1);
58122
+ const [isNextPage, setIsNextPage] = React$1.useState(false);
58123
+ const [allLoaded, setAllLoaded] = React$1.useState(false);
58124
+ const ownerValue = React$1.useMemo(() => {
58125
+ const displayName = currentUser?.display_name;
58126
+ const email = currentUser?.email;
58127
+ return String(displayName || email || '').trim();
58128
+ }, [currentUser]);
58129
+ React$1.useEffect(() => {
58130
+ return () => {
58131
+ if (timerRef.current) {
58132
+ clearTimeout(timerRef.current);
58133
+ timerRef.current = null;
58134
+ }
58135
+ abortRef.current?.abort();
58136
+ };
58137
+ }, []);
58138
+ React$1.useEffect(() => {
58139
+ setSelected(initialBusiness ?? null);
58140
+ setInputValue(initialBusiness?.businessName ?? '');
58141
+ }, [initialBusiness]);
58142
+ const resetSearchState = () => {
58143
+ abortRef.current?.abort();
58144
+ abortRef.current = null;
58145
+ if (timerRef.current) {
58146
+ clearTimeout(timerRef.current);
58147
+ timerRef.current = null;
58148
+ }
58149
+ setHasSearched(false);
58150
+ setAllLoaded(false);
58151
+ setCurrentPage(1);
58152
+ setIsNextPage(false);
58153
+ setOptions([]);
58154
+ };
58155
+ const mapBusinesses = (businesses) => {
58156
+ return businesses
58157
+ .filter((b) => Boolean(b?.id))
58158
+ .map((b) => ({ businessId: String(b.id), businessName: String(b.name ?? '') }));
58159
+ };
58160
+ const fetchPage = async ({ query, page }) => {
58161
+ if (!api)
58162
+ return;
58163
+ abortRef.current?.abort();
58164
+ const controller = new AbortController();
58165
+ abortRef.current = controller;
58166
+ setIsLoading(true);
58167
+ try {
58168
+ const pagination = {
58169
+ ...DEFAULT_PAGINATION,
58170
+ currentPage: page,
58171
+ filter: [
58172
+ {
58173
+ value: query,
58174
+ column: 'name',
58175
+ condition: '',
58176
+ },
58177
+ ],
58178
+ };
58179
+ const response = await api.fetchBusinessTableData({ pagination, signal: controller.signal });
58180
+ if (controller.signal.aborted)
58181
+ return;
58182
+ const next = mapBusinesses((response?.contactos ?? []));
58183
+ setHasSearched(true);
58184
+ const total = response?.paginacion?.total ?? 0;
58185
+ setOptions((prev) => {
58186
+ const merged = page === 1
58187
+ ? next
58188
+ : (() => {
58189
+ const byId = new Map();
58190
+ for (const item of prev)
58191
+ byId.set(item.businessId, item);
58192
+ for (const item of next)
58193
+ byId.set(item.businessId, item);
58194
+ return Array.from(byId.values());
58195
+ })();
58196
+ if (total && merged.length >= total) {
58197
+ setAllLoaded(true);
58198
+ }
58199
+ return merged;
58200
+ });
58201
+ }
58202
+ finally {
58203
+ setIsLoading(false);
58204
+ setIsLoadingTimer(false);
58205
+ setIsNextPage(false);
58206
+ }
58207
+ };
58208
+ const handleQueryChanged = (value) => {
58209
+ resetSearchState();
58210
+ if (!value)
58211
+ return;
58212
+ if (timerRef.current) {
58213
+ clearTimeout(timerRef.current);
58214
+ timerRef.current = null;
58215
+ }
58216
+ setIsLoadingTimer(true);
58217
+ timerRef.current = setTimeout(() => {
58218
+ void fetchPage({ query: value, page: 1 });
58219
+ }, 800);
58220
+ };
58221
+ const handleScroll = (e) => {
58222
+ const element = e.target;
58223
+ const bottom = element.scrollHeight - element.scrollTop - element.clientHeight < 1;
58224
+ if (!bottom)
58225
+ return;
58226
+ if (allLoaded)
58227
+ return;
58228
+ if (isLoading)
58229
+ return;
58230
+ if (!inputValue)
58231
+ return;
58232
+ const nextPage = currentPage + 1;
58233
+ setIsNextPage(true);
58234
+ setCurrentPage(nextPage);
58235
+ void fetchPage({ query: inputValue, page: nextPage });
58236
+ };
58237
+ const handleCreateBusiness = async () => {
58238
+ if (!api)
58239
+ return;
58240
+ if (!ownerValue)
58241
+ return;
58242
+ const name = String(inputValue ?? '').trim();
58243
+ if (!name)
58244
+ return;
58245
+ setIsLoading(true);
58246
+ try {
58247
+ const business = {
58248
+ name,
58249
+ owner: ownerValue,
58250
+ imageUrl: '',
58251
+ members: [],
58252
+ tags: [],
58253
+ properties: [],
58254
+ address1: {
58255
+ street: '',
58256
+ city: '',
58257
+ state: '',
58258
+ zipcode: '',
58259
+ country: '',
58260
+ },
58261
+ address2: {
58262
+ street: '',
58263
+ city: '',
58264
+ state: '',
58265
+ zipcode: '',
58266
+ country: '',
58267
+ },
58268
+ };
58269
+ const created = await api.createBusiness({ business });
58270
+ const createdOption = {
58271
+ businessId: String(created.id ?? ''),
58272
+ businessName: String(created.name ?? name),
58273
+ };
58274
+ setOptions([createdOption]);
58275
+ setSelected(createdOption);
58276
+ setHasSearched(true);
58277
+ }
58278
+ finally {
58279
+ setIsLoading(false);
58280
+ }
58281
+ };
58282
+ const handleSave = async () => {
58283
+ if (!baseUrl || !spaceId)
58284
+ return;
58285
+ if (!contactId)
58286
+ return;
58287
+ const businessId = selected?.businessId ?? '';
58288
+ const updated = await updateEntity({
58289
+ baseUrl,
58290
+ spaceId,
58291
+ entityType: 'contact',
58292
+ entityId: contactId,
58293
+ body: {
58294
+ businessId,
58295
+ },
58296
+ });
58297
+ onEntityUpdated?.(updated);
58298
+ onBack();
58299
+ };
58300
+ const noOptionsNode = hasSearched && options.length === 0 && inputValue ? (jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { px: 1, py: 0.5 }, children: [jsxRuntimeExports.jsx(material.Typography, { 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(material.Typography, { variant: "body2", children: t('global.noOptions') }));
58301
+ const isSavingDisabled = !contactId || !baseUrl || !spaceId;
58302
+ return (jsxRuntimeExports.jsxs(material.Box, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(material.IconButton, { size: "small", onClick: onBack, "aria-label": t('global.back'), children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: t('conversations.contactDetails.business') }), jsxRuntimeExports.jsx(material.Box, { 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(material.Box, { sx: { position: 'relative' }, children: [isLoading || isLoadingTimer || isNextPage ? (jsxRuntimeExports.jsx(material.Box, { sx: { position: 'absolute', left: 0, right: 0, top: 0 }, children: jsxRuntimeExports.jsx(material.LinearProgress, { sx: { borderRadius: 1 } }) })) : null, jsxRuntimeExports.jsx(material.Autocomplete, { fullWidth: true, disablePortal: true, value: selected, onChange: (event, newValue) => {
58303
+ setSelected(newValue);
58304
+ }, inputValue: inputValue, onInputChange: (event, newValue, reason) => {
58305
+ setInputValue(newValue);
58306
+ if (reason !== 'input')
58307
+ return;
58308
+ handleQueryChanged(newValue);
58309
+ }, options: options, getOptionLabel: (option) => option?.businessName ?? '', isOptionEqualToValue: (opt, val) => opt.businessId === val.businessId, noOptionsText: noOptionsNode, renderInput: (params) => (jsxRuntimeExports.jsx(material.TextField, { ...params, size: "small", label: t('conversations.contactDetails.business'), placeholder: t('global.noValue'), InputProps: {
58310
+ ...params.InputProps,
58311
+ endAdornment: (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [isLoading || isLoadingTimer ? (jsxRuntimeExports.jsx(material.CircularProgress, { size: 18, sx: { mr: 1 } })) : null, params.InputProps.endAdornment] })),
58312
+ } })), ListboxProps: {
58313
+ sx: {
58314
+ maxHeight: 240,
58315
+ overflowY: 'auto',
58316
+ },
58317
+ onScroll: handleScroll,
58318
+ } })] })] }));
58319
+ };
58320
+
58321
+ const EditContactModalContent = ({ open, onClose, baseUrl, spaceId, contactId, sx, language = 'en', navigate, }) => {
57693
58322
  const { t: i18nT, i18n } = reactI18next.useTranslation();
57694
58323
  const modalContentRef = React$1.useRef(null);
57695
58324
  React$1.useEffect(() => {
@@ -57759,23 +58388,35 @@ const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, lang
57759
58388
  top: 5,
57760
58389
  color: (theme) => theme.palette.grey[500],
57761
58390
  zIndex: 1,
57762
- }, size: "small", children: jsxRuntimeExports.jsx(default_1$g, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(material.Box, { sx: {
58391
+ }, size: "small", children: jsxRuntimeExports.jsx(default_1$h, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(material.Box, { sx: {
57763
58392
  display: 'flex',
57764
58393
  justifyContent: 'center',
57765
58394
  alignItems: 'center',
57766
58395
  minHeight: 220,
57767
- }, children: jsxRuntimeExports.jsx(material.CircularProgress, {}) })) : state.error ? (jsxRuntimeExports.jsx(material.Box, { 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(material.Box, { sx: { position: 'relative', height: '100%' }, children: [jsxRuntimeExports.jsx(material.Fade, { in: view === 'main', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsxs(material.Box, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Header, { imgUrl: image.imageUrl, displayName: selectors.displayName, tags: selectors.tags, onEditTags: () => {
57768
- setView('tags');
57769
- }, 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(material.Box, { sx: { px: 1, pb: 2 }, children: [jsxRuntimeExports.jsx(General, { dateFormat: selectors.userTrii?.regCon_dateFormat || 'MM/dd/yyyy', entityType: selectors.contactType === 'contact' ||
57770
- selectors.contactType === 'business'
57771
- ? selectors.contactType
57772
- : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
57773
- selectors.contactType === 'business'
57774
- ? selectors.contactType
57775
- : 'contact', entityData: state.contactData, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsx(ContactInformation, { ownerData: state.contactData })] })] }) }), jsxRuntimeExports.jsx(material.Fade, { in: view === 'tags', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(material.Box, { 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] }) }) }) }) }) }));
57776
- };
57777
-
57778
- exports.i18n = i18n;
58396
+ }, children: jsxRuntimeExports.jsx(material.CircularProgress, {}) })) : state.error ? (jsxRuntimeExports.jsx(material.Box, { 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(material.Box, { sx: { position: 'relative', height: '100%' }, children: [jsxRuntimeExports.jsx(material.Fade, { in: view === 'main', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsxs(material.Box, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Header, { imgUrl: image.imageUrl, displayName: selectors.displayName, tags: selectors.tags, onEditTags: () => {
58397
+ setView('tags');
58398
+ }, 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
58399
+ ? state.contactData.firstName
58400
+ : undefined, lastName: selectors.isContact
58401
+ ? state.contactData.lastName
58402
+ : undefined, name: selectors.isBusiness ? state.contactData.name : undefined, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsxs(material.Box, { sx: { px: 1, pb: 2 }, children: [jsxRuntimeExports.jsx(General, { dateFormat: selectors.userTrii?.regCon_dateFormat || 'MM/dd/yyyy', entityType: selectors.contactType === 'contact' ||
58403
+ selectors.contactType === 'business'
58404
+ ? selectors.contactType
58405
+ : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
58406
+ selectors.contactType === 'business'
58407
+ ? selectors.contactType
58408
+ : 'contact', entityData: state.contactData, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, onDirectionSearchClick: () => setView('searchLocation') }), jsxRuntimeExports.jsx(ContactInformation, { ownerData: state.contactData })] })] }) }), jsxRuntimeExports.jsx(material.Fade, { in: view === 'searchLocation', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(material.Box, { 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(material.Fade, { in: view === 'tags', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(material.Box, { 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(material.Fade, { in: view === 'businessSelect', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(material.Box, { 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
58409
+ ? {
58410
+ businessId: String(state.contactData.businessId),
58411
+ businessName: String(state.contactData.businessName ?? ''),
58412
+ }
58413
+ : null, onBack: () => setView('main'), onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }) }) })] }) }) })) : null] }) }) }) }) }) }));
58414
+ };
58415
+ const EditContactModal = (props) => {
58416
+ return (jsxRuntimeExports.jsx(reactI18next.I18nextProvider, { i18n: i18nInstance, children: jsxRuntimeExports.jsx(EditContactModalContent, { ...props }) }));
58417
+ };
58418
+
57779
58419
  exports.ContactInfoPopup = ContactInfoPopup;
57780
58420
  exports.EditContactModal = EditContactModal;
58421
+ exports.i18n = i18nInstance;
57781
58422
  //# sourceMappingURL=index.js.map