@pisell/private-materials 3.0.199 → 3.0.200

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 (193) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/meta.js +1 -1
  3. package/build/lowcode/preview.js +7 -7
  4. package/build/lowcode/render/default/view.css +1 -1
  5. package/build/lowcode/render/default/view.js +10 -10
  6. package/build/lowcode/view.css +1 -1
  7. package/build/lowcode/view.js +11 -11
  8. package/es/components/booking/components/customSelect/index.d.ts +1 -0
  9. package/es/components/booking/components/customSelect/index.js +6 -2
  10. package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
  11. package/es/components/booking/components/footer/AppointmentProductModal/index.js +38 -0
  12. package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
  13. package/es/components/booking/components/footer/amount.js +45 -22
  14. package/es/components/booking/components/footer/index.js +84 -40
  15. package/es/components/booking/components/footer/utils.js +243 -32
  16. package/es/components/booking/info/addServiceVariant/index.js +8 -1
  17. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
  18. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +14 -13
  19. package/es/components/booking/info/clientVariant/vertical/index.js +33 -4
  20. package/es/components/booking/info/dateRange/index.d.ts +5 -0
  21. package/es/components/booking/info/dateRange/index.js +98 -0
  22. package/es/components/booking/info/dateRange/index.less +21 -0
  23. package/es/components/booking/info/main.js +20 -8
  24. package/es/components/booking/info/model.js +3 -0
  25. package/es/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
  26. package/es/components/booking/info/pet/ChangePetModal/index.js +119 -0
  27. package/es/components/booking/info/pet/ChangePetModal/index.less +4 -0
  28. package/es/components/booking/info/pet/index.js +54 -5
  29. package/es/components/booking/info/service/addService/index.js +142 -22
  30. package/es/components/booking/info/service/addService/index.less +13 -3
  31. package/es/components/booking/info/service/addService/utils.d.ts +11 -2
  32. package/es/components/booking/info/service/addService/utils.js +49 -24
  33. package/es/components/booking/info/service/editService/index.js +246 -44
  34. package/es/components/booking/info/service/editService/index.less +18 -13
  35. package/es/components/booking/info/service2/Lists.d.ts +3 -0
  36. package/es/components/booking/info/service2/Lists.js +158 -0
  37. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  38. package/es/components/booking/info/service2/hooks/useSelectPet.js +54 -0
  39. package/es/components/booking/info/service2/index.d.ts +3 -0
  40. package/es/components/booking/info/service2/index.js +58 -0
  41. package/es/components/booking/info/service2/status.d.ts +31 -0
  42. package/es/components/booking/info/service2/status.js +78 -0
  43. package/es/components/booking/info/service2/utils.d.ts +145 -0
  44. package/es/components/booking/info/service2/utils.js +438 -0
  45. package/es/components/booking/info/utils.d.ts +9 -0
  46. package/es/components/booking/info/utils.js +13 -0
  47. package/es/components/booking/locales.d.ts +60 -0
  48. package/es/components/booking/locales.js +75 -3
  49. package/es/components/booking/materiels/holder/index.d.ts +7 -0
  50. package/es/components/booking/materiels/holder/index.js +51 -0
  51. package/es/components/booking/model.d.ts +4 -1
  52. package/es/components/booking/model.js +4 -2
  53. package/es/components/booking/utils.d.ts +12 -3
  54. package/es/components/booking/utils.js +139 -23
  55. package/es/components/eftpos/form/index.js +6 -12
  56. package/es/components/eftpos/group/index.d.ts +2 -1
  57. package/es/components/eftpos/group/index.js +2 -1
  58. package/es/components/eftpos/index.js +2 -2
  59. package/es/components/eftposPay/helper.d.ts +0 -1
  60. package/es/components/eftposPay/helper.js +0 -14
  61. package/es/components/eftposPay/tyro/index.js +20 -51
  62. package/es/components/shoppingCart/Provider.d.ts +3 -0
  63. package/es/components/shoppingCart/Provider.js +86 -0
  64. package/es/components/shoppingCart/components/Cart/Product.d.ts +4 -0
  65. package/es/components/shoppingCart/components/Cart/Product.js +96 -0
  66. package/es/components/shoppingCart/components/Cart/index.d.ts +4 -0
  67. package/es/components/shoppingCart/components/Cart/index.js +72 -0
  68. package/es/components/shoppingCart/components/Cart/index.less +68 -0
  69. package/es/components/shoppingCart/components/Empty/index.d.ts +4 -0
  70. package/es/components/shoppingCart/components/Empty/index.js +14 -0
  71. package/es/components/shoppingCart/components/Empty/index.less +19 -0
  72. package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
  73. package/es/components/shoppingCart/components/Render/index.js +68 -0
  74. package/es/components/shoppingCart/components/Render/index.less +2 -0
  75. package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
  76. package/es/components/shoppingCart/components/SelectHolderModal/index.js +124 -0
  77. package/es/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
  78. package/es/components/shoppingCart/hooks/useAddService.d.ts +3 -0
  79. package/es/components/shoppingCart/hooks/useAddService.js +23 -0
  80. package/es/components/shoppingCart/hooks/useClearCart.d.ts +3 -0
  81. package/es/components/shoppingCart/hooks/useClearCart.js +54 -0
  82. package/es/components/shoppingCart/hooks/useContext.d.ts +1 -0
  83. package/es/components/shoppingCart/hooks/useContext.js +5 -0
  84. package/es/components/shoppingCart/index.d.ts +4 -0
  85. package/es/components/shoppingCart/index.js +24 -0
  86. package/es/components/shoppingCart/locales.d.ts +33 -0
  87. package/es/components/shoppingCart/locales.js +38 -0
  88. package/es/components/shoppingCart/mock.d.ts +40 -0
  89. package/es/components/shoppingCart/mock.js +40 -0
  90. package/es/components/shoppingCart/status.d.ts +2 -0
  91. package/es/components/shoppingCart/status.js +22 -0
  92. package/es/components/shoppingCart/type.d.ts +39 -0
  93. package/es/components/shoppingCart/type.js +1 -0
  94. package/es/components/shoppingCart/utils.d.ts +63 -0
  95. package/es/components/shoppingCart/utils.js +119 -0
  96. package/es/index.d.ts +1 -0
  97. package/es/index.js +2 -1
  98. package/lib/components/booking/components/customSelect/index.d.ts +1 -0
  99. package/lib/components/booking/components/customSelect/index.js +6 -2
  100. package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
  101. package/lib/components/booking/components/footer/AppointmentProductModal/index.js +60 -0
  102. package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
  103. package/lib/components/booking/components/footer/amount.js +26 -8
  104. package/lib/components/booking/components/footer/index.js +25 -4
  105. package/lib/components/booking/components/footer/utils.js +157 -31
  106. package/lib/components/booking/info/addServiceVariant/index.js +5 -0
  107. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
  108. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +8 -7
  109. package/lib/components/booking/info/clientVariant/vertical/index.js +36 -10
  110. package/lib/components/booking/info/dateRange/index.d.ts +5 -0
  111. package/lib/components/booking/info/dateRange/index.js +111 -0
  112. package/lib/components/booking/info/dateRange/index.less +21 -0
  113. package/lib/components/booking/info/main.js +11 -4
  114. package/lib/components/booking/info/model.js +3 -0
  115. package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
  116. package/lib/components/booking/info/pet/ChangePetModal/index.js +111 -0
  117. package/lib/components/booking/info/pet/ChangePetModal/index.less +4 -0
  118. package/lib/components/booking/info/pet/index.js +61 -25
  119. package/lib/components/booking/info/service/addService/index.js +107 -34
  120. package/lib/components/booking/info/service/addService/index.less +13 -3
  121. package/lib/components/booking/info/service/addService/utils.d.ts +11 -2
  122. package/lib/components/booking/info/service/addService/utils.js +31 -10
  123. package/lib/components/booking/info/service/editService/index.js +283 -125
  124. package/lib/components/booking/info/service/editService/index.less +18 -13
  125. package/lib/components/booking/info/service2/Lists.d.ts +3 -0
  126. package/lib/components/booking/info/service2/Lists.js +113 -0
  127. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  128. package/lib/components/booking/info/service2/hooks/useSelectPet.js +50 -0
  129. package/lib/components/booking/info/service2/index.d.ts +3 -0
  130. package/lib/components/booking/info/service2/index.js +75 -0
  131. package/lib/components/booking/info/service2/status.d.ts +31 -0
  132. package/lib/components/booking/info/service2/status.js +81 -0
  133. package/lib/components/booking/info/service2/utils.d.ts +145 -0
  134. package/lib/components/booking/info/service2/utils.js +322 -0
  135. package/lib/components/booking/info/utils.d.ts +9 -0
  136. package/lib/components/booking/info/utils.js +6 -0
  137. package/lib/components/booking/locales.d.ts +60 -0
  138. package/lib/components/booking/locales.js +63 -3
  139. package/lib/components/booking/materiels/holder/index.d.ts +7 -0
  140. package/lib/components/booking/materiels/holder/index.js +65 -0
  141. package/lib/components/booking/model.d.ts +4 -1
  142. package/lib/components/booking/model.js +4 -2
  143. package/lib/components/booking/utils.d.ts +12 -3
  144. package/lib/components/booking/utils.js +87 -15
  145. package/lib/components/eftpos/form/index.js +6 -12
  146. package/lib/components/eftpos/group/index.d.ts +2 -1
  147. package/lib/components/eftpos/group/index.js +1 -0
  148. package/lib/components/eftpos/index.js +2 -2
  149. package/lib/components/eftposPay/helper.d.ts +0 -1
  150. package/lib/components/eftposPay/helper.js +0 -21
  151. package/lib/components/eftposPay/tyro/index.js +7 -36
  152. package/lib/components/shoppingCart/Provider.d.ts +3 -0
  153. package/lib/components/shoppingCart/Provider.js +110 -0
  154. package/lib/components/shoppingCart/components/Cart/Product.d.ts +4 -0
  155. package/lib/components/shoppingCart/components/Cart/Product.js +89 -0
  156. package/lib/components/shoppingCart/components/Cart/index.d.ts +4 -0
  157. package/lib/components/shoppingCart/components/Cart/index.js +77 -0
  158. package/lib/components/shoppingCart/components/Cart/index.less +68 -0
  159. package/lib/components/shoppingCart/components/Empty/index.d.ts +4 -0
  160. package/lib/components/shoppingCart/components/Empty/index.js +43 -0
  161. package/lib/components/shoppingCart/components/Empty/index.less +19 -0
  162. package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
  163. package/lib/components/shoppingCart/components/Render/index.js +79 -0
  164. package/lib/components/shoppingCart/components/Render/index.less +2 -0
  165. package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
  166. package/lib/components/shoppingCart/components/SelectHolderModal/index.js +116 -0
  167. package/lib/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
  168. package/lib/components/shoppingCart/hooks/useAddService.d.ts +3 -0
  169. package/lib/components/shoppingCart/hooks/useAddService.js +55 -0
  170. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +3 -0
  171. package/lib/components/shoppingCart/hooks/useClearCart.js +71 -0
  172. package/lib/components/shoppingCart/hooks/useContext.d.ts +1 -0
  173. package/lib/components/shoppingCart/hooks/useContext.js +31 -0
  174. package/lib/components/shoppingCart/index.d.ts +4 -0
  175. package/lib/components/shoppingCart/index.js +60 -0
  176. package/lib/components/shoppingCart/locales.d.ts +33 -0
  177. package/lib/components/shoppingCart/locales.js +56 -0
  178. package/lib/components/shoppingCart/mock.d.ts +40 -0
  179. package/lib/components/shoppingCart/mock.js +76 -0
  180. package/lib/components/shoppingCart/status.d.ts +2 -0
  181. package/lib/components/shoppingCart/status.js +60 -0
  182. package/lib/components/shoppingCart/type.d.ts +39 -0
  183. package/lib/components/shoppingCart/type.js +17 -0
  184. package/lib/components/shoppingCart/utils.d.ts +63 -0
  185. package/lib/components/shoppingCart/utils.js +92 -0
  186. package/lib/index.d.ts +1 -0
  187. package/lib/index.js +3 -0
  188. package/lowcode/shopping-cart/meta.ts +98 -0
  189. package/package.json +4 -4
  190. package/es/components/eftpos/receipt/index.d.ts +0 -24
  191. package/es/components/eftpos/receipt/index.js +0 -96
  192. package/lib/components/eftpos/receipt/index.d.ts +0 -24
  193. package/lib/components/eftpos/receipt/index.js +0 -88
