@session-services/web-elements 0.1.31 → 0.1.33
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/session-services-ticketing.cjs.entry.js +1 -1
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.js +1 -1
- package/dist/components/session-services-ticketing.js +1 -1
- package/dist/esm/session-services-ticketing.entry.js +1 -1
- package/dist/session-services-elements/{p-d7264f6b.entry.js → p-7a1b9685.entry.js} +1 -1
- package/dist/session-services-elements/session-services-elements.esm.js +1 -1
- package/package.json +2 -2
|
@@ -3976,7 +3976,7 @@ const SessionsTicketing = class {
|
|
|
3976
3976
|
const hasInput = this.couponInput.trim().length > 0;
|
|
3977
3977
|
const busy = this.quoteLoading || this.previewLoading || this.checkoutLoading;
|
|
3978
3978
|
const canApply = hasInput && !busy;
|
|
3979
|
-
return (index.h("div", { class: "coupon-panel" }, index.h("div", { class: "coupon-row" }, index.h("input", { id: "coupon-code", name: "coupon-code", placeholder: "Coupon Code", value: this.appliedCouponCode || this.couponInput, onInput: this.handleCouponInput, onKeyDown: this.handleCouponKeyDown, autocomplete: "off", disabled: busy || Boolean(this.appliedCouponCode), "aria-label": "Coupon code", "aria-invalid": Boolean(this.couponError), "aria-describedby": this.couponError ? "coupon-error" : undefined }), this.appliedCouponCode ? (index.h("button", { type: "button", class: "coupon-remove", onClick: () => this.removeCoupon(), disabled: busy, "aria-label": "Remove coupon" }, "Remove")) : (index.h("button", { type: "button", class: "
|
|
3979
|
+
return (index.h("div", { class: "coupon-panel" }, index.h("div", { class: "coupon-row" }, index.h("input", { id: "coupon-code", name: "coupon-code", placeholder: "Coupon Code", value: this.appliedCouponCode || this.couponInput, onInput: this.handleCouponInput, onKeyDown: this.handleCouponKeyDown, autocomplete: "off", disabled: busy || Boolean(this.appliedCouponCode), "aria-label": "Coupon code", "aria-invalid": Boolean(this.couponError), "aria-describedby": this.couponError ? "coupon-error" : undefined }), this.appliedCouponCode ? (index.h("button", { type: "button", class: "coupon-remove", onClick: () => this.removeCoupon(), disabled: busy, "aria-label": "Remove coupon" }, "Remove")) : (index.h("button", { type: "button", class: "coupon-apply", onClick: () => this.applyCoupon(), disabled: !canApply }, "Apply"))), this.couponError && (index.h("span", { id: "coupon-error", class: "error-message", role: "alert", "aria-live": "assertive" }, this.couponError))));
|
|
3980
3980
|
}
|
|
3981
3981
|
isCheckoutDisabled() {
|
|
3982
3982
|
return (this.quoteLoading ||
|
|
@@ -1633,7 +1633,7 @@ export class SessionsTicketing {
|
|
|
1633
1633
|
const hasInput = this.couponInput.trim().length > 0;
|
|
1634
1634
|
const busy = this.quoteLoading || this.previewLoading || this.checkoutLoading;
|
|
1635
1635
|
const canApply = hasInput && !busy;
|
|
1636
|
-
return (h("div", { class: "coupon-panel" }, h("div", { class: "coupon-row" }, h("input", { id: "coupon-code", name: "coupon-code", placeholder: "Coupon Code", value: this.appliedCouponCode || this.couponInput, onInput: this.handleCouponInput, onKeyDown: this.handleCouponKeyDown, autocomplete: "off", disabled: busy || Boolean(this.appliedCouponCode), "aria-label": "Coupon code", "aria-invalid": Boolean(this.couponError), "aria-describedby": this.couponError ? "coupon-error" : undefined }), this.appliedCouponCode ? (h("button", { type: "button", class: "coupon-remove", onClick: () => this.removeCoupon(), disabled: busy, "aria-label": "Remove coupon" }, "Remove")) : (h("button", { type: "button", class: "
|
|
1636
|
+
return (h("div", { class: "coupon-panel" }, h("div", { class: "coupon-row" }, h("input", { id: "coupon-code", name: "coupon-code", placeholder: "Coupon Code", value: this.appliedCouponCode || this.couponInput, onInput: this.handleCouponInput, onKeyDown: this.handleCouponKeyDown, autocomplete: "off", disabled: busy || Boolean(this.appliedCouponCode), "aria-label": "Coupon code", "aria-invalid": Boolean(this.couponError), "aria-describedby": this.couponError ? "coupon-error" : undefined }), this.appliedCouponCode ? (h("button", { type: "button", class: "coupon-remove", onClick: () => this.removeCoupon(), disabled: busy, "aria-label": "Remove coupon" }, "Remove")) : (h("button", { type: "button", class: "coupon-apply", onClick: () => this.applyCoupon(), disabled: !canApply }, "Apply"))), this.couponError && (h("span", { id: "coupon-error", class: "error-message", role: "alert", "aria-live": "assertive" }, this.couponError))));
|
|
1637
1637
|
}
|
|
1638
1638
|
isCheckoutDisabled() {
|
|
1639
1639
|
return (this.quoteLoading ||
|