@trii/components 2.0.50 → 2.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/dist/cjs/index.js +745 -111
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/BusinessSelect/BusinessSelect.d.ts +6 -0
  4. package/dist/cjs/types/BusinessSelect/components/BusinessSearchBar/BusinessSearchBar.d.ts +6 -0
  5. package/dist/cjs/types/BusinessSelect/components/BusinessSearchBar/index.d.ts +1 -0
  6. package/dist/cjs/types/BusinessSelect/components/BusinessSearchResults/BusinessSearchResults.d.ts +13 -0
  7. package/dist/cjs/types/BusinessSelect/components/BusinessSearchResults/index.d.ts +1 -0
  8. package/dist/cjs/types/BusinessSelect/components/index.d.ts +2 -0
  9. package/dist/cjs/types/BusinessSelect/index.d.ts +1 -0
  10. package/dist/cjs/types/BusinessSelect/types/index.d.ts +4 -0
  11. package/dist/cjs/types/BusinessSelectModal/BusinessSelectModal.d.ts +5 -0
  12. package/dist/cjs/types/BusinessSelectModal/index.d.ts +1 -0
  13. package/dist/cjs/types/SearchLocationModal/SearchLocationModal.d.ts +26 -0
  14. package/dist/cjs/types/SearchLocationModal/components/SearchLocationInput/index.d.ts +1 -0
  15. package/dist/cjs/types/SearchLocationModal/components/index.d.ts +1 -0
  16. package/dist/cjs/types/SearchLocationModal/googleMapsUtils.d.ts +20 -0
  17. package/dist/cjs/types/SearchLocationModal/index.d.ts +1 -0
  18. package/dist/cjs/types/components/EditContactModal/components/BusinessSelect/BusinessSelectEditor.d.ts +16 -0
  19. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  20. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  21. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  22. package/dist/cjs/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  23. package/dist/cjs/types/components/EditContactModal/context/EditContactApiContext.d.ts +20 -0
  24. package/dist/cjs/types/components/EditContactModal/context/EditContactViewContext.d.ts +8 -0
  25. package/dist/cjs/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +2 -2
  26. package/dist/cjs/types/components/EditContactModal/layout/Section.d.ts +3 -1
  27. package/dist/cjs/types/components/EditContactModal/services/api.d.ts +47 -0
  28. package/dist/cjs/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +15 -0
  29. package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
  30. package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
  31. package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
  32. package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
  33. package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
  34. package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
  35. package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
  36. package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
  37. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +8 -0
  38. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +7 -0
  39. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
  40. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
  41. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
  42. package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
  43. package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
  44. package/dist/cjs/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
  45. package/dist/cjs/types/src/components/ContactInfoPopup/index.d.ts +1 -0
  46. package/dist/cjs/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
  47. package/dist/cjs/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
  48. package/dist/cjs/types/src/components/EditContactModal/EditContactModal.d.ts +14 -0
  49. package/dist/cjs/types/src/components/EditContactModal/components/Header/Header.d.ts +23 -0
  50. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/AvatarWithActions/AvatarWithActions.d.ts +11 -0
  51. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
  52. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/Tags/Tags.d.ts +7 -0
  53. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/Tags/index.d.ts +1 -0
  54. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/index.d.ts +2 -0
  55. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  56. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  57. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  58. package/dist/cjs/types/src/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +11 -0
  59. package/dist/cjs/types/src/components/EditContactModal/components/Section/AddressInformation/index.d.ts +1 -0
  60. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/ContactInformation.d.ts +7 -0
  61. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +11 -0
  62. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/ContactMethodItem.d.ts +8 -0
  63. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/index.d.ts +1 -0
  64. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/ContactMethodPhoneItem.d.ts +6 -0
  65. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/index.d.ts +1 -0
  66. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/utils/phone.d.ts +5 -0
  67. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/index.d.ts +2 -0
  68. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/index.d.ts +1 -0
  69. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +8 -0
  70. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/Mails.d.ts +8 -0
  71. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/Body.d.ts +7 -0
  72. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/Mail.d.ts +7 -0
  73. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/index.d.ts +1 -0
  74. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/style.d.ts +19 -0
  75. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/index.d.ts +1 -0
  76. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/index.d.ts +1 -0
  77. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/index.d.ts +1 -0
  78. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/index.d.ts +1 -0
  79. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/Phones.d.ts +8 -0
  80. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/Body.d.ts +7 -0
  81. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/Phone.d.ts +7 -0
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/index.d.ts +3 -0
  92. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/index.d.ts +1 -0
  93. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/style.d.ts +15 -0
  94. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/index.d.ts +1 -0
  95. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/index.d.ts +1 -0
  96. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/index.d.ts +1 -0
  97. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/index.d.ts +1 -0
  98. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/RCSs.d.ts +8 -0
  99. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/Body.d.ts +7 -0
  100. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/RCS.d.ts +7 -0
  101. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/index.d.ts +1 -0
  102. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/style.d.ts +19 -0
  103. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/index.d.ts +1 -0
  104. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/index.d.ts +1 -0
  105. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/index.d.ts +1 -0
  106. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/index.d.ts +1 -0
  107. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/Whatsapps.d.ts +8 -0
  108. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/Body.d.ts +7 -0
  109. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/Whatsapp.d.ts +7 -0
  110. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/index.d.ts +1 -0
  111. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/style.d.ts +19 -0
  112. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/index.d.ts +1 -0
  113. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/index.d.ts +1 -0
  114. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/index.d.ts +1 -0
  115. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/index.d.ts +1 -0
  116. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/index.d.ts +4 -0
  117. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/index.d.ts +1 -0
  118. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +13 -0
  119. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/index.d.ts +1 -0
  120. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/style.d.ts +3 -0
  121. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.d.ts +11 -0
  122. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/Body.d.ts +10 -0
  123. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/Ims.d.ts +10 -0
  124. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/index.d.ts +1 -0
  125. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +7 -0
  126. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/index.d.ts +1 -0
  127. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/index.d.ts +1 -0
  128. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/index.d.ts +1 -0
  129. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.d.ts +1 -0
  130. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/types/IMS.d.ts +2 -0
  131. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +13 -0
  132. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/index.d.ts +1 -0
  133. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/style.d.ts +3 -0
  134. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/SubsectionHeader.d.ts +5 -0
  135. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/index.d.ts +1 -0
  136. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/SubsectionHeaderWithButton.d.ts +6 -0
  137. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/index.d.ts +1 -0
  138. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/style.d.ts +8 -0
  139. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +5 -0
  140. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +5 -0
  141. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/index.d.ts +1 -0
  142. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/style.d.ts +15 -0
  143. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/index.d.ts +1 -0
  144. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/index.d.ts +1 -0
  145. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/style.d.ts +6 -0
  146. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.d.ts +10 -0
  147. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +6 -0
  148. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/index.d.ts +1 -0
  149. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +12 -0
  150. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/InformationItemInputsContainer.d.ts +6 -0
  151. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/index.d.ts +1 -0
  152. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -0
  153. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/NoteDeleteButton.d.ts +18 -0
  154. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/index.d.ts +1 -0
  155. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +13 -0
  156. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/StatusAdornment.d.ts +7 -0
  157. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +5 -0
  158. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/index.d.ts +1 -0
  159. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/index.d.ts +1 -0
  160. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/index.d.ts +1 -0
  161. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/SubsectionBodyContainer.d.ts +7 -0
  162. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/index.d.ts +1 -0
  163. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +14 -0
  164. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/index.d.ts +5 -0
  165. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/CheckContactAddressData.d.ts +5 -0
  166. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/ContactAddress.d.ts +2 -0
  167. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/index.d.ts +2 -0
  168. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/hooks/useEditModal.d.ts +8 -0
  169. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/index.d.ts +1 -0
  170. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/General.d.ts +14 -0
  171. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +8 -0
  172. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +8 -0
  173. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/index.d.ts +1 -0
  174. package/dist/cjs/types/src/components/EditContactModal/components/Section/index.d.ts +3 -0
  175. package/dist/cjs/types/src/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +6 -0
  176. package/dist/cjs/types/src/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +14 -0
  177. package/dist/cjs/types/src/components/EditContactModal/context/EditContactApiContext.d.ts +171 -0
  178. package/dist/cjs/types/src/components/EditContactModal/context/EditEntityContext.d.ts +34 -0
  179. package/dist/cjs/types/src/components/EditContactModal/context/NavigateContext.d.ts +9 -0
  180. package/dist/cjs/types/src/components/EditContactModal/context/TranslationContext.d.ts +9 -0
  181. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditBusiness/types/UseEditBusiness.d.ts +55 -0
  182. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.d.ts +10 -0
  183. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +60 -0
  184. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContact/useEditContact.d.ts +10 -0
  185. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContactMethods.d.ts +52 -0
  186. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContactModalController.d.ts +44 -0
  187. package/dist/cjs/types/src/components/EditContactModal/hooks/useEntityUpdateSync.d.ts +8 -0
  188. package/dist/cjs/types/src/components/EditContactModal/hooks/useField.d.ts +18 -0
  189. package/dist/cjs/types/src/components/EditContactModal/hooks/useImage.d.ts +27 -0
  190. package/dist/cjs/types/src/components/EditContactModal/hooks/useModalCloseHandler.d.ts +6 -0
  191. package/dist/cjs/types/src/components/EditContactModal/hooks/useMultipleSelect.d.ts +20 -0
  192. package/dist/cjs/types/src/components/EditContactModal/hooks/useSelect.d.ts +13 -0
  193. package/dist/cjs/types/src/components/EditContactModal/hooks/useTagsEditorController.d.ts +26 -0
  194. package/dist/cjs/types/src/components/EditContactModal/hooks/utils/editContactHelper.d.ts +6 -0
  195. package/dist/cjs/types/src/components/EditContactModal/index.d.ts +1 -0
  196. package/dist/cjs/types/src/components/EditContactModal/layout/Section.d.ts +9 -0
  197. package/dist/cjs/types/src/components/EditContactModal/layout/SectionContent.d.ts +7 -0
  198. package/dist/cjs/types/src/components/EditContactModal/layout/index.d.ts +2 -0
  199. package/dist/cjs/types/src/components/EditContactModal/services/api.d.ts +141 -0
  200. package/dist/cjs/types/src/components/EditContactModal/services/http.d.ts +23 -0
  201. package/dist/cjs/types/src/components/EditContactModal/services/urls.d.ts +6 -0
  202. package/dist/cjs/types/src/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +16 -0
  203. package/dist/cjs/types/src/components/EditContactModal/shared/BusinessInfoLabel/index.d.ts +1 -0
  204. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +29 -0
  205. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/DateSelect.d.ts +8 -0
  206. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/index.d.ts +1 -0
  207. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +1 -0
  208. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/index.d.ts +1 -0
  209. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +18 -0
  210. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/CustomPropertyDatePicker.d.ts +8 -0
  211. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/index.d.ts +1 -0
  212. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/CustomPropertyDateRangePicker.d.ts +9 -0
  213. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/index.d.ts +1 -0
  214. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/CustomPropertyInput.d.ts +6 -0
  215. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/index.d.ts +1 -0
  216. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/types/CustomPropertyInputProps.d.ts +6 -0
  217. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/CustomPropertyOptionsSelect.d.ts +7 -0
  218. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/index.d.ts +1 -0
  219. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/CustomPropertyTimePicker.d.ts +8 -0
  220. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/index.d.ts +1 -0
  221. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/CustomPropertyTimeRangePicker.d.ts +9 -0
  222. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/index.d.ts +1 -0
  223. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts +6 -0
  224. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/index.d.ts +1 -0
  225. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +40 -0
  226. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/SelectBusinessLabel.d.ts +7 -0
  227. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/index.d.ts +1 -0
  228. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/index.d.ts +1 -0
  229. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/index.d.ts +1 -0
  230. package/dist/cjs/types/src/components/EditContactModal/shared/index.d.ts +3 -0
  231. package/dist/cjs/types/src/components/EditContactModal/types/is-business.typeguard.d.ts +7 -0
  232. package/dist/cjs/types/src/components/EditContactModal/types/is-contact.typeguard.d.ts +7 -0
  233. package/dist/cjs/types/src/components/EditContactModal/utils/contactHelper.d.ts +13 -0
  234. package/dist/cjs/types/src/components/index.d.ts +2 -0
  235. package/dist/cjs/types/src/i18n/config.d.ts +2 -0
  236. package/dist/cjs/types/src/i18n/index.d.ts +2 -0
  237. package/dist/cjs/types/src/index.d.ts +2 -0
  238. package/dist/esm/index.js +747 -113
  239. package/dist/esm/index.js.map +1 -1
  240. package/dist/esm/types/BusinessSelect/BusinessSelect.d.ts +6 -0
  241. package/dist/esm/types/BusinessSelect/components/BusinessSearchBar/BusinessSearchBar.d.ts +6 -0
  242. package/dist/esm/types/BusinessSelect/components/BusinessSearchBar/index.d.ts +1 -0
  243. package/dist/esm/types/BusinessSelect/components/BusinessSearchResults/BusinessSearchResults.d.ts +13 -0
  244. package/dist/esm/types/BusinessSelect/components/BusinessSearchResults/index.d.ts +1 -0
  245. package/dist/esm/types/BusinessSelect/components/index.d.ts +2 -0
  246. package/dist/esm/types/BusinessSelect/index.d.ts +1 -0
  247. package/dist/esm/types/BusinessSelect/types/index.d.ts +4 -0
  248. package/dist/esm/types/BusinessSelectModal/BusinessSelectModal.d.ts +5 -0
  249. package/dist/esm/types/BusinessSelectModal/index.d.ts +1 -0
  250. package/dist/esm/types/SearchLocationModal/SearchLocationModal.d.ts +26 -0
  251. package/dist/esm/types/SearchLocationModal/components/SearchLocationInput/index.d.ts +1 -0
  252. package/dist/esm/types/SearchLocationModal/components/index.d.ts +1 -0
  253. package/dist/esm/types/SearchLocationModal/googleMapsUtils.d.ts +20 -0
  254. package/dist/esm/types/SearchLocationModal/index.d.ts +1 -0
  255. package/dist/esm/types/components/EditContactModal/components/BusinessSelect/BusinessSelectEditor.d.ts +16 -0
  256. package/dist/esm/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  257. package/dist/esm/types/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  258. package/dist/esm/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  259. package/dist/esm/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  260. package/dist/esm/types/components/EditContactModal/context/EditContactApiContext.d.ts +20 -0
  261. package/dist/esm/types/components/EditContactModal/context/EditContactViewContext.d.ts +8 -0
  262. package/dist/esm/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +2 -2
  263. package/dist/esm/types/components/EditContactModal/layout/Section.d.ts +3 -1
  264. package/dist/esm/types/components/EditContactModal/services/api.d.ts +47 -0
  265. package/dist/esm/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +15 -0
  266. package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
  267. package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
  268. package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
  269. package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
  270. package/dist/esm/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
  271. package/dist/esm/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
  272. package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
  273. package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
  274. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +8 -0
  275. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +7 -0
  276. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
  277. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
  278. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
  279. package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
  280. package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
  281. package/dist/esm/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
  282. package/dist/esm/types/src/components/ContactInfoPopup/index.d.ts +1 -0
  283. package/dist/esm/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
  284. package/dist/esm/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
  285. package/dist/esm/types/src/components/EditContactModal/EditContactModal.d.ts +14 -0
  286. package/dist/esm/types/src/components/EditContactModal/components/Header/Header.d.ts +23 -0
  287. package/dist/esm/types/src/components/EditContactModal/components/Header/components/AvatarWithActions/AvatarWithActions.d.ts +11 -0
  288. package/dist/esm/types/src/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
  289. package/dist/esm/types/src/components/EditContactModal/components/Header/components/Tags/Tags.d.ts +7 -0
  290. package/dist/esm/types/src/components/EditContactModal/components/Header/components/Tags/index.d.ts +1 -0
  291. package/dist/esm/types/src/components/EditContactModal/components/Header/components/index.d.ts +2 -0
  292. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  293. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  294. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  295. package/dist/esm/types/src/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +11 -0
  296. package/dist/esm/types/src/components/EditContactModal/components/Section/AddressInformation/index.d.ts +1 -0
  297. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/ContactInformation.d.ts +7 -0
  298. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +11 -0
  299. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/ContactMethodItem.d.ts +8 -0
  300. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/index.d.ts +1 -0
  301. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/ContactMethodPhoneItem.d.ts +6 -0
  302. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/index.d.ts +1 -0
  303. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/utils/phone.d.ts +5 -0
  304. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/index.d.ts +2 -0
  305. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/index.d.ts +1 -0
  306. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +8 -0
  307. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/Mails.d.ts +8 -0
  308. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/Body.d.ts +7 -0
  309. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/Mail.d.ts +7 -0
  310. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/index.d.ts +1 -0
  311. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/style.d.ts +19 -0
  312. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/index.d.ts +1 -0
  313. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/index.d.ts +1 -0
  314. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/index.d.ts +1 -0
  315. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/index.d.ts +1 -0
  316. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/Phones.d.ts +8 -0
  317. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/Body.d.ts +7 -0
  318. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/Phone.d.ts +7 -0
  319. 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
  320. 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
  321. 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
  322. 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
  323. 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
  324. 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
  325. 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
  326. 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
  327. 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
  328. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/index.d.ts +3 -0
  329. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/index.d.ts +1 -0
  330. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/style.d.ts +15 -0
  331. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/index.d.ts +1 -0
  332. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/index.d.ts +1 -0
  333. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/index.d.ts +1 -0
  334. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/index.d.ts +1 -0
  335. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/RCSs.d.ts +8 -0
  336. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/Body.d.ts +7 -0
  337. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/RCS.d.ts +7 -0
  338. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/index.d.ts +1 -0
  339. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/style.d.ts +19 -0
  340. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/index.d.ts +1 -0
  341. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/index.d.ts +1 -0
  342. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/index.d.ts +1 -0
  343. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/index.d.ts +1 -0
  344. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/Whatsapps.d.ts +8 -0
  345. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/Body.d.ts +7 -0
  346. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/Whatsapp.d.ts +7 -0
  347. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/index.d.ts +1 -0
  348. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/style.d.ts +19 -0
  349. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/index.d.ts +1 -0
  350. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/index.d.ts +1 -0
  351. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/index.d.ts +1 -0
  352. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/index.d.ts +1 -0
  353. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/index.d.ts +4 -0
  354. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/index.d.ts +1 -0
  355. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +13 -0
  356. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/index.d.ts +1 -0
  357. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/style.d.ts +3 -0
  358. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.d.ts +11 -0
  359. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/Body.d.ts +10 -0
  360. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/Ims.d.ts +10 -0
  361. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/index.d.ts +1 -0
  362. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +7 -0
  363. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/index.d.ts +1 -0
  364. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/index.d.ts +1 -0
  365. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/index.d.ts +1 -0
  366. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.d.ts +1 -0
  367. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/types/IMS.d.ts +2 -0
  368. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +13 -0
  369. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/index.d.ts +1 -0
  370. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/style.d.ts +3 -0
  371. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/SubsectionHeader.d.ts +5 -0
  372. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/index.d.ts +1 -0
  373. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/SubsectionHeaderWithButton.d.ts +6 -0
  374. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/index.d.ts +1 -0
  375. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/style.d.ts +8 -0
  376. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +5 -0
  377. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +5 -0
  378. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/index.d.ts +1 -0
  379. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/style.d.ts +15 -0
  380. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/index.d.ts +1 -0
  381. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/index.d.ts +1 -0
  382. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/style.d.ts +6 -0
  383. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.d.ts +10 -0
  384. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +6 -0
  385. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/index.d.ts +1 -0
  386. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +12 -0
  387. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/InformationItemInputsContainer.d.ts +6 -0
  388. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/index.d.ts +1 -0
  389. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -0
  390. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/NoteDeleteButton.d.ts +18 -0
  391. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/index.d.ts +1 -0
  392. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +13 -0
  393. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/StatusAdornment.d.ts +7 -0
  394. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +5 -0
  395. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/index.d.ts +1 -0
  396. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/index.d.ts +1 -0
  397. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/index.d.ts +1 -0
  398. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/SubsectionBodyContainer.d.ts +7 -0
  399. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/index.d.ts +1 -0
  400. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +14 -0
  401. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/index.d.ts +5 -0
  402. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/CheckContactAddressData.d.ts +5 -0
  403. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/ContactAddress.d.ts +2 -0
  404. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/index.d.ts +2 -0
  405. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/hooks/useEditModal.d.ts +8 -0
  406. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/index.d.ts +1 -0
  407. package/dist/esm/types/src/components/EditContactModal/components/Section/General/General.d.ts +14 -0
  408. package/dist/esm/types/src/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +8 -0
  409. package/dist/esm/types/src/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +8 -0
  410. package/dist/esm/types/src/components/EditContactModal/components/Section/General/index.d.ts +1 -0
  411. package/dist/esm/types/src/components/EditContactModal/components/Section/index.d.ts +3 -0
  412. package/dist/esm/types/src/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +6 -0
  413. package/dist/esm/types/src/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +14 -0
  414. package/dist/esm/types/src/components/EditContactModal/context/EditContactApiContext.d.ts +171 -0
  415. package/dist/esm/types/src/components/EditContactModal/context/EditEntityContext.d.ts +34 -0
  416. package/dist/esm/types/src/components/EditContactModal/context/NavigateContext.d.ts +9 -0
  417. package/dist/esm/types/src/components/EditContactModal/context/TranslationContext.d.ts +9 -0
  418. package/dist/esm/types/src/components/EditContactModal/hooks/useEditBusiness/types/UseEditBusiness.d.ts +55 -0
  419. package/dist/esm/types/src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.d.ts +10 -0
  420. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +60 -0
  421. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContact/useEditContact.d.ts +10 -0
  422. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContactMethods.d.ts +52 -0
  423. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContactModalController.d.ts +44 -0
  424. package/dist/esm/types/src/components/EditContactModal/hooks/useEntityUpdateSync.d.ts +8 -0
  425. package/dist/esm/types/src/components/EditContactModal/hooks/useField.d.ts +18 -0
  426. package/dist/esm/types/src/components/EditContactModal/hooks/useImage.d.ts +27 -0
  427. package/dist/esm/types/src/components/EditContactModal/hooks/useModalCloseHandler.d.ts +6 -0
  428. package/dist/esm/types/src/components/EditContactModal/hooks/useMultipleSelect.d.ts +20 -0
  429. package/dist/esm/types/src/components/EditContactModal/hooks/useSelect.d.ts +13 -0
  430. package/dist/esm/types/src/components/EditContactModal/hooks/useTagsEditorController.d.ts +26 -0
  431. package/dist/esm/types/src/components/EditContactModal/hooks/utils/editContactHelper.d.ts +6 -0
  432. package/dist/esm/types/src/components/EditContactModal/index.d.ts +1 -0
  433. package/dist/esm/types/src/components/EditContactModal/layout/Section.d.ts +9 -0
  434. package/dist/esm/types/src/components/EditContactModal/layout/SectionContent.d.ts +7 -0
  435. package/dist/esm/types/src/components/EditContactModal/layout/index.d.ts +2 -0
  436. package/dist/esm/types/src/components/EditContactModal/services/api.d.ts +141 -0
  437. package/dist/esm/types/src/components/EditContactModal/services/http.d.ts +23 -0
  438. package/dist/esm/types/src/components/EditContactModal/services/urls.d.ts +6 -0
  439. package/dist/esm/types/src/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +16 -0
  440. package/dist/esm/types/src/components/EditContactModal/shared/BusinessInfoLabel/index.d.ts +1 -0
  441. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +29 -0
  442. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/DateSelect.d.ts +8 -0
  443. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/index.d.ts +1 -0
  444. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +1 -0
  445. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/index.d.ts +1 -0
  446. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +18 -0
  447. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/CustomPropertyDatePicker.d.ts +8 -0
  448. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/index.d.ts +1 -0
  449. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/CustomPropertyDateRangePicker.d.ts +9 -0
  450. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/index.d.ts +1 -0
  451. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/CustomPropertyInput.d.ts +6 -0
  452. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/index.d.ts +1 -0
  453. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/types/CustomPropertyInputProps.d.ts +6 -0
  454. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/CustomPropertyOptionsSelect.d.ts +7 -0
  455. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/index.d.ts +1 -0
  456. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/CustomPropertyTimePicker.d.ts +8 -0
  457. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/index.d.ts +1 -0
  458. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/CustomPropertyTimeRangePicker.d.ts +9 -0
  459. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/index.d.ts +1 -0
  460. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts +6 -0
  461. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/index.d.ts +1 -0
  462. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +40 -0
  463. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/SelectBusinessLabel.d.ts +7 -0
  464. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/index.d.ts +1 -0
  465. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/index.d.ts +1 -0
  466. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/index.d.ts +1 -0
  467. package/dist/esm/types/src/components/EditContactModal/shared/index.d.ts +3 -0
  468. package/dist/esm/types/src/components/EditContactModal/types/is-business.typeguard.d.ts +7 -0
  469. package/dist/esm/types/src/components/EditContactModal/types/is-contact.typeguard.d.ts +7 -0
  470. package/dist/esm/types/src/components/EditContactModal/utils/contactHelper.d.ts +13 -0
  471. package/dist/esm/types/src/components/index.d.ts +2 -0
  472. package/dist/esm/types/src/i18n/config.d.ts +2 -0
  473. package/dist/esm/types/src/i18n/index.d.ts +2 -0
  474. package/dist/esm/types/src/index.d.ts +2 -0
  475. 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
