{"version":3,"file":"CatalogPageDatasetCard.vue.mjs","sources":["../../lib/catalogues/CatalogPageDatasetCard.vue"],"sourcesContent":["<template>\n    <div class=\"cp-dataset-card d-flex flex-column\">\n      <div class=\"cp-dataset-card-caption\">\n        <em>Empfehlung vom Datenbereitsteller</em>\n      </div>\n      <div class=\"cp-dataset-card-container d-flex flex-column justify-content-between\">\n          <div class=\"cp-dataset-card-text\">\n            <span class=\"cp-dataset-card-header\">{{ datasetTitle }}</span><br>\n  \n            <p v-if=\"datasetDescription\" class=\"cp-dataset-card-description\">\n              {{ descriptionMaxLength ? truncatedDescription : datasetDescription }}\n            </p>\n            <span v-else class=\"cp-dataset-card-description text-muted font-italic m-0\" data-cy=\"dataset-description\">\n                {{ $t(\"message.catalogsAndDatasets.noDescriptionAvailable\") }}\n            </span>\n          </div>\n          <div class=\"cp-dataset-card-icon\" role=\"button\">\n            <app-link :to=\"to\">\n              <img src=\"../assets/icon/icon-nextcircled.svg\" alt=\"Zum Datensatz\">\n            </app-link>\n          </div>\n\n        </div>\n    </div>\n</template>\n\n<script>\nimport AppLink from \"../widgets/AppLink\";\n  import { getTranslationFor, truncate } from '../utils/helpers';\n    export default {\n        name: \"DatasetCard\",\n        components: {\n            AppLink,\n        },\n        props: {\n        /**\n         * The dataset details to display.\n         */\n        datasetTitle: String,\n        datasetDescription: String,\n        datasetCatalog: String,\n\n        /**\n         * The route to navigate to when clicking on the dataset.\n         */\n        to: {\n          type: String,\n          required: true,\n        },\n\n        /**\n         * Specified the maximum length of the description before it is cut off.\n         */\n        descriptionMaxLength: {\n          type: Number,\n          default: 200,\n        },\n\n        cardIcon: String\n      },\n      computed: {\n        truncatedDescription() {\n          return this.descriptionMaxLength && truncate(this.datasetDescription, this.descriptionMaxLength);\n        },\n      },\n      methods: {\n          getTranslationFor,\n      },\n    }\n</script>\n\n<style lang=\"scss\">\n  .cp-dataset-card {\n    padding: 25px;\n    margin: 10px;\n    height: 500px;\n    width: 300px;\n    border-radius: 12px;\n    background-color: #F0EDED;\n  }\n  .cp-dataset-card-caption {\n    font-size: 13px;\n  }\n\n  .cp-dataset-card-container {\n    height: calc(100% - 20px);\n  }\n  .cp-dataset-card-text {\n    margin-top: 80px;\n    overflow: auto;\n    margin-bottom: 15px;\n  }\n\n  .cp-dataset-card-header {\n    font-size: 24px;\n    line-height: 125%;\n  }\n\n  .cp-dataset-card-description {\n    font-size: 16px;\n    margin-top: 10px;\n  }\n\n  .cp-dataset-card-icon {\n    text-align: end;\n  }\n  .cp-dataset-card-icon img {\n    width: 25px;\n    // filter: invert(15%) sepia(70%) saturate(2488%) hue-rotate(188deg) brightness(95%) contrast(102%);\n  }\n</style>"],"names":["_sfc_main","AppLink","truncate","getTranslationFor","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","$props","_hoisted_5","$options","_hoisted_6","_ctx","_hoisted_7","_createVNode","_component_app_link","_cache","_imports_0"],"mappings":";;;;;;AA6BI,MAAKA,IAAU;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA,IACR,SAAAC;AAAA,EACH;AAAA,EACD,OAAO;AAAA;AAAA;AAAA;AAAA,IAIP,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,gBAAgB;AAAA;AAAA;AAAA;AAAA,IAKhB,IAAI;AAAA,MACF,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA;AAAA;AAAA;AAAA,IAKD,sBAAsB;AAAA,MACpB,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IAED,UAAU;AAAA,EACX;AAAA,EACD,UAAU;AAAA,IACR,uBAAuB;AACrB,aAAO,KAAK,wBAAwBC,EAAS,KAAK,oBAAoB,KAAK,oBAAoB;AAAA,IAChG;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACL,mBAAAC;AAAA,EACH;AACH,GAnEKC,IAAA,EAAA,OAAM,qCAAoC,GAIxCC,IAAA,EAAA,OAAM,uEAAsE,GACxEC,IAAA,E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