{"version":3,"sources":["../../src/GameCard.tsx","../../../../foundation/primitives-web/src/Box.tsx","../../../../foundation/primitives-web/src/filterDOMProps.ts","../../../../../node_modules/@emotion/memoize/dist/memoize.esm.js","../../../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js","../../../../foundation/primitives-web/src/Text.tsx","../../../../foundation/primitives-web/src/textTruncation.ts","../../../../foundation/primitives-web/src/LinearGradient.tsx","../../../../foundation/primitives-web/src/index.tsx"],"sourcesContent":["import React, { useState } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text, LinearGradient, isWeb } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport type {\n  GameCardProps,\n  GameCardSize,\n  GameCardImageRatio,\n  GameCardPlatform,\n  GameCardLayout,\n} from \"./types\";\n\nconst IMAGE_RATIOS: Record<Exclude<GameCardImageRatio, \"custom\">, number> = {\n  \"16:9\": 240 / 135,\n  \"1:1\": 1,\n  \"2:3\": 240 / 360,\n  \"3:2\": 240 / 160,\n  \"4:3\": 360 / 270,\n  \"9:16\": 135 / 240,\n};\n\nconst BORDER_RADIUS = 8;\nconst TAG_INSET = 8;\nconst TAG_GAP = 4;\n\ninterface SizeConfig {\n  titleFontSize: number;\n  titleLineHeight: number;\n  subtitleFontSize: number;\n  subtitleLineHeight: number;\n}\n\nconst getSizeConfig = (\n  size: GameCardSize,\n  platform: GameCardPlatform\n): SizeConfig => {\n  const isDesktop = platform === \"desktop\";\n  switch (size) {\n    case \"lg\":\n      return {\n        titleFontSize: isDesktop ? 16 : 14,\n        titleLineHeight: isDesktop ? 20 : 18,\n        subtitleFontSize: isDesktop ? 12 : 11,\n        subtitleLineHeight: isDesktop ? 18 : 14,\n      };\n    case \"md\":\n      return {\n        titleFontSize: isDesktop ? 16 : 14,\n        titleLineHeight: isDesktop ? 20 : 18,\n        subtitleFontSize: isDesktop ? 12 : 11,\n        subtitleLineHeight: isDesktop ? 18 : 14,\n      };\n    case \"sm\":\n      return {\n        titleFontSize: 12,\n        titleLineHeight: 16,\n        subtitleFontSize: 10,\n        subtitleLineHeight: 14,\n      };\n  }\n};\n\nconst getFooterPadding = (platform: GameCardPlatform): number =>\n  platform === \"desktop\" ? 16 : 12;\n\nconst getFooterGap = (): number => 12;\n\nconst resolveAspectRatio = (\n  imageRatio: GameCardImageRatio,\n  customWidth?: number,\n  customHeight?: number\n): number => {\n  if (imageRatio === \"custom\" && customWidth && customHeight) {\n    return customWidth / customHeight;\n  }\n  return (\n    IMAGE_RATIOS[imageRatio as Exclude<GameCardImageRatio, \"custom\">] ??\n    IMAGE_RATIOS[\"16:9\"]\n  );\n};\n\nconst ellipsisStyle = isWeb\n  ? {\n      overflow: \"hidden\" as const,\n      textOverflow: \"ellipsis\" as const,\n      whiteSpace: \"nowrap\" as const,\n    }\n  : undefined;\n\nexport const GameCard: React.FC<GameCardProps> = ({\n  image,\n  title,\n  subtitle,\n  size = \"lg\",\n  imageRatio = \"16:9\",\n  customImageWidth,\n  customImageHeight,\n  badge,\n  tagsTopLeft,\n  tagsTopRight,\n  tagsBottomLeft,\n  tagsBottomRight,\n  trailing,\n  buttonText,\n  onButtonClick,\n  buttonDisabled,\n  layout = \"horizontal\",\n  platform = \"mobile\",\n  hideFooter = false,\n  hoverContent,\n  onPress,\n  imageAlt,\n  className,\n  testID,\n  themeMode,\n  themeProductContext,\n}) => {\n  const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n  const config = getSizeConfig(size, platform);\n  const footerPadding = getFooterPadding(platform);\n  const footerGap = getFooterGap();\n  const aspectRatio = resolveAspectRatio(\n    imageRatio,\n    customImageWidth,\n    customImageHeight\n  );\n\n  const [isHovered, setIsHovered] = useState(false);\n\n  const wrapperProps = onPress ? { onPress } : {};\n  const hoverHandlers =\n    isWeb && hoverContent\n      ? {\n          onMouseEnter: () => setIsHovered(true),\n          onMouseLeave: () => setIsHovered(false),\n        }\n      : {};\n\n  const isHorizontal = layout === \"horizontal\";\n\n  const renderPlaceholder = () => (\n    <Box\n      width=\"100%\"\n      height=\"100%\"\n      backgroundColor={theme.colors.background.secondary}\n      alignItems=\"center\"\n      justifyContent=\"center\"\n    >\n      <Box\n        width={\n          imageRatio === \"16:9\" ||\n          imageRatio === \"9:16\" ||\n          imageRatio === \"custom\"\n            ? 48\n            : 56\n        }\n        height={\n          imageRatio === \"16:9\" ||\n          imageRatio === \"9:16\" ||\n          imageRatio === \"custom\"\n            ? 48\n            : 56\n        }\n        alignItems=\"center\"\n        justifyContent=\"center\"\n        style={{ opacity: 0.4 }}\n      >\n        <Text\n          color={theme.colors.content.tertiary}\n          fontSize={24}\n          style={{ textAlign: \"center\" as const }}\n        >\n          {\"\\u{1F5BC}\"}\n        </Text>\n      </Box>\n    </Box>\n  );\n\n  const renderImage = () => (\n    <Box\n      position=\"relative\"\n      width=\"100%\"\n      overflow=\"hidden\"\n      style={{ aspectRatio }}\n      {...hoverHandlers}\n    >\n      {image ? (\n        <>\n          <Box\n            as=\"img\"\n            src={image}\n            alt={imageAlt || title}\n            position=\"absolute\"\n            top={0}\n            left={0}\n            width=\"100%\"\n            height=\"100%\"\n            style={\n              isWeb\n                ? {\n                    objectFit: \"cover\" as const,\n                    pointerEvents: \"none\" as const,\n                  }\n                : undefined\n            }\n          />\n          <LinearGradient\n            colors={[\"transparent\", \"rgba(0, 0, 0, 0.48)\"]}\n            start={{ x: 0, y: 0 }}\n            end={{ x: 0, y: 1 }}\n            position=\"absolute\"\n            bottom={0}\n            left={0}\n            right={0}\n            height=\"100%\"\n            style={{ maxHeight: 206 }}\n          />\n        </>\n      ) : (\n        renderPlaceholder()\n      )}\n\n      {/* Tag zones */}\n      {(badge || tagsTopLeft) && (\n        <Box\n          position=\"absolute\"\n          top={TAG_INSET}\n          left={TAG_INSET}\n          flexDirection=\"column\"\n          gap={TAG_GAP}\n          alignItems=\"flex-start\"\n        >\n          {badge}\n          {tagsTopLeft}\n        </Box>\n      )}\n\n      {tagsTopRight && (\n        <Box\n          position=\"absolute\"\n          top={TAG_INSET}\n          right={TAG_INSET}\n          flexDirection=\"column\"\n          gap={TAG_GAP}\n          alignItems=\"flex-end\"\n        >\n          {tagsTopRight}\n        </Box>\n      )}\n\n      {tagsBottomLeft && (\n        <Box\n          position=\"absolute\"\n          bottom={TAG_INSET}\n          left={TAG_INSET}\n          flexDirection=\"column\"\n          gap={TAG_GAP}\n          alignItems=\"flex-start\"\n        >\n          {tagsBottomLeft}\n        </Box>\n      )}\n\n      {tagsBottomRight && (\n        <Box\n          position=\"absolute\"\n          bottom={TAG_INSET}\n          right={TAG_INSET}\n          flexDirection=\"column\"\n          gap={TAG_GAP}\n          alignItems=\"flex-end\"\n        >\n          {tagsBottomRight}\n        </Box>\n      )}\n\n      {/* Hover overlay */}\n      {isWeb && hoverContent && isHovered && (\n        <Box\n          position=\"absolute\"\n          bottom={0}\n          left={0}\n          right={0}\n          height={72}\n          flexDirection=\"row\"\n          alignItems=\"center\"\n          gap={8}\n          padding={16}\n          borderRadius={4}\n          overflow=\"hidden\"\n          style={{\n            backdropFilter: \"blur(15px)\",\n            WebkitBackdropFilter: \"blur(15px)\",\n            backgroundColor: theme.colors.layer.float,\n          }}\n        >\n          {hoverContent}\n        </Box>\n      )}\n    </Box>\n  );\n\n  const renderFooter = () => (\n    <Box\n      backgroundColor={theme.colors.overlay.mono}\n      padding={footerPadding}\n      flexDirection={isHorizontal ? \"row\" : \"column\"}\n      alignItems={isHorizontal ? \"center\" : \"flex-start\"}\n      justifyContent={isHorizontal ? undefined : \"center\"}\n      gap={footerGap}\n    >\n      <Box\n        flex={isHorizontal ? 1 : undefined}\n        width={isHorizontal ? undefined : \"100%\"}\n        flexDirection=\"column\"\n        style={{ minWidth: 0 }}\n      >\n        <Text\n          color={theme.colors.content.primary}\n          fontSize={config.titleFontSize}\n          lineHeight={config.titleLineHeight}\n          fontWeight=\"500\"\n          numberOfLines={1}\n          style={ellipsisStyle}\n        >\n          {title}\n        </Text>\n        {subtitle && (\n          <Text\n            color={theme.colors.content.tertiary}\n            fontSize={config.subtitleFontSize}\n            lineHeight={config.subtitleLineHeight}\n            fontWeight=\"400\"\n            numberOfLines={1}\n            style={ellipsisStyle}\n          >\n            {subtitle}\n          </Text>\n        )}\n      </Box>\n\n      {trailing}\n      {!trailing && buttonText && (\n        <Box\n          onPress={buttonDisabled ? undefined : onButtonClick}\n          backgroundColor={theme.colors.control.mono.secondary.bg}\n          borderRadius={BORDER_RADIUS}\n          height={40}\n          paddingHorizontal={20}\n          alignItems=\"center\"\n          justifyContent=\"center\"\n          style={\n            isWeb\n              ? {\n                  opacity: buttonDisabled ? 0.4 : 1,\n                  backdropFilter: \"blur(30px)\",\n                  WebkitBackdropFilter: \"blur(30px)\",\n                  border: `1px solid ${theme.colors.control.mono.secondary.border}`,\n                  cursor: buttonDisabled\n                    ? \"not-allowed\"\n                    : onButtonClick\n                      ? \"pointer\"\n                      : \"default\",\n                }\n              : { opacity: buttonDisabled ? 0.4 : 1 }\n          }\n        >\n          <Text\n            color={theme.colors.control.mono.text.secondary}\n            fontSize={14}\n            lineHeight={18}\n            fontWeight=\"500\"\n            style={{ letterSpacing: 0.4 }}\n          >\n            {buttonText}\n          </Text>\n        </Box>\n      )}\n    </Box>\n  );\n\n  return (\n    <Box\n      testID={testID}\n      className={className}\n      flexDirection=\"column\"\n      width=\"100%\"\n      {...wrapperProps}\n    >\n      <Box\n        borderRadius={BORDER_RADIUS}\n        overflow=\"hidden\"\n        flexDirection=\"column\"\n        style={\n          isWeb\n            ? {\n                borderRadius: `${BORDER_RADIUS}px`,\n                overflow: \"hidden\",\n                border: `1px solid ${theme.colors.border.secondary}`,\n              }\n            : {\n                borderRadius: BORDER_RADIUS,\n                overflow: \"hidden\",\n                borderWidth: 1,\n                borderColor: theme.colors.border.secondary,\n              }\n        }\n      >\n        {renderImage()}\n        {!hideFooter && renderFooter()}\n      </Box>\n    </Box>\n  );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\nimport { createFilteredElement } from \"./filterDOMProps\";\n\nconst FilteredDiv = createFilteredElement(\"div\");\n\nconst StyledBox = styled(FilteredDiv)<BoxProps>`\n  display: flex;\n  box-sizing: border-box;\n  background-color: ${(props) => props.backgroundColor || \"transparent\"};\n  border-color: ${(props) => props.borderColor || \"transparent\"};\n  border-width: ${(props) =>\n    typeof props.borderWidth === \"number\"\n      ? `${props.borderWidth}px`\n      : props.borderWidth || 0};\n\n  ${(props) =>\n    props.borderBottomWidth !== undefined &&\n    `\n    border-bottom-width: ${typeof props.borderBottomWidth === \"number\" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};\n    border-bottom-color: ${props.borderBottomColor || props.borderColor || \"transparent\"};\n    border-bottom-style: solid;\n  `}\n  ${(props) =>\n    props.borderTopWidth !== undefined &&\n    `\n    border-top-width: ${typeof props.borderTopWidth === \"number\" ? `${props.borderTopWidth}px` : props.borderTopWidth};\n    border-top-color: ${props.borderTopColor || props.borderColor || \"transparent\"};\n    border-top-style: solid;\n  `}\n  ${(props) =>\n    props.borderLeftWidth !== undefined &&\n    `\n    border-left-width: ${typeof props.borderLeftWidth === \"number\" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};\n    border-left-color: ${props.borderLeftColor || props.borderColor || \"transparent\"};\n    border-left-style: solid;\n  `}\n  ${(props) =>\n    props.borderRightWidth !== undefined &&\n    `\n    border-right-width: ${typeof props.borderRightWidth === \"number\" ? `${props.borderRightWidth}px` : props.borderRightWidth};\n    border-right-color: ${props.borderRightColor || props.borderColor || \"transparent\"};\n    border-right-style: solid;\n  `}\n\n  border-style: ${(props) =>\n    props.borderStyle ||\n    (props.borderWidth ||\n    props.borderBottomWidth ||\n    props.borderTopWidth ||\n    props.borderLeftWidth ||\n    props.borderRightWidth\n      ? \"solid\"\n      : \"none\")};\n  border-radius: ${(props) =>\n    typeof props.borderRadius === \"number\"\n      ? `${props.borderRadius}px`\n      : props.borderRadius || 0};\n  height: ${(props) =>\n    typeof props.height === \"number\"\n      ? `${props.height}px`\n      : props.height || \"auto\"};\n  width: ${(props) =>\n    typeof props.width === \"number\"\n      ? `${props.width}px`\n      : props.width || \"auto\"};\n  min-width: ${(props) =>\n    typeof props.minWidth === \"number\"\n      ? `${props.minWidth}px`\n      : props.minWidth || \"auto\"};\n  min-height: ${(props) =>\n    typeof props.minHeight === \"number\"\n      ? `${props.minHeight}px`\n      : props.minHeight || \"auto\"};\n  max-width: ${(props) =>\n    typeof props.maxWidth === \"number\"\n      ? `${props.maxWidth}px`\n      : props.maxWidth || \"none\"};\n  max-height: ${(props) =>\n    typeof props.maxHeight === \"number\"\n      ? `${props.maxHeight}px`\n      : props.maxHeight || \"none\"};\n\n  padding: ${(props) =>\n    typeof props.padding === \"number\"\n      ? `${props.padding}px`\n      : props.padding || 0};\n  ${(props) =>\n    props.paddingHorizontal &&\n    `\n    padding-left: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n    padding-right: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n  `}\n  ${(props) =>\n    props.paddingVertical &&\n    `\n    padding-top: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n    padding-bottom: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n  `}\n  ${(props) =>\n    props.paddingTop !== undefined &&\n    `padding-top: ${typeof props.paddingTop === \"number\" ? `${props.paddingTop}px` : props.paddingTop};`}\n  ${(props) =>\n    props.paddingBottom !== undefined &&\n    `padding-bottom: ${typeof props.paddingBottom === \"number\" ? `${props.paddingBottom}px` : props.paddingBottom};`}\n  ${(props) =>\n    props.paddingLeft !== undefined &&\n    `padding-left: ${typeof props.paddingLeft === \"number\" ? `${props.paddingLeft}px` : props.paddingLeft};`}\n  ${(props) =>\n    props.paddingRight !== undefined &&\n    `padding-right: ${typeof props.paddingRight === \"number\" ? `${props.paddingRight}px` : props.paddingRight};`}\n\n  margin: ${(props) =>\n    typeof props.margin === \"number\" ? `${props.margin}px` : props.margin || 0};\n  ${(props) =>\n    props.marginTop !== undefined &&\n    `margin-top: ${typeof props.marginTop === \"number\" ? `${props.marginTop}px` : props.marginTop};`}\n  ${(props) =>\n    props.marginBottom !== undefined &&\n    `margin-bottom: ${typeof props.marginBottom === \"number\" ? `${props.marginBottom}px` : props.marginBottom};`}\n  ${(props) =>\n    props.marginLeft !== undefined &&\n    `margin-left: ${typeof props.marginLeft === \"number\" ? `${props.marginLeft}px` : props.marginLeft};`}\n  ${(props) =>\n    props.marginRight !== undefined &&\n    `margin-right: ${typeof props.marginRight === \"number\" ? `${props.marginRight}px` : props.marginRight};`}\n\n  flex-direction: ${(props) => props.flexDirection || \"column\"};\n  flex-wrap: ${(props) => props.flexWrap || \"nowrap\"};\n  align-items: ${(props) => props.alignItems || \"stretch\"};\n  justify-content: ${(props) => props.justifyContent || \"flex-start\"};\n  cursor: ${(props) =>\n    props.cursor\n      ? props.cursor\n      : props.onClick || props.onPress\n        ? \"pointer\"\n        : \"inherit\"};\n  position: ${(props) => props.position || \"static\"};\n  top: ${(props) =>\n    typeof props.top === \"number\" ? `${props.top}px` : props.top};\n  bottom: ${(props) =>\n    typeof props.bottom === \"number\" ? `${props.bottom}px` : props.bottom};\n  left: ${(props) =>\n    typeof props.left === \"number\" ? `${props.left}px` : props.left};\n  right: ${(props) =>\n    typeof props.right === \"number\" ? `${props.right}px` : props.right};\n  flex: ${(props) => props.flex};\n  flex-shrink: ${(props) => props.flexShrink ?? 1};\n  gap: ${(props) =>\n    typeof props.gap === \"number\" ? `${props.gap}px` : props.gap || 0};\n  align-self: ${(props) => props.alignSelf || \"auto\"};\n  /* Only emit overflow-x/y when explicitly set. Defaulting them to\n     visible after overflow would override the shorthand and break\n     clipping (e.g. OtherCard bottom-right promo image). */\n  overflow: ${(props) => props.overflow || \"visible\"};\n  ${(props) =>\n    props.overflowX != null ? `overflow-x: ${props.overflowX};` : \"\"}\n  ${(props) =>\n    props.overflowY != null ? `overflow-y: ${props.overflowY};` : \"\"}\n  z-index: ${(props) => props.zIndex};\n  opacity: ${(props) =>\n    props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};\n  pointer-events: ${(props) => (props.disabled ? \"none\" : \"auto\")};\n\n  &:hover {\n    ${(props) =>\n      props.hoverStyle?.backgroundColor &&\n      `background-color: ${props.hoverStyle.backgroundColor};`}\n    ${(props) =>\n      props.hoverStyle?.borderColor &&\n      `border-color: ${props.hoverStyle.borderColor};`}\n  }\n\n  &:active {\n    ${(props) =>\n      props.pressStyle?.backgroundColor &&\n      `background-color: ${props.pressStyle.backgroundColor};`}\n  }\n`;\n\nexport const Box = React.forwardRef<\n  HTMLDivElement | HTMLButtonElement,\n  BoxProps\n>(\n  (\n    {\n      children,\n      onPress,\n      onKeyDown,\n      onKeyUp,\n      role,\n      \"aria-label\": ariaLabel,\n      \"aria-labelledby\": ariaLabelledBy,\n      \"aria-current\": ariaCurrent,\n      \"aria-disabled\": ariaDisabled,\n      \"aria-live\": ariaLive,\n      \"aria-busy\": ariaBusy,\n      \"aria-describedby\": ariaDescribedBy,\n      \"aria-expanded\": ariaExpanded,\n      \"aria-haspopup\": ariaHasPopup,\n      \"aria-pressed\": ariaPressed,\n      \"aria-controls\": ariaControls,\n      tabIndex,\n      as,\n      src,\n      alt,\n      onError,\n      onLoad,\n      type,\n      disabled,\n      id,\n      testID,\n      \"data-testid\": dataTestId,\n      ...props\n    },\n    ref\n  ) => {\n    // Handle as=\"img\" for rendering images with proper border-radius\n    if (as === \"img\" && src) {\n      return (\n        <img\n          src={src}\n          alt={alt || \"\"}\n          onError={onError}\n          onLoad={onLoad}\n          data-testid={dataTestId || testID}\n          style={{\n            display: \"block\",\n            objectFit: \"cover\",\n            width:\n              typeof props.width === \"number\"\n                ? `${props.width}px`\n                : props.width,\n            height:\n              typeof props.height === \"number\"\n                ? `${props.height}px`\n                : props.height,\n            borderRadius:\n              typeof props.borderRadius === \"number\"\n                ? `${props.borderRadius}px`\n                : props.borderRadius,\n            position: props.position,\n            top: typeof props.top === \"number\" ? `${props.top}px` : props.top,\n            left:\n              typeof props.left === \"number\" ? `${props.left}px` : props.left,\n            right:\n              typeof props.right === \"number\"\n                ? `${props.right}px`\n                : props.right,\n            bottom:\n              typeof props.bottom === \"number\"\n                ? `${props.bottom}px`\n                : props.bottom,\n            ...props.style,\n          }}\n        />\n      );\n    }\n\n    return (\n      <StyledBox\n        ref={ref}\n        elementType={as}\n        id={id}\n        type={as === \"button\" ? type || \"button\" : undefined}\n        disabled={as === \"button\" ? disabled : undefined}\n        onClick={onPress}\n        onKeyDown={onKeyDown}\n        onKeyUp={onKeyUp}\n        role={role}\n        aria-label={ariaLabel}\n        aria-labelledby={ariaLabelledBy}\n        aria-current={ariaCurrent}\n        aria-disabled={ariaDisabled}\n        aria-busy={ariaBusy}\n        aria-describedby={ariaDescribedBy}\n        aria-expanded={ariaExpanded}\n        aria-haspopup={ariaHasPopup}\n        aria-pressed={ariaPressed}\n        aria-controls={ariaControls}\n        aria-live={ariaLive}\n        tabIndex={tabIndex !== undefined ? tabIndex : undefined}\n        data-testid={dataTestId || testID}\n        {...props}\n      >\n        {children}\n      </StyledBox>\n    );\n  }\n);\n\nBox.displayName = \"Box\";\n","import React from \"react\";\nimport isPropValid from \"@emotion/is-prop-valid\";\n\n// Props that @emotion/is-prop-valid incorrectly treats as valid HTML.\n// These are React Native or component-specific props that match\n// valid HTML patterns (on* event handlers, SVG attributes).\nexport const ADDITIONAL_BLOCKED_PROPS = new Set([\n  // RN-only event handlers (pass isPropValid's on* pattern)\n  \"onPress\",\n  \"onChangeText\",\n  \"onLayout\",\n  \"onMoveShouldSetResponder\",\n  \"onResponderGrant\",\n  \"onResponderMove\",\n  \"onResponderRelease\",\n  \"onResponderTerminate\",\n  // SVG attributes that pass isPropValid\n  \"strokeWidth\",\n  // CSS properties that pass isPropValid but are used as component props\n  \"overflow\",\n  \"opacity\",\n  \"cursor\",\n  \"fontSize\",\n  \"fontWeight\",\n  \"fontFamily\",\n  \"textDecoration\",\n  // Cross-platform layout prop that Text consumes as CSS, never as an\n  // attribute. Pinned explicitly because it is now spread into the styled\n  // component rather than destructured away before it can reach the DOM.\n  \"numberOfLines\",\n]);\n\nfunction shouldForwardProp(key: string): boolean {\n  if (ADDITIONAL_BLOCKED_PROPS.has(key)) return false;\n  return isPropValid(key);\n}\n\n/**\n * Creates a React component that renders the given HTML tag\n * but filters out non-HTML props before they reach the DOM.\n *\n * Uses @emotion/is-prop-valid (same library styled-components v4\n * uses internally) to automatically block invalid HTML attributes,\n * plus a small blocklist for false positives (RN on* handlers, SVG attrs).\n *\n * Usage: `const FilteredDiv = createFilteredElement(\"div\");`\n * Then:  `const StyledBox = styled(FilteredDiv)<BoxProps>\\`...\\`;`\n *\n * styled-components can still read ALL props for CSS interpolation,\n * but only valid HTML attributes are forwarded to the DOM element.\n */\nexport function createFilteredElement(defaultTag: string) {\n  const Component = React.forwardRef<HTMLElement, Record<string, unknown>>(\n    ({ children, elementType, ...props }, ref) => {\n      const Tag = (elementType as string) || defaultTag;\n      const htmlProps: Record<string, unknown> = {};\n      for (const key of Object.keys(props)) {\n        if (shouldForwardProp(key)) {\n          htmlProps[key] = props[key];\n        }\n      }\n      return React.createElement(\n        Tag,\n        { ref, ...htmlProps },\n        children as React.ReactNode\n      );\n    }\n  );\n  Component.displayName = `Filtered(${defaultTag})`;\n  return Component;\n}\n","function memoize(fn) {\n  var cache = {};\n  return function (arg) {\n    if (cache[arg] === undefined) cache[arg] = fn(arg);\n    return cache[arg];\n  };\n}\n\nexport default memoize;\n","import memoize from '@emotion/memoize';\n\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar index = memoize(function (prop) {\n  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n  /* o */\n  && prop.charCodeAt(1) === 110\n  /* n */\n  && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport default index;\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\nimport { createFilteredElement } from \"./filterDOMProps\";\nimport { truncationStyles } from \"./textTruncation\";\n\nconst FilteredSpan = createFilteredElement(\"span\");\n\nconst StyledText = styled(FilteredSpan)<TextProps>`\n  color: ${(props) => props.color || \"inherit\"};\n  font-size: ${(props) =>\n    typeof props.fontSize === \"number\"\n      ? `${props.fontSize}px`\n      : props.fontSize || \"inherit\"};\n  font-weight: ${(props) => props.fontWeight || \"normal\"};\n  font-family: ${(props) =>\n    props.fontFamily ||\n    '\"Aktiv Grotesk\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif'};\n  line-height: ${(props) =>\n    typeof props.lineHeight === \"number\"\n      ? `${props.lineHeight}px`\n      : props.lineHeight || \"inherit\"};\n  white-space: ${(props) => props.whiteSpace || \"normal\"};\n  text-align: ${(props) => props.textAlign || \"inherit\"};\n  text-decoration: ${(props) => props.textDecoration || \"none\"};\n\n  /* Keep last: single-line truncation has to win over white-space above. */\n  ${(props) => truncationStyles(props.numberOfLines)}\n`;\n\nexport const Text: React.FC<TextProps> = ({\n  style,\n  className,\n  id,\n  role,\n  testID,\n  \"data-testid\": dataTestId,\n  ...props\n}) => {\n  return (\n    <StyledText\n      {...props}\n      style={style}\n      className={className}\n      id={id}\n      role={role}\n      data-testid={dataTestId || testID}\n    />\n  );\n};\n","/**\n * Web implementation of the cross-platform `numberOfLines` text prop.\n *\n * Native maps `numberOfLines` straight onto `RNText`. A web `<span>` has no\n * equivalent, so emit the CSS that produces the same result.\n *\n * Two details matter for the single-line case:\n * - `text-overflow` only takes effect on a block container, so the inline\n *   `<span>` is promoted to `display: block` and capped at `max-width: 100%`.\n * - `min-width: 0` lets the text shrink below its own content width when it\n *   sits in a flex row. Without it a `nowrap` label keeps its full intrinsic\n *   width and pushes its siblings (icons, chevrons) out of a fixed-width field.\n *\n * Returns an empty string when there is nothing to clamp, so the declaration\n * block stays untouched for the majority of callers.\n */\nexport const truncationStyles = (numberOfLines?: number): string => {\n  if (!numberOfLines || numberOfLines < 1) return \"\";\n\n  if (numberOfLines === 1) {\n    return `\n      display: block;\n      max-width: 100%;\n      min-width: 0;\n      overflow: hidden;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n    `;\n  }\n\n  return `\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: ${numberOfLines};\n    line-clamp: ${numberOfLines};\n    max-width: 100%;\n    min-width: 0;\n    overflow: hidden;\n  `;\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { LinearGradientProps } from \"@xsolla/xui-primitives-core\";\n\nfunction buildCssGradient(\n  colors: string[],\n  start: { x: number; y: number },\n  end: { x: number; y: number },\n  locations?: number[]\n): string {\n  const dx = end.x - start.x;\n  const dy = end.y - start.y;\n  const angle = Math.round((Math.atan2(dx, -dy) * 180) / Math.PI);\n\n  const stops = colors\n    .map((color, i) => {\n      const pct = locations\n        ? locations[i] * 100\n        : (i / (colors.length - 1)) * 100;\n      return `${color} ${pct}%`;\n    })\n    .join(\", \");\n\n  return `linear-gradient(${angle}deg, ${stops})`;\n}\n\nconst StyledGradient = styled.div<{ $gradient: string }>`\n  background: ${(props) => props.$gradient};\n`;\n\nexport const LinearGradient: React.FC<LinearGradientProps> = ({\n  colors,\n  start = { x: 0, y: 0 },\n  end = { x: 0, y: 1 },\n  locations,\n  children,\n  position,\n  top,\n  bottom,\n  left,\n  right,\n  width,\n  height,\n  borderRadius,\n  overflow,\n  zIndex,\n  style,\n  \"data-testid\": dataTestId,\n}) => {\n  const gradient = buildCssGradient(colors, start, end, locations);\n\n  const containerStyle: React.CSSProperties = {\n    position: position || undefined,\n    top: typeof top === \"number\" ? `${top}px` : top,\n    bottom: typeof bottom === \"number\" ? `${bottom}px` : bottom,\n    left: typeof left === \"number\" ? `${left}px` : left,\n    right: typeof right === \"number\" ? `${right}px` : right,\n    width: typeof width === \"number\" ? `${width}px` : width,\n    height: typeof height === \"number\" ? `${height}px` : height,\n    borderRadius:\n      typeof borderRadius === \"number\" ? `${borderRadius}px` : borderRadius,\n    overflow,\n    zIndex,\n    ...style,\n  };\n\n  return (\n    <StyledGradient\n      $gradient={gradient}\n      style={containerStyle}\n      data-testid={dataTestId}\n    >\n      {children}\n    </StyledGradient>\n  );\n};\n","export * from \"./Box\";\nexport * from \"./Text\";\nexport * from \"./Spinner\";\nexport * from \"./Icon\";\nexport * from \"./Divider\";\nexport * from \"./Input\";\nexport * from \"./TextArea\";\nexport * from \"./LinearGradient\";\n\nexport const isWeb = true;\nexport const isNative = false;\n"],"mappings":";AAAA,SAAgB,gBAAgB;;;ACAhC,OAAOA,YAAW;AAClB,OAAO,YAAY;;;ACDnB,OAAO,WAAW;;;ACAlB,SAAS,QAAQ,IAAI;AACnB,MAAI,QAAQ,CAAC;AACb,SAAO,SAAU,KAAK;AACpB,QAAI,MAAM,GAAG,MAAM,OAAW,OAAM,GAAG,IAAI,GAAG,GAAG;AACjD,WAAO,MAAM,GAAG;AAAA,EAClB;AACF;AAEA,IAAO,sBAAQ;;;ACNf,IAAI,kBAAkB;AAEtB,IAAI,QAAQ;AAAA,EAAQ,SAAU,MAAM;AAClC,WAAO,gBAAgB,KAAK,IAAI,KAAK,KAAK,WAAW,CAAC,MAAM,OAEzD,KAAK,WAAW,CAAC,MAAM,OAEvB,KAAK,WAAW,CAAC,IAAI;AAAA,EAC1B;AAAA;AAEA;AAEA,IAAO,4BAAQ;;;AFRR,IAAM,2BAA2B,oBAAI,IAAI;AAAA;AAAA,EAE9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAIA;AACF,CAAC;AAED,SAAS,kBAAkB,KAAsB;AAC/C,MAAI,yBAAyB,IAAI,GAAG,EA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