@pisell/private-materials 6.3.29 → 6.3.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +9 -1
- package/build/lowcode/preview.js +144 -144
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +267 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/hooks.js +30 -30
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +4 -1
- package/es/components/booking/components/footer/utils.js +62 -46
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/service/contactInfoMode/index.js +93 -0
- package/es/components/booking/locales.js +9 -3
- package/es/components/booking/model.js +3 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/plus/clientName/index.js +18 -0
- package/es/plus/clientName/index.less +10 -0
- package/es/plus/clientName/type.js +1 -0
- package/es/plus/clientName/utils.js +18 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.js +154 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/pro/Login2.0/AuthModal.d.ts +143 -0
- package/es/pro/Login2.0/AuthModal.js +624 -0
- package/es/pro/Login2.0/Login2.d.ts +61 -0
- package/es/pro/Login2.0/Login2.js +2157 -0
- package/es/pro/Login2.0/Register2.d.ts +65 -0
- package/es/pro/Login2.0/Register2.js +1501 -0
- package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
- package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/es/pro/Login2.0/components/LegalTerms.js +51 -0
- package/es/pro/Login2.0/components/LegalTerms.less +74 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
- package/es/pro/Login2.0/components/PhoneInput.js +414 -0
- package/es/pro/Login2.0/components/PhoneInput.less +148 -0
- package/es/pro/Login2.0/components/phoneValidation.js +228 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/index.js +1 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
- package/es/pro/Login2.0/index.js +8 -0
- package/es/pro/Login2.0/index.less +993 -0
- package/es/pro/Login2.0/locales.js +622 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/Header.js +42 -0
- package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
- package/es/pro/Login2.0/shared/registerFlow.js +171 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/Login2.0/shared/types.js +1 -0
- package/es/pro/Login2.0/steps/CodeInput.js +209 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
- package/es/pro/Login2.0/steps/SetPassword.js +148 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
- package/es/pro/Login2.0/steps/index.js +11 -0
- package/es/pro/Login2.0/steps/steps.less +423 -0
- package/es/pro/Login2.0/types.js +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +151 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/hooks.js +73 -35
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +4 -1
- package/lib/components/booking/components/footer/utils.js +70 -38
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +1 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info2/index.js +5 -4
- package/lib/components/booking/info2/service/contactInfoMode/index.js +104 -0
- package/lib/components/booking/locales.js +9 -3
- package/lib/components/booking/model.js +3 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +13 -0
- package/lib/plus/clientName/index.js +53 -0
- package/lib/plus/clientName/index.less +10 -0
- package/lib/plus/clientName/type.js +17 -0
- package/lib/plus/clientName/utils.js +43 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.js +138 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
- package/lib/pro/Login2.0/AuthModal.js +498 -0
- package/lib/pro/Login2.0/Login2.d.ts +61 -0
- package/lib/pro/Login2.0/Login2.js +1468 -0
- package/lib/pro/Login2.0/Register2.d.ts +65 -0
- package/lib/pro/Login2.0/Register2.js +1062 -0
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
- package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
- package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
- package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
- package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/index.js +29 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
- package/lib/pro/Login2.0/index.js +45 -0
- package/lib/pro/Login2.0/index.less +993 -0
- package/lib/pro/Login2.0/locales.js +646 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/Header.js +81 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
- package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/Login2.0/shared/types.js +17 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
- package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
- package/lib/pro/Login2.0/steps/index.js +60 -0
- package/lib/pro/Login2.0/steps/steps.less +423 -0
- package/lib/pro/Login2.0/types.js +17 -0
- package/lowcode/authmodal/meta.ts +395 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/lowcode/login2/CONFIG.md +447 -0
- package/lowcode/login2/TEST_CONFIG.md +324 -0
- package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
- package/lowcode/login2/meta.ts +560 -0
- package/lowcode/login2/snippets.ts +124 -0
- package/lowcode/register2/meta.ts +562 -0
- package/lowcode/register2/snippets.ts +257 -0
- package/package.json +7 -5
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/hooks.d.ts +0 -106
- package/es/components/appointmentBooking/locales.d.ts +0 -360
- package/es/components/booking/components/footer/utils.d.ts +0 -41
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/main.d.ts +0 -12
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/locales.d.ts +0 -837
- package/es/components/booking/model.d.ts +0 -116
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/index.d.ts +0 -22
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +0 -9
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/ruleSetting/locales.d.ts +0 -48
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
- package/es/plus/productSelect/index.d.ts +0 -32
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/hooks.d.ts +0 -106
- package/lib/components/appointmentBooking/locales.d.ts +0 -360
- package/lib/components/booking/components/footer/utils.d.ts +0 -41
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/main.d.ts +0 -12
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/locales.d.ts +0 -837
- package/lib/components/booking/model.d.ts +0 -116
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/index.d.ts +0 -22
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +0 -9
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/ruleSetting/locales.d.ts +0 -48
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
- package/lib/plus/productSelect/index.d.ts +0 -32
|
@@ -55,6 +55,7 @@ var import_index = require("./index.less");
|
|
|
55
55
|
var import_notes = __toESM(require("./notes"));
|
|
56
56
|
var import_service2 = require("./service2");
|
|
57
57
|
var import_utils3 = require("./service2/utils");
|
|
58
|
+
var import_contactInfoMode = __toESM(require("../info2/service/contactInfoMode"));
|
|
58
59
|
var defaultModules = {
|
|
59
60
|
client: 1,
|
|
60
61
|
date: 1,
|
|
@@ -65,7 +66,7 @@ var defaultModules = {
|
|
|
65
66
|
};
|
|
66
67
|
import_utils.locales.init(import_locales.default, (0, import_locales2.getLocale)());
|
|
67
68
|
var Info = (0, import_model.Provider)((props) => {
|
|
68
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
69
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
69
70
|
const { style, globalState, modules = defaultModules, slot } = props;
|
|
70
71
|
const modal = (0, import_react.useContext)(import_model.Context);
|
|
71
72
|
const context = (0, import_useEngineContext.default)();
|
|
@@ -91,7 +92,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
91
92
|
}
|
|
92
93
|
}, []);
|
|
93
94
|
(0, import_react.useEffect)(() => {
|
|
94
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2,
|
|
95
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2;
|
|
95
96
|
const isFranchisee = (_d2 = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c2.getAppByModal) == null ? void 0 : _d2.call(_c2, "franchisee");
|
|
96
97
|
modal.dispatch({
|
|
97
98
|
type: "setState",
|
|
@@ -100,7 +101,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
100
101
|
...globalState,
|
|
101
102
|
isTerminal: (_g2 = (_f2 = (_e2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.isTerminal) == null ? void 0 : _g2.call(_f2),
|
|
102
103
|
isFranchisee,
|
|
103
|
-
timezone: (
|
|
104
|
+
timezone: (_m2 = (_l2 = (_k2 = (_j2 = (_i2 = (_h2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _h2.utils) == null ? void 0 : _i2.store) == null ? void 0 : _j2.getState()) == null ? void 0 : _k2.global) == null ? void 0 : _l2.globalConfig) == null ? void 0 : _m2.timezone,
|
|
104
105
|
isDayBooking: (globalState == null ? void 0 : globalState.renderType) === "dayBooking"
|
|
105
106
|
}
|
|
106
107
|
});
|
|
@@ -164,7 +165,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
164
165
|
["create-booking-page-info-wrap-create"]: isBookingCreatePageCreateMode && !(0, import_utils3.isTerminalDayBooking)(modal.state)
|
|
165
166
|
})
|
|
166
167
|
},
|
|
167
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, modules.holder && !((
|
|
168
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, ((_m = (_l = (_k = (_j = (_i = modal == null ? void 0 : modal.state) == null ? void 0 : _i.bookingConfig) == null ? void 0 : _j.config) == null ? void 0 : _k.cart_settings_tab) == null ? void 0 : _l.display_contact_info) == null ? void 0 : _m.show_contact_info) === true ? /* @__PURE__ */ import_react.default.createElement(import_contactInfoMode.default, null) : null, modules.holder && !((_n = modal.state) == null ? void 0 : _n.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
168
169
|
import_antd.Skeleton,
|
|
169
170
|
{
|
|
170
171
|
loading: globalState.loading,
|
|
@@ -38,6 +38,11 @@ var { Provider, Context } = (0, import_utils.miniRedux)({
|
|
|
38
38
|
setClient(state, payload) {
|
|
39
39
|
state.setGlobalState({ client: { ...state.client, ...payload } });
|
|
40
40
|
},
|
|
41
|
+
setContactsInfo(state, payload) {
|
|
42
|
+
state.setGlobalState({
|
|
43
|
+
contacts_info: { ...state.contacts_info, ...payload }
|
|
44
|
+
});
|
|
45
|
+
},
|
|
41
46
|
setService(state, payload) {
|
|
42
47
|
let obj = {};
|
|
43
48
|
if (payload.value) {
|
|
@@ -59,6 +59,7 @@ var import_classnames = __toESM(require("classnames"));
|
|
|
59
59
|
var import_useCreateBookingPageHeader = __toESM(require("../hooks/useCreateBookingPageHeader"));
|
|
60
60
|
var import_locales2 = require("../../../utils/locales");
|
|
61
61
|
var import_ahooks = require("ahooks");
|
|
62
|
+
var import_contactInfoMode = __toESM(require("./service/contactInfoMode"));
|
|
62
63
|
var defaultModules = {
|
|
63
64
|
client: 1,
|
|
64
65
|
date: 1,
|
|
@@ -68,7 +69,7 @@ var defaultModules = {
|
|
|
68
69
|
};
|
|
69
70
|
import_utils.locales.init(import_locales.default, (0, import_locales2.getLocale)());
|
|
70
71
|
var Info = (0, import_model.Provider)((props) => {
|
|
71
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
72
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
72
73
|
const { style, globalState, modules = defaultModules, slot } = props;
|
|
73
74
|
const modal = (0, import_react.useContext)(import_model.Context);
|
|
74
75
|
const context = (0, import_useEngineContext.default)();
|
|
@@ -96,7 +97,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
96
97
|
}
|
|
97
98
|
}, []);
|
|
98
99
|
(0, import_react.useMemo)(() => {
|
|
99
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2,
|
|
100
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2;
|
|
100
101
|
const isFranchisee = (_d2 = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c2.getAppByModal) == null ? void 0 : _d2.call(_c2, "franchisee");
|
|
101
102
|
modal.dispatch({
|
|
102
103
|
type: "setState",
|
|
@@ -105,7 +106,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
105
106
|
...globalState,
|
|
106
107
|
isTerminal: (_g2 = (_f2 = (_e2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.isTerminal) == null ? void 0 : _g2.call(_f2),
|
|
107
108
|
isFranchisee,
|
|
108
|
-
timezone: (
|
|
109
|
+
timezone: (_m2 = (_l2 = (_k2 = (_j2 = (_i2 = (_h2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _h2.utils) == null ? void 0 : _i2.store) == null ? void 0 : _j2.getState()) == null ? void 0 : _k2.global) == null ? void 0 : _l2.globalConfig) == null ? void 0 : _m2.timezone
|
|
109
110
|
}
|
|
110
111
|
});
|
|
111
112
|
}, [globalState]);
|
|
@@ -276,7 +277,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
276
277
|
["create-booking-page-info-wrap-create"]: isBookingCreatePageCreateMode
|
|
277
278
|
})
|
|
278
279
|
},
|
|
279
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, modules.holder && !((
|
|
280
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, ((_p = (_o = (_n = (_m = (_l = modal == null ? void 0 : modal.state) == null ? void 0 : _l.bookingConfig) == null ? void 0 : _m.config) == null ? void 0 : _n.cart_settings_tab) == null ? void 0 : _o.display_contact_info) == null ? void 0 : _p.show_contact_info) === true ? /* @__PURE__ */ import_react.default.createElement(import_contactInfoMode.default, null) : null, modules.holder && !((_q = modal.state) == null ? void 0 : _q.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
280
281
|
import_antd.Skeleton,
|
|
281
282
|
{
|
|
282
283
|
loading: globalState.loading,
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/booking/info2/service/contactInfoMode/index.tsx
|
|
30
|
+
var contactInfoMode_exports = {};
|
|
31
|
+
__export(contactInfoMode_exports, {
|
|
32
|
+
default: () => contactInfoMode_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(contactInfoMode_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_contactInfo = __toESM(require("../../../../../plus/contactInfo"));
|
|
38
|
+
var import_model = require("../../../info/model");
|
|
39
|
+
var ContactInfoMode = () => {
|
|
40
|
+
var _a, _b, _c;
|
|
41
|
+
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
42
|
+
console.log("state>>>>>>>>>", state);
|
|
43
|
+
(0, import_react.useEffect)(() => {
|
|
44
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i;
|
|
45
|
+
console.log("state>>>>>>>>>111", (_a2 = state == null ? void 0 : state.contacts_info) == null ? void 0 : _a2.client_id);
|
|
46
|
+
console.log("state>>>>>>>>>222", (_b2 = state.client.value) == null ? void 0 : _b2.id);
|
|
47
|
+
if (((_c2 = state.client.value) == null ? void 0 : _c2.id) != ((_d = state == null ? void 0 : state.contacts_info) == null ? void 0 : _d.client_id)) {
|
|
48
|
+
const contactInfo = (_f = (_e = state.client.value) == null ? void 0 : _e.contacts_info) == null ? void 0 : _f.value;
|
|
49
|
+
if (!contactInfo) {
|
|
50
|
+
const {
|
|
51
|
+
first_name,
|
|
52
|
+
last_name,
|
|
53
|
+
phone,
|
|
54
|
+
country_calling_code,
|
|
55
|
+
country_code,
|
|
56
|
+
email
|
|
57
|
+
} = ((_g = state.client) == null ? void 0 : _g.value) || {};
|
|
58
|
+
dispatch({
|
|
59
|
+
type: "setContactsInfo",
|
|
60
|
+
payload: {
|
|
61
|
+
value: {
|
|
62
|
+
first_name: first_name || "",
|
|
63
|
+
last_name: last_name || "",
|
|
64
|
+
phone: {
|
|
65
|
+
phone: phone || "",
|
|
66
|
+
country_calling_code: country_calling_code || "",
|
|
67
|
+
country_code: country_code || ""
|
|
68
|
+
},
|
|
69
|
+
email: email || ""
|
|
70
|
+
},
|
|
71
|
+
client_id: (_h = state.client.value) == null ? void 0 : _h.id
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
} else {
|
|
75
|
+
dispatch({
|
|
76
|
+
type: "setContactsInfo",
|
|
77
|
+
payload: {
|
|
78
|
+
value: { ...contactInfo || {} },
|
|
79
|
+
client_id: (_i = state.client.value) == null ? void 0 : _i.id
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, [(_a = state.client.value) == null ? void 0 : _a.id, (_b = state == null ? void 0 : state.contacts_info) == null ? void 0 : _b.client_id]);
|
|
85
|
+
const handleSave = (value) => {
|
|
86
|
+
dispatch({
|
|
87
|
+
type: "setContactsInfo",
|
|
88
|
+
payload: { value, edit: true }
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { marginTop: "24px" } }, /* @__PURE__ */ import_react.default.createElement("div", { style: { fontSize: "16px", fontWeight: 500, marginBottom: "8px" } }, import_utils.locales.getText("pisell2.booking.text.contact-info.title")), /* @__PURE__ */ import_react.default.createElement(
|
|
92
|
+
import_contactInfo.default,
|
|
93
|
+
{
|
|
94
|
+
dataSource: ((_c = state.contacts_info) == null ? void 0 : _c.value) || null,
|
|
95
|
+
isShowDelete: false,
|
|
96
|
+
isShowAvatar: false,
|
|
97
|
+
isShowPhone: true,
|
|
98
|
+
isShowEmail: true,
|
|
99
|
+
style: { padding: "14px 0 14px 14px" },
|
|
100
|
+
onSave: handleSave
|
|
101
|
+
}
|
|
102
|
+
));
|
|
103
|
+
};
|
|
104
|
+
var contactInfoMode_default = ContactInfoMode;
|
|
@@ -337,7 +337,9 @@ var locales_default = {
|
|
|
337
337
|
},
|
|
338
338
|
"pisell2.text.quotation.product.change.title": "Notification",
|
|
339
339
|
"pisell2.text.quotation.product.change.describe": "Product updates available: Please refresh the following items to load the latest data.",
|
|
340
|
-
"pisell2.text.form.link.to.another.record.more": "View More"
|
|
340
|
+
"pisell2.text.form.link.to.another.record.more": "View More",
|
|
341
|
+
// 联系信息
|
|
342
|
+
"pisell2.booking.text.contact-info.title": "Contact info"
|
|
341
343
|
},
|
|
342
344
|
"zh-CN": {
|
|
343
345
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -647,7 +649,9 @@ var locales_default = {
|
|
|
647
649
|
},
|
|
648
650
|
"pisell2.text.quotation.product.change.title": "提示",
|
|
649
651
|
"pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
|
|
650
|
-
"pisell2.text.form.link.to.another.record.more": "查看更多"
|
|
652
|
+
"pisell2.text.form.link.to.another.record.more": "查看更多",
|
|
653
|
+
// 联系信息
|
|
654
|
+
"pisell2.booking.text.contact-info.title": "联系信息"
|
|
651
655
|
},
|
|
652
656
|
"zh-HK": {
|
|
653
657
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -957,6 +961,8 @@ var locales_default = {
|
|
|
957
961
|
},
|
|
958
962
|
"pisell2.text.quotation.product.change.title": "提示",
|
|
959
963
|
"pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
|
|
960
|
-
"pisell2.text.form.link.to.another.record.more": "查看更多"
|
|
964
|
+
"pisell2.text.form.link.to.another.record.more": "查看更多",
|
|
965
|
+
// 联系信息
|
|
966
|
+
"pisell2.booking.text.contact-info.title": "聯繫信息"
|
|
961
967
|
}
|
|
962
968
|
};
|
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"stripe" | "
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "stripe" | "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
@@ -94,7 +94,7 @@ var ApplePay = (props, ref) => {
|
|
|
94
94
|
linkElement.href = currentURL;
|
|
95
95
|
const shop_domain = linkElement.hostname;
|
|
96
96
|
const _href = `${config.pay}${(0, import_utils2.formatFranchiseeRoute)(
|
|
97
|
-
`/apple-pay?order_id=${(_g = state.payGroup) == null ? void 0 : _g.order_id}&shop_id=${shopId}&locale=${locale}&shop_domain=${shop_domain}&total_amount=${values.amount}&payment_group_id=${values.payment_group_id}&front_order_uuid=${state.front_order_uuid}`,
|
|
97
|
+
`/apple-pay?order_id=${(_g = state.payGroup) == null ? void 0 : _g.order_id}&shop_id=${shopId}&locale=${locale}&shop_domain=${shop_domain}&total_amount=${values.amount}&payment_group_id=${values.payment_group_id}&front_order_uuid=${state.front_order_uuid}&is_replace_router=1`,
|
|
98
98
|
state.history
|
|
99
99
|
)}`;
|
|
100
100
|
paymentLogger.addLog({
|
|
@@ -107,7 +107,7 @@ var GooglePay = (props, ref) => {
|
|
|
107
107
|
linkElement.href = currentURL;
|
|
108
108
|
const shop_domain = linkElement.hostname;
|
|
109
109
|
const _href = `${config.pay}${(0, import_utils2.formatFranchiseeRoute)(
|
|
110
|
-
`/google-pay?order_id=${(_k = state.payGroup) == null ? void 0 : _k.order_id}&shop_id=${shopId}&locale=${locale}&shop_domain=${shop_domain}&total_amount=${values.amount}&payment_group_id=${values.payment_group_id}&front_order_uuid=${state.front_order_uuid}`,
|
|
110
|
+
`/google-pay?order_id=${(_k = state.payGroup) == null ? void 0 : _k.order_id}&shop_id=${shopId}&locale=${locale}&shop_domain=${shop_domain}&total_amount=${values.amount}&payment_group_id=${values.payment_group_id}&front_order_uuid=${state.front_order_uuid}&is_replace_router=1`,
|
|
111
111
|
state.history
|
|
112
112
|
)}`;
|
|
113
113
|
paymentLogger.addLog({
|
package/lib/index.d.ts
CHANGED
|
@@ -50,3 +50,6 @@ export { default as SaasRegister } from './plus/saasRegister';
|
|
|
50
50
|
export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
|
|
51
51
|
export { default as PinModal } from './components/pinModal';
|
|
52
52
|
export { default as PinVerifyModal } from './components/pinVerifyModal';
|
|
53
|
+
export { default as ContactInfo } from './plus/contactInfo';
|
|
54
|
+
export { default as ContactInfoModal } from './plus/contactInfoModal';
|
|
55
|
+
export { Login2, Register2, AuthModal } from './pro/Login2.0';
|
package/lib/index.js
CHANGED
|
@@ -31,6 +31,7 @@ var src_exports = {};
|
|
|
31
31
|
__export(src_exports, {
|
|
32
32
|
AppointmentBooking: () => import_appointmentBooking.default,
|
|
33
33
|
AppointmentDeposit: () => import_deposit2.default,
|
|
34
|
+
AuthModal: () => import_Login2.AuthModal,
|
|
34
35
|
Booking: () => import_booking.default,
|
|
35
36
|
BookingAddons: () => import_addons.default,
|
|
36
37
|
BookingContacts: () => import_contacts.default,
|
|
@@ -43,6 +44,8 @@ __export(src_exports, {
|
|
|
43
44
|
BookingPayment: () => import_payments.default,
|
|
44
45
|
BookingResources: () => import_resources.default,
|
|
45
46
|
BookingStartTime: () => import_startTime.default,
|
|
47
|
+
ContactInfo: () => import_contactInfo.default,
|
|
48
|
+
ContactInfoModal: () => import_contactInfoModal.default,
|
|
46
49
|
EditBookingModal: () => import_editBookingModal.default,
|
|
47
50
|
Eftpos: () => import_eftpos.default,
|
|
48
51
|
EftposPay: () => import_eftposPay.default,
|
|
@@ -59,10 +62,12 @@ __export(src_exports, {
|
|
|
59
62
|
EventSelectHolder: () => import_selectHolder.default,
|
|
60
63
|
EventTimeResourceSelector: () => import_timeResourceSelector.default,
|
|
61
64
|
Login: () => import_login.default,
|
|
65
|
+
Login2: () => import_Login2.Login2,
|
|
62
66
|
PinModal: () => import_pinModal.default,
|
|
63
67
|
PinVerifyModal: () => import_pinVerifyModal.default,
|
|
64
68
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
|
65
69
|
ProductExtension: () => import_productExtension.default,
|
|
70
|
+
Register2: () => import_Login2.Register2,
|
|
66
71
|
RuleSetting: () => import_ruleSetting.default,
|
|
67
72
|
SaasCreateOrganization: () => import_saasCreateOrganization.default,
|
|
68
73
|
SaasLogin: () => import_saasLogin.default,
|
|
@@ -136,12 +141,16 @@ var import_saasRegister = __toESM(require("./plus/saasRegister"));
|
|
|
136
141
|
var import_saasCreateOrganization = __toESM(require("./plus/saasCreateOrganization"));
|
|
137
142
|
var import_pinModal = __toESM(require("./components/pinModal"));
|
|
138
143
|
var import_pinVerifyModal = __toESM(require("./components/pinVerifyModal"));
|
|
144
|
+
var import_contactInfo = __toESM(require("./plus/contactInfo"));
|
|
145
|
+
var import_contactInfoModal = __toESM(require("./plus/contactInfoModal"));
|
|
146
|
+
var import_Login2 = require("./pro/Login2.0");
|
|
139
147
|
import_dayjs.default.extend(import_weekday.default);
|
|
140
148
|
import_dayjs.default.extend(import_localeData.default);
|
|
141
149
|
// Annotate the CommonJS export names for ESM import in node:
|
|
142
150
|
0 && (module.exports = {
|
|
143
151
|
AppointmentBooking,
|
|
144
152
|
AppointmentDeposit,
|
|
153
|
+
AuthModal,
|
|
145
154
|
Booking,
|
|
146
155
|
BookingAddons,
|
|
147
156
|
BookingContacts,
|
|
@@ -154,6 +163,8 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
154
163
|
BookingPayment,
|
|
155
164
|
BookingResources,
|
|
156
165
|
BookingStartTime,
|
|
166
|
+
ContactInfo,
|
|
167
|
+
ContactInfoModal,
|
|
157
168
|
EditBookingModal,
|
|
158
169
|
Eftpos,
|
|
159
170
|
EftposPay,
|
|
@@ -170,10 +181,12 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
170
181
|
EventSelectHolder,
|
|
171
182
|
EventTimeResourceSelector,
|
|
172
183
|
Login,
|
|
184
|
+
Login2,
|
|
173
185
|
PinModal,
|
|
174
186
|
PinVerifyModal,
|
|
175
187
|
PisellSelectCustomerModal,
|
|
176
188
|
ProductExtension,
|
|
189
|
+
Register2,
|
|
177
190
|
RuleSetting,
|
|
178
191
|
SaasCreateOrganization,
|
|
179
192
|
SaasLogin,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/clientName/index.tsx
|
|
30
|
+
var clientName_exports = {};
|
|
31
|
+
__export(clientName_exports, {
|
|
32
|
+
default: () => clientName_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(clientName_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_index = require("./index.less");
|
|
38
|
+
var import_utils = require("./utils");
|
|
39
|
+
var ClientName = ({ className, dataSource, style }) => {
|
|
40
|
+
const name = (0, import_react.useMemo)(() => {
|
|
41
|
+
return (0, import_utils.getClientName)(dataSource);
|
|
42
|
+
}, [dataSource]);
|
|
43
|
+
if (!dataSource) return null;
|
|
44
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: (0, import_classnames.default)("pisell-client-name", className),
|
|
48
|
+
style: style || {}
|
|
49
|
+
},
|
|
50
|
+
name
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
var clientName_default = ClientName;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/plus/clientName/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|