@@ -49,6 +49,11 @@ var AddServiceVariant = (props) => {
49
49
  service: { ...stateRef.current.service, ...payload }
50
50
  });
51
51
  }
52
+ if (type === "setDate") {
53
+ setGlobalState({
54
+ date: { ...stateRef.current.date, ...payload }
55
+ });
56
+ }
52
57
  };
53
58
  let Cpt = import_addService.default;
54
59
  if ((0, import_utils.isBooking4Shop)(
@@ -19,6 +19,7 @@ interface SelectDrawerProps {
19
19
  modalOpen: boolean;
20
20
  franchiseeLoading?: number;
21
21
  showHeader?: boolean;
22
+ showWalkIn?: boolean;
22
23
  }
23
24
  declare const _default: React.ForwardRefExoticComponent<SelectDrawerProps & React.RefAttributes<unknown>>;
24
25
  export default _default;
@@ -108,12 +108,16 @@ var SelectDrawer = (props, ref) => {
108
108
  handleAddPet,
109
109
  modalOpen,
110
110
  franchiseeLoading,
111
- showHeader
111
+ showHeader,
112
+ showWalkIn
112
113
  } = props;
113
114
  const form = (formData == null ? void 0 : formData[0]) || {};
114
115
  const valList = (childrenValue == null ? void 0 : childrenValue[form.id]) || defaultArr;
115
116
  const [_value, setValue] = (0, import_react.useState)(valList);
116
117
  const clientRef = (0, import_react.useRef)();
118
+ const searchRef = (0, import_react.useRef)();
119
+ const [open, setOpen] = (0, import_react.useState)(false);
120
+ const [search, setSearch] = (0, import_react.useState)("");
117
121
  (0, import_react.useEffect)(() => {
118
122
  setValue(
119
123
  valList.map((item) => ({
@@ -121,10 +125,7 @@ var SelectDrawer = (props, ref) => {
121
125
  id: item.id || item.form_record_id
122
126
  }))
123
127
  );
124
- }, [valList]);
125
- const searchRef = (0, import_react.useRef)();
126
- const [open, setOpen] = (0, import_react.useState)(false);
127
- const [search, setSearch] = (0, import_react.useState)("");
128
+ }, [valList, open]);
128
129
  (0, import_react.useEffect)(() => {
129
130
  if (!modalOpen) {
130
131
  setOpen(false);
@@ -317,7 +318,7 @@ var SelectDrawer = (props, ref) => {
317
318
  title: import_utils.locales.getText("pisell2.text.create-new-customer"),
318
319
  onClick: handleAddClient
319
320
  }
320
- ), /* @__PURE__ */ import_react.default.createElement(
321
+ ), showWalkIn ? /* @__PURE__ */ import_react.default.createElement(
321
322
  ActionItem,
322
323
  {
323
324
  title: "Walk-In",
@@ -326,7 +327,7 @@ var SelectDrawer = (props, ref) => {
326
327
  closeDrawer();
327
328
  }
328
329
  }
329
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: !!loading, delay: 500 }, !!options.length ? options.map((item) => {
330
+ ) : null), /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: !!loading, delay: 500 }, !!options.length ? options.map((item) => {
330
331
  var _a;
331
332
  return /* @__PURE__ */ import_react.default.createElement(
332
333
  "div",
@@ -47,13 +47,16 @@ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineCon
47
47
  var import_format = require("../../../forms/format");
48
48
  var import_utils2 = require("../../utils");
49
49
  var import_utils3 = require("../../../utils");
50
+ var import_utils4 = require("../../service2/utils");
51
+ var import_ChangePetModal = __toESM(require("../../pet/ChangePetModal"));
50
52
  var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H;
53
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
52
54
  const { globalState, setGlobalState } = props;
53
55
  const modalRef = (0, import_react.useRef)();
54
56
  const state = globalState;
55
57
  const stateRef = (0, import_react.useRef)(state);
56
58
  const prevCustomerId = (0, import_react.useRef)(null);
59
+ const changePetRef = (0, import_react.useRef)(null);
57
60
  const context = (0, import_useEngineContext.default)();
58
61
  const [isHasFormRecord, setIsHasFormRecord] = (0, import_react.useState)(true);
59
62
  const isFranchisee = (_d = (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.businessUtils) == null ? void 0 : _c.getAppByModal) == null ? void 0 : _d.call(_c, "franchisee");
@@ -108,6 +111,14 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
108
111
  }
109
112
  });
110
113
  }
114
+ if (type === "setService") {
115
+ setGlobalState({
116
+ service: {
117
+ ...stateRef.current.service,
118
+ ...payload
119
+ }
120
+ });
121
+ }
111
122
  };
