@aglyn/plugins-commerce 1.0.0-beta.284 → 1.0.0-beta.287
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/README.md +1 -1
- package/package.json +13 -13
- package/src/lib/components/cart.js +25 -12
- package/src/lib/components/cart.js.map +1 -1
- package/src/lib/components/commerce-console-page.js +70 -13
- package/src/lib/components/commerce-console-page.js.map +1 -1
- package/src/lib/components/console/order-detail-dialog.component.js +2 -1
- package/src/lib/components/console/order-detail-dialog.component.js.map +1 -1
- package/src/lib/components/console/payment-methods-card.component.js +1 -1
- package/src/lib/components/console/payment-methods-card.component.js.map +1 -1
- package/src/lib/components/console/pos/pos-cart-panel.component.d.ts +5 -0
- package/src/lib/components/console/pos/pos-cart-panel.component.js +18 -12
- package/src/lib/components/console/pos/pos-cart-panel.component.js.map +1 -1
- package/src/lib/components/console/pos/pos-hardware-api.d.ts +76 -5
- package/src/lib/components/console/pos/pos-hardware-api.js +53 -11
- package/src/lib/components/console/pos/pos-hardware-api.js.map +1 -1
- package/src/lib/components/console/pos/pos-hardware-buyer.component.d.ts +18 -0
- package/src/lib/components/console/pos/pos-hardware-buyer.component.js +629 -0
- package/src/lib/components/console/pos/pos-hardware-buyer.component.js.map +1 -0
- package/src/lib/components/console/pos/pos-hardware-sale-api.d.ts +162 -0
- package/src/lib/components/console/pos/pos-hardware-sale-api.js +122 -0
- package/src/lib/components/console/pos/pos-hardware-sale-api.js.map +1 -0
- package/src/lib/components/console/pos/pos-hardware-sale-terms.component.d.ts +39 -0
- package/src/lib/components/console/pos/pos-hardware-sale-terms.component.js +251 -0
- package/src/lib/components/console/pos/pos-hardware-sale-terms.component.js.map +1 -0
- package/src/lib/components/console/pos/use-pos-display.js +50 -0
- package/src/lib/components/console/pos/use-pos-display.js.map +1 -1
- package/src/lib/components/console/pos-cellular-control.component.d.ts +41 -0
- package/src/lib/components/console/pos-cellular-control.component.js +211 -0
- package/src/lib/components/console/pos-cellular-control.component.js.map +1 -0
- package/src/lib/components/console/pos-devices-card.component.d.ts +9 -1
- package/src/lib/components/console/pos-devices-card.component.js +47 -15
- package/src/lib/components/console/pos-devices-card.component.js.map +1 -1
- package/src/lib/components/console/pos-display/pos-display-api.d.ts +6 -0
- package/src/lib/components/console/pos-display/pos-display-api.js +8 -1
- package/src/lib/components/console/pos-display/pos-display-api.js.map +1 -1
- package/src/lib/components/console/pos-display-page.component.d.ts +13 -0
- package/src/lib/components/console/pos-display-page.component.js +44 -2
- package/src/lib/components/console/pos-display-page.component.js.map +1 -1
- package/src/lib/components/console/pos-hardware-card.component.d.ts +12 -4
- package/src/lib/components/console/pos-hardware-card.component.js +157 -36
- package/src/lib/components/console/pos-hardware-card.component.js.map +1 -1
- package/src/lib/components/console/pos-hardware-orders-staff-page.component.js +360 -80
- package/src/lib/components/console/pos-hardware-orders-staff-page.component.js.map +1 -1
- package/src/lib/components/console/pos-hardware-terms-page.component.d.ts +34 -0
- package/src/lib/components/console/pos-hardware-terms-page.component.js +257 -0
- package/src/lib/components/console/pos-hardware-terms-page.component.js.map +1 -0
- package/src/lib/components/console/pos-hardware-terms-sign-page.component.d.ts +27 -0
- package/src/lib/components/console/pos-hardware-terms-sign-page.component.js +104 -0
- package/src/lib/components/console/pos-hardware-terms-sign-page.component.js.map +1 -0
- package/src/lib/components/console/pos-hardware-waiting-card.component.d.ts +24 -0
- package/src/lib/components/console/pos-hardware-waiting-card.component.js +205 -0
- package/src/lib/components/console/pos-hardware-waiting-card.component.js.map +1 -0
- package/src/lib/components/console/pos-ops/pos-check-in-dialog.component.js +297 -201
- package/src/lib/components/console/pos-ops/pos-check-in-dialog.component.js.map +1 -1
- package/src/lib/components/console/pos-ops/pos-check-ins-card.component.d.ts +3 -0
- package/src/lib/components/console/pos-ops/pos-check-ins-card.component.js +260 -92
- package/src/lib/components/console/pos-ops/pos-check-ins-card.component.js.map +1 -1
- package/src/lib/components/console/pos-ops/pos-operations-bar.component.d.ts +9 -0
- package/src/lib/components/console/pos-ops/pos-operations-bar.component.js +15 -6
- package/src/lib/components/console/pos-ops/pos-operations-bar.component.js.map +1 -1
- package/src/lib/components/console/pos-ops/pos-rain-check-dialog.component.d.ts +25 -0
- package/src/lib/components/console/pos-ops/pos-rain-check-dialog.component.js +136 -0
- package/src/lib/components/console/pos-ops/pos-rain-check-dialog.component.js.map +1 -0
- package/src/lib/components/console/pos-ops/pos-shift-panel.component.d.ts +6 -0
- package/src/lib/components/console/pos-ops/pos-shift-panel.component.js +48 -31
- package/src/lib/components/console/pos-ops/pos-shift-panel.component.js.map +1 -1
- package/src/lib/components/console/pos-page.component.d.ts +1 -1
- package/src/lib/components/console/pos-page.component.js +63 -12
- package/src/lib/components/console/pos-page.component.js.map +1 -1
- package/src/lib/components/console/pos-reader-splash-setting.component.js +1 -1
- package/src/lib/components/console/pos-reader-splash-setting.component.js.map +1 -1
- package/src/lib/components/console/product-check-in-fields.component.d.ts +4 -2
- package/src/lib/components/console/product-check-in-fields.component.js +60 -14
- package/src/lib/components/console/product-check-in-fields.component.js.map +1 -1
- package/src/lib/components/console/product-editor-dialog.component.js +44 -1
- package/src/lib/components/console/product-editor-dialog.component.js.map +1 -1
- package/src/lib/components/console/product-hardware-sku-field.component.d.ts +19 -0
- package/src/lib/components/console/product-hardware-sku-field.component.js +92 -0
- package/src/lib/components/console/product-hardware-sku-field.component.js.map +1 -0
- package/src/lib/components/console/product-kiosk-offer-field.component.d.ts +22 -0
- package/src/lib/components/console/product-kiosk-offer-field.component.js +94 -0
- package/src/lib/components/console/product-kiosk-offer-field.component.js.map +1 -0
- package/src/lib/components/console/product-register-fields.component.d.ts +4 -0
- package/src/lib/components/console/product-register-fields.component.js +31 -2
- package/src/lib/components/console/product-register-fields.component.js.map +1 -1
- package/src/lib/components/console/products-hub-card.component.js +11 -2
- package/src/lib/components/console/products-hub-card.component.js.map +1 -1
- package/src/lib/components/console/register-hardware-card.component.d.ts +11 -0
- package/src/lib/components/console/register-hardware-card.component.js +56 -27
- package/src/lib/components/console/register-hardware-card.component.js.map +1 -1
- package/src/lib/components/console/reservation-guests-dialog.component.d.ts +28 -0
- package/src/lib/components/console/reservation-guests-dialog.component.js +189 -0
- package/src/lib/components/console/reservation-guests-dialog.component.js.map +1 -0
- package/src/lib/components/console/reservations-card.component.d.ts +9 -0
- package/src/lib/components/console/reservations-card.component.js +158 -23
- package/src/lib/components/console/reservations-card.component.js.map +1 -1
- package/src/lib/components/console/shippingeasy-card.component.js +1 -1
- package/src/lib/components/console/shippingeasy-card.component.js.map +1 -1
- package/src/lib/components/console/shipstation-card.component.d.ts +1 -1
- package/src/lib/components/console/shipstation-card.component.js +3 -3
- package/src/lib/components/console/shipstation-card.component.js.map +1 -1
- package/src/lib/components/product-detail.d.ts +4 -0
- package/src/lib/components/product-detail.js +40 -5
- package/src/lib/components/product-detail.js.map +1 -1
- package/src/lib/components/product-reviews.js +28 -11
- package/src/lib/components/product-reviews.js.map +1 -1
- package/src/lib/components/reservation-widget.js +28 -5
- package/src/lib/components/reservation-widget.js.map +1 -1
- package/src/lib/components/use-day-picker.d.ts +25 -0
- package/src/lib/components/use-day-picker.js +57 -0
- package/src/lib/components/use-day-picker.js.map +1 -0
- package/src/lib/constants/operator-alerts.d.ts +55 -0
- package/src/lib/constants/operator-alerts.js +156 -1
- package/src/lib/constants/operator-alerts.js.map +1 -1
- package/src/lib/declarations.console-server.js +54 -1
- package/src/lib/declarations.console-server.js.map +1 -1
- package/src/lib/declarations.d.ts +4 -2
- package/src/lib/declarations.js +11 -4
- package/src/lib/declarations.js.map +1 -1
- package/src/lib/declarations.server.js +9 -0
- package/src/lib/declarations.server.js.map +1 -1
- package/src/lib/model/commerce-cart.d.ts +9 -1
- package/src/lib/model/commerce-cart.js +4 -3
- package/src/lib/model/commerce-cart.js.map +1 -1
- package/src/lib/model/commerce-check-in-product.d.ts +26 -0
- package/src/lib/model/commerce-check-in-product.js +64 -2
- package/src/lib/model/commerce-check-in-product.js.map +1 -1
- package/src/lib/model/commerce-check-in-record.d.ts +127 -0
- package/src/lib/model/commerce-check-in-record.js +36 -0
- package/src/lib/model/commerce-check-in-record.js.map +1 -0
- package/src/lib/model/commerce-check-in.d.ts +91 -87
- package/src/lib/model/commerce-check-in.js +186 -62
- package/src/lib/model/commerce-check-in.js.map +1 -1
- package/src/lib/model/commerce-kiosk-offer.d.ts +31 -0
- package/src/lib/model/commerce-kiosk-offer.js +35 -0
- package/src/lib/model/commerce-kiosk-offer.js.map +1 -0
- package/src/lib/model/commerce-orders.d.ts +76 -0
- package/src/lib/model/commerce-orders.js +6 -0
- package/src/lib/model/commerce-orders.js.map +1 -1
- package/src/lib/model/commerce-pos-day-report.d.ts +54 -1
- package/src/lib/model/commerce-pos-day-report.js +39 -2
- package/src/lib/model/commerce-pos-day-report.js.map +1 -1
- package/src/lib/model/commerce-pos-offline.d.ts +1 -1
- package/src/lib/model/commerce-pos-offline.js +6 -1
- package/src/lib/model/commerce-pos-offline.js.map +1 -1
- package/src/lib/model/commerce-pos-ops.js +3 -2
- package/src/lib/model/commerce-pos-ops.js.map +1 -1
- package/src/lib/model/commerce-pos.d.ts +36 -3
- package/src/lib/model/commerce-pos.js +14 -6
- package/src/lib/model/commerce-pos.js.map +1 -1
- package/src/lib/model/commerce-receipt.js +3 -2
- package/src/lib/model/commerce-receipt.js.map +1 -1
- package/src/lib/model/commerce-reservations.d.ts +69 -4
- package/src/lib/model/commerce-reservations.js +57 -5
- package/src/lib/model/commerce-reservations.js.map +1 -1
- package/src/lib/model/commerce.d.ts +66 -0
- package/src/lib/model/commerce.js +15 -0
- package/src/lib/model/commerce.js.map +1 -1
- package/src/lib/model/order-list-fields.d.ts +11 -0
- package/src/lib/model/order-list-fields.js +17 -1
- package/src/lib/model/order-list-fields.js.map +1 -1
- package/src/lib/model/own-store-tax-summary.d.ts +152 -0
- package/src/lib/model/own-store-tax-summary.js +288 -0
- package/src/lib/model/own-store-tax-summary.js.map +1 -0
- package/src/lib/model/plugin-permissions.d.ts +67 -0
- package/src/lib/model/plugin-permissions.js +224 -7
- package/src/lib/model/plugin-permissions.js.map +1 -1
- package/src/lib/model/pos-cellular.d.ts +223 -0
- package/src/lib/model/pos-cellular.js +293 -0
- package/src/lib/model/pos-cellular.js.map +1 -0
- package/src/lib/model/pos-hardware-in-person.d.ts +98 -0
- package/src/lib/model/pos-hardware-in-person.js +224 -0
- package/src/lib/model/pos-hardware-in-person.js.map +1 -0
- package/src/lib/model/pos-hardware-tax-summary.d.ts +166 -0
- package/src/lib/model/pos-hardware-tax-summary.js +225 -0
- package/src/lib/model/pos-hardware-tax-summary.js.map +1 -0
- package/src/lib/model/pos-hardware-terms.d.ts +74 -0
- package/src/lib/model/pos-hardware-terms.js +115 -0
- package/src/lib/model/pos-hardware-terms.js.map +1 -0
- package/src/lib/model/pos-hardware.d.ts +349 -7
- package/src/lib/model/pos-hardware.js +291 -20
- package/src/lib/model/pos-hardware.js.map +1 -1
- package/src/lib/model/product-write.d.ts +10 -0
- package/src/lib/model/product-write.js +4 -2
- package/src/lib/model/product-write.js.map +1 -1
- package/src/lib/plugin.js +16 -0
- package/src/lib/plugin.js.map +1 -1
- package/src/lib/server/billing-webhook.js +25 -1
- package/src/lib/server/billing-webhook.js.map +1 -1
- package/src/lib/server/cancel-order.js +7 -5
- package/src/lib/server/cancel-order.js.map +1 -1
- package/src/lib/server/cart-checkout.js +20 -8
- package/src/lib/server/cart-checkout.js.map +1 -1
- package/src/lib/server/cart.js +29 -0
- package/src/lib/server/cart.js.map +1 -1
- package/src/lib/server/checkout.js +42 -13
- package/src/lib/server/checkout.js.map +1 -1
- package/src/lib/server/collection-membership.d.ts +4 -0
- package/src/lib/server/collection-membership.js +5 -10
- package/src/lib/server/collection-membership.js.map +1 -1
- package/src/lib/server/commerce-site-keys.d.ts +29 -0
- package/src/lib/server/commerce-site-keys.js +40 -0
- package/src/lib/server/commerce-site-keys.js.map +1 -0
- package/src/lib/server/draft-order.js +8 -5
- package/src/lib/server/draft-order.js.map +1 -1
- package/src/lib/server/fulfill-order.js +7 -5
- package/src/lib/server/fulfill-order.js.map +1 -1
- package/src/lib/server/gift-cards.js +8 -5
- package/src/lib/server/gift-cards.js.map +1 -1
- package/src/lib/server/local-fulfillment-status.js +9 -6
- package/src/lib/server/local-fulfillment-status.js.map +1 -1
- package/src/lib/server/member-post.js +6 -5
- package/src/lib/server/member-post.js.map +1 -1
- package/src/lib/server/membership-admin-password.d.ts +4 -2
- package/src/lib/server/membership-admin-password.js +10 -8
- package/src/lib/server/membership-admin-password.js.map +1 -1
- package/src/lib/server/membership-admin-remove.d.ts +7 -5
- package/src/lib/server/membership-admin-remove.js +9 -9
- package/src/lib/server/membership-admin-remove.js.map +1 -1
- package/src/lib/server/order-notifications.js +5 -2
- package/src/lib/server/order-notifications.js.map +1 -1
- package/src/lib/server/order-print.js +7 -5
- package/src/lib/server/order-print.js.map +1 -1
- package/src/lib/server/order-receipt-send.js +8 -5
- package/src/lib/server/order-receipt-send.js.map +1 -1
- package/src/lib/server/orders-shipping-prepare.js +9 -6
- package/src/lib/server/orders-shipping-prepare.js.map +1 -1
- package/src/lib/server/own-store-tax-return-source.d.ts +47 -0
- package/src/lib/server/own-store-tax-return-source.js +312 -0
- package/src/lib/server/own-store-tax-return-source.js.map +1 -0
- package/src/lib/server/payment-methods.js +13 -9
- package/src/lib/server/payment-methods.js.map +1 -1
- package/src/lib/server/pos-auth.d.ts +37 -6
- package/src/lib/server/pos-auth.js +40 -15
- package/src/lib/server/pos-auth.js.map +1 -1
- package/src/lib/server/pos-cellular-billing.d.ts +81 -0
- package/src/lib/server/pos-cellular-billing.js +711 -0
- package/src/lib/server/pos-cellular-billing.js.map +1 -0
- package/src/lib/server/pos-cellular-notify.d.ts +47 -0
- package/src/lib/server/pos-cellular-notify.js +150 -0
- package/src/lib/server/pos-cellular-notify.js.map +1 -0
- package/src/lib/server/pos-cellular.d.ts +88 -0
- package/src/lib/server/pos-cellular.js +339 -0
- package/src/lib/server/pos-cellular.js.map +1 -0
- package/src/lib/server/pos-check-in.d.ts +5 -1
- package/src/lib/server/pos-check-in.js +296 -28
- package/src/lib/server/pos-check-in.js.map +1 -1
- package/src/lib/server/pos-day-report.js +29 -3
- package/src/lib/server/pos-day-report.js.map +1 -1
- package/src/lib/server/pos-display.d.ts +16 -0
- package/src/lib/server/pos-display.js +129 -2
- package/src/lib/server/pos-display.js.map +1 -1
- package/src/lib/server/pos-hardware-admin.d.ts +10 -1
- package/src/lib/server/pos-hardware-admin.js +250 -84
- package/src/lib/server/pos-hardware-admin.js.map +1 -1
- package/src/lib/server/pos-hardware-attach.d.ts +105 -0
- package/src/lib/server/pos-hardware-attach.js +443 -0
- package/src/lib/server/pos-hardware-attach.js.map +1 -0
- package/src/lib/server/pos-hardware-buyer-lookup.d.ts +58 -0
- package/src/lib/server/pos-hardware-buyer-lookup.js +180 -0
- package/src/lib/server/pos-hardware-buyer-lookup.js.map +1 -0
- package/src/lib/server/pos-hardware-buyer-record.d.ts +29 -0
- package/src/lib/server/pos-hardware-buyer-record.js +86 -0
- package/src/lib/server/pos-hardware-buyer-record.js.map +1 -0
- package/src/lib/server/pos-hardware-cancel.d.ts +58 -0
- package/src/lib/server/pos-hardware-cancel.js +147 -0
- package/src/lib/server/pos-hardware-cancel.js.map +1 -0
- package/src/lib/server/pos-hardware-closure-notices.d.ts +27 -0
- package/src/lib/server/pos-hardware-closure-notices.js +85 -0
- package/src/lib/server/pos-hardware-closure-notices.js.map +1 -0
- package/src/lib/server/pos-hardware-closure.d.ts +60 -0
- package/src/lib/server/pos-hardware-closure.js +153 -0
- package/src/lib/server/pos-hardware-closure.js.map +1 -0
- package/src/lib/server/pos-hardware-in-person.d.ts +61 -0
- package/src/lib/server/pos-hardware-in-person.js +236 -0
- package/src/lib/server/pos-hardware-in-person.js.map +1 -0
- package/src/lib/server/pos-hardware-notify.d.ts +40 -2
- package/src/lib/server/pos-hardware-notify.js +195 -14
- package/src/lib/server/pos-hardware-notify.js.map +1 -1
- package/src/lib/server/pos-hardware-readers.d.ts +115 -0
- package/src/lib/server/pos-hardware-readers.js +430 -0
- package/src/lib/server/pos-hardware-readers.js.map +1 -0
- package/src/lib/server/pos-hardware-returns.d.ts +116 -0
- package/src/lib/server/pos-hardware-returns.js +502 -0
- package/src/lib/server/pos-hardware-returns.js.map +1 -0
- package/src/lib/server/pos-hardware-sale-fields.d.ts +28 -0
- package/src/lib/server/pos-hardware-sale-fields.js +44 -0
- package/src/lib/server/pos-hardware-sale-fields.js.map +1 -0
- package/src/lib/server/pos-hardware-sale.d.ts +54 -0
- package/src/lib/server/pos-hardware-sale.js +369 -0
- package/src/lib/server/pos-hardware-sale.js.map +1 -0
- package/src/lib/server/pos-hardware-tax-return-source.d.ts +99 -0
- package/src/lib/server/pos-hardware-tax-return-source.js +462 -0
- package/src/lib/server/pos-hardware-tax-return-source.js.map +1 -0
- package/src/lib/server/pos-hardware-terms.d.ts +64 -0
- package/src/lib/server/pos-hardware-terms.js +154 -0
- package/src/lib/server/pos-hardware-terms.js.map +1 -0
- package/src/lib/server/pos-hardware-user-eraser.d.ts +3 -0
- package/src/lib/server/pos-hardware-user-eraser.js +31 -7
- package/src/lib/server/pos-hardware-user-eraser.js.map +1 -1
- package/src/lib/server/pos-hardware-webhook.d.ts +5 -0
- package/src/lib/server/pos-hardware-webhook.js +51 -6
- package/src/lib/server/pos-hardware-webhook.js.map +1 -1
- package/src/lib/server/pos-hardware.d.ts +74 -1
- package/src/lib/server/pos-hardware.js +175 -10
- package/src/lib/server/pos-hardware.js.map +1 -1
- package/src/lib/server/pos-kiosk.d.ts +2 -0
- package/src/lib/server/pos-kiosk.js +17 -12
- package/src/lib/server/pos-kiosk.js.map +1 -1
- package/src/lib/server/pos-offline-card-order.d.ts +64 -0
- package/src/lib/server/pos-offline-card-order.js +102 -0
- package/src/lib/server/pos-offline-card-order.js.map +1 -0
- package/src/lib/server/pos-offline-card-reconcile.d.ts +67 -1
- package/src/lib/server/pos-offline-card-reconcile.js +215 -18
- package/src/lib/server/pos-offline-card-reconcile.js.map +1 -1
- package/src/lib/server/pos-offline-sync.d.ts +39 -0
- package/src/lib/server/pos-offline-sync.js +190 -55
- package/src/lib/server/pos-offline-sync.js.map +1 -1
- package/src/lib/server/pos-ops-gate.d.ts +15 -4
- package/src/lib/server/pos-ops-gate.js +42 -9
- package/src/lib/server/pos-ops-gate.js.map +1 -1
- package/src/lib/server/pos-ops-routes.js +24 -0
- package/src/lib/server/pos-ops-routes.js.map +1 -1
- package/src/lib/server/pos-order-refund-ids.d.ts +28 -0
- package/src/lib/server/pos-order-refund-ids.js +31 -0
- package/src/lib/server/pos-order-refund-ids.js.map +1 -0
- package/src/lib/server/pos-order.js +52 -49
- package/src/lib/server/pos-order.js.map +1 -1
- package/src/lib/server/pos-payment.js +1 -1
- package/src/lib/server/pos-payment.js.map +1 -1
- package/src/lib/server/pos-reader-splash-admin.js +30 -32
- package/src/lib/server/pos-reader-splash-admin.js.map +1 -1
- package/src/lib/server/pos-reader-splash-images-route.d.ts +17 -0
- package/src/lib/server/pos-reader-splash-images-route.js +113 -0
- package/src/lib/server/pos-reader-splash-images-route.js.map +1 -0
- package/src/lib/server/pos-reader-splash-images.d.ts +51 -0
- package/src/lib/server/pos-reader-splash-images.js +123 -0
- package/src/lib/server/pos-reader-splash-images.js.map +1 -0
- package/src/lib/server/pos-reader-splash.d.ts +68 -1
- package/src/lib/server/pos-reader-splash.js +182 -11
- package/src/lib/server/pos-reader-splash.js.map +1 -1
- package/src/lib/server/pos-readers.d.ts +29 -0
- package/src/lib/server/pos-readers.js +134 -35
- package/src/lib/server/pos-readers.js.map +1 -1
- package/src/lib/server/pos-return.d.ts +10 -0
- package/src/lib/server/pos-return.js +26 -1
- package/src/lib/server/pos-return.js.map +1 -1
- package/src/lib/server/pos-sale.js +6 -1
- package/src/lib/server/pos-sale.js.map +1 -1
- package/src/lib/server/pos-shift.js +11 -0
- package/src/lib/server/pos-shift.js.map +1 -1
- package/src/lib/server/pos-staff-pin.js +25 -20
- package/src/lib/server/pos-staff-pin.js.map +1 -1
- package/src/lib/server/pos-terminal.d.ts +14 -4
- package/src/lib/server/pos-terminal.js +34 -38
- package/src/lib/server/pos-terminal.js.map +1 -1
- package/src/lib/server/printers.d.ts +7 -3
- package/src/lib/server/printers.js +18 -12
- package/src/lib/server/printers.js.map +1 -1
- package/src/lib/server/product-drafts.d.ts +11 -1
- package/src/lib/server/product-drafts.js +12 -8
- package/src/lib/server/product-drafts.js.map +1 -1
- package/src/lib/server/product.d.ts +15 -1
- package/src/lib/server/product.js +16 -3
- package/src/lib/server/product.js.map +1 -1
- package/src/lib/server/products-write.d.ts +26 -2
- package/src/lib/server/products-write.js +19 -7
- package/src/lib/server/products-write.js.map +1 -1
- package/src/lib/server/refund.js +34 -11
- package/src/lib/server/refund.js.map +1 -1
- package/src/lib/server/reservation-availability-query.d.ts +8 -0
- package/src/lib/server/reservation-availability-query.js +11 -1
- package/src/lib/server/reservation-availability-query.js.map +1 -1
- package/src/lib/server/reservation-availability.d.ts +1 -1
- package/src/lib/server/reservation-availability.js +7 -2
- package/src/lib/server/reservation-availability.js.map +1 -1
- package/src/lib/server/reservation-guests.d.ts +32 -0
- package/src/lib/server/reservation-guests.js +285 -0
- package/src/lib/server/reservation-guests.js.map +1 -0
- package/src/lib/server/reservation-walk-in.d.ts +11 -1
- package/src/lib/server/reservation-walk-in.js +56 -12
- package/src/lib/server/reservation-walk-in.js.map +1 -1
- package/src/lib/server/reserve.js +18 -5
- package/src/lib/server/reserve.js.map +1 -1
- package/src/lib/server/returns.js +9 -6
- package/src/lib/server/returns.js.map +1 -1
- package/src/lib/server/reviews.d.ts +22 -2
- package/src/lib/server/reviews.js +88 -20
- package/src/lib/server/reviews.js.map +1 -1
- package/src/lib/server/shipping-connectors.js +10 -11
- package/src/lib/server/shipping-connectors.js.map +1 -1
- package/src/lib/server/site-page-resolver.js +20 -3
- package/src/lib/server/site-page-resolver.js.map +1 -1
- package/src/lib/server/store-day.d.ts +33 -0
- package/src/lib/server/store-day.js +46 -0
- package/src/lib/server/store-day.js.map +1 -0
- package/src/lib/server/store-setup-ai-writer.d.ts +2 -1
- package/src/lib/server/store-setup-ai-writer.js +5 -6
- package/src/lib/server/store-setup-ai-writer.js.map +1 -1
- package/src/lib/server/storefront-tax.d.ts +13 -0
- package/src/lib/server/storefront-tax.js +8 -1
- package/src/lib/server/storefront-tax.js.map +1 -1
- package/src/lib/server/tax-return-source.d.ts +32 -3
- package/src/lib/server/tax-return-source.js +99 -20
- package/src/lib/server/tax-return-source.js.map +1 -1
- package/src/lib/server.js +100 -2
- package/src/lib/server.js.map +1 -1
- package/src/lib/testing/fake-firestore.js +58 -16
- package/src/lib/testing/fake-firestore.js.map +1 -1
- package/src/lib/testing/pos-ops-memory-firestore.js +18 -4
- package/src/lib/testing/pos-ops-memory-firestore.js.map +1 -1
- package/src/lib/testing/site-register-permissions.d.ts +29 -0
- package/src/lib/testing/site-register-permissions.js +38 -0
- package/src/lib/testing/site-register-permissions.js.map +1 -0
- package/src/lib/transfer/tracking.server.js +8 -5
- package/src/lib/transfer/tracking.server.js.map +1 -1
- package/src/lib/utils/add-to-cart.d.ts +2 -0
- package/src/lib/utils/add-to-cart.js +6 -3
- package/src/lib/utils/add-to-cart.js.map +1 -1
|
@@ -31,10 +31,12 @@ function variantLabel(variant) {
|
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Check-in at the window (AGL-4043): whether each item sold of this product
|
|
34
|
-
* is somebody to check in on the day it
|
|
34
|
+
* is somebody to check in on the day it is for — a day pass, a camping
|
|
35
35
|
* spot, parking — and how many people one item admits. A product with
|
|
36
36
|
* options can turn it on or off per variant ("Spectator" needs no
|
|
37
|
-
* wristband) and give a variant its own number of people.
|
|
37
|
+
* wristband) and give a variant its own number of people. "Ask the buyer
|
|
38
|
+
* which day" lets an online buyer pick the day (a pass bought ahead);
|
|
39
|
+
* without an answer it is the day they buy.
|
|
38
40
|
*
|
|
39
41
|
* Memoized on its own props like every section of this editor (AGL-3423).
|
|
40
42
|
*/ export const ProductCheckInFields = /*#__PURE__*/ memo(function ProductCheckInFields(props) {
|
|
@@ -42,6 +44,13 @@ function variantLabel(variant) {
|
|
|
42
44
|
const { checkIn, variants, update } = props;
|
|
43
45
|
const enabled = (checkIn == null ? void 0 : checkIn.enabled) === true;
|
|
44
46
|
const headcount = (_ref = checkIn == null ? void 0 : checkIn.headcount) != null ? _ref : 1;
|
|
47
|
+
const askUseDate = (checkIn == null ? void 0 : checkIn.askUseDate) === true;
|
|
48
|
+
/** The product's setting with one part changed, keeping the others. */ const productOn = (patch)=>_extends({
|
|
49
|
+
enabled: true,
|
|
50
|
+
headcount
|
|
51
|
+
}, askUseDate ? {
|
|
52
|
+
askUseDate: true
|
|
53
|
+
} : {}, patch);
|
|
45
54
|
const setProduct = (next)=>update({
|
|
46
55
|
checkIn: next
|
|
47
56
|
});
|
|
@@ -68,10 +77,7 @@ function variantLabel(variant) {
|
|
|
68
77
|
/*#__PURE__*/ _jsx(FormControlLabel, {
|
|
69
78
|
control: /*#__PURE__*/ _jsx(Switch, {
|
|
70
79
|
checked: enabled,
|
|
71
|
-
onChange: (event)=>setProduct(event.target.checked ? {
|
|
72
|
-
enabled: true,
|
|
73
|
-
headcount
|
|
74
|
-
} : {
|
|
80
|
+
onChange: (event)=>setProduct(event.target.checked ? productOn({}) : {
|
|
75
81
|
enabled: false
|
|
76
82
|
})
|
|
77
83
|
}),
|
|
@@ -80,16 +86,15 @@ function variantLabel(variant) {
|
|
|
80
86
|
/*#__PURE__*/ _jsx(Typography, {
|
|
81
87
|
variant: "body2",
|
|
82
88
|
color: "text.secondary",
|
|
83
|
-
children: 'Each one sold, online or at the register, is somebody to check in at the window on the day it
|
|
89
|
+
children: 'Each one sold, online or at the register, is somebody to check in at the window on the day it is for, ' + 'with an optional wristband number or color.'
|
|
84
90
|
}),
|
|
85
91
|
enabled ? /*#__PURE__*/ _jsx(TextField, {
|
|
86
92
|
label: "People per item",
|
|
87
93
|
size: "small",
|
|
88
94
|
value: headcount,
|
|
89
|
-
onChange: (event)=>setProduct({
|
|
90
|
-
enabled: true,
|
|
95
|
+
onChange: (event)=>setProduct(productOn({
|
|
91
96
|
headcount: headcountFrom(event.target.value)
|
|
92
|
-
}),
|
|
97
|
+
})),
|
|
93
98
|
helperText: headcount > 1 ? `Buying 3 makes ${3 * headcount} check-ins` : 'Buying 3 makes 3 check-ins',
|
|
94
99
|
slotProps: {
|
|
95
100
|
htmlInput: {
|
|
@@ -100,6 +105,25 @@ function variantLabel(variant) {
|
|
|
100
105
|
maxWidth: (theme)=>theme.spacing(28)
|
|
101
106
|
}
|
|
102
107
|
}) : null,
|
|
108
|
+
enabled ? /*#__PURE__*/ _jsx(FormControlLabel, {
|
|
109
|
+
control: /*#__PURE__*/ _jsx(Switch, {
|
|
110
|
+
checked: askUseDate,
|
|
111
|
+
onChange: (event)=>{
|
|
112
|
+
const _productOn = productOn({}), { askUseDate: _was } = _productOn, rest = _object_without_properties_loose(_productOn, [
|
|
113
|
+
"askUseDate"
|
|
114
|
+
]);
|
|
115
|
+
setProduct(event.target.checked ? _extends({}, rest, {
|
|
116
|
+
askUseDate: true
|
|
117
|
+
}) : rest);
|
|
118
|
+
}
|
|
119
|
+
}),
|
|
120
|
+
label: "Ask the buyer which day"
|
|
121
|
+
}) : null,
|
|
122
|
+
enabled ? /*#__PURE__*/ _jsx(Typography, {
|
|
123
|
+
variant: "body2",
|
|
124
|
+
color: "text.secondary",
|
|
125
|
+
children: askUseDate ? 'Buyers online can pick the day they will use it, from today on. If they skip it, it is for the day they buy.' : 'It is for the day it is bought. Turn this on to sell passes ahead for a day the buyer picks.'
|
|
126
|
+
}) : null,
|
|
103
127
|
variants.length > 1 ? variants.map((variant)=>{
|
|
104
128
|
var _ref;
|
|
105
129
|
const own = CommerceModel.normalizeProductCheckIn(variant.checkIn);
|
|
@@ -119,10 +143,12 @@ function variantLabel(variant) {
|
|
|
119
143
|
onChange: (event)=>{
|
|
120
144
|
var _ref;
|
|
121
145
|
const picked = event.target.value;
|
|
122
|
-
setVariant(variant.id, picked === 'product' ? undefined : picked === 'on' ? {
|
|
146
|
+
setVariant(variant.id, picked === 'product' ? undefined : picked === 'on' ? _extends({
|
|
123
147
|
enabled: true,
|
|
124
148
|
headcount: (_ref = own == null ? void 0 : own.headcount) != null ? _ref : headcount
|
|
125
|
-
}
|
|
149
|
+
}, askUseDate ? {
|
|
150
|
+
askUseDate: true
|
|
151
|
+
} : {}) : {
|
|
126
152
|
enabled: false
|
|
127
153
|
});
|
|
128
154
|
},
|
|
@@ -148,10 +174,12 @@ function variantLabel(variant) {
|
|
|
148
174
|
label: "People per item",
|
|
149
175
|
size: "small",
|
|
150
176
|
value: (_ref = own == null ? void 0 : own.headcount) != null ? _ref : 1,
|
|
151
|
-
onChange: (event)=>setVariant(variant.id, {
|
|
177
|
+
onChange: (event)=>setVariant(variant.id, _extends({
|
|
152
178
|
enabled: true,
|
|
153
179
|
headcount: headcountFrom(event.target.value)
|
|
154
|
-
})
|
|
180
|
+
}, (own == null ? void 0 : own.askUseDate) ? {
|
|
181
|
+
askUseDate: true
|
|
182
|
+
} : {})),
|
|
155
183
|
slotProps: {
|
|
156
184
|
htmlInput: {
|
|
157
185
|
inputMode: 'numeric'
|
|
@@ -160,6 +188,24 @@ function variantLabel(variant) {
|
|
|
160
188
|
sx: {
|
|
161
189
|
flex: 1
|
|
162
190
|
}
|
|
191
|
+
}) : null,
|
|
192
|
+
choice === 'on' ? /*#__PURE__*/ _jsx(FormControlLabel, {
|
|
193
|
+
control: /*#__PURE__*/ _jsx(Switch, {
|
|
194
|
+
checked: (own == null ? void 0 : own.askUseDate) === true,
|
|
195
|
+
onChange: (event)=>{
|
|
196
|
+
var _ref;
|
|
197
|
+
return setVariant(variant.id, _extends({
|
|
198
|
+
enabled: true,
|
|
199
|
+
headcount: (_ref = own == null ? void 0 : own.headcount) != null ? _ref : 1
|
|
200
|
+
}, event.target.checked ? {
|
|
201
|
+
askUseDate: true
|
|
202
|
+
} : {}));
|
|
203
|
+
}
|
|
204
|
+
}),
|
|
205
|
+
label: "Ask which day",
|
|
206
|
+
sx: {
|
|
207
|
+
flex: 1
|
|
208
|
+
}
|
|
163
209
|
}) : null
|
|
164
210
|
]
|
|
165
211
|
}, variant.id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../libs/plugins/commerce/src/lib/components/console/product-check-in-fields.component.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n'use client'\n\nimport { FormControlLabel, MenuItem, Stack, Switch, TextField, Typography } from '@mui/material'\nimport { memo } from 'react'\nimport * as CommerceModel from '../../model'\n\ntype Patch = Partial<CommerceModel.HostProduct>\n\n/** What the section reads of a variant: never its price or SKU, so typing those does not redraw it. */\nexport type CheckInVariant = Pick<CommerceModel.ProductVariant, 'id' | 'options' | 'checkIn'>\n\nexport interface ProductCheckInFieldsProps {\n checkIn: CommerceModel.ProductCheckIn | undefined\n variants: readonly CheckInVariant[]\n update: (patch: Patch | ((at: CommerceModel.HostProduct) => Patch)) => void\n}\n\ntype VariantChoice = 'product' | 'on' | 'off'\n\n/** A whole number of people from 1 to the ceiling, from what was typed; blank is 1. */\nfunction headcountFrom(value: string): number {\n const count = Math.round(Number(value))\n return Number.isFinite(count) && count >= 1 ? Math.min(count, CommerceModel.CHECK_IN_MAX_HEADCOUNT) : 1\n}\n\nfunction variantLabel(variant: CheckInVariant): string {\n const values = Object.values(variant.options ?? {})\n return values.length ? values.join(' / ') : 'Default'\n}\n\n/**\n * Check-in at the window (AGL-4043): whether each item sold of this product\n * is somebody to check in on the day it was bought — a day pass, a camping\n * spot, parking — and how many people one item admits. A product with\n * options can turn it on or off per variant (\"Spectator\" needs no\n * wristband) and give a variant its own number of people.\n *\n * Memoized on its own props like every section of this editor (AGL-3423).\n */\nexport const ProductCheckInFields = memo(function ProductCheckInFields(props: ProductCheckInFieldsProps) {\n const { checkIn, variants, update } = props\n const enabled = checkIn?.enabled === true\n const headcount = checkIn?.headcount ?? 1\n\n const setProduct = (next: CommerceModel.ProductCheckIn) => update({ checkIn: next })\n // Written against the draft as it stands, so a price typed meanwhile is kept.\n const setVariant = (id: string, next: CommerceModel.ProductCheckIn | undefined) =>\n update((at) => ({\n variants: at.variants.map((variant) => {\n if (variant.id !== id) return variant\n const { checkIn: _previous, ...rest } = variant\n return next ? { ...rest, checkIn: next } : rest\n }),\n }))\n\n return (\n <Stack spacing={1.5}>\n <Typography variant=\"subtitle1\" component=\"h3\">\n {'Check-in'}\n </Typography>\n <FormControlLabel\n control={\n <Switch\n checked={enabled}\n onChange={(event) =>\n setProduct(event.target.checked ? { enabled: true, headcount } : { enabled: false })\n }\n />\n }\n label=\"Needs check-in\"\n />\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Each one sold, online or at the register, is somebody to check in at the window on the day it was bought, ' +\n 'with an optional wristband number or color.'}\n </Typography>\n {enabled ? (\n <TextField\n label=\"People per item\"\n size=\"small\"\n value={headcount}\n onChange={(event) => setProduct({ enabled: true, headcount: headcountFrom(event.target.value) })}\n helperText={headcount > 1 ? `Buying 3 makes ${3 * headcount} check-ins` : 'Buying 3 makes 3 check-ins'}\n slotProps={{ htmlInput: { inputMode: 'numeric' } }}\n sx={{ maxWidth: (theme) => theme.spacing(28) }}\n />\n ) : null}\n {variants.length > 1\n ? variants.map((variant) => {\n const own = CommerceModel.normalizeProductCheckIn(variant.checkIn)\n const choice: VariantChoice = own ? (own.enabled ? 'on' : 'off') : 'product'\n return (\n <Stack key={variant.id} direction={{ xs: 'column', sm: 'row' }} spacing={1}>\n <TextField\n select\n size=\"small\"\n label={variantLabel(variant)}\n value={choice}\n onChange={(event) => {\n const picked = event.target.value as VariantChoice\n setVariant(\n variant.id,\n picked === 'product'\n ? undefined\n : picked === 'on'\n ? { enabled: true, headcount: own?.headcount ?? headcount }\n : { enabled: false },\n )\n }}\n sx={{ flex: 1 }}\n >\n <MenuItem value=\"product\">{enabled ? 'Same as the product (needs check-in)' : 'Same as the product (no check-in)'}</MenuItem>\n <MenuItem value=\"on\">{'Needs check-in'}</MenuItem>\n <MenuItem value=\"off\">{'No check-in'}</MenuItem>\n </TextField>\n {choice === 'on' ? (\n <TextField\n label=\"People per item\"\n size=\"small\"\n value={own?.headcount ?? 1}\n onChange={(event) =>\n setVariant(variant.id, { enabled: true, headcount: headcountFrom(event.target.value) })\n }\n slotProps={{ htmlInput: { inputMode: 'numeric' } }}\n sx={{ flex: 1 }}\n />\n ) : null}\n </Stack>\n )\n })\n : null}\n </Stack>\n )\n})\n\nProductCheckInFields.displayName = 'ProductCheckInFields'\n"],"names":["FormControlLabel","MenuItem","Stack","Switch","TextField","Typography","memo","CommerceModel","headcountFrom","value","count","Math","round","Number","isFinite","min","CHECK_IN_MAX_HEADCOUNT","variantLabel","variant","values","Object","options","length","join","ProductCheckInFields","props","checkIn","variants","update","enabled","headcount","setProduct","next","setVariant","id","at","map","_previous","rest","spacing","component","control","checked","onChange","event","target","label","color","size","helperText","slotProps","htmlInput","inputMode","sx","maxWidth","theme","own","normalizeProductCheckIn","choice","direction","xs","sm","select","picked","undefined","flex","displayName"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GACD;;;;AAEA,SAASA,gBAAgB,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,MAAM,EAAEC,SAAS,EAAEC,UAAU,QAAQ,gBAAe;AAChG,SAASC,IAAI,QAAQ,QAAO;AAC5B,YAAYC,mBAAmB,uBAAa;AAe5C,qFAAqF,GACrF,SAASC,cAAcC,KAAa;IAClC,MAAMC,QAAQC,KAAKC,KAAK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V,KAACtD;4BACC0C,OAAM;4BACNE,MAAK;4BACLvC,KAAK,UAAE+C,uBAAAA,IAAK1B,SAAS,mBAAI;4BACzBa,UAAU,CAACC,QACTX,WAAWf,QAAQgB,EAAE,EAAE;oCAAEL,SAAS;oCAAMC,WAAWtB,cAAcoC,MAAMC,MAAM,CAACpC,KAAK;gCAAE;4BAEvFyC,WAAW;gCAAEC,WAAW;oCAAEC,WAAW;gCAAU;4BAAE;4BACjDC,IAAI;gCAAEY,MAAM;4BAAE;6BAEd;;mBAlCM/C,QAAQgB,EAAE;YAqC1B,KACA;;;AAGV,GAAE;AAEFV,qBAAqB0C,WAAW,GAAG"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/plugins/commerce/src/lib/components/console/product-check-in-fields.component.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n'use client'\n\nimport { FormControlLabel, MenuItem, Stack, Switch, TextField, Typography } from '@mui/material'\nimport { memo } from 'react'\nimport * as CommerceModel from '../../model'\n\ntype Patch = Partial<CommerceModel.HostProduct>\n\n/** What the section reads of a variant: never its price or SKU, so typing those does not redraw it. */\nexport type CheckInVariant = Pick<CommerceModel.ProductVariant, 'id' | 'options' | 'checkIn'>\n\nexport interface ProductCheckInFieldsProps {\n checkIn: CommerceModel.ProductCheckIn | undefined\n variants: readonly CheckInVariant[]\n update: (patch: Patch | ((at: CommerceModel.HostProduct) => Patch)) => void\n}\n\ntype VariantChoice = 'product' | 'on' | 'off'\n\n/** A whole number of people from 1 to the ceiling, from what was typed; blank is 1. */\nfunction headcountFrom(value: string): number {\n const count = Math.round(Number(value))\n return Number.isFinite(count) && count >= 1 ? Math.min(count, CommerceModel.CHECK_IN_MAX_HEADCOUNT) : 1\n}\n\nfunction variantLabel(variant: CheckInVariant): string {\n const values = Object.values(variant.options ?? {})\n return values.length ? values.join(' / ') : 'Default'\n}\n\n/**\n * Check-in at the window (AGL-4043): whether each item sold of this product\n * is somebody to check in on the day it is for — a day pass, a camping\n * spot, parking — and how many people one item admits. A product with\n * options can turn it on or off per variant (\"Spectator\" needs no\n * wristband) and give a variant its own number of people. \"Ask the buyer\n * which day\" lets an online buyer pick the day (a pass bought ahead);\n * without an answer it is the day they buy.\n *\n * Memoized on its own props like every section of this editor (AGL-3423).\n */\nexport const ProductCheckInFields = memo(function ProductCheckInFields(props: ProductCheckInFieldsProps) {\n const { checkIn, variants, update } = props\n const enabled = checkIn?.enabled === true\n const headcount = checkIn?.headcount ?? 1\n const askUseDate = checkIn?.askUseDate === true\n /** The product's setting with one part changed, keeping the others. */\n const productOn = (patch: Partial<CommerceModel.ProductCheckIn>): CommerceModel.ProductCheckIn => ({\n enabled: true,\n headcount,\n ...(askUseDate ? { askUseDate: true } : {}),\n ...patch,\n })\n\n const setProduct = (next: CommerceModel.ProductCheckIn) => update({ checkIn: next })\n // Written against the draft as it stands, so a price typed meanwhile is kept.\n const setVariant = (id: string, next: CommerceModel.ProductCheckIn | undefined) =>\n update((at) => ({\n variants: at.variants.map((variant) => {\n if (variant.id !== id) return variant\n const { checkIn: _previous, ...rest } = variant\n return next ? { ...rest, checkIn: next } : rest\n }),\n }))\n\n return (\n <Stack spacing={1.5}>\n <Typography variant=\"subtitle1\" component=\"h3\">\n {'Check-in'}\n </Typography>\n <FormControlLabel\n control={\n <Switch\n checked={enabled}\n onChange={(event) => setProduct(event.target.checked ? productOn({}) : { enabled: false })}\n />\n }\n label=\"Needs check-in\"\n />\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Each one sold, online or at the register, is somebody to check in at the window on the day it is for, ' +\n 'with an optional wristband number or color.'}\n </Typography>\n {enabled ? (\n <TextField\n label=\"People per item\"\n size=\"small\"\n value={headcount}\n onChange={(event) => setProduct(productOn({ headcount: headcountFrom(event.target.value) }))}\n helperText={headcount > 1 ? `Buying 3 makes ${3 * headcount} check-ins` : 'Buying 3 makes 3 check-ins'}\n slotProps={{ htmlInput: { inputMode: 'numeric' } }}\n sx={{ maxWidth: (theme) => theme.spacing(28) }}\n />\n ) : null}\n {enabled ? (\n <FormControlLabel\n control={\n <Switch\n checked={askUseDate}\n onChange={(event) => {\n const { askUseDate: _was, ...rest } = productOn({})\n setProduct(event.target.checked ? { ...rest, askUseDate: true } : rest)\n }}\n />\n }\n label=\"Ask the buyer which day\"\n />\n ) : null}\n {enabled ? (\n <Typography variant=\"body2\" color=\"text.secondary\">\n {askUseDate\n ? 'Buyers online can pick the day they will use it, from today on. If they skip it, it is for the day they buy.'\n : 'It is for the day it is bought. Turn this on to sell passes ahead for a day the buyer picks.'}\n </Typography>\n ) : null}\n {variants.length > 1\n ? variants.map((variant) => {\n const own = CommerceModel.normalizeProductCheckIn(variant.checkIn)\n const choice: VariantChoice = own ? (own.enabled ? 'on' : 'off') : 'product'\n return (\n <Stack key={variant.id} direction={{ xs: 'column', sm: 'row' }} spacing={1}>\n <TextField\n select\n size=\"small\"\n label={variantLabel(variant)}\n value={choice}\n onChange={(event) => {\n const picked = event.target.value as VariantChoice\n setVariant(\n variant.id,\n picked === 'product'\n ? undefined\n : picked === 'on'\n ? {\n enabled: true,\n headcount: own?.headcount ?? headcount,\n ...(askUseDate ? { askUseDate: true } : {}),\n }\n : { enabled: false },\n )\n }}\n sx={{ flex: 1 }}\n >\n <MenuItem value=\"product\">{enabled ? 'Same as the product (needs check-in)' : 'Same as the product (no check-in)'}</MenuItem>\n <MenuItem value=\"on\">{'Needs check-in'}</MenuItem>\n <MenuItem value=\"off\">{'No check-in'}</MenuItem>\n </TextField>\n {choice === 'on' ? (\n <TextField\n label=\"People per item\"\n size=\"small\"\n value={own?.headcount ?? 1}\n onChange={(event) =>\n setVariant(variant.id, {\n enabled: true,\n headcount: headcountFrom(event.target.value),\n ...(own?.askUseDate ? { askUseDate: true } : {}),\n })\n }\n slotProps={{ htmlInput: { inputMode: 'numeric' } }}\n sx={{ flex: 1 }}\n />\n ) : null}\n {choice === 'on' ? (\n <FormControlLabel\n control={\n <Switch\n checked={own?.askUseDate === true}\n onChange={(event) =>\n setVariant(variant.id, {\n enabled: true,\n headcount: own?.headcount ?? 1,\n ...(event.target.checked ? { askUseDate: true } : {}),\n })\n }\n />\n }\n label=\"Ask which day\"\n sx={{ flex: 1 }}\n />\n ) : null}\n </Stack>\n )\n })\n : null}\n </Stack>\n )\n})\n\nProductCheckInFields.displayName = 'ProductCheckInFields'\n"],"names":["FormControlLabel","MenuItem","Stack","Switch","TextField","Typography","memo","CommerceModel","headcountFrom","value","count","Math","round","Number","isFinite","min","CHECK_IN_MAX_HEADCOUNT","variantLabel","variant","values","Object","options","length","join","ProductCheckInFields","props","checkIn","variants","update","enabled","headcount","askUseDate","productOn","patch","setProduct","next","setVariant","id","at","map","_previous","rest","spacing","component","control","checked","onChange","event","target","label","color","size","helperText","slotProps","htmlInput","inputMode","sx","maxWidth","theme","_was","own","normalizeProductCheckIn","choice","direction","xs","sm","select","picked","undefined","flex","displayName"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GACD;;;;AAEA,SAASA,gBAAgB,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,MAAM,EAAEC,SAAS,EAAEC,UAAU,QAAQ,gBAAe;AAChG,SAASC,IAAI,QAAQ,QAAO;AAC5B,YAAYC,mBAAmB,uBAAa;AAe5C,qFAAqF,GACrF,SAASC,cAAcC,KAAa;IAClC,MAAMC,QAAQC,KAAKC,KAAK,CAACC,OAAOJ;IAChC,OAAOI,OAAOC,QAAQ,CAACJ,UAAUA,SAAS,IAAIC,KAAKI,GAAG,CAACL,OAAOH,cAAcS,sBAAsB,IAAI;AACxG;AAEA,SAASC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;AAEFb,qBAAqB8C,WAAW,GAAG"}
|
|
@@ -18,13 +18,14 @@ import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
|
18
18
|
import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
|
|
19
19
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
20
|
import * as CommerceModel from "../../model/index.js";
|
|
21
|
+
import { productOfferedOnKiosk } from "../../model/commerce-kiosk-offer.js";
|
|
21
22
|
import { useSnackbar } from "@aglyn/shared-ui-snackstack";
|
|
22
23
|
import { Timestamp } from "@aglyn/shared-util-timestamp";
|
|
23
24
|
import { Alert, Autocomplete, Box, Button, Dialog, DialogActions, DialogContent, DialogTitle, Divider, IconButton, MenuItem, Stack, TableBody, TableCell, TableHead, TableRow, TextField, Typography } from "@mui/material";
|
|
24
25
|
import { collection, doc, getDoc } from "firebase/firestore";
|
|
25
26
|
import { ScanAdornment } from "../../barcode/scan-button.component.js";
|
|
26
27
|
import { productCollectionFields } from "./smart-collections.js";
|
|
27
|
-
import { memo, useCallback, useMemo, useRef, useState } from "react";
|
|
28
|
+
import { lazy, memo, Suspense, useCallback, useMemo, useRef, useState } from "react";
|
|
28
29
|
import { ceilingedWindow, collectionCeiling, useFirestore, useFirestoreCollection, useHostResourceApi, writeGuardedBySeed, useUser } from "@aglyn/tenant-feature-instance";
|
|
29
30
|
import { writeSiteWideChange } from "@aglyn/tenant-feature-instance/hooks/helpers/site-wide-change";
|
|
30
31
|
import { useMediaPicker } from "@aglyn/aglyn";
|
|
@@ -37,6 +38,12 @@ import { PRODUCT_EDITOR_ZONE } from "./product-zones.js";
|
|
|
37
38
|
import { MembersVideosField, PaidDownloadAddButton, PaidMediaProtection } from "./paid-media.js";
|
|
38
39
|
import { ProductCheckInFields } from "./product-check-in-fields.component.js";
|
|
39
40
|
import { ProductRegisterFields, ProductSellOnlineField } from "./product-register-fields.component.js";
|
|
41
|
+
import { ProductKioskOfferField } from "./product-kiosk-offer-field.component.js";
|
|
42
|
+
/**
|
|
43
|
+
* The platform's own store's "Point of sale hardware" choice (AGL-4038),
|
|
44
|
+
* loaded only when the register section is drawn; it asks the server whether
|
|
45
|
+
* this store is the hardware seller and draws nothing anywhere else.
|
|
46
|
+
*/ const ProductHardwareSkuField = /*#__PURE__*/ lazy(()=>import("./product-hardware-sku-field.component.js"));
|
|
40
47
|
/**
|
|
41
48
|
* What each picker in this dialog will offer.
|
|
42
49
|
*
|
|
@@ -1213,6 +1220,23 @@ const MemoPaidDownloadAddButton = /*#__PURE__*/ memo(PaidDownloadAddButton);
|
|
|
1213
1220
|
[
|
|
1214
1221
|
checkInVariantsKey
|
|
1215
1222
|
]);
|
|
1223
|
+
// The kiosk choice's view of the variants (AGL-4038), kept apart the same way.
|
|
1224
|
+
const kioskVariantsKey = JSON.stringify(current.variants.map((variant)=>{
|
|
1225
|
+
var _variant_options, _variant_offerOnKiosk;
|
|
1226
|
+
return [
|
|
1227
|
+
variant.id,
|
|
1228
|
+
(_variant_options = variant.options) != null ? _variant_options : null,
|
|
1229
|
+
(_variant_offerOnKiosk = variant.offerOnKiosk) != null ? _variant_offerOnKiosk : null
|
|
1230
|
+
];
|
|
1231
|
+
}));
|
|
1232
|
+
const kioskVariants = useMemo(()=>current.variants.map(({ id, options, offerOnKiosk })=>({
|
|
1233
|
+
id,
|
|
1234
|
+
options,
|
|
1235
|
+
offerOnKiosk
|
|
1236
|
+
})), // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1237
|
+
[
|
|
1238
|
+
kioskVariantsKey
|
|
1239
|
+
]);
|
|
1216
1240
|
const setTags = useCallback((tags)=>update({
|
|
1217
1241
|
tags: tags.map((tag)=>String(tag).trim()).filter(Boolean)
|
|
1218
1242
|
}), [
|
|
@@ -1602,6 +1626,10 @@ const MemoPaidDownloadAddButton = /*#__PURE__*/ memo(PaidDownloadAddButton);
|
|
|
1602
1626
|
gap: 2
|
|
1603
1627
|
},
|
|
1604
1628
|
children: [
|
|
1629
|
+
CommerceModel.productIsSample(current) ? /*#__PURE__*/ _jsx(Alert, {
|
|
1630
|
+
severity: "info",
|
|
1631
|
+
children: CommerceModel.PRODUCT_SAMPLE_NOTE
|
|
1632
|
+
}) : null,
|
|
1605
1633
|
/*#__PURE__*/ _jsx(ProductBasicsFields, {
|
|
1606
1634
|
name: current.name,
|
|
1607
1635
|
slug: current.slug,
|
|
@@ -1708,9 +1736,23 @@ const MemoPaidDownloadAddButton = /*#__PURE__*/ memo(PaidDownloadAddButton);
|
|
|
1708
1736
|
/*#__PURE__*/ _jsx(ProductRegisterFields, {
|
|
1709
1737
|
posQuickKey: Boolean(current.posQuickKey),
|
|
1710
1738
|
sellOnline: CommerceModel.productSellsOnline(current),
|
|
1739
|
+
inStoreReviews: current.inStoreReviews,
|
|
1711
1740
|
modifierGroups: (_current_modifierGroups = current.modifierGroups) != null ? _current_modifierGroups : NO_MODIFIER_GROUPS,
|
|
1712
1741
|
update: update
|
|
1713
1742
|
}),
|
|
1743
|
+
/*#__PURE__*/ _jsx(ProductKioskOfferField, {
|
|
1744
|
+
offerOnKiosk: productOfferedOnKiosk(current),
|
|
1745
|
+
variants: kioskVariants,
|
|
1746
|
+
update: update
|
|
1747
|
+
}),
|
|
1748
|
+
/*#__PURE__*/ _jsx(Suspense, {
|
|
1749
|
+
fallback: null,
|
|
1750
|
+
children: /*#__PURE__*/ _jsx(ProductHardwareSkuField, {
|
|
1751
|
+
hostId: hostId,
|
|
1752
|
+
hardwareSku: current.hardwareSku,
|
|
1753
|
+
update: update
|
|
1754
|
+
})
|
|
1755
|
+
}),
|
|
1714
1756
|
/*#__PURE__*/ _jsx(ProductCheckInFields, {
|
|
1715
1757
|
checkIn: current.checkIn,
|
|
1716
1758
|
variants: checkInVariants,
|
|
@@ -1726,6 +1768,7 @@ const MemoPaidDownloadAddButton = /*#__PURE__*/ memo(PaidDownloadAddButton);
|
|
|
1726
1768
|
}),
|
|
1727
1769
|
!CommerceModel.productSellsOnline(current) ? /*#__PURE__*/ _jsx(ProductSellOnlineField, {
|
|
1728
1770
|
sellOnline: false,
|
|
1771
|
+
inStoreReviews: current.inStoreReviews,
|
|
1729
1772
|
update: update
|
|
1730
1773
|
}) : null
|
|
1731
1774
|
]
|