{"version":3,"file":"Link.cjs","sources":["../../../../../../packages/components/typography/src/Link.tsx"],"sourcesContent":["import type { FunctionalComponent } from 'vue';\nimport type { LinkProps } from './props';\nimport { devWarning } from '@antdv/utils';\nimport Base from './Base';\nimport { linkProps } from './props';\n\nconst Link: FunctionalComponent<LinkProps> = (props, { slots, attrs }) => {\n  const { ellipsis, rel, ...restProps } = { ...props, ...attrs };\n  devWarning(\n    typeof ellipsis !== 'object',\n    'Typography.Link',\n    '`ellipsis` only supports boolean value.',\n  );\n  const mergedProps = {\n    ...restProps,\n    rel: (rel === undefined && restProps.target === '_blank') ? 'noopener noreferrer' : rel,\n    ellipsis: !!ellipsis,\n    component: 'a',\n  };\n  // https://github.com/ant-design/ant-design/issues/26622\n\n  // @ts-expect-error\n  delete mergedProps.navigate;\n\n  return <Base {...mergedProps} v-slots={slots}></Base>;\n};\n\nLink.displayName = 'ATypographyLink';\nLink.inheritAttrs = false;\nLink.props = linkProps();\n\nexport default Link;\n"],"names":["Link","props","slots","attrs","ellipsis","rel","restProps","devWarning","mergedProps","undefined","target","component","navigate","_createVNode","Base","displayName","inheritAttrs","linkProps"],"mappings":";;;;;;;;;;AAMMA,MAAAA,IAAAA,GAAuCA,CAACC,KAAO,EAAA;AAAA,EAAEC,KAAAA;AAAAA,EAAOC,KAAAA;AAAM,CAAM,KAAA;AACxE,EAAM,MAAA;AAAA,IAAEC,QAAAA;AAAAA,IAAUC,GAAAA;AAAAA,IAAK,GAAGC,SAAAA;AAAAA,GAAc,GAAA;AAAA,IAAE,GAAGL,KAAAA;AAAAA,IAAO,GAAGE,KAAAA;AAAAA,GAAM,CAAA;AAC7DI,EAAAA,cAAAA,CACE,OAAOH,QAAAA,KAAa,QACpB,EAAA,iBAAA,EACA,yCACF,CAAA,CAAA;AACA,EAAA,MAAMI,WAAc,GAAA;AAAA,IAClB,GAAGF,SAAAA;AAAAA,IACHD,KAAMA,GAAQI,KAAAA,KAAAA,CAAAA,IAAaH,SAAUI,CAAAA,MAAAA,KAAW,WAAY,qBAAwBL,GAAAA,GAAAA;AAAAA,IACpFD,QAAAA,EAAU,CAAC,CAACA,QAAAA;AAAAA,IACZO,SAAW,EAAA,GAAA;AAAA,GACb,CAAA;AAIA,EAAA,OAAOH,WAAYI,CAAAA,QAAAA,CAAAA;AAEnB,EAAAC,OAAAA,eAAAA,CAAAC,YAAiBN,EAAAA,WAAAA,EAAsBN,KAAK,CAAA,CAAA;AAC9C,EAAA;AAEAF,IAAAA,CAAKe,WAAc,GAAA,iBAAA,CAAA;AACnBf,IAAAA,CAAKgB,YAAe,GAAA,KAAA,CAAA;AACpBhB,IAAAA,CAAKC,QAAQgB,eAAU,EAAA;;;;"}