@@ -15537,45 +15569,45 @@ const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl,
15537
15569
 
15538
15570
  var Close = {};
15539
15571
 
15540
- var _interopRequireDefault$f = interopRequireDefaultExports;
15572
+ var _interopRequireDefault$g = interopRequireDefaultExports;
15541
15573
  Object.defineProperty(Close, "__esModule", {
15542
15574
  value: true
15543
15575
  });
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", {
15576
+ var default_1$h = Close.default = void 0;
15577
+ var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
15578
+ var _jsxRuntime$g = jsxRuntimeExports;
15579
+ default_1$h = Close.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
15548
15580
  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
15581
  }), 'Close');
15550
15582
 
15551
15583
  var Edit = {};
15552
15584
 
15553
- var _interopRequireDefault$e = interopRequireDefaultExports;
15585
+ var _interopRequireDefault$f = interopRequireDefaultExports;
15554
15586
  Object.defineProperty(Edit, "__esModule", {
15555
15587
  value: true
15556
15588
  });
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", {
15589
+ var default_1$g = Edit.default = void 0;
15590
+ var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15591
+ var _jsxRuntime$f = jsxRuntimeExports;
15592
+ default_1$g = Edit.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15561
15593
  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
15594
  }), 'Edit');
15563
15595
 
15564
15596
  var Label = {};
