@pisell/private-materials 3.0.155 → 3.0.157-gray

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) 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 +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/booking/addons/index.js +10 -7
  12. package/es/components/booking/addons/model.d.ts +2 -1
  13. package/es/components/booking/components/TabProduct/index.js +1 -1
  14. package/es/components/booking/components/customSelect/index.js +5 -1
  15. package/es/components/booking/components/drawer/index.d.ts +3 -3
  16. package/es/components/booking/components/drawer/index.js +15 -13
  17. package/es/components/booking/components/drawer/index.less +8 -6
  18. package/es/components/booking/components/footer/index.js +24 -10
  19. package/es/components/booking/dashboard/index.d.ts +20 -0
  20. package/es/components/booking/dashboard/index.js +253 -0
  21. package/es/components/booking/dashboard/serve.d.ts +1 -0
  22. package/es/components/booking/dashboard/serve.js +27 -0
  23. package/es/components/booking/deposit/EditDepositModal/index.less +3 -0
  24. package/es/components/booking/forms/forms.d.ts +1 -0
  25. package/es/components/booking/forms/forms.js +4 -2
  26. package/es/components/booking/forms/model.d.ts +2 -1
  27. package/es/components/booking/forms/single/index.d.ts +1 -1
  28. package/es/components/booking/forms/single/index.js +4 -3
  29. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  30. package/es/components/booking/info/addServiceVariant/index.js +33 -0
  31. package/es/components/booking/info/client/index.js +35 -15
  32. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +4 -4
  33. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +59 -32
  34. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +3 -0
  35. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.js +14 -0
  36. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +4 -3
  37. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +41 -35
  38. package/es/components/booking/info/clientVariant/vertical/index.d.ts +1 -1
  39. package/es/components/booking/info/clientVariant/vertical/index.js +32 -14
  40. package/es/components/booking/info/clientVariant/vertical/index.less +37 -11
  41. package/es/components/booking/info/date/index.js +1 -0
  42. package/es/components/booking/info/date/index.less +2 -0
  43. package/es/components/booking/info/header/index.js +13 -12
  44. package/es/components/booking/info/index.less +9 -0
  45. package/es/components/booking/info/main.js +10 -1
  46. package/es/components/booking/info/pet/index.js +1 -1
  47. package/es/components/booking/info/service/addService/index.d.ts +8 -2
  48. package/es/components/booking/info/service/addService/index.js +92 -44
  49. package/es/components/booking/info/service/addService/index.less +27 -1
  50. package/es/components/booking/info/service/addTimeModal/index.js +1 -0
  51. package/es/components/booking/info/service/addTimeModal/index.less +1 -1
  52. package/es/components/booking/info/service/editService/index.js +14 -15
  53. package/es/components/booking/info/service/serviceList/index.js +2 -1
  54. package/es/components/booking/info/utils.js +1 -1
  55. package/es/components/booking/info2/index.js +10 -1
  56. package/es/components/booking/locales.d.ts +48 -0
  57. package/es/components/booking/locales.js +51 -3
  58. package/es/components/booking/model.d.ts +4 -0
  59. package/es/components/booking/notes/index.d.ts +1 -1
  60. package/es/components/booking/notes/model.d.ts +2 -1
  61. package/es/components/booking/payments/model.d.ts +2 -1
  62. package/es/components/booking/utils.d.ts +1 -1
  63. package/es/components/booking/utils.js +54 -51
  64. package/es/components/schedules/index.d.ts +1 -1
  65. package/es/components/schedules/model.d.ts +2 -1
  66. package/es/index.d.ts +2 -0
  67. package/es/index.js +3 -1
  68. package/lib/components/booking/addons/index.js +2 -5
  69. package/lib/components/booking/addons/model.d.ts +2 -1
  70. package/lib/components/booking/components/TabProduct/index.js +1 -1
  71. package/lib/components/booking/components/customSelect/index.js +2 -1
  72. package/lib/components/booking/components/drawer/index.d.ts +3 -3
  73. package/lib/components/booking/components/drawer/index.js +13 -11
  74. package/lib/components/booking/components/drawer/index.less +8 -6
  75. package/lib/components/booking/components/footer/index.js +19 -15
  76. package/lib/components/booking/dashboard/index.d.ts +20 -0
  77. package/lib/components/booking/dashboard/index.js +251 -0
  78. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  79. package/lib/components/booking/dashboard/serve.js +33 -0
  80. package/lib/components/booking/deposit/EditDepositModal/index.less +3 -0
  81. package/lib/components/booking/forms/forms.d.ts +1 -0
  82. package/lib/components/booking/forms/forms.js +5 -2
  83. package/lib/components/booking/forms/model.d.ts +2 -1
  84. package/lib/components/booking/forms/single/index.d.ts +1 -1
  85. package/lib/components/booking/forms/single/index.js +4 -2
  86. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  87. package/lib/components/booking/info/addServiceVariant/index.js +58 -0
  88. package/lib/components/booking/info/client/index.js +33 -21
  89. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +4 -4
  90. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +33 -13
  91. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +3 -0
  92. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.js +36 -0
  93. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +4 -3
  94. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +43 -11
  95. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +1 -1
  96. package/lib/components/booking/info/clientVariant/vertical/index.js +121 -88
  97. package/lib/components/booking/info/clientVariant/vertical/index.less +37 -11
  98. package/lib/components/booking/info/date/index.js +1 -0
  99. package/lib/components/booking/info/date/index.less +2 -0
  100. package/lib/components/booking/info/header/index.js +14 -12
  101. package/lib/components/booking/info/index.less +9 -0
  102. package/lib/components/booking/info/main.js +14 -1
  103. package/lib/components/booking/info/pet/index.js +2 -1
  104. package/lib/components/booking/info/service/addService/index.d.ts +8 -2
  105. package/lib/components/booking/info/service/addService/index.js +69 -30
  106. package/lib/components/booking/info/service/addService/index.less +27 -1
  107. package/lib/components/booking/info/service/addTimeModal/index.js +1 -0
  108. package/lib/components/booking/info/service/addTimeModal/index.less +1 -1
  109. package/lib/components/booking/info/service/editService/index.js +17 -13
  110. package/lib/components/booking/info/service/serviceList/index.js +4 -3
  111. package/lib/components/booking/info/utils.js +1 -1
  112. package/lib/components/booking/info2/index.js +14 -1
  113. package/lib/components/booking/locales.d.ts +48 -0
  114. package/lib/components/booking/locales.js +51 -3
  115. package/lib/components/booking/model.d.ts +4 -0
  116. package/lib/components/booking/notes/index.d.ts +1 -1
  117. package/lib/components/booking/notes/model.d.ts +2 -1
  118. package/lib/components/booking/payments/model.d.ts +2 -1
  119. package/lib/components/booking/utils.d.ts +1 -1
  120. package/lib/components/booking/utils.js +57 -22
  121. package/lib/components/schedules/index.d.ts +1 -1
  122. package/lib/components/schedules/model.d.ts +2 -1
  123. package/lib/index.d.ts +2 -0
  124. package/lib/index.js +6 -0
  125. package/lowcode/booking-dashboard/meta.ts +137 -0
  126. package/lowcode/booking-vertical-add-service/meta.ts +124 -0
  127. package/lowcode/vertical-add-service/meta.ts +71 -0
  128. package/package.json +3 -3
