@redneckz/wildless-cms-uni-blocks 0.14.1088 → 0.14.1090
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/bundle/bundle.umd.js +19 -9
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/dist/retail/utils/getBaseUrl.js +14 -4
- package/dist/retail/utils/getBaseUrl.js.map +1 -1
- package/dist/ui-kit/UserSurveyDialog/FirstStep.js +2 -2
- package/dist/ui-kit/UserSurveyDialog/UserSurveyDialog.js +2 -2
- package/dist/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/lib/retail/utils/getBaseUrl.js +14 -4
- package/lib/retail/utils/getBaseUrl.js.map +1 -1
- package/lib/ui-kit/UserSurveyDialog/FirstStep.js +2 -2
- package/lib/ui-kit/UserSurveyDialog/UserSurveyDialog.js +2 -2
- package/lib/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +19 -9
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/mobile/dist/retail/utils/getBaseUrl.js +14 -4
- package/mobile/dist/retail/utils/getBaseUrl.js.map +1 -1
- package/mobile/dist/ui-kit/UserSurveyDialog/FirstStep.js +2 -2
- package/mobile/dist/ui-kit/UserSurveyDialog/UserSurveyDialog.js +2 -2
- package/mobile/dist/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/mobile/lib/retail/utils/getBaseUrl.js +14 -4
- package/mobile/lib/retail/utils/getBaseUrl.js.map +1 -1
- package/mobile/lib/ui-kit/UserSurveyDialog/FirstStep.js +2 -2
- package/mobile/lib/ui-kit/UserSurveyDialog/UserSurveyDialog.js +2 -2
- package/mobile/lib/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/mobile/src/retail/utils/getBaseUrl.ts +15 -4
- package/mobile/src/ui-kit/UserSurveyDialog/FirstStep.tsx +2 -2
- package/mobile/src/ui-kit/UserSurveyDialog/UserSurveyDialog.tsx +2 -2
- package/mobile/src/ui-kit/UserSurveyDialog/UserSurveyDialogContent.ts +1 -1
- package/package.json +1 -1
- package/src/retail/utils/getBaseUrl.ts +15 -4
- package/src/ui-kit/UserSurveyDialog/FirstStep.tsx +2 -2
- package/src/ui-kit/UserSurveyDialog/UserSurveyDialog.tsx +2 -2
- package/src/ui-kit/UserSurveyDialog/UserSurveyDialogContent.ts +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -1835,8 +1835,8 @@
|
|
|
1835
1835
|
|
|
1836
1836
|
const stars$1 = Array.from('12345', () => Star);
|
|
1837
1837
|
const TITLE$1 = {
|
|
1838
|
-
|
|
1839
|
-
|
|
1838
|
+
nps: 'Оцените, пожалуйста, от 1 до 5,\nнасколько вероятно, что вы порекомендуете Россельхозбанк коллегам, друзьям и знакомым?',
|
|
1839
|
+
csi: 'Оцените, пожалуйста, удовлетворённость пользования сайтом',
|
|
1840
1840
|
};
|
|
1841
1841
|
const FirstStep = JSX(({ currentRating, surveyType, isSending, setCurrentRating, onNextStep, onSubmit }) => {
|
|
1842
1842
|
const [currentHover, setCurrentHover] = useState();
|
|
@@ -2026,9 +2026,9 @@
|
|
|
2026
2026
|
// Если пользователь проходил опрос то показываем другой, иначе показываем случайный тип опроса
|
|
2027
2027
|
const getUserSurveyType = (lastShownType) => {
|
|
2028
2028
|
if (lastShownType) {
|
|
2029
|
-
return lastShownType === '
|
|
2029
|
+
return lastShownType === 'nps' ? 'csi' : 'nps';
|
|
2030
2030
|
}
|
|
2031
|
-
return ['
|
|
2031
|
+
return ['nps', 'csi'][Date.now() % 2];
|
|
2032
2032
|
};
|
|
2033
2033
|
|
|
2034
2034
|
const DELAY = 5 * 60 * 1000;
|
|
@@ -4455,12 +4455,22 @@
|
|
|
4455
4455
|
const NEW_RETAIL_CREDIT_API_BASE_URI = '/api/credit-application';
|
|
4456
4456
|
const NEW_RETAIL_CREDIT_CARD_API_BASE_URI = '/api/creditcard-application';
|
|
4457
4457
|
|
|
4458
|
+
const getProductType = () => {
|
|
4459
|
+
const raw = globalThis.localStorage?.getItem('productType');
|
|
4460
|
+
if (!raw) {
|
|
4461
|
+
return null;
|
|
4462
|
+
}
|
|
4463
|
+
try {
|
|
4464
|
+
return JSON.parse(raw);
|
|
4465
|
+
}
|
|
4466
|
+
catch {
|
|
4467
|
+
return null;
|
|
4468
|
+
}
|
|
4469
|
+
};
|
|
4458
4470
|
const getBaseUrl = () => {
|
|
4459
4471
|
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
4460
|
-
const productType =
|
|
4461
|
-
const newRetailApi = productType === '
|
|
4462
|
-
? NEW_RETAIL_CREDIT_API_BASE_URI
|
|
4463
|
-
: NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
4472
|
+
const productType = getProductType();
|
|
4473
|
+
const newRetailApi = productType === 'credit' ? NEW_RETAIL_CREDIT_API_BASE_URI : NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
4464
4474
|
return isNewMicroservice ? newRetailApi : RETAIL_API_BASE_URI;
|
|
4465
4475
|
};
|
|
4466
4476
|
|
|
@@ -15175,7 +15185,7 @@
|
|
|
15175
15185
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
15176
15186
|
});
|
|
15177
15187
|
|
|
15178
|
-
const packageVersion = "0.14.
|
|
15188
|
+
const packageVersion = "0.14.1089";
|
|
15179
15189
|
|
|
15180
15190
|
exports.Blocks = Blocks;
|
|
15181
15191
|
exports.ContentPage = ContentPage;
|