@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/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { useCallback, useEffect, createContext, useContext, useState, useMemo, Children, isValidElement, cloneElement, useRef } from 'react';
3
- import { styled as styled$5, Box as Box$2, IconButton as IconButton$2, Avatar, Typography as Typography$2, CircularProgress as CircularProgress$2, Tooltip, Chip as Chip$2, Popper as Popper$2, ClickAwayListener, CardContent, Stack as Stack$2, Popover as Popover$2, TextField as TextField$1, Autocomplete, Divider, Select as Select$2, MenuItem as MenuItem$2, FormControl as FormControl$2, Button as Button$2, Menu as Menu$2, ListItemIcon, ListItemText, Modal as Modal$2, Grid, Backdrop as Backdrop$2, Fade as Fade$2 } from '@mui/material';
2
+ import React__default, { useCallback, useEffect, createContext, useContext, useState, useMemo, Children, isValidElement, cloneElement, useDeferredValue, createElement, useRef } from 'react';
3
+ import { styled as styled$5, Box as Box$2, IconButton as IconButton$2, Avatar, Typography as Typography$2, CircularProgress as CircularProgress$2, Tooltip, Chip as Chip$2, Popper as Popper$2, ClickAwayListener, CardContent, Stack as Stack$2, Popover as Popover$2, TextField as TextField$1, Autocomplete, Button as Button$2, Divider, Select as Select$2, MenuItem as MenuItem$2, FormControl as FormControl$2, Menu as Menu$2, ListItemIcon, ListItemText, Modal as Modal$2, Grid, LinearProgress, Backdrop as Backdrop$2, Fade as Fade$2 } from '@mui/material';
4
4
  import { withEmotionCache, ThemeContext, CacheProvider, Global, css, keyframes } from '@emotion/react';
5
5
  import { initReactI18next, useTranslation } from 'react-i18next';
6
6
  import i18n from 'i18next';
@@ -7402,21 +7402,21 @@ var styleFunctionSx = /*#__PURE__*/Object.freeze({
7402
7402
 
7403
7403
  var require$$8 = /*@__PURE__*/getAugmentedNamespace(styleFunctionSx);
7404
7404
 
7405
- var _interopRequireDefault$j = interopRequireDefaultExports;
7405
+ var _interopRequireDefault$k = interopRequireDefaultExports;
7406
7406
  Object.defineProperty(createStyled$3, "__esModule", {
7407
7407
  value: true
7408
7408
  });
7409
7409
  var _default = createStyled$3.default = createStyled$1;
7410
7410
  var shouldForwardProp_1 = createStyled$3.shouldForwardProp = shouldForwardProp$1;
7411
7411
  createStyled$3.systemDefaultTheme = void 0;
7412
- var _extends2 = _interopRequireDefault$j(require_extends());
7413
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault$j(requireObjectWithoutPropertiesLoose());
7412
+ var _extends2 = _interopRequireDefault$k(require_extends());
7413
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault$k(requireObjectWithoutPropertiesLoose());
7414
7414
  var _styledEngine$1 = _interopRequireWildcard$2(require$$1$1);
7415
7415
  var _deepmerge = require$$4;
7416
- var _capitalize = _interopRequireDefault$j(require$$5);
7417
- var _getDisplayName = _interopRequireDefault$j(require$$6);
7418
- var _createTheme = _interopRequireDefault$j(require$$7);
7419
- var _styleFunctionSx = _interopRequireDefault$j(require$$8);
7416
+ var _capitalize = _interopRequireDefault$k(require$$5);
7417
+ var _getDisplayName = _interopRequireDefault$k(require$$6);
7418
+ var _createTheme = _interopRequireDefault$k(require$$7);
7419
+ var _styleFunctionSx = _interopRequireDefault$k(require$$8);
7420
7420
  const _excluded$1v = ["ownerState"],
7421
7421
  _excluded2$d = ["variants"],
7422
7422
  _excluded3$4 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
@@ -7686,7 +7686,7 @@ var require$$1 = /*@__PURE__*/getAugmentedNamespace(formatMuiErrorMessage$1);
7686
7686
 
7687
7687
  var require$$2 = /*@__PURE__*/getAugmentedNamespace(clamp);
7688
7688
 
7689
- var _interopRequireDefault$i = interopRequireDefaultExports;
7689
+ var _interopRequireDefault$j = interopRequireDefaultExports;
7690
7690
  Object.defineProperty(colorManipulator, "__esModule", {
7691
7691
  value: true
7692
7692
  });
@@ -7708,8 +7708,8 @@ colorManipulator.private_safeEmphasize = private_safeEmphasize;
7708
7708
  colorManipulator.private_safeLighten = private_safeLighten;
7709
7709
  colorManipulator.recomposeColor = recomposeColor$1;
7710
7710
  colorManipulator.rgbToHex = rgbToHex;
7711
- var _formatMuiErrorMessage2 = _interopRequireDefault$i(require$$1);
7712
- var _clamp = _interopRequireDefault$i(require$$2);
7711
+ var _formatMuiErrorMessage2 = _interopRequireDefault$j(require$$1);
7712
+ var _clamp = _interopRequireDefault$j(require$$2);
7713
7713
  /* eslint-disable @typescript-eslint/naming-convention */
7714
7714
 
7715
7715
  /**
@@ -9075,27 +9075,27 @@ function requireCreateSvgIcon () {
9075
9075
  return createSvgIcon;
9076
9076
  }
9077
9077
 
9078
- var _interopRequireDefault$h = interopRequireDefaultExports;
9078
+ var _interopRequireDefault$i = interopRequireDefaultExports;
9079
9079
  Object.defineProperty(ArrowForward, "__esModule", {
9080
9080
  value: true
9081
9081
  });
9082
- var default_1$i = ArrowForward.default = void 0;
9083
- var _createSvgIcon$h = _interopRequireDefault$h(requireCreateSvgIcon());
9084
- var _jsxRuntime$h = jsxRuntimeExports;
9085
- default_1$i = ArrowForward.default = (0, _createSvgIcon$h.default)( /*#__PURE__*/(0, _jsxRuntime$h.jsx)("path", {
9082
+ var default_1$j = ArrowForward.default = void 0;
9083
+ var _createSvgIcon$i = _interopRequireDefault$i(requireCreateSvgIcon());
9084
+ var _jsxRuntime$i = jsxRuntimeExports;
9085
+ default_1$j = ArrowForward.default = (0, _createSvgIcon$i.default)( /*#__PURE__*/(0, _jsxRuntime$i.jsx)("path", {
9086
9086
  d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
9087
9087
  }), 'ArrowForward');
9088
9088
 
9089
9089
  var Message = {};
9090
9090
 
9091
- var _interopRequireDefault$g = interopRequireDefaultExports;
9091
+ var _interopRequireDefault$h = interopRequireDefaultExports;
9092
9092
  Object.defineProperty(Message, "__esModule", {
9093
9093
  value: true
9094
9094
  });
9095
- var default_1$h = Message.default = void 0;
9096
- var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
9097
- var _jsxRuntime$g = jsxRuntimeExports;
9098
- default_1$h = Message.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
9095
+ var default_1$i = Message.default = void 0;
9096
+ var _createSvgIcon$h = _interopRequireDefault$h(requireCreateSvgIcon());
9097
+ var _jsxRuntime$h = jsxRuntimeExports;
9098
+ default_1$i = Message.default = (0, _createSvgIcon$h.default)( /*#__PURE__*/(0, _jsxRuntime$h.jsx)("path", {
9099
9099
  d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"
9100
9100
  }), 'Message');
9101
9101
 
@@ -9175,7 +9175,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9175
9175
  handleNavigateToContacts(e);
9176
9176
  onClose();
9177
9177
  }
9178
- }, disabled: !contactId, "aria-label": "View contact details", children: jsxRuntimeExports.jsx(default_1$i, { fontSize: "small" }) }), jsxRuntimeExports.jsx(SmallIconButton, { color: "info", size: "small", onClick: (e) => {
9178
+ }, disabled: !contactId, "aria-label": "View contact details", children: jsxRuntimeExports.jsx(default_1$j, { fontSize: "small" }) }), jsxRuntimeExports.jsx(SmallIconButton, { color: "info", size: "small", onClick: (e) => {
9179
9179
  handleNavigateToConversations(e);
9180
9180
  onClose();
9181
9181
  }, onMouseDown: (e) => {
@@ -9184,7 +9184,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9184
9184
  handleNavigateToConversations(e);
9185
9185
  onClose();
9186
9186
  }
9187
- }, "aria-label": "Go to conversations", children: jsxRuntimeExports.jsx(default_1$h, { fontSize: "small" }) })] }), isLoading ? (jsxRuntimeExports.jsx(LoadingContainer, { children: jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) })) : (jsxRuntimeExports.jsx(ContactAvatar, { src: imgUrl, alt: avatarAlt, onError: () => onError?.(new Error('Failed to load avatar')) })), jsxRuntimeExports.jsx(ContactName$1, { variant: "h6", title: displayName, children: displayName })] }));
9187
+ }, "aria-label": "Go to conversations", children: jsxRuntimeExports.jsx(default_1$i, { fontSize: "small" }) })] }), isLoading ? (jsxRuntimeExports.jsx(LoadingContainer, { children: jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) })) : (jsxRuntimeExports.jsx(ContactAvatar, { src: imgUrl, alt: avatarAlt, onError: () => onError?.(new Error('Failed to load avatar')) })), jsxRuntimeExports.jsx(ContactName$1, { variant: "h6", title: displayName, children: displayName })] }));
9188
9188
  };
9189
9189
 
