@trii/components 2.0.48 → 2.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/dist/cjs/index.js +789 -147
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/BusinessSelect/BusinessSelect.d.ts +6 -0
  4. package/dist/cjs/types/BusinessSelect/components/BusinessSearchBar/BusinessSearchBar.d.ts +6 -0
  5. package/dist/cjs/types/BusinessSelect/components/BusinessSearchBar/index.d.ts +1 -0
  6. package/dist/cjs/types/BusinessSelect/components/BusinessSearchResults/BusinessSearchResults.d.ts +13 -0
  7. package/dist/cjs/types/BusinessSelect/components/BusinessSearchResults/index.d.ts +1 -0
  8. package/dist/cjs/types/BusinessSelect/components/index.d.ts +2 -0
  9. package/dist/cjs/types/BusinessSelect/index.d.ts +1 -0
  10. package/dist/cjs/types/BusinessSelect/types/index.d.ts +4 -0
  11. package/dist/cjs/types/BusinessSelectModal/BusinessSelectModal.d.ts +5 -0
  12. package/dist/cjs/types/BusinessSelectModal/index.d.ts +1 -0
  13. package/dist/cjs/types/SearchLocationModal/SearchLocationModal.d.ts +26 -0
  14. package/dist/cjs/types/SearchLocationModal/components/SearchLocationInput/index.d.ts +1 -0
  15. package/dist/cjs/types/SearchLocationModal/components/index.d.ts +1 -0
  16. package/dist/cjs/types/SearchLocationModal/googleMapsUtils.d.ts +20 -0
  17. package/dist/cjs/types/SearchLocationModal/index.d.ts +1 -0
  18. package/dist/cjs/types/components/EditContactModal/components/BusinessSelect/BusinessSelectEditor.d.ts +16 -0
  19. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  20. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  21. package/dist/cjs/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  22. package/dist/cjs/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  23. package/dist/cjs/types/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +2 -1
  24. package/dist/cjs/types/components/EditContactModal/context/EditContactApiContext.d.ts +20 -0
  25. package/dist/cjs/types/components/EditContactModal/context/EditContactViewContext.d.ts +8 -0
  26. package/dist/cjs/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +2 -2
  27. package/dist/cjs/types/components/EditContactModal/layout/Section.d.ts +3 -1
  28. package/dist/cjs/types/components/EditContactModal/services/api.d.ts +47 -0
  29. package/dist/cjs/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +15 -0
  30. package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
  31. package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
  32. package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
  33. package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
  34. package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
  35. package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
  36. package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
  37. package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
  38. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +8 -0
  39. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +7 -0
  40. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
  41. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
  42. package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
  43. package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
  44. package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
  45. package/dist/cjs/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
  46. package/dist/cjs/types/src/components/ContactInfoPopup/index.d.ts +1 -0
  47. package/dist/cjs/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
  48. package/dist/cjs/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
  49. package/dist/cjs/types/src/components/EditContactModal/EditContactModal.d.ts +14 -0
  50. package/dist/cjs/types/src/components/EditContactModal/components/Header/Header.d.ts +23 -0
  51. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/AvatarWithActions/AvatarWithActions.d.ts +11 -0
  52. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
  53. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/Tags/Tags.d.ts +7 -0
  54. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/Tags/index.d.ts +1 -0
  55. package/dist/cjs/types/src/components/EditContactModal/components/Header/components/index.d.ts +2 -0
  56. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  57. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  58. package/dist/cjs/types/src/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  59. package/dist/cjs/types/src/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +11 -0
  60. package/dist/cjs/types/src/components/EditContactModal/components/Section/AddressInformation/index.d.ts +1 -0
  61. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/ContactInformation.d.ts +7 -0
  62. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +11 -0
  63. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/ContactMethodItem.d.ts +8 -0
  64. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/index.d.ts +1 -0
  65. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/ContactMethodPhoneItem.d.ts +6 -0
  66. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/index.d.ts +1 -0
  67. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/utils/phone.d.ts +5 -0
  68. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/index.d.ts +2 -0
  69. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/index.d.ts +1 -0
  70. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +8 -0
  71. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/Mails.d.ts +8 -0
  72. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/Body.d.ts +7 -0
  73. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/Mail.d.ts +7 -0
  74. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/index.d.ts +1 -0
  75. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/style.d.ts +19 -0
  76. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/index.d.ts +1 -0
  77. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/index.d.ts +1 -0
  78. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/index.d.ts +1 -0
  79. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/index.d.ts +1 -0
  80. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/Phones.d.ts +8 -0
  81. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/Body.d.ts +7 -0
  82. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/Phone.d.ts +7 -0
  83. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/CountrySelect.d.ts +2 -0
  84. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/index.d.ts +1 -0
  85. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/style.d.ts +7 -0
  86. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/utils/countryList.d.ts +5 -0
  87. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/OptionsMenu.d.ts +17 -0
  88. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/index.d.ts +1 -0
  89. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/WhatsAppToggle.d.ts +2 -0
  90. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/index.d.ts +1 -0
  91. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/style.d.ts +8 -0
  92. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/index.d.ts +3 -0
  93. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/index.d.ts +1 -0
  94. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/style.d.ts +15 -0
  95. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/index.d.ts +1 -0
  96. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/index.d.ts +1 -0
  97. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/index.d.ts +1 -0
  98. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/index.d.ts +1 -0
  99. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/RCSs.d.ts +8 -0
  100. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/Body.d.ts +7 -0
  101. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/RCS.d.ts +7 -0
  102. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/index.d.ts +1 -0
  103. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/style.d.ts +19 -0
  104. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/index.d.ts +1 -0
  105. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/index.d.ts +1 -0
  106. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/index.d.ts +1 -0
  107. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/index.d.ts +1 -0
  108. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/Whatsapps.d.ts +8 -0
  109. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/Body.d.ts +7 -0
  110. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/Whatsapp.d.ts +7 -0
  111. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/index.d.ts +1 -0
  112. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/style.d.ts +19 -0
  113. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/index.d.ts +1 -0
  114. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/index.d.ts +1 -0
  115. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/index.d.ts +1 -0
  116. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/index.d.ts +1 -0
  117. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/index.d.ts +4 -0
  118. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/index.d.ts +1 -0
  119. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +13 -0
  120. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/index.d.ts +1 -0
  121. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/style.d.ts +3 -0
  122. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.d.ts +11 -0
  123. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/Body.d.ts +10 -0
  124. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/Ims.d.ts +10 -0
  125. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/index.d.ts +1 -0
  126. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +7 -0
  127. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/index.d.ts +1 -0
  128. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/index.d.ts +1 -0
  129. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/index.d.ts +1 -0
  130. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.d.ts +1 -0
  131. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/types/IMS.d.ts +2 -0
  132. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +13 -0
  133. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/index.d.ts +1 -0
  134. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/style.d.ts +3 -0
  135. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/SubsectionHeader.d.ts +5 -0
  136. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/index.d.ts +1 -0
  137. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/SubsectionHeaderWithButton.d.ts +6 -0
  138. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/index.d.ts +1 -0
  139. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/style.d.ts +8 -0
  140. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +5 -0
  141. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +5 -0
  142. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/index.d.ts +1 -0
  143. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/style.d.ts +15 -0
  144. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/index.d.ts +1 -0
  145. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/index.d.ts +1 -0
  146. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/style.d.ts +6 -0
  147. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.d.ts +10 -0
  148. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +6 -0
  149. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/index.d.ts +1 -0
  150. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +12 -0
  151. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/InformationItemInputsContainer.d.ts +6 -0
  152. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/index.d.ts +1 -0
  153. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -0
  154. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/NoteDeleteButton.d.ts +18 -0
  155. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/index.d.ts +1 -0
  156. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +13 -0
  157. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/StatusAdornment.d.ts +7 -0
  158. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +5 -0
  159. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/index.d.ts +1 -0
  160. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/index.d.ts +1 -0
  161. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/index.d.ts +1 -0
  162. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/SubsectionBodyContainer.d.ts +7 -0
  163. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/index.d.ts +1 -0
  164. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +14 -0
  165. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/index.d.ts +5 -0
  166. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/CheckContactAddressData.d.ts +5 -0
  167. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/ContactAddress.d.ts +2 -0
  168. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/components/index.d.ts +2 -0
  169. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/hooks/useEditModal.d.ts +8 -0
  170. package/dist/cjs/types/src/components/EditContactModal/components/Section/ContactInformation/index.d.ts +1 -0
  171. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/General.d.ts +14 -0
  172. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +8 -0
  173. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +8 -0
  174. package/dist/cjs/types/src/components/EditContactModal/components/Section/General/index.d.ts +1 -0
  175. package/dist/cjs/types/src/components/EditContactModal/components/Section/index.d.ts +3 -0
  176. package/dist/cjs/types/src/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +6 -0
  177. package/dist/cjs/types/src/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +14 -0
  178. package/dist/cjs/types/src/components/EditContactModal/context/EditContactApiContext.d.ts +171 -0
  179. package/dist/cjs/types/src/components/EditContactModal/context/EditEntityContext.d.ts +34 -0
  180. package/dist/cjs/types/src/components/EditContactModal/context/NavigateContext.d.ts +9 -0
  181. package/dist/cjs/types/src/components/EditContactModal/context/TranslationContext.d.ts +9 -0
  182. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditBusiness/types/UseEditBusiness.d.ts +55 -0
  183. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.d.ts +10 -0
  184. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +60 -0
  185. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContact/useEditContact.d.ts +10 -0
  186. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContactMethods.d.ts +52 -0
  187. package/dist/cjs/types/src/components/EditContactModal/hooks/useEditContactModalController.d.ts +44 -0
  188. package/dist/cjs/types/src/components/EditContactModal/hooks/useEntityUpdateSync.d.ts +8 -0
  189. package/dist/cjs/types/src/components/EditContactModal/hooks/useField.d.ts +18 -0
  190. package/dist/cjs/types/src/components/EditContactModal/hooks/useImage.d.ts +27 -0
  191. package/dist/cjs/types/src/components/EditContactModal/hooks/useModalCloseHandler.d.ts +6 -0
  192. package/dist/cjs/types/src/components/EditContactModal/hooks/useMultipleSelect.d.ts +20 -0
  193. package/dist/cjs/types/src/components/EditContactModal/hooks/useSelect.d.ts +13 -0
  194. package/dist/cjs/types/src/components/EditContactModal/hooks/useTagsEditorController.d.ts +26 -0
  195. package/dist/cjs/types/src/components/EditContactModal/hooks/utils/editContactHelper.d.ts +6 -0
  196. package/dist/cjs/types/src/components/EditContactModal/index.d.ts +1 -0
  197. package/dist/cjs/types/src/components/EditContactModal/layout/Section.d.ts +9 -0
  198. package/dist/cjs/types/src/components/EditContactModal/layout/SectionContent.d.ts +7 -0
  199. package/dist/cjs/types/src/components/EditContactModal/layout/index.d.ts +2 -0
  200. package/dist/cjs/types/src/components/EditContactModal/services/api.d.ts +141 -0
  201. package/dist/cjs/types/src/components/EditContactModal/services/http.d.ts +23 -0
  202. package/dist/cjs/types/src/components/EditContactModal/services/urls.d.ts +6 -0
  203. package/dist/cjs/types/src/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +16 -0
  204. package/dist/cjs/types/src/components/EditContactModal/shared/BusinessInfoLabel/index.d.ts +1 -0
  205. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +29 -0
  206. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/DateSelect.d.ts +8 -0
  207. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/index.d.ts +1 -0
  208. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +1 -0
  209. package/dist/cjs/types/src/components/EditContactModal/shared/ContactInfoLabel/index.d.ts +1 -0
  210. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +18 -0
  211. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/CustomPropertyDatePicker.d.ts +8 -0
  212. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/index.d.ts +1 -0
  213. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/CustomPropertyDateRangePicker.d.ts +9 -0
  214. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/index.d.ts +1 -0
  215. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/CustomPropertyInput.d.ts +6 -0
  216. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/index.d.ts +1 -0
  217. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/types/CustomPropertyInputProps.d.ts +6 -0
  218. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/CustomPropertyOptionsSelect.d.ts +7 -0
  219. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/index.d.ts +1 -0
  220. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/CustomPropertyTimePicker.d.ts +8 -0
  221. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/index.d.ts +1 -0
  222. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/CustomPropertyTimeRangePicker.d.ts +9 -0
  223. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/index.d.ts +1 -0
  224. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts +6 -0
  225. package/dist/cjs/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/index.d.ts +1 -0
  226. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +40 -0
  227. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/SelectBusinessLabel.d.ts +7 -0
  228. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/index.d.ts +1 -0
  229. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/components/index.d.ts +1 -0
  230. package/dist/cjs/types/src/components/EditContactModal/shared/EntityInfoLabel/index.d.ts +1 -0
  231. package/dist/cjs/types/src/components/EditContactModal/shared/index.d.ts +3 -0
  232. package/dist/cjs/types/src/components/EditContactModal/types/is-business.typeguard.d.ts +7 -0
  233. package/dist/cjs/types/src/components/EditContactModal/types/is-contact.typeguard.d.ts +7 -0
  234. package/dist/cjs/types/src/components/EditContactModal/utils/contactHelper.d.ts +13 -0
  235. package/dist/cjs/types/src/components/index.d.ts +2 -0
  236. package/dist/cjs/types/src/i18n/config.d.ts +2 -0
  237. package/dist/cjs/types/src/i18n/index.d.ts +2 -0
  238. package/dist/cjs/types/src/index.d.ts +2 -0
  239. package/dist/esm/index.js +791 -149
  240. package/dist/esm/index.js.map +1 -1
  241. package/dist/esm/types/BusinessSelect/BusinessSelect.d.ts +6 -0
  242. package/dist/esm/types/BusinessSelect/components/BusinessSearchBar/BusinessSearchBar.d.ts +6 -0
  243. package/dist/esm/types/BusinessSelect/components/BusinessSearchBar/index.d.ts +1 -0
  244. package/dist/esm/types/BusinessSelect/components/BusinessSearchResults/BusinessSearchResults.d.ts +13 -0
  245. package/dist/esm/types/BusinessSelect/components/BusinessSearchResults/index.d.ts +1 -0
  246. package/dist/esm/types/BusinessSelect/components/index.d.ts +2 -0
  247. package/dist/esm/types/BusinessSelect/index.d.ts +1 -0
  248. package/dist/esm/types/BusinessSelect/types/index.d.ts +4 -0
  249. package/dist/esm/types/BusinessSelectModal/BusinessSelectModal.d.ts +5 -0
  250. package/dist/esm/types/BusinessSelectModal/index.d.ts +1 -0
  251. package/dist/esm/types/SearchLocationModal/SearchLocationModal.d.ts +26 -0
  252. package/dist/esm/types/SearchLocationModal/components/SearchLocationInput/index.d.ts +1 -0
  253. package/dist/esm/types/SearchLocationModal/components/index.d.ts +1 -0
  254. package/dist/esm/types/SearchLocationModal/googleMapsUtils.d.ts +20 -0
  255. package/dist/esm/types/SearchLocationModal/index.d.ts +1 -0
  256. package/dist/esm/types/components/EditContactModal/components/BusinessSelect/BusinessSelectEditor.d.ts +16 -0
  257. package/dist/esm/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  258. package/dist/esm/types/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  259. package/dist/esm/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  260. package/dist/esm/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  261. package/dist/esm/types/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +2 -1
  262. package/dist/esm/types/components/EditContactModal/context/EditContactApiContext.d.ts +20 -0
  263. package/dist/esm/types/components/EditContactModal/context/EditContactViewContext.d.ts +8 -0
  264. package/dist/esm/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +2 -2
  265. package/dist/esm/types/components/EditContactModal/layout/Section.d.ts +3 -1
  266. package/dist/esm/types/components/EditContactModal/services/api.d.ts +47 -0
  267. package/dist/esm/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +15 -0
  268. package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
  269. package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
  270. package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
  271. package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
  272. package/dist/esm/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
  273. package/dist/esm/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
  274. package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
  275. package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
  276. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +8 -0
  277. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +7 -0
  278. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
  279. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
  280. package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
  281. package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
  282. package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
  283. package/dist/esm/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
  284. package/dist/esm/types/src/components/ContactInfoPopup/index.d.ts +1 -0
  285. package/dist/esm/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
  286. package/dist/esm/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
  287. package/dist/esm/types/src/components/EditContactModal/EditContactModal.d.ts +14 -0
  288. package/dist/esm/types/src/components/EditContactModal/components/Header/Header.d.ts +23 -0
  289. package/dist/esm/types/src/components/EditContactModal/components/Header/components/AvatarWithActions/AvatarWithActions.d.ts +11 -0
  290. package/dist/esm/types/src/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
  291. package/dist/esm/types/src/components/EditContactModal/components/Header/components/Tags/Tags.d.ts +7 -0
  292. package/dist/esm/types/src/components/EditContactModal/components/Header/components/Tags/index.d.ts +1 -0
  293. package/dist/esm/types/src/components/EditContactModal/components/Header/components/index.d.ts +2 -0
  294. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
  295. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
  296. package/dist/esm/types/src/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
  297. package/dist/esm/types/src/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +11 -0
  298. package/dist/esm/types/src/components/EditContactModal/components/Section/AddressInformation/index.d.ts +1 -0
  299. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/ContactInformation.d.ts +7 -0
  300. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +11 -0
  301. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/ContactMethodItem.d.ts +8 -0
  302. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/index.d.ts +1 -0
  303. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/ContactMethodPhoneItem.d.ts +6 -0
  304. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/index.d.ts +1 -0
  305. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/utils/phone.d.ts +5 -0
  306. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/index.d.ts +2 -0
  307. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/index.d.ts +1 -0
  308. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +8 -0
  309. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/Mails.d.ts +8 -0
  310. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/Body.d.ts +7 -0
  311. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/Mail.d.ts +7 -0
  312. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/index.d.ts +1 -0
  313. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/style.d.ts +19 -0
  314. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/index.d.ts +1 -0
  315. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/index.d.ts +1 -0
  316. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/index.d.ts +1 -0
  317. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/index.d.ts +1 -0
  318. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/Phones.d.ts +8 -0
  319. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/Body.d.ts +7 -0
  320. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/Phone.d.ts +7 -0
  321. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/CountrySelect.d.ts +2 -0
  322. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/index.d.ts +1 -0
  323. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/style.d.ts +7 -0
  324. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/utils/countryList.d.ts +5 -0
  325. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/OptionsMenu.d.ts +17 -0
  326. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/index.d.ts +1 -0
  327. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/WhatsAppToggle.d.ts +2 -0
  328. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/index.d.ts +1 -0
  329. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/style.d.ts +8 -0
  330. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/index.d.ts +3 -0
  331. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/index.d.ts +1 -0
  332. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/style.d.ts +15 -0
  333. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/index.d.ts +1 -0
  334. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/index.d.ts +1 -0
  335. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/index.d.ts +1 -0
  336. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/index.d.ts +1 -0
  337. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/RCSs.d.ts +8 -0
  338. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/Body.d.ts +7 -0
  339. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/RCS.d.ts +7 -0
  340. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/index.d.ts +1 -0
  341. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/style.d.ts +19 -0
  342. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/index.d.ts +1 -0
  343. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/index.d.ts +1 -0
  344. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/index.d.ts +1 -0
  345. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/index.d.ts +1 -0
  346. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/Whatsapps.d.ts +8 -0
  347. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/Body.d.ts +7 -0
  348. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/Whatsapp.d.ts +7 -0
  349. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/index.d.ts +1 -0
  350. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/style.d.ts +19 -0
  351. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/index.d.ts +1 -0
  352. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/index.d.ts +1 -0
  353. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/index.d.ts +1 -0
  354. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/index.d.ts +1 -0
  355. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/index.d.ts +4 -0
  356. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/index.d.ts +1 -0
  357. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +13 -0
  358. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/index.d.ts +1 -0
  359. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/style.d.ts +3 -0
  360. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.d.ts +11 -0
  361. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/Body.d.ts +10 -0
  362. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/Ims.d.ts +10 -0
  363. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/index.d.ts +1 -0
  364. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +7 -0
  365. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/index.d.ts +1 -0
  366. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/index.d.ts +1 -0
  367. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/index.d.ts +1 -0
  368. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.d.ts +1 -0
  369. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/types/IMS.d.ts +2 -0
  370. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +13 -0
  371. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/index.d.ts +1 -0
  372. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/style.d.ts +3 -0
  373. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/SubsectionHeader.d.ts +5 -0
  374. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/index.d.ts +1 -0
  375. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/SubsectionHeaderWithButton.d.ts +6 -0
  376. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/index.d.ts +1 -0
  377. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/style.d.ts +8 -0
  378. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +5 -0
  379. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +5 -0
  380. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/index.d.ts +1 -0
  381. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/style.d.ts +15 -0
  382. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/index.d.ts +1 -0
  383. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/index.d.ts +1 -0
  384. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/style.d.ts +6 -0
  385. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.d.ts +10 -0
  386. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +6 -0
  387. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/index.d.ts +1 -0
  388. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +12 -0
  389. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/InformationItemInputsContainer.d.ts +6 -0
  390. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/index.d.ts +1 -0
  391. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -0
  392. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/NoteDeleteButton.d.ts +18 -0
  393. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/index.d.ts +1 -0
  394. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +13 -0
  395. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/StatusAdornment.d.ts +7 -0
  396. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +5 -0
  397. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/index.d.ts +1 -0
  398. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/index.d.ts +1 -0
  399. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/index.d.ts +1 -0
  400. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/SubsectionBodyContainer.d.ts +7 -0
  401. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/index.d.ts +1 -0
  402. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +14 -0
  403. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/index.d.ts +5 -0
  404. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/CheckContactAddressData.d.ts +5 -0
  405. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/ContactAddress.d.ts +2 -0
  406. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/components/index.d.ts +2 -0
  407. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/hooks/useEditModal.d.ts +8 -0
  408. package/dist/esm/types/src/components/EditContactModal/components/Section/ContactInformation/index.d.ts +1 -0
  409. package/dist/esm/types/src/components/EditContactModal/components/Section/General/General.d.ts +14 -0
  410. package/dist/esm/types/src/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +8 -0
  411. package/dist/esm/types/src/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +8 -0
  412. package/dist/esm/types/src/components/EditContactModal/components/Section/General/index.d.ts +1 -0
  413. package/dist/esm/types/src/components/EditContactModal/components/Section/index.d.ts +3 -0
  414. package/dist/esm/types/src/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +6 -0
  415. package/dist/esm/types/src/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +14 -0
  416. package/dist/esm/types/src/components/EditContactModal/context/EditContactApiContext.d.ts +171 -0
  417. package/dist/esm/types/src/components/EditContactModal/context/EditEntityContext.d.ts +34 -0
  418. package/dist/esm/types/src/components/EditContactModal/context/NavigateContext.d.ts +9 -0
  419. package/dist/esm/types/src/components/EditContactModal/context/TranslationContext.d.ts +9 -0
  420. package/dist/esm/types/src/components/EditContactModal/hooks/useEditBusiness/types/UseEditBusiness.d.ts +55 -0
  421. package/dist/esm/types/src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.d.ts +10 -0
  422. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +60 -0
  423. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContact/useEditContact.d.ts +10 -0
  424. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContactMethods.d.ts +52 -0
  425. package/dist/esm/types/src/components/EditContactModal/hooks/useEditContactModalController.d.ts +44 -0
  426. package/dist/esm/types/src/components/EditContactModal/hooks/useEntityUpdateSync.d.ts +8 -0
  427. package/dist/esm/types/src/components/EditContactModal/hooks/useField.d.ts +18 -0
  428. package/dist/esm/types/src/components/EditContactModal/hooks/useImage.d.ts +27 -0
  429. package/dist/esm/types/src/components/EditContactModal/hooks/useModalCloseHandler.d.ts +6 -0
  430. package/dist/esm/types/src/components/EditContactModal/hooks/useMultipleSelect.d.ts +20 -0
  431. package/dist/esm/types/src/components/EditContactModal/hooks/useSelect.d.ts +13 -0
  432. package/dist/esm/types/src/components/EditContactModal/hooks/useTagsEditorController.d.ts +26 -0
  433. package/dist/esm/types/src/components/EditContactModal/hooks/utils/editContactHelper.d.ts +6 -0
  434. package/dist/esm/types/src/components/EditContactModal/index.d.ts +1 -0
  435. package/dist/esm/types/src/components/EditContactModal/layout/Section.d.ts +9 -0
  436. package/dist/esm/types/src/components/EditContactModal/layout/SectionContent.d.ts +7 -0
  437. package/dist/esm/types/src/components/EditContactModal/layout/index.d.ts +2 -0
  438. package/dist/esm/types/src/components/EditContactModal/services/api.d.ts +141 -0
  439. package/dist/esm/types/src/components/EditContactModal/services/http.d.ts +23 -0
  440. package/dist/esm/types/src/components/EditContactModal/services/urls.d.ts +6 -0
  441. package/dist/esm/types/src/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +16 -0
  442. package/dist/esm/types/src/components/EditContactModal/shared/BusinessInfoLabel/index.d.ts +1 -0
  443. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +29 -0
  444. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/DateSelect.d.ts +8 -0
  445. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/index.d.ts +1 -0
  446. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +1 -0
  447. package/dist/esm/types/src/components/EditContactModal/shared/ContactInfoLabel/index.d.ts +1 -0
  448. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +18 -0
  449. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/CustomPropertyDatePicker.d.ts +8 -0
  450. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/index.d.ts +1 -0
  451. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/CustomPropertyDateRangePicker.d.ts +9 -0
  452. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/index.d.ts +1 -0
  453. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/CustomPropertyInput.d.ts +6 -0
  454. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/index.d.ts +1 -0
  455. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/types/CustomPropertyInputProps.d.ts +6 -0
  456. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/CustomPropertyOptionsSelect.d.ts +7 -0
  457. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/index.d.ts +1 -0
  458. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/CustomPropertyTimePicker.d.ts +8 -0
  459. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/index.d.ts +1 -0
  460. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/CustomPropertyTimeRangePicker.d.ts +9 -0
  461. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/index.d.ts +1 -0
  462. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts +6 -0
  463. package/dist/esm/types/src/components/EditContactModal/shared/EntityCustomFieldLabel/index.d.ts +1 -0
  464. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +40 -0
  465. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/SelectBusinessLabel.d.ts +7 -0
  466. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/index.d.ts +1 -0
  467. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/components/index.d.ts +1 -0
  468. package/dist/esm/types/src/components/EditContactModal/shared/EntityInfoLabel/index.d.ts +1 -0
  469. package/dist/esm/types/src/components/EditContactModal/shared/index.d.ts +3 -0
  470. package/dist/esm/types/src/components/EditContactModal/types/is-business.typeguard.d.ts +7 -0
  471. package/dist/esm/types/src/components/EditContactModal/types/is-contact.typeguard.d.ts +7 -0
  472. package/dist/esm/types/src/components/EditContactModal/utils/contactHelper.d.ts +13 -0
  473. package/dist/esm/types/src/components/index.d.ts +2 -0
  474. package/dist/esm/types/src/i18n/config.d.ts +2 -0
  475. package/dist/esm/types/src/i18n/index.d.ts +2 -0
  476. package/dist/esm/types/src/index.d.ts +2 -0
  477. package/package.json +1 -1