112
123
  const boardConfig = (0, import_react.useMemo)(() => {
113
124
  var _a2, _b2, _c2;
@@ -128,6 +139,18 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
128
139
  state == null ? void 0 : state.modalOpen
129
140
  ]);
130
141
  const handleSelectPet = (val) => {
142
+ var _a2, _b2;
143
+ if ((0, import_utils4.isDayBooking)(state)) {
144
+ const { ids, lists } = (0, import_utils4.isOpenDeletePet)(state, val);
145
+ if ((ids == null ? void 0 : ids.length) > 0 && (lists == null ? void 0 : lists.length) > 0) {
146
+ (_b2 = changePetRef.current) == null ? void 0 : _b2.open({
147
+ ids,
148
+ setGlobalState,
149
+ service: ((_a2 = state.service) == null ? void 0 : _a2.value) || [],
150
+ state
151
+ });
152
+ }
153
+ }
131
154
  setGlobalState({
132
155
  pet: {
133
156
  ...state.pet,
@@ -259,7 +282,7 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
259
282
  }, [isWalkIn, formId, (_q = state.client.value) == null ? void 0 : _q.id, currentPetValue, boardConfig]);
260
283
  const petRender = (0, import_react.useMemo)(() => {
261
284
  var _a2, _b2, _c2;
262
- if ((state == null ? void 0 : state.disabledEdit) || boardConfig.type !== "form") {
285
+ if (((state == null ? void 0 : state.disabledEdit) || boardConfig.type !== "form") && !(0, import_utils4.isDayBooking)(state)) {
263
286
  return null;
264
287
  }
265
288
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !(currentPetValue == null ? void 0 : currentPetValue.length) && !isHasFormRecord && !isWalkIn && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
@@ -324,7 +347,8 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
324
347
  handleAddPet,
325
348
  currentPetValue,
326
349
  formId,
327
- (_x = (_w = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _w.holder) == null ? void 0 : _x.data_range
350
+ (_x = (_w = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _w.holder) == null ? void 0 : _x.data_range,
351
+ (_y = state.service) == null ? void 0 : _y.value
328
352
  ]);
329
353
  const handleOpenClient = () => {
330
354
  if (!isWalkIn || (state == null ? void 0 : state.disableEventBookingEdit)) {
@@ -359,11 +383,11 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
359
383
  import_antd.Avatar,
360
384
  {
361
385
  className: "pisell-lowcode__booking-client-avatar",
362
- src: import_utils.image.ali((_y = state.client.value) == null ? void 0 : _y.cover, 100),
386
+ src: import_utils.image.ali((_z = state.client.value) == null ? void 0 : _z.cover, 100),
363
387
  size: 64,
364
388
  icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
365
389
  }
366
- ), 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)), ((_z = state.client.value) == null ? void 0 : _z.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_A = state.client.value) == null ? void 0 : _A.email) : null, ((_B = state.client.value) == null ? void 0 : _B.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_C = state.client.value) == null ? void 0 : _C.phone) : null), !isWalkIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-action-wrap" }, !state.disabledEdit && /* @__PURE__ */ import_react.default.createElement(
390
+ ), 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), !isWalkIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-action-wrap" }, !state.disabledEdit && /* @__PURE__ */ import_react.default.createElement(
367
391
  import_antd.Dropdown.Button,
