@pisell/private-materials 6.12.205 → 6.12.207

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.
@@ -18,7 +18,7 @@ function stripManualProductDiscountFromList(discountList) {
18
18
  */
19
19
  function buildEditedCacheItem(options) {
20
20
  var _item$_extend2, _item$_extend3;
21
- const { values, cacheItem: sourceItem, isEditGroup, isChangeTotal, isPriceIncludeTax, bookingConfig, customerId, isFranchisee, holderOptions, productSource } = options;
21
+ const { values, cacheItem: sourceItem, isEditGroup, isChangeTotal, splitHolders = true, isPriceIncludeTax, bookingConfig, customerId, isFranchisee, holderOptions, productSource } = options;
22
22
  let item = _objectSpread2(_objectSpread2({ is_price_include_tax: isPriceIncludeTax }, sourceItem), {}, { autoClose: false });
23
23
  let extend = mergeFormIntoExtend(item._extend, values);
24
24
  if (values.quantity !== void 0) extend.other = _objectSpread2(_objectSpread2({}, extend.other || {}), {}, { quantity: values.quantity });
@@ -43,7 +43,7 @@ function buildEditedCacheItem(options) {
43
43
  item._time = (/* @__PURE__ */ new Date()).getTime();
44
44
  item._serviceKey = genServiceKey(item);
45
45
  item._holderKey = genHolderKey(item);
46
- item = applyHolderSplit(item);
46
+ if (splitHolders) item = applyHolderSplit(item);
47
47
  if (((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.holder_id) !== void 0) item = applyHolderToCacheItem(item, normalizeSelectedHolderIds(item._extend.holder_id), {
48
48
  bookingConfig,
49
49
  customerId,
@@ -84,11 +84,17 @@ function resolveAuthSearchKeyword(...values) {
84
84
  }
85
85
  return null;
86
86
  }
87
- function hasExplicitCustomerId(...values) {
88
- return collectAuthCandidates(...values).some((candidate) => {
89
- var _candidate$customer_i;
90
- return isValidOrderCustomerId((_candidate$customer_i = candidate.customer_id) !== null && _candidate$customer_i !== void 0 ? _candidate$customer_i : candidate.customerId);
91
- });
87
+ function resolveExplicitCustomerFromAuthResult(...values) {
88
+ for (const candidate of collectAuthCandidates(...values)) {
89
+ var _ref7, _candidate$customer, _candidate$customer_i;
90
+ const normalizedNestedCustomer = normalizeCustomerAuthCustomer((_ref7 = (_candidate$customer = candidate.customer) !== null && _candidate$customer !== void 0 ? _candidate$customer : candidate.customerInfo) !== null && _ref7 !== void 0 ? _ref7 : candidate.customer_info);
91
+ if (normalizedNestedCustomer) return normalizedNestedCustomer;
92
+ if (isValidOrderCustomerId((_candidate$customer_i = candidate.customer_id) !== null && _candidate$customer_i !== void 0 ? _candidate$customer_i : candidate.customerId)) {
93
+ const normalizedCandidate = normalizeCustomerAuthCustomer(candidate);
94
+ if (normalizedCandidate) return normalizedCandidate;
95
+ }
96
+ }
97
+ return null;
92
98
  }
93
99
  function lookupCustomerAfterAuth(_x) {
94
100
  return _lookupCustomerAfterAuth.apply(this, arguments);
@@ -107,11 +113,11 @@ function _lookupCustomerAfterAuth() {
107
113
  const list = Array.isArray(response === null || response === void 0 ? void 0 : response.list) ? response.list : [];
108
114
  const keyword = params.keyword.toLowerCase();
109
115
  return normalizeCustomerAuthCustomer((_list$find = list.find((customer) => {
110
- var _ref7, _customer$customer_id;
111
- return isValidOrderCustomerId((_ref7 = (_customer$customer_id = customer.customer_id) !== null && _customer$customer_id !== void 0 ? _customer$customer_id : customer.customerId) !== null && _ref7 !== void 0 ? _ref7 : customer.id) && (String(customer.email || "").trim().toLowerCase() === keyword || String(customer.phone || customer.mobile || "").trim() === params.keyword);
116
+ var _ref8, _customer$customer_id;
117
+ return isValidOrderCustomerId((_ref8 = (_customer$customer_id = customer.customer_id) !== null && _customer$customer_id !== void 0 ? _customer$customer_id : customer.customerId) !== null && _ref8 !== void 0 ? _ref8 : customer.id) && (String(customer.email || "").trim().toLowerCase() === keyword || String(customer.phone || customer.mobile || "").trim() === params.keyword);
112
118
  })) !== null && _list$find !== void 0 ? _list$find : list.find((customer) => {
113
- var _ref8, _customer$customer_id2;
114
- return isValidOrderCustomerId((_ref8 = (_customer$customer_id2 = customer.customer_id) !== null && _customer$customer_id2 !== void 0 ? _customer$customer_id2 : customer.customerId) !== null && _ref8 !== void 0 ? _ref8 : customer.id);
119
+ var _ref9, _customer$customer_id2;
120
+ return isValidOrderCustomerId((_ref9 = (_customer$customer_id2 = customer.customer_id) !== null && _customer$customer_id2 !== void 0 ? _customer$customer_id2 : customer.customerId) !== null && _ref9 !== void 0 ? _ref9 : customer.id);
115
121
  }));
116
122
  } catch (error) {
117
123
  console.warn("[SalesSdk] Resolve customer after auth failed", error);
@@ -131,14 +137,14 @@ function _resolveCustomerFromAuthResult() {
131
137
  authFormData: params.authFormData,
132
138
  user: params.moduleUser || params.originResult
133
139
  };
140
+ const explicitCustomer = resolveExplicitCustomerFromAuthResult(params.authFormData, params.originResult, params.moduleUser);
141
+ if (explicitCustomer) return explicitCustomer;
134
142
  const keyword = resolveAuthSearchKeyword(params.authFormData, params.originResult, params.moduleUser);
135
- if (!hasExplicitCustomerId(wrappedPayload)) {
136
- const searchedCustomer = yield lookupCustomerAfterAuth({
137
- keyword,
138
- bookingTicket: params.bookingTicket
139
- });
140
- if (searchedCustomer) return searchedCustomer;
141
- }
143
+ const searchedCustomer = yield lookupCustomerAfterAuth({
144
+ keyword,
145
+ bookingTicket: params.bookingTicket
146
+ });
147
+ if (searchedCustomer) return searchedCustomer;
142
148
  const directCustomer = normalizeCustomerAuthCustomer(wrappedPayload);
143
149
  if (directCustomer) return directCustomer;
144
150
  return lookupCustomerAfterAuth({
@@ -170,7 +176,7 @@ const CustomerAuthHostRenderer = ({ registerAndLoginModuleName, channel = "onlin
170
176
  if (open) setView("login");
171
177
  }, [open, payload]);
172
178
  const completeWithCustomer = function() {
173
- var _ref9 = _asyncToGenerator(function* (originResult, _method, authFormData) {
179
+ var _ref10 = _asyncToGenerator(function* (originResult, _method, authFormData) {
174
180
  const customer = yield resolveCustomerFromAuthResult({
175
181
  originResult,
176
182
  moduleUser: readRegisterAndLoginUser(getRegisterAndLoginModule(context, registerAndLoginModuleName)),
@@ -188,7 +194,7 @@ const CustomerAuthHostRenderer = ({ registerAndLoginModuleName, channel = "onlin
188
194
  });
189
195
  });
190
196
  return function completeWithCustomer(_x3, _x4, _x5) {
191
- return _ref9.apply(this, arguments);
197
+ return _ref10.apply(this, arguments);
192
198
  };
193
199
  }();
194
200
  if (!open) return null;
@@ -756,11 +756,12 @@ const NormalProductDetailHostRenderer = ({ defaultSkuDetailConfig }) => {
756
756
  const isBookingEdit = activePending.payload.mode === "booking-edit";
757
757
  const bookingPayload = isBookingEdit ? activePending.payload.bookingEditPayload : activePending.payload.requiresBookingEditPayload;
758
758
  try {
759
- var _hydratedContext$book2, _ref24, _hydratedContext$hold2, _bookingState$booking, _bookingState$client, _ref25, _ref26, _ref27, _ref28, _cacheItem$_extend3;
759
+ var _hydratedContext$book2, _ref24, _hydratedContext$hold2, _data$_extend, _bookingState$booking, _bookingState$client, _ref25, _ref26, _ref27, _ref28, _cacheItem$_extend3;
760
760
  if (isBookingEdit && !bookingPayload.deferCommit) assertBookingEditQuantityUnchanged(data);
761
761
  const hydratedContext = (hydratedHolderContext === null || hydratedHolderContext === void 0 ? void 0 : hydratedHolderContext.pending) === activePending ? hydratedHolderContext : null;
762
762
  const bookingState = (_hydratedContext$book2 = hydratedContext === null || hydratedContext === void 0 ? void 0 : hydratedContext.bookingState) !== null && _hydratedContext$book2 !== void 0 ? _hydratedContext$book2 : preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.bookingState;
763
763
  const holderOptions = (_ref24 = (_hydratedContext$hold2 = hydratedContext === null || hydratedContext === void 0 ? void 0 : hydratedContext.holderOptions) !== null && _hydratedContext$hold2 !== void 0 ? _hydratedContext$hold2 : preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.holderOptions) !== null && _ref24 !== void 0 ? _ref24 : [];
764
+ const shouldCommitBookingCreateDirectly = Boolean(!isBookingEdit && !bookingPayload.deferCommit && (data === null || data === void 0 || (_data$_extend = data._extend) === null || _data$_extend === void 0 || (_data$_extend = _data$_extend.availabilitySelection) === null || _data$_extend === void 0 ? void 0 : _data$_extend.candidate));
764
765
  const cacheItem = buildBookingSelectionCacheItem(data, {
765
766
  bookingConfig: (_bookingState$booking = bookingState === null || bookingState === void 0 ? void 0 : bookingState.bookingConfig) !== null && _bookingState$booking !== void 0 ? _bookingState$booking : preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.bookingConfig,
766
767
  customerId: bookingState === null || bookingState === void 0 || (_bookingState$client = bookingState.client) === null || _bookingState$client === void 0 || (_bookingState$client = _bookingState$client.value) === null || _bookingState$client === void 0 ? void 0 : _bookingState$client.id,
@@ -768,6 +769,7 @@ const NormalProductDetailHostRenderer = ({ defaultSkuDetailConfig }) => {
768
769
  isPriceIncludeTax: data === null || data === void 0 ? void 0 : data.is_price_include_tax,
769
770
  holderOptions,
770
771
  initialCacheItem: preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.initialCacheItem,
772
+ splitHolders: !shouldCommitBookingCreateDirectly,
771
773
  productSource: (_ref25 = (_ref26 = (_ref27 = (_ref28 = data !== null && data !== void 0 ? data : hydratedContext === null || hydratedContext === void 0 ? void 0 : hydratedContext.holderSource) !== null && _ref28 !== void 0 ? _ref28 : preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.holderSource) !== null && _ref27 !== void 0 ? _ref27 : bookingPayload.catalogProduct) !== null && _ref26 !== void 0 ? _ref26 : bookingPayload.sourceProduct) !== null && _ref25 !== void 0 ? _ref25 : bookingPayload.cacheItem
772
774
  });
773
775
  cacheItem._holderOptionsSnapshot = holderOptions;
@@ -77,6 +77,7 @@ function buildBookingSelectionCacheItem(data, options) {
77
77
  cacheItem: prepared,
78
78
  isEditGroup: Boolean((_extend$items = extend.items) === null || _extend$items === void 0 ? void 0 : _extend$items.length),
79
79
  isChangeTotal,
80
+ splitHolders: options.splitHolders,
80
81
  isPriceIncludeTax: (_options$isPriceInclu = options.isPriceIncludeTax) !== null && _options$isPriceInclu !== void 0 ? _options$isPriceInclu : prepared === null || prepared === void 0 ? void 0 : prepared.is_price_include_tax,
81
82
  bookingConfig: options.bookingConfig,
82
83
  customerId: options.customerId,
@@ -20,7 +20,7 @@ function stripManualProductDiscountFromList(discountList) {
20
20
  */
21
21
  function buildEditedCacheItem(options) {
22
22
  var _item$_extend2, _item$_extend3;
23
- const { values, cacheItem: sourceItem, isEditGroup, isChangeTotal, isPriceIncludeTax, bookingConfig, customerId, isFranchisee, holderOptions, productSource } = options;
23
+ const { values, cacheItem: sourceItem, isEditGroup, isChangeTotal, splitHolders = true, isPriceIncludeTax, bookingConfig, customerId, isFranchisee, holderOptions, productSource } = options;
24
24
  let item = require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({ is_price_include_tax: isPriceIncludeTax }, sourceItem), {}, { autoClose: false });
25
25
  let extend = require_mergeFormIntoExtend.mergeFormIntoExtend(item._extend, values);
26
26
  if (values.quantity !== void 0) extend.other = require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, extend.other || {}), {}, { quantity: values.quantity });
@@ -45,7 +45,7 @@ function buildEditedCacheItem(options) {
45
45
  item._time = (/* @__PURE__ */ new Date()).getTime();
46
46
  item._serviceKey = require_index.genServiceKey(item);
47
47
  item._holderKey = require_index.genHolderKey(item);
48
- item = applyHolderSplit(item);
48
+ if (splitHolders) item = applyHolderSplit(item);
49
49
  if (((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.holder_id) !== void 0) item = require_applyHolderToCacheItem.applyHolderToCacheItem(item, require_applyHolderToCacheItem.normalizeSelectedHolderIds(item._extend.holder_id), {
50
50
  bookingConfig,
51
51
  customerId,
@@ -86,11 +86,17 @@ function resolveAuthSearchKeyword(...values) {
86
86
  }
87
87
  return null;
88
88
  }
89
- function hasExplicitCustomerId(...values) {
90
- return collectAuthCandidates(...values).some((candidate) => {
91
- var _candidate$customer_i;
92
- return require_customerAuthGate.isValidOrderCustomerId((_candidate$customer_i = candidate.customer_id) !== null && _candidate$customer_i !== void 0 ? _candidate$customer_i : candidate.customerId);
93
- });
89
+ function resolveExplicitCustomerFromAuthResult(...values) {
90
+ for (const candidate of collectAuthCandidates(...values)) {
91
+ var _ref7, _candidate$customer, _candidate$customer_i;
92
+ const normalizedNestedCustomer = require_customerAuthGate.normalizeCustomerAuthCustomer((_ref7 = (_candidate$customer = candidate.customer) !== null && _candidate$customer !== void 0 ? _candidate$customer : candidate.customerInfo) !== null && _ref7 !== void 0 ? _ref7 : candidate.customer_info);
93
+ if (normalizedNestedCustomer) return normalizedNestedCustomer;
94
+ if (require_customerAuthGate.isValidOrderCustomerId((_candidate$customer_i = candidate.customer_id) !== null && _candidate$customer_i !== void 0 ? _candidate$customer_i : candidate.customerId)) {
95
+ const normalizedCandidate = require_customerAuthGate.normalizeCustomerAuthCustomer(candidate);
96
+ if (normalizedCandidate) return normalizedCandidate;
97
+ }
98
+ }
99
+ return null;
94
100
  }
95
101
  function lookupCustomerAfterAuth(_x) {
96
102
  return _lookupCustomerAfterAuth.apply(this, arguments);
@@ -109,11 +115,11 @@ function _lookupCustomerAfterAuth() {
109
115
  const list = Array.isArray(response === null || response === void 0 ? void 0 : response.list) ? response.list : [];
110
116
  const keyword = params.keyword.toLowerCase();
111
117
  return require_customerAuthGate.normalizeCustomerAuthCustomer((_list$find = list.find((customer) => {
112
- var _ref7, _customer$customer_id;
113
- return require_customerAuthGate.isValidOrderCustomerId((_ref7 = (_customer$customer_id = customer.customer_id) !== null && _customer$customer_id !== void 0 ? _customer$customer_id : customer.customerId) !== null && _ref7 !== void 0 ? _ref7 : customer.id) && (String(customer.email || "").trim().toLowerCase() === keyword || String(customer.phone || customer.mobile || "").trim() === params.keyword);
118
+ var _ref8, _customer$customer_id;
119
+ return require_customerAuthGate.isValidOrderCustomerId((_ref8 = (_customer$customer_id = customer.customer_id) !== null && _customer$customer_id !== void 0 ? _customer$customer_id : customer.customerId) !== null && _ref8 !== void 0 ? _ref8 : customer.id) && (String(customer.email || "").trim().toLowerCase() === keyword || String(customer.phone || customer.mobile || "").trim() === params.keyword);
114
120
  })) !== null && _list$find !== void 0 ? _list$find : list.find((customer) => {
115
- var _ref8, _customer$customer_id2;
116
- return require_customerAuthGate.isValidOrderCustomerId((_ref8 = (_customer$customer_id2 = customer.customer_id) !== null && _customer$customer_id2 !== void 0 ? _customer$customer_id2 : customer.customerId) !== null && _ref8 !== void 0 ? _ref8 : customer.id);
121
+ var _ref9, _customer$customer_id2;
122
+ return require_customerAuthGate.isValidOrderCustomerId((_ref9 = (_customer$customer_id2 = customer.customer_id) !== null && _customer$customer_id2 !== void 0 ? _customer$customer_id2 : customer.customerId) !== null && _ref9 !== void 0 ? _ref9 : customer.id);
117
123
  }));
118
124
  } catch (error) {
119
125
  console.warn("[SalesSdk] Resolve customer after auth failed", error);
@@ -133,14 +139,14 @@ function _resolveCustomerFromAuthResult() {
133
139
  authFormData: params.authFormData,
134
140
  user: params.moduleUser || params.originResult
135
141
  };
142
+ const explicitCustomer = resolveExplicitCustomerFromAuthResult(params.authFormData, params.originResult, params.moduleUser);
143
+ if (explicitCustomer) return explicitCustomer;
136
144
  const keyword = resolveAuthSearchKeyword(params.authFormData, params.originResult, params.moduleUser);
137
- if (!hasExplicitCustomerId(wrappedPayload)) {
138
- const searchedCustomer = yield lookupCustomerAfterAuth({
139
- keyword,
140
- bookingTicket: params.bookingTicket
141
- });
142
- if (searchedCustomer) return searchedCustomer;
143
- }
145
+ const searchedCustomer = yield lookupCustomerAfterAuth({
146
+ keyword,
147
+ bookingTicket: params.bookingTicket
148
+ });
149
+ if (searchedCustomer) return searchedCustomer;
144
150
  const directCustomer = require_customerAuthGate.normalizeCustomerAuthCustomer(wrappedPayload);
145
151
  if (directCustomer) return directCustomer;
146
152
  return lookupCustomerAfterAuth({
@@ -172,7 +178,7 @@ const CustomerAuthHostRenderer = ({ registerAndLoginModuleName, channel = "onlin
172
178
  if (open) setView("login");
173
179
  }, [open, payload]);
174
180
  const completeWithCustomer = function() {
175
- var _ref9 = require_asyncToGenerator._asyncToGenerator(function* (originResult, _method, authFormData) {
181
+ var _ref10 = require_asyncToGenerator._asyncToGenerator(function* (originResult, _method, authFormData) {
176
182
  const customer = yield resolveCustomerFromAuthResult({
177
183
  originResult,
178
184
  moduleUser: readRegisterAndLoginUser(getRegisterAndLoginModule(context, registerAndLoginModuleName)),
@@ -190,7 +196,7 @@ const CustomerAuthHostRenderer = ({ registerAndLoginModuleName, channel = "onlin
190
196
  });
191
197
  });
192
198
  return function completeWithCustomer(_x3, _x4, _x5) {
193
- return _ref9.apply(this, arguments);
199
+ return _ref10.apply(this, arguments);
194
200
  };
195
201
  }();
196
202
  if (!open) return null;
@@ -759,11 +759,12 @@ const NormalProductDetailHostRenderer = ({ defaultSkuDetailConfig }) => {
759
759
  const isBookingEdit = activePending.payload.mode === "booking-edit";
760
760
  const bookingPayload = isBookingEdit ? activePending.payload.bookingEditPayload : activePending.payload.requiresBookingEditPayload;
761
761
  try {
762
- var _hydratedContext$book2, _ref24, _hydratedContext$hold2, _bookingState$booking, _bookingState$client, _ref25, _ref26, _ref27, _ref28, _cacheItem$_extend3;
762
+ var _hydratedContext$book2, _ref24, _hydratedContext$hold2, _data$_extend, _bookingState$booking, _bookingState$client, _ref25, _ref26, _ref27, _ref28, _cacheItem$_extend3;
763
763
  if (isBookingEdit && !bookingPayload.deferCommit) require_resolveBookingCommitCount.assertBookingEditQuantityUnchanged(data);
764
764
  const hydratedContext = (hydratedHolderContext === null || hydratedHolderContext === void 0 ? void 0 : hydratedHolderContext.pending) === activePending ? hydratedHolderContext : null;
765
765
  const bookingState = (_hydratedContext$book2 = hydratedContext === null || hydratedContext === void 0 ? void 0 : hydratedContext.bookingState) !== null && _hydratedContext$book2 !== void 0 ? _hydratedContext$book2 : preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.bookingState;
766
766
  const holderOptions = (_ref24 = (_hydratedContext$hold2 = hydratedContext === null || hydratedContext === void 0 ? void 0 : hydratedContext.holderOptions) !== null && _hydratedContext$hold2 !== void 0 ? _hydratedContext$hold2 : preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.holderOptions) !== null && _ref24 !== void 0 ? _ref24 : [];
767
+ const shouldCommitBookingCreateDirectly = Boolean(!isBookingEdit && !bookingPayload.deferCommit && (data === null || data === void 0 || (_data$_extend = data._extend) === null || _data$_extend === void 0 || (_data$_extend = _data$_extend.availabilitySelection) === null || _data$_extend === void 0 ? void 0 : _data$_extend.candidate));
767
768
  const cacheItem = require_buildBookingSelectionCacheItem.buildBookingSelectionCacheItem(data, {
768
769
  bookingConfig: (_bookingState$booking = bookingState === null || bookingState === void 0 ? void 0 : bookingState.bookingConfig) !== null && _bookingState$booking !== void 0 ? _bookingState$booking : preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.bookingConfig,
769
770
  customerId: bookingState === null || bookingState === void 0 || (_bookingState$client = bookingState.client) === null || _bookingState$client === void 0 || (_bookingState$client = _bookingState$client.value) === null || _bookingState$client === void 0 ? void 0 : _bookingState$client.id,
@@ -771,6 +772,7 @@ const NormalProductDetailHostRenderer = ({ defaultSkuDetailConfig }) => {
771
772
  isPriceIncludeTax: data === null || data === void 0 ? void 0 : data.is_price_include_tax,
772
773
  holderOptions,
773
774
  initialCacheItem: preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.initialCacheItem,
775
+ splitHolders: !shouldCommitBookingCreateDirectly,
774
776
  productSource: (_ref25 = (_ref26 = (_ref27 = (_ref28 = data !== null && data !== void 0 ? data : hydratedContext === null || hydratedContext === void 0 ? void 0 : hydratedContext.holderSource) !== null && _ref28 !== void 0 ? _ref28 : preparedOpen === null || preparedOpen === void 0 ? void 0 : preparedOpen.holderSource) !== null && _ref27 !== void 0 ? _ref27 : bookingPayload.catalogProduct) !== null && _ref26 !== void 0 ? _ref26 : bookingPayload.sourceProduct) !== null && _ref25 !== void 0 ? _ref25 : bookingPayload.cacheItem
775
777
  });
776
778
  cacheItem._holderOptionsSnapshot = holderOptions;
@@ -79,6 +79,7 @@ function buildBookingSelectionCacheItem(data, options) {
79
79
  cacheItem: prepared,
80
80
  isEditGroup: Boolean((_extend$items = extend.items) === null || _extend$items === void 0 ? void 0 : _extend$items.length),
81
81
  isChangeTotal,
82
+ splitHolders: options.splitHolders,
82
83
  isPriceIncludeTax: (_options$isPriceInclu = options.isPriceIncludeTax) !== null && _options$isPriceInclu !== void 0 ? _options$isPriceInclu : prepared === null || prepared === void 0 ? void 0 : prepared.is_price_include_tax,
83
84
  bookingConfig: options.bookingConfig,
84
85
  customerId: options.customerId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.12.205",
3
+ "version": "6.12.207",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -69,11 +69,11 @@
69
69
  "react-zoom-pan-pinch": "^3.7.0",
70
70
  "styled-components": "^6.0.0-rc.3",
71
71
  "use-sync-external-store": "^1.6.0",
72
+ "@pisell/pi-payment-sdk": "0.0.3",
72
73
  "@pisell/utils": "3.0.4",
73
74
  "@pisell/materials": "6.12.58",
74
- "@pisell/pi-payment-sdk": "0.0.3",
75
- "@pisell/icon": "0.0.11",
76
- "@pisell/date-picker": "3.0.10"
75
+ "@pisell/date-picker": "3.0.10",
76
+ "@pisell/icon": "0.0.11"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0",