@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.
- package/dist/cjs/_virtual/index2.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-modal-container.cjs +1 -0
- package/dist/cjs/components/dialog/dialog-modal.cjs +1 -0
- package/dist/cjs/components/dialog/index.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/page-title/page-title.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/esm/_virtual/index2.js +1 -1
- package/dist/esm/components/dialog/dialog-container.js +20 -67
- package/dist/esm/components/dialog/dialog-modal-container.js +26 -0
- package/dist/esm/components/dialog/dialog-modal.js +76 -0
- package/dist/esm/components/dialog/index.js +19 -15
- package/dist/esm/components/filter/filter-modal.js +4 -2
- package/dist/esm/components/index.js +426 -422
- package/dist/esm/components/page-title/page-title.js +49 -36
- package/dist/esm/index.js +559 -555
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/globals.css +1 -1
- package/dist/types/components/dialog/dialog-container.d.ts +0 -17
- package/dist/types/components/dialog/dialog-modal-container.d.ts +23 -0
- package/dist/types/components/dialog/dialog-modal.d.ts +30 -0
- package/dist/types/components/dialog/index.d.ts +2 -0
- package/dist/types/components/page-title/page-title.d.ts +4 -0
- package/package.json +2 -2
- package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQuery.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQueryDispatch.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/QueryHandler.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/Util.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/index.cjs +0 -1
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQuery.js +0 -71
- package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQueryDispatch.js +0 -46
- package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/QueryHandler.js +0 -57
- package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/Util.js +0 -24
- package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/index.js +0 -11
- 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
- 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
- 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
- /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
- /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
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { __exports as s } from "../../../../../../_virtual/arrows.js";
|
|
2
|
+
import N from "react";
|
|
3
|
+
import { __require as R } from "../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
4
|
+
import { __require as q } from "./utils/innerSliderUtils.js";
|
|
5
|
+
var k;
|
|
6
|
+
function K() {
|
|
7
|
+
if (k) return s;
|
|
8
|
+
k = 1;
|
|
9
|
+
function a(r) {
|
|
10
|
+
"@babel/helpers - typeof";
|
|
11
|
+
return a = 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
|
+
}, a(r);
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(s, "__esModule", {
|
|
18
|
+
value: !0
|
|
19
|
+
}), s.PrevArrow = s.NextArrow = void 0;
|
|
20
|
+
var l = m(N), v = m(R()), S = q();
|
|
21
|
+
function m(r) {
|
|
22
|
+
return r && r.__esModule ? r : { default: r };
|
|
23
|
+
}
|
|
24
|
+
function p() {
|
|
25
|
+
return p = Object.assign ? Object.assign.bind() : function(r) {
|
|
26
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
27
|
+
var t = arguments[e];
|
|
28
|
+
for (var n in t)
|
|
29
|
+
({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
|
|
30
|
+
}
|
|
31
|
+
return r;
|
|
32
|
+
}, p.apply(null, arguments);
|
|
33
|
+
}
|
|
34
|
+
function h(r, e) {
|
|
35
|
+
var t = Object.keys(r);
|
|
36
|
+
if (Object.getOwnPropertySymbols) {
|
|
37
|
+
var n = Object.getOwnPropertySymbols(r);
|
|
38
|
+
e && (n = n.filter(function(o) {
|
|
39
|
+
return Object.getOwnPropertyDescriptor(r, o).enumerable;
|
|
40
|
+
})), t.push.apply(t, n);
|
|
41
|
+
}
|
|
42
|
+
return t;
|
|
43
|
+
}
|
|
44
|
+
function f(r) {
|
|
45
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
46
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
47
|
+
e % 2 ? h(Object(t), !0).forEach(function(n) {
|
|
48
|
+
C(r, n, t[n]);
|
|
49
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : h(Object(t)).forEach(function(n) {
|
|
50
|
+
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return r;
|
|
54
|
+
}
|
|
55
|
+
function C(r, e, t) {
|
|
56
|
+
return (e = O(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
57
|
+
}
|
|
58
|
+
function _(r, e) {
|
|
59
|
+
if (!(r instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
60
|
+
}
|
|
61
|
+
function x(r, e) {
|
|
62
|
+
for (var t = 0; t < e.length; t++) {
|
|
63
|
+
var n = e[t];
|
|
64
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, O(n.key), n);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function w(r, e, t) {
|
|
68
|
+
return e && x(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
69
|
+
}
|
|
70
|
+
function O(r) {
|
|
71
|
+
var e = A(r, "string");
|
|
72
|
+
return a(e) == "symbol" ? e : e + "";
|
|
73
|
+
}
|
|
74
|
+
function A(r, e) {
|
|
75
|
+
if (a(r) != "object" || !r) return r;
|
|
76
|
+
var t = r[Symbol.toPrimitive];
|
|
77
|
+
if (t !== void 0) {
|
|
78
|
+
var n = t.call(r, e);
|
|
79
|
+
if (a(n) != "object") return n;
|
|
80
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
81
|
+
}
|
|
82
|
+
return String(r);
|
|
83
|
+
}
|
|
84
|
+
function P(r, e) {
|
|
85
|
+
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
86
|
+
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && d(r, e);
|
|
87
|
+
}
|
|
88
|
+
function d(r, e) {
|
|
89
|
+
return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
|
|
90
|
+
return t.__proto__ = n, t;
|
|
91
|
+
}, d(r, e);
|
|
92
|
+
}
|
|
93
|
+
function g(r) {
|
|
94
|
+
var e = j();
|
|
95
|
+
return function() {
|
|
96
|
+
var t, n = y(r);
|
|
97
|
+
if (e) {
|
|
98
|
+
var o = y(this).constructor;
|
|
99
|
+
t = Reflect.construct(n, arguments, o);
|
|
100
|
+
} else t = n.apply(this, arguments);
|
|
101
|
+
return E(this, t);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function E(r, e) {
|
|
105
|
+
if (e && (a(e) == "object" || typeof e == "function")) return e;
|
|
106
|
+
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
107
|
+
return H(r);
|
|
108
|
+
}
|
|
109
|
+
function H(r) {
|
|
110
|
+
if (r === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
111
|
+
return r;
|
|
112
|
+
}
|
|
113
|
+
function j() {
|
|
114
|
+
try {
|
|
115
|
+
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
116
|
+
}));
|
|
117
|
+
} catch {
|
|
118
|
+
}
|
|
119
|
+
return (j = function() {
|
|
120
|
+
return !!r;
|
|
121
|
+
})();
|
|
122
|
+
}
|
|
123
|
+
function y(r) {
|
|
124
|
+
return y = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
125
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
126
|
+
}, y(r);
|
|
127
|
+
}
|
|
128
|
+
return s.PrevArrow = /* @__PURE__ */ (function(r) {
|
|
129
|
+
P(t, r);
|
|
130
|
+
var e = g(t);
|
|
131
|
+
function t() {
|
|
132
|
+
return _(this, t), e.apply(this, arguments);
|
|
133
|
+
}
|
|
134
|
+
return w(t, [{
|
|
135
|
+
key: "clickHandler",
|
|
136
|
+
value: function(o, i) {
|
|
137
|
+
i && i.preventDefault(), this.props.clickHandler(o, i);
|
|
138
|
+
}
|
|
139
|
+
}, {
|
|
140
|
+
key: "render",
|
|
141
|
+
value: function() {
|
|
142
|
+
var o = {
|
|
143
|
+
"slick-arrow": !0,
|
|
144
|
+
"slick-prev": !0
|
|
145
|
+
}, i = this.clickHandler.bind(this, {
|
|
146
|
+
message: "previous"
|
|
147
|
+
});
|
|
148
|
+
!this.props.infinite && (this.props.currentSlide === 0 || this.props.slideCount <= this.props.slidesToShow) && (o["slick-disabled"] = !0, i = null);
|
|
149
|
+
var c = {
|
|
150
|
+
key: "0",
|
|
151
|
+
"data-role": "none",
|
|
152
|
+
className: (0, v.default)(o),
|
|
153
|
+
style: {
|
|
154
|
+
display: "block"
|
|
155
|
+
},
|
|
156
|
+
onClick: i
|
|
157
|
+
}, b = {
|
|
158
|
+
currentSlide: this.props.currentSlide,
|
|
159
|
+
slideCount: this.props.slideCount
|
|
160
|
+
}, u;
|
|
161
|
+
return this.props.prevArrow ? u = /* @__PURE__ */ l.default.cloneElement(this.props.prevArrow, f(f({}, c), b)) : u = /* @__PURE__ */ l.default.createElement("button", p({
|
|
162
|
+
key: "0",
|
|
163
|
+
type: "button"
|
|
164
|
+
}, c), " ", "Previous"), u;
|
|
165
|
+
}
|
|
166
|
+
}]), t;
|
|
167
|
+
})(l.default.PureComponent), s.NextArrow = /* @__PURE__ */ (function(r) {
|
|
168
|
+
P(t, r);
|
|
169
|
+
var e = g(t);
|
|
170
|
+
function t() {
|
|
171
|
+
return _(this, t), e.apply(this, arguments);
|
|
172
|
+
}
|
|
173
|
+
return w(t, [{
|
|
174
|
+
key: "clickHandler",
|
|
175
|
+
value: function(o, i) {
|
|
176
|
+
i && i.preventDefault(), this.props.clickHandler(o, i);
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
key: "render",
|
|
180
|
+
value: function() {
|
|
181
|
+
var o = {
|
|
182
|
+
"slick-arrow": !0,
|
|
183
|
+
"slick-next": !0
|
|
184
|
+
}, i = this.clickHandler.bind(this, {
|
|
185
|
+
message: "next"
|
|
186
|
+
});
|
|
187
|
+
(0, S.canGoNext)(this.props) || (o["slick-disabled"] = !0, i = null);
|
|
188
|
+
var c = {
|
|
189
|
+
key: "1",
|
|
190
|
+
"data-role": "none",
|
|
191
|
+
className: (0, v.default)(o),
|
|
192
|
+
style: {
|
|
193
|
+
display: "block"
|
|
194
|
+
},
|
|
195
|
+
onClick: i
|
|
196
|
+
}, b = {
|
|
197
|
+
currentSlide: this.props.currentSlide,
|
|
198
|
+
slideCount: this.props.slideCount
|
|
199
|
+
}, u;
|
|
200
|
+
return this.props.nextArrow ? u = /* @__PURE__ */ l.default.cloneElement(this.props.nextArrow, f(f({}, c), b)) : u = /* @__PURE__ */ l.default.createElement("button", p({
|
|
201
|
+
key: "1",
|
|
202
|
+
type: "button"
|
|
203
|
+
}, c), " ", "Next"), u;
|
|
204
|
+
}
|
|
205
|
+
}]), t;
|
|
206
|
+
})(l.default.PureComponent), s;
|
|
207
|
+
}
|
|
208
|
+
export {
|
|
209
|
+
K as __require
|
|
210
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { __exports as s } 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 C;
|
|
6
|
+
function ee() {
|
|
7
|
+
if (C) return s;
|
|
8
|
+
C = 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(s, "__esModule", {
|
|
18
|
+
value: !0
|
|
19
|
+
}), s.Dots = void 0;
|
|
20
|
+
var l = _(Q), D = _(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 o = Object.getOwnPropertySymbols(t);
|
|
28
|
+
e && (o = o.filter(function(n) {
|
|
29
|
+
return Object.getOwnPropertyDescriptor(t, n).enumerable;
|
|
30
|
+
})), r.push.apply(r, o);
|
|
31
|
+
}
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
function T(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(o) {
|
|
38
|
+
E(t, o, r[o]);
|
|
39
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : O(Object(r)).forEach(function(o) {
|
|
40
|
+
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(r, o));
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return t;
|
|
44
|
+
}
|
|
45
|
+
function E(t, e, r) {
|
|
46
|
+
return (e = h(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
47
|
+
}
|
|
48
|
+
function M(t, e) {
|
|
49
|
+
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
50
|
+
}
|
|
51
|
+
function k(t, e) {
|
|
52
|
+
for (var r = 0; r < e.length; r++) {
|
|
53
|
+
var o = e[r];
|
|
54
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, h(o.key), o);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function R(t, e, r) {
|
|
58
|
+
return e && k(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
59
|
+
}
|
|
60
|
+
function h(t) {
|
|
61
|
+
var e = q(t, "string");
|
|
62
|
+
return i(e) == "symbol" ? e : e + "";
|
|
63
|
+
}
|
|
64
|
+
function q(t, e) {
|
|
65
|
+
if (i(t) != "object" || !t) return t;
|
|
66
|
+
var r = t[Symbol.toPrimitive];
|
|
67
|
+
if (r !== void 0) {
|
|
68
|
+
var o = r.call(t, e);
|
|
69
|
+
if (i(o) != "object") return o;
|
|
70
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
71
|
+
}
|
|
72
|
+
return String(t);
|
|
73
|
+
}
|
|
74
|
+
function x(t, e) {
|
|
75
|
+
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
76
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && y(t, e);
|
|
77
|
+
}
|
|
78
|
+
function y(t, e) {
|
|
79
|
+
return y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
|
|
80
|
+
return r.__proto__ = o, r;
|
|
81
|
+
}, y(t, e);
|
|
82
|
+
}
|
|
83
|
+
function H(t) {
|
|
84
|
+
var e = P();
|
|
85
|
+
return function() {
|
|
86
|
+
var r, o = a(t);
|
|
87
|
+
if (e) {
|
|
88
|
+
var n = a(this).constructor;
|
|
89
|
+
r = Reflect.construct(o, arguments, n);
|
|
90
|
+
} else r = o.apply(this, arguments);
|
|
91
|
+
return N(this, r);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function N(t, e) {
|
|
95
|
+
if (e && (i(e) == "object" || typeof e == "function")) return e;
|
|
96
|
+
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
97
|
+
return L(t);
|
|
98
|
+
}
|
|
99
|
+
function L(t) {
|
|
100
|
+
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
101
|
+
return t;
|
|
102
|
+
}
|
|
103
|
+
function P() {
|
|
104
|
+
try {
|
|
105
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
106
|
+
}));
|
|
107
|
+
} catch {
|
|
108
|
+
}
|
|
109
|
+
return (P = function() {
|
|
110
|
+
return !!t;
|
|
111
|
+
})();
|
|
112
|
+
}
|
|
113
|
+
function a(t) {
|
|
114
|
+
return a = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
115
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
116
|
+
}, a(t);
|
|
117
|
+
}
|
|
118
|
+
var I = function(e) {
|
|
119
|
+
var r;
|
|
120
|
+
return e.infinite ? r = Math.ceil(e.slideCount / e.slidesToScroll) : r = Math.ceil((e.slideCount - e.slidesToShow) / e.slidesToScroll) + 1, r;
|
|
121
|
+
};
|
|
122
|
+
return s.Dots = /* @__PURE__ */ (function(t) {
|
|
123
|
+
x(r, t);
|
|
124
|
+
var e = H(r);
|
|
125
|
+
function r() {
|
|
126
|
+
return M(this, r), e.apply(this, arguments);
|
|
127
|
+
}
|
|
128
|
+
return R(r, [{
|
|
129
|
+
key: "clickHandler",
|
|
130
|
+
value: function(n, d) {
|
|
131
|
+
d.preventDefault(), this.props.clickHandler(n);
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: "render",
|
|
135
|
+
value: function() {
|
|
136
|
+
for (var n = this.props, d = n.onMouseEnter, K = n.onMouseOver, U = n.onMouseLeave, c = n.infinite, f = n.slidesToScroll, z = n.slidesToShow, v = n.slideCount, p = n.currentSlide, $ = I({
|
|
137
|
+
slideCount: v,
|
|
138
|
+
slidesToScroll: f,
|
|
139
|
+
slidesToShow: z,
|
|
140
|
+
infinite: c
|
|
141
|
+
}), A = {
|
|
142
|
+
onMouseEnter: d,
|
|
143
|
+
onMouseOver: K,
|
|
144
|
+
onMouseLeave: U
|
|
145
|
+
}, b = [], u = 0; u < $; u++) {
|
|
146
|
+
var j = (u + 1) * f - 1, S = c ? j : (0, m.clamp)(j, 0, v - 1), w = S - (f - 1), g = c ? w : (0, m.clamp)(w, 0, v - 1), F = (0, D.default)({
|
|
147
|
+
"slick-active": c ? p >= g && p <= S : p === g
|
|
148
|
+
}), G = {
|
|
149
|
+
message: "dots",
|
|
150
|
+
index: u,
|
|
151
|
+
slidesToScroll: f,
|
|
152
|
+
currentSlide: p
|
|
153
|
+
}, J = this.clickHandler.bind(this, G);
|
|
154
|
+
b = b.concat(/* @__PURE__ */ l.default.createElement("li", {
|
|
155
|
+
key: u,
|
|
156
|
+
className: F
|
|
157
|
+
}, /* @__PURE__ */ l.default.cloneElement(this.props.customPaging(u), {
|
|
158
|
+
onClick: J
|
|
159
|
+
})));
|
|
160
|
+
}
|
|
161
|
+
return /* @__PURE__ */ l.default.cloneElement(this.props.appendDots(b), T({
|
|
162
|
+
className: this.props.dotsClass
|
|
163
|
+
}, A));
|
|
164
|
+
}
|
|
165
|
+
}]), r;
|
|
166
|
+
})(l.default.PureComponent), s;
|
|
167
|
+
}
|
|
168
|
+
export {
|
|
169
|
+
ee as __require
|
|
170
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exports as u } from "../../../../../../_virtual/index3.js";
|
|
2
2
|
import { __require as f } from "./slider.js";
|
|
3
3
|
var i;
|
|
4
|
-
function
|
|
4
|
+
function d() {
|
|
5
5
|
return i ? u : (i = 1, (function(r) {
|
|
6
6
|
Object.defineProperty(r, "__esModule", {
|
|
7
7
|
value: !0
|
|
@@ -14,5 +14,5 @@ function l() {
|
|
|
14
14
|
})(u), u);
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
d as __require
|
|
18
18
|
};
|