368
392
  {
369
393
  menu: {
@@ -414,7 +438,7 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
414
438
  showHeader: !state.isBookingCreatePage,
415
439
  modalOpen: state.modalOpen,
416
440
  loading,
417
- autoFocus: !((_F = (_E = (_D = context == null ? void 0 : context.appHelper) == null ? void 0 : _D.utils) == null ? void 0 : _E.isTerminal) == null ? void 0 : _F.call(_E)),
441
+ autoFocus: !((_G = (_F = (_E = context == null ? void 0 : context.appHelper) == null ? void 0 : _E.utils) == null ? void 0 : _F.isTerminal) == null ? void 0 : _G.call(_F)),
418
442
  ref: modalRef,
419
443
  onClose: handleClose,
420
444
  handleSelectClient,
@@ -424,14 +448,16 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
424
448
  formData: state.pet.formData,
425
449
  searchChange,
426
450
  options: renderList,
427
- holder: (_G = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _G.holder,
428
- client: (_H = state == null ? void 0 : state.client) == null ? void 0 : _H.value,
451
+ holder: (_H = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _H.holder,
452
+ client: (_I = state == null ? void 0 : state.client) == null ? void 0 : _I.value,
429
453
  loadMore,
430
454
  showPet: (boardConfig == null ? void 0 : boardConfig.type) === "form",
431
455
  handleAddPet,
432
- franchiseeLoading
456
+ franchiseeLoading,
457
+ showWalkIn: !(0, import_utils4.isDayBooking)(state)
433
458
  }
434
- )
459
+ ),
460
+ /* @__PURE__ */ import_react.default.createElement(import_ChangePetModal.default, { ref: changePetRef })
435
461
  );