@@ -37,6 +37,8 @@ var import_User01 = __toESM(require("@pisell/icon/es/User01"));
37
37
  var import_PlusCircle = __toESM(require("@pisell/icon/es/PlusCircle"));
38
38
  var import_antd = require("antd");
39
39
  var import_utils = require("@pisell/utils");
40
+ var import_ahooks = require("ahooks");
41
+ var import_classnames = __toESM(require("classnames"));
40
42
  var import_useClientFn = __toESM(require("../hooks/useClientFn"));
41
43
  var import_SelectDrawer = __toESM(require("./SelectDrawer"));
42
44
  var import_pet = __toESM(require("../../pet"));
@@ -44,8 +46,8 @@ var import_index = require("./index.less");
44
46
  var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
45
47
  var import_format = require("../../../forms/format");
46
48
  var import_utils2 = require("../../utils");
47
- var import_ahooks = require("ahooks");
48
- var VerticalClient = (props) => {
49
+ var import_utils3 = require("../../../utils");
50
+ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
49
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;
50
52
  const { globalState, setGlobalState } = props;
51
53
  const modalRef = (0, import_react.useRef)();
@@ -55,6 +57,7 @@ var VerticalClient = (props) => {
55
57
  const context = (0, import_useEngineContext.default)();
56
58
  const [isHasFormRecord, setIsHasFormRecord] = (0, import_react.useState)(true);
57
59
  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");
60
+ import_utils3.request.setRequest(context.appHelper.utils.request);
58
61
  state.isFranchisee = isFranchisee;
59
62
  stateRef.current = state;
60
63
  const {
@@ -175,21 +178,23 @@ var VerticalClient = (props) => {
175
178
  }
176
179
  });
177
180
  };
