@orderingstack/front-components-product-configurator 1.3.2 → 1.3.4
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.
- package/dist/components/Counter/Counter.d.ts +1 -0
- package/dist/components/Counter/Counter.d.ts.map +1 -1
- package/dist/components/DisplayState/DisplayState.d.ts +1 -0
- package/dist/components/DisplayState/DisplayState.d.ts.map +1 -1
- package/dist/components/GroupStateInfo/GroupStateInfo.d.ts +1 -0
- package/dist/components/GroupStateInfo/GroupStateInfo.d.ts.map +1 -1
- package/dist/components/InfoLine/InfoLine.d.ts +1 -0
- package/dist/components/InfoLine/InfoLine.d.ts.map +1 -1
- package/dist/components/MenuItemsDispatcher/MenuItemsDispatcher.d.ts +1 -0
- package/dist/components/MenuItemsDispatcher/MenuItemsDispatcher.d.ts.map +1 -1
- package/dist/components/MenuOptions/MenuOptions.d.ts +1 -0
- package/dist/components/MenuOptions/MenuOptions.d.ts.map +1 -1
- package/dist/components/MenuOptions/MenuOptionsDefaultUI.d.ts +1 -0
- package/dist/components/MenuOptions/MenuOptionsDefaultUI.d.ts.map +1 -1
- package/dist/components/MenuProduct/MenuProduct.d.ts +1 -0
- package/dist/components/MenuProduct/MenuProduct.d.ts.map +1 -1
- package/dist/components/MenuProductRoot/MenuProductRoot.d.ts +1 -0
- package/dist/components/MenuProductRoot/MenuProductRoot.d.ts.map +1 -1
- package/dist/components/MenuProductRoot/MenuProductRootDefaultUI.d.ts +1 -0
- package/dist/components/MenuProductRoot/MenuProductRootDefaultUI.d.ts.map +1 -1
- package/dist/components/MenuProductRoot/MenuProductRootDefaultUIModal.d.ts +1 -0
- package/dist/components/MenuProductRoot/MenuProductRootDefaultUIModal.d.ts.map +1 -1
- package/dist/components/Price/Price.d.ts +1 -0
- package/dist/components/Price/Price.d.ts.map +1 -1
- package/dist/components/ProductConfigurator/ProductConfigurator.d.ts +1 -0
- package/dist/components/ProductConfigurator/ProductConfigurator.d.ts.map +1 -1
- package/dist/components/SimpleCheckbox/SimpleCheckbox.d.ts +1 -0
- package/dist/components/SimpleCheckbox/SimpleCheckbox.d.ts.map +1 -1
- package/dist/components/SimpleRadio/SimpleRadio.d.ts +1 -0
- package/dist/components/SimpleRadio/SimpleRadio.d.ts.map +1 -1
- package/dist/components/SubmitRow/SubmitRow.d.ts +1 -0
- package/dist/components/SubmitRow/SubmitRow.d.ts.map +1 -1
- package/dist/index.cjs.js +6 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +54 -123
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +87 -88
package/dist/index.es.js
CHANGED
|
@@ -4889,6 +4889,10 @@ const countPrice = (formState, mainProduct) => {
|
|
|
4889
4889
|
);
|
|
4890
4890
|
if (product && (product == null ? void 0 : product.price)) {
|
|
4891
4891
|
price += parseFloat(product.price) * productAmount;
|
|
4892
|
+
} else if (!product) {
|
|
4893
|
+
console.warn(
|
|
4894
|
+
`Error finding product: ${productId} in selCtx: ${contextName}`
|
|
4895
|
+
);
|
|
4892
4896
|
}
|
|
4893
4897
|
}
|
|
4894
4898
|
}
|
|
@@ -4911,11 +4915,11 @@ var root$1 = root;
|
|
|
4911
4915
|
var Symbol$1 = root$1.Symbol;
|
|
4912
4916
|
var Symbol$2 = Symbol$1;
|
|
4913
4917
|
var objectProto$f = Object.prototype;
|
|
4914
|
-
var hasOwnProperty$
|
|
4918
|
+
var hasOwnProperty$c = objectProto$f.hasOwnProperty;
|
|
4915
4919
|
var nativeObjectToString$1 = objectProto$f.toString;
|
|
4916
4920
|
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
4917
4921
|
function getRawTag(value) {
|
|
4918
|
-
var isOwn = hasOwnProperty$
|
|
4922
|
+
var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
4919
4923
|
try {
|
|
4920
4924
|
value[symToStringTag$1] = void 0;
|
|
4921
4925
|
var unmasked = true;
|
|
@@ -5039,9 +5043,9 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
|
5039
5043
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
5040
5044
|
var funcProto = Function.prototype, objectProto$d = Object.prototype;
|
|
5041
5045
|
var funcToString = funcProto.toString;
|
|
5042
|
-
var hasOwnProperty$
|
|
5046
|
+
var hasOwnProperty$b = objectProto$d.hasOwnProperty;
|
|
5043
5047
|
var reIsNative = RegExp(
|
|
5044
|
-
"^" + funcToString.call(hasOwnProperty$
|
|
5048
|
+
"^" + funcToString.call(hasOwnProperty$b).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
5045
5049
|
);
|
|
5046
5050
|
function baseIsNative(value) {
|
|
5047
5051
|
if (!isObject(value) || isMasked(value)) {
|
|
@@ -5126,10 +5130,10 @@ function eq(value, other) {
|
|
|
5126
5130
|
return value === other || value !== value && other !== other;
|
|
5127
5131
|
}
|
|
5128
5132
|
var objectProto$c = Object.prototype;
|
|
5129
|
-
var hasOwnProperty$
|
|
5133
|
+
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
5130
5134
|
function assignValue(object, key, value) {
|
|
5131
5135
|
var objValue = object[key];
|
|
5132
|
-
if (!(hasOwnProperty$
|
|
5136
|
+
if (!(hasOwnProperty$a.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
5133
5137
|
baseAssignValue(object, key, value);
|
|
5134
5138
|
}
|
|
5135
5139
|
}
|
|
@@ -5175,12 +5179,12 @@ function baseIsArguments(value) {
|
|
|
5175
5179
|
return isObjectLike(value) && baseGetTag(value) == argsTag$3;
|
|
5176
5180
|
}
|
|
5177
5181
|
var objectProto$a = Object.prototype;
|
|
5178
|
-
var hasOwnProperty$
|
|
5182
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
5179
5183
|
var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
|
|
5180
5184
|
var isArguments = baseIsArguments(function() {
|
|
5181
5185
|
return arguments;
|
|
5182
5186
|
}()) ? baseIsArguments : function(value) {
|
|
5183
|
-
return isObjectLike(value) && hasOwnProperty$
|
|
5187
|
+
return isObjectLike(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
5184
5188
|
};
|
|
5185
5189
|
var isArguments$1 = isArguments;
|
|
5186
5190
|
function stubFalse() {
|
|
@@ -5225,11 +5229,11 @@ var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
|
|
|
5225
5229
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
5226
5230
|
var isTypedArray$1 = isTypedArray;
|
|
5227
5231
|
var objectProto$9 = Object.prototype;
|
|
5228
|
-
var hasOwnProperty$
|
|
5232
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
5229
5233
|
function arrayLikeKeys(value, inherited) {
|
|
5230
5234
|
var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
5231
5235
|
for (var key in value) {
|
|
5232
|
-
if ((inherited || hasOwnProperty$
|
|
5236
|
+
if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
|
|
5233
5237
|
result.push(key);
|
|
5234
5238
|
}
|
|
5235
5239
|
}
|
|
@@ -5243,14 +5247,14 @@ function overArg(func, transform) {
|
|
|
5243
5247
|
var nativeKeys = overArg(Object.keys, Object);
|
|
5244
5248
|
var nativeKeys$1 = nativeKeys;
|
|
5245
5249
|
var objectProto$8 = Object.prototype;
|
|
5246
|
-
var hasOwnProperty$
|
|
5250
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
5247
5251
|
function baseKeys(object) {
|
|
5248
5252
|
if (!isPrototype(object)) {
|
|
5249
5253
|
return nativeKeys$1(object);
|
|
5250
5254
|
}
|
|
5251
5255
|
var result = [];
|
|
5252
5256
|
for (var key in Object(object)) {
|
|
5253
|
-
if (hasOwnProperty$
|
|
5257
|
+
if (hasOwnProperty$7.call(object, key) && key != "constructor") {
|
|
5254
5258
|
result.push(key);
|
|
5255
5259
|
}
|
|
5256
5260
|
}
|
|
@@ -5269,14 +5273,14 @@ function nativeKeysIn(object) {
|
|
|
5269
5273
|
return result;
|
|
5270
5274
|
}
|
|
5271
5275
|
var objectProto$7 = Object.prototype;
|
|
5272
|
-
var hasOwnProperty$
|
|
5276
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
5273
5277
|
function baseKeysIn(object) {
|
|
5274
5278
|
if (!isObject(object)) {
|
|
5275
5279
|
return nativeKeysIn(object);
|
|
5276
5280
|
}
|
|
5277
5281
|
var isProto = isPrototype(object), result = [];
|
|
5278
5282
|
for (var key in object) {
|
|
5279
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
5283
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$6.call(object, key)))) {
|
|
5280
5284
|
result.push(key);
|
|
5281
5285
|
}
|
|
5282
5286
|
}
|
|
@@ -5298,20 +5302,20 @@ function hashDelete(key) {
|
|
|
5298
5302
|
}
|
|
5299
5303
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
5300
5304
|
var objectProto$6 = Object.prototype;
|
|
5301
|
-
var hasOwnProperty$
|
|
5305
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
5302
5306
|
function hashGet(key) {
|
|
5303
5307
|
var data = this.__data__;
|
|
5304
5308
|
if (nativeCreate$1) {
|
|
5305
5309
|
var result = data[key];
|
|
5306
5310
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
5307
5311
|
}
|
|
5308
|
-
return hasOwnProperty$
|
|
5312
|
+
return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
|
|
5309
5313
|
}
|
|
5310
5314
|
var objectProto$5 = Object.prototype;
|
|
5311
|
-
var hasOwnProperty$
|
|
5315
|
+
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
5312
5316
|
function hashHas(key) {
|
|
5313
5317
|
var data = this.__data__;
|
|
5314
|
-
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$
|
|
5318
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
|
|
5315
5319
|
}
|
|
5316
5320
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
5317
5321
|
function hashSet(key, value) {
|
|
@@ -5591,10 +5595,10 @@ if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 ||
|
|
|
5591
5595
|
}
|
|
5592
5596
|
var getTag$1 = getTag;
|
|
5593
5597
|
var objectProto$3 = Object.prototype;
|
|
5594
|
-
var hasOwnProperty$
|
|
5598
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
5595
5599
|
function initCloneArray(array) {
|
|
5596
5600
|
var length = array.length, result = new array.constructor(length);
|
|
5597
|
-
if (length && typeof array[0] == "string" && hasOwnProperty$
|
|
5601
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$3.call(array, "index")) {
|
|
5598
5602
|
result.index = array.index;
|
|
5599
5603
|
result.input = array.input;
|
|
5600
5604
|
}
|
|
@@ -5886,7 +5890,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
5886
5890
|
}
|
|
5887
5891
|
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
5888
5892
|
var objectProto$2 = Object.prototype;
|
|
5889
|
-
var hasOwnProperty$
|
|
5893
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
5890
5894
|
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5891
5895
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
5892
5896
|
if (objLength != othLength && !isPartial) {
|
|
@@ -5895,7 +5899,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
5895
5899
|
var index = objLength;
|
|
5896
5900
|
while (index--) {
|
|
5897
5901
|
var key = objProps[index];
|
|
5898
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
5902
|
+
if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
|
|
5899
5903
|
return false;
|
|
5900
5904
|
}
|
|
5901
5905
|
}
|
|
@@ -5933,7 +5937,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
5933
5937
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
5934
5938
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
5935
5939
|
var objectProto$1 = Object.prototype;
|
|
5936
|
-
var hasOwnProperty$
|
|
5940
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
5937
5941
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5938
5942
|
var objIsArr = isArray$1(object), othIsArr = isArray$1(other), objTag = objIsArr ? arrayTag : getTag$1(object), othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
5939
5943
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
@@ -5951,7 +5955,7 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
5951
5955
|
return objIsArr || isTypedArray$1(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
5952
5956
|
}
|
|
5953
5957
|
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
5954
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
5958
|
+
var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$1.call(other, "__wrapped__");
|
|
5955
5959
|
if (objIsWrapped || othIsWrapped) {
|
|
5956
5960
|
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
5957
5961
|
stack || (stack = new Stack());
|
|
@@ -5990,7 +5994,7 @@ function inRange(number, start, end) {
|
|
|
5990
5994
|
}
|
|
5991
5995
|
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
5992
5996
|
var objectProto = Object.prototype;
|
|
5993
|
-
var hasOwnProperty
|
|
5997
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
5994
5998
|
function isEmpty(value) {
|
|
5995
5999
|
if (value == null) {
|
|
5996
6000
|
return true;
|
|
@@ -6006,7 +6010,7 @@ function isEmpty(value) {
|
|
|
6006
6010
|
return !baseKeys(value).length;
|
|
6007
6011
|
}
|
|
6008
6012
|
for (var key in value) {
|
|
6009
|
-
if (hasOwnProperty
|
|
6013
|
+
if (hasOwnProperty.call(value, key)) {
|
|
6010
6014
|
return false;
|
|
6011
6015
|
}
|
|
6012
6016
|
}
|
|
@@ -6470,7 +6474,7 @@ function getValidSelectedState(product, selected) {
|
|
|
6470
6474
|
}
|
|
6471
6475
|
function useProductConfigurator(product) {
|
|
6472
6476
|
var _a;
|
|
6473
|
-
const [productQuantity, setProductQuantity] = useState(1);
|
|
6477
|
+
const [productQuantity, setProductQuantity] = useState(Number(product.quantity) || 1);
|
|
6474
6478
|
const encodedProduct = encodeProduct(product);
|
|
6475
6479
|
const { state: { filter: initFilter = {} } = {} } = encodedProduct;
|
|
6476
6480
|
const initSelected = getValidSelectedState(
|
|
@@ -6733,75 +6737,8 @@ function useMenuOptions(product, nestedLvl, parentKind, parentSelCtx) {
|
|
|
6733
6737
|
}
|
|
6734
6738
|
var jsxRuntime = { exports: {} };
|
|
6735
6739
|
var reactJsxRuntime_production_min = {};
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
(c) Sindre Sorhus
|
|
6739
|
-
@license MIT
|
|
6740
|
-
*/
|
|
6741
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
6742
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6743
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
6744
|
-
function toObject(val) {
|
|
6745
|
-
if (val === null || val === void 0) {
|
|
6746
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
6747
|
-
}
|
|
6748
|
-
return Object(val);
|
|
6749
|
-
}
|
|
6750
|
-
function shouldUseNative() {
|
|
6751
|
-
try {
|
|
6752
|
-
if (!Object.assign) {
|
|
6753
|
-
return false;
|
|
6754
|
-
}
|
|
6755
|
-
var test1 = new String("abc");
|
|
6756
|
-
test1[5] = "de";
|
|
6757
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
6758
|
-
return false;
|
|
6759
|
-
}
|
|
6760
|
-
var test2 = {};
|
|
6761
|
-
for (var i2 = 0; i2 < 10; i2++) {
|
|
6762
|
-
test2["_" + String.fromCharCode(i2)] = i2;
|
|
6763
|
-
}
|
|
6764
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
|
6765
|
-
return test2[n2];
|
|
6766
|
-
});
|
|
6767
|
-
if (order2.join("") !== "0123456789") {
|
|
6768
|
-
return false;
|
|
6769
|
-
}
|
|
6770
|
-
var test3 = {};
|
|
6771
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
6772
|
-
test3[letter] = letter;
|
|
6773
|
-
});
|
|
6774
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
6775
|
-
return false;
|
|
6776
|
-
}
|
|
6777
|
-
return true;
|
|
6778
|
-
} catch (err) {
|
|
6779
|
-
return false;
|
|
6780
|
-
}
|
|
6781
|
-
}
|
|
6782
|
-
shouldUseNative() ? Object.assign : function(target, source) {
|
|
6783
|
-
var from;
|
|
6784
|
-
var to = toObject(target);
|
|
6785
|
-
var symbols;
|
|
6786
|
-
for (var s2 = 1; s2 < arguments.length; s2++) {
|
|
6787
|
-
from = Object(arguments[s2]);
|
|
6788
|
-
for (var key in from) {
|
|
6789
|
-
if (hasOwnProperty.call(from, key)) {
|
|
6790
|
-
to[key] = from[key];
|
|
6791
|
-
}
|
|
6792
|
-
}
|
|
6793
|
-
if (getOwnPropertySymbols) {
|
|
6794
|
-
symbols = getOwnPropertySymbols(from);
|
|
6795
|
-
for (var i2 = 0; i2 < symbols.length; i2++) {
|
|
6796
|
-
if (propIsEnumerable.call(from, symbols[i2])) {
|
|
6797
|
-
to[symbols[i2]] = from[symbols[i2]];
|
|
6798
|
-
}
|
|
6799
|
-
}
|
|
6800
|
-
}
|
|
6801
|
-
}
|
|
6802
|
-
return to;
|
|
6803
|
-
};
|
|
6804
|
-
/** @license React v17.0.2
|
|
6740
|
+
/**
|
|
6741
|
+
* @license React
|
|
6805
6742
|
* react-jsx-runtime.production.min.js
|
|
6806
6743
|
*
|
|
6807
6744
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6809,26 +6746,20 @@ shouldUseNative() ? Object.assign : function(target, source) {
|
|
|
6809
6746
|
* This source code is licensed under the MIT license found in the
|
|
6810
6747
|
* LICENSE file in the root directory of this source tree.
|
|
6811
6748
|
*/
|
|
6812
|
-
var f$3 = React,
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
g = h$3("react.element");
|
|
6817
|
-
reactJsxRuntime_production_min.Fragment = h$3("react.fragment");
|
|
6818
|
-
}
|
|
6819
|
-
var m$3 = f$3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n$2 = Object.prototype.hasOwnProperty, p$3 = { key: true, ref: true, __self: true, __source: true };
|
|
6820
|
-
function q(c, a2, k2) {
|
|
6821
|
-
var b, d2 = {}, e2 = null, l2 = null;
|
|
6822
|
-
void 0 !== k2 && (e2 = "" + k2);
|
|
6749
|
+
var f$3 = React, k$2 = Symbol.for("react.element"), l$4 = Symbol.for("react.fragment"), m$3 = Object.prototype.hasOwnProperty, n$2 = f$3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$3 = { key: true, ref: true, __self: true, __source: true };
|
|
6750
|
+
function q(c, a2, g) {
|
|
6751
|
+
var b, d2 = {}, e2 = null, h2 = null;
|
|
6752
|
+
void 0 !== g && (e2 = "" + g);
|
|
6823
6753
|
void 0 !== a2.key && (e2 = "" + a2.key);
|
|
6824
|
-
void 0 !== a2.ref && (
|
|
6754
|
+
void 0 !== a2.ref && (h2 = a2.ref);
|
|
6825
6755
|
for (b in a2)
|
|
6826
|
-
|
|
6756
|
+
m$3.call(a2, b) && !p$3.hasOwnProperty(b) && (d2[b] = a2[b]);
|
|
6827
6757
|
if (c && c.defaultProps)
|
|
6828
6758
|
for (b in a2 = c.defaultProps, a2)
|
|
6829
6759
|
void 0 === d2[b] && (d2[b] = a2[b]);
|
|
6830
|
-
return { $$typeof:
|
|
6760
|
+
return { $$typeof: k$2, type: c, key: e2, ref: h2, props: d2, _owner: n$2.current };
|
|
6831
6761
|
}
|
|
6762
|
+
reactJsxRuntime_production_min.Fragment = l$4;
|
|
6832
6763
|
reactJsxRuntime_production_min.jsx = q;
|
|
6833
6764
|
reactJsxRuntime_production_min.jsxs = q;
|
|
6834
6765
|
{
|
|
@@ -7378,7 +7309,7 @@ var Dinero = function Dinero2(options) {
|
|
|
7378
7309
|
var factor = Math.pow(10, digits);
|
|
7379
7310
|
return calculator$1.divide(calculator$1.round(calculator$1.multiply(this.toUnit(), factor), roundingMode), factor);
|
|
7380
7311
|
},
|
|
7381
|
-
toObject: function
|
|
7312
|
+
toObject: function toObject() {
|
|
7382
7313
|
return {
|
|
7383
7314
|
amount,
|
|
7384
7315
|
currency,
|
|
@@ -9422,8 +9353,8 @@ function p$1(r2, t2 = {}, e2, a2) {
|
|
|
9422
9353
|
let d2 = {};
|
|
9423
9354
|
if (t2) {
|
|
9424
9355
|
let f2 = false, y2 = [];
|
|
9425
|
-
for (let [h2,
|
|
9426
|
-
typeof
|
|
9356
|
+
for (let [h2, g] of Object.entries(t2))
|
|
9357
|
+
typeof g == "boolean" && (f2 = true), g === true && y2.push(h2);
|
|
9427
9358
|
f2 && (d2["data-headlessui-state"] = y2.join(" "));
|
|
9428
9359
|
}
|
|
9429
9360
|
if (o2 === Fragment$1 && Object.keys(F$3(s2)).length > 0) {
|
|
@@ -9847,31 +9778,31 @@ let Se$1 = "div", Le = S$1.RenderStrategy | S$1.Static, Me = C$1(function(e2, r2
|
|
|
9847
9778
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${a2}`);
|
|
9848
9779
|
if (typeof o2 != "function")
|
|
9849
9780
|
throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o2}`);
|
|
9850
|
-
let
|
|
9781
|
+
let g = a2 ? 0 : 1, [h2, Q2] = useReducer(Ce$1, { titleId: null, descriptionId: null, panelRef: createRef() }), R = o$3(() => o2(false)), j2 = o$3((T2) => Q2({ type: 0, id: T2 })), x2 = a$2() ? f2 ? false : g === 0 : false, w2 = n$12 > 1, X2 = useContext(H) !== null, Z = w2 ? "parent" : "leaf";
|
|
9851
9782
|
M$3(u2, w2 ? x2 : false);
|
|
9852
9783
|
let N2 = o$3(() => {
|
|
9853
9784
|
var b, D2;
|
|
9854
9785
|
return [...Array.from((b = y$1 == null ? void 0 : y$1.querySelectorAll("body > *, [data-headlessui-portal]")) != null ? b : []).filter((E2) => !(!(E2 instanceof HTMLElement) || E2.contains(U2.current) || h2.panelRef.current && E2.contains(h2.panelRef.current))), (D2 = h2.panelRef.current) != null ? D2 : u2.current];
|
|
9855
9786
|
});
|
|
9856
9787
|
L(() => N2(), R, x2 && !w2), E(y$1 == null ? void 0 : y$1.defaultView, "keydown", (T2) => {
|
|
9857
|
-
T2.defaultPrevented || T2.key === o$1.Escape &&
|
|
9858
|
-
}), Oe(y$1,
|
|
9859
|
-
if (
|
|
9788
|
+
T2.defaultPrevented || T2.key === o$1.Escape && g === 0 && (w2 || (T2.preventDefault(), T2.stopPropagation(), R()));
|
|
9789
|
+
}), Oe(y$1, g === 0 && !X2, N2), useEffect(() => {
|
|
9790
|
+
if (g !== 0 || !u2.current)
|
|
9860
9791
|
return;
|
|
9861
9792
|
let T2 = new IntersectionObserver((b) => {
|
|
9862
9793
|
for (let D2 of b)
|
|
9863
9794
|
D2.boundingClientRect.x === 0 && D2.boundingClientRect.y === 0 && D2.boundingClientRect.width === 0 && D2.boundingClientRect.height === 0 && R();
|
|
9864
9795
|
});
|
|
9865
9796
|
return T2.observe(u2.current), () => T2.disconnect();
|
|
9866
|
-
}, [
|
|
9867
|
-
let [ee, te] = k$1(), oe2 = useMemo(() => [{ dialogState:
|
|
9868
|
-
return React.createElement(M$2, { type: "Dialog", enabled:
|
|
9797
|
+
}, [g, u2, R]);
|
|
9798
|
+
let [ee, te] = k$1(), oe2 = useMemo(() => [{ dialogState: g, close: R, setTitleId: j2 }, h2], [g, h2, R, j2]), V = useMemo(() => ({ open: g === 0 }), [g]), re2 = { ref: _24, id: d2, role: "dialog", "aria-modal": g === 0 ? true : void 0, "aria-labelledby": h2.titleId, "aria-describedby": ee };
|
|
9799
|
+
return React.createElement(M$2, { type: "Dialog", enabled: g === 0, element: u2, onUpdate: o$3((T2, b, D2) => {
|
|
9869
9800
|
b === "Dialog" && u$3(T2, { [s.Add]() {
|
|
9870
9801
|
P2.current.add(D2), i2((E2) => E2 + 1);
|
|
9871
9802
|
}, [s.Remove]() {
|
|
9872
9803
|
P2.current.add(D2), i2((E2) => E2 - 1);
|
|
9873
9804
|
} });
|
|
9874
|
-
}) }, React.createElement(P$1, { force: true }, React.createElement($, null, React.createElement(H.Provider, { value: oe2 }, React.createElement($.Group, { target: u2 }, React.createElement(P$1, { force: false }, React.createElement(te, { slot: V, name: "Dialog.Description" }, React.createElement(de, { initialFocus: p$12, containers: P2, features: x2 ? u$3(Z, { parent: de.features.RestoreFocus, leaf: de.features.All & ~de.features.FocusLock }) : de.features.None }, $$1({ ourProps: re2, theirProps: c, slot: V, defaultTag: Se$1, features: Le, visible:
|
|
9805
|
+
}) }, React.createElement(P$1, { force: true }, React.createElement($, null, React.createElement(H.Provider, { value: oe2 }, React.createElement($.Group, { target: u2 }, React.createElement(P$1, { force: false }, React.createElement(te, { slot: V, name: "Dialog.Description" }, React.createElement(de, { initialFocus: p$12, containers: P2, features: x2 ? u$3(Z, { parent: de.features.RestoreFocus, leaf: de.features.All & ~de.features.FocusLock }) : de.features.None }, $$1({ ourProps: re2, theirProps: c, slot: V, defaultTag: Se$1, features: Le, visible: g === 0, name: "Dialog" })))))))), React.createElement(h$1, { features: s$4.Hidden, ref: U2 }));
|
|
9875
9806
|
}), ke = "div", we = C$1(function(e2, r2) {
|
|
9876
9807
|
let s2 = I$2(), { id: d2 = `headlessui-dialog-overlay-${s2}`, ...a2 } = e2, [{ dialogState: o2, close: p2 }] = k("Dialog.Overlay"), f2 = y(r2), c = o$3((l2) => {
|
|
9877
9808
|
if (l2.target === l2.currentTarget) {
|
|
@@ -9918,7 +9849,7 @@ function F(t2, e2) {
|
|
|
9918
9849
|
if (!t2)
|
|
9919
9850
|
return n2.dispose;
|
|
9920
9851
|
let { transitionDuration: a2, transitionDelay: i2 } = getComputedStyle(t2), [m2, d2] = [a2, i2].map((o2) => {
|
|
9921
|
-
let [r2 = 0] = o2.split(",").filter(Boolean).map((l2) => l2.includes("ms") ? parseFloat(l2) : parseFloat(l2) * 1e3).sort((l2,
|
|
9852
|
+
let [r2 = 0] = o2.split(",").filter(Boolean).map((l2) => l2.includes("ms") ? parseFloat(l2) : parseFloat(l2) * 1e3).sort((l2, g) => g - l2);
|
|
9922
9853
|
return r2;
|
|
9923
9854
|
});
|
|
9924
9855
|
if (m2 + d2 !== 0) {
|
|
@@ -10413,7 +10344,7 @@ function ProductConfigurator(props) {
|
|
|
10413
10344
|
const {
|
|
10414
10345
|
getValues
|
|
10415
10346
|
} = methods;
|
|
10416
|
-
const countedProductPrice = Number((parseFloat(price || "0") + countPrice(getValues("selected"),
|
|
10347
|
+
const countedProductPrice = Number((parseFloat(price || "0") + countPrice(getValues("selected"), encodedProduct)).toFixed(2));
|
|
10417
10348
|
const onSubmit = () => {
|
|
10418
10349
|
console.log("onSubmit");
|
|
10419
10350
|
setIsOnSubmittedOnTrue();
|