15565
15597
 
15566
- var _interopRequireDefault$d = interopRequireDefaultExports;
15598
+ var _interopRequireDefault$e = interopRequireDefaultExports;
15567
15599
  Object.defineProperty(Label, "__esModule", {
15568
15600
  value: true
15569
15601
  });
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", {
15602
+ var default_1$f = Label.default = void 0;
15603
+ var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15604
+ var _jsxRuntime$e = jsxRuntimeExports;
15605
+ default_1$f = Label.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15574
15606
  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
15607
  }), 'Label');
15576
15608
 
15577
- const noop$4 = (key) => key;
15578
- const TranslationContext = React$1.createContext(noop$4);
15609
+ const noop$5 = (key) => key;
15610
+ const TranslationContext = React$1.createContext(noop$5);
15579
15611
  const TranslationProvider = ({ t, children }) => {
15580
15612
  return jsxRuntimeExports.jsx(TranslationContext.Provider, { value: t, children: children });
15581
15613
  };
@@ -15583,7 +15615,7 @@ const useTranslationContext = () => {
15583
15615
  const t = React$1.useContext(TranslationContext);
15584
15616
  if (!t) {
15585
15617
  console.warn('[useTranslationContext] using noop, context value is falsy');
15586
- return noop$4;
15618
+ return noop$5;
15587
15619
  }
15588
15620
  return (...args) => {
15589
15621
  const [key, ...rest] = args;
@@ -15637,7 +15669,7 @@ const Tags = ({ tags, onEditTags }) => {
15637
15669
  bgcolor: 'action.hover',
15638
15670
  color: 'text.primary',
15639
15671
  },
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: {
15672
+ }, 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
15673
  borderRadius: 999,
15642
15674
  maxWidth: 160,
15643
15675
  '& .MuiChip-label': {
@@ -15739,31 +15771,31 @@ const ContactName = ({ displayName, contactType, firstName, lastName, name, enti
15739
15771
 
15740
15772
  var Delete = {};
15741
15773
 
15742
- var _interopRequireDefault$c = interopRequireDefaultExports;
15774
+ var _interopRequireDefault$d = interopRequireDefaultExports;
15743
15775
  Object.defineProperty(Delete, "__esModule", {
15744
15776
  value: true
15745
15777
  });
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", {
15778
+ var default_1$e = Delete.default = void 0;
15779
+ var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15780
+ var _jsxRuntime$d = jsxRuntimeExports;
15781
+ default_1$e = Delete.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15750
15782
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
15751
15783
  }), 'Delete');
15752
15784
 
15753
15785
  var PhotoCamera = {};
15754
15786
 
15755
- var _interopRequireDefault$b = interopRequireDefaultExports;
15787
+ var _interopRequireDefault$c = interopRequireDefaultExports;
15756
15788
  Object.defineProperty(PhotoCamera, "__esModule", {
15757
15789
  value: true
15758
15790
  });
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", {
15791
+ var default_1$d = PhotoCamera.default = void 0;
15792
+ var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15793
+ var _jsxRuntime$c = jsxRuntimeExports;
15794
+ default_1$d = PhotoCamera.default = (0, _createSvgIcon$c.default)([/*#__PURE__*/(0, _jsxRuntime$c.jsx)("circle", {
15763
15795
  cx: "12",
15764
15796
  cy: "12",
15765
15797
  r: "3.2"
15766
- }, "0"), /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15798
+ }, "0"), /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15767
15799
  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
15800
  }, "1")], 'PhotoCamera');
