@pisell/private-materials 6.8.83 → 6.8.85
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +150 -164
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +3 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/utils.d.ts +219 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/es/components/booking/info2/service/editService/utils.d.ts +28 -0
- package/es/components/booking/info2/service/openNormalService.d.ts +34 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/es/components/booking/model.d.ts +121 -0
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +182 -0
- package/es/components/checkout/PaymentModal.js +4 -2
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -1
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +69 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/types.js +65 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/app.js +5 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.js +16 -12
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.js +12 -5
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/const.d.ts +6 -1
- package/es/components/eftposPay/const.js +3 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +3 -2
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/huifu/Action.d.ts +8 -0
- package/es/components/eftposPay/huifu/Action.js +146 -0
- package/es/components/eftposPay/huifu/const.d.ts +5 -0
- package/es/components/eftposPay/huifu/const.js +70 -0
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/hooks.js +184 -0
- package/es/components/eftposPay/huifu/index.d.ts +5 -0
- package/es/components/eftposPay/huifu/index.js +196 -0
- package/es/components/eftposPay/huifu/index.less +180 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/huifu/types.js +1 -0
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/index.js +5 -1
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/locales.d.ts +36 -0
- package/es/components/eftposPay/locales.js +42 -3
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +5 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +13 -6
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +3 -0
- package/es/components/kioskSkuDetail/index.js +266 -173
- package/es/components/kioskSkuDetail/index.less +49 -7
- package/es/components/kioskSkuDetail/locales.d.ts +6 -0
- package/es/components/kioskSkuDetail/locales.js +9 -3
- package/es/components/list/types.d.ts +178 -0
- package/es/components/list/utils/index.d.ts +19 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/es/components/pay/toB/types/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentList/serve.js +14 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/es/components/ticketBooking/index.d.ts +16 -0
- package/es/components/ticketBooking/locales.d.ts +201 -0
- package/es/components/ticketBooking/serve.d.ts +288 -0
- package/es/components/ticketBooking/utils/index.d.ts +101 -0
- package/es/hooks/printer.d.ts +4 -0
- package/es/hooks/useEngineContext.d.ts +4 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/es/plus/skuOptionsSelection/types.d.ts +431 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/index.d.ts +12 -0
- package/es/plus/webPosLogin/locales.d.ts +49 -0
- package/es/plus/webPosLogin/types.d.ts +286 -0
- package/es/pro/Cards/index.d.ts +1 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Item.d.ts +14 -0
- package/es/pro/Selector/Selector.d.ts +14 -0
- package/es/pro/Selector/Selector.stories.d.ts +78 -0
- package/es/pro/Selector/SelectorGroup.d.ts +11 -0
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Card/types.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/es/pro/Selector/components/Media/index.d.ts +6 -0
- package/es/pro/Selector/components/Media/types.d.ts +47 -0
- package/es/pro/Selector/components/index.d.ts +4 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/hooks/useSelectionController.d.ts +49 -0
- package/es/pro/Selector/index.d.ts +11 -0
- package/es/pro/Selector/locales.d.ts +36 -0
- package/es/pro/Selector/types.d.ts +212 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/skuDetailModal/locales.d.ts +103 -0
- package/es/pro/skuDetailModal/types.d.ts +354 -0
- package/es/pro/skuDetailModal/utils.d.ts +4 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +3 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/utils.d.ts +219 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/lib/components/booking/info2/service/editService/utils.d.ts +28 -0
- package/lib/components/booking/info2/service/openNormalService.d.ts +34 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/lib/components/booking/model.d.ts +121 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +182 -0
- package/lib/components/checkout/PaymentModal.js +5 -2
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/app.js +5 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.js +4 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/const.d.ts +6 -1
- package/lib/components/eftposPay/const.js +3 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +3 -2
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
- package/lib/components/eftposPay/huifu/Action.js +174 -0
- package/lib/components/eftposPay/huifu/const.d.ts +5 -0
- package/lib/components/eftposPay/huifu/const.js +86 -0
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/hooks.js +186 -0
- package/lib/components/eftposPay/huifu/index.d.ts +5 -0
- package/lib/components/eftposPay/huifu/index.js +200 -0
- package/lib/components/eftposPay/huifu/index.less +180 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/huifu/types.js +17 -0
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/index.js +5 -1
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/locales.d.ts +36 -0
- package/lib/components/eftposPay/locales.js +42 -3
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +7 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/pay.js +3 -2
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +13 -6
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +3 -0
- package/lib/components/kioskSkuDetail/index.js +180 -113
- package/lib/components/kioskSkuDetail/index.less +49 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
- package/lib/components/kioskSkuDetail/locales.js +9 -3
- package/lib/components/list/types.d.ts +178 -0
- package/lib/components/list/utils/index.d.ts +19 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/lib/components/pay/toB/types/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentList/serve.js +15 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/lib/components/ticketBooking/index.d.ts +16 -0
- package/lib/components/ticketBooking/locales.d.ts +201 -0
- package/lib/components/ticketBooking/serve.d.ts +288 -0
- package/lib/components/ticketBooking/utils/index.d.ts +101 -0
- package/lib/hooks/printer.d.ts +4 -0
- package/lib/hooks/useEngineContext.d.ts +4 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +431 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/index.d.ts +12 -0
- package/lib/plus/webPosLogin/locales.d.ts +49 -0
- package/lib/plus/webPosLogin/types.d.ts +286 -0
- package/lib/pro/Cards/index.d.ts +1 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Item.d.ts +14 -0
- package/lib/pro/Selector/Selector.d.ts +14 -0
- package/lib/pro/Selector/Selector.stories.d.ts +78 -0
- package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Card/types.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/lib/pro/Selector/components/Media/index.d.ts +6 -0
- package/lib/pro/Selector/components/Media/types.d.ts +47 -0
- package/lib/pro/Selector/components/index.d.ts +4 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/hooks/useSelectionController.d.ts +49 -0
- package/lib/pro/Selector/index.d.ts +11 -0
- package/lib/pro/Selector/locales.d.ts +36 -0
- package/lib/pro/Selector/types.d.ts +212 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/skuDetailModal/locales.d.ts +103 -0
- package/lib/pro/skuDetailModal/types.d.ts +354 -0
- package/lib/pro/skuDetailModal/utils.d.ts +4 -0
- package/lib/test/setup.d.ts +1 -0
- package/lowcode/kiosk-sku-detail/meta.ts +229 -94
- package/package.json +1 -1
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/eftposPay/huifu/hooks.ts
|
|
30
|
+
var hooks_exports = {};
|
|
31
|
+
__export(hooks_exports, {
|
|
32
|
+
useCameraDevice: () => useCameraDevice,
|
|
33
|
+
useScanListener: () => useScanListener,
|
|
34
|
+
useScannerDevice: () => useScannerDevice,
|
|
35
|
+
useTerminal: () => useTerminal
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
38
|
+
var import_react = require("react");
|
|
39
|
+
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
40
|
+
var useTerminal = () => {
|
|
41
|
+
var _a, _b, _c;
|
|
42
|
+
const context = (0, import_useEngineContext.default)();
|
|
43
|
+
const { interaction, isTerminal } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
44
|
+
return {
|
|
45
|
+
isTerminal: isTerminal && isTerminal() || ((_c = (_b = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _b.isAppEnv) == null ? void 0 : _c.call(_b))
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
var useScannerDevice = () => {
|
|
49
|
+
var _a;
|
|
50
|
+
const [scannerStatus, setScannerStatus] = (0, import_react.useState)(false);
|
|
51
|
+
const context = (0, import_useEngineContext.default)();
|
|
52
|
+
const { interaction } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
53
|
+
(0, import_react.useEffect)(() => {
|
|
54
|
+
var _a2, _b, _c, _d;
|
|
55
|
+
(_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b.call(_a2, {
|
|
56
|
+
module: "global",
|
|
57
|
+
key: "get_peripherals_status",
|
|
58
|
+
data: {}
|
|
59
|
+
});
|
|
60
|
+
(_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.mountFunction) == null ? void 0 : _d.call(
|
|
61
|
+
_c,
|
|
62
|
+
"global",
|
|
63
|
+
"peripheralsStatus",
|
|
64
|
+
(strPeripherals) => {
|
|
65
|
+
try {
|
|
66
|
+
const peripherals = JSON.parse(strPeripherals);
|
|
67
|
+
setScannerStatus((peripherals == null ? void 0 : peripherals.scanner) == "connected");
|
|
68
|
+
} catch (err) {
|
|
69
|
+
console.error(err);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}, []);
|
|
74
|
+
return {
|
|
75
|
+
scannerStatus
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
var useCameraDevice = () => {
|
|
79
|
+
var _a, _b, _c;
|
|
80
|
+
const context = (0, import_useEngineContext.default)();
|
|
81
|
+
const { interaction, isTerminal } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
82
|
+
const activeCamera = (0, import_react.useCallback)(() => {
|
|
83
|
+
var _a2, _b2;
|
|
84
|
+
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
|
|
85
|
+
module: "global",
|
|
86
|
+
key: "active_native_scanner",
|
|
87
|
+
data: {
|
|
88
|
+
source: "eftposPay_huifu"
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}, []);
|
|
92
|
+
return {
|
|
93
|
+
activeCamera,
|
|
94
|
+
cameraStatus: isTerminal && isTerminal() || ((_c = (_b = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _b.isAppEnv) == null ? void 0 : _c.call(_b))
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
var useScanListener = () => {
|
|
98
|
+
var _a, _b, _c;
|
|
99
|
+
const context = (0, import_useEngineContext.default)();
|
|
100
|
+
const { interaction, isTerminal } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
101
|
+
const [scanResult, setScanResult] = (0, import_react.useState)({ type: "scanner", value: "" });
|
|
102
|
+
const isNativeEnv = isTerminal && isTerminal() || ((_c = (_b = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _b.isAppEnv) == null ? void 0 : _c.call(_b));
|
|
103
|
+
(0, import_react.useEffect)(() => {
|
|
104
|
+
var _a2, _b2;
|
|
105
|
+
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.mountFunction) == null ? void 0 : _b2.call(
|
|
106
|
+
_a2,
|
|
107
|
+
"global",
|
|
108
|
+
"peripheralsResult",
|
|
109
|
+
(strVal) => {
|
|
110
|
+
try {
|
|
111
|
+
const val = JSON.parse(strVal);
|
|
112
|
+
setScanResult(val);
|
|
113
|
+
} catch (err) {
|
|
114
|
+
console.error(err);
|
|
115
|
+
setScanResult({ type: "scanner", value: "" });
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
let inputBuffer = "";
|
|
120
|
+
let lastInputTime = 0;
|
|
121
|
+
let inputTimer = null;
|
|
122
|
+
const handleKeyDown = (e) => {
|
|
123
|
+
if (e.key === "Shift" || e.key === "Control" || e.key === "Alt" || e.key === "Meta" || e.key === "Tab" || e.key === "CapsLock" || e.key === "Escape" || e.key.startsWith("Arrow") || e.ctrlKey || e.metaKey) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const currentTime = Date.now();
|
|
127
|
+
const timeDiff = currentTime - lastInputTime;
|
|
128
|
+
if (e.key === "Enter") {
|
|
129
|
+
const trimmedCode = inputBuffer.trim();
|
|
130
|
+
if (trimmedCode.length >= 10) {
|
|
131
|
+
setScanResult({
|
|
132
|
+
type: "scanner",
|
|
133
|
+
value: trimmedCode
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
inputBuffer = "";
|
|
137
|
+
lastInputTime = 0;
|
|
138
|
+
if (inputTimer) {
|
|
139
|
+
clearTimeout(inputTimer);
|
|
140
|
+
inputTimer = null;
|
|
141
|
+
}
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (timeDiff < 30 && inputBuffer.length > 0) {
|
|
145
|
+
inputBuffer += e.key;
|
|
146
|
+
} else {
|
|
147
|
+
inputBuffer = e.key;
|
|
148
|
+
}
|
|
149
|
+
lastInputTime = currentTime;
|
|
150
|
+
if (inputTimer) {
|
|
151
|
+
clearTimeout(inputTimer);
|
|
152
|
+
}
|
|
153
|
+
inputTimer = setTimeout(() => {
|
|
154
|
+
const trimmedCode = inputBuffer.trim();
|
|
155
|
+
if (trimmedCode.length >= 10) {
|
|
156
|
+
setScanResult({
|
|
157
|
+
type: "scanner",
|
|
158
|
+
value: trimmedCode
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
inputBuffer = "";
|
|
162
|
+
}, 100);
|
|
163
|
+
};
|
|
164
|
+
if (!isNativeEnv) {
|
|
165
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
166
|
+
}
|
|
167
|
+
return () => {
|
|
168
|
+
if (!isNativeEnv) {
|
|
169
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
170
|
+
}
|
|
171
|
+
if (inputTimer) {
|
|
172
|
+
clearTimeout(inputTimer);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
}, []);
|
|
176
|
+
return {
|
|
177
|
+
scanResult
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
181
|
+
0 && (module.exports = {
|
|
182
|
+
useCameraDevice,
|
|
183
|
+
useScanListener,
|
|
184
|
+
useScannerDevice,
|
|
185
|
+
useTerminal
|
|
186
|
+
});
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/eftposPay/huifu/index.tsx
|
|
30
|
+
var huifu_exports = {};
|
|
31
|
+
__export(huifu_exports, {
|
|
32
|
+
default: () => huifu_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(huifu_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_index = require("./index.less");
|
|
38
|
+
var import_store = require("../store");
|
|
39
|
+
var import_Action = require("./Action");
|
|
40
|
+
var import_aggregatePayment = require("../aggregatePayment");
|
|
41
|
+
var import_types = require("../aggregatePayment/types");
|
|
42
|
+
var import_hooks = require("../hooks");
|
|
43
|
+
var import_store2 = require("../store");
|
|
44
|
+
var import_const = require("../const");
|
|
45
|
+
var import_helper = require("../helper");
|
|
46
|
+
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
47
|
+
var Huifu = ({ isNativeApp, onChange }) => {
|
|
48
|
+
var _a, _b;
|
|
49
|
+
const data = (0, import_store.useContextData)();
|
|
50
|
+
const context = (0, import_useEngineContext.default)();
|
|
51
|
+
const { interaction } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
52
|
+
const {
|
|
53
|
+
statusRef,
|
|
54
|
+
numRef,
|
|
55
|
+
netRef,
|
|
56
|
+
modeRef,
|
|
57
|
+
amountRef,
|
|
58
|
+
orderIdRef,
|
|
59
|
+
deviceRef,
|
|
60
|
+
payRef
|
|
61
|
+
} = (0, import_hooks.useStoreRef)();
|
|
62
|
+
const dispatch = (0, import_store2.useDispatch)();
|
|
63
|
+
const fail = (0, import_hooks.useFail)(0);
|
|
64
|
+
const failRef = (0, import_react.useRef)(fail);
|
|
65
|
+
const initRef = (0, import_react.useRef)(false);
|
|
66
|
+
const unloadRef = (0, import_react.useRef)(false);
|
|
67
|
+
const clearRef = (0, import_react.useRef)(null);
|
|
68
|
+
const payment = (0, import_aggregatePayment.useMicropay)({
|
|
69
|
+
paymentCode: ((_b = data == null ? void 0 : data.custom) == null ? void 0 : _b.custom_payment_code) || "EFTPOS_HUIFU",
|
|
70
|
+
paymentNum: numRef.current || "",
|
|
71
|
+
shouldContinue: () => !(unloadRef.current || !netRef.current),
|
|
72
|
+
callback: (_instance, response) => {
|
|
73
|
+
var _a2;
|
|
74
|
+
console.log("callback = ", response);
|
|
75
|
+
const { status, data: data2 } = response || {};
|
|
76
|
+
if (status === import_types.EPaymentStatus.Success) {
|
|
77
|
+
dispatch((0, import_store2.updateNextStep)());
|
|
78
|
+
dispatch((0, import_store2.updateCustom)({ card_reader_surcharge: 0, receipt: [] }));
|
|
79
|
+
dispatch(
|
|
80
|
+
(0, import_store.updateState)({
|
|
81
|
+
status: "success",
|
|
82
|
+
title: import_utils.locales.getText("page.eftpos-pay.text.successful")(
|
|
83
|
+
modeRef.current
|
|
84
|
+
)
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
clearRef.current = setTimeout(() => {
|
|
88
|
+
const params = (0, import_helper.getPayParams)(
|
|
89
|
+
{
|
|
90
|
+
mode: modeRef.current,
|
|
91
|
+
amount: amountRef.current,
|
|
92
|
+
order_id: orderIdRef.current,
|
|
93
|
+
number: numRef.current,
|
|
94
|
+
device: deviceRef.current,
|
|
95
|
+
pay: payRef.current,
|
|
96
|
+
custom: {
|
|
97
|
+
card_reader_surcharge: 0,
|
|
98
|
+
receipt: []
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"success"
|
|
102
|
+
);
|
|
103
|
+
onChange("success", { ...params, receipt: [] });
|
|
104
|
+
}, 1e3);
|
|
105
|
+
} else if (status === import_types.EPaymentStatus.Failed) {
|
|
106
|
+
(_a2 = failRef.current) == null ? void 0 : _a2.call(failRef, data2, false);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
(0, import_react.useEffect)(() => {
|
|
111
|
+
failRef.current = fail;
|
|
112
|
+
}, [fail]);
|
|
113
|
+
(0, import_react.useEffect)(() => {
|
|
114
|
+
var _a2;
|
|
115
|
+
if (statusRef.current === import_const.StatusEnum.Success || statusRef.current === import_const.StatusEnum.Fail) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (initRef.current) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
initRef.current = true;
|
|
122
|
+
if (numRef.current) {
|
|
123
|
+
console.log("payment.query");
|
|
124
|
+
payment.query();
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
console.log("data?.custom =>>>> ", data == null ? void 0 : data.custom);
|
|
128
|
+
const isPay = modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay;
|
|
129
|
+
if (!isPay) {
|
|
130
|
+
payment.run({ orderPaymentId: (_a2 = data == null ? void 0 : data.custom) == null ? void 0 : _a2.order_payment_id });
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
}, []);
|
|
134
|
+
(0, import_react.useEffect)(() => {
|
|
135
|
+
var _a2, _b2;
|
|
136
|
+
if (isNativeApp && (data == null ? void 0 : data.status) === import_const.StatusEnum.Init) {
|
|
137
|
+
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
|
|
138
|
+
module: "pos",
|
|
139
|
+
key: "other",
|
|
140
|
+
data: {
|
|
141
|
+
key: "show_close_button"
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}, [isNativeApp, data == null ? void 0 : data.status]);
|
|
146
|
+
(0, import_react.useEffect)(() => {
|
|
147
|
+
return () => {
|
|
148
|
+
unloadRef.current = true;
|
|
149
|
+
if (clearRef.current) {
|
|
150
|
+
clearTimeout(clearRef.current);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
}, []);
|
|
154
|
+
const updateToLoading = () => {
|
|
155
|
+
var _a2, _b2;
|
|
156
|
+
if (isNativeApp) {
|
|
157
|
+
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
|
|
158
|
+
module: "pos",
|
|
159
|
+
key: "other",
|
|
160
|
+
data: {
|
|
161
|
+
key: "hide_close_button"
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
dispatch((0, import_store.updateStatus)(import_const.StatusEnum.Loading));
|
|
166
|
+
dispatch(
|
|
167
|
+
(0, import_store.updateState)({
|
|
168
|
+
title: import_utils.locales.getText("page.eftpos-pay.text.loading")(modeRef.current)
|
|
169
|
+
})
|
|
170
|
+
);
|
|
171
|
+
};
|
|
172
|
+
const onClose = () => {
|
|
173
|
+
onChange("fail", {
|
|
174
|
+
number: data.number,
|
|
175
|
+
uniquePaymentNumber: data.number,
|
|
176
|
+
device: data.device,
|
|
177
|
+
order_id: data.order_id
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
const onPayClick = (scanResult) => {
|
|
181
|
+
console.log("scanResult = ", scanResult);
|
|
182
|
+
updateToLoading();
|
|
183
|
+
payment.run({ authCode: scanResult });
|
|
184
|
+
};
|
|
185
|
+
const onScanCallback = (scanResult) => {
|
|
186
|
+
console.log("scanResult = ", scanResult);
|
|
187
|
+
updateToLoading();
|
|
188
|
+
payment.run({ authCode: scanResult });
|
|
189
|
+
};
|
|
190
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, (data == null ? void 0 : data.status) === import_const.StatusEnum.Init && /* @__PURE__ */ import_react.default.createElement(
|
|
191
|
+
import_Action.ScanAction,
|
|
192
|
+
{
|
|
193
|
+
onClose,
|
|
194
|
+
onScanCallback,
|
|
195
|
+
onPayClick,
|
|
196
|
+
isNativeApp
|
|
197
|
+
}
|
|
198
|
+
), (data == null ? void 0 : data.status) === import_const.StatusEnum.Loading ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, import_utils.locales.getText("page.eftpos-pay.text.processing")) : null);
|
|
199
|
+
};
|
|
200
|
+
var huifu_default = Huifu;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
.pisell-eftpos-pay-huifu {
|
|
2
|
+
&-scan {
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
&-status {
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
&-wrapper {
|
|
11
|
+
position: absolute;
|
|
12
|
+
left: -4px;
|
|
13
|
+
bottom: 4px;
|
|
14
|
+
width: 14px;
|
|
15
|
+
height: 14px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-header {
|
|
20
|
+
position: relative;
|
|
21
|
+
padding-bottom: 20px;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
|
|
25
|
+
&-close {
|
|
26
|
+
position: absolute;
|
|
27
|
+
right: -10px;
|
|
28
|
+
padding: 10px;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-divider {
|
|
33
|
+
position: absolute;
|
|
34
|
+
bottom: 0;
|
|
35
|
+
left: -24px;
|
|
36
|
+
right: -24px;
|
|
37
|
+
height: 1px;
|
|
38
|
+
background: #eaecf0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-title {
|
|
42
|
+
color: #101828;
|
|
43
|
+
font-size: 18px;
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-content {
|
|
49
|
+
padding-bottom: 24px;
|
|
50
|
+
flex: 1;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: 20px;
|
|
54
|
+
|
|
55
|
+
&-title {
|
|
56
|
+
color: #344054;
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-scanner {
|
|
62
|
+
padding: 16px;
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: 16px;
|
|
66
|
+
border-radius: 12px;
|
|
67
|
+
|
|
68
|
+
&-right {
|
|
69
|
+
flex: 1;
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
gap: 4px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-scanner-active {
|
|
77
|
+
border: 1px solid #75e0a7;
|
|
78
|
+
background: #f6fef9;
|
|
79
|
+
box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
|
|
80
|
+
|
|
81
|
+
&-title {
|
|
82
|
+
color: #067647;
|
|
83
|
+
font-size: 14px;
|
|
84
|
+
font-weight: 600;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-desc {
|
|
88
|
+
color: #067647;
|
|
89
|
+
font-size: 14px;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-scanner-unactive {
|
|
95
|
+
border: 1px solid #fda29b;
|
|
96
|
+
background: #fffbfa;
|
|
97
|
+
box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
|
|
98
|
+
|
|
99
|
+
&-title {
|
|
100
|
+
color: #b42318;
|
|
101
|
+
font-size: 14px;
|
|
102
|
+
font-weight: 600;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-desc {
|
|
106
|
+
color: #b42318;
|
|
107
|
+
font-size: 14px;
|
|
108
|
+
font-weight: 400;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-camera {
|
|
113
|
+
padding: 16px;
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
gap: 8px;
|
|
117
|
+
border-radius: 12px;
|
|
118
|
+
background: #f2f4f7;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
|
|
121
|
+
&-right {
|
|
122
|
+
flex: 1;
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
gap: 6px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&-title {
|
|
129
|
+
color: #175cd3;
|
|
130
|
+
font-size: 14px;
|
|
131
|
+
font-weight: 500;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&-desc {
|
|
135
|
+
color: #000;
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
font-weight: 400;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&-input-wrapper {
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-direction: column;
|
|
144
|
+
gap: 8px;
|
|
145
|
+
|
|
146
|
+
&-title {
|
|
147
|
+
color: #344054;
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&-tip {
|
|
153
|
+
color: #475467;
|
|
154
|
+
font-size: 14px;
|
|
155
|
+
font-weight: 400;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&-footer {
|
|
161
|
+
position: relative;
|
|
162
|
+
padding-top: 24px;
|
|
163
|
+
display: flex;
|
|
164
|
+
gap: 12px;
|
|
165
|
+
|
|
166
|
+
&-divider {
|
|
167
|
+
position: absolute;
|
|
168
|
+
top: 0;
|
|
169
|
+
left: -24px;
|
|
170
|
+
right: -24px;
|
|
171
|
+
height: 1px;
|
|
172
|
+
background: #eaecf0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&-button {
|
|
176
|
+
height: 48px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type Peripherals = {
|
|
2
|
+
scanner: 'none' | 'connected' | 'disconnect';
|
|
3
|
+
nfc: 'none' | 'connected' | 'disconnect';
|
|
4
|
+
};
|
|
5
|
+
export interface HuifuProps {
|
|
6
|
+
isNativeApp?: boolean;
|
|
7
|
+
onChange: (status: any, params: any) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface HuifuActionProps {
|
|
10
|
+
isNativeApp?: boolean;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
onPayClick: (scanResult: string) => void;
|
|
13
|
+
onScanCallback: (scanResult: string) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/eftposPay/huifu/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -99,10 +99,14 @@ var eftposPay_default = (props) => {
|
|
|
99
99
|
if (props.source === import_const.RestoreEumn.Restore) {
|
|
100
100
|
return props.params;
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
const initState = (0, import_manufacturer.getInitState)(
|
|
103
103
|
props.type,
|
|
104
104
|
props.params ? { mode, ...props.params, symbol: current } : { mode, symbol: current }
|
|
105
105
|
);
|
|
106
|
+
return {
|
|
107
|
+
...initState,
|
|
108
|
+
originalParams: props.params || void 0
|
|
109
|
+
};
|
|
106
110
|
}, [mode, props.params, props.type, symbol]);
|
|
107
111
|
const stateRef = (0, import_react.useRef)(state);
|
|
108
112
|
(0, import_react.useEffect)(() => {
|
|
@@ -107,6 +107,18 @@ declare const _default: {
|
|
|
107
107
|
'page.eftpos-pay.text.not.connected': string;
|
|
108
108
|
'page.eftpos-pay.text.tyro-btn': (key: string) => string;
|
|
109
109
|
'page.eftpos-pay.text.tyro': (key: string) => string;
|
|
110
|
+
'page.eftpos-pay.text.huifu.scan.title': string;
|
|
111
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected': string;
|
|
112
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': string;
|
|
113
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected': string;
|
|
114
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': string;
|
|
115
|
+
'page.eftpos-pay.text.huifu.scan.camera-title': string;
|
|
116
|
+
'page.eftpos-pay.text.huifu.scan.camera-desc': string;
|
|
117
|
+
'page.eftpos-pay.text.huifu.scan.input-title': string;
|
|
118
|
+
'page.eftpos-pay.text.huifu.scan.input-placeholder': string;
|
|
119
|
+
'page.eftpos-pay.text.huifu.scan.input-tip': string;
|
|
120
|
+
'page.eftpos-pay.text.huifu.scan.cancel': string;
|
|
121
|
+
'page.eftpos-pay.text.huifu.scan.confirm': string;
|
|
110
122
|
};
|
|
111
123
|
'zh-CN': {
|
|
112
124
|
'page.eftpos-pay.text.loading': (mode: string) => string;
|
|
@@ -216,6 +228,18 @@ declare const _default: {
|
|
|
216
228
|
'page.eftpos-pay.text.not.connected': string;
|
|
217
229
|
'page.eftpos-pay.text.tyro-btn': (key: string) => string;
|
|
218
230
|
'page.eftpos-pay.text.tyro': (key: string) => string | string[];
|
|
231
|
+
'page.eftpos-pay.text.huifu.scan.title': string;
|
|
232
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected': string;
|
|
233
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': string;
|
|
234
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected': string;
|
|
235
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': string;
|
|
236
|
+
'page.eftpos-pay.text.huifu.scan.camera-title': string;
|
|
237
|
+
'page.eftpos-pay.text.huifu.scan.camera-desc': string;
|
|
238
|
+
'page.eftpos-pay.text.huifu.scan.input-title': string;
|
|
239
|
+
'page.eftpos-pay.text.huifu.scan.input-placeholder': string;
|
|
240
|
+
'page.eftpos-pay.text.huifu.scan.input-tip': string;
|
|
241
|
+
'page.eftpos-pay.text.huifu.scan.cancel': string;
|
|
242
|
+
'page.eftpos-pay.text.huifu.scan.confirm': string;
|
|
219
243
|
};
|
|
220
244
|
'zh-HK': {
|
|
221
245
|
'page.eftpos-pay.text.loading': (mode: string) => string;
|
|
@@ -325,6 +349,18 @@ declare const _default: {
|
|
|
325
349
|
'page.eftpos-pay.text.not.connected': string;
|
|
326
350
|
'page.eftpos-pay.text.tyro-btn': (key: string) => string;
|
|
327
351
|
'page.eftpos-pay.text.tyro': (key: string) => string | string[];
|
|
352
|
+
'page.eftpos-pay.text.huifu.scan.title': string;
|
|
353
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected': string;
|
|
354
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': string;
|
|
355
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected': string;
|
|
356
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': string;
|
|
357
|
+
'page.eftpos-pay.text.huifu.scan.camera-title': string;
|
|
358
|
+
'page.eftpos-pay.text.huifu.scan.camera-desc': string;
|
|
359
|
+
'page.eftpos-pay.text.huifu.scan.input-title': string;
|
|
360
|
+
'page.eftpos-pay.text.huifu.scan.input-placeholder': string;
|
|
361
|
+
'page.eftpos-pay.text.huifu.scan.input-tip': string;
|
|
362
|
+
'page.eftpos-pay.text.huifu.scan.cancel': string;
|
|
363
|
+
'page.eftpos-pay.text.huifu.scan.confirm': string;
|
|
328
364
|
};
|
|
329
365
|
};
|
|
330
366
|
export default _default;
|