randmarcomps 1.233.0 → 1.235.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/randmarcomps.d.ts +5 -1
- package/dist/randmarcomps.js +513 -191
- package/dist/randmarcomps.umd.cjs +26 -21
- package/package.json +2 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Bn = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var pn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var jn = (e, t, n) => t in e ? Bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
-
var Yt = (e, t, n) => jn(e, typeof t != "symbol" ? t + "" : t, n), Ln = (e, t, n) => t.has(e) ||
|
|
7
|
-
var Xt = (e, t, n) => (Ln(e, t, "read from private field"), n ? n.call(e) : t.get(e)), dr = (e, t, n) => t.has(e) ?
|
|
6
|
+
var Yt = (e, t, n) => jn(e, typeof t != "symbol" ? t + "" : t, n), Ln = (e, t, n) => t.has(e) || pn("Cannot " + n);
|
|
7
|
+
var Xt = (e, t, n) => (Ln(e, t, "read from private field"), n ? n.call(e) : t.get(e)), dr = (e, t, n) => t.has(e) ? pn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
8
8
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import React__default, { forwardRef, createElement, useState, useLayoutEffect, useEffect, createContext, useRef, useContext, useCallback, useDebugValue, useMemo, isValidElement, Children, PureComponent, useImperativeHandle, cloneElement, Component, Fragment as Fragment$1 } from "react";
|
|
@@ -1370,12 +1370,12 @@ function createTailwindMerge(e, ...t) {
|
|
|
1370
1370
|
const fromTheme = (e) => {
|
|
1371
1371
|
const t = (n) => n[e] || [];
|
|
1372
1372
|
return t.isThemeGetter = !0, t;
|
|
1373
|
-
}, arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fractionRegex = /^\d+\/\d+$/, tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, isFraction = (e) => fractionRegex.test(e), isNumber$
|
|
1373
|
+
}, arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fractionRegex = /^\d+\/\d+$/, tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, isFraction = (e) => fractionRegex.test(e), isNumber$3 = (e) => !!e && !Number.isNaN(Number(e)), isInteger = (e) => !!e && Number.isInteger(Number(e)), isPercent$1 = (e) => e.endsWith("%") && isNumber$3(e.slice(0, -1)), isTshirtSize = (e) => tshirtUnitRegex.test(e), isAny = () => !0, isLengthOnly = (e) => (
|
|
1374
1374
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1375
1375
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1376
1376
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1377
1377
|
lengthUnitRegex.test(e) && !colorFunctionRegex.test(e)
|
|
1378
|
-
), isNever = () => !1, isShadow = (e) => shadowRegex.test(e), isImage = (e) => imageRegex.test(e), isAnyNonArbitrary = (e) => !isArbitraryValue(e) && !isArbitraryVariable(e), isArbitrarySize = (e) => getIsArbitraryValue(e, isLabelSize, isNever), isArbitraryValue = (e) => arbitraryValueRegex.test(e), isArbitraryLength = (e) => getIsArbitraryValue(e, isLabelLength, isLengthOnly), isArbitraryNumber = (e) => getIsArbitraryValue(e, isLabelNumber, isNumber$
|
|
1378
|
+
), isNever = () => !1, isShadow = (e) => shadowRegex.test(e), isImage = (e) => imageRegex.test(e), isAnyNonArbitrary = (e) => !isArbitraryValue(e) && !isArbitraryVariable(e), isArbitrarySize = (e) => getIsArbitraryValue(e, isLabelSize, isNever), isArbitraryValue = (e) => arbitraryValueRegex.test(e), isArbitraryLength = (e) => getIsArbitraryValue(e, isLabelLength, isLengthOnly), isArbitraryNumber = (e) => getIsArbitraryValue(e, isLabelNumber, isNumber$3), isArbitraryPosition = (e) => getIsArbitraryValue(e, isLabelPosition, isNever), isArbitraryImage = (e) => getIsArbitraryValue(e, isLabelImage, isImage), isArbitraryShadow = (e) => getIsArbitraryValue(e, isLabelShadow, isShadow), isArbitraryVariable = (e) => arbitraryVariableRegex.test(e), isArbitraryVariableLength = (e) => getIsArbitraryVariable(e, isLabelLength), isArbitraryVariableFamilyName = (e) => getIsArbitraryVariable(e, isLabelFamilyName), isArbitraryVariablePosition = (e) => getIsArbitraryVariable(e, isLabelPosition), isArbitraryVariableSize = (e) => getIsArbitraryVariable(e, isLabelSize), isArbitraryVariableImage = (e) => getIsArbitraryVariable(e, isLabelImage), isArbitraryVariableShadow = (e) => getIsArbitraryVariable(e, isLabelShadow, !0), getIsArbitraryValue = (e, t, n) => {
|
|
1379
1379
|
const o = arbitraryValueRegex.exec(e);
|
|
1380
1380
|
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
|
|
1381
1381
|
}, getIsArbitraryVariable = (e, t, n = !1) => {
|
|
@@ -1416,14 +1416,14 @@ const fromTheme = (e) => {
|
|
|
1416
1416
|
_,
|
|
1417
1417
|
isArbitraryVariable,
|
|
1418
1418
|
isArbitraryValue
|
|
1419
|
-
], Je = () => ["", isNumber$
|
|
1419
|
+
], Je = () => ["", isNumber$3, isArbitraryVariableLength, isArbitraryLength], Ke = () => ["solid", "dashed", "dotted", "double"], Ze = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Xe = () => [isNumber$3, isPercent$1, isArbitraryVariablePosition, isArbitraryPosition], at = () => [
|
|
1420
1420
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1421
1421
|
"",
|
|
1422
1422
|
"none",
|
|
1423
1423
|
I,
|
|
1424
1424
|
isArbitraryVariable,
|
|
1425
1425
|
isArbitraryValue
|
|
1426
|
-
], et = () => ["none", isNumber$
|
|
1426
|
+
], et = () => ["none", isNumber$3, isArbitraryVariable, isArbitraryValue], tt = () => ["none", isNumber$3, isArbitraryVariable, isArbitraryValue], it = () => [isNumber$3, isArbitraryVariable, isArbitraryValue], qe = () => [isFraction, "full", ...ae()];
|
|
1427
1427
|
return {
|
|
1428
1428
|
cacheSize: 500,
|
|
1429
1429
|
theme: {
|
|
@@ -1442,7 +1442,7 @@ const fromTheme = (e) => {
|
|
|
1442
1442
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
1443
1443
|
radius: [isTshirtSize],
|
|
1444
1444
|
shadow: [isTshirtSize],
|
|
1445
|
-
spacing: ["px", isNumber$
|
|
1445
|
+
spacing: ["px", isNumber$3],
|
|
1446
1446
|
text: [isTshirtSize],
|
|
1447
1447
|
"text-shadow": [isTshirtSize],
|
|
1448
1448
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -1469,7 +1469,7 @@ const fromTheme = (e) => {
|
|
|
1469
1469
|
* @see https://tailwindcss.com/docs/columns
|
|
1470
1470
|
*/
|
|
1471
1471
|
columns: [{
|
|
1472
|
-
columns: [isNumber$
|
|
1472
|
+
columns: [isNumber$3, isArbitraryValue, isArbitraryVariable, g]
|
|
1473
1473
|
}],
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Break After
|
|
@@ -1700,21 +1700,21 @@ const fromTheme = (e) => {
|
|
|
1700
1700
|
* @see https://tailwindcss.com/docs/flex
|
|
1701
1701
|
*/
|
|
1702
1702
|
flex: [{
|
|
1703
|
-
flex: [isNumber$
|
|
1703
|
+
flex: [isNumber$3, isFraction, "auto", "initial", "none", isArbitraryValue]
|
|
1704
1704
|
}],
|
|
1705
1705
|
/**
|
|
1706
1706
|
* Flex Grow
|
|
1707
1707
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1708
1708
|
*/
|
|
1709
1709
|
grow: [{
|
|
1710
|
-
grow: ["", isNumber$
|
|
1710
|
+
grow: ["", isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
1711
1711
|
}],
|
|
1712
1712
|
/**
|
|
1713
1713
|
* Flex Shrink
|
|
1714
1714
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1715
1715
|
*/
|
|
1716
1716
|
shrink: [{
|
|
1717
|
-
shrink: ["", isNumber$
|
|
1717
|
+
shrink: ["", isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
1718
1718
|
}],
|
|
1719
1719
|
/**
|
|
1720
1720
|
* Order
|
|
@@ -2191,7 +2191,7 @@ const fromTheme = (e) => {
|
|
|
2191
2191
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2192
2192
|
*/
|
|
2193
2193
|
"line-clamp": [{
|
|
2194
|
-
"line-clamp": [isNumber$
|
|
2194
|
+
"line-clamp": [isNumber$3, "none", isArbitraryVariable, isArbitraryNumber]
|
|
2195
2195
|
}],
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Line Height
|
|
@@ -2264,7 +2264,7 @@ const fromTheme = (e) => {
|
|
|
2264
2264
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2265
2265
|
*/
|
|
2266
2266
|
"text-decoration-thickness": [{
|
|
2267
|
-
decoration: [isNumber$
|
|
2267
|
+
decoration: [isNumber$3, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
|
|
2268
2268
|
}],
|
|
2269
2269
|
/**
|
|
2270
2270
|
* Text Decoration Color
|
|
@@ -2278,7 +2278,7 @@ const fromTheme = (e) => {
|
|
|
2278
2278
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2279
2279
|
*/
|
|
2280
2280
|
"underline-offset": [{
|
|
2281
|
-
"underline-offset": [isNumber$
|
|
2281
|
+
"underline-offset": [isNumber$3, "auto", isArbitraryVariable, isArbitraryValue]
|
|
2282
2282
|
}],
|
|
2283
2283
|
/**
|
|
2284
2284
|
* Text Transform
|
|
@@ -2744,14 +2744,14 @@ const fromTheme = (e) => {
|
|
|
2744
2744
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2745
2745
|
*/
|
|
2746
2746
|
"outline-offset": [{
|
|
2747
|
-
"outline-offset": [isNumber$
|
|
2747
|
+
"outline-offset": [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
2748
2748
|
}],
|
|
2749
2749
|
/**
|
|
2750
2750
|
* Outline Width
|
|
2751
2751
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2752
2752
|
*/
|
|
2753
2753
|
"outline-w": [{
|
|
2754
|
-
outline: ["", isNumber$
|
|
2754
|
+
outline: ["", isNumber$3, isArbitraryVariableLength, isArbitraryLength]
|
|
2755
2755
|
}],
|
|
2756
2756
|
/**
|
|
2757
2757
|
* Outline Color
|
|
@@ -2826,7 +2826,7 @@ const fromTheme = (e) => {
|
|
|
2826
2826
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2827
2827
|
*/
|
|
2828
2828
|
"ring-offset-w": [{
|
|
2829
|
-
"ring-offset": [isNumber$
|
|
2829
|
+
"ring-offset": [isNumber$3, isArbitraryLength]
|
|
2830
2830
|
}],
|
|
2831
2831
|
/**
|
|
2832
2832
|
* Ring Offset Color
|
|
@@ -2870,7 +2870,7 @@ const fromTheme = (e) => {
|
|
|
2870
2870
|
* @see https://tailwindcss.com/docs/opacity
|
|
2871
2871
|
*/
|
|
2872
2872
|
opacity: [{
|
|
2873
|
-
opacity: [isNumber$
|
|
2873
|
+
opacity: [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
2874
2874
|
}],
|
|
2875
2875
|
/**
|
|
2876
2876
|
* Mix Blend Mode
|
|
@@ -2905,7 +2905,7 @@ const fromTheme = (e) => {
|
|
|
2905
2905
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2906
2906
|
*/
|
|
2907
2907
|
"mask-image-linear-pos": [{
|
|
2908
|
-
"mask-linear": [isNumber$
|
|
2908
|
+
"mask-linear": [isNumber$3]
|
|
2909
2909
|
}],
|
|
2910
2910
|
"mask-image-linear-from-pos": [{
|
|
2911
2911
|
"mask-linear-from": Xe()
|
|
@@ -3019,7 +3019,7 @@ const fromTheme = (e) => {
|
|
|
3019
3019
|
"mask-radial-at": Q()
|
|
3020
3020
|
}],
|
|
3021
3021
|
"mask-image-conic-pos": [{
|
|
3022
|
-
"mask-conic": [isNumber$
|
|
3022
|
+
"mask-conic": [isNumber$3]
|
|
3023
3023
|
}],
|
|
3024
3024
|
"mask-image-conic-from-pos": [{
|
|
3025
3025
|
"mask-conic-from": Xe()
|
|
@@ -3110,14 +3110,14 @@ const fromTheme = (e) => {
|
|
|
3110
3110
|
* @see https://tailwindcss.com/docs/brightness
|
|
3111
3111
|
*/
|
|
3112
3112
|
brightness: [{
|
|
3113
|
-
brightness: [isNumber$
|
|
3113
|
+
brightness: [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3114
3114
|
}],
|
|
3115
3115
|
/**
|
|
3116
3116
|
* Contrast
|
|
3117
3117
|
* @see https://tailwindcss.com/docs/contrast
|
|
3118
3118
|
*/
|
|
3119
3119
|
contrast: [{
|
|
3120
|
-
contrast: [isNumber$
|
|
3120
|
+
contrast: [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3121
3121
|
}],
|
|
3122
3122
|
/**
|
|
3123
3123
|
* Drop Shadow
|
|
@@ -3145,35 +3145,35 @@ const fromTheme = (e) => {
|
|
|
3145
3145
|
* @see https://tailwindcss.com/docs/grayscale
|
|
3146
3146
|
*/
|
|
3147
3147
|
grayscale: [{
|
|
3148
|
-
grayscale: ["", isNumber$
|
|
3148
|
+
grayscale: ["", isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3149
3149
|
}],
|
|
3150
3150
|
/**
|
|
3151
3151
|
* Hue Rotate
|
|
3152
3152
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3153
3153
|
*/
|
|
3154
3154
|
"hue-rotate": [{
|
|
3155
|
-
"hue-rotate": [isNumber$
|
|
3155
|
+
"hue-rotate": [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3156
3156
|
}],
|
|
3157
3157
|
/**
|
|
3158
3158
|
* Invert
|
|
3159
3159
|
* @see https://tailwindcss.com/docs/invert
|
|
3160
3160
|
*/
|
|
3161
3161
|
invert: [{
|
|
3162
|
-
invert: ["", isNumber$
|
|
3162
|
+
invert: ["", isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3163
3163
|
}],
|
|
3164
3164
|
/**
|
|
3165
3165
|
* Saturate
|
|
3166
3166
|
* @see https://tailwindcss.com/docs/saturate
|
|
3167
3167
|
*/
|
|
3168
3168
|
saturate: [{
|
|
3169
|
-
saturate: [isNumber$
|
|
3169
|
+
saturate: [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3170
3170
|
}],
|
|
3171
3171
|
/**
|
|
3172
3172
|
* Sepia
|
|
3173
3173
|
* @see https://tailwindcss.com/docs/sepia
|
|
3174
3174
|
*/
|
|
3175
3175
|
sepia: [{
|
|
3176
|
-
sepia: ["", isNumber$
|
|
3176
|
+
sepia: ["", isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3177
3177
|
}],
|
|
3178
3178
|
/**
|
|
3179
3179
|
* Backdrop Filter
|
|
@@ -3200,56 +3200,56 @@ const fromTheme = (e) => {
|
|
|
3200
3200
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3201
3201
|
*/
|
|
3202
3202
|
"backdrop-brightness": [{
|
|
3203
|
-
"backdrop-brightness": [isNumber$
|
|
3203
|
+
"backdrop-brightness": [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3204
3204
|
}],
|
|
3205
3205
|
/**
|
|
3206
3206
|
* Backdrop Contrast
|
|
3207
3207
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3208
3208
|
*/
|
|
3209
3209
|
"backdrop-contrast": [{
|
|
3210
|
-
"backdrop-contrast": [isNumber$
|
|
3210
|
+
"backdrop-contrast": [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3211
3211
|
}],
|
|
3212
3212
|
/**
|
|
3213
3213
|
* Backdrop Grayscale
|
|
3214
3214
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3215
3215
|
*/
|
|
3216
3216
|
"backdrop-grayscale": [{
|
|
3217
|
-
"backdrop-grayscale": ["", isNumber$
|
|
3217
|
+
"backdrop-grayscale": ["", isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3218
3218
|
}],
|
|
3219
3219
|
/**
|
|
3220
3220
|
* Backdrop Hue Rotate
|
|
3221
3221
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3222
3222
|
*/
|
|
3223
3223
|
"backdrop-hue-rotate": [{
|
|
3224
|
-
"backdrop-hue-rotate": [isNumber$
|
|
3224
|
+
"backdrop-hue-rotate": [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3225
3225
|
}],
|
|
3226
3226
|
/**
|
|
3227
3227
|
* Backdrop Invert
|
|
3228
3228
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3229
3229
|
*/
|
|
3230
3230
|
"backdrop-invert": [{
|
|
3231
|
-
"backdrop-invert": ["", isNumber$
|
|
3231
|
+
"backdrop-invert": ["", isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3232
3232
|
}],
|
|
3233
3233
|
/**
|
|
3234
3234
|
* Backdrop Opacity
|
|
3235
3235
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3236
3236
|
*/
|
|
3237
3237
|
"backdrop-opacity": [{
|
|
3238
|
-
"backdrop-opacity": [isNumber$
|
|
3238
|
+
"backdrop-opacity": [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3239
3239
|
}],
|
|
3240
3240
|
/**
|
|
3241
3241
|
* Backdrop Saturate
|
|
3242
3242
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3243
3243
|
*/
|
|
3244
3244
|
"backdrop-saturate": [{
|
|
3245
|
-
"backdrop-saturate": [isNumber$
|
|
3245
|
+
"backdrop-saturate": [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3246
3246
|
}],
|
|
3247
3247
|
/**
|
|
3248
3248
|
* Backdrop Sepia
|
|
3249
3249
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3250
3250
|
*/
|
|
3251
3251
|
"backdrop-sepia": [{
|
|
3252
|
-
"backdrop-sepia": ["", isNumber$
|
|
3252
|
+
"backdrop-sepia": ["", isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3253
3253
|
}],
|
|
3254
3254
|
// --------------
|
|
3255
3255
|
// --- Tables ---
|
|
@@ -3318,7 +3318,7 @@ const fromTheme = (e) => {
|
|
|
3318
3318
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3319
3319
|
*/
|
|
3320
3320
|
duration: [{
|
|
3321
|
-
duration: [isNumber$
|
|
3321
|
+
duration: [isNumber$3, "initial", isArbitraryVariable, isArbitraryValue]
|
|
3322
3322
|
}],
|
|
3323
3323
|
/**
|
|
3324
3324
|
* Transition Timing Function
|
|
@@ -3332,7 +3332,7 @@ const fromTheme = (e) => {
|
|
|
3332
3332
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3333
3333
|
*/
|
|
3334
3334
|
delay: [{
|
|
3335
|
-
delay: [isNumber$
|
|
3335
|
+
delay: [isNumber$3, isArbitraryVariable, isArbitraryValue]
|
|
3336
3336
|
}],
|
|
3337
3337
|
/**
|
|
3338
3338
|
* Animation
|
|
@@ -3776,7 +3776,7 @@ const fromTheme = (e) => {
|
|
|
3776
3776
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3777
3777
|
*/
|
|
3778
3778
|
"stroke-w": [{
|
|
3779
|
-
stroke: [isNumber$
|
|
3779
|
+
stroke: [isNumber$3, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
|
|
3780
3780
|
}],
|
|
3781
3781
|
/**
|
|
3782
3782
|
* Stroke
|
|
@@ -4357,7 +4357,7 @@ function focusFirst$3(e, t = !1) {
|
|
|
4357
4357
|
function wrapArray$2(e, t) {
|
|
4358
4358
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
4359
4359
|
}
|
|
4360
|
-
var Root$
|
|
4360
|
+
var Root$a = RovingFocusGroup, Item$1 = RovingFocusGroupItem;
|
|
4361
4361
|
function useSize(e) {
|
|
4362
4362
|
const [t, n] = React.useState(void 0);
|
|
4363
4363
|
return useLayoutEffect2(() => {
|
|
@@ -4498,9 +4498,9 @@ var RADIO_NAME = "Radio", [createRadioContext, createRadioScope] = createContext
|
|
|
4498
4498
|
}
|
|
4499
4499
|
);
|
|
4500
4500
|
Radio.displayName = RADIO_NAME;
|
|
4501
|
-
var INDICATOR_NAME$
|
|
4501
|
+
var INDICATOR_NAME$3 = "RadioIndicator", RadioIndicator = React.forwardRef(
|
|
4502
4502
|
(e, t) => {
|
|
4503
|
-
const { __scopeRadio: n, forceMount: o, ...l } = e, d = useRadioContext(INDICATOR_NAME$
|
|
4503
|
+
const { __scopeRadio: n, forceMount: o, ...l } = e, d = useRadioContext(INDICATOR_NAME$3, n);
|
|
4504
4504
|
return /* @__PURE__ */ jsx(Presence, { present: o || d.checked, children: /* @__PURE__ */ jsx(
|
|
4505
4505
|
Primitive.span,
|
|
4506
4506
|
{
|
|
@@ -4512,7 +4512,7 @@ var INDICATOR_NAME$2 = "RadioIndicator", RadioIndicator = React.forwardRef(
|
|
|
4512
4512
|
) });
|
|
4513
4513
|
}
|
|
4514
4514
|
);
|
|
4515
|
-
RadioIndicator.displayName = INDICATOR_NAME$
|
|
4515
|
+
RadioIndicator.displayName = INDICATOR_NAME$3;
|
|
4516
4516
|
var BUBBLE_INPUT_NAME$3 = "RadioBubbleInput", RadioBubbleInput = React.forwardRef(
|
|
4517
4517
|
({
|
|
4518
4518
|
__scopeRadio: e,
|
|
@@ -4591,7 +4591,7 @@ var ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], RADIO_GROU
|
|
|
4591
4591
|
value: M,
|
|
4592
4592
|
onValueChange: A,
|
|
4593
4593
|
children: /* @__PURE__ */ jsx(
|
|
4594
|
-
Root$
|
|
4594
|
+
Root$a,
|
|
4595
4595
|
{
|
|
4596
4596
|
asChild: !0,
|
|
4597
4597
|
...R,
|
|
@@ -4666,7 +4666,7 @@ var INDICATOR_NAME2 = "RadioGroupIndicator", RadioGroupIndicator = React.forward
|
|
|
4666
4666
|
}
|
|
4667
4667
|
);
|
|
4668
4668
|
RadioGroupIndicator.displayName = INDICATOR_NAME2;
|
|
4669
|
-
var Root2$6 = RadioGroup$2, Item2$2 = RadioGroupItem$1, Indicator = RadioGroupIndicator;
|
|
4669
|
+
var Root2$6 = RadioGroup$2, Item2$2 = RadioGroupItem$1, Indicator$1 = RadioGroupIndicator;
|
|
4670
4670
|
const RadioGroup$1 = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsx(
|
|
4671
4671
|
Root2$6,
|
|
4672
4672
|
{
|
|
@@ -4685,7 +4685,7 @@ const RadioGroupItem = React.forwardRef(({ className: e, ...t }, n) => /* @__PUR
|
|
|
4685
4685
|
e
|
|
4686
4686
|
),
|
|
4687
4687
|
...t,
|
|
4688
|
-
children: /* @__PURE__ */ jsx(Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(Circle, { className: "h-3.5 w-3.5 fill-primary" }) })
|
|
4688
|
+
children: /* @__PURE__ */ jsx(Indicator$1, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(Circle, { className: "h-3.5 w-3.5 fill-primary" }) })
|
|
4689
4689
|
}
|
|
4690
4690
|
));
|
|
4691
4691
|
RadioGroupItem.displayName = Item2$2.displayName;
|
|
@@ -4814,7 +4814,7 @@ function handleAndDispatchCustomEvent$1(e, t, n, { discrete: o }) {
|
|
|
4814
4814
|
const l = n.originalEvent.target, d = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
4815
4815
|
t && l.addEventListener(e, t, { once: !0 }), o ? dispatchDiscreteCustomEvent(l, d) : l.dispatchEvent(d);
|
|
4816
4816
|
}
|
|
4817
|
-
var Root$
|
|
4817
|
+
var Root$9 = DismissableLayer, Branch = DismissableLayerBranch, AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount", AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount", EVENT_OPTIONS = { bubbles: !1, cancelable: !0 }, FOCUS_SCOPE_NAME = "FocusScope", FocusScope = React.forwardRef((e, t) => {
|
|
4818
4818
|
const {
|
|
4819
4819
|
loop: n = !1,
|
|
4820
4820
|
trapped: o = !1,
|
|
@@ -5706,9 +5706,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5706
5706
|
const l = (d = e.current) == null ? void 0 : d.getAttribute("aria-describedby");
|
|
5707
5707
|
t && l && (document.getElementById(t) || console.warn(o));
|
|
5708
5708
|
}, [o, e, t]), null;
|
|
5709
|
-
}, Root$
|
|
5710
|
-
const Dialog = ({ modal: e = !1, ...t }) => /* @__PURE__ */ jsx(Root$
|
|
5711
|
-
Dialog.displayName = Root$
|
|
5709
|
+
}, Root$8 = Dialog$1, Trigger$5 = DialogTrigger$1, Portal$4 = DialogPortal$1, Overlay = DialogOverlay$1, Content$2 = DialogContent$1, Title$1 = DialogTitle$1, Description$1 = DialogDescription$1, Close$1 = DialogClose$1;
|
|
5710
|
+
const Dialog = ({ modal: e = !1, ...t }) => /* @__PURE__ */ jsx(Root$8, { modal: e, ...t });
|
|
5711
|
+
Dialog.displayName = Root$8.displayName;
|
|
5712
5712
|
const DialogTrigger = Trigger$5, DialogPortal = Portal$4, DialogClose = Close$1, DialogOverlay = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsx(
|
|
5713
5713
|
Overlay,
|
|
5714
5714
|
{
|
|
@@ -7111,7 +7111,7 @@ var NAME$3 = "Arrow", Arrow$1 = React.forwardRef((e, t) => {
|
|
|
7111
7111
|
);
|
|
7112
7112
|
});
|
|
7113
7113
|
Arrow$1.displayName = NAME$3;
|
|
7114
|
-
var Root$
|
|
7114
|
+
var Root$7 = Arrow$1, POPPER_NAME = "Popper", [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME), [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME), Popper = (e) => {
|
|
7115
7115
|
const { __scopePopper: t, children: n } = e, [o, l] = React.useState(null);
|
|
7116
7116
|
return /* @__PURE__ */ jsx(PopperProvider, { scope: t, anchor: o, onAnchorChange: l, children: n });
|
|
7117
7117
|
};
|
|
@@ -7275,7 +7275,7 @@ var ARROW_NAME$5 = "PopperArrow", OPPOSITE_SIDE = {
|
|
|
7275
7275
|
visibility: d.shouldHideArrow ? "hidden" : void 0
|
|
7276
7276
|
},
|
|
7277
7277
|
children: /* @__PURE__ */ jsx(
|
|
7278
|
-
Root$
|
|
7278
|
+
Root$7,
|
|
7279
7279
|
{
|
|
7280
7280
|
...l,
|
|
7281
7281
|
ref: n,
|
|
@@ -7483,7 +7483,7 @@ var CONTENT_NAME$5 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7483
7483
|
onInteractOutside: E,
|
|
7484
7484
|
onDismiss: R,
|
|
7485
7485
|
children: /* @__PURE__ */ jsx(
|
|
7486
|
-
Root$
|
|
7486
|
+
Root$a,
|
|
7487
7487
|
{
|
|
7488
7488
|
asChild: !0,
|
|
7489
7489
|
...z,
|
|
@@ -8038,11 +8038,11 @@ var RADIO_ITEM_NAME = "DropdownMenuRadioItem", DropdownMenuRadioItem$1 = React.f
|
|
|
8038
8038
|
return /* @__PURE__ */ jsx(RadioItem, { ...l, ...o, ref: t });
|
|
8039
8039
|
});
|
|
8040
8040
|
DropdownMenuRadioItem$1.displayName = RADIO_ITEM_NAME;
|
|
8041
|
-
var INDICATOR_NAME$
|
|
8041
|
+
var INDICATOR_NAME$2 = "DropdownMenuItemIndicator", DropdownMenuItemIndicator = React.forwardRef((e, t) => {
|
|
8042
8042
|
const { __scopeDropdownMenu: n, ...o } = e, l = useMenuScope(n);
|
|
8043
8043
|
return /* @__PURE__ */ jsx(ItemIndicator$1, { ...l, ...o, ref: t });
|
|
8044
8044
|
});
|
|
8045
|
-
DropdownMenuItemIndicator.displayName = INDICATOR_NAME$
|
|
8045
|
+
DropdownMenuItemIndicator.displayName = INDICATOR_NAME$2;
|
|
8046
8046
|
var SEPARATOR_NAME$1 = "DropdownMenuSeparator", DropdownMenuSeparator$1 = React.forwardRef((e, t) => {
|
|
8047
8047
|
const { __scopeDropdownMenu: n, ...o } = e, l = useMenuScope(n);
|
|
8048
8048
|
return /* @__PURE__ */ jsx(Separator$3, { ...l, ...o, ref: t });
|
|
@@ -8405,7 +8405,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
8405
8405
|
)
|
|
8406
8406
|
);
|
|
8407
8407
|
VisuallyHidden.displayName = NAME$2;
|
|
8408
|
-
var Root$
|
|
8408
|
+
var Root$6 = VisuallyHidden, [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
|
|
8409
8409
|
createPopperScope
|
|
8410
8410
|
]), usePopperScope$2 = createPopperScope(), PROVIDER_NAME$1 = "TooltipProvider", DEFAULT_DELAY_DURATION = 700, TOOLTIP_OPEN = "tooltip.open", [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME$1), TooltipProvider$1 = (e) => {
|
|
8411
8411
|
const {
|
|
@@ -8604,7 +8604,7 @@ var CONTENT_NAME$3 = "TooltipContent", TooltipContent$1 = React.forwardRef(
|
|
|
8604
8604
|
},
|
|
8605
8605
|
children: [
|
|
8606
8606
|
/* @__PURE__ */ jsx(Slottable, { children: o }),
|
|
8607
|
-
/* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: n, isInside: !0, children: /* @__PURE__ */ jsx(Root$
|
|
8607
|
+
/* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: n, isInside: !0, children: /* @__PURE__ */ jsx(Root$6, { id: b.contentId, role: "tooltip", children: l || o }) })
|
|
8608
8608
|
]
|
|
8609
8609
|
}
|
|
8610
8610
|
)
|
|
@@ -8802,10 +8802,10 @@ Separator$2.displayName = NAME$1;
|
|
|
8802
8802
|
function isValidOrientation(e) {
|
|
8803
8803
|
return ORIENTATIONS.includes(e);
|
|
8804
8804
|
}
|
|
8805
|
-
var Root$
|
|
8805
|
+
var Root$5 = Separator$2;
|
|
8806
8806
|
const Separator$1 = React.forwardRef(
|
|
8807
8807
|
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...o }, l) => /* @__PURE__ */ jsx(
|
|
8808
|
-
Root$
|
|
8808
|
+
Root$5,
|
|
8809
8809
|
{
|
|
8810
8810
|
ref: l,
|
|
8811
8811
|
decorative: n,
|
|
@@ -8819,8 +8819,8 @@ const Separator$1 = React.forwardRef(
|
|
|
8819
8819
|
}
|
|
8820
8820
|
)
|
|
8821
8821
|
);
|
|
8822
|
-
Separator$1.displayName = Root$
|
|
8823
|
-
const Sheet = Root$
|
|
8822
|
+
Separator$1.displayName = Root$5.displayName;
|
|
8823
|
+
const Sheet = Root$8, SheetTrigger = Trigger$5, SheetClose = Close$1, SheetPortal = Portal$4, SheetOverlay = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsx(
|
|
8824
8824
|
Overlay,
|
|
8825
8825
|
{
|
|
8826
8826
|
className: cn(
|
|
@@ -8944,13 +8944,13 @@ var NAME = "Label", Label$3 = React.forwardRef((e, t) => /* @__PURE__ */ jsx(
|
|
|
8944
8944
|
}
|
|
8945
8945
|
));
|
|
8946
8946
|
Label$3.displayName = NAME;
|
|
8947
|
-
var Root$
|
|
8947
|
+
var Root$4 = Label$3;
|
|
8948
8948
|
function Label$2({
|
|
8949
8949
|
className: e,
|
|
8950
8950
|
...t
|
|
8951
8951
|
}) {
|
|
8952
8952
|
return /* @__PURE__ */ jsx(
|
|
8953
|
-
Root$
|
|
8953
|
+
Root$4,
|
|
8954
8954
|
{
|
|
8955
8955
|
"data-slot": "label",
|
|
8956
8956
|
className: cn(
|
|
@@ -9725,7 +9725,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9725
9725
|
),
|
|
9726
9726
|
/* @__PURE__ */ jsx(ToastInteractiveProvider, { scope: n, onClose: se, children: ReactDOM.createPortal(
|
|
9727
9727
|
/* @__PURE__ */ jsx(Collection$1.ItemSlot, { scope: n, children: /* @__PURE__ */ jsx(
|
|
9728
|
-
Root$
|
|
9728
|
+
Root$9,
|
|
9729
9729
|
{
|
|
9730
9730
|
asChild: !0,
|
|
9731
9731
|
onEscapeKeyDown: composeEventHandlers(g, () => {
|
|
@@ -18057,7 +18057,7 @@ const emptySplitApi = createApi2({
|
|
|
18057
18057
|
})
|
|
18058
18058
|
}),
|
|
18059
18059
|
overrideExisting: !1
|
|
18060
|
-
}), { useGetV4PartnerByApplicationIdAccountQuery, useLazyGetV4PartnerByApplicationIdAccountQuery, useGetV4PartnerByApplicationIdAccountLogoQuery, useGetV4PartnerByApplicationIdAccountLogoExistsQuery, useGetV4PartnerByApplicationIdAccountManufacturerQuery, useGetV4PartnerByApplicationIdAccountResellerQuery, usePostV4PartnerByApplicationIdAccountDebugFeedbackMutation, usePostV4PartnerByApplicationIdAccountManufacturerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerAndFieldNameMutation, usePostV4PartnerByApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation, useGetV4PartnerByApplicationIdBusinessDevelopmentConversationsQuery, useLazyGetV4PartnerByApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery, usePostV4ResellerByRouteResellerIdDocumentStatementEmailMutation, usePostV4ManufacturerByRouteManufacturerIdDocumentAndDocumentNumberEmailMutation, useGetV4ManufacturerByRouteManufacturerIdDocumentsActiveOrderDetailsQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopifyMutation, useGetV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeShopifyMutation, useGetV4PartnerByApplicationIdManufacturersQuery, usePostV4ResellerByRouteResellerIdOpportunityAndManufacturerIdBidNumberEmailMutation, usePutV4ResellerByRouteResellerIdOpportunityAndManufacturerIdDefaultMutation, useGetV4PartnerByApplicationIdPartnerAndPartnerIdQuery, usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation, usePutV4ResellerByRouteResellerIdProductAndRandmarSkuRequisitionMutation, usePostV4ResellerByRouteResellerIdReportProductsEmailMutation, usePostV4ResellerByRouteResellerIdReportInvoicesEmailMutation, usePostV4ResellerByRouteResellerIdReportOpenOrdersEmailMutation, usePostV4ResellerByRouteResellerIdReportAmazonTrackingFileEmailMutation, usePostV4ResellerByRouteResellerIdReportWalmartTrackingFileEmailMutation } = injectedRtkApi;
|
|
18060
|
+
}), { useGetV4PartnerByApplicationIdAccountQuery, useLazyGetV4PartnerByApplicationIdAccountQuery, useGetV4PartnerByApplicationIdAccountLogoQuery, useGetV4PartnerByApplicationIdAccountLogoExistsQuery, useGetV4PartnerByApplicationIdAccountManufacturerQuery, useGetV4PartnerByApplicationIdAccountResellerQuery, usePostV4PartnerByApplicationIdAccountDebugFeedbackMutation, usePostV4PartnerByApplicationIdAccountManufacturerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerAndFieldNameMutation, usePostV4PartnerByApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation, useGetV4PartnerByApplicationIdBusinessDevelopmentConversationsQuery, useLazyGetV4PartnerByApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery, usePostV4ResellerByRouteResellerIdDocumentStatementEmailMutation, usePostV4ManufacturerByRouteManufacturerIdDocumentAndDocumentNumberEmailMutation, useGetV4ManufacturerByRouteManufacturerIdDocumentsActiveOrderDetailsQuery, useGetV4ManufacturerByRouteManufacturerIdInventoryValueQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopifyMutation, useGetV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeShopifyMutation, useGetV4PartnerByApplicationIdManufacturersQuery, usePostV4ResellerByRouteResellerIdOpportunityAndManufacturerIdBidNumberEmailMutation, usePutV4ResellerByRouteResellerIdOpportunityAndManufacturerIdDefaultMutation, useGetV4PartnerByApplicationIdPartnerAndPartnerIdQuery, usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation, usePutV4ResellerByRouteResellerIdProductAndRandmarSkuRequisitionMutation, usePostV4ResellerByRouteResellerIdReportProductsEmailMutation, usePostV4ResellerByRouteResellerIdReportInvoicesEmailMutation, usePostV4ResellerByRouteResellerIdReportOpenOrdersEmailMutation, usePostV4ResellerByRouteResellerIdReportAmazonTrackingFileEmailMutation, usePostV4ResellerByRouteResellerIdReportWalmartTrackingFileEmailMutation } = injectedRtkApi;
|
|
18061
18061
|
injectedRtkApi.enhanceEndpoints({
|
|
18062
18062
|
addTagTypes: ["Conversations"],
|
|
18063
18063
|
endpoints: {
|
|
@@ -19041,21 +19041,21 @@ function require_isNaN() {
|
|
|
19041
19041
|
var _isNaNExports = require_isNaN();
|
|
19042
19042
|
const isNan = /* @__PURE__ */ getDefaultExportFromCjs(_isNaNExports);
|
|
19043
19043
|
var isNumberExports = requireIsNumber();
|
|
19044
|
-
const isNumber$
|
|
19044
|
+
const isNumber$2 = /* @__PURE__ */ getDefaultExportFromCjs(isNumberExports);
|
|
19045
19045
|
var mathSign = function(t) {
|
|
19046
19046
|
return t === 0 ? 0 : t > 0 ? 1 : -1;
|
|
19047
19047
|
}, isPercent = function(t) {
|
|
19048
19048
|
return isString$1(t) && t.indexOf("%") === t.length - 1;
|
|
19049
|
-
}, isNumber = function(t) {
|
|
19050
|
-
return isNumber$
|
|
19049
|
+
}, isNumber$1 = function(t) {
|
|
19050
|
+
return isNumber$2(t) && !isNan(t);
|
|
19051
19051
|
}, isNumOrStr = function(t) {
|
|
19052
|
-
return isNumber(t) || isString$1(t);
|
|
19052
|
+
return isNumber$1(t) || isString$1(t);
|
|
19053
19053
|
}, idCounter = 0, uniqueId = function(t) {
|
|
19054
19054
|
var n = ++idCounter;
|
|
19055
19055
|
return "".concat(t || "").concat(n);
|
|
19056
19056
|
}, getPercentValue = function(t, n) {
|
|
19057
19057
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
19058
|
-
if (!isNumber(t) && !isString$1(t))
|
|
19058
|
+
if (!isNumber$1(t) && !isString$1(t))
|
|
19059
19059
|
return o;
|
|
19060
19060
|
var d;
|
|
19061
19061
|
if (isPercent(t)) {
|
|
@@ -19079,7 +19079,7 @@ var mathSign = function(t) {
|
|
|
19079
19079
|
return !0;
|
|
19080
19080
|
return !1;
|
|
19081
19081
|
}, interpolateNumber$2 = function(t, n) {
|
|
19082
|
-
return isNumber(t) && isNumber(n) ? function(o) {
|
|
19082
|
+
return isNumber$1(t) && isNumber$1(n) ? function(o) {
|
|
19083
19083
|
return t + o * (n - t);
|
|
19084
19084
|
} : function() {
|
|
19085
19085
|
return n;
|
|
@@ -19091,7 +19091,7 @@ function findEntryInArray(e, t, n) {
|
|
|
19091
19091
|
});
|
|
19092
19092
|
}
|
|
19093
19093
|
var compareValues = function(t, n) {
|
|
19094
|
-
return isNumber(t) && isNumber(n) ? t - n : isString$1(t) && isString$1(n) ? t.localeCompare(n) : t instanceof Date && n instanceof Date ? t.getTime() - n.getTime() : String(t).localeCompare(String(n));
|
|
19094
|
+
return isNumber$1(t) && isNumber$1(n) ? t - n : isString$1(t) && isString$1(n) ? t.localeCompare(n) : t instanceof Date && n instanceof Date ? t.getTime() - n.getTime() : String(t).localeCompare(String(n));
|
|
19095
19095
|
};
|
|
19096
19096
|
function shallowEqual(e, t) {
|
|
19097
19097
|
for (var n in e)
|
|
@@ -19518,7 +19518,7 @@ var validateWidthHeight = function(t) {
|
|
|
19518
19518
|
if (!t || !t.props)
|
|
19519
19519
|
return !1;
|
|
19520
19520
|
var n = t.props, o = n.width, l = n.height;
|
|
19521
|
-
return !(!isNumber(o) || o <= 0 || !isNumber(l) || l <= 0);
|
|
19521
|
+
return !(!isNumber$1(o) || o <= 0 || !isNumber$1(l) || l <= 0);
|
|
19522
19522
|
}, SVG_TAGS = ["a", "altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColormatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-url", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "lineGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "script", "set", "stop", "style", "svg", "switch", "symbol", "text", "textPath", "title", "tref", "tspan", "use", "view", "vkern"], isSvgElement = function(t) {
|
|
19523
19523
|
return t && t.type && isString$1(t.type) && SVG_TAGS.indexOf(t.type) >= 0;
|
|
19524
19524
|
}, hasClipDot = function(t) {
|
|
@@ -21981,7 +21981,7 @@ var EPS$1 = 1, Legend = /* @__PURE__ */ function(e) {
|
|
|
21981
21981
|
key: "getWithHeight",
|
|
21982
21982
|
value: function(o, l) {
|
|
21983
21983
|
var d = _objectSpread$x(_objectSpread$x({}, this.defaultProps), o.props), f = d.layout;
|
|
21984
|
-
return f === "vertical" && isNumber(o.props.height) ? {
|
|
21984
|
+
return f === "vertical" && isNumber$1(o.props.height) ? {
|
|
21985
21985
|
height: o.props.height
|
|
21986
21986
|
} : f === "horizontal" ? {
|
|
21987
21987
|
width: o.props.width || l
|
|
@@ -22500,11 +22500,11 @@ var CSS_CLASS_PREFIX = "recharts-tooltip-wrapper", TOOLTIP_HIDDEN = {
|
|
|
22500
22500
|
};
|
|
22501
22501
|
function getTooltipCSSClassName(e) {
|
|
22502
22502
|
var t = e.coordinate, n = e.translateX, o = e.translateY;
|
|
22503
|
-
return clsx(CSS_CLASS_PREFIX, _defineProperty$A(_defineProperty$A(_defineProperty$A(_defineProperty$A({}, "".concat(CSS_CLASS_PREFIX, "-right"), isNumber(n) && t && isNumber(t.x) && n >= t.x), "".concat(CSS_CLASS_PREFIX, "-left"), isNumber(n) && t && isNumber(t.x) && n < t.x), "".concat(CSS_CLASS_PREFIX, "-bottom"), isNumber(o) && t && isNumber(t.y) && o >= t.y), "".concat(CSS_CLASS_PREFIX, "-top"), isNumber(o) && t && isNumber(t.y) && o < t.y));
|
|
22503
|
+
return clsx(CSS_CLASS_PREFIX, _defineProperty$A(_defineProperty$A(_defineProperty$A(_defineProperty$A({}, "".concat(CSS_CLASS_PREFIX, "-right"), isNumber$1(n) && t && isNumber$1(t.x) && n >= t.x), "".concat(CSS_CLASS_PREFIX, "-left"), isNumber$1(n) && t && isNumber$1(t.x) && n < t.x), "".concat(CSS_CLASS_PREFIX, "-bottom"), isNumber$1(o) && t && isNumber$1(t.y) && o >= t.y), "".concat(CSS_CLASS_PREFIX, "-top"), isNumber$1(o) && t && isNumber$1(t.y) && o < t.y));
|
|
22504
22504
|
}
|
|
22505
22505
|
function getTooltipTranslateXY(e) {
|
|
22506
22506
|
var t = e.allowEscapeViewBox, n = e.coordinate, o = e.key, l = e.offsetTopLeft, d = e.position, f = e.reverseDirection, g = e.tooltipDimension, b = e.viewBox, _ = e.viewBoxDimension;
|
|
22507
|
-
if (d && isNumber(d[o]))
|
|
22507
|
+
if (d && isNumber$1(d[o]))
|
|
22508
22508
|
return d[o];
|
|
22509
22509
|
var S = n[o] - g - l, C = n[o] + l;
|
|
22510
22510
|
if (t[o])
|
|
@@ -23592,7 +23592,7 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
23592
23592
|
return null;
|
|
23593
23593
|
}
|
|
23594
23594
|
}, calculateWordsByLines = function(t, n, o, l, d) {
|
|
23595
|
-
var f = t.maxLines, g = t.children, b = t.style, _ = t.breakAll, S = isNumber(f), C = g, E = function() {
|
|
23595
|
+
var f = t.maxLines, g = t.children, b = t.style, _ = t.breakAll, S = isNumber$1(f), C = g, E = function() {
|
|
23596
23596
|
var Ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
23597
23597
|
return Ve.reduce(function(Le, Ue) {
|
|
23598
23598
|
var $e = Ue.word, je = Ue.width, Fe = Le[Le.length - 1];
|
|
@@ -23669,7 +23669,7 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
23669
23669
|
}, [q.breakAll, q.children, q.maxLines, C, q.style, q.width]), Q = q.dx, F = q.dy, j = q.angle, te = q.className, ae = q.breakAll, ie = _objectWithoutProperties$c(q, _excluded2$5);
|
|
23670
23670
|
if (!isNumOrStr(o) || !isNumOrStr(d))
|
|
23671
23671
|
return null;
|
|
23672
|
-
var oe = o + (isNumber(Q) ? Q : 0), se = d + (isNumber(F) ? F : 0), ge;
|
|
23672
|
+
var oe = o + (isNumber$1(Q) ? Q : 0), se = d + (isNumber$1(F) ? F : 0), ge;
|
|
23673
23673
|
switch (M) {
|
|
23674
23674
|
case "start":
|
|
23675
23675
|
ge = reduceCSSCalc("calc(".concat(_, ")"));
|
|
@@ -23684,7 +23684,7 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
23684
23684
|
var Ae = [];
|
|
23685
23685
|
if (C) {
|
|
23686
23686
|
var Ne = z[0].width, Ve = q.width;
|
|
23687
|
-
Ae.push("scale(".concat((isNumber(Ve) ? Ve / Ne : 1) / Ne, ")"));
|
|
23687
|
+
Ae.push("scale(".concat((isNumber$1(Ve) ? Ve / Ne : 1) / Ne, ")"));
|
|
23688
23688
|
}
|
|
23689
23689
|
return j && Ae.push("rotate(".concat(j, ", ").concat(oe, ", ").concat(se, ")")), Ae.length && (ie.transform = Ae.join(" ")), /* @__PURE__ */ React__default.createElement("text", _extends$l({}, filterProps(ie, !0), {
|
|
23690
23690
|
x: oe,
|
|
@@ -26977,7 +26977,7 @@ function getDomainOfDataByKey(e, t, n, o) {
|
|
|
26977
26977
|
});
|
|
26978
26978
|
if (n === "number") {
|
|
26979
26979
|
var d = l.filter(function(g) {
|
|
26980
|
-
return isNumber(g) || parseFloat(g);
|
|
26980
|
+
return isNumber$1(g) || parseFloat(g);
|
|
26981
26981
|
});
|
|
26982
26982
|
return d.length ? [min$1(d), max$1(d)] : [1 / 0, -1 / 0];
|
|
26983
26983
|
}
|
|
@@ -27121,9 +27121,9 @@ var calculateActiveTickIndex = function(t) {
|
|
|
27121
27121
|
});
|
|
27122
27122
|
if (_) {
|
|
27123
27123
|
var S = l || {}, C = S.width, E = S.height, R = _.align, I = _.verticalAlign, M = _.layout;
|
|
27124
|
-
if ((M === "vertical" || M === "horizontal" && I === "middle") && R !== "center" && isNumber(t[R]))
|
|
27124
|
+
if ((M === "vertical" || M === "horizontal" && I === "middle") && R !== "center" && isNumber$1(t[R]))
|
|
27125
27125
|
return _objectSpread$q(_objectSpread$q({}, t), {}, _defineProperty$t({}, R, t[R] + (C || 0)));
|
|
27126
|
-
if ((M === "horizontal" || M === "vertical" && R === "center") && I !== "middle" && isNumber(t[I]))
|
|
27126
|
+
if ((M === "horizontal" || M === "vertical" && R === "center") && I !== "middle" && isNumber$1(t[I]))
|
|
27127
27127
|
return _objectSpread$q(_objectSpread$q({}, t), {}, _defineProperty$t({}, I, t[I] + (E || 0)));
|
|
27128
27128
|
}
|
|
27129
27129
|
return t;
|
|
@@ -27284,10 +27284,10 @@ var calculateActiveTickIndex = function(t) {
|
|
|
27284
27284
|
return t[o].position;
|
|
27285
27285
|
return null;
|
|
27286
27286
|
}, truncateByDomain = function(t, n) {
|
|
27287
|
-
if (!n || n.length !== 2 || !isNumber(n[0]) || !isNumber(n[1]))
|
|
27287
|
+
if (!n || n.length !== 2 || !isNumber$1(n[0]) || !isNumber$1(n[1]))
|
|
27288
27288
|
return t;
|
|
27289
27289
|
var o = Math.min(n[0], n[1]), l = Math.max(n[0], n[1]), d = [t[0], t[1]];
|
|
27290
|
-
return (!isNumber(t[0]) || t[0] < o) && (d[0] = o), (!isNumber(t[1]) || t[1] > l) && (d[1] = l), d[0] > l && (d[0] = l), d[1] < o && (d[1] = o), d;
|
|
27290
|
+
return (!isNumber$1(t[0]) || t[0] < o) && (d[0] = o), (!isNumber$1(t[1]) || t[1] > l) && (d[1] = l), d[0] > l && (d[0] = l), d[1] < o && (d[1] = o), d;
|
|
27291
27291
|
}, offsetSign = function(t) {
|
|
27292
27292
|
var n = t.length;
|
|
27293
27293
|
if (!(n <= 0))
|
|
@@ -27423,7 +27423,7 @@ var getCateCoordinateOfBar = function(t) {
|
|
|
27423
27423
|
return null;
|
|
27424
27424
|
}, getDomainOfSingle = function(t) {
|
|
27425
27425
|
return t.reduce(function(n, o) {
|
|
27426
|
-
return [min$1(o.concat([n[0]]).filter(isNumber)), max$1(o.concat([n[1]]).filter(isNumber))];
|
|
27426
|
+
return [min$1(o.concat([n[0]]).filter(isNumber$1)), max$1(o.concat([n[1]]).filter(isNumber$1))];
|
|
27427
27427
|
}, [1 / 0, -1 / 0]);
|
|
27428
27428
|
}, getDomainOfStackGroups = function(t, n, o) {
|
|
27429
27429
|
return Object.keys(t).reduce(function(l, d) {
|
|
@@ -27441,13 +27441,13 @@ var getCateCoordinateOfBar = function(t) {
|
|
|
27441
27441
|
if (!Array.isArray(t))
|
|
27442
27442
|
return n;
|
|
27443
27443
|
var l = [];
|
|
27444
|
-
if (isNumber(t[0]))
|
|
27444
|
+
if (isNumber$1(t[0]))
|
|
27445
27445
|
l[0] = o ? t[0] : Math.min(t[0], n[0]);
|
|
27446
27446
|
else if (MIN_VALUE_REG.test(t[0])) {
|
|
27447
27447
|
var d = +MIN_VALUE_REG.exec(t[0])[1];
|
|
27448
27448
|
l[0] = n[0] - d;
|
|
27449
27449
|
} else isFunction$3(t[0]) ? l[0] = t[0](n[0]) : l[0] = n[0];
|
|
27450
|
-
if (isNumber(t[1]))
|
|
27450
|
+
if (isNumber$1(t[1]))
|
|
27451
27451
|
l[1] = o ? t[1] : Math.max(t[1], n[1]);
|
|
27452
27452
|
else if (MAX_VALUE_REG.test(t[1])) {
|
|
27453
27453
|
var f = +MAX_VALUE_REG.exec(t[1])[1];
|
|
@@ -27855,7 +27855,7 @@ var getLabel = function(t) {
|
|
|
27855
27855
|
y: b + S - E,
|
|
27856
27856
|
textAnchor: V,
|
|
27857
27857
|
verticalAnchor: R
|
|
27858
|
-
}, te) : isObject$1(d) && (isNumber(d.x) || isPercent(d.x)) && (isNumber(d.y) || isPercent(d.y)) ? _objectSpread$o({
|
|
27858
|
+
}, te) : isObject$1(d) && (isNumber$1(d.x) || isPercent(d.x)) && (isNumber$1(d.y) || isPercent(d.y)) ? _objectSpread$o({
|
|
27859
27859
|
x: g + getPercentValue(d.x, _),
|
|
27860
27860
|
y: b + getPercentValue(d.y, S),
|
|
27861
27861
|
textAnchor: "end",
|
|
@@ -27867,7 +27867,7 @@ var getLabel = function(t) {
|
|
|
27867
27867
|
verticalAnchor: "middle"
|
|
27868
27868
|
}, te);
|
|
27869
27869
|
}, isPolar = function(t) {
|
|
27870
|
-
return "cx" in t && isNumber(t.cx);
|
|
27870
|
+
return "cx" in t && isNumber$1(t.cx);
|
|
27871
27871
|
};
|
|
27872
27872
|
function Label$1(e) {
|
|
27873
27873
|
var t = e.offset, n = t === void 0 ? 5 : t, o = _objectWithoutProperties$a(e, _excluded$a), l = _objectSpread$o({
|
|
@@ -27898,15 +27898,15 @@ var parseViewBox = function(t) {
|
|
|
27898
27898
|
var n = t.cx, o = t.cy, l = t.angle, d = t.startAngle, f = t.endAngle, g = t.r, b = t.radius, _ = t.innerRadius, S = t.outerRadius, C = t.x, E = t.y, R = t.top, I = t.left, M = t.width, A = t.height, V = t.clockWise, q = t.labelViewBox;
|
|
27899
27899
|
if (q)
|
|
27900
27900
|
return q;
|
|
27901
|
-
if (isNumber(M) && isNumber(A)) {
|
|
27902
|
-
if (isNumber(C) && isNumber(E))
|
|
27901
|
+
if (isNumber$1(M) && isNumber$1(A)) {
|
|
27902
|
+
if (isNumber$1(C) && isNumber$1(E))
|
|
27903
27903
|
return {
|
|
27904
27904
|
x: C,
|
|
27905
27905
|
y: E,
|
|
27906
27906
|
width: M,
|
|
27907
27907
|
height: A
|
|
27908
27908
|
};
|
|
27909
|
-
if (isNumber(R) && isNumber(I))
|
|
27909
|
+
if (isNumber$1(R) && isNumber$1(I))
|
|
27910
27910
|
return {
|
|
27911
27911
|
x: R,
|
|
27912
27912
|
y: I,
|
|
@@ -27914,12 +27914,12 @@ var parseViewBox = function(t) {
|
|
|
27914
27914
|
height: A
|
|
27915
27915
|
};
|
|
27916
27916
|
}
|
|
27917
|
-
return isNumber(C) && isNumber(E) ? {
|
|
27917
|
+
return isNumber$1(C) && isNumber$1(E) ? {
|
|
27918
27918
|
x: C,
|
|
27919
27919
|
y: E,
|
|
27920
27920
|
width: 0,
|
|
27921
27921
|
height: 0
|
|
27922
|
-
} : isNumber(n) && isNumber(o) ? {
|
|
27922
|
+
} : isNumber$1(n) && isNumber$1(o) ? {
|
|
27923
27923
|
cx: n,
|
|
27924
27924
|
cy: o,
|
|
27925
27925
|
startAngle: d || l || 0,
|
|
@@ -28423,7 +28423,7 @@ var CURVE_FACTORIES = {
|
|
|
28423
28423
|
return M.base.y;
|
|
28424
28424
|
}), E.defined(defined).curve(S), E(I);
|
|
28425
28425
|
}
|
|
28426
|
-
return g === "vertical" && isNumber(f) ? E = shapeArea().y(getY).x1(getX).x0(f) : isNumber(f) ? E = shapeArea().x(getX).y1(getY).y0(f) : E = shapeLine().x(getX).y(getY), E.defined(defined).curve(S), E(C);
|
|
28426
|
+
return g === "vertical" && isNumber$1(f) ? E = shapeArea().y(getY).x1(getX).x0(f) : isNumber$1(f) ? E = shapeArea().x(getX).y1(getY).y0(f) : E = shapeLine().x(getX).y(getY), E.defined(defined).curve(S), E(C);
|
|
28427
28427
|
}, Curve = function(t) {
|
|
28428
28428
|
var n = t.className, o = t.points, l = t.path, d = t.pathRef;
|
|
28429
28429
|
if ((!o || !o.length) && !l)
|
|
@@ -30479,7 +30479,7 @@ var getPath = function(t, n, o, l, d, f) {
|
|
|
30479
30479
|
width: C,
|
|
30480
30480
|
height: R
|
|
30481
30481
|
}, M);
|
|
30482
|
-
return !isNumber(o) || !isNumber(d) || !isNumber(C) || !isNumber(R) || !isNumber(g) || !isNumber(_) ? null : /* @__PURE__ */ React__default.createElement("path", _extends$d({}, filterProps(A, !0), {
|
|
30482
|
+
return !isNumber$1(o) || !isNumber$1(d) || !isNumber$1(C) || !isNumber$1(R) || !isNumber$1(g) || !isNumber$1(_) ? null : /* @__PURE__ */ React__default.createElement("path", _extends$d({}, filterProps(A, !0), {
|
|
30483
30483
|
className: clsx("recharts-cross", I),
|
|
30484
30484
|
d: getPath(o, d, C, R, g, _)
|
|
30485
30485
|
}));
|
|
@@ -31319,7 +31319,7 @@ var createScale = function(t) {
|
|
|
31319
31319
|
key: "render",
|
|
31320
31320
|
value: function() {
|
|
31321
31321
|
var o = this.props, l = o.data, d = o.className, f = o.children, g = o.x, b = o.y, _ = o.width, S = o.height, C = o.alwaysShowText, E = this.state, R = E.startX, I = E.endX, M = E.isTextActive, A = E.isSlideMoving, V = E.isTravellerMoving, q = E.isTravellerFocused;
|
|
31322
|
-
if (!l || !l.length || !isNumber(g) || !isNumber(b) || !isNumber(_) || !isNumber(S) || _ <= 0 || S <= 0)
|
|
31322
|
+
if (!l || !l.length || !isNumber$1(g) || !isNumber$1(b) || !isNumber$1(_) || !isNumber$1(S) || _ <= 0 || S <= 0)
|
|
31323
31323
|
return null;
|
|
31324
31324
|
var z = clsx("recharts-brush", d), Q = React__default.Children.count(f) === 1, F = generatePrefixStyle("userSelect", "none");
|
|
31325
31325
|
return /* @__PURE__ */ React__default.createElement(Layer, {
|
|
@@ -33120,8 +33120,8 @@ function getTicks(e, t, n) {
|
|
|
33120
33120
|
var o = e.tick, l = e.ticks, d = e.viewBox, f = e.minTickGap, g = e.orientation, b = e.interval, _ = e.tickFormatter, S = e.unit, C = e.angle;
|
|
33121
33121
|
if (!l || !l.length || !o)
|
|
33122
33122
|
return [];
|
|
33123
|
-
if (isNumber(b) || Global.isSsr)
|
|
33124
|
-
return getNumberIntervalTicks(l, typeof b == "number" && isNumber(b) ? b : 0);
|
|
33123
|
+
if (isNumber$1(b) || Global.isSsr)
|
|
33124
|
+
return getNumberIntervalTicks(l, typeof b == "number" && isNumber$1(b) ? b : 0);
|
|
33125
33125
|
var E = [], R = g === "top" || g === "bottom" ? "width" : "height", I = S && R === "width" ? getStringSize(S, {
|
|
33126
33126
|
fontSize: t,
|
|
33127
33127
|
letterSpacing: n
|
|
@@ -33307,7 +33307,7 @@ var CartesianAxis = /* @__PURE__ */ function(e) {
|
|
|
33307
33307
|
}, {
|
|
33308
33308
|
key: "getTickLineCoord",
|
|
33309
33309
|
value: function(o) {
|
|
33310
|
-
var l = this.props, d = l.x, f = l.y, g = l.width, b = l.height, _ = l.orientation, S = l.tickSize, C = l.mirror, E = l.tickMargin, R, I, M, A, V, q, z = C ? -1 : 1, Q = o.tickSize || S, F = isNumber(o.tickCoord) ? o.tickCoord : o.coordinate;
|
|
33310
|
+
var l = this.props, d = l.x, f = l.y, g = l.width, b = l.height, _ = l.orientation, S = l.tickSize, C = l.mirror, E = l.tickMargin, R, I, M, A, V, q, z = C ? -1 : 1, Q = o.tickSize || S, F = isNumber$1(o.tickCoord) ? o.tickCoord : o.coordinate;
|
|
33311
33311
|
switch (_) {
|
|
33312
33312
|
case "top":
|
|
33313
33313
|
R = I = o.coordinate, A = f + +!C * b, M = A - z * Q, q = M - z * E, V = F;
|
|
@@ -33742,12 +33742,12 @@ function CartesianGrid(e) {
|
|
|
33742
33742
|
horizontalFill: (l = e.horizontalFill) !== null && l !== void 0 ? l : defaultProps.horizontalFill,
|
|
33743
33743
|
vertical: (d = e.vertical) !== null && d !== void 0 ? d : defaultProps.vertical,
|
|
33744
33744
|
verticalFill: (f = e.verticalFill) !== null && f !== void 0 ? f : defaultProps.verticalFill,
|
|
33745
|
-
x: isNumber(e.x) ? e.x : _.left,
|
|
33746
|
-
y: isNumber(e.y) ? e.y : _.top,
|
|
33747
|
-
width: isNumber(e.width) ? e.width : _.width,
|
|
33748
|
-
height: isNumber(e.height) ? e.height : _.height
|
|
33745
|
+
x: isNumber$1(e.x) ? e.x : _.left,
|
|
33746
|
+
y: isNumber$1(e.y) ? e.y : _.top,
|
|
33747
|
+
width: isNumber$1(e.width) ? e.width : _.width,
|
|
33748
|
+
height: isNumber$1(e.height) ? e.height : _.height
|
|
33749
33749
|
}), C = S.x, E = S.y, R = S.width, I = S.height, M = S.syncWithTicks, A = S.horizontalValues, V = S.verticalValues, q = useArbitraryXAxis(), z = useYAxisWithFiniteDomainOrRandom();
|
|
33750
|
-
if (!isNumber(R) || R <= 0 || !isNumber(I) || I <= 0 || !isNumber(C) || C !== +C || !isNumber(E) || E !== +E)
|
|
33750
|
+
if (!isNumber$1(R) || R <= 0 || !isNumber$1(I) || I <= 0 || !isNumber$1(C) || C !== +C || !isNumber$1(E) || E !== +E)
|
|
33751
33751
|
return null;
|
|
33752
33752
|
var Q = S.verticalCoordinatesGenerator || defaultVerticalCoordinatesGenerator, F = S.horizontalCoordinatesGenerator || defaultHorizontalCoordinatesGenerator, j = S.horizontalPoints, te = S.verticalPoints;
|
|
33753
33753
|
if ((!j || !j.length) && isFunction$3(F)) {
|
|
@@ -33982,9 +33982,9 @@ var Area = /* @__PURE__ */ function(e) {
|
|
|
33982
33982
|
var l = this.props, d = l.baseLine, f = l.points, g = l.strokeWidth, b = f[0].x, _ = f[f.length - 1].x, S = o * Math.abs(b - _), C = max$1(f.map(function(E) {
|
|
33983
33983
|
return E.y || 0;
|
|
33984
33984
|
}));
|
|
33985
|
-
return isNumber(d) && typeof d == "number" ? C = Math.max(d, C) : d && Array.isArray(d) && d.length && (C = Math.max(max$1(d.map(function(E) {
|
|
33985
|
+
return isNumber$1(d) && typeof d == "number" ? C = Math.max(d, C) : d && Array.isArray(d) && d.length && (C = Math.max(max$1(d.map(function(E) {
|
|
33986
33986
|
return E.y || 0;
|
|
33987
|
-
})), C)), isNumber(C) ? /* @__PURE__ */ React__default.createElement("rect", {
|
|
33987
|
+
})), C)), isNumber$1(C) ? /* @__PURE__ */ React__default.createElement("rect", {
|
|
33988
33988
|
x: b < _ ? b : b - S,
|
|
33989
33989
|
y: 0,
|
|
33990
33990
|
width: S,
|
|
@@ -33997,9 +33997,9 @@ var Area = /* @__PURE__ */ function(e) {
|
|
|
33997
33997
|
var l = this.props, d = l.baseLine, f = l.points, g = l.strokeWidth, b = f[0].y, _ = f[f.length - 1].y, S = o * Math.abs(b - _), C = max$1(f.map(function(E) {
|
|
33998
33998
|
return E.x || 0;
|
|
33999
33999
|
}));
|
|
34000
|
-
return isNumber(d) && typeof d == "number" ? C = Math.max(d, C) : d && Array.isArray(d) && d.length && (C = Math.max(max$1(d.map(function(E) {
|
|
34000
|
+
return isNumber$1(d) && typeof d == "number" ? C = Math.max(d, C) : d && Array.isArray(d) && d.length && (C = Math.max(max$1(d.map(function(E) {
|
|
34001
34001
|
return E.x || 0;
|
|
34002
|
-
})), C)), isNumber(C) ? /* @__PURE__ */ React__default.createElement("rect", {
|
|
34002
|
+
})), C)), isNumber$1(C) ? /* @__PURE__ */ React__default.createElement("rect", {
|
|
34003
34003
|
x: 0,
|
|
34004
34004
|
y: b < _ ? b : b - S,
|
|
34005
34005
|
width: C + (g ? parseInt("".concat(g), 10) : 1),
|
|
@@ -34076,7 +34076,7 @@ var Area = /* @__PURE__ */ function(e) {
|
|
|
34076
34076
|
}
|
|
34077
34077
|
return ae;
|
|
34078
34078
|
}), F;
|
|
34079
|
-
if (isNumber(b) && typeof b == "number") {
|
|
34079
|
+
if (isNumber$1(b) && typeof b == "number") {
|
|
34080
34080
|
var j = interpolateNumber$2(A, b);
|
|
34081
34081
|
F = j(q);
|
|
34082
34082
|
} else if (isNil(b) || isNan(b)) {
|
|
@@ -34175,7 +34175,7 @@ _defineProperty$5(Area, "defaultProps", {
|
|
|
34175
34175
|
});
|
|
34176
34176
|
_defineProperty$5(Area, "getBaseValue", function(e, t, n, o) {
|
|
34177
34177
|
var l = e.layout, d = e.baseValue, f = t.props.baseValue, g = f ?? d;
|
|
34178
|
-
if (isNumber(g) && typeof g == "number")
|
|
34178
|
+
if (isNumber$1(g) && typeof g == "number")
|
|
34179
34179
|
return g;
|
|
34180
34180
|
var b = l === "horizontal" ? o : n, _ = b.scale.domain();
|
|
34181
34181
|
if (b.type === "number") {
|
|
@@ -34546,7 +34546,7 @@ function _arrayLikeToArray$1(e, t) {
|
|
|
34546
34546
|
var detectReferenceElementsDomain = function(t, n, o, l, d) {
|
|
34547
34547
|
var f = findAllByType(t, ReferenceLine), g = findAllByType(t, ReferenceDot), b = [].concat(_toConsumableArray$1(f), _toConsumableArray$1(g)), _ = findAllByType(t, ReferenceArea), S = "".concat(l, "Id"), C = l[0], E = n;
|
|
34548
34548
|
if (b.length && (E = b.reduce(function(M, A) {
|
|
34549
|
-
if (A.props[S] === o && ifOverflowMatches(A.props, "extendDomain") && isNumber(A.props[C])) {
|
|
34549
|
+
if (A.props[S] === o && ifOverflowMatches(A.props, "extendDomain") && isNumber$1(A.props[C])) {
|
|
34550
34550
|
var V = A.props[C];
|
|
34551
34551
|
return [Math.min(M[0], V), Math.max(M[1], V)];
|
|
34552
34552
|
}
|
|
@@ -34554,7 +34554,7 @@ var detectReferenceElementsDomain = function(t, n, o, l, d) {
|
|
|
34554
34554
|
}, E)), _.length) {
|
|
34555
34555
|
var R = "".concat(C, "1"), I = "".concat(C, "2");
|
|
34556
34556
|
E = _.reduce(function(M, A) {
|
|
34557
|
-
if (A.props[S] === o && ifOverflowMatches(A.props, "extendDomain") && isNumber(A.props[R]) && isNumber(A.props[I])) {
|
|
34557
|
+
if (A.props[S] === o && ifOverflowMatches(A.props, "extendDomain") && isNumber$1(A.props[R]) && isNumber$1(A.props[I])) {
|
|
34558
34558
|
var V = A.props[R], q = A.props[I];
|
|
34559
34559
|
return [Math.min(M[0], V, q), Math.max(M[1], V, q)];
|
|
34560
34560
|
}
|
|
@@ -34562,7 +34562,7 @@ var detectReferenceElementsDomain = function(t, n, o, l, d) {
|
|
|
34562
34562
|
}, E);
|
|
34563
34563
|
}
|
|
34564
34564
|
return d && d.length && (E = d.reduce(function(M, A) {
|
|
34565
|
-
return isNumber(A) ? [Math.min(M[0], A), Math.max(M[1], A)] : M;
|
|
34565
|
+
return isNumber$1(A) ? [Math.min(M[0], A), Math.max(M[1], A)] : M;
|
|
34566
34566
|
}, E)), E;
|
|
34567
34567
|
}, eventemitter3 = { exports: {} }, hasRequiredEventemitter3;
|
|
34568
34568
|
function requireEventemitter3() {
|
|
@@ -34768,7 +34768,7 @@ var AccessibilityManager = /* @__PURE__ */ function() {
|
|
|
34768
34768
|
function isDomainSpecifiedByUser(e, t, n) {
|
|
34769
34769
|
if (n === "number" && t === !0 && Array.isArray(e)) {
|
|
34770
34770
|
var o = e == null ? void 0 : e[0], l = e == null ? void 0 : e[1];
|
|
34771
|
-
if (o && l && isNumber(o) && isNumber(l))
|
|
34771
|
+
if (o && l && isNumber$1(o) && isNumber$1(l))
|
|
34772
34772
|
return !0;
|
|
34773
34773
|
}
|
|
34774
34774
|
return !1;
|
|
@@ -35127,7 +35127,7 @@ var calculateTooltipPos = function(t, n) {
|
|
|
35127
35127
|
var _ = b.props.data;
|
|
35128
35128
|
return _ && _.length ? [].concat(_toConsumableArray(g), _toConsumableArray(_)) : g;
|
|
35129
35129
|
}, []);
|
|
35130
|
-
return f.length > 0 ? f : t && t.length && isNumber(l) && isNumber(d) ? t.slice(l, d + 1) : [];
|
|
35130
|
+
return f.length > 0 ? f : t && t.length && isNumber$1(l) && isNumber$1(d) ? t.slice(l, d + 1) : [];
|
|
35131
35131
|
};
|
|
35132
35132
|
function getDefaultDomainByAxisType(e) {
|
|
35133
35133
|
return e === "number" ? [0, "auto"] : void 0;
|
|
@@ -35685,9 +35685,9 @@ var getTooltipContent = function(t, n, o, l) {
|
|
|
35685
35685
|
key: j.key || "_recharts-brush",
|
|
35686
35686
|
onChange: combineEventHandlers(F.handleBrushChange, j.props.onChange),
|
|
35687
35687
|
data: ie,
|
|
35688
|
-
x: isNumber(j.props.x) ? j.props.x : se.left,
|
|
35689
|
-
y: isNumber(j.props.y) ? j.props.y : se.top + se.height + se.brushBottom - (ae.bottom || 0),
|
|
35690
|
-
width: isNumber(j.props.width) ? j.props.width : se.width,
|
|
35688
|
+
x: isNumber$1(j.props.x) ? j.props.x : se.left,
|
|
35689
|
+
y: isNumber$1(j.props.y) ? j.props.y : se.top + se.height + se.brushBottom - (ae.bottom || 0),
|
|
35690
|
+
width: isNumber$1(j.props.width) ? j.props.width : se.width,
|
|
35691
35691
|
startIndex: ge,
|
|
35692
35692
|
endIndex: Ae,
|
|
35693
35693
|
updateId: "brush-".concat(Ne)
|
|
@@ -42688,9 +42688,9 @@ function useImageLoadingStatus(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
|
42688
42688
|
};
|
|
42689
42689
|
}, [d, n, t]), f;
|
|
42690
42690
|
}
|
|
42691
|
-
var Root$
|
|
42691
|
+
var Root$3 = Avatar$1, Image$1 = AvatarImage$1, Fallback = AvatarFallback$1;
|
|
42692
42692
|
const Avatar = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsx(
|
|
42693
|
-
Root$
|
|
42693
|
+
Root$3,
|
|
42694
42694
|
{
|
|
42695
42695
|
ref: n,
|
|
42696
42696
|
className: cn(
|
|
@@ -42700,7 +42700,7 @@ const Avatar = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ j
|
|
|
42700
42700
|
...t
|
|
42701
42701
|
}
|
|
42702
42702
|
));
|
|
42703
|
-
Avatar.displayName = Root$
|
|
42703
|
+
Avatar.displayName = Root$3.displayName;
|
|
42704
42704
|
const AvatarImage = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsx(
|
|
42705
42705
|
Image$1,
|
|
42706
42706
|
{
|
|
@@ -43235,9 +43235,9 @@ function useResizeObserver(e, t) {
|
|
|
43235
43235
|
}
|
|
43236
43236
|
}, [e, n]);
|
|
43237
43237
|
}
|
|
43238
|
-
var Root$
|
|
43238
|
+
var Root$2 = ScrollArea$1, Viewport$1 = ScrollAreaViewport, Corner = ScrollAreaCorner;
|
|
43239
43239
|
const ScrollArea = React.forwardRef(({ className: e, children: t, orientation: n, ...o }, l) => /* @__PURE__ */ jsxs(
|
|
43240
|
-
Root$
|
|
43240
|
+
Root$2,
|
|
43241
43241
|
{
|
|
43242
43242
|
ref: l,
|
|
43243
43243
|
className: cn("relative overflow-hidden", e),
|
|
@@ -43252,7 +43252,7 @@ const ScrollArea = React.forwardRef(({ className: e, children: t, orientation: n
|
|
|
43252
43252
|
]
|
|
43253
43253
|
}
|
|
43254
43254
|
));
|
|
43255
|
-
ScrollArea.displayName = Root$
|
|
43255
|
+
ScrollArea.displayName = Root$2.displayName;
|
|
43256
43256
|
const ScrollBar = React.forwardRef(({ className: e, orientation: t = "vertical", ...n }, o) => /* @__PURE__ */ jsx(
|
|
43257
43257
|
ScrollAreaScrollbar,
|
|
43258
43258
|
{
|
|
@@ -43316,7 +43316,7 @@ var TAB_LIST_NAME = "TabsList", TabsList$1 = React.forwardRef(
|
|
|
43316
43316
|
(e, t) => {
|
|
43317
43317
|
const { __scopeTabs: n, loop: o = !0, ...l } = e, d = useTabsContext(TAB_LIST_NAME, n), f = useRovingFocusGroupScope(n);
|
|
43318
43318
|
return /* @__PURE__ */ jsx(
|
|
43319
|
-
Root$
|
|
43319
|
+
Root$a,
|
|
43320
43320
|
{
|
|
43321
43321
|
asChild: !0,
|
|
43322
43322
|
...f,
|
|
@@ -54399,9 +54399,9 @@ SwitchBubbleInput.displayName = BUBBLE_INPUT_NAME$2;
|
|
|
54399
54399
|
function getState$2(e) {
|
|
54400
54400
|
return e ? "checked" : "unchecked";
|
|
54401
54401
|
}
|
|
54402
|
-
var Root = Switch$1, Thumb = SwitchThumb;
|
|
54402
|
+
var Root$1 = Switch$1, Thumb = SwitchThumb;
|
|
54403
54403
|
const Switch = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsx(
|
|
54404
|
-
Root,
|
|
54404
|
+
Root$1,
|
|
54405
54405
|
{
|
|
54406
54406
|
className: cn(
|
|
54407
54407
|
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
@@ -54419,7 +54419,7 @@ const Switch = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ j
|
|
|
54419
54419
|
)
|
|
54420
54420
|
}
|
|
54421
54421
|
));
|
|
54422
|
-
Switch.displayName = Root.displayName;
|
|
54422
|
+
Switch.displayName = Root$1.displayName;
|
|
54423
54423
|
const DebugMessageDisplay = ({ debugMessages: e }) => {
|
|
54424
54424
|
const [t, n] = useState({}), o = (l) => {
|
|
54425
54425
|
n((d) => ({
|
|
@@ -58059,10 +58059,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
58059
58059
|
var O = this.readWord1(), ne = j.name;
|
|
58060
58060
|
return this.keywords.test(O) && (ne = Q[O]), this.finishToken(ne, O);
|
|
58061
58061
|
};
|
|
58062
|
-
var
|
|
58062
|
+
var hn = "8.12.1";
|
|
58063
58063
|
rt.acorn = {
|
|
58064
58064
|
Parser: rt,
|
|
58065
|
-
version:
|
|
58065
|
+
version: hn,
|
|
58066
58066
|
defaultOptions: Ke,
|
|
58067
58067
|
Position: He,
|
|
58068
58068
|
SourceLocation: Ye,
|
|
@@ -58090,7 +58090,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
58090
58090
|
function Dn(O, ne) {
|
|
58091
58091
|
return rt.tokenizer(O, ne);
|
|
58092
58092
|
}
|
|
58093
|
-
n.Node = _r, n.Parser = rt, n.Position = He, n.SourceLocation = Ye, n.TokContext = nr, n.Token = Mr, n.TokenType = A, n.defaultOptions = Ke, n.getLineInfo = Je, n.isIdentifierChar = M, n.isIdentifierStart = I, n.isNewLine = ie, n.keywordTypes = Q, n.lineBreak = te, n.lineBreakG = ae, n.nonASCIIwhitespace = se, n.parse = On, n.parseExpressionAt = Vn, n.tokContexts = Zt, n.tokTypes = j, n.tokenizer = Dn, n.version =
|
|
58093
|
+
n.Node = _r, n.Parser = rt, n.Position = He, n.SourceLocation = Ye, n.TokContext = nr, n.Token = Mr, n.TokenType = A, n.defaultOptions = Ke, n.getLineInfo = Je, n.isIdentifierChar = M, n.isIdentifierStart = I, n.isNewLine = ie, n.keywordTypes = Q, n.lineBreak = te, n.lineBreakG = ae, n.nonASCIIwhitespace = se, n.parse = On, n.parseExpressionAt = Vn, n.tokContexts = Zt, n.tokTypes = j, n.tokenizer = Dn, n.version = hn;
|
|
58094
58094
|
});
|
|
58095
58095
|
}), require_acorn_jsx = __commonJS((e, t) => {
|
|
58096
58096
|
var n = require_xhtml(), o = /^[\da-fA-F]+$/, l = /^\d+$/, d = /* @__PURE__ */ new WeakMap();
|
|
@@ -62272,9 +62272,9 @@ var Checkbox$1 = React.forwardRef(
|
|
|
62272
62272
|
}
|
|
62273
62273
|
);
|
|
62274
62274
|
Checkbox$1.displayName = CHECKBOX_NAME;
|
|
62275
|
-
var INDICATOR_NAME = "CheckboxIndicator", CheckboxIndicator = React.forwardRef(
|
|
62275
|
+
var INDICATOR_NAME$1 = "CheckboxIndicator", CheckboxIndicator = React.forwardRef(
|
|
62276
62276
|
(e, t) => {
|
|
62277
|
-
const { __scopeCheckbox: n, forceMount: o, ...l } = e, d = useCheckboxContext(INDICATOR_NAME, n);
|
|
62277
|
+
const { __scopeCheckbox: n, forceMount: o, ...l } = e, d = useCheckboxContext(INDICATOR_NAME$1, n);
|
|
62278
62278
|
return /* @__PURE__ */ jsx(
|
|
62279
62279
|
Presence,
|
|
62280
62280
|
{
|
|
@@ -62293,7 +62293,7 @@ var INDICATOR_NAME = "CheckboxIndicator", CheckboxIndicator = React.forwardRef(
|
|
|
62293
62293
|
);
|
|
62294
62294
|
}
|
|
62295
62295
|
);
|
|
62296
|
-
CheckboxIndicator.displayName = INDICATOR_NAME;
|
|
62296
|
+
CheckboxIndicator.displayName = INDICATOR_NAME$1;
|
|
62297
62297
|
var BUBBLE_INPUT_NAME$1 = "CheckboxBubbleInput", CheckboxBubbleInput = React.forwardRef(
|
|
62298
62298
|
({ __scopeCheckbox: e, ...t }, n) => {
|
|
62299
62299
|
const {
|
|
@@ -62623,7 +62623,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
62623
62623
|
}, []), React.createElement(Primitive.div, { ref: composeRefs(d, t), ...l, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": g, "aria-label": o, id: b.listId }, B(e, (_) => React.createElement("div", { ref: composeRefs(f, b.listInnerRef), "cmdk-list-sizer": "" }, _)));
|
|
62624
62624
|
}), xe = React.forwardRef((e, t) => {
|
|
62625
62625
|
let { open: n, onOpenChange: o, overlayClassName: l, contentClassName: d, container: f, ...g } = e;
|
|
62626
|
-
return React.createElement(Root$
|
|
62626
|
+
return React.createElement(Root$8, { open: n, onOpenChange: o }, React.createElement(Portal$4, { container: f }, React.createElement(Overlay, { "cmdk-overlay": "", className: l }), React.createElement(Content$2, { "aria-label": e.label, "cmdk-dialog": "", className: d }, React.createElement(me, { ref: t, ...g }))));
|
|
62627
62627
|
}), Ie = React.forwardRef((e, t) => P((n) => n.filtered.count === 0) ? React.createElement(Primitive.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), Pe = React.forwardRef((e, t) => {
|
|
62628
62628
|
let { progress: n, children: o, label: l = "Loading...", ...d } = e;
|
|
62629
62629
|
return React.createElement(Primitive.div, { ref: t, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": l }, B(e, (f) => React.createElement("div", { "aria-hidden": !0 }, f)));
|
|
@@ -64016,28 +64016,29 @@ function ManufacturerReorderingCard({
|
|
|
64016
64016
|
manufacturer: e,
|
|
64017
64017
|
onSave: t,
|
|
64018
64018
|
loading: n = !1,
|
|
64019
|
-
saving: o = !1
|
|
64019
|
+
saving: o = !1,
|
|
64020
|
+
readonly: l = !1
|
|
64020
64021
|
}) {
|
|
64021
|
-
const [
|
|
64022
|
+
const [d, f] = useState({
|
|
64022
64023
|
...e
|
|
64023
|
-
}),
|
|
64024
|
-
|
|
64025
|
-
...
|
|
64026
|
-
[
|
|
64024
|
+
}), g = (R, I) => {
|
|
64025
|
+
l || f((M) => ({
|
|
64026
|
+
...M,
|
|
64027
|
+
[R]: I
|
|
64027
64028
|
}));
|
|
64028
|
-
},
|
|
64029
|
-
|
|
64030
|
-
...
|
|
64031
|
-
[
|
|
64029
|
+
}, b = (R, I) => {
|
|
64030
|
+
l || f((M) => ({
|
|
64031
|
+
...M,
|
|
64032
|
+
[R]: I
|
|
64032
64033
|
}));
|
|
64033
|
-
},
|
|
64034
|
-
|
|
64035
|
-
...
|
|
64036
|
-
[
|
|
64034
|
+
}, _ = (R, I) => {
|
|
64035
|
+
l || f((M) => ({
|
|
64036
|
+
...M,
|
|
64037
|
+
[R]: I
|
|
64037
64038
|
}));
|
|
64038
|
-
},
|
|
64039
|
-
o
|
|
64040
|
-
},
|
|
64039
|
+
}, S = () => {
|
|
64040
|
+
!o && !l && t(d);
|
|
64041
|
+
}, C = (R) => R === -1 ? "ASAP" : R === void 0 || R < 0 || R > 6 ? "Sunday" : DAYS_OF_WEEK[R], E = (R) => R === "ASAP" ? -1 : DAYS_OF_WEEK.indexOf(R);
|
|
64041
64042
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
64042
64043
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
64043
64044
|
n ? /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32" }) : /* @__PURE__ */ jsx(CardTitle, { className: "text-lg font-bold", children: "Reordering" }),
|
|
@@ -64086,9 +64087,9 @@ function ManufacturerReorderingCard({
|
|
|
64086
64087
|
Switch,
|
|
64087
64088
|
{
|
|
64088
64089
|
id: "automatic-reordering",
|
|
64089
|
-
checked:
|
|
64090
|
-
onCheckedChange: (
|
|
64091
|
-
disabled: o
|
|
64090
|
+
checked: d.AutoUpdate,
|
|
64091
|
+
onCheckedChange: (R) => g("AutoUpdate", R),
|
|
64092
|
+
disabled: o || l
|
|
64092
64093
|
}
|
|
64093
64094
|
),
|
|
64094
64095
|
/* @__PURE__ */ jsx(Label$2, { htmlFor: "automatic-reordering", children: "Automatic Reordering" })
|
|
@@ -64099,14 +64100,14 @@ function ManufacturerReorderingCard({
|
|
|
64099
64100
|
/* @__PURE__ */ jsxs(
|
|
64100
64101
|
Select,
|
|
64101
64102
|
{
|
|
64102
|
-
value:
|
|
64103
|
-
onValueChange: (
|
|
64104
|
-
disabled: o,
|
|
64103
|
+
value: C(d.AutoReorderDate),
|
|
64104
|
+
onValueChange: (R) => b("AutoReorderDate", E(R)),
|
|
64105
|
+
disabled: o || l,
|
|
64105
64106
|
children: [
|
|
64106
64107
|
/* @__PURE__ */ jsx(SelectTrigger, { id: "reorder-date", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select day" }) }),
|
|
64107
64108
|
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
64108
64109
|
/* @__PURE__ */ jsx(SelectItem, { value: "ASAP", children: "ASAP" }),
|
|
64109
|
-
DAYS_OF_WEEK.map((
|
|
64110
|
+
DAYS_OF_WEEK.map((R) => /* @__PURE__ */ jsx(SelectItem, { value: R, children: R }, R))
|
|
64110
64111
|
] })
|
|
64111
64112
|
]
|
|
64112
64113
|
}
|
|
@@ -64120,9 +64121,9 @@ function ManufacturerReorderingCard({
|
|
|
64120
64121
|
{
|
|
64121
64122
|
id: "weeks-stocking",
|
|
64122
64123
|
type: "number",
|
|
64123
|
-
value:
|
|
64124
|
-
onChange: (
|
|
64125
|
-
disabled: o
|
|
64124
|
+
value: d.DefaultWeeksOfStocking || "",
|
|
64125
|
+
onChange: (R) => b("DefaultWeeksOfStocking", Number(R.target.value)),
|
|
64126
|
+
disabled: o || l
|
|
64126
64127
|
}
|
|
64127
64128
|
),
|
|
64128
64129
|
/* @__PURE__ */ jsx("span", { className: "ml-2 text-sm text-muted-foreground", children: "weeks" })
|
|
@@ -64138,9 +64139,9 @@ function ManufacturerReorderingCard({
|
|
|
64138
64139
|
id: "minimum-order",
|
|
64139
64140
|
type: "number",
|
|
64140
64141
|
className: "pl-6",
|
|
64141
|
-
value:
|
|
64142
|
-
onChange: (
|
|
64143
|
-
disabled: o
|
|
64142
|
+
value: d.DefaultMinimumOrder || "",
|
|
64143
|
+
onChange: (R) => b("DefaultMinimumOrder", Number(R.target.value)),
|
|
64144
|
+
disabled: o || l
|
|
64144
64145
|
}
|
|
64145
64146
|
)
|
|
64146
64147
|
] })
|
|
@@ -64153,9 +64154,9 @@ function ManufacturerReorderingCard({
|
|
|
64153
64154
|
{
|
|
64154
64155
|
id: "lead-time",
|
|
64155
64156
|
type: "number",
|
|
64156
|
-
value:
|
|
64157
|
-
onChange: (
|
|
64158
|
-
disabled: o
|
|
64157
|
+
value: d.DefaultLeadTime || "",
|
|
64158
|
+
onChange: (R) => b("DefaultLeadTime", Number(R.target.value)),
|
|
64159
|
+
disabled: o || l
|
|
64159
64160
|
}
|
|
64160
64161
|
),
|
|
64161
64162
|
/* @__PURE__ */ jsx("span", { className: "ml-2 text-sm text-muted-foreground", children: "days" })
|
|
@@ -64171,9 +64172,9 @@ function ManufacturerReorderingCard({
|
|
|
64171
64172
|
id: "maximum-inventory-value",
|
|
64172
64173
|
type: "number",
|
|
64173
64174
|
className: "pl-6",
|
|
64174
|
-
value:
|
|
64175
|
-
onChange: (
|
|
64176
|
-
disabled: o
|
|
64175
|
+
value: d.DefaultMaxInventoryValue || "",
|
|
64176
|
+
onChange: (R) => b("DefaultMaxInventoryValue", Number(R.target.value)),
|
|
64177
|
+
disabled: o || l
|
|
64177
64178
|
}
|
|
64178
64179
|
)
|
|
64179
64180
|
] })
|
|
@@ -64185,16 +64186,16 @@ function ManufacturerReorderingCard({
|
|
|
64185
64186
|
{
|
|
64186
64187
|
id: "order-confirmations",
|
|
64187
64188
|
type: "email",
|
|
64188
|
-
value:
|
|
64189
|
-
onChange: (
|
|
64189
|
+
value: d.POEmail || "",
|
|
64190
|
+
onChange: (R) => _("POEmail", R.target.value),
|
|
64190
64191
|
placeholder: "email@example.com",
|
|
64191
|
-
disabled: o
|
|
64192
|
+
disabled: o || l
|
|
64192
64193
|
}
|
|
64193
64194
|
)
|
|
64194
64195
|
] })
|
|
64195
64196
|
] })
|
|
64196
64197
|
] }) }),
|
|
64197
|
-
/* @__PURE__ */ jsx(CardFooter, { className: "flex justify-end", children: n ? /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-20" }) : /* @__PURE__ */ jsxs(Button, { onClick:
|
|
64198
|
+
!l && /* @__PURE__ */ jsx(CardFooter, { className: "flex justify-end", children: n ? /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-20" }) : /* @__PURE__ */ jsxs(Button, { onClick: S, disabled: o, children: [
|
|
64198
64199
|
o && /* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
64199
64200
|
"Save"
|
|
64200
64201
|
] }) })
|
|
@@ -66852,7 +66853,7 @@ function SalesChart({
|
|
|
66852
66853
|
const C = e.reduce(
|
|
66853
66854
|
(Q, F) => {
|
|
66854
66855
|
const j = F.Day ?? 0, te = Math.floor(j).toString();
|
|
66855
|
-
if (te.length !== 8 || isNaN(parseInt(te)))
|
|
66856
|
+
if (te.length !== 8 || isNaN(Number.parseInt(te)))
|
|
66856
66857
|
return console.warn(`Skipping invalid Day format: ${F.Day}`), Q;
|
|
66857
66858
|
const ae = te.substring(0, 4), ie = te.substring(4, 6), oe = `${ae}-${ie}`;
|
|
66858
66859
|
return Q[oe] = (Q[oe] || 0) + (F.ExtendedPrice ?? 0), Q;
|
|
@@ -66874,7 +66875,24 @@ function SalesChart({
|
|
|
66874
66875
|
};
|
|
66875
66876
|
});
|
|
66876
66877
|
g(z);
|
|
66877
|
-
}, [e, b, d]), d ? /* @__PURE__ */
|
|
66878
|
+
}, [e, b, d]), d ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
66879
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-24" }) }),
|
|
66880
|
+
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
66881
|
+
/* @__PURE__ */ jsx("div", { style: { height: t }, children: /* @__PURE__ */ jsx(Skeleton, { className: "h-full w-full rounded-md" }) }),
|
|
66882
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 my-1 pt-2", children: [
|
|
66883
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-10" }),
|
|
66884
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20" })
|
|
66885
|
+
] }),
|
|
66886
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4 mt-1" })
|
|
66887
|
+
] })
|
|
66888
|
+
] }) : f.length === 0 ? /* @__PURE__ */ jsx(
|
|
66889
|
+
"div",
|
|
66890
|
+
{
|
|
66891
|
+
style: { height: t },
|
|
66892
|
+
className: l || "p-4 text-center text-muted-foreground flex items-center justify-center",
|
|
66893
|
+
children: "No monthly sales data to display."
|
|
66894
|
+
}
|
|
66895
|
+
) : /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
66878
66896
|
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Sales" }) }),
|
|
66879
66897
|
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
66880
66898
|
/* @__PURE__ */ jsx(
|
|
@@ -66889,7 +66907,15 @@ function SalesChart({
|
|
|
66889
66907
|
),
|
|
66890
66908
|
S && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66891
66909
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 my-1 pt-2", children: [
|
|
66892
|
-
/* @__PURE__ */ jsx(
|
|
66910
|
+
/* @__PURE__ */ jsx(
|
|
66911
|
+
Switch,
|
|
66912
|
+
{
|
|
66913
|
+
checked: b,
|
|
66914
|
+
onCheckedChange: _,
|
|
66915
|
+
id: "extrapolate-switch",
|
|
66916
|
+
"aria-label": "Toggle sales extrapolation"
|
|
66917
|
+
}
|
|
66918
|
+
),
|
|
66893
66919
|
/* @__PURE__ */ jsx(Label$2, { htmlFor: "extrapolate-switch", children: "Extrapolate" })
|
|
66894
66920
|
] }),
|
|
66895
66921
|
b && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: "* Sales for the current month are projected, not actual." })
|
|
@@ -70521,6 +70547,277 @@ function ManufacturerResellerOrdersSection({
|
|
|
70521
70547
|
] })
|
|
70522
70548
|
] });
|
|
70523
70549
|
}
|
|
70550
|
+
var PROGRESS_NAME = "Progress", DEFAULT_MAX = 100, [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), Progress$1 = React.forwardRef(
|
|
70551
|
+
(e, t) => {
|
|
70552
|
+
const {
|
|
70553
|
+
__scopeProgress: n,
|
|
70554
|
+
value: o = null,
|
|
70555
|
+
max: l,
|
|
70556
|
+
getValueLabel: d = defaultGetValueLabel,
|
|
70557
|
+
...f
|
|
70558
|
+
} = e;
|
|
70559
|
+
(l || l === 0) && !isValidMaxNumber(l) && console.error(getInvalidMaxError(`${l}`, "Progress"));
|
|
70560
|
+
const g = isValidMaxNumber(l) ? l : DEFAULT_MAX;
|
|
70561
|
+
o !== null && !isValidValueNumber(o, g) && console.error(getInvalidValueError(`${o}`, "Progress"));
|
|
70562
|
+
const b = isValidValueNumber(o, g) ? o : null, _ = isNumber(b) ? d(b, g) : void 0;
|
|
70563
|
+
return /* @__PURE__ */ jsx(ProgressProvider, { scope: n, value: b, max: g, children: /* @__PURE__ */ jsx(
|
|
70564
|
+
Primitive.div,
|
|
70565
|
+
{
|
|
70566
|
+
"aria-valuemax": g,
|
|
70567
|
+
"aria-valuemin": 0,
|
|
70568
|
+
"aria-valuenow": isNumber(b) ? b : void 0,
|
|
70569
|
+
"aria-valuetext": _,
|
|
70570
|
+
role: "progressbar",
|
|
70571
|
+
"data-state": getProgressState(b, g),
|
|
70572
|
+
"data-value": b ?? void 0,
|
|
70573
|
+
"data-max": g,
|
|
70574
|
+
...f,
|
|
70575
|
+
ref: t
|
|
70576
|
+
}
|
|
70577
|
+
) });
|
|
70578
|
+
}
|
|
70579
|
+
);
|
|
70580
|
+
Progress$1.displayName = PROGRESS_NAME;
|
|
70581
|
+
var INDICATOR_NAME = "ProgressIndicator", ProgressIndicator = React.forwardRef(
|
|
70582
|
+
(e, t) => {
|
|
70583
|
+
const { __scopeProgress: n, ...o } = e, l = useProgressContext(INDICATOR_NAME, n);
|
|
70584
|
+
return /* @__PURE__ */ jsx(
|
|
70585
|
+
Primitive.div,
|
|
70586
|
+
{
|
|
70587
|
+
"data-state": getProgressState(l.value, l.max),
|
|
70588
|
+
"data-value": l.value ?? void 0,
|
|
70589
|
+
"data-max": l.max,
|
|
70590
|
+
...o,
|
|
70591
|
+
ref: t
|
|
70592
|
+
}
|
|
70593
|
+
);
|
|
70594
|
+
}
|
|
70595
|
+
);
|
|
70596
|
+
ProgressIndicator.displayName = INDICATOR_NAME;
|
|
70597
|
+
function defaultGetValueLabel(e, t) {
|
|
70598
|
+
return `${Math.round(e / t * 100)}%`;
|
|
70599
|
+
}
|
|
70600
|
+
function getProgressState(e, t) {
|
|
70601
|
+
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
70602
|
+
}
|
|
70603
|
+
function isNumber(e) {
|
|
70604
|
+
return typeof e == "number";
|
|
70605
|
+
}
|
|
70606
|
+
function isValidMaxNumber(e) {
|
|
70607
|
+
return isNumber(e) && !isNaN(e) && e > 0;
|
|
70608
|
+
}
|
|
70609
|
+
function isValidValueNumber(e, t) {
|
|
70610
|
+
return isNumber(e) && !isNaN(e) && e <= t && e >= 0;
|
|
70611
|
+
}
|
|
70612
|
+
function getInvalidMaxError(e, t) {
|
|
70613
|
+
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`;
|
|
70614
|
+
}
|
|
70615
|
+
function getInvalidValueError(e, t) {
|
|
70616
|
+
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
70617
|
+
- a positive number
|
|
70618
|
+
- less than the value passed to \`max\` (or ${DEFAULT_MAX} if no \`max\` prop is set)
|
|
70619
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
70620
|
+
|
|
70621
|
+
Defaulting to \`null\`.`;
|
|
70622
|
+
}
|
|
70623
|
+
var Root = Progress$1, Indicator = ProgressIndicator;
|
|
70624
|
+
const Progress = React.forwardRef(({ className: e, value: t, ...n }, o) => /* @__PURE__ */ jsx(
|
|
70625
|
+
Root,
|
|
70626
|
+
{
|
|
70627
|
+
ref: o,
|
|
70628
|
+
className: cn(
|
|
70629
|
+
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
70630
|
+
e
|
|
70631
|
+
),
|
|
70632
|
+
...n,
|
|
70633
|
+
children: /* @__PURE__ */ jsx(
|
|
70634
|
+
Indicator,
|
|
70635
|
+
{
|
|
70636
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
70637
|
+
style: { transform: `translateX(-${100 - (t || 0)}%)` }
|
|
70638
|
+
}
|
|
70639
|
+
)
|
|
70640
|
+
}
|
|
70641
|
+
));
|
|
70642
|
+
Progress.displayName = Root.displayName;
|
|
70643
|
+
function ManufacturerInventoryFinanceCard({
|
|
70644
|
+
manufacturer: e,
|
|
70645
|
+
isLoading: t
|
|
70646
|
+
}) {
|
|
70647
|
+
const {
|
|
70648
|
+
data: n,
|
|
70649
|
+
isLoading: o,
|
|
70650
|
+
isFetching: l
|
|
70651
|
+
} = useGetV4ManufacturerByRouteManufacturerIdInventoryValueQuery({
|
|
70652
|
+
routeManufacturerId: (e == null ? void 0 : e.ManufacturerId) ?? ""
|
|
70653
|
+
}, {
|
|
70654
|
+
skip: !(e != null && e.ManufacturerId)
|
|
70655
|
+
}), d = (e == null ? void 0 : e.DefaultMaxInventoryValue) ?? 0, f = (n || []).reduce((S, C) => S + (C.InventoryValue || 0), 0), g = d - f, b = Math.round(f / d * 100), _ = (S) => new Intl.NumberFormat("en-CA", {
|
|
70656
|
+
style: "currency",
|
|
70657
|
+
currency: "CAD",
|
|
70658
|
+
minimumFractionDigits: 2
|
|
70659
|
+
}).format(S);
|
|
70660
|
+
return t || o || l ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
70661
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
70662
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-3/4" }),
|
|
70663
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/2 mt-2" })
|
|
70664
|
+
] }),
|
|
70665
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
70666
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
70667
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70668
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/3" }),
|
|
70669
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/4" })
|
|
70670
|
+
] }),
|
|
70671
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70672
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/3" }),
|
|
70673
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/4" })
|
|
70674
|
+
] }),
|
|
70675
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70676
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/3" }),
|
|
70677
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/4" })
|
|
70678
|
+
] })
|
|
70679
|
+
] }),
|
|
70680
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
70681
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70682
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/3" }),
|
|
70683
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16" })
|
|
70684
|
+
] }),
|
|
70685
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-full" })
|
|
70686
|
+
] })
|
|
70687
|
+
] })
|
|
70688
|
+
] }) : /* @__PURE__ */ jsxs(Card, { children: [
|
|
70689
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
70690
|
+
/* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
|
|
70691
|
+
/* @__PURE__ */ jsx(DollarSign, { className: "h-5 w-5 text-muted-foreground" }),
|
|
70692
|
+
"Inventory Finance"
|
|
70693
|
+
] }),
|
|
70694
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Current inventory financial status" })
|
|
70695
|
+
] }),
|
|
70696
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
70697
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
70698
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70699
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Max Allowance" }),
|
|
70700
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold", children: _(d) })
|
|
70701
|
+
] }),
|
|
70702
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70703
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Current Funds" }),
|
|
70704
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold", children: _(f) })
|
|
70705
|
+
] }),
|
|
70706
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70707
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Available Funds" }),
|
|
70708
|
+
/* @__PURE__ */ jsx(
|
|
70709
|
+
"span",
|
|
70710
|
+
{
|
|
70711
|
+
className: `font-bold ${g >= 0 ? "text-emerald-600 dark:text-emerald-500" : "text-red-600 dark:text-red-500"}`,
|
|
70712
|
+
children: _(g)
|
|
70713
|
+
}
|
|
70714
|
+
)
|
|
70715
|
+
] })
|
|
70716
|
+
] }),
|
|
70717
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
70718
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70719
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Budget Usage" }),
|
|
70720
|
+
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
70721
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
70722
|
+
/* @__PURE__ */ jsxs("span", { className: "text-sm font-medium", children: [
|
|
70723
|
+
b,
|
|
70724
|
+
"%"
|
|
70725
|
+
] }),
|
|
70726
|
+
b > 80 && /* @__PURE__ */ jsx(CircleAlert, { className: "h-4 w-4 text-amber-500" })
|
|
70727
|
+
] }) }),
|
|
70728
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: b > 80 ? "High usage alert" : "Budget usage" }) })
|
|
70729
|
+
] }) })
|
|
70730
|
+
] }),
|
|
70731
|
+
/* @__PURE__ */ jsx(Progress, { value: b, className: "h-2" })
|
|
70732
|
+
] })
|
|
70733
|
+
] })
|
|
70734
|
+
] });
|
|
70735
|
+
}
|
|
70736
|
+
function ManufacturerCreditFinanceCard({
|
|
70737
|
+
manufacturer: e,
|
|
70738
|
+
isLoading: t
|
|
70739
|
+
}) {
|
|
70740
|
+
const n = (e == null ? void 0 : e.CreditLimit) ?? 0, o = (e == null ? void 0 : e.OutstandingBalance) ?? 0, l = n - o, d = Math.round(o / n * 100), f = (g) => new Intl.NumberFormat("en-US", {
|
|
70741
|
+
style: "currency",
|
|
70742
|
+
currency: "USD",
|
|
70743
|
+
minimumFractionDigits: 2
|
|
70744
|
+
}).format(g);
|
|
70745
|
+
return t ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
70746
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
70747
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-3/4" }),
|
|
70748
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/2 mt-2" })
|
|
70749
|
+
] }),
|
|
70750
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
70751
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
70752
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70753
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/3" }),
|
|
70754
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/4" })
|
|
70755
|
+
] }),
|
|
70756
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70757
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/3" }),
|
|
70758
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/4" })
|
|
70759
|
+
] }),
|
|
70760
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70761
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/3" }),
|
|
70762
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/4" })
|
|
70763
|
+
] })
|
|
70764
|
+
] }),
|
|
70765
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
70766
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70767
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/3" }),
|
|
70768
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16" })
|
|
70769
|
+
] }),
|
|
70770
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-full" })
|
|
70771
|
+
] })
|
|
70772
|
+
] })
|
|
70773
|
+
] }) : /* @__PURE__ */ jsxs(Card, { children: [
|
|
70774
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
70775
|
+
/* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
|
|
70776
|
+
/* @__PURE__ */ jsx(CreditCard, { className: "h-5 w-5 text-muted-foreground" }),
|
|
70777
|
+
"Credit Finance"
|
|
70778
|
+
] }),
|
|
70779
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Current credit financial status" })
|
|
70780
|
+
] }),
|
|
70781
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
70782
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
70783
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70784
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Credit Limit" }),
|
|
70785
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold", children: f(n) })
|
|
70786
|
+
] }),
|
|
70787
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70788
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Outstanding Balance" }),
|
|
70789
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold", children: f(o) })
|
|
70790
|
+
] }),
|
|
70791
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70792
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Available Credit" }),
|
|
70793
|
+
/* @__PURE__ */ jsx(
|
|
70794
|
+
"span",
|
|
70795
|
+
{
|
|
70796
|
+
className: `font-bold ${l >= 0 ? "text-emerald-600 dark:text-emerald-500" : "text-red-600 dark:text-red-500"}`,
|
|
70797
|
+
children: f(l)
|
|
70798
|
+
}
|
|
70799
|
+
)
|
|
70800
|
+
] })
|
|
70801
|
+
] }),
|
|
70802
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
70803
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
70804
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Credit Usage" }),
|
|
70805
|
+
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
70806
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
70807
|
+
/* @__PURE__ */ jsxs("span", { className: "text-sm font-medium", children: [
|
|
70808
|
+
d,
|
|
70809
|
+
"%"
|
|
70810
|
+
] }),
|
|
70811
|
+
d > 80 && /* @__PURE__ */ jsx(CircleAlert, { className: "h-4 w-4 text-amber-500" })
|
|
70812
|
+
] }) }),
|
|
70813
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: d > 80 ? "High credit usage alert" : "Credit usage" }) })
|
|
70814
|
+
] }) })
|
|
70815
|
+
] }),
|
|
70816
|
+
/* @__PURE__ */ jsx(Progress, { value: d, className: "h-2" })
|
|
70817
|
+
] })
|
|
70818
|
+
] })
|
|
70819
|
+
] });
|
|
70820
|
+
}
|
|
70524
70821
|
function ManufacturerOverviewPage({
|
|
70525
70822
|
applicationId: e,
|
|
70526
70823
|
readonly: t,
|
|
@@ -70545,16 +70842,16 @@ function ManufacturerOverviewPage({
|
|
|
70545
70842
|
hasUnsavedChanges: !1
|
|
70546
70843
|
}
|
|
70547
70844
|
// Add other forms here if needed
|
|
70548
|
-
}), _ = useCallback(() => t ? !1 : g.publicInfo.hasUnsavedChanges || g.qualifications.hasUnsavedChanges || g.billingInfo.hasUnsavedChanges, [t, g]), S = useCallback((
|
|
70549
|
-
b((
|
|
70550
|
-
var
|
|
70551
|
-
return ((
|
|
70552
|
-
...
|
|
70553
|
-
[
|
|
70554
|
-
}) :
|
|
70845
|
+
}), _ = useCallback(() => t ? !1 : g.publicInfo.hasUnsavedChanges || g.qualifications.hasUnsavedChanges || g.billingInfo.hasUnsavedChanges, [t, g]), S = useCallback((E, R) => {
|
|
70846
|
+
b((I) => {
|
|
70847
|
+
var M;
|
|
70848
|
+
return ((M = I[E]) == null ? void 0 : M.hasUnsavedChanges) !== R.hasUnsavedChanges ? (console.log(`Updating form state for ${E}:`, R.hasUnsavedChanges), {
|
|
70849
|
+
...I,
|
|
70850
|
+
[E]: R
|
|
70851
|
+
}) : I;
|
|
70555
70852
|
});
|
|
70556
|
-
}, []), { NavigationGuardDialog: C } = useRouterNavigationGuard(_)
|
|
70557
|
-
return
|
|
70853
|
+
}, []), { NavigationGuardDialog: C } = useRouterNavigationGuard(_);
|
|
70854
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
70558
70855
|
f ? /* @__PURE__ */ jsx(Card, { className: "p-6", children: /* @__PURE__ */ jsxs(Alert, { variant: "destructive", children: [
|
|
70559
70856
|
/* @__PURE__ */ jsx(CircleAlert, { className: "h-4 w-4" }),
|
|
70560
70857
|
/* @__PURE__ */ jsx(AlertTitle, { children: "Error" }),
|
|
@@ -70582,13 +70879,37 @@ function ManufacturerOverviewPage({
|
|
|
70582
70879
|
manufacturerId: e
|
|
70583
70880
|
}
|
|
70584
70881
|
),
|
|
70882
|
+
n && /* @__PURE__ */ jsx(
|
|
70883
|
+
ManufacturerInventoryFinanceCard,
|
|
70884
|
+
{
|
|
70885
|
+
manufacturer: l,
|
|
70886
|
+
isLoading: d
|
|
70887
|
+
}
|
|
70888
|
+
),
|
|
70889
|
+
n && /* @__PURE__ */ jsx(
|
|
70890
|
+
ManufacturerCreditFinanceCard,
|
|
70891
|
+
{
|
|
70892
|
+
manufacturer: l,
|
|
70893
|
+
isLoading: d
|
|
70894
|
+
}
|
|
70895
|
+
),
|
|
70896
|
+
n && /* @__PURE__ */ jsx(
|
|
70897
|
+
ManufacturerReorderingCard,
|
|
70898
|
+
{
|
|
70899
|
+
manufacturer: l ?? {},
|
|
70900
|
+
onSave: () => {
|
|
70901
|
+
},
|
|
70902
|
+
loading: d,
|
|
70903
|
+
readonly: !0
|
|
70904
|
+
}
|
|
70905
|
+
),
|
|
70585
70906
|
n && /* @__PURE__ */ jsx(
|
|
70586
70907
|
ManufacturerPublicInfoSection,
|
|
70587
70908
|
{
|
|
70588
70909
|
manufacturer: l,
|
|
70589
70910
|
readonly: t,
|
|
70590
70911
|
isLoading: d,
|
|
70591
|
-
onUnsavedChanges: (
|
|
70912
|
+
onUnsavedChanges: (E) => S("publicInfo", { hasUnsavedChanges: E })
|
|
70592
70913
|
}
|
|
70593
70914
|
),
|
|
70594
70915
|
n && /* @__PURE__ */ jsx(
|
|
@@ -70605,7 +70926,7 @@ function ManufacturerOverviewPage({
|
|
|
70605
70926
|
manufacturer: l,
|
|
70606
70927
|
readonly: t,
|
|
70607
70928
|
isLoading: d,
|
|
70608
|
-
onUnsavedChanges: (
|
|
70929
|
+
onUnsavedChanges: (E) => S("billingInfo", { hasUnsavedChanges: E })
|
|
70609
70930
|
}
|
|
70610
70931
|
),
|
|
70611
70932
|
n && /* @__PURE__ */ jsx(
|
|
@@ -70614,7 +70935,7 @@ function ManufacturerOverviewPage({
|
|
|
70614
70935
|
manufacturer: l,
|
|
70615
70936
|
readonly: t,
|
|
70616
70937
|
isLoading: d,
|
|
70617
|
-
onUnsavedChanges: (
|
|
70938
|
+
onUnsavedChanges: (E) => S("qualifications", { hasUnsavedChanges: E })
|
|
70618
70939
|
}
|
|
70619
70940
|
)
|
|
70620
70941
|
] }),
|
|
@@ -70714,6 +71035,7 @@ export {
|
|
|
70714
71035
|
ProductCard,
|
|
70715
71036
|
ProductImage,
|
|
70716
71037
|
ProductInventoryGrid,
|
|
71038
|
+
Progress,
|
|
70717
71039
|
RadioGroup$1 as RadioGroup,
|
|
70718
71040
|
RadioGroupItem,
|
|
70719
71041
|
ResellerBillingOverviewCard,
|