{"version":3,"file":"deprecation.mjs","sources":["../../../../../../packages/components/popper/src/deprecation.ts"],"sourcesContent":["import { computed, getCurrentInstance } from 'vue'\nimport { useDeprecated } from '@element-plus/hooks'\nimport { isBoolean } from '@element-plus/utils'\n\nexport function useDeprecateAppendToBody(scope: string, from: string) {\n  const vm = getCurrentInstance()!\n\n  const compatTeleported = computed(() => {\n    return (\n      isBoolean(vm.props[from]) ? vm.props[from] : vm.props.teleported\n    ) as boolean\n  })\n\n  useDeprecated(\n    {\n      scope,\n      from,\n      replacement: 'teleported',\n      version: '2.1.0',\n      ref: 'https://element-plus.org/en-US/component/tooltip.html#attributes',\n    },\n    computed(() => isBoolean(vm.props[from]))\n  )\n\n  return {\n    compatTeleported,\n  }\n}\n"],"names":[],"mappings":";;;;;;AAGO,SAAS,wBAAwB,CAAC,KAAK,EAAE,IAAI,EAAE;AACtD,EAAE,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC;AAClC,EAAE,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM;AAC1C,IAAI,OAAO,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;AAC5E,GAAG,CAAC,CAAC;AACL,EAAE,aAAa,CAAC;AAChB,IAAI,KAAK;AACT,IAAI,IAAI;AACR,IAAI,WAAW,EAAE,YAAY;AAC7B,IAAI,OAAO,EAAE,OAAO;AACpB,IAAI,GAAG,EAAE,kEAAkE;AAC3E,GAAG,EAAE,QAAQ,CAAC,MAAM,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAChD,EAAE,OAAO;AACT,IAAI,gBAAgB;AACpB,GAAG,CAAC;AACJ;;;;"}