@cnc-ti/layout-basic 8.3.17 → 8.3.19

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
@@ -8066,7 +8066,11 @@ function getInitials(fullName) {
8066
8066
  const lastNameInitial = nameParts[nameParts.length - 1][0].toUpperCase();
8067
8067
  return `${firstNameInitial}${lastNameInitial}`;
8068
8068
  }
8069
- function Header({ variant = "default", className, ...props }) {
8069
+ function Header({
8070
+ variant = "default",
8071
+ className,
8072
+ ...props
8073
+ }) {
8070
8074
  return /* @__PURE__ */ jsx15(
8071
8075
  "header",
8072
8076
  {
@@ -8096,1589 +8100,118 @@ var HeaderContainer = ({
8096
8100
  return logoLink ? /* @__PURE__ */ jsx15("a", { href: logoLink, children: /* @__PURE__ */ jsx15("img", { src: logo, alt: "Logotipo", className: "cnc-h-8" }) }) : /* @__PURE__ */ jsx15("img", { src: logo, alt: "Logotipo", className: "cnc-h-8" });
8097
8101
  }
8098
8102
  return null;
8099
- };
8100
- return /* @__PURE__ */ jsxs3(
8101
- "div",
8102
- {
8103
- className: cn(
8104
- "cnc-flex cnc-flex-1 cnc-justify-between cnc-items-center",
8105
- container && "cnc-container cnc-mx-auto",
8106
- className
8107
- ),
8108
- ...props,
8109
- children: [
8110
- /* @__PURE__ */ jsx15("div", { className: "cnc-flex cnc-items-center", children: onOpenMenu && !isOpen && hasSidebar ? /* @__PURE__ */ jsx15("button", { onClick: onOpenMenu, className: "hover:cnc-brightness-75 cnc-sidebar-child-hidden cnc-cursor-pointer", children: /* @__PURE__ */ jsx15("svg", { stroke: "currentColor", fill: "currentColor", strokeWidth: "0", viewBox: "0 0 512 512", className: "cnc-size-6 cnc-text-brand-blue-900 cnc-header-item", height: "1em", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx15("path", { fill: "none", strokeLinecap: "round", strokeMiterlimit: "10", strokeWidth: "48", d: "M88 152h336M88 256h336M88 360h336" }) }) }) : !hasSidebar && renderLogo() }),
8111
- /* @__PURE__ */ jsx15("div", { className: "cnc-flex", children })
8112
- ]
8113
- }
8114
- );
8115
- };
8116
- var HeaderProfileHeader = ({
8117
- user,
8118
- children
8119
- }) => {
8120
- const { userName, entityName } = user;
8121
- const initials = getInitials(userName);
8122
- return /* @__PURE__ */ jsxs3(DropdownMenu2, { children: [
8123
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsx15(
8124
- "div",
8125
- {
8126
- id: "cnc-border-lateral",
8127
- className: "cnc-border-solid cnc-border-l-2 cnc-border-brand-blue-60 cnc-header-item",
8128
- children: /* @__PURE__ */ jsxs3("div", { className: "cnc-flex cnc-flex-row cnc-gap-2 cnc-items-center cnc-justify-center hover:cnc-bg-gray-100 cnc-transition cnc-duration-300 cnc-ease-in-out cnc-cursor-pointer cnc-px-4 cnc-py-2 cnc-rounded-lg cnc-ml-8 cnc-header-item", children: [
8129
- /* @__PURE__ */ jsxs3("div", { className: "cnc-flex cnc-flex-col cnc-justify-end cnc-text-end", children: [
8130
- /* @__PURE__ */ jsx15("p", { className: "cnc-text-xs cnc-font-extrabold cnc-text-brand-blue-900 cnc-header-item", children: entityName }),
8131
- /* @__PURE__ */ jsx15("p", { className: "cnc-text-xs cnc-font-normal cnc-text-brand-gray-700 cnc-header-item/50", children: userName })
8132
- ] }),
8133
- /* @__PURE__ */ jsx15("div", { children: /* @__PURE__ */ jsx15("div", { className: "cnc-flex cnc-items-center cnc-justify-center cnc-w-10 cnc-h-10 cnc-rounded-full cnc-bg-brand-white cnc-text-brand-blue-900 cnc-text-sm cnc-font-normal cnc-border-solid cnc-border-2 cnc-header-item", children: initials }) })
8134
- ] })
8135
- }
8136
- ) }),
8137
- /* @__PURE__ */ jsx15(DropdownMenuContent2, { children })
8138
- ] });
8139
- };
8140
- var HeaderProfileItem = ({
8141
- onClick,
8142
- icon,
8143
- children
8144
- }) => {
8145
- return /* @__PURE__ */ jsxs3(DropdownMenuItem2, { onClick, children: [
8146
- icon,
8147
- children
8148
- ] });
8149
- };
8150
- var AplicationsHeader = ({ children }) => {
8151
- return /* @__PURE__ */ jsx15(Fragment5, { children: /* @__PURE__ */ jsxs3(DropdownMenu2, { children: [
8152
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsx15("div", { className: "cnc-flex cnc-flex-row cnc-gap-2 cnc-items-center cnc-justify-center hover:cnc-bg-gray-100 cnc-transition cnc-duration-300 cnc-ease-in-out cnc-cursor-pointer cnc-px-4 cnc-py-2 cnc-rounded-lg cnc-header-item", children: /* @__PURE__ */ jsx15(
8153
- "svg",
8154
- {
8155
- width: "18",
8156
- height: "18",
8157
- viewBox: "0 0 16 16",
8158
- xmlns: "http://www.w3.org/2000/svg",
8159
- className: "cnc-header-item",
8160
- children: /* @__PURE__ */ jsx15(
8161
- "path",
8162
- {
8163
- d: "M2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4ZM8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16ZM2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16ZM2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10ZM8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10ZM12 2C12 3.1 12.9 4 14 4C15.1 4 16 3.1 16 2C16 0.9 15.1 0 14 0C12.9 0 12 0.9 12 2ZM8 4C9.1 4 10 3.1 10 2C10 0.9 9.1 0 8 0C6.9 0 6 0.9 6 2C6 3.1 6.9 4 8 4ZM14 10C15.1 10 16 9.1 16 8C16 6.9 15.1 6 14 6C12.9 6 12 6.9 12 8C12 9.1 12.9 10 14 10ZM14 16C15.1 16 16 15.1 16 14C16 12.9 15.1 12 14 12C12.9 12 12 12.9 12 14C12 15.1 12.9 16 14 16Z"
8164
- }
8165
- )
8166
- }
8167
- ) }) }),
8168
- /* @__PURE__ */ jsx15(DropdownMenuContent2, { className: "flex", children })
8169
- ] }) });
8170
- };
8171
-
8172
- // ../../node_modules/@radix-ui/react-dialog/dist/index.mjs
8173
- import * as React49 from "react";
8174
-
8175
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.mjs
8176
- function composeEventHandlers2(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
8177
- return function handleEvent(event) {
8178
- originalEventHandler?.(event);
8179
- if (checkForDefaultPrevented === false || !event.defaultPrevented) {
8180
- return ourEventHandler?.(event);
8181
- }
8182
- };
8183
- }
8184
-
8185
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
8186
- import * as React33 from "react";
8187
- function setRef2(ref, value) {
8188
- if (typeof ref === "function") {
8189
- return ref(value);
8190
- } else if (ref !== null && ref !== void 0) {
8191
- ref.current = value;
8192
- }
8193
- }
8194
- function composeRefs2(...refs) {
8195
- return (node) => {
8196
- let hasCleanup = false;
8197
- const cleanups = refs.map((ref) => {
8198
- const cleanup = setRef2(ref, node);
8199
- if (!hasCleanup && typeof cleanup == "function") {
8200
- hasCleanup = true;
8201
- }
8202
- return cleanup;
8203
- });
8204
- if (hasCleanup) {
8205
- return () => {
8206
- for (let i = 0; i < cleanups.length; i++) {
8207
- const cleanup = cleanups[i];
8208
- if (typeof cleanup == "function") {
8209
- cleanup();
8210
- } else {
8211
- setRef2(refs[i], null);
8212
- }
8213
- }
8214
- };
8215
- }
8216
- };
8217
- }
8218
- function useComposedRefs2(...refs) {
8219
- return React33.useCallback(composeRefs2(...refs), refs);
8220
- }
8221
-
8222
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.mjs
8223
- import * as React34 from "react";
8224
- import { jsx as jsx16 } from "react/jsx-runtime";
8225
- function createContext22(rootComponentName, defaultContext) {
8226
- const Context = React34.createContext(defaultContext);
8227
- const Provider = (props) => {
8228
- const { children, ...context } = props;
8229
- const value = React34.useMemo(() => context, Object.values(context));
8230
- return /* @__PURE__ */ jsx16(Context.Provider, { value, children });
8231
- };
8232
- Provider.displayName = rootComponentName + "Provider";
8233
- function useContext22(consumerName) {
8234
- const context = React34.useContext(Context);
8235
- if (context) return context;
8236
- if (defaultContext !== void 0) return defaultContext;
8237
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
8238
- }
8239
- return [Provider, useContext22];
8240
- }
8241
- function createContextScope2(scopeName, createContextScopeDeps = []) {
8242
- let defaultContexts = [];
8243
- function createContext32(rootComponentName, defaultContext) {
8244
- const BaseContext = React34.createContext(defaultContext);
8245
- const index2 = defaultContexts.length;
8246
- defaultContexts = [...defaultContexts, defaultContext];
8247
- const Provider = (props) => {
8248
- const { scope, children, ...context } = props;
8249
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
8250
- const value = React34.useMemo(() => context, Object.values(context));
8251
- return /* @__PURE__ */ jsx16(Context.Provider, { value, children });
8252
- };
8253
- Provider.displayName = rootComponentName + "Provider";
8254
- function useContext22(consumerName, scope) {
8255
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
8256
- const context = React34.useContext(Context);
8257
- if (context) return context;
8258
- if (defaultContext !== void 0) return defaultContext;
8259
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
8260
- }
8261
- return [Provider, useContext22];
8262
- }
8263
- const createScope = () => {
8264
- const scopeContexts = defaultContexts.map((defaultContext) => {
8265
- return React34.createContext(defaultContext);
8266
- });
8267
- return function useScope(scope) {
8268
- const contexts = scope?.[scopeName] || scopeContexts;
8269
- return React34.useMemo(
8270
- () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
8271
- [scope, contexts]
8272
- );
8273
- };
8274
- };
8275
- createScope.scopeName = scopeName;
8276
- return [createContext32, composeContextScopes2(createScope, ...createContextScopeDeps)];
8277
- }
8278
- function composeContextScopes2(...scopes) {
8279
- const baseScope = scopes[0];
8280
- if (scopes.length === 1) return baseScope;
8281
- const createScope = () => {
8282
- const scopeHooks = scopes.map((createScope2) => ({
8283
- useScope: createScope2(),
8284
- scopeName: createScope2.scopeName
8285
- }));
8286
- return function useComposedScopes(overrideScopes) {
8287
- const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
8288
- const scopeProps = useScope(overrideScopes);
8289
- const currentScope = scopeProps[`__scope${scopeName}`];
8290
- return { ...nextScopes2, ...currentScope };
8291
- }, {});
8292
- return React34.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
8293
- };
8294
- };
8295
- createScope.scopeName = baseScope.scopeName;
8296
- return createScope;
8297
- }
8298
-
8299
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.mjs
8300
- import * as React36 from "react";
8301
-
8302
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
8303
- import * as React35 from "react";
8304
- var useLayoutEffect22 = globalThis?.document ? React35.useLayoutEffect : () => {
8305
- };
8306
-
8307
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.mjs
8308
- var useReactId2 = React36[" useId ".trim().toString()] || (() => void 0);
8309
- var count3 = 0;
8310
- function useId2(deterministicId) {
8311
- const [id, setId] = React36.useState(useReactId2());
8312
- useLayoutEffect22(() => {
8313
- if (!deterministicId) setId((reactId) => reactId ?? String(count3++));
8314
- }, [deterministicId]);
8315
- return deterministicId || (id ? `radix-${id}` : "");
8316
- }
8317
-
8318
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
8319
- import * as React37 from "react";
8320
- import * as React210 from "react";
8321
- var useInsertionEffect = React37[" useInsertionEffect ".trim().toString()] || useLayoutEffect22;
8322
- function useControllableState2({
8323
- prop,
8324
- defaultProp,
8325
- onChange = () => {
8326
- },
8327
- caller
8328
- }) {
8329
- const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState2({
8330
- defaultProp,
8331
- onChange
8332
- });
8333
- const isControlled = prop !== void 0;
8334
- const value = isControlled ? prop : uncontrolledProp;
8335
- if (true) {
8336
- const isControlledRef = React37.useRef(prop !== void 0);
8337
- React37.useEffect(() => {
8338
- const wasControlled = isControlledRef.current;
8339
- if (wasControlled !== isControlled) {
8340
- const from = wasControlled ? "controlled" : "uncontrolled";
8341
- const to = isControlled ? "controlled" : "uncontrolled";
8342
- console.warn(
8343
- `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
8344
- );
8345
- }
8346
- isControlledRef.current = isControlled;
8347
- }, [isControlled, caller]);
8348
- }
8349
- const setValue = React37.useCallback(
8350
- (nextValue) => {
8351
- if (isControlled) {
8352
- const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
8353
- if (value2 !== prop) {
8354
- onChangeRef.current?.(value2);
8355
- }
8356
- } else {
8357
- setUncontrolledProp(nextValue);
8358
- }
8359
- },
8360
- [isControlled, prop, setUncontrolledProp, onChangeRef]
8361
- );
8362
- return [value, setValue];
8363
- }
8364
- function useUncontrolledState2({
8365
- defaultProp,
8366
- onChange
8367
- }) {
8368
- const [value, setValue] = React37.useState(defaultProp);
8369
- const prevValueRef = React37.useRef(value);
8370
- const onChangeRef = React37.useRef(onChange);
8371
- useInsertionEffect(() => {
8372
- onChangeRef.current = onChange;
8373
- }, [onChange]);
8374
- React37.useEffect(() => {
8375
- if (prevValueRef.current !== value) {
8376
- onChangeRef.current?.(value);
8377
- prevValueRef.current = value;
8378
- }
8379
- }, [value, prevValueRef]);
8380
- return [value, setValue, onChangeRef];
8381
- }
8382
- function isFunction(value) {
8383
- return typeof value === "function";
8384
- }
8385
- var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
8386
-
8387
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
8388
- import * as React41 from "react";
8389
-
8390
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs
8391
- import * as React38 from "react";
8392
- import * as ReactDOM4 from "react-dom";
8393
- import { createSlot } from "@radix-ui/react-slot";
8394
- import { jsx as jsx17 } from "react/jsx-runtime";
8395
- var NODES2 = [
8396
- "a",
8397
- "button",
8398
- "div",
8399
- "form",
8400
- "h2",
8401
- "h3",
8402
- "img",
8403
- "input",
8404
- "label",
8405
- "li",
8406
- "nav",
8407
- "ol",
8408
- "p",
8409
- "select",
8410
- "span",
8411
- "svg",
8412
- "ul"
8413
- ];
8414
- var Primitive2 = NODES2.reduce((primitive, node) => {
8415
- const Slot8 = createSlot(`Primitive.${node}`);
8416
- const Node2 = React38.forwardRef((props, forwardedRef) => {
8417
- const { asChild, ...primitiveProps } = props;
8418
- const Comp = asChild ? Slot8 : node;
8419
- if (typeof window !== "undefined") {
8420
- window[Symbol.for("radix-ui")] = true;
8421
- }
8422
- return /* @__PURE__ */ jsx17(Comp, { ...primitiveProps, ref: forwardedRef });
8423
- });
8424
- Node2.displayName = `Primitive.${node}`;
8425
- return { ...primitive, [node]: Node2 };
8426
- }, {});
8427
- function dispatchDiscreteCustomEvent2(target, event) {
8428
- if (target) ReactDOM4.flushSync(() => target.dispatchEvent(event));
8429
- }
8430
-
8431
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
8432
- import * as React39 from "react";
8433
- function useCallbackRef3(callback) {
8434
- const callbackRef = React39.useRef(callback);
8435
- React39.useEffect(() => {
8436
- callbackRef.current = callback;
8437
- });
8438
- return React39.useMemo(() => (...args) => callbackRef.current?.(...args), []);
8439
- }
8440
-
8441
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
8442
- import * as React40 from "react";
8443
- function useEscapeKeydown2(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
8444
- const onEscapeKeyDown = useCallbackRef3(onEscapeKeyDownProp);
8445
- React40.useEffect(() => {
8446
- const handleKeyDown = (event) => {
8447
- if (event.key === "Escape") {
8448
- onEscapeKeyDown(event);
8449
- }
8450
- };
8451
- ownerDocument.addEventListener("keydown", handleKeyDown, { capture: true });
8452
- return () => ownerDocument.removeEventListener("keydown", handleKeyDown, { capture: true });
8453
- }, [onEscapeKeyDown, ownerDocument]);
8454
- }
8455
-
8456
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
8457
- import { jsx as jsx18 } from "react/jsx-runtime";
8458
- var DISMISSABLE_LAYER_NAME2 = "DismissableLayer";
8459
- var CONTEXT_UPDATE2 = "dismissableLayer.update";
8460
- var POINTER_DOWN_OUTSIDE2 = "dismissableLayer.pointerDownOutside";
8461
- var FOCUS_OUTSIDE2 = "dismissableLayer.focusOutside";
8462
- var originalBodyPointerEvents2;
8463
- var DismissableLayerContext2 = React41.createContext({
8464
- layers: /* @__PURE__ */ new Set(),
8465
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
8466
- branches: /* @__PURE__ */ new Set()
8467
- });
8468
- var DismissableLayer2 = React41.forwardRef(
8469
- (props, forwardedRef) => {
8470
- const {
8471
- disableOutsidePointerEvents = false,
8472
- onEscapeKeyDown,
8473
- onPointerDownOutside,
8474
- onFocusOutside,
8475
- onInteractOutside,
8476
- onDismiss,
8477
- ...layerProps
8478
- } = props;
8479
- const context = React41.useContext(DismissableLayerContext2);
8480
- const [node, setNode] = React41.useState(null);
8481
- const ownerDocument = node?.ownerDocument ?? globalThis?.document;
8482
- const [, force] = React41.useState({});
8483
- const composedRefs = useComposedRefs2(forwardedRef, (node2) => setNode(node2));
8484
- const layers = Array.from(context.layers);
8485
- const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
8486
- const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
8487
- const index2 = node ? layers.indexOf(node) : -1;
8488
- const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
8489
- const isPointerEventsEnabled = index2 >= highestLayerWithOutsidePointerEventsDisabledIndex;
8490
- const pointerDownOutside = usePointerDownOutside2((event) => {
8491
- const target = event.target;
8492
- const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
8493
- if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
8494
- onPointerDownOutside?.(event);
8495
- onInteractOutside?.(event);
8496
- if (!event.defaultPrevented) onDismiss?.();
8497
- }, ownerDocument);
8498
- const focusOutside = useFocusOutside2((event) => {
8499
- const target = event.target;
8500
- const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));
8501
- if (isFocusInBranch) return;
8502
- onFocusOutside?.(event);
8503
- onInteractOutside?.(event);
8504
- if (!event.defaultPrevented) onDismiss?.();
8505
- }, ownerDocument);
8506
- useEscapeKeydown2((event) => {
8507
- const isHighestLayer = index2 === context.layers.size - 1;
8508
- if (!isHighestLayer) return;
8509
- onEscapeKeyDown?.(event);
8510
- if (!event.defaultPrevented && onDismiss) {
8511
- event.preventDefault();
8512
- onDismiss();
8513
- }
8514
- }, ownerDocument);
8515
- React41.useEffect(() => {
8516
- if (!node) return;
8517
- if (disableOutsidePointerEvents) {
8518
- if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
8519
- originalBodyPointerEvents2 = ownerDocument.body.style.pointerEvents;
8520
- ownerDocument.body.style.pointerEvents = "none";
8521
- }
8522
- context.layersWithOutsidePointerEventsDisabled.add(node);
8523
- }
8524
- context.layers.add(node);
8525
- dispatchUpdate2();
8526
- return () => {
8527
- if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {
8528
- ownerDocument.body.style.pointerEvents = originalBodyPointerEvents2;
8529
- }
8530
- };
8531
- }, [node, ownerDocument, disableOutsidePointerEvents, context]);
8532
- React41.useEffect(() => {
8533
- return () => {
8534
- if (!node) return;
8535
- context.layers.delete(node);
8536
- context.layersWithOutsidePointerEventsDisabled.delete(node);
8537
- dispatchUpdate2();
8538
- };
8539
- }, [node, context]);
8540
- React41.useEffect(() => {
8541
- const handleUpdate = () => force({});
8542
- document.addEventListener(CONTEXT_UPDATE2, handleUpdate);
8543
- return () => document.removeEventListener(CONTEXT_UPDATE2, handleUpdate);
8544
- }, []);
8545
- return /* @__PURE__ */ jsx18(
8546
- Primitive2.div,
8547
- {
8548
- ...layerProps,
8549
- ref: composedRefs,
8550
- style: {
8551
- pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
8552
- ...props.style
8553
- },
8554
- onFocusCapture: composeEventHandlers2(props.onFocusCapture, focusOutside.onFocusCapture),
8555
- onBlurCapture: composeEventHandlers2(props.onBlurCapture, focusOutside.onBlurCapture),
8556
- onPointerDownCapture: composeEventHandlers2(
8557
- props.onPointerDownCapture,
8558
- pointerDownOutside.onPointerDownCapture
8559
- )
8560
- }
8561
- );
8562
- }
8563
- );
8564
- DismissableLayer2.displayName = DISMISSABLE_LAYER_NAME2;
8565
- var BRANCH_NAME2 = "DismissableLayerBranch";
8566
- var DismissableLayerBranch2 = React41.forwardRef((props, forwardedRef) => {
8567
- const context = React41.useContext(DismissableLayerContext2);
8568
- const ref = React41.useRef(null);
8569
- const composedRefs = useComposedRefs2(forwardedRef, ref);
8570
- React41.useEffect(() => {
8571
- const node = ref.current;
8572
- if (node) {
8573
- context.branches.add(node);
8574
- return () => {
8575
- context.branches.delete(node);
8576
- };
8577
- }
8578
- }, [context.branches]);
8579
- return /* @__PURE__ */ jsx18(Primitive2.div, { ...props, ref: composedRefs });
8580
- });
8581
- DismissableLayerBranch2.displayName = BRANCH_NAME2;
8582
- function usePointerDownOutside2(onPointerDownOutside, ownerDocument = globalThis?.document) {
8583
- const handlePointerDownOutside = useCallbackRef3(onPointerDownOutside);
8584
- const isPointerInsideReactTreeRef = React41.useRef(false);
8585
- const handleClickRef = React41.useRef(() => {
8586
- });
8587
- React41.useEffect(() => {
8588
- const handlePointerDown = (event) => {
8589
- if (event.target && !isPointerInsideReactTreeRef.current) {
8590
- let handleAndDispatchPointerDownOutsideEvent2 = function() {
8591
- handleAndDispatchCustomEvent2(
8592
- POINTER_DOWN_OUTSIDE2,
8593
- handlePointerDownOutside,
8594
- eventDetail,
8595
- { discrete: true }
8596
- );
8597
- };
8598
- var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;
8599
- const eventDetail = { originalEvent: event };
8600
- if (event.pointerType === "touch") {
8601
- ownerDocument.removeEventListener("click", handleClickRef.current);
8602
- handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
8603
- ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
8604
- } else {
8605
- handleAndDispatchPointerDownOutsideEvent2();
8606
- }
8607
- } else {
8608
- ownerDocument.removeEventListener("click", handleClickRef.current);
8609
- }
8610
- isPointerInsideReactTreeRef.current = false;
8611
- };
8612
- const timerId = window.setTimeout(() => {
8613
- ownerDocument.addEventListener("pointerdown", handlePointerDown);
8614
- }, 0);
8615
- return () => {
8616
- window.clearTimeout(timerId);
8617
- ownerDocument.removeEventListener("pointerdown", handlePointerDown);
8618
- ownerDocument.removeEventListener("click", handleClickRef.current);
8619
- };
8620
- }, [ownerDocument, handlePointerDownOutside]);
8621
- return {
8622
- // ensures we check React component tree (not just DOM tree)
8623
- onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
8624
- };
8625
- }
8626
- function useFocusOutside2(onFocusOutside, ownerDocument = globalThis?.document) {
8627
- const handleFocusOutside = useCallbackRef3(onFocusOutside);
8628
- const isFocusInsideReactTreeRef = React41.useRef(false);
8629
- React41.useEffect(() => {
8630
- const handleFocus = (event) => {
8631
- if (event.target && !isFocusInsideReactTreeRef.current) {
8632
- const eventDetail = { originalEvent: event };
8633
- handleAndDispatchCustomEvent2(FOCUS_OUTSIDE2, handleFocusOutside, eventDetail, {
8634
- discrete: false
8635
- });
8636
- }
8637
- };
8638
- ownerDocument.addEventListener("focusin", handleFocus);
8639
- return () => ownerDocument.removeEventListener("focusin", handleFocus);
8640
- }, [ownerDocument, handleFocusOutside]);
8641
- return {
8642
- onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
8643
- onBlurCapture: () => isFocusInsideReactTreeRef.current = false
8644
- };
8645
- }
8646
- function dispatchUpdate2() {
8647
- const event = new CustomEvent(CONTEXT_UPDATE2);
8648
- document.dispatchEvent(event);
8649
- }
8650
- function handleAndDispatchCustomEvent2(name, handler, detail, { discrete }) {
8651
- const target = detail.originalEvent.target;
8652
- const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });
8653
- if (handler) target.addEventListener(name, handler, { once: true });
8654
- if (discrete) {
8655
- dispatchDiscreteCustomEvent2(target, event);
8656
- } else {
8657
- target.dispatchEvent(event);
8658
- }
8659
- }
8660
-
8661
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
8662
- import * as React42 from "react";
8663
- import { jsx as jsx19 } from "react/jsx-runtime";
8664
- var AUTOFOCUS_ON_MOUNT2 = "focusScope.autoFocusOnMount";
8665
- var AUTOFOCUS_ON_UNMOUNT2 = "focusScope.autoFocusOnUnmount";
8666
- var EVENT_OPTIONS3 = { bubbles: false, cancelable: true };
8667
- var FOCUS_SCOPE_NAME2 = "FocusScope";
8668
- var FocusScope2 = React42.forwardRef((props, forwardedRef) => {
8669
- const {
8670
- loop = false,
8671
- trapped = false,
8672
- onMountAutoFocus: onMountAutoFocusProp,
8673
- onUnmountAutoFocus: onUnmountAutoFocusProp,
8674
- ...scopeProps
8675
- } = props;
8676
- const [container, setContainer] = React42.useState(null);
8677
- const onMountAutoFocus = useCallbackRef3(onMountAutoFocusProp);
8678
- const onUnmountAutoFocus = useCallbackRef3(onUnmountAutoFocusProp);
8679
- const lastFocusedElementRef = React42.useRef(null);
8680
- const composedRefs = useComposedRefs2(forwardedRef, (node) => setContainer(node));
8681
- const focusScope = React42.useRef({
8682
- paused: false,
8683
- pause() {
8684
- this.paused = true;
8685
- },
8686
- resume() {
8687
- this.paused = false;
8688
- }
8689
- }).current;
8690
- React42.useEffect(() => {
8691
- if (trapped) {
8692
- let handleFocusIn2 = function(event) {
8693
- if (focusScope.paused || !container) return;
8694
- const target = event.target;
8695
- if (container.contains(target)) {
8696
- lastFocusedElementRef.current = target;
8697
- } else {
8698
- focus2(lastFocusedElementRef.current, { select: true });
8699
- }
8700
- }, handleFocusOut2 = function(event) {
8701
- if (focusScope.paused || !container) return;
8702
- const relatedTarget = event.relatedTarget;
8703
- if (relatedTarget === null) return;
8704
- if (!container.contains(relatedTarget)) {
8705
- focus2(lastFocusedElementRef.current, { select: true });
8706
- }
8707
- }, handleMutations2 = function(mutations) {
8708
- const focusedElement = document.activeElement;
8709
- if (focusedElement !== document.body) return;
8710
- for (const mutation of mutations) {
8711
- if (mutation.removedNodes.length > 0) focus2(container);
8712
- }
8713
- };
8714
- var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;
8715
- document.addEventListener("focusin", handleFocusIn2);
8716
- document.addEventListener("focusout", handleFocusOut2);
8717
- const mutationObserver = new MutationObserver(handleMutations2);
8718
- if (container) mutationObserver.observe(container, { childList: true, subtree: true });
8719
- return () => {
8720
- document.removeEventListener("focusin", handleFocusIn2);
8721
- document.removeEventListener("focusout", handleFocusOut2);
8722
- mutationObserver.disconnect();
8723
- };
8724
- }
8725
- }, [trapped, container, focusScope.paused]);
8726
- React42.useEffect(() => {
8727
- if (container) {
8728
- focusScopesStack2.add(focusScope);
8729
- const previouslyFocusedElement = document.activeElement;
8730
- const hasFocusedCandidate = container.contains(previouslyFocusedElement);
8731
- if (!hasFocusedCandidate) {
8732
- const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT2, EVENT_OPTIONS3);
8733
- container.addEventListener(AUTOFOCUS_ON_MOUNT2, onMountAutoFocus);
8734
- container.dispatchEvent(mountEvent);
8735
- if (!mountEvent.defaultPrevented) {
8736
- focusFirst4(removeLinks2(getTabbableCandidates2(container)), { select: true });
8737
- if (document.activeElement === previouslyFocusedElement) {
8738
- focus2(container);
8739
- }
8740
- }
8741
- }
8742
- return () => {
8743
- container.removeEventListener(AUTOFOCUS_ON_MOUNT2, onMountAutoFocus);
8744
- setTimeout(() => {
8745
- const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT2, EVENT_OPTIONS3);
8746
- container.addEventListener(AUTOFOCUS_ON_UNMOUNT2, onUnmountAutoFocus);
8747
- container.dispatchEvent(unmountEvent);
8748
- if (!unmountEvent.defaultPrevented) {
8749
- focus2(previouslyFocusedElement ?? document.body, { select: true });
8750
- }
8751
- container.removeEventListener(AUTOFOCUS_ON_UNMOUNT2, onUnmountAutoFocus);
8752
- focusScopesStack2.remove(focusScope);
8753
- }, 0);
8754
- };
8755
- }
8756
- }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
8757
- const handleKeyDown = React42.useCallback(
8758
- (event) => {
8759
- if (!loop && !trapped) return;
8760
- if (focusScope.paused) return;
8761
- const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
8762
- const focusedElement = document.activeElement;
8763
- if (isTabKey && focusedElement) {
8764
- const container2 = event.currentTarget;
8765
- const [first, last] = getTabbableEdges2(container2);
8766
- const hasTabbableElementsInside = first && last;
8767
- if (!hasTabbableElementsInside) {
8768
- if (focusedElement === container2) event.preventDefault();
8769
- } else {
8770
- if (!event.shiftKey && focusedElement === last) {
8771
- event.preventDefault();
8772
- if (loop) focus2(first, { select: true });
8773
- } else if (event.shiftKey && focusedElement === first) {
8774
- event.preventDefault();
8775
- if (loop) focus2(last, { select: true });
8776
- }
8777
- }
8778
- }
8779
- },
8780
- [loop, trapped, focusScope.paused]
8781
- );
8782
- return /* @__PURE__ */ jsx19(Primitive2.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
8783
- });
8784
- FocusScope2.displayName = FOCUS_SCOPE_NAME2;
8785
- function focusFirst4(candidates, { select = false } = {}) {
8786
- const previouslyFocusedElement = document.activeElement;
8787
- for (const candidate of candidates) {
8788
- focus2(candidate, { select });
8789
- if (document.activeElement !== previouslyFocusedElement) return;
8790
- }
8791
- }
8792
- function getTabbableEdges2(container) {
8793
- const candidates = getTabbableCandidates2(container);
8794
- const first = findVisible2(candidates, container);
8795
- const last = findVisible2(candidates.reverse(), container);
8796
- return [first, last];
8797
- }
8798
- function getTabbableCandidates2(container) {
8799
- const nodes = [];
8800
- const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
8801
- acceptNode: (node) => {
8802
- const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
8803
- if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
8804
- return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
8805
- }
8806
- });
8807
- while (walker.nextNode()) nodes.push(walker.currentNode);
8808
- return nodes;
8809
- }
8810
- function findVisible2(elements, container) {
8811
- for (const element of elements) {
8812
- if (!isHidden2(element, { upTo: container })) return element;
8813
- }
8814
- }
8815
- function isHidden2(node, { upTo }) {
8816
- if (getComputedStyle(node).visibility === "hidden") return true;
8817
- while (node) {
8818
- if (upTo !== void 0 && node === upTo) return false;
8819
- if (getComputedStyle(node).display === "none") return true;
8820
- node = node.parentElement;
8821
- }
8822
- return false;
8823
- }
8824
- function isSelectableInput2(element) {
8825
- return element instanceof HTMLInputElement && "select" in element;
8826
- }
8827
- function focus2(element, { select = false } = {}) {
8828
- if (element && element.focus) {
8829
- const previouslyFocusedElement = document.activeElement;
8830
- element.focus({ preventScroll: true });
8831
- if (element !== previouslyFocusedElement && isSelectableInput2(element) && select)
8832
- element.select();
8833
- }
8834
- }
8835
- var focusScopesStack2 = createFocusScopesStack2();
8836
- function createFocusScopesStack2() {
8837
- let stack = [];
8838
- return {
8839
- add(focusScope) {
8840
- const activeFocusScope = stack[0];
8841
- if (focusScope !== activeFocusScope) {
8842
- activeFocusScope?.pause();
8843
- }
8844
- stack = arrayRemove2(stack, focusScope);
8845
- stack.unshift(focusScope);
8846
- },
8847
- remove(focusScope) {
8848
- stack = arrayRemove2(stack, focusScope);
8849
- stack[0]?.resume();
8850
- }
8851
- };
8852
- }
8853
- function arrayRemove2(array, item) {
8854
- const updatedArray = [...array];
8855
- const index2 = updatedArray.indexOf(item);
8856
- if (index2 !== -1) {
8857
- updatedArray.splice(index2, 1);
8858
- }
8859
- return updatedArray;
8860
- }
8861
- function removeLinks2(items) {
8862
- return items.filter((item) => item.tagName !== "A");
8863
- }
8864
-
8865
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs
8866
- import * as React43 from "react";
8867
- import ReactDOM5 from "react-dom";
8868
- import { jsx as jsx20 } from "react/jsx-runtime";
8869
- var PORTAL_NAME4 = "Portal";
8870
- var Portal3 = React43.forwardRef((props, forwardedRef) => {
8871
- const { container: containerProp, ...portalProps } = props;
8872
- const [mounted, setMounted] = React43.useState(false);
8873
- useLayoutEffect22(() => setMounted(true), []);
8874
- const container = containerProp || mounted && globalThis?.document?.body;
8875
- return container ? ReactDOM5.createPortal(/* @__PURE__ */ jsx20(Primitive2.div, { ...portalProps, ref: forwardedRef }), container) : null;
8876
- });
8877
- Portal3.displayName = PORTAL_NAME4;
8878
-
8879
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs
8880
- import * as React211 from "react";
8881
- import * as React44 from "react";
8882
- function useStateMachine2(initialState, machine) {
8883
- return React44.useReducer((state, event) => {
8884
- const nextState = machine[state][event];
8885
- return nextState ?? state;
8886
- }, initialState);
8887
- }
8888
- var Presence2 = (props) => {
8889
- const { present, children } = props;
8890
- const presence = usePresence2(present);
8891
- const child = typeof children === "function" ? children({ present: presence.isPresent }) : React211.Children.only(children);
8892
- const ref = useComposedRefs2(presence.ref, getElementRef2(child));
8893
- const forceMount = typeof children === "function";
8894
- return forceMount || presence.isPresent ? React211.cloneElement(child, { ref }) : null;
8895
- };
8896
- Presence2.displayName = "Presence";
8897
- function usePresence2(present) {
8898
- const [node, setNode] = React211.useState();
8899
- const stylesRef = React211.useRef(null);
8900
- const prevPresentRef = React211.useRef(present);
8901
- const prevAnimationNameRef = React211.useRef("none");
8902
- const initialState = present ? "mounted" : "unmounted";
8903
- const [state, send] = useStateMachine2(initialState, {
8904
- mounted: {
8905
- UNMOUNT: "unmounted",
8906
- ANIMATION_OUT: "unmountSuspended"
8907
- },
8908
- unmountSuspended: {
8909
- MOUNT: "mounted",
8910
- ANIMATION_END: "unmounted"
8911
- },
8912
- unmounted: {
8913
- MOUNT: "mounted"
8914
- }
8915
- });
8916
- React211.useEffect(() => {
8917
- const currentAnimationName = getAnimationName2(stylesRef.current);
8918
- prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
8919
- }, [state]);
8920
- useLayoutEffect22(() => {
8921
- const styles = stylesRef.current;
8922
- const wasPresent = prevPresentRef.current;
8923
- const hasPresentChanged = wasPresent !== present;
8924
- if (hasPresentChanged) {
8925
- const prevAnimationName = prevAnimationNameRef.current;
8926
- const currentAnimationName = getAnimationName2(styles);
8927
- if (present) {
8928
- send("MOUNT");
8929
- } else if (currentAnimationName === "none" || styles?.display === "none") {
8930
- send("UNMOUNT");
8931
- } else {
8932
- const isAnimating = prevAnimationName !== currentAnimationName;
8933
- if (wasPresent && isAnimating) {
8934
- send("ANIMATION_OUT");
8935
- } else {
8936
- send("UNMOUNT");
8937
- }
8938
- }
8939
- prevPresentRef.current = present;
8940
- }
8941
- }, [present, send]);
8942
- useLayoutEffect22(() => {
8943
- if (node) {
8944
- let timeoutId;
8945
- const ownerWindow = node.ownerDocument.defaultView ?? window;
8946
- const handleAnimationEnd = (event) => {
8947
- const currentAnimationName = getAnimationName2(stylesRef.current);
8948
- const isCurrentAnimation = currentAnimationName.includes(event.animationName);
8949
- if (event.target === node && isCurrentAnimation) {
8950
- send("ANIMATION_END");
8951
- if (!prevPresentRef.current) {
8952
- const currentFillMode = node.style.animationFillMode;
8953
- node.style.animationFillMode = "forwards";
8954
- timeoutId = ownerWindow.setTimeout(() => {
8955
- if (node.style.animationFillMode === "forwards") {
8956
- node.style.animationFillMode = currentFillMode;
8957
- }
8958
- });
8959
- }
8960
- }
8961
- };
8962
- const handleAnimationStart = (event) => {
8963
- if (event.target === node) {
8964
- prevAnimationNameRef.current = getAnimationName2(stylesRef.current);
8965
- }
8966
- };
8967
- node.addEventListener("animationstart", handleAnimationStart);
8968
- node.addEventListener("animationcancel", handleAnimationEnd);
8969
- node.addEventListener("animationend", handleAnimationEnd);
8970
- return () => {
8971
- ownerWindow.clearTimeout(timeoutId);
8972
- node.removeEventListener("animationstart", handleAnimationStart);
8973
- node.removeEventListener("animationcancel", handleAnimationEnd);
8974
- node.removeEventListener("animationend", handleAnimationEnd);
8975
- };
8976
- } else {
8977
- send("ANIMATION_END");
8978
- }
8979
- }, [node, send]);
8980
- return {
8981
- isPresent: ["mounted", "unmountSuspended"].includes(state),
8982
- ref: React211.useCallback((node2) => {
8983
- stylesRef.current = node2 ? getComputedStyle(node2) : null;
8984
- setNode(node2);
8985
- }, [])
8986
- };
8987
- }
8988
- function getAnimationName2(styles) {
8989
- return styles?.animationName || "none";
8990
- }
8991
- function getElementRef2(element) {
8992
- let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
8993
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
8994
- if (mayWarn) {
8995
- return element.ref;
8996
- }
8997
- getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
8998
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
8999
- if (mayWarn) {
9000
- return element.props.ref;
9001
- }
9002
- return element.props.ref || element.ref;
9003
- }
9004
-
9005
- // ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
9006
- import * as React45 from "react";
9007
- var count4 = 0;
9008
- function useFocusGuards2() {
9009
- React45.useEffect(() => {
9010
- const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
9011
- document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard2());
9012
- document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard2());
9013
- count4++;
9014
- return () => {
9015
- if (count4 === 1) {
9016
- document.querySelectorAll("[data-radix-focus-guard]").forEach((node) => node.remove());
9017
- }
9018
- count4--;
9019
- };
9020
- }, []);
9021
- }
9022
- function createFocusGuard2() {
9023
- const element = document.createElement("span");
9024
- element.setAttribute("data-radix-focus-guard", "");
9025
- element.tabIndex = 0;
9026
- element.style.outline = "none";
9027
- element.style.opacity = "0";
9028
- element.style.position = "fixed";
9029
- element.style.pointerEvents = "none";
9030
- return element;
9031
- }
9032
-
9033
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/Combination.js
9034
- import * as React48 from "react";
9035
-
9036
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/UI.js
9037
- import * as React46 from "react";
9038
-
9039
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/medium.js
9040
- var effectCar2 = createSidecarMedium();
9041
-
9042
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/UI.js
9043
- var nothing2 = function() {
9044
- return;
9045
- };
9046
- var RemoveScroll2 = React46.forwardRef(function(props, parentRef) {
9047
- var ref = React46.useRef(null);
9048
- var _a = React46.useState({
9049
- onScrollCapture: nothing2,
9050
- onWheelCapture: nothing2,
9051
- onTouchMoveCapture: nothing2
9052
- }), callbacks = _a[0], setCallbacks = _a[1];
9053
- var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
9054
- var SideCar2 = sideCar;
9055
- var containerRef = useMergeRefs([ref, parentRef]);
9056
- var containerProps = __assign(__assign({}, rest), callbacks);
9057
- return React46.createElement(
9058
- React46.Fragment,
9059
- null,
9060
- enabled && React46.createElement(SideCar2, { sideCar: effectCar2, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
9061
- forwardProps ? React46.cloneElement(React46.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React46.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
9062
- );
9063
- });
9064
- RemoveScroll2.defaultProps = {
9065
- enabled: true,
9066
- removeScrollBar: true,
9067
- inert: false
9068
- };
9069
- RemoveScroll2.classNames = {
9070
- fullWidth: fullWidthClassName,
9071
- zeroRight: zeroRightClassName
9072
- };
9073
-
9074
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
9075
- import * as React47 from "react";
9076
-
9077
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
9078
- var passiveSupported2 = false;
9079
- if (typeof window !== "undefined") {
9080
- try {
9081
- options = Object.defineProperty({}, "passive", {
9082
- get: function() {
9083
- passiveSupported2 = true;
9084
- return true;
9085
- }
9086
- });
9087
- window.addEventListener("test", options, options);
9088
- window.removeEventListener("test", options, options);
9089
- } catch (err) {
9090
- passiveSupported2 = false;
9091
- }
9092
- }
9093
- var options;
9094
- var nonPassive2 = passiveSupported2 ? { passive: false } : false;
9095
-
9096
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
9097
- var alwaysContainsScroll2 = function(node) {
9098
- return node.tagName === "TEXTAREA";
9099
- };
9100
- var elementCanBeScrolled2 = function(node, overflow) {
9101
- if (!(node instanceof Element)) {
9102
- return false;
9103
- }
9104
- var styles = window.getComputedStyle(node);
9105
- return (
9106
- // not-not-scrollable
9107
- styles[overflow] !== "hidden" && // contains scroll inside self
9108
- !(styles.overflowY === styles.overflowX && !alwaysContainsScroll2(node) && styles[overflow] === "visible")
9109
- );
9110
- };
9111
- var elementCouldBeVScrolled2 = function(node) {
9112
- return elementCanBeScrolled2(node, "overflowY");
9113
- };
9114
- var elementCouldBeHScrolled2 = function(node) {
9115
- return elementCanBeScrolled2(node, "overflowX");
9116
- };
9117
- var locationCouldBeScrolled2 = function(axis, node) {
9118
- var ownerDocument = node.ownerDocument;
9119
- var current = node;
9120
- do {
9121
- if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) {
9122
- current = current.host;
9123
- }
9124
- var isScrollable = elementCouldBeScrolled2(axis, current);
9125
- if (isScrollable) {
9126
- var _a = getScrollVariables2(axis, current), scrollHeight = _a[1], clientHeight = _a[2];
9127
- if (scrollHeight > clientHeight) {
9128
- return true;
9129
- }
9130
- }
9131
- current = current.parentNode;
9132
- } while (current && current !== ownerDocument.body);
9133
- return false;
9134
- };
9135
- var getVScrollVariables2 = function(_a) {
9136
- var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
9137
- return [
9138
- scrollTop,
9139
- scrollHeight,
9140
- clientHeight
9141
- ];
9142
- };
9143
- var getHScrollVariables2 = function(_a) {
9144
- var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
9145
- return [
9146
- scrollLeft,
9147
- scrollWidth,
9148
- clientWidth
9149
- ];
9150
- };
9151
- var elementCouldBeScrolled2 = function(axis, node) {
9152
- return axis === "v" ? elementCouldBeVScrolled2(node) : elementCouldBeHScrolled2(node);
9153
- };
9154
- var getScrollVariables2 = function(axis, node) {
9155
- return axis === "v" ? getVScrollVariables2(node) : getHScrollVariables2(node);
9156
- };
9157
- var getDirectionFactor2 = function(axis, direction) {
9158
- return axis === "h" && direction === "rtl" ? -1 : 1;
9159
- };
9160
- var handleScroll2 = function(axis, endTarget, event, sourceDelta, noOverscroll) {
9161
- var directionFactor = getDirectionFactor2(axis, window.getComputedStyle(endTarget).direction);
9162
- var delta = directionFactor * sourceDelta;
9163
- var target = event.target;
9164
- var targetInLock = endTarget.contains(target);
9165
- var shouldCancelScroll = false;
9166
- var isDeltaPositive = delta > 0;
9167
- var availableScroll = 0;
9168
- var availableScrollTop = 0;
9169
- do {
9170
- var _a = getScrollVariables2(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
9171
- var elementScroll = scroll_1 - capacity - directionFactor * position;
9172
- if (position || elementScroll) {
9173
- if (elementCouldBeScrolled2(axis, target)) {
9174
- availableScroll += elementScroll;
9175
- availableScrollTop += position;
9176
- }
9177
- }
9178
- target = target.parentNode.host || target.parentNode;
9179
- } while (
9180
- // portaled content
9181
- !targetInLock && target !== document.body || // self content
9182
- targetInLock && (endTarget.contains(target) || endTarget === target)
9183
- );
9184
- if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) {
9185
- shouldCancelScroll = true;
9186
- } else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) {
9187
- shouldCancelScroll = true;
9188
- }
9189
- return shouldCancelScroll;
9190
- };
9191
-
9192
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
9193
- var getTouchXY2 = function(event) {
9194
- return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
9195
- };
9196
- var getDeltaXY2 = function(event) {
9197
- return [event.deltaX, event.deltaY];
9198
- };
9199
- var extractRef2 = function(ref) {
9200
- return ref && "current" in ref ? ref.current : ref;
9201
- };
9202
- var deltaCompare2 = function(x, y) {
9203
- return x[0] === y[0] && x[1] === y[1];
9204
- };
9205
- var generateStyle2 = function(id) {
9206
- return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
9207
- };
9208
- var idCounter2 = 0;
9209
- var lockStack2 = [];
9210
- function RemoveScrollSideCar2(props) {
9211
- var shouldPreventQueue = React47.useRef([]);
9212
- var touchStartRef = React47.useRef([0, 0]);
9213
- var activeAxis = React47.useRef();
9214
- var id = React47.useState(idCounter2++)[0];
9215
- var Style2 = React47.useState(styleSingleton)[0];
9216
- var lastProps = React47.useRef(props);
9217
- React47.useEffect(function() {
9218
- lastProps.current = props;
9219
- }, [props]);
9220
- React47.useEffect(function() {
9221
- if (props.inert) {
9222
- document.body.classList.add("block-interactivity-".concat(id));
9223
- var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef2), true).filter(Boolean);
9224
- allow_1.forEach(function(el) {
9225
- return el.classList.add("allow-interactivity-".concat(id));
9226
- });
9227
- return function() {
9228
- document.body.classList.remove("block-interactivity-".concat(id));
9229
- allow_1.forEach(function(el) {
9230
- return el.classList.remove("allow-interactivity-".concat(id));
9231
- });
9232
- };
9233
- }
9234
- return;
9235
- }, [props.inert, props.lockRef.current, props.shards]);
9236
- var shouldCancelEvent = React47.useCallback(function(event, parent) {
9237
- if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
9238
- return !lastProps.current.allowPinchZoom;
9239
- }
9240
- var touch = getTouchXY2(event);
9241
- var touchStart = touchStartRef.current;
9242
- var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
9243
- var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
9244
- var currentAxis;
9245
- var target = event.target;
9246
- var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
9247
- if ("touches" in event && moveDirection === "h" && target.type === "range") {
9248
- return false;
9249
- }
9250
- var canBeScrolledInMainDirection = locationCouldBeScrolled2(moveDirection, target);
9251
- if (!canBeScrolledInMainDirection) {
9252
- return true;
9253
- }
9254
- if (canBeScrolledInMainDirection) {
9255
- currentAxis = moveDirection;
9256
- } else {
9257
- currentAxis = moveDirection === "v" ? "h" : "v";
9258
- canBeScrolledInMainDirection = locationCouldBeScrolled2(moveDirection, target);
9259
- }
9260
- if (!canBeScrolledInMainDirection) {
9261
- return false;
9262
- }
9263
- if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) {
9264
- activeAxis.current = currentAxis;
9265
- }
9266
- if (!currentAxis) {
9267
- return true;
9268
- }
9269
- var cancelingAxis = activeAxis.current || currentAxis;
9270
- return handleScroll2(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
9271
- }, []);
9272
- var shouldPrevent = React47.useCallback(function(_event) {
9273
- var event = _event;
9274
- if (!lockStack2.length || lockStack2[lockStack2.length - 1] !== Style2) {
9275
- return;
9276
- }
9277
- var delta = "deltaY" in event ? getDeltaXY2(event) : getTouchXY2(event);
9278
- var sourceEvent = shouldPreventQueue.current.filter(function(e) {
9279
- return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare2(e.delta, delta);
9280
- })[0];
9281
- if (sourceEvent && sourceEvent.should) {
9282
- if (event.cancelable) {
9283
- event.preventDefault();
9284
- }
9285
- return;
9286
- }
9287
- if (!sourceEvent) {
9288
- var shardNodes = (lastProps.current.shards || []).map(extractRef2).filter(Boolean).filter(function(node) {
9289
- return node.contains(event.target);
9290
- });
9291
- var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
9292
- if (shouldStop) {
9293
- if (event.cancelable) {
9294
- event.preventDefault();
9295
- }
9296
- }
9297
- }
9298
- }, []);
9299
- var shouldCancel = React47.useCallback(function(name, delta, target, should) {
9300
- var event = { name, delta, target, should, shadowParent: getOutermostShadowParent2(target) };
9301
- shouldPreventQueue.current.push(event);
9302
- setTimeout(function() {
9303
- shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
9304
- return e !== event;
9305
- });
9306
- }, 1);
9307
- }, []);
9308
- var scrollTouchStart = React47.useCallback(function(event) {
9309
- touchStartRef.current = getTouchXY2(event);
9310
- activeAxis.current = void 0;
9311
- }, []);
9312
- var scrollWheel = React47.useCallback(function(event) {
9313
- shouldCancel(event.type, getDeltaXY2(event), event.target, shouldCancelEvent(event, props.lockRef.current));
9314
- }, []);
9315
- var scrollTouchMove = React47.useCallback(function(event) {
9316
- shouldCancel(event.type, getTouchXY2(event), event.target, shouldCancelEvent(event, props.lockRef.current));
9317
- }, []);
9318
- React47.useEffect(function() {
9319
- lockStack2.push(Style2);
9320
- props.setCallbacks({
9321
- onScrollCapture: scrollWheel,
9322
- onWheelCapture: scrollWheel,
9323
- onTouchMoveCapture: scrollTouchMove
9324
- });
9325
- document.addEventListener("wheel", shouldPrevent, nonPassive2);
9326
- document.addEventListener("touchmove", shouldPrevent, nonPassive2);
9327
- document.addEventListener("touchstart", scrollTouchStart, nonPassive2);
9328
- return function() {
9329
- lockStack2 = lockStack2.filter(function(inst) {
9330
- return inst !== Style2;
9331
- });
9332
- document.removeEventListener("wheel", shouldPrevent, nonPassive2);
9333
- document.removeEventListener("touchmove", shouldPrevent, nonPassive2);
9334
- document.removeEventListener("touchstart", scrollTouchStart, nonPassive2);
9335
- };
9336
- }, []);
9337
- var removeScrollBar = props.removeScrollBar, inert = props.inert;
9338
- return React47.createElement(
9339
- React47.Fragment,
9340
- null,
9341
- inert ? React47.createElement(Style2, { styles: generateStyle2(id) }) : null,
9342
- removeScrollBar ? React47.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
9343
- );
9344
- }
9345
- function getOutermostShadowParent2(node) {
9346
- var shadowParent = null;
9347
- while (node !== null) {
9348
- if (node instanceof ShadowRoot) {
9349
- shadowParent = node.host;
9350
- node = node.host;
9351
- }
9352
- node = node.parentNode;
9353
- }
9354
- return shadowParent;
9355
- }
9356
-
9357
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/sidecar.js
9358
- var sidecar_default2 = exportSidecar(effectCar2, RemoveScrollSideCar2);
9359
-
9360
- // ../../node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/Combination.js
9361
- var ReactRemoveScroll2 = React48.forwardRef(function(props, ref) {
9362
- return React48.createElement(RemoveScroll2, __assign({}, props, { ref, sideCar: sidecar_default2 }));
9363
- });
9364
- ReactRemoveScroll2.classNames = RemoveScroll2.classNames;
9365
- var Combination_default2 = ReactRemoveScroll2;
9366
-
9367
- // ../../node_modules/@radix-ui/react-dialog/dist/index.mjs
9368
- import { createSlot as createSlot2 } from "@radix-ui/react-slot";
9369
- import { Fragment as Fragment8, jsx as jsx21, jsxs as jsxs4 } from "react/jsx-runtime";
9370
- var DIALOG_NAME = "Dialog";
9371
- var [createDialogContext, createDialogScope] = createContextScope2(DIALOG_NAME);
9372
- var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
9373
- var Dialog = (props) => {
9374
- const {
9375
- __scopeDialog,
9376
- children,
9377
- open: openProp,
9378
- defaultOpen,
9379
- onOpenChange,
9380
- modal = true
9381
- } = props;
9382
- const triggerRef = React49.useRef(null);
9383
- const contentRef = React49.useRef(null);
9384
- const [open, setOpen] = useControllableState2({
9385
- prop: openProp,
9386
- defaultProp: defaultOpen ?? false,
9387
- onChange: onOpenChange,
9388
- caller: DIALOG_NAME
9389
- });
9390
- return /* @__PURE__ */ jsx21(
9391
- DialogProvider,
9392
- {
9393
- scope: __scopeDialog,
9394
- triggerRef,
9395
- contentRef,
9396
- contentId: useId2(),
9397
- titleId: useId2(),
9398
- descriptionId: useId2(),
9399
- open,
9400
- onOpenChange: setOpen,
9401
- onOpenToggle: React49.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
9402
- modal,
9403
- children
8103
+ };
8104
+ return /* @__PURE__ */ jsxs3(
8105
+ "div",
8106
+ {
8107
+ className: cn(
8108
+ "cnc-flex cnc-flex-1 cnc-justify-between cnc-items-center",
8109
+ container && "cnc-container cnc-mx-auto",
8110
+ className
8111
+ ),
8112
+ ...props,
8113
+ children: [
8114
+ /* @__PURE__ */ jsx15("div", { className: "cnc-flex cnc-items-center", children: onOpenMenu && !isOpen && hasSidebar ? /* @__PURE__ */ jsx15(
8115
+ "button",
8116
+ {
8117
+ onClick: onOpenMenu,
8118
+ className: "hover:cnc-brightness-75 cnc-sidebar-child-hidden cnc-cursor-pointer",
8119
+ children: /* @__PURE__ */ jsx15(
8120
+ "svg",
8121
+ {
8122
+ stroke: "currentColor",
8123
+ fill: "currentColor",
8124
+ strokeWidth: "0",
8125
+ viewBox: "0 0 512 512",
8126
+ className: "cnc-size-6 cnc-text-brand-blue-900 cnc-header-item",
8127
+ height: "1em",
8128
+ width: "1em",
8129
+ xmlns: "http://www.w3.org/2000/svg",
8130
+ children: /* @__PURE__ */ jsx15(
8131
+ "path",
8132
+ {
8133
+ fill: "none",
8134
+ strokeLinecap: "round",
8135
+ strokeMiterlimit: "10",
8136
+ strokeWidth: "48",
8137
+ d: "M88 152h336M88 256h336M88 360h336"
8138
+ }
8139
+ )
8140
+ }
8141
+ )
8142
+ }
8143
+ ) : !hasSidebar && renderLogo() }),
8144
+ /* @__PURE__ */ jsx15("div", { className: "cnc-flex", children })
8145
+ ]
9404
8146
  }
9405
8147
  );
9406
8148
  };
9407
- Dialog.displayName = DIALOG_NAME;
9408
- var TRIGGER_NAME2 = "DialogTrigger";
9409
- var DialogTrigger = React49.forwardRef(
9410
- (props, forwardedRef) => {
9411
- const { __scopeDialog, ...triggerProps } = props;
9412
- const context = useDialogContext(TRIGGER_NAME2, __scopeDialog);
9413
- const composedTriggerRef = useComposedRefs2(forwardedRef, context.triggerRef);
9414
- return /* @__PURE__ */ jsx21(
9415
- Primitive2.button,
8149
+ var HeaderProfileHeader = ({
8150
+ user,
8151
+ children
8152
+ }) => {
8153
+ const { userName, entityName } = user;
8154
+ const initials = getInitials(userName);
8155
+ return /* @__PURE__ */ jsxs3(DropdownMenu2, { modal: false, children: [
8156
+ /* @__PURE__ */ jsx15(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsx15(
8157
+ "div",
9416
8158
  {
9417
- type: "button",
9418
- "aria-haspopup": "dialog",
9419
- "aria-expanded": context.open,
9420
- "aria-controls": context.contentId,
9421
- "data-state": getState(context.open),
9422
- ...triggerProps,
9423
- ref: composedTriggerRef,
9424
- onClick: composeEventHandlers2(props.onClick, context.onOpenToggle)
8159
+ id: "cnc-border-lateral",
8160
+ className: "cnc-border-solid cnc-border-l-2 cnc-border-brand-blue-60 cnc-header-item",
8161
+ children: /* @__PURE__ */ jsxs3("div", { className: "cnc-flex cnc-flex-row cnc-gap-2 cnc-items-center cnc-justify-center hover:cnc-bg-gray-100 cnc-transition cnc-duration-300 cnc-ease-in-out cnc-cursor-pointer cnc-px-4 cnc-py-2 cnc-rounded-lg cnc-ml-8 cnc-header-item", children: [
8162
+ /* @__PURE__ */ jsxs3("div", { className: "cnc-flex cnc-flex-col cnc-justify-end cnc-text-end", children: [
8163
+ /* @__PURE__ */ jsx15("p", { className: "cnc-text-xs cnc-font-extrabold cnc-text-brand-blue-900 cnc-header-item", children: entityName }),
8164
+ /* @__PURE__ */ jsx15("p", { className: "cnc-text-xs cnc-font-normal cnc-text-brand-gray-700 cnc-header-item/50", children: userName })
8165
+ ] }),
8166
+ /* @__PURE__ */ jsx15("div", { children: /* @__PURE__ */ jsx15("div", { className: "cnc-flex cnc-items-center cnc-justify-center cnc-w-10 cnc-h-10 cnc-rounded-full cnc-bg-brand-white cnc-text-brand-blue-900 cnc-text-sm cnc-font-normal cnc-border-solid cnc-border-2 cnc-header-item", children: initials }) })
8167
+ ] })
9425
8168
  }
9426
- );
9427
- }
9428
- );
9429
- DialogTrigger.displayName = TRIGGER_NAME2;
9430
- var PORTAL_NAME5 = "DialogPortal";
9431
- var [PortalProvider2, usePortalContext2] = createDialogContext(PORTAL_NAME5, {
9432
- forceMount: void 0
9433
- });
9434
- var DialogPortal = (props) => {
9435
- const { __scopeDialog, forceMount, children, container } = props;
9436
- const context = useDialogContext(PORTAL_NAME5, __scopeDialog);
9437
- return /* @__PURE__ */ jsx21(PortalProvider2, { scope: __scopeDialog, forceMount, children: React49.Children.map(children, (child) => /* @__PURE__ */ jsx21(Presence2, { present: forceMount || context.open, children: /* @__PURE__ */ jsx21(Portal3, { asChild: true, container, children: child }) })) });
8169
+ ) }),
8170
+ /* @__PURE__ */ jsx15(DropdownMenuContent2, { children })
8171
+ ] });
9438
8172
  };
9439
- DialogPortal.displayName = PORTAL_NAME5;
9440
- var OVERLAY_NAME = "DialogOverlay";
9441
- var DialogOverlay = React49.forwardRef(
9442
- (props, forwardedRef) => {
9443
- const portalContext = usePortalContext2(OVERLAY_NAME, props.__scopeDialog);
9444
- const { forceMount = portalContext.forceMount, ...overlayProps } = props;
9445
- const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
9446
- return context.modal ? /* @__PURE__ */ jsx21(Presence2, { present: forceMount || context.open, children: /* @__PURE__ */ jsx21(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
9447
- }
9448
- );
9449
- DialogOverlay.displayName = OVERLAY_NAME;
9450
- var Slot5 = createSlot2("DialogOverlay.RemoveScroll");
9451
- var DialogOverlayImpl = React49.forwardRef(
9452
- (props, forwardedRef) => {
9453
- const { __scopeDialog, ...overlayProps } = props;
9454
- const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
9455
- return (
9456
- // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
9457
- // ie. when `Overlay` and `Content` are siblings
9458
- /* @__PURE__ */ jsx21(Combination_default2, { as: Slot5, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx21(
9459
- Primitive2.div,
9460
- {
9461
- "data-state": getState(context.open),
9462
- ...overlayProps,
9463
- ref: forwardedRef,
9464
- style: { pointerEvents: "auto", ...overlayProps.style }
9465
- }
9466
- ) })
9467
- );
9468
- }
9469
- );
9470
- var CONTENT_NAME4 = "DialogContent";
9471
- var DialogContent = React49.forwardRef(
9472
- (props, forwardedRef) => {
9473
- const portalContext = usePortalContext2(CONTENT_NAME4, props.__scopeDialog);
9474
- const { forceMount = portalContext.forceMount, ...contentProps } = props;
9475
- const context = useDialogContext(CONTENT_NAME4, props.__scopeDialog);
9476
- return /* @__PURE__ */ jsx21(Presence2, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx21(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx21(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
9477
- }
9478
- );
9479
- DialogContent.displayName = CONTENT_NAME4;
9480
- var DialogContentModal = React49.forwardRef(
9481
- (props, forwardedRef) => {
9482
- const context = useDialogContext(CONTENT_NAME4, props.__scopeDialog);
9483
- const contentRef = React49.useRef(null);
9484
- const composedRefs = useComposedRefs2(forwardedRef, context.contentRef, contentRef);
9485
- React49.useEffect(() => {
9486
- const content = contentRef.current;
9487
- if (content) return hideOthers(content);
9488
- }, []);
9489
- return /* @__PURE__ */ jsx21(
9490
- DialogContentImpl,
9491
- {
9492
- ...props,
9493
- ref: composedRefs,
9494
- trapFocus: context.open,
9495
- disableOutsidePointerEvents: true,
9496
- onCloseAutoFocus: composeEventHandlers2(props.onCloseAutoFocus, (event) => {
9497
- event.preventDefault();
9498
- context.triggerRef.current?.focus();
9499
- }),
9500
- onPointerDownOutside: composeEventHandlers2(props.onPointerDownOutside, (event) => {
9501
- const originalEvent = event.detail.originalEvent;
9502
- const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
9503
- const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
9504
- if (isRightClick) event.preventDefault();
9505
- }),
9506
- onFocusOutside: composeEventHandlers2(
9507
- props.onFocusOutside,
9508
- (event) => event.preventDefault()
9509
- )
9510
- }
9511
- );
9512
- }
9513
- );
9514
- var DialogContentNonModal = React49.forwardRef(
9515
- (props, forwardedRef) => {
9516
- const context = useDialogContext(CONTENT_NAME4, props.__scopeDialog);
9517
- const hasInteractedOutsideRef = React49.useRef(false);
9518
- const hasPointerDownOutsideRef = React49.useRef(false);
9519
- return /* @__PURE__ */ jsx21(
9520
- DialogContentImpl,
8173
+ var HeaderProfileItem = ({
8174
+ onClick,
8175
+ icon,
8176
+ children
8177
+ }) => {
8178
+ return /* @__PURE__ */ jsxs3(DropdownMenuItem2, { onClick, children: [
8179
+ icon,
8180
+ children
8181
+ ] });
8182
+ };
8183
+ var AplicationsHeader = ({ children }) => {
8184
+ return /* @__PURE__ */ jsx15(Fragment5, { children: /* @__PURE__ */ jsxs3(DropdownMenu2, { children: [
8185
+ /* @__PURE__ */ jsx15(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsx15("div", { className: "cnc-flex cnc-flex-row cnc-gap-2 cnc-items-center cnc-justify-center hover:cnc-bg-gray-100 cnc-transition cnc-duration-300 cnc-ease-in-out cnc-cursor-pointer cnc-px-4 cnc-py-2 cnc-rounded-lg cnc-header-item", children: /* @__PURE__ */ jsx15(
8186
+ "svg",
9521
8187
  {
9522
- ...props,
9523
- ref: forwardedRef,
9524
- trapFocus: false,
9525
- disableOutsidePointerEvents: false,
9526
- onCloseAutoFocus: (event) => {
9527
- props.onCloseAutoFocus?.(event);
9528
- if (!event.defaultPrevented) {
9529
- if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
9530
- event.preventDefault();
9531
- }
9532
- hasInteractedOutsideRef.current = false;
9533
- hasPointerDownOutsideRef.current = false;
9534
- },
9535
- onInteractOutside: (event) => {
9536
- props.onInteractOutside?.(event);
9537
- if (!event.defaultPrevented) {
9538
- hasInteractedOutsideRef.current = true;
9539
- if (event.detail.originalEvent.type === "pointerdown") {
9540
- hasPointerDownOutsideRef.current = true;
9541
- }
9542
- }
9543
- const target = event.target;
9544
- const targetIsTrigger = context.triggerRef.current?.contains(target);
9545
- if (targetIsTrigger) event.preventDefault();
9546
- if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
9547
- event.preventDefault();
8188
+ width: "18",
8189
+ height: "18",
8190
+ viewBox: "0 0 16 16",
8191
+ xmlns: "http://www.w3.org/2000/svg",
8192
+ className: "cnc-header-item",
8193
+ children: /* @__PURE__ */ jsx15(
8194
+ "path",
8195
+ {
8196
+ d: "M2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4ZM8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16ZM2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16ZM2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10ZM8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10ZM12 2C12 3.1 12.9 4 14 4C15.1 4 16 3.1 16 2C16 0.9 15.1 0 14 0C12.9 0 12 0.9 12 2ZM8 4C9.1 4 10 3.1 10 2C10 0.9 9.1 0 8 0C6.9 0 6 0.9 6 2C6 3.1 6.9 4 8 4ZM14 10C15.1 10 16 9.1 16 8C16 6.9 15.1 6 14 6C12.9 6 12 6.9 12 8C12 9.1 12.9 10 14 10ZM14 16C15.1 16 16 15.1 16 14C16 12.9 15.1 12 14 12C12.9 12 12 12.9 12 14C12 15.1 12.9 16 14 16Z"
9548
8197
  }
9549
- }
9550
- }
9551
- );
9552
- }
9553
- );
9554
- var DialogContentImpl = React49.forwardRef(
9555
- (props, forwardedRef) => {
9556
- const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
9557
- const context = useDialogContext(CONTENT_NAME4, __scopeDialog);
9558
- const contentRef = React49.useRef(null);
9559
- const composedRefs = useComposedRefs2(forwardedRef, contentRef);
9560
- useFocusGuards2();
9561
- return /* @__PURE__ */ jsxs4(Fragment8, { children: [
9562
- /* @__PURE__ */ jsx21(
9563
- FocusScope2,
9564
- {
9565
- asChild: true,
9566
- loop: true,
9567
- trapped: trapFocus,
9568
- onMountAutoFocus: onOpenAutoFocus,
9569
- onUnmountAutoFocus: onCloseAutoFocus,
9570
- children: /* @__PURE__ */ jsx21(
9571
- DismissableLayer2,
9572
- {
9573
- role: "dialog",
9574
- id: context.contentId,
9575
- "aria-describedby": context.descriptionId,
9576
- "aria-labelledby": context.titleId,
9577
- "data-state": getState(context.open),
9578
- ...contentProps,
9579
- ref: composedRefs,
9580
- onDismiss: () => context.onOpenChange(false)
9581
- }
9582
- )
9583
- }
9584
- ),
9585
- /* @__PURE__ */ jsxs4(Fragment8, { children: [
9586
- /* @__PURE__ */ jsx21(TitleWarning, { titleId: context.titleId }),
9587
- /* @__PURE__ */ jsx21(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
9588
- ] })
9589
- ] });
9590
- }
9591
- );
9592
- var TITLE_NAME = "DialogTitle";
9593
- var DialogTitle = React49.forwardRef(
9594
- (props, forwardedRef) => {
9595
- const { __scopeDialog, ...titleProps } = props;
9596
- const context = useDialogContext(TITLE_NAME, __scopeDialog);
9597
- return /* @__PURE__ */ jsx21(Primitive2.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
9598
- }
9599
- );
9600
- DialogTitle.displayName = TITLE_NAME;
9601
- var DESCRIPTION_NAME = "DialogDescription";
9602
- var DialogDescription = React49.forwardRef(
9603
- (props, forwardedRef) => {
9604
- const { __scopeDialog, ...descriptionProps } = props;
9605
- const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
9606
- return /* @__PURE__ */ jsx21(Primitive2.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
9607
- }
9608
- );
9609
- DialogDescription.displayName = DESCRIPTION_NAME;
9610
- var CLOSE_NAME = "DialogClose";
9611
- var DialogClose = React49.forwardRef(
9612
- (props, forwardedRef) => {
9613
- const { __scopeDialog, ...closeProps } = props;
9614
- const context = useDialogContext(CLOSE_NAME, __scopeDialog);
9615
- return /* @__PURE__ */ jsx21(
9616
- Primitive2.button,
9617
- {
9618
- type: "button",
9619
- ...closeProps,
9620
- ref: forwardedRef,
9621
- onClick: composeEventHandlers2(props.onClick, () => context.onOpenChange(false))
8198
+ )
9622
8199
  }
9623
- );
9624
- }
9625
- );
9626
- DialogClose.displayName = CLOSE_NAME;
9627
- function getState(open) {
9628
- return open ? "open" : "closed";
9629
- }
9630
- var TITLE_WARNING_NAME = "DialogTitleWarning";
9631
- var [WarningProvider, useWarningContext] = createContext22(TITLE_WARNING_NAME, {
9632
- contentName: CONTENT_NAME4,
9633
- titleName: TITLE_NAME,
9634
- docsSlug: "dialog"
9635
- });
9636
- var TitleWarning = ({ titleId }) => {
9637
- const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);
9638
- const MESSAGE = `\`${titleWarningContext.contentName}\` requires a \`${titleWarningContext.titleName}\` for the component to be accessible for screen reader users.
9639
-
9640
- If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
9641
-
9642
- For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
9643
- React49.useEffect(() => {
9644
- if (titleId) {
9645
- const hasTitle = document.getElementById(titleId);
9646
- if (!hasTitle) console.error(MESSAGE);
9647
- }
9648
- }, [MESSAGE, titleId]);
9649
- return null;
9650
- };
9651
- var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
9652
- var DescriptionWarning = ({ contentRef, descriptionId }) => {
9653
- const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);
9654
- const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${descriptionWarningContext.contentName}}.`;
9655
- React49.useEffect(() => {
9656
- const describedById = contentRef.current?.getAttribute("aria-describedby");
9657
- if (descriptionId && describedById) {
9658
- const hasDescription = document.getElementById(descriptionId);
9659
- if (!hasDescription) console.warn(MESSAGE);
9660
- }
9661
- }, [MESSAGE, contentRef, descriptionId]);
9662
- return null;
8200
+ ) }) }),
8201
+ /* @__PURE__ */ jsx15(DropdownMenuContent2, { className: "flex", children })
8202
+ ] }) });
9663
8203
  };
