@pisell/private-materials 3.0.13 → 3.0.14-2.gray
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 +19 -11
- package/build/lowcode/assets-dev.json +10 -2
- package/build/lowcode/assets-prod.json +19 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +25 -14
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -9
- package/es/components/booking/addons/index.d.ts +2 -2
- package/es/components/booking/addons/index.js +257 -70
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -1
- package/es/components/booking/components/TabProduct/index.js +64 -61
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/es/components/booking/components/TabProduct/productItem/index.js +27 -8
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +21 -8
- package/es/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
- package/es/components/booking/components/TabProduct/tabs/index.less +4 -1
- package/es/components/booking/components/addButton/index.d.ts +9 -8
- package/es/components/booking/components/addButton/index.js +10 -6
- package/es/components/booking/components/collapsibleList/index.d.ts +11 -0
- package/es/components/booking/components/collapsibleList/index.js +99 -0
- package/es/components/booking/components/collapsibleList/index.less +61 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/booking/components/collapsibleList/utils.js +21 -0
- package/es/components/booking/components/customSelect/index.d.ts +7 -3
- package/es/components/booking/components/customSelect/index.js +125 -52
- package/es/components/booking/components/customSelect/index.less +0 -1
- package/es/components/booking/components/drawer/index.d.ts +3 -1
- package/es/components/booking/components/drawer/index.js +8 -1
- package/es/components/booking/components/drawer/index.less +10 -3
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -1
- package/es/components/booking/components/footer/FooterMenus/index.js +71 -22
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +74 -36
- package/es/components/booking/components/footer/index.d.ts +2 -2
- package/es/components/booking/components/footer/index.js +560 -107
- package/es/components/booking/components/footer/serve.d.ts +1 -0
- package/es/components/booking/components/footer/serve.js +21 -0
- package/es/components/booking/components/footer/utils.d.ts +18 -0
- package/es/components/booking/components/footer/utils.js +118 -15
- package/es/components/booking/components/tabPane/index.less +1 -0
- package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/es/components/booking/deposit/ClientItem/index.js +43 -0
- package/es/components/booking/deposit/ClientItem/index.less +37 -0
- package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/es/components/booking/deposit/DepositItem/index.js +117 -0
- package/es/components/booking/deposit/DepositItem/index.less +112 -0
- package/es/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
- package/es/components/booking/deposit/EditDepositModal/index.js +134 -0
- package/es/components/booking/deposit/EditDepositModal/index.less +44 -0
- package/es/components/booking/deposit/index.d.ts +3 -0
- package/es/components/booking/deposit/index.js +196 -0
- package/es/components/booking/deposit/index.less +3 -0
- package/es/components/booking/deposit/serve.d.ts +8 -0
- package/es/components/booking/deposit/serve.js +27 -0
- package/es/components/booking/forms/format.d.ts +1 -0
- package/es/components/booking/forms/format.js +14 -0
- package/es/components/booking/forms/forms.d.ts +3 -2
- package/es/components/booking/forms/forms.js +66 -60
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/index.js +153 -67
- package/es/components/booking/forms/model.d.ts +2 -1
- package/es/components/booking/forms/serve.d.ts +9 -0
- package/es/components/booking/forms/serve.js +25 -0
- package/es/components/booking/forms/single/RenderValueById.d.ts +6 -0
- package/es/components/booking/forms/single/RenderValueById.js +79 -0
- package/es/components/booking/forms/single/index.d.ts +1 -1
- package/es/components/booking/forms/single/index.js +48 -82
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/index.js +2 -2
- package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/es/components/booking/info/addServiceVariant/index.js +33 -0
- package/es/components/booking/info/client/index.d.ts +4 -4
- package/es/components/booking/info/client/index.js +220 -116
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/client/serve.js +51 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +44 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +391 -0
- package/es/components/booking/info/clientVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/index.js +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +23 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +413 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +374 -0
- package/es/components/booking/info/clientVariant/vertical/index.less +101 -0
- package/es/components/booking/info/date/index.js +1 -1
- package/es/components/booking/info/date/index.less +1 -1
- package/es/components/booking/info/header/index.d.ts +2 -2
- package/es/components/booking/info/header/index.js +501 -44
- package/es/components/booking/info/header/index.less +117 -2
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/index.js +46 -16
- package/es/components/booking/info/index.less +9 -0
- package/es/components/booking/info/model.d.ts +3 -2
- package/es/components/booking/info/model.js +21 -12
- package/es/components/booking/info/notes/index.d.ts +3 -0
- package/es/components/booking/info/notes/index.js +87 -0
- package/es/components/booking/info/pet/index.d.ts +13 -3
- package/es/components/booking/info/pet/index.js +340 -201
- package/es/components/booking/info/pet/index.less +3 -0
- package/es/components/booking/info/service/actions/index.d.ts +6 -0
- package/es/components/booking/info/service/actions/index.js +73 -0
- package/es/components/booking/info/service/actions/index.less +9 -0
- package/es/components/booking/info/service/addService/index.d.ts +11 -3
- package/es/components/booking/info/service/addService/index.js +358 -99
- package/es/components/booking/info/service/addService/index.less +27 -1
- package/es/components/booking/info/service/addService/utils.d.ts +61 -0
- package/es/components/booking/info/service/addService/utils.js +260 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +4 -0
- package/es/components/booking/info/service/addTimeModal/index.js +691 -0
- package/es/components/booking/info/service/addTimeModal/index.less +138 -0
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/addTimeModal/serve.js +50 -0
- package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/es/components/booking/info/service/addTimeModal/utils.js +174 -0
- package/es/components/booking/info/service/editService/index.d.ts +7 -4
- package/es/components/booking/info/service/editService/index.js +495 -332
- package/es/components/booking/info/service/editService/index.less +32 -1
- package/es/components/booking/info/service/index.d.ts +4 -4
- package/es/components/booking/info/service/index.js +44 -127
- package/es/components/booking/info/service/index.less +2 -96
- package/es/components/booking/info/service/serve.d.ts +1 -0
- package/es/components/booking/info/service/serve.js +21 -0
- package/es/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
- package/es/components/booking/info/service/serviceItem/Sales/index.js +0 -0
- package/es/components/booking/info/service/serviceItem/Sales/index.less +0 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +4 -0
- package/es/components/booking/info/service/serviceItem/index.js +85 -0
- package/es/components/booking/info/service/serviceItem/index.less +125 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/es/components/booking/info/service/serviceList/index.js +109 -0
- package/es/components/booking/info/service/serviceList/index.less +0 -0
- package/es/components/booking/info/utils.d.ts +23 -0
- package/es/components/booking/info/utils.js +86 -0
- package/es/components/booking/locales.d.ts +219 -0
- package/es/components/booking/locales.js +272 -13
- package/es/components/booking/model.d.ts +25 -1
- package/es/components/booking/model.js +9 -9
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/index.js +13 -10
- package/es/components/booking/notes/model.d.ts +2 -1
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/index.js +7 -10
- package/es/components/booking/payments/model.d.ts +2 -1
- package/es/components/booking/utils.d.ts +66 -1
- package/es/components/booking/utils.js +247 -98
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/const.js +159 -0
- package/es/components/eftpos/device.d.ts +9 -0
- package/es/components/eftpos/device.js +34 -0
- package/es/components/eftpos/deviceList/index.d.ts +3 -0
- package/es/components/eftpos/deviceList/index.js +52 -0
- package/es/components/eftpos/form/index.d.ts +21 -0
- package/es/components/eftpos/form/index.js +96 -0
- package/es/components/eftpos/group/index.d.ts +7 -0
- package/es/components/eftpos/group/index.js +65 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/eftpos/hooks.js +118 -0
- package/es/components/eftpos/icon/apiKey.d.ts +5 -0
- package/es/components/eftpos/icon/apiKey.js +17 -0
- package/es/components/eftpos/icon/device.d.ts +5 -0
- package/es/components/eftpos/icon/device.js +19 -0
- package/es/components/eftpos/index.d.ts +47 -0
- package/es/components/eftpos/index.js +606 -0
- package/es/components/eftpos/index.less +206 -0
- package/es/components/eftpos/locales.d.ts +99 -0
- package/es/components/eftpos/locales.js +122 -0
- package/es/components/eftpos/log.d.ts +8 -0
- package/es/components/eftpos/log.js +85 -0
- package/es/components/eftpos/pos.d.ts +9 -0
- package/es/components/eftpos/pos.js +36 -0
- package/es/components/eftpos/surcharge/index.css +17 -0
- package/es/components/eftpos/surcharge/index.d.ts +31 -0
- package/es/components/eftpos/surcharge/index.js +195 -0
- package/es/components/eftpos/table.d.ts +21 -0
- package/es/components/eftpos/table.js +377 -0
- package/es/components/eftposPay/amount.d.ts +20 -0
- package/es/components/eftposPay/amount.js +279 -0
- package/es/components/eftposPay/component/alert/index.d.ts +6 -0
- package/es/components/eftposPay/component/alert/index.js +11 -0
- package/es/components/eftposPay/component/alert/index.less +29 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +3 -0
- package/es/components/eftposPay/component/alert/warn.js +45 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/es/components/eftposPay/component/fail/failCustom.js +144 -0
- package/es/components/eftposPay/component/fail/index.d.ts +4 -0
- package/es/components/eftposPay/component/fail/index.js +139 -0
- package/es/components/eftposPay/component/fail/network.d.ts +9 -0
- package/es/components/eftposPay/component/fail/network.js +61 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/es/components/eftposPay/component/fail/unknow.js +58 -0
- package/es/components/eftposPay/component/header/index.d.ts +10 -0
- package/es/components/eftposPay/component/header/index.js +69 -0
- package/es/components/eftposPay/component/header/index.less +35 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +13 -0
- package/es/components/eftposPay/component/header/titlebar.js +39 -0
- package/es/components/eftposPay/component/header/titlebar.less +17 -0
- package/es/components/eftposPay/component/manual/index.d.ts +10 -0
- package/es/components/eftposPay/component/manual/index.js +248 -0
- package/es/components/eftposPay/component/manual/index.less +137 -0
- package/es/components/eftposPay/component/signature/index.d.ts +9 -0
- package/es/components/eftposPay/component/signature/index.js +81 -0
- package/es/components/eftposPay/component/step/index.d.ts +12 -0
- package/es/components/eftposPay/component/step/index.js +31 -0
- package/es/components/eftposPay/component/step/step.d.ts +9 -0
- package/es/components/eftposPay/component/step/step.js +23 -0
- package/es/components/eftposPay/const.d.ts +147 -0
- package/es/components/eftposPay/const.js +50 -0
- package/es/components/eftposPay/device.d.ts +22 -0
- package/es/components/eftposPay/device.js +171 -0
- package/es/components/eftposPay/device.less +61 -0
- package/es/components/eftposPay/helper.d.ts +66 -0
- package/es/components/eftposPay/helper.js +195 -0
- package/es/components/eftposPay/hooks.d.ts +33 -0
- package/es/components/eftposPay/hooks.js +308 -0
- package/es/components/eftposPay/index.d.ts +5 -0
- package/es/components/eftposPay/index.js +279 -0
- package/es/components/eftposPay/index.less +271 -0
- package/es/components/eftposPay/locales.d.ts +309 -0
- package/es/components/eftposPay/locales.js +729 -0
- package/es/components/eftposPay/manufacturer.d.ts +6 -0
- package/es/components/eftposPay/manufacturer.js +33 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/pay.js +188 -0
- package/es/components/eftposPay/payo/config.d.ts +11 -0
- package/es/components/eftposPay/payo/config.js +224 -0
- package/es/components/eftposPay/payo/const.d.ts +26 -0
- package/es/components/eftposPay/payo/const.js +146 -0
- package/es/components/eftposPay/payo/hooks.d.ts +10 -0
- package/es/components/eftposPay/payo/hooks.js +130 -0
- package/es/components/eftposPay/payo/index.d.ts +7 -0
- package/es/components/eftposPay/payo/index.js +35 -0
- package/es/components/eftposPay/store/index.d.ts +340 -0
- package/es/components/eftposPay/store/index.js +356 -0
- package/es/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/es/components/eftposPay/store/useThunkReducer.js +31 -0
- package/es/components/eftposPay/tyro/const.d.ts +17 -0
- package/es/components/eftposPay/tyro/const.js +122 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +14 -0
- package/es/components/eftposPay/tyro/hooks.js +40 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/tyro/index.js +575 -0
- package/es/components/eftposPay/var.less +9 -0
- package/es/components/eftposPay/windcave/const.d.ts +119 -0
- package/es/components/eftposPay/windcave/const.js +263 -0
- package/es/components/eftposPay/windcave/helper.d.ts +23 -0
- package/es/components/eftposPay/windcave/helper.js +447 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/es/components/eftposPay/windcave/receiptAction.js +374 -0
- package/es/components/eftposPay/windcave/timer.d.ts +29 -0
- package/es/components/eftposPay/windcave/timer.js +198 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/es/components/eftposPay/windcave/windcave.js +299 -0
- package/es/components/index.d.ts +5 -1
- package/es/components/index.js +5 -1
- package/es/components/listComponent/index.d.ts +15 -0
- package/es/components/listComponent/index.js +75 -0
- package/es/components/pay/toC/PayAmount/index.d.ts +15 -0
- package/es/components/pay/toC/PayAmount/index.js +25 -0
- package/es/components/pay/toC/PayAmount/index.less +21 -0
- package/es/components/pay/toC/PayCountdown/index.d.ts +15 -0
- package/es/components/pay/toC/PayCountdown/index.js +26 -0
- package/es/components/pay/toC/PayCountdown/index.less +22 -0
- package/es/components/pay/toC/PaymentList/index.d.ts +19 -0
- package/es/components/pay/toC/PaymentList/index.js +349 -0
- package/es/components/pay/toC/PaymentList/index.less +112 -0
- package/es/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/es/components/pay/toC/PaymentList/mock.js +128 -0
- package/es/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
- package/es/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
- package/es/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
- package/es/components/pay/toC/PaymentList/payment/cash.svg +8 -0
- package/es/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
- package/es/components/pay/toC/PaymentList/payment/custom.svg +10 -0
- package/es/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
- package/es/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
- package/es/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
- package/es/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +28 -0
- package/es/components/pay/toC/PaymentList/serve.js +142 -0
- package/es/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/es/components/pay/toC/PaymentList/status.js +100 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +10 -0
- package/es/components/pay/toC/PaymentList/utils.js +53 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +113 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +74 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.js +79 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.js +78 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +65 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +36 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +110 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +349 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +375 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +37 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +21 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +222 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +130 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +524 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.js +73 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +61 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +121 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +33 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +30 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +37 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +13 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +15 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +108 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +113 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +96 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +33 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +78 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.js +36 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +108 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +142 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +19 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +344 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +114 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +40 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/index.js +316 -0
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
- package/es/components/pay/toC/WalletPassBlock/index.js +72 -0
- package/es/components/pay/toC/WalletPassBlock/index.less +65 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/index.js +719 -0
- package/es/components/pay/toC/index.less +22 -0
- package/es/components/pay/toC/locales.d.ts +217 -0
- package/es/components/pay/toC/locales.js +216 -0
- package/es/components/pay/toC/model.d.ts +35 -0
- package/es/components/pay/toC/model.js +43 -0
- package/es/components/pay/toC/payGroup.d.ts +48 -0
- package/es/components/pay/toC/payGroup.js +105 -0
- package/es/components/pay/toC/serve.d.ts +34 -0
- package/es/components/pay/toC/serve.js +148 -0
- package/es/components/pay/toC/status.d.ts +12 -0
- package/es/components/pay/toC/status.js +116 -0
- package/es/components/pay/toC/utils.d.ts +38 -0
- package/es/components/pay/toC/utils.js +61 -0
- package/es/components/productExtension/card/index.d.ts +10 -0
- package/es/components/productExtension/card/index.js +20 -0
- package/es/components/productExtension/card/index.less +34 -0
- package/es/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/es/components/productExtension/fields/Actor/Container/index.js +34 -0
- package/es/components/productExtension/fields/Actor/Container/index.less +19 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +94 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +5 -0
- package/es/components/productExtension/fields/Actor/index.js +23 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/es/components/productExtension/fields/Forms/index.js +184 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +30 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +39 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.less +62 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
- package/es/components/productExtension/fields/SelectProducts/index.js +99 -0
- package/es/components/productExtension/fields/SelectProducts/index.less +30 -0
- package/es/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/es/components/productExtension/fields/SelectProducts/mock.js +0 -0
- package/es/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/server.js +29 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.js +213 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
- package/es/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/es/components/productExtension/fields/SelectResourcesTable/mock.js +5072 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +49 -0
- package/es/components/productExtension/fields/index.d.ts +1 -0
- package/es/components/productExtension/fields/index.js +33 -0
- package/es/components/productExtension/index.d.ts +8 -0
- package/es/components/productExtension/index.js +83 -0
- package/es/components/productExtension/index.less +0 -0
- package/es/components/productExtension/locales.d.ts +48 -0
- package/es/components/productExtension/locales.js +47 -0
- package/es/components/productExtension/server.d.ts +1 -0
- package/es/components/productExtension/server.js +29 -0
- package/es/components/ruleSetting/index.d.ts +10 -0
- package/es/components/ruleSetting/index.js +337 -0
- package/es/components/ruleSetting/index.less +81 -0
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/ruleSetting/locales.js +47 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +10 -0
- package/es/components/ruleSetting/ruleBorder/index.js +66 -0
- package/es/components/ruleSetting/ruleBorder/index.less +30 -0
- package/es/components/ruleSetting/server.d.ts +4 -0
- package/es/components/ruleSetting/server.js +149 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +12 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.js +40 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.less +38 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +5 -4
- package/es/components/schedules/components/ScheduleList/index.js +53 -43
- package/es/components/schedules/hooks/useSchedulesDataSource.js +5 -3
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/locales.d.ts +3 -0
- package/es/components/schedules/locales.js +6 -3
- package/es/components/schedules/model.d.ts +2 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +134 -8
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.less +20 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +5 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +20 -5
- package/es/components/schedules/products/list/index.d.ts +2 -2
- package/es/components/schedules/products/list/index.js +8 -8
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +3 -3
- package/es/components/schedules/schedules/AllSchedules/index.js +9 -6
- package/es/components/schedules/schedules/AllSchedules/index.less +11 -3
- package/es/components/schedules/schedules/index.js +3 -2
- package/es/components/schedules/schedules/serve.d.ts +7 -0
- package/es/components/schedules/schedules/serve.js +24 -3
- package/es/components/schedules/schedules/utils.d.ts +22 -0
- package/es/components/schedules/schedules/utils.js +143 -1
- package/es/components/schedules/type.d.ts +7 -0
- package/es/components/selectModal/index.d.ts +24 -0
- package/es/components/selectModal/index.js +108 -0
- package/es/components/selectModal/index.less +0 -0
- package/es/components/tabProduct/card/index.d.ts +2 -2
- package/es/components/tabProduct/card/index.js +3 -4
- package/es/components/tabProduct/index.d.ts +7 -4
- package/es/components/tabProduct/index.js +35 -25
- package/es/components/tabProduct/tabs/index.d.ts +3 -3
- package/es/components/tabProduct/tabs/index.js +34 -21
- package/es/components/taxSelect/index.d.ts +12 -0
- package/es/components/taxSelect/index.js +141 -0
- package/es/components/taxSelect/index.less +12 -0
- package/es/components/taxSelect/locales.d.ts +24 -0
- package/es/components/taxSelect/locales.js +23 -0
- package/es/hooks/usePrefix.d.ts +1 -0
- package/es/hooks/usePrefix.js +10 -0
- package/es/index.d.ts +9 -0
- package/es/index.js +10 -1
- package/es/utils/index.d.ts +23 -0
- package/es/utils/index.js +78 -0
- package/es/utils/load.d.ts +11 -0
- package/es/utils/load.js +85 -0
- package/lib/components/booking/addons/index.d.ts +2 -2
- package/lib/components/booking/addons/index.js +238 -51
- package/lib/components/booking/addons/model.d.ts +2 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -1
- package/lib/components/booking/components/TabProduct/index.js +62 -59
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/lib/components/booking/components/TabProduct/productItem/index.js +16 -3
- package/lib/components/booking/components/TabProduct/selectProductItem/index.js +33 -8
- package/lib/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
- package/lib/components/booking/components/TabProduct/tabs/index.less +4 -1
- package/lib/components/booking/components/addButton/index.d.ts +9 -8
- package/lib/components/booking/components/addButton/index.js +10 -7
- package/lib/components/booking/components/collapsibleList/index.d.ts +11 -0
- package/lib/components/booking/components/collapsibleList/index.js +94 -0
- package/lib/components/booking/components/collapsibleList/index.less +61 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/booking/components/collapsibleList/utils.js +46 -0
- package/lib/components/booking/components/customSelect/index.d.ts +7 -3
- package/lib/components/booking/components/customSelect/index.js +50 -16
- package/lib/components/booking/components/customSelect/index.less +0 -1
- package/lib/components/booking/components/drawer/index.d.ts +3 -1
- package/lib/components/booking/components/drawer/index.js +5 -1
- package/lib/components/booking/components/drawer/index.less +10 -3
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -1
- package/lib/components/booking/components/footer/FooterMenus/index.js +4 -21
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +30 -12
- package/lib/components/booking/components/footer/index.d.ts +2 -2
- package/lib/components/booking/components/footer/index.js +416 -29
- package/lib/components/booking/components/footer/serve.d.ts +1 -0
- package/lib/components/booking/components/footer/serve.js +30 -0
- package/lib/components/booking/components/footer/utils.d.ts +18 -0
- package/lib/components/booking/components/footer/utils.js +81 -14
- package/lib/components/booking/components/tabPane/index.less +1 -0
- package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/lib/components/booking/deposit/ClientItem/index.js +71 -0
- package/lib/components/booking/deposit/ClientItem/index.less +37 -0
- package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/lib/components/booking/deposit/DepositItem/index.js +127 -0
- package/lib/components/booking/deposit/DepositItem/index.less +112 -0
- package/lib/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
- package/lib/components/booking/deposit/EditDepositModal/index.js +132 -0
- package/lib/components/booking/deposit/EditDepositModal/index.less +44 -0
- package/lib/components/booking/deposit/index.d.ts +3 -0
- package/lib/components/booking/deposit/index.js +232 -0
- package/lib/components/booking/deposit/index.less +3 -0
- package/lib/components/booking/deposit/serve.d.ts +8 -0
- package/lib/components/booking/deposit/serve.js +30 -0
- package/lib/components/booking/forms/format.d.ts +1 -0
- package/lib/components/booking/forms/format.js +17 -2
- package/lib/components/booking/forms/forms.d.ts +3 -2
- package/lib/components/booking/forms/forms.js +95 -77
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/index.js +52 -9
- package/lib/components/booking/forms/model.d.ts +2 -1
- package/lib/components/booking/forms/serve.d.ts +9 -0
- package/lib/components/booking/forms/serve.js +30 -0
- package/lib/components/booking/forms/single/RenderValueById.d.ts +6 -0
- package/lib/components/booking/forms/single/RenderValueById.js +106 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -1
- package/lib/components/booking/forms/single/index.js +32 -52
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/lib/components/booking/info/addServiceVariant/index.js +58 -0
- package/lib/components/booking/info/client/index.d.ts +4 -4
- package/lib/components/booking/info/client/index.js +99 -58
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/client/serve.js +39 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +44 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +317 -0
- package/lib/components/booking/info/clientVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/index.js +39 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +23 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +364 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/lib/components/booking/info/clientVariant/vertical/index.js +404 -0
- package/lib/components/booking/info/clientVariant/vertical/index.less +101 -0
- package/lib/components/booking/info/date/index.js +1 -1
- package/lib/components/booking/info/date/index.less +1 -1
- package/lib/components/booking/info/header/index.d.ts +2 -2
- package/lib/components/booking/info/header/index.js +258 -11
- package/lib/components/booking/info/header/index.less +117 -2
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/index.js +44 -12
- package/lib/components/booking/info/index.less +9 -0
- package/lib/components/booking/info/model.d.ts +3 -2
- package/lib/components/booking/info/model.js +17 -8
- package/lib/components/booking/info/notes/index.d.ts +3 -0
- package/lib/components/booking/info/notes/index.js +115 -0
- package/lib/components/booking/info/pet/index.d.ts +13 -3
- package/lib/components/booking/info/pet/index.js +252 -110
- package/lib/components/booking/info/pet/index.less +3 -0
- package/lib/components/booking/info/service/actions/index.d.ts +6 -0
- package/lib/components/booking/info/service/actions/index.js +97 -0
- package/lib/components/booking/info/service/actions/index.less +9 -0
- package/lib/components/booking/info/service/addService/index.d.ts +11 -3
- package/lib/components/booking/info/service/addService/index.js +300 -84
- package/lib/components/booking/info/service/addService/index.less +27 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +61 -0
- package/lib/components/booking/info/service/addService/utils.js +214 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +4 -0
- package/lib/components/booking/info/service/addTimeModal/index.js +581 -0
- package/lib/components/booking/info/service/addTimeModal/index.less +138 -0
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/addTimeModal/serve.js +39 -0
- package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/lib/components/booking/info/service/addTimeModal/utils.js +155 -0
- package/lib/components/booking/info/service/editService/index.d.ts +7 -4
- package/lib/components/booking/info/service/editService/index.js +395 -266
- package/lib/components/booking/info/service/editService/index.less +32 -1
- package/lib/components/booking/info/service/index.d.ts +4 -4
- package/lib/components/booking/info/service/index.js +32 -111
- package/lib/components/booking/info/service/index.less +2 -96
- package/lib/components/booking/info/service/serve.d.ts +1 -0
- package/lib/components/booking/info/service/serve.js +30 -0
- package/lib/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
- package/lib/components/booking/info/service/serviceItem/Sales/index.js +0 -0
- package/lib/components/booking/info/service/serviceItem/Sales/index.less +0 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +4 -0
- package/lib/components/booking/info/service/serviceItem/index.js +111 -0
- package/lib/components/booking/info/service/serviceItem/index.less +125 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/lib/components/booking/info/service/serviceList/index.js +130 -0
- package/lib/components/booking/info/service/serviceList/index.less +0 -0
- package/lib/components/booking/info/utils.d.ts +23 -0
- package/lib/components/booking/info/utils.js +88 -0
- package/lib/components/booking/locales.d.ts +219 -0
- package/lib/components/booking/locales.js +279 -13
- package/lib/components/booking/model.d.ts +25 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/index.js +9 -7
- package/lib/components/booking/notes/model.d.ts +2 -1
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/index.js +7 -10
- package/lib/components/booking/payments/model.d.ts +2 -1
- package/lib/components/booking/utils.d.ts +66 -1
- package/lib/components/booking/utils.js +199 -62
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/const.js +124 -0
- package/lib/components/eftpos/device.d.ts +9 -0
- package/lib/components/eftpos/device.js +55 -0
- package/lib/components/eftpos/deviceList/index.d.ts +3 -0
- package/lib/components/eftpos/deviceList/index.js +70 -0
- package/lib/components/eftpos/form/index.d.ts +21 -0
- package/lib/components/eftpos/form/index.js +112 -0
- package/lib/components/eftpos/group/index.d.ts +7 -0
- package/lib/components/eftpos/group/index.js +75 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/hooks.js +106 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +5 -0
- package/lib/components/eftpos/icon/apiKey.js +57 -0
- package/lib/components/eftpos/icon/device.d.ts +5 -0
- package/lib/components/eftpos/icon/device.js +57 -0
- package/lib/components/eftpos/index.d.ts +47 -0
- package/lib/components/eftpos/index.js +459 -0
- package/lib/components/eftpos/index.less +206 -0
- package/lib/components/eftpos/locales.d.ts +99 -0
- package/lib/components/eftpos/locales.js +140 -0
- package/lib/components/eftpos/log.d.ts +8 -0
- package/lib/components/eftpos/log.js +87 -0
- package/lib/components/eftpos/pos.d.ts +9 -0
- package/lib/components/eftpos/pos.js +56 -0
- package/lib/components/eftpos/surcharge/index.css +17 -0
- package/lib/components/eftpos/surcharge/index.d.ts +31 -0
- package/lib/components/eftpos/surcharge/index.js +155 -0
- package/lib/components/eftpos/table.d.ts +21 -0
- package/lib/components/eftpos/table.js +292 -0
- package/lib/components/eftposPay/amount.d.ts +20 -0
- package/lib/components/eftposPay/amount.js +215 -0
- package/lib/components/eftposPay/component/alert/index.d.ts +6 -0
- package/lib/components/eftposPay/component/alert/index.js +38 -0
- package/lib/components/eftposPay/component/alert/index.less +29 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +3 -0
- package/lib/components/eftposPay/component/alert/warn.js +80 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +141 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/index.js +145 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +9 -0
- package/lib/components/eftposPay/component/fail/network.js +65 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/lib/components/eftposPay/component/fail/unknow.js +72 -0
- package/lib/components/eftposPay/component/header/index.d.ts +10 -0
- package/lib/components/eftposPay/component/header/index.js +93 -0
- package/lib/components/eftposPay/component/header/index.less +35 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +13 -0
- package/lib/components/eftposPay/component/header/titlebar.js +55 -0
- package/lib/components/eftposPay/component/header/titlebar.less +17 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +10 -0
- package/lib/components/eftposPay/component/manual/index.js +193 -0
- package/lib/components/eftposPay/component/manual/index.less +137 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +9 -0
- package/lib/components/eftposPay/component/signature/index.js +80 -0
- package/lib/components/eftposPay/component/step/index.d.ts +12 -0
- package/lib/components/eftposPay/component/step/index.js +71 -0
- package/lib/components/eftposPay/component/step/step.d.ts +9 -0
- package/lib/components/eftposPay/component/step/step.js +59 -0
- package/lib/components/eftposPay/const.d.ts +147 -0
- package/lib/components/eftposPay/const.js +88 -0
- package/lib/components/eftposPay/device.d.ts +22 -0
- package/lib/components/eftposPay/device.js +152 -0
- package/lib/components/eftposPay/device.less +61 -0
- package/lib/components/eftposPay/helper.d.ts +66 -0
- package/lib/components/eftposPay/helper.js +175 -0
- package/lib/components/eftposPay/hooks.d.ts +33 -0
- package/lib/components/eftposPay/hooks.js +375 -0
- package/lib/components/eftposPay/index.d.ts +5 -0
- package/lib/components/eftposPay/index.js +244 -0
- package/lib/components/eftposPay/index.less +271 -0
- package/lib/components/eftposPay/locales.d.ts +309 -0
- package/lib/components/eftposPay/locales.js +653 -0
- package/lib/components/eftposPay/manufacturer.d.ts +6 -0
- package/lib/components/eftposPay/manufacturer.js +66 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/pay.js +183 -0
- package/lib/components/eftposPay/payo/config.d.ts +11 -0
- package/lib/components/eftposPay/payo/config.js +230 -0
- package/lib/components/eftposPay/payo/const.d.ts +26 -0
- package/lib/components/eftposPay/payo/const.js +131 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
- package/lib/components/eftposPay/payo/hooks.js +97 -0
- package/lib/components/eftposPay/payo/index.d.ts +7 -0
- package/lib/components/eftposPay/payo/index.js +63 -0
- package/lib/components/eftposPay/store/index.d.ts +340 -0
- package/lib/components/eftposPay/store/index.js +312 -0
- package/lib/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/lib/components/eftposPay/store/useThunkReducer.js +53 -0
- package/lib/components/eftposPay/tyro/const.d.ts +17 -0
- package/lib/components/eftposPay/tyro/const.js +114 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +14 -0
- package/lib/components/eftposPay/tyro/hooks.js +61 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/tyro/index.js +558 -0
- package/lib/components/eftposPay/var.less +9 -0
- package/lib/components/eftposPay/windcave/const.d.ts +119 -0
- package/lib/components/eftposPay/windcave/const.js +249 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
- package/lib/components/eftposPay/windcave/helper.js +493 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/lib/components/eftposPay/windcave/receiptAction.js +354 -0
- package/lib/components/eftposPay/windcave/timer.d.ts +29 -0
- package/lib/components/eftposPay/windcave/timer.js +131 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/lib/components/eftposPay/windcave/windcave.js +283 -0
- package/lib/components/index.d.ts +5 -1
- package/lib/components/index.js +14 -2
- package/lib/components/listComponent/index.d.ts +15 -0
- package/lib/components/listComponent/index.js +85 -0
- package/lib/components/pay/toC/PayAmount/index.d.ts +15 -0
- package/lib/components/pay/toC/PayAmount/index.js +42 -0
- package/lib/components/pay/toC/PayAmount/index.less +21 -0
- package/lib/components/pay/toC/PayCountdown/index.d.ts +15 -0
- package/lib/components/pay/toC/PayCountdown/index.js +49 -0
- package/lib/components/pay/toC/PayCountdown/index.less +22 -0
- package/lib/components/pay/toC/PaymentList/index.d.ts +19 -0
- package/lib/components/pay/toC/PaymentList/index.js +259 -0
- package/lib/components/pay/toC/PaymentList/index.less +112 -0
- package/lib/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/lib/components/pay/toC/PaymentList/mock.js +174 -0
- package/lib/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
- package/lib/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
- package/lib/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
- package/lib/components/pay/toC/PaymentList/payment/cash.svg +8 -0
- package/lib/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
- package/lib/components/pay/toC/PaymentList/payment/custom.svg +10 -0
- package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
- package/lib/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
- package/lib/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
- package/lib/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +28 -0
- package/lib/components/pay/toC/PaymentList/serve.js +86 -0
- package/lib/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/lib/components/pay/toC/PaymentList/status.js +132 -0
- package/lib/components/pay/toC/PaymentList/utils.d.ts +10 -0
- package/lib/components/pay/toC/PaymentList/utils.js +52 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +96 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +68 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +61 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +43 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +95 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +270 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +224 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +39 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +52 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +139 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +80 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +336 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.js +53 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +76 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +107 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +30 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +69 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +48 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +124 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +94 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +81 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +30 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +71 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.js +43 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +88 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +87 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +126 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +284 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +54 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +70 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +176 -0
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
- package/lib/components/pay/toC/WalletPassBlock/index.js +97 -0
- package/lib/components/pay/toC/WalletPassBlock/index.less +65 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/index.js +396 -0
- package/lib/components/pay/toC/index.less +22 -0
- package/lib/components/pay/toC/locales.d.ts +217 -0
- package/lib/components/pay/toC/locales.js +240 -0
- package/lib/components/pay/toC/model.d.ts +35 -0
- package/lib/components/pay/toC/model.js +60 -0
- package/lib/components/pay/toC/payGroup.d.ts +48 -0
- package/lib/components/pay/toC/payGroup.js +77 -0
- package/lib/components/pay/toC/serve.d.ts +34 -0
- package/lib/components/pay/toC/serve.js +78 -0
- package/lib/components/pay/toC/status.d.ts +12 -0
- package/lib/components/pay/toC/status.js +122 -0
- package/lib/components/pay/toC/utils.d.ts +38 -0
- package/lib/components/pay/toC/utils.js +69 -0
- package/lib/components/productExtension/card/index.d.ts +10 -0
- package/lib/components/productExtension/card/index.js +57 -0
- package/lib/components/productExtension/card/index.less +34 -0
- package/lib/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/lib/components/productExtension/fields/Actor/Container/index.js +64 -0
- package/lib/components/productExtension/fields/Actor/Container/index.less +19 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.js +128 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +5 -0
- package/lib/components/productExtension/fields/Actor/index.js +56 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/lib/components/productExtension/fields/Forms/index.js +108 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +65 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +79 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.less +62 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
- package/lib/components/productExtension/fields/SelectProducts/index.js +126 -0
- package/lib/components/productExtension/fields/SelectProducts/index.less +30 -0
- package/lib/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/lib/components/productExtension/fields/SelectProducts/mock.js +0 -0
- package/lib/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/server.js +33 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.js +188 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/mock.js +12723 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/server.js +39 -0
- package/lib/components/productExtension/fields/index.d.ts +1 -0
- package/lib/components/productExtension/fields/index.js +69 -0
- package/lib/components/productExtension/index.d.ts +8 -0
- package/lib/components/productExtension/index.js +112 -0
- package/lib/components/productExtension/index.less +0 -0
- package/lib/components/productExtension/locales.d.ts +48 -0
- package/lib/components/productExtension/locales.js +71 -0
- package/lib/components/productExtension/server.d.ts +1 -0
- package/lib/components/productExtension/server.js +33 -0
- package/lib/components/ruleSetting/index.d.ts +10 -0
- package/lib/components/ruleSetting/index.js +381 -0
- package/lib/components/ruleSetting/index.less +81 -0
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/ruleSetting/locales.js +71 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +10 -0
- package/lib/components/ruleSetting/ruleBorder/index.js +89 -0
- package/lib/components/ruleSetting/ruleBorder/index.less +30 -0
- package/lib/components/ruleSetting/server.d.ts +4 -0
- package/lib/components/ruleSetting/server.js +107 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +12 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.js +77 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.less +38 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +5 -4
- package/lib/components/schedules/components/ScheduleList/index.js +38 -31
- package/lib/components/schedules/hooks/useSchedulesDataSource.js +8 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/locales.d.ts +3 -0
- package/lib/components/schedules/locales.js +6 -3
- package/lib/components/schedules/model.d.ts +2 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +100 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.less +20 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +5 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +18 -4
- package/lib/components/schedules/products/list/index.d.ts +2 -2
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +3 -3
- package/lib/components/schedules/schedules/AllSchedules/index.js +3 -2
- package/lib/components/schedules/schedules/AllSchedules/index.less +11 -3
- package/lib/components/schedules/schedules/index.js +2 -2
- package/lib/components/schedules/schedules/serve.d.ts +7 -0
- package/lib/components/schedules/schedules/serve.js +5 -2
- package/lib/components/schedules/schedules/utils.d.ts +22 -0
- package/lib/components/schedules/schedules/utils.js +98 -0
- package/lib/components/schedules/type.d.ts +7 -0
- package/lib/components/selectModal/index.d.ts +24 -0
- package/lib/components/selectModal/index.js +133 -0
- package/lib/components/selectModal/index.less +0 -0
- package/lib/components/tabProduct/card/index.d.ts +2 -2
- package/lib/components/tabProduct/card/index.js +1 -2
- package/lib/components/tabProduct/index.d.ts +7 -4
- package/lib/components/tabProduct/index.js +21 -13
- package/lib/components/tabProduct/tabs/index.d.ts +3 -3
- package/lib/components/tabProduct/tabs/index.js +10 -6
- package/lib/components/taxSelect/index.d.ts +12 -0
- package/lib/components/taxSelect/index.js +161 -0
- package/lib/components/taxSelect/index.less +12 -0
- package/lib/components/taxSelect/locales.d.ts +24 -0
- package/lib/components/taxSelect/locales.js +47 -0
- package/lib/hooks/usePrefix.d.ts +1 -0
- package/lib/hooks/usePrefix.js +44 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +29 -2
- package/lib/utils/index.d.ts +23 -0
- package/lib/utils/index.js +70 -0
- package/lib/utils/load.d.ts +11 -0
- package/lib/utils/load.js +100 -0
- package/lowcode/booking-deposit/meta.ts +93 -0
- package/lowcode/booking-vertical-add-service/meta.ts +124 -0
- package/lowcode/booking-vertical-client/meta.ts +124 -0
- package/lowcode/eftpos/meta.ts +229 -0
- package/lowcode/eftpos-pay/meta.ts +155 -0
- package/lowcode/product-extension/meta.ts +131 -0
- package/lowcode/rule-setting/meta.ts +74 -0
- package/lowcode/tax-select/meta.ts +107 -0
- package/lowcode/toc-pay/meta.ts +59 -0
- package/lowcode/vertical-add-service/meta.ts +71 -0
- package/lowcode/vertical-client/meta.ts +71 -0
- package/package.json +6 -4
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
10
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
16
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
18
|
+
import { useTyro } from "./hooks";
|
|
19
|
+
import { locales } from '@pisell/utils';
|
|
20
|
+
import { Button } from 'antd';
|
|
21
|
+
import { useDispatch, useContextData, updateState, updateCustom, updateComponent } from "../store";
|
|
22
|
+
import { ModeEnum } from "../const";
|
|
23
|
+
import { Decimal } from 'decimal.js';
|
|
24
|
+
import { getUuid, getPayParams } from "../helper";
|
|
25
|
+
import Step from "../component/step/step";
|
|
26
|
+
import { useStoreRef } from "../hooks";
|
|
27
|
+
var Minute = 1000 * 60;
|
|
28
|
+
export default (function (_ref) {
|
|
29
|
+
var api = _ref.api,
|
|
30
|
+
onChange = _ref.onChange,
|
|
31
|
+
children = _ref.children,
|
|
32
|
+
url = _ref.url,
|
|
33
|
+
version = _ref.version;
|
|
34
|
+
var _useContextData = useContextData(),
|
|
35
|
+
eftpos = _useContextData.eftpos,
|
|
36
|
+
custom = _useContextData.custom,
|
|
37
|
+
mode = _useContextData.mode,
|
|
38
|
+
payStatus = _useContextData.status;
|
|
39
|
+
var dispatch = useDispatch();
|
|
40
|
+
var _useState = useState(-1),
|
|
41
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
42
|
+
status = _useState2[0],
|
|
43
|
+
setStatus = _useState2[1];
|
|
44
|
+
var _useState3 = useState(false),
|
|
45
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
46
|
+
isManually = _useState4[0],
|
|
47
|
+
setManually = _useState4[1];
|
|
48
|
+
var isCancelRef = useRef(false);
|
|
49
|
+
var _useStoreRef = useStoreRef(),
|
|
50
|
+
deviceRef = _useStoreRef.deviceRef,
|
|
51
|
+
payRef = _useStoreRef.payRef,
|
|
52
|
+
numRef = _useStoreRef.numRef,
|
|
53
|
+
modeRef = _useStoreRef.modeRef,
|
|
54
|
+
orderIdRef = _useStoreRef.orderIdRef,
|
|
55
|
+
amountRef = _useStoreRef.amountRef;
|
|
56
|
+
var merchantReceiptRef = useRef({});
|
|
57
|
+
var _useTyro = useTyro({
|
|
58
|
+
url: url,
|
|
59
|
+
version: version
|
|
60
|
+
}),
|
|
61
|
+
_useTyro2 = _slicedToArray(_useTyro, 2),
|
|
62
|
+
TyroRef = _useTyro2[0],
|
|
63
|
+
load = _useTyro2[1];
|
|
64
|
+
var requestParams = useRef(custom === null || custom === void 0 ? void 0 : custom.requestParams);
|
|
65
|
+
var listRef = useRef((custom === null || custom === void 0 ? void 0 : custom.list) || []);
|
|
66
|
+
var iClientRef = useRef();
|
|
67
|
+
var unloadRef = useRef(false);
|
|
68
|
+
var clearRef = useRef();
|
|
69
|
+
useEffect(function () {
|
|
70
|
+
listRef.current = (custom === null || custom === void 0 ? void 0 : custom.list) || [];
|
|
71
|
+
}, [custom === null || custom === void 0 ? void 0 : custom.list]);
|
|
72
|
+
useEffect(function () {
|
|
73
|
+
requestParams.current = custom === null || custom === void 0 ? void 0 : custom.requestParams;
|
|
74
|
+
}, [custom === null || custom === void 0 ? void 0 : custom.requestParams]);
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @title: 获取设备信息
|
|
78
|
+
* @description: 获取设备信息
|
|
79
|
+
* @param {function} cb
|
|
80
|
+
* @Author: hongbing.wang
|
|
81
|
+
* @Date: 2024-08-19 11:32
|
|
82
|
+
*/
|
|
83
|
+
var getTerminalInfo = function getTerminalInfo(cb) {
|
|
84
|
+
var iClient = iClientRef.current;
|
|
85
|
+
if (!iClient) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
setStatus(0);
|
|
89
|
+
var connection = deviceRef.current.connection;
|
|
90
|
+
var integrationKey = connection.integrationKey,
|
|
91
|
+
tid = connection.tid,
|
|
92
|
+
mid = connection.mid;
|
|
93
|
+
console.log(integrationKey, tid, mid);
|
|
94
|
+
iClient.terminalInfo(function (_ref2) {
|
|
95
|
+
var status = _ref2.status,
|
|
96
|
+
message = _ref2.message,
|
|
97
|
+
terminalInfo = _ref2.terminalInfo;
|
|
98
|
+
if (status === 'success' && terminalInfo !== null && terminalInfo !== void 0 && terminalInfo.available) {
|
|
99
|
+
cb();
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
mid: mid,
|
|
103
|
+
tid: tid,
|
|
104
|
+
integrationKey: integrationKey
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @title: 退款
|
|
110
|
+
* @description: 退款
|
|
111
|
+
* @Author: hongbing.wang
|
|
112
|
+
* @Date: 2024-08-19 11:32
|
|
113
|
+
*/
|
|
114
|
+
var refundOrder = function refundOrder() {
|
|
115
|
+
var _deviceRef$current, _deviceRef$current$se;
|
|
116
|
+
var iClient = iClientRef.current;
|
|
117
|
+
if (!iClient) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
if (isCancelRef.current) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
var connection = deviceRef.current.connection;
|
|
124
|
+
var integrationKey = connection.integrationKey,
|
|
125
|
+
tid = connection.tid,
|
|
126
|
+
mid = connection.mid;
|
|
127
|
+
numRef.current = getUuid();
|
|
128
|
+
dispatch(updateState({
|
|
129
|
+
number: numRef.current
|
|
130
|
+
}));
|
|
131
|
+
requestParams.current = {
|
|
132
|
+
amount: new Decimal(amountRef.current || 0).mul(100).toFixed(0, Decimal.ROUND_HALF_UP),
|
|
133
|
+
// 打印小票 true 打印到系统上 false 打印到pos机上
|
|
134
|
+
integratedReceipt: !((_deviceRef$current = deviceRef.current) !== null && _deviceRef$current !== void 0 && (_deviceRef$current$se = _deviceRef$current.setting) !== null && _deviceRef$current$se !== void 0 && _deviceRef$current$se.receipts),
|
|
135
|
+
integrationKey: integrationKey,
|
|
136
|
+
transactionId: numRef.current,
|
|
137
|
+
mid: mid,
|
|
138
|
+
tid: tid
|
|
139
|
+
};
|
|
140
|
+
dispatch(updateCustom({
|
|
141
|
+
requestParams: requestParams.current
|
|
142
|
+
}));
|
|
143
|
+
setStatus(Date.now());
|
|
144
|
+
merchantReceiptRef.current = {};
|
|
145
|
+
iClient.initiateRefund(requestParams.current, {
|
|
146
|
+
receiptCallback: receiptCallbackImpl,
|
|
147
|
+
transactionCompleteCallback: transactionCompleteCallbackImpl,
|
|
148
|
+
questionCallback: questionCallbackImpl,
|
|
149
|
+
statusMessageCallback: statusMessageCallbackImpl
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @title: 支付
|
|
155
|
+
* @description:
|
|
156
|
+
* @return {*}
|
|
157
|
+
* @Author: hongbing.wang
|
|
158
|
+
* @Date: 2024-08-19 11:33
|
|
159
|
+
*/
|
|
160
|
+
var payOrder = function payOrder() {
|
|
161
|
+
var _deviceRef$current2, _deviceRef$current2$s, _payRef$current, _deviceRef$current3, _deviceRef$current3$s, _deviceRef$current4, _deviceRef$current4$s;
|
|
162
|
+
var iClient = iClientRef.current;
|
|
163
|
+
if (!iClient) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
if (isCancelRef.current) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
var connection = deviceRef.current.connection;
|
|
170
|
+
var integrationKey = connection.integrationKey,
|
|
171
|
+
tid = connection.tid,
|
|
172
|
+
mid = connection.mid;
|
|
173
|
+
numRef.current = getUuid();
|
|
174
|
+
dispatch(updateState({
|
|
175
|
+
number: numRef.current
|
|
176
|
+
}));
|
|
177
|
+
console.log('deviceRef.current?.settings?.useOriginSurcharge = ', (_deviceRef$current2 = deviceRef.current) === null || _deviceRef$current2 === void 0 ? void 0 : (_deviceRef$current2$s = _deviceRef$current2.setting) === null || _deviceRef$current2$s === void 0 ? void 0 : _deviceRef$current2$s.useOriginSurcharge);
|
|
178
|
+
// (deviceRef.current?.setting as { receipts?: boolean })
|
|
179
|
+
requestParams.current = {
|
|
180
|
+
amount: new Decimal((_payRef$current = payRef.current) === null || _payRef$current === void 0 ? void 0 : _payRef$current.total).mul(100).toFixed(0, Decimal.ROUND_HALF_UP),
|
|
181
|
+
// 手续费 true tyro 手续费, false 系统手续费
|
|
182
|
+
enableSurcharge: ((_deviceRef$current3 = deviceRef.current) === null || _deviceRef$current3 === void 0 ? void 0 : (_deviceRef$current3$s = _deviceRef$current3.setting) === null || _deviceRef$current3$s === void 0 ? void 0 : _deviceRef$current3$s.useOriginSurcharge) || false,
|
|
183
|
+
// 打印小票 true 打印到系统上 false 打印到pos机上
|
|
184
|
+
integratedReceipt: !((_deviceRef$current4 = deviceRef.current) !== null && _deviceRef$current4 !== void 0 && (_deviceRef$current4$s = _deviceRef$current4.setting) !== null && _deviceRef$current4$s !== void 0 && _deviceRef$current4$s.receipts),
|
|
185
|
+
integrationKey: integrationKey,
|
|
186
|
+
transactionId: numRef.current,
|
|
187
|
+
mid: mid,
|
|
188
|
+
tid: tid
|
|
189
|
+
};
|
|
190
|
+
dispatch(updateCustom({
|
|
191
|
+
requestParams: requestParams.current
|
|
192
|
+
}));
|
|
193
|
+
setStatus(Date.now());
|
|
194
|
+
merchantReceiptRef.current = {};
|
|
195
|
+
iClient.initiatePurchase(requestParams.current, {
|
|
196
|
+
receiptCallback: receiptCallbackImpl,
|
|
197
|
+
transactionCompleteCallback: transactionCompleteCallbackImpl,
|
|
198
|
+
questionCallback: questionCallbackImpl,
|
|
199
|
+
statusMessageCallback: statusMessageCallbackImpl
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @title: 恢复上一次支付
|
|
205
|
+
* @Author: hongbing.wang
|
|
206
|
+
* @Date: 2024-08-19 11:33
|
|
207
|
+
*/
|
|
208
|
+
var continueLastOrder = function continueLastOrder() {
|
|
209
|
+
var iClient = iClientRef.current;
|
|
210
|
+
if (!iClient) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
if (isCancelRef.current) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
setStatus(Date.now());
|
|
217
|
+
merchantReceiptRef.current = {};
|
|
218
|
+
iClient.continueLastTransaction({
|
|
219
|
+
receiptCallback: receiptCallbackImpl,
|
|
220
|
+
transactionCompleteCallback: transactionCompleteCallbackImpl,
|
|
221
|
+
questionCallback: questionCallbackImpl,
|
|
222
|
+
statusMessageCallback: statusMessageCallbackImpl
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @title: 获取商家小票回调信息
|
|
228
|
+
* @description: 获取小票回调信息
|
|
229
|
+
* @param {{signatureRequired:boolean,merchantReceipt:string}} signatureRequired: 是否打印小票, merchantReceipt:小票内容
|
|
230
|
+
* @Author: hongbing.wang
|
|
231
|
+
* @Date: 2024-08-19 11:33
|
|
232
|
+
*/
|
|
233
|
+
var receiptCallbackImpl = function receiptCallbackImpl(_ref3) {
|
|
234
|
+
var signatureRequired = _ref3.signatureRequired,
|
|
235
|
+
merchantReceipt = _ref3.merchantReceipt;
|
|
236
|
+
console.log('商家小票 客户端是否打印小票 = ', signatureRequired);
|
|
237
|
+
console.log('商家小票 小票内容 = \n', merchantReceipt);
|
|
238
|
+
if (signatureRequired) {
|
|
239
|
+
var receipt = [merchantReceipt].filter(function (item) {
|
|
240
|
+
return typeof item === 'string';
|
|
241
|
+
}).filter(Boolean);
|
|
242
|
+
onChange('print', receipt);
|
|
243
|
+
}
|
|
244
|
+
merchantReceiptRef.current = {
|
|
245
|
+
signatureRequired: signatureRequired,
|
|
246
|
+
merchantReceipt: merchantReceipt
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @title: 支付状态回调函数
|
|
252
|
+
* @description:
|
|
253
|
+
* @param {string} message
|
|
254
|
+
* @return {*}
|
|
255
|
+
* @Author: hongbing.wang
|
|
256
|
+
* @Date: 2024-08-19 11:34
|
|
257
|
+
*/
|
|
258
|
+
var statusMessageCallbackImpl = function statusMessageCallbackImpl(message) {
|
|
259
|
+
var _listRef$current;
|
|
260
|
+
var translateMsg = locales.getText('page.eftpos-pay.text.tyro')(message);
|
|
261
|
+
var msg = Array.isArray(translateMsg) ? translateMsg.reduce(function (accumulator, currentValue) {
|
|
262
|
+
return accumulator + ' ' + currentValue;
|
|
263
|
+
}, '') : translateMsg;
|
|
264
|
+
var lastitem = listRef.current[listRef.current.length - 1];
|
|
265
|
+
var key = locales.getText('page.eftpos-pay.text.tyro')('Connection lost. Attempting to recover');
|
|
266
|
+
if (msg === key && lastitem && lastitem.pedding === key) {
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
console.log('message = ', message);
|
|
270
|
+
console.log('msg = ', msg);
|
|
271
|
+
dispatch(updateCustom({
|
|
272
|
+
list: [].concat(_toConsumableArray(listRef.current || []), [{
|
|
273
|
+
status: 'pendding',
|
|
274
|
+
pedding: msg,
|
|
275
|
+
resolve: msg,
|
|
276
|
+
reject: msg,
|
|
277
|
+
index: ((_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.length) || 0
|
|
278
|
+
}])
|
|
279
|
+
}));
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @title: 支付提示下操作信息
|
|
284
|
+
* @Author: hongbing.wang
|
|
285
|
+
* @Date: 2024-08-19 11:34
|
|
286
|
+
*/
|
|
287
|
+
var questionCallbackImpl = function questionCallbackImpl(question, answerCallback) {
|
|
288
|
+
console.log('Question is ' + JSON.stringify(question));
|
|
289
|
+
setStatus(-1);
|
|
290
|
+
setManually(false);
|
|
291
|
+
var msg = locales.getText('page.eftpos-pay.text.tyro')(question.text);
|
|
292
|
+
dispatch(updateCustom({
|
|
293
|
+
btnList: question.options.map(function (item) {
|
|
294
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
295
|
+
key: item,
|
|
296
|
+
type: item === 'YES' || item === 'RETRY' ? 'primary' : 'default',
|
|
297
|
+
className: "pisell-lowcode__eft-pay-step-item-btn",
|
|
298
|
+
onClick: function onClick() {
|
|
299
|
+
dispatch(updateCustom({
|
|
300
|
+
btnList: []
|
|
301
|
+
}));
|
|
302
|
+
setManually(false);
|
|
303
|
+
dispatch(updateState({
|
|
304
|
+
status: 'loading',
|
|
305
|
+
title: locales.getText('page.eftpos-pay.text.loading')(modeRef.current || ModeEnum.Pay),
|
|
306
|
+
subTitle: ''
|
|
307
|
+
}));
|
|
308
|
+
setStatus(Date.now());
|
|
309
|
+
answerCallback(item);
|
|
310
|
+
}
|
|
311
|
+
}, locales.getText('page.eftpos-pay.text.tyro-btn')(item));
|
|
312
|
+
})
|
|
313
|
+
}));
|
|
314
|
+
var status = question.isError ? 'fail' : 'warn';
|
|
315
|
+
dispatch(updateState(Array.isArray(msg) ? {
|
|
316
|
+
status: status,
|
|
317
|
+
title: msg[0],
|
|
318
|
+
subTitle: msg[1]
|
|
319
|
+
} : {
|
|
320
|
+
status: status,
|
|
321
|
+
title: msg
|
|
322
|
+
}));
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @title: 支付完成-支付状态回调函数
|
|
327
|
+
* @param {any} response
|
|
328
|
+
* @Author: hongbing.wang
|
|
329
|
+
* @Date: 2024-08-19 11:35
|
|
330
|
+
*/
|
|
331
|
+
var transactionCompleteCallbackImpl = function transactionCompleteCallbackImpl(response) {
|
|
332
|
+
var _deviceRef$current5;
|
|
333
|
+
setStatus(-1);
|
|
334
|
+
setManually(false);
|
|
335
|
+
console.log('Response = ' + JSON.stringify(response), ', Request = ', JSON.stringify(requestParams.current));
|
|
336
|
+
console.log(' 客户小票 response.customerReceipt = \n', response.customerReceipt);
|
|
337
|
+
var receipt = [// merchantReceiptRef.current?.merchantReceipt,
|
|
338
|
+
response === null || response === void 0 ? void 0 : response.customerReceipt].filter(function (item) {
|
|
339
|
+
return typeof item === 'string';
|
|
340
|
+
}).filter(Boolean);
|
|
341
|
+
api.addTransaction({
|
|
342
|
+
order_id: orderIdRef.current,
|
|
343
|
+
number: numRef.current,
|
|
344
|
+
card_reader_id: (_deviceRef$current5 = deviceRef.current) === null || _deviceRef$current5 === void 0 ? void 0 : _deviceRef$current5.id,
|
|
345
|
+
card_reader_type: eftpos,
|
|
346
|
+
amount: requestParams.current.amount,
|
|
347
|
+
action: modeRef.current,
|
|
348
|
+
status: response.result === 'APPROVED' ? 'succeed' : 'failed',
|
|
349
|
+
request: requestParams.current,
|
|
350
|
+
response: _objectSpread(_objectSpread({}, response), {}, {
|
|
351
|
+
merchantReceipt: merchantReceiptRef.current
|
|
352
|
+
}),
|
|
353
|
+
metadata: {
|
|
354
|
+
receipt: receipt
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
dispatch(updateCustom({
|
|
358
|
+
btnList: []
|
|
359
|
+
}));
|
|
360
|
+
// 保存入库
|
|
361
|
+
if (response.result === 'APPROVED') {
|
|
362
|
+
// 支付成功
|
|
363
|
+
dispatch(updateState({
|
|
364
|
+
status: 'success',
|
|
365
|
+
title: locales.getText('page.eftpos-pay.text.successful')(mode),
|
|
366
|
+
subTitle: ''
|
|
367
|
+
}));
|
|
368
|
+
dispatch(updateCustom({
|
|
369
|
+
card_reader_surcharge: response.surchargeAmount || 0
|
|
370
|
+
}));
|
|
371
|
+
clearRef.current = setTimeout(function () {
|
|
372
|
+
var _deviceRef$current6;
|
|
373
|
+
var params = getPayParams({
|
|
374
|
+
mode: modeRef.current,
|
|
375
|
+
amount: amountRef.current,
|
|
376
|
+
order_id: orderIdRef.current,
|
|
377
|
+
number: numRef.current,
|
|
378
|
+
device: deviceRef.current,
|
|
379
|
+
pay: payRef.current,
|
|
380
|
+
custom: {
|
|
381
|
+
card_reader_surcharge: response.surchargeAmount || 0
|
|
382
|
+
}
|
|
383
|
+
}, 'success');
|
|
384
|
+
onChange('success', _objectSpread(_objectSpread({}, params), {}, {
|
|
385
|
+
receipt: (_deviceRef$current6 = deviceRef.current) !== null && _deviceRef$current6 !== void 0 && _deviceRef$current6.setting.receipts ? [] : receipt
|
|
386
|
+
}));
|
|
387
|
+
}, 1000);
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
if (response.result === 'UNKNOWN') {
|
|
391
|
+
dispatch(updateCustom({
|
|
392
|
+
errorStatus: 'unknow' // unknow know unknown
|
|
393
|
+
}));
|
|
394
|
+
|
|
395
|
+
dispatch(updateComponent('UnknowFail'));
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
// SYSTEM ERROR
|
|
399
|
+
// CANCELLED
|
|
400
|
+
// REVERSED
|
|
401
|
+
// NOT STARTED
|
|
402
|
+
|
|
403
|
+
dispatch(updateState({
|
|
404
|
+
status: 'fail'
|
|
405
|
+
}));
|
|
406
|
+
dispatch(updateCustom({
|
|
407
|
+
failCustom: {
|
|
408
|
+
isPosNetworkError: false,
|
|
409
|
+
status: 'fail',
|
|
410
|
+
fail: locales.getText('page.eftpos-pay.text.transaction.fail'),
|
|
411
|
+
warn: null,
|
|
412
|
+
title: locales.getText('page.eftpos-pay.text.failed')(modeRef.current)
|
|
413
|
+
}
|
|
414
|
+
}));
|
|
415
|
+
dispatch(updateComponent('FailCustom'));
|
|
416
|
+
};
|
|
417
|
+
useEffect(function () {
|
|
418
|
+
var config = deviceRef.current.config;
|
|
419
|
+
var apiKey = config.apiKey,
|
|
420
|
+
posProductData = config.posProductData;
|
|
421
|
+
if (load && TyroRef.current) {
|
|
422
|
+
var _IClient = TyroRef.current.IClient;
|
|
423
|
+
if (_IClient) {
|
|
424
|
+
var iclient = new _IClient(apiKey, posProductData);
|
|
425
|
+
iClientRef.current = iclient;
|
|
426
|
+
if (isCancelRef.current) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
if (!numRef.current) {
|
|
430
|
+
if (modeRef.current === ModeEnum.Pay) {
|
|
431
|
+
getTerminalInfo(payOrder);
|
|
432
|
+
} else if (modeRef.current === ModeEnum.Refund) {
|
|
433
|
+
getTerminalInfo(refundOrder);
|
|
434
|
+
}
|
|
435
|
+
} else {
|
|
436
|
+
getTerminalInfo(continueLastOrder);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}, [load]);
|
|
441
|
+
useEffect(function () {
|
|
442
|
+
var clear;
|
|
443
|
+
if (status === -1) {
|
|
444
|
+
return function () {
|
|
445
|
+
if (clear) {
|
|
446
|
+
clearTimeout(clear);
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
if (status === 0) {
|
|
451
|
+
console.log('开始倒计时...');
|
|
452
|
+
clear = setTimeout(function () {
|
|
453
|
+
dispatch(updateState({
|
|
454
|
+
status: 'fail'
|
|
455
|
+
}));
|
|
456
|
+
dispatch(updateCustom({
|
|
457
|
+
failCustom: {
|
|
458
|
+
status: 'fail',
|
|
459
|
+
fail: locales.getText('page.eftpos-pay.text.transaction.pay.fail.timeout'),
|
|
460
|
+
title: locales.getText('page.eftpos-pay.text.transaction.fail.timeout'),
|
|
461
|
+
warn: null
|
|
462
|
+
}
|
|
463
|
+
}));
|
|
464
|
+
dispatch(updateComponent('FailCustom'));
|
|
465
|
+
}, Minute);
|
|
466
|
+
return function () {
|
|
467
|
+
if (clear) {
|
|
468
|
+
clearTimeout(clear);
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
clear = setTimeout(function () {
|
|
473
|
+
var iClient = iClientRef.current;
|
|
474
|
+
if (!iClient) {
|
|
475
|
+
return;
|
|
476
|
+
}
|
|
477
|
+
console.log('倒计时到了');
|
|
478
|
+
setManually(true);
|
|
479
|
+
// iClient.cancelCurrentTransaction();
|
|
480
|
+
}, Minute);
|
|
481
|
+
return function () {
|
|
482
|
+
if (clear) {
|
|
483
|
+
clearTimeout(clear);
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
}, [status]);
|
|
487
|
+
var onManually = function onManually() {
|
|
488
|
+
dispatch(updateState({
|
|
489
|
+
manual: {
|
|
490
|
+
title: locales.getText('page.eftpos-pay.text.request.title')(mode),
|
|
491
|
+
text: locales.getText('page.eftpos-pay.text.request.text')(mode)
|
|
492
|
+
}
|
|
493
|
+
}));
|
|
494
|
+
dispatch(updateComponent('Manual', true));
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* @title: 取消支付
|
|
499
|
+
* @description:
|
|
500
|
+
* @return {*}
|
|
501
|
+
* @Author: hongbing.wang
|
|
502
|
+
* @Date: 2024-09-13 13:42
|
|
503
|
+
*/
|
|
504
|
+
var onCancel = function onCancel() {
|
|
505
|
+
var iClient = iClientRef.current;
|
|
506
|
+
if (!iClient) {
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
if (status > 0) {
|
|
510
|
+
iClient.cancelCurrentTransaction();
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
if (isCancelRef.current) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
isCancelRef.current = true;
|
|
517
|
+
dispatch(updateState({
|
|
518
|
+
status: 'fail'
|
|
519
|
+
}));
|
|
520
|
+
dispatch(updateCustom({
|
|
521
|
+
failCustom: {
|
|
522
|
+
status: 'fail',
|
|
523
|
+
fail: locales.getText('page.eftpos-pay.text.transaction.fail.cancel'),
|
|
524
|
+
title: locales.getText('page.eftpos-pay.text.transaction.fail.cancel.title'),
|
|
525
|
+
warn: null
|
|
526
|
+
}
|
|
527
|
+
}));
|
|
528
|
+
dispatch(updateComponent('FailCustom'));
|
|
529
|
+
|
|
530
|
+
// iClient.cancelCurrentTransaction();
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
useEffect(function () {
|
|
534
|
+
return function () {
|
|
535
|
+
unloadRef.current = true;
|
|
536
|
+
if (clearRef.current) {
|
|
537
|
+
clearTimeout(clearRef.current);
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
}, []);
|
|
541
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
542
|
+
className: "pisell-lowcode__eft-pay-body"
|
|
543
|
+
}, ((custom === null || custom === void 0 ? void 0 : custom.list) || []).map(function (item) {
|
|
544
|
+
return /*#__PURE__*/React.createElement(Step, {
|
|
545
|
+
key: item.index,
|
|
546
|
+
pedding: item.pedding,
|
|
547
|
+
resolve: item.resolve,
|
|
548
|
+
reject: item.reject,
|
|
549
|
+
status: item.status
|
|
550
|
+
});
|
|
551
|
+
})), isManually ? /*#__PURE__*/React.createElement("div", {
|
|
552
|
+
className: "pisell-lowcode__eft-pay-step-item-btns"
|
|
553
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
554
|
+
block: true,
|
|
555
|
+
className: "pisell-lowcode__eft-pay-step-item-btn",
|
|
556
|
+
onClick: onManually
|
|
557
|
+
}, locales.getText('page.eftpos-pay.text.manual.marking'))) : null, /*#__PURE__*/React.createElement("div", {
|
|
558
|
+
className: "pisell-lowcode__eft-pay-step-item-btns",
|
|
559
|
+
style: {
|
|
560
|
+
flexWrap: 'wrap'
|
|
561
|
+
}
|
|
562
|
+
}, Array.isArray(custom === null || custom === void 0 ? void 0 : custom.btnList) && (custom === null || custom === void 0 ? void 0 : custom.btnList).length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
563
|
+
style: {
|
|
564
|
+
width: '100%',
|
|
565
|
+
display: 'flex',
|
|
566
|
+
gap: '12px'
|
|
567
|
+
}
|
|
568
|
+
}, custom === null || custom === void 0 ? void 0 : custom.btnList) : null, !(payStatus === 'success' || payStatus === 'fail') ? /*#__PURE__*/React.createElement(Button, {
|
|
569
|
+
block: true,
|
|
570
|
+
type: "text",
|
|
571
|
+
disabled: Array.isArray(custom === null || custom === void 0 ? void 0 : custom.btnList) && (custom === null || custom === void 0 ? void 0 : custom.btnList).length > 0,
|
|
572
|
+
className: "pisell-lowcode__eft-pay-step-item-btn",
|
|
573
|
+
onClick: onCancel
|
|
574
|
+
}, locales.getText('page.eftpos-pay.text.manual.cancel')) : null));
|
|
575
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@pos-max-height:var (--pisel-lc-pos-max-height, unset);
|
|
2
|
+
@pos-height:var (--pisel-lc-pos-max-height, unset);
|
|
3
|
+
@pos-width:var (--pisel-lc-pos-width, 600px);
|
|
4
|
+
@pos-padding:var (--pisel-lc-pos-pay-padding, 24px);
|
|
5
|
+
|
|
6
|
+
@pos-terminal-max-height:var (--pisel-lc-pos-max-height, unset);
|
|
7
|
+
@pos-terminal-height:var (--pisel-lc-pos-max-height, unset);
|
|
8
|
+
@pos-terminal-width:var (--pisel-lc-pos-width, 600px);
|
|
9
|
+
@pos-terminal-padding:var (--pisel-lc-pos-pay-padding, 24px);
|