436
462
  });
437
463
  var vertical_default = VerticalClient;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
+ declare const DateRange: ({ state, dispatch, key }: any) => React.JSX.Element;
5
+ export default DateRange;
@@ -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/info/dateRange/index.tsx
30
+ var dateRange_exports = {};
31
+ __export(dateRange_exports, {
32
+ default: () => dateRange_default,
33
+ disabledDate: () => disabledDate
34
+ });
35
+ module.exports = __toCommonJS(dateRange_exports);
36
+ var import_react = __toESM(require("react"));
37
+ var import_icons = require("@ant-design/icons");
38
+ var import_classnames = __toESM(require("classnames"));
39
+ var import_dayjs = __toESM(require("dayjs"));
40
+ var import_materials = require("@pisell/materials");
41
+ var import_index = require("./index.less");
42
+ var disabledDate = (current, position, currentDate) => {
43
+ if (position === "start") {
44
+ return false;
45
+ }
46
+ if (position === "end" && current.endOf("day") && (currentDate == null ? void 0 : currentDate[0])) {
47
+ const endDisabled = currentDate == null ? void 0 : currentDate[0].add(8, "months").format("YYYY-MM-DD");
48
+ return (0, import_dayjs.default)(endDisabled) < current.startOf("day") || current.startOf("day") <= (currentDate == null ? void 0 : currentDate[0]);
49
+ }
50
+ return current && current <= (currentDate == null ? void 0 : currentDate[0]);
51
+ };
52
+ var DateRange = ({ state, dispatch, key }) => {
53
+ const [value, setValue] = (0, import_react.useState)([]);
54
+ (0, import_react.useEffect)(() => {
55
+ var _a, _b;
56
+ const lists = [(_a = state.date) == null ? void 0 : _a.value, (_b = state.date) == null ? void 0 : _b.end_date];
57
+ setValue(lists);
58
+ console.log("lists", lists);
59
+ }, [state.date]);
60
+ const dateChange = (e) => {
61
+ dispatch({
62
+ type: "setDate",
63
+ payload: {
64
+ value: e[0],
65
+ end_date: e[1],
66
+ edit: true
67
+ }
68
+ });
69
+ };
70
+ const formatLocale = (0, import_react.useMemo)(() => {
71
+ const locale = state == null ? void 0 : state.locale;
72
+ const isEn = locale === "en" || locale === "en-US";
73
+ const _format = isEn ? "DD/MM/YYYY" : "YYYY-MM-DD";
74
+ return _format;
75
+ }, [state == null ? void 0 : state.locale, state.date]);
76
+ return (0, import_react.useMemo)(() => {
77
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
78
+ "div",
79
+ {
80
+ className: (0, import_classnames.default)(
81
+ "pisell-lowcode__booking-service-header-date-range",
82
+ {
83
+ "pisell-lowcode__booking-service-header-date-range-terminal": state.isTerminalDayBookingPage
84
+ }
85
+ )
86
+ },
87
+ /* @__PURE__ */ import_react.default.createElement(import_materials.Page, null, /* @__PURE__ */ import_react.default.createElement(
88
+ import_materials.DatePicker.RangePicker,
89
+ {
90
+ key,
91
+ inputReadOnly: true,
92
+ allowClear: false,
93
+ size: "large",
94
+ style: { width: "100%", padding: 0 },
95
+ suffixIcon: !state.disabledEdit ? /* @__PURE__ */ import_react.default.createElement(import_icons.CalendarOutlined, null) : null,
96
+ disabledDate,
97
+ value: [value[0], value[1]],
98
+ onChange: dateChange,
99
+ format: formatLocale,
100
+ isHideCustomSelect: true,
101
+ endDateDays: 1
102
+ }
103
+ ))
104
+ ));
105
+ }, [value, state.disabledEdit, state == null ? void 0 : state.locale]);
106
+ };
107
+ var dateRange_default = DateRange;
108
+ // Annotate the CommonJS export names for ESM import in node:
109
+ 0 && (module.exports = {
110
+ disabledDate
111
+ });
@@ -0,0 +1,21 @@
1
+ .pisell-lowcode__booking-service-header-date-range {
2
+ flex: 1.1;
3
+ margin-top: 16px;
4
+
5
+ .pisell-date-range-picker > div > div {
6
+ height: 44px !important;
7
+ cursor: pointer !important;
8
+ input {
9
+ cursor: pointer;
10
+ }
11
+ }
12
+
13
+ .anticon-calendar {
14
+ font-size: 20px;
15
+ color: #667085;
16
+ }
17
+ }
18
+
19
+ .pisell-lowcode__booking-service-header-date-range-terminal {
20
+ margin-top: 0;
21
+ }
@@ -51,13 +51,16 @@ var import_notes = __toESM(require("./notes"));
51
51
  var import_index = require("./index.less");