178
- const previewItemTitleRender = (0, import_ahooks.useMemoizedFn)((value, index, values) => {
179
- var _a2, _b2, _c2, _d2, _e2, _f2;
180
- const title = getNickname(value.customer) || ((_a2 = value == null ? void 0 : value.customer) == null ? void 0 : _a2.email) || ((_b2 = value == null ? void 0 : value.customer) == null ? void 0 : _b2.phone) || "";
181
- if (((_c2 = value == null ? void 0 : value.customer) == null ? void 0 : _c2.id) === prevCustomerId.current) {
181
+ const previewItemTitleRender = (0, import_ahooks.useMemoizedFn)(
182
+ (value, index, values) => {
183
+ var _a2, _b2, _c2, _d2, _e2, _f2;
184
+ const title = getNickname(value.customer) || ((_a2 = value == null ? void 0 : value.customer) == null ? void 0 : _a2.email) || ((_b2 = value == null ? void 0 : value.customer) == null ? void 0 : _b2.phone) || "";
185
+ if (((_c2 = value == null ? void 0 : value.customer) == null ? void 0 : _c2.id) === prevCustomerId.current) {
186
+ if (values.length === index + 1) {
187
+ prevCustomerId.current = null;
188
+ }
189
+ return null;
190
+ }
191
+ prevCustomerId.current = (_d2 = value == null ? void 0 : value.customer) == null ? void 0 : _d2.id;
182
192
  if (values.length === index + 1) {
183
193
  prevCustomerId.current = null;
184
194
  }
185
- return null;
195
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-pet-title" }, title, " ' ", ((_f2 = (_e2 = state.pet.formData) == null ? void 0 : _e2[0]) == null ? void 0 : _f2.title) || "");
186
196
  }
187
- prevCustomerId.current = (_d2 = value == null ? void 0 : value.customer) == null ? void 0 : _d2.id;
188
- if (values.length === index + 1) {
189
- prevCustomerId.current = null;
190
- }
191
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-pet-title" }, title, " ' ", ((_f2 = (_e2 = state.pet.formData) == null ? void 0 : _e2[0]) == null ? void 0 : _f2.title) || "");
192
- });
197
+ );
193
198
  const isShowAddBtn = (0, import_react.useMemo)(() => {
194
199
  var _a2, _b2, _c2, _d2, _e2, _f2;
195
200
  const formId2 = (_c2 = (_b2 = (_a2 = state.pet) == null ? void 0 : _a2.formData) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.form_id;
@@ -251,13 +256,7 @@ var VerticalClient = (props) => {
251
256
  };
252
257
  getData();
253
258
  }
254
- }, [
255
- isWalkIn,
256
- formId,
257
- (_q = state.client.value) == null ? void 0 : _q.id,
258
- currentPetValue,
259
- boardConfig
260
- ]);
259
+ }, [isWalkIn, formId, (_q = state.client.value) == null ? void 0 : _q.id, currentPetValue, boardConfig]);
261
260
  const petRender = (0, import_react.useMemo)(() => {
262
261
  var _a2, _b2, _c2;
263
262
  if ((state == null ? void 0 : state.disabledEdit) || boardConfig.type !== "form") {
@@ -284,7 +283,9 @@ var VerticalClient = (props) => {
284
283
  handleSelectPet({
285
284
  [formId]: (0, import_format.formatAddFormValues)({
286
285
  clientId: (_b3 = (_a4 = state == null ? void 0 : state.client) == null ? void 0 : _a4.value) == null ? void 0 : _b3.id,
287
- value: [{ ...addRecord, customer: (_c3 = state == null ? void 0 : state.client) == null ? void 0 : _c3.value }],
286
+ value: [
287
+ { ...addRecord, customer: (_c3 = state == null ? void 0 : state.client) == null ? void 0 : _c3.value }
288
+ ],
288
289
  data_range: (_e2 = (_d2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _d2.holder) == null ? void 0 : _e2.data_range
289
290
  })
290
291
  });
@@ -325,80 +326,112 @@ var VerticalClient = (props) => {
325
326
  formId,
326
327
  (_x = (_w = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _w.holder) == null ? void 0 : _x.data_range
327
328
  ]);
328
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-vertical-client-wrap" }, /* @__PURE__ */ import_react.default.createElement(
329
+ const handleOpenClient = () => {
330
+ if (!isWalkIn || (state == null ? void 0 : state.disableEventBookingEdit)) {
331
+ return;
332
+ }
333
+ handleOpenClientModal();
334
+ };
335
+ (0, import_react.useImperativeHandle)(ref, () => {
336
+ var _a2, _b2;
337
+ return {
338
+ open: handleOpenClientModal,
339
+ close: (_a2 = modalRef.current) == null ? void 0 : _a2.close,
340
+ setSearch: (_b2 = modalRef.current) == null ? void 0 : _b2.setSearch
341
+ };
342
+ });
343
+ return /* @__PURE__ */ import_react.default.createElement(
329
344
  "div",
330
345
  {
331
- className: "pisell-lowcode__booking-vertical-client",
332
- onClick: () => {
333
- if (!isWalkIn || (state == null ? void 0 : state.disableEventBookingEdit)) {
334
- return;
335
- }
336
- handleOpenClientModal();
337
- }
346
+ className: (0, import_classnames.default)("pisell-lowcode__booking-vertical-client-wrap", {
347
+ ["create-booking-page-vertical-client-wrap"]: state.isBookingCreatePage
348
+ })
338
349
  },
339
- /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: state.loading, active: true, round: true }, /* @__PURE__ */ import_react.default.createElement(
340
- import_antd.Avatar,
341
- {
342
- className: "pisell-lowcode__booking-client-avatar",
343
- src: import_utils.image.ali((_y = state.client.value) == null ? void 0 : _y.cover, 100),
344
- size: 64,
345
- icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
346
- }
347
- ), 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(
348
- import_antd.Dropdown.Button,
350
+ /* @__PURE__ */ import_react.default.createElement(
351
+ "div",
349
352
  {
350
- menu: {
351
- items: menus,
352
- onClick: menuChange
353
+ className: (0, import_classnames.default)("pisell-lowcode__booking-vertical-client", {
354
+ "pisell-lowcode__booking-vertical-client-walkin": isWalkIn
355
+ }),
356
+ onClick: handleOpenClient
357
+ },
358
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: false, active: true, round: true }, /* @__PURE__ */ import_react.default.createElement(
359
+ import_antd.Avatar,
360
+ {
361
+ className: "pisell-lowcode__booking-client-avatar",
362
+ src: import_utils.image.ali((_y = state.client.value) == null ? void 0 : _y.cover, 100),
363
+ size: 64,
364
+ icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
365
+ }
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(
367
+ import_antd.Dropdown.Button,
368
+ {
369
+ menu: {
370
+ items: menus,
371
+ onClick: menuChange
372
+ },
373
+ placement: "bottomRight",
374
+ onClick: () => handleOpenClientModal()
375
+ },
376
+ import_utils.locales.getText("pisell2.text.variant-client-change")
377
+ ), /* @__PURE__ */ import_react.default.createElement(
378
+ import_antd.Button,
379
+ {
380
+ onClick: (e) => {
381
+ e.stopPropagation();
382
+ handleViewClient();
383
+ }
353
384
  },
354
- placement: "bottomRight",
355
- onClick: () => handleOpenClientModal()
385
+ import_utils.locales.getText("pisell2.text.view-profile")
386
+ )))
387
+ ),
388
+ /* @__PURE__ */ import_react.default.createElement(
389
+ "div",
390
+ {
391
+ className: (0, import_classnames.default)("pisell-lowcode__booking-vertical-pet", {
392
+ "pisell-lowcode__booking-vertical-pet-walkin": isWalkIn
393
+ }),
394
+ onClick: handleOpenClient
356
395
  },
357
- import_utils.locales.getText("pisell2.text.variant-client-change")
358
- ), /* @__PURE__ */ import_react.default.createElement(
396
+ petRender
397
+ ),
398
+ isShowAddBtn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-vertical-footer" }, /* @__PURE__ */ import_react.default.createElement(
359
399
  import_antd.Button,
360
400
  {
361
- onClick: (e) => {
362
- e.stopPropagation();
363
- handleViewClient();
364
- }
365
- },
366
- import_utils.locales.getText("pisell2.text.view-profile")
367
- )))
368
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-vertical-pet" }, petRender), isShowAddBtn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-vertical-footer" }, /* @__PURE__ */ import_react.default.createElement(
369
- import_antd.Button,
370
- {
371
- onClick: () => {
372
- const currentClientSearchValue = getCurrentClientSearchValue();
373
- modalRef.current.setSearch(currentClientSearchValue);
374
- handleOpenClientModal(currentClientSearchValue);
401
+ onClick: () => {
402
+ const currentClientSearchValue = getCurrentClientSearchValue();
403
+ modalRef.current.setSearch(currentClientSearchValue);
404
+ handleOpenClientModal(currentClientSearchValue);
405
+ },
406
+ block: true,
407
+ size: "large"
375
408
  },
376
- block: true,
377
- size: "large"
378
- },
379
- import_utils.locales.getText("pisell2.text.select")
380
- )), /* @__PURE__ */ import_react.default.createElement(
381
- import_SelectDrawer.default,
382
- {
383
- modalOpen: state.modalOpen,
384
- loading,
385
- 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)),
386
- ref: modalRef,
387
- onClose: handleClose,
388
- handleSelectClient,
389
- handleCreateItem,
390
- childrenValue: state.pet.value,
391
- handleSelectPet,
392
- formData: state.pet.formData,
393
- searchChange,
394
- options: renderList,
395
- holder: (_G = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _G.holder,
396
- client: (_H = state == null ? void 0 : state.client) == null ? void 0 : _H.value,
397
- loadMore,
398
- showPet: (boardConfig == null ? void 0 : boardConfig.type) === "form",
399
- handleAddPet,
400
- franchiseeLoading
401
- }
402
- ));
403
- };
409
+ import_utils.locales.getText("pisell2.text.select")
410
+ )),
411
+ /* @__PURE__ */ import_react.default.createElement(
412
+ import_SelectDrawer.default,
413
+ {
414
+ showHeader: !state.isBookingCreatePage,
415
+ modalOpen: state.modalOpen,
416
+ 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)),
418
+ ref: modalRef,
419
+ onClose: handleClose,
420
+ handleSelectClient,
421
+ handleCreateItem,
422
+ childrenValue: state.pet.value,
423
+ handleSelectPet,
424
+ formData: state.pet.formData,
425
+ searchChange,
426
+ 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,
429
+ loadMore,
430
+ showPet: (boardConfig == null ? void 0 : boardConfig.type) === "form",
431
+ handleAddPet,
432
+ franchiseeLoading
433
+ }
434
+ )
435
+ );
436
+ });
404
437
  var vertical_default = VerticalClient;
