@bigbinary/neeto-site-blocks 1.8.1 → 1.8.2
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/index.cjs.js +321 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +321 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2062,6 +2062,53 @@ function _curry2(fn) {
|
|
|
2062
2062
|
};
|
|
2063
2063
|
}
|
|
2064
2064
|
|
|
2065
|
+
/**
|
|
2066
|
+
* Optimized internal three-arity curry function.
|
|
2067
|
+
*
|
|
2068
|
+
* @private
|
|
2069
|
+
* @category Function
|
|
2070
|
+
* @param {Function} fn The function to curry.
|
|
2071
|
+
* @return {Function} The curried function.
|
|
2072
|
+
*/
|
|
2073
|
+
|
|
2074
|
+
function _curry3(fn) {
|
|
2075
|
+
return function f3(a, b, c) {
|
|
2076
|
+
switch (arguments.length) {
|
|
2077
|
+
case 0:
|
|
2078
|
+
return f3;
|
|
2079
|
+
|
|
2080
|
+
case 1:
|
|
2081
|
+
return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {
|
|
2082
|
+
return fn(a, _b, _c);
|
|
2083
|
+
});
|
|
2084
|
+
|
|
2085
|
+
case 2:
|
|
2086
|
+
return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {
|
|
2087
|
+
return fn(_a, b, _c);
|
|
2088
|
+
}) : _isPlaceholder(b) ? _curry2(function (_b, _c) {
|
|
2089
|
+
return fn(a, _b, _c);
|
|
2090
|
+
}) : _curry1(function (_c) {
|
|
2091
|
+
return fn(a, b, _c);
|
|
2092
|
+
});
|
|
2093
|
+
|
|
2094
|
+
default:
|
|
2095
|
+
return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {
|
|
2096
|
+
return fn(_a, _b, c);
|
|
2097
|
+
}) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {
|
|
2098
|
+
return fn(_a, b, _c);
|
|
2099
|
+
}) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {
|
|
2100
|
+
return fn(a, _b, _c);
|
|
2101
|
+
}) : _isPlaceholder(a) ? _curry1(function (_a) {
|
|
2102
|
+
return fn(_a, b, c);
|
|
2103
|
+
}) : _isPlaceholder(b) ? _curry1(function (_b) {
|
|
2104
|
+
return fn(a, _b, c);
|
|
2105
|
+
}) : _isPlaceholder(c) ? _curry1(function (_c) {
|
|
2106
|
+
return fn(a, b, _c);
|
|
2107
|
+
}) : fn(a, b, c);
|
|
2108
|
+
}
|
|
2109
|
+
};
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2065
2112
|
/**
|
|
2066
2113
|
* Tests whether or not an object is an array.
|
|
2067
2114
|
*
|
|
@@ -2533,6 +2580,36 @@ _curry2(function prop(p, obj) {
|
|
|
2533
2580
|
return _isInteger(p) ? nth(p, obj) : obj[p];
|
|
2534
2581
|
});
|
|
2535
2582
|
|
|
2583
|
+
/**
|
|
2584
|
+
* Makes a shallow clone of an object, setting or overriding the specified
|
|
2585
|
+
* property with the given value. Note that this copies and flattens prototype
|
|
2586
|
+
* properties onto the new object as well. All non-primitive properties are
|
|
2587
|
+
* copied by reference.
|
|
2588
|
+
*
|
|
2589
|
+
* @private
|
|
2590
|
+
* @param {String|Number} prop The property name to set
|
|
2591
|
+
* @param {*} val The new value
|
|
2592
|
+
* @param {Object|Array} obj The object to clone
|
|
2593
|
+
* @return {Object|Array} A new object equivalent to the original except for the changed property.
|
|
2594
|
+
*/
|
|
2595
|
+
|
|
2596
|
+
function _assoc(prop, val, obj) {
|
|
2597
|
+
if (_isInteger(prop) && _isArray(obj)) {
|
|
2598
|
+
var arr = [].concat(obj);
|
|
2599
|
+
arr[prop] = val;
|
|
2600
|
+
return arr;
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
var result = {};
|
|
2604
|
+
|
|
2605
|
+
for (var p in obj) {
|
|
2606
|
+
result[p] = obj[p];
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
result[prop] = val;
|
|
2610
|
+
return result;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2536
2613
|
/**
|
|
2537
2614
|
* Checks if the input value is `null` or `undefined`.
|
|
2538
2615
|
*
|
|
@@ -2557,6 +2634,76 @@ _curry1(function isNil(x) {
|
|
|
2557
2634
|
return x == null;
|
|
2558
2635
|
});
|
|
2559
2636
|
|
|
2637
|
+
/**
|
|
2638
|
+
* Makes a shallow clone of an object, setting or overriding the nodes required
|
|
2639
|
+
* to create the given path, and placing the specific value at the tail end of
|
|
2640
|
+
* that path. Note that this copies and flattens prototype properties onto the
|
|
2641
|
+
* new object as well. All non-primitive properties are copied by reference.
|
|
2642
|
+
*
|
|
2643
|
+
* @func
|
|
2644
|
+
* @memberOf R
|
|
2645
|
+
* @since v0.8.0
|
|
2646
|
+
* @category Object
|
|
2647
|
+
* @typedefn Idx = String | Int | Symbol
|
|
2648
|
+
* @sig [Idx] -> a -> {a} -> {a}
|
|
2649
|
+
* @param {Array} path the path to set
|
|
2650
|
+
* @param {*} val The new value
|
|
2651
|
+
* @param {Object} obj The object to clone
|
|
2652
|
+
* @return {Object} A new object equivalent to the original except along the specified path.
|
|
2653
|
+
* @see R.dissocPath
|
|
2654
|
+
* @example
|
|
2655
|
+
*
|
|
2656
|
+
* R.assocPath(['a', 'b', 'c'], 42, {a: {b: {c: 0}}}); //=> {a: {b: {c: 42}}}
|
|
2657
|
+
*
|
|
2658
|
+
* // Any missing or non-object keys in path will be overridden
|
|
2659
|
+
* R.assocPath(['a', 'b', 'c'], 42, {a: 5}); //=> {a: {b: {c: 42}}}
|
|
2660
|
+
*/
|
|
2661
|
+
|
|
2662
|
+
var assocPath =
|
|
2663
|
+
/*#__PURE__*/
|
|
2664
|
+
_curry3(function assocPath(path, val, obj) {
|
|
2665
|
+
if (path.length === 0) {
|
|
2666
|
+
return val;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
var idx = path[0];
|
|
2670
|
+
|
|
2671
|
+
if (path.length > 1) {
|
|
2672
|
+
var nextObj = !isNil(obj) && _has(idx, obj) && typeof obj[idx] === 'object' ? obj[idx] : _isInteger(path[1]) ? [] : {};
|
|
2673
|
+
val = assocPath(Array.prototype.slice.call(path, 1), val, nextObj);
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
return _assoc(idx, val, obj);
|
|
2677
|
+
});
|
|
2678
|
+
|
|
2679
|
+
/**
|
|
2680
|
+
* Makes a shallow clone of an object, setting or overriding the specified
|
|
2681
|
+
* property with the given value. Note that this copies and flattens prototype
|
|
2682
|
+
* properties onto the new object as well. All non-primitive properties are
|
|
2683
|
+
* copied by reference.
|
|
2684
|
+
*
|
|
2685
|
+
* @func
|
|
2686
|
+
* @memberOf R
|
|
2687
|
+
* @since v0.8.0
|
|
2688
|
+
* @category Object
|
|
2689
|
+
* @typedefn Idx = String | Int
|
|
2690
|
+
* @sig Idx -> a -> {k: v} -> {k: v}
|
|
2691
|
+
* @param {String|Number} prop The property name to set
|
|
2692
|
+
* @param {*} val The new value
|
|
2693
|
+
* @param {Object} obj The object to clone
|
|
2694
|
+
* @return {Object} A new object equivalent to the original except for the changed property.
|
|
2695
|
+
* @see R.dissoc, R.pick
|
|
2696
|
+
* @example
|
|
2697
|
+
*
|
|
2698
|
+
* R.assoc('c', 3, {a: 1, b: 2}); //=> {a: 1, b: 2, c: 3}
|
|
2699
|
+
*/
|
|
2700
|
+
|
|
2701
|
+
var assoc =
|
|
2702
|
+
/*#__PURE__*/
|
|
2703
|
+
_curry3(function assoc(prop, val, obj) {
|
|
2704
|
+
return assocPath([prop], val, obj);
|
|
2705
|
+
});
|
|
2706
|
+
|
|
2560
2707
|
function _identity(x) {
|
|
2561
2708
|
return x;
|
|
2562
2709
|
}
|
|
@@ -2585,6 +2732,158 @@ var identity =
|
|
|
2585
2732
|
/*#__PURE__*/
|
|
2586
2733
|
_curry1(_identity);
|
|
2587
2734
|
|
|
2735
|
+
/**
|
|
2736
|
+
* Removes the sub-list of `list` starting at index `start` and containing
|
|
2737
|
+
* `count` elements. _Note that this is not destructive_: it returns a copy of
|
|
2738
|
+
* the list with the changes.
|
|
2739
|
+
* <small>No lists have been harmed in the application of this function.</small>
|
|
2740
|
+
*
|
|
2741
|
+
* @func
|
|
2742
|
+
* @memberOf R
|
|
2743
|
+
* @since v0.2.2
|
|
2744
|
+
* @category List
|
|
2745
|
+
* @sig Number -> Number -> [a] -> [a]
|
|
2746
|
+
* @param {Number} start The position to start removing elements
|
|
2747
|
+
* @param {Number} count The number of elements to remove
|
|
2748
|
+
* @param {Array} list The list to remove from
|
|
2749
|
+
* @return {Array} A new Array with `count` elements from `start` removed.
|
|
2750
|
+
* @see R.without
|
|
2751
|
+
* @example
|
|
2752
|
+
*
|
|
2753
|
+
* R.remove(2, 3, [1,2,3,4,5,6,7,8]); //=> [1,2,6,7,8]
|
|
2754
|
+
*/
|
|
2755
|
+
|
|
2756
|
+
var remove =
|
|
2757
|
+
/*#__PURE__*/
|
|
2758
|
+
_curry3(function remove(start, count, list) {
|
|
2759
|
+
var result = Array.prototype.slice.call(list, 0);
|
|
2760
|
+
result.splice(start, count);
|
|
2761
|
+
return result;
|
|
2762
|
+
});
|
|
2763
|
+
|
|
2764
|
+
/**
|
|
2765
|
+
* Returns a new object that does not contain a `prop` property.
|
|
2766
|
+
*
|
|
2767
|
+
* @private
|
|
2768
|
+
* @param {String|Number} prop The name of the property to dissociate
|
|
2769
|
+
* @param {Object|Array} obj The object to clone
|
|
2770
|
+
* @return {Object} A new object equivalent to the original but without the specified property
|
|
2771
|
+
*/
|
|
2772
|
+
|
|
2773
|
+
function _dissoc(prop, obj) {
|
|
2774
|
+
if (obj == null) {
|
|
2775
|
+
return obj;
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
if (_isInteger(prop) && _isArray(obj)) {
|
|
2779
|
+
return remove(prop, 1, obj);
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
var result = {};
|
|
2783
|
+
|
|
2784
|
+
for (var p in obj) {
|
|
2785
|
+
result[p] = obj[p];
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
delete result[prop];
|
|
2789
|
+
return result;
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
/**
|
|
2793
|
+
* Makes a shallow clone of an object. Note that this copies and flattens
|
|
2794
|
+
* prototype properties onto the new object as well. All non-primitive
|
|
2795
|
+
* properties are copied by reference.
|
|
2796
|
+
*
|
|
2797
|
+
* @private
|
|
2798
|
+
* @param {String|Integer} prop The prop operating
|
|
2799
|
+
* @param {Object|Array} obj The object to clone
|
|
2800
|
+
* @return {Object|Array} A new object equivalent to the original.
|
|
2801
|
+
*/
|
|
2802
|
+
|
|
2803
|
+
function _shallowCloneObject(prop, obj) {
|
|
2804
|
+
if (_isInteger(prop) && _isArray(obj)) {
|
|
2805
|
+
return [].concat(obj);
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
var result = {};
|
|
2809
|
+
|
|
2810
|
+
for (var p in obj) {
|
|
2811
|
+
result[p] = obj[p];
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
return result;
|
|
2815
|
+
}
|
|
2816
|
+
/**
|
|
2817
|
+
* Makes a shallow clone of an object, omitting the property at the given path.
|
|
2818
|
+
* Note that this copies and flattens prototype properties onto the new object
|
|
2819
|
+
* as well. All non-primitive properties are copied by reference.
|
|
2820
|
+
*
|
|
2821
|
+
* @func
|
|
2822
|
+
* @memberOf R
|
|
2823
|
+
* @since v0.11.0
|
|
2824
|
+
* @category Object
|
|
2825
|
+
* @typedefn Idx = String | Int | Symbol
|
|
2826
|
+
* @sig [Idx] -> {k: v} -> {k: v}
|
|
2827
|
+
* @param {Array} path The path to the value to omit
|
|
2828
|
+
* @param {Object} obj The object to clone
|
|
2829
|
+
* @return {Object} A new object without the property at path
|
|
2830
|
+
* @see R.assocPath
|
|
2831
|
+
* @example
|
|
2832
|
+
*
|
|
2833
|
+
* R.dissocPath(['a', 'b', 'c'], {a: {b: {c: 42}}}); //=> {a: {b: {}}}
|
|
2834
|
+
*/
|
|
2835
|
+
|
|
2836
|
+
|
|
2837
|
+
var dissocPath =
|
|
2838
|
+
/*#__PURE__*/
|
|
2839
|
+
_curry2(function dissocPath(path, obj) {
|
|
2840
|
+
if (obj == null) {
|
|
2841
|
+
return obj;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
switch (path.length) {
|
|
2845
|
+
case 0:
|
|
2846
|
+
return obj;
|
|
2847
|
+
|
|
2848
|
+
case 1:
|
|
2849
|
+
return _dissoc(path[0], obj);
|
|
2850
|
+
|
|
2851
|
+
default:
|
|
2852
|
+
var head = path[0];
|
|
2853
|
+
var tail = Array.prototype.slice.call(path, 1);
|
|
2854
|
+
|
|
2855
|
+
if (obj[head] == null) {
|
|
2856
|
+
return _shallowCloneObject(head, obj);
|
|
2857
|
+
} else {
|
|
2858
|
+
return assoc(head, dissocPath(tail, obj[head]), obj);
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
}
|
|
2862
|
+
});
|
|
2863
|
+
|
|
2864
|
+
/**
|
|
2865
|
+
* Returns a new object that does not contain a `prop` property.
|
|
2866
|
+
*
|
|
2867
|
+
* @func
|
|
2868
|
+
* @memberOf R
|
|
2869
|
+
* @since v0.10.0
|
|
2870
|
+
* @category Object
|
|
2871
|
+
* @sig String -> {k: v} -> {k: v}
|
|
2872
|
+
* @param {String} prop The name of the property to dissociate
|
|
2873
|
+
* @param {Object} obj The object to clone
|
|
2874
|
+
* @return {Object} A new object equivalent to the original but without the specified property
|
|
2875
|
+
* @see R.assoc, R.omit
|
|
2876
|
+
* @example
|
|
2877
|
+
*
|
|
2878
|
+
* R.dissoc('b', {a: 1, b: 2, c: 3}); //=> {a: 1, c: 3}
|
|
2879
|
+
*/
|
|
2880
|
+
|
|
2881
|
+
var dissoc =
|
|
2882
|
+
/*#__PURE__*/
|
|
2883
|
+
_curry2(function dissoc(prop, obj) {
|
|
2884
|
+
return dissocPath([prop], obj);
|
|
2885
|
+
});
|
|
2886
|
+
|
|
2588
2887
|
/**
|
|
2589
2888
|
* Tests whether or not an object is a typed array.
|
|
2590
2889
|
*
|
|
@@ -4648,8 +4947,8 @@ var isLinkHighlighted = function isLinkHighlighted(to, currentPath) {
|
|
|
4648
4947
|
return currentPath.pathName === to && isEmpty(currentPath.hash) || currentPath.hash === to;
|
|
4649
4948
|
};
|
|
4650
4949
|
|
|
4651
|
-
function ownKeys$
|
|
4652
|
-
function _objectSpread$
|
|
4950
|
+
function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4951
|
+
function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4653
4952
|
var StyledWrapper = styled.div.attrs(function (props) {
|
|
4654
4953
|
return {
|
|
4655
4954
|
className: generateResponsiveStyles(props.design)
|
|
@@ -4673,11 +4972,11 @@ var StyledWrapper = styled.div.attrs(function (props) {
|
|
|
4673
4972
|
borderWidth: (_design$border2 = design.border) === null || _design$border2 === void 0 ? void 0 : _design$border2.borderWidth
|
|
4674
4973
|
};
|
|
4675
4974
|
var borderColorStyles = pickBy(identity, borderColors);
|
|
4676
|
-
var backgroundStyles = _objectSpread$
|
|
4975
|
+
var backgroundStyles = _objectSpread$k({
|
|
4677
4976
|
position: "relative",
|
|
4678
4977
|
zIndex: 0
|
|
4679
4978
|
}, backgroundImage.src ? {
|
|
4680
|
-
"&::before": _objectSpread$
|
|
4979
|
+
"&::before": _objectSpread$k({
|
|
4681
4980
|
content: "''",
|
|
4682
4981
|
position: "absolute",
|
|
4683
4982
|
top: 0,
|
|
@@ -14252,6 +14551,7 @@ var useElementClick = function useElementClick(_ref) {
|
|
|
14252
14551
|
// This function is used as the click handler for "Link" and "Button" elements in the to highlight the element
|
|
14253
14552
|
var handleClick = function handleClick(event) {
|
|
14254
14553
|
event.preventDefault();
|
|
14554
|
+
if (!id) return;
|
|
14255
14555
|
setTimeout(function () {
|
|
14256
14556
|
var accordion = document.querySelector("[data-accordion-id=".concat(id.replace(/-[^-]+$/, ""), "]"));
|
|
14257
14557
|
var element = document.querySelector("[data-element-id=".concat(id, "]"));
|
|
@@ -15675,8 +15975,8 @@ var Button = function Button(_ref) {
|
|
|
15675
15975
|
var Button$1 = withConditionalRender(Button, prop("label"));
|
|
15676
15976
|
|
|
15677
15977
|
var _excluded$w = ["to", "label", "style", "className", "icon", "action", "baseUrl", "draftMode", "link", "isHighlighted", "disableButtonAndLinks", "children", "disableHovering", "setIsMenuOpen", "id", "index"];
|
|
15678
|
-
function ownKeys$
|
|
15679
|
-
function _objectSpread$
|
|
15978
|
+
function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15979
|
+
function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15680
15980
|
var LinkElement = function LinkElement(_ref) {
|
|
15681
15981
|
var _ref$to = _ref.to,
|
|
15682
15982
|
to = _ref$to === void 0 ? "" : _ref$to,
|
|
@@ -15718,7 +16018,7 @@ var LinkElement = function LinkElement(_ref) {
|
|
|
15718
16018
|
setIsMenuOpen && setIsMenuOpen(false);
|
|
15719
16019
|
disableButtonAndLinks && handleClick(event);
|
|
15720
16020
|
};
|
|
15721
|
-
var commonProps = _objectSpread$
|
|
16021
|
+
var commonProps = _objectSpread$j({
|
|
15722
16022
|
className: classnames([baseClass, className]),
|
|
15723
16023
|
design: style,
|
|
15724
16024
|
href: to !== null && to !== void 0 ? to : "",
|
|
@@ -15749,8 +16049,8 @@ var Link = withConditionalRender(LinkElement, function () {
|
|
|
15749
16049
|
});
|
|
15750
16050
|
|
|
15751
16051
|
var _excluded$v = ["link", "design", "index", "height", "className", "totalLength", "paddingHorizontal"];
|
|
15752
|
-
function ownKeys$
|
|
15753
|
-
function _objectSpread$
|
|
16052
|
+
function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16053
|
+
function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15754
16054
|
var Dropdown = function Dropdown(_ref) {
|
|
15755
16055
|
var link = _ref.link,
|
|
15756
16056
|
design = _ref.design,
|
|
@@ -15780,7 +16080,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
15780
16080
|
key: getUniqueKey(subLink.label, subLink.to, index),
|
|
15781
16081
|
setIsMenuOpen: setIsOpen,
|
|
15782
16082
|
style: design
|
|
15783
|
-
}, _objectSpread$
|
|
16083
|
+
}, _objectSpread$i(_objectSpread$i({
|
|
15784
16084
|
index: index
|
|
15785
16085
|
}, subLink), otherProps)));
|
|
15786
16086
|
});
|
|
@@ -15858,8 +16158,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
15858
16158
|
}, renderDropdownItems("rounded-md px-4 py-2 hover:bg-gray-100")))));
|
|
15859
16159
|
};
|
|
15860
16160
|
|
|
15861
|
-
function ownKeys$
|
|
15862
|
-
function _objectSpread$
|
|
16161
|
+
function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16162
|
+
function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15863
16163
|
var subscribe = function subscribe(listener) {
|
|
15864
16164
|
window.addEventListener("resize", listener);
|
|
15865
16165
|
return function () {
|
|
@@ -15868,7 +16168,7 @@ var subscribe = function subscribe(listener) {
|
|
|
15868
16168
|
};
|
|
15869
16169
|
var getCurrentSize = function getCurrentSize(window, breakpointOverrides) {
|
|
15870
16170
|
var innerWidth = window.innerWidth;
|
|
15871
|
-
var sizes = _objectSpread$
|
|
16171
|
+
var sizes = _objectSpread$h({
|
|
15872
16172
|
mobile: innerWidth < 768,
|
|
15873
16173
|
tablet: innerWidth >= 768 && innerWidth < 1024,
|
|
15874
16174
|
desktop: innerWidth >= 1024 && innerWidth < 1280,
|
|
@@ -15894,21 +16194,25 @@ var useBreakpoints = function useBreakpoints(breakpointOverrides) {
|
|
|
15894
16194
|
var useBreakpoints$1 = useBreakpoints;
|
|
15895
16195
|
|
|
15896
16196
|
var _excluded$u = ["isEmbedded", "src", "design"];
|
|
16197
|
+
function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16198
|
+
function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15897
16199
|
var Media = function Media(_ref) {
|
|
15898
16200
|
var isEmbedded = _ref.isEmbedded,
|
|
15899
16201
|
src = _ref.src,
|
|
15900
16202
|
design = _ref.design,
|
|
15901
16203
|
otherProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
15902
16204
|
if (isEmbedded) {
|
|
15903
|
-
|
|
16205
|
+
var _design$width;
|
|
16206
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper, {
|
|
15904
16207
|
allow: "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",
|
|
15905
|
-
|
|
16208
|
+
as: "iframe",
|
|
16209
|
+
design: dissoc("width", design),
|
|
15906
16210
|
height: "300px",
|
|
15907
16211
|
src: validateUrl(src),
|
|
15908
|
-
|
|
16212
|
+
width: "".concat((_design$width = design === null || design === void 0 ? void 0 : design.width) !== null && _design$width !== void 0 ? _design$width : "100", "%")
|
|
15909
16213
|
});
|
|
15910
16214
|
}
|
|
15911
|
-
return /*#__PURE__*/React__default.createElement(StyledImage$1,
|
|
16215
|
+
return /*#__PURE__*/React__default.createElement(StyledImage$1, _objectSpread$g({
|
|
15912
16216
|
design: design,
|
|
15913
16217
|
src: src
|
|
15914
16218
|
}, otherProps));
|