elseware-ui 3.0.1 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
- import React26, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useRef, useMemo, useCallback, useContext, Children, useId, createElement, isValidElement } from 'react';
1
+ import React26, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useRef, useMemo, useContext, useCallback, Children, useId, createElement, isValidElement } from 'react';
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
3
  import { twMerge } from 'tailwind-merge';
4
4
  import { AiOutlineLoading } from 'react-icons/ai/index.js';
5
5
  import { useField, ErrorMessage, Field, useFormikContext, FieldArray, Formik, Form as Form$1 } from 'formik';
6
6
  import { FaGripVertical, FaTrash, FaPlus, FaTimes, FaBars, FaSun, FaMoon, FaEyeSlash, FaEye, FaCircle } from 'react-icons/fa/index.js';
7
- import classNames74 from 'classnames';
7
+ import classNames73 from 'classnames';
8
8
  import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
9
9
  import { Image, CloudinaryContext as CloudinaryContext$1 } from 'cloudinary-react';
10
- import { MdUpload, MdOutlineDone, MdOutlineRemoveCircleOutline } from 'react-icons/md/index.js';
10
+ import { MdUpload, MdOutlineDone, MdOutlineRemoveCircleOutline, MdDragIndicator, MdKeyboardArrowLeft, MdKeyboardArrowRight, MdOutlineDelete } from 'react-icons/md/index.js';
11
11
  import { BsStarFill, BsStar, BsChevronDown, BsStarHalf, BsFillDiamondFill } from 'react-icons/bs/index.js';
12
12
  import { AnimatePresence, motion } from 'framer-motion';
13
13
  import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip, Line, AreaChart, Area, BarChart, Bar, PieChart, Pie, Cell, ScatterChart, Scatter } from 'recharts';
@@ -4718,7 +4718,7 @@ var init_python = __esm({
4718
4718
  });
4719
4719
 
4720
4720
  // node_modules/refractor/lang/jsx.js
