@pisell/private-materials 6.4.62 → 6.4.64

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.
Files changed (239) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +145 -145
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  13. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
  14. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +267 -76
  16. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  17. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  19. package/es/components/appointmentBooking/hooks.js +30 -30
  20. package/es/components/appointmentBooking/locales.d.ts +3 -0
  21. package/es/components/appointmentBooking/locales.js +9 -6
  22. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  23. package/es/components/booking/components/footer/index.js +4 -1
  24. package/es/components/booking/components/footer/utils.js +80 -77
  25. package/es/components/booking/forms/single/index.d.ts +1 -0
  26. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  27. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +2 -2
  28. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  29. package/es/components/booking/info/main.js +3 -2
  30. package/es/components/booking/info/model.js +5 -0
  31. package/es/components/booking/info/service/Lists.d.ts +0 -1
  32. package/es/components/booking/info2/cartClientCard/index.js +30 -1
  33. package/es/components/booking/info2/index.js +3 -2
  34. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  35. package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
  36. package/es/components/booking/locales.d.ts +3 -0
  37. package/es/components/booking/locales.js +9 -3
  38. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  39. package/es/components/booking/model.d.ts +4 -0
  40. package/es/components/booking/model.js +3 -0
  41. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  42. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  43. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  44. package/es/components/eftpos/form/index.d.ts +1 -0
  45. package/es/components/eftpos/hooks.d.ts +1 -0
  46. package/es/components/eftpos/index.d.ts +1 -0
  47. package/es/components/eftpos/pos.d.ts +1 -0
  48. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  49. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  50. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  51. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  52. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  53. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  54. package/es/components/eftposPay/hooks.d.ts +1 -1
  55. package/es/components/eftposPay/pay.d.ts +1 -0
  56. package/es/components/eftposPay/store/index.d.ts +2 -2
  57. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  60. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  65. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  66. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  67. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  68. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  69. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  70. package/es/components/list/styles/header.less +1 -0
  71. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  72. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  73. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  74. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  75. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  76. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  77. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  78. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  79. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  80. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  81. package/es/components/schedules/resources/index.d.ts +1 -0
  82. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  83. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  84. package/es/components/schedules/schedules/index.d.ts +1 -0
  85. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  86. package/es/components/ticketBooking/components/menuBar/index.js +63 -5
  87. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  88. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +1 -0
  89. package/es/components/ticketBooking/index.js +1 -0
  90. package/es/index.d.ts +2 -0
  91. package/es/index.js +3 -1
  92. package/es/plus/clientCard/locales.js +3 -3
  93. package/es/plus/clinetSearch/index.js +28 -30
  94. package/es/plus/clinetSearch/locales.d.ts +3 -0
  95. package/es/plus/clinetSearch/locales.js +7 -4
  96. package/es/plus/clinetSearch/types.d.ts +12 -0
  97. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  98. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  99. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  100. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  101. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  102. package/es/plus/contactInfo/index.d.ts +6 -0
  103. package/es/plus/contactInfo/index.js +198 -0
  104. package/es/plus/contactInfo/index.less +621 -0
  105. package/es/plus/contactInfo/locales.d.ts +15 -0
  106. package/es/plus/contactInfo/locales.js +14 -0
  107. package/es/plus/contactInfo/types.d.ts +91 -0
  108. package/es/plus/contactInfo/types.js +1 -0
  109. package/es/plus/contactInfo/utils.d.ts +7 -0
  110. package/es/plus/contactInfo/utils.js +50 -0
  111. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  112. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  113. package/es/plus/contactInfoModal/index.d.ts +40 -0
  114. package/es/plus/contactInfoModal/index.js +154 -0
  115. package/es/plus/contactInfoModal/index.less +19 -0
  116. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  117. package/es/plus/contactInfoModal/locales.js +65 -0
  118. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  119. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  120. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  121. package/es/pro/comprehensiveSearch/locales.js +1 -1
  122. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  123. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  124. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
  125. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  126. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +151 -13
  127. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  128. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  129. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  130. package/lib/components/appointmentBooking/hooks.js +73 -35
  131. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  132. package/lib/components/appointmentBooking/locales.js +6 -3
  133. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  134. package/lib/components/booking/components/footer/index.js +4 -1
  135. package/lib/components/booking/components/footer/utils.js +93 -67
  136. package/lib/components/booking/forms/single/index.d.ts +1 -0
  137. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  138. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +1 -1
  139. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  140. package/lib/components/booking/info/main.js +5 -4
  141. package/lib/components/booking/info/model.js +5 -0
  142. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  143. package/lib/components/booking/info2/cartClientCard/index.js +25 -0
  144. package/lib/components/booking/info2/index.js +11 -5
  145. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  146. package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
  147. package/lib/components/booking/locales.d.ts +3 -0
  148. package/lib/components/booking/locales.js +9 -3
  149. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  150. package/lib/components/booking/model.d.ts +4 -0
  151. package/lib/components/booking/model.js +3 -0
  152. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  153. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  154. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  155. package/lib/components/eftpos/form/index.d.ts +1 -0
  156. package/lib/components/eftpos/hooks.d.ts +1 -0
  157. package/lib/components/eftpos/index.d.ts +1 -0
  158. package/lib/components/eftpos/pos.d.ts +1 -0
  159. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  160. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  161. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  162. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  163. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  164. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  165. package/lib/components/eftposPay/hooks.d.ts +1 -1
  166. package/lib/components/eftposPay/pay.d.ts +1 -0
  167. package/lib/components/eftposPay/store/index.d.ts +2 -2
  168. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  169. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  170. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  171. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  172. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  173. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  174. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  175. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  176. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  177. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  178. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  179. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  180. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  181. package/lib/components/list/styles/header.less +1 -0
  182. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  183. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  184. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  185. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  186. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  187. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  188. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  189. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  190. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  191. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  192. package/lib/components/schedules/resources/index.d.ts +1 -0
  193. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  194. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  195. package/lib/components/schedules/schedules/index.d.ts +1 -0
  196. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  197. package/lib/components/ticketBooking/components/menuBar/index.js +21 -2
  198. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  199. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +1 -0
  200. package/lib/components/ticketBooking/index.js +1 -0
  201. package/lib/index.d.ts +2 -0
  202. package/lib/index.js +6 -0
  203. package/lib/plus/clientCard/locales.js +3 -3
  204. package/lib/plus/clinetSearch/index.js +17 -8
  205. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  206. package/lib/plus/clinetSearch/locales.js +7 -4
  207. package/lib/plus/clinetSearch/types.d.ts +12 -0
  208. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  209. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  210. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  211. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  212. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  213. package/lib/plus/contactInfo/index.d.ts +6 -0
  214. package/lib/plus/contactInfo/index.js +226 -0
  215. package/lib/plus/contactInfo/index.less +621 -0
  216. package/lib/plus/contactInfo/locales.d.ts +15 -0
  217. package/lib/plus/contactInfo/locales.js +38 -0
  218. package/lib/plus/contactInfo/types.d.ts +91 -0
  219. package/lib/plus/contactInfo/types.js +17 -0
  220. package/lib/plus/contactInfo/utils.d.ts +7 -0
  221. package/lib/plus/contactInfo/utils.js +64 -0
  222. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  223. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  224. package/lib/plus/contactInfoModal/index.d.ts +40 -0
  225. package/lib/plus/contactInfoModal/index.js +138 -0
  226. package/lib/plus/contactInfoModal/index.less +19 -0
  227. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  228. package/lib/plus/contactInfoModal/locales.js +89 -0
  229. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  230. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  231. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  232. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  233. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  234. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  235. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  236. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  237. package/lowcode/contact-info/meta.ts +199 -0
  238. package/lowcode/contact-info-modal/meta.ts +98 -0
  239. package/package.json +5 -3
