1import{c as a}from"./index-Be1fzYNM.js";import{s}from"./index-Cj-MKxgU.js";import{B as l,c as p,o as u,m as d}from"./index-DNDZJpky.js";var m=({dt:e})=>` 2.p-skeleton { 3 overflow: hidden; 4 background: ${e("skeleton.background")}; 5 border-radius: ${e("skeleton.border.radius")}; 6} 7 8.p-skeleton::after { 9 content: ""; 10 animation: p-skeleton-animation 1.2s infinite; 11 height: 100%; 12 left: 0; 13 position: absolute; 14 right: 0; 15 top: 0; 16 transform: translateX(-100%); 17 z-index: 1; 18 background: linear-gradient(90deg, rgba(255, 255, 255, 0), ${e("skeleton.animation.background")}, rgba(255, 255, 255, 0)); 19} 20 21[dir='rtl'] .p-skeleton::after { 22 animation-name: p-skeleton-animation-rtl; 23} 24 25.p-skeleton-circle { 26 border-radius: 50%; 27} 28 29.p-skeleton-animation-none::after { 30 animation: none; 31} 32 33@keyframes p-skeleton-animation { 34 from { 35 transform: translateX(-100%); 36 } 37 to { 38 transform: translateX(100%); 39 } 40} 41 42@keyframes p-skeleton-animation-rtl { 43 from { 44 transform: translateX(100%); 45 } 46 to { 47 transform: translateX(-100%); 48 } 49} 50`,c={root:{position:"relative"}},f={root:function(n){var t=n.props;return["p-skeleton p-component",{"p-skeleton-circle":t.shape==="circle","p-skeleton-animation-none":t.animation==="none"}]}},y=l.extend({name:"skeleton",style:m,classes:f,inlineStyles:c}),h={name:"BaseSkeleton",extends:s,props:{shape:{type:String,default:"rectangle"},size:{type:String,default:null},width:{type:String,default:"100%"},height:{type:String,default:"1rem"},borderRadius:{type:String,default:null},animation:{type:String,default:"wave"}},style:y,provide:function(){return{$pcSkeleton:this,$parentInstance:this}}};function r(e){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r(e)}function b(e,n,t){return(n=k(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(e){var n=g(e,"string");return r(n)=="symbol"?n:n+""}function g(e,n){if(r(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var o=t.call(e,n);if(r(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var v={name:"Skeleton",extends:h,inheritAttrs:!1,computed:{containerStyle:function(){return this.size?{width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius}},dataP:function(){return a(b({},this.shape,this.shape))}}},S=["data-p"];function P(e,n,t,o,w,i){return u(),p("div",d({class:e.cx("root"),style:[e.sx("root"),i.containerStyle],"aria-hidden":"true"},e.ptmi("root"),{"data-p":i.dataP}),null,16,S)}v.render=P;export{v as s};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.