{"version":3,"sources":["jsdelivr-header.js","/npm/vb-tooltip@1.0.8/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,eAAgB,mBAEhB,6BAEQ,CACb,KAAM,UACN,UAAU,EAEV,MAAO,CACL,KAAM,OACN,KAAM,CACJ,KAAM,OACN,QAAS,SACT,UAAW,GAAS,CAAC,QAAS,SAAU,SAAS,SAAS,IAE5D,OAAQ,QACR,UAAW,QACX,QAAS,QACT,MAAO,CACL,KAAM,OACN,QAAS,IAEX,UAAW,CACT,KAAM,OACN,QAAS,WAIb,MAAA,GACE,IAAI,EAAW,KAAK,OAAO,QAC3B,IAAK,EACH,OAMF,GAFA,EAAW,EAAS,QAAO,GAAK,EAAE,OAE7B,EAAS,OACZ,OAGF,MAAM,EAAW,EAAS,GAqB1B,OAlBA,EAAS,KAAK,MAAQ,EAAS,KAAK,OAAS,CAAC,EAC9C,OAAO,OAAO,EAAS,KAAK,MAAO,CACjC,aAAc,KAAK,QAGrB,EAAS,KAAK,MAAQ,MAAM,QAAQ,EAAS,KAAK,OAAS,EAAS,KAAK,MAAQ,CAAC,EAAS,KAAK,OAChG,EAAS,KAAK,MAAM,KAAK,WACvB,UACA,YAAY,KAAK,YACjB,CACE,CAAC,YAAY,KAAK,QAAS,KAAK,KAChC,CAAC,YAAY,KAAK,QAAS,KAAK,KAChC,mBAAoB,KAAK,QACzB,kBAAmB,KAAK,OACxB,sBAAuB,KAAK,aAIzB,CACT,EAEA,MAAO,CACL,KAAA,CAAO,GACL,KAAK,IAAI,aAAa,aAAc,EACtC","file":"/npm/vb-tooltip@1.0.8/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/vb-tooltip@1.0.8/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import classNames from 'classnames'\n\nimport './style.scss'\n\nexport default {\n  name: 'tooltip',\n  abstract: true,\n\n  props: {\n    type: String,\n    size: {\n      type: String,\n      default: 'medium',\n      validator: value => ['small', 'medium', 'large'].includes(value)\n    },\n    always: Boolean,\n    noAnimate: Boolean,\n    rounded: Boolean,\n    label: {\n      type: String,\n      default: ''\n    },\n    placement: {\n      type: String,\n      default: 'bottom'\n    }\n  },\n\n  render () {\n    let children = this.$slots.default\n    if (!children) {\n      return\n    }\n\n    // filter out text nodes (possible whitespaces)\n    children = children.filter(c => c.tag)\n    /* istanbul ignore if */\n    if (!children.length) {\n      return\n    }\n\n    const rawChild = children[0]\n\n\n    rawChild.data.attrs = rawChild.data.attrs || {}\n    Object.assign(rawChild.data.attrs, {\n      'aria-label': this.label\n    })\n\n    rawChild.data.class = Array.isArray(rawChild.data.class) ? rawChild.data.class : [rawChild.data.class]\n    rawChild.data.class.push(classNames(\n      'tooltip',\n      `tooltip--${this.placement}`,\n      {\n        [`tooltip--${this.type}`]: this.type,\n        [`tooltip--${this.size}`]: this.size,\n        'tooltip--rounded': this.rounded,\n        'tooltip--always': this.always,\n        'tooltip--no-animate': this.noAnimate\n      }\n    ))\n\n    return rawChild\n  },\n\n  watch: {\n    label (val) {\n      this.$el.setAttribute('aria-label', val)\n    }\n  }\n\n}\n"]}