9190
9190
  const Container$1 = styled$5(Box$2)({
@@ -15294,7 +15294,22 @@ var global$2 = {
15294
15294
  noOptions: "No options",
15295
15295
  noValue: "No value",
15296
15296
  birthdate: "Birthdate",
15297
- country: "Country"
15297
+ country: "Country",
15298
+ searchLocation: "Search location"
15299
+ };
15300
+ var searchLocationModal$1 = {
15301
+ searchAddress: "Search address",
15302
+ enterLocation: "Enter a location",
15303
+ city: "City",
15304
+ state: "State",
15305
+ postalCode: "Postal code",
15306
+ country: "Country",
15307
+ saveMainAddress: "Save main address",
15308
+ saveSecondaryAddress: "Save secondary address",
15309
+ loadingGoogleMaps: "Loading Google Maps...",
15310
+ googleMapsUnavailable: "Google Maps unavailable",
15311
+ googleMapsNotLoaded: "Google Maps not loaded",
15312
+ selectedPlaceNoLocation: "Selected place has no location data"
15298
15313
  };
15299
15314
  var avatar$1 = {
15300
15315
  upload: "Upload photo",
@@ -15337,6 +15352,7 @@ var en = {
15337
15352
  view: view$1,
15338
15353
  tags: tags$1,
15339
15354
  global: global$2,
15355
+ searchLocationModal: searchLocationModal$1,
15340
15356
  avatar: avatar$1,
15341
15357
  contactEdit: contactEdit$1,
15342
15358
  conversations: conversations$1
@@ -15364,7 +15380,22 @@ var global$1 = {
15364
15380
  noOptions: "Sin opciones",
15365
15381
  noValue: "Sin valor",
15366
15382
  birthdate: "Fecha de nacimiento",
15367
- country: "País"
15383
+ country: "País",
15384
+ searchLocation: "Buscar ubicación"
15385
+ };
15386
+ var searchLocationModal = {
15387
+ searchAddress: "Buscar dirección",
15388
+ enterLocation: "Ingresá una ubicación",
15389
+ city: "Ciudad",
15390
+ state: "Estado",
15391
+ postalCode: "Código postal",
15392
+ country: "País",
15393
+ saveMainAddress: "Guardar como dirección principal",
15394
+ saveSecondaryAddress: "Guardar como dirección secundaria",
15395
+ loadingGoogleMaps: "Cargando Google Maps...",
15396
+ googleMapsUnavailable: "Google Maps no disponible",
15397
+ googleMapsNotLoaded: "Google Maps no está cargado",
15398
+ selectedPlaceNoLocation: "La ubicación seleccionada no tiene coordenadas"
15368
15399
  };
15369
15400
  var avatar = {
15370
15401
  upload: "Subir foto",
@@ -15407,6 +15438,7 @@ var es = {
15407
15438
  view: view,
15408
15439
  tags: tags,
15409
15440
  global: global$1,
15441
+ searchLocationModal: searchLocationModal,
15410
15442
  avatar: avatar,
15411
15443
  contactEdit: contactEdit,
15412
15444
  conversations: conversations
@@ -15518,45 +15550,45 @@ const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl,
15518
15550
 
15519
15551
  var Close = {};
15520
15552
 
15521
- var _interopRequireDefault$f = interopRequireDefaultExports;
15553
+ var _interopRequireDefault$g = interopRequireDefaultExports;
15522
15554
  Object.defineProperty(Close, "__esModule", {
15523
15555
  value: true
15524
15556
  });
15525
- var default_1$g = Close.default = void 0;
15526
- var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15527
- var _jsxRuntime$f = jsxRuntimeExports;
15528
- default_1$g = Close.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15557
+ var default_1$h = Close.default = void 0;
15558
+ var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
15559
+ var _jsxRuntime$g = jsxRuntimeExports;
15560
+ default_1$h = Close.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
15529
15561
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
15530
15562
  }), 'Close');
15531
15563
 
15532
15564
  var Edit = {};
15533
15565
 
15534
- var _interopRequireDefault$e = interopRequireDefaultExports;
15566
+ var _interopRequireDefault$f = interopRequireDefaultExports;
15535
15567
  Object.defineProperty(Edit, "__esModule", {
15536
15568
  value: true
15537
15569
  });
15538
- var default_1$f = Edit.default = void 0;
15539
- var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15540
- var _jsxRuntime$e = jsxRuntimeExports;
15541
- default_1$f = Edit.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15570
+ var default_1$g = Edit.default = void 0;
15571
+ var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15572
+ var _jsxRuntime$f = jsxRuntimeExports;
15573
+ default_1$g = Edit.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15542
15574
  d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
15543
15575
  }), 'Edit');
15544
15576
 
15545
15577
  var Label = {};
15546
15578
 
15547
- var _interopRequireDefault$d = interopRequireDefaultExports;
15579
+ var _interopRequireDefault$e = interopRequireDefaultExports;
15548
15580
  Object.defineProperty(Label, "__esModule", {
15549
15581
  value: true
15550
15582
  });
15551
- var default_1$e = Label.default = void 0;
15552
- var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15553
- var _jsxRuntime$d = jsxRuntimeExports;
15554
- default_1$e = Label.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15583
+ var default_1$f = Label.default = void 0;
15584
+ var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15585
+ var _jsxRuntime$e = jsxRuntimeExports;
15586
+ default_1$f = Label.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15555
15587
  d: "M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12z"
15556
15588
  }), 'Label');
15557
15589
 
15558
- const noop$4 = (key) => key;
15559
- const TranslationContext = createContext(noop$4);
15590
+ const noop$5 = (key) => key;
15591
+ const TranslationContext = createContext(noop$5);
15560
15592
  const TranslationProvider = ({ t, children }) => {
15561
15593
  return jsxRuntimeExports.jsx(TranslationContext.Provider, { value: t, children: children });
15562
15594
  };
@@ -15564,7 +15596,7 @@ const useTranslationContext = () => {
15564
15596
  const t = useContext(TranslationContext);
15565
15597
  if (!t) {
15566
15598
  console.warn('[useTranslationContext] using noop, context value is falsy');
15567
- return noop$4;
15599
+ return noop$5;
15568
15600
  }
15569
15601
  return (...args) => {
15570
15602
  const [key, ...rest] = args;
@@ -15618,7 +15650,7 @@ const Tags = ({ tags, onEditTags }) => {
15618
15650
  bgcolor: 'action.hover',
15619
15651
  color: 'text.primary',
15620
15652
  },
15621
- }, children: safeTags.length ? jsxRuntimeExports.jsx(default_1$f, { fontSize: "small" }) : jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] }), jsxRuntimeExports.jsx(Popover$2, { open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, children: jsxRuntimeExports.jsxs(Box$2, { sx: { p: 1.5, maxWidth: 320, maxHeight: 240, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle2", sx: { mb: 1 }, children: t('tags') }), jsxRuntimeExports.jsx(Stack$2, { direction: "row", spacing: 1, useFlexGap: true, flexWrap: "wrap", children: safeTags.map((tag) => (jsxRuntimeExports.jsx(Chip$2, { label: tag.name, size: "small", variant: "outlined", sx: {
15653
+ }, children: safeTags.length ? jsxRuntimeExports.jsx(default_1$g, { fontSize: "small" }) : jsxRuntimeExports.jsx(default_1$f, { fontSize: "small" }) })] }), jsxRuntimeExports.jsx(Popover$2, { open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, children: jsxRuntimeExports.jsxs(Box$2, { sx: { p: 1.5, maxWidth: 320, maxHeight: 240, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle2", sx: { mb: 1 }, children: t('tags') }), jsxRuntimeExports.jsx(Stack$2, { direction: "row", spacing: 1, useFlexGap: true, flexWrap: "wrap", children: safeTags.map((tag) => (jsxRuntimeExports.jsx(Chip$2, { label: tag.name, size: "small", variant: "outlined", sx: {
15622
15654
  borderRadius: 999,
15623
15655
  maxWidth: 160,
15624
15656
  '& .MuiChip-label': {
@@ -15720,31 +15752,31 @@ const ContactName = ({ displayName, contactType, firstName, lastName, name, enti
15720
15752
 
15721
15753
  var Delete = {};
15722
15754
 
15723
- var _interopRequireDefault$c = interopRequireDefaultExports;
15755
+ var _interopRequireDefault$d = interopRequireDefaultExports;
15724
15756
  Object.defineProperty(Delete, "__esModule", {
15725
15757
  value: true
15726
15758
  });
15727
- var default_1$d = Delete.default = void 0;
15728
- var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15729
- var _jsxRuntime$c = jsxRuntimeExports;
15730
- default_1$d = Delete.default = (0, _createSvgIcon$c.default)( /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15759
+ var default_1$e = Delete.default = void 0;
15760
+ var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15761
+ var _jsxRuntime$d = jsxRuntimeExports;
15762
+ default_1$e = Delete.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15731
15763
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
15732
15764
  }), 'Delete');
15733
15765
 
15734
15766
  var PhotoCamera = {};
15735
15767
 
15736
- var _interopRequireDefault$b = interopRequireDefaultExports;
15768
+ var _interopRequireDefault$c = interopRequireDefaultExports;
15737
15769
  Object.defineProperty(PhotoCamera, "__esModule", {
15738
15770
  value: true
15739
15771
  });
15740
- var default_1$c = PhotoCamera.default = void 0;
15741
- var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15742
- var _jsxRuntime$b = jsxRuntimeExports;
15743
- default_1$c = PhotoCamera.default = (0, _createSvgIcon$b.default)([/*#__PURE__*/(0, _jsxRuntime$b.jsx)("circle", {
15772
+ var default_1$d = PhotoCamera.default = void 0;
15773
+ var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15774
+ var _jsxRuntime$c = jsxRuntimeExports;
15775
+ default_1$d = PhotoCamera.default = (0, _createSvgIcon$c.default)([/*#__PURE__*/(0, _jsxRuntime$c.jsx)("circle", {
15744
15776
  cx: "12",
15745
15777
  cy: "12",
15746
15778
  r: "3.2"
15747
- }, "0"), /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15779
+ }, "0"), /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15748
15780
  d: "M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"
15749
15781
  }, "1")], 'PhotoCamera');
15750
15782
 
@@ -15778,11 +15810,11 @@ const AvatarWithActions = ({ src, alt, onError, onUpload, onDelete, isUploading,
15778
15810
  color: 'common.white',
15779
15811
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15780
15812
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15781
- }, children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(IconButton$2, { size: "small", "aria-label": t('avatar.delete'), onClick: onDelete, disabled: Boolean(isDeleting), sx: {
15813
+ }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) }), jsxRuntimeExports.jsx(IconButton$2, { size: "small", "aria-label": t('avatar.delete'), onClick: onDelete, disabled: Boolean(isDeleting), sx: {
15782
15814
  color: 'common.white',
15783
15815
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15784
15816
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15785
- }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) })] })] }));
15817
+ }, children: jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] })] }));
15786
15818
  };
15787
15819
 
15788
15820
  const HeaderContainer = styled$5(Box$2)({
@@ -15800,27 +15832,27 @@ const Header = ({ imgUrl, displayName, onError, tags, onEditTags, onUploadPhoto,
15800
15832
 
15801
15833
  var ArrowBack = {};
15802
15834
 
15803
- var _interopRequireDefault$a = interopRequireDefaultExports;
15835
+ var _interopRequireDefault$b = interopRequireDefaultExports;
15804
15836
  Object.defineProperty(ArrowBack, "__esModule", {
15805
15837
  value: true
15806
15838
  });
15807
- var default_1$b = ArrowBack.default = void 0;
15808
- var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15809
- var _jsxRuntime$a = jsxRuntimeExports;
15810
- default_1$b = ArrowBack.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15839
+ var default_1$c = ArrowBack.default = void 0;
15840
+ var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15841
+ var _jsxRuntime$b = jsxRuntimeExports;
15842
+ default_1$c = ArrowBack.default = (0, _createSvgIcon$b.default)( /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15811
15843
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
15812
15844
  }), 'ArrowBack');
15813
15845
 
15814
15846
  var Save = {};
15815
15847
 
15816
- var _interopRequireDefault$9 = interopRequireDefaultExports;
15848
+ var _interopRequireDefault$a = interopRequireDefaultExports;
15817
15849
  Object.defineProperty(Save, "__esModule", {
15818
15850
  value: true
15819
15851
  });
15820
- var default_1$a = Save.default = void 0;
15821
- var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
15822
- var _jsxRuntime$9 = jsxRuntimeExports;
15823
- default_1$a = Save.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
15852
+ var default_1$b = Save.default = void 0;
15853
+ var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15854
+ var _jsxRuntime$a = jsxRuntimeExports;
15855
+ default_1$b = Save.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15824
15856
  d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
15825
15857
  }), 'Save');