package/dist/cjs/index.js CHANGED
@@ -7421,21 +7421,21 @@ var styleFunctionSx = /*#__PURE__*/Object.freeze({
7421
7421
 
7422
7422
  var require$$8 = /*@__PURE__*/getAugmentedNamespace(styleFunctionSx);
7423
7423
 
7424
- var _interopRequireDefault$j = interopRequireDefaultExports;
7424
+ var _interopRequireDefault$k = interopRequireDefaultExports;
7425
7425
  Object.defineProperty(createStyled$3, "__esModule", {
7426
7426
  value: true
7427
7427
  });
7428
7428
  var _default = createStyled$3.default = createStyled$1;
7429
7429
  var shouldForwardProp_1 = createStyled$3.shouldForwardProp = shouldForwardProp$1;
7430
7430
  createStyled$3.systemDefaultTheme = void 0;
7431
- var _extends2 = _interopRequireDefault$j(require_extends());
7432
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault$j(requireObjectWithoutPropertiesLoose());
7431
+ var _extends2 = _interopRequireDefault$k(require_extends());
7432
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault$k(requireObjectWithoutPropertiesLoose());
7433
7433
  var _styledEngine$1 = _interopRequireWildcard$2(require$$1$1);
7434
7434
  var _deepmerge = require$$4;
7435
- var _capitalize = _interopRequireDefault$j(require$$5);
7436
- var _getDisplayName = _interopRequireDefault$j(require$$6);
7437
- var _createTheme = _interopRequireDefault$j(require$$7);
7438
- var _styleFunctionSx = _interopRequireDefault$j(require$$8);
7435
+ var _capitalize = _interopRequireDefault$k(require$$5);
7436
+ var _getDisplayName = _interopRequireDefault$k(require$$6);
7437
+ var _createTheme = _interopRequireDefault$k(require$$7);
7438
+ var _styleFunctionSx = _interopRequireDefault$k(require$$8);
7439
7439
  const _excluded$1v = ["ownerState"],
7440
7440
  _excluded2$d = ["variants"],
7441
7441
  _excluded3$4 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
@@ -7705,7 +7705,7 @@ var require$$1 = /*@__PURE__*/getAugmentedNamespace(formatMuiErrorMessage$1);
7705
7705
 
7706
7706
  var require$$2 = /*@__PURE__*/getAugmentedNamespace(clamp);
7707
7707
 
7708
- var _interopRequireDefault$i = interopRequireDefaultExports;
7708
+ var _interopRequireDefault$j = interopRequireDefaultExports;
7709
7709
  Object.defineProperty(colorManipulator, "__esModule", {
7710
7710
  value: true
7711
7711
  });
@@ -7727,8 +7727,8 @@ colorManipulator.private_safeEmphasize = private_safeEmphasize;
7727
7727
  colorManipulator.private_safeLighten = private_safeLighten;
7728
7728
  colorManipulator.recomposeColor = recomposeColor$1;
7729
7729
  colorManipulator.rgbToHex = rgbToHex;
7730
- var _formatMuiErrorMessage2 = _interopRequireDefault$i(require$$1);
7731
- var _clamp = _interopRequireDefault$i(require$$2);
7730
+ var _formatMuiErrorMessage2 = _interopRequireDefault$j(require$$1);
7731
+ var _clamp = _interopRequireDefault$j(require$$2);
7732
7732
  /* eslint-disable @typescript-eslint/naming-convention */
7733
7733
 
7734
7734
  /**
@@ -9094,27 +9094,27 @@ function requireCreateSvgIcon () {
9094
9094
  return createSvgIcon;
9095
9095
  }
9096
9096
 
9097
- var _interopRequireDefault$h = interopRequireDefaultExports;
9097
+ var _interopRequireDefault$i = interopRequireDefaultExports;
9098
9098
  Object.defineProperty(ArrowForward, "__esModule", {
9099
9099
  value: true
9100
9100
  });
9101
- var default_1$i = ArrowForward.default = void 0;
9102
- var _createSvgIcon$h = _interopRequireDefault$h(requireCreateSvgIcon());
9103
- var _jsxRuntime$h = jsxRuntimeExports;
9104
- default_1$i = ArrowForward.default = (0, _createSvgIcon$h.default)( /*#__PURE__*/(0, _jsxRuntime$h.jsx)("path", {
9101
+ var default_1$j = ArrowForward.default = void 0;
9102
+ var _createSvgIcon$i = _interopRequireDefault$i(requireCreateSvgIcon());
9103
+ var _jsxRuntime$i = jsxRuntimeExports;
9104
+ default_1$j = ArrowForward.default = (0, _createSvgIcon$i.default)( /*#__PURE__*/(0, _jsxRuntime$i.jsx)("path", {
9105
9105
  d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
9106
9106
  }), 'ArrowForward');
9107
9107
 
9108
9108
  var Message = {};
9109
9109
 
9110
- var _interopRequireDefault$g = interopRequireDefaultExports;
9110
+ var _interopRequireDefault$h = interopRequireDefaultExports;
9111
9111
  Object.defineProperty(Message, "__esModule", {
9112
9112
  value: true
9113
9113
  });
9114
- var default_1$h = Message.default = void 0;
9115
- var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
9116
- var _jsxRuntime$g = jsxRuntimeExports;
9117
- default_1$h = Message.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
9114
+ var default_1$i = Message.default = void 0;
9115
+ var _createSvgIcon$h = _interopRequireDefault$h(requireCreateSvgIcon());
9116
+ var _jsxRuntime$h = jsxRuntimeExports;
9117
+ default_1$i = Message.default = (0, _createSvgIcon$h.default)( /*#__PURE__*/(0, _jsxRuntime$h.jsx)("path", {
9118
9118
  d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"
9119
9119
  }), 'Message');
9120
9120
 
@@ -9194,7 +9194,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9194
9194
  handleNavigateToContacts(e);
9195
9195
  onClose();
9196
9196
  }
9197
- }, disabled: !contactId, "aria-label": "View contact details", children: jsxRuntimeExports.jsx(default_1$i, { fontSize: "small" }) }), jsxRuntimeExports.jsx(SmallIconButton, { color: "info", size: "small", onClick: (e) => {
9197
+ }, disabled: !contactId, "aria-label": "View contact details", children: jsxRuntimeExports.jsx(default_1$j, { fontSize: "small" }) }), jsxRuntimeExports.jsx(SmallIconButton, { color: "info", size: "small", onClick: (e) => {
9198
9198
  handleNavigateToConversations(e);
9199
9199
  onClose();
9200
9200
  }, onMouseDown: (e) => {
@@ -9203,7 +9203,7 @@ const Header$1 = ({ imgUrl, name, contactId, navigate, isLoading = false, onErro
9203
9203
  handleNavigateToConversations(e);
9204
9204
  onClose();
9205
9205
  }
9206
- }, "aria-label": "Go to conversations", children: jsxRuntimeExports.jsx(default_1$h, { fontSize: "small" }) })] }), isLoading ? (jsxRuntimeExports.jsx(LoadingContainer, { children: jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) })) : (jsxRuntimeExports.jsx(ContactAvatar, { src: imgUrl, alt: avatarAlt, onError: () => onError?.(new Error('Failed to load avatar')) })), jsxRuntimeExports.jsx(ContactName$1, { variant: "h6", title: displayName, children: displayName })] }));
9206
+ }, "aria-label": "Go to conversations", children: jsxRuntimeExports.jsx(default_1$i, { fontSize: "small" }) })] }), isLoading ? (jsxRuntimeExports.jsx(LoadingContainer, { children: jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) })) : (jsxRuntimeExports.jsx(ContactAvatar, { src: imgUrl, alt: avatarAlt, onError: () => onError?.(new Error('Failed to load avatar')) })), jsxRuntimeExports.jsx(ContactName$1, { variant: "h6", title: displayName, children: displayName })] }));
9207
9207
  };
