import{jsx as e}from"react/jsx-runtime";import s from"classnames";import{BEMClass as t}from"../../helpers/bem-helper.js";import{SKELETON_TYPES as i,SKELETON_ALLOWED_TYPES as r,SKELETON_ALLOWED_SIZES as a,SKELETON_CUSTOM_SIZE as l,SKELETON_SIZES as o}from"./SkeletonConstants.js";import"./Skeleton.scss.js";var n=t("l3-style-skeleton"),m=function(t){var m=t.type,p=void 0===m?i.RECTANGLE:m,c=t.size,d=void 0===c?o.CUSTOM:c,h=t.className,f=t.width,v=t.height,j=r.indexOf(p)>-1?p:i.RECTANGLE,y=j.toUpperCase(),C=a[y].indexOf(d)>-1?d:l;return e("div",Object.assign({className:"l3-style-skeleton"},{children:e("div",{className:s(n({element:j}),n({element:j,state:C}),h),style:{width:f,height:v}})}))};Object.assign(m,{types:i,sizes:o});var p=m;export{p as default};
