@bigz-app/booking-widget 1.1.6 → 1.1.7

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.
@@ -6610,6 +6610,7 @@
6610
6610
  formData.participants,
6611
6611
  formData.customerEmail,
6612
6612
  formData.customerName,
6613
+ formData.comment,
6613
6614
  totalAmount,
6614
6615
  discountCode,
6615
6616
  giftCards,
@@ -11171,6 +11172,8 @@
11171
11172
  const watchedParticipants = form.watch("participants");
11172
11173
  const watchedCustomerName = form.watch("customerName");
11173
11174
  const watchedCustomerEmail = form.watch("customerEmail");
11175
+ const watchedComment = form.watch("comment");
11176
+ const watchedCustomerPhone = form.watch("customerPhone");
11174
11177
  const customerNameError = form.formState.errors.customerName;
11175
11178
  const customerEmailError = form.formState.errors.customerEmail;
11176
11179
  const watchedAcceptTerms = form.watch("acceptTerms");
@@ -11282,6 +11285,13 @@
11282
11285
  participantIndices,
11283
11286
  }));
11284
11287
  }, [participantUpsells, watchedParticipants]);
11288
+ const paymentFormData = T$2(() => ({
11289
+ customerName: watchedCustomerName,
11290
+ customerEmail: watchedCustomerEmail,
11291
+ customerPhone: watchedCustomerPhone,
11292
+ participants: watchedParticipants,
11293
+ comment: watchedComment,
11294
+ }), [watchedCustomerName, watchedCustomerEmail, watchedCustomerPhone, watchedParticipants, watchedComment]);
11285
11295
  const appliedDiscountCode = appliedVouchers.find((v) => v.type === "discount");
11286
11296
  const appliedGiftCards = appliedVouchers.filter((v) => v.type === "giftCard");
11287
11297
  const handleVoucherValidated = q$2((voucher, _error) => {
@@ -11671,9 +11681,9 @@
11671
11681
  }
11672
11682
  : null;
11673
11683
  if (systemConfig?.paymentProvider === "mollie") {
11674
- return (u$2("div", { style: cardStyles, children: [u$2("h2", { style: { ...sectionHeaderStyles }, children: t$1("summary.payment") }), u$2(MolliePaymentForm, { config: config, eventDetails: eventDetails, formData: form.getValues(), totalAmount: paymentAmount, discountCode: discountCodeProp, giftCards: appliedGiftCards, onSuccess: onSuccess, onError: onError, upsellSelections: aggregatedUpsellSelections(), mollieProfileId: systemConfig?.mollieProfileId, mollieTestmode: systemConfig?.mollieTestmode })] }));
11684
+ return (u$2("div", { style: cardStyles, children: [u$2("h2", { style: { ...sectionHeaderStyles }, children: t$1("summary.payment") }), u$2(MolliePaymentForm, { config: config, eventDetails: eventDetails, formData: paymentFormData, totalAmount: paymentAmount, discountCode: discountCodeProp, giftCards: appliedGiftCards, onSuccess: onSuccess, onError: onError, upsellSelections: aggregatedUpsellSelections(), mollieProfileId: systemConfig?.mollieProfileId, mollieTestmode: systemConfig?.mollieTestmode })] }));
11675
11685
  }
11676
- return (u$2("div", { style: cardStyles, children: [u$2("h2", { style: { ...sectionHeaderStyles }, children: t$1("summary.payment") }), u$2(PaymentForm, { config: config, eventDetails: eventDetails, formData: form.getValues(), totalAmount: paymentAmount, discountCode: discountCodeProp, giftCards: appliedGiftCards, onSuccess: onSuccess, onError: onError, systemConfig: systemConfig ?? null, stripePromise: stripePromise, stripeAppearance: stripeAppearance, upsellSelections: aggregatedUpsellSelections() })] }));
11686
+ return (u$2("div", { style: cardStyles, children: [u$2("h2", { style: { ...sectionHeaderStyles }, children: t$1("summary.payment") }), u$2(PaymentForm, { config: config, eventDetails: eventDetails, formData: paymentFormData, totalAmount: paymentAmount, discountCode: discountCodeProp, giftCards: appliedGiftCards, onSuccess: onSuccess, onError: onError, systemConfig: systemConfig ?? null, stripePromise: stripePromise, stripeAppearance: stripeAppearance, upsellSelections: aggregatedUpsellSelections() })] }));
11677
11687
  })() })] })] })] }) }));
11678
11688
  }
11679
11689