9208
9208
 
9209
9209
  const Container$1 = material.styled(material.Box)({
@@ -15291,25 +15291,44 @@ const MembersSection = ({ contactData, title, navigate }) => {
15291
15291
  return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(SectionTitle, { gutterBottom: true, mt: 2, variant: "subtitle1", children: title }), contactData?.members.map((member) => (jsxRuntimeExports.jsx(MemberItem, { memberId: String(member.id), name: member.name, navigate: navigate }, member.id)))] }));
15292
15292
  };
15293
15293
 
15294
- var add$1 = "Add";
15295
- var close$1 = "Close";
15296
15294
  var labels$1 = "Labels";
15297
15295
  var phone$1 = "Phone";
15298
- var phones$1 = "Phones";
15299
- var number$1 = "Number";
15300
15296
  var business$1 = "Business";
15301
15297
  var businessMembers$1 = "Business Members";
15302
15298
  var properties$1 = "Properties";
15303
- var note$1 = "Note";
15304
15299
  var view$1 = "View";
15305
- var email$1 = "Email";
15306
15300
  var tags$1 = "Tags";
15307
15301
  var global$2 = {
15302
+ add: "Add",
15303
+ note: "Note",
15304
+ number: "Number",
15305
+ email: "Email",
15306
+ phones: "Phones",
15307
+ close: "Close",
15308
15308
  back: "Back",
15309
+ createNew: "Create new",
15310
+ "delete": "Delete",
15311
+ cancel: "Cancel",
15309
15312
  save: "Save",
15310
15313
  noOptions: "No options",
15311
15314
  noValue: "No value",
15312
- birthdate: "Birthdate"
15315
+ birthdate: "Birthdate",
15316
+ country: "Country",
15317
+ searchLocation: "Search location"
15318
+ };
15319
+ var searchLocationModal$1 = {
15320
+ searchAddress: "Search address",
15321
+ enterLocation: "Enter a location",
15322
+ city: "City",
15323
+ state: "State",
15324
+ postalCode: "Postal code",
15325
+ country: "Country",
15326
+ saveMainAddress: "Save main address",
15327
+ saveSecondaryAddress: "Save secondary address",
15328
+ loadingGoogleMaps: "Loading Google Maps...",
15329
+ googleMapsUnavailable: "Google Maps unavailable",
15330
+ googleMapsNotLoaded: "Google Maps not loaded",
15331
+ selectedPlaceNoLocation: "Selected place has no location data"
15313
15332
  };
15314
15333
  var avatar$1 = {
15315
15334
  upload: "Upload photo",
@@ -15344,44 +15363,58 @@ var conversations$1 = {
15344
15363
  }
15345
15364
  };
15346
15365
  var en = {
15347
- add: add$1,
15348
- close: close$1,
15349
15366
  labels: labels$1,
15350
15367
  phone: phone$1,
15351
- phones: phones$1,
15352
- number: number$1,
15353
15368
  business: business$1,
15354
15369
  businessMembers: businessMembers$1,
15355
15370
  properties: properties$1,
15356
- note: note$1,
15357
15371
  view: view$1,
15358
- email: email$1,
15359
15372
  tags: tags$1,
15360
15373
  global: global$2,
15374
+ searchLocationModal: searchLocationModal$1,
15361
15375
  avatar: avatar$1,
15362
15376
  contactEdit: contactEdit$1,
15363
15377
  conversations: conversations$1
15364
15378
  };
15365
15379
 
15366
- var add = "Agregar";
15367
- var close = "Cerrar";
15368
15380
  var labels = "Etiquetas";
15369
15381
  var phone = "Teléfono";
15370
- var phones = "Teléfonos";
15371
- var number = "Número";
15372
15382
  var business = "Empresa";
15373
15383
  var businessMembers = "Miembros de la empresa";
15374
15384
  var properties = "Propiedades";
15375
- var note = "Nota";
15376
15385
  var view = "Ver";
15377
- var email = "Correo Electrónico";
15378
15386
  var tags = "Etiquetas";
15379
15387
  var global$1 = {
15388
+ add: "Agregar",
15389
+ note: "Nota",
15390
+ number: "Número",
15391
+ email: "Correo Electrónico",
15392
+ close: "Cerrar",
15393
+ phones: "Teléfonos",
15394
+ "delete": "Eliminar",
15395
+ cancel: "Cancelar",
15396
+ createNew: "Crear nuevo",
15380
15397
  back: "Atrás",
15381
15398
  save: "Guardar",
15382
15399
  noOptions: "Sin opciones",
15383
15400
  noValue: "Sin valor",
15384
- birthdate: "Fecha de nacimiento"
15401
+ birthdate: "Fecha de nacimiento",
15402
+ country: "País",
15403
+ searchLocation: "Buscar ubicación"
15404
+ };
15405
+ var searchLocationModal = {
15406
+ searchAddress: "Buscar dirección",
15407
+ enterLocation: "Ingresá una ubicación",
15408
+ city: "Ciudad",
15409
+ state: "Estado",
15410
+ postalCode: "Código postal",
15411
+ country: "País",
15412
+ saveMainAddress: "Guardar como dirección principal",
15413
+ saveSecondaryAddress: "Guardar como dirección secundaria",
15414
+ loadingGoogleMaps: "Cargando Google Maps...",
15415
+ googleMapsUnavailable: "Google Maps no disponible",
15416
+ googleMapsNotLoaded: "Google Maps no está cargado",
15417
+ selectedPlaceNoLocation: "La ubicación seleccionada no tiene coordenadas"
15385
15418
  };
15386
15419
  var avatar = {
15387
15420
  upload: "Subir foto",
@@ -15416,20 +15449,15 @@ var conversations = {
15416
15449
  }
15417
15450
  };
15418
15451
  var es = {
15419
- add: add,
15420
- close: close,
15421
15452
  labels: labels,
15422
15453
  phone: phone,
15423
- phones: phones,
15424
- number: number,
15425
15454
  business: business,
15426
15455
  businessMembers: businessMembers,
15427
15456
  properties: properties,
15428
- note: note,
15429
15457
  view: view,
15430
- email: email,
15431
15458
  tags: tags,
15432
15459
  global: global$1,
15460
+ searchLocationModal: searchLocationModal,
15433
15461
  avatar: avatar,
15434
15462
  contactEdit: contactEdit,
15435
15463
  conversations: conversations
@@ -15541,45 +15569,45 @@ const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl,
15541
15569
 
15542
15570
  var Close = {};
15543
15571
 
15544
- var _interopRequireDefault$f = interopRequireDefaultExports;
15572
+ var _interopRequireDefault$g = interopRequireDefaultExports;
15545
15573
  Object.defineProperty(Close, "__esModule", {
15546
15574
  value: true
15547
15575
  });
15548
- var default_1$g = Close.default = void 0;
15549
- var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15550
- var _jsxRuntime$f = jsxRuntimeExports;
15551
- default_1$g = Close.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15576
+ var default_1$h = Close.default = void 0;
15577
+ var _createSvgIcon$g = _interopRequireDefault$g(requireCreateSvgIcon());
15578
+ var _jsxRuntime$g = jsxRuntimeExports;
15579
+ default_1$h = Close.default = (0, _createSvgIcon$g.default)( /*#__PURE__*/(0, _jsxRuntime$g.jsx)("path", {
15552
15580
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
15553
15581
  }), 'Close');
15554
15582
 
15555
15583
  var Edit = {};
15556
15584
 
15557
- var _interopRequireDefault$e = interopRequireDefaultExports;
15585
+ var _interopRequireDefault$f = interopRequireDefaultExports;
15558
15586
  Object.defineProperty(Edit, "__esModule", {
15559
15587
  value: true
15560
15588
  });
15561
- var default_1$f = Edit.default = void 0;
15562
- var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15563
- var _jsxRuntime$e = jsxRuntimeExports;
15564
- default_1$f = Edit.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15589
+ var default_1$g = Edit.default = void 0;
15590
+ var _createSvgIcon$f = _interopRequireDefault$f(requireCreateSvgIcon());
15591
+ var _jsxRuntime$f = jsxRuntimeExports;
15592
+ default_1$g = Edit.default = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.jsx)("path", {
15565
15593
  d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
15566
15594
  }), 'Edit');
15567
15595
 
15568
15596
  var Label = {};
15569
15597
 
15570
- var _interopRequireDefault$d = interopRequireDefaultExports;
15598
+ var _interopRequireDefault$e = interopRequireDefaultExports;
15571
15599
  Object.defineProperty(Label, "__esModule", {
15572
15600
  value: true
15573
15601
  });
15574
- var default_1$e = Label.default = void 0;
15575
- var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15576
- var _jsxRuntime$d = jsxRuntimeExports;
15577
- default_1$e = Label.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15602
+ var default_1$f = Label.default = void 0;
15603
+ var _createSvgIcon$e = _interopRequireDefault$e(requireCreateSvgIcon());
15604
+ var _jsxRuntime$e = jsxRuntimeExports;
15605
+ default_1$f = Label.default = (0, _createSvgIcon$e.default)( /*#__PURE__*/(0, _jsxRuntime$e.jsx)("path", {
15578
15606
  d: "M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12z"
15579
15607
  }), 'Label');
15580
15608
 
15581
- const noop$4 = (key) => key;
15582
- const TranslationContext = React$1.createContext(noop$4);
15609
+ const noop$5 = (key) => key;
15610
+ const TranslationContext = React$1.createContext(noop$5);
15583
15611
  const TranslationProvider = ({ t, children }) => {
15584
15612
  return jsxRuntimeExports.jsx(TranslationContext.Provider, { value: t, children: children });
15585
15613
  };