9664
- var Root4 = Dialog;
9665
- var Trigger2 = DialogTrigger;
9666
- var Portal4 = DialogPortal;
9667
- var Overlay = DialogOverlay;
9668
- var Content3 = DialogContent;
9669
- var Title = DialogTitle;
9670
- var Description = DialogDescription;
9671
- var Close = DialogClose;
9672
8204
 
9673
8205
  // src/components/Dialog/index.tsx
9674
- import * as React50 from "react";
9675
- import { jsx as jsx22, jsxs as jsxs5 } from "react/jsx-runtime";
9676
- var Dialog2 = Root4;
9677
- var DialogTrigger2 = Trigger2;
9678
- var DialogPortal2 = Portal4;
9679
- var DialogClose2 = Close;
9680
- var DialogOverlay2 = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
9681
- Overlay,
8206
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
8207
+ import * as React33 from "react";
8208
+ import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
8209
+ var Dialog = DialogPrimitive.Root;
8210
+ var DialogTrigger = DialogPrimitive.Trigger;
8211
+ var DialogPortal = DialogPrimitive.Portal;
8212
+ var DialogClose = DialogPrimitive.Close;
8213
+ var DialogOverlay = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
8214
+ DialogPrimitive.Overlay,
9682
8215
  {
9683
8216
  ref,
9684
8217
  className: cn(
@@ -9688,11 +8221,11 @@ var DialogOverlay2 = React50.forwardRef(({ className, ...props }, ref) => /* @__
9688
8221
  ...props
9689
8222
  }
9690
8223
  ));
9691
- DialogOverlay2.displayName = Overlay.displayName;
9692
- var DialogContent2 = React50.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(DialogPortal2, { children: [
9693
- /* @__PURE__ */ jsx22(DialogOverlay2, {}),
9694
- /* @__PURE__ */ jsxs5(
9695
- Content3,
8224
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
8225
+ var DialogContent = React33.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(DialogPortal, { children: [
8226
+ /* @__PURE__ */ jsx16(DialogOverlay, {}),
8227
+ /* @__PURE__ */ jsxs4(
8228
+ DialogPrimitive.Content,
9696
8229
  {
9697
8230
  ref,
9698
8231
  className: cn(
@@ -9702,19 +8235,19 @@ var DialogContent2 = React50.forwardRef(({ className, children, ...props }, ref)
9702
8235
  ...props,
9703
8236
  children: [
9704
8237
  children,
9705
- /* @__PURE__ */ jsxs5(Close, { className: "cnc-absolute cnc-right-4 cnc-top-4 cnc-rounded-sm cnc-opacity-70 cnc-ring-offset-background cnc-transition-opacity hover:cnc-opacity-100 focus:cnc-outline-none focus:cnc-ring-2 focus:cnc-ring-ring focus:cnc-ring-offset-2 disabled:cnc-pointer-events-none data-[state=open]:cnc-bg-accent data-[state=open]:cnc-text-muted-foreground", children: [
9706
- /* @__PURE__ */ jsx22(X, { className: "cnc-h-4 cnc-w-4" }),
9707
- /* @__PURE__ */ jsx22("span", { className: "cnc-sr-only", children: "Close" })
8238
+ /* @__PURE__ */ jsxs4(DialogPrimitive.Close, { className: "cnc-absolute cnc-right-4 cnc-top-4 cnc-rounded-sm cnc-opacity-70 cnc-ring-offset-background cnc-transition-opacity hover:cnc-opacity-100 focus:cnc-outline-none focus:cnc-ring-2 focus:cnc-ring-ring focus:cnc-ring-offset-2 disabled:cnc-pointer-events-none data-[state=open]:cnc-bg-accent data-[state=open]:cnc-text-muted-foreground", children: [
8239
+ /* @__PURE__ */ jsx16(X, { className: "cnc-h-4 cnc-w-4" }),
8240
+ /* @__PURE__ */ jsx16("span", { className: "cnc-sr-only", children: "Close" })
9708
8241
  ] })
9709
8242
  ]
9710
8243
  }
9711
8244
  )
9712
8245
  ] }));
9713
- DialogContent2.displayName = Content3.displayName;
8246
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
9714
8247
  var DialogHeader = ({
9715
8248
  className,
9716
8249
  ...props
9717
- }) => /* @__PURE__ */ jsx22(
8250
+ }) => /* @__PURE__ */ jsx16(
9718
8251
  "div",
9719
8252
  {
9720
8253
  className: cn(
@@ -9728,7 +8261,7 @@ DialogHeader.displayName = "DialogHeader";
9728
8261
  var DialogFooter = ({
9729
8262
  className,
9730
8263
  ...props
9731
- }) => /* @__PURE__ */ jsx22(
8264
+ }) => /* @__PURE__ */ jsx16(
9732
8265
  "div",
9733
8266
  {
9734
8267
  className: cn(
@@ -9739,8 +8272,8 @@ var DialogFooter = ({
9739
8272
  }
9740
8273
  );
9741
8274
  DialogFooter.displayName = "DialogFooter";
9742
- var DialogTitle2 = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
9743
- Title,
8275
+ var DialogTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
8276
+ DialogPrimitive.Title,
9744
8277
  {
9745
8278
  ref,
9746
8279
  className: cn(
@@ -9750,53 +8283,56 @@ var DialogTitle2 = React50.forwardRef(({ className, ...props }, ref) => /* @__PU
9750
8283
  ...props
9751
8284
  }
9752
8285
  ));
9753
- DialogTitle2.displayName = Title.displayName;
9754
- var DialogDescription2 = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
9755
- Description,
8286
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
8287
+ var DialogDescription = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
8288
+ DialogPrimitive.Description,
9756
8289
  {
9757
8290
  ref,
9758
8291
  className: cn("cnc-text-sm cnc-text-muted-foreground", className),
9759
8292
  ...props
9760
8293
  }
9761
8294
  ));
9762
- DialogDescription2.displayName = Description.displayName;
8295
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
9763
8296
 
9764
8297
  // src/components/Modal/index.tsx
9765
- import { jsx as jsx23, jsxs as jsxs6 } from "react/jsx-runtime";
8298
+ import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
9766
8299
  var Modal = ({
9767
8300
  title,
9768
8301
  content,
9769
8302
  visibleModal,
9770
8303
  onClose
9771
8304
  }) => {
9772
- return /* @__PURE__ */ jsxs6(Dialog2, { open: visibleModal, onOpenChange: onClose, children: [
9773
- /* @__PURE__ */ jsx23(DialogOverlay2, { className: "cnc-inset-0 cnc-bg-blackA6= data-[state=open]:cnc-animate-overlayShow" }),
9774
- /* @__PURE__ */ jsxs6(DialogContent2, { className: "cnc-max-h-[100vh] cnc-p-0 cnc-rounded-sm cnc-bg-white cnc-focus:outline-none data-[state=open]:cnc-animate-contentShow", children: [
9775
- title && /* @__PURE__ */ jsx23(DialogHeader, { className: "cnc-text-sm cnc-h-14 cnc-text-black cnc-font- cnc-border-b cnc-w-full cnc-leading-10", children: title }),
9776
- /* @__PURE__ */ jsx23("div", { className: "cnc-flex cnc-flex-col cnc-mb-16 cnc-mx-20 cnc-align-middle cnc-items-left cnc-justify-center", children: content })
8305
+ return /* @__PURE__ */ jsxs5(Dialog, { open: visibleModal, onOpenChange: onClose, children: [
8306
+ /* @__PURE__ */ jsx17(DialogOverlay, { className: "cnc-inset-0 cnc-bg-blackA6= data-[state=open]:cnc-animate-overlayShow" }),
8307
+ /* @__PURE__ */ jsxs5(DialogContent, { className: "cnc-max-h-[100vh] cnc-p-0 cnc-rounded-sm cnc-bg-white cnc-focus:outline-none data-[state=open]:cnc-animate-contentShow", children: [
8308
+ title && /* @__PURE__ */ jsx17(DialogHeader, { className: "cnc-text-sm cnc-h-14 cnc-text-black cnc-font- cnc-border-b cnc-w-full cnc-leading-10", children: title }),
8309
+ /* @__PURE__ */ jsx17("div", { className: "cnc-flex cnc-flex-col cnc-mb-16 cnc-mx-20 cnc-align-middle cnc-items-left cnc-justify-center", children: content })
9777
8310
  ] })
9778
8311
  ] });
9779
8312
  };
9780
8313
 
9781
8314
  // src/components/Modal/ModalMudancaEntidade/index.tsx
9782
- import { Fragment as Fragment9, jsx as jsx24, jsxs as jsxs7 } from "react/jsx-runtime";
9783
- function ModalEntidade({ isOpen, onOpenChange, title = "Selecionar a entidade", children, className }) {
9784
- return /* @__PURE__ */ jsxs7(Dialog2, { open: isOpen, onOpenChange, children: [
9785
- /* @__PURE__ */ jsx24(DialogOverlay2, { className: "fixed inset-0 z-50 cnc-bg-black/40 data-[state=open]:cnc-animate-in data-[state=closed]:cnc-animate-out data-[state=closed]:cnc-fade-out-0 data-[state=open]:fade-in-0" }),
9786
- /* @__PURE__ */ jsxs7(DialogContent2, { className: "cnc-max-h-[100vh] cnc-p-0 cnc-rounded-sm cnc-bg-white cnc-focus:outline-none data-[state=open]:cnc-animate-contentShow", children: [
9787
- title && /* @__PURE__ */ jsx24(DialogHeader, { children: /* @__PURE__ */ jsx24(DialogTitle2, { className: "cnc-font-normal cnc-text-base", children: title }) }),
9788
- /* @__PURE__ */ jsx24(
9789
- "div",
9790
- {
9791
- className: cn(
9792
- "cnc-flex cnc-flex-col cnc-w-full cnc-max-w-[513px] cnc-mx-auto cnc-py-6",
9793
- className
9794
- ),
9795
- children
9796
- }
9797
- )
9798
- ] })
9799
- ] });
8315
+ import { Fragment as Fragment6, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
8316
+ function ModalEntidade({
8317
+ isOpen,
8318
+ onOpenChange,
8319
+ title = "Selecionar a entidade",
8320
+ children,
8321
+ className
8322
+ }) {
8323
+ return /* @__PURE__ */ jsx18(Dialog, { open: isOpen, onOpenChange, children: /* @__PURE__ */ jsxs6(DialogContent, { className: "cnc-max-h-[100vh] cnc-p-0 cnc-rounded-sm cnc-bg-white cnc-focus:outline-none data-[state=open]:cnc-animate-contentShow", children: [
8324
+ title && /* @__PURE__ */ jsx18(DialogHeader, { children: /* @__PURE__ */ jsx18(DialogTitle, { className: "cnc-font-normal cnc-text-base", children: title }) }),
8325
+ /* @__PURE__ */ jsx18(
8326
+ "div",
8327
+ {
8328
+ className: cn(
8329
+ "cnc-flex cnc-flex-col cnc-w-full cnc-max-w-[513px] cnc-mx-auto cnc-py-6",
8330
+ className
8331
+ ),
8332
+ children
8333
+ }
8334
+ )
8335
+ ] }) });
9800
8336
  }
9801
8337
  var ModalMudancaEntidade = ({
9802
8338
  title,
@@ -9805,17 +8341,17 @@ var ModalMudancaEntidade = ({
9805
8341
  SelectComponent,
9806
8342
  buttonAction
9807
8343
  }) => {
9808
- return /* @__PURE__ */ jsx24(
8344
+ return /* @__PURE__ */ jsx18(
9809
8345
  Modal,
9810
8346
  {
9811
8347
  title,
9812
8348
  onClose,
9813
8349
  visibleModal,
9814
- content: /* @__PURE__ */ jsxs7(Fragment9, { children: [
9815
- /* @__PURE__ */ jsx24(DialogTitle2, { className: "cnc-DialogTitle cnc-mt-10 cnc-mb-4 ", children: "Selecionar a entidade" }),
9816
- /* @__PURE__ */ jsxs7("div", { className: "cnc-flex cnc-mb-5 ", children: [
9817
- /* @__PURE__ */ jsx24(SelectComponent, {}),
9818
- /* @__PURE__ */ jsx24(Button, { className: "cnc-text-white cnc-ml-5", onClick: buttonAction, children: "Trocar entidade" })
8350
+ content: /* @__PURE__ */ jsxs6(Fragment6, { children: [
8351
+ /* @__PURE__ */ jsx18(DialogTitle, { className: "cnc-DialogTitle cnc-mt-10 cnc-mb-4 ", children: "Selecionar a entidadess" }),
8352
+ /* @__PURE__ */ jsxs6("div", { className: "cnc-flex cnc-mb-5 ", children: [
8353
+ /* @__PURE__ */ jsx18(SelectComponent, {}),
8354
+ /* @__PURE__ */ jsx18(Button, { className: "cnc-text-white cnc-ml-5", onClick: buttonAction, children: "Trocar entidade" })
9819
8355
  ] })
9820
8356
  ] })
9821
8357
  }
@@ -9824,16 +8360,16 @@ var ModalMudancaEntidade = ({
9824
8360
 
9825
8361
  // src/components/Sidebar/index.tsx
9826
8362
  import * as Accordion from "@radix-ui/react-accordion";
9827
- import { Slot as Slot6 } from "@radix-ui/react-slot";
8363
+ import { Slot as Slot5 } from "@radix-ui/react-slot";
9828
8364
  import {
9829
- cloneElement as cloneElement5,
8365
+ cloneElement as cloneElement3,
9830
8366
  isValidElement
9831
8367
  } from "react";
9832
8368
 
9833
8369
  // src/components/assets/logotipo-default.tsx
9834
- import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
8370
+ import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
9835
8371
  function LogotipoDefault() {
9836
- return /* @__PURE__ */ jsxs8(
8372
+ return /* @__PURE__ */ jsxs7(
9837
8373
  "svg",
9838
8374
  {
9839
8375
  width: "209",
@@ -9842,14 +8378,14 @@ function LogotipoDefault() {
9842
8378
  fill: "none",
9843
8379
  xmlns: "http://www.w3.org/2000/svg",
9844
8380
  children: [
9845
- /* @__PURE__ */ jsx25(
8381
+ /* @__PURE__ */ jsx19(
9846
8382
  "path",
9847
8383
  {
9848
8384
  d: "M20.539 0H36.2809C36.2809 0 36.9745 4.48363 30.7294 6.63394C31.7327 5.31688 31.7006 3.41772 31.7006 3.41772H20.202C9.32 3.41772 1.29805 18.1019 0.207031 20.0001C0.207031 20.0001 4.07335 8.64018 11.9375 3.02348C13.5682 1.85731 17.0906 0 20.539 0Z",
9849
8385
  fill: "#C89633"
9850
8386
  }
9851
8387
  ),
9852
- /* @__PURE__ */ jsx25(
8388
+ /* @__PURE__ */ jsx19(
9853
8389
  "path",
9854
8390
  {
9855
8391
  fillRule: "evenodd",
@@ -9858,133 +8394,133 @@ function LogotipoDefault() {
9858
8394
  fill: "#C89633"
9859
8395
  }
9860
8396
  ),
9861
- /* @__PURE__ */ jsx25(
8397
+ /* @__PURE__ */ jsx19(
9862
8398
  "path",
9863
8399
  {
9864
8400
  d: "M15.6289 10.2526C17.6892 10.2994 18.8026 10.313 18.8026 10.313C19.9394 10.3344 20.9691 10.2497 21.9198 10.1621C21.1415 11.8189 19.2049 13.5127 13.9602 13.4134C7.19489 13.2859 3.46398 16.9946 1.55469 18.9863L1.56405 18.9719C3.47675 16.0444 7.38469 10.0631 15.6289 10.2526Z",
9865
8401
  fill: "white"
9866
8402
  }
9867
8403
  ),
9868
- /* @__PURE__ */ jsx25(
8404
+ /* @__PURE__ */ jsx19(
9869
8405
  "path",
9870
8406
  {
9871
8407
  d: "M60.457 3.08307V4.09961H61.9417H63.4264V3.08307V2.06652H61.9417H60.457V3.08307Z",
9872
8408
  fill: "white"
9873
8409
  }
9874
8410
  ),
9875
- /* @__PURE__ */ jsx25(
8411
+ /* @__PURE__ */ jsx19(
9876
8412
  "path",
9877
8413
  {
9878
8414
  d: "M53.2447 2.39671C51.2817 2.622 49.907 3.55062 49.4231 4.97928C49.2636 5.43535 49.2746 6.85851 49.4396 7.2926C49.885 8.49596 50.8803 9.12237 53.3052 9.7268C55.1198 10.1829 55.4222 10.2873 55.8456 10.6005C56.0601 10.7598 56.1866 11.117 56.1536 11.4906C56.0986 12.1665 55.5432 12.5017 54.372 12.5456C53.1732 12.6006 52.222 12.2929 50.9682 11.4467L50.4789 11.117L50.017 11.606C49.2581 12.4083 48.7248 13.0017 48.7467 13.0237C49.797 13.8699 51.0562 14.4853 52.2605 14.7436C53.1348 14.9304 54.6139 14.9799 55.4662 14.8425C57.3633 14.5513 58.617 13.5787 59.0019 12.1225C59.1174 11.6994 59.1284 10.6994 59.0294 10.2873C58.793 9.3092 57.9682 8.51794 56.621 7.97945C56.3405 7.86955 55.4552 7.6058 54.6524 7.397C52.8048 6.91345 52.4584 6.74861 52.2824 6.25957C51.9635 5.36391 52.6619 4.7375 53.9651 4.74849C54.4655 4.75399 54.7679 4.81443 56.0161 5.18258C56.1041 5.21006 56.1096 5.12764 56.1096 3.94625C56.1096 2.78684 56.1041 2.67694 56.0161 2.64947C55.9611 2.63299 55.6367 2.57254 55.2903 2.5066C54.5314 2.37473 53.8001 2.33626 53.2447 2.39671Z",
9879
8415
  fill: "white"
9880
8416
  }
9881
8417
  ),
9882
- /* @__PURE__ */ jsx25(
8418
+ /* @__PURE__ */ jsx19(
9883
8419
  "path",
9884
8420
  {
9885
8421
  d: "M74.6953 7.57213C74.6953 11.2592 74.7173 11.7647 74.8933 12.3142C75.1297 13.056 75.872 13.8912 76.5924 14.2374C77.4667 14.655 78.198 14.8088 79.5507 14.8528L80.469 14.8857V13.8692V12.8582L79.8806 12.7867C78.8579 12.6713 78.1045 12.3252 77.8846 11.8746C77.6976 11.4844 77.6646 11.1108 77.6646 9.23157V7.3963H79.0668H80.469V6.4347V5.47311L79.0833 5.46212L77.6921 5.44563L77.6756 4.65987L77.6591 3.87961H76.18H74.6953V7.57213Z",
9886
8422
  fill: "white"
9887
8423
  }
9888
8424
  ),
9889
- /* @__PURE__ */ jsx25(
8425
+ /* @__PURE__ */ jsx19(
9890
8426
  "path",
9891
8427
  {
9892
8428
  d: "M68.4882 5.25987C67.9383 5.3258 66.9375 5.6445 66.5031 5.89726C65.5024 6.47972 64.9305 7.50725 65.046 8.52379C65.0899 8.95239 65.2274 9.2546 65.5134 9.56231C65.9203 10.0019 66.6406 10.3151 67.8503 10.5789C68.1528 10.6448 68.6256 10.7492 68.9006 10.8096C69.5164 10.9415 70.1268 11.2272 70.2918 11.4525C70.5392 11.7987 70.3907 12.3042 69.9728 12.5515C69.7309 12.6944 69.6869 12.6999 69.0051 12.6999C68.0098 12.6944 66.6351 12.3812 65.8323 11.98C65.6288 11.8756 65.4474 11.7932 65.4309 11.7932C65.4144 11.7932 65.4034 12.3097 65.4034 12.9416V14.0955L65.6948 14.1999C66.8056 14.6121 67.6744 14.8044 68.7081 14.8538C70.1103 14.9253 71.353 14.5901 72.2658 13.9087C72.9037 13.4307 73.2831 12.8702 73.4646 12.1449C73.5855 11.6613 73.514 11.0734 73.2666 10.5624C72.8762 9.73815 71.7544 9.13372 69.8519 8.7216C69.0875 8.55676 68.4882 8.34796 68.3067 8.18311C68.1528 8.04574 68.1747 7.71605 68.3507 7.50725C68.6201 7.18855 68.7576 7.15008 69.5989 7.15008H70.3523V6.21047V5.27085L70.0168 5.23239C69.5879 5.18843 69.0106 5.19942 68.4882 5.25987Z",
9893
8429
  fill: "white"
9894
8430
  }
9895
8431
  ),
9896
- /* @__PURE__ */ jsx25(
8432
+ /* @__PURE__ */ jsx19(
9897
8433
  "path",
9898
8434
  {
9899
8435
  d: "M97.0316 5.25947C96.8116 5.28695 96.3607 5.39684 96.0253 5.50674C94.8156 5.90786 93.9523 6.67714 93.5069 7.74863C93.166 8.57285 93.1605 8.6278 93.133 11.8038L93.1055 14.7051H94.6231H96.1408V12.0511C96.1408 10.4905 96.1628 9.25971 96.1958 9.0509C96.3002 8.44098 96.6467 7.90798 97.1086 7.6717C97.345 7.55082 97.4495 7.53433 97.9554 7.53433C98.4942 7.53433 98.5547 7.54532 98.8242 7.69368C99.2861 7.95194 99.5995 8.419 99.7095 9.01793C99.748 9.22124 99.77 10.3202 99.77 12.0236V14.7051H101.282H102.794V11.9412C102.794 10.2817 102.822 9.08937 102.855 8.94101C103.064 8.02337 103.685 7.50686 104.581 7.50686C105.571 7.50686 106.215 8.11129 106.363 9.17179C106.401 9.43005 106.423 10.6169 106.423 12.1555V14.7051H107.914H109.398L109.382 11.7489C109.36 8.92452 109.354 8.78166 109.239 8.36955C108.854 6.99034 107.897 5.9738 106.572 5.52872C105.786 5.27046 105.527 5.232 104.526 5.2375C103.702 5.2375 103.526 5.25947 103.047 5.38586C102.448 5.53971 101.942 5.7595 101.563 6.01776C101.425 6.11117 101.299 6.1881 101.271 6.1881C101.249 6.1881 101.057 6.07271 100.848 5.94083C99.9459 5.35289 98.4723 5.09463 97.0316 5.25947Z",
9900
8436
  fill: "white"
9901
8437
  }
9902
8438
  ),
9903
- /* @__PURE__ */ jsx25(
8439
+ /* @__PURE__ */ jsx19(
9904
8440
  "path",
9905
8441
  {
9906
8442
  d: "M86.1337 5.30344C84.3081 5.57818 82.9884 6.49581 82.2296 8.02338C81.8887 8.71572 81.7732 9.35862 81.8062 10.3367C81.8447 11.2488 81.9327 11.65 82.2351 12.2489C82.785 13.3369 83.3898 13.9138 84.5171 14.4194C85.1274 14.6941 85.6938 14.815 86.4966 14.8534C87.085 14.8809 88.1462 14.8095 88.5532 14.7106C88.6576 14.6831 88.8116 14.6446 88.8996 14.6282L89.048 14.5952V13.5786C89.048 13.0182 89.0425 12.5621 89.037 12.5621C89.026 12.5621 88.8336 12.617 88.6081 12.6775C88.0253 12.8368 86.898 12.8808 86.3866 12.7599C85.6333 12.5841 85.0449 12.117 84.726 11.4412C84.616 11.2159 84.5446 11.0016 84.5666 10.9686C84.5885 10.9301 85.7433 10.9137 88.1682 10.9137H91.7369L91.7754 10.6609C91.8304 10.2872 91.7534 9.46851 91.605 8.80914C91.286 7.38598 90.3567 6.22657 89.1195 5.69357C88.3552 5.36938 86.9475 5.18255 86.1337 5.30344ZM87.5909 7.52884C87.7448 7.56731 87.9648 7.64973 88.0858 7.71567C88.5257 7.93546 89.0041 8.60033 89.081 9.09487L89.1195 9.32016H86.8265C84.9845 9.32016 84.5391 9.30367 84.5391 9.24872C84.5391 9.06739 84.99 8.26515 85.2099 8.05634C85.4738 7.80358 85.8588 7.58379 86.1722 7.51236C86.4911 7.43543 87.2829 7.44642 87.5909 7.52884Z",
9907
8443
  fill: "white"
9908
8444
  }
9909
8445
  ),
9910
- /* @__PURE__ */ jsx25(
8446
+ /* @__PURE__ */ jsx19(
9911
8447
  "path",
9912
8448
  {
9913
8449
  d: "M114.892 5.30939C114.634 5.33686 114.315 5.38082 114.178 5.4028L113.93 5.45225L113.914 6.58419L113.903 7.71612L114.134 7.65568C114.266 7.62821 114.815 7.60073 115.36 7.59524C116.179 7.58974 116.405 7.60623 116.652 7.68865C117.125 7.8425 117.46 8.12274 117.631 8.4854C117.779 8.80959 117.862 9.37556 117.768 9.37556C117.735 9.37556 117.515 9.32611 117.279 9.27116C116.223 9.00741 114.639 8.98543 113.573 9.20522C111.956 9.5459 110.988 10.6009 110.988 12.0296C110.988 13.2879 111.879 14.3319 113.27 14.711C113.864 14.8759 115.316 14.8924 115.91 14.744C116.41 14.6176 117.152 14.244 117.477 13.9473C117.625 13.8209 117.757 13.7165 117.774 13.7165C117.79 13.7165 117.807 13.9363 117.807 14.211V14.7055H119.242H120.672L120.65 11.5295C120.628 7.97438 120.628 7.99636 120.226 7.24357C119.517 5.9303 118.318 5.34236 116.212 5.28741C115.745 5.27093 115.151 5.28191 114.892 5.30939ZM117.235 10.7712C117.851 10.9251 117.862 10.9306 117.862 11.3537C117.862 12.2329 117.251 12.7933 116.069 12.9912C115.64 13.0681 115.497 13.0681 115.156 13.0131C114.628 12.9252 114.211 12.7164 114.04 12.4637C113.864 12.1999 113.848 11.6394 114.007 11.3757C114.205 11.0515 114.656 10.7822 115.167 10.6888C115.525 10.6229 116.844 10.6778 117.235 10.7712Z",
9914
8450
  fill: "white"
9915
8451
  }
9916
8452
  ),
9917
- /* @__PURE__ */ jsx25(
8453
+ /* @__PURE__ */ jsx19(
9918
8454
  "path",
9919
8455
  {
9920
8456
  d: "M60.457 10.1169V14.7051H61.9417H63.4264V10.1169V5.52872H61.9417H60.457V10.1169Z",
9921
8457
  fill: "white"
9922
8458
  }
9923
8459
  ),
9924
- /* @__PURE__ */ jsx25(
8460
+ /* @__PURE__ */ jsx19(
9925
8461
  "path",
9926
8462
  {
9927
8463
  d: "M173.197 1.72126C172.114 3.40817 171.586 4.24338 171.586 4.28185C171.586 4.30383 172.02 4.32031 172.554 4.32031H173.527L173.752 4.117C174.324 3.61148 175.71 2.27074 175.71 2.22678C175.71 2.19931 175.655 2.14986 175.589 2.12238C175.518 2.09491 175.034 1.8861 174.511 1.65532C173.994 1.43003 173.554 1.24321 173.538 1.24321C173.521 1.24321 173.368 1.45751 173.197 1.72126Z",
9928
8464
  fill: "white"
9929
8465
  }
9930
8466
  ),
9931
- /* @__PURE__ */ jsx25(
8467
+ /* @__PURE__ */ jsx19(
9932
8468
  "path",
9933
8469
  {
9934
8470
  d: "M194.074 2.97369V3.99023H195.559H197.044L197.033 2.98468L197.016 1.98462L195.548 1.96814L194.074 1.95715V2.97369Z",
9935
8471
  fill: "white"
9936
8472
  }
9937
8473
  ),
9938
- /* @__PURE__ */ jsx25(
8474
+ /* @__PURE__ */ jsx19(
9939
8475
  "path",
9940
8476
  {
9941
8477
  d: "M135.845 2.43604C133.887 2.63386 132.37 3.21082 131.144 4.22736C130.346 4.88674 129.653 5.94724 129.4 6.89784C129.241 7.51326 129.197 8.99687 129.323 9.76614C129.664 11.8322 131.138 13.4861 133.398 14.3488C134.173 14.6455 135.872 14.9258 136.873 14.9258H137.275V13.7554V12.5905L136.543 12.585C135.702 12.574 135.257 12.4751 134.525 12.1344C132.997 11.4201 132.144 9.99692 132.238 8.30452C132.287 7.30446 132.59 6.63409 133.283 5.94174C134.091 5.14499 135.059 4.77684 136.494 4.72189L137.275 4.68892V3.546V2.39758L136.659 2.40857C136.318 2.40857 135.949 2.42506 135.845 2.43604Z",
9942
8478
  fill: "white"
9943
8479
  }
9944
8480
  ),
9945
- /* @__PURE__ */ jsx25(
8481
+ /* @__PURE__ */ jsx19(
9946
8482
  "path",
9947
8483
  {
9948
8484
  d: "M142.609 5.13944C140.503 5.44715 138.831 6.8813 138.342 8.80449C137.797 10.964 138.847 13.1839 140.915 14.2224C141.652 14.5905 142.141 14.7114 143.104 14.7444C143.774 14.7664 143.983 14.7554 144.407 14.6565C145.424 14.4312 146.227 13.9971 146.953 13.2773C148.173 12.0519 148.635 10.4255 148.223 8.79899C148.08 8.24951 147.689 7.46375 147.349 7.04065C146.441 5.91421 144.973 5.1834 143.488 5.12296C143.17 5.10647 142.774 5.11746 142.609 5.13944ZM144.297 7.44727C144.682 7.61761 145.089 8.0517 145.237 8.45282C145.578 9.36496 145.545 10.8156 145.166 11.6014C144.83 12.2992 144.253 12.6179 143.312 12.6179C142.565 12.6179 142.174 12.497 141.778 12.1398C141.311 11.7167 141.107 11.0464 141.107 9.95291C141.107 8.48579 141.514 7.68904 142.411 7.39781C142.889 7.23846 143.884 7.26594 144.297 7.44727Z",
9949
8485
  fill: "white"
9950
8486
  }
9951
8487
  ),
9952
- /* @__PURE__ */ jsx25(
8488
+ /* @__PURE__ */ jsx19(
9953
8489
  "path",
9954
8490
  {
9955
8491
  d: "M154.046 5.12263C153.667 5.16659 152.831 5.37539 152.501 5.50177C152.044 5.6831 151.302 6.18862 150.994 6.5293C150.675 6.88097 150.345 7.43595 150.197 7.85905C149.944 8.60635 149.922 8.89208 149.922 11.8263V14.5957H151.434H152.941L152.957 11.6944L152.974 8.79866L153.106 8.46897C153.386 7.78212 153.963 7.39748 154.733 7.39748C155.267 7.39748 155.597 7.52387 155.932 7.85355C156.52 8.42502 156.575 8.79317 156.575 12.1011V14.5957H158.088H159.594L159.611 11.667C159.633 8.35358 159.616 8.45799 160.078 7.94697C160.474 7.50738 160.672 7.42496 161.359 7.42496C161.849 7.42496 161.97 7.44694 162.157 7.54584C162.448 7.70519 162.767 8.0184 162.893 8.26567C163.168 8.80416 163.174 8.88658 163.174 11.8318V14.5957H164.692H166.204L166.187 11.6944L166.165 8.79866L165.995 8.2327C165.725 7.35902 165.439 6.86449 164.922 6.36995C164.345 5.83146 163.79 5.52924 162.943 5.30945C161.348 4.89184 159.512 5.13362 158.357 5.91388C158.219 6.0018 158.088 6.07873 158.06 6.07873C158.038 6.07873 157.835 5.96883 157.615 5.83146C157.23 5.59518 156.729 5.40286 156.042 5.22703C155.712 5.14461 154.425 5.07867 154.046 5.12263Z",
9956
8492
  fill: "white"
9957
8493
  }
9958
8494
  ),
9959
- /* @__PURE__ */ jsx25(
8495
+ /* @__PURE__ */ jsx19(
9960
8496
  "path",
9961
8497
  {
9962
8498
  d: "M182.994 5.1446C181.399 5.38638 180.184 6.17763 179.579 7.36451C179.177 8.14478 179.172 8.20522 179.172 11.5845V14.5957H180.684H182.196V11.6395C182.202 8.969 182.207 8.66129 182.295 8.40853C182.526 7.74915 183.12 7.3755 184.192 7.23264C184.44 7.19967 184.726 7.15571 184.825 7.14472L185.001 7.11725L184.99 6.11719L184.973 5.11713L184.121 5.11164C183.653 5.10614 183.147 5.12263 182.994 5.1446Z",
9963
8499
  fill: "white"
9964
8500
  }
9965
8501
  ),
9966
- /* @__PURE__ */ jsx25(
8502
+ /* @__PURE__ */ jsx19(
9967
8503
  "path",
9968
8504
  {
9969
8505
  d: "M190.311 5.1395C189.706 5.2384 188.705 5.54062 188.21 5.7769C187.248 6.23297 186.61 6.81542 186.126 7.6836C185.73 8.38694 185.609 8.93642 185.609 9.98044C185.615 11.3267 185.928 12.1729 186.737 13.0465C187.479 13.8433 188.425 14.3323 189.788 14.6236C190.514 14.7829 191.62 14.8379 192.169 14.7445L192.428 14.7005V13.7004V12.7004L191.993 12.7169C190.844 12.7718 189.832 12.3927 189.107 11.6289C188.617 11.1179 188.425 10.5299 188.485 9.71669C188.54 8.88147 188.881 8.33748 189.678 7.7935C190.305 7.3649 191.136 7.12313 191.988 7.12313H192.428V6.16703C192.428 5.4582 192.411 5.19444 192.362 5.16148C192.263 5.10653 190.646 5.09004 190.311 5.1395Z",
9970
8506
  fill: "white"
9971
8507
  }
9972
8508
  ),
9973
- /* @__PURE__ */ jsx25(
8509
+ /* @__PURE__ */ jsx19(
9974
8510
  "path",
9975
8511
  {
9976
8512
  d: "M203.01 5.14533C201.784 5.32666 200.524 5.99703 199.776 6.86521C198.93 7.85428 198.473 9.26095 198.627 10.4259C198.842 12.0908 199.82 13.459 201.344 14.2228C202.168 14.6349 202.614 14.7338 203.725 14.7283C204.808 14.7283 205.22 14.6404 205.996 14.2667C208.487 13.0414 209.487 10.25 208.289 7.85977C207.491 6.27177 205.781 5.20028 203.917 5.12335C203.598 5.10686 203.191 5.11785 203.01 5.14533ZM204.72 7.44766C204.874 7.5136 205.116 7.68394 205.253 7.8268C205.666 8.24441 205.831 8.74993 205.88 9.73351C205.93 10.8105 205.71 11.6512 205.259 12.0908C204.901 12.437 204.533 12.5743 203.901 12.6073C202.592 12.6677 201.932 12.2282 201.624 11.0633C201.492 10.5742 201.498 9.24996 201.63 8.79939C201.861 8.03561 202.24 7.59602 202.839 7.39821C203.312 7.24435 204.313 7.26633 204.72 7.44766Z",
9977
8513
  fill: "white"
9978
8514
  }
9979
8515
  ),
9980
- /* @__PURE__ */ jsx25(
8516
+ /* @__PURE__ */ jsx19(
9981
8517
  "path",
9982
8518
  {
9983
8519
  d: "M171.532 5.33081C170.025 5.68797 168.931 6.54517 168.26 7.8914C167.93 8.55627 167.793 9.1662 167.793 10.0344C167.793 11.9081 168.651 13.3752 170.212 14.1775C170.768 14.4632 171.059 14.5621 171.725 14.683C172.533 14.8314 174.199 14.7434 174.958 14.5072C175.04 14.4797 175.051 14.3808 175.051 13.4741V12.4686L174.49 12.6005C173.809 12.7543 172.83 12.7708 172.34 12.6444C171.637 12.4631 171.103 12.0565 170.806 11.4795C170.696 11.2762 170.592 11.0509 170.57 10.9795L170.537 10.8586H174.133H177.735L177.768 10.6883C177.916 9.95196 177.619 8.36395 177.179 7.52324C176.684 6.56165 175.711 5.74292 174.721 5.4462C173.77 5.16597 172.434 5.11651 171.532 5.33081ZM173.523 7.40236C173.93 7.49028 174.199 7.63864 174.512 7.95184C174.804 8.24307 175.046 8.69914 175.09 9.05081L175.123 9.2651L172.846 9.25411L170.57 9.23763L170.586 9.10026C170.592 9.02333 170.685 8.78705 170.79 8.56726C170.988 8.16614 171.373 7.75952 171.719 7.57819C172.148 7.35291 172.934 7.27598 173.523 7.40236Z",
9984
8520
  fill: "white"
9985
8521
  }
9986
8522
  ),
9987
- /* @__PURE__ */ jsx25(
8523
+ /* @__PURE__ */ jsx19(
9988
8524
  "path",
9989
8525
  {
9990
8526
  d: "M194.074 10.0075V14.5957H195.559H197.044V10.0075V5.41934H195.559H194.074V10.0075Z",
@@ -9997,12 +8533,12 @@ function LogotipoDefault() {
9997
8533
  }
9998
8534
 
9999
8535
  // src/components/Sidebar/index.tsx
10000
- import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
8536
+ import { jsx as jsx20, jsxs as jsxs8 } from "react/jsx-runtime";
10001
8537
  function SidebarContainer({
10002
8538
  isOpen = true,
10003
8539
  ...rest
10004
8540
  }) {
10005
- return /* @__PURE__ */ jsx26(
8541
+ return /* @__PURE__ */ jsx20(
10006
8542
  "div",
10007
8543
  {
10008
8544
  "data-is-open": isOpen,
@@ -10018,21 +8554,21 @@ function SidebarImageBrand({
10018
8554
  img,
10019
8555
  children
10020
8556
  }) {
10021
- return /* @__PURE__ */ jsxs9("div", { className: "cnc-flex cnc-items-center cnc-justify-between cnc-bg-primary-900 cnc-w-full cnc-h-full cnc-max-h-[70px] cnc-py-5 cnc-px-6 cnc-transition-all cnc-duration-300 cnc-ease-in-out cnc-sidebar-child-w-0", children: [
10022
- /* @__PURE__ */ jsx26("span", { className: "cnc-sidebar-child-hidden", children: asChild && !img ? children : img && img.src ? /* @__PURE__ */ jsx26(
8557
+ return /* @__PURE__ */ jsxs8("div", { className: "cnc-flex cnc-items-center cnc-justify-between cnc-bg-primary-900 cnc-w-full cnc-h-full cnc-max-h-[70px] cnc-py-5 cnc-px-6 cnc-transition-all cnc-duration-300 cnc-ease-in-out cnc-sidebar-child-w-0", children: [
8558
+ /* @__PURE__ */ jsx20("span", { className: "cnc-sidebar-child-hidden", children: asChild && !img ? children : img && img.src ? /* @__PURE__ */ jsx20(
10023
8559
  "img",
10024
8560
  {
10025
8561
  src: img.src,
10026
8562
  alt: img?.alt,
10027
8563
  className: "cnc-w-[159px] cnc-h-[28px] cnc-object-contain"
10028
8564
  }
10029
- ) : /* @__PURE__ */ jsx26(LogotipoDefault, {}) }),
10030
- onChangeToggle && /* @__PURE__ */ jsx26(
8565
+ ) : /* @__PURE__ */ jsx20(LogotipoDefault, {}) }),
8566
+ onChangeToggle && /* @__PURE__ */ jsx20(
10031
8567
  "button",
10032
8568
  {
10033
8569
  onClick: onChangeToggle,
10034
8570
  className: "hover:cnc-brightness-75 cnc-sidebar-child-hidden",
10035
- children: /* @__PURE__ */ jsx26(
8571
+ children: /* @__PURE__ */ jsx20(
10036
8572
  "svg",
10037
8573
  {
10038
8574
  stroke: "currentColor",
@@ -10043,7 +8579,7 @@ function SidebarImageBrand({
10043
8579
  height: "1em",
10044
8580
  width: "1em",
10045
8581
  xmlns: "http://www.w3.org/2000/svg",
10046
- children: /* @__PURE__ */ jsx26(
8582
+ children: /* @__PURE__ */ jsx20(
10047
8583
  "path",
10048
8584
  {
10049
8585
  fill: "none",
@@ -10060,7 +8596,7 @@ function SidebarImageBrand({
10060
8596
  ] });
10061
8597
  }
10062
8598
  function Sidebar({ children, ...rest }) {
10063
- return /* @__PURE__ */ jsx26(Accordion.Root, { ...rest, children: /* @__PURE__ */ jsx26(
8599
+ return /* @__PURE__ */ jsx20(Accordion.Root, { ...rest, children: /* @__PURE__ */ jsx20(
10064
8600
  "div",
10065
8601
  {
10066
8602
  className: "cnc-w-full cnc-h-screen-minus-70 cnc-flex cnc-flex-col cnc-py-8 cnc-bg-primary-800 cnc-px-5 \n cnc-scroll-smooth cnc-overflow-y-auto\n [&::-webkit-scrollbar]:cnc-w-1\n [&::-webkit-scrollbar-track]:cnc-bg-brand-blue-500\n [&::-webkit-scrollbar-thumb]:cnc-rounded\n [&::-webkit-scrollbar-thumb]:cnc-border\n [&::-webkit-scrollbar-thumb]:cnc-border-solid\n [&::-webkit-scrollbar-thumb]:cnc-border-brand-gray-400\n [&::-webkit-scrollbar-thumb]:cnc-bg-brand-gray-200\n cnc-sidebar-child-w-0",
@@ -10073,8 +8609,8 @@ function SidebarNavLink({
10073
8609
  type = "primary",
10074
8610
  ...rest
10075
8611
  }) {
10076
- const Component = asChild ? Slot6 : "a";
10077
- return /* @__PURE__ */ jsx26(
8612
+ const Component = asChild ? Slot5 : "a";
8613
+ return /* @__PURE__ */ jsx20(
10078
8614
  Component,
10079
8615
  {
10080
8616
  "data-type": type,
@@ -10089,13 +8625,13 @@ function SidebarNavCollapse({
10089
8625
  icon,
10090
8626
  ...rest
10091
8627
  }) {
10092
- return /* @__PURE__ */ jsxs9(Accordion.Item, { ...rest, className: "cnc-sidebar-item", children: [
10093
- /* @__PURE__ */ jsxs9(Accordion.Trigger, { className: "group cnc-w-full cnc-py-4 cnc-text-base cnc-text-white cnc-flex cnc-gap-2 cnc-items-center cnc-justify-between hover:cnc-text-blue-600 cnc-sidebar-child-hidden", children: [
10094
- /* @__PURE__ */ jsxs9("div", { className: "cnc-flex cnc-items-center cnc-gap-2", children: [
8628
+ return /* @__PURE__ */ jsxs8(Accordion.Item, { ...rest, className: "cnc-sidebar-item", children: [
8629
+ /* @__PURE__ */ jsxs8(Accordion.Trigger, { className: "group cnc-w-full cnc-py-4 cnc-text-base cnc-text-white cnc-flex cnc-gap-2 cnc-items-center cnc-justify-between hover:cnc-text-blue-600 cnc-sidebar-child-hidden", children: [
8630
+ /* @__PURE__ */ jsxs8("div", { className: "cnc-flex cnc-items-center cnc-gap-2", children: [
10095
8631
  icon && renderIconItem(icon),
10096
8632
  title
10097
8633
  ] }),
10098
- /* @__PURE__ */ jsx26("div", { className: "cnc-w-4 cnc-h-4", children: /* @__PURE__ */ jsx26(
8634
+ /* @__PURE__ */ jsx20("div", { className: "cnc-w-4 cnc-h-4", children: /* @__PURE__ */ jsx20(
10099
8635
  "svg",
10100
8636
  {
10101
8637
  xmlns: "http://www.w3.org/2000/svg",
@@ -10108,33 +8644,33 @@ function SidebarNavCollapse({
10108
8644
  strokeLinecap: "round",
10109
8645
  strokeLinejoin: "round",
10110
8646
  className: "cnc-w-full cnc-h-full cnc-text-violet10 cnc-transition-transform cnc-duration-300 cnc-ease-[cubic-bezier(0.87,_0,_0.13,_1)] group-data-[state=open]:cnc-rotate-90",
10111
- children: /* @__PURE__ */ jsx26("path", { d: "m9 18 6-6-6-6" })
8647
+ children: /* @__PURE__ */ jsx20("path", { d: "m9 18 6-6-6-6" })
10112
8648
  }
10113
8649
  ) })
10114
8650
  ] }),
10115
- /* @__PURE__ */ jsx26(Accordion.Content, { className: "cnc-overflow-hidden data-[state=closed]:cnc-animate-slideUp data-[state=open]:cnc-animate-slideDown cnc-py-2", children: /* @__PURE__ */ jsx26("div", { className: "cnc-bg-white/10 cnc-rounded-md cnc-font-normal cnc-px-5 cnc-py-3", children }) })
8651
+ /* @__PURE__ */ jsx20(Accordion.Content, { className: "cnc-overflow-hidden data-[state=closed]:cnc-animate-slideUp data-[state=open]:cnc-animate-slideDown cnc-py-2", children: /* @__PURE__ */ jsx20("div", { className: "cnc-bg-white/10 cnc-rounded-md cnc-font-normal cnc-px-5 cnc-py-3", children }) })
10116
8652
  ] });
10117
8653
  }
10118
8654
  function renderIconItem(icon) {
10119
8655
  if (!icon) return null;
10120
8656
  if (isValidElement(icon) && icon.type === "svg") {
10121
8657
  const svgIcon = icon;
10122
- return cloneElement5(svgIcon, {
8658
+ return cloneElement3(svgIcon, {
10123
8659
  height: 20,
10124
8660
  width: 20
10125
8661
  });
10126
8662
  }
10127
8663
  if (isValidElement(icon)) {
10128
- return /* @__PURE__ */ jsx26("span", { className: "cnc-w-5 cnc-h-5 cnc-overflow-hidden", children: icon });
8664
+ return /* @__PURE__ */ jsx20("span", { className: "cnc-w-5 cnc-h-5 cnc-overflow-hidden", children: icon });
10129
8665
  }
10130
- return /* @__PURE__ */ jsx26("span", { className: "cnc-w-5 cnc-h-5 cnc-overflow-hidden", children: icon });
8666
+ return /* @__PURE__ */ jsx20("span", { className: "cnc-w-5 cnc-h-5 cnc-overflow-hidden", children: icon });
10131
8667
  }
10132
8668
 
10133
8669
  // ../../node_modules/@radix-ui/react-popover/dist/index.mjs
10134
- import * as React71 from "react";
8670
+ import * as React54 from "react";
10135
8671
 
10136
8672
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/primitive/dist/index.mjs
10137
- function composeEventHandlers3(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
8673
+ function composeEventHandlers2(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
10138
8674
  return function handleEvent(event) {
10139
8675
  originalEventHandler?.(event);
10140
8676
  if (checkForDefaultPrevented === false || !event.defaultPrevented) {
@@ -10144,19 +8680,19 @@ function composeEventHandlers3(originalEventHandler, ourEventHandler, { checkFor
10144
8680
  }
10145
8681
 
10146
8682
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
10147
- import * as React52 from "react";
10148
- function setRef3(ref, value) {
8683
+ import * as React35 from "react";
8684
+ function setRef2(ref, value) {
10149
8685
  if (typeof ref === "function") {
10150
8686
  return ref(value);
10151
8687
  } else if (ref !== null && ref !== void 0) {
10152
8688
  ref.current = value;
10153
8689
  }
10154
8690
  }
10155
- function composeRefs3(...refs) {
8691
+ function composeRefs2(...refs) {
10156
8692
  return (node) => {
10157
8693
  let hasCleanup = false;
10158
8694
  const cleanups = refs.map((ref) => {
10159
- const cleanup = setRef3(ref, node);
8695
+ const cleanup = setRef2(ref, node);
10160
8696
  if (!hasCleanup && typeof cleanup == "function") {
10161
8697
  hasCleanup = true;
10162
8698
  }
@@ -10169,36 +8705,36 @@ function composeRefs3(...refs) {
10169
8705
  if (typeof cleanup == "function") {
10170
8706
  cleanup();
10171
8707
  } else {
10172
- setRef3(refs[i], null);
8708
+ setRef2(refs[i], null);
10173
8709
  }
10174
8710
  }
10175
8711
  };
10176
8712
  }
10177
8713
  };
10178
8714
  }
10179
- function useComposedRefs3(...refs) {
10180
- return React52.useCallback(composeRefs3(...refs), refs);
8715
+ function useComposedRefs2(...refs) {
8716
+ return React35.useCallback(composeRefs2(...refs), refs);
10181
8717
  }
10182
8718
 
10183
8719
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-context/dist/index.mjs
10184
- import * as React53 from "react";
10185
- import { jsx as jsx27 } from "react/jsx-runtime";
10186
- function createContextScope3(scopeName, createContextScopeDeps = []) {
8720
+ import * as React36 from "react";
8721
+ import { jsx as jsx21 } from "react/jsx-runtime";
8722
+ function createContextScope2(scopeName, createContextScopeDeps = []) {
10187
8723
  let defaultContexts = [];
10188
8724
  function createContext32(rootComponentName, defaultContext) {
10189
- const BaseContext = React53.createContext(defaultContext);
8725
+ const BaseContext = React36.createContext(defaultContext);
10190
8726
  const index2 = defaultContexts.length;
10191
8727
  defaultContexts = [...defaultContexts, defaultContext];
10192
8728
  const Provider = (props) => {
10193
8729
  const { scope, children, ...context } = props;
10194
8730
  const Context = scope?.[scopeName]?.[index2] || BaseContext;
10195
- const value = React53.useMemo(() => context, Object.values(context));
10196
- return /* @__PURE__ */ jsx27(Context.Provider, { value, children });
8731
+ const value = React36.useMemo(() => context, Object.values(context));
8732
+ return /* @__PURE__ */ jsx21(Context.Provider, { value, children });
10197
8733
  };
10198
8734
  Provider.displayName = rootComponentName + "Provider";
10199
8735
  function useContext22(consumerName, scope) {
10200
8736
  const Context = scope?.[scopeName]?.[index2] || BaseContext;
10201
- const context = React53.useContext(Context);
8737
+ const context = React36.useContext(Context);
10202
8738
  if (context) return context;
10203
8739
  if (defaultContext !== void 0) return defaultContext;
10204
8740
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
@@ -10207,20 +8743,20 @@ function createContextScope3(scopeName, createContextScopeDeps = []) {
10207
8743
  }
10208
8744
  const createScope = () => {
10209
8745
  const scopeContexts = defaultContexts.map((defaultContext) => {
10210
- return React53.createContext(defaultContext);
8746
+ return React36.createContext(defaultContext);
10211
8747
  });
10212
8748
  return function useScope(scope) {
10213
8749
  const contexts = scope?.[scopeName] || scopeContexts;
10214
- return React53.useMemo(
8750
+ return React36.useMemo(
10215
8751
  () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
10216
8752
  [scope, contexts]
10217
8753
  );
10218
8754
  };
10219
8755
  };
10220
8756
  createScope.scopeName = scopeName;
10221
- return [createContext32, composeContextScopes3(createScope, ...createContextScopeDeps)];
8757
+ return [createContext32, composeContextScopes2(createScope, ...createContextScopeDeps)];
10222
8758
  }
10223
- function composeContextScopes3(...scopes) {
8759
+ function composeContextScopes2(...scopes) {
10224
8760
  const baseScope = scopes[0];
10225
8761
  if (scopes.length === 1) return baseScope;
10226
8762
  const createScope = () => {
@@ -10234,7 +8770,7 @@ function composeContextScopes3(...scopes) {
10234
8770
  const currentScope = scopeProps[`__scope${scopeName}`];
10235
8771
  return { ...nextScopes2, ...currentScope };
10236
8772
  }, {});
10237
- return React53.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
8773
+ return React36.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
10238
8774
  };
10239
8775
  };
10240
8776
  createScope.scopeName = baseScope.scopeName;
@@ -10242,14 +8778,14 @@ function composeContextScopes3(...scopes) {
10242
8778
  }
10243
8779
 
10244
8780
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
10245
- import * as React57 from "react";
8781
+ import * as React40 from "react";
10246
8782
 
10247
8783
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.mjs
10248
- import * as React54 from "react";
10249
- import * as ReactDOM6 from "react-dom";
10250
- import { createSlot as createSlot3 } from "@radix-ui/react-slot";
10251
- import { jsx as jsx28 } from "react/jsx-runtime";
10252
- var NODES3 = [
8784
+ import * as React37 from "react";
8785
+ import * as ReactDOM4 from "react-dom";
8786
+ import { createSlot } from "@radix-ui/react-slot";
8787
+ import { jsx as jsx22 } from "react/jsx-runtime";
8788
+ var NODES2 = [
10253
8789
  "a",
10254
8790
  "button",
10255
8791
  "div",
@@ -10268,38 +8804,38 @@ var NODES3 = [
10268
8804
  "svg",
10269
8805
  "ul"
10270
8806
  ];
10271
- var Primitive3 = NODES3.reduce((primitive, node) => {
10272
- const Slot8 = createSlot3(`Primitive.${node}`);
10273
- const Node2 = React54.forwardRef((props, forwardedRef) => {
8807
+ var Primitive2 = NODES2.reduce((primitive, node) => {
8808
+ const Slot7 = createSlot(`Primitive.${node}`);
8809
+ const Node2 = React37.forwardRef((props, forwardedRef) => {
10274
8810
  const { asChild, ...primitiveProps } = props;
10275
- const Comp = asChild ? Slot8 : node;
8811
+ const Comp = asChild ? Slot7 : node;
10276
8812
  if (typeof window !== "undefined") {
10277
8813
  window[Symbol.for("radix-ui")] = true;
10278
8814
  }
10279
- return /* @__PURE__ */ jsx28(Comp, { ...primitiveProps, ref: forwardedRef });
8815
+ return /* @__PURE__ */ jsx22(Comp, { ...primitiveProps, ref: forwardedRef });
10280
8816
  });
10281
8817
  Node2.displayName = `Primitive.${node}`;
10282
8818
  return { ...primitive, [node]: Node2 };
10283
8819
  }, {});
10284
- function dispatchDiscreteCustomEvent3(target, event) {
10285
- if (target) ReactDOM6.flushSync(() => target.dispatchEvent(event));
8820
+ function dispatchDiscreteCustomEvent2(target, event) {
8821
+ if (target) ReactDOM4.flushSync(() => target.dispatchEvent(event));
10286
8822
  }
10287
8823
 
10288
8824
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
10289
- import * as React55 from "react";
10290
- function useCallbackRef4(callback) {
10291
- const callbackRef = React55.useRef(callback);
10292
- React55.useEffect(() => {
8825
+ import * as React38 from "react";
8826
+ function useCallbackRef3(callback) {
8827
+ const callbackRef = React38.useRef(callback);
8828
+ React38.useEffect(() => {
10293
8829
  callbackRef.current = callback;
10294
8830
  });
10295
- return React55.useMemo(() => (...args) => callbackRef.current?.(...args), []);
8831
+ return React38.useMemo(() => (...args) => callbackRef.current?.(...args), []);
10296
8832
  }
10297
8833
 
10298
8834
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
10299
- import * as React56 from "react";
10300
- function useEscapeKeydown3(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
10301
- const onEscapeKeyDown = useCallbackRef4(onEscapeKeyDownProp);
10302
- React56.useEffect(() => {
8835
+ import * as React39 from "react";
8836
+ function useEscapeKeydown2(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
8837
+ const onEscapeKeyDown = useCallbackRef3(onEscapeKeyDownProp);
8838
+ React39.useEffect(() => {
10303
8839
  const handleKeyDown = (event) => {
10304
8840
  if (event.key === "Escape") {
10305
8841
  onEscapeKeyDown(event);
@@ -10311,18 +8847,18 @@ function useEscapeKeydown3(onEscapeKeyDownProp, ownerDocument = globalThis?.docu
10311
8847
  }
10312
8848
 
10313
8849
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
10314
- import { jsx as jsx29 } from "react/jsx-runtime";
10315
- var DISMISSABLE_LAYER_NAME3 = "DismissableLayer";
10316
- var CONTEXT_UPDATE3 = "dismissableLayer.update";
10317
- var POINTER_DOWN_OUTSIDE3 = "dismissableLayer.pointerDownOutside";
10318
- var FOCUS_OUTSIDE3 = "dismissableLayer.focusOutside";
10319
- var originalBodyPointerEvents3;
10320
- var DismissableLayerContext3 = React57.createContext({
8850
+ import { jsx as jsx23 } from "react/jsx-runtime";
8851
+ var DISMISSABLE_LAYER_NAME2 = "DismissableLayer";
8852
+ var CONTEXT_UPDATE2 = "dismissableLayer.update";
8853
+ var POINTER_DOWN_OUTSIDE2 = "dismissableLayer.pointerDownOutside";
8854
+ var FOCUS_OUTSIDE2 = "dismissableLayer.focusOutside";
8855
+ var originalBodyPointerEvents2;
8856
+ var DismissableLayerContext2 = React40.createContext({
10321
8857
  layers: /* @__PURE__ */ new Set(),
10322
8858
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
10323
8859
  branches: /* @__PURE__ */ new Set()
10324
8860
  });
10325
- var DismissableLayer3 = React57.forwardRef(
8861
+ var DismissableLayer2 = React40.forwardRef(
10326
8862
  (props, forwardedRef) => {
10327
8863
  const {
10328
8864
  disableOutsidePointerEvents = false,
@@ -10333,18 +8869,18 @@ var DismissableLayer3 = React57.forwardRef(
10333
8869
  onDismiss,
10334
8870
  ...layerProps
10335
8871
  } = props;
10336
- const context = React57.useContext(DismissableLayerContext3);
10337
- const [node, setNode] = React57.useState(null);
8872
+ const context = React40.useContext(DismissableLayerContext2);
8873
+ const [node, setNode] = React40.useState(null);
10338
8874
  const ownerDocument = node?.ownerDocument ?? globalThis?.document;
10339
- const [, force] = React57.useState({});
10340
- const composedRefs = useComposedRefs3(forwardedRef, (node2) => setNode(node2));
8875
+ const [, force] = React40.useState({});
8876
+ const composedRefs = useComposedRefs2(forwardedRef, (node2) => setNode(node2));
10341
8877
  const layers = Array.from(context.layers);
10342
8878
  const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
10343
8879
  const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
10344
8880
  const index2 = node ? layers.indexOf(node) : -1;
10345
8881
  const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
10346
8882
  const isPointerEventsEnabled = index2 >= highestLayerWithOutsidePointerEventsDisabledIndex;
10347
- const pointerDownOutside = usePointerDownOutside3((event) => {
8883
+ const pointerDownOutside = usePointerDownOutside2((event) => {
10348
8884
  const target = event.target;
10349
8885
  const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
10350
8886
  if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
@@ -10352,7 +8888,7 @@ var DismissableLayer3 = React57.forwardRef(
10352
8888
  onInteractOutside?.(event);
10353
8889
  if (!event.defaultPrevented) onDismiss?.();
10354
8890
  }, ownerDocument);
10355
- const focusOutside = useFocusOutside3((event) => {
8891
+ const focusOutside = useFocusOutside2((event) => {
10356
8892
  const target = event.target;
10357
8893
  const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));
10358
8894
  if (isFocusInBranch) return;
@@ -10360,7 +8896,7 @@ var DismissableLayer3 = React57.forwardRef(
10360
8896
  onInteractOutside?.(event);
10361
8897
  if (!event.defaultPrevented) onDismiss?.();
10362
8898
  }, ownerDocument);
10363
- useEscapeKeydown3((event) => {
8899
+ useEscapeKeydown2((event) => {
10364
8900
  const isHighestLayer = index2 === context.layers.size - 1;
10365
8901
  if (!isHighestLayer) return;
10366
8902
  onEscapeKeyDown?.(event);
@@ -10369,38 +8905,38 @@ var DismissableLayer3 = React57.forwardRef(
10369
8905
  onDismiss();
10370
8906
  }
10371
8907
  }, ownerDocument);
10372
- React57.useEffect(() => {
8908
+ React40.useEffect(() => {
10373
8909
  if (!node) return;
10374
8910
  if (disableOutsidePointerEvents) {
10375
8911
  if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
10376
- originalBodyPointerEvents3 = ownerDocument.body.style.pointerEvents;
8912
+ originalBodyPointerEvents2 = ownerDocument.body.style.pointerEvents;
10377
8913
  ownerDocument.body.style.pointerEvents = "none";
10378
8914
  }
10379
8915
  context.layersWithOutsidePointerEventsDisabled.add(node);
10380
8916
  }
10381
8917
  context.layers.add(node);
10382
- dispatchUpdate3();
8918
+ dispatchUpdate2();
10383
8919
  return () => {
10384
8920
  if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {
10385
- ownerDocument.body.style.pointerEvents = originalBodyPointerEvents3;
8921
+ ownerDocument.body.style.pointerEvents = originalBodyPointerEvents2;
10386
8922
  }
10387
8923
  };
10388
8924
  }, [node, ownerDocument, disableOutsidePointerEvents, context]);
10389
- React57.useEffect(() => {
8925
+ React40.useEffect(() => {
10390
8926
  return () => {
10391
8927
  if (!node) return;
10392
8928
  context.layers.delete(node);
10393
8929
  context.layersWithOutsidePointerEventsDisabled.delete(node);
10394
- dispatchUpdate3();
8930
+ dispatchUpdate2();
10395
8931
  };
10396
8932
  }, [node, context]);
10397
- React57.useEffect(() => {
8933
+ React40.useEffect(() => {
10398
8934
  const handleUpdate = () => force({});
10399
- document.addEventListener(CONTEXT_UPDATE3, handleUpdate);
10400
- return () => document.removeEventListener(CONTEXT_UPDATE3, handleUpdate);
8935
+ document.addEventListener(CONTEXT_UPDATE2, handleUpdate);
8936
+ return () => document.removeEventListener(CONTEXT_UPDATE2, handleUpdate);
10401
8937
  }, []);
10402
- return /* @__PURE__ */ jsx29(
10403
- Primitive3.div,
8938
+ return /* @__PURE__ */ jsx23(
8939
+ Primitive2.div,
10404
8940
  {
10405
8941
  ...layerProps,
10406
8942
  ref: composedRefs,
@@ -10408,9 +8944,9 @@ var DismissableLayer3 = React57.forwardRef(
10408
8944
  pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
10409
8945
  ...props.style
10410
8946
  },
10411
- onFocusCapture: composeEventHandlers3(props.onFocusCapture, focusOutside.onFocusCapture),
10412
- onBlurCapture: composeEventHandlers3(props.onBlurCapture, focusOutside.onBlurCapture),
10413
- onPointerDownCapture: composeEventHandlers3(
8947
+ onFocusCapture: composeEventHandlers2(props.onFocusCapture, focusOutside.onFocusCapture),
8948
+ onBlurCapture: composeEventHandlers2(props.onBlurCapture, focusOutside.onBlurCapture),
8949
+ onPointerDownCapture: composeEventHandlers2(
10414
8950
  props.onPointerDownCapture,
10415
8951
  pointerDownOutside.onPointerDownCapture
10416
8952
  )
@@ -10418,13 +8954,13 @@ var DismissableLayer3 = React57.forwardRef(
10418
8954
  );
10419
8955
  }
10420
8956
  );
10421
- DismissableLayer3.displayName = DISMISSABLE_LAYER_NAME3;
10422
- var BRANCH_NAME3 = "DismissableLayerBranch";
10423
- var DismissableLayerBranch3 = React57.forwardRef((props, forwardedRef) => {
10424
- const context = React57.useContext(DismissableLayerContext3);
10425
- const ref = React57.useRef(null);
10426
- const composedRefs = useComposedRefs3(forwardedRef, ref);
10427
- React57.useEffect(() => {
8957
+ DismissableLayer2.displayName = DISMISSABLE_LAYER_NAME2;
8958
+ var BRANCH_NAME2 = "DismissableLayerBranch";
8959
+ var DismissableLayerBranch2 = React40.forwardRef((props, forwardedRef) => {
8960
+ const context = React40.useContext(DismissableLayerContext2);
8961
+ const ref = React40.useRef(null);
8962
+ const composedRefs = useComposedRefs2(forwardedRef, ref);
8963
+ React40.useEffect(() => {
10428
8964
  const node = ref.current;
10429
8965
  if (node) {
10430
8966
  context.branches.add(node);
@@ -10433,20 +8969,20 @@ var DismissableLayerBranch3 = React57.forwardRef((props, forwardedRef) => {
10433
8969
  };
10434
8970
  }
10435
8971
  }, [context.branches]);
10436
- return /* @__PURE__ */ jsx29(Primitive3.div, { ...props, ref: composedRefs });
8972
+ return /* @__PURE__ */ jsx23(Primitive2.div, { ...props, ref: composedRefs });
10437
8973
  });
10438
- DismissableLayerBranch3.displayName = BRANCH_NAME3;
10439
- function usePointerDownOutside3(onPointerDownOutside, ownerDocument = globalThis?.document) {
10440
- const handlePointerDownOutside = useCallbackRef4(onPointerDownOutside);
10441
- const isPointerInsideReactTreeRef = React57.useRef(false);
10442
- const handleClickRef = React57.useRef(() => {
8974
+ DismissableLayerBranch2.displayName = BRANCH_NAME2;
8975
+ function usePointerDownOutside2(onPointerDownOutside, ownerDocument = globalThis?.document) {
8976
+ const handlePointerDownOutside = useCallbackRef3(onPointerDownOutside);
8977
+ const isPointerInsideReactTreeRef = React40.useRef(false);
8978
+ const handleClickRef = React40.useRef(() => {
10443
8979
  });
10444
- React57.useEffect(() => {
8980
+ React40.useEffect(() => {
10445
8981
  const handlePointerDown = (event) => {
10446
8982
  if (event.target && !isPointerInsideReactTreeRef.current) {
10447
8983
  let handleAndDispatchPointerDownOutsideEvent2 = function() {
10448
- handleAndDispatchCustomEvent3(
10449
- POINTER_DOWN_OUTSIDE3,
8984
+ handleAndDispatchCustomEvent2(
8985
+ POINTER_DOWN_OUTSIDE2,
10450
8986
  handlePointerDownOutside,
10451
8987
  eventDetail,
10452
8988
  { discrete: true }
@@ -10480,14 +9016,14 @@ function usePointerDownOutside3(onPointerDownOutside, ownerDocument = globalThis
10480
9016
  onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
10481
9017
  };
10482
9018
  }
10483
- function useFocusOutside3(onFocusOutside, ownerDocument = globalThis?.document) {
10484
- const handleFocusOutside = useCallbackRef4(onFocusOutside);
10485
- const isFocusInsideReactTreeRef = React57.useRef(false);
10486
- React57.useEffect(() => {
9019
+ function useFocusOutside2(onFocusOutside, ownerDocument = globalThis?.document) {
9020
+ const handleFocusOutside = useCallbackRef3(onFocusOutside);
9021
+ const isFocusInsideReactTreeRef = React40.useRef(false);
9022
+ React40.useEffect(() => {
10487
9023
  const handleFocus = (event) => {
10488
9024
  if (event.target && !isFocusInsideReactTreeRef.current) {
10489
9025
  const eventDetail = { originalEvent: event };
10490
- handleAndDispatchCustomEvent3(FOCUS_OUTSIDE3, handleFocusOutside, eventDetail, {
9026
+ handleAndDispatchCustomEvent2(FOCUS_OUTSIDE2, handleFocusOutside, eventDetail, {
10491
9027
  discrete: false
10492
9028
  });
10493
9029
  }
@@ -10500,39 +9036,39 @@ function useFocusOutside3(onFocusOutside, ownerDocument = globalThis?.document)
10500
9036
  onBlurCapture: () => isFocusInsideReactTreeRef.current = false
10501
9037
  };
10502
9038
  }
10503
- function dispatchUpdate3() {
10504
- const event = new CustomEvent(CONTEXT_UPDATE3);
9039
+ function dispatchUpdate2() {
9040
+ const event = new CustomEvent(CONTEXT_UPDATE2);
10505
9041
  document.dispatchEvent(event);
10506
9042
  }
10507
- function handleAndDispatchCustomEvent3(name, handler, detail, { discrete }) {
9043
+ function handleAndDispatchCustomEvent2(name, handler, detail, { discrete }) {
10508
9044
  const target = detail.originalEvent.target;
10509
9045
  const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });
10510
9046
  if (handler) target.addEventListener(name, handler, { once: true });
10511
9047
  if (discrete) {
10512
- dispatchDiscreteCustomEvent3(target, event);
9048
+ dispatchDiscreteCustomEvent2(target, event);
10513
9049
  } else {
10514
9050
  target.dispatchEvent(event);
10515
9051
  }
10516
9052
  }
10517
9053
 
10518
9054
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
10519
- import * as React58 from "react";
10520
- var count5 = 0;
10521
- function useFocusGuards3() {
10522
- React58.useEffect(() => {
9055
+ import * as React41 from "react";
9056
+ var count3 = 0;
9057
+ function useFocusGuards2() {
9058
+ React41.useEffect(() => {
10523
9059
  const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
10524
- document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard3());
10525
- document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard3());
10526
- count5++;
9060
+ document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard2());
9061
+ document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard2());
9062
+ count3++;
10527
9063
  return () => {
10528
- if (count5 === 1) {
9064
+ if (count3 === 1) {
10529
9065
  document.querySelectorAll("[data-radix-focus-guard]").forEach((node) => node.remove());
10530
9066
  }
10531
- count5--;
9067
+ count3--;
10532
9068
  };
10533
9069
  }, []);
10534
9070
  }
10535
- function createFocusGuard3() {
9071
+ function createFocusGuard2() {
10536
9072
  const element = document.createElement("span");
10537
9073
  element.setAttribute("data-radix-focus-guard", "");
10538
9074
  element.tabIndex = 0;
@@ -10544,13 +9080,13 @@ function createFocusGuard3() {
10544
9080
  }
10545
9081
 
10546
9082
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
10547
- import * as React59 from "react";
10548
- import { jsx as jsx30 } from "react/jsx-runtime";
10549
- var AUTOFOCUS_ON_MOUNT3 = "focusScope.autoFocusOnMount";
10550
- var AUTOFOCUS_ON_UNMOUNT3 = "focusScope.autoFocusOnUnmount";
10551
- var EVENT_OPTIONS4 = { bubbles: false, cancelable: true };
10552
- var FOCUS_SCOPE_NAME3 = "FocusScope";
10553
- var FocusScope3 = React59.forwardRef((props, forwardedRef) => {
9083
+ import * as React42 from "react";
9084
+ import { jsx as jsx24 } from "react/jsx-runtime";
9085
+ var AUTOFOCUS_ON_MOUNT2 = "focusScope.autoFocusOnMount";
9086
+ var AUTOFOCUS_ON_UNMOUNT2 = "focusScope.autoFocusOnUnmount";
9087
+ var EVENT_OPTIONS3 = { bubbles: false, cancelable: true };
9088
+ var FOCUS_SCOPE_NAME2 = "FocusScope";
9089
+ var FocusScope2 = React42.forwardRef((props, forwardedRef) => {
10554
9090
  const {
10555
9091
  loop = false,
10556
9092
  trapped = false,
@@ -10558,12 +9094,12 @@ var FocusScope3 = React59.forwardRef((props, forwardedRef) => {
10558
9094
  onUnmountAutoFocus: onUnmountAutoFocusProp,
10559
9095
  ...scopeProps
10560
9096
  } = props;
10561
- const [container, setContainer] = React59.useState(null);
10562
- const onMountAutoFocus = useCallbackRef4(onMountAutoFocusProp);
10563
- const onUnmountAutoFocus = useCallbackRef4(onUnmountAutoFocusProp);
10564
- const lastFocusedElementRef = React59.useRef(null);
10565
- const composedRefs = useComposedRefs3(forwardedRef, (node) => setContainer(node));
10566
- const focusScope = React59.useRef({
9097
+ const [container, setContainer] = React42.useState(null);
9098
+ const onMountAutoFocus = useCallbackRef3(onMountAutoFocusProp);
9099
+ const onUnmountAutoFocus = useCallbackRef3(onUnmountAutoFocusProp);
9100
+ const lastFocusedElementRef = React42.useRef(null);
9101
+ const composedRefs = useComposedRefs2(forwardedRef, (node) => setContainer(node));
9102
+ const focusScope = React42.useRef({
10567
9103
  paused: false,
10568
9104
  pause() {
10569
9105
  this.paused = true;
@@ -10572,7 +9108,7 @@ var FocusScope3 = React59.forwardRef((props, forwardedRef) => {
10572
9108
  this.paused = false;
10573
9109
  }
10574
9110
  }).current;
10575
- React59.useEffect(() => {
9111
+ React42.useEffect(() => {
10576
9112
  if (trapped) {
10577
9113
  let handleFocusIn2 = function(event) {
10578
9114
  if (focusScope.paused || !container) return;
@@ -10580,20 +9116,20 @@ var FocusScope3 = React59.forwardRef((props, forwardedRef) => {
10580
9116
  if (container.contains(target)) {
10581
9117
  lastFocusedElementRef.current = target;
10582
9118
  } else {
10583
- focus3(lastFocusedElementRef.current, { select: true });
9119
+ focus2(lastFocusedElementRef.current, { select: true });
10584
9120
  }
10585
9121
  }, handleFocusOut2 = function(event) {
10586
9122
  if (focusScope.paused || !container) return;
10587
9123
  const relatedTarget = event.relatedTarget;
10588
9124
  if (relatedTarget === null) return;
10589
9125
  if (!container.contains(relatedTarget)) {
10590
- focus3(lastFocusedElementRef.current, { select: true });
9126
+ focus2(lastFocusedElementRef.current, { select: true });
10591
9127
  }
10592
9128
  }, handleMutations2 = function(mutations) {
10593
9129
  const focusedElement = document.activeElement;
10594
9130
  if (focusedElement !== document.body) return;
10595
9131
  for (const mutation of mutations) {
10596
- if (mutation.removedNodes.length > 0) focus3(container);
9132
+ if (mutation.removedNodes.length > 0) focus2(container);
10597
9133
  }
10598
9134
  };
10599
9135
  var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;
@@ -10608,38 +9144,38 @@ var FocusScope3 = React59.forwardRef((props, forwardedRef) => {
10608
9144
  };
10609
9145
  }
10610
9146
  }, [trapped, container, focusScope.paused]);
10611
- React59.useEffect(() => {
9147
+ React42.useEffect(() => {
10612
9148
  if (container) {
10613
- focusScopesStack3.add(focusScope);
9149
+ focusScopesStack2.add(focusScope);
10614
9150
  const previouslyFocusedElement = document.activeElement;
10615
9151
  const hasFocusedCandidate = container.contains(previouslyFocusedElement);
10616
9152
  if (!hasFocusedCandidate) {
10617
- const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT3, EVENT_OPTIONS4);
10618
- container.addEventListener(AUTOFOCUS_ON_MOUNT3, onMountAutoFocus);
9153
+ const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT2, EVENT_OPTIONS3);
9154
+ container.addEventListener(AUTOFOCUS_ON_MOUNT2, onMountAutoFocus);
10619
9155
  container.dispatchEvent(mountEvent);
10620
9156
  if (!mountEvent.defaultPrevented) {
10621
- focusFirst5(removeLinks3(getTabbableCandidates3(container)), { select: true });
9157
+ focusFirst4(removeLinks2(getTabbableCandidates2(container)), { select: true });
10622
9158
  if (document.activeElement === previouslyFocusedElement) {
10623
- focus3(container);
9159
+ focus2(container);
10624
9160
  }
10625
9161
  }
10626
9162
  }
10627
9163
  return () => {
10628
- container.removeEventListener(AUTOFOCUS_ON_MOUNT3, onMountAutoFocus);
9164
+ container.removeEventListener(AUTOFOCUS_ON_MOUNT2, onMountAutoFocus);
10629
9165
  setTimeout(() => {
10630
- const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT3, EVENT_OPTIONS4);
10631
- container.addEventListener(AUTOFOCUS_ON_UNMOUNT3, onUnmountAutoFocus);
9166
+ const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT2, EVENT_OPTIONS3);
9167
+ container.addEventListener(AUTOFOCUS_ON_UNMOUNT2, onUnmountAutoFocus);
10632
9168
  container.dispatchEvent(unmountEvent);
10633
9169
  if (!unmountEvent.defaultPrevented) {
10634
- focus3(previouslyFocusedElement ?? document.body, { select: true });
9170
+ focus2(previouslyFocusedElement ?? document.body, { select: true });
10635
9171
  }
10636
- container.removeEventListener(AUTOFOCUS_ON_UNMOUNT3, onUnmountAutoFocus);
10637
- focusScopesStack3.remove(focusScope);
9172
+ container.removeEventListener(AUTOFOCUS_ON_UNMOUNT2, onUnmountAutoFocus);
9173
+ focusScopesStack2.remove(focusScope);
10638
9174
  }, 0);
10639
9175
  };
10640
9176
  }
10641
9177
  }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
10642
- const handleKeyDown = React59.useCallback(
9178
+ const handleKeyDown = React42.useCallback(
10643
9179
  (event) => {
10644
9180
  if (!loop && !trapped) return;
10645
9181
  if (focusScope.paused) return;
@@ -10647,40 +9183,40 @@ var FocusScope3 = React59.forwardRef((props, forwardedRef) => {
10647
9183
  const focusedElement = document.activeElement;
10648
9184
  if (isTabKey && focusedElement) {
10649
9185
  const container2 = event.currentTarget;
10650
- const [first, last] = getTabbableEdges3(container2);
9186
+ const [first, last] = getTabbableEdges2(container2);
10651
9187
  const hasTabbableElementsInside = first && last;
10652
9188
  if (!hasTabbableElementsInside) {
10653
9189
  if (focusedElement === container2) event.preventDefault();
10654
9190
  } else {
10655
9191
  if (!event.shiftKey && focusedElement === last) {
10656
9192
  event.preventDefault();
10657
- if (loop) focus3(first, { select: true });
9193
+ if (loop) focus2(first, { select: true });
10658
9194
  } else if (event.shiftKey && focusedElement === first) {
10659
9195
  event.preventDefault();
10660
- if (loop) focus3(last, { select: true });
9196
+ if (loop) focus2(last, { select: true });
10661
9197
  }
10662
9198
  }
10663
9199
  }
10664
9200
  },
10665
9201
  [loop, trapped, focusScope.paused]
10666
9202
  );
10667
- return /* @__PURE__ */ jsx30(Primitive3.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
9203
+ return /* @__PURE__ */ jsx24(Primitive2.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
10668
9204
  });
10669
- FocusScope3.displayName = FOCUS_SCOPE_NAME3;
10670
- function focusFirst5(candidates, { select = false } = {}) {
9205
+ FocusScope2.displayName = FOCUS_SCOPE_NAME2;
9206
+ function focusFirst4(candidates, { select = false } = {}) {
10671
9207
  const previouslyFocusedElement = document.activeElement;
10672
9208
  for (const candidate of candidates) {
10673
- focus3(candidate, { select });
9209
+ focus2(candidate, { select });
10674
9210
  if (document.activeElement !== previouslyFocusedElement) return;
10675
9211
  }
10676
9212
  }
10677
- function getTabbableEdges3(container) {
10678
- const candidates = getTabbableCandidates3(container);
10679
- const first = findVisible3(candidates, container);
10680
- const last = findVisible3(candidates.reverse(), container);
9213
+ function getTabbableEdges2(container) {
9214
+ const candidates = getTabbableCandidates2(container);
9215
+ const first = findVisible2(candidates, container);
9216
+ const last = findVisible2(candidates.reverse(), container);
10681
9217
  return [first, last];
10682
9218
  }
10683
- function getTabbableCandidates3(container) {
9219
+ function getTabbableCandidates2(container) {
10684
9220
  const nodes = [];
10685
9221
  const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
10686
9222
  acceptNode: (node) => {
@@ -10692,12 +9228,12 @@ function getTabbableCandidates3(container) {
10692
9228
  while (walker.nextNode()) nodes.push(walker.currentNode);
10693
9229
  return nodes;
10694
9230
  }
10695
- function findVisible3(elements, container) {
9231
+ function findVisible2(elements, container) {
10696
9232
  for (const element of elements) {
10697
- if (!isHidden3(element, { upTo: container })) return element;
9233
+ if (!isHidden2(element, { upTo: container })) return element;
10698
9234
  }
10699
9235
  }
10700
- function isHidden3(node, { upTo }) {
9236
+ function isHidden2(node, { upTo }) {
10701
9237
  if (getComputedStyle(node).visibility === "hidden") return true;
10702
9238
  while (node) {
10703
9239
  if (upTo !== void 0 && node === upTo) return false;
@@ -10706,19 +9242,19 @@ function isHidden3(node, { upTo }) {
10706
9242
  }
10707
9243
  return false;
10708
9244
  }
10709
- function isSelectableInput3(element) {
9245
+ function isSelectableInput2(element) {
10710
9246
  return element instanceof HTMLInputElement && "select" in element;
10711
9247
  }
10712
- function focus3(element, { select = false } = {}) {
9248
+ function focus2(element, { select = false } = {}) {
10713
9249
  if (element && element.focus) {
10714
9250
  const previouslyFocusedElement = document.activeElement;
10715
9251
  element.focus({ preventScroll: true });
10716
- if (element !== previouslyFocusedElement && isSelectableInput3(element) && select)
9252
+ if (element !== previouslyFocusedElement && isSelectableInput2(element) && select)
10717
9253
  element.select();
10718
9254
  }
10719
9255
  }
10720
- var focusScopesStack3 = createFocusScopesStack3();
10721
- function createFocusScopesStack3() {
9256
+ var focusScopesStack2 = createFocusScopesStack2();
9257
+ function createFocusScopesStack2() {
10722
9258
  let stack = [];
10723
9259
  return {
10724
9260
  add(focusScope) {
@@ -10726,16 +9262,16 @@ function createFocusScopesStack3() {
10726
9262
  if (focusScope !== activeFocusScope) {
10727
9263
  activeFocusScope?.pause();
10728
9264
  }
10729
- stack = arrayRemove3(stack, focusScope);
9265
+ stack = arrayRemove2(stack, focusScope);
10730
9266
  stack.unshift(focusScope);
10731
9267
  },
10732
9268
  remove(focusScope) {
10733
- stack = arrayRemove3(stack, focusScope);
9269
+ stack = arrayRemove2(stack, focusScope);
10734
9270
  stack[0]?.resume();
10735
9271
  }
10736
9272
  };
10737
9273
  }
10738
- function arrayRemove3(array, item) {
9274
+ function arrayRemove2(array, item) {
10739
9275
  const updatedArray = [...array];
10740
9276
  const index2 = updatedArray.indexOf(item);
10741
9277
  if (index2 !== -1) {
@@ -10743,40 +9279,40 @@ function arrayRemove3(array, item) {
10743
9279
  }
10744
9280
  return updatedArray;
10745
9281
  }
10746
- function removeLinks3(items) {
9282
+ function removeLinks2(items) {
10747
9283
  return items.filter((item) => item.tagName !== "A");
10748
9284
  }
10749
9285
 
10750
9286
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-id/dist/index.mjs
10751
- import * as React61 from "react";
9287
+ import * as React44 from "react";
10752
9288
 
10753
9289
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
10754
- import * as React60 from "react";
10755
- var useLayoutEffect23 = globalThis?.document ? React60.useLayoutEffect : () => {
9290
+ import * as React43 from "react";
9291
+ var useLayoutEffect22 = globalThis?.document ? React43.useLayoutEffect : () => {
10756
9292
  };
10757
9293
 
10758
9294
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-id/dist/index.mjs
10759
- var useReactId3 = React61[" useId ".trim().toString()] || (() => void 0);
10760
- var count6 = 0;
10761
- function useId3(deterministicId) {
10762
- const [id, setId] = React61.useState(useReactId3());
10763
- useLayoutEffect23(() => {
10764
- if (!deterministicId) setId((reactId) => reactId ?? String(count6++));
9295
+ var useReactId2 = React44[" useId ".trim().toString()] || (() => void 0);
9296
+ var count4 = 0;
9297
+ function useId2(deterministicId) {
9298
+ const [id, setId] = React44.useState(useReactId2());
9299
+ useLayoutEffect22(() => {
9300
+ if (!deterministicId) setId((reactId) => reactId ?? String(count4++));
10765
9301
  }, [deterministicId]);
10766
9302
  return deterministicId || (id ? `radix-${id}` : "");
10767
9303
  }
10768
9304
 
10769
9305
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.mjs
10770
- import * as React64 from "react";
9306
+ import * as React47 from "react";
10771
9307
 
10772
9308
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-arrow/dist/index.mjs
10773
- import * as React62 from "react";
10774
- import { jsx as jsx31 } from "react/jsx-runtime";
9309
+ import * as React45 from "react";
9310
+ import { jsx as jsx25 } from "react/jsx-runtime";
10775
9311
  var NAME2 = "Arrow";
10776
- var Arrow3 = React62.forwardRef((props, forwardedRef) => {
9312
+ var Arrow3 = React45.forwardRef((props, forwardedRef) => {
10777
9313
  const { children, width = 10, height = 5, ...arrowProps } = props;
10778
- return /* @__PURE__ */ jsx31(
10779
- Primitive3.svg,
9314
+ return /* @__PURE__ */ jsx25(
9315
+ Primitive2.svg,
10780
9316
  {
10781
9317
  ...arrowProps,
10782
9318
  ref: forwardedRef,
@@ -10784,7 +9320,7 @@ var Arrow3 = React62.forwardRef((props, forwardedRef) => {
10784
9320
  height,
10785
9321
  viewBox: "0 0 30 10",
10786
9322
  preserveAspectRatio: "none",
10787
- children: props.asChild ? children : /* @__PURE__ */ jsx31("polygon", { points: "0,0 30,0 15,10" })
9323
+ children: props.asChild ? children : /* @__PURE__ */ jsx25("polygon", { points: "0,0 30,0 15,10" })
10788
9324
  }
10789
9325
  );
10790
9326
  });
@@ -10792,10 +9328,10 @@ Arrow3.displayName = NAME2;
10792
9328
  var Root6 = Arrow3;
10793
9329
 
10794
9330
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-size/dist/index.mjs
10795
- import * as React63 from "react";
9331
+ import * as React46 from "react";
10796
9332
  function useSize2(element) {
10797
- const [size4, setSize] = React63.useState(void 0);
10798
- useLayoutEffect23(() => {
9333
+ const [size4, setSize] = React46.useState(void 0);
9334
+ useLayoutEffect22(() => {
10799
9335
  if (element) {
10800
9336
  setSize({ width: element.offsetWidth, height: element.offsetHeight });
10801
9337
  const resizeObserver = new ResizeObserver((entries) => {
@@ -10829,33 +9365,33 @@ function useSize2(element) {
10829
9365
  }
10830
9366
 
10831
9367
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.mjs
10832
- import { jsx as jsx32 } from "react/jsx-runtime";
9368
+ import { jsx as jsx26 } from "react/jsx-runtime";
10833
9369
  var POPPER_NAME2 = "Popper";
10834
- var [createPopperContext2, createPopperScope2] = createContextScope3(POPPER_NAME2);
9370
+ var [createPopperContext2, createPopperScope2] = createContextScope2(POPPER_NAME2);
10835
9371
  var [PopperProvider2, usePopperContext2] = createPopperContext2(POPPER_NAME2);
10836
9372
  var Popper2 = (props) => {
10837
9373
  const { __scopePopper, children } = props;
10838
- const [anchor, setAnchor] = React64.useState(null);
10839
- return /* @__PURE__ */ jsx32(PopperProvider2, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
9374
+ const [anchor, setAnchor] = React47.useState(null);
9375
+ return /* @__PURE__ */ jsx26(PopperProvider2, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
10840
9376
  };
10841
9377
  Popper2.displayName = POPPER_NAME2;
10842
9378
  var ANCHOR_NAME3 = "PopperAnchor";
10843
- var PopperAnchor2 = React64.forwardRef(
9379
+ var PopperAnchor2 = React47.forwardRef(
10844
9380
  (props, forwardedRef) => {
10845
9381
  const { __scopePopper, virtualRef, ...anchorProps } = props;
10846
9382
  const context = usePopperContext2(ANCHOR_NAME3, __scopePopper);
10847
- const ref = React64.useRef(null);
10848
- const composedRefs = useComposedRefs3(forwardedRef, ref);
10849
- React64.useEffect(() => {
9383
+ const ref = React47.useRef(null);
9384
+ const composedRefs = useComposedRefs2(forwardedRef, ref);
9385
+ React47.useEffect(() => {
10850
9386
  context.onAnchorChange(virtualRef?.current || ref.current);
10851
9387
  });
10852
- return virtualRef ? null : /* @__PURE__ */ jsx32(Primitive3.div, { ...anchorProps, ref: composedRefs });
9388
+ return virtualRef ? null : /* @__PURE__ */ jsx26(Primitive2.div, { ...anchorProps, ref: composedRefs });
10853
9389
  }
10854
9390
  );
10855
9391
  PopperAnchor2.displayName = ANCHOR_NAME3;
10856
- var CONTENT_NAME5 = "PopperContent";
10857
- var [PopperContentProvider2, useContentContext2] = createPopperContext2(CONTENT_NAME5);
10858
- var PopperContent2 = React64.forwardRef(
9392
+ var CONTENT_NAME4 = "PopperContent";
9393
+ var [PopperContentProvider2, useContentContext2] = createPopperContext2(CONTENT_NAME4);
9394
+ var PopperContent2 = React47.forwardRef(
10859
9395
  (props, forwardedRef) => {
10860
9396
  const {
10861
9397
  __scopePopper,
@@ -10873,10 +9409,10 @@ var PopperContent2 = React64.forwardRef(
10873
9409
  onPlaced,
10874
9410
  ...contentProps
10875
9411
  } = props;
10876
- const context = usePopperContext2(CONTENT_NAME5, __scopePopper);
10877
- const [content, setContent] = React64.useState(null);
10878
- const composedRefs = useComposedRefs3(forwardedRef, (node) => setContent(node));
10879
- const [arrow4, setArrow] = React64.useState(null);
9412
+ const context = usePopperContext2(CONTENT_NAME4, __scopePopper);
9413
+ const [content, setContent] = React47.useState(null);
9414
+ const composedRefs = useComposedRefs2(forwardedRef, (node) => setContent(node));
9415
+ const [arrow4, setArrow] = React47.useState(null);
10880
9416
  const arrowSize = useSize2(arrow4);
10881
9417
  const arrowWidth = arrowSize?.width ?? 0;
10882
9418
  const arrowHeight = arrowSize?.height ?? 0;
@@ -10929,8 +9465,8 @@ var PopperContent2 = React64.forwardRef(
10929
9465
  ]
10930
9466
  });
10931
9467
  const [placedSide, placedAlign] = getSideAndAlignFromPlacement2(placement);
10932
- const handlePlaced = useCallbackRef4(onPlaced);
10933
- useLayoutEffect23(() => {
9468
+ const handlePlaced = useCallbackRef3(onPlaced);
9469
+ useLayoutEffect22(() => {
10934
9470
  if (isPositioned) {
10935
9471
  handlePlaced?.();
10936
9472
  }
@@ -10938,11 +9474,11 @@ var PopperContent2 = React64.forwardRef(
10938
9474
  const arrowX = middlewareData.arrow?.x;
10939
9475
  const arrowY = middlewareData.arrow?.y;
10940
9476
  const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
10941
- const [contentZIndex, setContentZIndex] = React64.useState();
10942
- useLayoutEffect23(() => {
9477
+ const [contentZIndex, setContentZIndex] = React47.useState();
9478
+ useLayoutEffect22(() => {
10943
9479
  if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
10944
9480
  }, [content]);
10945
- return /* @__PURE__ */ jsx32(
9481
+ return /* @__PURE__ */ jsx26(
10946
9482
  "div",
10947
9483
  {
10948
9484
  ref: refs.setFloating,
@@ -10966,7 +9502,7 @@ var PopperContent2 = React64.forwardRef(
10966
9502
  }
10967
9503
  },
10968
9504
  dir: props.dir,
10969
- children: /* @__PURE__ */ jsx32(
9505
+ children: /* @__PURE__ */ jsx26(
10970
9506
  PopperContentProvider2,
10971
9507
  {
10972
9508
  scope: __scopePopper,
@@ -10975,8 +9511,8 @@ var PopperContent2 = React64.forwardRef(
10975
9511
  arrowX,
10976
9512
  arrowY,
10977
9513
  shouldHideArrow: cannotCenterArrow,
10978
- children: /* @__PURE__ */ jsx32(
10979
- Primitive3.div,
9514
+ children: /* @__PURE__ */ jsx26(
9515
+ Primitive2.div,
10980
9516
  {
10981
9517
  "data-side": placedSide,
10982
9518
  "data-align": placedAlign,
@@ -10996,7 +9532,7 @@ var PopperContent2 = React64.forwardRef(
10996
9532
  );
10997
9533
  }
10998
9534
  );
10999
- PopperContent2.displayName = CONTENT_NAME5;
9535
+ PopperContent2.displayName = CONTENT_NAME4;
11000
9536
  var ARROW_NAME4 = "PopperArrow";
11001
9537
  var OPPOSITE_SIDE2 = {
11002
9538
  top: "bottom",
@@ -11004,7 +9540,7 @@ var OPPOSITE_SIDE2 = {
11004
9540
  bottom: "top",
11005
9541
  left: "right"
11006
9542
  };
11007
- var PopperArrow3 = React64.forwardRef(function PopperArrow22(props, forwardedRef) {
9543
+ var PopperArrow3 = React47.forwardRef(function PopperArrow22(props, forwardedRef) {
11008
9544
  const { __scopePopper, ...arrowProps } = props;
11009
9545
  const contentContext = useContentContext2(ARROW_NAME4, __scopePopper);
11010
9546
  const baseSide = OPPOSITE_SIDE2[contentContext.placedSide];
@@ -11012,7 +9548,7 @@ var PopperArrow3 = React64.forwardRef(function PopperArrow22(props, forwardedRef
11012
9548
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
11013
9549
  // doesn't report size as we'd expect on SVG elements.
11014
9550
  // it reports their bounding box which is effectively the largest path inside the SVG.
11015
- /* @__PURE__ */ jsx32(
9551
+ /* @__PURE__ */ jsx26(
11016
9552
  "span",
11017
9553
  {
11018
9554
  ref: contentContext.onArrowChange,
@@ -11035,7 +9571,7 @@ var PopperArrow3 = React64.forwardRef(function PopperArrow22(props, forwardedRef
11035
9571
  }[contentContext.placedSide],
11036
9572
  visibility: contentContext.shouldHideArrow ? "hidden" : void 0
11037
9573
  },
11038
- children: /* @__PURE__ */ jsx32(
9574
+ children: /* @__PURE__ */ jsx26(
11039
9575
  Root6,
11040
9576
  {
11041
9577
  ...arrowProps,
@@ -11096,44 +9632,44 @@ var Content5 = PopperContent2;
11096
9632
  var Arrow4 = PopperArrow3;
11097
9633
 
11098
9634
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-portal/dist/index.mjs
11099
- import * as React65 from "react";
11100
- import ReactDOM7 from "react-dom";
11101
- import { jsx as jsx33 } from "react/jsx-runtime";
11102
- var PORTAL_NAME6 = "Portal";
11103
- var Portal5 = React65.forwardRef((props, forwardedRef) => {
9635
+ import * as React48 from "react";
9636
+ import ReactDOM5 from "react-dom";
9637
+ import { jsx as jsx27 } from "react/jsx-runtime";
9638
+ var PORTAL_NAME4 = "Portal";
9639
+ var Portal4 = React48.forwardRef((props, forwardedRef) => {
11104
9640
  const { container: containerProp, ...portalProps } = props;
11105
- const [mounted, setMounted] = React65.useState(false);
11106
- useLayoutEffect23(() => setMounted(true), []);
9641
+ const [mounted, setMounted] = React48.useState(false);
9642
+ useLayoutEffect22(() => setMounted(true), []);
11107
9643
  const container = containerProp || mounted && globalThis?.document?.body;
11108
- return container ? ReactDOM7.createPortal(/* @__PURE__ */ jsx33(Primitive3.div, { ...portalProps, ref: forwardedRef }), container) : null;
9644
+ return container ? ReactDOM5.createPortal(/* @__PURE__ */ jsx27(Primitive2.div, { ...portalProps, ref: forwardedRef }), container) : null;
11109
9645
  });
11110
- Portal5.displayName = PORTAL_NAME6;
9646
+ Portal4.displayName = PORTAL_NAME4;
11111
9647
 
11112
9648
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-presence/dist/index.mjs
11113
- import * as React212 from "react";
11114
- import * as React66 from "react";
11115
- function useStateMachine3(initialState, machine) {
11116
- return React66.useReducer((state, event) => {
9649
+ import * as React210 from "react";
9650
+ import * as React49 from "react";
9651
+ function useStateMachine2(initialState, machine) {
9652
+ return React49.useReducer((state, event) => {
11117
9653
  const nextState = machine[state][event];
11118
9654
  return nextState ?? state;
11119
9655
  }, initialState);
11120
9656
  }
11121
- var Presence3 = (props) => {
9657
+ var Presence2 = (props) => {
11122
9658
  const { present, children } = props;
11123
- const presence = usePresence3(present);
11124
- const child = typeof children === "function" ? children({ present: presence.isPresent }) : React212.Children.only(children);
11125
- const ref = useComposedRefs3(presence.ref, getElementRef3(child));
9659
+ const presence = usePresence2(present);
9660
+ const child = typeof children === "function" ? children({ present: presence.isPresent }) : React210.Children.only(children);
9661
+ const ref = useComposedRefs2(presence.ref, getElementRef2(child));
11126
9662
  const forceMount = typeof children === "function";
11127
- return forceMount || presence.isPresent ? React212.cloneElement(child, { ref }) : null;
9663
+ return forceMount || presence.isPresent ? React210.cloneElement(child, { ref }) : null;
11128
9664
  };
11129
- Presence3.displayName = "Presence";
11130
- function usePresence3(present) {
11131
- const [node, setNode] = React212.useState();
11132
- const stylesRef = React212.useRef(null);
11133
- const prevPresentRef = React212.useRef(present);
11134
- const prevAnimationNameRef = React212.useRef("none");
9665
+ Presence2.displayName = "Presence";
9666
+ function usePresence2(present) {
9667
+ const [node, setNode] = React210.useState();
9668
+ const stylesRef = React210.useRef(null);
9669
+ const prevPresentRef = React210.useRef(present);
9670
+ const prevAnimationNameRef = React210.useRef("none");
11135
9671
  const initialState = present ? "mounted" : "unmounted";
11136
- const [state, send] = useStateMachine3(initialState, {
9672
+ const [state, send] = useStateMachine2(initialState, {
11137
9673
  mounted: {
11138
9674
  UNMOUNT: "unmounted",
11139
9675
  ANIMATION_OUT: "unmountSuspended"
@@ -11146,17 +9682,17 @@ function usePresence3(present) {
11146
9682
  MOUNT: "mounted"
11147
9683
  }
11148
9684
  });
11149
- React212.useEffect(() => {
11150
- const currentAnimationName = getAnimationName3(stylesRef.current);
9685
+ React210.useEffect(() => {
9686
+ const currentAnimationName = getAnimationName2(stylesRef.current);
11151
9687
  prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
11152
9688
  }, [state]);
11153
- useLayoutEffect23(() => {
9689
+ useLayoutEffect22(() => {
11154
9690
  const styles = stylesRef.current;
11155
9691
  const wasPresent = prevPresentRef.current;
11156
9692
  const hasPresentChanged = wasPresent !== present;
11157
9693
  if (hasPresentChanged) {
11158
9694
  const prevAnimationName = prevAnimationNameRef.current;
11159
- const currentAnimationName = getAnimationName3(styles);
9695
+ const currentAnimationName = getAnimationName2(styles);
11160
9696
  if (present) {
11161
9697
  send("MOUNT");
11162
9698
  } else if (currentAnimationName === "none" || styles?.display === "none") {
@@ -11172,12 +9708,12 @@ function usePresence3(present) {
11172
9708
  prevPresentRef.current = present;
11173
9709
  }
11174
9710
  }, [present, send]);
11175
- useLayoutEffect23(() => {
9711
+ useLayoutEffect22(() => {
11176
9712
  if (node) {
11177
9713
  let timeoutId;
11178
9714
  const ownerWindow = node.ownerDocument.defaultView ?? window;
11179
9715
  const handleAnimationEnd = (event) => {
11180
- const currentAnimationName = getAnimationName3(stylesRef.current);
9716
+ const currentAnimationName = getAnimationName2(stylesRef.current);
11181
9717
  const isCurrentAnimation = currentAnimationName.includes(event.animationName);
11182
9718
  if (event.target === node && isCurrentAnimation) {
11183
9719
  send("ANIMATION_END");
@@ -11194,7 +9730,7 @@ function usePresence3(present) {
11194
9730
  };
11195
9731
  const handleAnimationStart = (event) => {
11196
9732
  if (event.target === node) {
11197
- prevAnimationNameRef.current = getAnimationName3(stylesRef.current);
9733
+ prevAnimationNameRef.current = getAnimationName2(stylesRef.current);
11198
9734
  }
11199
9735
  };
11200
9736
  node.addEventListener("animationstart", handleAnimationStart);
@@ -11212,16 +9748,16 @@ function usePresence3(present) {
11212
9748
  }, [node, send]);
11213
9749
  return {
11214
9750
  isPresent: ["mounted", "unmountSuspended"].includes(state),
11215
- ref: React212.useCallback((node2) => {
9751
+ ref: React210.useCallback((node2) => {
11216
9752
  stylesRef.current = node2 ? getComputedStyle(node2) : null;
11217
9753
  setNode(node2);
11218
9754
  }, [])
11219
9755
  };
11220
9756
  }
11221
- function getAnimationName3(styles) {
9757
+ function getAnimationName2(styles) {
11222
9758
  return styles?.animationName || "none";
11223
9759
  }
11224
- function getElementRef3(element) {
9760
+ function getElementRef2(element) {
11225
9761
  let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
11226
9762
  let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
11227
9763
  if (mayWarn) {
@@ -11236,28 +9772,28 @@ function getElementRef3(element) {
11236
9772
  }
11237
9773
 
11238
9774
  // ../../node_modules/@radix-ui/react-popover/dist/index.mjs
11239
- import { createSlot as createSlot4 } from "@radix-ui/react-slot";
9775
+ import { createSlot as createSlot2 } from "@radix-ui/react-slot";
11240
9776
 
11241
9777
  // ../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
11242
- import * as React67 from "react";
11243
- import * as React213 from "react";
11244
- var useInsertionEffect2 = React67[" useInsertionEffect ".trim().toString()] || useLayoutEffect23;
11245
- function useControllableState3({
9778
+ import * as React50 from "react";
9779
+ import * as React211 from "react";
9780
+ var useInsertionEffect = React50[" useInsertionEffect ".trim().toString()] || useLayoutEffect22;
9781
+ function useControllableState2({
11246
9782
  prop,
11247
9783
  defaultProp,
11248
9784
  onChange = () => {
11249
9785
  },
11250
9786
  caller
11251
9787
  }) {
11252
- const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState3({
9788
+ const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState2({
11253
9789
  defaultProp,
11254
9790
  onChange
11255
9791
  });
11256
9792
  const isControlled = prop !== void 0;
11257
9793
  const value = isControlled ? prop : uncontrolledProp;
11258
9794
  if (true) {
11259
- const isControlledRef = React67.useRef(prop !== void 0);
11260
- React67.useEffect(() => {
9795
+ const isControlledRef = React50.useRef(prop !== void 0);
9796
+ React50.useEffect(() => {
11261
9797
  const wasControlled = isControlledRef.current;
11262
9798
  if (wasControlled !== isControlled) {
11263
9799
  const from = wasControlled ? "controlled" : "uncontrolled";
@@ -11269,10 +9805,10 @@ function useControllableState3({
11269
9805
  isControlledRef.current = isControlled;
11270
9806
  }, [isControlled, caller]);
11271
9807
  }
11272
- const setValue = React67.useCallback(
9808
+ const setValue = React50.useCallback(
11273
9809
  (nextValue) => {
11274
9810
  if (isControlled) {
11275
- const value2 = isFunction2(nextValue) ? nextValue(prop) : nextValue;
9811
+ const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
11276
9812
  if (value2 !== prop) {
11277
9813
  onChangeRef.current?.(value2);
11278
9814
  }
@@ -11284,17 +9820,17 @@ function useControllableState3({
11284
9820
  );
11285
9821
  return [value, setValue];
11286
9822
  }
11287
- function useUncontrolledState3({
9823
+ function useUncontrolledState2({
11288
9824
  defaultProp,
11289
9825
  onChange
11290
9826
  }) {
11291
- const [value, setValue] = React67.useState(defaultProp);
11292
- const prevValueRef = React67.useRef(value);
11293
- const onChangeRef = React67.useRef(onChange);
11294
- useInsertionEffect2(() => {
9827
+ const [value, setValue] = React50.useState(defaultProp);
9828
+ const prevValueRef = React50.useRef(value);
9829
+ const onChangeRef = React50.useRef(onChange);
9830
+ useInsertionEffect(() => {
11295
9831
  onChangeRef.current = onChange;
11296
9832
  }, [onChange]);
11297
- React67.useEffect(() => {
9833
+ React50.useEffect(() => {
11298
9834
  if (prevValueRef.current !== value) {
11299
9835
  onChangeRef.current?.(value);
11300
9836
  prevValueRef.current = value;
@@ -11302,79 +9838,79 @@ function useUncontrolledState3({
11302
9838
  }, [value, prevValueRef]);
11303
9839
  return [value, setValue, onChangeRef];
11304
9840
  }
11305
- function isFunction2(value) {
9841
+ function isFunction(value) {
11306
9842
  return typeof value === "function";
11307
9843
  }
11308
- var SYNC_STATE2 = Symbol("RADIX:SYNC_STATE");
9844
+ var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
11309
9845
 
11310
9846
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/Combination.js
11311
- import * as React70 from "react";
9847
+ import * as React53 from "react";
11312
9848
 
11313
9849
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/UI.js
11314
- import * as React68 from "react";
9850
+ import * as React51 from "react";
11315
9851
 
11316
9852
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/medium.js
11317
- var effectCar3 = createSidecarMedium();
9853
+ var effectCar2 = createSidecarMedium();
11318
9854
 
11319
9855
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/UI.js
11320
- var nothing3 = function() {
9856
+ var nothing2 = function() {
11321
9857
  return;
11322
9858
  };
11323
- var RemoveScroll3 = React68.forwardRef(function(props, parentRef) {
11324
- var ref = React68.useRef(null);
11325
- var _a = React68.useState({
11326
- onScrollCapture: nothing3,
11327
- onWheelCapture: nothing3,
11328
- onTouchMoveCapture: nothing3
9859
+ var RemoveScroll2 = React51.forwardRef(function(props, parentRef) {
9860
+ var ref = React51.useRef(null);
9861
+ var _a = React51.useState({
9862
+ onScrollCapture: nothing2,
9863
+ onWheelCapture: nothing2,
9864
+ onTouchMoveCapture: nothing2
11329
9865
  }), callbacks = _a[0], setCallbacks = _a[1];
11330
9866
  var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
11331
9867
  var SideCar2 = sideCar;
11332
9868
  var containerRef = useMergeRefs([ref, parentRef]);
11333
9869
  var containerProps = __assign(__assign({}, rest), callbacks);
11334
- return React68.createElement(
11335
- React68.Fragment,
9870
+ return React51.createElement(
9871
+ React51.Fragment,
11336
9872
  null,
11337
- enabled && React68.createElement(SideCar2, { sideCar: effectCar3, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
11338
- forwardProps ? React68.cloneElement(React68.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React68.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
9873
+ enabled && React51.createElement(SideCar2, { sideCar: effectCar2, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
9874
+ forwardProps ? React51.cloneElement(React51.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React51.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
11339
9875
  );
11340
9876
  });
11341
- RemoveScroll3.defaultProps = {
9877
+ RemoveScroll2.defaultProps = {
11342
9878
  enabled: true,
11343
9879
  removeScrollBar: true,
11344
9880
  inert: false
11345
9881
  };
11346
- RemoveScroll3.classNames = {
9882
+ RemoveScroll2.classNames = {
11347
9883
  fullWidth: fullWidthClassName,
11348
9884
  zeroRight: zeroRightClassName
11349
9885
  };
11350
9886
 
11351
9887
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
11352
- import * as React69 from "react";
9888
+ import * as React52 from "react";
11353
9889
 
11354
9890
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
11355
- var passiveSupported3 = false;
9891
+ var passiveSupported2 = false;
11356
9892
  if (typeof window !== "undefined") {
11357
9893
  try {
11358
9894
  options = Object.defineProperty({}, "passive", {
11359
9895
  get: function() {
11360
- passiveSupported3 = true;
9896
+ passiveSupported2 = true;
11361
9897
  return true;
11362
9898
  }
11363
9899
  });
11364
9900
  window.addEventListener("test", options, options);
11365
9901
  window.removeEventListener("test", options, options);
11366
9902
  } catch (err) {
11367
- passiveSupported3 = false;
9903
+ passiveSupported2 = false;
11368
9904
  }
11369
9905
  }
11370
9906
  var options;
11371
- var nonPassive3 = passiveSupported3 ? { passive: false } : false;
9907
+ var nonPassive2 = passiveSupported2 ? { passive: false } : false;
11372
9908
 
11373
9909
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
11374
- var alwaysContainsScroll3 = function(node) {
9910
+ var alwaysContainsScroll2 = function(node) {
11375
9911
  return node.tagName === "TEXTAREA";
11376
9912
  };
11377
- var elementCanBeScrolled3 = function(node, overflow) {
9913
+ var elementCanBeScrolled2 = function(node, overflow) {
11378
9914
  if (!(node instanceof Element)) {
11379
9915
  return false;
11380
9916
  }
@@ -11382,25 +9918,25 @@ var elementCanBeScrolled3 = function(node, overflow) {
11382
9918
  return (
11383
9919
  // not-not-scrollable
11384
9920
  styles[overflow] !== "hidden" && // contains scroll inside self
11385
- !(styles.overflowY === styles.overflowX && !alwaysContainsScroll3(node) && styles[overflow] === "visible")
9921
+ !(styles.overflowY === styles.overflowX && !alwaysContainsScroll2(node) && styles[overflow] === "visible")
11386
9922
  );
11387
9923
  };
11388
- var elementCouldBeVScrolled3 = function(node) {
11389
- return elementCanBeScrolled3(node, "overflowY");
9924
+ var elementCouldBeVScrolled2 = function(node) {
9925
+ return elementCanBeScrolled2(node, "overflowY");
11390
9926
  };
11391
- var elementCouldBeHScrolled3 = function(node) {
11392
- return elementCanBeScrolled3(node, "overflowX");
9927
+ var elementCouldBeHScrolled2 = function(node) {
9928
+ return elementCanBeScrolled2(node, "overflowX");
11393
9929
  };
11394
- var locationCouldBeScrolled3 = function(axis, node) {
9930
+ var locationCouldBeScrolled2 = function(axis, node) {
11395
9931
  var ownerDocument = node.ownerDocument;
11396
9932
  var current = node;
11397
9933
  do {
11398
9934
  if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) {
11399
9935
  current = current.host;
11400
9936
  }
11401
- var isScrollable = elementCouldBeScrolled3(axis, current);
9937
+ var isScrollable = elementCouldBeScrolled2(axis, current);
11402
9938
  if (isScrollable) {
11403
- var _a = getScrollVariables3(axis, current), scrollHeight = _a[1], clientHeight = _a[2];
9939
+ var _a = getScrollVariables2(axis, current), scrollHeight = _a[1], clientHeight = _a[2];
11404
9940
  if (scrollHeight > clientHeight) {
11405
9941
  return true;
11406
9942
  }
@@ -11409,7 +9945,7 @@ var locationCouldBeScrolled3 = function(axis, node) {
11409
9945
  } while (current && current !== ownerDocument.body);
11410
9946
  return false;
11411
9947
  };
11412
- var getVScrollVariables3 = function(_a) {
9948
+ var getVScrollVariables2 = function(_a) {
11413
9949
  var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
11414
9950
  return [
11415
9951
  scrollTop,
@@ -11417,7 +9953,7 @@ var getVScrollVariables3 = function(_a) {
11417
9953
  clientHeight
11418
9954
  ];
11419
9955
  };
11420
- var getHScrollVariables3 = function(_a) {
9956
+ var getHScrollVariables2 = function(_a) {
11421
9957
  var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
11422
9958
  return [
11423
9959
  scrollLeft,
@@ -11425,17 +9961,17 @@ var getHScrollVariables3 = function(_a) {
11425
9961
  clientWidth
11426
9962
  ];
11427
9963
  };
11428
- var elementCouldBeScrolled3 = function(axis, node) {
11429
- return axis === "v" ? elementCouldBeVScrolled3(node) : elementCouldBeHScrolled3(node);
9964
+ var elementCouldBeScrolled2 = function(axis, node) {
9965
+ return axis === "v" ? elementCouldBeVScrolled2(node) : elementCouldBeHScrolled2(node);
11430
9966
  };
11431
- var getScrollVariables3 = function(axis, node) {
11432
- return axis === "v" ? getVScrollVariables3(node) : getHScrollVariables3(node);
9967
+ var getScrollVariables2 = function(axis, node) {
9968
+ return axis === "v" ? getVScrollVariables2(node) : getHScrollVariables2(node);
11433
9969
  };
11434
- var getDirectionFactor3 = function(axis, direction) {
9970
+ var getDirectionFactor2 = function(axis, direction) {
11435
9971
  return axis === "h" && direction === "rtl" ? -1 : 1;
11436
9972
  };
11437
- var handleScroll3 = function(axis, endTarget, event, sourceDelta, noOverscroll) {
11438
- var directionFactor = getDirectionFactor3(axis, window.getComputedStyle(endTarget).direction);
9973
+ var handleScroll2 = function(axis, endTarget, event, sourceDelta, noOverscroll) {
9974
+ var directionFactor = getDirectionFactor2(axis, window.getComputedStyle(endTarget).direction);
11439
9975
  var delta = directionFactor * sourceDelta;
11440
9976
  var target = event.target;
11441
9977
  var targetInLock = endTarget.contains(target);
@@ -11444,10 +9980,10 @@ var handleScroll3 = function(axis, endTarget, event, sourceDelta, noOverscroll)
11444
9980
  var availableScroll = 0;
11445
9981
  var availableScrollTop = 0;
11446
9982
  do {
11447
- var _a = getScrollVariables3(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
9983
+ var _a = getScrollVariables2(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
11448
9984
  var elementScroll = scroll_1 - capacity - directionFactor * position;
11449
9985
  if (position || elementScroll) {
11450
- if (elementCouldBeScrolled3(axis, target)) {
9986
+ if (elementCouldBeScrolled2(axis, target)) {
11451
9987
  availableScroll += elementScroll;
11452
9988
  availableScrollTop += position;
11453
9989
  }
@@ -11467,37 +10003,37 @@ var handleScroll3 = function(axis, endTarget, event, sourceDelta, noOverscroll)
11467
10003
  };
11468
10004
 
11469
10005
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
11470
- var getTouchXY3 = function(event) {
10006
+ var getTouchXY2 = function(event) {
11471
10007
  return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
11472
10008
  };
11473
- var getDeltaXY3 = function(event) {
10009
+ var getDeltaXY2 = function(event) {
11474
10010
  return [event.deltaX, event.deltaY];
11475
10011
  };
11476
- var extractRef3 = function(ref) {
10012
+ var extractRef2 = function(ref) {
11477
10013
  return ref && "current" in ref ? ref.current : ref;
11478
10014
  };
11479
- var deltaCompare3 = function(x, y) {
10015
+ var deltaCompare2 = function(x, y) {
11480
10016
  return x[0] === y[0] && x[1] === y[1];
11481
10017
  };
11482
- var generateStyle3 = function(id) {
10018
+ var generateStyle2 = function(id) {
11483
10019
  return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
11484
10020
  };
11485
- var idCounter3 = 0;
11486
- var lockStack3 = [];
11487
- function RemoveScrollSideCar3(props) {
11488
- var shouldPreventQueue = React69.useRef([]);
11489
- var touchStartRef = React69.useRef([0, 0]);
11490
- var activeAxis = React69.useRef();
11491
- var id = React69.useState(idCounter3++)[0];
11492
- var Style2 = React69.useState(styleSingleton)[0];
11493
- var lastProps = React69.useRef(props);
11494
- React69.useEffect(function() {
10021
+ var idCounter2 = 0;
10022
+ var lockStack2 = [];
10023
+ function RemoveScrollSideCar2(props) {
10024
+ var shouldPreventQueue = React52.useRef([]);
10025
+ var touchStartRef = React52.useRef([0, 0]);
10026
+ var activeAxis = React52.useRef();
10027
+ var id = React52.useState(idCounter2++)[0];
10028
+ var Style2 = React52.useState(styleSingleton)[0];
10029
+ var lastProps = React52.useRef(props);
10030
+ React52.useEffect(function() {
11495
10031
  lastProps.current = props;
11496
10032
  }, [props]);
11497
- React69.useEffect(function() {
10033
+ React52.useEffect(function() {
11498
10034
  if (props.inert) {
11499
10035
  document.body.classList.add("block-interactivity-".concat(id));
11500
- var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef3), true).filter(Boolean);
10036
+ var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef2), true).filter(Boolean);
11501
10037
  allow_1.forEach(function(el) {
11502
10038
  return el.classList.add("allow-interactivity-".concat(id));
11503
10039
  });
@@ -11510,11 +10046,11 @@ function RemoveScrollSideCar3(props) {
11510
10046
  }
11511
10047
  return;
11512
10048
  }, [props.inert, props.lockRef.current, props.shards]);
11513
- var shouldCancelEvent = React69.useCallback(function(event, parent) {
10049
+ var shouldCancelEvent = React52.useCallback(function(event, parent) {
11514
10050
  if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
11515
10051
  return !lastProps.current.allowPinchZoom;
11516
10052
  }
11517
- var touch = getTouchXY3(event);
10053
+ var touch = getTouchXY2(event);
11518
10054
  var touchStart = touchStartRef.current;
11519
10055
  var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
11520
10056
  var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
@@ -11524,7 +10060,7 @@ function RemoveScrollSideCar3(props) {
11524
10060
  if ("touches" in event && moveDirection === "h" && target.type === "range") {
11525
10061
  return false;
11526
10062
  }
11527
- var canBeScrolledInMainDirection = locationCouldBeScrolled3(moveDirection, target);
10063
+ var canBeScrolledInMainDirection = locationCouldBeScrolled2(moveDirection, target);
11528
10064
  if (!canBeScrolledInMainDirection) {
11529
10065
  return true;
11530
10066
  }
@@ -11532,7 +10068,7 @@ function RemoveScrollSideCar3(props) {
11532
10068
  currentAxis = moveDirection;
11533
10069
  } else {
11534
10070
  currentAxis = moveDirection === "v" ? "h" : "v";
11535
- canBeScrolledInMainDirection = locationCouldBeScrolled3(moveDirection, target);
10071
+ canBeScrolledInMainDirection = locationCouldBeScrolled2(moveDirection, target);
11536
10072
  }
11537
10073
  if (!canBeScrolledInMainDirection) {
11538
10074
  return false;
@@ -11544,16 +10080,16 @@ function RemoveScrollSideCar3(props) {
11544
10080
  return true;
11545
10081
  }
11546
10082
  var cancelingAxis = activeAxis.current || currentAxis;
11547
- return handleScroll3(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
10083
+ return handleScroll2(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
11548
10084
  }, []);
11549
- var shouldPrevent = React69.useCallback(function(_event) {
10085
+ var shouldPrevent = React52.useCallback(function(_event) {
11550
10086
  var event = _event;
11551
- if (!lockStack3.length || lockStack3[lockStack3.length - 1] !== Style2) {
10087
+ if (!lockStack2.length || lockStack2[lockStack2.length - 1] !== Style2) {
11552
10088
  return;
11553
10089
  }
11554
- var delta = "deltaY" in event ? getDeltaXY3(event) : getTouchXY3(event);
10090
+ var delta = "deltaY" in event ? getDeltaXY2(event) : getTouchXY2(event);
11555
10091
  var sourceEvent = shouldPreventQueue.current.filter(function(e) {
11556
- return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare3(e.delta, delta);
10092
+ return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare2(e.delta, delta);
11557
10093
  })[0];
11558
10094
  if (sourceEvent && sourceEvent.should) {
11559
10095
  if (event.cancelable) {
@@ -11562,7 +10098,7 @@ function RemoveScrollSideCar3(props) {
11562
10098
  return;
11563
10099
  }
11564
10100
  if (!sourceEvent) {
11565
- var shardNodes = (lastProps.current.shards || []).map(extractRef3).filter(Boolean).filter(function(node) {
10101
+ var shardNodes = (lastProps.current.shards || []).map(extractRef2).filter(Boolean).filter(function(node) {
11566
10102
  return node.contains(event.target);
11567
10103
  });
11568
10104
  var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
@@ -11573,8 +10109,8 @@ function RemoveScrollSideCar3(props) {
11573
10109
  }
11574
10110
  }
11575
10111
  }, []);
11576
- var shouldCancel = React69.useCallback(function(name, delta, target, should) {
11577
- var event = { name, delta, target, should, shadowParent: getOutermostShadowParent3(target) };
10112
+ var shouldCancel = React52.useCallback(function(name, delta, target, should) {
10113
+ var event = { name, delta, target, should, shadowParent: getOutermostShadowParent2(target) };
11578
10114
  shouldPreventQueue.current.push(event);
11579
10115
  setTimeout(function() {
11580
10116
  shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
@@ -11582,44 +10118,44 @@ function RemoveScrollSideCar3(props) {
11582
10118
  });
11583
10119
  }, 1);
11584
10120
  }, []);
11585
- var scrollTouchStart = React69.useCallback(function(event) {
11586
- touchStartRef.current = getTouchXY3(event);
10121
+ var scrollTouchStart = React52.useCallback(function(event) {
10122
+ touchStartRef.current = getTouchXY2(event);
11587
10123
  activeAxis.current = void 0;
11588
10124
  }, []);
11589
- var scrollWheel = React69.useCallback(function(event) {
11590
- shouldCancel(event.type, getDeltaXY3(event), event.target, shouldCancelEvent(event, props.lockRef.current));
10125
+ var scrollWheel = React52.useCallback(function(event) {
10126
+ shouldCancel(event.type, getDeltaXY2(event), event.target, shouldCancelEvent(event, props.lockRef.current));
11591
10127
  }, []);
11592
- var scrollTouchMove = React69.useCallback(function(event) {
11593
- shouldCancel(event.type, getTouchXY3(event), event.target, shouldCancelEvent(event, props.lockRef.current));
10128
+ var scrollTouchMove = React52.useCallback(function(event) {
10129
+ shouldCancel(event.type, getTouchXY2(event), event.target, shouldCancelEvent(event, props.lockRef.current));
11594
10130
  }, []);
11595
- React69.useEffect(function() {
11596
- lockStack3.push(Style2);
10131
+ React52.useEffect(function() {
10132
+ lockStack2.push(Style2);
11597
10133
  props.setCallbacks({
11598
10134
  onScrollCapture: scrollWheel,
11599
10135
  onWheelCapture: scrollWheel,
11600
10136
  onTouchMoveCapture: scrollTouchMove
11601
10137
  });
11602
- document.addEventListener("wheel", shouldPrevent, nonPassive3);
11603
- document.addEventListener("touchmove", shouldPrevent, nonPassive3);
11604
- document.addEventListener("touchstart", scrollTouchStart, nonPassive3);
10138
+ document.addEventListener("wheel", shouldPrevent, nonPassive2);
10139
+ document.addEventListener("touchmove", shouldPrevent, nonPassive2);
10140
+ document.addEventListener("touchstart", scrollTouchStart, nonPassive2);
11605
10141
  return function() {
11606
- lockStack3 = lockStack3.filter(function(inst) {
10142
+ lockStack2 = lockStack2.filter(function(inst) {
11607
10143
  return inst !== Style2;
11608
10144
  });
11609
- document.removeEventListener("wheel", shouldPrevent, nonPassive3);
11610
- document.removeEventListener("touchmove", shouldPrevent, nonPassive3);
11611
- document.removeEventListener("touchstart", scrollTouchStart, nonPassive3);
10145
+ document.removeEventListener("wheel", shouldPrevent, nonPassive2);
10146
+ document.removeEventListener("touchmove", shouldPrevent, nonPassive2);
10147
+ document.removeEventListener("touchstart", scrollTouchStart, nonPassive2);
11612
10148
  };
11613
10149
  }, []);
11614
10150
  var removeScrollBar = props.removeScrollBar, inert = props.inert;
11615
- return React69.createElement(
11616
- React69.Fragment,
10151
+ return React52.createElement(
10152
+ React52.Fragment,
11617
10153
  null,
11618
- inert ? React69.createElement(Style2, { styles: generateStyle3(id) }) : null,
11619
- removeScrollBar ? React69.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
10154
+ inert ? React52.createElement(Style2, { styles: generateStyle2(id) }) : null,
10155
+ removeScrollBar ? React52.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
11620
10156
  );
11621
10157
  }
11622
- function getOutermostShadowParent3(node) {
10158
+ function getOutermostShadowParent2(node) {
11623
10159
  var shadowParent = null;
11624
10160
  while (node !== null) {
11625
10161
  if (node instanceof ShadowRoot) {
@@ -11632,19 +10168,19 @@ function getOutermostShadowParent3(node) {
11632
10168
  }
11633
10169
 
11634
10170
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/sidecar.js
11635
- var sidecar_default3 = exportSidecar(effectCar3, RemoveScrollSideCar3);
10171
+ var sidecar_default2 = exportSidecar(effectCar2, RemoveScrollSideCar2);
11636
10172
 
11637
10173
  // ../../node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/Combination.js
11638
- var ReactRemoveScroll3 = React70.forwardRef(function(props, ref) {
11639
- return React70.createElement(RemoveScroll3, __assign({}, props, { ref, sideCar: sidecar_default3 }));
10174
+ var ReactRemoveScroll2 = React53.forwardRef(function(props, ref) {
10175
+ return React53.createElement(RemoveScroll2, __assign({}, props, { ref, sideCar: sidecar_default2 }));
11640
10176
  });
11641
- ReactRemoveScroll3.classNames = RemoveScroll3.classNames;
11642
- var Combination_default3 = ReactRemoveScroll3;
10177
+ ReactRemoveScroll2.classNames = RemoveScroll2.classNames;
10178
+ var Combination_default2 = ReactRemoveScroll2;
11643
10179
 
11644
10180
  // ../../node_modules/@radix-ui/react-popover/dist/index.mjs
11645
- import { jsx as jsx34 } from "react/jsx-runtime";
10181
+ import { jsx as jsx28 } from "react/jsx-runtime";
11646
10182
  var POPOVER_NAME = "Popover";
11647
- var [createPopoverContext, createPopoverScope] = createContextScope3(POPOVER_NAME, [
10183
+ var [createPopoverContext, createPopoverScope] = createContextScope2(POPOVER_NAME, [
11648
10184
  createPopperScope2
11649
10185
  ]);
11650
10186
  var usePopperScope2 = createPopperScope2();
@@ -11659,26 +10195,26 @@ var Popover = (props) => {
11659
10195
  modal = false
11660
10196
  } = props;
11661
10197
  const popperScope = usePopperScope2(__scopePopover);
11662
- const triggerRef = React71.useRef(null);
11663
- const [hasCustomAnchor, setHasCustomAnchor] = React71.useState(false);
11664
- const [open, setOpen] = useControllableState3({
10198
+ const triggerRef = React54.useRef(null);
10199
+ const [hasCustomAnchor, setHasCustomAnchor] = React54.useState(false);
10200
+ const [open, setOpen] = useControllableState2({
11665
10201
  prop: openProp,
11666
10202
  defaultProp: defaultOpen ?? false,
11667
10203
  onChange: onOpenChange,
11668
10204
  caller: POPOVER_NAME
11669
10205
  });
11670
- return /* @__PURE__ */ jsx34(Root23, { ...popperScope, children: /* @__PURE__ */ jsx34(
10206
+ return /* @__PURE__ */ jsx28(Root23, { ...popperScope, children: /* @__PURE__ */ jsx28(
11671
10207
  PopoverProvider,
11672
10208
  {
11673
10209
  scope: __scopePopover,
11674
- contentId: useId3(),
10210
+ contentId: useId2(),
11675
10211
  triggerRef,
11676
10212
  open,
11677
10213
  onOpenChange: setOpen,
11678
- onOpenToggle: React71.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
10214
+ onOpenToggle: React54.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
11679
10215
  hasCustomAnchor,
11680
- onCustomAnchorAdd: React71.useCallback(() => setHasCustomAnchor(true), []),
11681
- onCustomAnchorRemove: React71.useCallback(() => setHasCustomAnchor(false), []),
10216
+ onCustomAnchorAdd: React54.useCallback(() => setHasCustomAnchor(true), []),
10217
+ onCustomAnchorRemove: React54.useCallback(() => setHasCustomAnchor(false), []),
11682
10218
  modal,
11683
10219
  children
11684
10220
  }
@@ -11686,87 +10222,87 @@ var Popover = (props) => {
11686
10222
  };
11687
10223
  Popover.displayName = POPOVER_NAME;
11688
10224
  var ANCHOR_NAME4 = "PopoverAnchor";
11689
- var PopoverAnchor = React71.forwardRef(
10225
+ var PopoverAnchor = React54.forwardRef(
11690
10226
  (props, forwardedRef) => {
11691
10227
  const { __scopePopover, ...anchorProps } = props;
11692
10228
  const context = usePopoverContext(ANCHOR_NAME4, __scopePopover);
11693
10229
  const popperScope = usePopperScope2(__scopePopover);
11694
10230
  const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
11695
- React71.useEffect(() => {
10231
+ React54.useEffect(() => {
11696
10232
  onCustomAnchorAdd();
11697
10233
  return () => onCustomAnchorRemove();
11698
10234
  }, [onCustomAnchorAdd, onCustomAnchorRemove]);
11699
- return /* @__PURE__ */ jsx34(Anchor3, { ...popperScope, ...anchorProps, ref: forwardedRef });
10235
+ return /* @__PURE__ */ jsx28(Anchor3, { ...popperScope, ...anchorProps, ref: forwardedRef });
11700
10236
  }
11701
10237
  );
11702
10238
  PopoverAnchor.displayName = ANCHOR_NAME4;
11703
- var TRIGGER_NAME3 = "PopoverTrigger";
11704
- var PopoverTrigger = React71.forwardRef(
10239
+ var TRIGGER_NAME2 = "PopoverTrigger";
10240
+ var PopoverTrigger = React54.forwardRef(
11705
10241
  (props, forwardedRef) => {
11706
10242
  const { __scopePopover, ...triggerProps } = props;
11707
- const context = usePopoverContext(TRIGGER_NAME3, __scopePopover);
10243
+ const context = usePopoverContext(TRIGGER_NAME2, __scopePopover);
11708
10244
  const popperScope = usePopperScope2(__scopePopover);
11709
- const composedTriggerRef = useComposedRefs3(forwardedRef, context.triggerRef);
11710
- const trigger = /* @__PURE__ */ jsx34(
11711
- Primitive3.button,
10245
+ const composedTriggerRef = useComposedRefs2(forwardedRef, context.triggerRef);
10246
+ const trigger = /* @__PURE__ */ jsx28(
10247
+ Primitive2.button,
11712
10248
  {
11713
10249
  type: "button",
11714
10250
  "aria-haspopup": "dialog",
11715
10251
  "aria-expanded": context.open,
11716
10252
  "aria-controls": context.contentId,
11717
- "data-state": getState2(context.open),
10253
+ "data-state": getState(context.open),
11718
10254
  ...triggerProps,
11719
10255
  ref: composedTriggerRef,
11720
- onClick: composeEventHandlers3(props.onClick, context.onOpenToggle)
10256
+ onClick: composeEventHandlers2(props.onClick, context.onOpenToggle)
11721
10257
  }
11722
10258
  );
11723
- return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx34(Anchor3, { asChild: true, ...popperScope, children: trigger });
10259
+ return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx28(Anchor3, { asChild: true, ...popperScope, children: trigger });
11724
10260
  }
11725
10261
  );
11726
- PopoverTrigger.displayName = TRIGGER_NAME3;
11727
- var PORTAL_NAME7 = "PopoverPortal";
11728
- var [PortalProvider3, usePortalContext3] = createPopoverContext(PORTAL_NAME7, {
10262
+ PopoverTrigger.displayName = TRIGGER_NAME2;
10263
+ var PORTAL_NAME5 = "PopoverPortal";
10264
+ var [PortalProvider2, usePortalContext2] = createPopoverContext(PORTAL_NAME5, {
11729
10265
  forceMount: void 0
11730
10266
  });
11731
10267
  var PopoverPortal = (props) => {
11732
10268
  const { __scopePopover, forceMount, children, container } = props;
11733
- const context = usePopoverContext(PORTAL_NAME7, __scopePopover);
11734
- return /* @__PURE__ */ jsx34(PortalProvider3, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx34(Presence3, { present: forceMount || context.open, children: /* @__PURE__ */ jsx34(Portal5, { asChild: true, container, children }) }) });
10269
+ const context = usePopoverContext(PORTAL_NAME5, __scopePopover);
10270
+ return /* @__PURE__ */ jsx28(PortalProvider2, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx28(Presence2, { present: forceMount || context.open, children: /* @__PURE__ */ jsx28(Portal4, { asChild: true, container, children }) }) });
11735
10271
  };
11736
- PopoverPortal.displayName = PORTAL_NAME7;
11737
- var CONTENT_NAME6 = "PopoverContent";
11738
- var PopoverContent = React71.forwardRef(
10272
+ PopoverPortal.displayName = PORTAL_NAME5;
10273
+ var CONTENT_NAME5 = "PopoverContent";
10274
+ var PopoverContent = React54.forwardRef(
11739
10275
  (props, forwardedRef) => {
11740
- const portalContext = usePortalContext3(CONTENT_NAME6, props.__scopePopover);
10276
+ const portalContext = usePortalContext2(CONTENT_NAME5, props.__scopePopover);
11741
10277
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
11742
- const context = usePopoverContext(CONTENT_NAME6, props.__scopePopover);
11743
- return /* @__PURE__ */ jsx34(Presence3, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx34(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx34(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
10278
+ const context = usePopoverContext(CONTENT_NAME5, props.__scopePopover);
10279
+ return /* @__PURE__ */ jsx28(Presence2, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx28(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx28(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
11744
10280
  }
11745
10281
  );
11746
- PopoverContent.displayName = CONTENT_NAME6;
11747
- var Slot7 = createSlot4("PopoverContent.RemoveScroll");
11748
- var PopoverContentModal = React71.forwardRef(
10282
+ PopoverContent.displayName = CONTENT_NAME5;
10283
+ var Slot6 = createSlot2("PopoverContent.RemoveScroll");
10284
+ var PopoverContentModal = React54.forwardRef(
11749
10285
  (props, forwardedRef) => {
11750
- const context = usePopoverContext(CONTENT_NAME6, props.__scopePopover);
11751
- const contentRef = React71.useRef(null);
11752
- const composedRefs = useComposedRefs3(forwardedRef, contentRef);
11753
- const isRightClickOutsideRef = React71.useRef(false);
11754
- React71.useEffect(() => {
10286
+ const context = usePopoverContext(CONTENT_NAME5, props.__scopePopover);
10287
+ const contentRef = React54.useRef(null);
10288
+ const composedRefs = useComposedRefs2(forwardedRef, contentRef);
10289
+ const isRightClickOutsideRef = React54.useRef(false);
10290
+ React54.useEffect(() => {
11755
10291
  const content = contentRef.current;
11756
10292
  if (content) return hideOthers(content);
11757
10293
  }, []);
11758
- return /* @__PURE__ */ jsx34(Combination_default3, { as: Slot7, allowPinchZoom: true, children: /* @__PURE__ */ jsx34(
10294
+ return /* @__PURE__ */ jsx28(Combination_default2, { as: Slot6, allowPinchZoom: true, children: /* @__PURE__ */ jsx28(
11759
10295
  PopoverContentImpl,
11760
10296
  {
11761
10297
  ...props,
11762
10298
  ref: composedRefs,
11763
10299
  trapFocus: context.open,
11764
10300
  disableOutsidePointerEvents: true,
11765
- onCloseAutoFocus: composeEventHandlers3(props.onCloseAutoFocus, (event) => {
10301
+ onCloseAutoFocus: composeEventHandlers2(props.onCloseAutoFocus, (event) => {
11766
10302
  event.preventDefault();
11767
10303
  if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();
11768
10304
  }),
11769
- onPointerDownOutside: composeEventHandlers3(
10305
+ onPointerDownOutside: composeEventHandlers2(
11770
10306
  props.onPointerDownOutside,
11771
10307
  (event) => {
11772
10308
  const originalEvent = event.detail.originalEvent;
@@ -11776,7 +10312,7 @@ var PopoverContentModal = React71.forwardRef(
11776
10312
  },
11777
10313
  { checkForDefaultPrevented: false }
11778
10314
  ),
11779
- onFocusOutside: composeEventHandlers3(
10315
+ onFocusOutside: composeEventHandlers2(
11780
10316
  props.onFocusOutside,
11781
10317
  (event) => event.preventDefault(),
11782
10318
  { checkForDefaultPrevented: false }
@@ -11785,12 +10321,12 @@ var PopoverContentModal = React71.forwardRef(
11785
10321
  ) });
11786
10322
  }
11787
10323
  );
11788
- var PopoverContentNonModal = React71.forwardRef(
10324
+ var PopoverContentNonModal = React54.forwardRef(
11789
10325
  (props, forwardedRef) => {
11790
- const context = usePopoverContext(CONTENT_NAME6, props.__scopePopover);
11791
- const hasInteractedOutsideRef = React71.useRef(false);
11792
- const hasPointerDownOutsideRef = React71.useRef(false);
11793
- return /* @__PURE__ */ jsx34(
10326
+ const context = usePopoverContext(CONTENT_NAME5, props.__scopePopover);
10327
+ const hasInteractedOutsideRef = React54.useRef(false);
10328
+ const hasPointerDownOutsideRef = React54.useRef(false);
10329
+ return /* @__PURE__ */ jsx28(
11794
10330
  PopoverContentImpl,
11795
10331
  {
11796
10332
  ...props,
@@ -11825,7 +10361,7 @@ var PopoverContentNonModal = React71.forwardRef(
11825
10361
  );
11826
10362
  }
11827
10363
  );
11828
- var PopoverContentImpl = React71.forwardRef(
10364
+ var PopoverContentImpl = React54.forwardRef(
11829
10365
  (props, forwardedRef) => {
11830
10366
  const {
11831
10367
  __scopePopover,
@@ -11839,19 +10375,19 @@ var PopoverContentImpl = React71.forwardRef(
11839
10375
  onInteractOutside,
11840
10376
  ...contentProps
11841
10377
  } = props;
11842
- const context = usePopoverContext(CONTENT_NAME6, __scopePopover);
10378
+ const context = usePopoverContext(CONTENT_NAME5, __scopePopover);
11843
10379
  const popperScope = usePopperScope2(__scopePopover);
11844
- useFocusGuards3();
11845
- return /* @__PURE__ */ jsx34(
11846
- FocusScope3,
10380
+ useFocusGuards2();
10381
+ return /* @__PURE__ */ jsx28(
10382
+ FocusScope2,
11847
10383
  {
11848
10384
  asChild: true,
11849
10385
  loop: true,
11850
10386
  trapped: trapFocus,
11851
10387
  onMountAutoFocus: onOpenAutoFocus,
11852
10388
  onUnmountAutoFocus: onCloseAutoFocus,
11853
- children: /* @__PURE__ */ jsx34(
11854
- DismissableLayer3,
10389
+ children: /* @__PURE__ */ jsx28(
10390
+ DismissableLayer2,
11855
10391
  {
11856
10392
  asChild: true,
11857
10393
  disableOutsidePointerEvents,
@@ -11860,10 +10396,10 @@ var PopoverContentImpl = React71.forwardRef(
11860
10396
  onPointerDownOutside,
11861
10397
  onFocusOutside,
11862
10398
  onDismiss: () => context.onOpenChange(false),
11863
- children: /* @__PURE__ */ jsx34(
10399
+ children: /* @__PURE__ */ jsx28(
11864
10400
  Content5,
11865
10401
  {
11866
- "data-state": getState2(context.open),
10402
+ "data-state": getState(context.open),
11867
10403
  role: "dialog",
11868
10404
  id: context.contentId,
11869
10405
  ...popperScope,
@@ -11888,46 +10424,46 @@ var PopoverContentImpl = React71.forwardRef(
11888
10424
  );
11889
10425
  }
11890
10426
  );
11891
- var CLOSE_NAME2 = "PopoverClose";
11892
- var PopoverClose = React71.forwardRef(
10427
+ var CLOSE_NAME = "PopoverClose";
10428
+ var PopoverClose = React54.forwardRef(
11893
10429
  (props, forwardedRef) => {
11894
10430
  const { __scopePopover, ...closeProps } = props;
11895
- const context = usePopoverContext(CLOSE_NAME2, __scopePopover);
11896
- return /* @__PURE__ */ jsx34(
11897
- Primitive3.button,
10431
+ const context = usePopoverContext(CLOSE_NAME, __scopePopover);
10432
+ return /* @__PURE__ */ jsx28(
10433
+ Primitive2.button,
11898
10434
  {
11899
10435
  type: "button",
11900
10436
  ...closeProps,
11901
10437
  ref: forwardedRef,
11902
- onClick: composeEventHandlers3(props.onClick, () => context.onOpenChange(false))
10438
+ onClick: composeEventHandlers2(props.onClick, () => context.onOpenChange(false))
11903
10439
  }
11904
10440
  );
11905
10441
  }
11906
10442
  );
11907
- PopoverClose.displayName = CLOSE_NAME2;
10443
+ PopoverClose.displayName = CLOSE_NAME;
11908
10444
  var ARROW_NAME5 = "PopoverArrow";
11909
- var PopoverArrow = React71.forwardRef(
10445
+ var PopoverArrow = React54.forwardRef(
11910
10446
  (props, forwardedRef) => {
11911
10447
  const { __scopePopover, ...arrowProps } = props;
11912
10448
  const popperScope = usePopperScope2(__scopePopover);
11913
- return /* @__PURE__ */ jsx34(Arrow4, { ...popperScope, ...arrowProps, ref: forwardedRef });
10449
+ return /* @__PURE__ */ jsx28(Arrow4, { ...popperScope, ...arrowProps, ref: forwardedRef });
11914
10450
  }
11915
10451
  );
11916
10452
  PopoverArrow.displayName = ARROW_NAME5;
11917
- function getState2(open) {
10453
+ function getState(open) {
11918
10454
  return open ? "open" : "closed";
11919
10455
  }
11920
10456
  var Root24 = Popover;
11921
10457
  var Trigger4 = PopoverTrigger;
11922
- var Portal6 = PopoverPortal;
10458
+ var Portal5 = PopoverPortal;
11923
10459
  var Content23 = PopoverContent;
11924
10460
 
11925
10461
  // src/components/Popover/index.tsx
11926
- import * as React72 from "react";
11927
- import { jsx as jsx35 } from "react/jsx-runtime";
10462
+ import * as React55 from "react";
10463
+ import { jsx as jsx29 } from "react/jsx-runtime";
11928
10464
  var Popover2 = Root24;
11929
10465
  var PopoverTrigger2 = Trigger4;
11930
- var PopoverContent2 = React72.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx35(Portal6, { children: /* @__PURE__ */ jsx35(
10466
+ var PopoverContent2 = React55.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx29(Portal5, { children: /* @__PURE__ */ jsx29(
11931
10467
  Content23,
11932
10468
  {
11933
10469
  ref,
@@ -11943,15 +10479,15 @@ var PopoverContent2 = React72.forwardRef(({ className, align = "center", sideOff
11943
10479
  PopoverContent2.displayName = Content23.displayName;
11944
10480
 
11945
10481
  // src/components/Select/index.tsx
11946
- import * as React73 from "react";
10482
+ import * as React56 from "react";
11947
10483
  import * as SelectPrimitive from "@radix-ui/react-select";
11948
- import { jsx as jsx36, jsxs as jsxs10 } from "react/jsx-runtime";
10484
+ import { jsx as jsx30, jsxs as jsxs9 } from "react/jsx-runtime";
11949
10485
  var Select = SelectPrimitive.Root;
11950
10486
  var SelectGroup = SelectPrimitive.Group;
11951
10487
  var SelectValue = SelectPrimitive.Value;
11952
10488
  var SelectPortal = SelectPrimitive.Portal;
11953
10489
  var SelectViewport = SelectPrimitive.Viewport;
11954
- var SelectTrigger = React73.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
10490
+ var SelectTrigger = React56.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
11955
10491
  SelectPrimitive.Trigger,
11956
10492
  {
11957
10493
  ref,
@@ -11962,12 +10498,12 @@ var SelectTrigger = React73.forwardRef(({ className, children, ...props }, ref)
11962
10498
  ...props,
11963
10499
  children: [
11964
10500
  children,
11965
- /* @__PURE__ */ jsx36(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx36(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
10501
+ /* @__PURE__ */ jsx30(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx30(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
11966
10502
  ]
11967
10503
  }
11968
10504
  ));
11969
10505
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
11970
- var SelectScrollUpButton = React73.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
10506
+ var SelectScrollUpButton = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
11971
10507
  SelectPrimitive.ScrollUpButton,
11972
10508
  {
11973
10509
  ref,
@@ -11976,11 +10512,11 @@ var SelectScrollUpButton = React73.forwardRef(({ className, ...props }, ref) =>
11976
10512
  className
11977
10513
  ),
11978
10514
  ...props,
11979
- children: /* @__PURE__ */ jsx36(ChevronUp, { className: "cnc-h-4 cnc-w-4" })
10515
+ children: /* @__PURE__ */ jsx30(ChevronUp, { className: "cnc-h-4 cnc-w-4" })
11980
10516
  }
11981
10517
  ));
11982
10518
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
11983
- var SelectScrollDownButton = React73.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
10519
+ var SelectScrollDownButton = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
11984
10520
  SelectPrimitive.ScrollDownButton,
11985
10521
  {
11986
10522
  ref,
@@ -11989,11 +10525,11 @@ var SelectScrollDownButton = React73.forwardRef(({ className, ...props }, ref) =
11989
10525
  className
11990
10526
  ),
11991
10527
  ...props,
11992
- children: /* @__PURE__ */ jsx36(ChevronDown, { className: "cnc-h-4 cnc-w-4" })
10528
+ children: /* @__PURE__ */ jsx30(ChevronDown, { className: "cnc-h-4 cnc-w-4" })
11993
10529
  }
11994
10530
  ));
11995
10531
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
11996
- var SelectContent = React73.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx36(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs10(
10532
+ var SelectContent = React56.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx30(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs9(
11997
10533
  SelectPrimitive.Content,
11998
10534
  {
11999
10535
  ref,
@@ -12005,8 +10541,8 @@ var SelectContent = React73.forwardRef(({ className, children, position = "poppe
12005
10541
  position,
12006
10542
  ...props,
12007
10543
  children: [
12008
- /* @__PURE__ */ jsx36(SelectScrollUpButton, {}),
12009
- /* @__PURE__ */ jsx36(
10544
+ /* @__PURE__ */ jsx30(SelectScrollUpButton, {}),
10545
+ /* @__PURE__ */ jsx30(
12010
10546
  SelectPrimitive.Viewport,
12011
10547
  {
12012
10548
  className: cn(
@@ -12016,12 +10552,12 @@ var SelectContent = React73.forwardRef(({ className, children, position = "poppe
12016
10552
  children
12017
10553
  }
12018
10554
  ),
12019
- /* @__PURE__ */ jsx36(SelectScrollDownButton, {})
10555
+ /* @__PURE__ */ jsx30(SelectScrollDownButton, {})
12020
10556
  ]
12021
10557
  }
12022
10558
  ) }));
12023
10559
  SelectContent.displayName = SelectPrimitive.Content.displayName;
12024
- var SelectLabel = React73.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
10560
+ var SelectLabel = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
12025
10561
  SelectPrimitive.Label,
12026
10562
  {
12027
10563
  ref,
@@ -12033,7 +10569,7 @@ var SelectLabel = React73.forwardRef(({ className, ...props }, ref) => /* @__PUR
12033
10569
  }
12034
10570
  ));
12035
10571
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
12036
- var SelectItem = React73.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
10572
+ var SelectItem = React56.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
12037
10573
  SelectPrimitive.Item,
12038
10574
  {
12039
10575
  ref,
@@ -12043,13 +10579,13 @@ var SelectItem = React73.forwardRef(({ className, children, ...props }, ref) =>
12043
10579
  ),
12044
10580
  ...props,
12045
10581
  children: [
12046
- /* @__PURE__ */ jsx36("span", { className: "cnc-absolute cnc-left-2 cnc-flex cnc-h-3.5 cnc-w-3.5 cnc-cnc-items-center cnc-justify-center", children: /* @__PURE__ */ jsx36(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx36(Check, { className: "cnc-h-4 cnc-w-4" }) }) }),
12047
- /* @__PURE__ */ jsx36(SelectPrimitive.ItemText, { children })
10582
+ /* @__PURE__ */ jsx30("span", { className: "cnc-absolute cnc-left-2 cnc-flex cnc-h-3.5 cnc-w-3.5 cnc-cnc-items-center cnc-justify-center", children: /* @__PURE__ */ jsx30(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx30(Check, { className: "cnc-h-4 cnc-w-4" }) }) }),
10583
+ /* @__PURE__ */ jsx30(SelectPrimitive.ItemText, { children })
12048
10584
  ]
12049
10585
  }
12050
10586
  ));
12051
10587
  SelectItem.displayName = SelectPrimitive.Item.displayName;
12052
- var SelectSeparator = React73.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
10588
+ var SelectSeparator = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
12053
10589
  SelectPrimitive.Separator,
12054
10590
  {
12055
10591
  ref,
@@ -12060,13 +10596,13 @@ var SelectSeparator = React73.forwardRef(({ className, ...props }, ref) => /* @_
12060
10596
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
12061
10597
 
12062
10598
  // src/components/atoms/forms/input.tsx
12063
- import * as React74 from "react";
12064
- import { jsx as jsx37, jsxs as jsxs11 } from "react/jsx-runtime";
12065
- var Input = React74.forwardRef(
10599
+ import * as React57 from "react";
10600
+ import { jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
10601
+ var Input = React57.forwardRef(
12066
10602
  ({ className, type, id, label, ...props }, ref) => {
12067
10603
  const idGenerate = id ? id : label && `field-${Date.now()}-${Math.random() * 1e5}`;
12068
- return /* @__PURE__ */ jsxs11("div", { className: "cnc-w-full", children: [
12069
- label && /* @__PURE__ */ jsx37(
10604
+ return /* @__PURE__ */ jsxs10("div", { className: "cnc-w-full", children: [
10605
+ label && /* @__PURE__ */ jsx31(
12070
10606
  "label",
12071
10607
  {
12072
10608
  htmlFor: idGenerate,
@@ -12074,7 +10610,7 @@ var Input = React74.forwardRef(
12074
10610
  children: label
12075
10611
  }
12076
10612
  ),
12077
- /* @__PURE__ */ jsx37(
10613
+ /* @__PURE__ */ jsx31(
12078
10614
  "input",
12079
10615
  {
12080
10616
  type,
@@ -12096,14 +10632,14 @@ var Input = React74.forwardRef(
12096
10632
  Input.displayName = "Input";
12097
10633
 
12098
10634
  // src/components/atoms/forms/checkbox.tsx
12099
- import * as React75 from "react";
12100
- import { jsx as jsx38, jsxs as jsxs12 } from "react/jsx-runtime";
12101
- var Checkbox = React75.forwardRef(
10635
+ import * as React58 from "react";
10636
+ import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
10637
+ var Checkbox = React58.forwardRef(
12102
10638
  ({ className, id, label, ...props }, ref) => {
12103
10639
  console.log();
12104
10640
  const idGenerate = id ? id : label && `field-${Date.now()}-${Math.random() * 1e5}`;
12105
- return /* @__PURE__ */ jsxs12("div", { className: "cnc-w-full cnc-flex cnc-flex-row", children: [
12106
- /* @__PURE__ */ jsx38(
10641
+ return /* @__PURE__ */ jsxs11("div", { className: "cnc-w-full cnc-flex cnc-flex-row", children: [
10642
+ /* @__PURE__ */ jsx32(
12107
10643
  "input",
12108
10644
  {
12109
10645
  type: "checkbox",
@@ -12113,7 +10649,7 @@ var Checkbox = React75.forwardRef(
12113
10649
  ...props
12114
10650
  }
12115
10651
  ),
12116
- label && /* @__PURE__ */ jsx38(
10652
+ label && /* @__PURE__ */ jsx32(
12117
10653
  "label",
12118
10654
  {
12119
10655
  htmlFor: idGenerate,
@@ -12127,7 +10663,7 @@ var Checkbox = React75.forwardRef(
12127
10663
  Checkbox.displayName = "Checkbox";
12128
10664
 
12129
10665
  // src/components/atoms/display/badge.tsx
12130
- import { jsx as jsx39 } from "react/jsx-runtime";
10666
+ import { jsx as jsx33 } from "react/jsx-runtime";
12131
10667
  var Badge = ({
12132
10668
  variant = "default",
12133
10669
  rounded = true,
@@ -12149,7 +10685,7 @@ var Badge = ({
12149
10685
  md: "cnc-text-sm cnc-px-3 cnc-py-1",
12150
10686
  lg: "cnc-text-base cnc-px-4 cnc-py-2"
12151
10687
  };
12152
- return /* @__PURE__ */ jsx39(
10688
+ return /* @__PURE__ */ jsx33(
12153
10689
  "span",
12154
10690
  {
12155
10691
  className: cn(
@@ -12165,12 +10701,12 @@ var Badge = ({
12165
10701
  };
12166
10702
 
12167
10703
  // src/components/molecules/card.tsx
12168
- import { jsx as jsx40 } from "react/jsx-runtime";
10704
+ import { jsx as jsx34 } from "react/jsx-runtime";
12169
10705
  function Card({
12170
10706
  className,
12171
10707
  ...rest
12172
10708
  }) {
12173
- return /* @__PURE__ */ jsx40(
10709
+ return /* @__PURE__ */ jsx34(
12174
10710
  "div",
12175
10711
  {
12176
10712
  className: cn(
@@ -12185,7 +10721,7 @@ function CardHeader({
12185
10721
  className,
12186
10722
  ...rest
12187
10723
  }) {
12188
- return /* @__PURE__ */ jsx40("div", { className: "cnc-px-6 cnc-pt-6", children: /* @__PURE__ */ jsx40(
10724
+ return /* @__PURE__ */ jsx34("div", { className: "cnc-px-6 cnc-pt-6", children: /* @__PURE__ */ jsx34(
12189
10725
  "div",
12190
10726
  {
12191
10727
  className: cn(
@@ -12200,13 +10736,13 @@ function CardContent({
12200
10736
  className,
12201
10737
  ...rest
12202
10738
  }) {
12203
- return /* @__PURE__ */ jsx40("div", { className: cn("cnc-px-6 cnc-py-2", className), ...rest });
10739
+ return /* @__PURE__ */ jsx34("div", { className: cn("cnc-px-6 cnc-py-2", className), ...rest });
12204
10740
  }
12205
10741
  function CardFooter({
12206
10742
  className,
12207
10743
  ...rest
12208
10744
  }) {
12209
- return /* @__PURE__ */ jsx40(
10745
+ return /* @__PURE__ */ jsx34(
12210
10746
  "div",
12211
10747
  {
12212
10748
  className: cn(
@@ -12221,11 +10757,11 @@ function CardFooterItem({
12221
10757
  className,
12222
10758
  ...rest
12223
10759
  }) {
12224
- return /* @__PURE__ */ jsx40(
10760
+ return /* @__PURE__ */ jsx34(
12225
10761
  "div",
12226
10762
  {
12227
10763
  className: cn(
12228
- "cnc-molecule-card-item cnc-flex cnc-flex-1 cnc-items-center cnc-justify-center cnc-py-3 cnc-px-8",
10764
+ "cnc-molecule-card-item cnc-flex cnc-flex-1 cnc-items-center cnc-justify-center cnc-py-3",
12229
10765
  className
12230
10766
  ),
12231
10767
  ...rest
@@ -12235,7 +10771,7 @@ function CardFooterItem({
12235
10771
 
12236
10772
  // src/components/molecules/collapsible.tsx
12237
10773
  import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
12238
- import { jsx as jsx41 } from "react/jsx-runtime";
10774
+ import { jsx as jsx35 } from "react/jsx-runtime";
12239
10775
  var Collapsible = CollapsiblePrimitive.Root;
12240
10776
  var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
12241
10777
  var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
@@ -12243,16 +10779,16 @@ var AnimatedCollapsibleContent = ({
12243
10779
  className,
12244
10780
  ...rest
12245
10781
  }) => {
12246
- return /* @__PURE__ */ jsx41(CollapsibleContent2, { className: "cnc-collapsible-content", ...rest });
10782
+ return /* @__PURE__ */ jsx35(CollapsibleContent2, { className: "cnc-collapsible-content", ...rest });
12247
10783
  };
12248
10784
 
12249
10785
  // src/components/molecules/display/page-header.tsx
12250
- import { jsx as jsx42, jsxs as jsxs13 } from "react/jsx-runtime";
10786
+ import { jsx as jsx36, jsxs as jsxs12 } from "react/jsx-runtime";
12251
10787
  function PageHeader({
12252
10788
  children,
12253
10789
  className
12254
10790
  }) {
12255
- return /* @__PURE__ */ jsx42(
10791
+ return /* @__PURE__ */ jsx36(
12256
10792
  "header",
12257
10793
  {
12258
10794
  className: cn(
@@ -12267,7 +10803,7 @@ function PageHeaderTitleContent({
12267
10803
  children,
12268
10804
  className
12269
10805
  }) {
12270
- return /* @__PURE__ */ jsx42(
10806
+ return /* @__PURE__ */ jsx36(
12271
10807
  "div",
12272
10808
  {
12273
10809
  className: cn(
@@ -12284,16 +10820,16 @@ function PageHeaderTitle({
12284
10820
  titleAs = "h1"
12285
10821
  }) {
12286
10822
  const ComponentTitle = titleAs;
12287
- return /* @__PURE__ */ jsxs13("div", { children: [
12288
- /* @__PURE__ */ jsx42(ComponentTitle, { className: "cnc-text-2xl cnc-font-semibold cnc-text-brand-blue-600", children: title }),
12289
- description && /* @__PURE__ */ jsx42("p", { className: "cnc-text-sm cnc-text-brand-gray-500", children: description })
10823
+ return /* @__PURE__ */ jsxs12("div", { children: [
10824
+ /* @__PURE__ */ jsx36(ComponentTitle, { className: "cnc-text-2xl cnc-font-semibold cnc-text-brand-blue-600", children: title }),
10825
+ description && /* @__PURE__ */ jsx36("p", { className: "cnc-text-sm cnc-text-brand-gray-500", children: description })
12290
10826
  ] });
12291
10827
  }
12292
10828
  function PageHeaderActionsContainer({
12293
10829
  children,
12294
10830
  className
12295
10831
  }) {
12296
- return /* @__PURE__ */ jsx42(
10832
+ return /* @__PURE__ */ jsx36(
12297
10833
  "div",
12298
10834
  {
12299
10835
  className: cn(
@@ -12305,14 +10841,14 @@ function PageHeaderActionsContainer({
12305
10841
  );
12306
10842
  }
12307
10843
  function Title2({ title, as: Component = "h1" }) {
12308
- return /* @__PURE__ */ jsx42(Component, { className: "cnc-text-[24px] cnc-text-[#1F2C4D] cnc-font-bold cnc-mt-2 cnc-mb-4 text-center md:cnc-text-[28px] md:cnc-text-left", children: title });
10844
+ return /* @__PURE__ */ jsx36(Component, { className: "cnc-text-[24px] cnc-text-[#1F2C4D] cnc-font-bold cnc-mt-2 cnc-mb-4 text-center md:cnc-text-[28px] md:cnc-text-left", children: title });
12309
10845
  }
12310
10846
 
12311
10847
  // src/components/molecules/forms/combobox.tsx
12312
- import * as React80 from "react";
10848
+ import * as React63 from "react";
12313
10849
 
12314
10850
  // src/components/molecules/overlay/command.tsx
12315
- import * as React78 from "react";
10851
+ import * as React61 from "react";
12316
10852
 
12317
10853
  // ../../node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
12318
10854
  var U = 1;
@@ -12342,14 +10878,15 @@ function W(_, C, h) {
12342
10878
  }
12343
10879
 
12344
10880
  // ../../node_modules/cmdk/dist/index.mjs
10881
+ import * as w from "@radix-ui/react-dialog";
12345
10882
  import * as t from "react";
12346
10883
 
12347
10884
  // ../../node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.mjs
12348
- import * as React76 from "react";
12349
- import * as ReactDOM8 from "react-dom";
12350
- import { createSlot as createSlot5 } from "@radix-ui/react-slot";
12351
- import { jsx as jsx43 } from "react/jsx-runtime";
12352
- var NODES4 = [
10885
+ import * as React59 from "react";
10886
+ import * as ReactDOM6 from "react-dom";
10887
+ import { createSlot as createSlot3 } from "@radix-ui/react-slot";
10888
+ import { jsx as jsx37 } from "react/jsx-runtime";
10889
+ var NODES3 = [
12353
10890
  "a",
12354
10891
  "button",
12355
10892
  "div",
@@ -12368,34 +10905,34 @@ var NODES4 = [
12368
10905
  "svg",
12369
10906
  "ul"
12370
10907
  ];
12371
- var Primitive4 = NODES4.reduce((primitive, node) => {
12372
- const Slot8 = createSlot5(`Primitive.${node}`);
12373
- const Node2 = React76.forwardRef((props, forwardedRef) => {
10908
+ var Primitive3 = NODES3.reduce((primitive, node) => {
10909
+ const Slot7 = createSlot3(`Primitive.${node}`);
10910
+ const Node2 = React59.forwardRef((props, forwardedRef) => {
12374
10911
  const { asChild, ...primitiveProps } = props;
12375
- const Comp = asChild ? Slot8 : node;
10912
+ const Comp = asChild ? Slot7 : node;
12376
10913
  if (typeof window !== "undefined") {
12377
10914
  window[Symbol.for("radix-ui")] = true;
12378
10915
  }
12379
- return /* @__PURE__ */ jsx43(Comp, { ...primitiveProps, ref: forwardedRef });
10916
+ return /* @__PURE__ */ jsx37(Comp, { ...primitiveProps, ref: forwardedRef });
12380
10917
  });
12381
10918
  Node2.displayName = `Primitive.${node}`;
12382
10919
  return { ...primitive, [node]: Node2 };
12383
10920
  }, {});
12384
10921
 
12385
10922
  // ../../node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
12386
- import * as React77 from "react";
12387
- function setRef4(ref, value) {
10923
+ import * as React60 from "react";
10924
+ function setRef3(ref, value) {
12388
10925
  if (typeof ref === "function") {
12389
10926
  return ref(value);
12390
10927
  } else if (ref !== null && ref !== void 0) {
12391
10928
  ref.current = value;
12392
10929
  }
12393
10930
  }
12394
- function composeRefs4(...refs) {
10931
+ function composeRefs3(...refs) {
12395
10932
  return (node) => {
12396
10933
  let hasCleanup = false;
12397
10934
  const cleanups = refs.map((ref) => {
12398
- const cleanup = setRef4(ref, node);
10935
+ const cleanup = setRef3(ref, node);
12399
10936
  if (!hasCleanup && typeof cleanup == "function") {
12400
10937
  hasCleanup = true;
12401
10938
  }
@@ -12408,7 +10945,7 @@ function composeRefs4(...refs) {
12408
10945
  if (typeof cleanup == "function") {
12409
10946
  cleanup();
12410
10947
  } else {
12411
- setRef4(refs[i], null);
10948
+ setRef3(refs[i], null);
12412
10949
  }
12413
10950
  }
12414
10951
  };
@@ -12564,7 +11101,7 @@ var me = t.forwardRef((r2, o) => {
12564
11101
  }, se = (e) => {
12565
11102
  e.preventDefault(), e.metaKey ? X3(0) : e.altKey ? re(-1) : Q(-1);
12566
11103
  };
12567
- return t.createElement(Primitive4.div, { ref: o, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e) => {
11104
+ return t.createElement(Primitive3.div, { ref: o, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e) => {
12568
11105
  var s;
12569
11106
  (s = O.onKeyDown) == null || s.call(O, e);
12570
11107
  let a = e.nativeEvent.isComposing || e.keyCode === 229;
@@ -12626,23 +11163,23 @@ var he = t.forwardRef((r2, o) => {
12626
11163
  }
12627
11164
  if (!x) return null;
12628
11165
  let { disabled: A, value: ge, onSelect: j, forceMount: O, keywords: $2, ...q } = r2;
12629
- return t.createElement(Primitive4.div, { ref: composeRefs4(u2, o), ...q, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d.getDisablePointerSelection() ? void 0 : S, onClick: A ? void 0 : C }, r2.children);
11166
+ return t.createElement(Primitive3.div, { ref: composeRefs3(u2, o), ...q, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d.getDisablePointerSelection() ? void 0 : S, onClick: A ? void 0 : C }, r2.children);
12630
11167
  });
12631
11168
  var Ee = t.forwardRef((r2, o) => {
12632
11169
  let { heading: n, children: u2, forceMount: c, ...d } = r2, f = useId(), p2 = t.useRef(null), b = t.useRef(null), m2 = useId(), R = K2(), x = P((S) => c || R.filter() === false ? true : S.search ? S.filtered.groups.has(f) : true);
12633
11170
  k2(() => R.group(f), []), ve(f, p2, [r2.value, r2.heading, b]);
12634
11171
  let C = t.useMemo(() => ({ id: f, forceMount: c }), [c]);
12635
- return t.createElement(Primitive4.div, { ref: composeRefs4(p2, o), ...d, "cmdk-group": "", role: "presentation", hidden: x ? void 0 : true }, n && t.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": true, id: m2 }, n), B2(r2, (S) => t.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? m2 : void 0 }, t.createElement(fe.Provider, { value: C }, S))));
11172
+ return t.createElement(Primitive3.div, { ref: composeRefs3(p2, o), ...d, "cmdk-group": "", role: "presentation", hidden: x ? void 0 : true }, n && t.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": true, id: m2 }, n), B2(r2, (S) => t.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? m2 : void 0 }, t.createElement(fe.Provider, { value: C }, S))));
12636
11173
  });
12637
11174
  var ye = t.forwardRef((r2, o) => {
12638
11175
  let { alwaysRender: n, ...u2 } = r2, c = t.useRef(null), d = P((f) => !f.search);
12639
- return !n && !d ? null : t.createElement(Primitive4.div, { ref: composeRefs4(c, o), ...u2, "cmdk-separator": "", role: "separator" });
11176
+ return !n && !d ? null : t.createElement(Primitive3.div, { ref: composeRefs3(c, o), ...u2, "cmdk-separator": "", role: "separator" });
12640
11177
  });
12641
11178
  var Se = t.forwardRef((r2, o) => {
12642
11179
  let { onValueChange: n, ...u2 } = r2, c = r2.value != null, d = ee(), f = P((m2) => m2.search), p2 = P((m2) => m2.selectedItemId), b = K2();
12643
11180
  return t.useEffect(() => {
12644
11181
  r2.value != null && d.setState("search", r2.value);
12645
- }, [r2.value]), t.createElement(Primitive4.input, { ref: o, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": p2, id: b.inputId, type: "text", value: c ? r2.value : f, onChange: (m2) => {
11182
+ }, [r2.value]), t.createElement(Primitive3.input, { ref: o, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": p2, id: b.inputId, type: "text", value: c ? r2.value : f, onChange: (m2) => {
12646
11183
  c || d.setState("search", m2.target.value), n == null || n(m2.target.value);
12647
11184
  } });
12648
11185
  });
@@ -12660,16 +11197,16 @@ var Ce = t.forwardRef((r2, o) => {
12660
11197
  cancelAnimationFrame(x), C.unobserve(m2);
12661
11198
  };
12662
11199
  }
12663
- }, []), t.createElement(Primitive4.div, { ref: composeRefs4(d, o), ...c, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p2, "aria-label": u2, id: b.listId }, B2(r2, (m2) => t.createElement("div", { ref: composeRefs4(f, b.listInnerRef), "cmdk-list-sizer": "" }, m2)));
11200
+ }, []), t.createElement(Primitive3.div, { ref: composeRefs3(d, o), ...c, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p2, "aria-label": u2, id: b.listId }, B2(r2, (m2) => t.createElement("div", { ref: composeRefs3(f, b.listInnerRef), "cmdk-list-sizer": "" }, m2)));
12664
11201
  });
12665
11202
  var xe = t.forwardRef((r2, o) => {
12666
11203
  let { open: n, onOpenChange: u2, overlayClassName: c, contentClassName: d, container: f, ...p2 } = r2;
12667
- return t.createElement(Root4, { open: n, onOpenChange: u2 }, t.createElement(Portal4, { container: f }, t.createElement(Overlay, { "cmdk-overlay": "", className: c }), t.createElement(Content3, { "aria-label": r2.label, "cmdk-dialog": "", className: d }, t.createElement(me, { ref: o, ...p2 }))));
11204
+ return t.createElement(w.Root, { open: n, onOpenChange: u2 }, t.createElement(w.Portal, { container: f }, t.createElement(w.Overlay, { "cmdk-overlay": "", className: c }), t.createElement(w.Content, { "aria-label": r2.label, "cmdk-dialog": "", className: d }, t.createElement(me, { ref: o, ...p2 }))));
12668
11205
  });
12669
- var Ie = t.forwardRef((r2, o) => P((u2) => u2.filtered.count === 0) ? t.createElement(Primitive4.div, { ref: o, ...r2, "cmdk-empty": "", role: "presentation" }) : null);
11206
+ var Ie = t.forwardRef((r2, o) => P((u2) => u2.filtered.count === 0) ? t.createElement(Primitive3.div, { ref: o, ...r2, "cmdk-empty": "", role: "presentation" }) : null);
12670
11207
  var Pe = t.forwardRef((r2, o) => {
12671
11208
  let { progress: n, children: u2, label: c = "Loading...", ...d } = r2;
12672
- return t.createElement(Primitive4.div, { ref: o, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c }, B2(r2, (f) => t.createElement("div", { "aria-hidden": true }, f)));
11209
+ return t.createElement(Primitive3.div, { ref: o, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c }, B2(r2, (f) => t.createElement("div", { "aria-hidden": true }, f)));
12673
11210
  });
12674
11211
  var _e = Object.assign(me, { List: Ce, Item: he, Input: Se, Group: Ee, Separator: ye, Dialog: xe, Empty: Ie, Loading: Pe });
12675
11212
  function we(r2, o) {
@@ -12733,8 +11270,8 @@ function B2({ asChild: r2, children: o }, n) {
12733
11270
  var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
12734
11271
 
12735
11272
  // src/components/molecules/overlay/command.tsx
12736
- import { jsx as jsx44, jsxs as jsxs14 } from "react/jsx-runtime";
12737
- var Command = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
11273
+ import { jsx as jsx38, jsxs as jsxs13 } from "react/jsx-runtime";
11274
+ var Command = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
12738
11275
  _e,
12739
11276
  {
12740
11277
  ref,
@@ -12747,16 +11284,16 @@ var Command = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__
12747
11284
  ));
12748
11285
  Command.displayName = _e.displayName;
12749
11286
  var CommandDialog = ({ children, ...props }) => {
12750
- return /* @__PURE__ */ jsx44(Dialog2, { ...props, children: /* @__PURE__ */ jsx44(DialogContent2, { className: "cnc-overflow-hidden cnc-p-0", children: /* @__PURE__ */ jsx44(Command, { className: "cnc-[&_cmdk-group-heading]:cnc-px-2 cnc-[&_cmdk-group-heading]:cnc-font-medium cnc-[&_cmdk-group-heading]:cnc-text-muted-foreground cnc-[&_cmdk-group]:not([hidden])~[cmdk-group]:cnc-pt-0 cnc-[&_cmdk-group]:cnc-px-2 cnc-[&_cmdk-input-wrapper]_svg:cnc-h-5 cnc-[&_cmdk-input-wrapper]_svg:cnc-w-5 cnc-[&_cmdk-input]:cnc-h-12 cnc-[&_cmdk-item]:cnc-px-2 cnc-[&_cmdk-item]:cnc-py-3 cnc-[&_cmdk-item]_svg:cnc-h-5 cnc-[&_cmdk-item]_svg:cnc-w-5", children }) }) });
11287
+ return /* @__PURE__ */ jsx38(Dialog, { ...props, children: /* @__PURE__ */ jsx38(DialogContent, { className: "cnc-overflow-hidden cnc-p-0", children: /* @__PURE__ */ jsx38(Command, { className: "cnc-[&_cmdk-group-heading]:cnc-px-2 cnc-[&_cmdk-group-heading]:cnc-font-medium cnc-[&_cmdk-group-heading]:cnc-text-muted-foreground cnc-[&_cmdk-group]:not([hidden])~[cmdk-group]:cnc-pt-0 cnc-[&_cmdk-group]:cnc-px-2 cnc-[&_cmdk-input-wrapper]_svg:cnc-h-5 cnc-[&_cmdk-input-wrapper]_svg:cnc-w-5 cnc-[&_cmdk-input]:cnc-h-12 cnc-[&_cmdk-item]:cnc-px-2 cnc-[&_cmdk-item]:cnc-py-3 cnc-[&_cmdk-item]_svg:cnc-h-5 cnc-[&_cmdk-item]_svg:cnc-w-5", children }) }) });
12751
11288
  };
12752
- var CommandInput = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs14(
11289
+ var CommandInput = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs13(
12753
11290
  "div",
12754
11291
  {
12755
11292
  className: "cnc-flex cnc-items-center cnc-border-b cnc-px-3",
12756
11293
  "cmdk-input-wrapper": "",
12757
11294
  children: [
12758
- /* @__PURE__ */ jsx44(Search, { className: "cnc-mr-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" }),
12759
- /* @__PURE__ */ jsx44(
11295
+ /* @__PURE__ */ jsx38(Search, { className: "cnc-mr-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" }),
11296
+ /* @__PURE__ */ jsx38(
12760
11297
  _e.Input,
12761
11298
  {
12762
11299
  ref,
@@ -12771,7 +11308,7 @@ var CommandInput = React78.forwardRef(({ className, ...props }, ref) => /* @__PU
12771
11308
  }
12772
11309
  ));
12773
11310
  CommandInput.displayName = _e.Input.displayName;
12774
- var CommandList = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
11311
+ var CommandList = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
12775
11312
  _e.List,
12776
11313
  {
12777
11314
  ref,
@@ -12783,7 +11320,7 @@ var CommandList = React78.forwardRef(({ className, ...props }, ref) => /* @__PUR
12783
11320
  }
12784
11321
  ));
12785
11322
  CommandList.displayName = _e.List.displayName;
12786
- var CommandEmpty = React78.forwardRef((props, ref) => /* @__PURE__ */ jsx44(
11323
+ var CommandEmpty = React61.forwardRef((props, ref) => /* @__PURE__ */ jsx38(
12787
11324
  _e.Empty,
12788
11325
  {
12789
11326
  ref,
@@ -12792,7 +11329,7 @@ var CommandEmpty = React78.forwardRef((props, ref) => /* @__PURE__ */ jsx44(
12792
11329
  }
12793
11330
  ));
12794
11331
  CommandEmpty.displayName = _e.Empty.displayName;
12795
- var CommandGroup = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
11332
+ var CommandGroup = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
12796
11333
  _e.Group,
12797
11334
  {
12798
11335
  ref,
@@ -12804,7 +11341,7 @@ var CommandGroup = React78.forwardRef(({ className, ...props }, ref) => /* @__PU
12804
11341
  }
12805
11342
  ));
12806
11343
  CommandGroup.displayName = _e.Group.displayName;
12807
- var CommandSeparator = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
11344
+ var CommandSeparator = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
12808
11345
  _e.Separator,
12809
11346
  {
12810
11347
  ref,
@@ -12813,12 +11350,12 @@ var CommandSeparator = React78.forwardRef(({ className, ...props }, ref) => /* @
12813
11350
  }
12814
11351
  ));
12815
11352
  CommandSeparator.displayName = _e.Separator.displayName;
12816
- var CommandItem = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
11353
+ var CommandItem = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
12817
11354
  _e.Item,
12818
11355
  {
12819
11356
  ref,
12820
11357
  className: cn(
12821
- "cnc-relative cnc-flex cnc-cursor-default cnc-gap-2 cnc-select-none cnc-items-center cnc-rounded-sm cnc-px-2 cnc-py-1.5 cnc-text-sm cnc-outline-none data-[disabled=true]:cnc-pointer-events-none data-[disabled=true]:cnc-opacity-50 data-[selected=true]:cnc-bg-accent data-[selected=true]:cnc-text-accent-foreground [&_svg]:cnc-pointer-events-none [&_svg]:cnc-size-4 [&_svg]:cnc-shrink-0",
11358
+ "cnc-relative cnc-flex cnc-cursor-default cnc-gap-2 cnc-select-none cnc-items-center cnc-rounded-sm cnc-px-2 cnc-py-1.5 cnc-text-sm cnc-outline-none data-[disabled=true]:cnc-pointer-events-none data-[disabled=true]:cnc-opacity-50 data-[selected=true]:cnc-bg-accent data-[selected=true]:cnc-text-accent-foreground [&_svg]:cnc-size-4 [&_svg]:cnc-shrink-0",
12822
11359
  className
12823
11360
  ),
12824
11361
  ...props
@@ -12829,7 +11366,7 @@ var CommandShortcut = ({
12829
11366
  className,
12830
11367
  ...props
12831
11368
  }) => {
12832
- return /* @__PURE__ */ jsx44(
11369
+ return /* @__PURE__ */ jsx38(
12833
11370
  "span",
12834
11371
  {
12835
11372
  className: cn(
@@ -12843,11 +11380,11 @@ var CommandShortcut = ({
12843
11380
  CommandShortcut.displayName = "CommandShortcut";
12844
11381
 
12845
11382
  // src/components/molecules/overlay/popover.tsx
12846
- import * as React79 from "react";
12847
- import { jsx as jsx45 } from "react/jsx-runtime";
11383
+ import * as React62 from "react";
11384
+ import { jsx as jsx39 } from "react/jsx-runtime";
12848
11385
  var Popover3 = Root24;
12849
11386
  var PopoverTrigger3 = Trigger4;
12850
- var PopoverContent3 = React79.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx45(Portal6, { children: /* @__PURE__ */ jsx45(
11387
+ var PopoverContent3 = React62.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx39(Portal5, { children: /* @__PURE__ */ jsx39(
12851
11388
  Content23,
12852
11389
  {
12853
11390
  ref,
@@ -12863,7 +11400,7 @@ var PopoverContent3 = React79.forwardRef(({ className, align = "center", sideOff
12863
11400
  PopoverContent3.displayName = Content23.displayName;
12864
11401
 
12865
11402
  // src/components/molecules/forms/combobox.tsx
12866
- import { jsx as jsx46, jsxs as jsxs15 } from "react/jsx-runtime";
11403
+ import { jsx as jsx40, jsxs as jsxs14 } from "react/jsx-runtime";
12867
11404
  function Combobox({
12868
11405
  options,
12869
11406
  placeholder = "",
@@ -12871,9 +11408,9 @@ function Combobox({
12871
11408
  onChange,
12872
11409
  value = ""
12873
11410
  }) {
12874
- const [open, setOpen] = React80.useState(false);
12875
- return /* @__PURE__ */ jsxs15(Popover3, { open, onOpenChange: setOpen, children: [
12876
- /* @__PURE__ */ jsx46(PopoverTrigger3, { asChild: true, children: /* @__PURE__ */ jsxs15(
11411
+ const [open, setOpen] = React63.useState(false);
11412
+ return /* @__PURE__ */ jsxs14(Popover3, { open, onOpenChange: setOpen, children: [
11413
+ /* @__PURE__ */ jsx40(PopoverTrigger3, { asChild: true, children: /* @__PURE__ */ jsxs14(
12877
11414
  Button,
12878
11415
  {
12879
11416
  variant: "outline",
@@ -12881,21 +11418,21 @@ function Combobox({
12881
11418
  "aria-expanded": open,
12882
11419
  className: "cnc-w-full cnc-justify-between cnc-truncate ",
12883
11420
  children: [
12884
- /* @__PURE__ */ jsx46("div", { children: value ? options?.find((framework) => framework.value === value)?.label : placeholder }),
12885
- /* @__PURE__ */ jsx46(ChevronsUpDown, { className: "cnc-ml-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" })
11421
+ /* @__PURE__ */ jsx40("div", { children: value ? options?.find((framework) => framework.value === value)?.label : placeholder }),
11422
+ /* @__PURE__ */ jsx40(ChevronsUpDown, { className: "cnc-ml-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" })
12886
11423
  ]
12887
11424
  }
12888
11425
  ) }),
12889
- /* @__PURE__ */ jsx46(
11426
+ /* @__PURE__ */ jsx40(
12890
11427
  PopoverContent3,
12891
11428
  {
12892
11429
  align: "start",
12893
11430
  className: "cnc-w-[--radix-popover-trigger-width] cnc-p-0",
12894
- children: /* @__PURE__ */ jsxs15(Command, { children: [
12895
- /* @__PURE__ */ jsx46(CommandInput, { placeholder: command?.placeholder }),
12896
- /* @__PURE__ */ jsxs15(CommandList, { children: [
12897
- /* @__PURE__ */ jsx46(CommandEmpty, { children: command?.emptyMessage ?? "Nenhum item encontrado" }),
12898
- /* @__PURE__ */ jsx46(CommandGroup, { children: options?.map((option) => /* @__PURE__ */ jsxs15(
11431
+ children: /* @__PURE__ */ jsxs14(Command, { children: [
11432
+ /* @__PURE__ */ jsx40(CommandInput, { placeholder: command?.placeholder }),
11433
+ /* @__PURE__ */ jsxs14(CommandList, { children: [
11434
+ /* @__PURE__ */ jsx40(CommandEmpty, { children: command?.emptyMessage ?? "Nenhum item encontrado" }),
11435
+ /* @__PURE__ */ jsx40(CommandGroup, { children: options?.map((option) => /* @__PURE__ */ jsxs14(
12899
11436
  CommandItem,
12900
11437
  {
12901
11438
  value: option.value,
@@ -12906,7 +11443,7 @@ function Combobox({
12906
11443
  },
12907
11444
  keywords: [option.value, option.label],
12908
11445
  children: [
12909
- /* @__PURE__ */ jsx46(
11446
+ /* @__PURE__ */ jsx40(
12910
11447
  Check,
12911
11448
  {
12912
11449
  className: cn(
@@ -12949,16 +11486,16 @@ export {
12949
11486
  CommandList,
12950
11487
  CommandSeparator,
12951
11488
  CommandShortcut,
12952
- Dialog2 as Dialog,
12953
- DialogClose2 as DialogClose,
12954
- DialogContent2 as DialogContent,
12955
- DialogDescription2 as DialogDescription,
11489
+ Dialog,
11490
+ DialogClose,
11491
+ DialogContent,
11492
+ DialogDescription,
12956
11493
  DialogFooter,
12957
11494
  DialogHeader,
12958
- DialogOverlay2 as DialogOverlay,
12959
- DialogPortal2 as DialogPortal,
12960
- DialogTitle2 as DialogTitle,
12961
- DialogTrigger2 as DialogTrigger,
11495
+ DialogOverlay,
11496
+ DialogPortal,
11497
+ DialogTitle,
11498
+ DialogTrigger,
12962
11499
  DropdownMenu2 as DropdownMenu,
12963
11500
  DropdownMenuCheckboxItem2 as DropdownMenuCheckboxItem,
12964
11501
  DropdownMenuContent2 as DropdownMenuContent,