@wavelengthusaf/components 4.8.0 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6282,369 +6282,79 @@ var WavelengthMenu = ({
6282
6282
  };
6283
6283
  WavelengthMenu.displayName = "WavelengthMenu";
6284
6284
 
6285
- // src/components/snackbars/WavelengthSnackbar.tsx
6286
- var _Snackbar = require('@mui/material/Snackbar'); var _Snackbar2 = _interopRequireDefault(_Snackbar);
6287
- var _SnackbarContent = require('@mui/material/SnackbarContent'); var _SnackbarContent2 = _interopRequireDefault(_SnackbarContent);
6288
-
6289
-
6290
-
6291
- function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width: width2, icon, id }) {
6292
- const handleClose = () => {
6293
- setShow(false);
6294
- };
6295
- const defaultIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { size: "small", "aria-label": "close", color: "inherit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Close2.default, { fontSize: "small" }) });
6296
- const palette2 = getPalette();
6297
- const durationMs = durationSb ? durationSb * 1e3 : 4e3;
6298
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6299
- _Snackbar2.default,
6300
- {
6301
- id,
6302
- open: show,
6303
- onClose: handleClose,
6304
- autoHideDuration: durationMs,
6305
- anchorOrigin: {
6306
- vertical: vertyAlign ? vertyAlign : "bottom",
6307
- horizontal: horryAlign ? horryAlign : "center"
6308
- },
6309
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6310
- _SnackbarContent2.default,
6311
- {
6312
- style: {
6313
- backgroundColor: snackBarColor ? snackBarColor : palette2.primary,
6314
- color: textColor ? textColor : palette2.secondary,
6315
- display: "flex",
6316
- width: width2
6317
- },
6318
- message: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
6319
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: icon }),
6320
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "snackbar", children: message ? message : "Insert Message Here" })
6321
- ] }),
6322
- action: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { display: "flex", justifyContent: "center" }, onClick: handleClose, children: closeIcon ? closeIcon : defaultIcon })
6323
- }
6324
- )
6325
- }
6326
- );
6327
- }
6328
- WavelengthSnackbar.displayName = "WavelengthSnackbar";
6329
-
6330
- // src/components/snackbars/WavelengthStandardSnackbar.tsx
6331
-
6332
-
6333
-
6334
- function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width: width2, message, customVertyAlign, toggleShow, closeIcon, id }) {
6335
- const handleClose = () => {
6336
- toggleShow(false);
6337
- };
6338
- const durationMs = durationSb ? durationSb * 1e3 : 4e3;
6339
- let bgColor = "";
6340
- if (type === "success") {
6341
- bgColor = "#25ab21";
6342
- } else if (type === "error") {
6343
- bgColor = "#FF4646";
6344
- } else if (type === "disabled") {
6345
- bgColor = "#737373";
6346
- }
6347
- const sIcon = icon ? icon : "";
6348
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6349
- _Snackbar2.default,
6350
- {
6351
- id,
6352
- sx: { marginTop: customVertyAlign ? `${customVertyAlign}` : "", zIndex: 1400 },
6353
- open: show,
6354
- onClose: handleClose,
6355
- autoHideDuration: durationMs,
6356
- anchorOrigin: {
6357
- vertical: vertyAlign ? vertyAlign : "top",
6358
- horizontal: horryAlign ? horryAlign : "center"
6359
- },
6360
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6361
- _SnackbarContent2.default,
6362
- {
6363
- style: {
6364
- backgroundColor: bgColor,
6365
- borderRadius: "1px"
6366
- //color: props.textColor ? props.textColor : palette.secondary,
6367
- },
6368
- sx: { paddingTop: "0px", paddingBottom: "0px" },
6369
- message: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6370
- "div",
6371
- {
6372
- style: {
6373
- display: "grid",
6374
- gridTemplateColumns: "1fr 1fr 1fr 1fr 1fr",
6375
- width: width2
6376
- },
6377
- children: [
6378
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
6379
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { marginTop: "5px" }, children: sIcon }),
6380
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
6381
- ] }),
6382
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { gridColumnStart: 6 }, onClick: handleClose, children: closeIcon })
6383
- ]
6384
- }
6385
- )
6386
- }
6387
- )
6388
- }
6389
- );
6390
- }
6391
- WavelengthStandardSnackbar.displayName = "WavelengthStandardSnackbar";
6392
-
6393
- // src/components/snackbars/WavelengthTestSnackbar.tsx
6394
-
6285
+ // src/components/modals/WavelengthPagination.tsx
6395
6286
 
6396
6287
 
