@pisell/private-materials 3.0.180 → 3.0.182

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.
@@ -188,6 +188,11 @@ var useClientFn = function useClientFn(_params) {
188
188
  if (state.disabledEdit) {
189
189
  return;
190
190
  }
191
+ if (data === 'createBooking') {
192
+ var _window, _window$shopApi, _window$shopApi$booki;
193
+ (_window = window) === null || _window === void 0 ? void 0 : (_window$shopApi = _window.shopApi) === null || _window$shopApi === void 0 ? void 0 : (_window$shopApi$booki = _window$shopApi.booking) === null || _window$shopApi$booki === void 0 ? void 0 : _window$shopApi$booki.refreshBookingData();
194
+ return;
195
+ }
191
196
  if (data) {
192
197
  handleSelectClient([data]);
193
198
  }
@@ -88,6 +88,6 @@ export var isBooking4Shop = function isBooking4Shop(shopId, renderType) {
88
88
  if (renderType === 'eventBooking') {
89
89
  return false;
90
90
  }
91
- var booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 7797];
91
+ var booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087];
92
92
  return booking4Shops.includes(shopId);
93
93
  };
@@ -162,9 +162,14 @@ var useClientFn = (_params) => {
162
162
  type: "pisell1.handleOpenCustomerModal",
163
163
  data: { id: state.client.value.id },
164
164
  callback: (data) => {
165
+ var _a2, _b2;
165
166
  if (state.disabledEdit) {
166
167
  return;
167
168
  }
169
+ if (data === "createBooking") {
170
+ (_b2 = (_a2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _a2.booking) == null ? void 0 : _b2.refreshBookingData();
171
+ return;
172
+ }
168
173
  if (data) {
169
174
  handleSelectClient([data]);
170
175
  }
@@ -83,7 +83,7 @@ var isBooking4Shop = (shopId, renderType) => {
83
83
  if (renderType === "eventBooking") {
84
84
  return false;
85
85
  }
86
- const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 7797];
86
+ const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087];
87
87
  return booking4Shops.includes(shopId);
88
88
  };
89
89
  // Annotate the CommonJS export names for ESM import in node:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.180",
3
+ "version": "3.0.182",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,8 +60,8 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/date-picker": "1.0.100",
63
- "@pisell/icon": "0.0.11",
64
63
  "@pisell/utils": "1.0.42",
64
+ "@pisell/icon": "0.0.11",
65
65
  "@pisell/materials": "3.0.52"
66
66
  },
67
67
  "peerDependencies": {