@pisell/private-materials 3.0.13 → 3.0.14-5.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 +282 -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 +143 -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 +249 -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 +149 -0
- package/es/components/eftposPay/const.js +51 -0
- package/es/components/eftposPay/device.d.ts +23 -0
- package/es/components/eftposPay/device.js +233 -0
- package/es/components/eftposPay/device.less +94 -0
- package/es/components/eftposPay/helper.d.ts +77 -0
- package/es/components/eftposPay/helper.js +219 -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 +282 -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 +581 -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 +214 -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 +140 -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 +194 -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 +149 -0
- package/lib/components/eftposPay/const.js +89 -0
- package/lib/components/eftposPay/device.d.ts +23 -0
- package/lib/components/eftposPay/device.js +193 -0
- package/lib/components/eftposPay/device.less +94 -0
- package/lib/components/eftposPay/helper.d.ts +77 -0
- package/lib/components/eftposPay/helper.js +197 -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 +247 -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 +559 -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 +166 -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,111 @@
|
|
|
1
|
+
export declare type MachineCodeListParams = {
|
|
2
|
+
order_id: number | string;
|
|
3
|
+
available: number;
|
|
4
|
+
prepare_payments: {
|
|
5
|
+
voucher_id: number;
|
|
6
|
+
amount: number;
|
|
7
|
+
tag: string;
|
|
8
|
+
}[];
|
|
9
|
+
filter_prepare_wallet_pass: 1 | 0;
|
|
10
|
+
sale_channel: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type WalletPassDataType = {
|
|
13
|
+
id: number;
|
|
14
|
+
shop_id: number;
|
|
15
|
+
customer_id: number;
|
|
16
|
+
code: string;
|
|
17
|
+
encoded: string;
|
|
18
|
+
status: string;
|
|
19
|
+
cover: string;
|
|
20
|
+
tag: string;
|
|
21
|
+
relation_type: string;
|
|
22
|
+
product_id: number;
|
|
23
|
+
limit_status: string;
|
|
24
|
+
sales_status: number;
|
|
25
|
+
par_value: string;
|
|
26
|
+
used_par_value: string;
|
|
27
|
+
start_date: string;
|
|
28
|
+
expire_date: string;
|
|
29
|
+
end_time: string;
|
|
30
|
+
start_time: string;
|
|
31
|
+
created_at: string;
|
|
32
|
+
product_name: string;
|
|
33
|
+
expire_time: string;
|
|
34
|
+
available_max_par_value: string;
|
|
35
|
+
available_max_amount: string;
|
|
36
|
+
custom_expire_status: number;
|
|
37
|
+
wallet_pass_usage_unit: WalletPassUsageUnit;
|
|
38
|
+
custom_order_deduct_exhausted: number;
|
|
39
|
+
available_product_status: number;
|
|
40
|
+
available_product_ids: any[];
|
|
41
|
+
available_product_type: string;
|
|
42
|
+
available_num: number;
|
|
43
|
+
available_product_title: string;
|
|
44
|
+
unified_available_status: number;
|
|
45
|
+
unified_messages: UnifiedMessages;
|
|
46
|
+
external_card: any[];
|
|
47
|
+
product: Product;
|
|
48
|
+
shop: Shop;
|
|
49
|
+
wallet_pass_usage?: any;
|
|
50
|
+
balance_par_value: string;
|
|
51
|
+
};
|
|
52
|
+
declare type Shop = {
|
|
53
|
+
id: number;
|
|
54
|
+
name: string;
|
|
55
|
+
default_url: string;
|
|
56
|
+
};
|
|
57
|
+
declare type Product = {
|
|
58
|
+
id: number;
|
|
59
|
+
title: string;
|
|
60
|
+
cover: string;
|
|
61
|
+
is_charge_tax: number;
|
|
62
|
+
};
|
|
63
|
+
declare type UnifiedMessages = {
|
|
64
|
+
title: string;
|
|
65
|
+
desc: string;
|
|
66
|
+
alert: string;
|
|
67
|
+
};
|
|
68
|
+
declare type WalletPassUsageUnit = {
|
|
69
|
+
price: number;
|
|
70
|
+
points: number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* 查询支付识别码列表
|
|
74
|
+
*/
|
|
75
|
+
export declare const getMachineCodeList: (params: MachineCodeListParams) => Promise<WalletPassDataType[]>;
|
|
76
|
+
/**
|
|
77
|
+
* 获取推荐的支付识别码
|
|
78
|
+
*/
|
|
79
|
+
export declare const getRecommendMachineCodeList: (order_id: number) => Promise<WalletPassDataType[]>;
|
|
80
|
+
/**
|
|
81
|
+
* 搜索支付识别码
|
|
82
|
+
*/
|
|
83
|
+
export declare const searchMachineCodeList: (params: {
|
|
84
|
+
order_id: number | string;
|
|
85
|
+
code: string;
|
|
86
|
+
sale_channel: string;
|
|
87
|
+
prepare_payments: {
|
|
88
|
+
voucher_id: number;
|
|
89
|
+
amount: number;
|
|
90
|
+
tag: string;
|
|
91
|
+
}[];
|
|
92
|
+
filter_prepare_wallet_pass: 1 | 0;
|
|
93
|
+
}) => Promise<WalletPassDataType[]>;
|
|
94
|
+
/**
|
|
95
|
+
* walletpass支付
|
|
96
|
+
*/
|
|
97
|
+
export declare const walletPassPay: (params: {
|
|
98
|
+
order_id: number | string;
|
|
99
|
+
payment_group_id: number;
|
|
100
|
+
payments: {
|
|
101
|
+
amount: string;
|
|
102
|
+
wallet_pass_use_value: string;
|
|
103
|
+
voucher_id: number;
|
|
104
|
+
tag: string;
|
|
105
|
+
wallet_pass_usage_unit: {
|
|
106
|
+
price: number;
|
|
107
|
+
points: number;
|
|
108
|
+
};
|
|
109
|
+
}[];
|
|
110
|
+
}) => Promise<WalletPassDataType[]>;
|
|
111
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
var _excluded = ["order_id"];
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
6
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
7
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
8
|
+
import { request } from "../../../../../utils";
|
|
9
|
+
/**
|
|
10
|
+
* 查询支付识别码列表
|
|
11
|
+
*/
|
|
12
|
+
export var getMachineCodeList = /*#__PURE__*/function () {
|
|
13
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
14
|
+
var _yield$request$getReq, data;
|
|
15
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16
|
+
while (1) switch (_context.prev = _context.next) {
|
|
17
|
+
case 0:
|
|
18
|
+
_context.next = 2;
|
|
19
|
+
return request.getRequest().post("/h5/machinecode/order/deduction", params);
|
|
20
|
+
case 2:
|
|
21
|
+
_yield$request$getReq = _context.sent;
|
|
22
|
+
data = _yield$request$getReq.data;
|
|
23
|
+
return _context.abrupt("return", data);
|
|
24
|
+
case 5:
|
|
25
|
+
case "end":
|
|
26
|
+
return _context.stop();
|
|
27
|
+
}
|
|
28
|
+
}, _callee);
|
|
29
|
+
}));
|
|
30
|
+
return function getMachineCodeList(_x) {
|
|
31
|
+
return _ref.apply(this, arguments);
|
|
32
|
+
};
|
|
33
|
+
}();
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 获取推荐的支付识别码
|
|
37
|
+
*/
|
|
38
|
+
export var getRecommendMachineCodeList = /*#__PURE__*/function () {
|
|
39
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(order_id) {
|
|
40
|
+
var _yield$request$getReq2, data;
|
|
41
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
42
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
43
|
+
case 0:
|
|
44
|
+
_context2.next = 2;
|
|
45
|
+
return request.getRequest().get("/h5/machinecode/order/deduction/recommend", {
|
|
46
|
+
order_id: order_id
|
|
47
|
+
});
|
|
48
|
+
case 2:
|
|
49
|
+
_yield$request$getReq2 = _context2.sent;
|
|
50
|
+
data = _yield$request$getReq2.data;
|
|
51
|
+
return _context2.abrupt("return", data);
|
|
52
|
+
case 5:
|
|
53
|
+
case "end":
|
|
54
|
+
return _context2.stop();
|
|
55
|
+
}
|
|
56
|
+
}, _callee2);
|
|
57
|
+
}));
|
|
58
|
+
return function getRecommendMachineCodeList(_x2) {
|
|
59
|
+
return _ref2.apply(this, arguments);
|
|
60
|
+
};
|
|
61
|
+
}();
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 搜索支付识别码
|
|
65
|
+
*/
|
|
66
|
+
export var searchMachineCodeList = /*#__PURE__*/function () {
|
|
67
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
68
|
+
var _yield$request$getReq3, data;
|
|
69
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
70
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
71
|
+
case 0:
|
|
72
|
+
_context3.next = 2;
|
|
73
|
+
return request.getRequest().post("/h5/machinecode/order/deduction/search", params);
|
|
74
|
+
case 2:
|
|
75
|
+
_yield$request$getReq3 = _context3.sent;
|
|
76
|
+
data = _yield$request$getReq3.data;
|
|
77
|
+
return _context3.abrupt("return", data);
|
|
78
|
+
case 5:
|
|
79
|
+
case "end":
|
|
80
|
+
return _context3.stop();
|
|
81
|
+
}
|
|
82
|
+
}, _callee3);
|
|
83
|
+
}));
|
|
84
|
+
return function searchMachineCodeList(_x3) {
|
|
85
|
+
return _ref3.apply(this, arguments);
|
|
86
|
+
};
|
|
87
|
+
}();
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* walletpass支付
|
|
91
|
+
*/
|
|
92
|
+
export var walletPassPay = /*#__PURE__*/function () {
|
|
93
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
|
|
94
|
+
var order_id, others, _yield$request$getReq4, data;
|
|
95
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
96
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
97
|
+
case 0:
|
|
98
|
+
order_id = params.order_id, others = _objectWithoutProperties(params, _excluded);
|
|
99
|
+
_context4.next = 3;
|
|
100
|
+
return request.getRequest().post("/h5/pay/order/wallet-pass-pay/".concat(order_id), others);
|
|
101
|
+
case 3:
|
|
102
|
+
_yield$request$getReq4 = _context4.sent;
|
|
103
|
+
data = _yield$request$getReq4.data;
|
|
104
|
+
return _context4.abrupt("return", data);
|
|
105
|
+
case 6:
|
|
106
|
+
case "end":
|
|
107
|
+
return _context4.stop();
|
|
108
|
+
}
|
|
109
|
+
}, _callee4);
|
|
110
|
+
}));
|
|
111
|
+
return function walletPassPay(_x4) {
|
|
112
|
+
return _ref4.apply(this, arguments);
|
|
113
|
+
};
|
|
114
|
+
}();
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { formatDate, locales } from '@pisell/utils';
|
|
2
|
+
import { globalConfig } from '@pisell/materials';
|
|
3
|
+
var voucherTime = function voucherTime(data) {
|
|
4
|
+
var config = globalConfig.getConfig();
|
|
5
|
+
if (data !== null && data !== void 0 && data.expire_date) {
|
|
6
|
+
return formatDate(data === null || data === void 0 ? void 0 : data.expire_date, (config === null || config === void 0 ? void 0 : config.locale) === 'en' ? 'DD/MM/YYYY' : 'YYYY-MM-DD');
|
|
7
|
+
}
|
|
8
|
+
return locales.getText('tocPay.text.walletPassPermanent');
|
|
9
|
+
};
|
|
10
|
+
export var formatMachineCodeServer2CardList = function formatMachineCodeServer2CardList(data) {
|
|
11
|
+
var selectId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
12
|
+
return (data || []).map(function (item) {
|
|
13
|
+
var _item$shop, _item$unified_message, _item$product;
|
|
14
|
+
return {
|
|
15
|
+
id: item.id,
|
|
16
|
+
name: item.product_name,
|
|
17
|
+
storeName: (_item$shop = item.shop) === null || _item$shop === void 0 ? void 0 : _item$shop.name,
|
|
18
|
+
balance: item.balance_par_value,
|
|
19
|
+
redeem: item.available_max_amount,
|
|
20
|
+
showRedeem: selectId.includes(item.id),
|
|
21
|
+
showBalanceSymbol: item.tag !== 'point_card',
|
|
22
|
+
// balanceTitle: item.tag !== 'point_card' ? "" : "",
|
|
23
|
+
// redeemTitle: item.tag !== 'point_card' ? "" : "",
|
|
24
|
+
showDetail: false,
|
|
25
|
+
showQrCode: false,
|
|
26
|
+
code: item.code,
|
|
27
|
+
disabled: !item.unified_available_status,
|
|
28
|
+
disabledReason: (_item$unified_message = item.unified_messages) === null || _item$unified_message === void 0 ? void 0 : _item$unified_message.title,
|
|
29
|
+
cover: (_item$product = item.product) === null || _item$product === void 0 ? void 0 : _item$product.cover,
|
|
30
|
+
qrCode: item.code,
|
|
31
|
+
validDate: voucherTime(item),
|
|
32
|
+
originData: item
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
export var getDataByIds = function getDataByIds(arr, ids) {
|
|
37
|
+
return arr.filter(function (item) {
|
|
38
|
+
return ids.includes(item.id);
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PaymentMethodsRef {
|
|
3
|
+
onPay: (props: any) => void;
|
|
4
|
+
}
|
|
5
|
+
interface PaymentMethodsProps {
|
|
6
|
+
payCallback: (props: any) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<unknown>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,316 @@
|
|
|
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
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); }
|
|
8
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
9
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
|
+
import React, { useImperativeHandle, forwardRef, useRef } from 'react';
|
|
11
|
+
import MWCreditCard from "./MWCreditCard";
|
|
12
|
+
import SuperPayAliPayH5 from "./SuperPayAliPayH5";
|
|
13
|
+
import StripePay from "./StripePay";
|
|
14
|
+
import OfflinePayment from "./OfflinePayment";
|
|
15
|
+
import BankDeposit from "./BankDeposit";
|
|
16
|
+
import SuperPayWxPayH5 from "./SuperPayWxPayH5";
|
|
17
|
+
import CustomPayment from "./CustomPayment";
|
|
18
|
+
import { isCustomPayment } from "../PaymentList/status";
|
|
19
|
+
import CashManual from "./CashManual";
|
|
20
|
+
import GooglePay from "./GooglePay";
|
|
21
|
+
import { removePayGroupFromStorage, syncPayGroupToStorage } from "../payGroup";
|
|
22
|
+
import ApplePay from "./ApplePay";
|
|
23
|
+
import GlobePayAliPayH5 from "./GlobePayAliPayH5";
|
|
24
|
+
import GlobePayPaypalH5 from "./GlobePayPaypalH5";
|
|
25
|
+
import GlobePayWxH5 from "./GlobePayWxH5";
|
|
26
|
+
import GlobePayQrcode from "./GlobePayQrcode";
|
|
27
|
+
import { walletPassPay } from "./WalletPass/serve";
|
|
28
|
+
import { formatWalletPassParams } from "../utils";
|
|
29
|
+
var isOfflinePayment = function isOfflinePayment(type) {
|
|
30
|
+
if (isCustomPayment(type)) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
return ['pisell.bank_deposit', 'pisell.offline_payment', 'pisell.other.cashmanual', 'pisell.custom_bank_transfer'].includes(type);
|
|
34
|
+
};
|
|
35
|
+
var PaymentMethods = function PaymentMethods(props, ref) {
|
|
36
|
+
var MWCreditCardRef = useRef(null);
|
|
37
|
+
var SuperPayAliPayH5Ref = useRef(null);
|
|
38
|
+
var StripePayRef = useRef(null);
|
|
39
|
+
var OfflinePaymentRef = useRef(null);
|
|
40
|
+
var BankDepositRef = useRef(null);
|
|
41
|
+
var SuperPayWxPayH5Ref = useRef(null);
|
|
42
|
+
var CustomPaymentRef = useRef(null);
|
|
43
|
+
var ApplePayRef = useRef(null);
|
|
44
|
+
var GooglePayRef = useRef(null);
|
|
45
|
+
var CashManualRef = useRef(null);
|
|
46
|
+
var GlobePayAliPayH5Ref = useRef(null);
|
|
47
|
+
var GlobePayPaypalH5Ref = useRef(null);
|
|
48
|
+
var GlobePayWxH5Ref = useRef(null);
|
|
49
|
+
var GlobePayQrcodeRef = useRef(null);
|
|
50
|
+
var init = /*#__PURE__*/function () {
|
|
51
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
52
|
+
var _payGroup$walletPass, _payGroup$walletPass$;
|
|
53
|
+
var type, payGroup, waitAmount, cards;
|
|
54
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
55
|
+
while (1) switch (_context.prev = _context.next) {
|
|
56
|
+
case 0:
|
|
57
|
+
type = _ref.type, payGroup = _ref.payGroup;
|
|
58
|
+
waitAmount = (payGroup === null || payGroup === void 0 ? void 0 : payGroup.wait_amount) || 0;
|
|
59
|
+
cards = payGroup === null || payGroup === void 0 ? void 0 : (_payGroup$walletPass = payGroup.walletPass) === null || _payGroup$walletPass === void 0 ? void 0 : (_payGroup$walletPass$ = _payGroup$walletPass.cards) === null || _payGroup$walletPass$ === void 0 ? void 0 : _payGroup$walletPass$.length; // 仅选择钱包 并且当前选择的支付方式是 线下支付|自定义支付|银行转账, 前置支付钱包
|
|
60
|
+
if (!(cards && (waitAmount <= 0 || isOfflinePayment(type)))) {
|
|
61
|
+
_context.next = 13;
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
_context.prev = 4;
|
|
65
|
+
_context.next = 7;
|
|
66
|
+
return walletPassPay(formatWalletPassParams(payGroup));
|
|
67
|
+
case 7:
|
|
68
|
+
// 支付成功后 清空卡片
|
|
69
|
+
syncPayGroupToStorage(_objectSpread(_objectSpread({}, payGroup), {}, {
|
|
70
|
+
walletPass: _objectSpread(_objectSpread({}, payGroup.walletPass), {}, {
|
|
71
|
+
cards: [],
|
|
72
|
+
paid: true
|
|
73
|
+
})
|
|
74
|
+
}));
|
|
75
|
+
_context.next = 13;
|
|
76
|
+
break;
|
|
77
|
+
case 10:
|
|
78
|
+
_context.prev = 10;
|
|
79
|
+
_context.t0 = _context["catch"](4);
|
|
80
|
+
return _context.abrupt("return", props.payCallback({
|
|
81
|
+
key: 'fail'
|
|
82
|
+
}));
|
|
83
|
+
case 13:
|
|
84
|
+
if (!(waitAmount <= 0)) {
|
|
85
|
+
_context.next = 17;
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
// 清空交易组
|
|
89
|
+
removePayGroupFromStorage(payGroup.order_id);
|
|
90
|
+
props.payCallback({
|
|
91
|
+
key: 'success'
|
|
92
|
+
});
|
|
93
|
+
return _context.abrupt("return");
|
|
94
|
+
case 17:
|
|
95
|
+
_context.next = 19;
|
|
96
|
+
return onPayByType({
|
|
97
|
+
type: type,
|
|
98
|
+
payGroup: payGroup
|
|
99
|
+
});
|
|
100
|
+
case 19:
|
|
101
|
+
case "end":
|
|
102
|
+
return _context.stop();
|
|
103
|
+
}
|
|
104
|
+
}, _callee, null, [[4, 10]]);
|
|
105
|
+
}));
|
|
106
|
+
return function init(_x) {
|
|
107
|
+
return _ref2.apply(this, arguments);
|
|
108
|
+
};
|
|
109
|
+
}();
|
|
110
|
+
var onPayByType = /*#__PURE__*/function () {
|
|
111
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
112
|
+
var type, payGroup, _ApplePayRef$current, _GooglePayRef$current, _MWCreditCardRef$curr, _SuperPayAliPayH5Ref$, _SuperPayWxPayH5Ref$c, _StripePayRef$current, _OfflinePaymentRef$cu, _BankDepositRef$curre, _CashManualRef$curren, _GlobePayAliPayH5Ref$, _GlobePayPaypalH5Ref$, _GlobePayWxH5Ref$curr, _GlobePayQrcodeRef$cu, _CustomPaymentRef$cur;
|
|
113
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
114
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
115
|
+
case 0:
|
|
116
|
+
type = _ref3.type, payGroup = _ref3.payGroup;
|
|
117
|
+
console.log(type, payGroup);
|
|
118
|
+
|
|
119
|
+
// 苹果支付
|
|
120
|
+
if (!(type === 'mw.apple')) {
|
|
121
|
+
_context2.next = 6;
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
_context2.next = 5;
|
|
125
|
+
return (_ApplePayRef$current = ApplePayRef.current) === null || _ApplePayRef$current === void 0 ? void 0 : _ApplePayRef$current.init({
|
|
126
|
+
payGroup: payGroup
|
|
127
|
+
});
|
|
128
|
+
case 5:
|
|
129
|
+
return _context2.abrupt("return");
|
|
130
|
+
case 6:
|
|
131
|
+
if (!(type === 'mw.google')) {
|
|
132
|
+
_context2.next = 10;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
_context2.next = 9;
|
|
136
|
+
return (_GooglePayRef$current = GooglePayRef.current) === null || _GooglePayRef$current === void 0 ? void 0 : _GooglePayRef$current.init({
|
|
137
|
+
payGroup: payGroup
|
|
138
|
+
});
|
|
139
|
+
case 9:
|
|
140
|
+
return _context2.abrupt("return");
|
|
141
|
+
case 10:
|
|
142
|
+
if (!(type === 'mw.credit_card')) {
|
|
143
|
+
_context2.next = 13;
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
(_MWCreditCardRef$curr = MWCreditCardRef.current) === null || _MWCreditCardRef$curr === void 0 ? void 0 : _MWCreditCardRef$curr.init({
|
|
147
|
+
payGroup: payGroup
|
|
148
|
+
});
|
|
149
|
+
return _context2.abrupt("return");
|
|
150
|
+
case 13:
|
|
151
|
+
if (!(type === 'superpay.alipay.h5')) {
|
|
152
|
+
_context2.next = 17;
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
_context2.next = 16;
|
|
156
|
+
return (_SuperPayAliPayH5Ref$ = SuperPayAliPayH5Ref.current) === null || _SuperPayAliPayH5Ref$ === void 0 ? void 0 : _SuperPayAliPayH5Ref$.init({
|
|
157
|
+
payGroup: payGroup
|
|
158
|
+
});
|
|
159
|
+
case 16:
|
|
160
|
+
return _context2.abrupt("return");
|
|
161
|
+
case 17:
|
|
162
|
+
if (!(type === 'superpay.wechat.h5')) {
|
|
163
|
+
_context2.next = 21;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
_context2.next = 20;
|
|
167
|
+
return (_SuperPayWxPayH5Ref$c = SuperPayWxPayH5Ref.current) === null || _SuperPayWxPayH5Ref$c === void 0 ? void 0 : _SuperPayWxPayH5Ref$c.init({
|
|
168
|
+
payGroup: payGroup
|
|
169
|
+
});
|
|
170
|
+
case 20:
|
|
171
|
+
return _context2.abrupt("return");
|
|
172
|
+
case 21:
|
|
173
|
+
if (!(type === 'stripe')) {
|
|
174
|
+
_context2.next = 24;
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
(_StripePayRef$current = StripePayRef.current) === null || _StripePayRef$current === void 0 ? void 0 : _StripePayRef$current.init({
|
|
178
|
+
payGroup: payGroup
|
|
179
|
+
});
|
|
180
|
+
return _context2.abrupt("return");
|
|
181
|
+
case 24:
|
|
182
|
+
if (!(type === 'pisell.offline_payment')) {
|
|
183
|
+
_context2.next = 28;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
_context2.next = 27;
|
|
187
|
+
return (_OfflinePaymentRef$cu = OfflinePaymentRef.current) === null || _OfflinePaymentRef$cu === void 0 ? void 0 : _OfflinePaymentRef$cu.init({
|
|
188
|
+
payGroup: payGroup
|
|
189
|
+
});
|
|
190
|
+
case 27:
|
|
191
|
+
return _context2.abrupt("return");
|
|
192
|
+
case 28:
|
|
193
|
+
if (!(type === 'pisell.bank_deposit')) {
|
|
194
|
+
_context2.next = 32;
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
_context2.next = 31;
|
|
198
|
+
return (_BankDepositRef$curre = BankDepositRef.current) === null || _BankDepositRef$curre === void 0 ? void 0 : _BankDepositRef$curre.init({
|
|
199
|
+
payGroup: payGroup
|
|
200
|
+
});
|
|
201
|
+
case 31:
|
|
202
|
+
return _context2.abrupt("return");
|
|
203
|
+
case 32:
|
|
204
|
+
if (!(type === 'pisell.other.cashmanual')) {
|
|
205
|
+
_context2.next = 36;
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
_context2.next = 35;
|
|
209
|
+
return (_CashManualRef$curren = CashManualRef.current) === null || _CashManualRef$curren === void 0 ? void 0 : _CashManualRef$curren.init({
|
|
210
|
+
payGroup: payGroup
|
|
211
|
+
});
|
|
212
|
+
case 35:
|
|
213
|
+
return _context2.abrupt("return");
|
|
214
|
+
case 36:
|
|
215
|
+
if (!(type === 'globepay.alipay.h5')) {
|
|
216
|
+
_context2.next = 40;
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
_context2.next = 39;
|
|
220
|
+
return (_GlobePayAliPayH5Ref$ = GlobePayAliPayH5Ref.current) === null || _GlobePayAliPayH5Ref$ === void 0 ? void 0 : _GlobePayAliPayH5Ref$.init({
|
|
221
|
+
payGroup: payGroup
|
|
222
|
+
});
|
|
223
|
+
case 39:
|
|
224
|
+
return _context2.abrupt("return");
|
|
225
|
+
case 40:
|
|
226
|
+
if (!(type === 'globepay.paypal.h5')) {
|
|
227
|
+
_context2.next = 44;
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
_context2.next = 43;
|
|
231
|
+
return (_GlobePayPaypalH5Ref$ = GlobePayPaypalH5Ref.current) === null || _GlobePayPaypalH5Ref$ === void 0 ? void 0 : _GlobePayPaypalH5Ref$.init({
|
|
232
|
+
payGroup: payGroup
|
|
233
|
+
});
|
|
234
|
+
case 43:
|
|
235
|
+
return _context2.abrupt("return");
|
|
236
|
+
case 44:
|
|
237
|
+
if (!(type === 'globepay.wechat.jsapi')) {
|
|
238
|
+
_context2.next = 48;
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
_context2.next = 47;
|
|
242
|
+
return (_GlobePayWxH5Ref$curr = GlobePayWxH5Ref.current) === null || _GlobePayWxH5Ref$curr === void 0 ? void 0 : _GlobePayWxH5Ref$curr.init({
|
|
243
|
+
payGroup: payGroup
|
|
244
|
+
});
|
|
245
|
+
case 47:
|
|
246
|
+
return _context2.abrupt("return");
|
|
247
|
+
case 48:
|
|
248
|
+
if (!(type === 'globepay.alipay.qrcode' || type === 'globepay.wechat.qrcode')) {
|
|
249
|
+
_context2.next = 52;
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
_context2.next = 51;
|
|
253
|
+
return (_GlobePayQrcodeRef$cu = GlobePayQrcodeRef.current) === null || _GlobePayQrcodeRef$cu === void 0 ? void 0 : _GlobePayQrcodeRef$cu.init({
|
|
254
|
+
payGroup: payGroup
|
|
255
|
+
});
|
|
256
|
+
case 51:
|
|
257
|
+
return _context2.abrupt("return");
|
|
258
|
+
case 52:
|
|
259
|
+
if (!isCustomPayment(type)) {
|
|
260
|
+
_context2.next = 56;
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
_context2.next = 55;
|
|
264
|
+
return (_CustomPaymentRef$cur = CustomPaymentRef.current) === null || _CustomPaymentRef$cur === void 0 ? void 0 : _CustomPaymentRef$cur.init({
|
|
265
|
+
payGroup: payGroup
|
|
266
|
+
});
|
|
267
|
+
case 55:
|
|
268
|
+
return _context2.abrupt("return");
|
|
269
|
+
case 56:
|
|
270
|
+
case "end":
|
|
271
|
+
return _context2.stop();
|
|
272
|
+
}
|
|
273
|
+
}, _callee2);
|
|
274
|
+
}));
|
|
275
|
+
return function onPayByType(_x2) {
|
|
276
|
+
return _ref4.apply(this, arguments);
|
|
277
|
+
};
|
|
278
|
+
}();
|
|
279
|
+
useImperativeHandle(ref, function () {
|
|
280
|
+
return {
|
|
281
|
+
onPay: init
|
|
282
|
+
};
|
|
283
|
+
});
|
|
284
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
285
|
+
className: ""
|
|
286
|
+
}, /*#__PURE__*/React.createElement(MWCreditCard, {
|
|
287
|
+
ref: MWCreditCardRef
|
|
288
|
+
}), /*#__PURE__*/React.createElement(SuperPayAliPayH5, {
|
|
289
|
+
ref: SuperPayAliPayH5Ref
|
|
290
|
+
}), /*#__PURE__*/React.createElement(StripePay, {
|
|
291
|
+
ref: StripePayRef
|
|
292
|
+
}), /*#__PURE__*/React.createElement(OfflinePayment, {
|
|
293
|
+
ref: OfflinePaymentRef
|
|
294
|
+
}), /*#__PURE__*/React.createElement(BankDeposit, {
|
|
295
|
+
ref: BankDepositRef
|
|
296
|
+
}), /*#__PURE__*/React.createElement(SuperPayWxPayH5, {
|
|
297
|
+
ref: SuperPayWxPayH5Ref
|
|
298
|
+
}), /*#__PURE__*/React.createElement(CustomPayment, {
|
|
299
|
+
ref: CustomPaymentRef
|
|
300
|
+
}), /*#__PURE__*/React.createElement(ApplePay, {
|
|
301
|
+
ref: ApplePayRef
|
|
302
|
+
}), /*#__PURE__*/React.createElement(GooglePay, {
|
|
303
|
+
ref: GooglePayRef
|
|
304
|
+
}), /*#__PURE__*/React.createElement(CashManual, {
|
|
305
|
+
ref: CashManualRef
|
|
306
|
+
}), /*#__PURE__*/React.createElement(GlobePayAliPayH5, {
|
|
307
|
+
ref: GlobePayAliPayH5Ref
|
|
308
|
+
}), /*#__PURE__*/React.createElement(GlobePayWxH5, {
|
|
309
|
+
ref: GlobePayWxH5Ref
|
|
310
|
+
}), /*#__PURE__*/React.createElement(GlobePayPaypalH5, {
|
|
311
|
+
ref: GlobePayPaypalH5Ref
|
|
312
|
+
}), /*#__PURE__*/React.createElement(GlobePayQrcode, {
|
|
313
|
+
ref: GlobePayQrcodeRef
|
|
314
|
+
}));
|
|
315
|
+
};
|
|
316
|
+
export default /*#__PURE__*/forwardRef(PaymentMethods);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WalletPassDataType } from '../PaymentMethods/WalletPass/serve';
|
|
3
|
+
import { PayGroup } from '../model';
|
|
4
|
+
import './index.less';
|
|
5
|
+
export interface WalletPassBlockProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
payGroup?: PayGroup;
|
|
7
|
+
onWalletPassChange?: (walletPass: {
|
|
8
|
+
cards: WalletPassDataType[];
|
|
9
|
+
amount: number;
|
|
10
|
+
}) => void;
|
|
11
|
+
customer_id?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const WalletPassBlock: (props: WalletPassBlockProps) => React.JSX.Element;
|
|
14
|
+
export default WalletPassBlock;
|