@@ -3,12 +3,12 @@
3
3
  overflow: hidden;
4
4
  height: 100%;
5
5
  width: 100%;
6
- border-right: 1px solid var(--Gray-200, #EAECF0);
7
- background: var(--Gray-50, #F9FAFB);
6
+ border-right: 1px solid var(--Gray-200, #eaecf0);
7
+ background: var(--Gray-50, #f9fafb);
8
8
  display: flex;
9
9
  flex-direction: column;
10
10
  .pisell-lowcode-drawer-content {
11
- border-right: 1px solid var(--Gray-200, #EAECF0);
11
+ border-right: 1px solid var(--Gray-200, #eaecf0);
12
12
  }
13
13
  .pisell-lowcode__booking-drawer-title-wrap {
14
14
  padding: 24px 24px 0;
@@ -16,17 +16,21 @@
16
16
  .pisell-lowcode__booking-drawer-back {
17
17
  margin-right: 6px;
18
18
  }
19
- .pisell-lowcode__booking-drawer-back, .pisell-lowcode__booking-drawer-title {
19
+ .pisell-lowcode__booking-drawer-back,
20
+ .pisell-lowcode__booking-drawer-title {
20
21
  font-size: 18px;
21
22
  }
22
23
  }
24
+ .pisell-lowcode__booking-vertical-client-walkin {
25
+ cursor: pointer;
26
+ }
23
27
  .pisell-lowcode__booking-vertical-client {
24
28
  padding: 24px 16px;
25
29
  display: flex;
26
30
  flex-direction: column;
27
31
  align-items: center;
28
32
  width: 100%;
29
- border-bottom: 1px solid var(--Gray-200, #EAECF0);
33
+ border-bottom: 1px solid var(--Gray-200, #eaecf0);
30
34
  .pisell-lowcode__booking-client-avatar {
31
35
  margin-bottom: 16px;
32
36
  }
@@ -37,16 +41,17 @@
37
41
  font-weight: 600;
38
42
  line-height: 24px; /* 150% */
39
43
  text-align: center;
44
+ display: inline-block;
40
45
  }
41
46
  .pisell-lowcode__booking-client-desc-item {
42
- color: var(--Gray-400, #98A2B3);
47
+ color: var(--Gray-400, #98a2b3);
43
48
  font-size: 14px;
44
49
  font-style: normal;
45
50
  font-weight: 400;
46
51
  line-height: 20px; /* 142.857% */
47
52
  text-align: center;
48
53
  max-width: 200px;
49
- word-break:break-word
54
+ word-break: break-word;
50
55
  }
51
56
  .pisell-lowcode__booking-client-action-wrap {
52
57
  display: flex;
@@ -56,11 +61,23 @@
56
61
  }
57
62
  }
58
63
 
64
+ .pisell-lowcode__booking-client-info-desc {
65
+ display: flex;
66
+ flex-direction: column;
67
+ justify-content: center;
68
+ div > span {
69
+ cursor: pointer;
70
+ }
71
+ }
72
+
59
73
  .pisell-lowcode__booking-vertical-pet {
60
74
  padding: 0 24px 24px;
61
- flex:1;
75
+ flex: 1;
62
76
  overflow: auto;
63
77
  }
78
+ .pisell-lowcode__booking-vertical-pet-walkin {
79
+ cursor: pointer;
80
+ }
64
81
  .pisell-lowcode__booking-pet-title {
65
82
  color: var(--Gray-700, #344054);
66
83
  font-size: 14px;
@@ -77,9 +94,10 @@
77
94
  flex-direction: column;
78
95
  align-items: flex-start;
79
96
  gap: 16px;
80
- border-top: 1px solid var(--Gray-200, #EAECF0);
81
- background: var(--Base-White, #FFF);
82
- box-shadow: 0px -4px 8px -2px rgba(16, 24, 40, 0.10), 0px -2px 4px -2px rgba(16, 24, 40, 0.06);
97
+ border-top: 1px solid var(--Gray-200, #eaecf0);
98
+ background: var(--Base-White, #fff);
99
+ box-shadow: 0px -4px 8px -2px rgba(16, 24, 40, 0.1),
100
+ 0px -2px 4px -2px rgba(16, 24, 40, 0.06);
83
101
  }
84
102
  .pisell-lowcode__create-form-wrap {
85
103
  display: flex;
@@ -98,4 +116,12 @@
98
116
  font-weight: 400;
99
117
  line-height: 24px;
100
118
  }
119
+ }
120
+ .create-booking-page-vertical-client-wrap {
121
+ .pisell-lowcode__booking-drawer-title-wrap {
122
+ padding: 16px 16px 0 !important;
123
+ }
124
+ .pisell-lowcode-input-affix-wrapper {
125
+ margin-top: 0 !important;
126
+ }
101
127
  }
@@ -113,6 +113,7 @@ var DateCom = () => {
113
113
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-body-select-date" }, /* @__PURE__ */ import_react.default.createElement(
114
114
  import_antd.DatePicker,
115
115
  {
116
+ inputReadOnly: true,
116
117
  allowClear: false,
117
118
  size: "large",
118
119
  style: { width: "100%", padding: 0 },
@@ -1,9 +1,11 @@
1
1
  .pisell-lowcode__booking-body-select-date {
2
2
  padding: 24px 0 8px;
3
3
  font-weight: 550;
4
+ cursor: pointer;
4
5
 
5
6
  .pisell-lowcode-picker-input>input {
6
7
  font-weight: 550;
8
+ cursor: pointer;
7
9
  }
8
10
 
9
11
  .ant-picker-suffix,
@@ -40,7 +40,7 @@ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContex
40
40
  var import_index = require("./index.less");
41
41
  var import_classnames = __toESM(require("classnames"));
42
42
  var header = ({ state, dispatch }) => {
43
- var _a, _b, _c, _d, _e, _f;
43
+ var _a, _b, _c;
44
44
  const context = (0, import_useEngineContext.default)();
45
45
  const [modalContent, setModalContent] = (0, import_react.useState)({
46
46
  open: false,
@@ -49,6 +49,12 @@ var header = ({ state, dispatch }) => {
49
49
  title: /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { height: 14 } })
50
50
  });
51
51
  const { isTerminal, interaction, store, storage } = (_a = context.appHelper) == null ? void 0 : _a.utils;
52
+ const bookingDetail = (0, import_react.useMemo)(() => {
53
+ return {
54
+ ...state.preliminaryBookingDetail || {},
55
+ ...state.bookingDetail || {}
56
+ };
57
+ }, [state.bookingDetail, state.preliminaryBookingDetail]);
52
58
  const statusList = [
53
59
  {
54
60
  label: import_utils.locales.getText("pisell2.text.status.new"),
@@ -155,12 +161,9 @@ var header = ({ state, dispatch }) => {
155
161
  };
156
162
  const isPaid = (0, import_react.useMemo)(() => {
157
163
  return ["partially_paid", "paid"].find(
158
- (d) => {
159
- var _a2;
160
- return d === ((_a2 = state.bookingDetail) == null ? void 0 : _a2.payment_status);
161
- }
164
+ (d) => d === (bookingDetail == null ? void 0 : bookingDetail.payment_status)
162
165
  );
163
- }, [(_b = state.bookingDetail) == null ? void 0 : _b.payment_status]);
166
+ }, [bookingDetail == null ? void 0 : bookingDetail.payment_status]);
164
167
  const isTicket = (0, import_react.useMemo)(() => {
165
168
  var _a2;
166
169
  return (((_a2 = state.service) == null ? void 0 : _a2.value) || []).some(
@@ -168,10 +171,9 @@ var header = ({ state, dispatch }) => {
168
171
  d.extension_type
169
172
  )
170
173
  );
171
- }, [(_c = state.service) == null ? void 0 : _c.value]);
174
+ }, [(_b = state.service) == null ? void 0 : _b.value]);
172
175
  const paymentProcessingPayment = (type) => {
173
- var _a2;
174
- const payments = ((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.payments) || [];
176
+ const payments = (bookingDetail == null ? void 0 : bookingDetail.payments) || [];
175
177
  const status = ["payment_processing"];
176
178
  const payment_method = ["BANK_DEPOSIT"];
177
179
  if (type === "bank") {
@@ -361,12 +363,12 @@ var header = ({ state, dispatch }) => {
361
363
  className: "booking-header",
362
364
  style: { backgroundColor: currentStatus.color }
363
365
  },
364
- /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-order-sales-channel" }, orderSalesChannel[(_d = state.bookingDetail) == null ? void 0 : _d.order_sales_channel] || ""),
365
- /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-header-line-2" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-header-left" }, import_utils.locales.getText("pisell2.text.status.booking_id"), ":", " ", ((_f = (_e = state.bookingDetail) == null ? void 0 : _e.bookings) == null ? void 0 : _f.booking_id) || "-"), /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-header-right" }, /* @__PURE__ */ import_react.default.createElement(
366
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-order-sales-channel" }, orderSalesChannel[bookingDetail == null ? void 0 : bookingDetail.order_sales_channel] || ""),
367
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-header-line-2" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-header-left" }, import_utils.locales.getText("pisell2.text.status.booking_id"), ":", " ", ((_c = bookingDetail == null ? void 0 : bookingDetail.bookings) == null ? void 0 : _c.booking_id) || "-"), /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-header-right" }, /* @__PURE__ */ import_react.default.createElement(
366
368
  import_antd.Dropdown,
367
369
  {
368
370
  menu: { items, onClick: onSelect },
369
- disabled: state.appointment_status === "cancelled"
371
+ disabled: state.appointment_status === "cancelled" || !state.bookingDetail
370
372
  },
371
373
  /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-header-right-status" }, currentStatus.label, state.appointment_status !== "cancelled" ? /* @__PURE__ */ import_react.default.createElement(import_icons.DownOutlined, { className: "booking-header-right-status-icon" }) : null)
372
374
  )))
@@ -15,4 +15,13 @@
15
15
  // height: 42px;
16
16
  // background: #069456;
17
17
  // }
18
+ }
19
+ #create-booking-page-info-wrap {
20
+ .pisell-lowcode__booking-tab-pane-footer {
21
+ padding: 12px 16px !important;
22
+ }
23
+ }
24
+ .create-booking-page-info-wrap {
25
+ position: initial !important;
26
+ padding: 0 16px !important;
18
27
  }
@@ -49,6 +49,7 @@ var import_date2 = require("./date");
49
49
  var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
50
50
  var import_notes = __toESM(require("./notes"));
51
51
  var import_index = require("./index.less");
52
+ var import_antd = require("antd");
52
53
  var defaultModules = {
53
54
  client: 1,
54
55
  date: 1,
@@ -146,7 +147,19 @@ var Info = (0, import_model.Provider)((props) => {
146
147
  },
147
148
  bodyClassName: "booking-info-warp"
148
149
  },
149
- /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, 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, 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, notes, slot ? slot : null)
150
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, 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(
151
+ import_antd.Skeleton,
152
+ {
153
+ loading: globalState.loading,
154
+ round: true,
155
+ active: true,
156
+ avatar: false,
157
+ style: { paddingTop: 20 }
158
+ },
159
+ 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,
160
+ notes,
161
+ slot ? slot : null
162
+ ))
150
163
  ) : null);
151
164
  });
152
165
  var main_default = Info;
@@ -410,7 +410,8 @@ var Pet = (props) => {
410
410
  state.disableEventBookingEdit,
411
411
  params.search,
412
412
  loadMore,
413
- addButtonProps
413
+ addButtonProps,
414
+ state.isBookingCreatePage
414
415
  ]);
415
416
  };
416
417
  var pet_default = Pet;
@@ -1,6 +1,12 @@
1
1
  import React from 'react';
2
+ import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
- declare const Info: ({ onEdit }: {
4
+ interface AddServiceProps {
4
5
  onEdit: any;
5
- }) => React.JSX.Element;
6
+ dispatch?: any;
7
+ state?: any;
8
+ drawerProps?: PisellDrawerProps;
9
+ renderMode?: 'current' | 'drawer';
10
+ }
11
+ declare const Info: (props: AddServiceProps) => React.JSX.Element;
6
12
  export default Info;