@trii/components 2.0.31 → 2.0.33

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.
package/dist/cjs/index.js CHANGED
@@ -4,12 +4,6 @@ var React$1 = require('react');
4
4
  var material = require('@mui/material');
5
5
  var react = require('@emotion/react');
6
6
  var ReactDOM = require('react-dom');
7
- require('react-i18next');
8
- require('features/Views/BusinessCreate/hooks/useCreateBusiness/useCreateBusiness');
9
- require('react-redux');
10
- require('hooks/useAppDispatch');
11
- require('ReduxToolkit/features/businessSlice/businessSlice');
12
- require('ReduxToolkit/features/contactsSlice/contactsSlice');
13
7
 
14
8
  function _interopNamespaceDefault(e) {
15
9
  var n = Object.create(null);
@@ -25858,7 +25852,7 @@ const useEditContact = ({ contact, customContactFields, baseUrl, spaceId }) => {
25858
25852
  const apiDispatch = async (maybePromise) => maybePromise;
25859
25853
  const { getEditedField } = editContactHelper;
25860
25854
  const [customProperties, setCustomProperties] = React$1.useState([]);
25861
- const [selectedBusiness, setSelectedBusiness] = React$1.useState([]);
25855
+ // const [selectedBusiness, setSelectedBusiness] = useState<SimplifiedBusiness[]>([]);
25862
25856
  const contactFirstname = useField$1('text', contact?.firstName || '');
25863
25857
  const contactLastname = useField$1('text', contact?.lastName || '');
25864
25858
  const contactImage = useImage({
@@ -25937,8 +25931,8 @@ const useEditContact = ({ contact, customContactFields, baseUrl, spaceId }) => {
25937
25931
  ? contactImage.removeParams(contactImage.imageUrl)
25938
25932
  : null,
25939
25933
  properties: customProperties,
25940
- businessId: selectedBusiness[0]?.businessId || '',
25941
- businessName: selectedBusiness[0]?.businessName || '',
25934
+ // businessId: selectedBusiness[0]?.businessId || '',
25935
+ // businessName: selectedBusiness[0]?.businessName || '',
25942
25936
  birthDate: birthDate?.toDate(),
25943
25937
  };
25944
25938
  return editedContact;
@@ -25948,12 +25942,12 @@ const useEditContact = ({ contact, customContactFields, baseUrl, spaceId }) => {
25948
25942
  if (!contact)
25949
25943
  return;
25950
25944
  if (!contact.businessId || !contact.businessName) {
25951
- setSelectedBusiness([]);
25945
+ // setSelectedBusiness([]);
25952
25946
  return;
25953
25947
  }
25954
- setSelectedBusiness([
25955
- { businessId: contact.businessId, businessName: contact.businessName },
25956
- ]);
25948
+ // setSelectedBusiness([
25949
+ // { businessId: contact.businessId, businessName: contact.businessName },
25950
+ // ]);
25957
25951
  }
25958
25952
  function resetBirthDate() {
25959
25953
  setBirthDate(contact?.birthDate ? dayjs(contact.birthDate) : null);
@@ -26007,14 +26001,7 @@ const useEditContact = ({ contact, customContactFields, baseUrl, spaceId }) => {
26007
26001
  if (contact?.tags) {
26008
26002
  labelMultipleSelect.actions.setValue(contact.tags);
26009
26003
  }
26010
- if (contact?.businessId && contact.businessName) {
26011
- setSelectedBusiness([
26012
- { businessId: contact.businessId, businessName: contact.businessName },
26013
- ]);
26014
- }
26015
- else {
26016
- setSelectedBusiness([]);
26017
- }
26004
+ if (contact?.businessId && contact.businessName) ;
26018
26005
  }, [contact]);
26019
26006
  return {
26020
26007
  field: {
@@ -26043,7 +26030,7 @@ const useEditContact = ({ contact, customContactFields, baseUrl, spaceId }) => {
26043
26030
  secondaryCountry,
26044
26031
  customProperties,
26045
26032
  labelMultipleSelect,
26046
- selectedBusiness,
26033
+ // selectedBusiness,
26047
26034
  },
26048
26035
  action: {
26049
26036
  setBirthDate,
@@ -26057,7 +26044,7 @@ const useEditContact = ({ contact, customContactFields, baseUrl, spaceId }) => {
26057
26044
  addWhatsapp,
26058
26045
  addRCS,
26059
26046
  replaceAddress,
26060
- setSelectedBusiness,
26047
+ // setSelectedBusiness,
26061
26048
  addWhatsappVerified,
26062
26049
  resetToInitialContactInformation,
26063
26050
  resetSelectedBusiness,
@@ -26080,13 +26067,6 @@ const resolveUserLabel = ({ userId, users, currentUser, }) => {
26080
26067
  return fromUsers?.name?.trim() || fromUsers?.email || null;
26081
26068
  };
26082
26069
 
26083
- material.styled('div')({
26084
- display: 'flex',
26085
- alignItems: 'center',
26086
- justifyContent: 'space-around',
26087
- padding: '16px',
26088
- });
26089
-
26090
26070
  var weekOfYear = {exports: {}};
26091
26071
 
26092
26072
  (function (module, exports) {