@@ -15587,7 +15615,7 @@ const useTranslationContext = () => {
15587
15615
  const t = React$1.useContext(TranslationContext);
15588
15616
  if (!t) {
15589
15617
  console.warn('[useTranslationContext] using noop, context value is falsy');
15590
- return noop$4;
15618
+ return noop$5;
15591
15619
  }
15592
15620
  return (...args) => {
15593
15621
  const [key, ...rest] = args;
@@ -15641,7 +15669,7 @@ const Tags = ({ tags, onEditTags }) => {
15641
15669
  bgcolor: 'action.hover',
15642
15670
  color: 'text.primary',
15643
15671
  },
15644
- }, children: safeTags.length ? jsxRuntimeExports.jsx(default_1$f, { fontSize: "small" }) : jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] }), jsxRuntimeExports.jsx(material.Popover, { open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, children: jsxRuntimeExports.jsxs(material.Box, { sx: { p: 1.5, maxWidth: 320, maxHeight: 240, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle2", sx: { mb: 1 }, children: t('tags') }), jsxRuntimeExports.jsx(material.Stack, { direction: "row", spacing: 1, useFlexGap: true, flexWrap: "wrap", children: safeTags.map((tag) => (jsxRuntimeExports.jsx(material.Chip, { label: tag.name, size: "small", variant: "outlined", sx: {
15672
+ }, children: safeTags.length ? jsxRuntimeExports.jsx(default_1$g, { fontSize: "small" }) : jsxRuntimeExports.jsx(default_1$f, { fontSize: "small" }) })] }), jsxRuntimeExports.jsx(material.Popover, { open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, children: jsxRuntimeExports.jsxs(material.Box, { sx: { p: 1.5, maxWidth: 320, maxHeight: 240, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle2", sx: { mb: 1 }, children: t('tags') }), jsxRuntimeExports.jsx(material.Stack, { direction: "row", spacing: 1, useFlexGap: true, flexWrap: "wrap", children: safeTags.map((tag) => (jsxRuntimeExports.jsx(material.Chip, { label: tag.name, size: "small", variant: "outlined", sx: {
15645
15673
  borderRadius: 999,
15646
15674
  maxWidth: 160,
15647
15675
  '& .MuiChip-label': {
@@ -15743,31 +15771,31 @@ const ContactName = ({ displayName, contactType, firstName, lastName, name, enti
15743
15771
 
15744
15772
  var Delete = {};
15745
15773
 
15746
- var _interopRequireDefault$c = interopRequireDefaultExports;
15774
+ var _interopRequireDefault$d = interopRequireDefaultExports;
15747
15775
  Object.defineProperty(Delete, "__esModule", {
15748
15776
  value: true
15749
15777
  });
15750
- var default_1$d = Delete.default = void 0;
15751
- var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15752
- var _jsxRuntime$c = jsxRuntimeExports;
15753
- default_1$d = Delete.default = (0, _createSvgIcon$c.default)( /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15778
+ var default_1$e = Delete.default = void 0;
15779
+ var _createSvgIcon$d = _interopRequireDefault$d(requireCreateSvgIcon());
15780
+ var _jsxRuntime$d = jsxRuntimeExports;
15781
+ default_1$e = Delete.default = (0, _createSvgIcon$d.default)( /*#__PURE__*/(0, _jsxRuntime$d.jsx)("path", {
15754
15782
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
15755
15783
  }), 'Delete');
15756
15784
 
15757
15785
  var PhotoCamera = {};
15758
15786
 
15759
- var _interopRequireDefault$b = interopRequireDefaultExports;
15787
+ var _interopRequireDefault$c = interopRequireDefaultExports;
15760
15788
  Object.defineProperty(PhotoCamera, "__esModule", {
15761
15789
  value: true
15762
15790
  });
15763
- var default_1$c = PhotoCamera.default = void 0;
15764
- var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15765
- var _jsxRuntime$b = jsxRuntimeExports;
15766
- default_1$c = PhotoCamera.default = (0, _createSvgIcon$b.default)([/*#__PURE__*/(0, _jsxRuntime$b.jsx)("circle", {
15791
+ var default_1$d = PhotoCamera.default = void 0;
15792
+ var _createSvgIcon$c = _interopRequireDefault$c(requireCreateSvgIcon());
15793
+ var _jsxRuntime$c = jsxRuntimeExports;
15794
+ default_1$d = PhotoCamera.default = (0, _createSvgIcon$c.default)([/*#__PURE__*/(0, _jsxRuntime$c.jsx)("circle", {
15767
15795
  cx: "12",
15768
15796
  cy: "12",
15769
15797
  r: "3.2"
15770
- }, "0"), /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15798
+ }, "0"), /*#__PURE__*/(0, _jsxRuntime$c.jsx)("path", {
15771
15799
  d: "M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"
15772
15800
  }, "1")], 'PhotoCamera');
15773
15801
 
@@ -15801,11 +15829,11 @@ const AvatarWithActions = ({ src, alt, onError, onUpload, onDelete, isUploading,
15801
15829
  color: 'common.white',
15802
15830
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15803
15831
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15804
- }, children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.IconButton, { size: "small", "aria-label": t('avatar.delete'), onClick: onDelete, disabled: Boolean(isDeleting), sx: {
15832
+ }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.IconButton, { size: "small", "aria-label": t('avatar.delete'), onClick: onDelete, disabled: Boolean(isDeleting), sx: {
15805
15833
  color: 'common.white',
15806
15834
  bgcolor: 'rgba(0, 0, 0, 0.25)',
15807
15835
  '&:hover': { bgcolor: 'rgba(0, 0, 0, 0.35)' },
15808
- }, children: jsxRuntimeExports.jsx(default_1$d, { fontSize: "small" }) })] })] }));
15836
+ }, children: jsxRuntimeExports.jsx(default_1$e, { fontSize: "small" }) })] })] }));
15809
15837
  };
15810
15838
 
15811
15839
  const HeaderContainer = material.styled(material.Box)({
@@ -15823,27 +15851,27 @@ const Header = ({ imgUrl, displayName, onError, tags, onEditTags, onUploadPhoto,
15823
15851
 
15824
15852
  var ArrowBack = {};
15825
15853
 
15826
- var _interopRequireDefault$a = interopRequireDefaultExports;
15854
+ var _interopRequireDefault$b = interopRequireDefaultExports;
15827
15855
  Object.defineProperty(ArrowBack, "__esModule", {
15828
15856
  value: true
15829
15857
  });
15830
- var default_1$b = ArrowBack.default = void 0;
15831
- var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15832
- var _jsxRuntime$a = jsxRuntimeExports;
15833
- default_1$b = ArrowBack.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15858
+ var default_1$c = ArrowBack.default = void 0;
15859
+ var _createSvgIcon$b = _interopRequireDefault$b(requireCreateSvgIcon());
15860
+ var _jsxRuntime$b = jsxRuntimeExports;
15861
+ default_1$c = ArrowBack.default = (0, _createSvgIcon$b.default)( /*#__PURE__*/(0, _jsxRuntime$b.jsx)("path", {
15834
15862
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
15835
15863
  }), 'ArrowBack');
15836
15864
 
15837
15865
  var Save = {};
15838
15866
 
15839
- var _interopRequireDefault$9 = interopRequireDefaultExports;
15867
+ var _interopRequireDefault$a = interopRequireDefaultExports;
15840
15868
  Object.defineProperty(Save, "__esModule", {
15841
15869
  value: true
15842
15870
  });
15843
- var default_1$a = Save.default = void 0;
15844
- var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
15845
- var _jsxRuntime$9 = jsxRuntimeExports;
15846
- default_1$a = Save.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
15871
+ var default_1$b = Save.default = void 0;
15872
+ var _createSvgIcon$a = _interopRequireDefault$a(requireCreateSvgIcon());
15873
+ var _jsxRuntime$a = jsxRuntimeExports;
15874
+ default_1$b = Save.default = (0, _createSvgIcon$a.default)( /*#__PURE__*/(0, _jsxRuntime$a.jsx)("path", {
15847
15875
  d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
15848
15876
  }), 'Save');
15849
15877
 
@@ -15852,7 +15880,7 @@ var useThemeWithoutDefault = {};
15852
15880
  Object.defineProperty(useThemeWithoutDefault, "__esModule", {
15853
15881
  value: true
15854
15882
  });
15855
- var default_1$9 = useThemeWithoutDefault.default = void 0;
15883
+ var default_1$a = useThemeWithoutDefault.default = void 0;
15856
15884
  var React = _interopRequireWildcard$1(React$1);
15857
15885
  var _styledEngine = require$$1$1;
15858
15886
  function _getRequireWildcardCache$1(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache$1 = function (e) { return e ? t : r; })(e); }
@@ -15864,7 +15892,7 @@ function useTheme$3(defaultTheme = null) {
15864
15892
  const contextTheme = React.useContext(_styledEngine.ThemeContext);
15865
15893
  return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme : contextTheme;
15866
15894
  }
15867
- default_1$9 = useThemeWithoutDefault.default = useTheme$3;
15895
+ default_1$a = useThemeWithoutDefault.default = useTheme$3;
15868
15896
 
15869
15897
  var top = 'top';
15870
15898
  var bottom = 'bottom';
@@ -18951,7 +18979,7 @@ const PopperRoot = styled$3(BasePopper, {
18951
18979
  */
18952
18980
  const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
18953
18981
  var _slots$root;
18954
- const theme = default_1$9();
18982
+ const theme = default_1$a();
18955
18983
  const props = useDefaultProps({
18956
18984
  props: inProps,
18957
18985
  name: 'MuiPopper'
@@ -19938,7 +19966,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
19938
19966
  onExited: PropTypes.func
19939
19967
  } : {}; // Name the function so it is clearer in the documentation
19940
19968
 
19941
- function noop$3() {}
19969
+ function noop$4() {}
19942
19970
 
19943
19971
  Transition.defaultProps = {
19944
19972
  in: false,
@@ -19947,12 +19975,12 @@ Transition.defaultProps = {
19947
19975
  appear: false,
19948
19976
  enter: true,
19949
19977
  exit: true,
19950
- onEnter: noop$3,
19951
- onEntering: noop$3,
19952
- onEntered: noop$3,
19953
- onExit: noop$3,
19954
- onExiting: noop$3,
19955
- onExited: noop$3
19978
+ onEnter: noop$4,
19979
+ onEntering: noop$4,
19980
+ onEntered: noop$4,
19981
+ onExit: noop$4,
19982
+ onExiting: noop$4,
19983
+ onExited: noop$4
19956
19984
  };
19957
19985
  Transition.UNMOUNTED = UNMOUNTED;
19958
19986
  Transition.EXITED = EXITED;
@@ -24850,15 +24878,43 @@ Grow.muiSupportAuto = true;
24850
24878
  var Grow$1 = Grow;
24851
24879
 
24852
24880
  const PAGE_SIZE = 20;
24853
- const AutocompletePopper = styled$3(MuiPopper)(({ theme }) => ({
24854
- zIndex: theme.zIndex.modal + 1,
24855
- }));
24856
- const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCreateNew, isCreatingNew, }) => {
24881
+ const AutocompletePopper = (props) => {
24882
+ const { popperContainer, ...rest } = props;
24883
+ return (jsxRuntimeExports.jsx(MuiPopper, { ...rest, container: popperContainer ?? rest.container, style: { ...(rest.style ?? {}), zIndex: 20000 } }));
24884
+ };
24885
+ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCreateNew, isCreatingNew, popperContainer, }) => {
24857
24886
  const t = useTranslationContext();
24858
24887
  const [searchValue, setSearchValue] = React$1.useState('');
24859
24888
  const [limit, setLimit] = React$1.useState(PAGE_SIZE);
24889
+ const deferredSearchValue = React$1.useDeferredValue(searchValue);
24860
24890
  const safeOptions = React$1.useMemo(() => options ?? [], [options]);
24861
- const visibleOptions = React$1.useMemo(() => safeOptions.slice(0, limit), [safeOptions, limit]);
24891
+ const filteredOptions = React$1.useMemo(() => {
24892
+ const q = String(deferredSearchValue ?? '')
24893
+ .trim()
24894
+ .toLowerCase();
24895
+ if (!q)
24896
+ return safeOptions;
24897
+ return safeOptions.filter((o) => String(o?.name ?? '')
24898
+ .toLowerCase()
24899
+ .includes(q));
24900
+ }, [safeOptions, deferredSearchValue]);
24901
+ const visibleOptions = React$1.useMemo(() => filteredOptions.slice(0, limit), [filteredOptions, limit]);
24902
+ const optionsWithSelectedValues = React$1.useMemo(() => {
24903
+ const byId = new Map();
24904
+ for (const selected of value ?? []) {
24905
+ if (!selected?.id)
24906
+ continue;
24907
+ byId.set(String(selected.id), selected);
24908
+ }
24909
+ for (const opt of visibleOptions ?? []) {
24910
+ if (!opt?.id)
24911
+ continue;
24912
+ if (byId.has(String(opt.id)))
24913
+ continue;
24914
+ byId.set(String(opt.id), opt);
24915
+ }
24916
+ return Array.from(byId.values());
24917
+ }, [value, visibleOptions]);
24862
24918
  const handleSearchChange = (_, newInputValue) => {
24863
24919
  setSearchValue(newInputValue ?? '');
24864
24920
  setLimit(PAGE_SIZE);
@@ -24878,7 +24934,14 @@ const TagsEditor = ({ value, options, onChange, onBack, onSave, isSaving, onCrea
24878
24934
  alignItems: 'center',
24879
24935
  }, children: [t('global.noOptions'), jsxRuntimeExports.jsx(LoadingButton$1, { onClick: () => onCreateNew(trimmedSearchValue), loading: isCreatingNew, disabled: isDisabled, variant: "contained", size: "small", sx: { marginTop: 1.3 }, children: t('global.createNew') })] }));
24880
24936
  };
24881
- return (jsxRuntimeExports.jsxs(material.Box, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(material.IconButton, { size: "small", onClick: onBack, "aria-label": t('global.back'), disabled: isSaving, children: jsxRuntimeExports.jsx(default_1$b, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: t('tags') }), jsxRuntimeExports.jsx(material.Box, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$a, {}), onClick: onSave, loading: isSaving, disabled: isSaving, children: t('global.save') })] }), jsxRuntimeExports.jsx(material.Autocomplete, { multiple: true, disablePortal: false, value: value, onChange: (_, newValue) => onChange(newValue), options: visibleOptions, filterOptions: (x) => x, inputValue: searchValue, onInputChange: handleSearchChange, getOptionLabel: (option) => option?.name ?? '', isOptionEqualToValue: (o, v) => String(o?.id) === String(v?.id), PopperComponent: AutocompletePopper, renderOption: (props, option) => jsxRuntimeExports.jsx("li", { ...props, children: option.name ?? '' }), renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => (jsxRuntimeExports.jsx(material.Chip, { label: option.name ?? '', ...getTagProps({ index }) }))), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(material.TextField, { ...params, size: "small" }), ListboxProps: {
24937
+ return (jsxRuntimeExports.jsxs(material.Box, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(material.IconButton, { size: "small", onClick: onBack, "aria-label": t('global.back'), disabled: isSaving, children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: t('tags') }), jsxRuntimeExports.jsx(material.Box, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: onSave, loading: isSaving, disabled: isSaving, children: t('global.save') })] }), jsxRuntimeExports.jsx(material.Autocomplete, { multiple: true, disablePortal: false, value: value, onChange: (_, newValue) => onChange(newValue), options: optionsWithSelectedValues, filterOptions: (x) => x, inputValue: searchValue, onInputChange: handleSearchChange, getOptionLabel: (option) => option?.name ?? '', isOptionEqualToValue: (o, v) => String(o?.id) === String(v?.id), PopperComponent: (props) => (jsxRuntimeExports.jsx(AutocompletePopper, { ...props, popperContainer: popperContainer })), renderOption: (props, option) => {
24938
+ const { key, ...rest } = props;
24939
+ return (React$1.createElement("li", { ...rest, key: option?.id ? String(option.id) : String(key ?? option?.name ?? '') }, option.name ?? ''));
24940
+ }, renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => {
24941
+ const tagProps = getTagProps({ index });
24942
+ const { key, ...rest } = tagProps;
24943
+ return (jsxRuntimeExports.jsx(material.Chip, { label: option.name ?? '', ...rest }, option?.id ? String(option.id) : String(key ?? option?.name ?? index)));
24944
+ }), size: "small", renderInput: (params) => jsxRuntimeExports.jsx(material.TextField, { ...params, size: "small" }), ListboxProps: {
24882
24945
  onScroll: onListboxScroll,
24883
24946
  sx: { maxHeight: 280, overflowY: 'auto' },
24884
24947
  }, noOptionsText: jsxRuntimeExports.jsx(CustomNoOptionsMessage, {}), sx: { width: '100%' } })] }));
