@pdg/react-form 1.2.13 → 1.2.14

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/index.js CHANGED
@@ -11174,7 +11174,7 @@ _PFormTextEditor.apiKey = '';
11174
11174
  function _temp$m() {
11175
11175
  return "PFormTextEditor";
11176
11176
  }function PFormAutocomplete(t0) {
11177
- var $ = compilerRuntime.c(252);
11177
+ var $ = compilerRuntime.c(254);
11178
11178
  var ref = t0.ref,
11179
11179
  initVariant = t0.variant,
11180
11180
  initSize = t0.size,
@@ -11215,7 +11215,7 @@ function _temp$m() {
11215
11215
  onRenderItem = t0.onRenderItem,
11216
11216
  onRenderTag = t0.onRenderTag,
11217
11217
  onRenderValue = t0.onRenderValue,
11218
- onGetComponentValue = t0.onGetComponentValue,
11218
+ onGetDisplayValue = t0.onGetDisplayValue,
11219
11219
  onAddItem = t0.onAddItem,
11220
11220
  getOptionDisabled = t0.getOptionDisabled,
11221
11221
  onChange = t0.onChange,
@@ -11712,50 +11712,49 @@ function _temp$m() {
11712
11712
  componentValue = _useState22[0],
11713
11713
  setComponentValue = _useState22[1];
11714
11714
  var t29;
11715
- if ($[67] !== componentValue || $[68] !== computedComponentValue_0 || $[69] !== onGetComponentValue) {
11715
+ if ($[67] !== componentValue || $[68] !== computedComponentValue_0) {
11716
11716
  t29 = function t29() {
11717
11717
  if (componentValue && computedComponentValue_0 && compare.equal(componentValue, computedComponentValue_0)) ; else {
11718
- setComponentValue(onGetComponentValue ? onGetComponentValue(computedComponentValue_0) : computedComponentValue_0);
11718
+ setComponentValue(computedComponentValue_0);
11719
11719
  }
11720
11720
  };
11721
11721
  $[67] = componentValue;
11722
11722
  $[68] = computedComponentValue_0;
11723
- $[69] = onGetComponentValue;
11724
- $[70] = t29;
11723
+ $[69] = t29;
11725
11724
  } else {
11726
- t29 = $[70];
11725
+ t29 = $[69];
11727
11726
  }
11728
11727
  var t30;
11729
- if ($[71] !== computedComponentValue_0) {
11728
+ if ($[70] !== computedComponentValue_0) {
11730
11729
  t30 = [computedComponentValue_0];
11731
- $[71] = computedComponentValue_0;
11732
- $[72] = t30;
11730
+ $[70] = computedComponentValue_0;
11731
+ $[71] = t30;
11733
11732
  } else {
11734
- t30 = $[72];
11733
+ t30 = $[71];
11735
11734
  }
11736
11735
  reactHook.useChanged(t29, t30);
11737
11736
  var t31;
11738
- if ($[73] === Symbol["for"]("react.memo_cache_sentinel")) {
11737
+ if ($[72] === Symbol["for"]("react.memo_cache_sentinel")) {
11739
11738
  t31 = function t31() {
11740
11739
  setIsOnGetItemLoading(true);
11741
11740
  };
11742
- $[73] = t31;
11741
+ $[72] = t31;
11743
11742
  } else {
11744
- t31 = $[73];
11743
+ t31 = $[72];
11745
11744
  }
11746
11745
  var showOnGetItemLoading = t31;
11747
11746
  var t32;
11748
- if ($[74] === Symbol["for"]("react.memo_cache_sentinel")) {
11747
+ if ($[73] === Symbol["for"]("react.memo_cache_sentinel")) {
11749
11748
  t32 = function t32() {
11750
11749
  setIsOnGetItemLoading(false);
11751
11750
  };
11752
- $[74] = t32;
11751
+ $[73] = t32;
11753
11752
  } else {
11754
- t32 = $[74];
11753
+ t32 = $[73];
11755
11754
  }
11756
11755
  var hideOnGetItemLoading = t32;
11757
11756
  var t33;
11758
- if ($[75] !== async || $[76] !== onLoadItemsRef || $[77] !== setItems) {
11757
+ if ($[74] !== async || $[75] !== onLoadItemsRef || $[76] !== setItems) {
11759
11758
  t33 = function t33() {
11760
11759
  if (!async && onLoadItemsRef.current) {
11761
11760
  showOnGetItemLoading();
@@ -11765,44 +11764,44 @@ function _temp$m() {
11765
11764
  });
11766
11765
  }
11767
11766
  };
11768
- $[75] = async;
11769
- $[76] = onLoadItemsRef;
11770
- $[77] = setItems;
11771
- $[78] = t33;
11767
+ $[74] = async;
11768
+ $[75] = onLoadItemsRef;
11769
+ $[76] = setItems;
11770
+ $[77] = t33;
11772
11771
  } else {
11773
- t33 = $[78];
11772
+ t33 = $[77];
11774
11773
  }
11775
11774
  var t34;
11776
- if ($[79] === Symbol["for"]("react.memo_cache_sentinel")) {
11775
+ if ($[78] === Symbol["for"]("react.memo_cache_sentinel")) {
11777
11776
  t34 = [];
11778
- $[79] = t34;
11777
+ $[78] = t34;
11779
11778
  } else {
11780
- t34 = $[79];
11779
+ t34 = $[78];
11781
11780
  }
11782
11781
  reactHook.useEventEffect(t33, t34);
11783
11782
  var t35;
11784
- if ($[80] !== getFinalValueRef || $[81] !== updateValue || $[82] !== valueRef) {
11783
+ if ($[79] !== getFinalValueRef || $[80] !== updateValue || $[81] !== valueRef) {
11785
11784
  t35 = function t35() {
11786
11785
  updateValue(getFinalValueRef.current(valueRef.current));
11787
11786
  };
11788
- $[80] = getFinalValueRef;
11789
- $[81] = updateValue;
11790
- $[82] = valueRef;
11791
- $[83] = t35;
11787
+ $[79] = getFinalValueRef;
11788
+ $[80] = updateValue;
11789
+ $[81] = valueRef;
11790
+ $[82] = t35;
11792
11791
  } else {
11793
- t35 = $[83];
11792
+ t35 = $[82];
11794
11793
  }
11795
11794
  var t36;
11796
- if ($[84] !== multiple) {
11795
+ if ($[83] !== multiple) {
11797
11796
  t36 = [multiple];
11798
- $[84] = multiple;
11799
- $[85] = t36;
11797
+ $[83] = multiple;
11798
+ $[84] = t36;
11800
11799
  } else {
11801
- t36 = $[85];
11800
+ t36 = $[84];
11802
11801
  }
11803
11802
  reactHook.useFirstSkipEffect(t35, t36);
11804
11803
  var t37;
11805
- if ($[86] !== async || $[87] !== onAsyncLoadValueItemRef || $[88] !== setItems || $[89] !== valueItem || $[90] !== value_2) {
11804
+ if ($[85] !== async || $[86] !== onAsyncLoadValueItemRef || $[87] !== setItems || $[88] !== valueItem || $[89] !== value_2) {
11806
11805
  t37 = function t37() {
11807
11806
  if (async && onAsyncLoadValueItemRef.current) {
11808
11807
  if (value_2 != null) {
@@ -11823,28 +11822,28 @@ function _temp$m() {
11823
11822
  }
11824
11823
  }
11825
11824
  };
11826
- $[86] = async;
11827
- $[87] = onAsyncLoadValueItemRef;
11828
- $[88] = setItems;
11829
- $[89] = valueItem;
11830
- $[90] = value_2;
11831
- $[91] = t37;
11825
+ $[85] = async;
11826
+ $[86] = onAsyncLoadValueItemRef;
11827
+ $[87] = setItems;
11828
+ $[88] = valueItem;
11829
+ $[89] = value_2;
11830
+ $[90] = t37;
11832
11831
  } else {
11833
- t37 = $[91];
11832
+ t37 = $[90];
11834
11833
  }
11835
11834
  var t38;
11836
- if ($[92] !== async || $[93] !== valueItem || $[94] !== value_2) {
11835
+ if ($[91] !== async || $[92] !== valueItem || $[93] !== value_2) {
11837
11836
  t38 = [async, value_2, valueItem];
11838
- $[92] = async;
11839
- $[93] = valueItem;
11840
- $[94] = value_2;
11841
- $[95] = t38;
11837
+ $[91] = async;
11838
+ $[92] = valueItem;
11839
+ $[93] = value_2;
11840
+ $[94] = t38;
11842
11841
  } else {
11843
- t38 = $[95];
11842
+ t38 = $[94];
11844
11843
  }
11845
11844
  reactHook.useEventEffect(t37, t38);
11846
11845
  var t39;
11847
- if ($[96] !== async || $[97] !== asyncTimeoutRef || $[98] !== componentValue || $[99] !== inputValue || $[100] !== onLoadItems || $[101] !== setAsyncTimeout || $[102] !== setItems) {
11846
+ if ($[95] !== async || $[96] !== asyncTimeoutRef || $[97] !== componentValue || $[98] !== inputValue || $[99] !== onLoadItems || $[100] !== setAsyncTimeout || $[101] !== setItems) {
11848
11847
  t39 = function t39() {
11849
11848
  if (async && onLoadItems) {
11850
11849
  reactHook.clearTimeoutRef(asyncTimeoutRef);
@@ -11884,231 +11883,231 @@ function _temp$m() {
11884
11883
  }
11885
11884
  }
11886
11885
  };
11887
- $[96] = async;
11888
- $[97] = asyncTimeoutRef;
11889
- $[98] = componentValue;
11890
- $[99] = inputValue;
11891
- $[100] = onLoadItems;
11892
- $[101] = setAsyncTimeout;
11893
- $[102] = setItems;
11894
- $[103] = t39;
11886
+ $[95] = async;
11887
+ $[96] = asyncTimeoutRef;
11888
+ $[97] = componentValue;
11889
+ $[98] = inputValue;
11890
+ $[99] = onLoadItems;
11891
+ $[100] = setAsyncTimeout;
11892
+ $[101] = setItems;
11893
+ $[102] = t39;
11895
11894
  } else {
11896
- t39 = $[103];
11895
+ t39 = $[102];
11897
11896
  }
11898
11897
  var t40;
11899
- if ($[104] !== async || $[105] !== inputValue) {
11898
+ if ($[103] !== async || $[104] !== inputValue) {
11900
11899
  t40 = [async, inputValue];
11901
- $[104] = async;
11902
- $[105] = inputValue;
11903
- $[106] = t40;
11900
+ $[103] = async;
11901
+ $[104] = inputValue;
11902
+ $[105] = t40;
11904
11903
  } else {
11905
- t40 = $[106];
11904
+ t40 = $[105];
11906
11905
  }
11907
11906
  reactHook.useEventEffect(t39, t40);
11908
11907
  var t41;
11909
- if ($[107] === Symbol["for"]("react.memo_cache_sentinel")) {
11908
+ if ($[106] === Symbol["for"]("react.memo_cache_sentinel")) {
11910
11909
  t41 = function t41() {
11911
11910
  var _textFieldRef$current;
11912
11911
  (_textFieldRef$current = textFieldRef.current) === null || _textFieldRef$current === void 0 || _textFieldRef$current.focus();
11913
11912
  };
11914
- $[107] = t41;
11913
+ $[106] = t41;
11915
11914
  } else {
11916
- t41 = $[107];
11915
+ t41 = $[106];
11917
11916
  }
11918
11917
  var focus = t41;
11919
11918
  var t42;
11920
- if ($[108] !== name) {
11919
+ if ($[107] !== name) {
11921
11920
  t42 = function t42() {
11922
11921
  return name;
11923
11922
  };
11924
- $[108] = name;
11925
- $[109] = t42;
11923
+ $[107] = name;
11924
+ $[108] = t42;
11926
11925
  } else {
11927
- t42 = $[109];
11926
+ t42 = $[108];
11928
11927
  }
11929
11928
  var t43;
11930
- if ($[110] !== getFinalValueRef || $[111] !== initValueRef) {
11929
+ if ($[109] !== getFinalValueRef || $[110] !== initValueRef) {
11931
11930
  t43 = function t43() {
11932
11931
  return getFinalValueRef.current(initValueRef.current);
11933
11932
  };
11934
- $[110] = getFinalValueRef;
11935
- $[111] = initValueRef;
11936
- $[112] = t43;
11933
+ $[109] = getFinalValueRef;
11934
+ $[110] = initValueRef;
11935
+ $[111] = t43;
11937
11936
  } else {
11938
- t43 = $[112];
11937
+ t43 = $[111];
11939
11938
  }
11940
11939
  var t44;
11941
- if ($[113] !== initValueRef || $[114] !== updateValue) {
11940
+ if ($[112] !== initValueRef || $[113] !== updateValue) {
11942
11941
  t44 = function t44() {
11943
11942
  return updateValue(initValueRef.current);
11944
11943
  };
11945
- $[113] = initValueRef;
11946
- $[114] = updateValue;
11947
- $[115] = t44;
11944
+ $[112] = initValueRef;
11945
+ $[113] = updateValue;
11946
+ $[114] = t44;
11948
11947
  } else {
11949
- t44 = $[115];
11948
+ t44 = $[114];
11950
11949
  }
11951
11950
  var t45;
11952
- if ($[116] !== valueRef) {
11951
+ if ($[115] !== valueRef) {
11953
11952
  t45 = function t45() {
11954
11953
  return valueRef.current;
11955
11954
  };
11956
- $[116] = valueRef;
11957
- $[117] = t45;
11955
+ $[115] = valueRef;
11956
+ $[116] = t45;
11958
11957
  } else {
11959
- t45 = $[117];
11958
+ t45 = $[116];
11960
11959
  }
11961
11960
  var t46;
11962
- if ($[118] !== updateValue) {
11961
+ if ($[117] !== updateValue) {
11963
11962
  t46 = function t46(newValue_4) {
11964
11963
  return updateValue(newValue_4);
11965
11964
  };
11966
- $[118] = updateValue;
11967
- $[119] = t46;
11965
+ $[117] = updateValue;
11966
+ $[118] = t46;
11968
11967
  } else {
11969
- t46 = $[119];
11968
+ t46 = $[118];
11970
11969
  }
11971
11970
  var t47;
11972
- if ($[120] !== dataRef) {
11971
+ if ($[119] !== dataRef) {
11973
11972
  t47 = function t47() {
11974
11973
  return dataRef.current;
11975
11974
  };
11976
- $[120] = dataRef;
11977
- $[121] = t47;
11975
+ $[119] = dataRef;
11976
+ $[120] = t47;
11978
11977
  } else {
11979
- t47 = $[121];
11978
+ t47 = $[120];
11980
11979
  }
11981
11980
  var t48;
11982
- if ($[122] !== setData) {
11981
+ if ($[121] !== setData) {
11983
11982
  t48 = function t48(data_0) {
11984
11983
  return setData(data_0);
11985
11984
  };
11986
- $[122] = setData;
11987
- $[123] = t48;
11985
+ $[121] = setData;
11986
+ $[122] = t48;
11988
11987
  } else {
11989
- t48 = $[123];
11988
+ t48 = $[122];
11990
11989
  }
11991
11990
  var t49;
11992
- if ($[124] !== exceptValue) {
11991
+ if ($[123] !== exceptValue) {
11993
11992
  t49 = function t49() {
11994
11993
  return !!exceptValue;
11995
11994
  };
11996
- $[124] = exceptValue;
11997
- $[125] = t49;
11995
+ $[123] = exceptValue;
11996
+ $[124] = t49;
11998
11997
  } else {
11999
- t49 = $[125];
11998
+ t49 = $[124];
12000
11999
  }
12001
12000
  var t50;
12002
- if ($[126] !== disabled) {
12001
+ if ($[125] !== disabled) {
12003
12002
  t50 = function t50() {
12004
12003
  return !!disabled;
12005
12004
  };
12006
- $[126] = disabled;
12007
- $[127] = t50;
12005
+ $[125] = disabled;
12006
+ $[126] = t50;
12008
12007
  } else {
12009
- t50 = $[127];
12008
+ t50 = $[126];
12010
12009
  }
12011
12010
  var t51;
12012
- if ($[128] === Symbol["for"]("react.memo_cache_sentinel")) {
12011
+ if ($[127] === Symbol["for"]("react.memo_cache_sentinel")) {
12013
12012
  t51 = function t51(disabled_0) {
12014
12013
  return setDisabled(disabled_0);
12015
12014
  };
12016
- $[128] = t51;
12015
+ $[127] = t51;
12017
12016
  } else {
12018
- t51 = $[128];
12017
+ t51 = $[127];
12019
12018
  }
12020
12019
  var t52;
12021
- if ($[129] !== hidden) {
12020
+ if ($[128] !== hidden) {
12022
12021
  t52 = function t52() {
12023
12022
  return !!hidden;
12024
12023
  };
12025
- $[129] = hidden;
12026
- $[130] = t52;
12024
+ $[128] = hidden;
12025
+ $[129] = t52;
12027
12026
  } else {
12028
- t52 = $[130];
12027
+ t52 = $[129];
12029
12028
  }
12030
12029
  var t53;
12031
- if ($[131] === Symbol["for"]("react.memo_cache_sentinel")) {
12030
+ if ($[130] === Symbol["for"]("react.memo_cache_sentinel")) {
12032
12031
  t53 = function t53(hidden_0) {
12033
12032
  return setHidden(hidden_0);
12034
12033
  };
12035
- $[131] = t53;
12034
+ $[130] = t53;
12036
12035
  } else {
12037
- t53 = $[131];
12036
+ t53 = $[130];
12038
12037
  }
12039
12038
  var t54;
12040
- if ($[132] !== validate || $[133] !== valueRef) {
12039
+ if ($[131] !== validate || $[132] !== valueRef) {
12041
12040
  t54 = function t54() {
12042
12041
  return validate(valueRef.current);
12043
12042
  };
12044
- $[132] = validate;
12045
- $[133] = valueRef;
12046
- $[134] = t54;
12043
+ $[131] = validate;
12044
+ $[132] = valueRef;
12045
+ $[133] = t54;
12047
12046
  } else {
12048
- t54 = $[134];
12047
+ t54 = $[133];
12049
12048
  }
12050
12049
  var t55;
12051
- if ($[135] !== formValueSeparator) {
12050
+ if ($[134] !== formValueSeparator) {
12052
12051
  t55 = function t55() {
12053
12052
  return formValueSeparator;
12054
12053
  };
12055
- $[135] = formValueSeparator;
12056
- $[136] = t55;
12054
+ $[134] = formValueSeparator;
12055
+ $[135] = t55;
12057
12056
  } else {
12058
- t55 = $[136];
12057
+ t55 = $[135];
12059
12058
  }
12060
12059
  var t56;
12061
- if ($[137] !== formValueSort) {
12060
+ if ($[136] !== formValueSort) {
12062
12061
  t56 = function t56() {
12063
12062
  return !!formValueSort;
12064
12063
  };
12065
- $[137] = formValueSort;
12066
- $[138] = t56;
12064
+ $[136] = formValueSort;
12065
+ $[137] = t56;
12067
12066
  } else {
12068
- t56 = $[138];
12067
+ t56 = $[137];
12069
12068
  }
12070
12069
  var t57;
12071
- if ($[139] !== itemsRef) {
12070
+ if ($[138] !== itemsRef) {
12072
12071
  t57 = function t57() {
12073
12072
  return itemsRef.current;
12074
12073
  };
12075
- $[139] = itemsRef;
12076
- $[140] = t57;
12074
+ $[138] = itemsRef;
12075
+ $[139] = t57;
12077
12076
  } else {
12078
- t57 = $[140];
12077
+ t57 = $[139];
12079
12078
  }
12080
12079
  var t58;
12081
- if ($[141] !== multiple) {
12080
+ if ($[140] !== multiple) {
12082
12081
  t58 = function t58() {
12083
12082
  return !!multiple;
12084
12083
  };
12085
- $[141] = multiple;
12086
- $[142] = t58;
12084
+ $[140] = multiple;
12085
+ $[141] = t58;
12087
12086
  } else {
12088
- t58 = $[142];
12087
+ t58 = $[141];
12089
12088
  }
12090
12089
  var t59;
12091
- if ($[143] !== loadingRef) {
12090
+ if ($[142] !== loadingRef) {
12092
12091
  t59 = function t59() {
12093
12092
  return !!loadingRef.current;
12094
12093
  };
12095
- $[143] = loadingRef;
12096
- $[144] = t59;
12094
+ $[142] = loadingRef;
12095
+ $[143] = t59;
12097
12096
  } else {
12098
- t59 = $[144];
12097
+ t59 = $[143];
12099
12098
  }
12100
12099
  var t60;
12101
- if ($[145] !== setLoading) {
12100
+ if ($[144] !== setLoading) {
12102
12101
  t60 = function t60(loading_0) {
12103
12102
  return setLoading(loading_0);
12104
12103
  };
12105
- $[145] = setLoading;
12106
- $[146] = t60;
12104
+ $[144] = setLoading;
12105
+ $[145] = t60;
12107
12106
  } else {
12108
- t60 = $[146];
12107
+ t60 = $[145];
12109
12108
  }
12110
12109
  var t61;
12111
- if ($[147] !== async || $[148] !== onLoadItemsRef || $[149] !== setItems) {
12110
+ if ($[146] !== async || $[147] !== onLoadItemsRef || $[148] !== setItems) {
12112
12111
  t61 = function t61() {
12113
12112
  if (!async && onLoadItemsRef.current) {
12114
12113
  showOnGetItemLoading();
@@ -12119,15 +12118,15 @@ function _temp$m() {
12119
12118
  });
12120
12119
  }
12121
12120
  };
12122
- $[147] = async;
12123
- $[148] = onLoadItemsRef;
12124
- $[149] = setItems;
12125
- $[150] = t61;
12121
+ $[146] = async;
12122
+ $[147] = onLoadItemsRef;
12123
+ $[148] = setItems;
12124
+ $[149] = t61;
12126
12125
  } else {
12127
- t61 = $[150];
12126
+ t61 = $[149];
12128
12127
  }
12129
12128
  var t62;
12130
- if ($[151] !== setErrorErrorHelperText || $[152] !== setItems || $[153] !== t42 || $[154] !== t43 || $[155] !== t44 || $[156] !== t45 || $[157] !== t46 || $[158] !== t47 || $[159] !== t48 || $[160] !== t49 || $[161] !== t50 || $[162] !== t52 || $[163] !== t54 || $[164] !== t55 || $[165] !== t56 || $[166] !== t57 || $[167] !== t58 || $[168] !== t59 || $[169] !== t60 || $[170] !== t61) {
12129
+ if ($[150] !== setErrorErrorHelperText || $[151] !== setItems || $[152] !== t42 || $[153] !== t43 || $[154] !== t44 || $[155] !== t45 || $[156] !== t46 || $[157] !== t47 || $[158] !== t48 || $[159] !== t49 || $[160] !== t50 || $[161] !== t52 || $[162] !== t54 || $[163] !== t55 || $[164] !== t56 || $[165] !== t57 || $[166] !== t58 || $[167] !== t59 || $[168] !== t60 || $[169] !== t61) {
12131
12130
  t62 = {
12132
12131
  getType: _temp4,
12133
12132
  getName: t42,
@@ -12156,56 +12155,56 @@ function _temp$m() {
12156
12155
  reloadItems: t61,
12157
12156
  setInputValue: setInputValue
12158
12157
  };
12159
- $[151] = setErrorErrorHelperText;
12160
- $[152] = setItems;
12161
- $[153] = t42;
12162
- $[154] = t43;
12163
- $[155] = t44;
12164
- $[156] = t45;
12165
- $[157] = t46;
12166
- $[158] = t47;
12167
- $[159] = t48;
12168
- $[160] = t49;
12169
- $[161] = t50;
12170
- $[162] = t52;
12171
- $[163] = t54;
12172
- $[164] = t55;
12173
- $[165] = t56;
12174
- $[166] = t57;
12175
- $[167] = t58;
12176
- $[168] = t59;
12177
- $[169] = t60;
12178
- $[170] = t61;
12179
- $[171] = t62;
12180
- } else {
12181
- t62 = $[171];
12158
+ $[150] = setErrorErrorHelperText;
12159
+ $[151] = setItems;
12160
+ $[152] = t42;
12161
+ $[153] = t43;
12162
+ $[154] = t44;
12163
+ $[155] = t45;
12164
+ $[156] = t46;
12165
+ $[157] = t47;
12166
+ $[158] = t48;
12167
+ $[159] = t49;
12168
+ $[160] = t50;
12169
+ $[161] = t52;
12170
+ $[162] = t54;
12171
+ $[163] = t55;
12172
+ $[164] = t56;
12173
+ $[165] = t57;
12174
+ $[166] = t58;
12175
+ $[167] = t59;
12176
+ $[168] = t60;
12177
+ $[169] = t61;
12178
+ $[170] = t62;
12179
+ } else {
12180
+ t62 = $[170];
12182
12181
  }
12183
12182
  var commands = t62;
12184
12183
  var t63;
12185
- if ($[172] !== id || $[173] !== onAddValueItem) {
12184
+ if ($[171] !== id || $[172] !== onAddValueItem) {
12186
12185
  t63 = function t63(commands_0) {
12187
12186
  return onAddValueItem(id, commands_0);
12188
12187
  };
12189
- $[172] = id;
12190
- $[173] = onAddValueItem;
12191
- $[174] = t63;
12188
+ $[171] = id;
12189
+ $[172] = onAddValueItem;
12190
+ $[173] = t63;
12192
12191
  } else {
12193
- t63 = $[174];
12192
+ t63 = $[173];
12194
12193
  }
12195
12194
  var t64;
12196
- if ($[175] !== id || $[176] !== onRemoveValueItem) {
12195
+ if ($[174] !== id || $[175] !== onRemoveValueItem) {
12197
12196
  t64 = function t64() {
12198
12197
  return onRemoveValueItem(id);
12199
12198
  };
12200
- $[175] = id;
12201
- $[176] = onRemoveValueItem;
12202
- $[177] = t64;
12199
+ $[174] = id;
12200
+ $[175] = onRemoveValueItem;
12201
+ $[176] = t64;
12203
12202
  } else {
12204
- t64 = $[177];
12203
+ t64 = $[176];
12205
12204
  }
12206
12205
  reactHook.useForwardRef(ref, commands, t63, t64);
12207
12206
  var t65;
12208
- if ($[178] !== getFinalValueRef || $[179] !== multiple || $[180] !== name || $[181] !== onAddItem || $[182] !== onRequestSearchSubmit || $[183] !== onValueChangeByUser || $[184] !== updateValue || $[185] !== valueRef) {
12207
+ if ($[177] !== getFinalValueRef || $[178] !== multiple || $[179] !== name || $[180] !== onAddItem || $[181] !== onRequestSearchSubmit || $[182] !== onValueChangeByUser || $[183] !== updateValue || $[184] !== valueRef) {
12209
12208
  t65 = function t65(componentValue_0, reason, details) {
12210
12209
  var go = function go() {
12211
12210
  var newValue_5 = undefined;
@@ -12249,21 +12248,21 @@ function _temp$m() {
12249
12248
  go();
12250
12249
  }
12251
12250
  };
12252
- $[178] = getFinalValueRef;
12253
- $[179] = multiple;
12254
- $[180] = name;
12255
- $[181] = onAddItem;
12256
- $[182] = onRequestSearchSubmit;
12257
- $[183] = onValueChangeByUser;
12258
- $[184] = updateValue;
12259
- $[185] = valueRef;
12260
- $[186] = t65;
12251
+ $[177] = getFinalValueRef;
12252
+ $[178] = multiple;
12253
+ $[179] = name;
12254
+ $[180] = onAddItem;
12255
+ $[181] = onRequestSearchSubmit;
12256
+ $[182] = onValueChangeByUser;
12257
+ $[183] = updateValue;
12258
+ $[184] = valueRef;
12259
+ $[185] = t65;
12261
12260
  } else {
12262
- t65 = $[186];
12261
+ t65 = $[185];
12263
12262
  }
12264
12263
  var handleChange = t65;
12265
12264
  var t66;
12266
- if ($[187] !== getOptionDisabled) {
12265
+ if ($[186] !== getOptionDisabled) {
12267
12266
  t66 = function t66(option) {
12268
12267
  if (getOptionDisabled) {
12269
12268
  return option.disabled || getOptionDisabled(option);
@@ -12271,74 +12270,85 @@ function _temp$m() {
12271
12270
  return !!option.disabled;
12272
12271
  }
12273
12272
  };
12274
- $[187] = getOptionDisabled;
12275
- $[188] = t66;
12273
+ $[186] = getOptionDisabled;
12274
+ $[187] = t66;
12276
12275
  } else {
12277
- t66 = $[188];
12276
+ t66 = $[187];
12278
12277
  }
12279
12278
  var handleGetOptionDisabled = t66;
12280
- var style;
12281
- if ($[189] !== hidden || $[190] !== initStyle || $[191] !== width) {
12282
- style = _objectSpread2({
12279
+ var _style;
12280
+ if ($[188] !== hidden || $[189] !== initStyle || $[190] !== width) {
12281
+ _style = _objectSpread2({
12283
12282
  minWidth: 120
12284
12283
  }, initStyle);
12285
12284
  if (hidden) {
12286
- style.display = "none";
12285
+ _style.display = "none";
12287
12286
  }
12288
12287
  if (width != null) {
12289
- style.width = width;
12288
+ _style.width = width;
12290
12289
  }
12291
- $[189] = hidden;
12292
- $[190] = initStyle;
12293
- $[191] = width;
12294
- $[192] = style;
12290
+ $[188] = hidden;
12291
+ $[189] = initStyle;
12292
+ $[190] = width;
12293
+ $[191] = _style;
12295
12294
  } else {
12296
- style = $[192];
12295
+ _style = $[191];
12297
12296
  }
12297
+ var style = _style;
12298
12298
  var t67;
12299
- if ($[193] !== items) {
12300
- t67 = items || [];
12301
- $[193] = items;
12299
+ if ($[192] !== componentValue || $[193] !== onGetDisplayValue) {
12300
+ t67 = onGetDisplayValue ? onGetDisplayValue(componentValue) : componentValue;
12301
+ $[192] = componentValue;
12302
+ $[193] = onGetDisplayValue;
12302
12303
  $[194] = t67;
12303
12304
  } else {
12304
12305
  t67 = $[194];
12305
12306
  }
12307
+ var displayValue = t67;
12306
12308
  var t68;
12307
- if ($[195] !== className) {
12308
- t68 = classNames(className, "PFormValueItem", "PFormAutocomplete");
12309
- $[195] = className;
12309
+ if ($[195] !== items) {
12310
+ t68 = items || [];
12311
+ $[195] = items;
12310
12312
  $[196] = t68;
12311
12313
  } else {
12312
12314
  t68 = $[196];
12313
12315
  }
12314
- var t69 = !width && fullWidth;
12315
- var t70 = componentValue;
12316
- var t71 = loading || isOnGetItemLoading;
12317
- var t72;
12318
- if ($[197] !== handleChange) {
12319
- t72 = function t72(e, value_4, reason_0, details_0) {
12316
+ var t69;
12317
+ if ($[197] !== className) {
12318
+ t69 = classNames(className, "PFormValueItem", "PFormAutocomplete");
12319
+ $[197] = className;
12320
+ $[198] = t69;
12321
+ } else {
12322
+ t69 = $[198];
12323
+ }
12324
+ var t70 = !width && fullWidth;
12325
+ var t71 = displayValue;
12326
+ var t72 = loading || isOnGetItemLoading;
12327
+ var t73;
12328
+ if ($[199] !== handleChange) {
12329
+ t73 = function t73(e, value_4, reason_0, details_0) {
12320
12330
  return handleChange(value_4, reason_0, details_0);
12321
12331
  };
12322
- $[197] = handleChange;
12323
- $[198] = t72;
12332
+ $[199] = handleChange;
12333
+ $[200] = t73;
12324
12334
  } else {
12325
- t72 = $[198];
12335
+ t73 = $[200];
12326
12336
  }
12327
- var t73;
12328
- if ($[199] !== onRenderItem) {
12329
- t73 = function t73(props, option_1) {
12337
+ var t74;
12338
+ if ($[201] !== onRenderItem) {
12339
+ t74 = function t74(props, option_1) {
12330
12340
  return /*#__PURE__*/React.createElement("li", _extends({}, props, {
12331
12341
  key: "".concat(option_1.value)
12332
12342
  }), onRenderItem ? onRenderItem(option_1) : option_1.label);
12333
12343
  };
12334
- $[199] = onRenderItem;
12335
- $[200] = t73;
12344
+ $[201] = onRenderItem;
12345
+ $[202] = t74;
12336
12346
  } else {
12337
- t73 = $[200];
12347
+ t74 = $[202];
12338
12348
  }
12339
- var t74;
12340
- if ($[201] === Symbol["for"]("react.memo_cache_sentinel")) {
12341
- t74 = function t74(event, newInputValue, reason_1) {
12349
+ var t75;
12350
+ if ($[203] === Symbol["for"]("react.memo_cache_sentinel")) {
12351
+ t75 = function t75(event, newInputValue, reason_1) {
12342
12352
  if (reason_1 === "input") {
12343
12353
  setInputValue(newInputValue);
12344
12354
  } else {
@@ -12347,13 +12357,13 @@ function _temp$m() {
12347
12357
  }
12348
12358
  }
12349
12359
  };
12350
- $[201] = t74;
12360
+ $[203] = t75;
12351
12361
  } else {
12352
- t74 = $[201];
12362
+ t75 = $[203];
12353
12363
  }
12354
- var t75;
12355
- if ($[202] !== multiple || $[203] !== onRenderTag || $[204] !== onRenderValue || $[205] !== size || $[206] !== variant) {
12356
- t75 = multiple ? function (value_5, getItemProps) {
12364
+ var t76;
12365
+ if ($[204] !== multiple || $[205] !== onRenderTag || $[206] !== onRenderValue || $[207] !== size || $[208] !== variant) {
12366
+ t76 = multiple ? function (value_5, getItemProps) {
12357
12367
  if (Array.isArray(value_5)) {
12358
12368
  return value_5.map(function (option_2, index) {
12359
12369
  return /*#__PURE__*/React.createElement(material.Chip, _extends({
@@ -12387,18 +12397,18 @@ function _temp$m() {
12387
12397
  index: 0
12388
12398
  })), onRenderValue(value_6));
12389
12399
  } : undefined;
12390
- $[202] = multiple;
12391
- $[203] = onRenderTag;
12392
- $[204] = onRenderValue;
12393
- $[205] = size;
12394
- $[206] = variant;
12395
- $[207] = t75;
12400
+ $[204] = multiple;
12401
+ $[205] = onRenderTag;
12402
+ $[206] = onRenderValue;
12403
+ $[207] = size;
12404
+ $[208] = variant;
12405
+ $[209] = t76;
12396
12406
  } else {
12397
- t75 = $[207];
12407
+ t76 = $[209];
12398
12408
  }
12399
- var t76;
12400
- if ($[208] !== autoFocus || $[209] !== color || $[210] !== disabled || $[211] !== error || $[212] !== errorHelperText || $[213] !== focused || $[214] !== helperText || $[215] !== isOnGetItemLoading || $[216] !== label || $[217] !== labelIcon || $[218] !== labelShrink || $[219] !== loading || $[220] !== name || $[221] !== onBlurRef || $[222] !== onFocusRef || $[223] !== placeholder || $[224] !== readOnly || $[225] !== required || $[226] !== size || $[227] !== variant) {
12401
- t76 = function t76(params) {
12409
+ var t77;
12410
+ if ($[210] !== autoFocus || $[211] !== color || $[212] !== disabled || $[213] !== error || $[214] !== errorHelperText || $[215] !== focused || $[216] !== helperText || $[217] !== isOnGetItemLoading || $[218] !== label || $[219] !== labelIcon || $[220] !== labelShrink || $[221] !== loading || $[222] !== name || $[223] !== onBlurRef || $[224] !== onFocusRef || $[225] !== placeholder || $[226] !== readOnly || $[227] !== required || $[228] !== size || $[229] !== variant) {
12411
+ t77 = function t77(params) {
12402
12412
  var _params$inputProps;
12403
12413
  var slotProps = {
12404
12414
  input: _objectSpread2(_objectSpread2({}, params.InputProps), {}, {
@@ -12449,85 +12459,85 @@ function _temp$m() {
12449
12459
  noFormValueItem: true
12450
12460
  }));
12451
12461
  };
12452
- $[208] = autoFocus;
12453
- $[209] = color;
12454
- $[210] = disabled;
12455
- $[211] = error;
12456
- $[212] = errorHelperText;
12457
- $[213] = focused;
12458
- $[214] = helperText;
12459
- $[215] = isOnGetItemLoading;
12460
- $[216] = label;
12461
- $[217] = labelIcon;
12462
- $[218] = labelShrink;
12463
- $[219] = loading;
12464
- $[220] = name;
12465
- $[221] = onBlurRef;
12466
- $[222] = onFocusRef;
12467
- $[223] = placeholder;
12468
- $[224] = readOnly;
12469
- $[225] = required;
12470
- $[226] = size;
12471
- $[227] = variant;
12472
- $[228] = t76;
12462
+ $[210] = autoFocus;
12463
+ $[211] = color;
12464
+ $[212] = disabled;
12465
+ $[213] = error;
12466
+ $[214] = errorHelperText;
12467
+ $[215] = focused;
12468
+ $[216] = helperText;
12469
+ $[217] = isOnGetItemLoading;
12470
+ $[218] = label;
12471
+ $[219] = labelIcon;
12472
+ $[220] = labelShrink;
12473
+ $[221] = loading;
12474
+ $[222] = name;
12475
+ $[223] = onBlurRef;
12476
+ $[224] = onFocusRef;
12477
+ $[225] = placeholder;
12478
+ $[226] = readOnly;
12479
+ $[227] = required;
12480
+ $[228] = size;
12481
+ $[229] = variant;
12482
+ $[230] = t77;
12473
12483
  } else {
12474
- t76 = $[228];
12484
+ t77 = $[230];
12475
12485
  }
12476
- var t77;
12477
- if ($[229] !== disableClearable || $[230] !== disablePortal || $[231] !== disabled || $[232] !== getLimitTagsText || $[233] !== handleGetOptionDisabled || $[234] !== limitTags || $[235] !== loadingText || $[236] !== multiple || $[237] !== noOptionsText || $[238] !== openOnFocus || $[239] !== readOnly || $[240] !== style || $[241] !== sx || $[242] !== t67 || $[243] !== t68 || $[244] !== t69 || $[245] !== t70 || $[246] !== t71 || $[247] !== t72 || $[248] !== t73 || $[249] !== t75 || $[250] !== t76) {
12478
- t77 = /*#__PURE__*/React.createElement(material.Autocomplete, {
12479
- options: t67,
12480
- className: t68,
12486
+ var t78;
12487
+ if ($[231] !== disableClearable || $[232] !== disablePortal || $[233] !== disabled || $[234] !== getLimitTagsText || $[235] !== handleGetOptionDisabled || $[236] !== limitTags || $[237] !== loadingText || $[238] !== multiple || $[239] !== noOptionsText || $[240] !== openOnFocus || $[241] !== readOnly || $[242] !== style || $[243] !== sx || $[244] !== t68 || $[245] !== t69 || $[246] !== t70 || $[247] !== t71 || $[248] !== t72 || $[249] !== t73 || $[250] !== t74 || $[251] !== t76 || $[252] !== t77) {
12488
+ t78 = /*#__PURE__*/React.createElement(material.Autocomplete, {
12489
+ options: t68,
12490
+ className: t69,
12481
12491
  sx: sx,
12482
12492
  multiple: multiple,
12483
- fullWidth: t69,
12493
+ fullWidth: t70,
12484
12494
  openOnFocus: openOnFocus,
12485
12495
  disableClearable: disableClearable,
12486
12496
  disablePortal: disablePortal,
12487
12497
  noOptionsText: noOptionsText,
12488
- value: t70,
12498
+ value: t71,
12489
12499
  style: style,
12490
12500
  isOptionEqualToValue: _temp6,
12491
12501
  getOptionDisabled: handleGetOptionDisabled,
12492
12502
  disabled: disabled,
12493
12503
  readOnly: readOnly,
12494
- loading: t71,
12504
+ loading: t72,
12495
12505
  loadingText: loadingText,
12496
12506
  limitTags: limitTags,
12497
12507
  getLimitTagsText: getLimitTagsText,
12498
- onChange: t72,
12499
- renderOption: t73,
12500
- onInputChange: t74,
12501
- renderValue: t75,
12502
- renderInput: t76
12508
+ onChange: t73,
12509
+ renderOption: t74,
12510
+ onInputChange: t75,
12511
+ renderValue: t76,
12512
+ renderInput: t77
12503
12513
  });
12504
- $[229] = disableClearable;
12505
- $[230] = disablePortal;
12506
- $[231] = disabled;
12507
- $[232] = getLimitTagsText;
12508
- $[233] = handleGetOptionDisabled;
12509
- $[234] = limitTags;
12510
- $[235] = loadingText;
12511
- $[236] = multiple;
12512
- $[237] = noOptionsText;
12513
- $[238] = openOnFocus;
12514
- $[239] = readOnly;
12515
- $[240] = style;
12516
- $[241] = sx;
12517
- $[242] = t67;
12518
- $[243] = t68;
12519
- $[244] = t69;
12520
- $[245] = t70;
12521
- $[246] = t71;
12522
- $[247] = t72;
12523
- $[248] = t73;
12524
- $[249] = t75;
12525
- $[250] = t76;
12526
- $[251] = t77;
12527
- } else {
12528
- t77 = $[251];
12514
+ $[231] = disableClearable;
12515
+ $[232] = disablePortal;
12516
+ $[233] = disabled;
12517
+ $[234] = getLimitTagsText;
12518
+ $[235] = handleGetOptionDisabled;
12519
+ $[236] = limitTags;
12520
+ $[237] = loadingText;
12521
+ $[238] = multiple;
12522
+ $[239] = noOptionsText;
12523
+ $[240] = openOnFocus;
12524
+ $[241] = readOnly;
12525
+ $[242] = style;
12526
+ $[243] = sx;
12527
+ $[244] = t68;
12528
+ $[245] = t69;
12529
+ $[246] = t70;
12530
+ $[247] = t71;
12531
+ $[248] = t72;
12532
+ $[249] = t73;
12533
+ $[250] = t74;
12534
+ $[251] = t76;
12535
+ $[252] = t77;
12536
+ $[253] = t78;
12537
+ } else {
12538
+ t78 = $[253];
12529
12539
  }
12530
- return t77;
12540
+ return t78;
12531
12541
  }
12532
12542
  function _temp6(option_0, value_3) {
12533
12543
  return option_0.value === value_3.value;