6397
-
6398
- var useOutsideClick = (callback) => {
6288
+ var WavelengthPagination = ({
6289
+ testProp,
6290
+ children,
6291
+ // Style argument
6292
+ customStyle: customStyle2,
6293
+ variant,
6294
+ textColor,
6295
+ font,
6296
+ fontSize,
6297
+ border: border2,
6298
+ borderRadius: borderRadius2,
6299
+ padding: padding2,
6300
+ totalPages,
6301
+ currentPage,
6302
+ activeColor,
6303
+ activeTextColor,
6304
+ backgroundColor: backgroundColor2,
6305
+ disabledColor,
6306
+ onPageChange,
6307
+ ...rest
6308
+ // This rest operator includes className, style, onClick, etc.
6309
+ }) => {
6399
6310
  const ref = _react.useRef.call(void 0, null);
6311
+ const syncAttribute = (attribute, value) => {
6312
+ const el = ref.current;
6313
+ if (!el) return;
6314
+ el.setAttribute(attribute, value);
6315
+ };
6400
6316
  _react.useEffect.call(void 0, () => {
6401
- const handleClickOutside = (event) => {
6402
- if (ref.current && !ref.current.contains(event.target)) {
6403
- callback();
6317
+ const el = ref.current;
6318
+ if (!el) return;
6319
+ el.customStyles = customStyle2;
6320
+ syncAttribute("variant", variant || "");
6321
+ syncAttribute("text-color", textColor || "");
6322
+ syncAttribute("font", font || "");
6323
+ syncAttribute("font-size", fontSize || "");
6324
+ syncAttribute("border", border2 || "");
6325
+ syncAttribute("border-radius", borderRadius2 || "");
6326
+ syncAttribute("padding", padding2 || "");
6327
+ syncAttribute("active-color", activeColor || "");
6328
+ syncAttribute("active-text-color", activeTextColor || "");
6329
+ syncAttribute("background-color", backgroundColor2 || "");
6330
+ syncAttribute("disabled-color", disabledColor || "");
6331
+ syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess', _39 => _39.toString, 'call', _40 => _40()]) || "");
6332
+ syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess', _41 => _41.toString, 'call', _42 => _42()]) || "");
6333
+ const handlePageChange = (e) => {
6334
+ if (onPageChange) {
6335
+ onPageChange(e.detail.page);
6404
6336
  }
6405
6337
  };
6406
- document.addEventListener("mouseup", handleClickOutside);
6407
- document.addEventListener("touchend", handleClickOutside);
6338
+ el.addEventListener("page-change", handlePageChange);
6408
6339
  return () => {
6409
- document.removeEventListener("mouseup", handleClickOutside);
6410
- document.removeEventListener("touchend", handleClickOutside);
6340
+ el.removeEventListener("page-change", handlePageChange);
6411
6341
  };
6412
- }, [callback]);
6413
- return ref;
6342
+ }, [testProp, textColor, font, fontSize, border2, borderRadius2, padding2, variant, totalPages, currentPage, activeColor, activeTextColor, backgroundColor2, disabledColor, onPageChange]);
6343
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-pagination", { ref, variant, "total-pages": totalPages, "current-page": currentPage, ...rest });
6414
6344
  };
6415
- function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, customVertyAlign, width: width2, img, id }) {
6416
- const ref = useOutsideClick(() => {
6417
- toggleOpen(false);
6418
- });
6419
- let bgColor = "";
6420
- if (type === "success") {
6421
- bgColor = "#25ab21";
6422
- } else if (type === "error") {
6423
- bgColor = "#FF4646";
6424
- } else if (type === "disabled") {
6425
- bgColor = "#737373";
6426
- }
6427
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: isPopUpOpen && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6428
- _Box2.default,
6429
- {
6430
- id,
6431
- sx: { position: "fixed", right: "auto", top: "24px", left: "50%", transform: "translateX(-50%)" },
6432
- ref,
6433
- style: {
6434
- height: "50px",
6435
- width: width2,
6436
- backgroundColor: bgColor,
6437
- borderRadius: "1px",
6438
- display: "flex",
6439
- justifyContent: "space-between",
6440
- alignItems: "center",
6441
- paddingRight: "20px",
6442
- paddingLeft: "20px",
6443
- zIndex: 2800,
6444
- marginTop: customVertyAlign ? `${customVertyAlign}` : ""
6445
- },
6446
- children: [
6447
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { backgroundColor: "red" } }),
6448
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { color: "white", fontSize: "1rem" }, children: message }),
6449
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6450
- _Button2.default,
6451
- {
6452
- variant: "text",
6453
- onClick: () => {
6454
- toggleOpen(false);
6455
- },
6456
- children: img
6457
- }
6458
- )
6459
- ]
6460
- }
6461
- ) });
6462
- }
6463
- WavelengthTestSnackbar.displayName = "WavelengthTestSnackbar";
6345
+ WavelengthPagination.displayName = "WavelengthPagination";
6464
6346
 
6465
- // src/components/sliders/WavelengthSlider.tsx
6347
+ // src/index.ts
6466
6348
 
6467
- var _Slider = require('@mui/material/Slider'); var _Slider2 = _interopRequireDefault(_Slider);
6468
6349
 
6469
- function WavelengthSlider({ width: width2 = "300px", color: color2, valueDisplayed, marks, labelColor, value, id, maxVal = 100, minVal, step = 1, labelFunc, handleChange }) {
6470
- const on = valueDisplayed ? "on" : "off";
6471
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Box2.default, { sx: { width: width2 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6472
- _Slider2.default,
6473
- {
6474
- id,
6475
- "aria-label": "Custom marks",
6476
- value,
6477
- getAriaValueText: labelFunc,
6478
- step,
6479
- marks,
6480
- valueLabelDisplay: on,
6481
- max: maxVal,
6482
- min: minVal,
6483
- onChange: handleChange,
6484
- sx: {
6485
- color: color2,
6486
- "& .MuiSlider-markLabel": {
6487
- color: labelColor
6488
- }
6489
- }
6490
- }
6491
- ) });
6492
- }
6493
- WavelengthSlider.displayName = "WavelengthSlider";
6350
+ // src/components/pagination/WavelengthDefaultPagination.tsx
6494
6351
 
6495
- // src/components/carousels/WavelengthDefaultCarousel.tsx
6496
6352
 
6353
+ // src/components/pagination/WavelengthButtonPagination.tsx
6497
6354
 
6498
- var _NavigateBefore = require('@mui/icons-material/NavigateBefore'); var _NavigateBefore2 = _interopRequireDefault(_NavigateBefore);
6499
- var _NavigateNext = require('@mui/icons-material/NavigateNext'); var _NavigateNext2 = _interopRequireDefault(_NavigateNext);
6500
6355
 