4721
- function jsx218(Prism2) {
4721
+ function jsx217(Prism2) {
4722
4722
  Prism2.register(javascript);
4723
4723
  Prism2.register(markup);
4724
4724
  (function(Prism3) {
@@ -4851,14 +4851,14 @@ var init_jsx = __esm({
4851
4851
  "node_modules/refractor/lang/jsx.js"() {
4852
4852
  init_javascript();
4853
4853
  init_markup();
4854
- jsx218.displayName = "jsx";
4855
- jsx218.aliases = [];
4854
+ jsx217.displayName = "jsx";
4855
+ jsx217.aliases = [];
4856
4856
  }
4857
4857
  });
4858
4858
 
4859
4859
  // node_modules/refractor/lang/tsx.js
4860
4860
  function tsx(Prism2) {
4861
- Prism2.register(jsx218);
4861
+ Prism2.register(jsx217);
4862
4862
  Prism2.register(typescript);
4863
4863
  (function(Prism3) {
4864
4864
  var typescript2 = Prism3.util.clone(Prism3.languages.typescript);
@@ -6453,7 +6453,7 @@ var Backdrop = ({ children: children3, styles }) => {
6453
6453
  return /* @__PURE__ */ jsx(
6454
6454
  "div",
6455
6455
  {
6456
- className: classNames74({
6456
+ className: classNames73({
6457
6457
  "bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
6458
6458
  [`${styles}`]: styles
6459
6459
  }),
@@ -7043,7 +7043,7 @@ function renderTransitionChild(children3, className) {
7043
7043
  }
7044
7044
  const element7 = child;
7045
7045
  return React26.cloneElement(element7, {
7046
- className: classNames74(element7.props.className, className)
7046
+ className: classNames73(element7.props.className, className)
7047
7047
  });
7048
7048
  }
7049
7049
  function TransitionBase({
@@ -7063,7 +7063,7 @@ function TransitionBase({
7063
7063
  if (!mounted && unmountOnExit) {
7064
7064
  return null;
7065
7065
  }
7066
- const transitionClassName = classNames74(
7066
+ const transitionClassName = classNames73(
7067
7067
  visibility ? enterClassName : leaveClassName,
7068
7068
  active ? visibleClassName : hiddenClassName
7069
7069
  );
@@ -7416,7 +7416,7 @@ var InputFile = ({
7416
7416
  /* @__PURE__ */ jsx(
7417
7417
  "div",
7418
7418
  {
7419
- className: classNames74(
7419
+ className: classNames73(
7420
7420
  "border rounded-sm bg-eui-primary-300/10 px-3 pt-3 text-md text-eui-dark-100 cursor-pointer h-[50px] flex items-center",
7421
7421
  {
7422
7422
  "border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
@@ -7442,7 +7442,7 @@ var InputFile = ({
7442
7442
  InputLabel,
7443
7443
  {
7444
7444
  text: placeholder,
7445
- className: classNames74({
7445
+ className: classNames73({
7446
7446
  "absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
7447
7447
  "top-[0.7px]": showFloatingLabel,
7448
7448
  "top-[13px] text-base": !showFloatingLabel
@@ -7495,7 +7495,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
7495
7495
  /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(FieldArray, { name: name2, children: ({ push: push2, remove: remove2, move }) => /* @__PURE__ */ jsxs(
7496
7496
  "div",
7497
7497
  {
7498
- className: classNames74(
7498
+ className: classNames73(
7499
7499
  "flex w-full flex-col space-y-2 bg-eui-primary-300/10",
7500
7500
  shapes[resolvedShape]
7501
7501
  ),
@@ -7524,7 +7524,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
7524
7524
  ref: provided2.innerRef,
7525
7525
  ...draggableProps,
7526
7526
  style: draggableStyle,
7527
- className: classNames74(
7527
+ className: classNames73(
7528
7528
  "flex items-center space-x-2 bg-eui-primary-300/10 p-2",
7529
7529
  shapes[resolvedShape]
7530
7530
  ),
@@ -7535,7 +7535,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
7535
7535
  {
7536
7536
  name: `${name2}[${index3}]`,
7537
7537
  placeholder: `Item ${index3 + 1}`,
7538
- className: classNames74(
7538
+ className: classNames73(
7539
7539
  "peer h-[50px] w-full border bg-eui-primary-300/10 px-3 pb-2 pt-5 text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none eui-text-md",
7540
7540
  shapes[resolvedShape],
7541
7541
  hasItemError ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
@@ -7631,7 +7631,7 @@ var InputListGroup = ({
7631
7631
  return /* @__PURE__ */ jsxs(
7632
7632
  "div",
7633
7633
  {
7634
- className: classNames74(
7634
+ className: classNames73(
7635
7635
  "flex flex-col gap-2 bg-eui-primary-300/10 p-3",
7636
7636
  shapes[resolvedShape]
7637
7637
  ),
@@ -7643,7 +7643,7 @@ var InputListGroup = ({
7643
7643
  {
7644
7644
  name: `${name2}[${groupIndex}].name`,
7645
7645
  placeholder: `Group ${groupIndex + 1}`,
7646
- className: classNames74(
7646
+ className: classNames73(
7647
7647
  "h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
7648
7648
  shapes[resolvedShape],
7649
7649
  "border-eui-primary-400 focus:border-eui-secondary-500"
@@ -7674,7 +7674,7 @@ var InputListGroup = ({
7674
7674
  {
7675
7675
  ref: provided.innerRef,
7676
7676
  ...provided.droppableProps,
7677
- className: classNames74(
7677
+ className: classNames73(
7678
7678
  "space-y-2 bg-eui-primary-300/10 p-2",
7679
7679
  shapes[resolvedShape]
7680
7680
  ),
@@ -7694,7 +7694,7 @@ var InputListGroup = ({
7694
7694
  ref: provided2.innerRef,
7695
7695
  ...draggableProps,
7696
7696
  style: draggableStyle,
7697
- className: classNames74(
7697
+ className: classNames73(
7698
7698
  "flex items-center gap-2 bg-eui-primary-300/10 p-2",
7699
7699
  shapes[resolvedShape]
7700
7700
  ),
@@ -7705,7 +7705,7 @@ var InputListGroup = ({
7705
7705
  {
7706
7706
  name: `${itemsFieldName}[${itemIndex}]`,
7707
7707
  placeholder: `Item ${itemIndex + 1}`,
7708
- className: classNames74(
7708
+ className: classNames73(
7709
7709
  "h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
7710
7710
  shapes[resolvedShape],
7711
7711
  "border-eui-primary-400 focus:border-eui-secondary-500"
@@ -7913,7 +7913,11 @@ function Checkbox(checkboxProps) {
7913
7913
  checkedIconClassName,
7914
7914
  labelClassName
7915
7915
  } = checkboxProps;
7916
- const { shape: resolvedShape, variant: resolvedVariant, label: resolvedLabel } = useResolvedCheckboxConfig({
7916
+ const {
7917
+ shape: resolvedShape,
7918
+ variant: resolvedVariant,
7919
+ label: resolvedLabel
7920
+ } = useResolvedCheckboxConfig({
7917
7921
  label,
7918
7922
  placeholder,
7919
7923
  variant,
@@ -8070,7 +8074,7 @@ var DateSelector = ({
8070
8074
  ...field,
8071
8075
  ...props,
8072
8076
  placeholder,
8073
- className: classNames74({
8077
+ className: classNames73({
8074
8078
  "border border-eui-primary-400 peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:border-eui-secondary-500 focus:outline-none h-[50px]": true,
8075
8079
  "border-eui-danger-500": meta.touched && meta.error,
8076
8080
  "transition-all ease-in-out": true,
@@ -8083,8 +8087,18 @@ var DateSelector = ({
8083
8087
  ] });
8084
8088
  };
8085
8089
  var DateSelector_default = DateSelector;
8086
- var FormObserver = ({ formik, onChange }) => {
8090
+ function renderFormChildren(children3, formik) {
8091
+ return typeof children3 === "function" ? children3(formik) : children3;
8092
+ }
8093
+ function FormObservers({
8094
+ formik,
8095
+ onChange,
8096
+ onDirtyChange
8097
+ }) {
8087
8098
  const prevValuesRef = useRef(formik.values);
8099
+ useEffect(() => {
8100
+ onDirtyChange?.(formik.dirty);
8101
+ }, [formik.dirty, onDirtyChange]);
8088
8102
  useEffect(() => {
8089
8103
  if (!onChange) return;
8090
8104
  const currentValues = formik.values;
@@ -8101,24 +8115,17 @@ var FormObserver = ({ formik, onChange }) => {
8101
8115
  prevValuesRef.current = currentValues;
8102
8116
  }, [formik.values, onChange]);
8103
8117
  return null;
8104
- };
8105
- var FormObserver_default = FormObserver;
8106
- var DirtyObserver = ({ formik, onDirtyChange }) => {
8107
- useEffect(() => {
8108
- if (onDirtyChange) {
8109
- onDirtyChange(formik.dirty);
8110
- }
8111
- }, [formik.dirty, onDirtyChange]);
8112
- return null;
8113
- };
8114
- var DirtyObserver_default = DirtyObserver;
8115
- var UnsavedChangesGuard = ({ formik, enabled }) => {
8118
+ }
8119
+ function UnsavedChangesGuard({
8120
+ formik,
8121
+ enabled
8122
+ }) {
8116
8123
  useEffect(() => {
8117
8124
  if (!enabled) return;
8118
- const handleBeforeUnload = (e) => {
8125
+ const handleBeforeUnload = (event) => {
8119
8126
  if (!formik.dirty) return;
8120
- e.preventDefault();
8121
- e.returnValue = "";
8127
+ event.preventDefault();
8128
+ event.returnValue = "";
8122
8129
  };
8123
8130
  window.addEventListener("beforeunload", handleBeforeUnload);
8124
8131
  return () => {
@@ -8126,19 +8133,19 @@ var UnsavedChangesGuard = ({ formik, enabled }) => {
8126
8133
  };
8127
8134
  }, [formik.dirty, enabled]);
8128
8135
  return null;
8129
- };
8130
- var UnsavedChangesGuard_default = UnsavedChangesGuard;
8131
- var Form = ({
8136
+ }
8137
+ function Form({
8132
8138
  initialValues = {},
8133
8139
  validationSchema,
8134
8140
  enableReinitialize,
8135
8141
  children: children3,
8136
- styles,
8142
+ className,
8143
+ contentClassName,
8137
8144
  onSubmit,
8138
8145
  onChange,
8139
8146
  warnOnUnsavedChanges = false,
8140
8147
  onDirtyChange
8141
- }) => {
8148
+ }) {
8142
8149
  return /* @__PURE__ */ jsx(
8143
8150
  Formik,
8144
8151
  {
@@ -8148,61 +8155,129 @@ var Form = ({
8148
8155
  onSubmit: async (values, helpers) => {
8149
8156
  await onSubmit(values, helpers);
8150
8157
  },
8151
- children: (formik) => /* @__PURE__ */ jsxs(Form$1, { children: [
8152
- /* @__PURE__ */ jsx(UnsavedChangesGuard_default, { formik, enabled: warnOnUnsavedChanges }),
8153
- /* @__PURE__ */ jsx(DirtyObserver_default, { formik, onDirtyChange }),
8154
- /* @__PURE__ */ jsx(FormObserver_default, { formik, onChange }),
8155
- /* @__PURE__ */ jsx("div", { className: classNames74(styles), children: children3 })
8158
+ children: (formik) => /* @__PURE__ */ jsxs(Form$1, { className, children: [
8159
+ /* @__PURE__ */ jsx(UnsavedChangesGuard, { formik, enabled: warnOnUnsavedChanges }),
8160
+ /* @__PURE__ */ jsx(
8161
+ FormObservers,
8162
+ {
8163
+ formik,
8164
+ onChange,
8165
+ onDirtyChange
8166
+ }
8167
+ ),
8168
+ /* @__PURE__ */ jsx("div", { className: cn(contentClassName), children: renderFormChildren(children3, formik) })
8156
8169
  ] })
8157
8170
  }
8158
8171
  );
8172
+ }
8173
+
8174
+ // src/components/data-entry/form/form-response/base/FormResponse.styles.ts
8175
+ var formResponseSizeStyles = {
8176
+ xs: {
8177
+ root: "px-2 py-1",
8178
+ text: "text-xs"
8179
+ },
8180
+ sm: {
8181
+ root: "px-3 py-2",
8182
+ text: "text-sm"
8183
+ },
8184
+ md: {
8185
+ root: "px-4 py-2",
8186
+ text: "text-base"
8187
+ },
8188
+ lg: {
8189
+ root: "px-5 py-3",
8190
+ text: "text-lg"
8191
+ },
8192
+ xl: {
8193
+ root: "px-6 py-4",
8194
+ text: "text-xl"
8195
+ }
8159
8196
  };
8160
- var sizes = {
8161
- xs: "px-2 py-1 text-xs",
8162
- sm: "px-3 py-2 text-sm",
8163
- md: "px-4 py-2 text-base",
8164
- lg: "px-5 py-3 text-lg",
8165
- xl: "px-6 py-4 text-xl"
8166
- };
8197
+ function isTextClassName(token) {
8198
+ const styleToken = token.split(":").pop() ?? token;
8199
+ return styleToken.startsWith("text-");
8200
+ }
8201
+ function splitClassName(className) {
8202
+ const tokens = className.split(/\s+/).filter(Boolean);
8203
+ return {
8204
+ root: tokens.filter((token) => !isTextClassName(token)).join(" "),
8205
+ text: tokens.filter(isTextClassName).join(" ")
8206
+ };
8207
+ }
8208
+ function resolveFormResponseStyles({
8209
+ shape,
8210
+ size,
8211
+ variant
8212
+ }) {
8213
+ const variantClassNames = splitClassName(variantsLite[variant]);
8214
+ const sizeClassNames = formResponseSizeStyles[size];
8215
+ return {
8216
+ rootClassName: [
8217
+ "border",
8218
+ variantClassNames.root,
8219
+ shapes[shape],
8220
+ sizeClassNames.root
8221
+ ].filter(Boolean).join(" "),
8222
+ textClassName: [
8223
+ "font-poppins font-light",
8224
+ variantClassNames.text,
8225
+ sizeClassNames.text
8226
+ ].filter(Boolean).join(" ")
8227
+ };
8228
+ }
8167
8229
  function FormResponse({
8168
8230
  text: text10,
8169
8231
  variant = "default",
8170
8232
  shape = "roundedSquare",
8171
8233
  size = "md",
8172
- styles
8234
+ className,
8235
+ textClassName
8173
8236
  }) {
8174
- return /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: text10 ? true : false, children: /* @__PURE__ */ jsx(
8175
- "div",
8176
- {
8177
- className: classNames74({
8178
- "font-poppins font-light text-sm": true,
8179
- [`${variantsLite[variant]}`]: variant,
8180
- [`${shapes[shape]}`]: shape,
8181
- [`${sizes[size]}`]: size,
8182
- [`${styles}`]: styles
8183
- }),
8184
- children: text10
8185
- }
8186
- ) });
8237
+ const styles = resolveFormResponseStyles({ shape, size, variant });
8238
+ return /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: Boolean(text10), children: /* @__PURE__ */ jsx("div", { className: cn(styles.rootClassName, className), children: /* @__PURE__ */ jsx("span", { className: cn(styles.textClassName, textClassName), children: text10 }) }) });
8187
8239
  }
8188
- var FormResponse_default = FormResponse;
8189
- function ImageView({ imageUrl, secure = true, alt = "image" }) {
8240
+ var CloudinaryContext = createContext(null);
8241
+ var CloudinaryProvider = ({
8242
+ cloudName,
8243
+ uploadPreset,
8244
+ children: children3
8245
+ }) => /* @__PURE__ */ jsx(CloudinaryContext.Provider, { value: { cloudName, uploadPreset }, children: children3 });
8246
+ var useCloudinaryConfig = () => {
8247
+ const ctx = useContext(CloudinaryContext);
8248
+ if (!ctx) {
8249
+ throw new Error(
8250
+ "CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
8251
+ );
8252
+ }
8253
+ return ctx;
8254
+ };
8255
+
8256
+ // src/components/data-entry/image-input/base/ImageInput.config.ts
8257
+ var defaultImageInputTitle = "Upload Image";
8258
+ var defaultImageInputUploadDir = "eg-frontend-admin-temp";
8259
+ var imageInputPlaceholderPublicId = "public/placeholders/placeholder-dark_uwuxct";
8260
+ function ImageView({
8261
+ imageUrl,
8262
+ secure = true,
8263
+ alt = "image"
8264
+ }) {
8265
+ const { cloudName } = useCloudinaryConfig();
8190
8266
  return /* @__PURE__ */ jsx("div", { className: "h-[200px] w-[300px]", children: /* @__PURE__ */ jsx("div", { className: "w-full h-full overflow-hidden bg-gray-900 flex items-center justify-center", children: /* @__PURE__ */ jsx(
8191
8267
  Image,
8192
8268
  {
8193
- cloudName: process.env.REACT_APP_CLOUDINARY_CLOUD_NAME || "",
8194
- publicId: imageUrl ? imageUrl : "public/placeholders/placeholder-dark_uwuxct",
8269
+ cloudName,
8270
+ publicId: imageUrl ? imageUrl : imageInputPlaceholderPublicId,
8195
8271
  secure,
8196
8272
  alt,
8197
8273
  className: "w-full h-full object-cover"
8198
8274
  }
8199
8275
  ) }) });
8200
8276
  }
8201
- var ImageView_default = ImageView;
8202
8277
  var ImageInput = forwardRef(
8203
8278
  ({
8204
- title = "Upload Image",
8205
- uploadDir = "eg-frontend-admin-temp",
8279
+ title = defaultImageInputTitle,
8280
+ uploadDir = defaultImageInputUploadDir,
8206
8281
  onValueChanged = () => {
8207
8282
  },
8208
8283
  disableSetValue = false,
@@ -8211,6 +8286,7 @@ var ImageInput = forwardRef(
8211
8286
  const [field, meta, helpers] = useField(props);
8212
8287
  const { value: imageUrl } = field;
8213
8288
  const { setValue } = helpers;
8289
+ const { cloudName, uploadPreset = "" } = useCloudinaryConfig();
8214
8290
  const [image3, setImage] = useState(null);
8215
8291
  const [url, setUrl] = useState(imageUrl);
8216
8292
  const [loading, setLoading] = useState(false);
@@ -8220,8 +8296,6 @@ var ImageInput = forwardRef(
8220
8296
  setLoading(true);
8221
8297
  const data = new FormData();
8222
8298
  data.append("file", image3);
8223
- const uploadPreset = process.env.REACT_APP_CLOUDINARY_UPLOAD_PRESET || "";
8224
- const cloudName = process.env.REACT_APP_CLOUDINARY_CLOUD_NAME || "";
8225
8299
  data.append("upload_preset", uploadPreset);
8226
8300
  data.append("cloud_name", cloudName);
8227
8301
  data.append("folder", uploadDir);
@@ -8238,7 +8312,7 @@ var ImageInput = forwardRef(
8238
8312
  if (!disableSetValue) setValue(res.public_id);
8239
8313
  onValueChanged(res.public_id);
8240
8314
  setLoading(false);
8241
- } catch (error) {
8315
+ } catch {
8242
8316
  setLoading(false);
8243
8317
  }
8244
8318
  };
@@ -8282,7 +8356,7 @@ var ImageInput = forwardRef(
8282
8356
  /* @__PURE__ */ jsxs(
8283
8357
  "label",
8284
8358
  {
8285
- className: classNames74({
8359
+ className: classNames73({
8286
8360
  "border-2 border-dashed border-gray-700 bg-gray-900 h-[200px] w-[300px] flex flex-col gap-2 items-center justify-center group": true,
8287
8361
  "hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
8288
8362
  "transition-all ease-in-out duration-150": true
@@ -8307,7 +8381,7 @@ var ImageInput = forwardRef(
8307
8381
  /* @__PURE__ */ jsx("div", { className: "h-[200px] w-[300px] bg-black opacity-50" }),
8308
8382
  /* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx(AiOutlineLoading, { className: "animate-spin" }) })
8309
8383
  ] }),
8310
- !loading && url && /* @__PURE__ */ jsx(ImageView_default, { imageUrl: url, alt: url ? url : "image" }),
8384
+ !loading && url && /* @__PURE__ */ jsx(ImageView, { imageUrl: url, alt: url ? url : "image" }),
8311
8385
  (preview || url) && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 text-3xl", children: [
8312
8386
  /* @__PURE__ */ jsx(
8313
8387
  "div",
@@ -8339,29 +8413,217 @@ var ImageInput = forwardRef(
8339
8413
  ] });
8340
8414
  }
8341
8415
  );
8342
- var ImageInput_default = ImageInput;
8416
+ var ImageInput_web_default = ImageInput;
8417
+
8418
+ // src/components/data-entry/multi-image-input/base/MultiImageInput.config.ts
8419
+ var defaultMultiImageInputTitle = "Upload Images";
8420
+ var defaultMultiImageInputUploadDir = "eg-frontend-admin-temp";
8421
+ function areImageListsEqual(current, next2) {
8422
+ return current.length === next2.length && current.every((imageUrl, index3) => imageUrl === next2[index3]);
8423
+ }
8343
8424
  function MultiImageInput({
8344
- title = "Upload Images",
8345
- uploadDir = "eg-frontend-admin-temp",
8425
+ title = defaultMultiImageInputTitle,
8426
+ uploadDir = defaultMultiImageInputUploadDir,
8346
8427
  ...props
8347
8428
  }) {
8348
8429
  const [field, meta, helpers] = useField(props);
8349
- const { value: imageUrls } = field;
8350
8430
  const { setValue } = helpers;
8431
+ const { cloudName, uploadPreset = "" } = useCloudinaryConfig();
8432
+ const fieldImageUrls = useMemo(
8433
+ () => Array.isArray(field.value) ? field.value : [],
8434
+ [field.value]
8435
+ );
8436
+ const [imageUrls, setImageUrls] = useState(fieldImageUrls);
8351
8437
  const imageInputRef = useRef(null);
8438
+ const [draggedIndex, setDraggedIndex] = useState(null);
8439
+ const [replacingIndex, setReplacingIndex] = useState(null);
8440
+ const isOrganizerBusy = replacingIndex !== null;
8441
+ useEffect(() => {
8442
+ setImageUrls(
8443
+ (currentImageUrls) => areImageListsEqual(currentImageUrls, fieldImageUrls) ? currentImageUrls : fieldImageUrls
8444
+ );
8445
+ }, [fieldImageUrls]);
8446
+ const commitImageUrls = (nextImageUrls) => {
8447
+ setImageUrls(nextImageUrls);
8448
+ void setValue(nextImageUrls);
8449
+ };
8352
8450
  const onValueChanged = (url) => {
8353
- setValue([...imageUrls, url]);
8451
+ if (!url) {
8452
+ return;
8453
+ }
8454
+ commitImageUrls([...imageUrls, url]);
8354
8455
  if (imageInputRef.current) {
8355
8456
  imageInputRef.current.handleResetClick();
8356
8457
  }
8357
8458
  };
8358
- useEffect(() => {
8359
- }, [imageUrls]);
8459
+ const uploadImage = async (file) => {
8460
+ const data = new FormData();
8461
+ data.append("file", file);
8462
+ data.append("upload_preset", uploadPreset);
8463
+ data.append("cloud_name", cloudName);
8464
+ data.append("folder", uploadDir);
8465
+ const response = await fetch(
8466
+ `https://api.cloudinary.com/v1_1/${cloudName}/image/upload`,
8467
+ {
8468
+ method: "POST",
8469
+ body: data
8470
+ }
8471
+ );
8472
+ const res = await response.json();
8473
+ if (!res.public_id) {
8474
+ throw new Error("Cloudinary upload failed");
8475
+ }
8476
+ return res.public_id;
8477
+ };
8478
+ const removeImage = (index3) => {
8479
+ commitImageUrls(
8480
+ imageUrls.filter((_2, imageIndex) => imageIndex !== index3)
8481
+ );
8482
+ };
8483
+ const moveImage = (fromIndex, toIndex) => {
8484
+ if (toIndex < 0 || toIndex >= imageUrls.length || fromIndex === toIndex || isOrganizerBusy) {
8485
+ return;
8486
+ }
8487
+ const nextImageUrls = [...imageUrls];
8488
+ const [movedImage] = nextImageUrls.splice(fromIndex, 1);
8489
+ if (!movedImage) {
8490
+ return;
8491
+ }
8492
+ nextImageUrls.splice(toIndex, 0, movedImage);
8493
+ commitImageUrls(nextImageUrls);
8494
+ };
8495
+ const handleReplaceImage = async (index3, event) => {
8496
+ const input = event.currentTarget;
8497
+ const file = input.files?.[0];
8498
+ if (!file || isOrganizerBusy) {
8499
+ return;
8500
+ }
8501
+ setReplacingIndex(index3);
8502
+ try {
8503
+ const publicId = await uploadImage(file);
8504
+ const nextImageUrls = [...imageUrls];
8505
+ nextImageUrls[index3] = publicId;
8506
+ commitImageUrls(nextImageUrls);
8507
+ } catch {
8508
+ } finally {
8509
+ setReplacingIndex(null);
8510
+ input.value = "";
8511
+ }
8512
+ };
8513
+ const handleDragStart = (index3) => {
8514
+ if (isOrganizerBusy) {
8515
+ return;
8516
+ }
8517
+ setDraggedIndex(index3);
8518
+ };
8519
+ const handleDragOver = (event) => {
8520
+ if (!isOrganizerBusy) {
8521
+ event.preventDefault();
8522
+ }
8523
+ };
8524
+ const handleDrop = (index3) => {
8525
+ if (draggedIndex === null) {
8526
+ return;
8527
+ }
8528
+ moveImage(draggedIndex, index3);
8529
+ setDraggedIndex(null);
8530
+ };
8360
8531
  return /* @__PURE__ */ jsxs("div", { children: [
8361
- /* @__PURE__ */ jsxs("div", { className: "flex flex-row flex-wrap gap-5 w-ful", children: [
8362
- imageUrls.map((url, index3) => /* @__PURE__ */ jsx(ImageView_default, { imageUrl: url }, index3)),
8532
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-row flex-wrap gap-5 w-full", children: [
8533
+ imageUrls.map((url, index3) => {
8534
+ const isReplacing = replacingIndex === index3;
8535
+ return /* @__PURE__ */ jsxs(
8536
+ "div",
8537
+ {
8538
+ draggable: !isOrganizerBusy,
8539
+ onDragStart: () => handleDragStart(index3),
8540
+ onDragOver: handleDragOver,
8541
+ onDrop: () => handleDrop(index3),
8542
+ onDragEnd: () => setDraggedIndex(null),
8543
+ className: classNames73(
8544
+ "relative h-[200px] w-[300px] overflow-hidden bg-gray-900",
8545
+ "transition-all duration-150",
8546
+ draggedIndex === index3 && "opacity-60",
8547
+ !isOrganizerBusy && "cursor-grab active:cursor-grabbing"
8548
+ ),
8549
+ children: [
8550
+ /* @__PURE__ */ jsx(ImageView, { imageUrl: url }),
8551
+ /* @__PURE__ */ jsxs("div", { className: "absolute left-2 top-2 inline-flex items-center gap-1 rounded bg-black/60 px-2 py-1 text-xs text-white", children: [
8552
+ /* @__PURE__ */ jsx(MdDragIndicator, {}),
8553
+ index3 + 1
8554
+ ] }),
8555
+ /* @__PURE__ */ jsxs("div", { className: "absolute right-2 top-2 flex gap-1", children: [
8556
+ /* @__PURE__ */ jsx(
8557
+ "button",
8558
+ {
8559
+ type: "button",
8560
+ title: "Move image left",
8561
+ "aria-label": "Move image left",
8562
+ disabled: index3 === 0 || isOrganizerBusy,
8563
+ onClick: () => moveImage(index3, index3 - 1),
8564
+ className: "inline-flex h-8 w-8 items-center justify-center rounded bg-black/60 text-xl text-white transition-colors hover:bg-black/80 disabled:cursor-not-allowed disabled:opacity-40",
8565
+ children: /* @__PURE__ */ jsx(MdKeyboardArrowLeft, {})
8566
+ }
8567
+ ),
8568
+ /* @__PURE__ */ jsx(
8569
+ "button",
8570
+ {
8571
+ type: "button",
8572
+ title: "Move image right",
8573
+ "aria-label": "Move image right",
8574
+ disabled: index3 === imageUrls.length - 1 || isOrganizerBusy,
8575
+ onClick: () => moveImage(index3, index3 + 1),
8576
+ className: "inline-flex h-8 w-8 items-center justify-center rounded bg-black/60 text-xl text-white transition-colors hover:bg-black/80 disabled:cursor-not-allowed disabled:opacity-40",
8577
+ children: /* @__PURE__ */ jsx(MdKeyboardArrowRight, {})
8578
+ }
8579
+ )
8580
+ ] }),
8581
+ /* @__PURE__ */ jsxs("div", { className: "absolute bottom-2 left-2 right-2 flex items-center justify-between gap-2", children: [
8582
+ /* @__PURE__ */ jsxs(
8583
+ "label",
8584
+ {
8585
+ title: "Change image",
8586
+ className: classNames73(
8587
+ "inline-flex h-9 flex-1 items-center justify-center gap-2 rounded bg-green-600 px-3 text-sm font-semibold text-white transition-colors",
8588
+ isOrganizerBusy ? "pointer-events-none cursor-not-allowed opacity-50" : "cursor-pointer hover:bg-green-700"
8589
+ ),
8590
+ children: [
8591
+ /* @__PURE__ */ jsx(
8592
+ "input",
8593
+ {
8594
+ type: "file",
8595
+ className: "hidden",
8596
+ accept: "image/*",
8597
+ disabled: isOrganizerBusy,
8598
+ onChange: (event) => void handleReplaceImage(index3, event)
8599
+ }
8600
+ ),
8601
+ /* @__PURE__ */ jsx(MdUpload, {}),
8602
+ "Change"
8603
+ ]
8604
+ }
8605
+ ),
8606
+ /* @__PURE__ */ jsx(
8607
+ "button",
8608
+ {
8609
+ type: "button",
8610
+ title: "Delete image",
8611
+ "aria-label": "Delete image",
8612
+ disabled: isOrganizerBusy,
8613
+ onClick: () => removeImage(index3),
8614
+ className: "inline-flex h-9 w-10 items-center justify-center rounded bg-red-600 text-xl text-white transition-colors hover:bg-red-700 disabled:cursor-not-allowed disabled:opacity-50",
8615
+ children: /* @__PURE__ */ jsx(MdOutlineDelete, {})
8616
+ }
8617
+ )
8618
+ ] }),
8619
+ isReplacing && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 text-2xl text-white", children: /* @__PURE__ */ jsx(AiOutlineLoading, { className: "animate-spin" }) })
8620
+ ]
8621
+ },
8622
+ `${url}-${index3}`
8623
+ );
8624
+ }),
8363
8625
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
8364
- ImageInput_default,
8626
+ ImageInput_web_default,
8365
8627
  {
8366
8628
  ref: imageInputRef,
8367
8629
  name: "new_img",
@@ -8383,7 +8645,7 @@ function MultiImageInput({
8383
8645
  )
8384
8646
  ] });
8385
8647
  }
8386
- var MultiImageInput_default = MultiImageInput;
8648
+ var MultiImageInput_web_default = MultiImageInput;
8387
8649
  function Radio({
8388
8650
  placeholder,
8389
8651
  options,
@@ -8399,7 +8661,7 @@ function Radio({
8399
8661
  return /* @__PURE__ */ jsxs(
8400
8662
  "div",
8401
8663
  {
8402
- className: classNames74({
8664
+ className: classNames73({
8403
8665
  "flex flex-row gap-2 items-center mx-1 my-2": true
8404
8666
  }),
8405
8667
  children: [
@@ -8412,7 +8674,7 @@ function Radio({
8412
8674
  ...props,
8413
8675
  value: option.value,
8414
8676
  checked: field2.value === option.value,
8415
- className: classNames74({
8677
+ className: classNames73({
8416
8678
  "appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
8417
8679
  // base radio button styles
8418
8680
  "checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
@@ -8424,7 +8686,7 @@ function Radio({
8424
8686
  "label",
8425
8687
  {
8426
8688
  htmlFor: option.value,
8427
- className: classNames74({
8689
+ className: classNames73({
8428
8690
  "eui-text-md text-sm": true
8429
8691
  }),
8430
8692
  children: option.label
@@ -8467,7 +8729,7 @@ function StarRatingInput({
8467
8729
  return /* @__PURE__ */ jsxs(
8468
8730
  "div",
8469
8731
  {
8470
- className: classNames74({
8732
+ className: classNames73({
8471
8733
  "inline-flex gap-[4px] text-[20px]": true,
8472
8734
  [`${styles}`]: styles
8473
8735
  }),
@@ -8480,7 +8742,7 @@ function StarRatingInput({
8480
8742
  onClick: () => handleOnClick(index3),
8481
8743
  onMouseEnter: () => setHover(index3),
8482
8744
  onMouseLeave: () => setHover(null),
8483
- className: classNames74({
8745
+ className: classNames73({
8484
8746
  "text-yellow-600": index3 <= (hover ?? rating - 1),
8485
8747
  "text-gray-400": index3 > (hover ?? rating - 1)
8486
8748
  }),
@@ -8524,7 +8786,7 @@ function Select({
8524
8786
  {
8525
8787
  as: "select",
8526
8788
  ...props,
8527
- className: classNames74({
8789
+ className: classNames73({
8528
8790
  "border peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:border-eui-secondary-500 focus:outline-none h-[50px]": true,
8529
8791
  "border-eui-primary-400": !(meta.touched && meta.error),
8530
8792
  "border-red-500": meta.touched && meta.error,
@@ -8576,7 +8838,7 @@ function Switch({
8576
8838
  "div",
8577
8839
  {
8578
8840
  onClick: () => helpers.setValue(!field.value),
8579
- className: classNames74(
8841
+ className: classNames73(
8580
8842
  "w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
8581
8843
  "peer-checked:after:translate-x-full peer-checked:after:border-white",
8582
8844
  "after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
@@ -8633,7 +8895,7 @@ function Tags({
8633
8895
  /* @__PURE__ */ jsxs(
8634
8896
  "div",
8635
8897
  {
8636
- className: classNames74(
8898
+ className: classNames73(
8637
8899
  "border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
8638
8900
  {
8639
8901
  "bg-eui-primary-300/10 eui-text-md": true,
@@ -8681,7 +8943,7 @@ function Tags({
8681
8943
  InputLabel,
8682
8944
  {
8683
8945
  text: placeholder,
8684
- className: classNames74(
8946
+ className: classNames73(
8685
8947
  "absolute left-2 transition-all pointer-events-none text-eui-dark-200",
8686
8948
  input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
8687
8949
  )
@@ -8722,7 +8984,7 @@ function TextArea({
8722
8984
  as: "textarea",
8723
8985
  ...field,
8724
8986
  ...props,
8725
- className: classNames74({
8987
+ className: classNames73({
8726
8988
  "border peer w-full bg-eui-primary-300/10 eui-text-md outline-none px-3 py-5 resize-none focus:resize-none focus:outline-none": true,
8727
8989
  "transition-all ease-in-out": true,
8728
8990
  "border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
@@ -8736,7 +8998,7 @@ function TextArea({
8736
8998
  InputLabel,
8737
8999
  {
8738
9000
  text: placeholder,
8739
- className: classNames74(
9001
+ className: classNames73(
8740
9002
  "absolute left-2 transition-all pointer-events-none text-eui-dark-200",
8741
9003
  field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
8742
9004
  )
@@ -8770,7 +9032,7 @@ function BreadcrumbItem({
8770
9032
  {
8771
9033
  href,
8772
9034
  onClick,
8773
- className: classNames74({
9035
+ className: classNames73({
8774
9036
  "text-lg font-semibold": true,
8775
9037
  "text-gray-400 hover:text-gray-600 cursor-pointer": !active,
8776
9038
  "text-eui-light-800": active,
@@ -8847,7 +9109,7 @@ var Breadcrumb = ({
8847
9109
  index3 < resolvedData.length - 1 && /* @__PURE__ */ jsx(
8848
9110
  "span",
8849
9111
  {
8850
- className: classNames74({
9112
+ className: classNames73({
8851
9113
  "text-lg font-semibold text-gray-500": true,
8852
9114
  [`px-${gap}`]: gap
8853
9115
  }),
@@ -8861,7 +9123,7 @@ var Breadcrumb = ({
8861
9123
  return /* @__PURE__ */ jsx(
8862
9124
  "div",
8863
9125
  {
8864
- className: classNames74({
9126
+ className: classNames73({
8865
9127
  "inline-flex": true,
8866
9128
  [`${styles}`]: styles
8867
9129
  }),
@@ -8905,7 +9167,7 @@ var Drawer = ({
8905
9167
  isMobile && showBackdrop && /* @__PURE__ */ jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsx(
8906
9168
  "div",
8907
9169
  {
8908
- className: classNames74(
9170
+ className: classNames73(
8909
9171
  "fixed inset-0 bg-black/50 z-40",
8910
9172
  backdropStyles
8911
9173
  ),
@@ -8916,7 +9178,7 @@ var Drawer = ({
8916
9178
  "div",
8917
9179
  {
8918
9180
  style: drawerStyle,
8919
- className: classNames74(
9181
+ className: classNames73(
8920
9182
  "fixed shadow-lg z-50",
8921
9183
  {
8922
9184
  "h-full w-[300px] top-0": isHorizontal && !hasOffset,
@@ -8945,7 +9207,7 @@ function DrawerToggler({
8945
9207
  return /* @__PURE__ */ jsx(
8946
9208
  "div",
8947
9209
  {
8948
- className: classNames74({
9210
+ className: classNames73({
8949
9211
  "text-xl p-3 cursor-pointer": true,
8950
9212
  "transition-all ease-in-out": true,
8951
9213
  "text-eui-dark-500 dark:text-eui-secondary-600": !styles,
@@ -8993,7 +9255,7 @@ function FooterNav({ data = [], styles }) {
8993
9255
  childrenContent = /* @__PURE__ */ jsx(
8994
9256
  "div",
8995
9257
  {
8996
- className: classNames74({
9258
+ className: classNames73({
8997
9259
  "grid w-full": true,
8998
9260
  "grid-cols-1": isMobile,
8999
9261
  "grid-cols-3": !isMobile,
@@ -9006,7 +9268,7 @@ function FooterNav({ data = [], styles }) {
9006
9268
  return /* @__PURE__ */ jsx(
9007
9269
  "div",
9008
9270
  {
9009
- className: classNames74({
9271
+ className: classNames73({
9010
9272
  [`${styles}`]: styles
9011
9273
  }),
9012
9274
  children: childrenContent
@@ -9047,7 +9309,7 @@ var FooterNavGroup = ({
9047
9309
  /* @__PURE__ */ jsx(
9048
9310
  "div",
9049
9311
  {
9050
- className: classNames74({
9312
+ className: classNames73({
9051
9313
  "": true,
9052
9314
  "py-2 font-semibold eui-text-lg": !styles,
9053
9315
  [`${styles}`]: styles
@@ -9092,7 +9354,7 @@ var FooterNavItem = ({
9092
9354
  "div",
9093
9355
  {
9094
9356
  onClick: handleNavigation,
9095
- className: classNames74({
9357
+ className: classNames73({
9096
9358
  "flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
9097
9359
  "transition-all duration-200 ease-in-out": true,
9098
9360
  "text-sm eui-text-sm": !styles,
@@ -9121,7 +9383,7 @@ var FooterNavItemTitle = ({
9121
9383
  return /* @__PURE__ */ jsx(
9122
9384
  "div",
9123
9385
  {
9124
- className: classNames74({
9386
+ className: classNames73({
9125
9387
  "": true,
9126
9388
  "py-2 font-thin eui-text-md": !styles,
9127
9389
  [`${styles}`]: styles
@@ -9174,7 +9436,7 @@ function HeaderNav({ data = [], styles }) {
9174
9436
  return /* @__PURE__ */ jsx(
9175
9437
  "div",
9176
9438
  {
9177
- className: classNames74({
9439
+ className: classNames73({
9178
9440
  [`${styles}`]: styles
9179
9441
  }),
9180
9442
  children: childrenContent
@@ -9236,7 +9498,7 @@ var HeaderNavGroup = ({
9236
9498
  /* @__PURE__ */ jsxs(
9237
9499
  "div",
9238
9500
  {
9239
- className: classNames74({
9501
+ className: classNames73({
9240
9502
  "flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
9241
9503
  "transition-all duration-300 ease-in-out": true,
9242
9504
  "eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
@@ -9264,7 +9526,7 @@ var HeaderNavGroup = ({
9264
9526
  children3 && /* @__PURE__ */ jsx(
9265
9527
  BsChevronDown,
9266
9528
  {
9267
- className: classNames74({
9529
+ className: classNames73({
9268
9530
  "text-md": true,
9269
9531
  "transition-all ease-in-out duration-300": true,
9270
9532
  "rotate-180": !collapsed
@@ -9277,7 +9539,7 @@ var HeaderNavGroup = ({
9277
9539
  !collapsed && children3 && /* @__PURE__ */ jsx(
9278
9540
  "div",
9279
9541
  {
9280
- className: classNames74({
9542
+ className: classNames73({
9281
9543
  "absolute min-w-80 left-0 top-full mt-1 border border-eui-dark-300/10 dark:border-eui-dark-300/50 shadow-lg eui-shadow-lg z-50 w-full eui-bg-md": true,
9282
9544
  "transition-all duration-300 ease-in-out": true
9283
9545
  }),
@@ -9307,7 +9569,7 @@ var HeaderNavItem = ({
9307
9569
  "div",
9308
9570
  {
9309
9571
  onClick: handleNavigation,
9310
- className: classNames74({
9572
+ className: classNames73({
9311
9573
  "flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
9312
9574
  "transition-all duration-200 ease-in-out": true,
9313
9575
  "eui-text-md border-b border-eui-dark-500/20 dark:border-eui-secondary-900/20 bg-gradient-to-r from-eui-dark-500/10 dark:from-eui-secondary-900/10": !styles,
@@ -9336,7 +9598,7 @@ var HeaderNavItemTitle = ({
9336
9598
  return /* @__PURE__ */ jsx(
9337
9599
  "div",
9338
9600
  {
9339
- className: classNames74({
9601
+ className: classNames73({
9340
9602
  "p-3 font-thin": true,
9341
9603
  "eui-text-md": !styles,
9342
9604
  [`${styles}`]: styles
@@ -9376,7 +9638,7 @@ var Link = ({
9376
9638
  href: href || "#",
9377
9639
  target: targets[target],
9378
9640
  onClick: handleClick,
9379
- className: classNames74({
9641
+ className: classNames73({
9380
9642
  [`${textVariants[variant]}`]: variant,
9381
9643
  [`${decorations[decoration]}`]: decoration,
9382
9644
  "font-bold": bold,
@@ -12568,7 +12830,7 @@ function Accordion({
12568
12830
  /* @__PURE__ */ jsxs(
12569
12831
  "div",
12570
12832
  {
12571
- className: classNames74(
12833
+ className: classNames73(
12572
12834
  "inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
12573
12835
  {
12574
12836
  "hover:cursor-pointer": toggleOnSummaryClick
@@ -12589,7 +12851,7 @@ function Accordion({
12589
12851
  children: /* @__PURE__ */ jsx(
12590
12852
  FaCircleChevronDown,
12591
12853
  {
12592
- className: classNames74("text-xl transition-transform duration-300", {
12854
+ className: classNames73("text-xl transition-transform duration-300", {
12593
12855
  "rotate-180": collapse
12594
12856
  })
12595
12857
  }
@@ -12603,7 +12865,7 @@ function Accordion({
12603
12865
  /* @__PURE__ */ jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsx(
12604
12866
  "div",
12605
12867
  {
12606
- className: classNames74(
12868
+ className: classNames73(
12607
12869
  "border-t border-t-eui-dark-400/40 eui-text-sm",
12608
12870
  {
12609
12871
  "p-5": enableChildrenPadding
@@ -12660,7 +12922,7 @@ function CardHeader({ icon, title, description, className }) {
12660
12922
  return /* @__PURE__ */ jsxs(
12661
12923
  "div",
12662
12924
  {
12663
- className: classNames74(
12925
+ className: classNames73(
12664
12926
  "flex items-start gap-4 p-6 border-b border-white/10",
12665
12927
  className
12666
12928
  ),
@@ -12676,14 +12938,14 @@ function CardHeader({ icon, title, description, className }) {
12676
12938
  }
12677
12939
  var CardHeader_default = CardHeader;
12678
12940
  function CardContent({ children: children3, className }) {
12679
- return /* @__PURE__ */ jsx("div", { className: classNames74("p-6 text-gray-300 text-sm", className), children: children3 });
12941
+ return /* @__PURE__ */ jsx("div", { className: classNames73("p-6 text-gray-300 text-sm", className), children: children3 });
12680
12942
  }
12681
12943
  var CardContent_default = CardContent;
12682
12944
  function CardFooter({ children: children3, className }) {
12683
12945
  return /* @__PURE__ */ jsx(
12684
12946
  "div",
12685
12947
  {
12686
- className: classNames74(
12948
+ className: classNames73(
12687
12949
  "flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
12688
12950
  className
12689
12951
  ),
@@ -12725,7 +12987,7 @@ function GradientAnimation({
12725
12987
  return /* @__PURE__ */ jsx(
12726
12988
  "div",
12727
12989
  {
12728
- className: classNames74("absolute inset-0"),
12990
+ className: classNames73("absolute inset-0"),
12729
12991
  style: {
12730
12992
  background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
12731
12993
  backgroundSize: cfg.backgroundSize,
@@ -12871,7 +13133,7 @@ function MotionSurface({
12871
13133
  }) {
12872
13134
  const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
12873
13135
  const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
12874
- return /* @__PURE__ */ jsxs("div", { className: classNames74("relative overflow-hidden", className), children: [
13136
+ return /* @__PURE__ */ jsxs("div", { className: classNames73("relative overflow-hidden", className), children: [
12875
13137
  AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
12876
13138
  OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
12877
13139
  /* @__PURE__ */ jsx("div", { className: "relative z-10", children: children3 })
@@ -16253,20 +16515,6 @@ var Graph = ({
16253
16515
  }
16254
16516
  );
16255
16517
  };
16256
- var CloudinaryContext = createContext(null);
16257
- var CloudinaryProvider = ({
16258
- cloudName,
16259
- children: children3
16260
- }) => /* @__PURE__ */ jsx(CloudinaryContext.Provider, { value: { cloudName }, children: children3 });
16261
- var useCloudinaryConfig = () => {
16262
- const ctx = useContext(CloudinaryContext);
16263
- if (!ctx) {
16264
- throw new Error(
16265
- "CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
16266
- );
16267
- }
16268
- return ctx;
16269
- };
16270
16518
  var DEFAULT_PUBLIC_CLOUD = "demo";
16271
16519
  var CloudinaryImage2 = ({
16272
16520
  publicId = "sample",
@@ -17117,7 +17365,7 @@ var ProgressBar = ({
17117
17365
  hasBottomLabel && /* @__PURE__ */ jsx("div", { className: "mt-2", children: labelNode })
17118
17366
  ] });
17119
17367
  };
17120
- var sizes2 = {
17368
+ var sizes = {
17121
17369
  ["xs" /* xs */]: "text-[10px]",
17122
17370
  ["sm" /* sm */]: "text-xs",
17123
17371
  ["md" /* md */]: "text-sm",
@@ -17147,7 +17395,7 @@ var StarRating = ({
17147
17395
  className: cn(
17148
17396
  "inline-flex items-center gap-[2px]",
17149
17397
  "text-yellow-500 dark:text-yellow-400",
17150
- sizes2[size],
17398
+ sizes[size],
17151
17399
  iconClassName
17152
17400
  ),
17153
17401
  children: [
@@ -17160,7 +17408,7 @@ var StarRating = ({
17160
17408
  showValue && valuePosition === "end" && ratingValue
17161
17409
  ] });
17162
17410
  };
17163
- var sizes3 = {
17411
+ var sizes2 = {
17164
17412
  ["xs" /* xs */]: {
17165
17413
  value: "text-2xl",
17166
17414
  review: "text-xs"
@@ -17192,7 +17440,7 @@ var NumericRating = ({
17192
17440
  className,
17193
17441
  ...rest
17194
17442
  }) => {
17195
- const sizeStyles = sizes3[size];
17443
+ const sizeStyles = sizes2[size];
17196
17444
  return /* @__PURE__ */ jsxs(
17197
17445
  "div",
17198
17446
  {
@@ -17868,7 +18116,7 @@ var YoutubeVideo = ({
17868
18116
  }) => {
17869
18117
  const videoId = getYoutubeVideoId(videoUrl);
17870
18118
  if (!videoId) {
17871
- return /* @__PURE__ */ jsx(FormResponse_default, { text: "Invalid YouTube URL", variant: "danger" });
18119
+ return /* @__PURE__ */ jsx(FormResponse, { text: "Invalid YouTube URL", variant: "danger" });
17872
18120
  }
17873
18121
  const params = new URLSearchParams({
17874
18122
  autoplay: autoPlay ? "1" : "0",
@@ -17956,7 +18204,7 @@ var ThemeSwitch = () => {
17956
18204
  /* @__PURE__ */ jsx(
17957
18205
  "div",
17958
18206
  {
17959
- className: classNames74(
18207
+ className: classNames73(
17960
18208
  "w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
17961
18209
  theme === "dark" ? "translate-x-8" : "translate-x-0"
17962
18210
  )
@@ -29501,7 +29749,7 @@ function AsyncStateCard({
29501
29749
  ),
29502
29750
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
29503
29751
  /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-eui-dark-900 dark:text-eui-light-600", children: title }),
29504
- isError ? /* @__PURE__ */ jsx(FormResponse_default, { text: message, variant: "danger" }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-eui-dark-500 dark:text-eui-light-400", children: message })
29752
+ isError ? /* @__PURE__ */ jsx(FormResponse, { text: message, variant: "danger" }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-eui-dark-500 dark:text-eui-light-400", children: message })
29505
29753
  ] }),
29506
29754
  onAction && actionText && /* @__PURE__ */ jsx(
29507
29755
  Button_web_default,
@@ -29725,7 +29973,7 @@ function Modal({
29725
29973
  "div",
29726
29974
  {
29727
29975
  ref: modalRef,
29728
- className: classNames74(
29976
+ className: classNames73(
29729
29977
  "eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
29730
29978
  shapes[resolvedShape],
29731
29979
  styles
@@ -29737,7 +29985,7 @@ function Modal({
29737
29985
  "button",
29738
29986
  {
29739
29987
  type: "button",
29740
- className: classNames74(
29988
+ className: classNames73(
29741
29989
  "w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
29742
29990
  "hover:cursor-pointer hover:bg-eui-dark-500"
29743
29991
  ),
@@ -30129,7 +30377,7 @@ var ContentArea = forwardRef(
30129
30377
  "div",
30130
30378
  {
30131
30379
  ref,
30132
- className: classNames74({
30380
+ className: classNames73({
30133
30381
  "min-h-screen h-full w-full transition-all duration-[200ms]": true,
30134
30382
  "py-3 px-5": !enablePadding,
30135
30383
  "py-3 px-5 lg:px-[150px]": enablePadding,
@@ -30146,7 +30394,7 @@ function FlexCol({ children: children3, gap = 3, styles }) {
30146
30394
  return /* @__PURE__ */ jsx(
30147
30395
  "div",
30148
30396
  {
30149
- className: classNames74({
30397
+ className: classNames73({
30150
30398
  [`flex flex-col gap-${gap}`]: true,
30151
30399
  [`${styles}`]: styles
30152
30400
  }),
@@ -30159,7 +30407,7 @@ function FlexRow({ children: children3, gap = 3, styles }) {
30159
30407
  return /* @__PURE__ */ jsx(
30160
30408
  "div",
30161
30409
  {
30162
- className: classNames74({
30410
+ className: classNames73({
30163
30411
  [`flex flex-row gap-${gap}`]: true,
30164
30412
  [`${styles}`]: styles
30165
30413
  }),
@@ -30178,7 +30426,7 @@ function Grid({ children: children3, styles }) {
30178
30426
  return /* @__PURE__ */ jsx(
30179
30427
  "div",
30180
30428
  {
30181
- className: classNames74({
30429
+ className: classNames73({
30182
30430
  [`grid`]: true,
30183
30431
  [`${styles}`]: styles
30184
30432
  }),
@@ -30195,7 +30443,7 @@ var Layout = ({
30195
30443
  return /* @__PURE__ */ jsx(
30196
30444
  "div",
30197
30445
  {
30198
- className: classNames74({
30446
+ className: classNames73({
30199
30447
  // "flex h-full w-screen bg-gray-100 overflow-auto": true,
30200
30448
  "flex bg-eui-light-600": true,
30201
30449
  "flex-col": flexDirection === "vertical",
@@ -30217,7 +30465,7 @@ var Header = ({
30217
30465
  return /* @__PURE__ */ jsx(
30218
30466
  "div",
30219
30467
  {
30220
- className: classNames74({
30468
+ className: classNames73({
30221
30469
  static: position4 === "static",
30222
30470
  fixed: position4 === "fixed",
30223
30471
  sticky: position4 === "sticky",
@@ -30252,7 +30500,7 @@ var Content = ({
30252
30500
  return /* @__PURE__ */ jsx(
30253
30501
  "div",
30254
30502
  {
30255
- className: classNames74({
30503
+ className: classNames73({
30256
30504
  "w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
30257
30505
  "md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
30258
30506
  // Shift when sidebar is open (desktop)
@@ -30268,7 +30516,7 @@ var Footer = ({ children: children3, styles }) => {
30268
30516
  return /* @__PURE__ */ jsx(
30269
30517
  "div",
30270
30518
  {
30271
- className: classNames74({
30519
+ className: classNames73({
30272
30520
  "bottom-0 w-full h-fit": true,
30273
30521
  "border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
30274
30522
  [`${styles}`]: styles
@@ -30402,7 +30650,7 @@ var GlowWrapper = ({
30402
30650
  /* @__PURE__ */ jsx(
30403
30651
  "span",
30404
30652
  {
30405
- className: "\r\n pointer-events-none absolute inset-0 opacity-0 \r\n group-hover:opacity-100 transition-opacity duration-300\r\n ",
30653
+ className: "\n pointer-events-none absolute inset-0 opacity-0 \n group-hover:opacity-100 transition-opacity duration-300\n ",
30406
30654
  style: { background: "var(--glow-bg)" }
30407
30655
  }
30408
30656
  ),
@@ -30456,7 +30704,7 @@ function ShowMore({ text: text10, limit }) {
30456
30704
  /* @__PURE__ */ jsx(
30457
30705
  "div",
30458
30706
  {
30459
- className: classNames74({
30707
+ className: classNames73({
30460
30708
  "text-blue-300 px-1 pb-1 mt-1": true,
30461
30709
  "bg-slate-900/70": !showMore,
30462
30710
  "bg-gradient-to-t from-slate-900/50 to-transparent": showMore
@@ -31372,7 +31620,7 @@ function DocumentationPanel({
31372
31620
  return /* @__PURE__ */ jsx(MarkdownProvider_default, { markdown: value, children: /* @__PURE__ */ jsxs(
31373
31621
  "section",
31374
31622
  {
31375
- className: classNames74(
31623
+ className: classNames73(
31376
31624
  "eui-documentation-panel",
31377
31625
  "min-h-0 overflow-hidden bg-white text-gray-900",
31378
31626
  "dark:bg-gray-950 dark:text-gray-100",
@@ -31386,7 +31634,7 @@ function DocumentationPanel({
31386
31634
  /* @__PURE__ */ jsx(
31387
31635
  "main",
31388
31636
  {
31389
- className: classNames74(
31637
+ className: classNames73(
31390
31638
  "eui-documentation-panel-viewer",
31391
31639
  "documentation-panel-scrollbar min-w-0 overflow-y-auto scroll-smooth",
31392
31640
  viewerClassName
@@ -31394,7 +31642,7 @@ function DocumentationPanel({
31394
31642
  children: /* @__PURE__ */ jsx(
31395
31643
  "div",
31396
31644
  {
31397
- className: classNames74(
31645
+ className: classNames73(
31398
31646
  "mx-auto px-5 py-8 sm:px-6 lg:px-8",
31399
31647
  contentMaxWidthClassName,
31400
31648
  contentClassName
@@ -31407,7 +31655,7 @@ function DocumentationPanel({
31407
31655
  toc ? /* @__PURE__ */ jsx(
31408
31656
  "aside",
31409
31657
  {
31410
- className: classNames74(
31658
+ className: classNames73(
31411
31659
  "eui-documentation-panel-toc",
31412
31660
  "hidden min-w-0 border-l border-gray-200 bg-white lg:block",
31413
31661
  "dark:border-gray-800 dark:bg-gray-950",
@@ -31416,7 +31664,7 @@ function DocumentationPanel({
31416
31664
  children: /* @__PURE__ */ jsx(
31417
31665
  "div",
31418
31666
  {
31419
- className: classNames74(
31667
+ className: classNames73(
31420
31668
  "documentation-panel-scrollbar h-full overflow-y-auto px-5 py-8"
31421
31669
  ),
31422
31670
  children: /* @__PURE__ */ jsx("div", { className: "sticky top-0", children: /* @__PURE__ */ jsx(MarkdownTOC_default, {}) })
@@ -31692,7 +31940,7 @@ function BoxNavItem({ icon, name: name2, to, selected, onClick }) {
31692
31940
  type: "button",
31693
31941
  onClick: handleClick,
31694
31942
  "aria-current": selected ? "page" : void 0,
31695
- className: classNames74(
31943
+ className: classNames73(
31696
31944
  "w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
31697
31945
  "hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
31698
31946
  selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
@@ -34394,11 +34642,11 @@ function addChildren(props, children3) {
34394
34642
  }
34395
34643
  }
34396
34644
  }
34397
- function productionCreate(_2, jsx257, jsxs129) {
34645
+ function productionCreate(_2, jsx256, jsxs129) {
34398
34646
  return create3;
34399
34647
  function create3(_3, type2, props, key) {
34400
34648
  const isStaticChildren = Array.isArray(props.children);
34401
- const fn = isStaticChildren ? jsxs129 : jsx257;
34649
+ const fn = isStaticChildren ? jsxs129 : jsx256;
34402
34650
  return key ? fn(type2, props, key) : fn(type2, props);
34403
34651
  }
34404
34652
  }
@@ -42788,7 +43036,7 @@ function markdownTable(table2, options) {
42788
43036
  let rowIndex = -1;
42789
43037
  while (++rowIndex < table2.length) {
42790
43038
  const row2 = [];
42791
- const sizes5 = [];
43039
+ const sizes4 = [];
42792
43040
  let columnIndex2 = -1;
42793
43041
  if (table2[rowIndex].length > mostCellsPerRow) {
42794
43042
  mostCellsPerRow = table2[rowIndex].length;
@@ -42797,7 +43045,7 @@ function markdownTable(table2, options) {
42797
43045
  const cell = serialize2(table2[rowIndex][columnIndex2]);
42798
43046
  if (settings.alignDelimiters !== false) {
42799
43047
  const size = stringLength(cell);
42800
- sizes5[columnIndex2] = size;
43048
+ sizes4[columnIndex2] = size;
42801
43049
  if (longestCellByColumn[columnIndex2] === void 0 || size > longestCellByColumn[columnIndex2]) {
42802
43050
  longestCellByColumn[columnIndex2] = size;
42803
43051
  }
@@ -42805,7 +43053,7 @@ function markdownTable(table2, options) {
42805
43053
  row2.push(cell);
42806
43054
  }
42807
43055
  cellMatrix[rowIndex] = row2;
42808
- sizeMatrix[rowIndex] = sizes5;
43056
+ sizeMatrix[rowIndex] = sizes4;
42809
43057
  }
42810
43058
  let columnIndex = -1;
42811
43059
  if (typeof align === "object" && "length" in align) {
@@ -42820,7 +43068,7 @@ function markdownTable(table2, options) {
42820
43068
  }
42821
43069
  columnIndex = -1;
42822
43070
  const row = [];
42823
- const sizes4 = [];
43071
+ const sizes3 = [];
42824
43072
  while (++columnIndex < mostCellsPerRow) {
42825
43073
  const code4 = alignments[columnIndex];
42826
43074
  let before = "";
@@ -42843,17 +43091,17 @@ function markdownTable(table2, options) {
42843
43091
  if (size > longestCellByColumn[columnIndex]) {
42844
43092
  longestCellByColumn[columnIndex] = size;
42845
43093
  }
42846
- sizes4[columnIndex] = size;
43094
+ sizes3[columnIndex] = size;
42847
43095
  }
42848
43096
  row[columnIndex] = cell;
42849
43097
  }
42850
43098
  cellMatrix.splice(1, 0, row);
42851
- sizeMatrix.splice(1, 0, sizes4);
43099
+ sizeMatrix.splice(1, 0, sizes3);
42852
43100
  rowIndex = -1;
42853
43101
  const lines = [];
42854
43102
  while (++rowIndex < cellMatrix.length) {
42855
43103
  const row2 = cellMatrix[rowIndex];
42856
- const sizes5 = sizeMatrix[rowIndex];
43104
+ const sizes4 = sizeMatrix[rowIndex];
42857
43105
  columnIndex = -1;
42858
43106
  const line = [];
42859
43107
  while (++columnIndex < mostCellsPerRow) {
@@ -42861,7 +43109,7 @@ function markdownTable(table2, options) {
42861
43109
  let before = "";
42862
43110
  let after = "";
42863
43111
  if (settings.alignDelimiters !== false) {
42864
- const size = longestCellByColumn[columnIndex] - (sizes5[columnIndex] || 0);
43112
+ const size = longestCellByColumn[columnIndex] - (sizes4[columnIndex] || 0);
42865
43113
  const code4 = alignments[columnIndex];
42866
43114
  if (code4 === 114) {
42867
43115
  before = " ".repeat(size);
@@ -54429,7 +54677,7 @@ function MarkdownHeading({
54429
54677
  id: id2,
54430
54678
  level: typographyLevel,
54431
54679
  bold: true,
54432
- className: classNames74(
54680
+ className: classNames73(
54433
54681
  "eui-markdown-heading group relative scroll-mt-24 font-bold leading-tight text-gray-900 dark:text-gray-100",
54434
54682
  HEADING_STYLES[level],
54435
54683
  className
@@ -54592,18 +54840,18 @@ function powerSetPermutations(arr) {
54592
54840
  }
54593
54841
  }
54594
54842
  var classNameCombinations = {};
54595
- function getClassNameCombinations(classNames78) {
54596
- if (classNames78.length === 0 || classNames78.length === 1) return classNames78;
54597
- var key = classNames78.join(".");
54843
+ function getClassNameCombinations(classNames77) {
54844
+ if (classNames77.length === 0 || classNames77.length === 1) return classNames77;
54845
+ var key = classNames77.join(".");
54598
54846
  if (!classNameCombinations[key]) {
54599
- classNameCombinations[key] = powerSetPermutations(classNames78);
54847
+ classNameCombinations[key] = powerSetPermutations(classNames77);
54600
54848
  }
54601
54849
  return classNameCombinations[key];
54602
54850
  }
54603
- function createStyleObject(classNames78) {
54851
+ function createStyleObject(classNames77) {
54604
54852
  var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
54605
54853
  var stylesheet = arguments.length > 2 ? arguments[2] : void 0;
54606
- var nonTokenClassNames = classNames78.filter(function(className) {
54854
+ var nonTokenClassNames = classNames77.filter(function(className) {
54607
54855
  return className !== "token";
54608
54856
  });
54609
54857
  var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
@@ -54611,8 +54859,8 @@ function createStyleObject(classNames78) {
54611
54859
  return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
54612
54860
  }, elementStyle);
54613
54861
  }
54614
- function createClassNameString(classNames78) {
54615
- return classNames78.join(" ");
54862
+ function createClassNameString(classNames77) {
54863
+ return classNames77.join(" ");
54616
54864
  }
54617
54865
  function createChildren2(stylesheet, useInlineStyles) {
54618
54866
  var childrenCount = 0;
@@ -54785,8 +55033,8 @@ function flattenCodeTree(tree) {
54785
55033
  }));
54786
55034
  } else if (node2.children) {
54787
55035
  var _node$properties;
54788
- var classNames78 = className.concat(((_node$properties = node2.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.className) || []);
54789
- flattenCodeTree(node2.children, classNames78).forEach(function(i2) {
55036
+ var classNames77 = className.concat(((_node$properties = node2.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.className) || []);
55037
+ flattenCodeTree(node2.children, classNames77).forEach(function(i2) {
54790
55038
  return newTree.push(i2);
54791
55039
  });
54792
55040
  }
@@ -55317,7 +55565,7 @@ var json_default = json;
55317
55565
 
55318
55566
  // node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js
55319
55567
  init_jsx();
55320
- var jsx_default = jsx218;
55568
+ var jsx_default = jsx217;
55321
55569
 
55322
55570
  // node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js
55323
55571
  init_markup();
@@ -55450,7 +55698,7 @@ function MarkdownCodeBlock({
55450
55698
  "div",
55451
55699
  {
55452
55700
  ...props,
55453
- className: classNames74(
55701
+ className: classNames73(
55454
55702
  "eui-markdown-code my-6 overflow-hidden rounded-md border border-slate-700 bg-[#0d1117] text-slate-300",
55455
55703
  className
55456
55704
  ),
@@ -55521,7 +55769,7 @@ function MarkdownInlineCode({
55521
55769
  Code,
55522
55770
  {
55523
55771
  ...props,
55524
- className: classNames74(
55772
+ className: classNames73(
55525
55773
  "eui-markdown-inline-code whitespace-break-spaces rounded-md border border-gray-300/70 bg-gray-200/60 px-1.5 py-0.5 font-mono text-[0.875em] font-medium text-gray-900 dark:border-gray-600/70 dark:bg-gray-700/50 dark:text-gray-200",
55526
55774
  className
55527
55775
  ),
@@ -55562,7 +55810,7 @@ function MarkdownLink({
55562
55810
  href: safeHref,
55563
55811
  target: resolvedTarget,
55564
55812
  rel,
55565
- className: classNames74(
55813
+ className: classNames73(
55566
55814
  "eui-markdown-link font-medium text-blue-600 underline underline-offset-4 transition-colors hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",
55567
55815
  className
55568
55816
  ),
@@ -55597,7 +55845,7 @@ function MarkdownImage({
55597
55845
  title,
55598
55846
  loading: "lazy",
55599
55847
  decoding: "async",
55600
- className: classNames74(
55848
+ className: classNames73(
55601
55849
  "eui-markdown-image my-6 h-auto max-w-full rounded-md border border-gray-200 dark:border-gray-700",
55602
55850
  className
55603
55851
  )
@@ -55614,7 +55862,7 @@ function MarkdownTable({
55614
55862
  TableElement,
55615
55863
  {
55616
55864
  ...props,
55617
- className: classNames74(
55865
+ className: classNames73(
55618
55866
  "eui-markdown-table w-full border-collapse text-[0.925rem]",
55619
55867
  className
55620
55868
  ),
@@ -55631,7 +55879,7 @@ function MarkdownTableCell({
55631
55879
  TableCell,
55632
55880
  {
55633
55881
  ...props,
55634
- className: classNames74(
55882
+ className: classNames73(
55635
55883
  "eui-markdown-table-cell border-b border-r border-gray-200 p-3 text-left align-top last:border-r-0 dark:border-gray-700",
55636
55884
  className
55637
55885
  ),
@@ -55648,7 +55896,7 @@ function MarkdownTableHeaderCell({
55648
55896
  TableHeaderCell,
55649
55897
  {
55650
55898
  ...props,
55651
- className: classNames74(
55899
+ className: classNames73(
55652
55900
  "eui-markdown-table-header-cell border-b border-r border-gray-200 p-3 text-left align-top font-bold text-gray-900 last:border-r-0 dark:border-gray-700 dark:text-gray-100",
55653
55901
  className
55654
55902
  ),
@@ -55664,7 +55912,7 @@ function MarkdownTableHead({
55664
55912
  TableHead,
55665
55913
  {
55666
55914
  ...props,
55667
- className: classNames74(
55915
+ className: classNames73(
55668
55916
  "eui-markdown-table-head bg-gray-50 dark:bg-gray-900",
55669
55917
  className
55670
55918
  )
@@ -55679,7 +55927,7 @@ function MarkdownTableBody({
55679
55927
  TableBody,
55680
55928
  {
55681
55929
  ...props,
55682
- className: classNames74("eui-markdown-table-body", className)
55930
+ className: classNames73("eui-markdown-table-body", className)
55683
55931
  }
55684
55932
  );
55685
55933
  }
@@ -55691,7 +55939,7 @@ function MarkdownTableRow({
55691
55939
  TableRow,
55692
55940
  {
55693
55941
  ...props,
55694
- className: classNames74(
55942
+ className: classNames73(
55695
55943
  "eui-markdown-table-row even:bg-gray-50/70 dark:even:bg-gray-900/60",
55696
55944
  className
55697
55945
  )
@@ -55709,7 +55957,7 @@ function MarkdownBlockquote({
55709
55957
  {
55710
55958
  ...props,
55711
55959
  as: "blockquote",
55712
- className: classNames74(
55960
+ className: classNames73(
55713
55961
  "eui-markdown-blockquote my-6 border-l-4 border-gray-300 bg-transparent px-4 py-0 text-gray-600 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 dark:border-gray-700 dark:text-gray-400",
55714
55962
  className
55715
55963
  ),
@@ -55728,7 +55976,7 @@ function MarkdownParagraph({
55728
55976
  {
55729
55977
  ...props,
55730
55978
  level: 1,
55731
- className: classNames74("eui-markdown-paragraph my-4", className),
55979
+ className: classNames73("eui-markdown-paragraph my-4", className),
55732
55980
  children: /* @__PURE__ */ jsx(Fragment, { children: children3 })
55733
55981
  }
55734
55982
  );
@@ -55739,7 +55987,7 @@ function MarkdownStrong({ className, ...props }) {
55739
55987
  "strong",
55740
55988
  {
55741
55989
  ...props,
55742
- className: classNames74(
55990
+ className: classNames73(
55743
55991
  "eui-markdown-strong font-semibold text-gray-950 dark:text-gray-100",
55744
55992
  className
55745
55993
  )
@@ -55752,7 +56000,7 @@ function MarkdownEmphasis({ className, ...props }) {
55752
56000
  "em",
55753
56001
  {
55754
56002
  ...props,
55755
- className: classNames74("eui-markdown-emphasis italic", className)
56003
+ className: classNames73("eui-markdown-emphasis italic", className)
55756
56004
  }
55757
56005
  );
55758
56006
  }
@@ -55765,7 +56013,7 @@ function MarkdownStrikethrough({
55765
56013
  "del",
55766
56014
  {
55767
56015
  ...props,
55768
- className: classNames74(
56016
+ className: classNames73(
55769
56017
  "eui-markdown-strikethrough text-gray-500 dark:text-gray-400",
55770
56018
  className
55771
56019
  )
@@ -55826,7 +56074,7 @@ function MarkdownTaskCheckbox({
55826
56074
  "input",
55827
56075
  {
55828
56076
  ...props,
55829
- className: classNames74(
56077
+ className: classNames73(
55830
56078
  "eui-markdown-task-checkbox mr-2 translate-y-px accent-blue-600",
55831
56079
  className
55832
56080
  )
@@ -55842,7 +56090,7 @@ function MarkdownThematicBreak({
55842
56090
  "hr",
55843
56091
  {
55844
56092
  ...props,
55845
- className: classNames74(
56093
+ className: classNames73(
55846
56094
  "eui-markdown-thematic-break my-8 border-0 border-t border-gray-200 dark:border-gray-800",
55847
56095
  className
55848
56096
  )
@@ -55859,7 +56107,7 @@ function MarkdownDetails({ className, ...props }) {
55859
56107
  "details",
55860
56108
  {
55861
56109
  ...props,
55862
- className: classNames74(
56110
+ className: classNames73(
55863
56111
  "eui-markdown-details my-4 rounded-md border border-gray-200 bg-gray-50 px-4 py-3 dark:border-gray-800 dark:bg-gray-900",
55864
56112
  className
55865
56113
  )
@@ -55871,7 +56119,7 @@ function MarkdownSummary({ className, ...props }) {
55871
56119
  "summary",
55872
56120
  {
55873
56121
  ...props,
55874
- className: classNames74(
56122
+ className: classNames73(
55875
56123
  "eui-markdown-summary cursor-pointer font-semibold text-gray-950 dark:text-gray-100",
55876
56124
  className
55877
56125
  )
@@ -55883,7 +56131,7 @@ function MarkdownFigure({ className, ...props }) {
55883
56131
  "figure",
55884
56132
  {
55885
56133
  ...props,
55886
- className: classNames74("eui-markdown-figure my-6", className)
56134
+ className: classNames73("eui-markdown-figure my-6", className)
55887
56135
  }
55888
56136
  );
55889
56137
  }
@@ -55895,7 +56143,7 @@ function MarkdownFigcaption({
55895
56143
  return /* @__PURE__ */ jsx("figcaption", { ...props, className: "eui-markdown-figcaption mt-2 text-center", children: /* @__PURE__ */ jsx(
55896
56144
  Caption,
55897
56145
  {
55898
- className: classNames74(
56146
+ className: classNames73(
55899
56147
  "text-gray-500 opacity-100 dark:text-gray-400",
55900
56148
  className
55901
56149
  ),
@@ -56294,14 +56542,14 @@ function MarkdownRenderer({
56294
56542
  return /* @__PURE__ */ jsx(
56295
56543
  "div",
56296
56544
  {
56297
- className: classNames74(
56545
+ className: classNames73(
56298
56546
  "eui-markdown markdown-body break-words bg-transparent text-[0.95rem] leading-7 text-gray-800 dark:text-gray-300",
56299
56547
  className
56300
56548
  ),
56301
56549
  children: /* @__PURE__ */ jsx(
56302
56550
  "div",
56303
56551
  {
56304
- className: classNames74(
56552
+ className: classNames73(
56305
56553
  "[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
56306
56554
  contentClassName
56307
56555
  ),
@@ -56379,11 +56627,11 @@ function MarkdownTOCItem({
56379
56627
  onClick: () => onSelect?.(heading3),
56380
56628
  "aria-current": active ? "location" : void 0,
56381
56629
  title: label,
56382
- className: classNames74(
56630
+ className: classNames73(
56383
56631
  "eui-markdown-toc-item",
56384
56632
  "block w-full text-left text-sm transition-all ease-in-out duration-150",
56385
56633
  "hover:text-primary",
56386
- active ? classNames74("text-primary font-semibold underline", activeClassName) : classNames74("text-gray-500 dark:text-gray-400", inactiveClassName),
56634
+ active ? classNames73("text-primary font-semibold underline", activeClassName) : classNames73("text-gray-500 dark:text-gray-400", inactiveClassName),
56387
56635
  className
56388
56636
  ),
56389
56637
  style: {
@@ -56449,7 +56697,7 @@ function MarkdownTOC({
56449
56697
  return emptyState ? /* @__PURE__ */ jsx(
56450
56698
  "div",
56451
56699
  {
56452
- className: classNames74(
56700
+ className: classNames73(
56453
56701
  "eui-markdown-toc",
56454
56702
  "text-sm text-gray-500 dark:text-gray-400",
56455
56703
  className
@@ -56469,7 +56717,7 @@ function MarkdownTOC({
56469
56717
  {
56470
56718
  type: "button",
56471
56719
  onClick: () => setCollapsed((value) => !value),
56472
- className: classNames74(
56720
+ className: classNames73(
56473
56721
  "eui-markdown-toc-title",
56474
56722
  "flex w-full items-center justify-between gap-2 text-left",
56475
56723
  "text-sm font-semibold uppercase tracking-wide",
@@ -56482,7 +56730,7 @@ function MarkdownTOC({
56482
56730
  /* @__PURE__ */ jsx(
56483
56731
  "span",
56484
56732
  {
56485
- className: classNames74(
56733
+ className: classNames73(
56486
56734
  "text-xs opacity-60 transition-transform duration-150",
56487
56735
  !collapsed && "rotate-90"
56488
56736
  ),
@@ -56495,7 +56743,7 @@ function MarkdownTOC({
56495
56743
  ) : /* @__PURE__ */ jsx(
56496
56744
  "h2",
56497
56745
  {
56498
- className: classNames74(
56746
+ className: classNames73(
56499
56747
  "eui-markdown-toc-title",
56500
56748
  "text-sm font-semibold uppercase tracking-wide",
56501
56749
  "text-gray-900 dark:text-gray-100",
@@ -56507,7 +56755,7 @@ function MarkdownTOC({
56507
56755
  !collapsed ? /* @__PURE__ */ jsx(
56508
56756
  "nav",
56509
56757
  {
56510
- className: classNames74(
56758
+ className: classNames73(
56511
56759
  "eui-markdown-toc-list",
56512
56760
  "space-y-1",
56513
56761
  listClassName
@@ -56531,7 +56779,7 @@ function MarkdownTOC({
56531
56779
  }
56532
56780
  ) : null
56533
56781
  ] });
56534
- return /* @__PURE__ */ jsx("aside", { className: classNames74("eui-markdown-toc", "space-y-4", className), children: content3 });
56782
+ return /* @__PURE__ */ jsx("aside", { className: classNames73("eui-markdown-toc", "space-y-4", className), children: content3 });
56535
56783
  }
56536
56784
  var MarkdownTOC_default = MarkdownTOC;
56537
56785
  var DEFAULT_MARKDOWN_TOOLBAR_ACTIONS = [
@@ -56630,7 +56878,7 @@ function MarkdownToolbar({
56630
56878
  return /* @__PURE__ */ jsxs(
56631
56879
  "div",
56632
56880
  {
56633
- className: classNames74(
56881
+ className: classNames73(
56634
56882
  "eui-markdown-toolbar",
56635
56883
  "flex flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 p-2",
56636
56884
  "dark:border-gray-700 dark:bg-gray-900",
@@ -56644,7 +56892,7 @@ function MarkdownToolbar({
56644
56892
  disabled: disabled || actionsDisabled,
56645
56893
  title: action.shortcut ? `${action.title || action.label} (${action.shortcut})` : action.title || action.label,
56646
56894
  onClick: () => onAction?.(action.id),
56647
- className: classNames74(
56895
+ className: classNames73(
56648
56896
  "eui-markdown-toolbar-button",
56649
56897
  "inline-flex items-center justify-center rounded border border-transparent",
56650
56898
  "text-gray-700 transition-colors hover:border-gray-300 hover:bg-white",
@@ -56664,7 +56912,7 @@ function MarkdownToolbar({
56664
56912
  disabled,
56665
56913
  onClick: onViewModeToggle,
56666
56914
  title: isPreviewMode ? "Switch to Markdown syntax" : "Switch to preview",
56667
- className: classNames74(
56915
+ className: classNames73(
56668
56916
  "eui-markdown-view-toggle",
56669
56917
  "inline-flex items-center justify-center rounded border font-medium transition-colors",
56670
56918
  "border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
@@ -56921,7 +57169,7 @@ function MarkdownSourceEditor({
56921
57169
  return /* @__PURE__ */ jsxs(
56922
57170
  "div",
56923
57171
  {
56924
- className: classNames74(
57172
+ className: classNames73(
56925
57173
  "eui-markdown-editor",
56926
57174
  "overflow-hidden rounded border border-gray-300 bg-white",
56927
57175
  "dark:border-gray-700 dark:bg-gray-950",
@@ -56937,7 +57185,7 @@ function MarkdownSourceEditor({
56937
57185
  actionsDisabled: readOnly,
56938
57186
  viewMode: currentViewMode,
56939
57187
  showViewModeToggle,
56940
- className: classNames74(toolbarClassName, toolbarProps?.className),
57188
+ className: classNames73(toolbarClassName, toolbarProps?.className),
56941
57189
  onViewModeToggle: toggleViewMode,
56942
57190
  onAction: handleToolbarAction
56943
57191
  }
@@ -56945,7 +57193,7 @@ function MarkdownSourceEditor({
56945
57193
  currentViewMode === "preview" ? /* @__PURE__ */ jsx(
56946
57194
  "div",
56947
57195
  {
56948
- className: classNames74(
57196
+ className: classNames73(
56949
57197
  "eui-markdown-editor-preview",
56950
57198
  "min-h-[260px] p-4",
56951
57199
  previewClassName
@@ -56968,7 +57216,7 @@ function MarkdownSourceEditor({
56968
57216
  onChange: (event) => updateValue(event.target.value),
56969
57217
  onBlur,
56970
57218
  onKeyDown: handleKeyDown,
56971
- className: classNames74(
57219
+ className: classNames73(
56972
57220
  "eui-markdown-source-textarea",
56973
57221
  "block w-full resize-y border-0 bg-transparent p-4 font-mono text-sm leading-7",
56974
57222
  "text-gray-900 outline-none placeholder:text-gray-400",
@@ -56998,7 +57246,7 @@ function MarkdownPreviewPane({
56998
57246
  return /* @__PURE__ */ jsx(
56999
57247
  "div",
57000
57248
  {
57001
- className: classNames74(
57249
+ className: classNames73(
57002
57250
  "eui-markdown-preview-pane",
57003
57251
  "rounded border border-gray-300 bg-white p-4",
57004
57252
  "dark:border-gray-700 dark:bg-gray-950",
@@ -57048,7 +57296,7 @@ function MarkdownSplitEditor({
57048
57296
  return /* @__PURE__ */ jsxs(
57049
57297
  "div",
57050
57298
  {
57051
- className: classNames74(
57299
+ className: classNames73(
57052
57300
  "eui-markdown-split-editor",
57053
57301
  "grid gap-4",
57054
57302
  isHorizontal ? "grid-cols-1 lg:grid-cols-2" : "grid-cols-1",
@@ -57058,7 +57306,7 @@ function MarkdownSplitEditor({
57058
57306
  /* @__PURE__ */ jsxs(
57059
57307
  "div",
57060
57308
  {
57061
- className: classNames74(
57309
+ className: classNames73(
57062
57310
  "eui-markdown-split-source",
57063
57311
  "min-w-0 space-y-2",
57064
57312
  sourceWrapperClassName
@@ -57082,7 +57330,7 @@ function MarkdownSplitEditor({
57082
57330
  /* @__PURE__ */ jsxs(
57083
57331
  "div",
57084
57332
  {
57085
- className: classNames74(
57333
+ className: classNames73(
57086
57334
  "eui-markdown-split-preview",
57087
57335
  "min-w-0 space-y-2",
57088
57336
  previewWrapperClassName
@@ -57172,7 +57420,7 @@ function MarkdownField({
57172
57420
  return /* @__PURE__ */ jsxs(
57173
57421
  "div",
57174
57422
  {
57175
- className: classNames74(
57423
+ className: classNames73(
57176
57424
  "eui-markdown-field",
57177
57425
  "relative space-y-2",
57178
57426
  wrapperClassName
@@ -57182,7 +57430,7 @@ function MarkdownField({
57182
57430
  "label",
57183
57431
  {
57184
57432
  htmlFor: editorProps.id || field.name,
57185
- className: classNames74(
57433
+ className: classNames73(
57186
57434
  "block text-sm font-medium text-gray-700 dark:text-gray-200",
57187
57435
  labelClassName
57188
57436
  ),
@@ -57207,7 +57455,7 @@ function MarkdownField({
57207
57455
  helperText && !hasError ? /* @__PURE__ */ jsx(
57208
57456
  "p",
57209
57457
  {
57210
- className: classNames74(
57458
+ className: classNames73(
57211
57459
  "text-sm text-gray-500 dark:text-gray-400",
57212
57460
  helperTextClassName
57213
57461
  ),
@@ -57262,7 +57510,7 @@ function CodeMirrorMarkdownEditor({
57262
57510
  {
57263
57511
  id: id2,
57264
57512
  "data-name": name2,
57265
- className: classNames74(
57513
+ className: classNames73(
57266
57514
  "eui-markdown-adapter",
57267
57515
  "eui-markdown-codemirror-adapter",
57268
57516
  "overflow-hidden rounded border border-gray-300 bg-white",
@@ -57296,7 +57544,7 @@ function CodeMirrorMarkdownEditor({
57296
57544
  closeBrackets: true,
57297
57545
  bracketMatching: true
57298
57546
  },
57299
- className: classNames74("eui-markdown-codemirror", editorClassName),
57547
+ className: classNames73("eui-markdown-codemirror", editorClassName),
57300
57548
  onChange: updateValue,
57301
57549
  onBlur
57302
57550
  }
@@ -57391,7 +57639,7 @@ function createDefaultPlugins({
57391
57639
  ...showToolbar ? [
57392
57640
  toolbarPlugin({
57393
57641
  toolbarContents: toolbarContents ?? DefaultToolbar,
57394
- toolbarClassName: classNames74(
57642
+ toolbarClassName: classNames73(
57395
57643
  "eui-markdown-mdx-toolbar",
57396
57644
  toolbarClassName
57397
57645
  ),
@@ -57508,7 +57756,7 @@ var MDXMarkdownEditor = forwardRef(
57508
57756
  "aria-required": required || void 0,
57509
57757
  "aria-invalid": invalid || void 0,
57510
57758
  onBlurCapture: handleBlur,
57511
- className: classNames74(
57759
+ className: classNames73(
57512
57760
  "eui-markdown-adapter",
57513
57761
  "eui-markdown-mdx-adapter",
57514
57762
  dark && ["dark", "dark-theme"],
@@ -57526,8 +57774,8 @@ var MDXMarkdownEditor = forwardRef(
57526
57774
  markdown: currentValue ?? "",
57527
57775
  readOnly: disabled || readOnly,
57528
57776
  plugins: plugins ?? defaultPlugins,
57529
- className: classNames74("eui-markdown-mdx-editor", editorClassName),
57530
- contentEditableClassName: classNames74(
57777
+ className: classNames73("eui-markdown-mdx-editor", editorClassName),
57778
+ contentEditableClassName: classNames73(
57531
57779
  "eui-markdown-mdx-content",
57532
57780
  contentEditableClassName
57533
57781
  ),
@@ -57564,7 +57812,7 @@ function MDXMarkdownField({
57564
57812
  return /* @__PURE__ */ jsxs(
57565
57813
  "div",
57566
57814
  {
57567
- className: classNames74(
57815
+ className: classNames73(
57568
57816
  "eui-markdown-mdx-field",
57569
57817
  "relative space-y-2",
57570
57818
  wrapperClassName
@@ -57574,7 +57822,7 @@ function MDXMarkdownField({
57574
57822
  "label",
57575
57823
  {
57576
57824
  htmlFor: editorId,
57577
- className: classNames74(
57825
+ className: classNames73(
57578
57826
  "block text-sm font-medium text-gray-700 dark:text-gray-200",
57579
57827
  labelClassName
57580
57828
  ),
@@ -57608,7 +57856,7 @@ function MDXMarkdownField({
57608
57856
  "p",
57609
57857
  {
57610
57858
  id: helperId,
57611
- className: classNames74(
57859
+ className: classNames73(
57612
57860
  "text-sm text-gray-500 dark:text-gray-400",
57613
57861
  helperTextClassName
57614
57862
  ),
@@ -57668,10 +57916,10 @@ function MarkdownLayout({
57668
57916
  };
57669
57917
  const hasLeftToc = hasToc && tocPosition === "left";
57670
57918
  const hasRightToc = hasToc && tocPosition === "right";
57671
- return /* @__PURE__ */ jsx("div", { className: classNames74("eui-markdown-layout", "w-full", className), children: /* @__PURE__ */ jsxs(
57919
+ return /* @__PURE__ */ jsx("div", { className: classNames73("eui-markdown-layout", "w-full", className), children: /* @__PURE__ */ jsxs(
57672
57920
  "div",
57673
57921
  {
57674
- className: classNames74(
57922
+ className: classNames73(
57675
57923
  "eui-markdown-layout-container",
57676
57924
  "mx-auto w-full px-4 sm:px-6 lg:px-8",
57677
57925
  containerClassName
@@ -57683,7 +57931,7 @@ function MarkdownLayout({
57683
57931
  header ? /* @__PURE__ */ jsx(
57684
57932
  "header",
57685
57933
  {
57686
- className: classNames74(
57934
+ className: classNames73(
57687
57935
  "eui-markdown-layout-header",
57688
57936
  "mb-8",
57689
57937
  headerClassName
@@ -57694,7 +57942,7 @@ function MarkdownLayout({
57694
57942
  /* @__PURE__ */ jsxs(
57695
57943
  "div",
57696
57944
  {
57697
- className: classNames74(
57945
+ className: classNames73(
57698
57946
  "eui-markdown-layout-grid",
57699
57947
  "grid grid-cols-1 gap-8",
57700
57948
  hasSidebar && hasToc && "xl:grid-cols-[16rem_minmax(0,1fr)_18rem]",
@@ -57707,7 +57955,7 @@ function MarkdownLayout({
57707
57955
  hasSidebar ? /* @__PURE__ */ jsx(
57708
57956
  "aside",
57709
57957
  {
57710
- className: classNames74(
57958
+ className: classNames73(
57711
57959
  "eui-markdown-layout-sidebar",
57712
57960
  "min-w-0",
57713
57961
  stickySidebar && "lg:sticky lg:self-start",
@@ -57720,7 +57968,7 @@ function MarkdownLayout({
57720
57968
  hasLeftToc ? /* @__PURE__ */ jsx(
57721
57969
  "aside",
57722
57970
  {
57723
- className: classNames74(
57971
+ className: classNames73(
57724
57972
  "eui-markdown-layout-toc",
57725
57973
  "min-w-0",
57726
57974
  stickyToc && "lg:sticky lg:self-start",
@@ -57733,7 +57981,7 @@ function MarkdownLayout({
57733
57981
  /* @__PURE__ */ jsx(
57734
57982
  "main",
57735
57983
  {
57736
- className: classNames74(
57984
+ className: classNames73(
57737
57985
  "eui-markdown-layout-content",
57738
57986
  "min-w-0",
57739
57987
  contentClassName
@@ -57744,7 +57992,7 @@ function MarkdownLayout({
57744
57992
  hasRightToc ? /* @__PURE__ */ jsx(
57745
57993
  "aside",
57746
57994
  {
57747
- className: classNames74(
57995
+ className: classNames73(
57748
57996
  "eui-markdown-layout-toc",
57749
57997
  "min-w-0",
57750
57998
  stickyToc && "lg:sticky lg:self-start",
@@ -57757,7 +58005,7 @@ function MarkdownLayout({
57757
58005
  hasAside ? /* @__PURE__ */ jsx(
57758
58006
  "aside",
57759
58007
  {
57760
- className: classNames74(
58008
+ className: classNames73(
57761
58009
  "eui-markdown-layout-aside",
57762
58010
  "min-w-0",
57763
58011
  stickyAside && "2xl:sticky 2xl:self-start",
@@ -57773,7 +58021,7 @@ function MarkdownLayout({
57773
58021
  footer2 ? /* @__PURE__ */ jsx(
57774
58022
  "footer",
57775
58023
  {
57776
- className: classNames74(
58024
+ className: classNames73(
57777
58025
  "eui-markdown-layout-footer",
57778
58026
  "mt-10",
57779
58027
  footerClassName
@@ -57810,7 +58058,7 @@ function MarkdownDocsLayoutContent({
57810
58058
  const resolvedHeader = header ?? (title || description || headerActions ? /* @__PURE__ */ jsx(
57811
58059
  "div",
57812
58060
  {
57813
- className: classNames74(
58061
+ className: classNames73(
57814
58062
  "eui-markdown-docs-header",
57815
58063
  "flex flex-col gap-4 border-b border-gray-200 pb-6",
57816
58064
  "dark:border-gray-700",
@@ -57821,7 +58069,7 @@ function MarkdownDocsLayoutContent({
57821
58069
  title ? /* @__PURE__ */ jsx(
57822
58070
  "h1",
57823
58071
  {
57824
- className: classNames74(
58072
+ className: classNames73(
57825
58073
  "eui-markdown-docs-title",
57826
58074
  "text-3xl font-bold tracking-tight text-gray-950",
57827
58075
  "dark:text-gray-50",
@@ -57833,7 +58081,7 @@ function MarkdownDocsLayoutContent({
57833
58081
  description ? /* @__PURE__ */ jsx(
57834
58082
  "div",
57835
58083
  {
57836
- className: classNames74(
58084
+ className: classNames73(
57837
58085
  "eui-markdown-docs-description",
57838
58086
  "max-w-3xl text-base leading-7 text-gray-600",
57839
58087
  "dark:text-gray-400",
@@ -57921,7 +58169,7 @@ function GenericLayout({
57921
58169
  return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
57922
58170
  "div",
57923
58171
  {
57924
- className: classNames74({
58172
+ className: classNames73({
57925
58173
  [`${styles}`]: styles
57926
58174
  }),
57927
58175
  children: children3
@@ -57970,7 +58218,7 @@ function SidemenuLayout({ data, children: children3 }) {
57970
58218
  return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
57971
58219
  "div",
57972
58220
  {
57973
- className: classNames74({
58221
+ className: classNames73({
57974
58222
  grid: true,
57975
58223
  "grid-cols-7 gap-10": !isMobile,
57976
58224
  "grid-cols-1 gap-": isMobile
@@ -58050,6 +58298,6 @@ function ScrollToTop({
58050
58298
  }
58051
58299
  var ScrollToTop_default = ScrollToTop;
58052
58300
 
58053
- export { Accordion_default as Accordion, AnalyticsContext, AnalyticsProvider, AreaPlot, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarPlot, BaseChartDataSource, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_web_default as Button, CHART_COLOR_PALETTE, CHART_DARK_THEME, CHART_DATA_MODES, CHART_DEFAULT_ACTIVE_DOT_RADIUS, CHART_DEFAULT_ANIMATION_DURATION, CHART_DEFAULT_BAR_RADIUS, CHART_DEFAULT_HEIGHT, CHART_DEFAULT_HORIZONTAL_BAR_RADIUS, CHART_DEFAULT_MARGIN, CHART_DEFAULT_MAX_REALTIME_POINTS, CHART_DEFAULT_POLLING_INTERVAL, CHART_DEFAULT_STROKE_WIDTH, CHART_EMPTY_MESSAGE, CHART_ERROR_MESSAGE, CHART_LIGHT_THEME, CHART_LOADING_MESSAGE, CHART_STATUSES, CHART_STATUS_COLORS, CHART_VALUE_FORMATS, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Chart, ChartContainer, ChartContext, ChartEmptyState, ChartErrorState, ChartHeader, ChartLegend, ChartLoadingState, ChartPanel, ChartPlotFrame, ChartProvider, ChartToolbar, ChartTooltip, Checkbox, Chip, CloudinaryImage2 as CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Code, CodeMirrorMarkdownEditor_default as CodeMirrorMarkdownEditor, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, CookieBanner, CookiePreferencesModal, DEFAULT_ANALYTICS_CONFIG, DEFAULT_COOKIE_CATEGORIES, DEFAULT_REVIEW_THREAD_CONFIG, DataView2 as DataView, DataViewContent, DataViewFilterGroup, DataViewFooter, DataViewHeader, DataViewPageSize, DataViewPagination, DataViewProvider, DataViewSearch, DataViewSidebar, DataViewSort, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, EUI_ANALYTICS_ANONYMOUS_ID_STORAGE_KEY, EUI_ANALYTICS_CONSENT_STORAGE_KEY, EUI_ANALYTICS_QUEUE_STORAGE_KEY, EnvErrorScreen_default as EnvErrorScreen, Flag, Flex, FlexCol_default as FlexCol, FlexRow_default as FlexRow, Footer, FooterNav_default as FooterNav, FooterNavGroup_default as FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse_default as FormResponse, GaugePlot, GenericLayout_default as GenericLayout, GlowWrapper_default as GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid_default as Grid, Header, HeaderNav_default as HeaderNav, HeaderNavGroup_default as HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout_default as HomeLayout, Image2 as Image, ImageInput_default as ImageInput, InfiniteScrollTrigger_default as InfiniteScrollTrigger, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Label, Layout, Lead, LinePlot, Link, List, ListItem, ListItemElement, ListRoot, MDXMarkdownEditor_default as MDXMarkdownEditor, MDXMarkdownField_default as MDXMarkdownField, MarkdownBlockquote_default as MarkdownBlockquote, MarkdownBreak_default as MarkdownBreak, MarkdownCodeBlock_default as MarkdownCodeBlock, MarkdownContext, MarkdownDetails, MarkdownDocsLayout_default as MarkdownDocsLayout, MarkdownEditor_default as MarkdownEditor, MarkdownEmphasis_default as MarkdownEmphasis, MarkdownField_default as MarkdownField, MarkdownFigcaption, MarkdownFigure, MarkdownHeading_default as MarkdownHeadingComponent, MarkdownImage_default as MarkdownImage, MarkdownInlineCode_default as MarkdownInlineCode, MarkdownLayout_default as MarkdownLayout, MarkdownLink_default as MarkdownLink, MarkdownListItem_default as MarkdownListItem, MarkdownOrderedList, MarkdownParagraph_default as MarkdownParagraph, MarkdownPreviewPane_default as MarkdownPreviewPane, MarkdownProvider_default as MarkdownProvider, MarkdownRenderer_default as MarkdownRenderer, MarkdownSourceEditor_default as MarkdownSourceEditor, MarkdownSplitEditor_default as MarkdownSplitEditor, MarkdownStrikethrough_default as MarkdownStrikethrough, MarkdownStrong_default as MarkdownStrong, MarkdownSummary, MarkdownTOC_default as MarkdownTOC, MarkdownTOCItem_default as MarkdownTOCItem, MarkdownTable_default as MarkdownTable, MarkdownTableBody, MarkdownTableCell, MarkdownTableHead, MarkdownTableHeaderCell, MarkdownTableRow, MarkdownTaskCheckbox_default as MarkdownTaskCheckbox, MarkdownThematicBreak_default as MarkdownThematicBreak, MarkdownToolbar_default as MarkdownToolbar, MarkdownUnorderedList, MarkdownViewer_default as MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal_default as Modal, MotionSurface_default as MotionSurface, MultiImageInput_default as MultiImageInput, NumericRating, Overline, Paragraph, PiePlot, PollingChartDataSource, PreviewSwitch, PriceTag, ProgressBar, ProgressBarRating, Quote, Radio_default as Radio, RealtimeChartDataSource, ReviewThread_default as ReviewThread, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScatterPlot, ScrollToTop_default as ScrollToTop, Section, Select_default as Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, Spinner, StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, StatPlot, StaticChartDataSource, Switch_default as Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table, TableBody, TableCell, TableElement, TableFrame, TableHead, TableHeaderCell, TableRow, Tag, Tags_default as Tags, TextArea_default as TextArea, ThemeContext, ThemeProvider, ThemeSelect, ThemeSwitch, TitleBanner, Toast, Tooltip6 as Tooltip, TopNav, Transition, TransitionAccordion_default as TransitionAccordion, TransitionBase_default as TransitionBase, TransitionDropdown_default as TransitionDropdown, TransitionFade_default as TransitionFade, TransitionFadeIn_default as TransitionFadeIn, TransitionScale_default as TransitionScale, TransitionSlide_default as TransitionSlide, Typography, UnderConstructionBanner, ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo, YoutubeVideo as YoutubeVideoPlayer, addReplyToCache, addReviewReply, appendReview, applyReactionState, assertAbsoluteURL, buildURL, canDeleteReview, canDeleteReviewReply, canEditReview, canEditReviewReply, canReplyToReview, canReportReview, canReportReviewReply, clearAnalyticsQueueStorage, clearAnonymousIdStorage, clearConsentStorage, cn, createAnalyticsEvent, createAnalyticsId, createConfigurator, createDefaultConsent, createForceLayout, createGridLayout, createHeadingSlug, createTreeLayout, createURLResolver, decrementReplyCount, defaultFormatValue, defaultTiers, ensureAnonymousIdStorage, enumValues, euiToast, extractHeadings, findReview, formatChartLabel, formatChartValue, formatCommentDate, formatConfigError, formatReviewDate, generateHeadingNumbers, getAllowedOrigins, getBrowserHref, getBrowserOrigin, getBrowserRedirectURL, getConsentStatusFromCategories, getCurrencySymbol, getCurrentFullUrl, getCurrentPath, getCurrentReferrer, getCurrentTitle, getDeviceInfo, getDoNotTrackEnabled, getLayout, getNowISOString, getOptimisticDislikeState, getOptimisticLikeState, getSafeRedirect, getViewport, hasReviewReply, incrementReplyCount, isBrowser, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeChartData, normalizeChartDataPoint, normalizeMarkdown, normalizeReview, normalizeReviewAuthor, normalizeReviewReply, parseJson, parseJsonRecord, parseUrlMap, prependReview, readAnalyticsQueueStorage, readAnonymousIdStorage, readConsentStorage, registerLayout, removeComment, removeCommentTreeFromCache, removeReview, removeReviewReply, replaceRealtimePoints, replaceReview, replaceReviewReply, resolveAppearanceStyles, resolveChartColor, resolveChartColors, resolveWithGlobal, safeReadStorage, safeRemoveStorage, safeWriteStorage, sanitizeHeading, sendToast, slugify, toConfiguratorError, updateComment, updateReplyCacheComment, updateReview, updateReviewReply, upsertReview, useActiveHeading, useAnalytics, useChartContext, useChartData, useChartPolling, useChartRealtime, useChartSeries, useChartTheme, useClickOutside, useCloudinaryConfig, useCookieConsent, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useEUIDevPreviewPlatform, useIsMobile_default as useIsMobile, useMarkdown, useMarkdownHeadings, useModal_default as useModal, usePageTracking, useResolvedChartState, useReviewThreadState, useSessionTracking, useTheme_default as useTheme, writeAnalyticsQueueStorage, writeConsentStorage };
58301
+ export { Accordion_default as Accordion, AnalyticsContext, AnalyticsProvider, AreaPlot, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarPlot, BaseChartDataSource, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_web_default as Button, CHART_COLOR_PALETTE, CHART_DARK_THEME, CHART_DATA_MODES, CHART_DEFAULT_ACTIVE_DOT_RADIUS, CHART_DEFAULT_ANIMATION_DURATION, CHART_DEFAULT_BAR_RADIUS, CHART_DEFAULT_HEIGHT, CHART_DEFAULT_HORIZONTAL_BAR_RADIUS, CHART_DEFAULT_MARGIN, CHART_DEFAULT_MAX_REALTIME_POINTS, CHART_DEFAULT_POLLING_INTERVAL, CHART_DEFAULT_STROKE_WIDTH, CHART_EMPTY_MESSAGE, CHART_ERROR_MESSAGE, CHART_LIGHT_THEME, CHART_LOADING_MESSAGE, CHART_STATUSES, CHART_STATUS_COLORS, CHART_VALUE_FORMATS, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Chart, ChartContainer, ChartContext, ChartEmptyState, ChartErrorState, ChartHeader, ChartLegend, ChartLoadingState, ChartPanel, ChartPlotFrame, ChartProvider, ChartToolbar, ChartTooltip, Checkbox, Chip, CloudinaryImage2 as CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Code, CodeMirrorMarkdownEditor_default as CodeMirrorMarkdownEditor, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, CookieBanner, CookiePreferencesModal, DEFAULT_ANALYTICS_CONFIG, DEFAULT_COOKIE_CATEGORIES, DEFAULT_REVIEW_THREAD_CONFIG, DataView2 as DataView, DataViewContent, DataViewFilterGroup, DataViewFooter, DataViewHeader, DataViewPageSize, DataViewPagination, DataViewProvider, DataViewSearch, DataViewSidebar, DataViewSort, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, EUI_ANALYTICS_ANONYMOUS_ID_STORAGE_KEY, EUI_ANALYTICS_CONSENT_STORAGE_KEY, EUI_ANALYTICS_QUEUE_STORAGE_KEY, EnvErrorScreen_default as EnvErrorScreen, Flag, Flex, FlexCol_default as FlexCol, FlexRow_default as FlexRow, Footer, FooterNav_default as FooterNav, FooterNavGroup_default as FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, GaugePlot, GenericLayout_default as GenericLayout, GlowWrapper_default as GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid_default as Grid, Header, HeaderNav_default as HeaderNav, HeaderNavGroup_default as HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout_default as HomeLayout, Image2 as Image, ImageInput_web_default as ImageInput, ImageView, InfiniteScrollTrigger_default as InfiniteScrollTrigger, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Label, Layout, Lead, LinePlot, Link, List, ListItem, ListItemElement, ListRoot, MDXMarkdownEditor_default as MDXMarkdownEditor, MDXMarkdownField_default as MDXMarkdownField, MarkdownBlockquote_default as MarkdownBlockquote, MarkdownBreak_default as MarkdownBreak, MarkdownCodeBlock_default as MarkdownCodeBlock, MarkdownContext, MarkdownDetails, MarkdownDocsLayout_default as MarkdownDocsLayout, MarkdownEditor_default as MarkdownEditor, MarkdownEmphasis_default as MarkdownEmphasis, MarkdownField_default as MarkdownField, MarkdownFigcaption, MarkdownFigure, MarkdownHeading_default as MarkdownHeadingComponent, MarkdownImage_default as MarkdownImage, MarkdownInlineCode_default as MarkdownInlineCode, MarkdownLayout_default as MarkdownLayout, MarkdownLink_default as MarkdownLink, MarkdownListItem_default as MarkdownListItem, MarkdownOrderedList, MarkdownParagraph_default as MarkdownParagraph, MarkdownPreviewPane_default as MarkdownPreviewPane, MarkdownProvider_default as MarkdownProvider, MarkdownRenderer_default as MarkdownRenderer, MarkdownSourceEditor_default as MarkdownSourceEditor, MarkdownSplitEditor_default as MarkdownSplitEditor, MarkdownStrikethrough_default as MarkdownStrikethrough, MarkdownStrong_default as MarkdownStrong, MarkdownSummary, MarkdownTOC_default as MarkdownTOC, MarkdownTOCItem_default as MarkdownTOCItem, MarkdownTable_default as MarkdownTable, MarkdownTableBody, MarkdownTableCell, MarkdownTableHead, MarkdownTableHeaderCell, MarkdownTableRow, MarkdownTaskCheckbox_default as MarkdownTaskCheckbox, MarkdownThematicBreak_default as MarkdownThematicBreak, MarkdownToolbar_default as MarkdownToolbar, MarkdownUnorderedList, MarkdownViewer_default as MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal_default as Modal, MotionSurface_default as MotionSurface, MultiImageInput_web_default as MultiImageInput, NumericRating, Overline, Paragraph, PiePlot, PollingChartDataSource, PreviewSwitch, PriceTag, ProgressBar, ProgressBarRating, Quote, Radio_default as Radio, RealtimeChartDataSource, ReviewThread_default as ReviewThread, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScatterPlot, ScrollToTop_default as ScrollToTop, Section, Select_default as Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, Spinner, StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, StatPlot, StaticChartDataSource, Switch_default as Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table, TableBody, TableCell, TableElement, TableFrame, TableHead, TableHeaderCell, TableRow, Tag, Tags_default as Tags, TextArea_default as TextArea, ThemeContext, ThemeProvider, ThemeSelect, ThemeSwitch, TitleBanner, Toast, Tooltip6 as Tooltip, TopNav, Transition, TransitionAccordion_default as TransitionAccordion, TransitionBase_default as TransitionBase, TransitionDropdown_default as TransitionDropdown, TransitionFade_default as TransitionFade, TransitionFadeIn_default as TransitionFadeIn, TransitionScale_default as TransitionScale, TransitionSlide_default as TransitionSlide, Typography, UnderConstructionBanner, ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo, YoutubeVideo as YoutubeVideoPlayer, addReplyToCache, addReviewReply, appendReview, applyReactionState, assertAbsoluteURL, buildURL, canDeleteReview, canDeleteReviewReply, canEditReview, canEditReviewReply, canReplyToReview, canReportReview, canReportReviewReply, clearAnalyticsQueueStorage, clearAnonymousIdStorage, clearConsentStorage, cn, createAnalyticsEvent, createAnalyticsId, createConfigurator, createDefaultConsent, createForceLayout, createGridLayout, createHeadingSlug, createTreeLayout, createURLResolver, decrementReplyCount, defaultFormatValue, defaultTiers, ensureAnonymousIdStorage, enumValues, euiToast, extractHeadings, findReview, formatChartLabel, formatChartValue, formatCommentDate, formatConfigError, formatReviewDate, generateHeadingNumbers, getAllowedOrigins, getBrowserHref, getBrowserOrigin, getBrowserRedirectURL, getConsentStatusFromCategories, getCurrencySymbol, getCurrentFullUrl, getCurrentPath, getCurrentReferrer, getCurrentTitle, getDeviceInfo, getDoNotTrackEnabled, getLayout, getNowISOString, getOptimisticDislikeState, getOptimisticLikeState, getSafeRedirect, getViewport, hasReviewReply, incrementReplyCount, isBrowser, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeChartData, normalizeChartDataPoint, normalizeMarkdown, normalizeReview, normalizeReviewAuthor, normalizeReviewReply, parseJson, parseJsonRecord, parseUrlMap, prependReview, readAnalyticsQueueStorage, readAnonymousIdStorage, readConsentStorage, registerLayout, removeComment, removeCommentTreeFromCache, removeReview, removeReviewReply, replaceRealtimePoints, replaceReview, replaceReviewReply, resolveAppearanceStyles, resolveChartColor, resolveChartColors, resolveWithGlobal, safeReadStorage, safeRemoveStorage, safeWriteStorage, sanitizeHeading, sendToast, slugify, toConfiguratorError, updateComment, updateReplyCacheComment, updateReview, updateReviewReply, upsertReview, useActiveHeading, useAnalytics, useChartContext, useChartData, useChartPolling, useChartRealtime, useChartSeries, useChartTheme, useClickOutside, useCloudinaryConfig, useCookieConsent, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useEUIDevPreviewPlatform, useIsMobile_default as useIsMobile, useMarkdown, useMarkdownHeadings, useModal_default as useModal, usePageTracking, useResolvedChartState, useReviewThreadState, useSessionTracking, useTheme_default as useTheme, writeAnalyticsQueueStorage, writeConsentStorage };
58054
58302
  //# sourceMappingURL=index.mjs.map
58055
58303
  //# sourceMappingURL=index.mjs.map