@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 CHANGED
@@ -2108,6 +2108,53 @@ function _curry2(fn) {
2108
2108
  };
2109
2109
  }
2110
2110
 
2111
+ /**
2112
+ * Optimized internal three-arity curry function.
2113
+ *
2114
+ * @private
2115
+ * @category Function
2116
+ * @param {Function} fn The function to curry.
2117
+ * @return {Function} The curried function.
2118
+ */
2119
+
2120
+ function _curry3(fn) {
2121
+ return function f3(a, b, c) {
2122
+ switch (arguments.length) {
2123
+ case 0:
2124
+ return f3;
2125
+
2126
+ case 1:
2127
+ return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {
2128
+ return fn(a, _b, _c);
2129
+ });
2130
+
2131
+ case 2:
2132
+ return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {
2133
+ return fn(_a, b, _c);
2134
+ }) : _isPlaceholder(b) ? _curry2(function (_b, _c) {
2135
+ return fn(a, _b, _c);
2136
+ }) : _curry1(function (_c) {
2137
+ return fn(a, b, _c);
2138
+ });
2139
+
2140
+ default:
2141
+ return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {
2142
+ return fn(_a, _b, c);
2143
+ }) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {
2144
+ return fn(_a, b, _c);
2145
+ }) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {
2146
+ return fn(a, _b, _c);
2147
+ }) : _isPlaceholder(a) ? _curry1(function (_a) {
2148
+ return fn(_a, b, c);
2149
+ }) : _isPlaceholder(b) ? _curry1(function (_b) {
2150
+ return fn(a, _b, c);
2151
+ }) : _isPlaceholder(c) ? _curry1(function (_c) {
2152
+ return fn(a, b, _c);
2153
+ }) : fn(a, b, c);
2154
+ }
2155
+ };
2156
+ }
2157
+
2111
2158
  /**
2112
2159
  * Tests whether or not an object is an array.
2113
2160
  *
@@ -2579,6 +2626,36 @@ _curry2(function prop(p, obj) {
2579
2626
  return _isInteger(p) ? nth(p, obj) : obj[p];
2580
2627
  });
2581
2628
 
2629
+ /**
2630
+ * Makes a shallow clone of an object, setting or overriding the specified
2631
+ * property with the given value. Note that this copies and flattens prototype
2632
+ * properties onto the new object as well. All non-primitive properties are
2633
+ * copied by reference.
2634
+ *
2635
+ * @private
2636
+ * @param {String|Number} prop The property name to set
2637
+ * @param {*} val The new value
2638
+ * @param {Object|Array} obj The object to clone
2639
+ * @return {Object|Array} A new object equivalent to the original except for the changed property.
2640
+ */
2641
+
2642
+ function _assoc(prop, val, obj) {
2643
+ if (_isInteger(prop) && _isArray(obj)) {
2644
+ var arr = [].concat(obj);
2645
+ arr[prop] = val;
2646
+ return arr;
2647
+ }
2648
+
2649
+ var result = {};
2650
+
2651
+ for (var p in obj) {
2652
+ result[p] = obj[p];
2653
+ }
2654
+
2655
+ result[prop] = val;
2656
+ return result;
2657
+ }
2658
+
2582
2659
  /**
2583
2660
  * Checks if the input value is `null` or `undefined`.
2584
2661
  *
@@ -2603,6 +2680,76 @@ _curry1(function isNil(x) {
2603
2680
  return x == null;
2604
2681
  });
2605
2682
 
2683
+ /**
2684
+ * Makes a shallow clone of an object, setting or overriding the nodes required
2685
+ * to create the given path, and placing the specific value at the tail end of
2686
+ * that path. Note that this copies and flattens prototype properties onto the
2687
+ * new object as well. All non-primitive properties are copied by reference.
2688
+ *
2689
+ * @func
2690
+ * @memberOf R
2691
+ * @since v0.8.0
2692
+ * @category Object
2693
+ * @typedefn Idx = String | Int | Symbol
2694
+ * @sig [Idx] -> a -> {a} -> {a}
2695
+ * @param {Array} path the path to set
2696
+ * @param {*} val The new value
2697
+ * @param {Object} obj The object to clone
2698
+ * @return {Object} A new object equivalent to the original except along the specified path.
2699
+ * @see R.dissocPath
2700
+ * @example
2701
+ *
2702
+ * R.assocPath(['a', 'b', 'c'], 42, {a: {b: {c: 0}}}); //=> {a: {b: {c: 42}}}
2703
+ *
2704
+ * // Any missing or non-object keys in path will be overridden
2705
+ * R.assocPath(['a', 'b', 'c'], 42, {a: 5}); //=> {a: {b: {c: 42}}}
2706
+ */
2707
+
2708
+ var assocPath =
2709
+ /*#__PURE__*/
2710
+ _curry3(function assocPath(path, val, obj) {
2711
+ if (path.length === 0) {
2712
+ return val;
2713
+ }
2714
+
2715
+ var idx = path[0];
2716
+
2717
+ if (path.length > 1) {
2718
+ var nextObj = !isNil(obj) && _has(idx, obj) && typeof obj[idx] === 'object' ? obj[idx] : _isInteger(path[1]) ? [] : {};
2719
+ val = assocPath(Array.prototype.slice.call(path, 1), val, nextObj);
2720
+ }
2721
+
2722
+ return _assoc(idx, val, obj);
2723
+ });
2724
+
2725
+ /**
2726
+ * Makes a shallow clone of an object, setting or overriding the specified
2727
+ * property with the given value. Note that this copies and flattens prototype
2728
+ * properties onto the new object as well. All non-primitive properties are
2729
+ * copied by reference.
2730
+ *
2731
+ * @func
2732
+ * @memberOf R
2733
+ * @since v0.8.0
2734
+ * @category Object
2735
+ * @typedefn Idx = String | Int
2736
+ * @sig Idx -> a -> {k: v} -> {k: v}
2737
+ * @param {String|Number} prop The property name to set
2738
+ * @param {*} val The new value
2739
+ * @param {Object} obj The object to clone
2740
+ * @return {Object} A new object equivalent to the original except for the changed property.
2741
+ * @see R.dissoc, R.pick
2742
+ * @example
2743
+ *
2744
+ * R.assoc('c', 3, {a: 1, b: 2}); //=> {a: 1, b: 2, c: 3}
2745
+ */
2746
+
2747
+ var assoc =
2748
+ /*#__PURE__*/
2749
+ _curry3(function assoc(prop, val, obj) {
2750
+ return assocPath([prop], val, obj);
2751
+ });
2752
+
2606
2753
  function _identity(x) {
2607
2754
  return x;
2608
2755
  }