@@ -24978,6 +25041,16 @@ async function updateEntity({ baseUrl, spaceId, entityType, entityId, body, sign
24978
25041
  const url = joinUrl(urls.CONTACTS, path);
24979
25042
  return requestJson({ url, method: 'PUT', body, signal });
24980
25043
  }
25044
+ async function fetchBusinessTableData({ baseUrl, spaceId, pagination, signal, }) {
25045
+ const urls = getApiUrls(baseUrl, spaceId);
25046
+ const url = joinUrl(urls.CONTACTS, '/Search');
25047
+ return requestJson({ url, method: 'POST', body: pagination, signal });
25048
+ }
25049
+ async function createBusiness({ baseUrl, spaceId, business, signal }) {
25050
+ const urls = getApiUrls(baseUrl, spaceId);
25051
+ const url = joinUrl(urls.CONTACTS, '/business');
25052
+ return requestJson({ url, method: 'POST', body: business, signal });
25053
+ }
24981
25054
  async function deleteAddress({ baseUrl, spaceId, data, signal }) {
24982
25055
  const urls = getApiUrls(baseUrl, spaceId);
24983
25056
  const url = joinUrl(urls.CONTACTS, '/contactAddresses');
@@ -25024,6 +25097,8 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25024
25097
  fetchLabels: ({ signal } = {}) => fetchLabels({ baseUrl, spaceId, signal }),
25025
25098
  createLabel: ({ name, signal }) => createLabel({ baseUrl, spaceId, name, signal }),
25026
25099
  fetchContact: ({ contactId, signal }) => fetchContact({ baseUrl, spaceId, contactId, signal }),
25100
+ fetchBusinessTableData: ({ pagination, signal }) => fetchBusinessTableData({ baseUrl, spaceId, pagination, signal }),
25101
+ createBusiness: ({ business, signal }) => createBusiness({ baseUrl, spaceId, business, signal }),
25027
25102
  fetchContactFields: ({ forType, signal }) => fetchContactFields({ baseUrl, spaceId, forType, signal }),
25028
25103
  updateEntity: ({ entityType, entityId, body, signal }) => updateEntity({ baseUrl, spaceId, entityType, entityId, body, signal }),
25029
25104
  deleteAddress: ({ data, signal }) => deleteAddress({ baseUrl, spaceId, data, signal }),
@@ -25037,6 +25112,296 @@ const createEditContactApi = (baseUrl, spaceId) => ({
25037
25112
  uploadAvatar: ({ contactId, file, signal }) => uploadAvatar({ baseUrl, spaceId, contactId, file, signal }),
25038
25113
  });
25039
25114
 
25115
+ const isGoogleMapsLoaded = () => {
25116
+ return Boolean(window?.google?.maps?.places?.Autocomplete);
25117
+ };
25118
+ const waitForGoogleMaps = (maxWaitTime = 10000) => {
25119
+ return new Promise((resolve) => {
25120
+ if (isGoogleMapsLoaded()) {
25121
+ resolve(true);
25122
+ return;
25123
+ }
25124
+ const startTime = Date.now();
25125
+ const checkInterval = 100;
25126
+ const interval = window.setInterval(() => {
25127
+ if (isGoogleMapsLoaded()) {
25128
+ window.clearInterval(interval);
25129
+ resolve(true);
25130
+ return;
25131
+ }
25132
+ if (Date.now() - startTime > maxWaitTime) {
25133
+ window.clearInterval(interval);
25134
+ resolve(false);
25135
+ }
25136
+ }, checkInterval);
25137
+ });
25138
+ };
25139
+ const useGoogleMapsStatus = () => {
25140
+ const [isLoaded, setIsLoaded] = React$1.useState(false);
25141
+ const [isLoading, setIsLoading] = React$1.useState(true);
25142
+ const [error, setError] = React$1.useState(null);
25143
+ React$1.useEffect(() => {
25144
+ const checkStatus = async () => {
25145
+ try {
25146
+ const loaded = await waitForGoogleMaps(10000);
25147
+ setIsLoaded(loaded);
25148
+ if (!loaded) {
25149
+ setError('Google Maps API failed to load');
25150
+ }
25151
+ }
25152
+ catch {
25153
+ setError('Error loading Google Maps API');
25154
+ setIsLoaded(false);
25155
+ }
25156
+ finally {
25157
+ setIsLoading(false);
25158
+ }
25159
+ };
25160
+ checkStatus();
25161
+ }, []);
25162
+ return { isLoaded, isLoading, error };
25163
+ };
25164
+
25165
+ const SearchLocationInput = ({ onPlaceSelected, onError, placeholder }) => {
25166
+ const t = useTranslationContext();
25167
+ const inputRef = React$1.useRef(null);
25168
+ const autocompleteRef = React$1.useRef(null);
25169
+ const placeSelectedRef = React$1.useRef(onPlaceSelected);
25170
+ const errorRef = React$1.useRef(onError);
25171
+ const { isLoaded, isLoading, error: mapsError } = useGoogleMapsStatus();
25172
+ const currentPlaceholder = React$1.useMemo(() => {
25173
+ if (isLoading)
25174
+ return t('searchLocationModal.loadingGoogleMaps');
25175
+ if (mapsError)
25176
+ return t('searchLocationModal.googleMapsUnavailable');
25177
+ if (!isLoaded)
25178
+ return t('searchLocationModal.googleMapsNotLoaded');
25179
+ return placeholder ?? t('searchLocationModal.enterLocation');
25180
+ }, [isLoaded, isLoading, mapsError, placeholder, t]);
25181
+ React$1.useEffect(() => {
25182
+ placeSelectedRef.current = onPlaceSelected;
25183
+ }, [onPlaceSelected]);
25184
+ React$1.useEffect(() => {
25185
+ errorRef.current = onError;
25186
+ }, [onError]);
25187
+ React$1.useEffect(() => {
25188
+ if (!isLoaded)
25189
+ return;
25190
+ if (!inputRef.current)
25191
+ return;
25192
+ if (autocompleteRef.current)
25193
+ return;
25194
+ const googleAny = window?.google;
25195
+ if (!googleAny?.maps?.places?.Autocomplete) {
25196
+ errorRef.current?.(t('searchLocationModal.googleMapsUnavailable'));
25197
+ return;
25198
+ }
25199
+ inputRef.current.focus();
25200
+ let observer = null;
25201
+ const applyPacContainerStyles = () => {
25202
+ const pacContainers = document.querySelectorAll('.pac-container');
25203
+ pacContainers.forEach((container) => {
25204
+ const el = container;
25205
+ el.style.zIndex = '20000';
25206
+ el.style.position = 'fixed';
25207
+ });
25208
+ };
25209
+ observer = new MutationObserver((mutations) => {
25210
+ for (const mutation of mutations) {
25211
+ for (const node of Array.from(mutation.addedNodes)) {
25212
+ if (node.nodeType !== Node.ELEMENT_NODE)
25213
+ continue;
25214
+ const element = node;
25215
+ if (!element.classList?.contains('pac-container'))
25216
+ continue;
25217
+ element.style.zIndex = '20000';
25218
+ element.style.position = 'fixed';
25219
+ }
25220
+ }
25221
+ });
25222
+ observer.observe(document.body, {
25223
+ childList: true,
25224
+ subtree: true,
25225
+ });
25226
+ applyPacContainerStyles();
25227
+ window.setTimeout(applyPacContainerStyles, 100);
25228
+ autocompleteRef.current = new googleAny.maps.places.Autocomplete(inputRef.current, {
25229
+ types: ['geocode'],
25230
+ componentRestrictions: { country: 'ar' },
25231
+ });
25232
+ const listener = autocompleteRef.current.addListener?.('place_changed', () => {
25233
+ const place = autocompleteRef.current?.getPlace?.();
25234
+ if (!place?.geometry?.location) {
25235
+ errorRef.current?.(t('searchLocationModal.selectedPlaceNoLocation'));
25236
+ return;
25237
+ }
25238
+ let city = '';
25239
+ let state = '';
25240
+ let country = '';
25241
+ let postalCode = '';
25242
+ let streetName = '';
25243
+ let streetNumber = '';
25244
+ const components = place.address_components ?? [];
25245
+ for (const component of components) {
25246
+ const types = component?.types ?? [];
25247
+ if (types.includes('locality') || types.includes('administrative_area_level_2')) {
25248
+ city = component.long_name;
25249
+ continue;
25250
+ }
25251
+ if (types.includes('administrative_area_level_1')) {
25252
+ state = component.long_name;
25253
+ continue;
25254
+ }
25255
+ if (types.includes('country')) {
25256
+ country = component.long_name;
25257
+ continue;
25258
+ }
25259
+ if (types.includes('postal_code')) {
25260
+ postalCode = component.long_name;
25261
+ continue;
25262
+ }
25263
+ if (types.includes('route')) {
25264
+ streetName = component.long_name;
25265
+ continue;
25266
+ }
25267
+ if (types.includes('street_number')) {
25268
+ streetNumber = component.long_name;
25269
+ }
25270
+ }
25271
+ const lat = typeof place.geometry.location.lat === 'function' ? place.geometry.location.lat() : 0;
25272
+ const lng = typeof place.geometry.location.lng === 'function' ? place.geometry.location.lng() : 0;
25273
+ const result = {
25274
+ location: { lat, lng },
25275
+ address: place.formatted_address ?? '',
25276
+ city,
25277
+ state,
25278
+ country,
25279
+ postalCode,
25280
+ streetName,
25281
+ streetNumber,
25282
+ shortAddress: [streetName, streetNumber].filter(Boolean).join(' '),
25283
+ };
25284
+ placeSelectedRef.current(result);
25285
+ });
25286
+ return () => {
25287
+ if (observer)
25288
+ observer.disconnect();
25289
+ if (listener?.remove)
25290
+ listener.remove();
25291
+ autocompleteRef.current = null;
25292
+ };
25293
+ }, [isLoaded, t]);
25294
+ const isDisabled = isLoading || !isLoaded || Boolean(mapsError);
25295
+ return (jsxRuntimeExports.jsx(material.TextField, { fullWidth: true, size: "small", inputRef: inputRef, placeholder: currentPlaceholder, disabled: isDisabled, error: Boolean(mapsError) }));
25296
+ };
25297
+
25298
+ const EMPTY_DRAFT = {
25299
+ street: '',
25300
+ city: '',
25301
+ state: '',
25302
+ zipcode: '',
25303
+ country: '',
25304
+ };
25305
+ const SearchLocationEditor = ({ baseUrl, spaceId, entityType, entityId, onBack, onEntityUpdated, }) => {
25306
+ const t = useTranslationContext();
25307
+ const [draft, setDraft] = React$1.useState(EMPTY_DRAFT);
25308
+ const [query, setQuery] = React$1.useState('');
25309
+ const [error, setError] = React$1.useState('');
25310
+ const [isSavingMain, setIsSavingMain] = React$1.useState(false);
25311
+ const [isSavingSecondary, setIsSavingSecondary] = React$1.useState(false);
25312
+ const canSubmit = React$1.useMemo(() => {
25313
+ return Boolean(String(draft.street ?? '').trim() ||
25314
+ String(draft.city ?? '').trim() ||
25315
+ String(draft.state ?? '').trim() ||
25316
+ String(draft.zipcode ?? '').trim() ||
25317
+ String(draft.country ?? '').trim());
25318
+ }, [draft]);
25319
+ const handlePlaceSelected = (result) => {
25320
+ setQuery(result.address ?? '');
25321
+ const computedStreet = String(result.shortAddress ?? '').trim() ||
25322
+ [result.streetName, result.streetNumber].filter(Boolean).join(' ').trim();
25323
+ setDraft({
25324
+ street: computedStreet,
25325
+ city: result.city ?? '',
25326
+ state: result.state ?? '',
25327
+ zipcode: result.postalCode ?? '',
25328
+ country: result.country ?? '',
25329
+ });
25330
+ setError('');
25331
+ };
25332
+ const handleError = (errorMessage) => {
25333
+ setError(String(errorMessage ?? ''));
25334
+ };
25335
+ const handleChange = (key) => (e) => {
25336
+ const next = e.target.value;
25337
+ setDraft((prev) => ({ ...prev, [key]: next }));
25338
+ };
25339
+ const handleSaveMainAddress = async () => {
25340
+ if (isSavingMain)
25341
+ return;
25342
+ if (!baseUrl || !spaceId)
25343
+ return;
25344
+ if (!entityId)
25345
+ return;
25346
+ setIsSavingMain(true);
25347
+ try {
25348
+ const updated = await updateEntity({
25349
+ baseUrl,
25350
+ spaceId,
25351
+ entityType,
25352
+ entityId,
25353
+ body: {
25354
+ address1: {
25355
+ street: String(draft.street ?? ''),
25356
+ city: String(draft.city ?? ''),
25357
+ state: String(draft.state ?? ''),
25358
+ zipcode: String(draft.zipcode ?? ''),
25359
+ country: String(draft.country ?? ''),
25360
+ },
25361
+ },
25362
+ });
25363
+ onEntityUpdated?.(updated);
25364
+ onBack();
25365
+ }
25366
+ finally {
25367
+ setIsSavingMain(false);
25368
+ }
25369
+ };
25370
+ const handleSaveSecondaryAddress = async () => {
25371
+ if (isSavingSecondary)
25372
+ return;
25373
+ if (!baseUrl || !spaceId)
25374
+ return;
25375
+ if (!entityId)
25376
+ return;
25377
+ setIsSavingSecondary(true);
25378
+ try {
25379
+ const updated = await updateEntity({
25380
+ baseUrl,
25381
+ spaceId,
25382
+ entityType,
25383
+ entityId,
25384
+ body: {
25385
+ address2: {
25386
+ street: String(draft.street ?? ''),
25387
+ city: String(draft.city ?? ''),
25388
+ state: String(draft.state ?? ''),
25389
+ zipcode: String(draft.zipcode ?? ''),
25390
+ country: String(draft.country ?? ''),
25391
+ },
25392
+ },
25393
+ });
25394
+ onEntityUpdated?.(updated);
25395
+ onBack();
25396
+ }
25397
+ finally {
25398
+ setIsSavingSecondary(false);
25399
+ }
25400
+ };
25401
+ const isDisabled = !canSubmit || isSavingMain || isSavingSecondary;
25402
+ return (jsxRuntimeExports.jsxs(material.Box, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(material.IconButton, { size: "small", onClick: onBack, "aria-label": t('global.back'), children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: t('searchLocationModal.searchAddress') }), jsxRuntimeExports.jsx(material.Box, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: handleSaveMainAddress, loading: isSavingMain, disabled: isDisabled, sx: { mr: 1 }, children: t('searchLocationModal.saveMainAddress') }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "outlined", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: handleSaveSecondaryAddress, loading: isSavingSecondary, disabled: isDisabled, children: t('searchLocationModal.saveSecondaryAddress') })] }), jsxRuntimeExports.jsxs(material.Stack, { spacing: 2, children: [jsxRuntimeExports.jsxs(material.Box, { sx: { position: 'relative', zIndex: 1400 }, children: [jsxRuntimeExports.jsx(SearchLocationInput, { onPlaceSelected: handlePlaceSelected, onError: handleError, placeholder: t('searchLocationModal.enterLocation') }), error ? (jsxRuntimeExports.jsx(material.Typography, { variant: "caption", color: "error", sx: { mt: 0.5, display: 'block' }, children: error })) : null] }), jsxRuntimeExports.jsx(material.TextField, { label: t('conversations.contactDetails.street'), value: draft.street, onChange: handleChange('street'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsxs(material.Stack, { direction: { xs: 'column', sm: 'row' }, spacing: 2, children: [jsxRuntimeExports.jsx(material.TextField, { label: t('searchLocationModal.city'), value: draft.city, onChange: handleChange('city'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsx(material.TextField, { label: t('searchLocationModal.state'), value: draft.state, onChange: handleChange('state'), fullWidth: true, size: "small" })] }), jsxRuntimeExports.jsxs(material.Stack, { direction: { xs: 'column', sm: 'row' }, spacing: 2, children: [jsxRuntimeExports.jsx(material.TextField, { label: t('searchLocationModal.postalCode'), value: draft.zipcode, onChange: handleChange('zipcode'), fullWidth: true, size: "small" }), jsxRuntimeExports.jsx(material.TextField, { label: t('searchLocationModal.country'), value: draft.country, onChange: handleChange('country'), fullWidth: true, size: "small" })] }), query ? (jsxRuntimeExports.jsx(material.Typography, { variant: "caption", sx: { opacity: 0.7 }, children: query })) : null] })] }));
25403
+ };
25404
+
25040
25405
  /**
25041
25406
  * Type guard to check if an object is an IBusiness
25042
25407
  * @param obj The object to check
@@ -26660,14 +27025,28 @@ const resolveUserLabel = ({ userId, users, currentUser, }) => {
26660
27025
  return fromUsers?.name?.trim() || fromUsers?.email || null;
26661
27026
  };
26662
27027
 
26663
- const Section = ({ title, children }) => {
27028
+ var AddLocationAlt = {};
27029
+
27030
+ var _interopRequireDefault$9 = interopRequireDefaultExports;
27031
+ Object.defineProperty(AddLocationAlt, "__esModule", {
27032
+ value: true
27033
+ });
27034
+ var default_1$9 = AddLocationAlt.default = void 0;
27035
+ var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon());
27036
+ var _jsxRuntime$9 = jsxRuntimeExports;
27037
+ default_1$9 = AddLocationAlt.default = (0, _createSvgIcon$9.default)( /*#__PURE__*/(0, _jsxRuntime$9.jsx)("path", {
27038
+ d: "M20 1v3h3v2h-3v3h-2V6h-3V4h3V1zm-8 12c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m2-9.75V7h3v3h2.92c.05.39.08.79.08 1.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 6.22 7.8 3 12 3c.68 0 1.35.08 2 .25"
27039
+ }), 'AddLocationAlt');
27040
+
27041
+ const Section = ({ title, children, enableDirectionSearch = false, onDirectionSearchClick, }) => {
27042
+ const t = useTranslationContext();
26664
27043
  return (jsxRuntimeExports.jsxs(material.Box, { sx: {
26665
27044
  border: '1px solid',
26666
27045
  borderColor: 'divider',
26667
27046
  borderRadius: 2,
26668
27047
  p: 2,
26669
27048
  mb: 2,
26670
- }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: title }), jsxRuntimeExports.jsx(material.Divider, { sx: { my: 1.5 } }), children] }));
27049
+ }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: title }), enableDirectionSearch && (jsxRuntimeExports.jsx(material.Button, { startIcon: jsxRuntimeExports.jsx(default_1$9, { sx: { color: 'primary.main', height: 18, width: 18 } }), size: "small", variant: "outlined", color: "primary", onClick: () => onDirectionSearchClick && onDirectionSearchClick(), children: t('global.searchLocation') })), jsxRuntimeExports.jsx(material.Divider, { sx: { my: 1.5 } }), children] }));
26671
27050
  };
