@salla.sa/twilight-components 2.11.83 → 2.11.84
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/salla-button_37.cjs.entry.js +5 -2
- package/dist/collection/components/salla-gifting/salla-gifting.js +5 -2
- package/dist/components/salla-gifting.js +5 -2
- package/dist/esm/salla-button_37.entry.js +5 -2
- package/dist/esm-es5/salla-button_37.entry.js +1 -1
- package/dist/twilight/p-2845b9fd.system.js +1 -1
- package/dist/twilight/{p-8e030b88.entry.js → p-31871b97.entry.js} +1 -1
- package/dist/twilight/{p-c3b17cfd.system.entry.js → p-a6a5e6bc.system.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-gifting/intefaces.d.ts +1 -0
- package/package.json +2 -2
|
@@ -21298,7 +21298,9 @@ const SallaGifting = class {
|
|
|
21298
21298
|
};
|
|
21299
21299
|
}
|
|
21300
21300
|
async submitForm() {
|
|
21301
|
-
var _a;
|
|
21301
|
+
var _a, _b;
|
|
21302
|
+
// @ts-ignore
|
|
21303
|
+
const donatingAmount = (_a = document.querySelector('#donating-amount')) === null || _a === void 0 ? void 0 : _a.value;
|
|
21302
21304
|
this.calendarFormGroup.classList.remove('s-form-has-error');
|
|
21303
21305
|
if (!!this.errors) {
|
|
21304
21306
|
this.errors = {};
|
|
@@ -21313,7 +21315,8 @@ const SallaGifting = class {
|
|
|
21313
21315
|
sender_name: this.senderName,
|
|
21314
21316
|
quantity: this.quantity,
|
|
21315
21317
|
deliver_at: this.showCalendar ? this.deliveryDate : null,
|
|
21316
|
-
image_url: (
|
|
21318
|
+
image_url: (_b = this.uploadedImage) !== null && _b !== void 0 ? _b : this.selectedImage,
|
|
21319
|
+
donation_amount: donatingAmount ? donatingAmount : null,
|
|
21317
21320
|
receiver: {
|
|
21318
21321
|
name: this.receiverName,
|
|
21319
21322
|
country_code: this.receiverCountryCode,
|
|
@@ -280,7 +280,9 @@ export class SallaGifting {
|
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
async submitForm() {
|
|
283
|
-
var _a;
|
|
283
|
+
var _a, _b;
|
|
284
|
+
// @ts-ignore
|
|
285
|
+
const donatingAmount = (_a = document.querySelector('#donating-amount')) === null || _a === void 0 ? void 0 : _a.value;
|
|
284
286
|
this.calendarFormGroup.classList.remove('s-form-has-error');
|
|
285
287
|
if (!!this.errors) {
|
|
286
288
|
this.errors = {};
|
|
@@ -295,7 +297,8 @@ export class SallaGifting {
|
|
|
295
297
|
sender_name: this.senderName,
|
|
296
298
|
quantity: this.quantity,
|
|
297
299
|
deliver_at: this.showCalendar ? this.deliveryDate : null,
|
|
298
|
-
image_url: (
|
|
300
|
+
image_url: (_b = this.uploadedImage) !== null && _b !== void 0 ? _b : this.selectedImage,
|
|
301
|
+
donation_amount: donatingAmount ? donatingAmount : null,
|
|
299
302
|
receiver: {
|
|
300
303
|
name: this.receiverName,
|
|
301
304
|
country_code: this.receiverCountryCode,
|
|
@@ -312,7 +312,9 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
async submitForm() {
|
|
315
|
-
var _a;
|
|
315
|
+
var _a, _b;
|
|
316
|
+
// @ts-ignore
|
|
317
|
+
const donatingAmount = (_a = document.querySelector('#donating-amount')) === null || _a === void 0 ? void 0 : _a.value;
|
|
316
318
|
this.calendarFormGroup.classList.remove('s-form-has-error');
|
|
317
319
|
if (!!this.errors) {
|
|
318
320
|
this.errors = {};
|
|
@@ -327,7 +329,8 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
327
329
|
sender_name: this.senderName,
|
|
328
330
|
quantity: this.quantity,
|
|
329
331
|
deliver_at: this.showCalendar ? this.deliveryDate : null,
|
|
330
|
-
image_url: (
|
|
332
|
+
image_url: (_b = this.uploadedImage) !== null && _b !== void 0 ? _b : this.selectedImage,
|
|
333
|
+
donation_amount: donatingAmount ? donatingAmount : null,
|
|
331
334
|
receiver: {
|
|
332
335
|
name: this.receiverName,
|
|
333
336
|
country_code: this.receiverCountryCode,
|
|
@@ -21294,7 +21294,9 @@ const SallaGifting = class {
|
|
|
21294
21294
|
};
|
|
21295
21295
|
}
|
|
21296
21296
|
async submitForm() {
|
|
21297
|
-
var _a;
|
|
21297
|
+
var _a, _b;
|
|
21298
|
+
// @ts-ignore
|
|
21299
|
+
const donatingAmount = (_a = document.querySelector('#donating-amount')) === null || _a === void 0 ? void 0 : _a.value;
|
|
21298
21300
|
this.calendarFormGroup.classList.remove('s-form-has-error');
|
|
21299
21301
|
if (!!this.errors) {
|
|
21300
21302
|
this.errors = {};
|
|
@@ -21309,7 +21311,8 @@ const SallaGifting = class {
|
|
|
21309
21311
|
sender_name: this.senderName,
|
|
21310
21312
|
quantity: this.quantity,
|
|
21311
21313
|
deliver_at: this.showCalendar ? this.deliveryDate : null,
|
|
21312
|
-
image_url: (
|
|
21314
|
+
image_url: (_b = this.uploadedImage) !== null && _b !== void 0 ? _b : this.selectedImage,
|
|
21315
|
+
donation_amount: donatingAmount ? donatingAmount : null,
|
|
21313
21316
|
receiver: {
|
|
21314
21317
|
name: this.receiverName,
|
|
21315
21318
|
country_code: this.receiverCountryCode,
|