15826
15858
 
@@ -15829,7 +15861,7 @@ var useThemeWithoutDefault = {};
15829
15861
  Object.defineProperty(useThemeWithoutDefault, "__esModule", {
15830
15862
  value: true
15831
15863
  });
15832
- var default_1$9 = useThemeWithoutDefault.default = void 0;
15864
+ var default_1$a = useThemeWithoutDefault.default = void 0;
15833
15865
  var React = _interopRequireWildcard$1(React__default);
15834
15866
  var _styledEngine = require$$1$1;
15835
15867
  function _getRequireWildcardCache$1(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache$1 = function (e) { return e ? t : r; })(e); }
@@ -15841,7 +15873,7 @@ function useTheme$3(defaultTheme = null) {
15841
15873
  const contextTheme = React.useContext(_styledEngine.ThemeContext);
15842
15874
  return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme : contextTheme;
15843
15875
  }
15844
- default_1$9 = useThemeWithoutDefault.default = useTheme$3;
15876
+ default_1$a = useThemeWithoutDefault.default = useTheme$3;
15845
15877
 
15846
15878
  var top = 'top';
15847
15879
  var bottom = 'bottom';
@@ -18928,7 +18960,7 @@ const PopperRoot = styled$3(BasePopper, {
18928
18960
  */
18929
18961
  const Popper = /*#__PURE__*/React$1.forwardRef(function Popper(inProps, ref) {
18930
18962
  var _slots$root;
18931
- const theme = default_1$9();
18963
+ const theme = default_1$a();
18932
18964
  const props = useDefaultProps({
18933
18965
  props: inProps,
18934
18966
  name: 'MuiPopper'
@@ -19915,7 +19947,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
19915
19947
  onExited: PropTypes.func
19916
19948
  } : {}; // Name the function so it is clearer in the documentation
19917
19949
 
19918
- function noop$3() {}
19950
+ function noop$4() {}
19919
19951
 
19920
19952
  Transition.defaultProps = {
19921
19953
  in: false,
@@ -19924,12 +19956,12 @@ Transition.defaultProps = {
19924
19956
  appear: false,
19925
19957
  enter: true,
19926
19958
  exit: true,
19927
- onEnter: noop$3,
19928
- onEntering: noop$3,
19929
- onEntered: noop$3,
19930
- onExit: noop$3,
19931
- onExiting: noop$3,
19932
- onExited: noop$3
19959
+ onEnter: noop$4,
19960
+ onEntering: noop$4,
19961
+ onEntered: noop$4,
19962
+ onExit: noop$4,
19963
+ onExiting: noop$4,
19964
+ onExited: noop$4
19933
19965
  };
19934
19966
  Transition.UNMOUNTED = UNMOUNTED;
19935
19967
  Transition.EXITED = EXITED;
@@ -24835,8 +24867,35 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24835
24867
  const t = useTranslationContext();
24836
24868
  const [searchValue, setSearchValue] = useState('');
24837
24869
  const [limit, setLimit] = useState(PAGE_SIZE);
24870
+ const deferredSearchValue = useDeferredValue(searchValue);
24838
24871
  const safeOptions = useMemo(() => options ?? [], [options]);
24839
- const visibleOptions = useMemo(() => safeOptions.slice(0, limit), [safeOptions, limit]);
24872
+ const filteredOptions = useMemo(() => {
24873
+ const q = String(deferredSearchValue ?? '')
24874
+ .trim()
24875
+ .toLowerCase();
24876
+ if (!q)
24877
+ return safeOptions;
24878
+ return safeOptions.filter((o) => String(o?.name ?? '')
24879
+ .toLowerCase()
24880
+ .includes(q));
24881
+ }, [safeOptions, deferredSearchValue]);
24882
+ const visibleOptions = useMemo(() => filteredOptions.slice(0, limit), [filteredOptions, limit]);
24883
+ const optionsWithSelectedValues = useMemo(() => {
24884
+ const byId = new Map();
24885
+ for (const selected of value ?? []) {
24886
+ if (!selected?.id)
24887
+ continue;
24888
+ byId.set(String(selected.id), selected);
24889
+ }
24890
+ for (const opt of visibleOptions ?? []) {
24891
+ if (!opt?.id)
24892
+ continue;
24893
+ if (byId.has(String(opt.id)))
24894
+ continue;
24895
+ byId.set(String(opt.id), opt);
24896
+ }
24897
+ return Array.from(byId.values());
24898
+ }, [value, visibleOptions]);
24840
24899
  const handleSearchChange = (_, newInputValue) => {
24841
24900
  setSearchValue(newInputValue ?? '');
24842
24901
  setLimit(PAGE_SIZE);
@@ -24856,7 +24915,14 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24856
24915
  alignItems: 'center',
24857
24916
  }, children: [t('global.noOptions'), jsxRuntimeExports.jsx(LoadingButton$1, { onClick: () => onCreateNew(trimmedSearchValue), loading: isCreatingNew, disabled: isDisabled, variant: "contained", size: "small", sx: { marginTop: 1.3 }, children: t('global.createNew') })] }));
24858
24917
  };
24859
- return (jsxRuntimeExports.jsxs(Box$2, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(IconButton$2, { size: "small", onClick: onBack, "aria-label": t('global.back'), disabled: isSaving, children: jsxRuntimeExports.jsx(default_1$b, { fontSize: "small" }) }), jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: t('tags') }), jsxRuntimeExports.jsx(Box$2, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$a, {}), onClick: onSave, loading: isSaving, disabled: isSaving, children: t('global.save') })] }), jsxRuntimeExports.jsx(Autocomplete, { multiple: true, disablePortal: false, value: value, onChange: (_, newValue) => onChange(newValue), options: visibleOptions, filterOptions: (x) => x, inputValue: searchValue, onInputChange: handleSearchChange, getOptionLabel: (option) => option?.name ?? '', isOptionEqualToValue: (o, v) => String(o?.id) === String(v?.id), PopperComponent: (props) => (jsxRuntimeExports.jsx(AutocompletePopper, { ...props, popperContainer: popperContainer })), renderOption: (props, option) => jsxRuntimeExports.jsx("li", { ...props, children: option.name ?? '' }), renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => (jsxRuntimeExports.jsx(Chip$2, { label: option.name ?? '', ...getTagProps({ index }) }))), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(TextField$1, { ...params, size: "small" }), ListboxProps: {
24918
+ return (jsxRuntimeExports.jsxs(Box$2, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(IconButton$2, { size: "small", onClick: onBack, "aria-label": t('global.back'), disabled: isSaving, children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: t('tags') }), jsxRuntimeExports.jsx(Box$2, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: onSave, loading: isSaving, disabled: isSaving, children: t('global.save') })] }), jsxRuntimeExports.jsx(Autocomplete, { multiple: true, disablePortal: false, value: value, onChange: (_, newValue) => onChange(newValue), options: optionsWithSelectedValues, filterOptions: (x) => x, inputValue: searchValue, onInputChange: handleSearchChange, getOptionLabel: (option) => option?.name ?? '', isOptionEqualToValue: (o, v) => String(o?.id) === String(v?.id), PopperComponent: (props) => (jsxRuntimeExports.jsx(AutocompletePopper, { ...props, popperContainer: popperContainer })), renderOption: (props, option) => {
24919
+ const { key, ...rest } = props;
24920
+ return (createElement("li", { ...rest, key: option?.id ? String(option.id) : String(key ?? option?.name ?? '') }, option.name ?? ''));
24921
+ }, renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => {
24922
+ const tagProps = getTagProps({ index });
24923
+ const { key, ...rest } = tagProps;
24924
+ return (jsxRuntimeExports.jsx(Chip$2, { label: option.name ?? '', ...rest }, option?.id ? String(option.id) : String(key ?? option?.name ?? index)));
24925
+ }), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(TextField$1, { ...params, size: "small" }), ListboxProps: {
24860
24926
  onScroll: onListboxScroll,
24861
24927
  sx: { maxHeight: 280, overflowY: 'auto' },
24862
24928
  }, noOptionsText: jsxRuntimeExports.jsx(CustomNoOptionsMessage, {}), sx: { width: '100%' } })] }));
@@ -24956,6 +25022,16 @@ async function updateEntity({ baseUrl, spaceId, entityType, entityId, body, sign
24956
25022
  const url = joinUrl(urls.CONTACTS, path);
24957
25023
  return requestJson({ url, method: 'PUT', body, signal });
24958
25024
  }
25025
+ async function fetchBusinessTableData({ baseUrl, spaceId, pagination, signal, }) {
25026
+ const urls = getApiUrls(baseUrl, spaceId);
25027
+ const url = joinUrl(urls.CONTACTS, '/Search');
25028
+ return requestJson({ url, method: 'POST', body: pagination, signal });
25029
+ }
25030
+ async function createBusiness({ baseUrl, spaceId, business, signal }) {
25031
+ const urls = getApiUrls(baseUrl, spaceId);
25032
+ const url = joinUrl(urls.CONTACTS, '/business');
25033
+ return requestJson({ url, method: 'POST', body: business, signal });
25034
+ }
24959
25035
  async function deleteAddress({ baseUrl, spaceId, data, signal }) {
24960
25036
  const urls = getApiUrls(baseUrl, spaceId);
24961
25037
  const url = joinUrl(urls.CONTACTS, '/contactAddresses');
@@ -25002,6 +25078,8 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25002
25078
  fetchLabels: ({ signal } = {}) => fetchLabels({ baseUrl, spaceId, signal }),
25003
25079
  createLabel: ({ name, signal }) => createLabel({ baseUrl, spaceId, name, signal }),
25004
25080
  fetchContact: ({ contactId, signal }) => fetchContact({ baseUrl, spaceId, contactId, signal }),
25081
+ fetchBusinessTableData: ({ pagination, signal }) => fetchBusinessTableData({ baseUrl, spaceId, pagination, signal }),
25082
+ createBusiness: ({ business, signal }) => createBusiness({ baseUrl, spaceId, business, signal }),
25005
25083
  fetchContactFields: ({ forType, signal }) => fetchContactFields({ baseUrl, spaceId, forType, signal }),
25006
25084
  updateEntity: ({ entityType, entityId, body, signal }) => updateEntity({ baseUrl, spaceId, entityType, entityId, body, signal }),
25007
25085
  deleteAddress: ({ data, signal }) => deleteAddress({ baseUrl, spaceId, data, signal }),
@@ -25015,6 +25093,296 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25015
25093
  uploadAvatar: ({ contactId, file, signal }) => uploadAvatar({ baseUrl, spaceId, contactId, file, signal }),
25016
25094
  });
