@clubmed/trident-ui 1.3.0-beta.9 → 1.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +120 -0
- package/README.md +8 -0
- package/assets/icons/ResortFill/PHUC_Fill.svg +287 -10
- package/assets/icons/ResortFill/TOMC_Fill.svg +199 -14
- package/assets/icons/ResortFill-EC/KIPC_EC_Fill.svg +499 -0
- package/assets/icons/ResortOutline/PHUC_Outline.svg +156 -6
- package/assets/icons/ResortOutline/TOMC_Outline.svg +99 -6
- package/assets/icons/ResortOutline-EC/KIPC_EC_Outline.svg +380 -0
- package/assets/icons/Transports/Taxi.svg +5 -0
- package/assets/icons/Utilities/Doorhanger.svg +5 -0
- package/assets/{style.css → trident-ui.css} +1 -1
- package/atoms/Clickable/Clickable.d.ts +5 -0
- package/atoms/Clickable/Clickable.js +25 -0
- package/atoms/Clickable/Clickable.js.map +1 -0
- package/atoms/Heading/Heading.d.ts +6 -0
- package/atoms/Heading/Heading.js +14 -0
- package/atoms/Heading/Heading.js.map +1 -0
- package/atoms/Heading/HeadingGroup.d.ts +7 -0
- package/atoms/Heading/HeadingGroup.js +15 -0
- package/atoms/Heading/HeadingGroup.js.map +1 -0
- package/atoms/Icons/Iconics.d.ts +1 -1
- package/atoms/Icons/IconsResolver.d.ts +1 -1
- package/atoms/Icons/contexts/IconsContext.d.ts +1 -1
- package/atoms/Icons/svg/SvgIcon.d.ts +1 -1
- package/atoms/Icons/svg-use/SvgUseIcon.d.ts +1 -1
- package/atoms/Image/Image.d.ts +7 -0
- package/atoms/Image/Image.js +18 -0
- package/atoms/Image/Image.js.map +1 -0
- package/atoms/Prose/Prose.d.ts +5 -0
- package/atoms/Prose/Prose.js +18 -0
- package/atoms/Prose/Prose.js.map +1 -0
- package/chunks/ResizeObserver.js +287 -0
- package/chunks/ResizeObserver.js.map +1 -0
- package/chunks/_commonjsHelpers.js +19 -14
- package/chunks/_commonjsHelpers.js.map +1 -1
- package/chunks/index.js +36 -33
- package/chunks/index.js.map +1 -1
- package/chunks/plugin.js +57 -46
- package/chunks/plugin.js.map +1 -1
- package/contexts/Devices/Device.d.ts +3 -3
- package/contexts/Devices/hooks/useQueries.d.ts +2 -2
- package/contexts/Devices/reducers/reducer.d.ts +2 -2
- package/contexts/TridentUIConfig.d.ts +1 -1
- package/contexts/TridentUIConfig.js +1265 -653
- package/contexts/TridentUIConfig.js.map +1 -1
- package/helpers/colors/colors.d.ts +108 -0
- package/helpers/colors/colors.js +132 -0
- package/helpers/colors/colors.js.map +1 -0
- package/hooks/useKeyboardControls.d.ts +1 -1
- package/hooks/useResizeObserver.d.ts +2 -0
- package/hooks/useResizeObserver.js +84 -0
- package/hooks/useResizeObserver.js.map +1 -0
- package/hooks/useSafeBoop.d.ts +2 -2
- package/molecules/Arrows/Arrows.d.ts +2 -2
- package/molecules/Avatar.d.ts +1 -1
- package/molecules/Avatar.js +24 -24
- package/molecules/Avatar.js.map +1 -1
- package/molecules/Backdrop.d.ts +1 -1
- package/molecules/Breadcrumb.d.ts +7 -11
- package/molecules/Breadcrumb.js +44 -36
- package/molecules/Breadcrumb.js.map +1 -1
- package/molecules/Breadcrumb.themes.d.ts +8 -0
- package/molecules/Breadcrumb.themes.js +15 -0
- package/molecules/Breadcrumb.themes.js.map +1 -0
- package/molecules/Buttons/ArrowButton.d.ts +1 -1
- package/molecules/Buttons/Button.d.ts +3 -3
- package/molecules/Buttons/ButtonAnchor.d.ts +2 -2
- package/molecules/Buttons/ButtonContent.d.ts +2 -2
- package/molecules/Buttons/FakeButton.d.ts +2 -3
- package/molecules/Buttons/InertButton.d.ts +2 -2
- package/molecules/Buttons/v2/Button.d.ts +2096 -2097
- package/molecules/Buttons/v2/Button.type.d.ts +5 -2
- package/molecules/Buttons/v2/Button.type.js +8 -5
- package/molecules/Buttons/v2/Button.type.js.map +1 -1
- package/molecules/Card.d.ts +1 -11
- package/molecules/Card.js +2 -34
- package/molecules/Card.js.map +1 -1
- package/molecules/Cards/Card.d.ts +13 -0
- package/molecules/Cards/Card.js +22 -0
- package/molecules/Cards/Card.js.map +1 -0
- package/molecules/Cards/CardAspectRatios.d.ts +6 -0
- package/molecules/Cards/CardAspectRatios.js +10 -0
- package/molecules/Cards/CardAspectRatios.js.map +1 -0
- package/molecules/Cards/CardBackground.d.ts +4 -0
- package/molecules/Cards/CardBackground.js +30 -0
- package/molecules/Cards/CardBackground.js.map +1 -0
- package/molecules/Cards/CardBackgroundContext.d.ts +6 -0
- package/molecules/Cards/CardBackgroundContext.js +10 -0
- package/molecules/Cards/CardBackgroundContext.js.map +1 -0
- package/molecules/Cards/CardClickable.d.ts +6 -0
- package/molecules/Cards/CardClickable.js +37 -0
- package/molecules/Cards/CardClickable.js.map +1 -0
- package/molecules/Cards/ExpandableCard.d.ts +14 -0
- package/molecules/Cards/ExpandableCard.js +80 -0
- package/molecules/Cards/ExpandableCard.js.map +1 -0
- package/molecules/Cards/v2/Card.d.ts +15 -0
- package/molecules/Cards/v2/Card.js +34 -0
- package/molecules/Cards/v2/Card.js.map +1 -0
- package/molecules/Chip.d.ts +9 -0
- package/molecules/Chip.js +31 -0
- package/molecules/Chip.js.map +1 -0
- package/molecules/Chip.themes.d.ts +12 -0
- package/molecules/Chip.themes.js +24 -0
- package/molecules/Chip.themes.js.map +1 -0
- package/molecules/ElasticHeight.d.ts +6 -27
- package/molecules/ElasticHeight.js +27 -33
- package/molecules/ElasticHeight.js.map +1 -1
- package/molecules/Forms/Checkboxes/Checkbox.d.ts +1 -1
- package/molecules/Forms/Checkboxes/Checkbox.js +43 -43
- package/molecules/Forms/Checkboxes/Checkbox.js.map +1 -1
- package/molecules/Forms/Checkboxes/Checkboxes.d.ts +2 -2
- package/molecules/Forms/DateField.d.ts +2 -2
- package/molecules/Forms/DateField.js +60 -61
- package/molecules/Forms/DateField.js.map +1 -1
- package/molecules/Forms/Filter.d.ts +1 -2
- package/molecules/Forms/Filter.js +29 -29
- package/molecules/Forms/Filter.js.map +1 -1
- package/molecules/Forms/FormControl.d.ts +4 -4
- package/molecules/Forms/FormLabel.d.ts +1 -1
- package/molecules/Forms/NumberField.d.ts +280 -280
- package/molecules/Forms/Password/Password.d.ts +1 -1
- package/molecules/Forms/Password/ValidationMessage.d.ts +1 -1
- package/molecules/Forms/Radios/Radio.d.ts +4 -2
- package/molecules/Forms/Radios/Radio.js +29 -28
- package/molecules/Forms/Radios/Radio.js.map +1 -1
- package/molecules/Forms/Radios/RadioGroup.d.ts +2 -2
- package/molecules/Forms/Radios/RadioGroup.js +70 -33
- package/molecules/Forms/Radios/RadioGroup.js.map +1 -1
- package/molecules/Forms/Range.d.ts +1 -2
- package/molecules/Forms/Range.js +144 -421
- package/molecules/Forms/Range.js.map +1 -1
- package/molecules/Forms/Select.d.ts +3 -3
- package/molecules/Forms/Switch.d.ts +1 -1
- package/molecules/Forms/TextField.d.ts +3 -3
- package/molecules/HamburgerIcon.d.ts +1 -1
- package/molecules/Link.d.ts +2 -2
- package/molecules/Loader.d.ts +1 -1
- package/molecules/Pagination.d.ts +2 -2
- package/molecules/Popin.d.ts +1 -1
- package/molecules/Spinner.d.ts +1 -1
- package/molecules/Tabs/Tab.d.ts +2 -3
- package/molecules/Tabs/Tab.js +41 -42
- package/molecules/Tabs/Tab.js.map +1 -1
- package/molecules/Tabs/TabList.d.ts +1 -1
- package/molecules/Tabs/TabList.js +21 -21
- package/molecules/Tabs/TabList.js.map +1 -1
- package/molecules/Tabs/TabPanel.d.ts +1 -1
- package/molecules/Tabs/TabPanel.js +13 -13
- package/molecules/Tabs/TabPanel.js.map +1 -1
- package/molecules/Tabs/Tabs.d.ts +1 -1
- package/molecules/Tabs/TabsBody.d.ts +1 -1
- package/molecules/Tabs/context/TabControl.d.ts +2 -2
- package/molecules/Tabs/hooks/tabControl.d.ts +5 -5
- package/molecules/Tag.d.ts +43 -0
- package/molecules/Tag.js +73 -0
- package/molecules/Tag.js.map +1 -0
- package/package.json +48 -45
- package/styles/index.css +1 -1
- package/tailwind/plugins/animationDelay.d.ts +2 -2
- package/tailwind/plugins/hocus.d.ts +2 -2
- package/tailwind/plugins/lineClampFix.d.ts +2 -2
- package/tailwind/plugins/popover.d.ts +2 -2
- package/tailwind/plugins/startingStyle.d.ts +2 -2
- package/tailwind/plugins/transitionBehavior.d.ts +2 -2
- package/tailwind/tailwind.preset.d.ts +50 -50
- package/types/LiteralUnion.d.js +2 -0
- package/types/LiteralUnion.d.js.map +1 -0
- package/types/Theme.d.js +2 -0
- package/types/Theme.d.js.map +1 -0
- package/assets/icons/ResortFill/KIPC_Fill.svg +0 -12
- package/assets/icons/ResortOutline/KIPC_Outline.svg +0 -7
package/atoms/Icons/Iconics.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconProps as IP, IconResolverProps as IRP, IconsContext as IC, IconsProvider as IPR, IconsRegistryValue as IRV, IconTypesRegistry as IT, loadIcons as L, resolverIconsFactory as R } from '@clubmed/trident-icons';
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated use resolverIconsFactory from '@clubmed/trident-icons'.
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconsContext as IC,
|
|
1
|
+
import { IconsContext as IC, IconProps as IP, IconResolverProps as IRP, IconsRegistryValue as IRV, IconsProvider as IPV, loadIcons as L, IconTypesRegistry as IT } from '@clubmed/trident-icons/contexts/IconsContext';
|
|
2
2
|
export declare const IconsContext: typeof IC;
|
|
3
3
|
export type IconProps = IP;
|
|
4
4
|
export type IconResolverProps = IRP;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvgIcon as S,
|
|
1
|
+
import { SvgIcon as S, SvgIconProps as Props } from '@clubmed/trident-icons/svg/SvgIcon';
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated use SvgIconProps from '@clubmed/trident-icons/svg/SvgIcon'.
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvgUseIconProps as Props, SvgUseIcon as S } from '@clubmed/trident-icons/svg-use/SvgUseIcon';
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated use SvgUseIconProps from '@clubmed/trident-icons/svg-use/SvgUseIcon'.
|
|
4
4
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, FunctionComponent, SourceHTMLAttributes } from 'react';
|
|
2
|
+
export interface ImageProps extends ComponentPropsWithoutRef<'img'> {
|
|
3
|
+
lazyLoad?: boolean;
|
|
4
|
+
src: string;
|
|
5
|
+
sources?: SourceHTMLAttributes<HTMLSourceElement>[];
|
|
6
|
+
}
|
|
7
|
+
export declare const Image: FunctionComponent<ImageProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
const u = ({
|
|
3
|
+
alt: g = "",
|
|
4
|
+
lazyLoad: e = !0,
|
|
5
|
+
sizes: o,
|
|
6
|
+
sources: n,
|
|
7
|
+
...a
|
|
8
|
+
}) => {
|
|
9
|
+
const r = /* @__PURE__ */ t("img", { ...a, alt: g, decoding: e ? "async" : "auto", draggable: "false", loading: e ? "lazy" : "eager" });
|
|
10
|
+
return n?.length ? /* @__PURE__ */ s("picture", { children: [
|
|
11
|
+
n.map((c, i) => /* @__PURE__ */ t("source", { sizes: o, ...c }, i)),
|
|
12
|
+
r
|
|
13
|
+
] }) : r;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
u as Image
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=Image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.js","sources":["../../../lib/atoms/Image/Image.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, FunctionComponent, SourceHTMLAttributes } from 'react';\n\nexport interface ImageProps extends ComponentPropsWithoutRef<'img'> {\n lazyLoad?: boolean;\n src: string;\n sources?: SourceHTMLAttributes<HTMLSourceElement>[];\n}\n\nexport const Image: FunctionComponent<ImageProps> = ({\n alt = '',\n lazyLoad = true,\n sizes,\n sources,\n ...attrs\n}) => {\n const loading = lazyLoad ? 'lazy' : 'eager';\n const decoding = lazyLoad ? 'async' : 'auto';\n const Img = <img {...attrs} alt={alt} decoding={decoding} draggable=\"false\" loading={loading} />;\n\n if (!sources?.length) {\n return Img;\n }\n\n return (\n <picture>\n {sources.map((source, index) => (\n <source key={index} sizes={sizes} {...source} />\n ))}\n {Img}\n </picture>\n );\n};\n"],"names":["Image","alt","lazyLoad","sizes","sources","attrs","Img","source","index","jsx"],"mappings":";AAQO,MAAMA,IAAuC,CAAC;AAAA,EACnD,KAAAC,IAAM;AAAA,EACN,UAAAC,IAAW;AAAA,EACX,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AAGJ,QAAMC,sBAAO,OAAA,EAAK,GAAGD,GAAO,KAAAJ,GAAU,UADrBC,IAAW,UAAU,QACoB,WAAU,SAAQ,SAF5DA,IAAW,SAAS,QAEwC,CAAkB;AAE9F,SAAKE,GAAS,2BAKX,WAAA,EACE,UAAA;AAAA,IAAAA,EAAQ,IAAI,CAACG,GAAQC,MACpB,gBAAAC,EAAC,YAAmB,OAAAN,GAAe,GAAGI,EAAA,GAAzBC,CAAiC,CAC/C;AAAA,IACAF;AAAA,EAAA,GACH,IATOA;AAWX;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface ProseProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const Prose: import('react').ForwardRefExoticComponent<ProseProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../../chunks/index.js";
|
|
3
|
+
import { forwardRef as t } from "react";
|
|
4
|
+
const c = t(function({ className: o, text: r, ...s }, e) {
|
|
5
|
+
return r ? /* @__PURE__ */ n(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
...s,
|
|
9
|
+
className: m(o, "prose"),
|
|
10
|
+
dangerouslySetInnerHTML: { __html: r },
|
|
11
|
+
ref: e
|
|
12
|
+
}
|
|
13
|
+
) : null;
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
c as Prose
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=Prose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Prose.js","sources":["../../../lib/atoms/Prose/Prose.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { type ComponentPropsWithoutRef, forwardRef } from 'react';\n\nexport interface ProseProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {\n text: string;\n}\n\nexport const Prose = forwardRef<HTMLDivElement, ProseProps>(function Prose(\n { className, text, ...attrs },\n ref,\n) {\n if (!text) {\n return null;\n }\n\n return (\n <div\n {...attrs}\n className={classnames(className, 'prose')}\n dangerouslySetInnerHTML={{ __html: text }}\n ref={ref}\n />\n );\n});\n"],"names":["Prose","forwardRef","className","text","attrs","ref","jsx","classnames"],"mappings":";;;AAOO,MAAMA,IAAQC,EAAuC,SAC1D,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAA,GACtBC,GACA;AACA,SAAKF,IAKH,gBAAAG;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGF;AAAA,MACJ,WAAWG,EAAWL,GAAW,OAAO;AAAA,MACxC,yBAAyB,EAAE,QAAQC,EAAA;AAAA,MACnC,KAAAE;AAAA,IAAA;AAAA,EAAA,IARK;AAWX,CAAC;"}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
var c = [], ne = function() {
|
|
2
|
+
return c.some(function(e) {
|
|
3
|
+
return e.activeTargets.length > 0;
|
|
4
|
+
});
|
|
5
|
+
}, oe = function() {
|
|
6
|
+
return c.some(function(e) {
|
|
7
|
+
return e.skippedTargets.length > 0;
|
|
8
|
+
});
|
|
9
|
+
}, P = "ResizeObserver loop completed with undelivered notifications.", se = function() {
|
|
10
|
+
var e;
|
|
11
|
+
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
12
|
+
message: P
|
|
13
|
+
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = P), window.dispatchEvent(e);
|
|
14
|
+
}, b;
|
|
15
|
+
(function(e) {
|
|
16
|
+
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
17
|
+
})(b || (b = {}));
|
|
18
|
+
var u = function(e) {
|
|
19
|
+
return Object.freeze(e);
|
|
20
|
+
}, ae = /* @__PURE__ */ function() {
|
|
21
|
+
function e(t, r) {
|
|
22
|
+
this.inlineSize = t, this.blockSize = r, u(this);
|
|
23
|
+
}
|
|
24
|
+
return e;
|
|
25
|
+
}(), q = function() {
|
|
26
|
+
function e(t, r, i, n) {
|
|
27
|
+
return this.x = t, this.y = r, this.width = i, this.height = n, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, u(this);
|
|
28
|
+
}
|
|
29
|
+
return e.prototype.toJSON = function() {
|
|
30
|
+
var t = this, r = t.x, i = t.y, n = t.top, s = t.right, o = t.bottom, h = t.left, d = t.width, v = t.height;
|
|
31
|
+
return { x: r, y: i, top: n, right: s, bottom: o, left: h, width: d, height: v };
|
|
32
|
+
}, e.fromRect = function(t) {
|
|
33
|
+
return new e(t.x, t.y, t.width, t.height);
|
|
34
|
+
}, e;
|
|
35
|
+
}(), C = function(e) {
|
|
36
|
+
return e instanceof SVGElement && "getBBox" in e;
|
|
37
|
+
}, G = function(e) {
|
|
38
|
+
if (C(e)) {
|
|
39
|
+
var t = e.getBBox(), r = t.width, i = t.height;
|
|
40
|
+
return !r && !i;
|
|
41
|
+
}
|
|
42
|
+
var n = e, s = n.offsetWidth, o = n.offsetHeight;
|
|
43
|
+
return !(s || o || e.getClientRects().length);
|
|
44
|
+
}, I = function(e) {
|
|
45
|
+
var t;
|
|
46
|
+
if (e instanceof Element)
|
|
47
|
+
return !0;
|
|
48
|
+
var r = (t = e?.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
|
|
49
|
+
return !!(r && e instanceof r.Element);
|
|
50
|
+
}, ve = function(e) {
|
|
51
|
+
switch (e.tagName) {
|
|
52
|
+
case "INPUT":
|
|
53
|
+
if (e.type !== "image")
|
|
54
|
+
break;
|
|
55
|
+
case "VIDEO":
|
|
56
|
+
case "AUDIO":
|
|
57
|
+
case "EMBED":
|
|
58
|
+
case "OBJECT":
|
|
59
|
+
case "CANVAS":
|
|
60
|
+
case "IFRAME":
|
|
61
|
+
case "IMG":
|
|
62
|
+
return !0;
|
|
63
|
+
}
|
|
64
|
+
return !1;
|
|
65
|
+
}, p = typeof window < "u" ? window : {}, z = /* @__PURE__ */ new WeakMap(), _ = /auto|scroll/, ce = /^tb|vertical/, ue = /msie|trident/i.test(p.navigator && p.navigator.userAgent), a = function(e) {
|
|
66
|
+
return parseFloat(e || "0");
|
|
67
|
+
}, f = function(e, t, r) {
|
|
68
|
+
return e === void 0 && (e = 0), t === void 0 && (t = 0), r === void 0 && (r = !1), new ae((r ? t : e) || 0, (r ? e : t) || 0);
|
|
69
|
+
}, W = u({
|
|
70
|
+
devicePixelContentBoxSize: f(),
|
|
71
|
+
borderBoxSize: f(),
|
|
72
|
+
contentBoxSize: f(),
|
|
73
|
+
contentRect: new q(0, 0, 0, 0)
|
|
74
|
+
}), J = function(e, t) {
|
|
75
|
+
if (t === void 0 && (t = !1), z.has(e) && !t)
|
|
76
|
+
return z.get(e);
|
|
77
|
+
if (G(e))
|
|
78
|
+
return z.set(e, W), W;
|
|
79
|
+
var r = getComputedStyle(e), i = C(e) && e.ownerSVGElement && e.getBBox(), n = !ue && r.boxSizing === "border-box", s = ce.test(r.writingMode || ""), o = !i && _.test(r.overflowY || ""), h = !i && _.test(r.overflowX || ""), d = i ? 0 : a(r.paddingTop), v = i ? 0 : a(r.paddingRight), R = i ? 0 : a(r.paddingBottom), l = i ? 0 : a(r.paddingLeft), Q = i ? 0 : a(r.borderTopWidth), Z = i ? 0 : a(r.borderRightWidth), $ = i ? 0 : a(r.borderBottomWidth), j = i ? 0 : a(r.borderLeftWidth), D = l + v, k = d + R, y = j + Z, T = Q + $, N = h ? e.offsetHeight - T - e.clientHeight : 0, A = o ? e.offsetWidth - y - e.clientWidth : 0, ee = n ? D + y : 0, te = n ? k + T : 0, g = i ? i.width : a(r.width) - ee - A, x = i ? i.height : a(r.height) - te - N, re = g + D + A + y, ie = x + k + N + T, M = u({
|
|
80
|
+
devicePixelContentBoxSize: f(Math.round(g * devicePixelRatio), Math.round(x * devicePixelRatio), s),
|
|
81
|
+
borderBoxSize: f(re, ie, s),
|
|
82
|
+
contentBoxSize: f(g, x, s),
|
|
83
|
+
contentRect: new q(l, d, g, x)
|
|
84
|
+
});
|
|
85
|
+
return z.set(e, M), M;
|
|
86
|
+
}, U = function(e, t, r) {
|
|
87
|
+
var i = J(e, r), n = i.borderBoxSize, s = i.contentBoxSize, o = i.devicePixelContentBoxSize;
|
|
88
|
+
switch (t) {
|
|
89
|
+
case b.DEVICE_PIXEL_CONTENT_BOX:
|
|
90
|
+
return o;
|
|
91
|
+
case b.BORDER_BOX:
|
|
92
|
+
return n;
|
|
93
|
+
default:
|
|
94
|
+
return s;
|
|
95
|
+
}
|
|
96
|
+
}, he = /* @__PURE__ */ function() {
|
|
97
|
+
function e(t) {
|
|
98
|
+
var r = J(t);
|
|
99
|
+
this.target = t, this.contentRect = r.contentRect, this.borderBoxSize = u([r.borderBoxSize]), this.contentBoxSize = u([r.contentBoxSize]), this.devicePixelContentBoxSize = u([r.devicePixelContentBoxSize]);
|
|
100
|
+
}
|
|
101
|
+
return e;
|
|
102
|
+
}(), Y = function(e) {
|
|
103
|
+
if (G(e))
|
|
104
|
+
return 1 / 0;
|
|
105
|
+
for (var t = 0, r = e.parentNode; r; )
|
|
106
|
+
t += 1, r = r.parentNode;
|
|
107
|
+
return t;
|
|
108
|
+
}, de = function() {
|
|
109
|
+
var e = 1 / 0, t = [];
|
|
110
|
+
c.forEach(function(o) {
|
|
111
|
+
if (o.activeTargets.length !== 0) {
|
|
112
|
+
var h = [];
|
|
113
|
+
o.activeTargets.forEach(function(v) {
|
|
114
|
+
var R = new he(v.target), l = Y(v.target);
|
|
115
|
+
h.push(R), v.lastReportedSize = U(v.target, v.observedBox), l < e && (e = l);
|
|
116
|
+
}), t.push(function() {
|
|
117
|
+
o.callback.call(o.observer, h, o.observer);
|
|
118
|
+
}), o.activeTargets.splice(0, o.activeTargets.length);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
for (var r = 0, i = t; r < i.length; r++) {
|
|
122
|
+
var n = i[r];
|
|
123
|
+
n();
|
|
124
|
+
}
|
|
125
|
+
return e;
|
|
126
|
+
}, L = function(e) {
|
|
127
|
+
c.forEach(function(r) {
|
|
128
|
+
r.activeTargets.splice(0, r.activeTargets.length), r.skippedTargets.splice(0, r.skippedTargets.length), r.observationTargets.forEach(function(n) {
|
|
129
|
+
n.isActive() && (Y(n.target) > e ? r.activeTargets.push(n) : r.skippedTargets.push(n));
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
}, fe = function() {
|
|
133
|
+
var e = 0;
|
|
134
|
+
for (L(e); ne(); )
|
|
135
|
+
e = de(), L(e);
|
|
136
|
+
return oe() && se(), e > 0;
|
|
137
|
+
}, m, K = [], le = function() {
|
|
138
|
+
return K.splice(0).forEach(function(e) {
|
|
139
|
+
return e();
|
|
140
|
+
});
|
|
141
|
+
}, pe = function(e) {
|
|
142
|
+
if (!m) {
|
|
143
|
+
var t = 0, r = document.createTextNode(""), i = { characterData: !0 };
|
|
144
|
+
new MutationObserver(function() {
|
|
145
|
+
return le();
|
|
146
|
+
}).observe(r, i), m = function() {
|
|
147
|
+
r.textContent = "".concat(t ? t-- : t++);
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
K.push(e), m();
|
|
151
|
+
}, be = function(e) {
|
|
152
|
+
pe(function() {
|
|
153
|
+
requestAnimationFrame(e);
|
|
154
|
+
});
|
|
155
|
+
}, w = 0, ge = function() {
|
|
156
|
+
return !!w;
|
|
157
|
+
}, xe = 250, ze = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, F = [
|
|
158
|
+
"resize",
|
|
159
|
+
"load",
|
|
160
|
+
"transitionend",
|
|
161
|
+
"animationend",
|
|
162
|
+
"animationstart",
|
|
163
|
+
"animationiteration",
|
|
164
|
+
"keyup",
|
|
165
|
+
"keydown",
|
|
166
|
+
"mouseup",
|
|
167
|
+
"mousedown",
|
|
168
|
+
"mouseover",
|
|
169
|
+
"mouseout",
|
|
170
|
+
"blur",
|
|
171
|
+
"focus"
|
|
172
|
+
], H = function(e) {
|
|
173
|
+
return e === void 0 && (e = 0), Date.now() + e;
|
|
174
|
+
}, B = !1, Ee = function() {
|
|
175
|
+
function e() {
|
|
176
|
+
var t = this;
|
|
177
|
+
this.stopped = !0, this.listener = function() {
|
|
178
|
+
return t.schedule();
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
return e.prototype.run = function(t) {
|
|
182
|
+
var r = this;
|
|
183
|
+
if (t === void 0 && (t = xe), !B) {
|
|
184
|
+
B = !0;
|
|
185
|
+
var i = H(t);
|
|
186
|
+
be(function() {
|
|
187
|
+
var n = !1;
|
|
188
|
+
try {
|
|
189
|
+
n = fe();
|
|
190
|
+
} finally {
|
|
191
|
+
if (B = !1, t = i - H(), !ge())
|
|
192
|
+
return;
|
|
193
|
+
n ? r.run(1e3) : t > 0 ? r.run(t) : r.start();
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}, e.prototype.schedule = function() {
|
|
198
|
+
this.stop(), this.run();
|
|
199
|
+
}, e.prototype.observe = function() {
|
|
200
|
+
var t = this, r = function() {
|
|
201
|
+
return t.observer && t.observer.observe(document.body, ze);
|
|
202
|
+
};
|
|
203
|
+
document.body ? r() : p.addEventListener("DOMContentLoaded", r);
|
|
204
|
+
}, e.prototype.start = function() {
|
|
205
|
+
var t = this;
|
|
206
|
+
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), F.forEach(function(r) {
|
|
207
|
+
return p.addEventListener(r, t.listener, !0);
|
|
208
|
+
}));
|
|
209
|
+
}, e.prototype.stop = function() {
|
|
210
|
+
var t = this;
|
|
211
|
+
this.stopped || (this.observer && this.observer.disconnect(), F.forEach(function(r) {
|
|
212
|
+
return p.removeEventListener(r, t.listener, !0);
|
|
213
|
+
}), this.stopped = !0);
|
|
214
|
+
}, e;
|
|
215
|
+
}(), S = new Ee(), V = function(e) {
|
|
216
|
+
!w && e > 0 && S.start(), w += e, !w && S.stop();
|
|
217
|
+
}, Oe = function(e) {
|
|
218
|
+
return !C(e) && !ve(e) && getComputedStyle(e).display === "inline";
|
|
219
|
+
}, we = function() {
|
|
220
|
+
function e(t, r) {
|
|
221
|
+
this.target = t, this.observedBox = r || b.CONTENT_BOX, this.lastReportedSize = {
|
|
222
|
+
inlineSize: 0,
|
|
223
|
+
blockSize: 0
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
return e.prototype.isActive = function() {
|
|
227
|
+
var t = U(this.target, this.observedBox, !0);
|
|
228
|
+
return Oe(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
|
|
229
|
+
}, e;
|
|
230
|
+
}(), Re = /* @__PURE__ */ function() {
|
|
231
|
+
function e(t, r) {
|
|
232
|
+
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = r;
|
|
233
|
+
}
|
|
234
|
+
return e;
|
|
235
|
+
}(), E = /* @__PURE__ */ new WeakMap(), X = function(e, t) {
|
|
236
|
+
for (var r = 0; r < e.length; r += 1)
|
|
237
|
+
if (e[r].target === t)
|
|
238
|
+
return r;
|
|
239
|
+
return -1;
|
|
240
|
+
}, O = function() {
|
|
241
|
+
function e() {
|
|
242
|
+
}
|
|
243
|
+
return e.connect = function(t, r) {
|
|
244
|
+
var i = new Re(t, r);
|
|
245
|
+
E.set(t, i);
|
|
246
|
+
}, e.observe = function(t, r, i) {
|
|
247
|
+
var n = E.get(t), s = n.observationTargets.length === 0;
|
|
248
|
+
X(n.observationTargets, r) < 0 && (s && c.push(n), n.observationTargets.push(new we(r, i && i.box)), V(1), S.schedule());
|
|
249
|
+
}, e.unobserve = function(t, r) {
|
|
250
|
+
var i = E.get(t), n = X(i.observationTargets, r), s = i.observationTargets.length === 1;
|
|
251
|
+
n >= 0 && (s && c.splice(c.indexOf(i), 1), i.observationTargets.splice(n, 1), V(-1));
|
|
252
|
+
}, e.disconnect = function(t) {
|
|
253
|
+
var r = this, i = E.get(t);
|
|
254
|
+
i.observationTargets.slice().forEach(function(n) {
|
|
255
|
+
return r.unobserve(t, n.target);
|
|
256
|
+
}), i.activeTargets.splice(0, i.activeTargets.length);
|
|
257
|
+
}, e;
|
|
258
|
+
}(), ye = function() {
|
|
259
|
+
function e(t) {
|
|
260
|
+
if (arguments.length === 0)
|
|
261
|
+
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
262
|
+
if (typeof t != "function")
|
|
263
|
+
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
264
|
+
O.connect(this, t);
|
|
265
|
+
}
|
|
266
|
+
return e.prototype.observe = function(t, r) {
|
|
267
|
+
if (arguments.length === 0)
|
|
268
|
+
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
269
|
+
if (!I(t))
|
|
270
|
+
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
271
|
+
O.observe(this, t, r);
|
|
272
|
+
}, e.prototype.unobserve = function(t) {
|
|
273
|
+
if (arguments.length === 0)
|
|
274
|
+
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
275
|
+
if (!I(t))
|
|
276
|
+
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
277
|
+
O.unobserve(this, t);
|
|
278
|
+
}, e.prototype.disconnect = function() {
|
|
279
|
+
O.disconnect(this);
|
|
280
|
+
}, e.toString = function() {
|
|
281
|
+
return "function ResizeObserver () { [polyfill code] }";
|
|
282
|
+
}, e;
|
|
283
|
+
}();
|
|
284
|
+
export {
|
|
285
|
+
ye as R
|
|
286
|
+
};
|
|
287
|
+
//# sourceMappingURL=ResizeObserver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizeObserver.js","sources":["../../node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js","../../node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js","../../node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js","../../node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js","../../node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js","../../node_modules/@juggle/resize-observer/lib/utils/freeze.js","../../node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js","../../node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js","../../node_modules/@juggle/resize-observer/lib/utils/element.js","../../node_modules/@juggle/resize-observer/lib/utils/global.js","../../node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js","../../node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js","../../node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js","../../node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js","../../node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js","../../node_modules/@juggle/resize-observer/lib/utils/process.js","../../node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js","../../node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js","../../node_modules/@juggle/resize-observer/lib/utils/scheduler.js","../../node_modules/@juggle/resize-observer/lib/ResizeObservation.js","../../node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js","../../node_modules/@juggle/resize-observer/lib/ResizeObserverController.js","../../node_modules/@juggle/resize-observer/lib/ResizeObserver.js"],"sourcesContent":["var resizeObservers = [];\nexport { resizeObservers };\n","import { resizeObservers } from '../utils/resizeObservers';\nvar hasActiveObservations = function () {\n return resizeObservers.some(function (ro) { return ro.activeTargets.length > 0; });\n};\nexport { hasActiveObservations };\n","import { resizeObservers } from '../utils/resizeObservers';\nvar hasSkippedObservations = function () {\n return resizeObservers.some(function (ro) { return ro.skippedTargets.length > 0; });\n};\nexport { hasSkippedObservations };\n","var msg = 'ResizeObserver loop completed with undelivered notifications.';\nvar deliverResizeLoopError = function () {\n var event;\n if (typeof ErrorEvent === 'function') {\n event = new ErrorEvent('error', {\n message: msg\n });\n }\n else {\n event = document.createEvent('Event');\n event.initEvent('error', false, false);\n event.message = msg;\n }\n window.dispatchEvent(event);\n};\nexport { deliverResizeLoopError };\n","var ResizeObserverBoxOptions;\n(function (ResizeObserverBoxOptions) {\n ResizeObserverBoxOptions[\"BORDER_BOX\"] = \"border-box\";\n ResizeObserverBoxOptions[\"CONTENT_BOX\"] = \"content-box\";\n ResizeObserverBoxOptions[\"DEVICE_PIXEL_CONTENT_BOX\"] = \"device-pixel-content-box\";\n})(ResizeObserverBoxOptions || (ResizeObserverBoxOptions = {}));\nexport { ResizeObserverBoxOptions };\n","export var freeze = function (obj) { return Object.freeze(obj); };\n","import { freeze } from './utils/freeze';\nvar ResizeObserverSize = (function () {\n function ResizeObserverSize(inlineSize, blockSize) {\n this.inlineSize = inlineSize;\n this.blockSize = blockSize;\n freeze(this);\n }\n return ResizeObserverSize;\n}());\nexport { ResizeObserverSize };\n","import { freeze } from './utils/freeze';\nvar DOMRectReadOnly = (function () {\n function DOMRectReadOnly(x, y, width, height) {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n this.top = this.y;\n this.left = this.x;\n this.bottom = this.top + this.height;\n this.right = this.left + this.width;\n return freeze(this);\n }\n DOMRectReadOnly.prototype.toJSON = function () {\n var _a = this, x = _a.x, y = _a.y, top = _a.top, right = _a.right, bottom = _a.bottom, left = _a.left, width = _a.width, height = _a.height;\n return { x: x, y: y, top: top, right: right, bottom: bottom, left: left, width: width, height: height };\n };\n DOMRectReadOnly.fromRect = function (rectangle) {\n return new DOMRectReadOnly(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n };\n return DOMRectReadOnly;\n}());\nexport { DOMRectReadOnly };\n","var isSVG = function (target) { return target instanceof SVGElement && 'getBBox' in target; };\nvar isHidden = function (target) {\n if (isSVG(target)) {\n var _a = target.getBBox(), width = _a.width, height = _a.height;\n return !width && !height;\n }\n var _b = target, offsetWidth = _b.offsetWidth, offsetHeight = _b.offsetHeight;\n return !(offsetWidth || offsetHeight || target.getClientRects().length);\n};\nvar isElement = function (obj) {\n var _a;\n if (obj instanceof Element) {\n return true;\n }\n var scope = (_a = obj === null || obj === void 0 ? void 0 : obj.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView;\n return !!(scope && obj instanceof scope.Element);\n};\nvar isReplacedElement = function (target) {\n switch (target.tagName) {\n case 'INPUT':\n if (target.type !== 'image') {\n break;\n }\n case 'VIDEO':\n case 'AUDIO':\n case 'EMBED':\n case 'OBJECT':\n case 'CANVAS':\n case 'IFRAME':\n case 'IMG':\n return true;\n }\n return false;\n};\nexport { isSVG, isHidden, isElement, isReplacedElement };\n","export var global = typeof window !== 'undefined' ? window : {};\n","import { ResizeObserverBoxOptions } from '../ResizeObserverBoxOptions';\nimport { ResizeObserverSize } from '../ResizeObserverSize';\nimport { DOMRectReadOnly } from '../DOMRectReadOnly';\nimport { isSVG, isHidden } from '../utils/element';\nimport { freeze } from '../utils/freeze';\nimport { global } from '../utils/global';\nvar cache = new WeakMap();\nvar scrollRegexp = /auto|scroll/;\nvar verticalRegexp = /^tb|vertical/;\nvar IE = (/msie|trident/i).test(global.navigator && global.navigator.userAgent);\nvar parseDimension = function (pixel) { return parseFloat(pixel || '0'); };\nvar size = function (inlineSize, blockSize, switchSizes) {\n if (inlineSize === void 0) { inlineSize = 0; }\n if (blockSize === void 0) { blockSize = 0; }\n if (switchSizes === void 0) { switchSizes = false; }\n return new ResizeObserverSize((switchSizes ? blockSize : inlineSize) || 0, (switchSizes ? inlineSize : blockSize) || 0);\n};\nvar zeroBoxes = freeze({\n devicePixelContentBoxSize: size(),\n borderBoxSize: size(),\n contentBoxSize: size(),\n contentRect: new DOMRectReadOnly(0, 0, 0, 0)\n});\nvar calculateBoxSizes = function (target, forceRecalculation) {\n if (forceRecalculation === void 0) { forceRecalculation = false; }\n if (cache.has(target) && !forceRecalculation) {\n return cache.get(target);\n }\n if (isHidden(target)) {\n cache.set(target, zeroBoxes);\n return zeroBoxes;\n }\n var cs = getComputedStyle(target);\n var svg = isSVG(target) && target.ownerSVGElement && target.getBBox();\n var removePadding = !IE && cs.boxSizing === 'border-box';\n var switchSizes = verticalRegexp.test(cs.writingMode || '');\n var canScrollVertically = !svg && scrollRegexp.test(cs.overflowY || '');\n var canScrollHorizontally = !svg && scrollRegexp.test(cs.overflowX || '');\n var paddingTop = svg ? 0 : parseDimension(cs.paddingTop);\n var paddingRight = svg ? 0 : parseDimension(cs.paddingRight);\n var paddingBottom = svg ? 0 : parseDimension(cs.paddingBottom);\n var paddingLeft = svg ? 0 : parseDimension(cs.paddingLeft);\n var borderTop = svg ? 0 : parseDimension(cs.borderTopWidth);\n var borderRight = svg ? 0 : parseDimension(cs.borderRightWidth);\n var borderBottom = svg ? 0 : parseDimension(cs.borderBottomWidth);\n var borderLeft = svg ? 0 : parseDimension(cs.borderLeftWidth);\n var horizontalPadding = paddingLeft + paddingRight;\n var verticalPadding = paddingTop + paddingBottom;\n var horizontalBorderArea = borderLeft + borderRight;\n var verticalBorderArea = borderTop + borderBottom;\n var horizontalScrollbarThickness = !canScrollHorizontally ? 0 : target.offsetHeight - verticalBorderArea - target.clientHeight;\n var verticalScrollbarThickness = !canScrollVertically ? 0 : target.offsetWidth - horizontalBorderArea - target.clientWidth;\n var widthReduction = removePadding ? horizontalPadding + horizontalBorderArea : 0;\n var heightReduction = removePadding ? verticalPadding + verticalBorderArea : 0;\n var contentWidth = svg ? svg.width : parseDimension(cs.width) - widthReduction - verticalScrollbarThickness;\n var contentHeight = svg ? svg.height : parseDimension(cs.height) - heightReduction - horizontalScrollbarThickness;\n var borderBoxWidth = contentWidth + horizontalPadding + verticalScrollbarThickness + horizontalBorderArea;\n var borderBoxHeight = contentHeight + verticalPadding + horizontalScrollbarThickness + verticalBorderArea;\n var boxes = freeze({\n devicePixelContentBoxSize: size(Math.round(contentWidth * devicePixelRatio), Math.round(contentHeight * devicePixelRatio), switchSizes),\n borderBoxSize: size(borderBoxWidth, borderBoxHeight, switchSizes),\n contentBoxSize: size(contentWidth, contentHeight, switchSizes),\n contentRect: new DOMRectReadOnly(paddingLeft, paddingTop, contentWidth, contentHeight)\n });\n cache.set(target, boxes);\n return boxes;\n};\nvar calculateBoxSize = function (target, observedBox, forceRecalculation) {\n var _a = calculateBoxSizes(target, forceRecalculation), borderBoxSize = _a.borderBoxSize, contentBoxSize = _a.contentBoxSize, devicePixelContentBoxSize = _a.devicePixelContentBoxSize;\n switch (observedBox) {\n case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:\n return devicePixelContentBoxSize;\n case ResizeObserverBoxOptions.BORDER_BOX:\n return borderBoxSize;\n default:\n return contentBoxSize;\n }\n};\nexport { calculateBoxSize, calculateBoxSizes };\n","import { calculateBoxSizes } from './algorithms/calculateBoxSize';\nimport { freeze } from './utils/freeze';\nvar ResizeObserverEntry = (function () {\n function ResizeObserverEntry(target) {\n var boxes = calculateBoxSizes(target);\n this.target = target;\n this.contentRect = boxes.contentRect;\n this.borderBoxSize = freeze([boxes.borderBoxSize]);\n this.contentBoxSize = freeze([boxes.contentBoxSize]);\n this.devicePixelContentBoxSize = freeze([boxes.devicePixelContentBoxSize]);\n }\n return ResizeObserverEntry;\n}());\nexport { ResizeObserverEntry };\n","import { isHidden } from '../utils/element';\nvar calculateDepthForNode = function (node) {\n if (isHidden(node)) {\n return Infinity;\n }\n var depth = 0;\n var parent = node.parentNode;\n while (parent) {\n depth += 1;\n parent = parent.parentNode;\n }\n return depth;\n};\nexport { calculateDepthForNode };\n","import { resizeObservers } from '../utils/resizeObservers';\nimport { ResizeObserverEntry } from '../ResizeObserverEntry';\nimport { calculateDepthForNode } from './calculateDepthForNode';\nimport { calculateBoxSize } from './calculateBoxSize';\nvar broadcastActiveObservations = function () {\n var shallowestDepth = Infinity;\n var callbacks = [];\n resizeObservers.forEach(function processObserver(ro) {\n if (ro.activeTargets.length === 0) {\n return;\n }\n var entries = [];\n ro.activeTargets.forEach(function processTarget(ot) {\n var entry = new ResizeObserverEntry(ot.target);\n var targetDepth = calculateDepthForNode(ot.target);\n entries.push(entry);\n ot.lastReportedSize = calculateBoxSize(ot.target, ot.observedBox);\n if (targetDepth < shallowestDepth) {\n shallowestDepth = targetDepth;\n }\n });\n callbacks.push(function resizeObserverCallback() {\n ro.callback.call(ro.observer, entries, ro.observer);\n });\n ro.activeTargets.splice(0, ro.activeTargets.length);\n });\n for (var _i = 0, callbacks_1 = callbacks; _i < callbacks_1.length; _i++) {\n var callback = callbacks_1[_i];\n callback();\n }\n return shallowestDepth;\n};\nexport { broadcastActiveObservations };\n","import { resizeObservers } from '../utils/resizeObservers';\nimport { calculateDepthForNode } from './calculateDepthForNode';\nvar gatherActiveObservationsAtDepth = function (depth) {\n resizeObservers.forEach(function processObserver(ro) {\n ro.activeTargets.splice(0, ro.activeTargets.length);\n ro.skippedTargets.splice(0, ro.skippedTargets.length);\n ro.observationTargets.forEach(function processTarget(ot) {\n if (ot.isActive()) {\n if (calculateDepthForNode(ot.target) > depth) {\n ro.activeTargets.push(ot);\n }\n else {\n ro.skippedTargets.push(ot);\n }\n }\n });\n });\n};\nexport { gatherActiveObservationsAtDepth };\n","import { hasActiveObservations } from '../algorithms/hasActiveObservations';\nimport { hasSkippedObservations } from '../algorithms/hasSkippedObservations';\nimport { deliverResizeLoopError } from '../algorithms/deliverResizeLoopError';\nimport { broadcastActiveObservations } from '../algorithms/broadcastActiveObservations';\nimport { gatherActiveObservationsAtDepth } from '../algorithms/gatherActiveObservationsAtDepth';\nvar process = function () {\n var depth = 0;\n gatherActiveObservationsAtDepth(depth);\n while (hasActiveObservations()) {\n depth = broadcastActiveObservations();\n gatherActiveObservationsAtDepth(depth);\n }\n if (hasSkippedObservations()) {\n deliverResizeLoopError();\n }\n return depth > 0;\n};\nexport { process };\n","var trigger;\nvar callbacks = [];\nvar notify = function () { return callbacks.splice(0).forEach(function (cb) { return cb(); }); };\nvar queueMicroTask = function (callback) {\n if (!trigger) {\n var toggle_1 = 0;\n var el_1 = document.createTextNode('');\n var config = { characterData: true };\n new MutationObserver(function () { return notify(); }).observe(el_1, config);\n trigger = function () { el_1.textContent = \"\".concat(toggle_1 ? toggle_1-- : toggle_1++); };\n }\n callbacks.push(callback);\n trigger();\n};\nexport { queueMicroTask };\n","import { queueMicroTask } from './queueMicroTask';\nvar queueResizeObserver = function (cb) {\n queueMicroTask(function ResizeObserver() {\n requestAnimationFrame(cb);\n });\n};\nexport { queueResizeObserver };\n","import { process } from './process';\nimport { global } from './global';\nimport { queueResizeObserver } from './queueResizeObserver';\nvar watching = 0;\nvar isWatching = function () { return !!watching; };\nvar CATCH_PERIOD = 250;\nvar observerConfig = { attributes: true, characterData: true, childList: true, subtree: true };\nvar events = [\n 'resize',\n 'load',\n 'transitionend',\n 'animationend',\n 'animationstart',\n 'animationiteration',\n 'keyup',\n 'keydown',\n 'mouseup',\n 'mousedown',\n 'mouseover',\n 'mouseout',\n 'blur',\n 'focus'\n];\nvar time = function (timeout) {\n if (timeout === void 0) { timeout = 0; }\n return Date.now() + timeout;\n};\nvar scheduled = false;\nvar Scheduler = (function () {\n function Scheduler() {\n var _this = this;\n this.stopped = true;\n this.listener = function () { return _this.schedule(); };\n }\n Scheduler.prototype.run = function (timeout) {\n var _this = this;\n if (timeout === void 0) { timeout = CATCH_PERIOD; }\n if (scheduled) {\n return;\n }\n scheduled = true;\n var until = time(timeout);\n queueResizeObserver(function () {\n var elementsHaveResized = false;\n try {\n elementsHaveResized = process();\n }\n finally {\n scheduled = false;\n timeout = until - time();\n if (!isWatching()) {\n return;\n }\n if (elementsHaveResized) {\n _this.run(1000);\n }\n else if (timeout > 0) {\n _this.run(timeout);\n }\n else {\n _this.start();\n }\n }\n });\n };\n Scheduler.prototype.schedule = function () {\n this.stop();\n this.run();\n };\n Scheduler.prototype.observe = function () {\n var _this = this;\n var cb = function () { return _this.observer && _this.observer.observe(document.body, observerConfig); };\n document.body ? cb() : global.addEventListener('DOMContentLoaded', cb);\n };\n Scheduler.prototype.start = function () {\n var _this = this;\n if (this.stopped) {\n this.stopped = false;\n this.observer = new MutationObserver(this.listener);\n this.observe();\n events.forEach(function (name) { return global.addEventListener(name, _this.listener, true); });\n }\n };\n Scheduler.prototype.stop = function () {\n var _this = this;\n if (!this.stopped) {\n this.observer && this.observer.disconnect();\n events.forEach(function (name) { return global.removeEventListener(name, _this.listener, true); });\n this.stopped = true;\n }\n };\n return Scheduler;\n}());\nvar scheduler = new Scheduler();\nvar updateCount = function (n) {\n !watching && n > 0 && scheduler.start();\n watching += n;\n !watching && scheduler.stop();\n};\nexport { scheduler, updateCount };\n","import { ResizeObserverBoxOptions } from './ResizeObserverBoxOptions';\nimport { calculateBoxSize } from './algorithms/calculateBoxSize';\nimport { isSVG, isReplacedElement } from './utils/element';\nvar skipNotifyOnElement = function (target) {\n return !isSVG(target)\n && !isReplacedElement(target)\n && getComputedStyle(target).display === 'inline';\n};\nvar ResizeObservation = (function () {\n function ResizeObservation(target, observedBox) {\n this.target = target;\n this.observedBox = observedBox || ResizeObserverBoxOptions.CONTENT_BOX;\n this.lastReportedSize = {\n inlineSize: 0,\n blockSize: 0\n };\n }\n ResizeObservation.prototype.isActive = function () {\n var size = calculateBoxSize(this.target, this.observedBox, true);\n if (skipNotifyOnElement(this.target)) {\n this.lastReportedSize = size;\n }\n if (this.lastReportedSize.inlineSize !== size.inlineSize\n || this.lastReportedSize.blockSize !== size.blockSize) {\n return true;\n }\n return false;\n };\n return ResizeObservation;\n}());\nexport { ResizeObservation };\n","var ResizeObserverDetail = (function () {\n function ResizeObserverDetail(resizeObserver, callback) {\n this.activeTargets = [];\n this.skippedTargets = [];\n this.observationTargets = [];\n this.observer = resizeObserver;\n this.callback = callback;\n }\n return ResizeObserverDetail;\n}());\nexport { ResizeObserverDetail };\n","import { scheduler, updateCount } from './utils/scheduler';\nimport { ResizeObservation } from './ResizeObservation';\nimport { ResizeObserverDetail } from './ResizeObserverDetail';\nimport { resizeObservers } from './utils/resizeObservers';\nvar observerMap = new WeakMap();\nvar getObservationIndex = function (observationTargets, target) {\n for (var i = 0; i < observationTargets.length; i += 1) {\n if (observationTargets[i].target === target) {\n return i;\n }\n }\n return -1;\n};\nvar ResizeObserverController = (function () {\n function ResizeObserverController() {\n }\n ResizeObserverController.connect = function (resizeObserver, callback) {\n var detail = new ResizeObserverDetail(resizeObserver, callback);\n observerMap.set(resizeObserver, detail);\n };\n ResizeObserverController.observe = function (resizeObserver, target, options) {\n var detail = observerMap.get(resizeObserver);\n var firstObservation = detail.observationTargets.length === 0;\n if (getObservationIndex(detail.observationTargets, target) < 0) {\n firstObservation && resizeObservers.push(detail);\n detail.observationTargets.push(new ResizeObservation(target, options && options.box));\n updateCount(1);\n scheduler.schedule();\n }\n };\n ResizeObserverController.unobserve = function (resizeObserver, target) {\n var detail = observerMap.get(resizeObserver);\n var index = getObservationIndex(detail.observationTargets, target);\n var lastObservation = detail.observationTargets.length === 1;\n if (index >= 0) {\n lastObservation && resizeObservers.splice(resizeObservers.indexOf(detail), 1);\n detail.observationTargets.splice(index, 1);\n updateCount(-1);\n }\n };\n ResizeObserverController.disconnect = function (resizeObserver) {\n var _this = this;\n var detail = observerMap.get(resizeObserver);\n detail.observationTargets.slice().forEach(function (ot) { return _this.unobserve(resizeObserver, ot.target); });\n detail.activeTargets.splice(0, detail.activeTargets.length);\n };\n return ResizeObserverController;\n}());\nexport { ResizeObserverController };\n","import { ResizeObserverController } from './ResizeObserverController';\nimport { isElement } from './utils/element';\nvar ResizeObserver = (function () {\n function ResizeObserver(callback) {\n if (arguments.length === 0) {\n throw new TypeError(\"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.\");\n }\n if (typeof callback !== 'function') {\n throw new TypeError(\"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.\");\n }\n ResizeObserverController.connect(this, callback);\n }\n ResizeObserver.prototype.observe = function (target, options) {\n if (arguments.length === 0) {\n throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.\");\n }\n if (!isElement(target)) {\n throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element\");\n }\n ResizeObserverController.observe(this, target, options);\n };\n ResizeObserver.prototype.unobserve = function (target) {\n if (arguments.length === 0) {\n throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.\");\n }\n if (!isElement(target)) {\n throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element\");\n }\n ResizeObserverController.unobserve(this, target);\n };\n ResizeObserver.prototype.disconnect = function () {\n ResizeObserverController.disconnect(this);\n };\n ResizeObserver.toString = function () {\n return 'function ResizeObserver () { [polyfill code] }';\n };\n return ResizeObserver;\n}());\nexport { ResizeObserver };\n"],"names":["resizeObservers","hasActiveObservations","ro","hasSkippedObservations","msg","deliverResizeLoopError","event","ResizeObserverBoxOptions","freeze","obj","ResizeObserverSize","inlineSize","blockSize","DOMRectReadOnly","x","y","width","height","_a","top","right","bottom","left","rectangle","isSVG","target","isHidden","_b","offsetWidth","offsetHeight","isElement","scope","isReplacedElement","global","cache","scrollRegexp","verticalRegexp","IE","parseDimension","pixel","size","switchSizes","zeroBoxes","calculateBoxSizes","forceRecalculation","cs","svg","removePadding","canScrollVertically","canScrollHorizontally","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTop","borderRight","borderBottom","borderLeft","horizontalPadding","verticalPadding","horizontalBorderArea","verticalBorderArea","horizontalScrollbarThickness","verticalScrollbarThickness","widthReduction","heightReduction","contentWidth","contentHeight","borderBoxWidth","borderBoxHeight","boxes","calculateBoxSize","observedBox","borderBoxSize","contentBoxSize","devicePixelContentBoxSize","ResizeObserverEntry","calculateDepthForNode","node","depth","parent","broadcastActiveObservations","shallowestDepth","callbacks","entries","ot","entry","targetDepth","_i","callbacks_1","callback","gatherActiveObservationsAtDepth","process","trigger","notify","cb","queueMicroTask","toggle_1","el_1","config","queueResizeObserver","watching","isWatching","CATCH_PERIOD","observerConfig","events","time","timeout","scheduled","Scheduler","_this","until","elementsHaveResized","name","scheduler","updateCount","n","skipNotifyOnElement","ResizeObservation","ResizeObserverDetail","resizeObserver","observerMap","getObservationIndex","observationTargets","i","ResizeObserverController","detail","options","firstObservation","index","lastObservation","ResizeObserver"],"mappings":"AAAA,IAAIA,IAAkB,CAAA,GCClBC,KAAwB,WAAY;AACpC,SAAOD,EAAgB,KAAK,SAAUE,GAAI;AAAE,WAAOA,EAAG,cAAc,SAAS;AAAA,EAAG,CAAC;AACrF,GCFIC,KAAyB,WAAY;AACrC,SAAOH,EAAgB,KAAK,SAAUE,GAAI;AAAE,WAAOA,EAAG,eAAe,SAAS;AAAA,EAAG,CAAC;AACtF,GCHIE,IAAM,iEACNC,KAAyB,WAAY;AACrC,MAAIC;AACJ,EAAI,OAAO,cAAe,aACtBA,IAAQ,IAAI,WAAW,SAAS;AAAA,IAC5B,SAASF;AAAA,EACrB,CAAS,KAGDE,IAAQ,SAAS,YAAY,OAAO,GACpCA,EAAM,U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reList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]}
|
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function
|
|
2
|
+
function a(e) {
|
|
3
3
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
if (e
|
|
7
|
-
var
|
|
8
|
-
if (typeof
|
|
9
|
-
var t = function
|
|
10
|
-
|
|
5
|
+
function f(e) {
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
7
|
+
var n = e.default;
|
|
8
|
+
if (typeof n == "function") {
|
|
9
|
+
var t = function r() {
|
|
10
|
+
var o = !1;
|
|
11
|
+
try {
|
|
12
|
+
o = this instanceof r;
|
|
13
|
+
} catch {
|
|
14
|
+
}
|
|
15
|
+
return o ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
|
|
11
16
|
};
|
|
12
|
-
t.prototype =
|
|
17
|
+
t.prototype = n.prototype;
|
|
13
18
|
} else t = {};
|
|
14
|
-
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(
|
|
15
|
-
var
|
|
16
|
-
Object.defineProperty(t,
|
|
19
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
|
|
20
|
+
var o = Object.getOwnPropertyDescriptor(e, r);
|
|
21
|
+
Object.defineProperty(t, r, o.get ? o : {
|
|
17
22
|
enumerable: !0,
|
|
18
23
|
get: function() {
|
|
19
|
-
return e[
|
|
24
|
+
return e[r];
|
|
20
25
|
}
|
|
21
26
|
});
|
|
22
27
|
}), t;
|
|
23
28
|
}
|
|
24
29
|
export {
|
|
25
|
-
|
|
30
|
+
f as a,
|
|
26
31
|
u as c,
|
|
27
|
-
|
|
32
|
+
a as g
|
|
28
33
|
};
|
|
29
34
|
//# sourceMappingURL=_commonjsHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/chunks/index.js
CHANGED
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
import { g as c } from "./_commonjsHelpers.js";
|
|
2
|
-
var
|
|
2
|
+
var e = { exports: {} };
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|
|
6
6
|
http://jedwatson.github.io/classnames
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function a(t) {
|
|
19
|
-
if (typeof t == "string" || typeof t == "number")
|
|
8
|
+
var a;
|
|
9
|
+
function p() {
|
|
10
|
+
return a || (a = 1, function(o) {
|
|
11
|
+
(function() {
|
|
12
|
+
var f = {}.hasOwnProperty;
|
|
13
|
+
function s() {
|
|
14
|
+
for (var t = "", r = 0; r < arguments.length; r++) {
|
|
15
|
+
var n = arguments[r];
|
|
16
|
+
n && (t = i(t, u(n)));
|
|
17
|
+
}
|
|
20
18
|
return t;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
19
|
+
}
|
|
20
|
+
function u(t) {
|
|
21
|
+
if (typeof t == "string" || typeof t == "number")
|
|
22
|
+
return t;
|
|
23
|
+
if (typeof t != "object")
|
|
24
|
+
return "";
|
|
25
|
+
if (Array.isArray(t))
|
|
26
|
+
return s.apply(null, t);
|
|
27
|
+
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
28
|
+
return t.toString();
|
|
29
|
+
var r = "";
|
|
30
|
+
for (var n in t)
|
|
31
|
+
f.call(t, n) && t[n] && (r = i(r, n));
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
function i(t, r) {
|
|
35
|
+
return r ? t ? t + " " + r : t + r : t;
|
|
36
|
+
}
|
|
37
|
+
o.exports ? (s.default = s, o.exports = s) : window.classNames = s;
|
|
38
|
+
})();
|
|
39
|
+
}(e)), e.exports;
|
|
40
|
+
}
|
|
41
|
+
var l = p();
|
|
42
|
+
const x = /* @__PURE__ */ c(l);
|
|
40
43
|
export {
|
|
41
|
-
|
|
44
|
+
x as c
|
|
42
45
|
};
|
|
43
46
|
//# sourceMappingURL=index.js.map
|
package/chunks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../node_modules/classnames/index.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["hasOwn","classNames","classes","i","arg","appendClass","parseValue","key","value","newClass","module"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../node_modules/classnames/index.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["hasOwn","classNames","classes","i","arg","appendClass","parseValue","key","value","newClass","module"],"mappings":";;;;;;;;;;AAOA,KAAC,WAAY;AAGZ,UAAIA,IAAS,CAAA,EAAG;AAEhB,eAASC,IAAc;AAGtB,iBAFIC,IAAU,IAELC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAC1C,cAAIC,IAAM,UAAUD,CAAC;AACrB,UAAIC,MACHF,IAAUG,EAAYH,GAASI,EAAWF,CAAG,CAAC;AAAA,QAElD;AAEE,eAAOF;AAAA,MACT;AAEC,eAASI,EAAYF,GAAK;AACzB,YAAI,OAAOA,KAAQ,YAAY,OAAOA,KAAQ;AAC7C,iBAAOA;AAGR,YAAI,OAAOA,KAAQ;AAClB,iBAAO;AAGR,YAAI,MAAM,QAAQA,CAAG;AACpB,iBAAOH,EAAW,MAAM,MAAMG,CAAG;AAGlC,YAAIA,EAAI,aAAa,OAAO,UAAU,YAAY,CAACA,EAAI,SAAS,SAAQ,EAAG,SAAS,eAAe;AAClG,iBAAOA,EAAI,SAAQ;AAGpB,YAAIF,IAAU;AAEd,iBAASK,KAAOH;AACf,UAAIJ,EAAO,KAAKI,GAAKG,CAAG,KAAKH,EAAIG,CAAG,MACnCL,IAAUG,EAAYH,GAASK,CAAG;AAIpC,eAAOL;AAAA,MACT;AAEC,eAASG,EAAaG,GAAOC,GAAU;AACtC,eAAKA,IAIDD,IACIA,IAAQ,MAAMC,IAGfD,IAAQC,IAPPD;AAAA,MAQV;AAEC,MAAqCE,EAAO,WAC3CT,EAAW,UAAUA,GACrBS,YAAiBT,KAOjB,OAAO,aAAaA;AAAA,IAEtB;;;;;","x_google_ignoreList":[0]}
|