15769
15801
 
@@ -15797,11 +15829,11 @@ const AvatarWithActions = ({ src, alt, onError, onUpload, onDelete, isUploading,
15797
15829
  color: 'common.white',
15798
15830
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15799
15831
  '&: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: {
15832
+ }, 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
15833
  color: 'common.white',
15802
15834
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15803
15835
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15804
- }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) })] })] }));
15836
+ }, children: jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] })] }));
15805
15837
  };
15806
15838
 
15807
15839
  const HeaderContainer = material.styled(material.Box)({
@@ -15819,27 +15851,27 @@ const Header = ({ imgUrl, displayName, onError, tags, onEditTags, onUploadPhoto,
15819
15851
 
15820
15852
  var ArrowBack = {};
15821
15853
 
15822
- var _interopRequireDefault$a = interopRequireDefaultExports;
15854
+ var _interopRequireDefault$b = interopRequireDefaultExports;
15823
15855
  Object.defineProperty(ArrowBack, "__esModule", {
15824
15856
  value: true
15825
15857
  });
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", {
15858
+ var default_1$c = ArrowBack.default = void 0;
15859
+ var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15860
+ var _jsxRuntime$b = jsxRuntimeExports;
15861
+ default_1$c = ArrowBack.default = (0, _createSvgIcon$b.default)( /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15830
15862
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
15831
15863
  }), 'ArrowBack');
15832
15864
 
15833
15865
  var Save = {};
15834
15866
 
15835
- var _interopRequireDefault$9 = interopRequireDefaultExports;
15867
+ var _interopRequireDefault$a = interopRequireDefaultExports;
15836
15868
  Object.defineProperty(Save, "__esModule", {
15837
15869
  value: true
15838
15870
  });
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", {
15871
+ var default_1$b = Save.default = void 0;
15872
+ var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15873
+ var _jsxRuntime$a = jsxRuntimeExports;
15874
+ default_1$b = Save.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15843
15875
  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
15876
  }), 'Save');
15845
15877
 
@@ -15848,7 +15880,7 @@ var useThemeWithoutDefault = {};
15848
15880
  Object.defineProperty(useThemeWithoutDefault, "__esModule", {
15849
15881
  value: true
15850
15882
  });
15851
- var default_1$9 = useThemeWithoutDefault.default = void 0;
15883
+ var default_1$a = useThemeWithoutDefault.default = void 0;
15852
15884
  var React = _interopRequireWildcard$1(React$1);
15853
15885
  var _styledEngine = require$$1$1;
15854
15886
  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 +15892,7 @@ function useTheme$3(defaultTheme = null) {
15860
15892
  const contextTheme = React.useContext(_styledEngine.ThemeContext);
15861
15893
  return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme : contextTheme;
15862
15894
  }
15863
- default_1$9 = useThemeWithoutDefault.default = useTheme$3;
15895
+ default_1$a = useThemeWithoutDefault.default = useTheme$3;
15864
15896
 
15865
15897
  var top = 'top';
15866
15898
  var bottom = 'bottom';
@@ -18947,7 +18979,7 @@ const PopperRoot = styled$3(BasePopper, {
18947
18979
  */
18948
18980
  const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
18949
18981
  var _slots$root;
18950
- const theme = default_1$9();
18982
+ const theme = default_1$a();
18951
18983
  const props = useDefaultProps({
18952
18984
  props: inProps,
18953
18985
  name: 'MuiPopper'
@@ -19934,7 +19966,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
19934
19966
  onExited: PropTypes.func
19935
19967
  } : {}; // Name the function so it is clearer in the documentation
19936
19968
 
19937
- function noop$3() {}
19969
+ function noop$4() {}
19938
19970
 
19939
19971
  Transition.defaultProps = {
19940
19972
  in: false,
@@ -19943,12 +19975,12 @@ Transition.defaultProps = {
19943
19975
  appear: false,
19944
19976
  enter: true,
19945
19977
  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
19978
+ onEnter: noop$4,
19979
+ onEntering: noop$4,
19980
+ onEntered: noop$4,
19981
+ onExit: noop$4,
19982
+ onExiting: noop$4,
19983
+ onExited: noop$4
19952
19984
  };
19953
19985
  Transition.UNMOUNTED = UNMOUNTED;
19954
19986
  Transition.EXITED = EXITED;
@@ -24854,8 +24886,35 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24854
24886
  const t = useTranslationContext();
24855
24887
  const [searchValue, setSearchValue] = React$1.useState('');
24856
24888
  const [limit, setLimit] = React$1.useState(PAGE_SIZE);
24889
+ const deferredSearchValue = React$1.useDeferredValue(searchValue);
24857
24890
  const safeOptions = React$1.useMemo(() => options ?? [], [options]);
24858
- const visibleOptions = React$1.useMemo(() => safeOptions.slice(0, limit), [safeOptions, limit]);
24891
+ const filteredOptions = React$1.useMemo(() => {
24892
+ const q = String(deferredSearchValue ?? '')
24893
+ .trim()
24894
+ .toLowerCase();
24895
+ if (!q)
24896
+ return safeOptions;
24897
+ return safeOptions.filter((o) => String(o?.name ?? '')
24898
+ .toLowerCase()
24899
+ .includes(q));
24900
+ }, [safeOptions, deferredSearchValue]);
24901
+ const visibleOptions = React$1.useMemo(() => filteredOptions.slice(0, limit), [filteredOptions, limit]);
24902
+ const optionsWithSelectedValues = React$1.useMemo(() => {
24903
+ const byId = new Map();
24904
+ for (const selected of value ?? []) {
24905
+ if (!selected?.id)
24906
+ continue;
24907
+ byId.set(String(selected.id), selected);
24908
+ }
24909
+ for (const opt of visibleOptions ?? []) {
24910
+ if (!opt?.id)
24911
+ continue;
24912
+ if (byId.has(String(opt.id)))
24913
+ continue;
24914
+ byId.set(String(opt.id), opt);
24915
+ }
24916
+ return Array.from(byId.values());
24917
+ }, [value, visibleOptions]);
24859
24918
  const handleSearchChange = (_, newInputValue) => {
24860
24919
  setSearchValue(newInputValue ?? '');
24861
24920
  setLimit(PAGE_SIZE);
@@ -24875,7 +24934,14 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24875
24934
  alignItems: 'center',
24876
24935
  }, 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
24936
  };
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: {
24937
+ 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) => {
24938
+ const { key, ...rest } = props;
24939
+ return (React$1.createElement("li", { ...rest, key: option?.id ? String(option.id) : String(key ?? option?.name ?? '') }, option.name ?? ''));
24940
+ }, renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => {
24941
+ const tagProps = getTagProps({ index });
24942
+ const { key, ...rest } = tagProps;
24943
+ return (jsxRuntimeExports.jsx(material.Chip, { label: option.name ?? '', ...rest }, option?.id ? String(option.id) : String(key ?? option?.name ?? index)));
24944
+ }), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(material.TextField, { ...params, size: "small" }), ListboxProps: {
24879
24945
  onScroll: onListboxScroll,
24880
24946
  sx: { maxHeight: 280, overflowY: 'auto' },
24881
24947
  }, noOptionsText: jsxRuntimeExports.jsx(CustomNoOptionsMessage, {}), sx: { width: '100%' } })] }));
