@redneckz/wildless-cms-uni-blocks 0.14.1081 → 0.14.1083

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 (41) hide show
  1. package/bundle/bundle.umd.js +7 -15
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/retail/utils/yandexMetrika.d.ts +1 -1
  4. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -14
  5. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  6. package/dist/retail/components/Fields/CurrencyField.js +3 -1
  7. package/dist/retail/components/Fields/CurrencyField.js.map +1 -1
  8. package/dist/retail/utils/yandexMetrika.d.ts +1 -1
  9. package/dist/retail/utils/yandexMetrika.js +1 -2
  10. package/dist/retail/utils/yandexMetrika.js.map +1 -1
  11. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -14
  12. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  13. package/lib/retail/components/Fields/CurrencyField.js +3 -1
  14. package/lib/retail/components/Fields/CurrencyField.js.map +1 -1
  15. package/lib/retail/utils/yandexMetrika.d.ts +1 -1
  16. package/lib/retail/utils/yandexMetrika.js +1 -2
  17. package/lib/retail/utils/yandexMetrika.js.map +1 -1
  18. package/mobile/bundle/bundle.umd.js +7 -15
  19. package/mobile/bundle/bundle.umd.min.js +1 -1
  20. package/mobile/bundle/retail/utils/yandexMetrika.d.ts +1 -1
  21. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -14
  22. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  23. package/mobile/dist/retail/components/Fields/CurrencyField.js +3 -1
  24. package/mobile/dist/retail/components/Fields/CurrencyField.js.map +1 -1
  25. package/mobile/dist/retail/utils/yandexMetrika.d.ts +1 -1
  26. package/mobile/dist/retail/utils/yandexMetrika.js +1 -2
  27. package/mobile/dist/retail/utils/yandexMetrika.js.map +1 -1
  28. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -14
  29. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  30. package/mobile/lib/retail/components/Fields/CurrencyField.js +3 -1
  31. package/mobile/lib/retail/components/Fields/CurrencyField.js.map +1 -1
  32. package/mobile/lib/retail/utils/yandexMetrika.d.ts +1 -1
  33. package/mobile/lib/retail/utils/yandexMetrika.js +1 -2
  34. package/mobile/lib/retail/utils/yandexMetrika.js.map +1 -1
  35. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +2 -21
  36. package/mobile/src/retail/components/Fields/CurrencyField.tsx +3 -1
  37. package/mobile/src/retail/utils/yandexMetrika.ts +1 -3
  38. package/package.json +1 -1
  39. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +2 -21
  40. package/src/retail/components/Fields/CurrencyField.tsx +3 -1
  41. package/src/retail/utils/yandexMetrika.ts +1 -3
@@ -6051,10 +6051,12 @@
6051
6051
  };
6052
6052
 
6053
6053
  const RUBLE = [{ id: '810', text: 'Рубли' }];
6054
+ const SALARY_PROGRAM_IDS = ['38', '48', '49'];
6054
6055
  const CurrencyField = JSX(({ field, input }) => {
6055
6056
  const { data } = useLeadFormData('CURRENCY');
6056
6057
  const { programId } = useLeadFormStore();
6057
- const isOnlyRuble = useMemo(() => !Object.keys(debitProgrammIdToCardCodesMap).includes(programId || '') || programId === '38', []);
6058
+ const isOnlyRuble = useMemo(() => !Object.keys(debitProgrammIdToCardCodesMap).includes(programId || '') ||
6059
+ SALARY_PROGRAM_IDS.includes(programId ?? ''), []);
6058
6060
  const currencies = useMemo(() => (isOnlyRuble ? RUBLE : data?.map((_) => ({ id: _.key ?? '', text: _.description }))), [data]);
6059
6061
  return (jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencies, ...field(input?.name ?? ''), ...input }));
6060
6062
  });
@@ -6897,7 +6899,7 @@
6897
6899
  restInputs: inputs.filter(({ name }) => !Object.keys(productTypeToConsentsMap[productType]).includes(String(name))),
6898
6900
  });
6899
6901
 
6900
- const YANDEX_ID = projectSettings.YANDEX_METRIKA_ID || '92511315';
6902
+ const YANDEX_ID = '92511315';
6901
6903
 
6902
6904
  const ASPECTS_MAP = {
6903
6905
  leadForm: {
@@ -8016,13 +8018,8 @@
8016
8018
  });
8017
8019
  };
8018
8020
  const createHandleSuccessVerifyNew = ({ common, taskData, draftDialog, consentBkiDialog, }) => async () => {
8019
- const { verifyPhoneDialog, sendAspects, handleFailSendForm, programId, productType, aspects } = common;
8021
+ const { verifyPhoneDialog, sendAspects, handleFailSendForm, programId, productType } = common;
8020
8022
  const { formData } = taskData;
8021
- handleAspects({
8022
- aspectsAttributes: getAspects('leadForm', productType),
8023
- aspects,
8024
- ev: {},
8025
- });
8026
8023
  try {
8027
8024
  const participantData = await createParticipant({
8028
8025
  phone: formatPhone(formData.phone),
@@ -8098,13 +8095,8 @@
8098
8095
  };
8099
8096
  const createHandleSuccessVerifyOld = (props, sendCurrentTask) => async () => {
8100
8097
  const { common, draftDialog } = props;
8101
- const { aspects, programId, sendAspects, verifyPhoneDialog, handleFailSendForm, profileId } = common;
8098
+ const { programId, sendAspects, verifyPhoneDialog, handleFailSendForm, profileId } = common;
8102
8099
  const productType = common.productType;
8103
- handleAspects({
8104
- aspectsAttributes: getAspects('leadForm', productType),
8105
- aspects,
8106
- ev: {},
8107
- });
8108
8100
  try {
8109
8101
  const lastTaskId = await getLastTaskStatus({ profileId, programId });
8110
8102
  if (lastTaskId) {
@@ -15156,7 +15148,7 @@
15156
15148
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
15157
15149
  });
15158
15150
 
15159
- const packageVersion = "0.14.1080";
15151
+ const packageVersion = "0.14.1082";
15160
15152
 
15161
15153
  exports.Blocks = Blocks;
15162
15154
  exports.ContentPage = ContentPage;