{"ast":null,"code":"'use client';\n\nimport _slicedToArray from \"C:/Users/user/Desktop/04portreact/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport _objectWithoutProperties from \"C:/Users/user/Desktop/04portreact/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nimport _objectSpread from \"C:/Users/user/Desktop/04portreact/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\nvar _excluded = [\"appearance\", \"accentColor\", \"grayColor\", \"panelBackground\", \"radius\", \"scaling\", \"hasBackground\"],\n  _excluded2 = [\"asChild\", \"isRoot\", \"hasBackground\", \"appearance\", \"accentColor\", \"grayColor\", \"panelBackground\", \"radius\", \"scaling\", \"onAppearanceChange\", \"onAccentColorChange\", \"onGrayColorChange\", \"onPanelBackgroundChange\", \"onRadiusChange\", \"onScalingChange\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { DirectionProvider } from '@radix-ui/react-direction';\nimport { Slot } from '@radix-ui/react-slot';\nimport { themePropDefs, getMatchingGrayColor } from './theme-options';\nvar noop = function noop() {};\nvar ThemeContext = React.createContext(undefined);\nfunction useThemeContext() {\n  var context = React.useContext(ThemeContext);\n  if (context === undefined) {\n    throw new Error('`useThemeContext` must be used within a `Theme`');\n  }\n  return context;\n}\nvar Theme = React.forwardRef(function (props, forwardedRef) {\n  var context = React.useContext(ThemeContext);\n  var isRoot = context === undefined;\n  if (isRoot) {\n    return React.createElement(TooltipPrimitive.Provider, null, React.createElement(DirectionProvider, {\n      dir: \"ltr\"\n    }, React.createElement(ThemeRoot, _objectSpread(_objectSpread({}, props), {}, {\n      ref: forwardedRef\n    }))));\n  }\n  return React.createElement(ThemeImpl, _objectSpread(_objectSpread({}, props), {}, {\n    ref: forwardedRef\n  }));\n});\nTheme.displayName = 'Theme';\nvar ThemeRoot = React.forwardRef(function (props, forwardedRef) {\n  var _props$appearance = props.appearance,\n    appearanceProp = _props$appearance === void 0 ? themePropDefs.appearance.default : _props$appearance,\n    _props$accentColor = props.accentColor,\n    accentColorProp = _props$accentColor === void 0 ? themePropDefs.accentColor.default : _props$accentColor,\n    _props$grayColor = props.grayColor,\n    grayColorProp = _props$grayColor === void 0 ? themePropDefs.grayColor.default : _props$grayColor,\n    _props$panelBackgroun = props.panelBackground,\n    panelBackgroundProp = _props$panelBackgroun === void 0 ? themePropDefs.panelBackground.default : _props$panelBackgroun,\n    _props$radius = props.radius,\n    radiusProp = _props$radius === void 0 ? themePropDefs.radius.default : _props$radius,\n    _props$scaling = props.scaling,\n    scalingProp = _props$scaling === void 0 ? themePropDefs.scaling.default : _props$scaling,\n    _props$hasBackground = props.hasBackground,\n    hasBackground = _props$hasBackground === void 0 ? themePropDefs.hasBackground.default : _props$hasBackground,\n    rootProps = _objectWithoutProperties(props, _excluded);\n  var _React$useState = React.useState(appearanceProp),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    appearance = _React$useState2[0],\n    setAppearance = _React$useState2[1];\n  React.useEffect(function () {\n    return setAppearance(appearanceProp);\n  }, [appearanceProp]);\n  var _React$useState3 = React.useState(accentColorProp),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    accentColor = _React$useState4[0],\n    setAccentColor = _React$useState4[1];\n  React.useEffect(function () {\n    return setAccentColor(accentColorProp);\n  }, [accentColorProp]);\n  var _React$useState5 = React.useState(grayColorProp),\n    _React$useState6 = _slicedToArray(_React$useState5, 2),\n    grayColor = _React$useState6[0],\n    setGrayColor = _React$useState6[1];\n  React.useEffect(function () {\n    return setGrayColor(grayColorProp);\n  }, [grayColorProp]);\n  var _React$useState7 = React.useState(panelBackgroundProp),\n    _React$useState8 = _slicedToArray(_React$useState7, 2),\n    panelBackground = _React$useState8[0],\n    setPanelBackground = _React$useState8[1];\n  React.useEffect(function () {\n    return setPanelBackground(panelBackgroundProp);\n  }, [panelBackgroundProp]);\n  var _React$useState9 = React.useState(radiusProp),\n    _React$useState10 = _slicedToArray(_React$useState9, 2),\n    radius = _React$useState10[0],\n    setRadius = _React$useState10[1];\n  React.useEffect(function () {\n    return setRadius(radiusProp);\n  }, [radiusProp]);\n  var _React$useState11 = React.useState(scalingProp),\n    _React$useState12 = _slicedToArray(_React$useState11, 2),\n    scaling = _React$useState12[0],\n    setScaling = _React$useState12[1];\n  React.useEffect(function () {\n    return setScaling(scalingProp);\n  }, [scalingProp]);\n  // Initial appearance on page load when `appearance` is explicitly set to `light` or `dark`\n  var ExplicitRootAppearanceScript = React.memo(function (_ref) {\n    var appearance = _ref.appearance;\n    return React.createElement(\"script\", {\n      dangerouslySetInnerHTML: {\n        __html: \"!(function(){try{var d=document.documentElement,c=d.classList;c.remove('light','dark');d.style.colorScheme='\".concat(appearance, \"';c.add('\").concat(appearance, \"');}catch(e){}})();\")\n      }\n    });\n  }, function () {\n    return true;\n  } // Never re-render\n  );\n\n  ExplicitRootAppearanceScript.displayName = 'ExplicitRootAppearanceScript';\n  // Client-side only changes when `appearance` prop is changed while developing\n  React.useEffect(function () {\n    return updateThemeAppearanceClass(appearanceProp);\n  }, [appearanceProp]);\n  var resolvedGrayColor = grayColor === 'auto' ? getMatchingGrayColor(accentColor) : grayColor;\n  return React.createElement(React.Fragment, null, appearance !== 'inherit' && React.createElement(ExplicitRootAppearanceScript, {\n    appearance: appearance\n  }), hasBackground && React.createElement(\"style\", {\n    dangerouslySetInnerHTML: {\n      __html: \"\\n:root, .light, .light-theme { --color-page-background: white; }\\n.dark, .dark-theme { --color-page-background: var(--\".concat(resolvedGrayColor, \"-1); }\\nbody { background-color: var(--color-page-background); }\\n\")\n    }\n  }), React.createElement(ThemeImpl, _objectSpread(_objectSpread({}, rootProps), {}, {\n    ref: forwardedRef,\n    isRoot: true,\n    hasBackground: hasBackground,\n    //\n    appearance: appearance,\n    accentColor: accentColor,\n    grayColor: grayColor,\n    panelBackground: panelBackground,\n    radius: radius,\n    scaling: scaling,\n    //\n    onAppearanceChange: setAppearance,\n    onAccentColorChange: setAccentColor,\n    onGrayColorChange: setGrayColor,\n    onPanelBackgroundChange: setPanelBackground,\n    onRadiusChange: setRadius,\n    onScalingChange: setScaling\n  })));\n});\nThemeRoot.displayName = 'ThemeRoot';\nvar ThemeImpl = React.forwardRef(function (props, forwardedRef) {\n  var _a, _b, _c, _d, _e, _f;\n  var context = React.useContext(ThemeContext);\n  var asChild = props.asChild,\n    isRoot = props.isRoot,\n    hasBackground = props.hasBackground,\n    _props$appearance2 = props.appearance,\n    appearance = _props$appearance2 === void 0 ? (_a = context === null || context === void 0 ? void 0 : context.appearance) !== null && _a !== void 0 ? _a : themePropDefs.appearance.default : _props$appearance2,\n    _props$accentColor2 = props.accentColor,\n    accentColor = _props$accentColor2 === void 0 ? (_b = context === null || context === void 0 ? void 0 : context.accentColor) !== null && _b !== void 0 ? _b : themePropDefs.accentColor.default : _props$accentColor2,\n    _props$grayColor2 = props.grayColor,\n    grayColor = _props$grayColor2 === void 0 ? (_c = context === null || context === void 0 ? void 0 : context.resolvedGrayColor) !== null && _c !== void 0 ? _c : themePropDefs.grayColor.default : _props$grayColor2,\n    _props$panelBackgroun2 = props.panelBackground,\n    panelBackground = _props$panelBackgroun2 === void 0 ? (_d = context === null || context === void 0 ? void 0 : context.panelBackground) !== null && _d !== void 0 ? _d : themePropDefs.panelBackground.default : _props$panelBackgroun2,\n    _props$radius2 = props.radius,\n    radius = _props$radius2 === void 0 ? (_e = context === null || context === void 0 ? void 0 : context.radius) !== null && _e !== void 0 ? _e : themePropDefs.radius.default : _props$radius2,\n    _props$scaling2 = props.scaling,\n    scaling = _props$scaling2 === void 0 ? (_f = context === null || context === void 0 ? void 0 : context.scaling) !== null && _f !== void 0 ? _f : themePropDefs.scaling.default : _props$scaling2,\n    _props$onAppearanceCh = props.onAppearanceChange,\n    onAppearanceChange = _props$onAppearanceCh === void 0 ? noop : _props$onAppearanceCh,\n    _props$onAccentColorC = props.onAccentColorChange,\n    onAccentColorChange = _props$onAccentColorC === void 0 ? noop : _props$onAccentColorC,\n    _props$onGrayColorCha = props.onGrayColorChange,\n    onGrayColorChange = _props$onGrayColorCha === void 0 ? noop : _props$onGrayColorCha,\n    _props$onPanelBackgro = props.onPanelBackgroundChange,\n    onPanelBackgroundChange = _props$onPanelBackgro === void 0 ? noop : _props$onPanelBackgro,\n    _props$onRadiusChange = props.onRadiusChange,\n    onRadiusChange = _props$onRadiusChange === void 0 ? noop : _props$onRadiusChange,\n    _props$onScalingChang = props.onScalingChange,\n    onScalingChange = _props$onScalingChang === void 0 ? noop : _props$onScalingChang,\n    themeProps = _objectWithoutProperties(props, _excluded2);\n  var Comp = asChild ? Slot : 'div';\n  var resolvedGrayColor = grayColor === 'auto' ? getMatchingGrayColor(accentColor) : grayColor;\n  var isExplicitAppearance = props.appearance !== undefined && props.appearance !== 'inherit';\n  var isExplicitGrayColor = props.grayColor !== undefined;\n  var shouldHaveBackground = !isRoot && (hasBackground === true || hasBackground !== false && (isExplicitAppearance || isExplicitGrayColor));\n  return React.createElement(ThemeContext.Provider, {\n    value: React.useMemo(function () {\n      return {\n        appearance: appearance,\n        accentColor: accentColor,\n        grayColor: grayColor,\n        resolvedGrayColor: resolvedGrayColor,\n        panelBackground: panelBackground,\n        radius: radius,\n        scaling: scaling,\n        //\n        onAppearanceChange: onAppearanceChange,\n        onAccentColorChange: onAccentColorChange,\n        onGrayColorChange: onGrayColorChange,\n        onPanelBackgroundChange: onPanelBackgroundChange,\n        onRadiusChange: onRadiusChange,\n        onScalingChange: onScalingChange\n      };\n    }, [appearance, accentColor, grayColor, resolvedGrayColor, panelBackground, radius, scaling,\n    //\n    onAppearanceChange, onAccentColorChange, onGrayColorChange, onPanelBackgroundChange, onRadiusChange, onScalingChange])\n  }, React.createElement(Comp, _objectSpread(_objectSpread({\n    \"data-is-root-theme\": isRoot ? 'true' : 'false',\n    \"data-accent-color\": accentColor,\n    \"data-gray-color\": resolvedGrayColor,\n    \"data-has-background\": shouldHaveBackground ? 'true' : 'false',\n    \"data-panel-background\": panelBackground,\n    \"data-radius\": radius,\n    \"data-scaling\": scaling,\n    ref: forwardedRef\n  }, themeProps), {}, {\n    className: classNames('radix-themes', {\n      // Only apply theme class to nested `Theme` sections.\n      //\n      // If it's the root `Theme`, we either rely on\n      // - something else setting the theme class when root `appearance` is `inherit`\n      // - our script setting it when root `appearance` is explicit\n      light: !isRoot && appearance === 'light',\n      dark: !isRoot && appearance === 'dark'\n    }, themeProps.className)\n  })));\n});\nThemeImpl.displayName = 'ThemeImpl';\nfunction updateThemeAppearanceClass(appearance) {\n  if (appearance === 'inherit') return;\n  var root = document.documentElement;\n  if (root.classList.contains('light-theme') || root.classList.contains('dark-theme')) {\n    root.classList.remove('light-theme', 'dark-theme');\n    root.style.colorScheme = appearance;\n    root.classList.add(\"\".concat(appearance, \"-theme\"));\n  }\n  if (root.classList.contains('light') || root.classList.contains('dark')) {\n    root.classList.remove('light', 'dark');\n    root.style.colorScheme = appearance;\n    root.classList.add(appearance);\n  }\n}\nexport { Theme, useThemeContext, updateThemeAppearanceClass };","map":{"version":3,"names":["_slicedToArray","_objectWithoutProperties","_objectSpread","_excluded","_excluded2","React","classNames","TooltipPrimitive","DirectionProvider","Slot","themePropDefs","getMatchingGrayColor","noop","ThemeContext","createContext","undefined","useThemeContext","context","useContext","Error","Theme","forwardRef","props","forwardedRef","isRoot","createElement","Provider","dir","ThemeRoot","ref","ThemeImpl","displayName","_props$appearance","appearance","appearanceProp","default","_props$accentColor","accentColor","accentColorProp","_props$grayColor","grayColor","grayColorProp","_props$panelBackgroun","panelBackground","panelBackgroundProp","_props$radius","radius","radiusProp","_props$scaling","scaling","scalingProp","_props$hasBackground","hasBackground","rootProps","_React$useState","useState","_React$useState2","setAppearance","useEffect","_React$useState3","_React$useState4","setAccentColor","_React$useState5","_React$useState6","setGrayColor","_React$useState7","_React$useState8","setPanelBackground","_React$useState9","_React$useState10","setRadius","_React$useState11","_React$useState12","setScaling","ExplicitRootAppearanceScript","memo","_ref","dangerouslySetInnerHTML","__html","concat","updateThemeAppearanceClass","resolvedGrayColor","Fragment","onAppearanceChange","onAccentColorChange","onGrayColorChange","onPanelBackgroundChange","onRadiusChange","onScalingChange","asChild","_props$appearance2","_a","_props$accentColor2","_b","_props$grayColor2","_c","_props$panelBackgroun2","_d","_props$radius2","_e","_props$scaling2","_f","_props$onAppearanceCh","_props$onAccentColorC","_props$onGrayColorCha","_props$onPanelBackgro","_props$onRadiusChange","_props$onScalingChang","themeProps","Comp","isExplicitAppearance","isExplicitGrayColor","shouldHaveBackground","value","useMemo","className","light","dark","root","document","documentElement","classList","contains","remove","style","colorScheme","add"],"sources":["../../src/theme.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAY;;AAAC,OAAAA,cAAA;AAAA,OAAAC,wBAAA;AAAA,OAAAC,aAAA;AAAA,IAAAC,SAAA;EAAAC,UAAA;AAEb,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,gBAAgB,MAAM,yBAAyB;AAC3D,SAASC,iBAAiB,QAAQ,2BAA2B;AAC7D,SAASC,IAAI,QAAQ,sBAAsB;AAC3C,SAASC,aAAa,EAAEC,oBAAoB,QAAQ,iBAAiB;AAIrE,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAA,EAAQ,CAAE,CAAC;AAcrB,IAAMC,YAAY,GAAGR,KAAK,CAACS,aAAa,CAAgCC,SAAS,CAAC;AAElF,SAASC,eAAeA,CAAA;EACtB,IAAMC,OAAO,GAAGZ,KAAK,CAACa,UAAU,CAACL,YAAY,CAAC;EAC9C,IAAII,OAAO,KAAKF,SAAS,EAAE;IACzB,MAAM,IAAII,KAAK,CAAC,iDAAiD,CAAC;;EAEpE,OAAOF,OAAO;AAChB;AAGA,IAAMG,KAAK,GAAGf,KAAK,CAACgB,UAAU,CAA+B,UAACC,KAAK,EAAEC,YAAY,EAAI;EACnF,IAAMN,OAAO,GAAGZ,KAAK,CAACa,UAAU,CAACL,YAAY,CAAC;EAC9C,IAAMW,MAAM,G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