{
  "version": 3,
  "sources": ["../../src/modules/embed/components/embed-card/card/BusyCard.tsx", "../../src/modules/embed/components/embed-card/card/EmbedCardHeader.tsx", "../../src/modules/embed/contexts/EmbedPluginContext/Context.ts", "../../src/modules/embed/contexts/EmbedPluginContext/Provider.tsx", "../../src/modules/embed/contexts/EmbedPluginContext/use.ts", "../../src/modules/embed/contexts/PluginPropsContext/context.ts", "../../src/modules/embed/contexts/PluginPropsContext/Provider.tsx", "../../src/modules/embed/contexts/PluginPropsContext/use.ts", "../../src/modules/embed/contexts/RefreshPayloadContext/Provider.tsx", "../../src/modules/embed/contexts/RefreshPayloadContext/Context.ts", "../../src/modules/embed/contexts/RefreshPayloadContext/use.ts", "../../src/modules/embed/contexts/ResolvePayloadContext/Context.ts", "../../src/modules/embed/contexts/ResolvePayloadContext/Provider.tsx", "../../src/modules/embed/contexts/ResolvePayloadContext/use.ts", "../../src/modules/embed/contexts/ValidatePayloadContext/Provider.tsx", "../../src/modules/embed/contexts/ValidatePayloadContext/Context.ts", "../../src/modules/embed/contexts/ValidatePayloadContext/use.ts", "../../src/modules/embed/components/embed-card/menu/EmbedMenu.tsx", "../../src/modules/embed/components/embed-card/menu/JsonMenuItem.tsx", "../../src/modules/embed/components/embed-card/card/EmbedPluginCard.tsx", "../../src/modules/embed/components/controls/EmbedFormControl.tsx", "../../src/modules/embed/components/controls/ListModeSelect.tsx", "../../src/modules/embed/components/controls/RenderSelect.tsx", "../../src/modules/embed/components/embed-card/EmbedPluginCard.tsx", "../../src/modules/embed/components/EmbedPlugin.tsx", "../../src/modules/embed/components/EmbedResolver.tsx", "../../src/modules/embed/components/validation-alerts/ValidatePayload.tsx", "../../src/modules/embed/components/validation-alerts/ValidatePlugins.tsx", "../../src/modules/embed/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx", "../../src/modules/embed/components/embed-card/error-handling/EmbedErrorCard.tsx"],
  "sourcesContent": ["import { useBusyTiming } from '@ariestools/sdk-react/flexbox'\nimport type {\n  BusyCircularProgressProps,\n  BusyLinearProgressProps,\n  BusyVariant,\n} from '@ariestools/sdk-react/shared'\nimport {\n  BusyCircularProgress,\n  BusyLinearProgress,\n} from '@ariestools/sdk-react/shared'\nimport type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\n/** Props for {@link BusyCard}. */\nexport interface BusyCardProps extends CardProps {\n  busy?: boolean\n  busyMinimum?: number\n  busyVariant?: BusyVariant\n  busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\n/** Card that overlays a circular or linear busy indicator while loading. */\nexport const BusyCard: React.FC<PropsWithChildren<BusyCardProps>> = ({\n  busy,\n  busyMinimum = 500,\n  busyVariant = 'circular',\n  busyVariantProps,\n  children,\n  ...props\n}) => {\n  const internalBusy = useBusyTiming(busy, busyMinimum)\n  return (\n    <Card {...props}>\n      {children}\n      {busyVariant === 'circular' && internalBusy\n        ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} />\n        : null}\n      {busyVariant === 'linear' && internalBusy\n        ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} />\n        : null}\n    </Card>\n  )\n}\n", "import { isDefined } from '@ariestools/sdk'\nimport { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport { Refresh as RefreshIcon } from '@mui/icons-material'\nimport type { CardHeaderProps, Theme } from '@mui/material'\nimport {\n  Avatar, CardHeader, Chip,\n} from '@mui/material'\nimport React, { useState } from 'react'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts/index.ts'\nimport { EmbedMenu } from '../menu/index.ts'\n\n/** Card header for embed plugins with avatar, title, refresh chip, and menu actions. */\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n  const { refreshHuri, huri } = useResolvePayload()\n  const {\n    activePlugin, timestampLabel, hideElementsConfig,\n  } = useEmbedPluginState()\n  const {\n    hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions,\n  } = hideElementsConfig ?? {}\n  // this is temporary so that we can add the ability to get a timestamp via diviner later\n  const [timestamp] = useState(() => Date.now())\n  return (\n    <CardHeader\n      sx={{ flexWrap: 'wrap', rowGap: 1 }}\n      avatar={\n        hideAvatar\n          ? <></>\n          : (\n              <Avatar sx={{ bgcolor: (theme: Theme) => theme.vars.palette.primary.main }} aria-label={activePlugin?.name}>\n                {activePlugin?.name?.charAt(0)}\n              </Avatar>\n            )\n      }\n      action={(\n        <FlexRow\n          sx={{\n            flexWrap: 'wrap',\n            columnGap: 0.5,\n          }}\n        >\n          {isDefined(timestamp) && !Number.isNaN(timestamp)\n            ? hideTimestamp && hideRefreshButton\n              ? ''\n              : (\n                  <Chip\n                    avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n                    clickable={hideRefreshButton ? false : true}\n                    onClick={refreshHuri}\n                    label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n                  />\n                )\n\n            : null}\n          {/* Huri case is valid as long as the only menu item is JSON */}\n          {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n        </FlexRow>\n      )}\n      title={hideTitle ? '' : activePlugin?.name}\n    />\n  )\n}\n", "import { createContextEx } from '@ariestools/sdk-react/shared'\n\nimport type { EmbedPluginState } from './State.ts'\n\n/** React context holding embed plugin selection and display configuration. */\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n", "import { useResetState } from '@ariestools/sdk-react/hooks'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo } from 'react'\n\nimport { EmbedPluginContext } from './Context.ts'\nimport type { EmbedPluginBase } from './State.ts'\n\n/** Props for {@link EmbedPluginProvider}. */\nexport type EmbedPluginProviderProps = EmbedPluginBase\n\n/** Exposes passed embed plugin props and active plugin selection via context. */\nexport const EmbedPluginProvider: React.FC<PropsWithChildren<EmbedPluginProviderProps>> = ({\n  children,\n  refreshTitle,\n  timestampLabel,\n  hideElementsConfig,\n  plugins,\n  embedPluginConfig,\n}) => {\n  const [activePlugin, setActivePlugin] = useResetState(plugins ? plugins[0] : undefined)\n\n  const value = useMemo(() => ({\n    activePlugin,\n    embedPluginConfig,\n    hideElementsConfig,\n    provided: true as const,\n    refreshTitle,\n    setActivePlugin,\n    timestampLabel,\n  }), [activePlugin, embedPluginConfig, hideElementsConfig, refreshTitle, setActivePlugin, timestampLabel])\n\n  return (\n    <EmbedPluginContext\n      value={value}\n    >\n      {children}\n    </EmbedPluginContext>\n  )\n}\n", "import { useContextEx } from '@ariestools/sdk-react/shared'\n\nimport { EmbedPluginContext } from './Context.ts'\n\n/** Returns embed plugin context state, requiring a provider. */\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n", "import { createContextEx } from '@ariestools/sdk-react/shared'\n\nimport type { PluginPropsState } from './state.ts'\n\n/** React context holding props forwarded to payload render plugins. */\nexport const PluginPropsContext = createContextEx<PluginPropsState>()\n", "import type { PropsWithChildren } from 'react'\nimport React, {\n  useEffect, useMemo, useState,\n} from 'react'\n\nimport { PluginPropsContext } from './context.ts'\nimport type { PluginProps, PluginPropsState } from './state.ts'\n\n/** Props for {@link PluginPropsProvider}. */\nexport interface PluginPropsProviderProps extends PropsWithChildren {\n  pluginProps?: PluginProps\n}\n\n/** Provides plugin props to be forwarded to the active payload render plugin. */\nexport const PluginPropsProvider: React.FC<PluginPropsProviderProps> = ({ children, pluginProps: pluginPropsProp }) => {\n  const [pluginProps, setPluginProps] = useState<PluginProps | undefined>(pluginPropsProp)\n\n  useEffect(() => {\n    // needs to be in useEffect since we are in a provider\n    // eslint-disable-next-line react-hooks/set-state-in-effect, react-x/set-state-in-effect\n    setPluginProps(pluginPropsProp)\n  }, [pluginPropsProp])\n\n  const value: PluginPropsState = useMemo(() => ({\n    pluginProps,\n    provided: true as const,\n  }), [pluginProps])\n\n  return (\n    <PluginPropsContext value={value}>\n      {children}\n    </PluginPropsContext>\n  )\n}\n", "import { useContextEx } from '@ariestools/sdk-react/shared'\n\nimport { PluginPropsContext } from './context.ts'\n\n/** Returns plugin props context state, optionally requiring a provider. */\nexport const usePluginProps = (required = false) => useContextEx(PluginPropsContext, 'PluginProps', required)\n", "import type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { RefreshPayloadContext } from './Context.ts'\n\n/** Props for {@link RefreshPayloadProvider}. */\nexport interface RefreshPayloadProps {\n  onRefresh?: () => void\n  refreshPayload?: boolean\n}\n\n/** Provides payload refresh flag and callback for embed resolution flows. */\nexport const RefreshPayloadProvider: React.FC<PropsWithChildren<RefreshPayloadProps>> = ({\n  children, onRefresh, refreshPayload,\n}) => {\n  const [localRefreshPayload, setLocalRefreshPayload] = useState(refreshPayload)\n\n  const value = useMemo(() => ({\n    onRefresh, provided: true as const, refreshPayload: localRefreshPayload, setRefreshPayload: setLocalRefreshPayload,\n  }), [onRefresh, localRefreshPayload])\n\n  return (\n    <RefreshPayloadContext value={value}>\n      {children}\n    </RefreshPayloadContext>\n  )\n}\n", "import { createContextEx } from '@ariestools/sdk-react/shared'\n\nimport type { RefreshPayloadState } from './State.ts'\n\n/** React context holding embed payload refresh state and callbacks. */\nexport const RefreshPayloadContext = createContextEx<RefreshPayloadState>()\n", "import { useContextEx } from '@ariestools/sdk-react/shared'\n\nimport { RefreshPayloadContext } from './Context.ts'\n\n/** Returns payload refresh context state, requiring a provider. */\nexport const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', true)\n", "import { createContextEx } from '@ariestools/sdk-react/shared'\n\nimport type { ResolvePayloadState } from './State.ts'\n\n/** React context holding resolved embed payload and HURI resolution status. */\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n", "import { delay, isDefined } from '@ariestools/sdk'\nimport { useAsyncEffect } from '@ariestools/sdk-react/async-effect'\nimport type {\n  ModuleError, Payload, WithSources,\n} from '@xyo-network/sdk'\nimport { Huri, ModuleErrorSchema } from '@xyo-network/sdk'\nimport type { PropsWithChildren } from 'react'\nimport React, {\n  useCallback, useEffect, useMemo, useState,\n} from 'react'\n\nimport { useRefreshPayload } from '../RefreshPayloadContext/index.ts'\nimport { ResolvePayloadContext } from './Context.ts'\nimport type { ResolvePayloadState } from './State.ts'\n\n/** Props for {@link ResolvePayloadProvider}. */\nexport type ResolvePayloadProviderProps = Omit<ResolvePayloadState, 'provided'>\n\n/** Resolves a HURI or accepts a payload and exposes the result via context. */\nexport const ResolvePayloadProvider: React.FC<PropsWithChildren<ResolvePayloadProviderProps>> = ({ children, huriPayload }) => {\n  const [payload, setPayload] = useState<Payload>()\n  const [huri, setHuri] = useState<string>()\n  const {\n    refreshPayload, setRefreshPayload, onRefresh,\n  } = useRefreshPayload()\n\n  useEffect(() => {\n    if (typeof huriPayload === 'string') {\n      // eslint-disable-next-line react-hooks/set-state-in-effect, react-x/set-state-in-effect\n      setHuri(huriPayload)\n    } else if (typeof huriPayload === 'object') {\n      // eslint-disable-next-line react-x/set-state-in-effect\n      setPayload(huriPayload)\n      setRefreshPayload?.(true)\n    }\n    // eslint-disable-next-line react-hooks/exhaustive-deps, react-x/exhaustive-deps\n  }, [huriPayload])\n\n  const [notFound, setNotFound] = useState<boolean>()\n  const [huriError, setHuriError] = useState<WithSources<ModuleError>>()\n\n  useAsyncEffect(\n    async (mounted) => {\n      if (isDefined(huri) && !refreshPayload) {\n        try {\n          const huriInstance = new Huri(huri)\n          // eslint-disable-next-line react-web-api/no-leaked-fetch -- Huri.fetch does not support AbortSignal; mounted() guards stale writes\n          const result = await huriInstance.fetch()\n          // ensure the busy state can stay for a moment to avoid flashing too quickly\n          await delay(500)\n\n          if (mounted()) {\n            setNotFound(result === null)\n            setPayload(result)\n            setRefreshPayload?.(true)\n          }\n        } catch (e) {\n          const error = e as Error\n          setHuriError({\n            message: error.message, schema: ModuleErrorSchema, $sources: [],\n          })\n        }\n      }\n    },\n    [huri, payload, refreshPayload, setRefreshPayload],\n  )\n\n  const refreshHuri = useCallback(() => {\n    onRefresh?.()\n    if (isDefined(huri)) {\n      setRefreshPayload?.(false)\n    }\n  }, [onRefresh, huri, setRefreshPayload])\n\n  const value = useMemo(() => ({\n    huri, huriError, notFound, payload, provided: true as const, refreshHuri, setPayload,\n  }), [huri, huriError, notFound, payload, refreshHuri, setPayload])\n\n  return (\n    <ResolvePayloadContext value={value}>\n      {children}\n    </ResolvePayloadContext>\n  )\n}\n", "import { useContextEx } from '@ariestools/sdk-react/shared'\n\nimport { ResolvePayloadContext } from './Context.ts'\n\n/** Returns resolved payload context state, requiring a provider. */\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n", "import { useAsyncEffect } from '@ariestools/sdk-react/async-effect'\nimport { Chip } from '@mui/material'\nimport type { SchemaNameToValidatorMap } from '@xyo-network/sdk'\nimport { SchemaCache } from '@xyo-network/sdk'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { useResolvePayload } from '../ResolvePayloadContext/index.ts'\nimport { ValidatePayloadContext } from './Context.ts'\n\n/** Props for {@link ValidatePayloadProvider}. */\nexport interface ValidatePayloadProviderProps {\n  /** Opt-in flag to validate payloads for the plugin(s). */\n  enabled?: boolean\n}\n\n/** Optionally validates the resolved payload schema and exposes the result via context. */\nexport const ValidatePayloadProvider: React.FC<PropsWithChildren<ValidatePayloadProviderProps>> = ({ children, enabled = false }) => {\n  const { payload } = useResolvePayload()\n  const [initialized, setInitialized] = useState(false)\n  // eslint-disable-next-line react-x/use-state\n  const [valid, _setValid] = useState<boolean>()\n\n  useAsyncEffect(\n    async () => {\n      if (payload && enabled) {\n        await SchemaCache.instance.get(payload.schema)\n\n        const possibleKnownSchema = payload.schema as keyof SchemaNameToValidatorMap\n\n        if (SchemaCache.instance.validators[possibleKnownSchema]) {\n          const _validator = SchemaCache.instance.validators[possibleKnownSchema]\n          // TODO: Fix Types\n          // setValid(validator?.(payload))\n        }\n        setInitialized(true)\n      }\n    },\n    [payload, enabled],\n  )\n\n  const value = useMemo(() => ({\n    enabled, provided: true as const, schema: payload?.schema, validPayload: valid,\n  }), [enabled, payload?.schema, valid])\n\n  return (\n    <ValidatePayloadContext value={value}>\n      {enabled\n        ? <>{initialized ? children : <Chip label=\"Validating Payload...\" />}</>\n        : children}\n    </ValidatePayloadContext>\n  )\n}\n", "import { createContextEx } from '@ariestools/sdk-react/shared'\n\nimport type { ValidatePayloadState } from './State.ts'\n\n/** React context holding payload schema validation status for embeds. */\nexport const ValidatePayloadContext = createContextEx<ValidatePayloadState>()\n", "import { useContextEx } from '@ariestools/sdk-react/shared'\n\nimport { ValidatePayloadContext } from './Context.ts'\n\n/** Returns payload validation context state, requiring a provider. */\nexport const useValidatePayload = () => useContextEx(ValidatePayloadContext, 'ValidateSchema', true)\n", "import { MoreVert as MoreVertIcon } from '@mui/icons-material'\nimport type { IconButtonProps } from '@mui/material'\nimport { IconButton, Menu } from '@mui/material'\nimport React, { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem.tsx'\n\n/** Overflow menu button for embed card actions such as viewing source JSON. */\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n  const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n  const open = Boolean(anchorEl)\n\n  const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n    setAnchorEl(event.currentTarget)\n  }\n  const handleClose = () => {\n    setAnchorEl(null)\n  }\n\n  return (\n    <>\n      <IconButton onClick={handleClick} {...props}>\n        <MoreVertIcon />\n      </IconButton>\n      <Menu\n        anchorEl={anchorEl}\n        open={open}\n        onClose={handleClose}\n        slotProps={{\n          paper: { variant: 'elevation' },\n          list: { dense: true },\n        }}\n      >\n        <JsonMenuItem />\n      </Menu>\n    </>\n  )\n}\n", "import { isDefined } from '@ariestools/sdk'\nimport { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport type { MenuItemProps } from '@mui/material'\nimport {\n  ListItemIcon, ListItemText, MenuItem,\n} from '@mui/material'\nimport React from 'react'\n\nimport { useResolvePayload } from '../../../contexts/index.ts'\n\n/** Menu item that opens the resolved HURI payload JSON in a new tab. */\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n  const { huri } = useResolvePayload()\n\n  return (\n    <>\n      {isDefined(huri)\n        ? (\n            <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n              <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n              <ListItemIcon sx={{ justifyContent: 'end' }}>\n                <OpenInNewIcon sx={{ fontSize: 'small' }} />\n              </ListItemIcon>\n            </MenuItem>\n          )\n        : null}\n    </>\n  )\n}\n", "import { isTruthy } from '@ariestools/sdk'\nimport { FlexGrowRow } from '@ariestools/sdk-react/flexbox'\nimport { CardContent } from '@mui/material'\nimport React from 'react'\n\nimport { useListMode } from '#shared'\n\nimport {\n  useEmbedPluginState, usePluginProps, useResolvePayload,\n} from '../../../contexts/index.ts'\nimport { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls/index.ts'\nimport type { BusyCardProps } from './BusyCard.tsx'\nimport { BusyCard } from './BusyCard.tsx'\nimport { EmbedCardHeader } from './EmbedCardHeader.tsx'\n\n/** Card UI that renders the active embed plugin with optional plugin and list mode selectors. */\nexport const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {\n  const { payload } = useResolvePayload()\n  const {\n    activePlugin: ActivePlugin, plugins, hideElementsConfig,\n  } = useEmbedPluginState()\n  const { listMode } = useListMode()\n  const { pluginProps } = usePluginProps()\n  const supportsListMode = isTruthy(ActivePlugin?.components?.box?.listModes?.length) ? true : false\n\n  return (\n    <BusyCard {...props}>\n      {hideElementsConfig?.hideCardHeader ? null : <EmbedCardHeader />}\n      {/* Only show the row if the children are present */}\n      {(plugins && plugins.length > 0) || supportsListMode\n        ? (\n            <FlexGrowRow\n              sx={{\n                columnGap: 2,\n                rowGap: 2,\n                flexWrap: 'wrap',\n                pb: 1,\n              }}\n            >\n              {plugins && plugins.length > 1\n                ? <EmbedRenderSelect />\n                : null}\n              {supportsListMode\n                ? <ListModeSelectFormControl />\n                : null}\n            </FlexGrowRow>\n          )\n        : null}\n      <CardContent sx={{ height: '100%' }}>\n        {ActivePlugin\n          ? <ActivePlugin.components.box.detailsBox payload={payload} {...pluginProps} {...(supportsListMode && { listMode })} />\n          : null}\n      </CardContent>\n    </BusyCard>\n  )\n}\n", "import type { FormControlProps } from '@mui/material'\nimport { FormControl, InputLabel } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\ninterface EmbedFormControlProps extends FormControlProps {\n  formId?: string\n  formLabel?: string\n}\n\n/** Labeled form control wrapper used by embed plugin select controls. */\nexport const EmbedFormControl: React.FC<PropsWithChildren<EmbedFormControlProps>> = ({\n  formId, formLabel, children, ...props\n}) => {\n  return (\n    <FormControl {...props}>\n      <InputLabel id={formId}>{formLabel}</InputLabel>\n      {children}\n    </FormControl>\n  )\n}\n", "import type { SelectExProps } from '@ariestools/sdk-react/select'\nimport { SelectEx } from '@ariestools/sdk-react/select'\nimport { MenuItem } from '@mui/material'\nimport React from 'react'\n\nimport type { ListMode } from '#shared'\nimport { useListMode } from '#shared'\n\nimport { EmbedFormControl } from './EmbedFormControl.tsx'\n\nconst listModeSelectId = 'listmode-select-id'\nconst listModeSelectLabel = 'List Mode'\n\n/** Select control for choosing the embed payload list display mode. */\nexport const ListModeSelect: React.FC<SelectExProps<ListMode>> = (props) => {\n  const { listMode, setListMode } = useListMode()\n\n  return (\n    <SelectEx<ListMode>\n      value={(listMode ?? 'default')}\n      onChange={(event) => {\n        setListMode?.(event.target.value)\n      }}\n      {...props}\n    >\n      <MenuItem key=\"default\" value=\"default\">\n        Default\n      </MenuItem>\n      <MenuItem key=\"table\" value=\"table\">\n        Table\n      </MenuItem>\n      <MenuItem key=\"grid\" value=\"grid\">\n        Grid\n      </MenuItem>\n    </SelectEx>\n  )\n}\n\n/** Form-control-wrapped list mode select for embed plugin toolbars. */\nexport const ListModeSelectFormControl: React.FC<SelectExProps<ListMode>> = (props) => {\n  return (\n    <EmbedFormControl formId={listModeSelectId} formLabel={listModeSelectLabel}>\n      <ListModeSelect size=\"small\" label={listModeSelectLabel} labelId={listModeSelectId} {...props} />\n    </EmbedFormControl>\n  )\n}\n", "import type { SelectExProps } from '@ariestools/sdk-react/select'\nimport { SelectEx } from '@ariestools/sdk-react/select'\nimport { MenuItem } from '@mui/material'\nimport React from 'react'\n\nimport { useEmbedPluginState } from '../../contexts/index.ts'\nimport { EmbedFormControl } from './EmbedFormControl.tsx'\n\nconst renderSelectId = 'render-select-id'\nconst renderSelectLabel = 'Renderer'\n\n/** Select control for choosing which payload render plugin is active. */\nexport const EmbedRenderSelect: React.FC<SelectExProps<string>> = (props) => {\n  const {\n    activePlugin, setActivePlugin, plugins,\n  } = useEmbedPluginState()\n  return (\n    <EmbedFormControl formId={renderSelectId} formLabel={renderSelectLabel}>\n      <SelectEx size=\"small\" value={activePlugin?.name} {...props}>\n        {plugins?.map(plugin => (\n          <MenuItem value={plugin.name} key={plugin.name} onClick={() => setActivePlugin?.(plugin)}>\n            {plugin.name}\n          </MenuItem>\n        ))}\n      </SelectEx>\n    </EmbedFormControl>\n  )\n}\n", "import { useTheme } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts/index.ts'\nimport type { EmbedPluginProps } from '../../types/index.ts'\nimport { EmbedPluginInner } from '../EmbedPlugin.tsx'\nimport type { BusyCardProps } from './card/index.ts'\nimport { EmbedPluginCard } from './card/index.ts'\nimport { EmbedCardApiErrorRenderer } from './error-handling/index.ts'\n\n/** Props for {@link ApiEmbedPluginCard}. */\nexport interface EmbedPluginCardProps extends PropsWithChildren, EmbedPluginProps, BusyCardProps {}\n\n/** Full embed plugin card with providers, resolution, and busy-state rendering. */\nexport const ApiEmbedPluginCard: React.FC<EmbedPluginCardProps> = ({ children, ...props }) => {\n  const {\n    validateSchema,\n    plugins = [],\n    huriPayload,\n    refreshTitle = '',\n    timestampLabel = 'Data From',\n    hideElementsConfig,\n    embedPluginConfig,\n    onRefresh,\n    ...busyCardProps\n  } = props\n\n  return (\n    <EmbedPluginInner\n      {...{\n        embedPluginConfig,\n        hideElementsConfig,\n        huriPayload,\n        onRefresh,\n        plugins,\n        refreshTitle,\n        timestampLabel,\n        validateSchema,\n      }}\n    >\n      <EmbedPluginCardInner {...busyCardProps} />\n      {children}\n    </EmbedPluginInner>\n  )\n}\n\n/** Renders the resolved embed plugin card with API error handling and busy state. */\nexport const EmbedPluginCardInner: React.FC<BusyCardProps> = (props) => {\n  const { payload, huriError } = useResolvePayload()\n  const { refreshPayload } = useRefreshPayload()\n  const theme = useTheme()\n\n  return (\n    <EmbedCardApiErrorRenderer xyoError={huriError}>\n      <EmbedPluginCard\n        elevation={3}\n        variant=\"elevation\"\n        busy={Boolean(!refreshPayload && payload)}\n        busyVariantProps={{\n          style: {\n            alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2,\n          },\n        }}\n        sx={{ position: 'relative' }}\n        {...props}\n      />\n    </EmbedCardApiErrorRenderer>\n  )\n}\n\n/** @deprecated use EmbedPluginCard and use CardProps instead of FlexBoxProps */\nexport { EmbedPluginCard as EmbedPlugin } from './card/index.ts'\n", "import { ErrorBoundary } from '@ariestools/sdk-react/error'\nimport type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { ListModeProvider } from '#shared'\n\nimport {\n  EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider,\n} from '../contexts/index.ts'\nimport type { EmbedPluginProps } from '../types/index.ts'\nimport { EmbedResolver } from './EmbedResolver.tsx'\nimport { ValidatePayloadAlert, ValidatePluginsAlert } from './validation-alerts/index.ts'\n\n/** Wires embed providers, resolvers, and validators around child plugin content. */\nexport const EmbedPluginInner: React.FC<PropsWithChildren<EmbedPluginProps>> = ({\n  validateSchema,\n  plugins,\n  huriPayload,\n  refreshTitle = '',\n  timestampLabel = 'Data From',\n  hideElementsConfig,\n  embedPluginConfig,\n  onRefresh,\n  children,\n}) => {\n  return (\n    <ErrorBoundary>\n      <EmbedPluginProvider\n        refreshTitle={refreshTitle}\n        timestampLabel={timestampLabel}\n        hideElementsConfig={hideElementsConfig}\n        plugins={plugins}\n        embedPluginConfig={embedPluginConfig}\n      >\n        <WithResolvers onRefresh={onRefresh} huriPayload={huriPayload}>\n          <WithValidators validateSchema={validateSchema}>\n            <ListModeProvider defaultListMode={embedPluginConfig?.listMode}>{children}</ListModeProvider>\n          </WithValidators>\n        </WithResolvers>\n      </EmbedPluginProvider>\n    </ErrorBoundary>\n  )\n}\n\ninterface WithResolversProps extends Pick<EmbedPluginProps, 'onRefresh' | 'huriPayload'>, FlexBoxProps {}\n\nconst WithResolvers: React.FC<PropsWithChildren<WithResolversProps>> = ({\n  children, onRefresh, huriPayload,\n}) => {\n  return (\n    <RefreshPayloadProvider onRefresh={onRefresh}>\n      <ResolvePayloadProvider huriPayload={huriPayload}>\n        <EmbedResolver>{children}</EmbedResolver>\n      </ResolvePayloadProvider>\n    </RefreshPayloadProvider>\n  )\n}\n\nconst WithValidators: React.FC<PropsWithChildren<{ validateSchema?: boolean }>> = ({ children, validateSchema }) => {\n  return (\n    <ValidatePayloadProvider enabled={validateSchema}>\n      <ValidatePluginsAlert>\n        <ValidatePayloadAlert>{children}</ValidatePayloadAlert>\n      </ValidatePluginsAlert>\n    </ValidatePayloadProvider>\n  )\n}\n", "import type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { LoadResult } from '#shared'\n\nimport { useResolvePayload } from '../contexts/index.ts'\n\n/** Renders children only after embed payload resolution succeeds. */\nexport const EmbedResolver: React.FC<PropsWithChildren> = ({ children }) => {\n  const {\n    payload, notFound, huriError,\n  } = useResolvePayload()\n\n  return (\n    <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n      {children}\n    </LoadResult>\n  )\n}\n", "import type { AlertProps } from '@mui/material'\nimport { Alert } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useValidatePayload } from '../../contexts/index.ts'\n\n/** Shows an error alert when enabled payload schema validation fails. */\nexport const ValidatePayloadAlert: React.FC<PropsWithChildren<AlertProps>> = ({ children, ...props }) => {\n  const {\n    validPayload, enabled, schema,\n  } = useValidatePayload()\n\n  if (enabled && validPayload === false) {\n    return (\n      <Alert severity=\"error\" title=\"Invalid Payload!\" {...props}>\n        Payload schema claimed to be\n        {' '}\n        {schema}\n        {' '}\n        but failed to validate.\n      </Alert>\n    )\n  }\n\n  return <>{children}</>\n}\n", "import type { AlertProps } from '@mui/material'\nimport { Alert, AlertTitle } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../contexts/index.ts'\n\n/** Shows a warning when a payload is present but no render plugins are configured. */\nexport const ValidatePluginsAlert: React.FC<PropsWithChildren<AlertProps>> = ({ children, ...props }) => {\n  const { payload } = useResolvePayload()\n  const { plugins } = useEmbedPluginState()\n\n  if (payload && plugins?.length === 0) {\n    return (\n      <Alert severity=\"warning\" {...props}>\n        <AlertTitle>Missing plugins!</AlertTitle>\n        Payload found but no plugins were present.\n      </Alert>\n    )\n  }\n\n  return <>{children}</>\n}\n", "import { ErrorAlert, ErrorRender } from '@ariestools/sdk-react/error'\nimport type { CardProps } from '@mui/material'\nimport type { ModuleError } from '@xyo-network/sdk'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { EmbedErrorCard } from './EmbedErrorCard.tsx'\n\ninterface EmbedCardApiErrorRendererProps extends CardProps {\n  xyoError?: ModuleError\n}\n\n/** Renders children or a custom API error card when a module error is present. */\nexport const EmbedCardApiErrorRenderer: React.FC<PropsWithChildren<EmbedCardApiErrorRendererProps>> = ({\n  xyoError, children, ...props\n}) => {\n  return (\n    <ErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>\n      {children}\n    </ErrorRender>\n  )\n}\n\nconst CustomApiErrorCard: React.FC<EmbedCardApiErrorRendererProps> = ({ xyoError, ...props }) => {\n  return (\n    <EmbedErrorCard {...props}>\n      <ErrorAlert error={xyoError} />\n    </EmbedErrorCard>\n  )\n}\n", "import { isDefined } from '@ariestools/sdk'\nimport type { AlertProps, CardProps } from '@mui/material'\nimport {\n  Alert, AlertTitle, Card, CardContent, Typography,\n} from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\ninterface EmbedErrorCardBaseProps {\n  alertProps?: AlertProps\n  error?: Error\n  hideErrorDetails?: boolean\n  scope?: string\n}\n\ninterface EmbedErrorCardProps extends EmbedErrorCardBaseProps, CardProps {}\n\n/** Card that displays embed plugin load errors with optional detail visibility. */\nexport const EmbedErrorCard: React.FC<PropsWithChildren<EmbedErrorCardProps>> = (props) => {\n  const {\n    alertProps, error, scope, hideErrorDetails = true, children, ...cardProps\n  } = props\n  const errorProps = {\n    alertProps, error, hideErrorDetails, scope,\n  }\n  return (\n    <Card {...cardProps}>\n      <CardContent>{children ?? <DefaultErrorAlert {...errorProps} />}</CardContent>\n    </Card>\n  )\n}\n\nconst DefaultErrorAlert: React.FC<EmbedErrorCardBaseProps> = ({\n  alertProps, scope, hideErrorDetails, error,\n}) => {\n  return (\n    <Alert severity=\"error\" {...alertProps}>\n      <AlertTitle>Whoops! Something went wrong</AlertTitle>\n      {isDefined(scope)\n        ? (\n            <Typography variant=\"caption\">\n              Scope:\n              {scope}\n            </Typography>\n          )\n        : null}\n      {!hideErrorDetails && error\n        ? (\n            <>\n              <Typography variant=\"caption\">Error: </Typography>\n              <Typography variant=\"caption\">{error?.message}</Typography>\n            </>\n          )\n        : (\n            <Typography\n              variant=\"caption\"\n              sx={{ fontSize: 'small' }}\n            >\n              Error Loading Plugin\n            </Typography>\n          )}\n    </Alert>\n  )\n}\n"],
  "mappings": ";AAAA,SAAS,qBAAqB;AAM9B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,SAAS,YAAY;AAuBjB,SAGM,KAHN;AAVG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,WACnC,0BAAAA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MACX,SAAQ;AAAA,MACR,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,kBAAkB;AAAA,QAChB,OAAO;AAAA,UACL,YAAY;AAAA,UAAS,YAAY,MAAM,QAAQ,CAAC;AAAA,UAAG,QAAQ;AAAA,QAC7D;AAAA,MACF;AAAA,MACA,IAAI,EAAE,UAAU,WAAW;AAAA,MAC1B,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;",
  "names": ["isDefined", "Chip", "useState", "jsx", "createContextEx", "useMemo", "jsx", "useMemo", "useContextEx", "useContextEx", "useMemo", "useState", "createContextEx", "jsx", "useState", "useMemo", "useContextEx", "useContextEx", "createContextEx", "useEffect", "useMemo", "useState", "jsx", "useState", "useEffect", "useMemo", "useContextEx", "useContextEx", "useAsyncEffect", "useMemo", "useState", "createContextEx", "jsx", "useState", "useAsyncEffect", "useMemo", "useContextEx", "useContextEx", "useState", "isDefined", "Fragment", "jsx", "jsxs", "isDefined", "Fragment", "jsx", "jsxs", "useState", "Fragment", "jsx", "jsxs", "useState", "isDefined", "Chip", "useListMode", "jsx", "jsxs", "MenuItem", "jsx", "jsxs", "MenuItem", "SelectEx", "MenuItem", "jsx", "SelectEx", "MenuItem", "jsx", "jsxs", "useListMode", "jsx", "Fragment", "jsx", "jsxs", "Alert", "Fragment", "jsx", "jsxs", "Alert", "jsx", "isDefined", "Alert", "AlertTitle", "Card", "CardContent", "Fragment", "jsx", "jsxs", "jsx", "jsx", "jsxs"]
}
