{"version":3,"file":"PvDataInfoBoxDescription.vue.mjs","sources":["../../lib/PvDataInfoBox/PvDataInfoBoxDescription.vue"],"sourcesContent":["<template>\n  <div>\n    <p\n      v-if=\"description\"\n      class=\"dataset-info-box-description m-0\"\n    >\n      {{\n        descriptionMaxLength\n          ? truncatedDescription\n          : description\n      }}\n    </p>\n    <span v-else>\n      <p class=\"text-muted font-italic m-0\" data-cy=\"dataset-description\">\n        {{ $t(\"message.catalogsAndDatasets.noDescriptionAvailable\") }}\n      </p>\n    </span>\n  </div>\n</template>\n\n<script>\nimport { truncate } from '../utils/helpers';\n\nexport default {\n  props: {\n    description: {\n      type: String,\n      default: null,\n    },\n    descriptionMaxLength: {\n      type: Number,\n      default: null,\n    },\n  },\n\n  computed: {\n    truncatedDescription() {\n      return this.descriptionMaxLength && truncate(this.description, this.descriptionMaxLength);\n    },\n  }\n};\n</script>\n"],"names":["_sfc_main","truncate","_createElementBlock","$props","_hoisted_1","_toDisplayString","$options","_hoisted_2","_createElementVNode","_hoisted_3","_ctx"],"mappings":";;;AAuBA,MAAKA,IAAU;AAAA,EACb,OAAO;AAAA,IACL,aAAa;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,sBAAsB;AAAA,MACpB,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EAED,UAAU;AAAA,IACR,uBAAuB;AACrB,aAAO,KAAK,wBAAwBC,EAAS,KAAK,aAAa,KAAK,oBAAoB;AAAA,IACzF;AAAA,EACH;AACF;;EApCM,OAAM;;EASH,OAAM;AAAA,EAA6B,WAAQ;;;cAZlDC,EAgBM,OAAA,MAAA;AAAA,IAdIC,EAAW,oBADnBD,EASI,KATJE,GASIC,EAJAF,EAAoB,uBAAaG,EAAoB,uBAAaH,EAAW,WAAA,GAAA,CAAA,WAKjFD,EAIO,QAAAK,GAAA;AAAA,MAHLC,EAEI,KAFJC,GAEIJ,EADCK,EAAE,GAAA,oDAAA,CAAA,GAAA,CAAA;AAAA;;;;"}