@pisell/private-materials 3.4.43 → 3.4.44

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 (131) 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 +9 -1
  6. package/build/lowcode/preview.js +149 -149
  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/index.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
  14. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  15. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  16. package/es/components/appointmentBooking/hooks.js +30 -30
  17. package/es/components/appointmentBooking/locales.d.ts +3 -0
  18. package/es/components/appointmentBooking/locales.js +9 -6
  19. package/es/components/booking/components/customSelect/index.js +1 -1
  20. package/es/components/booking/components/footer/index.js +4 -1
  21. package/es/components/booking/components/footer/utils.js +75 -73
  22. package/es/components/booking/forms/footer.js +24 -10
  23. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  24. package/es/components/booking/info/client/index.js +28 -13
  25. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
  26. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
  27. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  28. package/es/components/booking/info/main.js +3 -2
  29. package/es/components/booking/info/model.js +5 -0
  30. package/es/components/booking/info2/index.js +3 -2
  31. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  32. package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
  33. package/es/components/booking/locales.d.ts +6 -0
  34. package/es/components/booking/locales.js +12 -3
  35. package/es/components/booking/model.d.ts +4 -0
  36. package/es/components/booking/model.js +3 -0
  37. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  38. package/es/index.d.ts +2 -0
  39. package/es/index.js +3 -1
  40. package/es/plus/clientName/index.d.ts +4 -0
  41. package/es/plus/clientName/index.js +18 -0
  42. package/es/plus/clientName/index.less +10 -0
  43. package/es/plus/clientName/type.d.ts +13 -0
  44. package/es/plus/clientName/type.js +1 -0
  45. package/es/plus/clientName/utils.d.ts +2 -0
  46. package/es/plus/clientName/utils.js +18 -0
  47. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  48. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  49. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  50. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  51. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  52. package/es/plus/contactInfo/index.d.ts +6 -0
  53. package/es/plus/contactInfo/index.js +198 -0
  54. package/es/plus/contactInfo/index.less +621 -0
  55. package/es/plus/contactInfo/locales.d.ts +15 -0
  56. package/es/plus/contactInfo/locales.js +14 -0
  57. package/es/plus/contactInfo/types.d.ts +91 -0
  58. package/es/plus/contactInfo/types.js +1 -0
  59. package/es/plus/contactInfo/utils.d.ts +7 -0
  60. package/es/plus/contactInfo/utils.js +50 -0
  61. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  62. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  63. package/es/plus/contactInfoModal/index.d.ts +41 -0
  64. package/es/plus/contactInfoModal/index.js +155 -0
  65. package/es/plus/contactInfoModal/index.less +19 -0
  66. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  67. package/es/plus/contactInfoModal/locales.js +65 -0
  68. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  69. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
  70. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
  71. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  72. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  73. package/lib/components/appointmentBooking/hooks.js +73 -35
  74. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  75. package/lib/components/appointmentBooking/locales.js +6 -3
  76. package/lib/components/booking/components/customSelect/index.js +1 -1
  77. package/lib/components/booking/components/footer/index.js +4 -1
  78. package/lib/components/booking/components/footer/utils.js +93 -68
  79. package/lib/components/booking/forms/footer.js +29 -11
  80. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  81. package/lib/components/booking/info/client/index.js +14 -1
  82. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
  83. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
  84. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  85. package/lib/components/booking/info/main.js +5 -4
  86. package/lib/components/booking/info/model.js +5 -0
  87. package/lib/components/booking/info2/index.js +5 -4
  88. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  89. package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
  90. package/lib/components/booking/locales.d.ts +6 -0
  91. package/lib/components/booking/locales.js +12 -3
  92. package/lib/components/booking/model.d.ts +4 -0
  93. package/lib/components/booking/model.js +3 -0
  94. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  95. package/lib/index.d.ts +2 -0
  96. package/lib/index.js +6 -0
  97. package/lib/plus/clientName/index.d.ts +4 -0
  98. package/lib/plus/clientName/index.js +53 -0
  99. package/lib/plus/clientName/index.less +10 -0
  100. package/lib/plus/clientName/type.d.ts +13 -0
  101. package/lib/plus/clientName/type.js +17 -0
  102. package/lib/plus/clientName/utils.d.ts +2 -0
  103. package/lib/plus/clientName/utils.js +43 -0
  104. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  105. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  106. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  107. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  108. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  109. package/lib/plus/contactInfo/index.d.ts +6 -0
  110. package/lib/plus/contactInfo/index.js +226 -0
  111. package/lib/plus/contactInfo/index.less +621 -0
  112. package/lib/plus/contactInfo/locales.d.ts +15 -0
  113. package/lib/plus/contactInfo/locales.js +38 -0
  114. package/lib/plus/contactInfo/types.d.ts +91 -0
  115. package/lib/plus/contactInfo/types.js +17 -0
  116. package/lib/plus/contactInfo/utils.d.ts +7 -0
  117. package/lib/plus/contactInfo/utils.js +64 -0
  118. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  119. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  120. package/lib/plus/contactInfoModal/index.d.ts +41 -0
  121. package/lib/plus/contactInfoModal/index.js +139 -0
  122. package/lib/plus/contactInfoModal/index.less +19 -0
  123. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  124. package/lib/plus/contactInfoModal/locales.js +89 -0
  125. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  126. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  127. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  128. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  129. package/lowcode/contact-info/meta.ts +199 -0
  130. package/lowcode/contact-info-modal/meta.ts +98 -0
  131. package/package.json +4 -2