26672
27051
 
26673
27052
  const SectionContent = ({ children, ...boxProps }) => {
@@ -32988,7 +33367,7 @@ const PickersDayFiller = styled$3('div', {
32988
33367
  opacity: 0,
32989
33368
  pointerEvents: 'none'
32990
33369
  }));
32991
- const noop$2 = () => {};
33370
+ const noop$3 = () => {};
32992
33371
  const PickersDayRaw = /*#__PURE__*/React__namespace.forwardRef(function PickersDay(inProps, forwardedRef) {
32993
33372
  const props = useThemeProps({
32994
33373
  props: inProps,
@@ -33001,11 +33380,11 @@ const PickersDayRaw = /*#__PURE__*/React__namespace.forwardRef(function PickersD
33001
33380
  isAnimating,
33002
33381
  onClick,
33003
33382
  onDaySelect,
33004
- onFocus = noop$2,
33005
- onBlur = noop$2,
33006
- onKeyDown = noop$2,
33007
- onMouseDown = noop$2,
33008
- onMouseEnter = noop$2,
33383
+ onFocus = noop$3,
33384
+ onBlur = noop$3,
33385
+ onKeyDown = noop$3,
33386
+ onMouseDown = noop$3,
33387
+ onMouseEnter = noop$3,
33009
33388
  children,
33010
33389
  day,
33011
33390
  selected,
@@ -43500,7 +43879,7 @@ const _excluded$y = ["enableAccessibleFieldDOMStructure"],
43500
43879
  _excluded6 = ["ownerState"],
43501
43880
  _excluded7 = ["ownerState"],
43502
43881
  _excluded8 = ["InputProps", "inputProps"];
43503
- const noop$1 = () => {};
43882
+ const noop$2 = () => {};
43504
43883
  const cleanFieldResponse = _ref => {
43505
43884
  let {
43506
43885
  enableAccessibleFieldDOMStructure
@@ -43517,7 +43896,7 @@ const cleanFieldResponse = _ref => {
43517
43896
  openPickerAriaLabel
43518
43897
  } = fieldResponse,
43519
43898
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded2$6);
43520
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43899
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43521
43900
  return {
43522
43901
  clearable,
43523
43902
  onClear,
@@ -43552,8 +43931,8 @@ const cleanFieldResponse = _ref => {
43552
43931
  openPickerAriaLabel
43553
43932
  } = fieldResponse,
43554
43933
  other = _objectWithoutPropertiesLoose(fieldResponse, _excluded3);
43555
- const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$1;
43556
- const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$1;
43934
+ const mergedInputProps = major >= 6 && other?.slotProps?.input ? mergeSlotProps$1(other?.slotProps?.input, InputProps) : noop$2;
43935
+ const mergedHtmlInputProps = major >= 6 && other?.slotProps?.htmlInput ? mergeSlotProps$1(other?.slotProps?.htmlInput, inputProps) : noop$2;
43557
43936
  return {
43558
43937
  clearable,
43559
43938
  onClear,
@@ -52771,6 +53150,18 @@ default_1$8 = Cancel.default = (0, _createSvgIcon$8.default)( /*#__PURE__*/(0, _
52771
53150
  d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"
52772
53151
  }), 'Cancel');
52773
53152
 
53153
+ const noop$1 = { view: 'main', setView: () => { } };
53154
+ const EditContactViewContext = React$1.createContext(null);
53155
+ const EditContactViewProvider = EditContactViewContext.Provider;
53156
+ const useEditContactView = () => {
53157
+ const ctx = React$1.useContext(EditContactViewContext);
53158
+ if (!ctx) {
53159
+ console.warn('[useEditContactView] using noop, context value is missing');
53160
+ return noop$1;
53161
+ }
53162
+ return ctx;
53163
+ };
53164
+
52774
53165
  const noop = () => { };
52775
53166
  const NavigateContext = React$1.createContext(noop);
52776
53167
  const NavigateProvider = ({ navigate, children }) => {
@@ -52841,6 +53232,7 @@ const StyledSaveCancelButton$1 = material.styled(material.IconButton)({
52841
53232
  const EntityInfoLabel = (props) => {
52842
53233
  const { title, value, isNotEditable, displayValue, baseUrl, spaceId, minWidth, onEntityUpdated } = props;
52843
53234
  const t = useTranslationContext();
53235
+ const { setView } = useEditContactView();
52844
53236
  const inputType = props.inputType ?? 'text';
52845
53237
  const [isEditing, setIsEditing] = React$1.useState(false);
52846
53238
  const [isSaving, setIsSaving] = React$1.useState(false);
@@ -52857,15 +53249,26 @@ const EntityInfoLabel = (props) => {
52857
53249
  return;
52858
53250
  const check = () => {
52859
53251
  const next = el.scrollWidth > el.clientWidth;
52860
- setIsTitleTruncated(next);
53252
+ setIsTitleTruncated((prev) => (prev === next ? prev : next));
52861
53253
  };
52862
53254
  check();
52863
53255
  if (typeof ResizeObserver !== 'undefined') {
53256
+ let rafId = 0;
52864
53257
  const ro = new ResizeObserver(() => {
52865
- check();
53258
+ if (typeof window === 'undefined') {
53259
+ check();
53260
+ return;
53261
+ }
53262
+ if (rafId)
53263
+ window.cancelAnimationFrame(rafId);
53264
+ rafId = window.requestAnimationFrame(() => {
53265
+ check();
53266
+ });
52866
53267
  });
52867
53268
  ro.observe(el);
52868
53269
  return () => {
53270
+ if (typeof window !== 'undefined' && rafId)
53271
+ window.cancelAnimationFrame(rafId);
52869
53272
  ro.disconnect();
52870
53273
  };
52871
53274
  }
@@ -52875,7 +53278,7 @@ const EntityInfoLabel = (props) => {
52875
53278
  return () => {
52876
53279
  window.removeEventListener('resize', check);
52877
53280
  };
52878
- }, [title, isEditing]);
53281
+ }, [title]);
52879
53282
  React$1.useEffect(() => {
52880
53283
  if (props.entityType === 'business') {
52881
53284
  setInputValue(value);
@@ -52886,7 +53289,7 @@ const EntityInfoLabel = (props) => {
52886
53289
  }, [value, props.entityType]);
52887
53290
  const handleEditClick = () => {
52888
53291
  if (props.entityType === 'contact' && inputType === 'selectBusiness') {
52889
- console.log('Not implemented yet');
53292
+ setView('businessSelect');
52890
53293
  return;
52891
53294
  }
52892
53295
  setIsEditing((prev) => !prev);
@@ -52985,7 +53388,7 @@ const EntityInfoLabel = (props) => {
52985
53388
  overflow: 'hidden',
52986
53389
  textOverflow: 'ellipsis',
52987
53390
  whiteSpace: 'nowrap',
52988
- }, children: title }) })) : (jsxRuntimeExports.jsx(material.Typography, { ref: titleRef, component: "span", variant: "body2", letterSpacing: -0.5, fontWeight: '600', alignSelf: 'center', flexGrow: isEditing ? 1 : 0, color: (theme) => theme.palette.text.primary, noWrap: true, sx: { minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, children: title })), isNotEditable ? null : isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$a, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$3, { className: "edit-icon", size: "small", onClick: handleEditClick, children: jsxRuntimeExports.jsx(default_1$f, {}) }))] }), jsxRuntimeExports.jsx(material.Box, { width: isEditing ? '100%' : '50%', position: "relative", children: isEditing && inputType === 'text' ? (jsxRuntimeExports.jsx(material.TextField, { value: textValue, onChange: handleInputChange, variant: "standard", size: "small", sx: { width: '100%' } })) : isEditing && (inputType === 'select' || inputType === 'selectMembers') ? (jsxRuntimeExports.jsxs(material.Select, { value: selectValue, onChange: handleSelectChange, variant: "standard", size: "small", sx: { width: '100%' }, children: [props.entityType === 'contact' ? (jsxRuntimeExports.jsx(material.MenuItem, { value: "", children: t('conversations.contactDetails.contactInfo.emptySelection') })) : null, options.map((option, index) => (jsxRuntimeExports.jsx(material.MenuItem, { value: option.id, children: props.entityType === 'contact'
53391
+ }, children: title }) })) : (jsxRuntimeExports.jsx(material.Typography, { ref: titleRef, component: "span", variant: "body2", letterSpacing: -0.5, fontWeight: '600', alignSelf: 'center', flexGrow: isEditing ? 1 : 0, color: (theme) => theme.palette.text.primary, noWrap: true, sx: { minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, children: title })), isNotEditable ? null : isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$b, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton$1, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$3, { className: "edit-icon", size: "small", onClick: handleEditClick, children: jsxRuntimeExports.jsx(default_1$g, {}) }))] }), jsxRuntimeExports.jsx(material.Box, { width: isEditing ? '100%' : '50%', position: "relative", children: isEditing && inputType === 'text' ? (jsxRuntimeExports.jsx(material.TextField, { value: textValue, onChange: handleInputChange, variant: "standard", size: "small", sx: { width: '100%' } })) : isEditing && (inputType === 'select' || inputType === 'selectMembers') ? (jsxRuntimeExports.jsxs(material.Select, { value: selectValue, onChange: handleSelectChange, variant: "standard", size: "small", sx: { width: '100%' }, children: [props.entityType === 'contact' ? (jsxRuntimeExports.jsx(material.MenuItem, { value: "", children: t('conversations.contactDetails.contactInfo.emptySelection') })) : null, options.map((option, index) => (jsxRuntimeExports.jsx(material.MenuItem, { value: option.id, children: props.entityType === 'contact'
52989
53392
  ? option.name?.trim() || (isUserInfo(option) ? option.email : '') || 'Sin nombre'
52990
53393
  : option.name?.trim() || option.email || 'Sin nombre' }, index)))] })) : isEditing && isContactBirthdayProps(props) ? (jsxRuntimeExports.jsx(DateSelect, { birthDate: props.contact.field.birthDate, setBirthDate: props.contact.action.setBirthDate, dateFormat: props.dateFormat })) : !isEditing &&
52991
53394
  props.entityType === 'contact' &&
@@ -54960,15 +55363,26 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
54960
55363
  return;
54961
55364
  const check = () => {
54962
55365
  const next = el.scrollWidth > el.clientWidth;
54963
- setIsTitleTruncated(next);
55366
+ setIsTitleTruncated((prev) => (prev === next ? prev : next));
54964
55367
  };
54965
55368
  check();
54966
55369
  if (typeof ResizeObserver !== 'undefined') {
55370
+ let rafId = 0;
54967
55371
  const ro = new ResizeObserver(() => {
54968
- check();
55372
+ if (typeof window === 'undefined') {
55373
+ check();
55374
+ return;
55375
+ }
55376
+ if (rafId)
55377
+ window.cancelAnimationFrame(rafId);
55378
+ rafId = window.requestAnimationFrame(() => {
55379
+ check();
55380
+ });
54969
55381
  });
54970
55382
  ro.observe(el);
54971
55383
  return () => {
55384
+ if (typeof window !== 'undefined' && rafId)
55385
+ window.cancelAnimationFrame(rafId);
54972
55386
  ro.disconnect();
54973
55387
  };
54974
55388
  }
@@ -54978,7 +55392,7 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
54978
55392
  return () => {
54979
55393
  window.removeEventListener('resize', check);
54980
55394
  };
54981
- }, [customContactFields, property.nameKey, isEditing]);
55395
+ }, [customContactFields, property.nameKey]);
54982
55396
  const handleInputChange = (name, value) => {
54983
55397
  const updatedValue = property.type === Contacts.ContactField_type.DATERANGE
54984
55398
  ? Array.isArray(value) && value[0] && value[1]
@@ -55031,7 +55445,7 @@ const EntityCustomFieldLabel = ({ property, entity, entityType, entityId, custom
55031
55445
  else
55032
55446
  return (jsxRuntimeExports.jsx(CustomPropertyInput, { type: type, nameKey: nameKey, value: value, onChange: handleInputChange }));
55033
55447
  };
55034
- return (jsxRuntimeExports.jsxs(ContactBox, { className: `fadein ${property.type === Contacts.ContactField_type.LONGTEXT ? 'contacts-col-12' : 'contacts-col-5'}`, children: [jsxRuntimeExports.jsxs(material.Box, { display: "flex", position: "relative", minHeight: "25px", alignItems: "center", children: [isTitleTruncated ? (jsxRuntimeExports.jsx(material.Tooltip, { title: getPropertyName(property.nameKey), arrow: true, children: jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) }) })) : (jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) })), isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$a, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$2, { className: "edit-icon", size: "small", onClick: toggleEdit, children: jsxRuntimeExports.jsx(default_1$f, {}) }))] }), jsxRuntimeExports.jsx(material.Box, { width: isEditing || property.type === Contacts.ContactField_type.LONGTEXT ? '100%' : '50%', position: "relative", children: isEditing ? (EditField()) : (jsxRuntimeExports.jsx(FieldValue, { children: hasValue(property?.value)
55448
+ return (jsxRuntimeExports.jsxs(ContactBox, { className: `fadein ${property.type === Contacts.ContactField_type.LONGTEXT ? 'contacts-col-12' : 'contacts-col-5'}`, children: [jsxRuntimeExports.jsxs(material.Box, { display: "flex", position: "relative", minHeight: "25px", alignItems: "center", children: [isTitleTruncated ? (jsxRuntimeExports.jsx(material.Tooltip, { title: getPropertyName(property.nameKey), arrow: true, children: jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) }) })) : (jsxRuntimeExports.jsx(FieldName, { ref: titleRef, flexGrow: 1, noWrap: true, children: getPropertyName(property.nameKey) })), isEditing ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$b, {}) }), jsxRuntimeExports.jsx(StyledSaveCancelButton, { size: "small", onClick: handleCancel, children: jsxRuntimeExports.jsx(default_1$8, {}) })] })) : (jsxRuntimeExports.jsx(StyledIconButton$2, { className: "edit-icon", size: "small", onClick: toggleEdit, children: jsxRuntimeExports.jsx(default_1$g, {}) }))] }), jsxRuntimeExports.jsx(material.Box, { width: isEditing || property.type === Contacts.ContactField_type.LONGTEXT ? '100%' : '50%', position: "relative", children: isEditing ? (EditField()) : (jsxRuntimeExports.jsx(FieldValue, { children: hasValue(property?.value)
55035
55449
  ? property.type === Contacts.ContactField_type.DATERANGE
55036
55450
  ? (() => {
55037
55451
  if (typeof property.value === 'string') {
@@ -56687,7 +57101,6 @@ const StyledBox = material.styled(material.Box)(({ theme }) => ({
56687
57101
  const StyledTypography = material.styled(material.Typography)(({}) => ({
56688
57102
  letterSpacing: -0.5,
56689
57103
  fontSize: 14,
56690
- fontWeight: 600,
56691
57104
  }));
56692
57105
  const HeaderBox = material.styled(material.Box)(({}) => ({
56693
57106
  display: 'flex',
@@ -56709,7 +57122,7 @@ const StyledIconButton = material.styled(material.IconButton)({
56709
57122
  marginLeft: '15px',
56710
57123
  });
56711
57124
  const ContactMethod = ({ title, methodItems, isPhone, handleEdit, owner }) => {
56712
- return (jsxRuntimeExports.jsxs(StyledBox, { children: [jsxRuntimeExports.jsxs(HeaderBox, { children: [jsxRuntimeExports.jsx(StyledTypography, { children: title }), jsxRuntimeExports.jsx(StyledIconButton, { className: "edit-icon", size: "small", onClick: handleEdit, children: jsxRuntimeExports.jsx(default_1$f, { fontSize: "small", sx: { color: (theme) => theme.palette.secondary.main } }) })] }), jsxRuntimeExports.jsx(MethodItemsBox, { children: methodItems.map((item, index) => {
57125
+ return (jsxRuntimeExports.jsxs(StyledBox, { children: [jsxRuntimeExports.jsxs(HeaderBox, { children: [jsxRuntimeExports.jsx(StyledTypography, { children: title }), jsxRuntimeExports.jsx(StyledIconButton, { className: "edit-icon", size: "small", onClick: handleEdit, children: jsxRuntimeExports.jsx(default_1$g, { fontSize: "small", sx: { color: (theme) => theme.palette.secondary.main } }) })] }), jsxRuntimeExports.jsx(MethodItemsBox, { children: methodItems.map((item, index) => {
56713
57126
  if (isPhone) {
56714
57127
  return jsxRuntimeExports.jsx(ContactMethodPhoneItem, { item: item }, index);
56715
57128
  }
@@ -56888,7 +57301,7 @@ const OptionsMenu = ({ onDelete, addressData, handleLinkAccountSave, checked, on
56888
57301
  };
56889
57302
  return (jsxRuntimeExports.jsxs(material.Box, { children: [jsxRuntimeExports.jsx(material.IconButton, { "aria-controls": open ? 'basic-menu' : undefined, "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, onClick: handleClick, children: jsxRuntimeExports.jsx(default_1$5, {}) }), jsxRuntimeExports.jsxs(material.Menu, { id: "basic-menu", anchorEl: anchorEl, open: open, onClose: handleClose, MenuListProps: {
56890
57303
  'aria-labelledby': 'basic-button',
56891
- }, children: [jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleDelete, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: jsxRuntimeExports.jsx(default_1$d, { color: "error" }) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('global.delete') })] }), channelType === 5 && (jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleCheckWA, disabled: !checked, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: verifying ? (jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 })) : (jsxRuntimeExports.jsx(default_1$4, { sx: { color: 'green' } })) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('optionsMenu.verifyWspAccount') })] })), channelType === 21 && (jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleCheckRCS, disabled: !checked, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: verifying ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$3, {}) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('optionsMenu.verifyRCSAccount') })] }))] }), jsxRuntimeExports.jsx(material.Modal, { open: modalOpen, onClose: handleModalClose, "aria-labelledby": "modal-modal-title", "aria-describedby": "modal-modal-description", children: jsxRuntimeExports.jsx(material.Box, { sx: {
57304
+ }, children: [jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleDelete, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: jsxRuntimeExports.jsx(default_1$e, { color: "error" }) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('global.delete') })] }), channelType === 5 && (jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleCheckWA, disabled: !checked, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: verifying ? (jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 })) : (jsxRuntimeExports.jsx(default_1$4, { sx: { color: 'green' } })) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('optionsMenu.verifyWspAccount') })] })), channelType === 21 && (jsxRuntimeExports.jsxs(material.MenuItem, { onClick: handleCheckRCS, disabled: !checked, children: [jsxRuntimeExports.jsx(material.ListItemIcon, { children: verifying ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$3, {}) }), jsxRuntimeExports.jsx(material.ListItemText, { children: t('optionsMenu.verifyRCSAccount') })] }))] }), jsxRuntimeExports.jsx(material.Modal, { open: modalOpen, onClose: handleModalClose, "aria-labelledby": "modal-modal-title", "aria-describedby": "modal-modal-description", children: jsxRuntimeExports.jsx(material.Box, { sx: {
56892
57305
  position: 'absolute',
56893
57306
  top: '50%',
56894
57307
  left: '50%',
@@ -56968,7 +57381,7 @@ const NoteDeleteButton = (props) => {
56968
57381
  ...noteDeleteButtonStyle.container,
56969
57382
  }, children: [addressIsSaved && (jsxRuntimeExports.jsx(material.TextField, { size: "small", label: t('global.note'), variant: "outlined", onChange: (e) => props.handleNoteFieldChange(e, id, channelType), value: note, fullWidth: true, InputLabelProps: {
56970
57383
  shrink: true,
56971
- }, className: "contacts-smallInput", sx: noteDeleteButtonStyle.noteTextField })), jsxRuntimeExports.jsx(material.IconButton, { onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$a, { color: "primary" }) }), jsxRuntimeExports.jsx(OptionsMenu, { onDelete: () => props.handleDeleteAddress(id, channelType), addressData: props.addressData, handleLinkAccountSave: handleLinkAccountSave, checked: checked && !isSaving, onCheckContactAddress: async (type) => {
57384
+ }, className: "contacts-smallInput", sx: noteDeleteButtonStyle.noteTextField })), jsxRuntimeExports.jsx(material.IconButton, { onClick: handleSave, children: isSaving ? jsxRuntimeExports.jsx(material.CircularProgress, { size: 24 }) : jsxRuntimeExports.jsx(default_1$b, { color: "primary" }) }), jsxRuntimeExports.jsx(OptionsMenu, { onDelete: () => props.handleDeleteAddress(id, channelType), addressData: props.addressData, handleLinkAccountSave: handleLinkAccountSave, checked: checked && !isSaving, onCheckContactAddress: async (type) => {
56972
57385
  if (!api)
56973
57386
  return null;
56974
57387
  try {
@@ -57490,7 +57903,7 @@ const ContactInformation = ({ ownerData }) => {
57490
57903
  .map((method) => (jsxRuntimeExports.jsx(ContactMethod, { handleEdit: () => openModal(method.modalTitle), title: method.title, methodItems: method.items, isPhone: method.isPhone, owner: ownerData }, method.key))) }) }), jsxRuntimeExports.jsx(EditModal, { open: isOpen, onClose: closeModal, title: title })] }));
57491
57904
  };
57492
57905
 
57493
- const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, }) => {
57906
+ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntityUpdated, onDirectionSearchClick, }) => {
57494
57907
  const commonProps = {
57495
57908
  baseUrl,
57496
57909
  spaceId,
@@ -57509,7 +57922,7 @@ const AddressInformation = ({ entityType, entityData, baseUrl, spaceId, onEntity
57509
57922
  }), minWidth: "100%" }), jsxRuntimeExports.jsx(EntityInfoLabel, { entityType: entityType, title: t('conversations.contactDetails.country'), value: entityData[addressNumber]?.country ?? '', ...commonProps, constructUpdateObject: (value) => ({
57510
57923
  [addressNumber]: { country: value },
57511
57924
  }), minWidth: "100%" })] })] }));
