@rubenpazch/pagination 1.0.1

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.
@@ -0,0 +1,692 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ function _interopNamespaceDefault(e) {
6
+ var n = Object.create(null);
7
+ if (e) {
8
+ Object.keys(e).forEach(function (k) {
9
+ if (k !== 'default') {
10
+ var d = Object.getOwnPropertyDescriptor(e, k);
11
+ Object.defineProperty(n, k, d.get ? d : {
12
+ enumerable: true,
13
+ get: function () { return e[k]; }
14
+ });
15
+ }
16
+ });
17
+ }
18
+ n.default = e;
19
+ return Object.freeze(n);
20
+ }
21
+
22
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
23
+
24
+ var jsxRuntime = {exports: {}};
25
+
26
+ var reactJsxRuntime_production = {};
27
+
28
+ /**
29
+ * @license React
30
+ * react-jsx-runtime.production.js
31
+ *
32
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */
37
+
38
+ var hasRequiredReactJsxRuntime_production;
39
+
40
+ function requireReactJsxRuntime_production () {
41
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
42
+ hasRequiredReactJsxRuntime_production = 1;
43
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
44
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
45
+ function jsxProd(type, config, maybeKey) {
46
+ var key = null;
47
+ void 0 !== maybeKey && (key = "" + maybeKey);
48
+ void 0 !== config.key && (key = "" + config.key);
49
+ if ("key" in config) {
50
+ maybeKey = {};
51
+ for (var propName in config)
52
+ "key" !== propName && (maybeKey[propName] = config[propName]);
53
+ } else maybeKey = config;
54
+ config = maybeKey.ref;
55
+ return {
56
+ $$typeof: REACT_ELEMENT_TYPE,
57
+ type: type,
58
+ key: key,
59
+ ref: void 0 !== config ? config : null,
60
+ props: maybeKey
61
+ };
62
+ }
63
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
64
+ reactJsxRuntime_production.jsx = jsxProd;
65
+ reactJsxRuntime_production.jsxs = jsxProd;
66
+ return reactJsxRuntime_production;
67
+ }
68
+
69
+ var reactJsxRuntime_development = {};
70
+
71
+ /**
72
+ * @license React
73
+ * react-jsx-runtime.development.js
74
+ *
75
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
76
+ *
77
+ * This source code is licensed under the MIT license found in the
78
+ * LICENSE file in the root directory of this source tree.
79
+ */
80
+
81
+ var hasRequiredReactJsxRuntime_development;
82
+
83
+ function requireReactJsxRuntime_development () {
84
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
85
+ hasRequiredReactJsxRuntime_development = 1;
86
+ "production" !== process.env.NODE_ENV &&
87
+ (function () {
88
+ function getComponentNameFromType(type) {
89
+ if (null == type) return null;
90
+ if ("function" === typeof type)
91
+ return type.$$typeof === REACT_CLIENT_REFERENCE
92
+ ? null
93
+ : type.displayName || type.name || null;
94
+ if ("string" === typeof type) return type;
95
+ switch (type) {
96
+ case REACT_FRAGMENT_TYPE:
97
+ return "Fragment";
98
+ case REACT_PROFILER_TYPE:
99
+ return "Profiler";
100
+ case REACT_STRICT_MODE_TYPE:
101
+ return "StrictMode";
102
+ case REACT_SUSPENSE_TYPE:
103
+ return "Suspense";
104
+ case REACT_SUSPENSE_LIST_TYPE:
105
+ return "SuspenseList";
106
+ case REACT_ACTIVITY_TYPE:
107
+ return "Activity";
108
+ }
109
+ if ("object" === typeof type)
110
+ switch (
111
+ ("number" === typeof type.tag &&
112
+ console.error(
113
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
114
+ ),
115
+ type.$$typeof)
116
+ ) {
117
+ case REACT_PORTAL_TYPE:
118
+ return "Portal";
119
+ case REACT_CONTEXT_TYPE:
120
+ return type.displayName || "Context";
121
+ case REACT_CONSUMER_TYPE:
122
+ return (type._context.displayName || "Context") + ".Consumer";
123
+ case REACT_FORWARD_REF_TYPE:
124
+ var innerType = type.render;
125
+ type = type.displayName;
126
+ type ||
127
+ ((type = innerType.displayName || innerType.name || ""),
128
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
129
+ return type;
130
+ case REACT_MEMO_TYPE:
131
+ return (
132
+ (innerType = type.displayName || null),
133
+ null !== innerType
134
+ ? innerType
135
+ : getComponentNameFromType(type.type) || "Memo"
136
+ );
137
+ case REACT_LAZY_TYPE:
138
+ innerType = type._payload;
139
+ type = type._init;
140
+ try {
141
+ return getComponentNameFromType(type(innerType));
142
+ } catch (x) {}
143
+ }
144
+ return null;
145
+ }
146
+ function testStringCoercion(value) {
147
+ return "" + value;
148
+ }
149
+ function checkKeyStringCoercion(value) {
150
+ try {
151
+ testStringCoercion(value);
152
+ var JSCompiler_inline_result = !1;
153
+ } catch (e) {
154
+ JSCompiler_inline_result = true;
155
+ }
156
+ if (JSCompiler_inline_result) {
157
+ JSCompiler_inline_result = console;
158
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
159
+ var JSCompiler_inline_result$jscomp$0 =
160
+ ("function" === typeof Symbol &&
161
+ Symbol.toStringTag &&
162
+ value[Symbol.toStringTag]) ||
163
+ value.constructor.name ||
164
+ "Object";
165
+ JSCompiler_temp_const.call(
166
+ JSCompiler_inline_result,
167
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
168
+ JSCompiler_inline_result$jscomp$0
169
+ );
170
+ return testStringCoercion(value);
171
+ }
172
+ }
173
+ function getTaskName(type) {
174
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
175
+ if (
176
+ "object" === typeof type &&
177
+ null !== type &&
178
+ type.$$typeof === REACT_LAZY_TYPE
179
+ )
180
+ return "<...>";
181
+ try {
182
+ var name = getComponentNameFromType(type);
183
+ return name ? "<" + name + ">" : "<...>";
184
+ } catch (x) {
185
+ return "<...>";
186
+ }
187
+ }
188
+ function getOwner() {
189
+ var dispatcher = ReactSharedInternals.A;
190
+ return null === dispatcher ? null : dispatcher.getOwner();
191
+ }
192
+ function UnknownOwner() {
193
+ return Error("react-stack-top-frame");
194
+ }
195
+ function hasValidKey(config) {
196
+ if (hasOwnProperty.call(config, "key")) {
197
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
198
+ if (getter && getter.isReactWarning) return false;
199
+ }
200
+ return void 0 !== config.key;
201
+ }
202
+ function defineKeyPropWarningGetter(props, displayName) {
203
+ function warnAboutAccessingKey() {
204
+ specialPropKeyWarningShown ||
205
+ ((specialPropKeyWarningShown = true),
206
+ console.error(
207
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
208
+ displayName
209
+ ));
210
+ }
211
+ warnAboutAccessingKey.isReactWarning = true;
212
+ Object.defineProperty(props, "key", {
213
+ get: warnAboutAccessingKey,
214
+ configurable: true
215
+ });
216
+ }
217
+ function elementRefGetterWithDeprecationWarning() {
218
+ var componentName = getComponentNameFromType(this.type);
219
+ didWarnAboutElementRef[componentName] ||
220
+ ((didWarnAboutElementRef[componentName] = true),
221
+ console.error(
222
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
223
+ ));
224
+ componentName = this.props.ref;
225
+ return void 0 !== componentName ? componentName : null;
226
+ }
227
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
228
+ var refProp = props.ref;
229
+ type = {
230
+ $$typeof: REACT_ELEMENT_TYPE,
231
+ type: type,
232
+ key: key,
233
+ props: props,
234
+ _owner: owner
235
+ };
236
+ null !== (void 0 !== refProp ? refProp : null)
237
+ ? Object.defineProperty(type, "ref", {
238
+ enumerable: false,
239
+ get: elementRefGetterWithDeprecationWarning
240
+ })
241
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
242
+ type._store = {};
243
+ Object.defineProperty(type._store, "validated", {
244
+ configurable: false,
245
+ enumerable: false,
246
+ writable: true,
247
+ value: 0
248
+ });
249
+ Object.defineProperty(type, "_debugInfo", {
250
+ configurable: false,
251
+ enumerable: false,
252
+ writable: true,
253
+ value: null
254
+ });
255
+ Object.defineProperty(type, "_debugStack", {
256
+ configurable: false,
257
+ enumerable: false,
258
+ writable: true,
259
+ value: debugStack
260
+ });
261
+ Object.defineProperty(type, "_debugTask", {
262
+ configurable: false,
263
+ enumerable: false,
264
+ writable: true,
265
+ value: debugTask
266
+ });
267
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
268
+ return type;
269
+ }
270
+ function jsxDEVImpl(
271
+ type,
272
+ config,
273
+ maybeKey,
274
+ isStaticChildren,
275
+ debugStack,
276
+ debugTask
277
+ ) {
278
+ var children = config.children;
279
+ if (void 0 !== children)
280
+ if (isStaticChildren)
281
+ if (isArrayImpl(children)) {
282
+ for (
283
+ isStaticChildren = 0;
284
+ isStaticChildren < children.length;
285
+ isStaticChildren++
286
+ )
287
+ validateChildKeys(children[isStaticChildren]);
288
+ Object.freeze && Object.freeze(children);
289
+ } else
290
+ console.error(
291
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
292
+ );
293
+ else validateChildKeys(children);
294
+ if (hasOwnProperty.call(config, "key")) {
295
+ children = getComponentNameFromType(type);
296
+ var keys = Object.keys(config).filter(function (k) {
297
+ return "key" !== k;
298
+ });
299
+ isStaticChildren =
300
+ 0 < keys.length
301
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
302
+ : "{key: someKey}";
303
+ didWarnAboutKeySpread[children + isStaticChildren] ||
304
+ ((keys =
305
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
306
+ console.error(
307
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
308
+ isStaticChildren,
309
+ children,
310
+ keys,
311
+ children
312
+ ),
313
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
314
+ }
315
+ children = null;
316
+ void 0 !== maybeKey &&
317
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
318
+ hasValidKey(config) &&
319
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
320
+ if ("key" in config) {
321
+ maybeKey = {};
322
+ for (var propName in config)
323
+ "key" !== propName && (maybeKey[propName] = config[propName]);
324
+ } else maybeKey = config;
325
+ children &&
326
+ defineKeyPropWarningGetter(
327
+ maybeKey,
328
+ "function" === typeof type
329
+ ? type.displayName || type.name || "Unknown"
330
+ : type
331
+ );
332
+ return ReactElement(
333
+ type,
334
+ children,
335
+ maybeKey,
336
+ getOwner(),
337
+ debugStack,
338
+ debugTask
339
+ );
340
+ }
341
+ function validateChildKeys(node) {
342
+ isValidElement(node)
343
+ ? node._store && (node._store.validated = 1)
344
+ : "object" === typeof node &&
345
+ null !== node &&
346
+ node.$$typeof === REACT_LAZY_TYPE &&
347
+ ("fulfilled" === node._payload.status
348
+ ? isValidElement(node._payload.value) &&
349
+ node._payload.value._store &&
350
+ (node._payload.value._store.validated = 1)
351
+ : node._store && (node._store.validated = 1));
352
+ }
353
+ function isValidElement(object) {
354
+ return (
355
+ "object" === typeof object &&
356
+ null !== object &&
357
+ object.$$typeof === REACT_ELEMENT_TYPE
358
+ );
359
+ }
360
+ var React$1 = React,
361
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
362
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
363
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
364
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
365
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
366
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
367
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
368
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
369
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
370
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
371
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
372
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
373
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
374
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
375
+ ReactSharedInternals =
376
+ React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
377
+ hasOwnProperty = Object.prototype.hasOwnProperty,
378
+ isArrayImpl = Array.isArray,
379
+ createTask = console.createTask
380
+ ? console.createTask
381
+ : function () {
382
+ return null;
383
+ };
384
+ React$1 = {
385
+ react_stack_bottom_frame: function (callStackForError) {
386
+ return callStackForError();
387
+ }
388
+ };
389
+ var specialPropKeyWarningShown;
390
+ var didWarnAboutElementRef = {};
391
+ var unknownOwnerDebugStack = React$1.react_stack_bottom_frame.bind(
392
+ React$1,
393
+ UnknownOwner
394
+ )();
395
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
396
+ var didWarnAboutKeySpread = {};
397
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
398
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
399
+ var trackActualOwner =
400
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
401
+ return jsxDEVImpl(
402
+ type,
403
+ config,
404
+ maybeKey,
405
+ false,
406
+ trackActualOwner
407
+ ? Error("react-stack-top-frame")
408
+ : unknownOwnerDebugStack,
409
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
410
+ );
411
+ };
412
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
413
+ var trackActualOwner =
414
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
415
+ return jsxDEVImpl(
416
+ type,
417
+ config,
418
+ maybeKey,
419
+ true,
420
+ trackActualOwner
421
+ ? Error("react-stack-top-frame")
422
+ : unknownOwnerDebugStack,
423
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
424
+ );
425
+ };
426
+ })();
427
+ return reactJsxRuntime_development;
428
+ }
429
+
430
+ var hasRequiredJsxRuntime;
431
+
432
+ function requireJsxRuntime () {
433
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
434
+ hasRequiredJsxRuntime = 1;
435
+
436
+ if (process.env.NODE_ENV === 'production') {
437
+ jsxRuntime.exports = requireReactJsxRuntime_production();
438
+ } else {
439
+ jsxRuntime.exports = requireReactJsxRuntime_development();
440
+ }
441
+ return jsxRuntime.exports;
442
+ }
443
+
444
+ var jsxRuntimeExports = requireJsxRuntime();
445
+
446
+ var s,o={exports:{}},t={};var n,l,a={};
447
+ /**
448
+ * @license React
449
+ * react-jsx-runtime.development.js
450
+ *
451
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
452
+ *
453
+ * This source code is licensed under the MIT license found in the
454
+ * LICENSE file in the root directory of this source tree.
455
+ */function i(){return n||(n=1,"production"!==process.env.NODE_ENV&&function(){function e(r){if(null==r)return null;if("function"==typeof r)return r.$$typeof===M?null:r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case x:return "Fragment";case v:return "Profiler";case p:return "StrictMode";case k:return "Suspense";case C:return "SuspenseList";case N:return "Activity"}if("object"==typeof r)switch("number"==typeof r.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case u:return "Portal";case j:return r.displayName||"Context";case g:return (r._context.displayName||"Context")+".Consumer";case f:var s=r.render;return (r=r.displayName)||(r=""!==(r=s.displayName||s.name||"")?"ForwardRef("+r+")":"ForwardRef"),r;case y:return null!==(s=r.displayName||null)?s:e(r.type)||"Memo";case L:s=r._payload,r=r._init;try{return e(r(s))}catch(e){}}return null}function s(e){return ""+e}function o(e){try{s(e);var r=!1;}catch(e){r=true;}if(r){var o=(r=console).error,t="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),s(e)}}function t(r){if(r===x)return "<>";if("object"==typeof r&&null!==r&&r.$$typeof===L)return "<...>";try{var s=e(r);return s?"<"+s+">":"<...>"}catch(e){return "<...>"}}function n(){return Error("react-stack-top-frame")}function l(){var r=e(this.type);return B[r]||(B[r]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(r=this.props.ref)?r:null}function i(r,s,t,n,a,i){var h,m=s.children;if(void 0!==m)if(n)if(z(m)){for(n=0;n<m.length;n++)c(m[n]);Object.freeze&&Object.freeze(m);}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(m);if($.call(s,"key")){m=e(r);var u=Object.keys(s).filter(function(e){return "key"!==e});n=0<u.length?"{key: someKey, "+u.join(": ..., ")+": ...}":"{key: someKey}",_[m+n]||(u=0<u.length?"{"+u.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',n,m,u,m),_[m+n]=true);}if(m=null,void 0!==t&&(o(t),m=""+t),function(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return false}return void 0!==e.key}(s)&&(o(s.key),m=""+s.key),"key"in s)for(var x in t={},s)"key"!==x&&(t[x]=s[x]);else t=s;return m&&function(e,r){function s(){d||(d=true,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r));}s.isReactWarning=true,Object.defineProperty(e,"key",{get:s,configurable:true});}(t,"function"==typeof r?r.displayName||r.name||"Unknown":r),function(e,r,s,o,t,n){var a=s.ref;return e={$$typeof:w,type:e,key:r,props:s,_owner:o},null!==(void 0!==a?a:null)?Object.defineProperty(e,"ref",{enumerable:false,get:l}):Object.defineProperty(e,"ref",{enumerable:false,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(e,"_debugStack",{configurable:false,enumerable:false,writable:true,value:t}),Object.defineProperty(e,"_debugTask",{configurable:false,enumerable:false,writable:true,value:n}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(r,m,t,null===(h=b.A)?null:h.getOwner(),a,i)}function c(e){h(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===L&&("fulfilled"===e._payload.status?h(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1));}function h(e){return "object"==typeof e&&null!==e&&e.$$typeof===w}var d,m=React,w=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),j=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),b=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,z=Array.isArray,H=console.createTask?console.createTask:function(){return null},B={},W=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,n)(),V=H(t(n)),_={};a.Fragment=x,a.jsx=function(e,r,s){var o=1e4>b.recentlyCreatedOwnerStacks++;return i(e,r,s,false,o?Error("react-stack-top-frame"):W,o?H(t(e)):V)},a.jsxs=function(e,r,s){var o=1e4>b.recentlyCreatedOwnerStacks++;return i(e,r,s,true,o?Error("react-stack-top-frame"):W,o?H(t(e)):V)};}()),a}var c=(l||(l=1,"production"===process.env.NODE_ENV?o.exports=function(){if(s)return t;s=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(r,s,o){var t=null;if(void 0!==o&&(t=""+o),void 0!==s.key&&(t=""+s.key),"key"in s)for(var n in o={},s)"key"!==n&&(o[n]=s[n]);else o=s;return s=o.ref,{$$typeof:e,type:r,key:t,ref:void 0!==s?s:null,props:o}}return t.Fragment=r,t.jsx=o,t.jsxs=o,t}():o.exports=i()),o.exports);const C={sm:16,md:20,lg:28},y=({size:e="md",direction:r="right",...s})=>{const o=C[e],t="left"===r;return c.jsx("svg",{width:o,height:o,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...s,children:c.jsxs("g",{transform:t?"scale(-1,1) translate(-20,0)":void 0,children:[c.jsx("path",{d:"M7.22 5.22a.75.75 0 011.06 0l4 4a.75.75 0 010 1.06l-4 4a.75.75 0 11-1.06-1.06L10.94 10 7.22 6.28a.75.75 0 010-1.06z"}),c.jsx("path",{d:"M15.25 4a.75.75 0 10-1.5 0v12a.75.75 0 101.5 0V4z"})]})})},L=({className:e="",size:r="md",color:s="currentColor",direction:o="down"})=>c.jsx("svg",{className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[r]} ${{up:"rotate-180",down:"",left:"rotate-90",right:"-rotate-90"}[o]} ${e}`,fill:"none",stroke:s,viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M6 9l6 6 6-6"})});const Ae={outlined:"material-symbols-outlined",rounded:"material-symbols-rounded",sharp:"material-symbols-sharp"},Ee=React__namespace.forwardRef(({name:e,variant:r="outlined",size:s="md",fill:o=0,weight:t=400,grade:n=0,opticalSize:l=24,style:a,className:i,...h},d)=>{const m=(e=>"number"==typeof e?e:"sm"===e?16:"md"===e?20:24)(s),w=`"FILL" ${o}, "wght" ${t}, "GRAD" ${n}, "opsz" ${l}`;return c.jsx("span",{ref:d,"aria-hidden":"true",className:Ae[r]+(i?` ${i}`:""),style:{fontVariationSettings:w,fontSize:m,lineHeight:1,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",...a},...h,children:e})});Ee.displayName="MaterialIcon";
456
+
457
+ function styleInject(css, ref) {
458
+ if ( ref === void 0 ) ref = {};
459
+ var insertAt = ref.insertAt;
460
+
461
+ if (!css || typeof document === 'undefined') { return; }
462
+
463
+ var head = document.head || document.getElementsByTagName('head')[0];
464
+ var style = document.createElement('style');
465
+ style.type = 'text/css';
466
+
467
+ if (insertAt === 'top') {
468
+ if (head.firstChild) {
469
+ head.insertBefore(style, head.firstChild);
470
+ } else {
471
+ head.appendChild(style);
472
+ }
473
+ } else {
474
+ head.appendChild(style);
475
+ }
476
+
477
+ if (style.styleSheet) {
478
+ style.styleSheet.cssText = css;
479
+ } else {
480
+ style.appendChild(document.createTextNode(css));
481
+ }
482
+ }
483
+
484
+ var css_248z$1 = "/* Pagination Item */\n.PaginationItem-module_item__pRz10 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;\n font-weight: 500;\n line-height: 1.5;\n user-select: none;\n transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.PaginationItem-module_button__vvMNc {\n border: none;\n background: transparent;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.87);\n margin: 0;\n}\n\n.PaginationItem-module_button__vvMNc:hover:not(.PaginationItem-module_disabled__pjZg5) {\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.PaginationItem-module_button__vvMNc:focus-visible {\n outline: 2px solid #1976d2;\n outline-offset: 2px;\n}\n\n.PaginationItem-module_ellipsis__O3uKM {\n color: rgba(0, 0, 0, 0.54);\n pointer-events: none;\n}\n\n/* Sizes */\n.PaginationItem-module_size-small__EL1RS {\n min-width: 26px;\n height: 26px;\n font-size: 0.75rem;\n padding: 0 6px;\n}\n\n.PaginationItem-module_size-medium__BhNiF {\n min-width: 32px;\n height: 32px;\n font-size: 0.875rem;\n padding: 0 6px;\n}\n\n.PaginationItem-module_size-large__gFIDd {\n min-width: 40px;\n height: 40px;\n font-size: 1rem;\n padding: 0 10px;\n}\n\n/* Circular items must be true circles (equal width/height, no horizontal padding) */\n.PaginationItem-module_shape-circular__maeDw.PaginationItem-module_size-small__EL1RS {\n width: 26px;\n height: 26px;\n padding: 0;\n}\n\n.PaginationItem-module_shape-circular__maeDw.PaginationItem-module_size-medium__BhNiF {\n width: 32px;\n height: 32px;\n padding: 0;\n}\n\n.PaginationItem-module_shape-circular__maeDw.PaginationItem-module_size-large__gFIDd {\n width: 40px;\n height: 40px;\n padding: 0;\n}\n\n/* Shapes */\n.PaginationItem-module_shape-rounded__UttZK {\n border-radius: 4px;\n}\n\n.PaginationItem-module_shape-circular__maeDw {\n border-radius: 50%;\n}\n\n/* Variants */\n.PaginationItem-module_variant-text__tlyX0.PaginationItem-module_selected__HrXZ7 {\n background-color: rgba(25, 118, 210, 0.12);\n color: #1976d2;\n font-weight: 600;\n}\n\n.PaginationItem-module_variant-outlined__sukDY {\n border: 1px solid rgba(0, 0, 0, 0.23);\n}\n\n.PaginationItem-module_variant-outlined__sukDY:hover:not(.PaginationItem-module_disabled__pjZg5) {\n border-color: rgba(0, 0, 0, 0.87);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.PaginationItem-module_variant-outlined__sukDY.PaginationItem-module_selected__HrXZ7 {\n background-color: rgba(25, 118, 210, 0.12);\n color: #1976d2;\n border-color: #1976d2;\n font-weight: 600;\n}\n\n/* States */\n.PaginationItem-module_disabled__pjZg5 {\n opacity: 0.38;\n cursor: not-allowed;\n pointer-events: none;\n}\n\n/* Navigation buttons */\n.PaginationItem-module_navigation__9oiE2 {\n min-width: auto;\n}\n\n.PaginationItem-module_icon__f5p0K {\n width: 20px;\n height: 20px;\n fill: currentColor;\n}\n\n.PaginationItem-module_size-small__EL1RS .PaginationItem-module_icon__f5p0K {\n width: 18px;\n height: 18px;\n}\n\n.PaginationItem-module_size-large__gFIDd .PaginationItem-module_icon__f5p0K {\n width: 22px;\n height: 22px;\n}\n";
485
+ var styles$1 = {"item":"PaginationItem-module_item__pRz10","button":"PaginationItem-module_button__vvMNc","disabled":"PaginationItem-module_disabled__pjZg5","ellipsis":"PaginationItem-module_ellipsis__O3uKM","size-small":"PaginationItem-module_size-small__EL1RS","size-medium":"PaginationItem-module_size-medium__BhNiF","size-large":"PaginationItem-module_size-large__gFIDd","shape-circular":"PaginationItem-module_shape-circular__maeDw","shape-rounded":"PaginationItem-module_shape-rounded__UttZK","variant-text":"PaginationItem-module_variant-text__tlyX0","selected":"PaginationItem-module_selected__HrXZ7","variant-outlined":"PaginationItem-module_variant-outlined__sukDY","navigation":"PaginationItem-module_navigation__9oiE2","icon":"PaginationItem-module_icon__f5p0K"};
486
+ styleInject(css_248z$1);
487
+
488
+ const classNames$1 = (...classes) => classes.filter(Boolean).join(" ");
489
+ const iconSizeMap = {
490
+ small: "sm",
491
+ medium: "md",
492
+ large: "lg",
493
+ };
494
+ const PaginationItem = React.forwardRef(({ page, type, selected = false, disabled = false, shape = "rounded", size = "medium", variant = "text", className, ...props }, ref) => {
495
+ // Ellipsis are not interactive
496
+ if (type === "start-ellipsis" || type === "end-ellipsis") {
497
+ // Use ASCII ellipsis to keep output portable across environments
498
+ return (jsxRuntimeExports.jsx("div", { className: classNames$1(styles$1.item, styles$1.ellipsis, styles$1[`size-${size}`]), children: "..." }));
499
+ }
500
+ const isNavigationButton = type === "first" ||
501
+ type === "last" ||
502
+ type === "next" ||
503
+ type === "previous";
504
+ const renderNavigationIcon = () => {
505
+ const iconSize = iconSizeMap[size];
506
+ if (type === "first") {
507
+ return (jsxRuntimeExports.jsx(y, { direction: "left", size: iconSize, className: styles$1.icon, "aria-hidden": "true" }));
508
+ }
509
+ if (type === "last") {
510
+ return (jsxRuntimeExports.jsx(y, { direction: "right", size: iconSize, className: styles$1.icon, "aria-hidden": "true" }));
511
+ }
512
+ if (type === "next") {
513
+ return (jsxRuntimeExports.jsx(L, { direction: "right", size: iconSize, className: styles$1.icon, "aria-hidden": "true" }));
514
+ }
515
+ if (type === "previous") {
516
+ return (jsxRuntimeExports.jsx(L, { direction: "left", size: iconSize, className: styles$1.icon, "aria-hidden": "true" }));
517
+ }
518
+ return null;
519
+ };
520
+ const getButtonContent = () => {
521
+ switch (type) {
522
+ case "first":
523
+ case "last":
524
+ case "next":
525
+ case "previous":
526
+ return renderNavigationIcon();
527
+ default:
528
+ return page;
529
+ }
530
+ };
531
+ const classes = classNames$1(styles$1.item, styles$1.button, styles$1[`size-${size}`], styles$1[`shape-${shape}`], styles$1[`variant-${variant}`], selected && styles$1.selected, disabled && styles$1.disabled, isNavigationButton && styles$1.navigation, className);
532
+ return (jsxRuntimeExports.jsx("button", { ref: ref, type: "button", className: classes, disabled: disabled, "aria-label": type === "first"
533
+ ? "Go to first page"
534
+ : type === "last"
535
+ ? "Go to last page"
536
+ : type === "next"
537
+ ? "Go to next page"
538
+ : type === "previous"
539
+ ? "Go to previous page"
540
+ : `Go to page ${page}`, "aria-current": selected ? "true" : undefined, ...props, children: getButtonContent() }));
541
+ });
542
+ PaginationItem.displayName = "PaginationItem";
543
+
544
+ var css_248z = "/* Pagination root */\n.Pagination-module_root__aWgof {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.Pagination-module_ul__MfLr5 {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0;\n margin: 0;\n list-style: none;\n gap: 4px;\n}\n";
545
+ var styles = {"root":"Pagination-module_root__aWgof","ul":"Pagination-module_ul__MfLr5"};
546
+ styleInject(css_248z);
547
+
548
+ const classNames = (...classes) => classes.filter(Boolean).join(" ");
549
+ // Utility to generate pagination items
550
+ const usePagination = (props) => {
551
+ const { count, page, boundaryCount, siblingCount, showFirstButton, showLastButton, hideNextButton, hidePrevButton, } = props;
552
+ const items = [];
553
+ // Helper to create item
554
+ const createItem = (pageNum, type, onClick) => ({
555
+ page: pageNum,
556
+ type,
557
+ selected: pageNum === page,
558
+ disabled: type === "next" ? page >= count : type === "previous" ? page <= 1 : false,
559
+ onClick,
560
+ });
561
+ // First button
562
+ if (showFirstButton) {
563
+ items.push(createItem(1, "first", () => { }));
564
+ }
565
+ // Previous button
566
+ if (!hidePrevButton) {
567
+ items.push(createItem(Math.max(1, page - 1), "previous", () => { }));
568
+ }
569
+ // Start pages
570
+ const startPages = [];
571
+ for (let i = 1; i <= Math.min(boundaryCount, count); i++) {
572
+ startPages.push(i);
573
+ }
574
+ // End pages
575
+ const endPages = [];
576
+ for (let i = Math.max(count - boundaryCount + 1, boundaryCount + 1); i <= count; i++) {
577
+ endPages.push(i);
578
+ }
579
+ // Sibling pages
580
+ const siblingStart = Math.max(Math.min(page - siblingCount, count - boundaryCount - siblingCount * 2 - 1), boundaryCount + 2);
581
+ const siblingEnd = Math.min(Math.max(page + siblingCount, boundaryCount + siblingCount * 2 + 2), count - boundaryCount - 1);
582
+ // Build item list
583
+ const itemList = [
584
+ ...startPages,
585
+ ...(siblingStart > boundaryCount + 2
586
+ ? ["start-ellipsis"]
587
+ : boundaryCount + 1 < count - boundaryCount
588
+ ? [boundaryCount + 1]
589
+ : []),
590
+ ...Array.from({ length: siblingEnd - siblingStart + 1 }, (_, i) => siblingStart + i).filter((p) => p > boundaryCount && p < count - boundaryCount + 1),
591
+ ...(siblingEnd < count - boundaryCount - 1
592
+ ? ["end-ellipsis"]
593
+ : count - boundaryCount > boundaryCount
594
+ ? [count - boundaryCount]
595
+ : []),
596
+ ...endPages,
597
+ ];
598
+ // Convert to items
599
+ itemList.forEach((item) => {
600
+ if (item === "start-ellipsis" || item === "end-ellipsis") {
601
+ items.push({
602
+ page: 0,
603
+ type: item,
604
+ selected: false,
605
+ disabled: true,
606
+ onClick: () => { },
607
+ });
608
+ }
609
+ else if (typeof item === "number") {
610
+ items.push(createItem(item, "page", () => { }));
611
+ }
612
+ });
613
+ // Next button
614
+ if (!hideNextButton) {
615
+ items.push(createItem(Math.min(count, page + 1), "next", () => { }));
616
+ }
617
+ // Last button
618
+ if (showLastButton) {
619
+ items.push(createItem(count, "last", () => { }));
620
+ }
621
+ return items;
622
+ };
623
+ const Pagination = React.forwardRef(({ count = 1, page: controlledPage, defaultPage = 1, onChange, disabled = false, hideNextButton = false, hidePrevButton = false, showFirstButton = false, showLastButton = false, boundaryCount = 1, siblingCount = 1, shape = "rounded", size = "medium", variant = "text", renderItem, className, ...props }, ref) => {
624
+ const [page, setPage] = React.useState(defaultPage);
625
+ const currentPage = controlledPage ?? page;
626
+ const handleClick = (event, value) => {
627
+ if (!controlledPage) {
628
+ setPage(value);
629
+ }
630
+ if (onChange) {
631
+ onChange(event, value);
632
+ }
633
+ };
634
+ const items = usePagination({
635
+ count,
636
+ page: currentPage,
637
+ boundaryCount,
638
+ siblingCount,
639
+ showFirstButton,
640
+ showLastButton,
641
+ hideNextButton,
642
+ hidePrevButton,
643
+ });
644
+ const classes = classNames(styles.root, className);
645
+ return (jsxRuntimeExports.jsx("nav", { ref: ref, className: classes, ...props, children: jsxRuntimeExports.jsx("ul", { className: styles.ul, children: items.map((item, index) => {
646
+ const isDisabled = disabled || item.disabled;
647
+ if (renderItem) {
648
+ return (jsxRuntimeExports.jsx("li", { children: renderItem({
649
+ ...item,
650
+ disabled: isDisabled,
651
+ onClick: (e) => {
652
+ if (!isDisabled && item.type === "page") {
653
+ handleClick(e, item.page);
654
+ }
655
+ else if (!isDisabled && item.type === "next") {
656
+ handleClick(e, Math.min(count, currentPage + 1));
657
+ }
658
+ else if (!isDisabled && item.type === "previous") {
659
+ handleClick(e, Math.max(1, currentPage - 1));
660
+ }
661
+ else if (!isDisabled && item.type === "first") {
662
+ handleClick(e, 1);
663
+ }
664
+ else if (!isDisabled && item.type === "last") {
665
+ handleClick(e, count);
666
+ }
667
+ },
668
+ }) }, index));
669
+ }
670
+ return (jsxRuntimeExports.jsx("li", { children: jsxRuntimeExports.jsx(PaginationItem, { ...item, disabled: isDisabled, shape: shape, size: size, variant: variant, onClick: (e) => {
671
+ if (!isDisabled && item.type === "page") {
672
+ handleClick(e, item.page);
673
+ }
674
+ else if (!isDisabled && item.type === "next") {
675
+ handleClick(e, Math.min(count, currentPage + 1));
676
+ }
677
+ else if (!isDisabled && item.type === "previous") {
678
+ handleClick(e, Math.max(1, currentPage - 1));
679
+ }
680
+ else if (!isDisabled && item.type === "first") {
681
+ handleClick(e, 1);
682
+ }
683
+ else if (!isDisabled && item.type === "last") {
684
+ handleClick(e, count);
685
+ }
686
+ } }) }, index));
687
+ }) }) }));
688
+ });
689
+ Pagination.displayName = "Pagination";
690
+
691
+ exports.Pagination = Pagination;
692
+ exports.PaginationItem = PaginationItem;