{"ast":null,"code":"\"use client\";\n\nimport { resetComponent } from '../../style';\nimport { initZoomMotion } from '../../style/motion';\nimport getArrowStyle from '../../style/placementArrow';\nimport { PresetColors, genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    popoverColor,\n    titleMinWidth,\n    fontWeightStrong,\n    popoverPadding,\n    boxShadowSecondary,\n    colorTextHeading,\n    borderRadiusLG: borderRadius,\n    zIndexPopup,\n    marginXS,\n    colorBgElevated,\n    popoverBg\n  } = token;\n  return [{\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: 0,\n      // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n      left: {\n        _skip_check_: true,\n        value: 0\n      },\n      zIndex: zIndexPopup,\n      fontWeight: 'normal',\n      whiteSpace: 'normal',\n      textAlign: 'start',\n      cursor: 'auto',\n      userSelect: 'text',\n      transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`,\n      '--antd-arrow-background-color': colorBgElevated,\n      '&-rtl': {\n        direction: 'rtl'\n      },\n      '&-hidden': {\n        display: 'none'\n      },\n      [`${componentCls}-content`]: {\n        position: 'relative'\n      },\n      [`${componentCls}-inner`]: {\n        backgroundColor: popoverBg,\n        backgroundClip: 'padding-box',\n        borderRadius,\n        boxShadow: boxShadowSecondary,\n        padding: popoverPadding\n      },\n      [`${componentCls}-title`]: {\n        minWidth: titleMinWidth,\n        marginBottom: marginXS,\n        color: colorTextHeading,\n        fontWeight: fontWeightStrong\n      },\n      [`${componentCls}-inner-content`]: {\n        color: popoverColor\n      }\n    })\n  },\n  // Arrow Style\n  getArrowStyle(token, {\n    colorBg: 'var(--antd-arrow-background-color)'\n  }),\n  // Pure Render\n  {\n    [`${componentCls}-pure`]: {\n      position: 'relative',\n      maxWidth: 'none',\n      margin: token.sizePopupArrow,\n      display: 'inline-block',\n      [`${componentCls}-content`]: {\n        display: 'inline-block'\n      }\n    }\n  }];\n};\nconst genColorStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: PresetColors.map(colorKey => {\n      const lightColor = token[`${colorKey}6`];\n      return {\n        [`&${componentCls}-${colorKey}`]: {\n          '--antd-arrow-background-color': lightColor,\n          [`${componentCls}-inner`]: {\n            backgroundColor: lightColor\n          },\n          [`${componentCls}-arrow`]: {\n            background: 'transparent'\n          }\n        }\n      };\n    })\n  };\n};\nconst genWireframeStyle = token => {\n  const {\n    componentCls,\n    lineWidth,\n    lineType,\n    colorSplit,\n    paddingSM,\n    controlHeight,\n    fontSize,\n    lineHeight,\n    padding\n  } = token;\n  const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);\n  const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n  const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n  const popoverPaddingHorizontal = padding;\n  return {\n    [componentCls]: {\n      [`${componentCls}-inner`]: {\n        padding: 0\n      },\n      [`${componentCls}-title`]: {\n        margin: 0,\n        padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,\n        borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`\n      },\n      [`${componentCls}-inner-content`]: {\n        padding: `${paddingSM}px ${popoverPaddingHorizontal}px`\n      }\n    }\n  };\n};\nexport default genComponentStyleHook('Popover', token => {\n  const {\n    colorBgElevated,\n    colorText,\n    wireframe\n  } = token;\n  const popoverToken = mergeToken(token, {\n    popoverPadding: 12,\n    popoverBg: colorBgElevated,\n    popoverColor: colorText\n  });\n  return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, token => ({\n  width: 177,\n  minWidth: 177,\n  titleMinWidth: 177,\n  zIndexPopup: token.zIndexPopupBase + 30\n}), {\n  resetStyle: false,\n  deprecatedTokens: [['width', 'titleMinWidth'], ['minWidth', 'titleMinWidth']]\n});","map":{"version":3,"names":["resetComponent","initZoomMotion","getArrowStyle","PresetColors","genComponentStyleHook","mergeToken","genBaseStyle","token","componentCls","popoverColor","titleMinWidth","fontWeightStrong","popoverPadding","boxShadowSecondary","colorTextHeading","borderRadiusLG","borderRadius","zIndexPopup","marginXS","colorBgElevated","popoverBg","Object","assign","position","top","left","_skip_check_","value","zIndex","fontWeight","whiteSpace","textAlign","cursor","userSelect","transformOrigin","direction","display","backgroundColor","backgroundClip","boxShadow","padding","minWidth","marginBottom","color","colorBg","maxWidth","margin","sizePopupArrow","genColorStyle","map","colorKey","lightColor","background","genWireframeStyle","lineWidth","lineType","colorSplit","paddingSM","controlHeight","fontSize","lineHeight","titlePaddingBlockDist","Math","round","popoverTitlePaddingBlockTop","popoverTitlePaddingBlockBottom","popoverPaddingHorizontal","borderBottom","colorText","wireframe","popoverToken","width","zIndexPopupBase","resetStyle","deprecatedTokens"],"sources":["/Users/chrishaack/UC_Trains_Voice/react-demo/node_modules/antd/es/popover/style/index.js"],"sourcesContent":["\"use client\";\n\nimport { resetComponent } from '../../style';\nimport { initZoomMotion } from '../../style/motion';\nimport getArrowStyle from '../../style/placementArrow';\nimport { PresetColors, genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    popoverColor,\n    titleMinWidth,\n    fontWeightStrong,\n    popoverPadding,\n    boxShadowSecondary,\n    colorTextHeading,\n    borderRadiusLG: borderRadius,\n    zIndexPopup,\n    marginXS,\n    colorBgElevated,\n    popoverBg\n  } = token;\n  return [{\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: 0,\n      // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n      left: {\n        _skip_check_: true,\n        value: 0\n      },\n      zIndex: zIndexPopup,\n      fontWeight: 'normal',\n      whiteSpace: 'normal',\n      textAlign: 'start',\n      cursor: 'auto',\n      userSelect: 'text',\n      transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`,\n      '--antd-arrow-background-color': colorBgElevated,\n      '&-rtl': {\n        direction: 'rtl'\n      },\n      '&-hidden': {\n        display: 'none'\n      },\n      [`${componentCls}-content`]: {\n        position: 'relative'\n      },\n      [`${componentCls}-inner`]: {\n        backgroundColor: popoverBg,\n        backgroundClip: 'padding-box',\n        borderRadius,\n        boxShadow: boxShadowSecondary,\n        padding: popoverPadding\n      },\n      [`${componentCls}-title`]: {\n        minWidth: titleMinWidth,\n        marginBottom: marginXS,\n        color: colorTextHeading,\n        fontWeight: fontWeightStrong\n      },\n      [`${componentCls}-inner-content`]: {\n        color: popoverColor\n      }\n    })\n  },\n  // Arrow Style\n  getArrowStyle(token, {\n    colorBg: 'var(--antd-arrow-background-color)'\n  }),\n  // Pure Render\n  {\n    [`${componentCls}-pure`]: {\n      position: 'relative',\n      maxWidth: 'none',\n      margin: token.sizePopupArrow,\n      display: 'inline-block',\n      [`${componentCls}-content`]: {\n        display: 'inline-block'\n      }\n    }\n  }];\n};\nconst genColorStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: PresetColors.map(colorKey => {\n      const lightColor = token[`${colorKey}6`];\n      return {\n        [`&${componentCls}-${colorKey}`]: {\n          '--antd-arrow-background-color': lightColor,\n          [`${componentCls}-inner`]: {\n            backgroundColor: lightColor\n          },\n          [`${componentCls}-arrow`]: {\n            background: 'transparent'\n          }\n        }\n      };\n    })\n  };\n};\nconst genWireframeStyle = token => {\n  const {\n    componentCls,\n    lineWidth,\n    lineType,\n    colorSplit,\n    paddingSM,\n    controlHeight,\n    fontSize,\n    lineHeight,\n    padding\n  } = token;\n  const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);\n  const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n  const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n  const popoverPaddingHorizontal = padding;\n  return {\n    [componentCls]: {\n      [`${componentCls}-inner`]: {\n        padding: 0\n      },\n      [`${componentCls}-title`]: {\n        margin: 0,\n        padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,\n        borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`\n      },\n      [`${componentCls}-inner-content`]: {\n        padding: `${paddingSM}px ${popoverPaddingHorizontal}px`\n      }\n    }\n  };\n};\nexport default genComponentStyleHook('Popover', token => {\n  const {\n    colorBgElevated,\n    colorText,\n    wireframe\n  } = token;\n  const popoverToken = mergeToken(token, {\n    popoverPadding: 12,\n    popoverBg: colorBgElevated,\n    popoverColor: colorText\n  });\n  return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, token => ({\n  width: 177,\n  minWidth: 177,\n  titleMinWidth: 177,\n  zIndexPopup: token.zIndexPopupBase + 30\n}), {\n  resetStyle: false,\n  deprecatedTokens: [['width', 'titleMinWidth'], ['minWidth', 'titleMinWidth']]\n});"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,cAAc,QAAQ,aAAa;AAC5C,SAASC,cAAc,QAAQ,oBAAoB;AACnD,OAAOC,aAAa,MAAM,4BAA4B;AACtD,SAASC,YAAY,EAAEC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACtF,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IACJC,YAAY;IACZC,YAAY;IACZC,aAAa;IACbC,gBAAgB;IAChBC,cAAc;IACdC,kBAAkB;IAClBC,gBAAgB;IAChBC,cAAc,EAAEC,YAAY;IAC5BC,WAAW;IACXC,QAAQ;IACRC,eAAe;IACfC;EACF,CAAC,GAAGb,KAAK;EACT,OAAO,CAAC;IACN,CAACC,YAAY,GAAGa,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEtB,cAAc,CAACO,KAAK,CAAC,CAAC,EAAE;MACtEgB,QAAQ,EAAE,UAAU;MACpBC,GAAG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