@ambuj.bhaskar/react-component-library 0.19.5-alpha → 0.19.6-alpha
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/README.md +34 -34
- package/bin/cli.js +87 -87
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -2
- package/dist/index.umd.js +1 -1
- package/package.json +97 -97
package/README.md
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
# 🚀 React UI Library
|
|
2
|
-
|
|
3
|
-
## A scalable, customizable, and accessible **React component library** designed for building modern UIs. This package includes reusable components, a flexible theming system, and a consistent icon set.
|
|
4
|
-
|
|
5
|
-
## 📦 What's Included?
|
|
6
|
-
|
|
7
|
-
### ✅ Components
|
|
8
|
-
|
|
9
|
-
The library currently provides the following components:
|
|
10
|
-
|
|
11
|
-
- **`Button`** – Customizable buttons with multiple variants and sizes
|
|
12
|
-
- **`Input`** – Accessible input fields with optional icons and validation
|
|
13
|
-
- **`Icon`** – A collection of SVG-based icons
|
|
14
|
-
- **`Select`** – Single select dropdown component
|
|
15
|
-
- **`MultiSelect`** – Multi-select dropdown with tags
|
|
16
|
-
- **`Modal`** – Flexible modal dialog with header, body, and footer support
|
|
17
|
-
- **`Backdrop`** – Dimmable background for modals or dialogs
|
|
18
|
-
- **`DateRangePicker`** – Date picker for selecting start and end dates
|
|
19
|
-
- **`ContactInput`** – A specialized input component for contact/email entry
|
|
20
|
-
- **`Spinner`** – A loading spinner indicator
|
|
21
|
-
- and more ...
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
### 🎨 Theming
|
|
26
|
-
|
|
27
|
-
The library supports **theme customization** using:
|
|
28
|
-
|
|
29
|
-
- **`ThemeProvider`** – Wrap your app with this provider to apply a custom theme
|
|
30
|
-
- **`useTheme()` hook** – Access the active theme and color palette in your components
|
|
31
|
-
|
|
32
|
-
Themes are managed using a flexible token-based system and can be extended or overridden easily.
|
|
33
|
-
|
|
34
|
-
---
|
|
1
|
+
# 🚀 React UI Library
|
|
2
|
+
|
|
3
|
+
## A scalable, customizable, and accessible **React component library** designed for building modern UIs. This package includes reusable components, a flexible theming system, and a consistent icon set.
|
|
4
|
+
|
|
5
|
+
## 📦 What's Included?
|
|
6
|
+
|
|
7
|
+
### ✅ Components
|
|
8
|
+
|
|
9
|
+
The library currently provides the following components:
|
|
10
|
+
|
|
11
|
+
- **`Button`** – Customizable buttons with multiple variants and sizes
|
|
12
|
+
- **`Input`** – Accessible input fields with optional icons and validation
|
|
13
|
+
- **`Icon`** – A collection of SVG-based icons
|
|
14
|
+
- **`Select`** – Single select dropdown component
|
|
15
|
+
- **`MultiSelect`** – Multi-select dropdown with tags
|
|
16
|
+
- **`Modal`** – Flexible modal dialog with header, body, and footer support
|
|
17
|
+
- **`Backdrop`** – Dimmable background for modals or dialogs
|
|
18
|
+
- **`DateRangePicker`** – Date picker for selecting start and end dates
|
|
19
|
+
- **`ContactInput`** – A specialized input component for contact/email entry
|
|
20
|
+
- **`Spinner`** – A loading spinner indicator
|
|
21
|
+
- and more ...
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
### 🎨 Theming
|
|
26
|
+
|
|
27
|
+
The library supports **theme customization** using:
|
|
28
|
+
|
|
29
|
+
- **`ThemeProvider`** – Wrap your app with this provider to apply a custom theme
|
|
30
|
+
- **`useTheme()` hook** – Access the active theme and color palette in your components
|
|
31
|
+
|
|
32
|
+
Themes are managed using a flexible token-based system and can be extended or overridden easily.
|
|
33
|
+
|
|
34
|
+
---
|
package/bin/cli.js
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import boxen from "boxen";
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
import { Command } from "commander";
|
|
6
|
-
import fs from "fs";
|
|
7
|
-
import path from "path";
|
|
8
|
-
import { fileURLToPath } from "url";
|
|
9
|
-
|
|
10
|
-
const program = new Command();
|
|
11
|
-
|
|
12
|
-
// Get __dirname equivalent in ES Modules
|
|
13
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
14
|
-
const __dirname = path.dirname(__filename);
|
|
15
|
-
|
|
16
|
-
// Styled banner
|
|
17
|
-
console.log(
|
|
18
|
-
boxen(chalk.bold.cyan("⚡ AWI CLI - Component Generator"), {
|
|
19
|
-
padding: 1,
|
|
20
|
-
margin: 1,
|
|
21
|
-
borderStyle: "round",
|
|
22
|
-
borderColor: "cyan",
|
|
23
|
-
})
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
program
|
|
27
|
-
.name("awi")
|
|
28
|
-
.description(chalk.green("A CLI tool for generating components and utilities"))
|
|
29
|
-
.version(chalk.yellow("1.0.0"));
|
|
30
|
-
|
|
31
|
-
// Component Generator Command
|
|
32
|
-
program
|
|
33
|
-
.command("generate <type> <name>")
|
|
34
|
-
.alias("g")
|
|
35
|
-
.description(chalk.blue("Generate a new component or utility"))
|
|
36
|
-
.action((type, name) => {
|
|
37
|
-
if (type === "component" || type === "c") {
|
|
38
|
-
createComponent(name);
|
|
39
|
-
} else {
|
|
40
|
-
console.log(chalk.red.bold(`❌ Unknown type: ${type}`));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
function createComponent(componentName) {
|
|
45
|
-
const componentDir = path.join(process.cwd(), componentName);
|
|
46
|
-
const formattedName = componentName.replace(/-/g, ".");
|
|
47
|
-
const pascalCaseName = formattedName
|
|
48
|
-
.split(".")
|
|
49
|
-
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
50
|
-
.join("");
|
|
51
|
-
|
|
52
|
-
// Ensure the directory exists
|
|
53
|
-
fs.mkdirSync(componentDir, { recursive: true });
|
|
54
|
-
|
|
55
|
-
// Define file contents
|
|
56
|
-
const indexContent = `import { ${pascalCaseName} } from "./${formattedName}";\nexport type { ${pascalCaseName}Props } from "./${formattedName}.type";\n\nexport default ${pascalCaseName};`;
|
|
57
|
-
|
|
58
|
-
const componentContent = `import "./${formattedName}.css";\nimport { ${pascalCaseName}Props } from "./${formattedName}.type";\n\nexport const ${pascalCaseName}: React.FC<${pascalCaseName}Props> = ({\n title = "${pascalCaseName}",\n}) => {\n return <div>{title}</div>;\n};`;
|
|
59
|
-
|
|
60
|
-
const typeContent = `export type ${pascalCaseName}Props = {\n title?: string;\n};`;
|
|
61
|
-
|
|
62
|
-
const storiesContent = `import type { Meta, StoryObj } from "@storybook/react";\nimport ${pascalCaseName} from "./";\n\nconst meta: Meta<typeof ${pascalCaseName}> = {\n component: ${pascalCaseName},\n title: "Components/Atoms/${pascalCaseName}",\n tags: ["autodocs"],\n parameters: {\n layout: "centered",\n docs: {\n panelPosition: "right",\n },\n },\n argTypes: {\n title: {\n control: "text",\n description: "Title of the component",\n table: {\n type: { summary: "string" },\n defaultValue: { summary: "${pascalCaseName}" },\n },\n },\n },\n};\nexport default meta;\n\ntype Story = StoryObj<typeof ${pascalCaseName}>;\n\nexport const Default: Story = {\n args: { title: "${pascalCaseName}" },\n};`;
|
|
63
|
-
|
|
64
|
-
// Create and write files
|
|
65
|
-
const files = {
|
|
66
|
-
"index.tsx": indexContent,
|
|
67
|
-
[`${formattedName}.tsx`]: componentContent,
|
|
68
|
-
[`${formattedName}.type.ts`]: typeContent,
|
|
69
|
-
[`${formattedName}.stories.tsx`]: storiesContent,
|
|
70
|
-
[`${formattedName}.css`]: "",
|
|
71
|
-
[`${formattedName}.utils.ts`]: "",
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
for (const [file, content] of Object.entries(files)) {
|
|
75
|
-
fs.writeFileSync(path.join(componentDir, file), content, { flag: "w" });
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
console.log(
|
|
79
|
-
boxen(
|
|
80
|
-
chalk.greenBright(`✅ Component '${componentName}' created successfully!`),
|
|
81
|
-
{ padding: 1, margin: 1, borderStyle: "double", borderColor: "green" }
|
|
82
|
-
)
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Parse CLI arguments
|
|
87
|
-
program.parse(process.argv);
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import boxen from "boxen";
|
|
4
|
+
import chalk from "chalk";
|
|
5
|
+
import { Command } from "commander";
|
|
6
|
+
import fs from "fs";
|
|
7
|
+
import path from "path";
|
|
8
|
+
import { fileURLToPath } from "url";
|
|
9
|
+
|
|
10
|
+
const program = new Command();
|
|
11
|
+
|
|
12
|
+
// Get __dirname equivalent in ES Modules
|
|
13
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
14
|
+
const __dirname = path.dirname(__filename);
|
|
15
|
+
|
|
16
|
+
// Styled banner
|
|
17
|
+
console.log(
|
|
18
|
+
boxen(chalk.bold.cyan("⚡ AWI CLI - Component Generator"), {
|
|
19
|
+
padding: 1,
|
|
20
|
+
margin: 1,
|
|
21
|
+
borderStyle: "round",
|
|
22
|
+
borderColor: "cyan",
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
program
|
|
27
|
+
.name("awi")
|
|
28
|
+
.description(chalk.green("A CLI tool for generating components and utilities"))
|
|
29
|
+
.version(chalk.yellow("1.0.0"));
|
|
30
|
+
|
|
31
|
+
// Component Generator Command
|
|
32
|
+
program
|
|
33
|
+
.command("generate <type> <name>")
|
|
34
|
+
.alias("g")
|
|
35
|
+
.description(chalk.blue("Generate a new component or utility"))
|
|
36
|
+
.action((type, name) => {
|
|
37
|
+
if (type === "component" || type === "c") {
|
|
38
|
+
createComponent(name);
|
|
39
|
+
} else {
|
|
40
|
+
console.log(chalk.red.bold(`❌ Unknown type: ${type}`));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
function createComponent(componentName) {
|
|
45
|
+
const componentDir = path.join(process.cwd(), componentName);
|
|
46
|
+
const formattedName = componentName.replace(/-/g, ".");
|
|
47
|
+
const pascalCaseName = formattedName
|
|
48
|
+
.split(".")
|
|
49
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
50
|
+
.join("");
|
|
51
|
+
|
|
52
|
+
// Ensure the directory exists
|
|
53
|
+
fs.mkdirSync(componentDir, { recursive: true });
|
|
54
|
+
|
|
55
|
+
// Define file contents
|
|
56
|
+
const indexContent = `import { ${pascalCaseName} } from "./${formattedName}";\nexport type { ${pascalCaseName}Props } from "./${formattedName}.type";\n\nexport default ${pascalCaseName};`;
|
|
57
|
+
|
|
58
|
+
const componentContent = `import "./${formattedName}.css";\nimport { ${pascalCaseName}Props } from "./${formattedName}.type";\n\nexport const ${pascalCaseName}: React.FC<${pascalCaseName}Props> = ({\n title = "${pascalCaseName}",\n}) => {\n return <div>{title}</div>;\n};`;
|
|
59
|
+
|
|
60
|
+
const typeContent = `export type ${pascalCaseName}Props = {\n title?: string;\n};`;
|
|
61
|
+
|
|
62
|
+
const storiesContent = `import type { Meta, StoryObj } from "@storybook/react";\nimport ${pascalCaseName} from "./";\n\nconst meta: Meta<typeof ${pascalCaseName}> = {\n component: ${pascalCaseName},\n title: "Components/Atoms/${pascalCaseName}",\n tags: ["autodocs"],\n parameters: {\n layout: "centered",\n docs: {\n panelPosition: "right",\n },\n },\n argTypes: {\n title: {\n control: "text",\n description: "Title of the component",\n table: {\n type: { summary: "string" },\n defaultValue: { summary: "${pascalCaseName}" },\n },\n },\n },\n};\nexport default meta;\n\ntype Story = StoryObj<typeof ${pascalCaseName}>;\n\nexport const Default: Story = {\n args: { title: "${pascalCaseName}" },\n};`;
|
|
63
|
+
|
|
64
|
+
// Create and write files
|
|
65
|
+
const files = {
|
|
66
|
+
"index.tsx": indexContent,
|
|
67
|
+
[`${formattedName}.tsx`]: componentContent,
|
|
68
|
+
[`${formattedName}.type.ts`]: typeContent,
|
|
69
|
+
[`${formattedName}.stories.tsx`]: storiesContent,
|
|
70
|
+
[`${formattedName}.css`]: "",
|
|
71
|
+
[`${formattedName}.utils.ts`]: "",
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
for (const [file, content] of Object.entries(files)) {
|
|
75
|
+
fs.writeFileSync(path.join(componentDir, file), content, { flag: "w" });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
console.log(
|
|
79
|
+
boxen(
|
|
80
|
+
chalk.greenBright(`✅ Component '${componentName}' created successfully!`),
|
|
81
|
+
{ padding: 1, margin: 1, borderStyle: "double", borderColor: "green" }
|
|
82
|
+
)
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Parse CLI arguments
|
|
87
|
+
program.parse(process.argv);
|
package/dist/index.cjs
CHANGED
|
@@ -287,7 +287,7 @@ __p += '`),Gn&&(bt+=`' +
|
|
|
287
287
|
function print() { __p += __j.call(arguments, '') }
|
|
288
288
|
`:`;
|
|
289
289
|
`)+bt+`return __p
|
|
290
|
-
}`;var Tn=Fm(function(){return Yn(ae,un+"return "+bt).apply(n,me)});if(Tn.source=bt,uu(Tn))throw Tn;return Tn}function iT(C){return v0(C).toLowerCase()}function aT(C){return v0(C).toUpperCase()}function sT(C,p,_){if(C=v0(C),C&&(_||p===n))return U5(C);if(!C||!(p=wr(p)))return C;var z=xr(C),Z=xr(p),ae=aa(z,Z),me=L2(z,Z)+1;return ci(z,ae,me).join("")}function lT(C,p,_){if(C=v0(C),C&&(_||p===n))return C.slice(0,qi(C)+1);if(!C||!(p=wr(p)))return C;var z=xr(C),Z=L2(z,xr(p))+1;return ci(z,0,Z).join("")}function cT(C,p,_){if(C=v0(C),C&&(_||p===n))return C.replace(ot,"");if(!C||!(p=wr(p)))return C;var z=xr(C),Z=aa(z,xr(p));return ci(z,Z).join("")}function uT(C,p){var _=R,z=I;if(Y0(p)){var Z="separator"in p?p.separator:Z;_="length"in p?Pn(p.length):_,z="omission"in p?wr(p.omission):z}C=v0(C);var ae=C.length;if(lo(C)){var me=xr(C);ae=me.length}if(_>=ae)return C;var we=_-co(z);if(we<1)return z;var Ie=me?ci(me,0,we).join(""):C.slice(0,we);if(Z===n)return Ie+z;if(me&&(we+=Ie.length-we),du(Z)){if(C.slice(we).search(Z)){var ft,Ct=Ie;for(Z.global||(Z=uo(Z.source,v0(pt.exec(Z))+"g")),Z.lastIndex=0;ft=Z.exec(Ct);)var bt=ft.index;Ie=Ie.slice(0,bt===n?we:bt)}}else if(C.indexOf(wr(Z),we)!=we){var zt=Ie.lastIndexOf(Z);zt>-1&&(Ie=Ie.slice(0,zt))}return Ie+z}function dT(C){return C=v0(C),C&&Nt.test(C)?C.replace($t,K5):C}var fT=ba(function(C,p,_){return C+(_?" ":"")+p.toUpperCase()}),gu=jA("toUpperCase");function Tm(C,p,_){return C=v0(C),p=_?n:p,p===n?S7(C)?_s(C):Zi(C):C.match(p)||[]}var Fm=jn(function(C,p){try{return Y1(C,n,p)}catch(_){return uu(_)?_:new Hn(_)}}),CT=xo(function(C,p){return r1(p,function(_){_=F2(_),bo(C,_,lu(C[_],C))}),C});function gT(C){var p=C==null?0:C.length,_=bn();return C=p?k0(C,function(z){if(typeof z[1]!="function")throw new L1(a);return[_(z[0]),z[1]]}):[],jn(function(z){for(var Z=-1;++Z<p;){var ae=C[Z];if(Y1(ae[0],this,z))return Y1(ae[1],this,z)}})}function hT(C){return jL(Zr(C,f))}function hu(C){return function(){return C}}function AT(C,p){return C==null||C!==C?p:C}var mT=zA(),pT=zA(!0);function dr(C){return C}function Au(C){return pA(typeof C=="function"?C:Zr(C,f))}function vT(C){return bA(Zr(C,f))}function bT(C,p){return yA(C,Zr(p,f))}var yT=jn(function(C,p){return function(_){return e4(_,C,p)}}),xT=jn(function(C,p){return function(_){return e4(C,_,p)}});function mu(C,p,_){var z=_1(p),Z=Ts(p,z);_==null&&!(Y0(p)&&(Z.length||!z.length))&&(_=p,p=C,C=this,Z=Ts(p,_1(p)));var ae=!(Y0(_)&&"chain"in _)||!!_.chain,me=Eo(C);return r1(Z,function(we){var Ie=p[we];C[we]=Ie,me&&(C.prototype[we]=function(){var ft=this.__chain__;if(ae||ft){var Ct=C(this.__wrapped__),bt=Ct.__actions__=lr(this.__actions__);return bt.push({func:Ie,args:arguments,thisArg:C}),Ct.__chain__=ft,Ct}return Ie.apply(C,ar([this.value()],arguments))})}),C}function wT(){return h1._===this&&(h1._=ua),this}function pu(){}function ET(C){return C=Pn(C),jn(function(p){return xA(p,C)})}var ST=Y7(k0),_T=Y7(Qi),HT=Y7(ra);function jm(C){return nu(C)?Yi(F2(C)):rD(C)}function MT(C){return function(p){return C==null?n:o9(C,p)}}var BT=$A(),OT=$A(!0);function vu(){return[]}function bu(){return!1}function RT(){return{}}function IT(){return""}function LT(){return!0}function DT(C,p){if(C=Pn(C),C<1||C>j)return[];var _=T,z=m1(C,T);p=bn(p),C-=T;for(var Z=z5(z,p);++_<C;)p(_);return Z}function NT(C){return Rn(C)?k0(C,F2):Er(C)?[C]:lr(am(v0(C)))}function PT(C){var p=++B7;return v0(C)+p}var kT=$s(function(C,p){return C+p},0),TT=G7("ceil"),FT=$s(function(C,p){return C/p},1),jT=G7("floor");function VT(C){return C&&C.length?ks(C,dr,N7):n}function zT(C,p){return C&&C.length?ks(C,bn(p,2),N7):n}function UT(C){return oa(C,dr)}function $T(C,p){return oa(C,bn(p,2))}function KT(C){return C&&C.length?ks(C,dr,F7):n}function QT(C,p){return C&&C.length?ks(C,bn(p,2),F7):n}var WT=$s(function(C,p){return C*p},1),ZT=G7("round"),YT=$s(function(C,p){return C-p},0);function GT(C){return C&&C.length?sr(C,dr):0}function qT(C,p){return C&&C.length?sr(C,bn(p,2)):0}return J.after=vP,J.ary=mm,J.assign=ak,J.assignIn=Rm,J.assignInWith=rl,J.assignWith=sk,J.at=lk,J.before=pm,J.bind=lu,J.bindAll=CT,J.bindKey=vm,J.castArray=RP,J.chain=gm,J.chunk=jD,J.compact=VD,J.concat=zD,J.cond=gT,J.conforms=hT,J.constant=hu,J.countBy=GN,J.create=ck,J.curry=bm,J.curryRight=ym,J.debounce=xm,J.defaults=uk,J.defaultsDeep=dk,J.defer=bP,J.delay=yP,J.difference=UD,J.differenceBy=$D,J.differenceWith=KD,J.drop=QD,J.dropRight=WD,J.dropRightWhile=ZD,J.dropWhile=YD,J.fill=GD,J.filter=XN,J.flatMap=tP,J.flatMapDeep=nP,J.flatMapDepth=rP,J.flatten=um,J.flattenDeep=qD,J.flattenDepth=XD,J.flip=xP,J.flow=mT,J.flowRight=pT,J.fromPairs=JD,J.functions=pk,J.functionsIn=vk,J.groupBy=oP,J.initial=tN,J.intersection=nN,J.intersectionBy=rN,J.intersectionWith=oN,J.invert=yk,J.invertBy=xk,J.invokeMap=aP,J.iteratee=Au,J.keyBy=sP,J.keys=_1,J.keysIn=ur,J.map=qs,J.mapKeys=Ek,J.mapValues=Sk,J.matches=vT,J.matchesProperty=bT,J.memoize=Js,J.merge=_k,J.mergeWith=Im,J.method=yT,J.methodOf=xT,J.mixin=mu,J.negate=el,J.nthArg=ET,J.omit=Hk,J.omitBy=Mk,J.once=wP,J.orderBy=lP,J.over=ST,J.overArgs=EP,J.overEvery=_T,J.overSome=HT,J.partial=cu,J.partialRight=wm,J.partition=cP,J.pick=Bk,J.pickBy=Lm,J.property=jm,J.propertyOf=MT,J.pull=lN,J.pullAll=fm,J.pullAllBy=cN,J.pullAllWith=uN,J.pullAt=dN,J.range=BT,J.rangeRight=OT,J.rearg=SP,J.reject=fP,J.remove=fN,J.rest=_P,J.reverse=au,J.sampleSize=gP,J.set=Rk,J.setWith=Ik,J.shuffle=hP,J.slice=CN,J.sortBy=pP,J.sortedUniq=bN,J.sortedUniqBy=yN,J.split=tT,J.spread=HP,J.tail=xN,J.take=wN,J.takeRight=EN,J.takeRightWhile=SN,J.takeWhile=_N,J.tap=VN,J.throttle=MP,J.thru=Gs,J.toArray=Mm,J.toPairs=Dm,J.toPairsIn=Nm,J.toPath=NT,J.toPlainObject=Om,J.transform=Lk,J.unary=BP,J.union=HN,J.unionBy=MN,J.unionWith=BN,J.uniq=ON,J.uniqBy=RN,J.uniqWith=IN,J.unset=Dk,J.unzip=su,J.unzipWith=Cm,J.update=Nk,J.updateWith=Pk,J.values=wa,J.valuesIn=kk,J.without=LN,J.words=Tm,J.wrap=OP,J.xor=DN,J.xorBy=NN,J.xorWith=PN,J.zip=kN,J.zipObject=TN,J.zipObjectDeep=FN,J.zipWith=jN,J.entries=Dm,J.entriesIn=Nm,J.extend=Rm,J.extendWith=rl,mu(J,J),J.add=kT,J.attempt=Fm,J.camelCase=Vk,J.capitalize=Pm,J.ceil=TT,J.clamp=Tk,J.clone=IP,J.cloneDeep=DP,J.cloneDeepWith=NP,J.cloneWith=LP,J.conformsTo=PP,J.deburr=km,J.defaultTo=AT,J.divide=FT,J.endsWith=zk,J.eq=g2,J.escape=Uk,J.escapeRegExp=$k,J.every=qN,J.find=JN,J.findIndex=lm,J.findKey=fk,J.findLast=eP,J.findLastIndex=cm,J.findLastKey=Ck,J.floor=jT,J.forEach=hm,J.forEachRight=Am,J.forIn=gk,J.forInRight=hk,J.forOwn=Ak,J.forOwnRight=mk,J.get=fu,J.gt=kP,J.gte=TP,J.has=bk,J.hasIn=Cu,J.head=dm,J.identity=dr,J.includes=iP,J.indexOf=eN,J.inRange=Fk,J.invoke=wk,J.isArguments=s9,J.isArray=Rn,J.isArrayBuffer=FP,J.isArrayLike=cr,J.isArrayLikeObject=o1,J.isBoolean=jP,J.isBuffer=ui,J.isDate=VP,J.isElement=zP,J.isEmpty=UP,J.isEqual=$P,J.isEqualWith=KP,J.isError=uu,J.isFinite=QP,J.isFunction=Eo,J.isInteger=Em,J.isLength=tl,J.isMap=Sm,J.isMatch=WP,J.isMatchWith=ZP,J.isNaN=YP,J.isNative=GP,J.isNil=XP,J.isNull=qP,J.isNumber=_m,J.isObject=Y0,J.isObjectLike=e1,J.isPlainObject=a4,J.isRegExp=du,J.isSafeInteger=JP,J.isSet=Hm,J.isString=nl,J.isSymbol=Er,J.isTypedArray=xa,J.isUndefined=ek,J.isWeakMap=tk,J.isWeakSet=nk,J.join=iN,J.kebabCase=Kk,J.last=Gr,J.lastIndexOf=aN,J.lowerCase=Qk,J.lowerFirst=Wk,J.lt=rk,J.lte=ok,J.max=VT,J.maxBy=zT,J.mean=UT,J.meanBy=$T,J.min=KT,J.minBy=QT,J.stubArray=vu,J.stubFalse=bu,J.stubObject=RT,J.stubString=IT,J.stubTrue=LT,J.multiply=WT,J.nth=sN,J.noConflict=wT,J.noop=pu,J.now=Xs,J.pad=Zk,J.padEnd=Yk,J.padStart=Gk,J.parseInt=qk,J.random=jk,J.reduce=uP,J.reduceRight=dP,J.repeat=Xk,J.replace=Jk,J.result=Ok,J.round=ZT,J.runInContext=Be,J.sample=CP,J.size=AP,J.snakeCase=eT,J.some=mP,J.sortedIndex=gN,J.sortedIndexBy=hN,J.sortedIndexOf=AN,J.sortedLastIndex=mN,J.sortedLastIndexBy=pN,J.sortedLastIndexOf=vN,J.startCase=nT,J.startsWith=rT,J.subtract=YT,J.sum=GT,J.sumBy=qT,J.template=oT,J.times=DT,J.toFinite=So,J.toInteger=Pn,J.toLength=Bm,J.toLower=iT,J.toNumber=qr,J.toSafeInteger=ik,J.toString=v0,J.toUpper=aT,J.trim=sT,J.trimEnd=lT,J.trimStart=cT,J.truncate=uT,J.unescape=dT,J.uniqueId=PT,J.upperCase=fT,J.upperFirst=gu,J.each=hm,J.eachRight=Am,J.first=dm,mu(J,function(){var C={};return k2(J,function(p,_){r0.call(J.prototype,_)||(C[_]=p)}),C}(),{chain:!1}),J.VERSION=r,r1(["bind","bindKey","curry","curryRight","partial","partialRight"],function(C){J[C].placeholder=J}),r1(["drop","take"],function(C,p){Ut.prototype[C]=function(_){_=_===n?1:J0(Pn(_),0);var z=this.__filtered__&&!p?new Ut(this):this.clone();return z.__filtered__?z.__takeCount__=m1(_,z.__takeCount__):z.__views__.push({size:m1(_,T),type:C+(z.__dir__<0?"Right":"")}),z},Ut.prototype[C+"Right"]=function(_){return this.reverse()[C](_).reverse()}}),r1(["filter","map","takeWhile"],function(C,p){var _=p+1,z=_==k||_==D;Ut.prototype[C]=function(Z){var ae=this.clone();return ae.__iteratees__.push({iteratee:bn(Z,3),type:_}),ae.__filtered__=ae.__filtered__||z,ae}}),r1(["head","last"],function(C,p){var _="take"+(p?"Right":"");Ut.prototype[C]=function(){return this[_](1).value()[0]}}),r1(["initial","tail"],function(C,p){var _="drop"+(p?"":"Right");Ut.prototype[C]=function(){return this.__filtered__?new Ut(this):this[_](1)}}),Ut.prototype.compact=function(){return this.filter(dr)},Ut.prototype.find=function(C){return this.filter(C).head()},Ut.prototype.findLast=function(C){return this.reverse().find(C)},Ut.prototype.invokeMap=jn(function(C,p){return typeof C=="function"?new Ut(this):this.map(function(_){return e4(_,C,p)})}),Ut.prototype.reject=function(C){return this.filter(el(bn(C)))},Ut.prototype.slice=function(C,p){C=Pn(C);var _=this;return _.__filtered__&&(C>0||p<0)?new Ut(_):(C<0?_=_.takeRight(-C):C&&(_=_.drop(C)),p!==n&&(p=Pn(p),_=p<0?_.dropRight(-p):_.take(p-C)),_)},Ut.prototype.takeRightWhile=function(C){return this.reverse().takeWhile(C).reverse()},Ut.prototype.toArray=function(){return this.take(T)},k2(Ut.prototype,function(C,p){var _=/^(?:filter|find|map|reject)|While$/.test(p),z=/^(?:head|last)$/.test(p),Z=J[z?"take"+(p=="last"?"Right":""):p],ae=z||/^find/.test(p);Z&&(J.prototype[p]=function(){var me=this.__wrapped__,we=z?[1]:arguments,Ie=me instanceof Ut,ft=we[0],Ct=Ie||Rn(me),bt=function(Kn){var Gn=Z.apply(J,ar([Kn],we));return z&&zt?Gn[0]:Gn};Ct&&_&&typeof ft=="function"&&ft.length!=1&&(Ie=Ct=!1);var zt=this.__chain__,un=!!this.__actions__.length,xn=ae&&!zt,Tn=Ie&&!un;if(!ae&&Ct){me=Tn?me:new Ut(this);var wn=C.apply(me,we);return wn.__actions__.push({func:Gs,args:[bt],thisArg:n}),new o0(wn,zt)}return xn&&Tn?C.apply(this,we):(wn=this.thru(bt),xn?z?wn.value()[0]:wn.value():wn)})}),r1(["pop","push","shift","sort","splice","unshift"],function(C){var p=fo[C],_=/^(?:push|sort|unshift)$/.test(C)?"tap":"thru",z=/^(?:pop|shift)$/.test(C);J.prototype[C]=function(){var Z=arguments;if(z&&!this.__chain__){var ae=this.value();return p.apply(Rn(ae)?ae:[],Z)}return this[_](function(me){return p.apply(Rn(me)?me:[],Z)})}}),k2(Ut.prototype,function(C,p){var _=J[p];if(_){var z=_.name+"";r0.call(Ee,z)||(Ee[z]=[]),Ee[z].push({name:p,func:_})}}),Ee[Us(n,y).name]=[{name:"wrapper",func:n}],Ut.prototype.clone=d1,Ut.prototype.reverse=E1,Ut.prototype.value=G1,J.prototype.at=zN,J.prototype.chain=UN,J.prototype.commit=$N,J.prototype.next=KN,J.prototype.plant=WN,J.prototype.reverse=ZN,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=YN,J.prototype.first=J.prototype.head,mo&&(J.prototype[mo]=QN),J},N2=M7();R2?((R2.exports=N2)._=N2,j5._=N2):h1._=N2}).call(m0e)}(N4,N4.exports)),N4.exports}var L3=p0e();const G2=eo(L3);function v0e({input:e,type:t,lineVariant:n,lineTension:r}){const o=["#4e79a7","#f28e2b","#e15759","#76b7b2"],i=t==="doughnut"||t==="pie";return{labels:e.labels,datasets:e.datasets.map((a,s)=>{var l;return i?{label:a.label,data:a.data,backgroundColor:a.colors&&a.colors.length===a.data.length?(l=a.colors)==null?void 0:l.map(c=>Wu(c)):a.data.map((c,d)=>Wu(o[d%o.length])),borderColor:a.colors&&a.colors.length===a.data.length?a.colors:a.data.map((c,d)=>o[d%o.length]),borderWidth:2}:{label:a.label,data:a.data,backgroundColor:Wu(a.color||o[s%o.length]),borderColor:a.color||o[s%o.length],borderWidth:t==="line"?2:1,fill:n=="fill",tension:r??.4,pointRadius:0}})}}function b0e({barVariant:e,type:t}){const r={responsive:!0,plugins:{legend:{position:"bottom",labels:{font:{family:"Inter"},usePointStyle:!0,pointStyle:"circle",textAlign:"center"}},tooltip:{bodyFont:{family:"Inter"},titleFont:{family:"Inter"}}},scales:t==="doughnut"||t==="pie"?{}:{x:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}},y:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}}}};return t==="bar"&&e=="stacked"?L3.merge({},r,{scales:{x:{stacked:!0},y:{stacked:!0}}}):r}function Wu(e){if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)){const n=e.substring(1),r=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);return`rgba(${r}, ${o}, ${i}, 0.1)`}else if(e.startsWith("rgba")){const[n,r,o,i]=e.substring(5,e.length-1).split(",");return`rgba(${n}, ${r}, ${o}, 0.1)`}else if(e.startsWith("rgb")){const[n,r,o]=e.substring(4,e.length-1).split(",");return`rgba(${n}, ${r}, ${o}, 0.1)`}else throw new Error(`Unsupported color format: ${e}`)}let pb=!1;function y0e(){pb||(b5.register(wc,Ec,V6,yg,bg),pb=!0)}let vb=!1;function x0e(){vb||(b5.register(L4,yg,bg),vb=!0)}let bb=!1;function w0e(){bb||(b5.register(wc,Ec,j6,bi,yg,bg,zne),bb=!0)}const E0e=({type:e,data:t,options:n,barVariant:r,lineVariant:o,lineTension:i,width:a,height:s,backgroundColor:l,className:c=""})=>{e==="line"?w0e():e==="bar"?y0e():(e==="doughnut"||e==="pie")&&x0e();const d=v0e({input:t,type:e,lineVariant:o,lineTension:i}),f=L3.merge({maintainAspectRatio:!1},b0e({type:e,barVariant:r}),n),h={line:C0e,bar:g0e,doughnut:h0e,pie:A0e}[e];return $.jsx(h,{data:d,options:f,style:{width:a,height:s,backgroundColor:l},className:`awi-chart ${c}`})},El=(e,t)=>{const n=e;return isNaN(n.getTime())?"":t==="date"?n.toLocaleDateString(void 0,{day:"2-digit",month:"short",year:"numeric"}):n.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})},YS=({data:e,className:t,isFocused:n=!1,borderColor:r="#eaebee",focusedBorderColor:o="#ffcc00",focusedBorderThickness:i="2px",width:a="100%",height:s="100%"})=>{const l=n?`${i} solid ${o}`:`1px solid ${r}`;return $.jsxs("div",{className:"compact_event_card "+(t||"")+" "+(n?"focused":""),style:{width:a,height:s,border:l},children:[$.jsx("img",{src:e==null?void 0:e.frameUrl,alt:"Alert"}),$.jsxs("span",{className:"compact_event_card_content",children:[$.jsx("header",{children:$.jsx("h6",{children:e.appName})}),$.jsxs("section",{className:"compact_event_card_details",children:[$.jsx("h6",{children:e.location}),$.jsxs("span",{children:[$.jsx("p",{children:"Date"}),$.jsx("h6",{title:El(e==null?void 0:e.timeStamp,"date"),children:El(e==null?void 0:e.timeStamp,"date")})]}),$.jsxs("span",{children:[$.jsx("p",{children:"Time"}),$.jsx("h6",{title:El(e==null?void 0:e.timeStamp,"time"),className:"font_secondary",children:El(e==null?void 0:e.timeStamp,"time")})]})]}),$.jsxs("footer",{children:[$.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${e==null?void 0:e.color})`}}),$.jsx("p",{className:"font_secondary",children:e==null?void 0:e.severity})]})]})]})},S0e={s:"18.75rem",m:"25rem",l:"31.25rem"},f3=({className:e="",value:t=void 0,height:n="m",width:r="24rem",placement:o="flex-start",icon:i,backgroundColor:a,textColor:s,borderColor:l,disabledColor:c,iconPosition:d="after",iconColor:f="#292929",disabled:g=!1,onChange:h=()=>{},...m})=>(r=r||S0e[n],$.jsxs("div",{className:`input_wrapper h_${n} ${g?"disabled":""} icon_${d}`,style:{width:r,minWidth:r,justifyContent:o,"--c_input_text":s,"--c_input_border":l,"--c_input_background":a,"--c_input_background_disabled":c},children:[i&&$.jsx(Hi,{name:i,color:f}),$.jsx("input",{disabled:g,className:`input ${e}`,value:t,onChange:h,...m})]}));var Zu={exports:{}};/*!
|
|
290
|
+
}`;var Tn=Fm(function(){return Yn(ae,un+"return "+bt).apply(n,me)});if(Tn.source=bt,uu(Tn))throw Tn;return Tn}function iT(C){return v0(C).toLowerCase()}function aT(C){return v0(C).toUpperCase()}function sT(C,p,_){if(C=v0(C),C&&(_||p===n))return U5(C);if(!C||!(p=wr(p)))return C;var z=xr(C),Z=xr(p),ae=aa(z,Z),me=L2(z,Z)+1;return ci(z,ae,me).join("")}function lT(C,p,_){if(C=v0(C),C&&(_||p===n))return C.slice(0,qi(C)+1);if(!C||!(p=wr(p)))return C;var z=xr(C),Z=L2(z,xr(p))+1;return ci(z,0,Z).join("")}function cT(C,p,_){if(C=v0(C),C&&(_||p===n))return C.replace(ot,"");if(!C||!(p=wr(p)))return C;var z=xr(C),Z=aa(z,xr(p));return ci(z,Z).join("")}function uT(C,p){var _=R,z=I;if(Y0(p)){var Z="separator"in p?p.separator:Z;_="length"in p?Pn(p.length):_,z="omission"in p?wr(p.omission):z}C=v0(C);var ae=C.length;if(lo(C)){var me=xr(C);ae=me.length}if(_>=ae)return C;var we=_-co(z);if(we<1)return z;var Ie=me?ci(me,0,we).join(""):C.slice(0,we);if(Z===n)return Ie+z;if(me&&(we+=Ie.length-we),du(Z)){if(C.slice(we).search(Z)){var ft,Ct=Ie;for(Z.global||(Z=uo(Z.source,v0(pt.exec(Z))+"g")),Z.lastIndex=0;ft=Z.exec(Ct);)var bt=ft.index;Ie=Ie.slice(0,bt===n?we:bt)}}else if(C.indexOf(wr(Z),we)!=we){var zt=Ie.lastIndexOf(Z);zt>-1&&(Ie=Ie.slice(0,zt))}return Ie+z}function dT(C){return C=v0(C),C&&Nt.test(C)?C.replace($t,K5):C}var fT=ba(function(C,p,_){return C+(_?" ":"")+p.toUpperCase()}),gu=jA("toUpperCase");function Tm(C,p,_){return C=v0(C),p=_?n:p,p===n?S7(C)?_s(C):Zi(C):C.match(p)||[]}var Fm=jn(function(C,p){try{return Y1(C,n,p)}catch(_){return uu(_)?_:new Hn(_)}}),CT=xo(function(C,p){return r1(p,function(_){_=F2(_),bo(C,_,lu(C[_],C))}),C});function gT(C){var p=C==null?0:C.length,_=bn();return C=p?k0(C,function(z){if(typeof z[1]!="function")throw new L1(a);return[_(z[0]),z[1]]}):[],jn(function(z){for(var Z=-1;++Z<p;){var ae=C[Z];if(Y1(ae[0],this,z))return Y1(ae[1],this,z)}})}function hT(C){return jL(Zr(C,f))}function hu(C){return function(){return C}}function AT(C,p){return C==null||C!==C?p:C}var mT=zA(),pT=zA(!0);function dr(C){return C}function Au(C){return pA(typeof C=="function"?C:Zr(C,f))}function vT(C){return bA(Zr(C,f))}function bT(C,p){return yA(C,Zr(p,f))}var yT=jn(function(C,p){return function(_){return e4(_,C,p)}}),xT=jn(function(C,p){return function(_){return e4(C,_,p)}});function mu(C,p,_){var z=_1(p),Z=Ts(p,z);_==null&&!(Y0(p)&&(Z.length||!z.length))&&(_=p,p=C,C=this,Z=Ts(p,_1(p)));var ae=!(Y0(_)&&"chain"in _)||!!_.chain,me=Eo(C);return r1(Z,function(we){var Ie=p[we];C[we]=Ie,me&&(C.prototype[we]=function(){var ft=this.__chain__;if(ae||ft){var Ct=C(this.__wrapped__),bt=Ct.__actions__=lr(this.__actions__);return bt.push({func:Ie,args:arguments,thisArg:C}),Ct.__chain__=ft,Ct}return Ie.apply(C,ar([this.value()],arguments))})}),C}function wT(){return h1._===this&&(h1._=ua),this}function pu(){}function ET(C){return C=Pn(C),jn(function(p){return xA(p,C)})}var ST=Y7(k0),_T=Y7(Qi),HT=Y7(ra);function jm(C){return nu(C)?Yi(F2(C)):rD(C)}function MT(C){return function(p){return C==null?n:o9(C,p)}}var BT=$A(),OT=$A(!0);function vu(){return[]}function bu(){return!1}function RT(){return{}}function IT(){return""}function LT(){return!0}function DT(C,p){if(C=Pn(C),C<1||C>j)return[];var _=T,z=m1(C,T);p=bn(p),C-=T;for(var Z=z5(z,p);++_<C;)p(_);return Z}function NT(C){return Rn(C)?k0(C,F2):Er(C)?[C]:lr(am(v0(C)))}function PT(C){var p=++B7;return v0(C)+p}var kT=$s(function(C,p){return C+p},0),TT=G7("ceil"),FT=$s(function(C,p){return C/p},1),jT=G7("floor");function VT(C){return C&&C.length?ks(C,dr,N7):n}function zT(C,p){return C&&C.length?ks(C,bn(p,2),N7):n}function UT(C){return oa(C,dr)}function $T(C,p){return oa(C,bn(p,2))}function KT(C){return C&&C.length?ks(C,dr,F7):n}function QT(C,p){return C&&C.length?ks(C,bn(p,2),F7):n}var WT=$s(function(C,p){return C*p},1),ZT=G7("round"),YT=$s(function(C,p){return C-p},0);function GT(C){return C&&C.length?sr(C,dr):0}function qT(C,p){return C&&C.length?sr(C,bn(p,2)):0}return J.after=vP,J.ary=mm,J.assign=ak,J.assignIn=Rm,J.assignInWith=rl,J.assignWith=sk,J.at=lk,J.before=pm,J.bind=lu,J.bindAll=CT,J.bindKey=vm,J.castArray=RP,J.chain=gm,J.chunk=jD,J.compact=VD,J.concat=zD,J.cond=gT,J.conforms=hT,J.constant=hu,J.countBy=GN,J.create=ck,J.curry=bm,J.curryRight=ym,J.debounce=xm,J.defaults=uk,J.defaultsDeep=dk,J.defer=bP,J.delay=yP,J.difference=UD,J.differenceBy=$D,J.differenceWith=KD,J.drop=QD,J.dropRight=WD,J.dropRightWhile=ZD,J.dropWhile=YD,J.fill=GD,J.filter=XN,J.flatMap=tP,J.flatMapDeep=nP,J.flatMapDepth=rP,J.flatten=um,J.flattenDeep=qD,J.flattenDepth=XD,J.flip=xP,J.flow=mT,J.flowRight=pT,J.fromPairs=JD,J.functions=pk,J.functionsIn=vk,J.groupBy=oP,J.initial=tN,J.intersection=nN,J.intersectionBy=rN,J.intersectionWith=oN,J.invert=yk,J.invertBy=xk,J.invokeMap=aP,J.iteratee=Au,J.keyBy=sP,J.keys=_1,J.keysIn=ur,J.map=qs,J.mapKeys=Ek,J.mapValues=Sk,J.matches=vT,J.matchesProperty=bT,J.memoize=Js,J.merge=_k,J.mergeWith=Im,J.method=yT,J.methodOf=xT,J.mixin=mu,J.negate=el,J.nthArg=ET,J.omit=Hk,J.omitBy=Mk,J.once=wP,J.orderBy=lP,J.over=ST,J.overArgs=EP,J.overEvery=_T,J.overSome=HT,J.partial=cu,J.partialRight=wm,J.partition=cP,J.pick=Bk,J.pickBy=Lm,J.property=jm,J.propertyOf=MT,J.pull=lN,J.pullAll=fm,J.pullAllBy=cN,J.pullAllWith=uN,J.pullAt=dN,J.range=BT,J.rangeRight=OT,J.rearg=SP,J.reject=fP,J.remove=fN,J.rest=_P,J.reverse=au,J.sampleSize=gP,J.set=Rk,J.setWith=Ik,J.shuffle=hP,J.slice=CN,J.sortBy=pP,J.sortedUniq=bN,J.sortedUniqBy=yN,J.split=tT,J.spread=HP,J.tail=xN,J.take=wN,J.takeRight=EN,J.takeRightWhile=SN,J.takeWhile=_N,J.tap=VN,J.throttle=MP,J.thru=Gs,J.toArray=Mm,J.toPairs=Dm,J.toPairsIn=Nm,J.toPath=NT,J.toPlainObject=Om,J.transform=Lk,J.unary=BP,J.union=HN,J.unionBy=MN,J.unionWith=BN,J.uniq=ON,J.uniqBy=RN,J.uniqWith=IN,J.unset=Dk,J.unzip=su,J.unzipWith=Cm,J.update=Nk,J.updateWith=Pk,J.values=wa,J.valuesIn=kk,J.without=LN,J.words=Tm,J.wrap=OP,J.xor=DN,J.xorBy=NN,J.xorWith=PN,J.zip=kN,J.zipObject=TN,J.zipObjectDeep=FN,J.zipWith=jN,J.entries=Dm,J.entriesIn=Nm,J.extend=Rm,J.extendWith=rl,mu(J,J),J.add=kT,J.attempt=Fm,J.camelCase=Vk,J.capitalize=Pm,J.ceil=TT,J.clamp=Tk,J.clone=IP,J.cloneDeep=DP,J.cloneDeepWith=NP,J.cloneWith=LP,J.conformsTo=PP,J.deburr=km,J.defaultTo=AT,J.divide=FT,J.endsWith=zk,J.eq=g2,J.escape=Uk,J.escapeRegExp=$k,J.every=qN,J.find=JN,J.findIndex=lm,J.findKey=fk,J.findLast=eP,J.findLastIndex=cm,J.findLastKey=Ck,J.floor=jT,J.forEach=hm,J.forEachRight=Am,J.forIn=gk,J.forInRight=hk,J.forOwn=Ak,J.forOwnRight=mk,J.get=fu,J.gt=kP,J.gte=TP,J.has=bk,J.hasIn=Cu,J.head=dm,J.identity=dr,J.includes=iP,J.indexOf=eN,J.inRange=Fk,J.invoke=wk,J.isArguments=s9,J.isArray=Rn,J.isArrayBuffer=FP,J.isArrayLike=cr,J.isArrayLikeObject=o1,J.isBoolean=jP,J.isBuffer=ui,J.isDate=VP,J.isElement=zP,J.isEmpty=UP,J.isEqual=$P,J.isEqualWith=KP,J.isError=uu,J.isFinite=QP,J.isFunction=Eo,J.isInteger=Em,J.isLength=tl,J.isMap=Sm,J.isMatch=WP,J.isMatchWith=ZP,J.isNaN=YP,J.isNative=GP,J.isNil=XP,J.isNull=qP,J.isNumber=_m,J.isObject=Y0,J.isObjectLike=e1,J.isPlainObject=a4,J.isRegExp=du,J.isSafeInteger=JP,J.isSet=Hm,J.isString=nl,J.isSymbol=Er,J.isTypedArray=xa,J.isUndefined=ek,J.isWeakMap=tk,J.isWeakSet=nk,J.join=iN,J.kebabCase=Kk,J.last=Gr,J.lastIndexOf=aN,J.lowerCase=Qk,J.lowerFirst=Wk,J.lt=rk,J.lte=ok,J.max=VT,J.maxBy=zT,J.mean=UT,J.meanBy=$T,J.min=KT,J.minBy=QT,J.stubArray=vu,J.stubFalse=bu,J.stubObject=RT,J.stubString=IT,J.stubTrue=LT,J.multiply=WT,J.nth=sN,J.noConflict=wT,J.noop=pu,J.now=Xs,J.pad=Zk,J.padEnd=Yk,J.padStart=Gk,J.parseInt=qk,J.random=jk,J.reduce=uP,J.reduceRight=dP,J.repeat=Xk,J.replace=Jk,J.result=Ok,J.round=ZT,J.runInContext=Be,J.sample=CP,J.size=AP,J.snakeCase=eT,J.some=mP,J.sortedIndex=gN,J.sortedIndexBy=hN,J.sortedIndexOf=AN,J.sortedLastIndex=mN,J.sortedLastIndexBy=pN,J.sortedLastIndexOf=vN,J.startCase=nT,J.startsWith=rT,J.subtract=YT,J.sum=GT,J.sumBy=qT,J.template=oT,J.times=DT,J.toFinite=So,J.toInteger=Pn,J.toLength=Bm,J.toLower=iT,J.toNumber=qr,J.toSafeInteger=ik,J.toString=v0,J.toUpper=aT,J.trim=sT,J.trimEnd=lT,J.trimStart=cT,J.truncate=uT,J.unescape=dT,J.uniqueId=PT,J.upperCase=fT,J.upperFirst=gu,J.each=hm,J.eachRight=Am,J.first=dm,mu(J,function(){var C={};return k2(J,function(p,_){r0.call(J.prototype,_)||(C[_]=p)}),C}(),{chain:!1}),J.VERSION=r,r1(["bind","bindKey","curry","curryRight","partial","partialRight"],function(C){J[C].placeholder=J}),r1(["drop","take"],function(C,p){Ut.prototype[C]=function(_){_=_===n?1:J0(Pn(_),0);var z=this.__filtered__&&!p?new Ut(this):this.clone();return z.__filtered__?z.__takeCount__=m1(_,z.__takeCount__):z.__views__.push({size:m1(_,T),type:C+(z.__dir__<0?"Right":"")}),z},Ut.prototype[C+"Right"]=function(_){return this.reverse()[C](_).reverse()}}),r1(["filter","map","takeWhile"],function(C,p){var _=p+1,z=_==k||_==D;Ut.prototype[C]=function(Z){var ae=this.clone();return ae.__iteratees__.push({iteratee:bn(Z,3),type:_}),ae.__filtered__=ae.__filtered__||z,ae}}),r1(["head","last"],function(C,p){var _="take"+(p?"Right":"");Ut.prototype[C]=function(){return this[_](1).value()[0]}}),r1(["initial","tail"],function(C,p){var _="drop"+(p?"":"Right");Ut.prototype[C]=function(){return this.__filtered__?new Ut(this):this[_](1)}}),Ut.prototype.compact=function(){return this.filter(dr)},Ut.prototype.find=function(C){return this.filter(C).head()},Ut.prototype.findLast=function(C){return this.reverse().find(C)},Ut.prototype.invokeMap=jn(function(C,p){return typeof C=="function"?new Ut(this):this.map(function(_){return e4(_,C,p)})}),Ut.prototype.reject=function(C){return this.filter(el(bn(C)))},Ut.prototype.slice=function(C,p){C=Pn(C);var _=this;return _.__filtered__&&(C>0||p<0)?new Ut(_):(C<0?_=_.takeRight(-C):C&&(_=_.drop(C)),p!==n&&(p=Pn(p),_=p<0?_.dropRight(-p):_.take(p-C)),_)},Ut.prototype.takeRightWhile=function(C){return this.reverse().takeWhile(C).reverse()},Ut.prototype.toArray=function(){return this.take(T)},k2(Ut.prototype,function(C,p){var _=/^(?:filter|find|map|reject)|While$/.test(p),z=/^(?:head|last)$/.test(p),Z=J[z?"take"+(p=="last"?"Right":""):p],ae=z||/^find/.test(p);Z&&(J.prototype[p]=function(){var me=this.__wrapped__,we=z?[1]:arguments,Ie=me instanceof Ut,ft=we[0],Ct=Ie||Rn(me),bt=function(Kn){var Gn=Z.apply(J,ar([Kn],we));return z&&zt?Gn[0]:Gn};Ct&&_&&typeof ft=="function"&&ft.length!=1&&(Ie=Ct=!1);var zt=this.__chain__,un=!!this.__actions__.length,xn=ae&&!zt,Tn=Ie&&!un;if(!ae&&Ct){me=Tn?me:new Ut(this);var wn=C.apply(me,we);return wn.__actions__.push({func:Gs,args:[bt],thisArg:n}),new o0(wn,zt)}return xn&&Tn?C.apply(this,we):(wn=this.thru(bt),xn?z?wn.value()[0]:wn.value():wn)})}),r1(["pop","push","shift","sort","splice","unshift"],function(C){var p=fo[C],_=/^(?:push|sort|unshift)$/.test(C)?"tap":"thru",z=/^(?:pop|shift)$/.test(C);J.prototype[C]=function(){var Z=arguments;if(z&&!this.__chain__){var ae=this.value();return p.apply(Rn(ae)?ae:[],Z)}return this[_](function(me){return p.apply(Rn(me)?me:[],Z)})}}),k2(Ut.prototype,function(C,p){var _=J[p];if(_){var z=_.name+"";r0.call(Ee,z)||(Ee[z]=[]),Ee[z].push({name:p,func:_})}}),Ee[Us(n,y).name]=[{name:"wrapper",func:n}],Ut.prototype.clone=d1,Ut.prototype.reverse=E1,Ut.prototype.value=G1,J.prototype.at=zN,J.prototype.chain=UN,J.prototype.commit=$N,J.prototype.next=KN,J.prototype.plant=WN,J.prototype.reverse=ZN,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=YN,J.prototype.first=J.prototype.head,mo&&(J.prototype[mo]=QN),J},N2=M7();R2?((R2.exports=N2)._=N2,j5._=N2):h1._=N2}).call(m0e)}(N4,N4.exports)),N4.exports}var L3=p0e();const G2=eo(L3);function v0e({input:e,type:t,lineVariant:n,lineTension:r}){const o=["#4e79a7","#f28e2b","#e15759","#76b7b2"],i=t==="doughnut"||t==="pie";return{labels:e.labels,datasets:e.datasets.map((a,s)=>{var l;return i?{label:a.label,data:a.data,backgroundColor:a.colors&&a.colors.length===a.data.length?(l=a.colors)==null?void 0:l.map(c=>Wu(c)):a.data.map((c,d)=>Wu(o[d%o.length])),borderColor:a.colors&&a.colors.length===a.data.length?a.colors:a.data.map((c,d)=>o[d%o.length]),borderWidth:2}:{label:a.label,data:a.data,backgroundColor:Wu(a.color||o[s%o.length]),borderColor:a.color||o[s%o.length],borderWidth:t==="line"?2:1,fill:n=="fill",tension:r??.4}})}}function b0e({barVariant:e,type:t}){const r={responsive:!0,plugins:{legend:{position:"bottom",labels:{font:{family:"Inter"},usePointStyle:!0,pointStyle:"circle",textAlign:"center"}},tooltip:{bodyFont:{family:"Inter"},titleFont:{family:"Inter"}}},scales:t==="doughnut"||t==="pie"?{}:{x:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}},y:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}}}};return t==="bar"&&e=="stacked"?L3.merge({},r,{scales:{x:{stacked:!0},y:{stacked:!0}}}):r}function Wu(e){if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)){const n=e.substring(1),r=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);return`rgba(${r}, ${o}, ${i}, 0.1)`}else if(e.startsWith("rgba")){const[n,r,o,i]=e.substring(5,e.length-1).split(",");return`rgba(${n}, ${r}, ${o}, 0.1)`}else if(e.startsWith("rgb")){const[n,r,o]=e.substring(4,e.length-1).split(",");return`rgba(${n}, ${r}, ${o}, 0.1)`}else throw new Error(`Unsupported color format: ${e}`)}let pb=!1;function y0e(){pb||(b5.register(wc,Ec,V6,yg,bg),pb=!0)}let vb=!1;function x0e(){vb||(b5.register(L4,yg,bg),vb=!0)}let bb=!1;function w0e(){bb||(b5.register(wc,Ec,j6,bi,yg,bg,zne),bb=!0)}const E0e=({type:e,data:t,options:n,barVariant:r,lineVariant:o,lineTension:i,width:a,height:s,backgroundColor:l,className:c=""})=>{e==="line"?w0e():e==="bar"?y0e():(e==="doughnut"||e==="pie")&&x0e();const d=v0e({input:t,type:e,lineVariant:o,lineTension:i}),f=L3.merge({maintainAspectRatio:!1},b0e({type:e,barVariant:r}),n),h={line:C0e,bar:g0e,doughnut:h0e,pie:A0e}[e];return $.jsx(h,{data:d,options:f,style:{width:a,height:s,backgroundColor:l},className:`awi-chart ${c}`})},El=(e,t)=>{const n=e;return isNaN(n.getTime())?"":t==="date"?n.toLocaleDateString(void 0,{day:"2-digit",month:"short",year:"numeric"}):n.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})},YS=({data:e,className:t,isFocused:n=!1,borderColor:r="#eaebee",focusedBorderColor:o="#ffcc00",focusedBorderThickness:i="2px",width:a="100%",height:s="100%"})=>{const l=n?`${i} solid ${o}`:`1px solid ${r}`;return $.jsxs("div",{className:"compact_event_card "+(t||"")+" "+(n?"focused":""),style:{width:a,height:s,border:l},children:[$.jsx("img",{src:e==null?void 0:e.frameUrl,alt:"Alert"}),$.jsxs("span",{className:"compact_event_card_content",children:[$.jsx("header",{children:$.jsx("h6",{children:e.appName})}),$.jsxs("section",{className:"compact_event_card_details",children:[$.jsx("h6",{children:e.location}),$.jsxs("span",{children:[$.jsx("p",{children:"Date"}),$.jsx("h6",{title:El(e==null?void 0:e.timeStamp,"date"),children:El(e==null?void 0:e.timeStamp,"date")})]}),$.jsxs("span",{children:[$.jsx("p",{children:"Time"}),$.jsx("h6",{title:El(e==null?void 0:e.timeStamp,"time"),className:"font_secondary",children:El(e==null?void 0:e.timeStamp,"time")})]})]}),$.jsxs("footer",{children:[$.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${e==null?void 0:e.color})`}}),$.jsx("p",{className:"font_secondary",children:e==null?void 0:e.severity})]})]})]})},S0e={s:"18.75rem",m:"25rem",l:"31.25rem"},f3=({className:e="",value:t=void 0,height:n="m",width:r="24rem",placement:o="flex-start",icon:i,backgroundColor:a,textColor:s,borderColor:l,disabledColor:c,iconPosition:d="after",iconColor:f="#292929",disabled:g=!1,onChange:h=()=>{},...m})=>(r=r||S0e[n],$.jsxs("div",{className:`input_wrapper h_${n} ${g?"disabled":""} icon_${d}`,style:{width:r,minWidth:r,justifyContent:o,"--c_input_text":s,"--c_input_border":l,"--c_input_background":a,"--c_input_background_disabled":c},children:[i&&$.jsx(Hi,{name:i,color:f}),$.jsx("input",{disabled:g,className:`input ${e}`,value:t,onChange:h,...m})]}));var Zu={exports:{}};/*!
|
|
291
291
|
Copyright (c) 2018 Jed Watson.
|
|
292
292
|
Licensed under the MIT License (MIT), see
|
|
293
293
|
http://jedwatson.github.io/classnames
|
package/dist/index.js
CHANGED
|
@@ -23880,8 +23880,7 @@ function w0e({
|
|
|
23880
23880
|
borderColor: a.color || o[s % o.length],
|
|
23881
23881
|
borderWidth: t === "line" ? 2 : 1,
|
|
23882
23882
|
fill: n == "fill",
|
|
23883
|
-
tension: r ?? 0.4
|
|
23884
|
-
pointRadius: 0
|
|
23883
|
+
tension: r ?? 0.4
|
|
23885
23884
|
};
|
|
23886
23885
|
}
|
|
23887
23886
|
)
|
package/dist/index.umd.js
CHANGED
|
@@ -288,7 +288,7 @@ __p += '`),Xn&&(bt+=`' +
|
|
|
288
288
|
function print() { __p += __j.call(arguments, '') }
|
|
289
289
|
`:`;
|
|
290
290
|
`)+bt+`return __p
|
|
291
|
-
}`;var jn=vD(function(){return qn(ae,dn+"return "+bt).apply(n,pe)});if(jn.source=bt,Yh(jn))throw jn;return jn}function Xfe(g){return S0(g).toLowerCase()}function Jfe(g){return S0(g).toUpperCase()}function ege(g,A,S){if(g=S0(g),g&&(S||A===n))return Gl(g);if(!g||!(A=Fr(A)))return g;var z=Tr(g),Z=Tr(A),ae=x5(z,Z),pe=e2(z,Z)+1;return zi(z,ae,pe).join("")}function tge(g,A,S){if(g=S0(g),g&&(S||A===n))return g.slice(0,$a(g)+1);if(!g||!(A=Fr(A)))return g;var z=Tr(g),Z=e2(z,Tr(A))+1;return zi(z,0,Z).join("")}function nge(g,A,S){if(g=S0(g),g&&(S||A===n))return g.replace(ot,"");if(!g||!(A=Fr(A)))return g;var z=Tr(g),Z=x5(z,Tr(A));return zi(z,Z).join("")}function rge(g,A){var S=I,z=L;if(X0(A)){var Z="separator"in A?A.separator:Z;S="length"in A?Rn(A.length):S,z="omission"in A?Fr(A.omission):z}g=S0(g);var ae=g.length;if(N2(g)){var pe=Tr(g);ae=pe.length}if(S>=ae)return g;var ye=S-P2(z);if(ye<1)return z;var Le=pe?zi(pe,0,ye).join(""):g.slice(0,ye);if(Z===n)return Le+z;if(pe&&(ye+=Le.length-ye),qh(Z)){if(g.slice(ye).search(Z)){var ft,gt=Le;for(Z.global||(Z=R2(Z.source,S0(At.exec(Z))+"g")),Z.lastIndex=0;ft=Z.exec(gt);)var bt=ft.index;Le=Le.slice(0,bt===n?ye:bt)}}else if(g.indexOf(Fr(Z),ye)!=ye){var Ut=Le.lastIndexOf(Z);Ut>-1&&(Le=Le.slice(0,Ut))}return Le+z}function oge(g){return g=S0(g),g&&Nt.test(g)?g.replace(Kt,ql):g}var ige=P5(function(g,A,S){return g+(S?" ":"")+A.toUpperCase()}),em=bL("toUpperCase");function AD(g,A,S){return g=S0(g),A=S?n:A,A===n?dh(g)?V8(g):Va(g):g.match(A)||[]}var vD=Un(function(g,A){try{return nr(g,n,A)}catch(S){return Yh(S)?S:new Mn(S)}}),age=Z2(function(g,A){return c1(A,function(S){S=a2(S),Q2(g,S,Zh(g[S],g))}),g});function sge(g){var A=g==null?0:g.length,S=_n();return g=A?F0(g,function(z){if(typeof z[1]!="function")throw new j1(a);return[S(z[0]),z[1]]}):[],Un(function(z){for(var Z=-1;++Z<A;){var ae=g[Z];if(nr(ae[0],this,z))return nr(ae[1],this,z)}})}function lge(g){return D8e(ao(g,f))}function tm(g){return function(){return g}}function cge(g,A){return g==null||g!==g?A:g}var uge=xL(),dge=xL(!0);function _r(g){return g}function nm(g){return XI(typeof g=="function"?g:ao(g,f))}function fge(g){return eL(ao(g,f))}function gge(g,A){return tL(g,ao(A,f))}var Cge=Un(function(g,A){return function(S){return a4(S,g,A)}}),hge=Un(function(g,A){return function(S){return a4(g,S,A)}});function rm(g,A,S){var z=k1(A),Z=J8(A,z);S==null&&!(X0(A)&&(Z.length||!z.length))&&(S=A,A=g,g=this,Z=J8(A,k1(A)));var ae=!(X0(S)&&"chain"in S)||!!S.chain,pe=Y2(g);return c1(Z,function(ye){var Le=A[ye];g[ye]=Le,pe&&(g.prototype[ye]=function(){var ft=this.__chain__;if(ae||ft){var gt=g(this.__wrapped__),bt=gt.__actions__=Ar(this.__actions__);return bt.push({func:Le,args:arguments,thisArg:g}),gt.__chain__=ft,gt}return Le.apply(g,mr([this.value()],arguments))})}),g}function mge(){return x1._===this&&(x1._=S5),this}function om(){}function pge(g){return g=Rn(g),Un(function(A){return nL(A,g)})}var Age=Nh(F0),vge=Nh(Fa),bge=Nh(v5);function bD(g){return zh(g)?za(a2(g)):Y8e(g)}function _ge(g){return function(A){return g==null?n:qa(g,A)}}var xge=wL(),yge=wL(!0);function im(){return[]}function am(){return!1}function wge(){return{}}function Ege(){return""}function Sge(){return!0}function Hge(g,A){if(g=Rn(g),g<1||g>j)return[];var S=T,z=w1(g,T);A=_n(A),g-=T;for(var Z=Zl(z,A);++S<g;)A(S);return Z}function Mge(g){return kn(g)?F0(g,a2):jr(g)?[g]:Ar(jL(S0(g)))}function Bge(g){var A=++hh;return S0(g)+A}var Oge=i7(function(g,A){return g+A},0),Ige=Ph("ceil"),Lge=i7(function(g,A){return g/A},1),Dge=Ph("floor");function kge(g){return g&&g.length?X8(g,_r,_h):n}function Nge(g,A){return g&&g.length?X8(g,_n(A,2),_h):n}function Pge(g){return b5(g,_r)}function Rge(g,A){return b5(g,_n(A,2))}function Tge(g){return g&&g.length?X8(g,_r,Eh):n}function Fge(g,A){return g&&g.length?X8(g,_n(A,2),Eh):n}var jge=i7(function(g,A){return g*A},1),Vge=Ph("round"),zge=i7(function(g,A){return g-A},0);function Uge(g){return g&&g.length?pr(g,_r):0}function $ge(g,A){return g&&g.length?pr(g,_n(A,2)):0}return J.after=fde,J.ary=qL,J.assign=Jde,J.assignIn=dD,J.assignInWith=A7,J.assignWith=efe,J.at=tfe,J.before=XL,J.bind=Zh,J.bindAll=age,J.bindKey=JL,J.castArray=wde,J.chain=ZL,J.chunk=D7e,J.compact=k7e,J.concat=N7e,J.cond=sge,J.conforms=lge,J.constant=tm,J.countBy=Uue,J.create=nfe,J.curry=eD,J.curryRight=tD,J.debounce=nD,J.defaults=rfe,J.defaultsDeep=ofe,J.defer=gde,J.delay=Cde,J.difference=P7e,J.differenceBy=R7e,J.differenceWith=T7e,J.drop=F7e,J.dropRight=j7e,J.dropRightWhile=V7e,J.dropWhile=z7e,J.fill=U7e,J.filter=Kue,J.flatMap=Zue,J.flatMapDeep=Gue,J.flatMapDepth=Yue,J.flatten=$L,J.flattenDeep=$7e,J.flattenDepth=K7e,J.flip=hde,J.flow=uge,J.flowRight=dge,J.fromPairs=Q7e,J.functions=dfe,J.functionsIn=ffe,J.groupBy=que,J.initial=Z7e,J.intersection=G7e,J.intersectionBy=Y7e,J.intersectionWith=q7e,J.invert=Cfe,J.invertBy=hfe,J.invokeMap=Jue,J.iteratee=nm,J.keyBy=ede,J.keys=k1,J.keysIn=br,J.map=f7,J.mapKeys=pfe,J.mapValues=Afe,J.matches=fge,J.matchesProperty=gge,J.memoize=C7,J.merge=vfe,J.mergeWith=fD,J.method=Cge,J.methodOf=hge,J.mixin=rm,J.negate=h7,J.nthArg=pge,J.omit=bfe,J.omitBy=_fe,J.once=mde,J.orderBy=tde,J.over=Age,J.overArgs=pde,J.overEvery=vge,J.overSome=bge,J.partial=Gh,J.partialRight=rD,J.partition=nde,J.pick=xfe,J.pickBy=gD,J.property=bD,J.propertyOf=_ge,J.pull=tue,J.pullAll=QL,J.pullAllBy=nue,J.pullAllWith=rue,J.pullAt=oue,J.range=xge,J.rangeRight=yge,J.rearg=Ade,J.reject=ide,J.remove=iue,J.rest=vde,J.reverse=Qh,J.sampleSize=sde,J.set=wfe,J.setWith=Efe,J.shuffle=lde,J.slice=aue,J.sortBy=dde,J.sortedUniq=gue,J.sortedUniqBy=Cue,J.split=Zfe,J.spread=bde,J.tail=hue,J.take=mue,J.takeRight=pue,J.takeRightWhile=Aue,J.takeWhile=vue,J.tap=kue,J.throttle=_de,J.thru=d7,J.toArray=lD,J.toPairs=CD,J.toPairsIn=hD,J.toPath=Mge,J.toPlainObject=uD,J.transform=Sfe,J.unary=xde,J.union=bue,J.unionBy=_ue,J.unionWith=xue,J.uniq=yue,J.uniqBy=wue,J.uniqWith=Eue,J.unset=Hfe,J.unzip=Wh,J.unzipWith=WL,J.update=Mfe,J.updateWith=Bfe,J.values=F5,J.valuesIn=Ofe,J.without=Sue,J.words=AD,J.wrap=yde,J.xor=Hue,J.xorBy=Mue,J.xorWith=Bue,J.zip=Oue,J.zipObject=Iue,J.zipObjectDeep=Lue,J.zipWith=Due,J.entries=CD,J.entriesIn=hD,J.extend=dD,J.extendWith=A7,rm(J,J),J.add=Oge,J.attempt=vD,J.camelCase=kfe,J.capitalize=mD,J.ceil=Ige,J.clamp=Ife,J.clone=Ede,J.cloneDeep=Hde,J.cloneDeepWith=Mde,J.cloneWith=Sde,J.conformsTo=Bde,J.deburr=pD,J.defaultTo=cge,J.divide=Lge,J.endsWith=Nfe,J.eq=Io,J.escape=Pfe,J.escapeRegExp=Rfe,J.every=$ue,J.find=Que,J.findIndex=zL,J.findKey=ife,J.findLast=Wue,J.findLastIndex=UL,J.findLastKey=afe,J.floor=Dge,J.forEach=GL,J.forEachRight=YL,J.forIn=sfe,J.forInRight=lfe,J.forOwn=cfe,J.forOwnRight=ufe,J.get=Xh,J.gt=Ode,J.gte=Ide,J.has=gfe,J.hasIn=Jh,J.head=KL,J.identity=_r,J.includes=Xue,J.indexOf=W7e,J.inRange=Lfe,J.invoke=mfe,J.isArguments=e9,J.isArray=kn,J.isArrayBuffer=Lde,J.isArrayLike=vr,J.isArrayLikeObject=u1,J.isBoolean=Dde,J.isBuffer=Ui,J.isDate=kde,J.isElement=Nde,J.isEmpty=Pde,J.isEqual=Rde,J.isEqualWith=Tde,J.isError=Yh,J.isFinite=Fde,J.isFunction=Y2,J.isInteger=oD,J.isLength=m7,J.isMap=iD,J.isMatch=jde,J.isMatchWith=Vde,J.isNaN=zde,J.isNative=Ude,J.isNil=Kde,J.isNull=$de,J.isNumber=aD,J.isObject=X0,J.isObjectLike=r1,J.isPlainObject=f4,J.isRegExp=qh,J.isSafeInteger=Qde,J.isSet=sD,J.isString=p7,J.isSymbol=jr,J.isTypedArray=T5,J.isUndefined=Wde,J.isWeakMap=Zde,J.isWeakSet=Gde,J.join=X7e,J.kebabCase=Tfe,J.last=lo,J.lastIndexOf=J7e,J.lowerCase=Ffe,J.lowerFirst=jfe,J.lt=Yde,J.lte=qde,J.max=kge,J.maxBy=Nge,J.mean=Pge,J.meanBy=Rge,J.min=Tge,J.minBy=Fge,J.stubArray=im,J.stubFalse=am,J.stubObject=wge,J.stubString=Ege,J.stubTrue=Sge,J.multiply=jge,J.nth=eue,J.noConflict=mge,J.noop=om,J.now=g7,J.pad=Vfe,J.padEnd=zfe,J.padStart=Ufe,J.parseInt=$fe,J.random=Dfe,J.reduce=rde,J.reduceRight=ode,J.repeat=Kfe,J.replace=Qfe,J.result=yfe,J.round=Vge,J.runInContext=Be,J.sample=ade,J.size=cde,J.snakeCase=Wfe,J.some=ude,J.sortedIndex=sue,J.sortedIndexBy=lue,J.sortedIndexOf=cue,J.sortedLastIndex=uue,J.sortedLastIndexBy=due,J.sortedLastIndexOf=fue,J.startCase=Gfe,J.startsWith=Yfe,J.subtract=zge,J.sum=Uge,J.sumBy=$ge,J.template=qfe,J.times=Hge,J.toFinite=q2,J.toInteger=Rn,J.toLength=cD,J.toLower=Xfe,J.toNumber=co,J.toSafeInteger=Xde,J.toString=S0,J.toUpper=Jfe,J.trim=ege,J.trimEnd=tge,J.trimStart=nge,J.truncate=rge,J.unescape=oge,J.uniqueId=Bge,J.upperCase=ige,J.upperFirst=em,J.each=GL,J.eachRight=YL,J.first=KL,rm(J,function(){var g={};return o2(J,function(A,S){a0.call(J.prototype,S)||(g[S]=A)}),g}(),{chain:!1}),J.VERSION=r,c1(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){J[g].placeholder=J}),c1(["drop","take"],function(g,A){$t.prototype[g]=function(S){S=S===n?1:n1(Rn(S),0);var z=this.__filtered__&&!A?new $t(this):this.clone();return z.__filtered__?z.__takeCount__=w1(S,z.__takeCount__):z.__views__.push({size:w1(S,T),type:g+(z.__dir__<0?"Right":"")}),z},$t.prototype[g+"Right"]=function(S){return this.reverse()[g](S).reverse()}}),c1(["filter","map","takeWhile"],function(g,A){var S=A+1,z=S==R||S==k;$t.prototype[g]=function(Z){var ae=this.clone();return ae.__iteratees__.push({iteratee:_n(Z,3),type:S}),ae.__filtered__=ae.__filtered__||z,ae}}),c1(["head","last"],function(g,A){var S="take"+(A?"Right":"");$t.prototype[g]=function(){return this[S](1).value()[0]}}),c1(["initial","tail"],function(g,A){var S="drop"+(A?"":"Right");$t.prototype[g]=function(){return this.__filtered__?new $t(this):this[S](1)}}),$t.prototype.compact=function(){return this.filter(_r)},$t.prototype.find=function(g){return this.filter(g).head()},$t.prototype.findLast=function(g){return this.reverse().find(g)},$t.prototype.invokeMap=Un(function(g,A){return typeof g=="function"?new $t(this):this.map(function(S){return a4(S,g,A)})}),$t.prototype.reject=function(g){return this.filter(h7(_n(g)))},$t.prototype.slice=function(g,A){g=Rn(g);var S=this;return S.__filtered__&&(g>0||A<0)?new $t(S):(g<0?S=S.takeRight(-g):g&&(S=S.drop(g)),A!==n&&(A=Rn(A),S=A<0?S.dropRight(-A):S.take(A-g)),S)},$t.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},$t.prototype.toArray=function(){return this.take(T)},o2($t.prototype,function(g,A){var S=/^(?:filter|find|map|reject)|While$/.test(A),z=/^(?:head|last)$/.test(A),Z=J[z?"take"+(A=="last"?"Right":""):A],ae=z||/^find/.test(A);Z&&(J.prototype[A]=function(){var pe=this.__wrapped__,ye=z?[1]:arguments,Le=pe instanceof $t,ft=ye[0],gt=Le||kn(pe),bt=function(Wn){var Xn=Z.apply(J,mr([Wn],ye));return z&&Ut?Xn[0]:Xn};gt&&S&&typeof ft=="function"&&ft.length!=1&&(Le=gt=!1);var Ut=this.__chain__,dn=!!this.__actions__.length,yn=ae&&!Ut,jn=Le&&!dn;if(!ae&>){pe=jn?pe:new $t(this);var wn=g.apply(pe,ye);return wn.__actions__.push({func:d7,args:[bt],thisArg:n}),new s0(wn,Ut)}return yn&&jn?g.apply(this,ye):(wn=this.thru(bt),yn?z?wn.value()[0]:wn.value():wn)})}),c1(["pop","push","shift","sort","splice","unshift"],function(g){var A=T2[g],S=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",z=/^(?:pop|shift)$/.test(g);J.prototype[g]=function(){var Z=arguments;if(z&&!this.__chain__){var ae=this.value();return A.apply(kn(ae)?ae:[],Z)}return this[S](function(pe){return A.apply(kn(pe)?pe:[],Z)})}}),o2($t.prototype,function(g,A){var S=J[A];if(S){var z=S.name+"";a0.call(we,z)||(we[z]=[]),we[z].push({name:A,func:S})}}),we[o7(n,_).name]=[{name:"wrapper",func:n}],$t.prototype.clone=h1,$t.prototype.reverse=L1,$t.prototype.value=rr,J.prototype.at=Nue,J.prototype.chain=Pue,J.prototype.commit=Rue,J.prototype.next=Tue,J.prototype.plant=jue,J.prototype.reverse=Vue,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=zue,J.prototype.first=J.prototype.head,U2&&(J.prototype[U2]=Fue),J},n2=Ch();Xo?((Xo.exports=n2)._=n2,Ql._=n2):x1._=n2}).call(XW)}(ws,ws.exports)),ws.exports}var Es=JW();const Fo=Do(Es);function eZ({input:e,type:t,lineVariant:n,lineTension:r}){const o=["#4e79a7","#f28e2b","#e15759","#76b7b2"],i=t==="doughnut"||t==="pie";return{labels:e.labels,datasets:e.datasets.map((a,s)=>{var l;return i?{label:a.label,data:a.data,backgroundColor:a.colors&&a.colors.length===a.data.length?(l=a.colors)==null?void 0:l.map(c=>Mu(c)):a.data.map((c,d)=>Mu(o[d%o.length])),borderColor:a.colors&&a.colors.length===a.data.length?a.colors:a.data.map((c,d)=>o[d%o.length]),borderWidth:2}:{label:a.label,data:a.data,backgroundColor:Mu(a.color||o[s%o.length]),borderColor:a.color||o[s%o.length],borderWidth:t==="line"?2:1,fill:n=="fill",tension:r??.4,pointRadius:0}})}}function tZ({barVariant:e,type:t}){const r={responsive:!0,plugins:{legend:{position:"bottom",labels:{font:{family:"Inter"},usePointStyle:!0,pointStyle:"circle",textAlign:"center"}},tooltip:{bodyFont:{family:"Inter"},titleFont:{family:"Inter"}}},scales:t==="doughnut"||t==="pie"?{}:{x:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}},y:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}}}};return t==="bar"&&e=="stacked"?Es.merge({},r,{scales:{x:{stacked:!0},y:{stacked:!0}}}):r}function Mu(e){if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)){const n=e.substring(1),r=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);return`rgba(${r}, ${o}, ${i}, 0.1)`}else if(e.startsWith("rgba")){const[n,r,o,i]=e.substring(5,e.length-1).split(",");return`rgba(${n}, ${r}, ${o}, 0.1)`}else if(e.startsWith("rgb")){const[n,r,o]=e.substring(4,e.length-1).split(",");return`rgba(${n}, ${r}, ${o}, 0.1)`}else throw new Error(`Unsupported color format: ${e}`)}let Eb=!1;function nZ(){Eb||(f9.register(U3,$3,V3,Hu,Su),Eb=!0)}let Sb=!1;function rZ(){Sb||(f9.register(xs,Hu,Su),Sb=!0)}let Hb=!1;function oZ(){Hb||(f9.register(U3,$3,j3,di,Hu,Su,yW),Hb=!0)}const iZ=({type:e,data:t,options:n,barVariant:r,lineVariant:o,lineTension:i,width:a,height:s,backgroundColor:l,className:c=""})=>{e==="line"?oZ():e==="bar"?nZ():(e==="doughnut"||e==="pie")&&rZ();const d=eZ({input:t,type:e,lineVariant:o,lineTension:i}),f=Es.merge({maintainAspectRatio:!1},tZ({type:e,barVariant:r}),n),h={line:ZW,bar:GW,doughnut:YW,pie:qW}[e];return $.jsx(h,{data:d,options:f,style:{width:a,height:s,backgroundColor:l},className:`awi-chart ${c}`})},G3=(e,t)=>{const n=e;return isNaN(n.getTime())?"":t==="date"?n.toLocaleDateString(void 0,{day:"2-digit",month:"short",year:"numeric"}):n.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})},Mb=({data:e,className:t,isFocused:n=!1,borderColor:r="#eaebee",focusedBorderColor:o="#ffcc00",focusedBorderThickness:i="2px",width:a="100%",height:s="100%"})=>{const l=n?`${i} solid ${o}`:`1px solid ${r}`;return $.jsxs("div",{className:"compact_event_card "+(t||"")+" "+(n?"focused":""),style:{width:a,height:s,border:l},children:[$.jsx("img",{src:e==null?void 0:e.frameUrl,alt:"Alert"}),$.jsxs("span",{className:"compact_event_card_content",children:[$.jsx("header",{children:$.jsx("h6",{children:e.appName})}),$.jsxs("section",{className:"compact_event_card_details",children:[$.jsx("h6",{children:e.location}),$.jsxs("span",{children:[$.jsx("p",{children:"Date"}),$.jsx("h6",{title:G3(e==null?void 0:e.timeStamp,"date"),children:G3(e==null?void 0:e.timeStamp,"date")})]}),$.jsxs("span",{children:[$.jsx("p",{children:"Time"}),$.jsx("h6",{title:G3(e==null?void 0:e.timeStamp,"time"),className:"font_secondary",children:G3(e==null?void 0:e.timeStamp,"time")})]})]}),$.jsxs("footer",{children:[$.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${e==null?void 0:e.color})`}}),$.jsx("p",{className:"font_secondary",children:e==null?void 0:e.severity})]})]})]})},aZ={s:"18.75rem",m:"25rem",l:"31.25rem"},Ss=({className:e="",value:t=void 0,height:n="m",width:r="24rem",placement:o="flex-start",icon:i,backgroundColor:a,textColor:s,borderColor:l,disabledColor:c,iconPosition:d="after",iconColor:f="#292929",disabled:C=!1,onChange:h=()=>{},...p})=>(r=r||aZ[n],$.jsxs("div",{className:`input_wrapper h_${n} ${C?"disabled":""} icon_${d}`,style:{width:r,minWidth:r,justifyContent:o,"--c_input_text":s,"--c_input_border":l,"--c_input_background":a,"--c_input_background_disabled":c},children:[i&&$.jsx(ii,{name:i,color:f}),$.jsx("input",{disabled:C,className:`input ${e}`,value:t,onChange:h,...p})]}));var Bu={exports:{}};/*!
|
|
291
|
+
}`;var jn=vD(function(){return qn(ae,dn+"return "+bt).apply(n,pe)});if(jn.source=bt,Yh(jn))throw jn;return jn}function Xfe(g){return S0(g).toLowerCase()}function Jfe(g){return S0(g).toUpperCase()}function ege(g,A,S){if(g=S0(g),g&&(S||A===n))return Gl(g);if(!g||!(A=Fr(A)))return g;var z=Tr(g),Z=Tr(A),ae=x5(z,Z),pe=e2(z,Z)+1;return zi(z,ae,pe).join("")}function tge(g,A,S){if(g=S0(g),g&&(S||A===n))return g.slice(0,$a(g)+1);if(!g||!(A=Fr(A)))return g;var z=Tr(g),Z=e2(z,Tr(A))+1;return zi(z,0,Z).join("")}function nge(g,A,S){if(g=S0(g),g&&(S||A===n))return g.replace(ot,"");if(!g||!(A=Fr(A)))return g;var z=Tr(g),Z=x5(z,Tr(A));return zi(z,Z).join("")}function rge(g,A){var S=I,z=L;if(X0(A)){var Z="separator"in A?A.separator:Z;S="length"in A?Rn(A.length):S,z="omission"in A?Fr(A.omission):z}g=S0(g);var ae=g.length;if(N2(g)){var pe=Tr(g);ae=pe.length}if(S>=ae)return g;var ye=S-P2(z);if(ye<1)return z;var Le=pe?zi(pe,0,ye).join(""):g.slice(0,ye);if(Z===n)return Le+z;if(pe&&(ye+=Le.length-ye),qh(Z)){if(g.slice(ye).search(Z)){var ft,gt=Le;for(Z.global||(Z=R2(Z.source,S0(At.exec(Z))+"g")),Z.lastIndex=0;ft=Z.exec(gt);)var bt=ft.index;Le=Le.slice(0,bt===n?ye:bt)}}else if(g.indexOf(Fr(Z),ye)!=ye){var Ut=Le.lastIndexOf(Z);Ut>-1&&(Le=Le.slice(0,Ut))}return Le+z}function oge(g){return g=S0(g),g&&Nt.test(g)?g.replace(Kt,ql):g}var ige=P5(function(g,A,S){return g+(S?" ":"")+A.toUpperCase()}),em=bL("toUpperCase");function AD(g,A,S){return g=S0(g),A=S?n:A,A===n?dh(g)?V8(g):Va(g):g.match(A)||[]}var vD=Un(function(g,A){try{return nr(g,n,A)}catch(S){return Yh(S)?S:new Mn(S)}}),age=Z2(function(g,A){return c1(A,function(S){S=a2(S),Q2(g,S,Zh(g[S],g))}),g});function sge(g){var A=g==null?0:g.length,S=_n();return g=A?F0(g,function(z){if(typeof z[1]!="function")throw new j1(a);return[S(z[0]),z[1]]}):[],Un(function(z){for(var Z=-1;++Z<A;){var ae=g[Z];if(nr(ae[0],this,z))return nr(ae[1],this,z)}})}function lge(g){return D8e(ao(g,f))}function tm(g){return function(){return g}}function cge(g,A){return g==null||g!==g?A:g}var uge=xL(),dge=xL(!0);function _r(g){return g}function nm(g){return XI(typeof g=="function"?g:ao(g,f))}function fge(g){return eL(ao(g,f))}function gge(g,A){return tL(g,ao(A,f))}var Cge=Un(function(g,A){return function(S){return a4(S,g,A)}}),hge=Un(function(g,A){return function(S){return a4(g,S,A)}});function rm(g,A,S){var z=k1(A),Z=J8(A,z);S==null&&!(X0(A)&&(Z.length||!z.length))&&(S=A,A=g,g=this,Z=J8(A,k1(A)));var ae=!(X0(S)&&"chain"in S)||!!S.chain,pe=Y2(g);return c1(Z,function(ye){var Le=A[ye];g[ye]=Le,pe&&(g.prototype[ye]=function(){var ft=this.__chain__;if(ae||ft){var gt=g(this.__wrapped__),bt=gt.__actions__=Ar(this.__actions__);return bt.push({func:Le,args:arguments,thisArg:g}),gt.__chain__=ft,gt}return Le.apply(g,mr([this.value()],arguments))})}),g}function mge(){return x1._===this&&(x1._=S5),this}function om(){}function pge(g){return g=Rn(g),Un(function(A){return nL(A,g)})}var Age=Nh(F0),vge=Nh(Fa),bge=Nh(v5);function bD(g){return zh(g)?za(a2(g)):Y8e(g)}function _ge(g){return function(A){return g==null?n:qa(g,A)}}var xge=wL(),yge=wL(!0);function im(){return[]}function am(){return!1}function wge(){return{}}function Ege(){return""}function Sge(){return!0}function Hge(g,A){if(g=Rn(g),g<1||g>j)return[];var S=T,z=w1(g,T);A=_n(A),g-=T;for(var Z=Zl(z,A);++S<g;)A(S);return Z}function Mge(g){return kn(g)?F0(g,a2):jr(g)?[g]:Ar(jL(S0(g)))}function Bge(g){var A=++hh;return S0(g)+A}var Oge=i7(function(g,A){return g+A},0),Ige=Ph("ceil"),Lge=i7(function(g,A){return g/A},1),Dge=Ph("floor");function kge(g){return g&&g.length?X8(g,_r,_h):n}function Nge(g,A){return g&&g.length?X8(g,_n(A,2),_h):n}function Pge(g){return b5(g,_r)}function Rge(g,A){return b5(g,_n(A,2))}function Tge(g){return g&&g.length?X8(g,_r,Eh):n}function Fge(g,A){return g&&g.length?X8(g,_n(A,2),Eh):n}var jge=i7(function(g,A){return g*A},1),Vge=Ph("round"),zge=i7(function(g,A){return g-A},0);function Uge(g){return g&&g.length?pr(g,_r):0}function $ge(g,A){return g&&g.length?pr(g,_n(A,2)):0}return J.after=fde,J.ary=qL,J.assign=Jde,J.assignIn=dD,J.assignInWith=A7,J.assignWith=efe,J.at=tfe,J.before=XL,J.bind=Zh,J.bindAll=age,J.bindKey=JL,J.castArray=wde,J.chain=ZL,J.chunk=D7e,J.compact=k7e,J.concat=N7e,J.cond=sge,J.conforms=lge,J.constant=tm,J.countBy=Uue,J.create=nfe,J.curry=eD,J.curryRight=tD,J.debounce=nD,J.defaults=rfe,J.defaultsDeep=ofe,J.defer=gde,J.delay=Cde,J.difference=P7e,J.differenceBy=R7e,J.differenceWith=T7e,J.drop=F7e,J.dropRight=j7e,J.dropRightWhile=V7e,J.dropWhile=z7e,J.fill=U7e,J.filter=Kue,J.flatMap=Zue,J.flatMapDeep=Gue,J.flatMapDepth=Yue,J.flatten=$L,J.flattenDeep=$7e,J.flattenDepth=K7e,J.flip=hde,J.flow=uge,J.flowRight=dge,J.fromPairs=Q7e,J.functions=dfe,J.functionsIn=ffe,J.groupBy=que,J.initial=Z7e,J.intersection=G7e,J.intersectionBy=Y7e,J.intersectionWith=q7e,J.invert=Cfe,J.invertBy=hfe,J.invokeMap=Jue,J.iteratee=nm,J.keyBy=ede,J.keys=k1,J.keysIn=br,J.map=f7,J.mapKeys=pfe,J.mapValues=Afe,J.matches=fge,J.matchesProperty=gge,J.memoize=C7,J.merge=vfe,J.mergeWith=fD,J.method=Cge,J.methodOf=hge,J.mixin=rm,J.negate=h7,J.nthArg=pge,J.omit=bfe,J.omitBy=_fe,J.once=mde,J.orderBy=tde,J.over=Age,J.overArgs=pde,J.overEvery=vge,J.overSome=bge,J.partial=Gh,J.partialRight=rD,J.partition=nde,J.pick=xfe,J.pickBy=gD,J.property=bD,J.propertyOf=_ge,J.pull=tue,J.pullAll=QL,J.pullAllBy=nue,J.pullAllWith=rue,J.pullAt=oue,J.range=xge,J.rangeRight=yge,J.rearg=Ade,J.reject=ide,J.remove=iue,J.rest=vde,J.reverse=Qh,J.sampleSize=sde,J.set=wfe,J.setWith=Efe,J.shuffle=lde,J.slice=aue,J.sortBy=dde,J.sortedUniq=gue,J.sortedUniqBy=Cue,J.split=Zfe,J.spread=bde,J.tail=hue,J.take=mue,J.takeRight=pue,J.takeRightWhile=Aue,J.takeWhile=vue,J.tap=kue,J.throttle=_de,J.thru=d7,J.toArray=lD,J.toPairs=CD,J.toPairsIn=hD,J.toPath=Mge,J.toPlainObject=uD,J.transform=Sfe,J.unary=xde,J.union=bue,J.unionBy=_ue,J.unionWith=xue,J.uniq=yue,J.uniqBy=wue,J.uniqWith=Eue,J.unset=Hfe,J.unzip=Wh,J.unzipWith=WL,J.update=Mfe,J.updateWith=Bfe,J.values=F5,J.valuesIn=Ofe,J.without=Sue,J.words=AD,J.wrap=yde,J.xor=Hue,J.xorBy=Mue,J.xorWith=Bue,J.zip=Oue,J.zipObject=Iue,J.zipObjectDeep=Lue,J.zipWith=Due,J.entries=CD,J.entriesIn=hD,J.extend=dD,J.extendWith=A7,rm(J,J),J.add=Oge,J.attempt=vD,J.camelCase=kfe,J.capitalize=mD,J.ceil=Ige,J.clamp=Ife,J.clone=Ede,J.cloneDeep=Hde,J.cloneDeepWith=Mde,J.cloneWith=Sde,J.conformsTo=Bde,J.deburr=pD,J.defaultTo=cge,J.divide=Lge,J.endsWith=Nfe,J.eq=Io,J.escape=Pfe,J.escapeRegExp=Rfe,J.every=$ue,J.find=Que,J.findIndex=zL,J.findKey=ife,J.findLast=Wue,J.findLastIndex=UL,J.findLastKey=afe,J.floor=Dge,J.forEach=GL,J.forEachRight=YL,J.forIn=sfe,J.forInRight=lfe,J.forOwn=cfe,J.forOwnRight=ufe,J.get=Xh,J.gt=Ode,J.gte=Ide,J.has=gfe,J.hasIn=Jh,J.head=KL,J.identity=_r,J.includes=Xue,J.indexOf=W7e,J.inRange=Lfe,J.invoke=mfe,J.isArguments=e9,J.isArray=kn,J.isArrayBuffer=Lde,J.isArrayLike=vr,J.isArrayLikeObject=u1,J.isBoolean=Dde,J.isBuffer=Ui,J.isDate=kde,J.isElement=Nde,J.isEmpty=Pde,J.isEqual=Rde,J.isEqualWith=Tde,J.isError=Yh,J.isFinite=Fde,J.isFunction=Y2,J.isInteger=oD,J.isLength=m7,J.isMap=iD,J.isMatch=jde,J.isMatchWith=Vde,J.isNaN=zde,J.isNative=Ude,J.isNil=Kde,J.isNull=$de,J.isNumber=aD,J.isObject=X0,J.isObjectLike=r1,J.isPlainObject=f4,J.isRegExp=qh,J.isSafeInteger=Qde,J.isSet=sD,J.isString=p7,J.isSymbol=jr,J.isTypedArray=T5,J.isUndefined=Wde,J.isWeakMap=Zde,J.isWeakSet=Gde,J.join=X7e,J.kebabCase=Tfe,J.last=lo,J.lastIndexOf=J7e,J.lowerCase=Ffe,J.lowerFirst=jfe,J.lt=Yde,J.lte=qde,J.max=kge,J.maxBy=Nge,J.mean=Pge,J.meanBy=Rge,J.min=Tge,J.minBy=Fge,J.stubArray=im,J.stubFalse=am,J.stubObject=wge,J.stubString=Ege,J.stubTrue=Sge,J.multiply=jge,J.nth=eue,J.noConflict=mge,J.noop=om,J.now=g7,J.pad=Vfe,J.padEnd=zfe,J.padStart=Ufe,J.parseInt=$fe,J.random=Dfe,J.reduce=rde,J.reduceRight=ode,J.repeat=Kfe,J.replace=Qfe,J.result=yfe,J.round=Vge,J.runInContext=Be,J.sample=ade,J.size=cde,J.snakeCase=Wfe,J.some=ude,J.sortedIndex=sue,J.sortedIndexBy=lue,J.sortedIndexOf=cue,J.sortedLastIndex=uue,J.sortedLastIndexBy=due,J.sortedLastIndexOf=fue,J.startCase=Gfe,J.startsWith=Yfe,J.subtract=zge,J.sum=Uge,J.sumBy=$ge,J.template=qfe,J.times=Hge,J.toFinite=q2,J.toInteger=Rn,J.toLength=cD,J.toLower=Xfe,J.toNumber=co,J.toSafeInteger=Xde,J.toString=S0,J.toUpper=Jfe,J.trim=ege,J.trimEnd=tge,J.trimStart=nge,J.truncate=rge,J.unescape=oge,J.uniqueId=Bge,J.upperCase=ige,J.upperFirst=em,J.each=GL,J.eachRight=YL,J.first=KL,rm(J,function(){var g={};return o2(J,function(A,S){a0.call(J.prototype,S)||(g[S]=A)}),g}(),{chain:!1}),J.VERSION=r,c1(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){J[g].placeholder=J}),c1(["drop","take"],function(g,A){$t.prototype[g]=function(S){S=S===n?1:n1(Rn(S),0);var z=this.__filtered__&&!A?new $t(this):this.clone();return z.__filtered__?z.__takeCount__=w1(S,z.__takeCount__):z.__views__.push({size:w1(S,T),type:g+(z.__dir__<0?"Right":"")}),z},$t.prototype[g+"Right"]=function(S){return this.reverse()[g](S).reverse()}}),c1(["filter","map","takeWhile"],function(g,A){var S=A+1,z=S==R||S==k;$t.prototype[g]=function(Z){var ae=this.clone();return ae.__iteratees__.push({iteratee:_n(Z,3),type:S}),ae.__filtered__=ae.__filtered__||z,ae}}),c1(["head","last"],function(g,A){var S="take"+(A?"Right":"");$t.prototype[g]=function(){return this[S](1).value()[0]}}),c1(["initial","tail"],function(g,A){var S="drop"+(A?"":"Right");$t.prototype[g]=function(){return this.__filtered__?new $t(this):this[S](1)}}),$t.prototype.compact=function(){return this.filter(_r)},$t.prototype.find=function(g){return this.filter(g).head()},$t.prototype.findLast=function(g){return this.reverse().find(g)},$t.prototype.invokeMap=Un(function(g,A){return typeof g=="function"?new $t(this):this.map(function(S){return a4(S,g,A)})}),$t.prototype.reject=function(g){return this.filter(h7(_n(g)))},$t.prototype.slice=function(g,A){g=Rn(g);var S=this;return S.__filtered__&&(g>0||A<0)?new $t(S):(g<0?S=S.takeRight(-g):g&&(S=S.drop(g)),A!==n&&(A=Rn(A),S=A<0?S.dropRight(-A):S.take(A-g)),S)},$t.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},$t.prototype.toArray=function(){return this.take(T)},o2($t.prototype,function(g,A){var S=/^(?:filter|find|map|reject)|While$/.test(A),z=/^(?:head|last)$/.test(A),Z=J[z?"take"+(A=="last"?"Right":""):A],ae=z||/^find/.test(A);Z&&(J.prototype[A]=function(){var pe=this.__wrapped__,ye=z?[1]:arguments,Le=pe instanceof $t,ft=ye[0],gt=Le||kn(pe),bt=function(Wn){var Xn=Z.apply(J,mr([Wn],ye));return z&&Ut?Xn[0]:Xn};gt&&S&&typeof ft=="function"&&ft.length!=1&&(Le=gt=!1);var Ut=this.__chain__,dn=!!this.__actions__.length,yn=ae&&!Ut,jn=Le&&!dn;if(!ae&>){pe=jn?pe:new $t(this);var wn=g.apply(pe,ye);return wn.__actions__.push({func:d7,args:[bt],thisArg:n}),new s0(wn,Ut)}return yn&&jn?g.apply(this,ye):(wn=this.thru(bt),yn?z?wn.value()[0]:wn.value():wn)})}),c1(["pop","push","shift","sort","splice","unshift"],function(g){var A=T2[g],S=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",z=/^(?:pop|shift)$/.test(g);J.prototype[g]=function(){var Z=arguments;if(z&&!this.__chain__){var ae=this.value();return A.apply(kn(ae)?ae:[],Z)}return this[S](function(pe){return A.apply(kn(pe)?pe:[],Z)})}}),o2($t.prototype,function(g,A){var S=J[A];if(S){var z=S.name+"";a0.call(we,z)||(we[z]=[]),we[z].push({name:A,func:S})}}),we[o7(n,_).name]=[{name:"wrapper",func:n}],$t.prototype.clone=h1,$t.prototype.reverse=L1,$t.prototype.value=rr,J.prototype.at=Nue,J.prototype.chain=Pue,J.prototype.commit=Rue,J.prototype.next=Tue,J.prototype.plant=jue,J.prototype.reverse=Vue,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=zue,J.prototype.first=J.prototype.head,U2&&(J.prototype[U2]=Fue),J},n2=Ch();Xo?((Xo.exports=n2)._=n2,Ql._=n2):x1._=n2}).call(XW)}(ws,ws.exports)),ws.exports}var Es=JW();const Fo=Do(Es);function eZ({input:e,type:t,lineVariant:n,lineTension:r}){const o=["#4e79a7","#f28e2b","#e15759","#76b7b2"],i=t==="doughnut"||t==="pie";return{labels:e.labels,datasets:e.datasets.map((a,s)=>{var l;return i?{label:a.label,data:a.data,backgroundColor:a.colors&&a.colors.length===a.data.length?(l=a.colors)==null?void 0:l.map(c=>Mu(c)):a.data.map((c,d)=>Mu(o[d%o.length])),borderColor:a.colors&&a.colors.length===a.data.length?a.colors:a.data.map((c,d)=>o[d%o.length]),borderWidth:2}:{label:a.label,data:a.data,backgroundColor:Mu(a.color||o[s%o.length]),borderColor:a.color||o[s%o.length],borderWidth:t==="line"?2:1,fill:n=="fill",tension:r??.4}})}}function tZ({barVariant:e,type:t}){const r={responsive:!0,plugins:{legend:{position:"bottom",labels:{font:{family:"Inter"},usePointStyle:!0,pointStyle:"circle",textAlign:"center"}},tooltip:{bodyFont:{family:"Inter"},titleFont:{family:"Inter"}}},scales:t==="doughnut"||t==="pie"?{}:{x:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}},y:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}}}};return t==="bar"&&e=="stacked"?Es.merge({},r,{scales:{x:{stacked:!0},y:{stacked:!0}}}):r}function Mu(e){if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)){const n=e.substring(1),r=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);return`rgba(${r}, ${o}, ${i}, 0.1)`}else if(e.startsWith("rgba")){const[n,r,o,i]=e.substring(5,e.length-1).split(",");return`rgba(${n}, ${r}, ${o}, 0.1)`}else if(e.startsWith("rgb")){const[n,r,o]=e.substring(4,e.length-1).split(",");return`rgba(${n}, ${r}, ${o}, 0.1)`}else throw new Error(`Unsupported color format: ${e}`)}let Eb=!1;function nZ(){Eb||(f9.register(U3,$3,V3,Hu,Su),Eb=!0)}let Sb=!1;function rZ(){Sb||(f9.register(xs,Hu,Su),Sb=!0)}let Hb=!1;function oZ(){Hb||(f9.register(U3,$3,j3,di,Hu,Su,yW),Hb=!0)}const iZ=({type:e,data:t,options:n,barVariant:r,lineVariant:o,lineTension:i,width:a,height:s,backgroundColor:l,className:c=""})=>{e==="line"?oZ():e==="bar"?nZ():(e==="doughnut"||e==="pie")&&rZ();const d=eZ({input:t,type:e,lineVariant:o,lineTension:i}),f=Es.merge({maintainAspectRatio:!1},tZ({type:e,barVariant:r}),n),h={line:ZW,bar:GW,doughnut:YW,pie:qW}[e];return $.jsx(h,{data:d,options:f,style:{width:a,height:s,backgroundColor:l},className:`awi-chart ${c}`})},G3=(e,t)=>{const n=e;return isNaN(n.getTime())?"":t==="date"?n.toLocaleDateString(void 0,{day:"2-digit",month:"short",year:"numeric"}):n.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})},Mb=({data:e,className:t,isFocused:n=!1,borderColor:r="#eaebee",focusedBorderColor:o="#ffcc00",focusedBorderThickness:i="2px",width:a="100%",height:s="100%"})=>{const l=n?`${i} solid ${o}`:`1px solid ${r}`;return $.jsxs("div",{className:"compact_event_card "+(t||"")+" "+(n?"focused":""),style:{width:a,height:s,border:l},children:[$.jsx("img",{src:e==null?void 0:e.frameUrl,alt:"Alert"}),$.jsxs("span",{className:"compact_event_card_content",children:[$.jsx("header",{children:$.jsx("h6",{children:e.appName})}),$.jsxs("section",{className:"compact_event_card_details",children:[$.jsx("h6",{children:e.location}),$.jsxs("span",{children:[$.jsx("p",{children:"Date"}),$.jsx("h6",{title:G3(e==null?void 0:e.timeStamp,"date"),children:G3(e==null?void 0:e.timeStamp,"date")})]}),$.jsxs("span",{children:[$.jsx("p",{children:"Time"}),$.jsx("h6",{title:G3(e==null?void 0:e.timeStamp,"time"),className:"font_secondary",children:G3(e==null?void 0:e.timeStamp,"time")})]})]}),$.jsxs("footer",{children:[$.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${e==null?void 0:e.color})`}}),$.jsx("p",{className:"font_secondary",children:e==null?void 0:e.severity})]})]})]})},aZ={s:"18.75rem",m:"25rem",l:"31.25rem"},Ss=({className:e="",value:t=void 0,height:n="m",width:r="24rem",placement:o="flex-start",icon:i,backgroundColor:a,textColor:s,borderColor:l,disabledColor:c,iconPosition:d="after",iconColor:f="#292929",disabled:C=!1,onChange:h=()=>{},...p})=>(r=r||aZ[n],$.jsxs("div",{className:`input_wrapper h_${n} ${C?"disabled":""} icon_${d}`,style:{width:r,minWidth:r,justifyContent:o,"--c_input_text":s,"--c_input_border":l,"--c_input_background":a,"--c_input_background_disabled":c},children:[i&&$.jsx(ii,{name:i,color:f}),$.jsx("input",{disabled:C,className:`input ${e}`,value:t,onChange:h,...p})]}));var Bu={exports:{}};/*!
|
|
292
292
|
Copyright (c) 2018 Jed Watson.
|
|
293
293
|
Licensed under the MIT License (MIT), see
|
|
294
294
|
http://jedwatson.github.io/classnames
|
package/package.json
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ambuj.bhaskar/react-component-library",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.19.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
],
|
|
9
|
-
"main": "dist/index.umd.js",
|
|
10
|
-
"module": "dist/index.js",
|
|
11
|
-
"types": "dist/index.d.ts",
|
|
12
|
-
"description": "A React component library for building UI components",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"import": "./dist/index.js",
|
|
16
|
-
"require": "./dist/index.cjs",
|
|
17
|
-
"default": "./dist/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./style.css": "./dist/assets/index.css"
|
|
20
|
-
},
|
|
21
|
-
"bin": {
|
|
22
|
-
"awi": "./bin/cli.js"
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"dev": "storybook dev -p 6006",
|
|
26
|
-
"build": "tsc -b && vite build",
|
|
27
|
-
"lint": "eslint .",
|
|
28
|
-
"preview": "vite preview",
|
|
29
|
-
"start": "storybook dev -p 6006",
|
|
30
|
-
"storybook": "storybook dev -p 6006",
|
|
31
|
-
"build-storybook": "storybook build",
|
|
32
|
-
"release": "tsc -b && vite build && npm publish --access public",
|
|
33
|
-
"cli": "node ./bin/cli.js"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"antd": "^5.23.0",
|
|
37
|
-
"chart.js": "^4.4.9",
|
|
38
|
-
"clsx": "^2.1.1",
|
|
39
|
-
"crypto-js": "^4.2.0",
|
|
40
|
-
"date-fns": "^4.1.0",
|
|
41
|
-
"dayjs": "^1.11.13",
|
|
42
|
-
"lodash": "^4.17.21",
|
|
43
|
-
"react-chartjs-2": "^5.3.0",
|
|
44
|
-
"react-hot-keys": "^2.7.3",
|
|
45
|
-
"react-hot-toast": "^2.5.2",
|
|
46
|
-
"react-hotkeys-hook": "^5.1.0",
|
|
47
|
-
"react-query": "^3.39.3",
|
|
48
|
-
"sass": "^1.89.0",
|
|
49
|
-
"sweetalert2-react-content": "^5.1.0",
|
|
50
|
-
"tinycolor2": "^1.6.0"
|
|
51
|
-
},
|
|
52
|
-
"peerDependencies": {
|
|
53
|
-
"react": ">=18.0.0",
|
|
54
|
-
"react-dom": ">=18.0.0"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@chromatic-com/storybook": "^3.2.3",
|
|
58
|
-
"@eslint/js": "^9.17.0",
|
|
59
|
-
"@newhighsco/storybook-addon-svgr": "^2.0.39",
|
|
60
|
-
"@storybook/addon-essentials": "^8.4.7",
|
|
61
|
-
"@storybook/addon-interactions": "^8.4.7",
|
|
62
|
-
"@storybook/blocks": "^8.4.7",
|
|
63
|
-
"@storybook/manager-api": "^8.4.7",
|
|
64
|
-
"@storybook/react": "^8.4.7",
|
|
65
|
-
"@storybook/react-vite": "^8.4.7",
|
|
66
|
-
"@storybook/test": "^8.4.7",
|
|
67
|
-
"@storybook/theming": "^8.4.7",
|
|
68
|
-
"@types/crypto-js": "^4.2.2",
|
|
69
|
-
"@types/lodash": "^4.17.15",
|
|
70
|
-
"@types/react": "^18.3.18",
|
|
71
|
-
"@types/react-dom": "^18.3.5",
|
|
72
|
-
"@types/tinycolor2": "^1.4.6",
|
|
73
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
74
|
-
"boxen": "^8.0.1",
|
|
75
|
-
"chalk": "^5.4.1",
|
|
76
|
-
"commander": "^11.0.0",
|
|
77
|
-
"eslint": "^9.17.0",
|
|
78
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
|
79
|
-
"eslint-plugin-react-refresh": "^0.4.16",
|
|
80
|
-
"eslint-plugin-storybook": "^0.11.1",
|
|
81
|
-
"globals": "^15.14.0",
|
|
82
|
-
"sass-embedded": "^1.89.0",
|
|
83
|
-
"storybook": "^8.4.7",
|
|
84
|
-
"typescript": "~5.6.2",
|
|
85
|
-
"typescript-eslint": "^8.18.2",
|
|
86
|
-
"vite": "^6.0.5",
|
|
87
|
-
"vite-plugin-dts": "^4.4.0",
|
|
88
|
-
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
89
|
-
"vite-plugin-svgr": "^4.3.0",
|
|
90
|
-
"vite-tsconfig-paths": "^5.1.4"
|
|
91
|
-
},
|
|
92
|
-
"eslintConfig": {
|
|
93
|
-
"extends": [
|
|
94
|
-
"plugin:storybook/recommended"
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@ambuj.bhaskar/react-component-library",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.19.6-alpha",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"main": "dist/index.umd.js",
|
|
10
|
+
"module": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"description": "A React component library for building UI components",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./style.css": "./dist/assets/index.css"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"awi": "./bin/cli.js"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"dev": "storybook dev -p 6006",
|
|
26
|
+
"build": "tsc -b && vite build",
|
|
27
|
+
"lint": "eslint .",
|
|
28
|
+
"preview": "vite preview",
|
|
29
|
+
"start": "storybook dev -p 6006",
|
|
30
|
+
"storybook": "storybook dev -p 6006",
|
|
31
|
+
"build-storybook": "storybook build",
|
|
32
|
+
"release": "tsc -b && vite build && npm publish --access public",
|
|
33
|
+
"cli": "node ./bin/cli.js"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"antd": "^5.23.0",
|
|
37
|
+
"chart.js": "^4.4.9",
|
|
38
|
+
"clsx": "^2.1.1",
|
|
39
|
+
"crypto-js": "^4.2.0",
|
|
40
|
+
"date-fns": "^4.1.0",
|
|
41
|
+
"dayjs": "^1.11.13",
|
|
42
|
+
"lodash": "^4.17.21",
|
|
43
|
+
"react-chartjs-2": "^5.3.0",
|
|
44
|
+
"react-hot-keys": "^2.7.3",
|
|
45
|
+
"react-hot-toast": "^2.5.2",
|
|
46
|
+
"react-hotkeys-hook": "^5.1.0",
|
|
47
|
+
"react-query": "^3.39.3",
|
|
48
|
+
"sass": "^1.89.0",
|
|
49
|
+
"sweetalert2-react-content": "^5.1.0",
|
|
50
|
+
"tinycolor2": "^1.6.0"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"react": ">=18.0.0",
|
|
54
|
+
"react-dom": ">=18.0.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@chromatic-com/storybook": "^3.2.3",
|
|
58
|
+
"@eslint/js": "^9.17.0",
|
|
59
|
+
"@newhighsco/storybook-addon-svgr": "^2.0.39",
|
|
60
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
61
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
62
|
+
"@storybook/blocks": "^8.4.7",
|
|
63
|
+
"@storybook/manager-api": "^8.4.7",
|
|
64
|
+
"@storybook/react": "^8.4.7",
|
|
65
|
+
"@storybook/react-vite": "^8.4.7",
|
|
66
|
+
"@storybook/test": "^8.4.7",
|
|
67
|
+
"@storybook/theming": "^8.4.7",
|
|
68
|
+
"@types/crypto-js": "^4.2.2",
|
|
69
|
+
"@types/lodash": "^4.17.15",
|
|
70
|
+
"@types/react": "^18.3.18",
|
|
71
|
+
"@types/react-dom": "^18.3.5",
|
|
72
|
+
"@types/tinycolor2": "^1.4.6",
|
|
73
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
74
|
+
"boxen": "^8.0.1",
|
|
75
|
+
"chalk": "^5.4.1",
|
|
76
|
+
"commander": "^11.0.0",
|
|
77
|
+
"eslint": "^9.17.0",
|
|
78
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
79
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
80
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
81
|
+
"globals": "^15.14.0",
|
|
82
|
+
"sass-embedded": "^1.89.0",
|
|
83
|
+
"storybook": "^8.4.7",
|
|
84
|
+
"typescript": "~5.6.2",
|
|
85
|
+
"typescript-eslint": "^8.18.2",
|
|
86
|
+
"vite": "^6.0.5",
|
|
87
|
+
"vite-plugin-dts": "^4.4.0",
|
|
88
|
+
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
89
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
90
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
91
|
+
},
|
|
92
|
+
"eslintConfig": {
|
|
93
|
+
"extends": [
|
|
94
|
+
"plugin:storybook/recommended"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
}
|