57512
- return (jsxRuntimeExports.jsx(Section, { title: t('conversations.contactDetails.addressInformation'), children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-4", children: [jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address1", title: t('conversations.contactDetails.primaryAddress') }), jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address2", title: t('conversations.contactDetails.secondaryAddress') })] }) }));
57925
+ return (jsxRuntimeExports.jsx(Section, { title: t('conversations.contactDetails.addressInformation'), enableDirectionSearch: true, onDirectionSearchClick: onDirectionSearchClick, children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-4", children: [jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address1", title: t('conversations.contactDetails.primaryAddress') }), jsxRuntimeExports.jsx(AddressGroup, { addressNumber: "address2", title: t('conversations.contactDetails.secondaryAddress') })] }) }));
57513
57926
  };
57514
57927
 
57515
57928
  const useEntityUpdateSync = ({ entity, setEntity }) => {
@@ -57682,8 +58095,228 @@ const useModalCloseHandler = ({ onClose }) => {
57682
58095
  return handleClose;
57683
58096
  };
57684
58097
 
58098
+ const DEFAULT_PAGINATION = {
58099
+ format: 'IBusiness',
58100
+ total: 0,
58101
+ lastPage: 1,
58102
+ perPage: 10,
58103
+ order: 'ASC',
58104
+ orderColumn: 'Id',
58105
+ };
58106
+ const BusinessSelectEditor = ({ baseUrl, spaceId, contactId, initialBusiness, onBack, onEntityUpdated, currentUser, }) => {
58107
+ const t = useTranslationContext();
58108
+ const api = useEditContactApi();
58109
+ const timerRef = React$1.useRef(null);
58110
+ const abortRef = React$1.useRef(null);
58111
+ const [inputValue, setInputValue] = React$1.useState(() => initialBusiness?.businessName ?? '');
58112
+ const [hasSearched, setHasSearched] = React$1.useState(false);
58113
+ const [isLoading, setIsLoading] = React$1.useState(false);
58114
+ const [isLoadingTimer, setIsLoadingTimer] = React$1.useState(false);
58115
+ const [options, setOptions] = React$1.useState([]);
58116
+ const [selected, setSelected] = React$1.useState(initialBusiness ?? null);
58117
+ const [currentPage, setCurrentPage] = React$1.useState(1);
58118
+ const [isNextPage, setIsNextPage] = React$1.useState(false);
58119
+ const [allLoaded, setAllLoaded] = React$1.useState(false);
58120
+ const ownerValue = React$1.useMemo(() => {
58121
+ const displayName = currentUser?.display_name;
58122
+ const email = currentUser?.email;
58123
+ return String(displayName || email || '').trim();
58124
+ }, [currentUser]);
58125
+ React$1.useEffect(() => {
58126
+ return () => {
58127
+ if (timerRef.current) {
58128
+ clearTimeout(timerRef.current);
58129
+ timerRef.current = null;
58130
+ }
58131
+ abortRef.current?.abort();
58132
+ };
58133
+ }, []);
58134
+ React$1.useEffect(() => {
58135
+ setSelected(initialBusiness ?? null);
58136
+ setInputValue(initialBusiness?.businessName ?? '');
58137
+ }, [initialBusiness]);
58138
+ const resetSearchState = () => {
58139
+ abortRef.current?.abort();
58140
+ abortRef.current = null;
58141
+ if (timerRef.current) {
58142
+ clearTimeout(timerRef.current);
58143
+ timerRef.current = null;
58144
+ }
58145
+ setHasSearched(false);
58146
+ setAllLoaded(false);
58147
+ setCurrentPage(1);
58148
+ setIsNextPage(false);
58149
+ setOptions([]);
58150
+ };
58151
+ const mapBusinesses = (businesses) => {
58152
+ return businesses
58153
+ .filter((b) => Boolean(b?.id))
58154
+ .map((b) => ({ businessId: String(b.id), businessName: String(b.name ?? '') }));
58155
+ };
58156
+ const fetchPage = async ({ query, page }) => {
58157
+ if (!api)
58158
+ return;
58159
+ abortRef.current?.abort();
58160
+ const controller = new AbortController();
58161
+ abortRef.current = controller;
58162
+ setIsLoading(true);
58163
+ try {
58164
+ const pagination = {
58165
+ ...DEFAULT_PAGINATION,
58166
+ currentPage: page,
58167
+ filter: [
58168
+ {
58169
+ value: query,
58170
+ column: 'name',
58171
+ condition: '',
58172
+ },
58173
+ ],
58174
+ };
58175
+ const response = await api.fetchBusinessTableData({ pagination, signal: controller.signal });
58176
+ if (controller.signal.aborted)
58177
+ return;
58178
+ const next = mapBusinesses((response?.contactos ?? []));
58179
+ setHasSearched(true);
58180
+ const total = response?.paginacion?.total ?? 0;
58181
+ setOptions((prev) => {
58182
+ const merged = page === 1
58183
+ ? next
58184
+ : (() => {
58185
+ const byId = new Map();
58186
+ for (const item of prev)
58187
+ byId.set(item.businessId, item);
58188
+ for (const item of next)
58189
+ byId.set(item.businessId, item);
58190
+ return Array.from(byId.values());
58191
+ })();
58192
+ if (total && merged.length >= total) {
58193
+ setAllLoaded(true);
58194
+ }
58195
+ return merged;
58196
+ });
58197
+ }
58198
+ finally {
58199
+ setIsLoading(false);
58200
+ setIsLoadingTimer(false);
58201
+ setIsNextPage(false);
58202
+ }
58203
+ };
58204
+ const handleQueryChanged = (value) => {
58205
+ resetSearchState();
58206
+ if (!value)
58207
+ return;
58208
+ if (timerRef.current) {
58209
+ clearTimeout(timerRef.current);
58210
+ timerRef.current = null;
58211
+ }
58212
+ setIsLoadingTimer(true);
58213
+ timerRef.current = setTimeout(() => {
58214
+ void fetchPage({ query: value, page: 1 });
58215
+ }, 800);
58216
+ };
58217
+ const handleScroll = (e) => {
58218
+ const element = e.target;
58219
+ const bottom = element.scrollHeight - element.scrollTop - element.clientHeight < 1;
58220
+ if (!bottom)
58221
+ return;
58222
+ if (allLoaded)
58223
+ return;
58224
+ if (isLoading)
58225
+ return;
58226
+ if (!inputValue)
58227
+ return;
58228
+ const nextPage = currentPage + 1;
58229
+ setIsNextPage(true);
58230
+ setCurrentPage(nextPage);
58231
+ void fetchPage({ query: inputValue, page: nextPage });
58232
+ };
58233
+ const handleCreateBusiness = async () => {
58234
+ if (!api)
58235
+ return;
58236
+ if (!ownerValue)
58237
+ return;
58238
+ const name = String(inputValue ?? '').trim();
58239
+ if (!name)
58240
+ return;
58241
+ setIsLoading(true);
58242
+ try {
58243
+ const business = {
58244
+ name,
58245
+ owner: ownerValue,
58246
+ imageUrl: '',
58247
+ members: [],
58248
+ tags: [],
58249
+ properties: [],
58250
+ address1: {
58251
+ street: '',
58252
+ city: '',
58253
+ state: '',
58254
+ zipcode: '',
58255
+ country: '',
58256
+ },
58257
+ address2: {
58258
+ street: '',
58259
+ city: '',
58260
+ state: '',
58261
+ zipcode: '',
58262
+ country: '',
58263
+ },
58264
+ };
58265
+ const created = await api.createBusiness({ business });
58266
+ const createdOption = {
58267
+ businessId: String(created.id ?? ''),
58268
+ businessName: String(created.name ?? name),
58269
+ };
58270
+ setOptions([createdOption]);
58271
+ setSelected(createdOption);
58272
+ setHasSearched(true);
58273
+ }
58274
+ finally {
58275
+ setIsLoading(false);
58276
+ }
58277
+ };
58278
+ const handleSave = async () => {
58279
+ if (!baseUrl || !spaceId)
58280
+ return;
58281
+ if (!contactId)
58282
+ return;
58283
+ const businessId = selected?.businessId ?? '';
58284
+ const updated = await updateEntity({
58285
+ baseUrl,
58286
+ spaceId,
58287
+ entityType: 'contact',
58288
+ entityId: contactId,
58289
+ body: {
58290
+ businessId,
58291
+ },
58292
+ });
58293
+ onEntityUpdated?.(updated);
58294
+ onBack();
58295
+ };
58296
+ const noOptionsNode = hasSearched && options.length === 0 && inputValue ? (jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { px: 1, py: 0.5 }, children: [jsxRuntimeExports.jsx(material.Typography, { variant: "body2", children: t('global.noOptions') }), jsxRuntimeExports.jsx(LoadingButton$1, { size: "small", variant: "contained", onClick: handleCreateBusiness, loading: isLoading, disabled: isLoading || !ownerValue, children: t('global.createNew') })] })) : (jsxRuntimeExports.jsx(material.Typography, { variant: "body2", children: t('global.noOptions') }));
58297
+ const isSavingDisabled = !contactId || !baseUrl || !spaceId;
58298
+ return (jsxRuntimeExports.jsxs(material.Box, { sx: { width: '100%' }, children: [jsxRuntimeExports.jsxs(material.Stack, { direction: "row", alignItems: "center", spacing: 1, sx: { mb: 2 }, children: [jsxRuntimeExports.jsx(material.IconButton, { size: "small", onClick: onBack, "aria-label": t('global.back'), children: jsxRuntimeExports.jsx(default_1$c, { fontSize: "small" }) }), jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", children: t('conversations.contactDetails.business') }), jsxRuntimeExports.jsx(material.Box, { sx: { flex: 1 } }), jsxRuntimeExports.jsx(LoadingButton$1, { variant: "contained", size: "small", startIcon: jsxRuntimeExports.jsx(default_1$b, {}), onClick: handleSave, loading: false, disabled: isSavingDisabled, children: t('global.save') })] }), jsxRuntimeExports.jsxs(material.Box, { sx: { position: 'relative' }, children: [isLoading || isLoadingTimer || isNextPage ? (jsxRuntimeExports.jsx(material.Box, { sx: { position: 'absolute', left: 0, right: 0, top: 0 }, children: jsxRuntimeExports.jsx(material.LinearProgress, { sx: { borderRadius: 1 } }) })) : null, jsxRuntimeExports.jsx(material.Autocomplete, { fullWidth: true, disablePortal: true, value: selected, onChange: (event, newValue) => {
58299
+ setSelected(newValue);
58300
+ }, inputValue: inputValue, onInputChange: (event, newValue, reason) => {
58301
+ setInputValue(newValue);
58302
+ if (reason !== 'input')
58303
+ return;
58304
+ handleQueryChanged(newValue);
58305
+ }, options: options, getOptionLabel: (option) => option?.businessName ?? '', isOptionEqualToValue: (opt, val) => opt.businessId === val.businessId, noOptionsText: noOptionsNode, renderInput: (params) => (jsxRuntimeExports.jsx(material.TextField, { ...params, size: "small", label: t('conversations.contactDetails.business'), placeholder: t('global.noValue'), InputProps: {
58306
+ ...params.InputProps,
58307
+ endAdornment: (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [isLoading || isLoadingTimer ? (jsxRuntimeExports.jsx(material.CircularProgress, { size: 18, sx: { mr: 1 } })) : null, params.InputProps.endAdornment] })),
58308
+ } })), ListboxProps: {
58309
+ sx: {
58310
+ maxHeight: 240,
58311
+ overflowY: 'auto',
58312
+ },
58313
+ onScroll: handleScroll,
58314
+ } })] })] }));
58315
+ };
58316
+
57685
58317
  const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, language = 'en', navigate, }) => {
57686
58318
  const { t: i18nT, i18n } = reactI18next.useTranslation();
58319
+ const modalContentRef = React$1.useRef(null);
57687
58320
  React$1.useEffect(() => {
57688
58321
  if (language) {
57689
58322
  i18n.changeLanguage(language);
@@ -57742,29 +58375,38 @@ const EditContactModal = ({ open, onClose, baseUrl, spaceId, contactId, sx, lang
57742
58375
  boxShadow: 24,
57743
58376
  outline: 0,
57744
58377
  p: 3,
57745
- overflow: 'hidden',
58378
+ overflow: 'visible',
57746
58379
  };
57747
58380
  const mergedSx = Array.isArray(sx) ? [baseSx, ...sx] : sx ? [baseSx, sx] : baseSx;
57748
- return (jsxRuntimeExports.jsx(EditContactApiProvider, { value: api, children: jsxRuntimeExports.jsx(TranslationProvider, { t: t, children: jsxRuntimeExports.jsx(NavigateProvider, { navigate: navigate, children: jsxRuntimeExports.jsx(material.Modal, { open: open, onClose: handleClose, closeAfterTransition: true, slots: { backdrop: material.Backdrop }, slotProps: { backdrop: { timeout: 200 } }, children: jsxRuntimeExports.jsx(material.Fade, { in: open, timeout: 200, children: jsxRuntimeExports.jsxs(material.Box, { sx: mergedSx, children: [jsxRuntimeExports.jsx(material.IconButton, { "aria-label": "close", onClick: handleClose, sx: {
58381
+ return (jsxRuntimeExports.jsx(EditContactApiProvider, { value: api, children: jsxRuntimeExports.jsx(TranslationProvider, { t: t, children: jsxRuntimeExports.jsx(NavigateProvider, { navigate: navigate, children: jsxRuntimeExports.jsx(material.Modal, { open: open, onClose: handleClose, closeAfterTransition: true, slots: { backdrop: material.Backdrop }, slotProps: { backdrop: { timeout: 200 } }, children: jsxRuntimeExports.jsx(material.Fade, { in: open, timeout: 200, children: jsxRuntimeExports.jsxs(material.Box, { sx: mergedSx, ref: modalContentRef, children: [jsxRuntimeExports.jsx(material.IconButton, { "aria-label": "close", onClick: handleClose, sx: {
57749
58382
  position: 'absolute',
57750
- right: 8,
57751
- top: 8,
58383
+ right: 5,
58384
+ top: 5,
57752
58385
  color: (theme) => theme.palette.grey[500],
57753
58386
  zIndex: 1,
57754
- }, children: jsxRuntimeExports.jsx(default_1$g, {}) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(material.Box, { sx: {
58387
+ }, size: "small", children: jsxRuntimeExports.jsx(default_1$h, { sx: { fontSize: 20 } }) }), state.isLoading && !state.contactData ? (jsxRuntimeExports.jsx(material.Box, { sx: {
57755
58388
  display: 'flex',
57756
58389
  justifyContent: 'center',
57757
58390
  alignItems: 'center',
57758
58391
  minHeight: 220,
57759
- }, children: jsxRuntimeExports.jsx(material.CircularProgress, {}) })) : state.error ? (jsxRuntimeExports.jsx(material.Box, { sx: { mb: 2 }, children: "Failed to load contact" })) : state.contactData ? (jsxRuntimeExports.jsx(EditEntityProvider, { entityType: selectors.contactType === 'business' ? 'business' : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, children: jsxRuntimeExports.jsxs(material.Box, { sx: { position: 'relative', height: '100%' }, children: [jsxRuntimeExports.jsx(material.Fade, { in: view === 'main', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsxs(material.Box, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Header, { imgUrl: image.imageUrl, displayName: selectors.displayName, tags: selectors.tags, onEditTags: () => {
57760
- setView('tags');
57761
- }, onUploadPhoto: image.action.uploadImage, onPhotoFileChange: image.inputAtributes.onChange, photoInputRef: image.inputAtributes.ref, isUploadingPhoto: image.isUploading, onDeletePhoto: image.action.deleteImage, isDeletingPhoto: image.isDeleting, contactType: selectors.contactType, entityId: state.contactData?.id, firstName: selectors.isContact ? state.contactData.firstName : undefined, lastName: selectors.isContact ? state.contactData.lastName : undefined, name: selectors.isBusiness ? state.contactData.name : undefined, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsxs(material.Box, { sx: { px: 1, pb: 2 }, children: [jsxRuntimeExports.jsx(General, { dateFormat: selectors.userTrii?.regCon_dateFormat || 'MM/dd/yyyy', entityType: selectors.contactType === 'contact' ||
57762
- selectors.contactType === 'business'
57763
- ? selectors.contactType
57764
- : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
57765
- selectors.contactType === 'business'
57766
- ? selectors.contactType
57767
- : 'contact', entityData: state.contactData, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsx(ContactInformation, { ownerData: state.contactData })] })] }) }), jsxRuntimeExports.jsx(material.Fade, { in: view === 'tags', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(material.Box, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(TagsEditor, { value: draftLabels, options: labelsOptions, onChange: setDraftLabels, onBack: () => setView('main'), onSave: handleSaveTags, isSaving: isSavingTags, onCreateNew: handleCreateLabel, isCreatingNew: isCreatingLabel }) }) })] }) })) : null] }) }) }) }) }) }));
58392
+ }, children: jsxRuntimeExports.jsx(material.CircularProgress, {}) })) : state.error ? (jsxRuntimeExports.jsx(material.Box, { sx: { mb: 2 }, children: "Failed to load contact" })) : state.contactData ? (jsxRuntimeExports.jsx(EditContactViewProvider, { value: { view, setView }, children: jsxRuntimeExports.jsx(EditEntityProvider, { entityType: selectors.contactType === 'business' ? 'business' : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, children: jsxRuntimeExports.jsxs(material.Box, { sx: { position: 'relative', height: '100%' }, children: [jsxRuntimeExports.jsx(material.Fade, { in: view === 'main', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsxs(material.Box, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: [jsxRuntimeExports.jsx(Header, { imgUrl: image.imageUrl, displayName: selectors.displayName, tags: selectors.tags, onEditTags: () => {
58393
+ setView('tags');
58394
+ }, onUploadPhoto: image.action.uploadImage, onPhotoFileChange: image.inputAtributes.onChange, photoInputRef: image.inputAtributes.ref, isUploadingPhoto: image.isUploading, onDeletePhoto: image.action.deleteImage, isDeletingPhoto: image.isDeleting, contactType: selectors.contactType, entityId: state.contactData?.id, firstName: selectors.isContact
58395
+ ? state.contactData.firstName
58396
+ : undefined, lastName: selectors.isContact
58397
+ ? state.contactData.lastName
58398
+ : undefined, name: selectors.isBusiness ? state.contactData.name : undefined, onEntityUpdated: handleEntityUpdated }), jsxRuntimeExports.jsxs(material.Box, { sx: { px: 1, pb: 2 }, children: [jsxRuntimeExports.jsx(General, { dateFormat: selectors.userTrii?.regCon_dateFormat || 'MM/dd/yyyy', entityType: selectors.contactType === 'contact' ||
58399
+ selectors.contactType === 'business'
58400
+ ? selectors.contactType
58401
+ : 'contact', entityData: state.contactData, customContactFields: selectors.contactFields, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }), jsxRuntimeExports.jsx(AddressInformation, { entityType: selectors.contactType === 'contact' ||
58402
+ selectors.contactType === 'business'
58403
+ ? selectors.contactType
58404
+ : 'contact', entityData: state.contactData, baseUrl: baseUrl, spaceId: spaceId, onEntityUpdated: handleEntityUpdated, onDirectionSearchClick: () => setView('searchLocation') }), jsxRuntimeExports.jsx(ContactInformation, { ownerData: state.contactData })] })] }) }), jsxRuntimeExports.jsx(material.Fade, { in: view === 'searchLocation', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(material.Box, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(SearchLocationEditor, { baseUrl: baseUrl, spaceId: spaceId, entityType: selectors.contactType === 'business' ? 'business' : 'contact', entityId: String(state.contactData.id), onBack: () => setView('main'), onEntityUpdated: handleEntityUpdated }) }) }), jsxRuntimeExports.jsx(material.Fade, { in: view === 'tags', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(material.Box, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(TagsEditor, { value: draftLabels, options: labelsOptions, onChange: setDraftLabels, onBack: () => setView('main'), onSave: handleSaveTags, isSaving: isSavingTags, onCreateNew: handleCreateLabel, isCreatingNew: isCreatingLabel, popperContainer: modalContentRef.current }) }) }), jsxRuntimeExports.jsx(material.Fade, { in: view === 'businessSelect', timeout: 200, mountOnEnter: true, unmountOnExit: true, children: jsxRuntimeExports.jsx(material.Box, { sx: { pt: 0.5, position: 'absolute', inset: 0, overflowY: 'auto' }, children: jsxRuntimeExports.jsx(BusinessSelectEditor, { baseUrl: baseUrl, spaceId: spaceId, contactId: String(state.contactData.id), initialBusiness: selectors.isContact && state.contactData?.businessId
58405
+ ? {
58406
+ businessId: String(state.contactData.businessId),
58407
+ businessName: String(state.contactData.businessName ?? ''),
58408
+ }
58409
+ : null, onBack: () => setView('main'), onEntityUpdated: handleEntityUpdated, currentUser: selectors.userTrii }) }) })] }) }) })) : null] }) }) }) }) }) }));
57768
58410
  };
57769
58411
 
57770
58412
  exports.i18n = i18n;