@@ -24975,6 +25041,16 @@ async function updateEntity({ baseUrl, spaceId, entityType, entityId, body, sign
24975
25041
  const url = joinUrl(urls.CONTACTS, path);
24976
25042
  return requestJson({ url, method: 'PUT', body, signal });
24977
25043
  }
25044
+ async function fetchBusinessTableData({ baseUrl, spaceId, pagination, signal, }) {
25045
+ const urls = getApiUrls(baseUrl, spaceId);
25046
+ const url = joinUrl(urls.CONTACTS, '/Search');
25047
+ return requestJson({ url, method: 'POST', body: pagination, signal });
25048
+ }
25049
+ async function createBusiness({ baseUrl, spaceId, business, signal }) {
25050
+ const urls = getApiUrls(baseUrl, spaceId);
25051
+ const url = joinUrl(urls.CONTACTS, '/business');
25052
+ return requestJson({ url, method: 'POST', body: business, signal });
25053
+ }
24978
25054
  async function deleteAddress({ baseUrl, spaceId, data, signal }) {
24979
25055
  const urls = getApiUrls(baseUrl, spaceId);
24980
25056
  const url = joinUrl(urls.CONTACTS, '/contactAddresses');
@@ -25021,6 +25097,8 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25021
25097
  fetchLabels: ({ signal } = {}) => fetchLabels({ baseUrl, spaceId, signal }),
25022
25098
  createLabel: ({ name, signal }) => createLabel({ baseUrl, spaceId, name, signal }),
25023
25099
  fetchContact: ({ contactId, signal }) => fetchContact({ baseUrl, spaceId, contactId, signal }),
25100
+ fetchBusinessTableData: ({ pagination, signal }) => fetchBusinessTableData({ baseUrl, spaceId, pagination, signal }),
25101
+ createBusiness: ({ business, signal }) => createBusiness({ baseUrl, spaceId, business, signal }),
25024
25102
  fetchContactFields: ({ forType, signal }) => fetchContactFields({ baseUrl, spaceId, forType, signal }),
25025
25103
  updateEntity: ({ entityType, entityId, body, signal }) => updateEntity({ baseUrl, spaceId, entityType, entityId, body, signal }),
25026
25104
  deleteAddress: ({ data, signal }) => deleteAddress({ baseUrl, spaceId, data, signal }),
@@ -25034,6 +25112,296 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25034
25112
  uploadAvatar: ({ contactId, file, signal }) => uploadAvatar({ baseUrl, spaceId, contactId, file, signal }),
25035
25113
  });
25036
25114
 