52
52
  var import_classnames = __toESM(require("classnames"));
53
53
  var import_antd = require("antd");
54
+ var import_service2 = require("./service2");
55
+ var import_utils3 = require("./service2/utils");
54
56
  var import_useCreateBookingPageHeader = __toESM(require("../hooks/useCreateBookingPageHeader"));
55
57
  var defaultModules = {
56
58
  client: 1,
57
59
  date: 1,
58
60
  service: 1,
59
61
  holder: 1,
60
- note: 1
62
+ note: 1,
63
+ service2: 0
61
64
  };
62
65
  import_utils.locales.init(import_locales.default, localStorage.getItem("umi_locale") || "en");
63
66
  var Info = (0, import_model.Provider)((props) => {
@@ -121,11 +124,14 @@ var Info = (0, import_model.Provider)((props) => {
121
124
  globalState == null ? void 0 : globalState.renderType
122
125
  ]);
123
126
  const notes = (0, import_react.useMemo)(() => {
124
- var _a2, _b2;
127
+ var _a2, _b2, _c2, _d2;
125
128
  if (!modules.note) {
126
129
  return null;
127
130
  }
128
- return (globalState == null ? void 0 : globalState.bookingId) ? globalState.renderType === "eventBooking" || globalState.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_notes.default, null) : null : /* @__PURE__ */ import_react.default.createElement(import_addNote.default, { value: (_b2 = (_a2 = modal.state) == null ? void 0 : _a2.notes) == null ? void 0 : _b2.orderNote, onChange: addNote });
131
+ if ((0, import_utils3.isDayBooking)(globalState)) {
132
+ return /* @__PURE__ */ import_react.default.createElement(import_addNote.default, { value: (_b2 = (_a2 = modal.state) == null ? void 0 : _a2.notes) == null ? void 0 : _b2.orderNote, onChange: addNote });
133
+ }
134
+ return (globalState == null ? void 0 : globalState.bookingId) ? globalState.renderType === "eventBooking" || globalState.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_notes.default, null) : null : /* @__PURE__ */ import_react.default.createElement(import_addNote.default, { value: (_d2 = (_c2 = modal.state) == null ? void 0 : _c2.notes) == null ? void 0 : _d2.orderNote, onChange: addNote });
129
135
  }, [
130
136
  modules.note,
131
137
  globalState == null ? void 0 : globalState.bookingId,
@@ -150,7 +156,7 @@ var Info = (0, import_model.Provider)((props) => {
150
156
  },
151
157
  bodyClassName: (0, import_classnames.default)("booking-info-warp", {
152
158
  ["create-booking-page-info-wrap"]: isBookingCreatePage,
153
- ["create-booking-page-info-wrap-create"]: isBookingCreatePageCreateMode
159
+ ["create-booking-page-info-wrap-create"]: isBookingCreatePageCreateMode && !(0, import_utils3.isTerminalDayBooking)(modal.state)
154
160
  })
155
161
  },
156
162
  /* @__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(
@@ -163,6 +169,7 @@ var Info = (0, import_model.Provider)((props) => {
163
169
  style: { paddingTop: 20 }
164
170
  },
165
171
  modules.service ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, modal.state.date.value ? /* @__PURE__ */ import_react.default.createElement(import_service.default, null) : null) : null,
172
+ modules.service2 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, modal.state.date.value ? /* @__PURE__ */ import_react.default.createElement(import_service2.Service2Cart, null) : null) : null,
166
173
  notes,