25017
25095
 
25096
+ const isGoogleMapsLoaded = () => {
25097
+ return Boolean(window?.google?.maps?.places?.Autocomplete);
25098
+ };
25099
+ const waitForGoogleMaps = (maxWaitTime = 10000) => {
25100
+ return new Promise((resolve) => {
25101
+ if (isGoogleMapsLoaded()) {
25102
+ resolve(true);
25103
+ return;
25104
+ }
25105
+ const startTime = Date.now();
25106
+ const checkInterval = 100;
25107
+ const interval = window.setInterval(() => {
25108
+ if (isGoogleMapsLoaded()) {
25109
+ window.clearInterval(interval);
25110
+ resolve(true);
25111
+ return;
25112
+ }
25113
+ if (Date.now() - startTime > maxWaitTime) {
25114
+ window.clearInterval(interval);
25115
+ resolve(false);
25116
+ }
25117
+ }, checkInterval);
25118
+ });
25119
+ };
25120
+ const useGoogleMapsStatus = () => {
25121
+ const [isLoaded, setIsLoaded] = useState(false);
25122
+ const [isLoading, setIsLoading] = useState(true);
25123
+ const [error, setError] = useState(null);
25124
+ useEffect(() => {
25125
+ const checkStatus = async () => {
25126
+ try {
25127
+ const loaded = await waitForGoogleMaps(10000);
25128
+ setIsLoaded(loaded);
25129
+ if (!loaded) {
25130
+ setError('Google Maps API failed to load');
25131
+ }
25132
+ }
25133
+ catch {
25134
+ setError('Error loading Google Maps API');
25135
+ setIsLoaded(false);
25136
+ }
25137
+ finally {
25138
+ setIsLoading(false);
25139
+ }
25140
+ };
25141
+ checkStatus();
25142
+ }, []);
25143
+ return { isLoaded, isLoading, error };
25144
+ };
25145
+
25146
+ const SearchLocationInput = ({ onPlaceSelected, onError, placeholder }) => {
25147
+ const t = useTranslationContext();
25148
+ const inputRef = useRef(null);
25149
+ const autocompleteRef = useRef(null);
25150
+ const placeSelectedRef = useRef(onPlaceSelected);
25151
+ const errorRef = useRef(onError);
25152
+ const { isLoaded, isLoading, error: mapsError } = useGoogleMapsStatus();
25153
+ const currentPlaceholder = useMemo(() => {
25154
+ if (isLoading)
25155
+ return t('searchLocationModal.loadingGoogleMaps');
25156
+ if (mapsError)
25157
+ return t('searchLocationModal.googleMapsUnavailable');
25158
+ if (!isLoaded)
25159
+ return t('searchLocationModal.googleMapsNotLoaded');
25160
+ return placeholder ?? t('searchLocationModal.enterLocation');
25161
+ }, [isLoaded, isLoading, mapsError, placeholder, t]);
25162
+ useEffect(() => {
25163
+ placeSelectedRef.current = onPlaceSelected;
25164
+ }, [onPlaceSelected]);
25165
+ useEffect(() => {
25166
+ errorRef.current = onError;
25167
+ }, [onError]);
25168
+ useEffect(() => {
25169
+ if (!isLoaded)
25170
+ return;
25171
+ if (!inputRef.current)
25172
+ return;
25173
+ if (autocompleteRef.current)
25174
+ return;
25175
+ const googleAny = window?.google;
25176
+ if (!googleAny?.maps?.places?.Autocomplete) {
25177
+ errorRef.current?.(t('searchLocationModal.googleMapsUnavailable'));
25178
+ return;
25179
+ }
25180
+ inputRef.current.focus();
25181
+ let observer = null;
25182
+ const applyPacContainerStyles = () => {
25183
+ const pacContainers = document.querySelectorAll('.pac-container');
25184
+ pacContainers.forEach((container) => {
25185
+ const el = container;
25186
+ el.style.zIndex = '20000';
25187
+ el.style.position = 'fixed';
25188
+ });
25189
+ };
25190
+ observer = new MutationObserver((mutations) => {
25191
+ for (const mutation of mutations) {
25192
+ for (const node of Array.from(mutation.addedNodes)) {
25193
+ if (node.nodeType !== Node.ELEMENT_NODE)
25194
+ continue;
25195
+ const element = node;
25196
+ if (!element.classList?.contains('pac-container'))
25197
+ continue;
25198
+ element.style.zIndex = '20000';
25199
+ element.style.position = 'fixed';
25200
+ }
25201
+ }
25202
+ });
25203
+ observer.observe(document.body, {
25204
+ childList: true,
25205
+ subtree: true,
25206
+ });
25207
+ applyPacContainerStyles();
25208
+ window.setTimeout(applyPacContainerStyles, 100);
25209
+ autocompleteRef.current = new googleAny.maps.places.Autocomplete(inputRef.current, {
25210
+ types: ['geocode'],
25211
+ componentRestrictions: { country: 'ar' },
25212
+ });
25213
+ const listener = autocompleteRef.current.addListener?.('place_changed', () => {
25214
+ const place = autocompleteRef.current?.getPlace?.();
25215
+ if (!place?.geometry?.location) {
25216
+ errorRef.current?.(t('searchLocationModal.selectedPlaceNoLocation'));
25217
+ return;
25218
+ }
25219
+ let city = '';
25220
+ let state = '';
25221
+ let country = '';
25222
+ let postalCode = '';
25223
+ let streetName = '';
25224
+ let streetNumber = '';
25225
+ const components = place.address_components ?? [];
25226
+ for (const component of components) {
25227
+ const types = component?.types ?? [];
25228
+ if (types.includes('locality') || types.includes('administrative_area_level_2')) {
25229
+ city = component.long_name;
25230
+ continue;
25231
+ }
25232
+ if (types.includes('administrative_area_level_1')) {
25233
+ state = component.long_name;
25234
+ continue;
25235
+ }
25236
+ if (types.includes('country')) {
25237
+ country = component.long_name;
25238
+ continue;
25239
+ }
25240
+ if (types.includes('postal_code')) {
25241
+ postalCode = component.long_name;
25242
+ continue;
25243
+ }
25244
+ if (types.includes('route')) {
25245
+ streetName = component.long_name;
25246
+ continue;
25247
+ }
25248
+ if (types.includes('street_number')) {
25249
+ streetNumber = component.long_name;
25250
+ }
25251
+ }
25252
+ const lat = typeof place.geometry.location.lat === 'function' ? place.geometry.location.lat() : 0;
25253
+ const lng = typeof place.geometry.location.lng === 'function' ? place.geometry.location.lng() : 0;
25254
+ const result = {
25255
+ location: { lat, lng },
25256
+ address: place.formatted_address ?? '',
25257
+ city,
25258
+ state,
25259
+ country,
25260
+ postalCode,
25261
+ streetName,
25262
+ streetNumber,
25263
+ shortAddress: [streetName, streetNumber].filter(Boolean).join(' '),
25264
+ };
25265
+ placeSelectedRef.current(result);
25266
+ });
25267
+ return () => {
25268
+ if (observer)
25269
+ observer.disconnect();
25270
+ if (listener?.remove)
25271
+ listener.remove();
25272
+ autocompleteRef.current = null;
25273
+ };
25274
+ }, [isLoaded, t]);
25275
+ const isDisabled = isLoading || !isLoaded || Boolean(mapsError);
25276
+ return (jsxRuntimeExports.jsx(TextField$1, { fullWidth: true, size: "small", inputRef: inputRef, placeholder: currentPlaceholder, disabled: isDisabled, error: Boolean(mapsError) }));
25277
+ };
25278
+
25279
+ const EMPTY_DRAFT = {
25280
+ street: '',
25281
+ city: '',
25282
+ state: '',
25283
+ zipcode: '',
25284
+ country: '',
25285
+ };
25286
+ const SearchLocationEditor = ({ baseUrl, spaceId, entityType, entityId, onBack, onEntityUpdated, }) => {
25287
+ const t = useTranslationContext();
25288
+ const [draft, setDraft] = useState(EMPTY_DRAFT);
25289
+ const [query, setQuery] = useState('');
25290
+ const [error, setError] = useState('');
25291
+ const [isSavingMain, setIsSavingMain] = useState(false);
25292
+ const [isSavingSecondary, setIsSavingSecondary] = useState(false);
25293
+ const canSubmit = useMemo(() => {
25294
+ return Boolean(String(draft.street ?? '').trim() ||
25295
+ String(draft.city ?? '').trim() ||
25296
+ String(draft.state ?? '').trim() ||
25297
+ String(draft.zipcode ?? '').trim() ||
25298
+ String(draft.country ?? '').trim());
25299
+ }, [draft]);
25300
+ const handlePlaceSelected = (result) => {
25301
+ setQuery(result.address ?? '');
25302
+ const computedStreet = String(result.shortAddress ?? '').trim() ||
25303
+ [result.streetName, result.streetNumber].filter(Boolean).join(' ').trim();
25304
+ setDraft({
25305
+ street: computedStreet,
25306
+ city: result.city ?? '',
25307
+ state: result.state ?? '',
25308
+ zipcode: result.postalCode ?? '',
25309
+ country: result.country ?? '',
25310
+ });
25311
+ setError('');
25312
+ };
25313
+ const handleError = (errorMessage) => {
25314
+ setError(String(errorMessage ?? ''));
25315
+ };
25316
+ const handleChange = (key) => (e) => {
25317
+ const next = e.target.value;
25318
+ setDraft((prev) => ({ ...prev, [key]: next }));
25319
+ };
25320
+ const handleSaveMainAddress = async () => {
25321
+ if (isSavingMain)
25322
+ return;
25323
+ if (!baseUrl || !spaceId)
25324
+ return;
25325
+ if (!entityId)
25326
+ return;
25327
+ setIsSavingMain(true);
25328
+ try {
25329
+ const updated = await updateEntity({
25330
+ baseUrl,
25331
+ spaceId,
25332
+ entityType,
25333
+ entityId,
25334
+ body: {
25335
+ address1: {
25336
+ street: String(draft.street ?? ''),
25337
+ city: String(draft.city ?? ''),
25338
+ state: String(draft.state ?? ''),
25339
+ zipcode: String(draft.zipcode ?? ''),
25340
+ country: String(draft.country ?? ''),
25341
+ },
25342
+ },
25343
+ });
25344
+ onEntityUpdated?.(updated);
25345
+ onBack();
25346
+ }
25347
+ finally {
25348
+ setIsSavingMain(false);
25349
+ }
25350
+ };
25351
+ const handleSaveSecondaryAddress = async () => {
25352
+ if (isSavingSecondary)
25353
+ return;
25354
+ if (!baseUrl || !spaceId)
25355
+ return;
25356
+ if (!entityId)
25357
+ return;
25358
+ setIsSavingSecondary(true);
25359
+ try {
25360
+ const updated = await updateEntity({
25361
+ baseUrl,
25362
+ spaceId,
25363
+ entityType,
25364
+ entityId,
25365
+ body: {
25366
+ address2: {
25367
+ street: String(draft.street ?? ''),
25368
+ city: String(draft.city ?? ''),
25369
+ state: String(draft.state ?? ''),
25370
+ zipcode: String(draft.zipcode ?? ''),
25371
+ country: String(draft.country ?? ''),
25372
+ },
25373
+ },
25374
+ });
25375
+ onEntityUpdated?.(updated);
25376
+ onBack();
25377
+ }
25378
+ finally {
25379
+ setIsSavingSecondary(false);
25380
+ }
25381
+ };
25382
+ const isDisabled = !canSubmit || isSavingMain || isSavingSecondary;
25383
+ return (jsxRuntimeExports.jsxs(Box$2, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(IconButton$2, { size: "small", onClick: onBack, "aria-label": t('global.back'), children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: t('searchLocationModal.searchAddress') }), jsxRuntimeExports.jsx(Box$2, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: handleSaveMainAddress, loading: isSavingMain, disabled: isDisabled, sx: { mr: 1 }, children: t('searchLocationModal.saveMainAddress') }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "outlined", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: handleSaveSecondaryAddress, loading: isSavingSecondary, disabled: isDisabled, children: t('searchLocationModal.saveSecondaryAddress') })] }), jsxRuntimeExports.jsxs(Stack$2, { spacing: 2, children: [jsxRuntimeExports.jsxs(Box$2, { sx: { position: 'relative', zIndex: 1400 }, children: [jsxRuntimeExports.jsx(SearchLocationInput, { onPlaceSelected: handlePlaceSelected, onError: handleError, placeholder: t('searchLocationModal.enterLocation') }), error ? (jsxRuntimeExports.jsx(Typography$2, { variant: "caption", color: "error", sx: { mt: 0.5, display: 'block' }, children: error })) : null] }), jsxRuntimeExports.jsx(TextField$1, { label: t('conversations.contactDetails.street'), value: draft.street, onChange: handleChange('street'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsxs(Stack$2, { direction: { xs: 'column', sm: 'row' }, spacing: 2, children: [jsxRuntimeExports.jsx(TextField$1, { label: t('searchLocationModal.city'), value: draft.city, onChange: handleChange('city'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsx(TextField$1, { label: t('searchLocationModal.state'), value: draft.state, onChange: handleChange('state'), fullWidth: true, size: "small" })] }), jsxRuntimeExports.jsxs(Stack$2, { direction: { xs: 'column', sm: 'row' }, spacing: 2, children: [jsxRuntimeExports.jsx(TextField$1, { label: t('searchLocationModal.postalCode'), value: draft.zipcode, onChange: handleChange('zipcode'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsx(TextField$1, { label: t('searchLocationModal.country'), value: draft.country, onChange: handleChange('country'), fullWidth: true, size: "small" })] }), query ? (jsxRuntimeExports.jsx(Typography$2, { variant: "caption", sx: { opacity: 0.7 }, children: query })) : null] })] }));
25384
+ };
25385
+
25018
25386
  /**
25019
25387
  * Type guard to check if an object is an IBusiness
25020
25388
  * @param obj The object to check
@@ -26638,14 +27006,28 @@ const resolveUserLabel = ({ userId, users, currentUser, }) => {
26638
27006
  return fromUsers?.name?.trim() || fromUsers?.email || null;
26639
27007
  };
26640
27008
 
26641
- const Section = ({ title, children }) => {
27009
+ var AddLocationAlt = {};
27010
+
27011
+ var _interopRequireDefault$9 = interopRequireDefaultExports;
27012
+ Object.defineProperty(AddLocationAlt, "__esModule", {
27013
+ value: true
27014
+ });
27015
+ var default_1$9 = AddLocationAlt.default = void 0;
27016
+ var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
27017
+ var _jsxRuntime$9 = jsxRuntimeExports;
27018
+ default_1$9 = AddLocationAlt.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
27019
+ d: "M20 1v3h3v2h-3v3h-2V6h-3V4h3V1zm-8 12c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m2-9.75V7h3v3h2.92c.05.39.08.79.08 1.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 6.22 7.8 3 12 3c.68 0 1.35.08 2 .25"
27020
+ }), 'AddLocationAlt');
27021
+
27022
+ const Section = ({ title, children, enableDirectionSearch = false, onDirectionSearchClick, }) => {
27023
+ const t = useTranslationContext();
26642
27024
  return (jsxRuntimeExports.jsxs(Box$2, { sx: {
26643
27025
  border: '1px solid',
26644
27026
  borderColor: 'divider',
26645
27027
  borderRadius: 2,
26646
27028
  p: 2,
26647
27029
  mb: 2,
26648
- }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: title }), jsxRuntimeExports.jsx(Divider, { sx: { my: 1.5 } }), children] }));
27030
+ }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: title }), enableDirectionSearch && (jsxRuntimeExports.jsx(Button$2, { startIcon: jsxRuntimeExports.jsx(default_1$9, { sx: { color: 'primary.main', height: 18, width: 18 } }), size: "small", variant: "outlined", color: "primary", onClick: () => onDirectionSearchClick && onDirectionSearchClick(), children: t('global.searchLocation') })), jsxRuntimeExports.jsx(Divider, { sx: { my: 1.5 } }), children] }));
26649
27031
  };
26650
27032
 
26651
27033
  const SectionContent = ({ children, ...boxProps }) => {
@@ -32966,7 +33348,7 @@ const PickersDayFiller = styled$3('div', {
32966
33348
  opacity: 0,
32967
33349
  pointerEvents: 'none'
32968
33350
  }));
32969
- const noop$2 = () => {};
33351
+ const noop$3 = () => {};
32970
33352
  const PickersDayRaw = /*#__PURE__*/React$1.forwardRef(function PickersDay(inProps, forwardedRef) {
32971
33353
  const props = useThemeProps({
32972
33354
  props: inProps,
@@ -32979,11 +33361,11 @@ const PickersDayRaw = /*#__PURE__*/React$1.forwardRef(function PickersDay(inProp
32979
33361
  isAnimating,
32980
33362
  onClick,
32981
33363
  onDaySelect,
32982
- onFocus = noop$2,
32983
- onBlur = noop$2,
32984
- onKeyDown = noop$2,
32985
- onMouseDown = noop$2,
32986
- onMouseEnter = noop$2,
33364
+ onFocus = noop$3,
33365
+ onBlur = noop$3,
33366
+ onKeyDown = noop$3,
33367
+ onMouseDown = noop$3,
33368
+ onMouseEnter = noop$3,
32987
33369
  children,
32988
33370
  day,
32989
33371
  selected,
@@ -43478,7 +43860,7 @@ const _excluded$y = ["enableAccessibleFieldDOMStructure"],
43478
43860
  _excluded6 = ["ownerState"],
43479
43861
  _excluded7 = ["ownerState"],
43480
43862
  _excluded8 = ["InputProps", "inputProps"];
43481
- const noop$1 = () => {};
43863
+ const noop$2 = () => {};
43482
43864
  const cleanFieldResponse = _ref => {
43483
43865
  let {
43484
43866
  enableAccessibleFieldDOMStructure
@@ -43495,7 +43877,7 @@ const cleanFieldResponse = _ref => {
43495
43877
  openPickerAriaLabel
43496
43878
  } = fieldResponse,
43497
43879
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded2$6);
43498
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43880
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43499
43881
  return {
43500
43882
  clearable,
43501
43883
  onClear,
@@ -43530,8 +43912,8 @@ const cleanFieldResponse = _ref => {
43530
43912
  openPickerAriaLabel
43531
43913
  } = fieldResponse,
43532
43914
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded3);
43533
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43534
- const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$1;
43915
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43916
+ const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$2;
43535
43917
  return {
43536
43918
  clearable,
43537
43919
  onClear,
@@ -52749,6 +53131,18 @@ default_1$8 = Cancel.default = (0, _createSvgIcon$8.default)( /*#__PURE__*/(0, _
52749
53131
  d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"
52750
53132
  }), 'Cancel');
52751
53133
 
53134
+ const noop$1 = { view: 'main', setView: () => { } };
53135
+ const EditContactViewContext = createContext(null);
53136
+ const EditContactViewProvider = EditContactViewContext.Provider;
53137
+ const useEditContactView = () => {
53138
+ const ctx = useContext(EditContactViewContext);
53139
+ if (!ctx) {
53140
+ console.warn('[useEditContactView] using noop, context value is missing');
53141
+ return noop$1;
53142
+ }
53143
+ return ctx;
53144
+ };
53145
+
52752
53146
  const noop = () => { };
52753
53147
  const NavigateContext = createContext(noop);
52754
53148
  const NavigateProvider = ({ navigate, children }) => {
@@ -52819,6 +53213,7 @@ const StyledSaveCancelButton$1 = styled$5(IconButton$2)({
52819
53213
  const EntityInfoLabel = (props) => {
52820
53214
  const { title, value, isNotEditable, displayValue, baseUrl, spaceId, minWidth, onEntityUpdated } = props;
52821
53215
  const t = useTranslationContext();
53216
+ const { setView } = useEditContactView();
52822
53217
  const inputType = props.inputType ?? 'text';
52823
53218
  const [isEditing, setIsEditing] = useState(false);
52824
53219
  const [isSaving, setIsSaving] = useState(false);
@@ -52835,15 +53230,26 @@ const EntityInfoLabel = (props) => {
52835
53230
  return;
52836
53231
  const check = () => {
52837
53232
  const next = el.scrollWidth > el.clientWidth;
52838
- setIsTitleTruncated(next);
53233
+ setIsTitleTruncated((prev) => (prev === next ? prev : next));
52839
53234
  };
52840
53235
  check();
52841
53236
  if (typeof ResizeObserver !== 'undefined') {
53237
+ let rafId = 0;
52842
53238
  const ro = new ResizeObserver(() => {
52843
- check();
53239
+ if (typeof window === 'undefined') {
53240
+ check();
53241
+ return;
53242
+ }
53243
+ if (rafId)
53244
+ window.cancelAnimationFrame(rafId);
53245
+ rafId = window.requestAnimationFrame(() => {
53246
+ check();
53247
+ });
52844
53248
  });
52845
53249
  ro.observe(el);
52846
53250
  return () => {
53251
+ if (typeof window !== 'undefined' && rafId)
53252
+ window.cancelAnimationFrame(rafId);
52847
53253
  ro.disconnect();
52848
53254
  };
52849
53255
  }
@@ -52853,7 +53259,7 @@ const EntityInfoLabel = (props) => {
52853
53259
  return () => {
52854
53260
  window.removeEventListener('resize', check);
52855
53261
  };
52856
- }, [title, isEditing]);
53262
+ }, [title]);
52857
53263
  useEffect(() => {
52858
53264
  if (props.entityType === 'business') {
52859
53265
  setInputValue(value);
@@ -52864,7 +53270,7 @@ const EntityInfoLabel = (props) => {
52864
53270
  }, [value, props.entityType]);
52865
53271
  const handleEditClick = () => {
52866
53272
  if (props.entityType === 'contact' && inputType === 'selectBusiness') {
52867
- console.log('Not implemented yet');
53273
+ setView('businessSelect');
52868
53274
  return;
52869
53275
  }
52870
53276
  setIsEditing((prev) => !prev);
@@ -52963,7 +53369,7 @@ const EntityInfoLabel = (props) => {
52963
53369
  overflow: 'hidden',
52964
53370
  textOverflow: 'ellipsis',
52965
53371
  whiteSpace: 'nowrap',
52966
- }, children: title }) })) : (jsxRuntimeExports.jsx(Typography$2, { ref: titleRef, component: "span", variant: "body2", letterSpacing: -0.5, fontWeight: '600', alignSelf: 'center', flexGrow: isEditing ? 1 : 0, color: (theme) => theme.palette.text.primary, noWrap: true, sx: { minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, children: title })), isNotEditable ? null : isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$a, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$3, { className: "edit-icon", size: "small", onClick: handleEditClick, children: jsxRuntimeExports.jsx(default_1$f, {}) }))] }), jsxRuntimeExports.jsx(Box$2, { width: isEditing ? '100%' : '50%', position: "relative", children: isEditing && inputType === 'text' ? (jsxRuntimeExports.jsx(TextField$1, { value: textValue, onChange: handleInputChange, variant: "standard", size: "small", sx: { width: '100%' } })) : isEditing && (inputType === 'select' || inputType === 'selectMembers') ? (jsxRuntimeExports.jsxs(Select$2, { value: selectValue, onChange: handleSelectChange, variant: "standard", size: "small", sx: { width: '100%' }, children: [props.entityType === 'contact' ? (jsxRuntimeExports.jsx(MenuItem$2, { value: "", children: t('conversations.contactDetails.contactInfo.emptySelection') })) : null, options.map((option, index) => (jsxRuntimeExports.jsx(MenuItem$2, { value: option.id, children: props.entityType === 'contact'
53372
+ }, children: title }) })) : (jsxRuntimeExports.jsx(Typography$2, { ref: titleRef, component: "span", variant: "body2", letterSpacing: -0.5, fontWeight: '600', alignSelf: 'center', flexGrow: isEditing ? 1 : 0, color: (theme) => theme.palette.text.primary, noWrap: true, sx: { minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, children: title })), isNotEditable ? null : isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$b, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$3, { className: "edit-icon", size: "small", onClick: handleEditClick, children: jsxRuntimeExports.jsx(default_1$g, {}) }))] }), jsxRuntimeExports.jsx(Box$2, { width: isEditing ? '100%' : '50%', position: "relative", children: isEditing && inputType === 'text' ? (jsxRuntimeExports.jsx(TextField$1, { value: textValue, onChange: handleInputChange, variant: "standard", size: "small", sx: { width: '100%' } })) : isEditing && (inputType === 'select' || inputType === 'selectMembers') ? (jsxRuntimeExports.jsxs(Select$2, { value: selectValue, onChange: handleSelectChange, variant: "standard", size: "small", sx: { width: '100%' }, children: [props.entityType === 'contact' ? (jsxRuntimeExports.jsx(MenuItem$2, { value: "", children: t('conversations.contactDetails.contactInfo.emptySelection') })) : null, options.map((option, index) => (jsxRuntimeExports.jsx(MenuItem$2, { value: option.id, children: props.entityType === 'contact'
52967
53373
  ? option.name?.trim() || (isUserInfo(option) ? option.email : '') || 'Sin nombre'
52968
53374
  : option.name?.trim() || option.email || 'Sin nombre' }, index)))] })) : isEditing && isContactBirthdayProps(props) ? (jsxRuntimeExports.jsx(DateSelect, { birthDate: props.contact.field.birthDate, setBirthDate: props.contact.action.setBirthDate, dateFormat: props.dateFormat })) : !isEditing &&
52969
53375
  props.entityType === 'contact' &&
@@ -55020,7 +55426,7 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
55020
55426
  else
55021
55427
  return (jsxRuntimeExports.jsx(CustomPropertyInput, { type: type, nameKey: nameKey, value: value, onChange: handleInputChange }));
55022
55428
  };
55023
- return (jsxRuntimeExports.jsxs(ContactBox, { className: `fadein ${property.type === Contacts.ContactField_type.LONGTEXT ? 'contacts-col-12' : 'contacts-col-5'}`, children: [jsxRuntimeExports.jsxs(Box$2, { display: "flex", position: "relative", minHeight: "25px", alignItems: "center", children: [isTitleTruncated ? (jsxRuntimeExports.jsx(Tooltip, { title: getPropertyName(property.nameKey), arrow: true, children: jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) }) })) : (jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) })), isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$a, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$2, { className: "edit-icon", size: "small", onClick: toggleEdit, children: jsxRuntimeExports.jsx(default_1$f, {}) }))] }), jsxRuntimeExports.jsx(Box$2, { width: isEditing || property.type === Contacts.ContactField_type.LONGTEXT ? '100%' : '50%', position: "relative", children: isEditing ? (EditField()) : (jsxRuntimeExports.jsx(FieldValue, { children: hasValue(property?.value)
55429
+ return (jsxRuntimeExports.jsxs(ContactBox, { className: `fadein ${property.type === Contacts.ContactField_type.LONGTEXT ? 'contacts-col-12' : 'contacts-col-5'}`, children: [jsxRuntimeExports.jsxs(Box$2, { display: "flex", position: "relative", minHeight: "25px", alignItems: "center", children: [isTitleTruncated ? (jsxRuntimeExports.jsx(Tooltip, { title: getPropertyName(property.nameKey), arrow: true, children: jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) }) })) : (jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) })), isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$b, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$2, { className: "edit-icon", size: "small", onClick: toggleEdit, children: jsxRuntimeExports.jsx(default_1$g, {}) }))] }), jsxRuntimeExports.jsx(Box$2, { width: isEditing || property.type === Contacts.ContactField_type.LONGTEXT ? '100%' : '50%', position: "relative", children: isEditing ? (EditField()) : (jsxRuntimeExports.jsx(FieldValue, { children: hasValue(property?.value)
55024
55430
  ? property.type === Contacts.ContactField_type.DATERANGE
55025
55431
  ? (() => {
55026
55432
  if (typeof property.value === 'string') {
@@ -56697,7 +57103,7 @@ const StyledIconButton = styled$5(IconButton$2)({
56697
57103
  marginLeft: '15px',
56698
57104
  });
56699
57105
  const ContactMethod = ({ title, methodItems, isPhone, handleEdit, owner }) => {
56700
- return (jsxRuntimeExports.jsxs(StyledBox, { children: [jsxRuntimeExports.jsxs(HeaderBox, { children: [jsxRuntimeExports.jsx(StyledTypography, { children: title }), jsxRuntimeExports.jsx(StyledIconButton, { className: "edit-icon", size: "small", onClick: handleEdit, children: jsxRuntimeExports.jsx(default_1$f, { fontSize: "small", sx: { color: (theme) => theme.palette.secondary.main } }) })] }), jsxRuntimeExports.jsx(MethodItemsBox, { children: methodItems.map((item, index) => {
57106
+ return (jsxRuntimeExports.jsxs(StyledBox, { children: [jsxRuntimeExports.jsxs(HeaderBox, { children: [jsxRuntimeExports.jsx(StyledTypography, { children: title }), jsxRuntimeExports.jsx(StyledIconButton, { className: "edit-icon", size: "small", onClick: handleEdit, children: jsxRuntimeExports.jsx(default_1$g, { fontSize: "small", sx: { color: (theme) => theme.palette.secondary.main } }) })] }), jsxRuntimeExports.jsx(MethodItemsBox, { children: methodItems.map((item, index) => {
56701
57107
  if (isPhone) {
56702
57108
  return jsxRuntimeExports.jsx(ContactMethodPhoneItem, { item: item }, index);
56703
57109
  }
@@ -56876,7 +57282,7 @@ const OptionsMenu = ({ onDelete, addressData, handleLinkAccountSave, checked, on
56876
57282
  };
56877
57283
  return (jsxRuntimeExports.jsxs(Box$2, { children: [jsxRuntimeExports.jsx(IconButton$2, { "aria-controls": open ? 'basic-menu' : undefined, "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, onClick: handleClick, children: jsxRuntimeExports.jsx(default_1$5, {}) }), jsxRuntimeExports.jsxs(Menu$2, { id: "basic-menu", anchorEl: anchorEl, open: open, onClose: handleClose, MenuListProps: {
56878
57284
  'aria-labelledby': 'basic-button',
56879
- }, children: [jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleDelete, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: jsxRuntimeExports.jsx(default_1$d, { color: "error" }) }), jsxRuntimeExports.jsx(ListItemText, { children: t('global.delete') })] }), channelType === 5 && (jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleCheckWA, disabled: !checked, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: verifying ? (jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 })) : (jsxRuntimeExports.jsx(default_1$4, { sx: { color: 'green' } })) }), jsxRuntimeExports.jsx(ListItemText, { children: t('optionsMenu.verifyWspAccount') })] })), channelType === 21 && (jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleCheckRCS, disabled: !checked, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: verifying ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$3, {}) }), jsxRuntimeExports.jsx(ListItemText, { children: t('optionsMenu.verifyRCSAccount') })] }))] }), jsxRuntimeExports.jsx(Modal$2, { open: modalOpen, onClose: handleModalClose, "aria-labelledby": "modal-modal-title", "aria-describedby": "modal-modal-description", children: jsxRuntimeExports.jsx(Box$2, { sx: {
57285
+ }, children: [jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleDelete, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: jsxRuntimeExports.jsx(default_1$e, { color: "error" }) }), jsxRuntimeExports.jsx(ListItemText, { children: t('global.delete') })] }), channelType === 5 && (jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleCheckWA, disabled: !checked, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: verifying ? (jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 })) : (jsxRuntimeExports.jsx(default_1$4, { sx: { color: 'green' } })) }), jsxRuntimeExports.jsx(ListItemText, { children: t('optionsMenu.verifyWspAccount') })] })), channelType === 21 && (jsxRuntimeExports.jsxs(MenuItem$2, { onClick: handleCheckRCS, disabled: !checked, children: [jsxRuntimeExports.jsx(ListItemIcon, { children: verifying ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$3, {}) }), jsxRuntimeExports.jsx(ListItemText, { children: t('optionsMenu.verifyRCSAccount') })] }))] }), jsxRuntimeExports.jsx(Modal$2, { open: modalOpen, onClose: handleModalClose, "aria-labelledby": "modal-modal-title", "aria-describedby": "modal-modal-description", children: jsxRuntimeExports.jsx(Box$2, { sx: {
56880
57286
  position: 'absolute',
56881
57287
  top: '50%',
56882
57288
  left: '50%',
@@ -56956,7 +57362,7 @@ const NoteDeleteButton = (props) => {
56956
57362
  ...noteDeleteButtonStyle.container,
56957
57363
  }, children: [addressIsSaved && (jsxRuntimeExports.jsx(TextField$1, { size: "small", label: t('global.note'), variant: "outlined", onChange: (e) => props.handleNoteFieldChange(e, id, channelType), value: note, fullWidth: true, InputLabelProps: {
56958
57364
  shrink: true,
56959
- }, className: "contacts-smallInput", sx: noteDeleteButtonStyle.noteTextField })), jsxRuntimeExports.jsx(IconButton$2, { onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$a, { color: "primary" }) }), jsxRuntimeExports.jsx(OptionsMenu, { onDelete: () => props.handleDeleteAddress(id, channelType), addressData: props.addressData, handleLinkAccountSave: handleLinkAccountSave, checked: checked && !isSaving, onCheckContactAddress: async (type) => {
57365
+ }, className: "contacts-smallInput", sx: noteDeleteButtonStyle.noteTextField })), jsxRuntimeExports.jsx(IconButton$2, { onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(CircularProgress$2, { size: 24 }) : jsxRuntimeExports.jsx(default_1$b, { color: "primary" }) }), jsxRuntimeExports.jsx(OptionsMenu, { onDelete: () => props.handleDeleteAddress(id, channelType), addressData: props.addressData, handleLinkAccountSave: handleLinkAccountSave, checked: checked && !isSaving, onCheckContactAddress: async (type) => {
56960
57366
  if (!api)
56961
57367
  return null;
56962
57368
  try {
@@ -57478,7 +57884,7 @@ const ContactInformation = ({ ownerData }) => {
57478
57884
  .map((method) => (jsxRuntimeExports.jsx(ContactMethod, { handleEdit: () => openModal(method.modalTitle), title: method.title, methodItems: method.items, isPhone: method.isPhone, owner: ownerData }, method.key))) }) }), jsxRuntimeExports.jsx(EditModal, { open: isOpen, onClose: closeModal, title: title })] }));
57479
57885
  };
57480
57886
 
57481
- const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, }) => {
57887
+ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, onDirectionSearchClick, }) => {
57482
57888
  const commonProps = {
57483
57889
  baseUrl,
57484
57890
  spaceId,
@@ -57497,7 +57903,7 @@ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntity
57497
57903
  }), minWidth: "100%" }), jsxRuntimeExports.jsx(EntityInfoLabel, { entityType: entityType, title: t('conversations.contactDetails.country'), value: entityData[addressNumber]?.country ?? '', ...commonProps, constructUpdateObject: (value) => ({
57498
57904
  [addressNumber]: { country: value },
57499
57905
  }), minWidth: "100%" })] })] }));
