@gearbox-protocol/permissionless-ui 1.18.0 → 1.20.0

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.
Files changed (62) hide show
  1. package/dist/cjs/_virtual/index2.cjs +1 -1
  2. package/dist/cjs/components/dialog/dialog-container.cjs +1 -1
  3. package/dist/cjs/components/dialog/dialog-modal-container.cjs +1 -0
  4. package/dist/cjs/components/dialog/dialog-modal.cjs +1 -0
  5. package/dist/cjs/components/dialog/index.cjs +1 -1
  6. package/dist/cjs/components/filter/filter-modal.cjs +1 -1
  7. package/dist/cjs/components/index.cjs +1 -1
  8. package/dist/cjs/components/page-title/page-title.cjs +1 -1
  9. package/dist/cjs/index.cjs +1 -1
  10. package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/arrows.cjs +1 -0
  11. package/dist/cjs/node_modules/.pnpm/{react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-slick/lib/default-props.cjs +1 -1
  12. package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/dots.cjs +1 -0
  13. package/dist/cjs/node_modules/.pnpm/{react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-slick/lib/index.cjs +1 -1
  14. package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/inner-slider.cjs +1 -0
  15. package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/slider.cjs +1 -0
  16. package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/track.cjs +1 -0
  17. package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/utils/innerSliderUtils.cjs +1 -0
  18. package/dist/esm/_virtual/index2.js +1 -1
  19. package/dist/esm/components/dialog/dialog-container.js +20 -67
  20. package/dist/esm/components/dialog/dialog-modal-container.js +26 -0
  21. package/dist/esm/components/dialog/dialog-modal.js +76 -0
  22. package/dist/esm/components/dialog/index.js +19 -15
  23. package/dist/esm/components/filter/filter-modal.js +4 -2
  24. package/dist/esm/components/index.js +426 -422
  25. package/dist/esm/components/page-title/page-title.js +49 -36
  26. package/dist/esm/index.js +559 -555
  27. package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/arrows.js +210 -0
  28. package/dist/esm/node_modules/.pnpm/{react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-slick/lib/default-props.js +1 -0
  29. package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/dots.js +170 -0
  30. package/dist/esm/node_modules/.pnpm/{react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-slick/lib/index.js +2 -2
  31. package/dist/esm/node_modules/.pnpm/{react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-slick/lib/inner-slider.js +116 -118
  32. package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/slider.js +258 -0
  33. package/dist/esm/node_modules/.pnpm/{react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-slick/lib/track.js +90 -96
  34. package/dist/esm/node_modules/.pnpm/{react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-slick/lib/utils/innerSliderUtils.js +63 -58
  35. package/dist/globals.css +1 -1
  36. package/dist/types/components/dialog/dialog-container.d.ts +0 -17
  37. package/dist/types/components/dialog/dialog-modal-container.d.ts +23 -0
  38. package/dist/types/components/dialog/dialog-modal.d.ts +30 -0
  39. package/dist/types/components/dialog/index.d.ts +2 -0
  40. package/dist/types/components/page-title/page-title.d.ts +4 -0
  41. package/package.json +2 -2
  42. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQuery.cjs +0 -1
  43. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQueryDispatch.cjs +0 -1
  44. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/QueryHandler.cjs +0 -1
  45. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/Util.cjs +0 -1
  46. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/index.cjs +0 -1
  47. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/arrows.cjs +0 -1
  48. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/dots.cjs +0 -1
  49. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/inner-slider.cjs +0 -1
  50. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/slider.cjs +0 -1
  51. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/track.cjs +0 -1
  52. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/utils/innerSliderUtils.cjs +0 -1
  53. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQuery.js +0 -71
  54. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQueryDispatch.js +0 -46
  55. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/QueryHandler.js +0 -57
  56. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/Util.js +0 -24
  57. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/index.js +0 -11
  58. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/arrows.js +0 -216
  59. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/dots.js +0 -176
  60. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/slider.js +0 -261
  61. /package/dist/cjs/node_modules/.pnpm/{react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-slick/lib/initial-state.cjs +0 -0
  62. /package/dist/esm/node_modules/.pnpm/{react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/react-slick/lib/initial-state.js +0 -0
@@ -1,176 +0,0 @@
1
- import { __exports as c } from "../../../../../../_virtual/dots.js";
2
- import Q from "react";
3
- import { __require as V } from "../../../../classnames@2.5.1/node_modules/classnames/index.js";
4
- import { __require as W } from "./utils/innerSliderUtils.js";
5
- var D;
6
- function ee() {
7
- if (D) return c;
8
- D = 1;
9
- function i(t) {
10
- "@babel/helpers - typeof";
11
- return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
12
- return typeof e;
13
- } : function(e) {
14
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
15
- }, i(t);
16
- }
17
- Object.defineProperty(c, "__esModule", {
18
- value: !0
19
- }), c.Dots = void 0;
20
- var s = _(Q), T = _(V()), m = W();
21
- function _(t) {
22
- return t && t.__esModule ? t : { default: t };
23
- }
24
- function O(t, e) {
25
- var r = Object.keys(t);
26
- if (Object.getOwnPropertySymbols) {
27
- var n = Object.getOwnPropertySymbols(t);
28
- e && (n = n.filter(function(o) {
29
- return Object.getOwnPropertyDescriptor(t, o).enumerable;
30
- })), r.push.apply(r, n);
31
- }
32
- return r;
33
- }
34
- function E(t) {
35
- for (var e = 1; e < arguments.length; e++) {
36
- var r = arguments[e] != null ? arguments[e] : {};
37
- e % 2 ? O(Object(r), !0).forEach(function(n) {
38
- M(t, n, r[n]);
39
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : O(Object(r)).forEach(function(n) {
40
- Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
41
- });
42
- }
43
- return t;
44
- }
45
- function M(t, e, r) {
46
- return e = h(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
47
- }
48
- function C(t, e) {
49
- if (!(t instanceof e))
50
- throw new TypeError("Cannot call a class as a function");
51
- }
52
- function R(t, e) {
53
- for (var r = 0; r < e.length; r++) {
54
- var n = e[r];
55
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, h(n.key), n);
56
- }
57
- }
58
- function k(t, e, r) {
59
- return e && R(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
60
- }
61
- function h(t) {
62
- var e = q(t, "string");
63
- return i(e) == "symbol" ? e : String(e);
64
- }
65
- function q(t, e) {
66
- if (i(t) != "object" || !t) return t;
67
- var r = t[Symbol.toPrimitive];
68
- if (r !== void 0) {
69
- var n = r.call(t, e);
70
- if (i(n) != "object") return n;
71
- throw new TypeError("@@toPrimitive must return a primitive value.");
72
- }
73
- return String(t);
74
- }
75
- function N(t, e) {
76
- if (typeof e != "function" && e !== null)
77
- throw new TypeError("Super expression must either be null or a function");
78
- t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && v(t, e);
79
- }
80
- function v(t, e) {
81
- return v = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
82
- return n.__proto__ = o, n;
83
- }, v(t, e);
84
- }
85
- function x(t) {
86
- var e = P();
87
- return function() {
88
- var n = l(t), o;
89
- if (e) {
90
- var a = l(this).constructor;
91
- o = Reflect.construct(n, arguments, a);
92
- } else
93
- o = n.apply(this, arguments);
94
- return H(this, o);
95
- };
96
- }
97
- function H(t, e) {
98
- if (e && (i(e) === "object" || typeof e == "function"))
99
- return e;
100
- if (e !== void 0)
101
- throw new TypeError("Derived constructors may only return object or undefined");
102
- return I(t);
103
- }
104
- function I(t) {
105
- if (t === void 0)
106
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
107
- return t;
108
- }
109
- function P() {
110
- try {
111
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
112
- }));
113
- } catch {
114
- }
115
- return (P = function() {
116
- return !!t;
117
- })();
118
- }
119
- function l(t) {
120
- return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
121
- return r.__proto__ || Object.getPrototypeOf(r);
122
- }, l(t);
123
- }
124
- var L = function(e) {
125
- var r;
126
- return e.infinite ? r = Math.ceil(e.slideCount / e.slidesToScroll) : r = Math.ceil((e.slideCount - e.slidesToShow) / e.slidesToScroll) + 1, r;
127
- };
128
- return c.Dots = /* @__PURE__ */ (function(t) {
129
- N(r, t);
130
- var e = x(r);
131
- function r() {
132
- return C(this, r), e.apply(this, arguments);
133
- }
134
- return k(r, [{
135
- key: "clickHandler",
136
- value: function(o, a) {
137
- a.preventDefault(), this.props.clickHandler(o);
138
- }
139
- }, {
140
- key: "render",
141
- value: function() {
142
- for (var o = this.props, a = o.onMouseEnter, K = o.onMouseOver, U = o.onMouseLeave, f = o.infinite, p = o.slidesToScroll, z = o.slidesToShow, d = o.slideCount, y = o.currentSlide, $ = L({
143
- slideCount: d,
144
- slidesToScroll: p,
145
- slidesToShow: z,
146
- infinite: f
147
- }), A = {
148
- onMouseEnter: a,
149
- onMouseOver: K,
150
- onMouseLeave: U
151
- }, b = [], u = 0; u < $; u++) {
152
- var S = (u + 1) * p - 1, g = f ? S : (0, m.clamp)(S, 0, d - 1), w = g - (p - 1), j = f ? w : (0, m.clamp)(w, 0, d - 1), F = (0, T.default)({
153
- "slick-active": f ? y >= j && y <= g : y === j
154
- }), G = {
155
- message: "dots",
156
- index: u,
157
- slidesToScroll: p,
158
- currentSlide: y
159
- }, J = this.clickHandler.bind(this, G);
160
- b = b.concat(/* @__PURE__ */ s.default.createElement("li", {
161
- key: u,
162
- className: F
163
- }, /* @__PURE__ */ s.default.cloneElement(this.props.customPaging(u), {
164
- onClick: J
165
- })));
166
- }
167
- return /* @__PURE__ */ s.default.cloneElement(this.props.appendDots(b), E({
168
- className: this.props.dotsClass
169
- }, A));
170
- }
171
- }]), r;
172
- })(s.default.PureComponent), c;
173
- }
174
- export {
175
- ee as __require
176
- };
@@ -1,261 +0,0 @@
1
- import { __exports as T } from "../../../../../../_virtual/slider.js";
2
- import z from "react";
3
- import { __require as C } from "./inner-slider.js";
4
- import { __require as J } from "../../../../json2mq@0.2.0/node_modules/json2mq/index.js";
5
- import { __require as Q } from "./default-props.js";
6
- import { __require as F } from "./utils/innerSliderUtils.js";
7
- import { __require as L } from "../../../../enquire.js@2.1.6/node_modules/enquire.js/src/index.js";
8
- var M;
9
- function ne() {
10
- return M ? T : (M = 1, (function(g) {
11
- Object.defineProperty(g, "__esModule", {
12
- value: !0
13
- }), g.default = void 0;
14
- var l = S(z), U = C(), w = S(J()), j = S(Q()), _ = F();
15
- function S(r) {
16
- return r && r.__esModule ? r : { default: r };
17
- }
18
- function h(r) {
19
- "@babel/helpers - typeof";
20
- return h = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
21
- return typeof e;
22
- } : function(e) {
23
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
24
- }, h(r);
25
- }
26
- function P() {
27
- return P = Object.assign ? Object.assign.bind() : function(r) {
28
- for (var e = 1; e < arguments.length; e++) {
29
- var o = arguments[e];
30
- for (var n in o)
31
- Object.prototype.hasOwnProperty.call(o, n) && (r[n] = o[n]);
32
- }
33
- return r;
34
- }, P.apply(this, arguments);
35
- }
36
- function R(r, e) {
37
- var o = Object.keys(r);
38
- if (Object.getOwnPropertySymbols) {
39
- var n = Object.getOwnPropertySymbols(r);
40
- e && (n = n.filter(function(i) {
41
- return Object.getOwnPropertyDescriptor(r, i).enumerable;
42
- })), o.push.apply(o, n);
43
- }
44
- return o;
45
- }
46
- function m(r) {
47
- for (var e = 1; e < arguments.length; e++) {
48
- var o = arguments[e] != null ? arguments[e] : {};
49
- e % 2 ? R(Object(o), !0).forEach(function(n) {
50
- f(r, n, o[n]);
51
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : R(Object(o)).forEach(function(n) {
52
- Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(o, n));
53
- });
54
- }
55
- return r;
56
- }
57
- function x(r, e) {
58
- if (!(r instanceof e))
59
- throw new TypeError("Cannot call a class as a function");
60
- }
61
- function I(r, e) {
62
- for (var o = 0; o < e.length; o++) {
63
- var n = e[o];
64
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, D(n.key), n);
65
- }
66
- }
67
- function H(r, e, o) {
68
- return e && I(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
69
- }
70
- function V(r, e) {
71
- if (typeof e != "function" && e !== null)
72
- throw new TypeError("Super expression must either be null or a function");
73
- r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && q(r, e);
74
- }
75
- function q(r, e) {
76
- return q = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, i) {
77
- return n.__proto__ = i, n;
78
- }, q(r, e);
79
- }
80
- function A(r) {
81
- var e = k();
82
- return function() {
83
- var n = O(r), i;
84
- if (e) {
85
- var t = O(this).constructor;
86
- i = Reflect.construct(n, arguments, t);
87
- } else
88
- i = n.apply(this, arguments);
89
- return B(this, i);
90
- };
91
- }
92
- function B(r, e) {
93
- if (e && (h(e) === "object" || typeof e == "function"))
94
- return e;
95
- if (e !== void 0)
96
- throw new TypeError("Derived constructors may only return object or undefined");
97
- return c(r);
98
- }
99
- function c(r) {
100
- if (r === void 0)
101
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
102
- return r;
103
- }
104
- function k() {
105
- try {
106
- var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
107
- }));
108
- } catch {
109
- }
110
- return (k = function() {
111
- return !!r;
112
- })();
113
- }
114
- function O(r) {
115
- return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(o) {
116
- return o.__proto__ || Object.getPrototypeOf(o);
117
- }, O(r);
118
- }
119
- function f(r, e, o) {
120
- return e = D(e), e in r ? Object.defineProperty(r, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = o, r;
121
- }
122
- function D(r) {
123
- var e = G(r, "string");
124
- return h(e) == "symbol" ? e : String(e);
125
- }
126
- function G(r, e) {
127
- if (h(r) != "object" || !r) return r;
128
- var o = r[Symbol.toPrimitive];
129
- if (o !== void 0) {
130
- var n = o.call(r, e);
131
- if (h(n) != "object") return n;
132
- throw new TypeError("@@toPrimitive must return a primitive value.");
133
- }
134
- return (e === "string" ? String : Number)(r);
135
- }
136
- var N = (0, _.canUseDOM)() && L();
137
- g.default = /* @__PURE__ */ (function(r) {
138
- V(o, r);
139
- var e = A(o);
140
- function o(n) {
141
- var i;
142
- return x(this, o), i = e.call(this, n), f(c(i), "innerSliderRefHandler", function(t) {
143
- return i.innerSlider = t;
144
- }), f(c(i), "slickPrev", function() {
145
- return i.innerSlider.slickPrev();
146
- }), f(c(i), "slickNext", function() {
147
- return i.innerSlider.slickNext();
148
- }), f(c(i), "slickGoTo", function(t) {
149
- var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
150
- return i.innerSlider.slickGoTo(t, d);
151
- }), f(c(i), "slickPause", function() {
152
- return i.innerSlider.pause("paused");
153
- }), f(c(i), "slickPlay", function() {
154
- return i.innerSlider.autoPlay("play");
155
- }), i.state = {
156
- breakpoint: null
157
- }, i._responsiveMediaHandlers = [], i;
158
- }
159
- return H(o, [{
160
- key: "media",
161
- value: function(i, t) {
162
- N.register(i, t), this._responsiveMediaHandlers.push({
163
- query: i,
164
- handler: t
165
- });
166
- }
167
- // handles responsive breakpoints
168
- }, {
169
- key: "componentDidMount",
170
- value: function() {
171
- var i = this;
172
- if (this.props.responsive) {
173
- var t = this.props.responsive.map(function(s) {
174
- return s.breakpoint;
175
- });
176
- t.sort(function(s, u) {
177
- return s - u;
178
- }), t.forEach(function(s, u) {
179
- var y;
180
- u === 0 ? y = (0, w.default)({
181
- minWidth: 0,
182
- maxWidth: s
183
- }) : y = (0, w.default)({
184
- minWidth: t[u - 1] + 1,
185
- maxWidth: s
186
- }), (0, _.canUseDOM)() && i.media(y, function() {
187
- i.setState({
188
- breakpoint: s
189
- });
190
- });
191
- });
192
- var d = (0, w.default)({
193
- minWidth: t.slice(-1)[0]
194
- });
195
- (0, _.canUseDOM)() && this.media(d, function() {
196
- i.setState({
197
- breakpoint: null
198
- });
199
- });
200
- }
201
- }
202
- }, {
203
- key: "componentWillUnmount",
204
- value: function() {
205
- this._responsiveMediaHandlers.forEach(function(i) {
206
- N.unregister(i.query, i.handler);
207
- });
208
- }
209
- }, {
210
- key: "render",
211
- value: function() {
212
- var i = this, t, d;
213
- this.state.breakpoint ? (d = this.props.responsive.filter(function(b) {
214
- return b.breakpoint === i.state.breakpoint;
215
- }), t = d[0].settings === "unslick" ? "unslick" : m(m(m({}, j.default), this.props), d[0].settings)) : t = m(m({}, j.default), this.props), t.centerMode && (t.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(t.slidesToScroll)), t.slidesToScroll = 1), t.fade && (t.slidesToShow > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(t.slidesToShow)), t.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(t.slidesToScroll)), t.slidesToShow = 1, t.slidesToScroll = 1);
216
- var s = l.default.Children.toArray(this.props.children);
217
- s = s.filter(function(b) {
218
- return typeof b == "string" ? !!b.trim() : !!b;
219
- }), t.variableWidth && (t.rows > 1 || t.slidesPerRow > 1) && (console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"), t.variableWidth = !1);
220
- for (var u = [], y = null, a = 0; a < s.length; a += t.rows * t.slidesPerRow) {
221
- for (var E = [], v = a; v < a + t.rows * t.slidesPerRow; v += t.slidesPerRow) {
222
- for (var W = [], p = v; p < v + t.slidesPerRow && (t.variableWidth && s[p].props.style && (y = s[p].props.style.width), !(p >= s.length)); p += 1)
223
- W.push(/* @__PURE__ */ l.default.cloneElement(s[p], {
224
- key: 100 * a + 10 * v + p,
225
- tabIndex: -1,
226
- style: {
227
- width: "".concat(100 / t.slidesPerRow, "%"),
228
- display: "inline-block"
229
- }
230
- }));
231
- E.push(/* @__PURE__ */ l.default.createElement("div", {
232
- key: 10 * a + v
233
- }, W));
234
- }
235
- t.variableWidth ? u.push(/* @__PURE__ */ l.default.createElement("div", {
236
- key: a,
237
- style: {
238
- width: y
239
- }
240
- }, E)) : u.push(/* @__PURE__ */ l.default.createElement("div", {
241
- key: a
242
- }, E));
243
- }
244
- if (t === "unslick") {
245
- var K = "regular slider " + (this.props.className || "");
246
- return /* @__PURE__ */ l.default.createElement("div", {
247
- className: K
248
- }, s);
249
- } else u.length <= t.slidesToShow && !t.infinite && (t.unslick = !0);
250
- return /* @__PURE__ */ l.default.createElement(U.InnerSlider, P({
251
- style: this.props.style,
252
- ref: this.innerSliderRefHandler
253
- }, (0, _.filterSettings)(t)), u);
254
- }
255
- }]), o;
256
- })(l.default.Component);
257
- })(T), T);
258
- }
259
- export {
260
- ne as __require
261
- };