@@ -0,0 +1,111 @@
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(
92
+ "div",
93
+ {
94
+ className: "pisell-lowcode__booking-contact-info-title",
95
+ style: { fontSize: "16px", fontWeight: 500, marginBottom: "8px" }
96
+ },
97
+ import_utils.locales.getText("pisell2.booking.text.contact-info.title")
98
+ ), /* @__PURE__ */ import_react.default.createElement(
99
+ import_contactInfo.default,
100
+ {
101
+ dataSource: ((_c = state.contacts_info) == null ? void 0 : _c.value) || null,
102
+ isShowDelete: false,
103
+ isShowAvatar: false,
104
+ isShowPhone: true,
105
+ isShowEmail: true,
106
+ style: { padding: "14px 0 14px 14px" },
107
+ onSave: handleSave
108
+ }
109
+ ));
110
+ };
111
+ var contactInfoMode_default = ContactInfoMode;
@@ -302,6 +302,7 @@ declare const _default: {
302
302
  'pisell2.text.quotation.product.change.describe': string;
303
303
  'pisell2.booking.notes.placeholder': string;
304
304
  'pisell2.text.form.link.to.another.record.more': string;
305
+ 'pisell2.booking.text.contact-info.title': string;
305
306
  };
306
307
  'zh-CN': {
307
308
  'pisell2.text.refunded-amount': string;
@@ -606,6 +607,7 @@ declare const _default: {
606
607
  'pisell2.text.quotation.product.change.describe': string;
607
608
  'pisell2.booking.notes.placeholder': string;
608
609
  'pisell2.text.form.link.to.another.record.more': string;
610
+ 'pisell2.booking.text.contact-info.title': string;
609
611
  };
610
612
  'zh-HK': {
611
613
  'pisell2.text.refunded-amount': string;
@@ -910,6 +912,7 @@ declare const _default: {
910
912
  'pisell2.text.quotation.product.change.describe': string;
911
913
  'pisell2.booking.notes.placeholder': string;
912
914
  'pisell2.text.form.link.to.another.record.more': string;
915
+ 'pisell2.booking.text.contact-info.title': string;
913
916
  };
914
917
  };
915
918
  export default _default;
@@ -369,7 +369,9 @@ var locales_default = {
369
369
  "pisell2.text.quotation.product.change.describe": "Product updates available: Please refresh the following items to load the latest data.",
370
370
  // Notes
371
371
  "pisell2.booking.notes.placeholder": "Enter a note...",
372
- "pisell2.text.form.link.to.another.record.more": "View More"
372
+ "pisell2.text.form.link.to.another.record.more": "View More",
373
+ // 联系信息
374
+ "pisell2.booking.text.contact-info.title": "Contact info"
373
375
  },
374
376
  "zh-CN": {
375
377
  "pisell2.text.refunded-amount": "已退金额",
@@ -711,7 +713,9 @@ var locales_default = {
711
713
  "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
712
714
  // Notes
713
715
  "pisell2.booking.notes.placeholder": "输入备注...",
714
- "pisell2.text.form.link.to.another.record.more": "查看更多"
716
+ "pisell2.text.form.link.to.another.record.more": "查看更多",
717
+ // 联系信息
718
+ "pisell2.booking.text.contact-info.title": "联系信息"
715
719
  },
716
720
  "zh-HK": {
717
721
  "pisell2.text.refunded-amount": "已退金額",
@@ -1053,6 +1057,8 @@ var locales_default = {
1053
1057
  "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
1054
1058
  // Notes
1055
1059
  "pisell2.booking.notes.placeholder": "輸入備註...",
1056
- "pisell2.text.form.link.to.another.record.more": "查看更多"
1060
+ "pisell2.text.form.link.to.another.record.more": "查看更多",
1061
+ // 联系信息
1062
+ "pisell2.booking.text.contact-info.title": "聯繫信息"
1057
1063
  }
1058
1064
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ContactType = {
3
4
  country_calling_code: string;
@@ -26,6 +26,10 @@ export interface FormState {
26
26
  };
27
27
  edit: boolean;
28
28
  };
29
+ contacts_info: {
30
+ edit: boolean;
31
+ value: any;
32
+ };
29
33
  date: {
30
34
  value: any;
31
35
  end_date: any;
@@ -57,6 +57,9 @@ var apis = {
57
57
  },
58
58
  getFormData: () => {
59
59
  return [];
60
+ },
61
+ getContactsInfo: () => {
62
+ return null;
60
63
  }
61
64
  };
62
65
  var walkInData = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface IScanResult {
3
4
  status: 'success' | 'failed';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface DiscountWalletProps {
3
4
  isCardMode: boolean;
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any;
20
+ expiredWalletIds: any[];
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos, DeviceStatus } from './const';
2
3
  import './index.less';
3
4
  interface PosProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DeviceProp } from "./const";
2
3
  interface PosProps {
3
4
  eftposName: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 断网(客户端)提示页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 取消签名确认页
@@ -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" | "tyro" | "windcave" | "payo" | "linkly">;
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
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -297,8 +297,8 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
+ action?: "pay" | "amount" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: () => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Event: () => JSX.Element;
3
4
  export default Event;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: () => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Information: () => JSX.Element;
3
4
  export default Information;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resource: () => JSX.Element;
3
4
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderModal: (props: any) => JSX.Element;
2
3
  export default SelectHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingOptions: (props: {
2
3
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
3
4
  }) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Resource: (props: any) => JSX.Element;
2
3
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Schedule: () => JSX.Element;
2
3
  export default Schedule;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type Item = any;
3
4
  interface ProductItemProps {
@@ -15,6 +15,7 @@
15
15
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
16
16
  /* 平滑过渡效果 */
17
17
  transition: box-shadow 0.2s ease, backdrop-filter 0.2s ease, background 0.2s ease;
18
+ overflow-y: hidden;
18
19
 
19
20
  /* 当sticky生效时的增强视觉效果 */
20
21
  &::after {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ToBPayCache: (props: {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Payment } from '../../types';
2
3
  import './index.less';
3
4
  declare const ConfirmedPayment: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddClientProps {
3
4
  onChange: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type BoolConfigVal = 0 | 1;
3
4
  export interface ProductCardConfig {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from 'antd';
2
3
  import { ScheduleItem } from '../../type';
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const MaxParticipantsModule: ({ form, value, onChange, useSchedule, isAutoChange, onData, }: {
3
4
  form: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resources: () => JSX.Element;
3
4
  export default Resources;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const RelationProduct: ({ value, onChange, }: {
3
4
  value?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { DrawerProps } from "antd";
2
3
  import { ScheduleItem } from "../../type";
3
4
  import "./index.less";
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SchedulesConnect: () => JSX.Element;
2
3
  export default SchedulesConnect;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface MenuBarProps {
4
3
  activeNavKey?: string;
@@ -39,20 +39,39 @@ var import_antd = require("antd");
39
39
  var import_icons = require("@ant-design/icons");
40
40
  var import_utils = require("@pisell/utils");
41
41
  var import_materials = require("@pisell/materials");
42
+ var import_serve = require("../../serve");
42
43
  var index = (props) => {
43
44
  const { activeNavKey = "ticket", onNavChange } = props;
44
45
  const status = (0, import_useNetworkStatus.useNetworkStatus)();
46
+ const [showFoodMenu, setShowFoodMenu] = (0, import_react.useState)(false);
47
+ (0, import_react.useEffect)(() => {
48
+ const checkFoodConfig = async () => {
49
+ try {
50
+ const data = await (0, import_serve.getBookingConfig)({
51
+ item_type: "appointment_booking",
52
+ sub_type: "food",
53
+ source_type: "pos"
54
+ });
55
+ if (data) {
56
+ setShowFoodMenu(true);
57
+ }
58
+ } catch (error) {
59
+ console.error("获取 food 配置失败:", error);
60
+ }
61
+ };
62
+ checkFoodConfig();
63
+ }, []);
45
64
  const navItems = [
46
65
  {
47
66
  key: "ticket",
48
67
  icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-ticket", style: { fontSize: 32 } }),
49
68
  label: ""
50
69
  },
51
- {
70
+ ...showFoodMenu ? [{
52
71
  key: "food",
53
72
  label: "",
54
73
  icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-food", style: { fontSize: 32 } })
55
- }
74
+ }] : []
56
75
  ];
57
76
  const items = [
58
77
  {
@@ -36,7 +36,8 @@
36
36
  .booking-info-create-new,
37
37
  .pisell-lowcode__booking-field-title,
38
38
  .pisell-lowcode__shopping-cart-empty,
39
- .pisell-lowcode__booking-service-clear-btn {
39
+ .pisell-lowcode__booking-service-clear-btn,
40
+ .pisell-lowcode__booking-contact-info-title {
40
41
  color: #ffffff;
41
42
  }
42
43
  }
@@ -29,6 +29,7 @@ var useShopDiscountModule = () => {
29
29
  const pisellOS = (0, import_useEngineContext.usePisellOS)();
30
30
  const osKey = (0, import_OsKeyContext.useOsKey)();
31
31
  const moduleKey = (0, import_utils.getShopDiscountKey)(osKey || "ticket");
32
+ console.log(pisellOS, pisellOS, moduleKey, "pisellOS");
32
33
  return pisellOS.getModule(moduleKey);
33
34
  };
34
35
  // Annotate the CommonJS export names for ESM import in node:
@@ -250,6 +250,7 @@ var ticketBooking_default = (props) => {
250
250
  });
251
251
  storeRef.current = store;
252
252
  }, [bookingConfigParams, productExtensionType]);
253
+ console.log(osKey, pisellos, "osKeyosKey");
253
254
  (0, import_react.useMemo)(() => {
254
255
  if (BookingTicket) {
255
256
  pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket((0, import_utils3.getBookingTicketKey)(osKey)), {
package/lib/index.d.ts CHANGED
@@ -63,3 +63,5 @@ export { default as SkuCard } from './plus/productSelect/ProductCard/SkuCard';
63
63
  export { default as PinModal } from './components/pinModal';
64
64
  export { default as PinVerifyModal } from './components/pinVerifyModal';
65
65
  export { ResponsiveList as SkuList } from './components/list';
66
+ export { default as ContactInfo } from './plus/contactInfo';
67
+ export { default as ContactInfoModal } from './plus/contactInfoModal';
package/lib/index.js CHANGED
@@ -46,6 +46,8 @@ __export(src_exports, {
46
46
  ClientCard: () => import_clientCard.default,
47
47
  ClientSearch: () => import_clinetSearch.default,
48
48
  ComprehensiveSearch: () => import_comprehensiveSearch.default,
49
+ ContactInfo: () => import_contactInfo.default,
50
+ ContactInfoModal: () => import_contactInfoModal.default,
49
51
  EditBookingModal: () => import_editBookingModal.default,
50
52
  Eftpos: () => import_eftpos.default,
51
53
  EftposPay: () => import_eftposPay.default,
@@ -162,6 +164,8 @@ var import_SkuCard = __toESM(require("./plus/productSelect/ProductCard/SkuCard")
162
164
  var import_pinModal = __toESM(require("./components/pinModal"));
163
165
  var import_pinVerifyModal = __toESM(require("./components/pinVerifyModal"));
164
166
  var import_list = require("./components/list");
167
+ var import_contactInfo = __toESM(require("./plus/contactInfo"));
168
+ var import_contactInfoModal = __toESM(require("./plus/contactInfoModal"));
165
169
  import_dayjs.default.extend(import_weekday.default);
166
170
  import_dayjs.default.extend(import_localeData.default);
167
171
  // Annotate the CommonJS export names for ESM import in node:
@@ -183,6 +187,8 @@ import_dayjs.default.extend(import_localeData.default);
183
187
  ClientCard,
184
188
  ClientSearch,
185
189
  ComprehensiveSearch,
190
+ ContactInfo,
191
+ ContactInfoModal,
186
192
  EditBookingModal,
187
193
  Eftpos,
188
194
  EftposPay,
@@ -24,9 +24,9 @@ __export(locales_exports, {
24
24
  module.exports = __toCommonJS(locales_exports);
25
25
  var locales_default = {
26
26
  en: {
27
- "pisell2.text.add-client": "Add client",
28
- "pisell2.text.change-client": "Change Client",
29
- "pisell2.text.remove-client": " Remove Client"
27
+ "pisell2.text.add-client": "Add Customer",
28
+ "pisell2.text.change-client": "Change Customer",
29
+ "pisell2.text.remove-client": " Remove Customer"
30
30
  },
31
31
  "zh-CN": {
32
32
  "pisell2.text.add-client": "添加客户",