6501
-
6502
- var _Card = require('@mui/material/Card'); var _Card2 = _interopRequireDefault(_Card);
6503
- var _CardContent = require('@mui/material/CardContent'); var _CardContent2 = _interopRequireDefault(_CardContent);
6504
- var _CardMedia = require('@mui/material/CardMedia'); var _CardMedia2 = _interopRequireDefault(_CardMedia);
6505
- var _CardActionArea = require('@mui/material/CardActionArea'); var _CardActionArea2 = _interopRequireDefault(_CardActionArea);
6506
-
6507
- var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight, cardWidth, id, name }) => {
6508
- const [currentIndex, setCurrentIndex] = _react.useState.call(void 0, 0);
6509
- const adjustButtonSize = buttonSize !== void 0 ? buttonSize : 70;
6510
- const adjustImageHeight = imageHeight !== void 0 ? imageHeight : 250;
6511
- const adjustImageWidth = imageWidth !== void 0 ? imageWidth : 300;
6512
- const adjustCardHeight = cardHeight !== void 0 ? cardHeight : 345;
6513
- const adjustCardWidth = cardWidth !== void 0 ? cardWidth : 300;
6514
- const handleNext = () => {
6515
- setCurrentIndex((prevIndex) => (prevIndex + 1) % items.length);
6516
- };
6517
- const handlePrev = () => {
6518
- setCurrentIndex((prevIndex) => (prevIndex - 1 + items.length) % items.length);
6519
- };
6520
- const handleClick = () => {
6521
- window.open(items[currentIndex].path, "_blank");
6522
- };
6523
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6524
- _Grid2.default,
6525
- {
6526
- container: true,
6527
- spacing: 1,
6528
- sx: {
6529
- alignItems: "center"
6530
- },
6531
- children: [
6532
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _IconButton2.default, { onClick: handlePrev, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _NavigateBefore2.default, { style: { fontSize: adjustButtonSize } }) }) }),
6533
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6534
- _Card2.default,
6535
- {
6536
- sx: {
6537
- maxWidth: adjustCardWidth,
6538
- maxHeight: adjustCardHeight
6539
- },
6540
- children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardActionArea2.default, { onClick: handleClick, children: [
6541
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CardMedia2.default, { sx: { height: adjustImageHeight, width: adjustImageWidth }, image: items[currentIndex].image }),
6542
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardContent2.default, { children: [
6543
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Typography2.default, { variant: "h4", children: items[currentIndex].title }),
6544
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Typography2.default, { variant: "body1", children: items[currentIndex].description })
6545
- ] })
6546
- ] })
6547
- }
6548
- ),
6549
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _IconButton2.default, { onClick: handleNext, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _NavigateNext2.default, { style: { fontSize: adjustButtonSize } }) }) })
6550
- ]
6551
- }
6552
- ) }) });
6553
- };
6554
- DefaultCarousel.displayName = "DefaultCarousel";
6555
-
6556
- // src/components/carousels/WavelengthSliderCarousel.tsx
6557
-
6558
-
6559
-
6560
-
6561
-
6562
-
6563
-
6564
- var delay = 2500;
6565
- var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth }) => {
6566
- const [index, setIndex] = _react.useState.call(void 0, 0);
6567
- const [isHovered, setIsHovered] = _react.useState.call(void 0, false);
6568
- _react.useEffect.call(void 0, () => {
6569
- setTimeout(() => setIndex((prevIndex) => prevIndex === items.length - 1 ? 0 : prevIndex + 1), delay);
6570
- return () => {
6571
- };
6572
- }, [index]);
6573
- const carouselCardWidth = items.length > 0 ? `calc(35% * ${items.length})` : "200%";
6574
- const adjustContHeight = contHeight !== void 0 ? contHeight : "100%";
6575
- const adjustContWidth = contWidth !== void 0 ? contWidth : "200%";
6576
- const adjustCardHeight = cardHeight !== void 0 ? cardHeight : 120;
6577
- const adjustCardWith = cardWidth !== void 0 ? cardWidth : 310;
6578
- const styles = {
6579
- carouselcontainer: {
6580
- overflow: "hidden",
6581
- position: "relative",
6582
- borderColor: "#4b5563",
6583
- height: adjustContHeight,
6584
- width: adjustContWidth,
6585
- minHeight: "280px",
6586
- minWidth: "640px",
6587
- borderRadius: "10px"
6588
- },
6589
- carouselTrackStyle: {
6590
- display: "flex",
6591
- position: "relative",
6592
- justifyContent: "center",
6593
- left: "0",
6594
- alignItems: "center",
6595
- gap: "5px",
6596
- width: carouselCardWidth,
6597
- height: "100%",
6598
- transition: "background-color 0.5s ease-in-out"
6599
- },
6600
- carouselCard: {
6601
- transition: "transform 0.3s ease, box-shadow 0.3s ease",
6602
- transform: isHovered ? "scale(0.9)" : "scale(1)",
6603
- boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
6604
- }
6605
- };
6606
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: styles.carouselcontainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6607
- _Grid2.default,
6608
- {
6609
- sx: {
6610
- display: "flex",
6611
- justifyContent: "center",
6612
- alignItems: "center"
6613
- },
6614
- container: true,
6615
- spacing: 0.5,
6616
- children: items.map((card) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6617
- _Card2.default,
6618
- {
6619
- sx: {
6620
- transition: "transform 0.3s ease, box-shadow 0.3s ease",
6621
- transform: isHovered ? "scale(0.9)" : "scale(1)",
6622
- boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
6623
- },
6624
- onMouseEnter: () => setIsHovered(true),
6625
- onMouseLeave: () => setIsHovered(false),
6626
- children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardActionArea2.default, { href: card.path, children: [
6627
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CardMedia2.default, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
6628
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardContent2.default, { children: [
6629
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { children: card.title }),
6630
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { children: card.description })
6631
- ] })
6632
- ] })
6633
- }
6634
- ) }, card.title))
6635
- }
6636
- ) }) });
6637
- };
6638
- SliderCardCarousel.displayName = "SliderCardCarousel";
6639
-
6640
- // src/components/pagination/WavelengthDefaultPagination.tsx
6641
-
6642
-
6643
- // src/components/pagination/WavelengthButtonPagination.tsx
6644
-
6645
-
6646
- var _ArrowBackIosNew = require('@mui/icons-material/ArrowBackIosNew'); var _ArrowBackIosNew2 = _interopRequireDefault(_ArrowBackIosNew);
6647
- var _ArrowForwardIos = require('@mui/icons-material/ArrowForwardIos'); var _ArrowForwardIos2 = _interopRequireDefault(_ArrowForwardIos);
6356
+ var _ArrowBackIosNew = require('@mui/icons-material/ArrowBackIosNew'); var _ArrowBackIosNew2 = _interopRequireDefault(_ArrowBackIosNew);
6357
+ var _ArrowForwardIos = require('@mui/icons-material/ArrowForwardIos'); var _ArrowForwardIos2 = _interopRequireDefault(_ArrowForwardIos);
6648
6358
 
6649
6359
 