57500
- return (jsxRuntimeExports.jsx(Section, { title: t('conversations.contactDetails.addressInformation'), children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-4", children: [jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address1", title: t('conversations.contactDetails.primaryAddress') }), jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address2", title: t('conversations.contactDetails.secondaryAddress') })] }) }));
57906
+ return (jsxRuntimeExports.jsx(Section, { title: t('conversations.contactDetails.addressInformation'), enableDirectionSearch: true, onDirectionSearchClick: onDirectionSearchClick, children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-4", children: [jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address1", title: t('conversations.contactDetails.primaryAddress') }), jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address2", title: t('conversations.contactDetails.secondaryAddress') })] }) }));
57501
57907
  };
57502
57908
 
57503
57909
  const useEntityUpdateSync = ({ entity, setEntity }) => {
@@ -57670,6 +58076,225 @@ const useModalCloseHandler = ({ onClose }) => {
57670
58076
  return handleClose;
57671
58077
  };
57672
58078
 
58079
+ const DEFAULT_PAGINATION = {
58080
+ format: 'IBusiness',
58081
+ total: 0,
58082
+ lastPage: 1,
58083
+ perPage: 10,
58084
+ order: 'ASC',
58085
+ orderColumn: 'Id',
58086
+ };
58087
+ const BusinessSelectEditor = ({ baseUrl, spaceId, contactId, initialBusiness, onBack, onEntityUpdated, currentUser, }) => {
58088
+ const t = useTranslationContext();
58089
+ const api = useEditContactApi();
58090
+ const timerRef = useRef(null);
58091
+ const abortRef = useRef(null);
58092
+ const [inputValue, setInputValue] = useState(() => initialBusiness?.businessName ?? '');
58093
+ const [hasSearched, setHasSearched] = useState(false);
58094
+ const [isLoading, setIsLoading] = useState(false);
58095
+ const [isLoadingTimer, setIsLoadingTimer] = useState(false);
58096
+ const [options, setOptions] = useState([]);
58097
+ const [selected, setSelected] = useState(initialBusiness ?? null);
58098
+ const [currentPage, setCurrentPage] = useState(1);
58099
+ const [isNextPage, setIsNextPage] = useState(false);
58100
+ const [allLoaded, setAllLoaded] = useState(false);
58101
+ const ownerValue = useMemo(() => {
58102
+ const displayName = currentUser?.display_name;
58103
+ const email = currentUser?.email;
58104
+ return String(displayName || email || '').trim();
58105
+ }, [currentUser]);
58106
+ useEffect(() => {
58107
+ return () => {
58108
+ if (timerRef.current) {
58109
+ clearTimeout(timerRef.current);
58110
+ timerRef.current = null;
58111
+ }
58112
+ abortRef.current?.abort();
58113
+ };
58114
+ }, []);
58115
+ useEffect(() => {
58116
+ setSelected(initialBusiness ?? null);
58117
+ setInputValue(initialBusiness?.businessName ?? '');
58118
+ }, [initialBusiness]);
58119
+ const resetSearchState = () => {
58120
+ abortRef.current?.abort();
58121
+ abortRef.current = null;
58122
+ if (timerRef.current) {
58123
+ clearTimeout(timerRef.current);
58124
+ timerRef.current = null;
58125
+ }
58126
+ setHasSearched(false);
58127
+ setAllLoaded(false);
58128
+ setCurrentPage(1);
58129
+ setIsNextPage(false);
58130
+ setOptions([]);
58131
+ };
58132
+ const mapBusinesses = (businesses) => {
58133
+ return businesses
58134
+ .filter((b) => Boolean(b?.id))
58135
+ .map((b) => ({ businessId: String(b.id), businessName: String(b.name ?? '') }));
58136
+ };
58137
+ const fetchPage = async ({ query, page }) => {
58138
+ if (!api)
58139
+ return;
58140
+ abortRef.current?.abort();
58141
+ const controller = new AbortController();
58142
+ abortRef.current = controller;
58143
+ setIsLoading(true);
58144
+ try {
58145
+ const pagination = {
58146
+ ...DEFAULT_PAGINATION,
58147
+ currentPage: page,
58148
+ filter: [
58149
+ {
58150
+ value: query,
58151
+ column: 'name',
58152
+ condition: '',
58153
+ },
58154
+ ],
58155
+ };
58156
+ const response = await api.fetchBusinessTableData({ pagination, signal: controller.signal });
58157
+ if (controller.signal.aborted)
58158
+ return;
58159
+ const next = mapBusinesses((response?.contactos ?? []));
58160
+ setHasSearched(true);
58161
+ const total = response?.paginacion?.total ?? 0;
58162
+ setOptions((prev) => {
58163
+ const merged = page === 1
58164
+ ? next
58165
+ : (() => {
58166
+ const byId = new Map();
58167
+ for (const item of prev)
58168
+ byId.set(item.businessId, item);
58169
+ for (const item of next)
58170
+ byId.set(item.businessId, item);
58171
+ return Array.from(byId.values());
58172
+ })();
58173
+ if (total && merged.length >= total) {
58174
+ setAllLoaded(true);
58175
+ }
58176
+ return merged;
58177
+ });
58178
+ }
58179
+ finally {
58180
+ setIsLoading(false);
58181
+ setIsLoadingTimer(false);
58182
+ setIsNextPage(false);
58183
+ }
58184
+ };
58185
+ const handleQueryChanged = (value) => {
58186
+ resetSearchState();
58187
+ if (!value)
58188
+ return;
58189
+ if (timerRef.current) {
58190
+ clearTimeout(timerRef.current);
58191
+ timerRef.current = null;
58192
+ }
58193
+ setIsLoadingTimer(true);
58194
+ timerRef.current = setTimeout(() => {
58195
+ void fetchPage({ query: value, page: 1 });
58196
+ }, 800);
58197
+ };
58198
+ const handleScroll = (e) => {
58199
+ const element = e.target;
58200
+ const bottom = element.scrollHeight - element.scrollTop - element.clientHeight < 1;
58201
+ if (!bottom)
58202
+ return;
58203
+ if (allLoaded)
58204
+ return;
58205
+ if (isLoading)
58206
+ return;
58207
+ if (!inputValue)
58208
+ return;
58209
+ const nextPage = currentPage + 1;
58210
+ setIsNextPage(true);
58211
+ setCurrentPage(nextPage);
58212
+ void fetchPage({ query: inputValue, page: nextPage });
58213
+ };
58214
+ const handleCreateBusiness = async () => {
58215
+ if (!api)
58216
+ return;
58217
+ if (!ownerValue)
58218
+ return;
58219
+ const name = String(inputValue ?? '').trim();
58220
+ if (!name)
58221
+ return;
58222
+ setIsLoading(true);
58223
+ try {
58224
+ const business = {
58225
+ name,
58226
+ owner: ownerValue,
58227
+ imageUrl: '',
58228
+ members: [],
58229
+ tags: [],
58230
+ properties: [],
58231
+ address1: {
58232
+ street: '',
58233
+ city: '',
58234
+ state: '',
58235
+ zipcode: '',
58236
+ country: '',
58237
+ },
58238
+ address2: {
58239
+ street: '',
58240
+ city: '',
58241
+ state: '',
58242
+ zipcode: '',
58243
+ country: '',
58244
+ },
58245
+ };
58246
+ const created = await api.createBusiness({ business });
58247
+ const createdOption = {
58248
+ businessId: String(created.id ?? ''),
58249
+ businessName: String(created.name ?? name),
58250
+ };
58251
+ setOptions([createdOption]);
58252
+ setSelected(createdOption);
58253
+ setHasSearched(true);
58254
+ }
58255
+ finally {
58256
+ setIsLoading(false);
58257
+ }
58258
+ };
58259
+ const handleSave = async () => {
58260
+ if (!baseUrl || !spaceId)
58261
+ return;
58262
+ if (!contactId)
58263
+ return;
58264
+ const businessId = selected?.businessId ?? '';
58265
+ const updated = await updateEntity({
58266
+ baseUrl,
58267
+ spaceId,
58268
+ entityType: 'contact',
58269
+ entityId: contactId,
58270
+ body: {
58271
+ businessId,
58272
+ },
58273
+ });
58274
+ onEntityUpdated?.(updated);
58275
+ onBack();
58276
+ };
58277
+ const noOptionsNode = hasSearched && options.length === 0 && inputValue ? (jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { px: 1, py: 0.5 }, children: [jsxRuntimeExports.jsx(Typography$2, { variant: "body2", children: t('global.noOptions') }), jsxRuntimeExports.jsx(LoadingButton$1, { size: "small", variant: "contained", onClick: handleCreateBusiness, loading: isLoading, disabled: isLoading || !ownerValue, children: t('global.createNew') })] })) : (jsxRuntimeExports.jsx(Typography$2, { variant: "body2", children: t('global.noOptions') }));
58278
+ const isSavingDisabled = !contactId || !baseUrl || !spaceId;
58279
+ return (jsxRuntimeExports.jsxs(Box$2, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(Stack$2, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(IconButton$2, { size: "small", onClick: onBack, "aria-label": t('global.back'), children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(Typography$2, { variant: "subtitle1", children: t('conversations.contactDetails.business') }), jsxRuntimeExports.jsx(Box$2, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: handleSave, loading: false, disabled: isSavingDisabled, children: t('global.save') })] }), jsxRuntimeExports.jsxs(Box$2, { sx: { position: 'relative' }, children: [isLoading || isLoadingTimer || isNextPage ? (jsxRuntimeExports.jsx(Box$2, { sx: { position: 'absolute', left: 0, right: 0, top: 0 }, children: jsxRuntimeExports.jsx(LinearProgress, { sx: { borderRadius: 1 } }) })) : null, jsxRuntimeExports.jsx(Autocomplete, { fullWidth: true, disablePortal: true, value: selected, onChange: (event, newValue) => {
58280
+ setSelected(newValue);
58281
+ }, inputValue: inputValue, onInputChange: (event, newValue, reason) => {
58282
+ setInputValue(newValue);
58283
+ if (reason !== 'input')
58284
+ return;
58285
+ handleQueryChanged(newValue);
58286
+ }, options: options, getOptionLabel: (option) => option?.businessName ?? '', isOptionEqualToValue: (opt, val) => opt.businessId === val.businessId, noOptionsText: noOptionsNode, renderInput: (params) => (jsxRuntimeExports.jsx(TextField$1, { ...params, size: "small", label: t('conversations.contactDetails.business'), placeholder: t('global.noValue'), InputProps: {
58287
+ ...params.InputProps,
58288
+ endAdornment: (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [isLoading || isLoadingTimer ? (jsxRuntimeExports.jsx(CircularProgress$2, { size: 18, sx: { mr: 1 } })) : null, params.InputProps.endAdornment] })),
58289
+ } })), ListboxProps: {
58290
+ sx: {
58291
+ maxHeight: 240,
58292
+ overflowY: 'auto',
58293
+ },
58294
+ onScroll: handleScroll,
58295
+ } })] })] }));
58296
+ };
58297
+
57673
58298
  const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, language = 'en', navigate, }) => {
57674
58299
  const { t: i18nT, i18n } = useTranslation();
57675
58300
  const modalContentRef = useRef(null);
@@ -57740,20 +58365,29 @@ const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, lang
57740
58365
  top: 5,
57741
58366
  color: (theme) => theme.palette.grey[500],
57742
58367
  zIndex: 1,
57743
- }, size: "small", children: jsxRuntimeExports.jsx(default_1$g, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(Box$2, { sx: {
58368
+ }, size: "small", children: jsxRuntimeExports.jsx(default_1$h, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(Box$2, { sx: {
57744
58369
  display: 'flex',
57745
58370
  justifyContent: 'center',
57746
58371
  alignItems: 'center',
57747
58372
  minHeight: 220,
57748
- }, children: jsxRuntimeExports.jsx(CircularProgress$2, {}) })) : state.error ? (jsxRuntimeExports.jsx(Box$2, { sx: { mb: 2 }, children: "Failed to load contact" })) : state.contactData ? (jsxRuntimeExports.jsx(EditEntityProvider, { entityType: selectors.contactType === 'business' ? 'business' : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, children: jsxRuntimeExports.jsxs(Box$2, { sx: { position: 'relative', height: '100%' }, children: [jsxRuntimeExports.jsx(Fade$2, { in: view === 'main', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsxs(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Header, { imgUrl: image.imageUrl, displayName: selectors.displayName, tags: selectors.tags, onEditTags: () => {
57749
- setView('tags');
57750
- }, onUploadPhoto: image.action.uploadImage, onPhotoFileChange: image.inputAtributes.onChange, photoInputRef: image.inputAtributes.ref, isUploadingPhoto: image.isUploading, onDeletePhoto: image.action.deleteImage, isDeletingPhoto: image.isDeleting, contactType: selectors.contactType, entityId: state.contactData?.id, firstName: selectors.isContact ? state.contactData.firstName : undefined, lastName: selectors.isContact ? state.contactData.lastName : undefined, name: selectors.isBusiness ? state.contactData.name : undefined, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsxs(Box$2, { sx: { px: 1, pb: 2 }, children: [jsxRuntimeExports.jsx(General, { dateFormat: selectors.userTrii?.regCon_dateFormat || 'MM/dd/yyyy', entityType: selectors.contactType === 'contact' ||
57751
- selectors.contactType === 'business'
57752
- ? selectors.contactType
57753
- : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
57754
- selectors.contactType === 'business'
57755
- ? selectors.contactType
57756
- : 'contact', entityData: state.contactData, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsx(ContactInformation, { ownerData: state.contactData })] })] }) }), jsxRuntimeExports.jsx(Fade$2, { in: view === 'tags', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(TagsEditor, { value: draftLabels, options: labelsOptions, onChange: setDraftLabels, onBack: () => setView('main'), onSave: handleSaveTags, isSaving: isSavingTags, onCreateNew: handleCreateLabel, isCreatingNew: isCreatingLabel, popperContainer: modalContentRef.current }) }) })] }) })) : null] }) }) }) }) }) }));
58373
+ }, children: jsxRuntimeExports.jsx(CircularProgress$2, {}) })) : state.error ? (jsxRuntimeExports.jsx(Box$2, { sx: { mb: 2 }, children: "Failed to load contact" })) : state.contactData ? (jsxRuntimeExports.jsx(EditContactViewProvider, { value: { view, setView }, children: jsxRuntimeExports.jsx(EditEntityProvider, { entityType: selectors.contactType === 'business' ? 'business' : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, children: jsxRuntimeExports.jsxs(Box$2, { sx: { position: 'relative', height: '100%' }, children: [jsxRuntimeExports.jsx(Fade$2, { in: view === 'main', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsxs(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Header, { imgUrl: image.imageUrl, displayName: selectors.displayName, tags: selectors.tags, onEditTags: () => {
58374
+ setView('tags');
58375
+ }, onUploadPhoto: image.action.uploadImage, onPhotoFileChange: image.inputAtributes.onChange, photoInputRef: image.inputAtributes.ref, isUploadingPhoto: image.isUploading, onDeletePhoto: image.action.deleteImage, isDeletingPhoto: image.isDeleting, contactType: selectors.contactType, entityId: state.contactData?.id, firstName: selectors.isContact
58376
+ ? state.contactData.firstName
58377
+ : undefined, lastName: selectors.isContact
58378
+ ? state.contactData.lastName
58379
+ : undefined, name: selectors.isBusiness ? state.contactData.name : undefined, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsxs(Box$2, { sx: { px: 1, pb: 2 }, children: [jsxRuntimeExports.jsx(General, { dateFormat: selectors.userTrii?.regCon_dateFormat || 'MM/dd/yyyy', entityType: selectors.contactType === 'contact' ||
58380
+ selectors.contactType === 'business'
58381
+ ? selectors.contactType
58382
+ : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
58383
+ selectors.contactType === 'business'
58384
+ ? selectors.contactType
58385
+ : 'contact', entityData: state.contactData, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, onDirectionSearchClick: () => setView('searchLocation') }), jsxRuntimeExports.jsx(ContactInformation, { ownerData: state.contactData })] })] }) }), jsxRuntimeExports.jsx(Fade$2, { in: view === 'searchLocation', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(SearchLocationEditor, { baseUrl: baseUrl, spaceId: spaceId, entityType: selectors.contactType === 'business' ? 'business' : 'contact', entityId: String(state.contactData.id), onBack: () => setView('main'), onEntityUpdated: handleEntityUpdated }) }) }), jsxRuntimeExports.jsx(Fade$2, { in: view === 'tags', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(TagsEditor, { value: draftLabels, options: labelsOptions, onChange: setDraftLabels, onBack: () => setView('main'), onSave: handleSaveTags, isSaving: isSavingTags, onCreateNew: handleCreateLabel, isCreatingNew: isCreatingLabel, popperContainer: modalContentRef.current }) }) }), jsxRuntimeExports.jsx(Fade$2, { in: view === 'businessSelect', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(Box$2, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(BusinessSelectEditor, { baseUrl: baseUrl, spaceId: spaceId, contactId: String(state.contactData.id), initialBusiness: selectors.isContact && state.contactData?.businessId
58386
+ ? {
58387
+ businessId: String(state.contactData.businessId),
58388
+ businessName: String(state.contactData.businessName ?? ''),
58389
+ }
58390
+ : null, onBack: () => setView('main'), onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }) }) })] }) }) })) : null] }) }) }) }) }) }));
57757
58391
  };
57758
58392
 
57759
58393
  export { ContactInfoPopup, EditContactModal };