@@ -71,9 +71,9 @@ var formatProductOption = (option) => {
71
71
  }
72
72
  return option.map((d) => {
73
73
  return {
74
- "num": d.num,
75
- "option_group_item_id": d.product_option_item_id || d.option_group_item_id,
76
- "option_group_id": d.option_group_id
74
+ num: d.num,
75
+ option_group_item_id: d.product_option_item_id || d.option_group_item_id,
76
+ option_group_id: d.option_group_id
77
77
  // "add_price": Number(d?.add_price),
78
78
  };
79
79
  });
@@ -92,7 +92,9 @@ var formatProductBundle = (bundle) => {
92
92
  return;
93
93
  }
94
94
  try {
95
- const errorBundles = bundle == null ? void 0 : bundle.filter((d) => !(d == null ? void 0 : d.group_id) || !(d == null ? void 0 : d.id) || !(d == null ? void 0 : d._bundle_product_id));
95
+ const errorBundles = bundle == null ? void 0 : bundle.filter(
96
+ (d) => !(d == null ? void 0 : d.group_id) || !(d == null ? void 0 : d.id) || !(d == null ? void 0 : d._bundle_product_id)
97
+ );
96
98
  if ((errorBundles == null ? void 0 : errorBundles.length) > 0) {
97
99
  log(errorBundles);
98
100
  }
@@ -100,16 +102,16 @@ var formatProductBundle = (bundle) => {
100
102
  }
101
103
  return bundle.map((d) => {
102
104
  return {
103
- "bundle_group_id": d.group_id,
104
- "bundle_id": d.id,
105
- "bundle_product_id": (d == null ? void 0 : d._bundle_product_id) || (d == null ? void 0 : d.product_id),
106
- "bundle_variant_id": d.bundle_variant_id,
107
- "num": d.num,
108
- "extension_id": d.extension_id,
109
- "extension_type": d.extension_type,
105
+ bundle_group_id: d.group_id,
106
+ bundle_id: d.id,
107
+ bundle_product_id: (d == null ? void 0 : d._bundle_product_id) || (d == null ? void 0 : d.product_id),
108
+ bundle_variant_id: d.bundle_variant_id,
109
+ num: d.num,
110
+ extension_id: d.extension_id,
111
+ extension_type: d.extension_type,
110
112
  // "price": Number(d?.price),
111
113
  // "price_type": d?.price_type,
112
- "option": formatProductOption(d.option)
114
+ option: formatProductOption(d.option)
113
115
  };
114
116
  });
115
117
  };
@@ -168,11 +170,14 @@ var formatResource = (service) => {
168
170
  return void 0;
169
171
  }
170
172
  try {
171
- return Object.values(service._extend.resource).reduce((pre, cur) => {
172
- const newList = checkResourcesFormat(cur, service);
173
- pre = pre.concat(newList);
174
- return pre;
175
- }, []);
173
+ return Object.values(service._extend.resource).reduce(
174
+ (pre, cur) => {
175
+ const newList = checkResourcesFormat(cur, service);
176
+ pre = pre.concat(newList);
177
+ return pre;
178
+ },
179
+ []
180
+ );
176
181
  } catch (err) {
177
182
  return void 0;
178
183
  }