@@ -2631,6 +2778,158 @@ var identity =
2631
2778
  /*#__PURE__*/
2632
2779
  _curry1(_identity);
2633
2780
 
2781
+ /**
2782
+ * Removes the sub-list of `list` starting at index `start` and containing
2783
+ * `count` elements. _Note that this is not destructive_: it returns a copy of
2784
+ * the list with the changes.
2785
+ * <small>No lists have been harmed in the application of this function.</small>
2786
+ *
2787
+ * @func
2788
+ * @memberOf R
2789
+ * @since v0.2.2
2790
+ * @category List
2791
+ * @sig Number -> Number -> [a] -> [a]
2792
+ * @param {Number} start The position to start removing elements
2793
+ * @param {Number} count The number of elements to remove
2794
+ * @param {Array} list The list to remove from
2795
+ * @return {Array} A new Array with `count` elements from `start` removed.
2796
+ * @see R.without
2797
+ * @example
2798
+ *
2799
+ * R.remove(2, 3, [1,2,3,4,5,6,7,8]); //=> [1,2,6,7,8]
2800
+ */
2801
+
2802
+ var remove =
2803
+ /*#__PURE__*/
2804
+ _curry3(function remove(start, count, list) {
2805
+ var result = Array.prototype.slice.call(list, 0);
2806
+ result.splice(start, count);
2807
+ return result;
2808
+ });
2809
+
2810
+ /**
2811
+ * Returns a new object that does not contain a `prop` property.
2812
+ *
2813
+ * @private
2814
+ * @param {String|Number} prop The name of the property to dissociate
2815
+ * @param {Object|Array} obj The object to clone
2816
+ * @return {Object} A new object equivalent to the original but without the specified property
2817
+ */
2818
+
2819
+ function _dissoc(prop, obj) {
2820
+ if (obj == null) {
2821
+ return obj;
2822
+ }
2823
+
2824
+ if (_isInteger(prop) && _isArray(obj)) {
2825
+ return remove(prop, 1, obj);
2826
+ }
2827
+
2828
+ var result = {};
2829
+
2830
+ for (var p in obj) {
2831
+ result[p] = obj[p];
2832
+ }
2833
+
2834
+ delete result[prop];
2835
+ return result;
2836
+ }
2837
+
2838
+ /**
2839
+ * Makes a shallow clone of an object. Note that this copies and flattens
2840
+ * prototype properties onto the new object as well. All non-primitive
2841
+ * properties are copied by reference.
2842
+ *
2843
+ * @private
2844
+ * @param {String|Integer} prop The prop operating
2845
+ * @param {Object|Array} obj The object to clone
2846
+ * @return {Object|Array} A new object equivalent to the original.
2847
+ */
2848
+
2849
+ function _shallowCloneObject(prop, obj) {
2850
+ if (_isInteger(prop) && _isArray(obj)) {
2851
+ return [].concat(obj);
2852
+ }
2853
+
2854
+ var result = {};
2855
+
2856
+ for (var p in obj) {
2857
+ result[p] = obj[p];
2858
+ }
2859
+
2860
+ return result;
2861
+ }
2862
+ /**
2863
+ * Makes a shallow clone of an object, omitting the property at the given path.
2864
+ * Note that this copies and flattens prototype properties onto the new object
2865
+ * as well. All non-primitive properties are copied by reference.
2866
+ *
2867
+ * @func
2868
+ * @memberOf R
2869
+ * @since v0.11.0
2870
+ * @category Object
2871
+ * @typedefn Idx = String | Int | Symbol
2872
+ * @sig [Idx] -> {k: v} -> {k: v}
2873
+ * @param {Array} path The path to the value to omit
2874
+ * @param {Object} obj The object to clone
2875
+ * @return {Object} A new object without the property at path
2876
+ * @see R.assocPath
2877
+ * @example
2878
+ *
2879
+ * R.dissocPath(['a', 'b', 'c'], {a: {b: {c: 42}}}); //=> {a: {b: {}}}
2880
+ */
2881
+
2882
+
2883
+ var dissocPath =
2884
+ /*#__PURE__*/
2885
+ _curry2(function dissocPath(path, obj) {
2886
+ if (obj == null) {
2887
+ return obj;
2888
+ }
2889
+
2890
+ switch (path.length) {
2891
+ case 0:
2892
+ return obj;
2893
+
2894
+ case 1:
2895
+ return _dissoc(path[0], obj);
2896
+
2897
+ default:
2898
+ var head = path[0];
2899
+ var tail = Array.prototype.slice.call(path, 1);
2900
+
2901
+ if (obj[head] == null) {
2902
+ return _shallowCloneObject(head, obj);
2903
+ } else {
2904
+ return assoc(head, dissocPath(tail, obj[head]), obj);
2905
+ }
2906
+
2907
+ }
2908
+ });
2909
+
2910
+ /**
2911
+ * Returns a new object that does not contain a `prop` property.
2912
+ *
2913
+ * @func
2914
+ * @memberOf R
2915
+ * @since v0.10.0
2916
+ * @category Object
2917
+ * @sig String -> {k: v} -> {k: v}
2918
+ * @param {String} prop The name of the property to dissociate
2919
+ * @param {Object} obj The object to clone
2920
+ * @return {Object} A new object equivalent to the original but without the specified property
2921
+ * @see R.assoc, R.omit
2922
+ * @example
2923
+ *
2924
+ * R.dissoc('b', {a: 1, b: 2, c: 3}); //=> {a: 1, c: 3}
2925
+ */
2926
+
2927
+ var dissoc =
2928
+ /*#__PURE__*/
2929
+ _curry2(function dissoc(prop, obj) {
2930
+ return dissocPath([prop], obj);
2931
+ });
2932
+
2634
2933
  /**
2635
2934
  * Tests whether or not an object is a typed array.
2636
2935
  *
@@ -4694,8 +4993,8 @@ var isLinkHighlighted = function isLinkHighlighted(to, currentPath) {
4694
4993
  return currentPath.pathName === to && isEmpty(currentPath.hash) || currentPath.hash === to;
4695
4994
  };
4696
4995
 
4697
- 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; }
4698
- 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__default["default"](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; }
4996
+ 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; }
4997
+ 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__default["default"](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; }
4699
4998
  var StyledWrapper = styled__default["default"].div.attrs(function (props) {
4700
4999
  return {
4701
5000
  className: generateResponsiveStyles(props.design)
@@ -4719,11 +5018,11 @@ var StyledWrapper = styled__default["default"].div.attrs(function (props) {
4719
5018
  borderWidth: (_design$border2 = design.border) === null || _design$border2 === void 0 ? void 0 : _design$border2.borderWidth
4720
5019
  };
4721
5020
  var borderColorStyles = pickBy(identity, borderColors);
4722
- var backgroundStyles = _objectSpread$j({
5021
+ var backgroundStyles = _objectSpread$k({
4723
5022
  position: "relative",
4724
5023
  zIndex: 0
4725
5024
  }, backgroundImage.src ? {
4726
- "&::before": _objectSpread$j({
5025
+ "&::before": _objectSpread$k({
4727
5026
  content: "''",
4728
5027
  position: "absolute",
4729
5028
  top: 0,
@@ -14298,6 +14597,7 @@ var useElementClick = function useElementClick(_ref) {
14298
14597
  // This function is used as the click handler for "Link" and "Button" elements in the to highlight the element
14299
14598
  var handleClick = function handleClick(event) {
14300
14599
  event.preventDefault();
14600
+ if (!id) return;
14301
14601
  setTimeout(function () {
14302
14602
  var accordion = document.querySelector("[data-accordion-id=".concat(id.replace(/-[^-]+$/, ""), "]"));
14303
14603
  var element = document.querySelector("[data-element-id=".concat(id, "]"));
@@ -15721,8 +16021,8 @@ var Button = function Button(_ref) {
15721
16021
  var Button$1 = withConditionalRender(Button, prop("label"));
15722
16022
 
15723
16023
  var _excluded$w = ["to", "label", "style", "className", "icon", "action", "baseUrl", "draftMode", "link", "isHighlighted", "disableButtonAndLinks", "children", "disableHovering", "setIsMenuOpen", "id", "index"];
15724
- 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; }
15725
- 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__default["default"](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; }
16024
+ 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; }
16025
+ 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__default["default"](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; }
15726
16026
  var LinkElement = function LinkElement(_ref) {
15727
16027
  var _ref$to = _ref.to,
15728
16028
  to = _ref$to === void 0 ? "" : _ref$to,
@@ -15764,7 +16064,7 @@ var LinkElement = function LinkElement(_ref) {
15764
16064
  setIsMenuOpen && setIsMenuOpen(false);
15765
16065
  disableButtonAndLinks && handleClick(event);
15766
16066
  };
15767
- var commonProps = _objectSpread$i({
16067
+ var commonProps = _objectSpread$j({
15768
16068
  className: classnames([baseClass, className]),
15769
16069
  design: style,
15770
16070
  href: to !== null && to !== void 0 ? to : "",
@@ -15795,8 +16095,8 @@ var Link = withConditionalRender(LinkElement, function () {
15795
16095
  });
15796
16096
 
15797
16097
  var _excluded$v = ["link", "design", "index", "height", "className", "totalLength", "paddingHorizontal"];
15798
- 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; }
15799
- 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__default["default"](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; }
16098
+ 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; }
16099
+ 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__default["default"](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; }
15800
16100
  var Dropdown = function Dropdown(_ref) {
15801
16101
  var link = _ref.link,
15802
16102
  design = _ref.design,
@@ -15826,7 +16126,7 @@ var Dropdown = function Dropdown(_ref) {
15826
16126
  key: getUniqueKey(subLink.label, subLink.to, index),
15827
16127
  setIsMenuOpen: setIsOpen,
15828
16128
  style: design
15829
- }, _objectSpread$h(_objectSpread$h({
16129
+ }, _objectSpread$i(_objectSpread$i({
15830
16130
  index: index
15831
16131
  }, subLink), otherProps)));
15832
16132
  });
@@ -15904,8 +16204,8 @@ var Dropdown = function Dropdown(_ref) {
15904
16204
  }, renderDropdownItems("rounded-md px-4 py-2 hover:bg-gray-100")))));
15905
16205
  };
15906
16206
 
15907
- 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; }
15908
- 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__default["default"](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; }
16207
+ 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; }
16208
+ 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__default["default"](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; }
15909
16209
  var subscribe = function subscribe(listener) {
15910
16210
  window.addEventListener("resize", listener);
15911
16211
  return function () {
@@ -15914,7 +16214,7 @@ var subscribe = function subscribe(listener) {
15914
16214
  };
15915
16215
  var getCurrentSize = function getCurrentSize(window, breakpointOverrides) {
15916
16216
  var innerWidth = window.innerWidth;
15917
- var sizes = _objectSpread$g({
16217
+ var sizes = _objectSpread$h({
15918
16218
  mobile: innerWidth < 768,
15919
16219
  tablet: innerWidth >= 768 && innerWidth < 1024,
15920
16220
  desktop: innerWidth >= 1024 && innerWidth < 1280,
@@ -15940,21 +16240,25 @@ var useBreakpoints = function useBreakpoints(breakpointOverrides) {
15940
16240
  var useBreakpoints$1 = useBreakpoints;
15941
16241
 
15942
16242
  var _excluded$u = ["isEmbedded", "src", "design"];
16243
+ 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; }
16244
+ 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__default["default"](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; }
15943
16245
  var Media = function Media(_ref) {
15944
16246
  var isEmbedded = _ref.isEmbedded,
15945
16247
  src = _ref.src,
15946
16248
  design = _ref.design,
15947
16249
  otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$u);
15948
16250
  if (isEmbedded) {
15949
- return /*#__PURE__*/React__default["default"].createElement("iframe", {
16251
+ var _design$width;
16252
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
15950
16253
  allow: "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",
15951
- className: "w-full",
16254
+ as: "iframe",
16255
+ design: dissoc("width", design),
15952
16256
  height: "300px",
15953
16257
  src: validateUrl(src),
15954
- style: design
16258
+ width: "".concat((_design$width = design === null || design === void 0 ? void 0 : design.width) !== null && _design$width !== void 0 ? _design$width : "100", "%")
15955
16259
  });
15956
16260
  }
15957
- return /*#__PURE__*/React__default["default"].createElement(StyledImage$1, _extends__default["default"]({
16261
+ return /*#__PURE__*/React__default["default"].createElement(StyledImage$1, _objectSpread$g({
15958
16262
  design: design,
15959
16263
  src: src
15960
16264
  }, otherProps));