167
174
  slot ? slot : null
168
175
  ))
@@ -76,6 +76,9 @@ var { Provider, Context } = (0, import_utils.miniRedux)({
76
76
  _val.disabledEdit = false;
77
77
  }
78
78
  state.setGlobalState(_val);
79
+ },
80
+ setActiveCartId(state, payload) {
81
+ state.setGlobalState(payload);
79
82
  }
80
83
  },
81
84
  reducers: {
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
+ export default _default;
@@ -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/info/pet/ChangePetModal/index.tsx
30
+ var ChangePetModal_exports = {};
31
+ __export(ChangePetModal_exports, {
32
+ default: () => ChangePetModal_default
33
+ });
34
+ module.exports = __toCommonJS(ChangePetModal_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
37
+ var import_materials = require("@pisell/materials");
38
+ var import_status = require("../../service2/status");
39
+ var import_index = require("./index.less");
40
+ var ChangePetModal = (props, ref) => {
41
+ const [open, setOpen] = (0, import_react.useState)(false);
42
+ const [params, setParams] = (0, import_react.useState)({});
43
+ (0, import_react.useImperativeHandle)(ref, () => ({
44
+ open: (e) => {
45
+ setParams(e);
46
+ setOpen(true);
47
+ }
48
+ }));
49
+ const handleProduct = (type) => {
50
+ const { ids, service, dispatch, setGlobalState, state } = params;
51
+ let _service = [...service || []];
52
+ if (type === "ok") {
53
+ _service = _service == null ? void 0 : _service.map((item) => {
54
+ if (ids == null ? void 0 : ids.includes(item._extend.holder_id)) {
55
+ return {
56
+ ...item,
57
+ _extend: {
58
+ ...item._extend || {},
59
+ holder_id: 0
60
+ }
61
+ };
62
+ }
63
+ return item;
64
+ });
65
+ _service = _service.filter(
66
+ (item) => {
67
+ var _a;
68
+ return !(((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.holder_id) === 0 && import_status.appointmentTypes.includes(item.extension_type));
69
+ }
70
+ );
71
+ } else {
72
+ _service = _service.filter(
73
+ (item) => !ids.includes(item._extend.holder_id)
74
+ );
75
+ }
76
+ if (dispatch) {
77
+ dispatch({
78
+ type: "setService",
79
+ payload: {
80
+ value: [..._service],
81
+ edit: true
82
+ }
83
+ });
84
+ } else {
85
+ setGlobalState({
86
+ service: {
87
+ ...state.service,
88
+ edit: true,
89
+ value: [..._service]
90
+ }
91
+ });
92
+ }
93
+ setOpen(false);
94
+ };
95
+ return /* @__PURE__ */ import_react.default.createElement(
96
+ import_materials.PisellModal.Information,
97
+ {
98
+ open,
99
+ platform: "pc",
100
+ width: 432,
101
+ title: import_utils.locales.getText("pisell2.text.change.pet.title"),
102
+ describe: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-change-pet-modal-content" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.text.change.pet.content")), /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.text.change.pet.content1"))),
103
+ cancelText: import_utils.locales.getText("pisell2.text.change.pet.cancel"),
104
+ okText: import_utils.locales.getText("pisell2.text.change.pet.confirm"),
105
+ closable: true,
106
+ onOk: () => handleProduct("ok"),
107
+ onCancel: () => handleProduct("cancel")
108
+ }
109
+ );
110
+ };
111
+ var ChangePetModal_default = (0, import_react.forwardRef)(ChangePetModal);
@@ -0,0 +1,4 @@
1
+ .pisell2-change-pet-modal-content {
2
+ display: flex;
3
+ flex-direction: column;
4
+ }
@@ -43,6 +43,8 @@ var import_format = require("../../forms/format");
43
43
  var import_utils2 = require("../../utils");
44
44
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
45
45
  var import_ahooks = require("ahooks");
46
+ var import_utils3 = require("../../info/service2/utils");
47
+ var import_ChangePetModal = __toESM(require("./ChangePetModal"));
46
48
  var defaultParams = {
47
49
  skip: 1,
48
50
  num: 20,
@@ -65,6 +67,7 @@ var Pet = (props) => {
65
67
  const context = (0, import_useEngineContext.default)();
66
68
  const { isTerminal } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
67
69
  const [params, setParams] = (0, import_react.useState)(defaultParams);
70
+ const changePetRef = (0, import_react.useRef)(null);
68
71
  state = state || (props == null ? void 0 : props.state);
69
72
  dispatch = dispatch || (props == null ? void 0 : props.dispatch);
70
73
  const boardParams = (0, import_react.useMemo)(() => {
@@ -208,10 +211,14 @@ var Pet = (props) => {
208
211
  let cur = [...state.pet.value[petForm.form_id] || []];
209
212
  let options = ((_c2 = (_b2 = (_a2 = state.pet) == null ? void 0 : _a2.formData) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.options) || [];
210
213
  if (res.type === "delete") {
211
- cur = cur.filter(
212
- (d) => d.form_record_id !== item.form_record_id
213
- );
214
+ const isDay = (0, import_utils3.isDayBooking)(state);
215
+ if (isDay && state.disabledEdit)
216
+ return cur;
217
+ cur = cur.filter((d) => d.form_record_id !== item.form_record_id);
214
218
  addCallback();
219
+ if (isDay) {
220
+ handleDayChange(item);
221
+ }
215
222
  } else {
216
223
  let obj = {
217
224
  customer: item == null ? void 0 : item.customer,
@@ -272,27 +279,29 @@ var Pet = (props) => {
272
279
  }
273
280
  });
274
281
  });
275
- const onValueChange = (0, import_ahooks.useMemoizedFn)(({ values, edit = true, options }) => {
276
- var _a2, _b2;
277
- const updateObj = {};
278
- if (options) {
279
- updateObj.formData = [
280
- {
281
- ...(_b2 = (_a2 = state.pet) == null ? void 0 : _a2.formData) == null ? void 0 : _b2[0],
282
- options
282
+ const onValueChange = (0, import_ahooks.useMemoizedFn)(
283
+ ({ values, edit = true, options }) => {
284
+ var _a2, _b2;
285
+ const updateObj = {};
286
+ if (options) {
287
+ updateObj.formData = [
288
+ {
289
+ ...(_b2 = (_a2 = state.pet) == null ? void 0 : _a2.formData) == null ? void 0 : _b2[0],
290
+ options
291
+ }
292
+ ];
293
+ updateObj.pets = options;
294
+ }
295
+ dispatch({
296
+ type: "setPet",
297
+ payload: {
298
+ edit,
299
+ value: values,
300
+ ...updateObj
283
301
  }
284
- ];
285
- updateObj.pets = options;
302
+ });
286
303
  }
287
- dispatch({
288
- type: "setPet",
289
- payload: {
290
- edit,
291
- value: values,
292
- ...updateObj
293
- }
294
- });
295
- });
304
+ );
296
305
  (0, import_react.useEffect)(() => {
297
306
  var _a2, _b2, _c2, _d2;
298
307
  if (clientChangeNotSetPet)
@@ -363,6 +372,29 @@ var Pet = (props) => {
363
372
  import_utils.locales.getText("pisell2.text.load-more")
364
373
  )) : null;
365
374
  }, [loadLoading, params, (_l = (_k = (_j = (_i = state.pet) == null ? void 0 : _i.formData) == null ? void 0 : _j[0]) == null ? void 0 : _k.options) == null ? void 0 : _l.length]);
375
+ const handleDayChange = (e) => {
376
+ var _a2, _b2;
377
+ const id = e == null ? void 0 : e.form_record_id;
378
+ const service = (_a2 = state.service.value) == null ? void 0 : _a2.filter(
379
+ (item) => item._extend.holder_id === id
380
+ );
381
+ if (id && (service == null ? void 0 : service.length)) {
382
+ changePetRef == null ? void 0 : changePetRef.current.open({
383
+ ids: [id],
384
+ dispatch,
385
+ service: ((_b2 = state.service) == null ? void 0 : _b2.value) || []
386
+ });
387
+ }
388
+ };
389
+ const dayCustomSelect = (0, import_react.useMemo)(() => {
390
+ const isDay = (0, import_utils3.isDayBooking)(state);
391
+ if (isDay) {
392
+ return {
393
+ handleDayChange
394
+ };
395
+ }
396
+ return {};
397
+ }, [state.renderType, state.service.value]);
366
398
  return (0, import_react.useMemo)(() => {
367
399
  var _a2;
368
400
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-pet-wraps" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: valueLoading, active: true, round: true }, /* @__PURE__ */ import_react.default.createElement(
@@ -372,7 +404,10 @@ var Pet = (props) => {
372
404
  watch: { value: state.pet.value },
373
405
  addCallback: (formDataConfig, data) => {
374
406
  var _a3, _b2, _c2;
375
- setPetOptions([{ ...data, form_id: formDataConfig == null ? void 0 : formDataConfig.form_id }, ...((_c2 = (_b2 = (_a3 = state.pet) == null ? void 0 : _a3.formData) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.options) || []]);
407
+ setPetOptions([
408
+ { ...data, form_id: formDataConfig == null ? void 0 : formDataConfig.form_id },
409
+ ...((_c2 = (_b2 = (_a3 = state.pet) == null ? void 0 : _a3.formData) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.options) || []
410
+ ]);
376
411
  },
377
412
  loading: valueLoading,
378
413
  forms: state.pet.formData,
@@ -398,7 +433,8 @@ var Pet = (props) => {
398
433
  return true;
399
434
  },
400
435
  handleOpenModal,
401
- previewItemTitleRender
436
+ previewItemTitleRender,
437
+ ...dayCustomSelect
402
438
  },
403
439
  optionRender: (item) => {
404
440
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
@@ -442,7 +478,7 @@ var Pet = (props) => {
442
478
  ...addButtonProps
443
479
  }
444
480
  }
445
- )));
481
+ )), /* @__PURE__ */ import_react.default.createElement(import_ChangePetModal.default, { ref: changePetRef }));
446
482
  }, [
447
483
  valueLoading,
448
484
  hideTitle,