@@ -199,7 +204,9 @@ var formatProductPrice = (item) => {
199
204
  const other = (_a = item._extend) == null ? void 0 : _a.other;
200
205
  let price = Number((_b = item._extend) == null ? void 0 : _b.price);
201
206
  if ((other == null ? void 0 : other.product_variant_id) > 0 && ((_c = item == null ? void 0 : item.variant) == null ? void 0 : _c.length) > 0) {
202
- const variant = item.variant.find((d) => d.id === (other == null ? void 0 : other.product_variant_id));
207
+ const variant = item.variant.find(
208
+ (d) => d.id === (other == null ? void 0 : other.product_variant_id)
209
+ );
203
210
  if (variant) {
204
211
  price = Number(variant == null ? void 0 : variant.price) || 0;
205
212
  }
@@ -233,7 +240,9 @@ var getSourceProductPrice = (item) => {
233
240
  const other = (_a = item._extend) == null ? void 0 : _a.other;
234
241
  let price = Number((_b = item._extend) == null ? void 0 : _b.price);
235
242
  if ((other == null ? void 0 : other.product_variant_id) > 0 && ((_c = item == null ? void 0 : item.variant) == null ? void 0 : _c.length) > 0) {
236
- const variant = item.variant.find((d) => d.id === (other == null ? void 0 : other.product_variant_id));
243
+ const variant = item.variant.find(
244
+ (d) => d.id === (other == null ? void 0 : other.product_variant_id)
245
+ );
237
246
  if (variant) {
238
247
  price = Number(variant == null ? void 0 : variant.price) || 0;
239
248
  }
@@ -247,25 +256,27 @@ var formatProducts = (item, quantity) => {
247
256
  const discount_amount = origin_total - total;
248
257
  const discount_list = (item == null ? void 0 : item.discount_list) || [];
249
258
  const discount_type = discount_amount < 0 ? "change_price" : "discount";
250
- const notManualDiscount = discount_list.filter((item2) => item2.type !== "product");
259
+ const notManualDiscount = discount_list.filter(
260
+ (item2) => item2.type !== "product"
261
+ );
251
262
  return {
252
- "num": quantity || item._extend.quantity,
253
- "price": formatProductPrice(item),
254
- "source_product_price": getSourceProductPrice(item),
255
- "product_id": (item == null ? void 0 : item.product_id) || item.id,
256
- "discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
257
- "product_discount_reason": item._extend.discount_reason || "",
258
- "is_charge_tax": item.is_charge_tax,
259
- "note": (item == null ? void 0 : item.note) || "",
260
- "discountway": item._extend.discountway || "num",
261
- "discount_per": item._extend.discount_per,
262
- "discount_type": item._extend.discount_type || discount_type,
263
- "order_detail_id": item._extend.order_detail_id || 0,
264
- "product_bundle": formatProductBundle((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle),
265
- "bundle_edit": item._extend.bundle_edit,
266
- "product_option_item": formatProductOption((_d = (_c = item._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.option),
267
- "product_variant_id": ((_f = (_e = item._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.product_variant_id) || 0,
268
- "discount_list": notManualDiscount,
263
+ num: quantity || item._extend.quantity,
264
+ price: formatProductPrice(item),
265
+ source_product_price: getSourceProductPrice(item),
266
+ product_id: (item == null ? void 0 : item.product_id) || item.id,
267
+ discount_amount: notManualDiscount.length > 0 ? 0 : discount_amount,
268
+ product_discount_reason: item._extend.discount_reason || "",
269
+ is_charge_tax: item.is_charge_tax,
270
+ note: (item == null ? void 0 : item.note) || "",
271
+ discountway: item._extend.discountway || "num",
272
+ discount_per: item._extend.discount_per,
273
+ discount_type: item._extend.discount_type || discount_type,
274
+ order_detail_id: item._extend.order_detail_id || 0,
275
+ product_bundle: formatProductBundle((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle),
276
+ bundle_edit: item._extend.bundle_edit,
277
+ product_option_item: formatProductOption((_d = (_c = item._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.option),
278
+ product_variant_id: ((_f = (_e = item._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.product_variant_id) || 0,
279
+ discount_list: notManualDiscount,
269
280
  metadata: formatMetaData(item, false)
270
281
  };
271
282
  };
@@ -273,10 +284,12 @@ var formatAppointmentProductLists = (data) => {
273
284
  var _a;
274
285
  try {
275
286
  let list = data.service.value;
276
- list = list.filter((item) => {
277
- var _a2;
278
- return ((_a2 = item._extend) == null ? void 0 : _a2.holder_id) && !(0, import_utils4.isNormalProductByDurationSchedule)(item);
279
- });
287
+ list = list.filter(
288
+ (item) => {
289
+ var _a2;
290
+ return ((_a2 = item._extend) == null ? void 0 : _a2.holder_id) && !(0, import_utils4.isNormalProductByDurationSchedule)(item);
291
+ }
292
+ );
280
293
  const groupMap = /* @__PURE__ */ new Map();
281
294
  list.forEach((item) => {
282
295
  var _a2;
@@ -286,7 +299,10 @@ var formatAppointmentProductLists = (data) => {
286
299
  }
287
300
  groupMap.get(key).push(item);
288
301
  });
289
- const result = (_a = Array.from(groupMap.values())) == null ? void 0 : _a.reduce((acc, group) => acc.concat(group), []);
302
+ const result = (_a = Array.from(groupMap.values())) == null ? void 0 : _a.reduce(
303
+ (acc, group) => acc.concat(group),
304
+ []
305
+ );
290
306
  return list || [];
291
307
  } catch (error) {
292
308
  }
@@ -318,7 +334,7 @@ var formatBookings = (data, values) => {
318
334
  const eventOtherParams = data.eventOtherParams;
319
335
  let bookings = [];
320
336
  let obj = {};
321
- list.forEach((item, index) => {
337
+ list.forEach((item) => {
322
338
  var _a, _b, _c, _d, _e;
323
339
  let start_date = item._extend.startDate.format("YYYY-MM-DD");
324
340
  let end_date = item._extend.endDate.format("YYYY-MM-DD");
@@ -331,35 +347,40 @@ var formatBookings = (data, values) => {
331
347
  if (isDay) {
332
348
  const startDate = ((_a = item._extend) == null ? void 0 : _a.startDate) || ((_b = item._extend) == null ? void 0 : _b.start_date);
333
349
  const endDate = ((_c = item._extend) == null ? void 0 : _c.endDate) || ((_d = item._extend) == null ? void 0 : _d.end_date);
334
- const { startDateTime, endDateTime } = (0, import_utils4.formatDayTime)({ startDate, endDate });
350
+ const { startDateTime, endDateTime } = (0, import_utils4.formatDayTime)({
351
+ startDate,
352
+ endDate
353
+ });
335
354
  start_date = (0, import_dayjs.default)(startDateTime).format("YYYY-MM-DD");
336
355
  start_time = (0, import_dayjs.default)(startDateTime).format("HH:mm");
337
356
  end_date = (0, import_dayjs.default)(endDateTime).format("YYYY-MM-DD");
338
357
  end_time = (0, import_dayjs.default)(endDateTime).format("HH:mm");
339
358
  dayParams.relation_products = (item == null ? void 0 : item.relation_products) || [];
340
359
  dayParams.holder = formatHolders(data, item, values);
341
- dayParams.duration = (0, import_utils3.getDays)({ _extend: { start_date: startDateTime, end_date: endDateTime } }, "minutes");
360
+ dayParams.duration = (0, import_utils3.getDays)(
361
+ { _extend: { start_date: startDateTime, end_date: endDateTime } },
362
+ "minutes"
363
+ );
342
364
  }
343
365
  const isSetGroupId = obj[(_e = item == null ? void 0 : item._extend) == null ? void 0 : _e.groupId];
344
366
  const booking = {
345
- "product": formatProducts(item),
346
- "relation_products": formatRelationDetails(item._extend.relation_details),
347
- "id": item.booking_id || 0,
348
- "relation_id": item._extend.relation_id || 0,
349
- "like_status": item._extend.like_status || "common",
350
- "relation_type": item._extend.relation_type || "",
351
- "is_all": false,
352
- "schedule_id": item._extend.schedule_id || 0,
353
- "end_time": end_time,
354
- "sub_type": isDay ? "days" : getSubType(item),
355
- "select_date": start_date,
356
- "start_time": start_time,
357
- "end_date": end_date,
358
- "start_date": start_date,
359
- "duration": isDay ? 0 : import_utils.flexibleObj.getValue(item._extend.duration),
360
- "number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }) : item._extend.number || 1,
361
- "resources": formatResource(item),
362
- // 当groupId第一次出现时,需要设置metadata.multiDayPrices, 否则不用
367
+ product: formatProducts(item),
368
+ relation_products: formatRelationDetails(item._extend.relation_details),
369
+ id: item.booking_id || 0,
370
+ relation_id: item._extend.relation_id || 0,
371
+ like_status: item._extend.like_status || "common",
372
+ relation_type: item._extend.relation_type || "",
373
+ is_all: false,
374
+ schedule_id: item._extend.schedule_id || 0,
375
+ end_time,
376
+ sub_type: isDay ? "days" : getSubType(item),
377
+ select_date: start_date,
378
+ start_time,
379
+ end_date,
380
+ start_date,
381
+ duration: isDay ? 0 : import_utils.flexibleObj.getValue(item._extend.duration),
382
+ number: item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }) : item._extend.number || 1,
383
+ resources: formatResource(item),
363
384
  "metadata": formatMetaData(item, !isSetGroupId),
364
385
  ...eventOtherParams || {},
365
386
  ...dayParams
@@ -374,9 +395,9 @@ var formatBookings = (data, values) => {
374
395
  for (let i = 0; i < (item._extend.quantity || 1); i++) {
375
396
  bookings.push({
376
397
  ...booking,
377
- "product": formatProducts(item, 1),
378
- "number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }, false) : item._extend.number || 1,
379
- "holder": getHolderByIndex(booking.holder, i)
398
+ product: formatProducts(item, 1),
399
+ number: item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }, false) : item._extend.number || 1,
400
+ holder: getHolderByIndex(booking.holder, i)
380
401
  });
381
402
  }
382
403
  });
@@ -428,7 +449,7 @@ var formatHolder = (state, values) => {
428
449
  return obj;
429
450
  };
430
451
  var formatValues = (state) => {
431
- var _a, _b, _c, _d, _e, _f, _g;
452
+ var _a, _b, _c, _d, _e, _f, _g, _h;
432
453
  let values = {
433
454
  type: state.renderType === "eventBooking" ? "event_booking_v2" : "appointment_booking",
434
455
  platform: state.isBookingTicket2 ? "pos" : "shop",
@@ -460,7 +481,10 @@ var formatValues = (state) => {
460
481
  };
461
482
  values.holder = formatHolder(state, values);
462
483
  if (isDay || isEvent) {
463
- values.relation_products = formatRelationProducts(state, isDay ? "day" : "event");
484
+ values.relation_products = formatRelationProducts(
485
+ state,
486
+ isDay ? "day" : "event"
487
+ );
464
488
  } else {
465
489
  values.relation_products = formatNormalProducts(state);
466
490
  if (!((_b = values.relation_products) == null ? void 0 : _b.length)) {
@@ -479,6 +503,7 @@ var formatValues = (state) => {
479
503
  if (!((_g = values == null ? void 0 : values.bookings) == null ? void 0 : _g.length)) {
480
504
  values.type = "virtual";
481
505
  }
506
+ values.contacts_info = ((_h = state.contacts_info) == null ? void 0 : _h.value) || null;
482
507
  return values;
483
508
  };
484
509
  var checkHolderIsError = (state) => {
@@ -39,31 +39,49 @@ var import_useSendModal = __toESM(require("./sendModal/useSendModal"));
39
39
  var import_sendModal = __toESM(require("./sendModal"));
40
40
  var import_utils = require("@pisell/utils");
41
41
  var Footer = ({ state, reload }) => {
42
- var _a, _b, _c, _d;
42
+ var _a, _b, _c, _d, _e;
43
43
  const { open, setOpen, handleOpen, handleValuesChange, handleOk } = (0, import_useSendModal.default)(state == null ? void 0 : state.bookingId);
44
44
  const handleReload = async () => {
45
45
  await reload();
46
46
  import_materials.message.success(import_utils.locales.getText("pisell2.text.send-form-reminder-refresh"));
47
47
  };
48
48
  const defaultValues = (0, import_react.useMemo)(() => {
49
- var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i, _j;
49
+ var _a2, _b2;
50
+ const { email: contactsEmail, phone: contactsPhone } = ((_a2 = state.contacts_info) == null ? void 0 : _a2.value) || {};
51
+ const {
52
+ email: clientEmail,
53
+ phone: clientPhone,
54
+ country_calling_code: clientCode
55
+ } = ((_b2 = state.client) == null ? void 0 : _b2.value) || {};
56
+ let email = contactsEmail || clientEmail;
57
+ let phone = (contactsPhone == null ? void 0 : contactsPhone.phone) || clientPhone;
58
+ let code = (contactsPhone == null ? void 0 : contactsPhone.country_calling_code) || clientCode || "+61";
59
+ if (!code.startsWith("+")) {
60
+ code = `+${code}`;
61
+ }
50
62
  return {
51
- sendSms: !!((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.phone),
52
- sendEmail: !!((_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.email),
53
- email: (_f = (_e = state.client) == null ? void 0 : _e.value) == null ? void 0 : _f.email,
63
+ sendSms: !!phone,
64
+ sendEmail: !!email,
65
+ email,
54
66
  phone: {
55
- code: (_h = (_g = state.client) == null ? void 0 : _g.value) == null ? void 0 : _h.country_calling_code,
56
- phone: (_j = (_i = state.client) == null ? void 0 : _i.value) == null ? void 0 : _j.phone
67
+ code,
68
+ phone
57
69
  }
58
70
  };
59
- }, [(_a = state.client) == null ? void 0 : _a.value]);
60
- if (!state.bookingId || !((_b = state == null ? void 0 : state.form) == null ? void 0 : _b.forms.length)) {
71
+ }, [(_a = state.client) == null ? void 0 : _a.value, (_b = state.contacts_info) == null ? void 0 : _b.value]);
72
+ if (!state.bookingId || !((_c = state == null ? void 0 : state.form) == null ? void 0 : _c.forms.length)) {
61
73
  return null;
62
74
  }
63
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-form-footer" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Tooltip, { title: import_utils.locales.getText("pisell2.text.send-form-reminder-tooltip") }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ReloadOutlined, null), onClick: handleReload })), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", block: true, type: "primary", onClick: handleOpen }, import_utils.locales.getText("pisell2.text.send-form-reminder")), /* @__PURE__ */ import_react.default.createElement(
75
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-form-footer" }, /* @__PURE__ */ import_react.default.createElement(
76
+ import_materials.Tooltip,
77
+ {
78
+ title: import_utils.locales.getText("pisell2.text.send-form-reminder-tooltip")
79
+ },
80
+ /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ReloadOutlined, null), onClick: handleReload })
81
+ ), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", block: true, type: "primary", onClick: handleOpen }, import_utils.locales.getText("pisell2.text.send-form-reminder")), open && /* @__PURE__ */ import_react.default.createElement(
64
82
  import_sendModal.default,
65
83
  {
66
- refreshKey: (_d = (_c = state.client) == null ? void 0 : _c.value) == null ? void 0 : _d.id,
84
+ refreshKey: (_e = (_d = state.client) == null ? void 0 : _d.value) == null ? void 0 : _e.id,
67
85
  open,
68
86
  onCancel: () => setOpen(false),
69
87
  onOk: handleOk,
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
8
8
  };
9
9
  export default useSendModal;
@@ -91,8 +91,13 @@ var Client = () => {
91
91
  }
92
92
  _setLoading(true);
93
93
  const api = state.isFranchisee ? import_serve.getFranchiseeCustomerList : state.apis.getClientsEs;
94
+ const withKey = [...(resetParams == null ? void 0 : resetParams.with) || []];
95
+ if (!withKey.includes("contactsInfo")) {
96
+ withKey.push("contactsInfo");
97
+ }
94
98
  const data = await api({
95
99
  ...resetParams,
100
+ with: withKey,
96
101
  ...!state.isFranchisee ? { _config: { abort: true } } : {}
97
102
  });
98
103
  const list = ((data == null ? void 0 : data.list) || []).map((d) => {
@@ -322,6 +327,14 @@ var Client = () => {
322
327
  closeCallback: () => {
323
328
  },
324
329
  optionRender: (item) => {
330
+ var _a2, _b2, _c2, _d2, _e2;
331
+ console.log("render_optionRender", item);
332
+ let displayEmail = item == null ? void 0 : item.email;
333
+ let displayPhone = item == null ? void 0 : item.phone;
334
+ if (!displayEmail && !displayPhone) {
335
+ displayEmail = (_b2 = (_a2 = item == null ? void 0 : item.contacts_info) == null ? void 0 : _a2.value) == null ? void 0 : _b2.email;
336
+ displayPhone = (_e2 = (_d2 = (_c2 = item == null ? void 0 : item.contacts_info) == null ? void 0 : _c2.value) == null ? void 0 : _d2.phone) == null ? void 0 : _e2.phone;
337
+ }
325
338
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
326
339
  import_antd.Avatar,
327
340
  {
@@ -329,7 +342,7 @@ var Client = () => {
329
342
  src: import_utils.image.ali(item.cover, 100) || void 0,
330
343
  icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
331
344
  }
332
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-name" }, getNickname(item)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-desc" }, item.email ? /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, item.email) : null, item.phone ? /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, item.phone) : null), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-waiver", title: (0, import_utils3.getWaiverTitle)(item.waiver_form) }, (item.waiver_form || []).map((item2) => {
345
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-name" }, getNickname(item)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-desc" }, displayEmail ? /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, displayEmail) : null, displayPhone ? /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, displayPhone) : null), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-waiver", title: (0, import_utils3.getWaiverTitle)(item.waiver_form) }, (item.waiver_form || []).map((item2) => {
333
346
  return /* @__PURE__ */ import_react.default.createElement("span", null, item2.form_title, ":", item2.is_filled ? /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-client-list-item-waiver-filled" }, import_utils.locales.getText("pisell2.text.filled")) : /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-client-list-item-waiver-not-filled" }, import_utils.locales.getText("pisell2.text.not-filled")), "; ");
334
347
  }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-loading" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: franchiseeLoading === item.id })));
335
348
  },
@@ -52,7 +52,7 @@ var useClientFn = (_params) => {
52
52
  num: 5,
53
53
  total: 0,
54
54
  search: "",
55
- with: ["formRecord"],
55
+ with: ["formRecord", "contactsInfo"],
56
56
  relation_form_id: (_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id
57
57
  });
58
58
  const paramsRef = (0, import_react.useRef)(params);
@@ -91,11 +91,16 @@ var useClientFn = (_params) => {
91
91
  }
92
92
  _setLoading(true);
93
93
  const api = state.isFranchisee ? import_serve.getFranchiseeCustomerList : state.apis.getClients;
94
+ const withKey = [...(resetParams == null ? void 0 : resetParams.with) || []];
95
+ if (!withKey.includes("contactsInfo")) {
96
+ withKey.push("contactsInfo");
97
+ }
94
98
  const data = await api({
95
99
  ...resetParams,
96
100
  ...resetParams.search ? { num: 10 } : {},
97
101
  ...state.isFranchisee ? { franchisee_customer_ids: customer_ids } : { customer_ids },
98
- ...!state.isFranchisee && !returnResult ? { _config: { abort: true } } : {}
102
+ ...!state.isFranchisee && !returnResult ? { _config: { abort: true } } : {},
103
+ with: withKey
99
104
  });
100
105
  const list = ((data == null ? void 0 : data.list) || []).map((d) => {
101
106
  var _a3;
@@ -279,6 +279,7 @@ var SelectDrawer = (props, ref) => {
279
279
  }
280
280
  closeDrawer();
281
281
  };
282
+ console.log("options7777", options);
282
283
  return /* @__PURE__ */ import_react.default.createElement(
283
284
  import_drawer.default,
284
285
  {
@@ -292,7 +293,7 @@ var SelectDrawer = (props, ref) => {
292
293
  ref: searchRef,
293
294
  prefix: /* @__PURE__ */ import_react.default.createElement(import_SearchLg.default, null),
294
295
  style: { margin: "16px 0", height: 44 },
295
- placeholder: import_utils.locales.getText("pisell2.text.search"),
296
+ placeholder: import_utils.locales.getText("pisell2.booking.text.search-placeholder"),
296
297
  value: search,
297
298
  allowClear: true,
298
299
  onChange: (e) => {
@@ -335,7 +336,13 @@ var SelectDrawer = (props, ref) => {
335
336
  }
336
337
  }
337
338
  ) : null), /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: !!loading, delay: 500 }, !!options.length ? options.map((item) => {
338
- var _a;
339
+ var _a, _b, _c, _d, _e, _f;
340
+ let displayEmail = item == null ? void 0 : item.email;
341
+ let displayPhone = item == null ? void 0 : item.phone;
342
+ if (!displayEmail && !displayPhone) {
343
+ displayEmail = (_b = (_a = item == null ? void 0 : item.contacts_info) == null ? void 0 : _a.value) == null ? void 0 : _b.email;
344
+ displayPhone = (_e = (_d = (_c = item == null ? void 0 : item.contacts_info) == null ? void 0 : _c.value) == null ? void 0 : _d.phone) == null ? void 0 : _e.phone;
345
+ }
339
346
  return /* @__PURE__ */ import_react.default.createElement(
340
347
  "div",
341
348
  {
@@ -348,7 +355,7 @@ var SelectDrawer = (props, ref) => {
348
355
  onClick: () => handleClientClick(item),
349
356
  cover: item.cover,
350
357
  title: getNickname(item),
351
- desc: [item.email, item.phone],
358
+ desc: [displayEmail, displayPhone],
352
359
  checked: item.id === client.id,
353
360
  style: showPet ? { marginBottom: 6 } : {},
354
361
  loading: franchiseeLoading === item.id,
@@ -396,7 +403,7 @@ var SelectDrawer = (props, ref) => {
396
403
  },
397
404
  style: { padding: 16 }
398
405
  },
399
- /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_PlusCircle.default, { className: "pisell-lowcode__custom-select-create-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__custom-select-create-txt" }, `${import_utils.locales.getText("pisell2.text.create-new")} ${((_a = holder.form) == null ? void 0 : _a.title) || "-"}`))
406
+ /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_PlusCircle.default, { className: "pisell-lowcode__custom-select-create-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__custom-select-create-txt" }, `${import_utils.locales.getText("pisell2.text.create-new")} ${((_f = holder.form) == null ? void 0 : _f.title) || "-"}`))
400
407
  ), /* @__PURE__ */ import_react.default.createElement("div", null))
401
408
  );
402
409
  }) : /* @__PURE__ */ import_react.default.createElement(import_antd.Empty, { image: import_antd.Empty.PRESENTED_IMAGE_SIMPLE }), /* @__PURE__ */ import_react.default.createElement("div", null, loadMore)))
@@ -173,7 +173,11 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
173
173
  const handleAddPet = (_client, cb) => {
174
174
  var _a2, _b2, _c2;
175
175
  let _data = {
176
- formDataConfig: isMinorAndWaiver ? { ...waiverForm, customer_id: _client.id, is_franchisor: (_b2 = (_a2 = state.pet.formData) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.is_franchisor } : { ...((_c2 = state.pet.formData) == null ? void 0 : _c2[0]) || {} }
176
+ formDataConfig: isMinorAndWaiver ? {
177
+ ...waiverForm,
178
+ customer_id: _client.id,
179
+ is_franchisor: (_b2 = (_a2 = state.pet.formData) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.is_franchisor
180
+ } : { ...((_c2 = state.pet.formData) == null ? void 0 : _c2[0]) || {} }
177
181
  };
178
182
  _data.customerId = _client.id;
179
183
  state.action({
@@ -278,7 +282,7 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
278
282
  } else {
279
283
  const val = await getClients(
280
284
  {
281
- with: ["formRecord"],
285
+ with: ["formRecord", "contactsInfo"],
282
286
  relation_form_id: boardConfig == null ? void 0 : boardConfig.form_id,
283
287
  skip: 1,
284
288
  num: 20,
@@ -448,21 +452,34 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
448
452
  size: 64,
449
453
  icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
450
454
  }
451
- ), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, import_utils.locales.getText("pisell2.text.add-client")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in"))) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, getNickname(state.client.value)), ((_A = state.client.value) == null ? void 0 : _A.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_B = state.client.value) == null ? void 0 : _B.email) : null, ((_C = state.client.value) == null ? void 0 : _C.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_D = state.client.value) == null ? void 0 : _D.phone) : null, !!((_F = (_E = state.client.value) == null ? void 0 : _E.waiver_form) == null ? void 0 : _F.length) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-waiver", title: (0, import_utils5.getWaiverTitle)((_G = state.client.value) == null ? void 0 : _G.waiver_form) }, (_J = (_I = (_H = state.client.value) == null ? void 0 : _H.waiver_form) == null ? void 0 : _I.map) == null ? void 0 : _J.call(_I, (item) => {
452
- return /* @__PURE__ */ import_react.default.createElement("span", null, item.form_title, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-client-waiver-colon" }, ":"), item.is_filled ? /* @__PURE__ */ import_react.default.createElement(
453
- "span",
454
- {
455
- className: "pisell-lowcode__booking-client-waiver-filled"
456
- },
457
- import_utils.locales.getText("pisell2.text.filled")
458
- ) : /* @__PURE__ */ import_react.default.createElement(
459
- "span",
460
- {
461
- className: "pisell-lowcode__booking-client-waiver-not-filled"
462
- },
463
- import_utils.locales.getText("pisell2.text.not-filled")
464
- ), ` ; `);
465
- }))), !isWalkIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-action-wrap" }, !state.disabledEdit && /* @__PURE__ */ import_react.default.createElement(
455
+ ), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, import_utils.locales.getText("pisell2.text.add-client")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in"))) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, getNickname(state.client.value)), ((_A = state.client.value) == null ? void 0 : _A.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_B = state.client.value) == null ? void 0 : _B.email) : null, ((_C = state.client.value) == null ? void 0 : _C.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_D = state.client.value) == null ? void 0 : _D.phone) : null, !!((_F = (_E = state.client.value) == null ? void 0 : _E.waiver_form) == null ? void 0 : _F.length) && /* @__PURE__ */ import_react.default.createElement(
456
+ "div",
457
+ {
458
+ className: "pisell-lowcode__booking-client-waiver",
459
+ title: (0, import_utils5.getWaiverTitle)((_G = state.client.value) == null ? void 0 : _G.waiver_form)
460
+ },
461
+ (_J = (_I = (_H = state.client.value) == null ? void 0 : _H.waiver_form) == null ? void 0 : _I.map) == null ? void 0 : _J.call(_I, (item) => {
462
+ return /* @__PURE__ */ import_react.default.createElement("span", null, item.form_title, /* @__PURE__ */ import_react.default.createElement(
463
+ "span",
464
+ {
465
+ className: "pisell-lowcode__booking-client-waiver-colon"
466
+ },
467
+ ":"
468
+ ), item.is_filled ? /* @__PURE__ */ import_react.default.createElement(
469
+ "span",
470
+ {
471
+ className: "pisell-lowcode__booking-client-waiver-filled"
472
+ },
473
+ import_utils.locales.getText("pisell2.text.filled")
474
+ ) : /* @__PURE__ */ import_react.default.createElement(
475
+ "span",
476
+ {
477
+ className: "pisell-lowcode__booking-client-waiver-not-filled"
478
+ },
479
+ import_utils.locales.getText("pisell2.text.not-filled")
480
+ ), ` ; `);
481
+ })
482
+ )), !isWalkIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-action-wrap" }, !state.disabledEdit && /* @__PURE__ */ import_react.default.createElement(
466
483
  import_antd.Dropdown.Button,
467
484
  {
468
485
  menu: {
@@ -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, _j, _k, _l, _m;
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: (_m = (_l = (_k = (_j = (_i2 = (_h2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _h2.utils) == null ? void 0 : _i2.store) == null ? void 0 : _j.getState()) == null ? void 0 : _k.global) == null ? void 0 : _l.globalConfig) == null ? void 0 : _m.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 && !((_i = modal.state) == null ? void 0 : _i.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
+ /* @__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) {