@redneckz/wildless-cms-uni-blocks 0.14.690 → 0.14.691
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 +23 -14
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/dist/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/dist/components/CreditCardForm/getSixthStepData.js +22 -13
- package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/lib/components/CreditCardForm/getSixthStepData.js +22 -13
- package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +23 -14
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js +22 -13
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js +22 -13
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/src/components/CreditCardForm/getSixthStepData.ts +25 -13
- package/package.json +1 -1
- package/src/components/CreditCardForm/getSixthStepData.ts +25 -13
package/bundle/bundle.umd.js
CHANGED
|
@@ -6607,23 +6607,32 @@
|
|
|
6607
6607
|
|
|
6608
6608
|
const getDeliveryData = (formData) => {
|
|
6609
6609
|
const { methodObtain, deliveryDate = '' } = formData;
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6610
|
+
const isCourierDelivery = methodObtain === 'courier';
|
|
6611
|
+
return isCourierDelivery
|
|
6612
|
+
? {
|
|
6613
|
+
courierDeliveryFlg: isCourierDelivery,
|
|
6614
|
+
deliveryDate: dateToISO(deliveryDate),
|
|
6615
|
+
deliveryTimeCd: { value: 'TIME_2' },
|
|
6616
|
+
}
|
|
6617
|
+
: {};
|
|
6615
6618
|
};
|
|
6616
6619
|
const getOfficeCode = (formData) => {
|
|
6617
|
-
const { addressRetail } = formData;
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6620
|
+
const { addressRetail, methodObtain } = formData;
|
|
6621
|
+
const isOfficeObtain = addressRetail?.key && methodObtain === 'office';
|
|
6622
|
+
return isOfficeObtain
|
|
6623
|
+
? {
|
|
6624
|
+
office: { id: addressRetail.key },
|
|
6625
|
+
}
|
|
6626
|
+
: {};
|
|
6621
6627
|
};
|
|
6622
6628
|
const getSixthStepData = (formData) => {
|
|
6623
|
-
const { addressCourier } = formData;
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6629
|
+
const { addressCourier, methodObtain } = formData;
|
|
6630
|
+
const isCourierDelivery = methodObtain === 'courier';
|
|
6631
|
+
return isCourierDelivery
|
|
6632
|
+
? {
|
|
6633
|
+
participantAddresses: getParticipantAddresses({ addressCourier }),
|
|
6634
|
+
}
|
|
6635
|
+
: {};
|
|
6627
6636
|
};
|
|
6628
6637
|
|
|
6629
6638
|
const getThirdStepData$1 = (formData) => {
|
|
@@ -10354,7 +10363,7 @@
|
|
|
10354
10363
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10355
10364
|
});
|
|
10356
10365
|
|
|
10357
|
-
const packageVersion = "0.14.
|
|
10366
|
+
const packageVersion = "0.14.690";
|
|
10358
10367
|
|
|
10359
10368
|
exports.Blocks = Blocks;
|
|
10360
10369
|
exports.ContentPage = ContentPage;
|