25115
+ const isGoogleMapsLoaded = () => {
25116
+ return Boolean(window?.google?.maps?.places?.Autocomplete);
25117
+ };
25118
+ const waitForGoogleMaps = (maxWaitTime = 10000) => {
25119
+ return new Promise((resolve) => {
25120
+ if (isGoogleMapsLoaded()) {
25121
+ resolve(true);
25122
+ return;
25123
+ }
25124
+ const startTime = Date.now();
25125
+ const checkInterval = 100;
25126
+ const interval = window.setInterval(() => {
25127
+ if (isGoogleMapsLoaded()) {
25128
+ window.clearInterval(interval);
25129
+ resolve(true);
25130
+ return;
25131
+ }
25132
+ if (Date.now() - startTime > maxWaitTime) {
25133
+ window.clearInterval(interval);
25134
+ resolve(false);
25135
+ }
25136
+ }, checkInterval);
25137
+ });
25138
+ };
25139
+ const useGoogleMapsStatus = () => {
25140
+ const [isLoaded, setIsLoaded] = React$1.useState(false);
25141
+ const [isLoading, setIsLoading] = React$1.useState(true);
25142
+ const [error, setError] = React$1.useState(null);
25143
+ React$1.useEffect(() => {
25144
+ const checkStatus = async () => {
25145
+ try {
25146
+ const loaded = await waitForGoogleMaps(10000);
25147
+ setIsLoaded(loaded);
25148
+ if (!loaded) {
25149
+ setError('Google Maps API failed to load');
25150
+ }
25151
+ }
25152
+ catch {
25153
+ setError('Error loading Google Maps API');
25154
+ setIsLoaded(false);
25155
+ }
25156
+ finally {
25157
+ setIsLoading(false);
25158
+ }
25159
+ };
25160
+ checkStatus();
25161
+ }, []);
25162
+ return { isLoaded, isLoading, error };
25163
+ };
25164
+
25165
+ const SearchLocationInput = ({ onPlaceSelected, onError, placeholder }) => {
25166
+ const t = useTranslationContext();
25167
+ const inputRef = React$1.useRef(null);
25168
+ const autocompleteRef = React$1.useRef(null);
25169
+ const placeSelectedRef = React$1.useRef(onPlaceSelected);
25170
+ const errorRef = React$1.useRef(onError);
25171
+ const { isLoaded, isLoading, error: mapsError } = useGoogleMapsStatus();
25172
+ const currentPlaceholder = React$1.useMemo(() => {
25173
+ if (isLoading)
25174
+ return t('searchLocationModal.loadingGoogleMaps');
25175
+ if (mapsError)
25176
+ return t('searchLocationModal.googleMapsUnavailable');
25177
+ if (!isLoaded)
25178
+ return t('searchLocationModal.googleMapsNotLoaded');
25179
+ return placeholder ?? t('searchLocationModal.enterLocation');
25180
+ }, [isLoaded, isLoading, mapsError, placeholder, t]);
25181
+ React$1.useEffect(() => {
25182
+ placeSelectedRef.current = onPlaceSelected;
25183
+ }, [onPlaceSelected]);
25184
+ React$1.useEffect(() => {
25185
+ errorRef.current = onError;
25186
+ }, [onError]);
25187
+ React$1.useEffect(() => {
25188
+ if (!isLoaded)
25189
+ return;
25190
+ if (!inputRef.current)
25191
+ return;
25192
+ if (autocompleteRef.current)
25193
+ return;
25194
+ const googleAny = window?.google;
25195
+ if (!googleAny?.maps?.places?.Autocomplete) {
25196
+ errorRef.current?.(t('searchLocationModal.googleMapsUnavailable'));
25197
+ return;
25198
+ }
25199
+ inputRef.current.focus();
25200
+ let observer = null;
25201
+ const applyPacContainerStyles = () => {
25202
+ const pacContainers = document.querySelectorAll('.pac-container');
25203
+ pacContainers.forEach((container) => {
25204
+ const el = container;
25205
+ el.style.zIndex = '20000';
25206
+ el.style.position = 'fixed';
25207
+ });
25208
+ };
25209
+ observer = new MutationObserver((mutations) => {
25210
+ for (const mutation of mutations) {
25211
+ for (const node of Array.from(mutation.addedNodes)) {
25212
+ if (node.nodeType !== Node.ELEMENT_NODE)
25213
+ continue;
25214
+ const element = node;
25215
+ if (!element.classList?.contains('pac-container'))
25216
+ continue;
25217
+ element.style.zIndex = '20000';
25218
+ element.style.position = 'fixed';
25219
+ }
25220
+ }
25221
+ });
25222
+ observer.observe(document.body, {
25223
+ childList: true,
25224
+ subtree: true,
25225
+ });
25226
+ applyPacContainerStyles();
25227
+ window.setTimeout(applyPacContainerStyles, 100);
25228
+ autocompleteRef.current = new googleAny.maps.places.Autocomplete(inputRef.current, {
25229
+ types: ['geocode'],
25230
+ componentRestrictions: { country: 'ar' },
25231
+ });
25232
+ const listener = autocompleteRef.current.addListener?.('place_changed', () => {
25233
+ const place = autocompleteRef.current?.getPlace?.();
25234
+ if (!place?.geometry?.location) {
25235
+ errorRef.current?.(t('searchLocationModal.selectedPlaceNoLocation'));
25236
+ return;
25237
+ }
25238
+ let city = '';
25239
+ let state = '';
25240
+ let country = '';
25241
+ let postalCode = '';
25242
+ let streetName = '';
25243
+ let streetNumber = '';
25244
+ const components = place.address_components ?? [];
25245
+ for (const component of components) {
25246
+ const types = component?.types ?? [];
25247
+ if (types.includes('locality') || types.includes('administrative_area_level_2')) {
25248
+ city = component.long_name;
25249
+ continue;
25250
+ }
25251
+ if (types.includes('administrative_area_level_1')) {
25252
+ state = component.long_name;
25253
+ continue;
25254
+ }
25255
+ if (types.includes('country')) {
25256
+ country = component.long_name;
25257
+ continue;
25258
+ }
25259
+ if (types.includes('postal_code')) {
25260
+ postalCode = component.long_name;
25261
+ continue;
25262
+ }
25263
+ if (types.includes('route')) {
25264
+ streetName = component.long_name;
25265
+ continue;
25266
+ }
25267
+ if (types.includes('street_number')) {
25268
+ streetNumber = component.long_name;
25269
+ }
25270
+ }
25271
+ const lat = typeof place.geometry.location.lat === 'function' ? place.geometry.location.lat() : 0;
25272
+ const lng = typeof place.geometry.location.lng === 'function' ? place.geometry.location.lng() : 0;
25273
+ const result = {
25274
+ location: { lat, lng },
25275
+ address: place.formatted_address ?? '',
25276
+ city,
25277
+ state,
25278
+ country,
25279
+ postalCode,
25280
+ streetName,
25281
+ streetNumber,
25282
+ shortAddress: [streetName, streetNumber].filter(Boolean).join(' '),
25283
+ };
25284
+ placeSelectedRef.current(result);
25285
+ });
25286
+ return () => {
25287
+ if (observer)
25288
+ observer.disconnect();
25289
+ if (listener?.remove)
25290
+ listener.remove();
25291
+ autocompleteRef.current = null;
25292
+ };
25293
+ }, [isLoaded, t]);
25294
+ const isDisabled = isLoading || !isLoaded || Boolean(mapsError);
25295
+ return (jsxRuntimeExports.jsx(material.TextField, { fullWidth: true, size: "small", inputRef: inputRef, placeholder: currentPlaceholder, disabled: isDisabled, error: Boolean(mapsError) }));
25296
+ };
25297
+
25298
+ const EMPTY_DRAFT = {
25299
+ street: '',
25300
+ city: '',
25301
+ state: '',
25302
+ zipcode: '',
25303
+ country: '',
25304
+ };
25305
+ const SearchLocationEditor = ({ baseUrl, spaceId, entityType, entityId, onBack, onEntityUpdated, }) => {
25306
+ const t = useTranslationContext();
25307
+ const [draft, setDraft] = React$1.useState(EMPTY_DRAFT);
25308
+ const [query, setQuery] = React$1.useState('');
25309
+ const [error, setError] = React$1.useState('');
25310
+ const [isSavingMain, setIsSavingMain] = React$1.useState(false);
25311
+ const [isSavingSecondary, setIsSavingSecondary] = React$1.useState(false);
25312
+ const canSubmit = React$1.useMemo(() => {
25313
+ return Boolean(String(draft.street ?? '').trim() ||
25314
+ String(draft.city ?? '').trim() ||
25315
+ String(draft.state ?? '').trim() ||
25316
+ String(draft.zipcode ?? '').trim() ||
25317
+ String(draft.country ?? '').trim());
25318
+ }, [draft]);
25319
+ const handlePlaceSelected = (result) => {
25320
+ setQuery(result.address ?? '');
25321
+ const computedStreet = String(result.shortAddress ?? '').trim() ||
25322
+ [result.streetName, result.streetNumber].filter(Boolean).join(' ').trim();
25323
+ setDraft({
25324
+ street: computedStreet,
25325
+ city: result.city ?? '',
25326
+ state: result.state ?? '',
25327
+ zipcode: result.postalCode ?? '',
25328
+ country: result.country ?? '',
25329
+ });
25330
+ setError('');
25331
+ };
25332
+ const handleError = (errorMessage) => {
25333
+ setError(String(errorMessage ?? ''));
25334
+ };
25335
+ const handleChange = (key) => (e) => {
25336
+ const next = e.target.value;
25337
+ setDraft((prev) => ({ ...prev, [key]: next }));
25338
+ };
25339
+ const handleSaveMainAddress = async () => {
25340
+ if (isSavingMain)
25341
+ return;
25342
+ if (!baseUrl || !spaceId)
25343
+ return;
25344
+ if (!entityId)
25345
+ return;
25346
+ setIsSavingMain(true);
25347
+ try {
25348
+ const updated = await updateEntity({
25349
+ baseUrl,
25350
+ spaceId,
25351
+ entityType,
25352
+ entityId,
25353
+ body: {
25354
+ address1: {
25355
+ street: String(draft.street ?? ''),
25356
+ city: String(draft.city ?? ''),
25357
+ state: String(draft.state ?? ''),
25358
+ zipcode: String(draft.zipcode ?? ''),
25359
+ country: String(draft.country ?? ''),
25360
+ },
25361
+ },
25362
+ });
25363
+ onEntityUpdated?.(updated);
25364
+ onBack();
25365
+ }
25366
+ finally {
25367
+ setIsSavingMain(false);
25368
+ }
25369
+ };
25370
+ const handleSaveSecondaryAddress = async () => {
25371
+ if (isSavingSecondary)
25372
+ return;
25373
+ if (!baseUrl || !spaceId)
25374
+ return;
25375
+ if (!entityId)
25376
+ return;
25377
+ setIsSavingSecondary(true);
25378
+ try {
25379
+ const updated = await updateEntity({
25380
+ baseUrl,
25381
+ spaceId,
25382
+ entityType,
25383
+ entityId,
25384
+ body: {
25385
+ address2: {
25386
+ street: String(draft.street ?? ''),
25387
+ city: String(draft.city ?? ''),
25388
+ state: String(draft.state ?? ''),
25389
+ zipcode: String(draft.zipcode ?? ''),
25390
+ country: String(draft.country ?? ''),
25391
+ },
25392
+ },
25393
+ });
25394
+ onEntityUpdated?.(updated);
25395
+ onBack();
25396
+ }
25397
+ finally {
25398
+ setIsSavingSecondary(false);
25399
+ }
25400
+ };
25401
+ const isDisabled = !canSubmit || isSavingMain || isSavingSecondary;
25402
+ 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] })] }));
25403
+ };
25404
+
25037
25405
  /**
25038
25406
  * Type guard to check if an object is an IBusiness
25039
25407
  * @param obj The object to check
@@ -26657,14 +27025,28 @@ const resolveUserLabel = ({ userId, users, currentUser, }) => {
26657
27025
  return fromUsers?.name?.trim() || fromUsers?.email || null;
26658
27026
  };
26659
27027
 
26660
- const Section = ({ title, children }) => {
27028
+ var AddLocationAlt = {};
27029
+
27030
+ var _interopRequireDefault$9 = interopRequireDefaultExports;
27031
+ Object.defineProperty(AddLocationAlt, "__esModule", {
27032
+ value: true
27033
+ });
27034
+ var default_1$9 = AddLocationAlt.default = void 0;
27035
+ var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
27036
+ var _jsxRuntime$9 = jsxRuntimeExports;
27037
+ default_1$9 = AddLocationAlt.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
27038
+ 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"
27039
+ }), 'AddLocationAlt');
27040
+
27041
+ const Section = ({ title, children, enableDirectionSearch = false, onDirectionSearchClick, }) => {
27042
+ const t = useTranslationContext();
26661
27043
  return (jsxRuntimeExports.jsxs(material.Box, { sx: {
26662
27044
  border: '1px solid',
26663
27045
  borderColor: 'divider',
26664
27046
  borderRadius: 2,
26665
27047
  p: 2,
26666
27048
  mb: 2,
26667
- }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: title }), jsxRuntimeExports.jsx(material.Divider, { sx: { my: 1.5 } }), children] }));
27049
+ }, 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
27050
  };
26669
27051
 
26670
27052
  const SectionContent = ({ children, ...boxProps }) => {
@@ -32985,7 +33367,7 @@ const PickersDayFiller = styled$3('div', {
32985
33367
  opacity: 0,
32986
33368
  pointerEvents: 'none'
32987
33369
  }));
32988
- const noop$2 = () => {};
33370
+ const noop$3 = () => {};
32989
33371
  const PickersDayRaw = /*#__PURE__*/React__namespace.forwardRef(function PickersDay(inProps, forwardedRef) {
32990
33372
  const props = useThemeProps({
32991
33373
  props: inProps,
@@ -32998,11 +33380,11 @@ const PickersDayRaw = /*#__PURE__*/React__namespace.forwardRef(function PickersD
32998
33380
  isAnimating,
32999
33381
  onClick,
33000
33382
  onDaySelect,
33001
- onFocus = noop$2,
33002
- onBlur = noop$2,
33003
- onKeyDown = noop$2,
33004
- onMouseDown = noop$2,
33005
- onMouseEnter = noop$2,
33383
+ onFocus = noop$3,
33384
+ onBlur = noop$3,
33385
+ onKeyDown = noop$3,
33386
+ onMouseDown = noop$3,
33387
+ onMouseEnter = noop$3,
33006
33388
  children,
33007
33389
  day,
33008
33390
  selected,
@@ -43497,7 +43879,7 @@ const _excluded$y = ["enableAccessibleFieldDOMStructure"],
43497
43879
  _excluded6 = ["ownerState"],
43498
43880
  _excluded7 = ["ownerState"],
43499
43881
  _excluded8 = ["InputProps", "inputProps"];
43500
- const noop$1 = () => {};
43882
+ const noop$2 = () => {};
43501
43883
  const cleanFieldResponse = _ref => {
43502
43884
  let {
43503
43885
  enableAccessibleFieldDOMStructure
@@ -43514,7 +43896,7 @@ const cleanFieldResponse = _ref => {
43514
43896
  openPickerAriaLabel
43515
43897
  } = fieldResponse,
43516
43898
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded2$6);
43517
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43899
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43518
43900
  return {
43519
43901
  clearable,
43520
43902
  onClear,
@@ -43549,8 +43931,8 @@ const cleanFieldResponse = _ref => {
43549
43931
  openPickerAriaLabel
43550
43932
  } = fieldResponse,
43551
43933
  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;
43934
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43935
+ const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$2;
43554
43936
  return {
43555
43937
  clearable,
43556
43938
  onClear,
@@ -52768,6 +53150,18 @@ default_1$8 = Cancel.default = (0, _createSvgIcon$8.default)( /*#__PURE__*/(0, _
52768
53150
  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
53151
  }), 'Cancel');
52770
53152
 
53153
+ const noop$1 = { view: 'main', setView: () => { } };
53154
+ const EditContactViewContext = React$1.createContext(null);
53155
+ const EditContactViewProvider = EditContactViewContext.Provider;
53156
+ const useEditContactView = () => {
53157
+ const ctx = React$1.useContext(EditContactViewContext);
53158
+ if (!ctx) {
53159
+ console.warn('[useEditContactView] using noop, context value is missing');
53160
+ return noop$1;
53161
+ }
53162
+ return ctx;
53163
+ };
53164
+
52771
53165
  const noop = () => { };
52772
53166
  const NavigateContext = React$1.createContext(noop);
52773
53167
  const NavigateProvider = ({ navigate, children }) => {
@@ -52838,6 +53232,7 @@ const StyledSaveCancelButton$1 = material.styled(material.IconButton)({
52838
53232
  const EntityInfoLabel = (props) => {
52839
53233
  const { title, value, isNotEditable, displayValue, baseUrl, spaceId, minWidth, onEntityUpdated } = props;
52840
53234
  const t = useTranslationContext();
53235
+ const { setView } = useEditContactView();
52841
53236
  const inputType = props.inputType ?? 'text';
52842
53237
  const [isEditing, setIsEditing] = React$1.useState(false);
52843
53238
  const [isSaving, setIsSaving] = React$1.useState(false);
@@ -52854,15 +53249,26 @@ const EntityInfoLabel = (props) => {
52854
53249
  return;
52855
53250
  const check = () => {
52856
53251
  const next = el.scrollWidth > el.clientWidth;
52857
- setIsTitleTruncated(next);
53252
+ setIsTitleTruncated((prev) => (prev === next ? prev : next));
52858
53253
  };
52859
53254
  check();
52860
53255
  if (typeof ResizeObserver !== 'undefined') {
53256
+ let rafId = 0;
52861
53257
  const ro = new ResizeObserver(() => {
52862
- check();
53258
+ if (typeof window === 'undefined') {
53259
+ check();
53260
+ return;
53261
+ }
53262
+ if (rafId)
53263
+ window.cancelAnimationFrame(rafId);
53264
+ rafId = window.requestAnimationFrame(() => {
53265
+ check();
53266
+ });
52863
53267
  });
52864
53268
  ro.observe(el);
52865
53269
  return () => {
53270
+ if (typeof window !== 'undefined' && rafId)
53271
+ window.cancelAnimationFrame(rafId);
52866
53272
  ro.disconnect();
52867
53273
  };
52868
53274
  }
@@ -52872,7 +53278,7 @@ const EntityInfoLabel = (props) => {
52872
53278
  return () => {
52873
53279
  window.removeEventListener('resize', check);
52874
53280
  };
52875
- }, [title, isEditing]);
53281
+ }, [title]);
52876
53282
  React$1.useEffect(() => {
52877
53283
  if (props.entityType === 'business') {
52878
53284
  setInputValue(value);
@@ -52883,7 +53289,7 @@ const EntityInfoLabel = (props) => {
52883
53289
  }, [value, props.entityType]);
52884
53290
  const handleEditClick = () => {
52885
53291
  if (props.entityType === 'contact' && inputType === 'selectBusiness') {
52886
- console.log('Not implemented yet');
53292
+ setView('businessSelect');
52887
53293
  return;
52888
53294
  }
52889
53295
  setIsEditing((prev) => !prev);
@@ -52982,7 +53388,7 @@ const EntityInfoLabel = (props) => {
52982
53388
  overflow: 'hidden',
52983
53389
  textOverflow: 'ellipsis',
52984
53390
  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'
53391
+ }, 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
53392
  ? option.name?.trim() || (isUserInfo(option) ? option.email : '') || 'Sin nombre'
52987
53393
  : 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
53394
  props.entityType === 'contact' &&
@@ -55039,7 +55445,7 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
55039
55445
  else
55040
55446
  return (jsxRuntimeExports.jsx(CustomPropertyInput, { type: type, nameKey: nameKey, value: value, onChange: handleInputChange }));
55041
55447
  };
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)
55448
+ 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
55449
  ? property.type === Contacts.ContactField_type.DATERANGE
55044
55450
  ? (() => {
55045
55451
  if (typeof property.value === 'string') {
@@ -56716,7 +57122,7 @@ const StyledIconButton = material.styled(material.IconButton)({
56716
57122
  marginLeft: '15px',
56717
57123
  });
56718
57124
  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) => {
57125
+ 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
57126
  if (isPhone) {
56721
57127
  return jsxRuntimeExports.jsx(ContactMethodPhoneItem, { item: item }, index);
56722
57128
  }
@@ -56895,7 +57301,7 @@ const OptionsMenu = ({ onDelete, addressData, handleLinkAccountSave, checked, on
56895
57301
  };
56896
57302
  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
57303
  '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: {
57304
+ }, 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
57305
  position: 'absolute',
56900
57306
  top: '50%',
56901
57307
  left: '50%',
@@ -56975,7 +57381,7 @@ const NoteDeleteButton = (props) => {
56975
57381
  ...noteDeleteButtonStyle.container,
56976
57382
  }, 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
57383
  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) => {
57384
+ }, 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
57385
  if (!api)
56980
57386
  return null;
56981
57387
  try {
@@ -57497,7 +57903,7 @@ const ContactInformation = ({ ownerData }) => {
57497
57903
  .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
57904
  };
57499
57905
 
57500
- const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, }) => {
57906
+ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, onDirectionSearchClick, }) => {
57501
57907
  const commonProps = {
57502
57908
  baseUrl,
57503
57909
  spaceId,
@@ -57516,7 +57922,7 @@ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntity
57516
57922
  }), minWidth: "100%" }), jsxRuntimeExports.jsx(EntityInfoLabel, { entityType: entityType, title: t('conversations.contactDetails.country'), value: entityData[addressNumber]?.country ?? '', ...commonProps, constructUpdateObject: (value) => ({
57517
57923
  [addressNumber]: { country: value },
57518
57924
  }), 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') })] }) }));
57925
+ 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
57926
  };
57521
57927
 
57522
57928
  const useEntityUpdateSync = ({ entity, setEntity }) => {
@@ -57689,6 +58095,225 @@ const useModalCloseHandler = ({ onClose }) => {
57689
58095
  return handleClose;
57690
58096
  };
57691
58097
 
58098
+ const DEFAULT_PAGINATION = {
58099
+ format: 'IBusiness',
58100
+ total: 0,
58101
+ lastPage: 1,
58102
+ perPage: 10,
58103
+ order: 'ASC',
58104
+ orderColumn: 'Id',
58105
+ };
58106
+ const BusinessSelectEditor = ({ baseUrl, spaceId, contactId, initialBusiness, onBack, onEntityUpdated, currentUser, }) => {
58107
+ const t = useTranslationContext();
58108
+ const api = useEditContactApi();
58109
+ const timerRef = React$1.useRef(null);
58110
+ const abortRef = React$1.useRef(null);
58111
+ const [inputValue, setInputValue] = React$1.useState(() => initialBusiness?.businessName ?? '');
58112
+ const [hasSearched, setHasSearched] = React$1.useState(false);
58113
+ const [isLoading, setIsLoading] = React$1.useState(false);
58114
+ const [isLoadingTimer, setIsLoadingTimer] = React$1.useState(false);
58115
+ const [options, setOptions] = React$1.useState([]);
58116
+ const [selected, setSelected] = React$1.useState(initialBusiness ?? null);
58117
+ const [currentPage, setCurrentPage] = React$1.useState(1);
58118
+ const [isNextPage, setIsNextPage] = React$1.useState(false);
58119
+ const [allLoaded, setAllLoaded] = React$1.useState(false);
58120
+ const ownerValue = React$1.useMemo(() => {
58121
+ const displayName = currentUser?.display_name;
58122
+ const email = currentUser?.email;
58123
+ return String(displayName || email || '').trim();
58124
+ }, [currentUser]);
58125
+ React$1.useEffect(() => {
58126
+ return () => {
58127
+ if (timerRef.current) {
58128
+ clearTimeout(timerRef.current);
58129
+ timerRef.current = null;
58130
+ }
58131
+ abortRef.current?.abort();
58132
+ };
58133
+ }, []);
58134
+ React$1.useEffect(() => {
58135
+ setSelected(initialBusiness ?? null);
58136
+ setInputValue(initialBusiness?.businessName ?? '');
58137
+ }, [initialBusiness]);
58138
+ const resetSearchState = () => {
58139
+ abortRef.current?.abort();
58140
+ abortRef.current = null;
58141
+ if (timerRef.current) {
58142
+ clearTimeout(timerRef.current);
58143
+ timerRef.current = null;
58144
+ }
58145
+ setHasSearched(false);
58146
+ setAllLoaded(false);
58147
+ setCurrentPage(1);
58148
+ setIsNextPage(false);
58149
+ setOptions([]);
58150
+ };
58151
+ const mapBusinesses = (businesses) => {
58152
+ return businesses
58153
+ .filter((b) => Boolean(b?.id))
58154
+ .map((b) => ({ businessId: String(b.id), businessName: String(b.name ?? '') }));
58155
+ };
58156
+ const fetchPage = async ({ query, page }) => {
58157
+ if (!api)
58158
+ return;
58159
+ abortRef.current?.abort();
58160
+ const controller = new AbortController();
58161
+ abortRef.current = controller;
58162
+ setIsLoading(true);
58163
+ try {
58164
+ const pagination = {
58165
+ ...DEFAULT_PAGINATION,
58166
+ currentPage: page,
58167
+ filter: [
58168
+ {
58169
+ value: query,
58170
+ column: 'name',
58171
+ condition: '',
58172
+ },
58173
+ ],
58174
+ };
58175
+ const response = await api.fetchBusinessTableData({ pagination, signal: controller.signal });
58176
+ if (controller.signal.aborted)
58177
+ return;
58178
+ const next = mapBusinesses((response?.contactos ?? []));
58179
+ setHasSearched(true);
58180
+ const total = response?.paginacion?.total ?? 0;
58181
+ setOptions((prev) => {
58182
+ const merged = page === 1
58183
+ ? next
58184
+ : (() => {
58185
+ const byId = new Map();
58186
+ for (const item of prev)
58187
+ byId.set(item.businessId, item);
58188
+ for (const item of next)
58189
+ byId.set(item.businessId, item);
58190
+ return Array.from(byId.values());
58191
+ })();
58192
+ if (total && merged.length >= total) {
58193
+ setAllLoaded(true);
58194
+ }
58195
+ return merged;
58196
+ });
58197
+ }
58198
+ finally {
58199
+ setIsLoading(false);
58200
+ setIsLoadingTimer(false);
58201
+ setIsNextPage(false);
58202
+ }
58203
+ };
58204
+ const handleQueryChanged = (value) => {
58205
+ resetSearchState();
58206
+ if (!value)
58207
+ return;
58208
+ if (timerRef.current) {
58209
+ clearTimeout(timerRef.current);
58210
+ timerRef.current = null;
58211
+ }
58212
+ setIsLoadingTimer(true);
58213
+ timerRef.current = setTimeout(() => {
58214
+ void fetchPage({ query: value, page: 1 });
58215
+ }, 800);
58216
+ };
58217
+ const handleScroll = (e) => {
58218
+ const element = e.target;
58219
+ const bottom = element.scrollHeight - element.scrollTop - element.clientHeight < 1;
58220
+ if (!bottom)
58221
+ return;
58222
+ if (allLoaded)
58223
+ return;
58224
+ if (isLoading)
58225
+ return;
58226
+ if (!inputValue)
58227
+ return;
58228
+ const nextPage = currentPage + 1;
58229
+ setIsNextPage(true);
58230
+ setCurrentPage(nextPage);
58231
+ void fetchPage({ query: inputValue, page: nextPage });
58232
+ };
58233
+ const handleCreateBusiness = async () => {
58234
+ if (!api)
58235
+ return;
58236
+ if (!ownerValue)
58237
+ return;
58238
+ const name = String(inputValue ?? '').trim();
58239
+ if (!name)
58240
+ return;
58241
+ setIsLoading(true);
58242
+ try {
58243
+ const business = {
58244
+ name,
58245
+ owner: ownerValue,
58246
+ imageUrl: '',
58247
+ members: [],
58248
+ tags: [],
58249
+ properties: [],
58250
+ address1: {
58251
+ street: '',
58252
+ city: '',
58253
+ state: '',
58254
+ zipcode: '',
58255
+ country: '',
58256
+ },
58257
+ address2: {
58258
+ street: '',
58259
+ city: '',
58260
+ state: '',
58261
+ zipcode: '',
58262
+ country: '',
58263
+ },
58264
+ };
58265
+ const created = await api.createBusiness({ business });
58266
+ const createdOption = {
58267
+ businessId: String(created.id ?? ''),
58268
+ businessName: String(created.name ?? name),
58269
+ };
58270
+ setOptions([createdOption]);
58271
+ setSelected(createdOption);
58272
+ setHasSearched(true);
58273
+ }
58274
+ finally {
58275
+ setIsLoading(false);
58276
+ }
58277
+ };
58278
+ const handleSave = async () => {
58279
+ if (!baseUrl || !spaceId)
58280
+ return;
58281
+ if (!contactId)
58282
+ return;
58283
+ const businessId = selected?.businessId ?? '';
58284
+ const updated = await updateEntity({
58285
+ baseUrl,
58286
+ spaceId,
58287
+ entityType: 'contact',
58288
+ entityId: contactId,
58289
+ body: {
58290
+ businessId,
58291
+ },
58292
+ });
58293
+ onEntityUpdated?.(updated);
58294
+ onBack();
58295
+ };
58296
+ 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') }));
58297
+ const isSavingDisabled = !contactId || !baseUrl || !spaceId;
58298
+ 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) => {
58299
+ setSelected(newValue);
58300
+ }, inputValue: inputValue, onInputChange: (event, newValue, reason) => {
58301
+ setInputValue(newValue);
58302
+ if (reason !== 'input')
58303
+ return;
58304
+ handleQueryChanged(newValue);
58305
+ }, 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: {
58306
+ ...params.InputProps,
58307
+ endAdornment: (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [isLoading || isLoadingTimer ? (jsxRuntimeExports.jsx(material.CircularProgress, { size: 18, sx: { mr: 1 } })) : null, params.InputProps.endAdornment] })),
58308
+ } })), ListboxProps: {
58309
+ sx: {
58310
+ maxHeight: 240,
58311
+ overflowY: 'auto',
58312
+ },
58313
+ onScroll: handleScroll,
58314
+ } })] })] }));
58315
+ };
58316
+
57692
58317
  const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, language = 'en', navigate, }) => {
57693
58318
  const { t: i18nT, i18n } = reactI18next.useTranslation();
57694
58319
  const modalContentRef = React$1.useRef(null);
@@ -57759,20 +58384,29 @@ const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, lang
57759
58384
  top: 5,
57760
58385
  color: (theme) => theme.palette.grey[500],
57761
58386
  zIndex: 1,
57762
- }, size: "small", children: jsxRuntimeExports.jsx(default_1$g, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(material.Box, { sx: {
58387
+ }, size: "small", children: jsxRuntimeExports.jsx(default_1$h, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(material.Box, { sx: {
57763
58388
  display: 'flex',
57764
58389
  justifyContent: 'center',
57765
58390
  alignItems: 'center',
57766
58391
  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] }) }) }) }) }) }));
58392
+ }, 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: () => {
58393
+ setView('tags');
58394
+ }, 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
58395
+ ? state.contactData.firstName
58396
+ : undefined, lastName: selectors.isContact
58397
+ ? state.contactData.lastName
58398
+ : 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' ||
58399
+ selectors.contactType === 'business'
58400
+ ? selectors.contactType
58401
+ : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
58402
+ selectors.contactType === 'business'
58403
+ ? selectors.contactType
58404
+ : '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
58405
+ ? {
58406
+ businessId: String(state.contactData.businessId),
58407
+ businessName: String(state.contactData.businessName ?? ''),
58408
+ }
58409
+ : null, onBack: () => setView('main'), onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }) }) })] }) }) })) : null] }) }) }) }) }) }));
57776
58410
  };
57777
58411
 
57778
58412
  exports.i18n = i18n;