"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./skeleton-constants.cjs"),o=require("../../common/mixins/skeleton.cjs"),t=require("vue"),i=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),d={compatConfig:{MODE:3},name:"DtSkeletonText",mixins:[o.default],props:{type:{type:String,default:"body",validator:n=>l.SKELETON_TEXT_TYPES.includes(n)},headingHeight:{type:String,default:"md",validator:n=>Object.keys(l.SKELETON_HEADING_HEIGHTS).includes(n)},width:{type:String,default:"100%"},animationDuration:{type:Number,default:-1},animate:{type:Boolean,default:!1},offset:{type:Number,default:1},contentClass:{type:String,default:""}},data(){return{SKELETON_HEADING_HEIGHTS:l.SKELETON_HEADING_HEIGHTS}}};function s(n,u,e,c,a,m){return e.type==="body"?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"skeleton","data-qa":"skeleton-text-body",class:t.normalizeClass(["d-skeleton-text","d-skeleton-placeholder",{"d-skeleton-placeholder--animate":e.animate},e.contentClass]),style:t.normalizeStyle({width:e.width,...n.skeletonStyle})},null,6)):e.type==="heading"?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"skeleton","data-qa":"skeleton-text-heading",class:t.normalizeClass([a.SKELETON_HEADING_HEIGHTS[e.headingHeight],"d-skeleton-text--heading","d-skeleton-placeholder",{"d-skeleton-placeholder--animate":e.animate},e.contentClass]),style:t.normalizeStyle({width:e.width,...n.skeletonStyle})},null,6)):t.createCommentVNode("",!0)}const r=i._(d,[["render",s]]);exports.default=r;
//# sourceMappingURL=skeleton-text.cjs.map