6650
6360
  var MyDroplistItems = _styledcomponents2.default.call(void 0, "li")`
@@ -6936,6 +6646,361 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6936
6646
  WavelengthDefaultPagination.displayName = "WavelengthDefaultPagination";
6937
6647
  var WavelengthDefaultPagination_default = WavelengthDefaultPagination;
6938
6648
 
6649
+ // src/components/snackbars/WavelengthSnackbar.tsx
6650
+ var _Snackbar = require('@mui/material/Snackbar'); var _Snackbar2 = _interopRequireDefault(_Snackbar);
6651
+ var _SnackbarContent = require('@mui/material/SnackbarContent'); var _SnackbarContent2 = _interopRequireDefault(_SnackbarContent);
6652
+
6653
+
6654
+
6655
+ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width: width2, icon, id }) {
6656
+ const handleClose = () => {
6657
+ setShow(false);
6658
+ };
6659
+ const defaultIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { size: "small", "aria-label": "close", color: "inherit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Close2.default, { fontSize: "small" }) });
6660
+ const palette2 = getPalette();
6661
+ const durationMs = durationSb ? durationSb * 1e3 : 4e3;
6662
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6663
+ _Snackbar2.default,
6664
+ {
6665
+ id,
6666
+ open: show,
6667
+ onClose: handleClose,
6668
+ autoHideDuration: durationMs,
6669
+ anchorOrigin: {
6670
+ vertical: vertyAlign ? vertyAlign : "bottom",
6671
+ horizontal: horryAlign ? horryAlign : "center"
6672
+ },
6673
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6674
+ _SnackbarContent2.default,
6675
+ {
6676
+ style: {
6677
+ backgroundColor: snackBarColor ? snackBarColor : palette2.primary,
6678
+ color: textColor ? textColor : palette2.secondary,
6679
+ display: "flex",
6680
+ width: width2
6681
+ },
6682
+ message: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
6683
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: icon }),
6684
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "snackbar", children: message ? message : "Insert Message Here" })
6685
+ ] }),
6686
+ action: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { display: "flex", justifyContent: "center" }, onClick: handleClose, children: closeIcon ? closeIcon : defaultIcon })
6687
+ }
6688
+ )
6689
+ }
6690
+ );
6691
+ }
6692
+ WavelengthSnackbar.displayName = "WavelengthSnackbar";
6693
+
6694
+ // src/components/snackbars/WavelengthStandardSnackbar.tsx
6695
+
6696
+
6697
+
6698
+ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width: width2, message, customVertyAlign, toggleShow, closeIcon, id }) {
6699
+ const handleClose = () => {
6700
+ toggleShow(false);
6701
+ };
6702
+ const durationMs = durationSb ? durationSb * 1e3 : 4e3;
6703
+ let bgColor = "";
6704
+ if (type === "success") {
6705
+ bgColor = "#25ab21";
6706
+ } else if (type === "error") {
6707
+ bgColor = "#FF4646";
6708
+ } else if (type === "disabled") {
6709
+ bgColor = "#737373";
6710
+ }
6711
+ const sIcon = icon ? icon : "";
6712
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6713
+ _Snackbar2.default,
6714
+ {
6715
+ id,
6716
+ sx: { marginTop: customVertyAlign ? `${customVertyAlign}` : "", zIndex: 1400 },
6717
+ open: show,
6718
+ onClose: handleClose,
6719
+ autoHideDuration: durationMs,
6720
+ anchorOrigin: {
6721
+ vertical: vertyAlign ? vertyAlign : "top",
6722
+ horizontal: horryAlign ? horryAlign : "center"
6723
+ },
6724
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6725
+ _SnackbarContent2.default,
6726
+ {
6727
+ style: {
6728
+ backgroundColor: bgColor,
6729
+ borderRadius: "1px"
6730
+ //color: props.textColor ? props.textColor : palette.secondary,
6731
+ },
6732
+ sx: { paddingTop: "0px", paddingBottom: "0px" },
6733
+ message: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6734
+ "div",
6735
+ {
6736
+ style: {
6737
+ display: "grid",
6738
+ gridTemplateColumns: "1fr 1fr 1fr 1fr 1fr",
6739
+ width: width2
6740
+ },
6741
+ children: [
6742
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
6743
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { marginTop: "5px" }, children: sIcon }),
6744
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
6745
+ ] }),
6746
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { gridColumnStart: 6 }, onClick: handleClose, children: closeIcon })
6747
+ ]
6748
+ }
6749
+ )
6750
+ }
6751
+ )
6752
+ }
6753
+ );
6754
+ }
6755
+ WavelengthStandardSnackbar.displayName = "WavelengthStandardSnackbar";
6756
+
6757
+ // src/components/snackbars/WavelengthTestSnackbar.tsx
6758
+
6759
+
6760
+
6761
+
6762
+ var useOutsideClick = (callback) => {
6763
+ const ref = _react.useRef.call(void 0, null);
6764
+ _react.useEffect.call(void 0, () => {
6765
+ const handleClickOutside = (event) => {
6766
+ if (ref.current && !ref.current.contains(event.target)) {
6767
+ callback();
6768
+ }
6769
+ };
6770
+ document.addEventListener("mouseup", handleClickOutside);
6771
+ document.addEventListener("touchend", handleClickOutside);
6772
+ return () => {
6773
+ document.removeEventListener("mouseup", handleClickOutside);
6774
+ document.removeEventListener("touchend", handleClickOutside);
6775
+ };
6776
+ }, [callback]);
6777
+ return ref;
6778
+ };
6779
+ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, customVertyAlign, width: width2, img, id }) {
6780
+ const ref = useOutsideClick(() => {
6781
+ toggleOpen(false);
6782
+ });
6783
+ let bgColor = "";
6784
+ if (type === "success") {
6785
+ bgColor = "#25ab21";
6786
+ } else if (type === "error") {
6787
+ bgColor = "#FF4646";
6788
+ } else if (type === "disabled") {
6789
+ bgColor = "#737373";
6790
+ }
6791
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: isPopUpOpen && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6792
+ _Box2.default,
6793
+ {
6794
+ id,
6795
+ sx: { position: "fixed", right: "auto", top: "24px", left: "50%", transform: "translateX(-50%)" },
6796
+ ref,
6797
+ style: {
6798
+ height: "50px",
6799
+ width: width2,
6800
+ backgroundColor: bgColor,
6801
+ borderRadius: "1px",
6802
+ display: "flex",
6803
+ justifyContent: "space-between",
6804
+ alignItems: "center",
6805
+ paddingRight: "20px",
6806
+ paddingLeft: "20px",
6807
+ zIndex: 2800,
6808
+ marginTop: customVertyAlign ? `${customVertyAlign}` : ""
6809
+ },
6810
+ children: [
6811
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { backgroundColor: "red" } }),
6812
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { color: "white", fontSize: "1rem" }, children: message }),
6813
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6814
+ _Button2.default,
6815
+ {
6816
+ variant: "text",
6817
+ onClick: () => {
6818
+ toggleOpen(false);
6819
+ },
6820
+ children: img
6821
+ }
6822
+ )
6823
+ ]
6824
+ }
6825
+ ) });
6826
+ }
6827
+ WavelengthTestSnackbar.displayName = "WavelengthTestSnackbar";
6828
+
6829
+ // src/components/sliders/WavelengthSlider.tsx
6830
+
6831
+ var _Slider = require('@mui/material/Slider'); var _Slider2 = _interopRequireDefault(_Slider);
6832
+
6833
+ function WavelengthSlider({ width: width2 = "300px", color: color2, valueDisplayed, marks, labelColor, value, id, maxVal = 100, minVal, step = 1, labelFunc, handleChange }) {
6834
+ const on = valueDisplayed ? "on" : "off";
6835
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Box2.default, { sx: { width: width2 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6836
+ _Slider2.default,
6837
+ {
6838
+ id,
6839
+ "aria-label": "Custom marks",
6840
+ value,
6841
+ getAriaValueText: labelFunc,
6842
+ step,
6843
+ marks,
6844
+ valueLabelDisplay: on,
6845
+ max: maxVal,
6846
+ min: minVal,
6847
+ onChange: handleChange,
6848
+ sx: {
6849
+ color: color2,
6850
+ "& .MuiSlider-markLabel": {
6851
+ color: labelColor
6852
+ }
6853
+ }
6854
+ }
6855
+ ) });
6856
+ }
6857
+ WavelengthSlider.displayName = "WavelengthSlider";
6858
+
6859
+ // src/components/carousels/WavelengthDefaultCarousel.tsx
6860
+
6861
+
6862
+ var _NavigateBefore = require('@mui/icons-material/NavigateBefore'); var _NavigateBefore2 = _interopRequireDefault(_NavigateBefore);
6863
+ var _NavigateNext = require('@mui/icons-material/NavigateNext'); var _NavigateNext2 = _interopRequireDefault(_NavigateNext);
6864
+
6865
+
6866
+ var _Card = require('@mui/material/Card'); var _Card2 = _interopRequireDefault(_Card);
6867
+ var _CardContent = require('@mui/material/CardContent'); var _CardContent2 = _interopRequireDefault(_CardContent);
6868
+ var _CardMedia = require('@mui/material/CardMedia'); var _CardMedia2 = _interopRequireDefault(_CardMedia);
6869
+ var _CardActionArea = require('@mui/material/CardActionArea'); var _CardActionArea2 = _interopRequireDefault(_CardActionArea);
6870
+
6871
+ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight, cardWidth, id, name }) => {
6872
+ const [currentIndex, setCurrentIndex] = _react.useState.call(void 0, 0);
6873
+ const adjustButtonSize = buttonSize !== void 0 ? buttonSize : 70;
6874
+ const adjustImageHeight = imageHeight !== void 0 ? imageHeight : 250;
6875
+ const adjustImageWidth = imageWidth !== void 0 ? imageWidth : 300;
6876
+ const adjustCardHeight = cardHeight !== void 0 ? cardHeight : 345;
6877
+ const adjustCardWidth = cardWidth !== void 0 ? cardWidth : 300;
6878
+ const handleNext = () => {
6879
+ setCurrentIndex((prevIndex) => (prevIndex + 1) % items.length);
6880
+ };
6881
+ const handlePrev = () => {
6882
+ setCurrentIndex((prevIndex) => (prevIndex - 1 + items.length) % items.length);
6883
+ };
6884
+ const handleClick = () => {
6885
+ window.open(items[currentIndex].path, "_blank");
6886
+ };
6887
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6888
+ _Grid2.default,
6889
+ {
6890
+ container: true,
6891
+ spacing: 1,
6892
+ sx: {
6893
+ alignItems: "center"
6894
+ },
6895
+ children: [
6896
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _IconButton2.default, { onClick: handlePrev, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _NavigateBefore2.default, { style: { fontSize: adjustButtonSize } }) }) }),
6897
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6898
+ _Card2.default,
6899
+ {
6900
+ sx: {
6901
+ maxWidth: adjustCardWidth,
6902
+ maxHeight: adjustCardHeight
6903
+ },
6904
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardActionArea2.default, { onClick: handleClick, children: [
6905
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CardMedia2.default, { sx: { height: adjustImageHeight, width: adjustImageWidth }, image: items[currentIndex].image }),
6906
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardContent2.default, { children: [
6907
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Typography2.default, { variant: "h4", children: items[currentIndex].title }),
6908
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Typography2.default, { variant: "body1", children: items[currentIndex].description })
6909
+ ] })
6910
+ ] })
6911
+ }
6912
+ ),
6913
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _IconButton2.default, { onClick: handleNext, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _NavigateNext2.default, { style: { fontSize: adjustButtonSize } }) }) })
6914
+ ]
6915
+ }
6916
+ ) }) });
6917
+ };
6918
+ DefaultCarousel.displayName = "DefaultCarousel";
6919
+
6920
+ // src/components/carousels/WavelengthSliderCarousel.tsx
6921
+
6922
+
6923
+
6924
+
6925
+
6926
+
6927
+
6928
+ var delay = 2500;
6929
+ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth }) => {
6930
+ const [index, setIndex] = _react.useState.call(void 0, 0);
6931
+ const [isHovered, setIsHovered] = _react.useState.call(void 0, false);
6932
+ _react.useEffect.call(void 0, () => {
6933
+ setTimeout(() => setIndex((prevIndex) => prevIndex === items.length - 1 ? 0 : prevIndex + 1), delay);
6934
+ return () => {
6935
+ };
6936
+ }, [index]);
6937
+ const carouselCardWidth = items.length > 0 ? `calc(35% * ${items.length})` : "200%";
6938
+ const adjustContHeight = contHeight !== void 0 ? contHeight : "100%";
6939
+ const adjustContWidth = contWidth !== void 0 ? contWidth : "200%";
6940
+ const adjustCardHeight = cardHeight !== void 0 ? cardHeight : 120;
6941
+ const adjustCardWith = cardWidth !== void 0 ? cardWidth : 310;
6942
+ const styles = {
6943
+ carouselcontainer: {
6944
+ overflow: "hidden",
6945
+ position: "relative",
6946
+ borderColor: "#4b5563",
6947
+ height: adjustContHeight,
6948
+ width: adjustContWidth,
6949
+ minHeight: "280px",
6950
+ minWidth: "640px",
6951
+ borderRadius: "10px"
6952
+ },
6953
+ carouselTrackStyle: {
6954
+ display: "flex",
6955
+ position: "relative",
6956
+ justifyContent: "center",
6957
+ left: "0",
6958
+ alignItems: "center",
6959
+ gap: "5px",
6960
+ width: carouselCardWidth,
6961
+ height: "100%",
6962
+ transition: "background-color 0.5s ease-in-out"
6963
+ },
6964
+ carouselCard: {
6965
+ transition: "transform 0.3s ease, box-shadow 0.3s ease",
6966
+ transform: isHovered ? "scale(0.9)" : "scale(1)",
6967
+ boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
6968
+ }
6969
+ };
6970
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: styles.carouselcontainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6971
+ _Grid2.default,
6972
+ {
6973
+ sx: {
6974
+ display: "flex",
6975
+ justifyContent: "center",
6976
+ alignItems: "center"
6977
+ },
6978
+ container: true,
6979
+ spacing: 0.5,
6980
+ children: items.map((card) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6981
+ _Card2.default,
6982
+ {
6983
+ sx: {
6984
+ transition: "transform 0.3s ease, box-shadow 0.3s ease",
6985
+ transform: isHovered ? "scale(0.9)" : "scale(1)",
6986
+ boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
6987
+ },
6988
+ onMouseEnter: () => setIsHovered(true),
6989
+ onMouseLeave: () => setIsHovered(false),
6990
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardActionArea2.default, { href: card.path, children: [
6991
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CardMedia2.default, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
6992
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardContent2.default, { children: [
6993
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { children: card.title }),
6994
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { children: card.description })
6995
+ ] })
6996
+ ] })
6997
+ }
6998
+ ) }, card.title))
6999
+ }
7000
+ ) }) });
7001
+ };
7002
+ SliderCardCarousel.displayName = "SliderCardCarousel";
7003
+
6939
7004
  // src/components/TextField/WavelengthInput.tsx
6940
7005
 
6941
7006
 
@@ -6979,7 +7044,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
6979
7044
  const internalRef = _react.useRef.call(void 0, null);
6980
7045
  _react.useImperativeHandle.call(void 0, ref, () => ({
6981
7046
  ...internalRef.current,
6982
- validate: () => _optionalChain([internalRef, 'access', _39 => _39.current, 'optionalAccess', _40 => _40.validate, 'optionalCall', _41 => _41(true)])
7047
+ validate: () => _optionalChain([internalRef, 'access', _43 => _43.current, 'optionalAccess', _44 => _44.validate, 'optionalCall', _45 => _45(true)])
6983
7048
  }));
6984
7049
  _react.useEffect.call(void 0, () => {
6985
7050
  const el = internalRef.current;
@@ -7056,7 +7121,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
7056
7121
  const el = internalRef.current;
7057
7122
  if (!el || !onBlurCallback) return;
7058
7123
  const handler = (e) => {
7059
- const input = _optionalChain([el, 'access', _42 => _42.shadowRoot, 'optionalAccess', _43 => _43.querySelector, 'call', _44 => _44("input")]);
7124
+ const input = _optionalChain([el, 'access', _46 => _46.shadowRoot, 'optionalAccess', _47 => _47.querySelector, 'call', _48 => _48("input")]);
7060
7125
  if (input) {
7061
7126
  onBlurCallback();
7062
7127
  }
@@ -7068,7 +7133,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
7068
7133
  const el = internalRef.current;
7069
7134
  if (!el || !onChange) return;
7070
7135
  const handler = (e) => {
7071
- const input = _optionalChain([el, 'access', _45 => _45.shadowRoot, 'optionalAccess', _46 => _46.querySelector, 'call', _47 => _47("input")]);
7136
+ const input = _optionalChain([el, 'access', _49 => _49.shadowRoot, 'optionalAccess', _50 => _50.querySelector, 'call', _51 => _51("input")]);
7072
7137
  if (input) {
7073
7138
  const synthetic = {
7074
7139
  ...e,
@@ -7271,7 +7336,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7271
7336
  const [noRowsOpen, setNoRowsOpen] = _react.useState.call(void 0, false);
7272
7337
  const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
7273
7338
  const [searchItem, setSearchItem] = _react.useState.call(void 0, "");
7274
- const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _48 => _48[0], 'optionalAccess', _49 => _49.key]) || "");
7339
+ const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _52 => _52[0], 'optionalAccess', _53 => _53.key]) || "");
7275
7340
  const [currentPage, setCurrentPage] = _react.useState.call(void 0, 1);
7276
7341
  const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
7277
7342
  const [editingMenuKey, setEditingMenuKey] = _react.useState.call(void 0, null);
@@ -7425,7 +7490,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7425
7490
  ] }, index)
7426
7491
  ] }, `headCell-${index}`);
7427
7492
  });
7428
- const rows = !_optionalChain([currentPageData, 'optionalAccess', _50 => _50.length]) || noRowsOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([currentPageData, 'optionalAccess', _51 => _51.map, 'call', _52 => _52((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
7493
+ const rows = !_optionalChain([currentPageData, 'optionalAccess', _54 => _54.length]) || noRowsOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([currentPageData, 'optionalAccess', _55 => _55.map, 'call', _56 => _56((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
7429
7494
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7430
7495
  StyledInput,
7431
7496
  {
@@ -7671,7 +7736,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
7671
7736
  }
7672
7737
  if (sortSubOrder) {
7673
7738
  result.map(
7674
- (item) => _optionalChain([item, 'access', _53 => _53.Details, 'optionalAccess', _54 => _54.fileObjects, 'access', _55 => _55.sort, 'call', _56 => _56((c, d) => {
7739
+ (item) => _optionalChain([item, 'access', _57 => _57.Details, 'optionalAccess', _58 => _58.fileObjects, 'access', _59 => _59.sort, 'call', _60 => _60((c, d) => {
7675
7740
  const valueC = c[sortSubKey];
7676
7741
  const valueD = d[sortSubKey];
7677
7742
  if (typeof valueC === "string" && typeof valueD === "string") {
@@ -7732,24 +7797,24 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
7732
7797
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
7733
7798
  });
7734
7799
  const subDataRows = (itemId) => {
7735
- return processedRowData.filter((item) => _optionalChain([item, 'access', _57 => _57.Details, 'optionalAccess', _58 => _58.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _59 => _59.Details, 'optionalAccess', _60 => _60.fileObjects, 'access', _61 => _61.map, 'call', _62 => _62((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
7800
+ return processedRowData.filter((item) => _optionalChain([item, 'access', _61 => _61.Details, 'optionalAccess', _62 => _62.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _63 => _63.Details, 'optionalAccess', _64 => _64.fileObjects, 'access', _65 => _65.map, 'call', _66 => _66((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
7736
7801
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7737
7802
  "path",
7738
7803
  {
7739
7804
  d: "M8.5 12L3.5 7L4.9 5.55L7.5 8.15V0H9.5V8.15L12.1 5.55L13.5 7L8.5 12ZM2.5 16C1.95 16 1.47917 15.8042 1.0875 15.4125C0.695833 15.0208 0.5 14.55 0.5 14V11H2.5V14H14.5V11H16.5V14C16.5 14.55 16.3042 15.0208 15.9125 15.4125C15.5208 15.8042 15.05 16 14.5 16H2.5Z",
7740
7805
  fill: "#1C1B1F"
7741
7806
  }
7742
- ) }) }) }, `td-${_optionalChain([item, 'access', _63 => _63.Details, 'optionalAccess', _64 => _64.relationId])}-${fileItem.id}`),
7807
+ ) }) }) }, `td-${_optionalChain([item, 'access', _67 => _67.Details, 'optionalAccess', _68 => _68.relationId])}-${fileItem.id}`),
7743
7808
  SubDataColumns.map((column) => {
7744
7809
  const columnKey = trimBeforePeriod2(column.key);
7745
7810
  const value = fileItem[columnKey];
7746
7811
  if (value !== void 0) {
7747
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _65 => _65.Details, 'optionalAccess', _66 => _66.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _67 => _67.Details, 'optionalAccess', _68 => _68.relationId])}-${fileItem.id}-${index}-${column.title}`);
7812
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _69 => _69.Details, 'optionalAccess', _70 => _70.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _71 => _71.Details, 'optionalAccess', _72 => _72.relationId])}-${fileItem.id}-${index}-${column.title}`);
7748
7813
  }
7749
7814
  })
7750
- ] }, `${item}-${_optionalChain([item, 'access', _69 => _69.Details, 'optionalAccess', _70 => _70.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _71 => _71.Details, 'optionalAccess', _72 => _72.relationId])}`));
7815
+ ] }, `${item}-${_optionalChain([item, 'access', _73 => _73.Details, 'optionalAccess', _74 => _74.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _75 => _75.Details, 'optionalAccess', _76 => _76.relationId])}`));
7751
7816
  };
7752
- const dataRows = _optionalChain([processedRowData, 'optionalAccess', _73 => _73.map, 'call', _74 => _74((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
7817
+ const dataRows = _optionalChain([processedRowData, 'optionalAccess', _77 => _77.map, 'call', _78 => _78((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
7753
7818
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
7754
7819
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ButtonStylingRow, { children: [
7755
7820
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
@@ -7803,7 +7868,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
7803
7868
  root = _client.createRoot.call(void 0, container);
7804
7869
  reactDropdownRoots.current.set(container, root);
7805
7870
  }
7806
- const item = _optionalChain([data, 'optionalAccess', _75 => _75.find, 'call', _76 => _76((item2) => String(item2.id) === String(itemId))]);
7871
+ const item = _optionalChain([data, 'optionalAccess', _79 => _79.find, 'call', _80 => _80((item2) => String(item2.id) === String(itemId))]);
7807
7872
  if (item && item.dropdown && root) {
7808
7873
  root.render(item.dropdown);
7809
7874
  }
@@ -7930,9 +7995,9 @@ var NestedDataTable = ({ data, columns, id }) => {
7930
7995
  const SubDataHeaders = SubDataColumns.map((column, index) => {
7931
7996
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
7932
7997
  });
7933
- const subDataRows = !_optionalChain([data, 'optionalAccess', _77 => _77.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
7998
+ const subDataRows = !_optionalChain([data, 'optionalAccess', _81 => _81.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
7934
7999
  const columnKey = trimBeforePeriod(column.key);
7935
- const value = _optionalChain([item, 'access', _78 => _78.Details, 'optionalAccess', _79 => _79[columnKey]]);
8000
+ const value = _optionalChain([item, 'access', _82 => _82.Details, 'optionalAccess', _83 => _83[columnKey]]);
7936
8001
  console.log("value: ", value);
7937
8002
  if (value !== void 0) {
7938
8003
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
@@ -7942,7 +8007,7 @@ var NestedDataTable = ({ data, columns, id }) => {
7942
8007
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
7943
8008
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
7944
8009
  ] });
7945
- const rows = !_optionalChain([data, 'optionalAccess', _80 => _80.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([data, 'optionalAccess', _81 => _81.map, 'call', _82 => _82((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
8010
+ const rows = !_optionalChain([data, 'optionalAccess', _84 => _84.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([data, 'optionalAccess', _85 => _85.map, 'call', _86 => _86((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
7946
8011
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
7947
8012
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: "\u2227" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: "\u2228" }) }),
7948
8013
  HeadColumns.map((column, index2) => {
@@ -8609,7 +8674,7 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
8609
8674
 
8610
8675
 
8611
8676
 
8612
- exports.ButtonIcon = ButtonIcon; exports.ButtonMenu = ButtonMenu; exports.ChildDataTable = ChildDataTable2; exports.ChildDataTableElement = _webcomponents.ChildDataTable; exports.DefaultCarousel = DefaultCarousel; exports.NestedDataTable = NestedDataTable; exports.SampleComponent = SampleComponent; exports.SampleComponentElement = _webcomponents.SampleComponent; exports.SliderCardCarousel = SliderCardCarousel; exports.WavelengthAccessAlert = WavelengthAccessAlert; exports.WavelengthAlert = WavelengthAlert; exports.WavelengthAppLogo = WavelengthAppLogo; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutoComplete = WavelengthAutoComplete; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBannerElement = _webcomponents.WavelengthBanner; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton; exports.WavelengthButtonElement = _webcomponents.WavelengthButton; exports.WavelengthCheckbox = WavelengthCheckbox; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataTable = WavelengthDataTable; exports.WavelengthDatePicker = WavelengthDatePicker; exports.WavelengthDatePickerElement = _webcomponents.WavelengthDatePicker; exports.WavelengthDefaultIcon = WavelengthDefaultIcon; exports.WavelengthDefaultPagination = WavelengthDefaultPagination; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFileDropZone = WavelengthFileDropZone; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthForm = WavelengthForm; exports.WavelengthFormElement = _webcomponents.WavelengthForm; exports.WavelengthInput = WavelengthInput; exports.WavelengthInputElement = _webcomponents.WavelengthInput; exports.WavelengthManyPlanes = WavelengthManyPlanes; exports.WavelengthMenu = WavelengthMenu; exports.WavelengthMultiSelectAutocomplete = WavelengthMultiSelectAutocomplete; exports.WavelengthMultiSelectAutocompleteElement = _webcomponents.WavelengthMultiSelectAutocomplete; exports.WavelengthNavBar = WavelengthNavBar; exports.WavelengthNotAvailablePage = WavelengthNotAvailablePage; exports.WavelengthNotificationPanel = WavelengthNotificationPanel; exports.WavelengthPermissionAlert = WavelengthPermissionAlert; exports.WavelengthPlaneTrail = WavelengthPlaneTrail; exports.WavelengthPopUpMenu = WavelengthPopUpMenu; exports.WavelengthProgressBar = WavelengthProgressBar; exports.WavelengthProgressBarElement = _webcomponents.WavelengthProgressBar; exports.WavelengthSearch = WavelengthSearch; exports.WavelengthSearchTextField = WavelengthSearchTextField; exports.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSnackbar = WavelengthSnackbar; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthSpinningOuterCircle = WavelengthSpinningOuterCircle; exports.WavelengthStandardSnackbar = WavelengthStandardSnackbar; exports.WavelengthStyledButton = WavelengthStyledButton; exports.WavelengthTestSnackbar = WavelengthTestSnackbar; exports.WavelengthTitleBar = WavelengthTitleBar; exports.WavelengthTitleBarElement = _webcomponents.WavelengthTitleBar; exports.WavelengthToolTip = WavelengthToolTip; exports.WavelengthWebSnackbar = WavelengthWebSnackbar; exports.add = add; exports.ascendingRange = ascendingRange; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.range = range; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
8677
+ exports.ButtonIcon = ButtonIcon; exports.ButtonMenu = ButtonMenu; exports.ChildDataTable = ChildDataTable2; exports.ChildDataTableElement = _webcomponents.ChildDataTable; exports.DefaultCarousel = DefaultCarousel; exports.NestedDataTable = NestedDataTable; exports.SampleComponent = SampleComponent; exports.SampleComponentElement = _webcomponents.SampleComponent; exports.SliderCardCarousel = SliderCardCarousel; exports.WavelengthAccessAlert = WavelengthAccessAlert; exports.WavelengthAlert = WavelengthAlert; exports.WavelengthAppLogo = WavelengthAppLogo; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutoComplete = WavelengthAutoComplete; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBannerElement = _webcomponents.WavelengthBanner; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton; exports.WavelengthButtonElement = _webcomponents.WavelengthButton; exports.WavelengthCheckbox = WavelengthCheckbox; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataTable = WavelengthDataTable; exports.WavelengthDatePicker = WavelengthDatePicker; exports.WavelengthDatePickerElement = _webcomponents.WavelengthDatePicker; exports.WavelengthDefaultIcon = WavelengthDefaultIcon; exports.WavelengthDefaultPagination = WavelengthDefaultPagination; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFileDropZone = WavelengthFileDropZone; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthForm = WavelengthForm; exports.WavelengthFormElement = _webcomponents.WavelengthForm; exports.WavelengthInput = WavelengthInput; exports.WavelengthInputElement = _webcomponents.WavelengthInput; exports.WavelengthManyPlanes = WavelengthManyPlanes; exports.WavelengthMenu = WavelengthMenu; exports.WavelengthMultiSelectAutocomplete = WavelengthMultiSelectAutocomplete; exports.WavelengthMultiSelectAutocompleteElement = _webcomponents.WavelengthMultiSelectAutocomplete; exports.WavelengthNavBar = WavelengthNavBar; exports.WavelengthNotAvailablePage = WavelengthNotAvailablePage; exports.WavelengthNotificationPanel = WavelengthNotificationPanel; exports.WavelengthPagination = WavelengthPagination; exports.WavelengthPaginationElement = _webcomponents.WavelengthPagination; exports.WavelengthPermissionAlert = WavelengthPermissionAlert; exports.WavelengthPlaneTrail = WavelengthPlaneTrail; exports.WavelengthPopUpMenu = WavelengthPopUpMenu; exports.WavelengthProgressBar = WavelengthProgressBar; exports.WavelengthProgressBarElement = _webcomponents.WavelengthProgressBar; exports.WavelengthSearch = WavelengthSearch; exports.WavelengthSearchTextField = WavelengthSearchTextField; exports.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSnackbar = WavelengthSnackbar; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthSpinningOuterCircle = WavelengthSpinningOuterCircle; exports.WavelengthStandardSnackbar = WavelengthStandardSnackbar; exports.WavelengthStyledButton = WavelengthStyledButton; exports.WavelengthTestSnackbar = WavelengthTestSnackbar; exports.WavelengthTitleBar = WavelengthTitleBar; exports.WavelengthTitleBarElement = _webcomponents.WavelengthTitleBar; exports.WavelengthToolTip = WavelengthToolTip; exports.WavelengthWebSnackbar = WavelengthWebSnackbar; exports.add = add; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
8613
8678
  /*! Bundled license information:
8614
8679
 
8615
8680
  react-is/cjs/react-is.production.min.js: