1 line
3.5 KiB
JavaScript
1 line
3.5 KiB
JavaScript
import{Ct as e,E as t,I as n,L as r,M as i,Y as a,k as o,n as s,q as c,xt as l}from"./BasicIcon-CjTTsi6o.js";var u=s(r({__name:`SkeletonBlock`,props:{width:{default:`100%`},height:{default:`14px`},radius:{default:`8px`},circle:{type:Boolean,default:!1}},setup(t){return(n,r)=>(c(),i(`span`,{class:l([`sk`,{"sk--circle":t.circle}]),style:e({width:t.width,height:t.height,borderRadius:t.circle?`50%`:t.radius}),"aria-hidden":`true`},null,6))}}),[[`__scopeId`,`data-v-eee3758f`]]),d={class:`page-skeleton`,role:`status`,"aria-live":`polite`,"aria-busy":`true`,"aria-label":`در حال بارگذاری`},f={class:`page-skeleton__banner`},p={class:`page-skeleton__quick`},m={class:`page-skeleton__grid`},h={class:`page-skeleton__profile-hero`},g={class:`page-skeleton__panel`},_={class:`page-skeleton__list`},v={class:`page-skeleton__row-text`},y={class:`page-skeleton__detail-body`},b={class:`page-skeleton__chips`},x={class:`page-skeleton__grid`},S={key:4,class:`page-skeleton__form`},C={key:5,class:`page-skeleton__list`},w={class:`page-skeleton__row-text`},T=s(r({__name:`PageSkeleton`,props:{variant:{default:`list`},rows:{default:4}},setup(e){return(r,s)=>(c(),i(`div`,d,[e.variant===`home`?(c(),i(t,{key:0},[o(`div`,f,[n(u,{height:`148px`,radius:`16px`})]),o(`div`,p,[(c(),i(t,null,a(4,e=>o(`div`,{key:`q-${e}`,class:`page-skeleton__quick-item`},[n(u,{circle:``,width:`48px`,height:`48px`}),n(u,{width:`64%`,height:`10px`})])),64))]),n(u,{width:`40%`,height:`16px`}),o(`div`,m,[(c(),i(t,null,a(4,e=>o(`div`,{key:`g-${e}`,class:`page-skeleton__card`},[n(u,{height:`110px`,radius:`12px`}),n(u,{width:`80%`,height:`12px`}),n(u,{width:`50%`,height:`10px`})])),64))])],64)):e.variant===`profile`?(c(),i(t,{key:1},[o(`div`,h,[n(u,{circle:``,width:`72px`,height:`72px`}),n(u,{width:`45%`,height:`18px`}),n(u,{width:`30%`,height:`12px`})]),o(`div`,g,[(c(),i(t,null,a(4,e=>o(`div`,{key:`s-${e}`,class:`page-skeleton__stat`},[n(u,{width:`50%`,height:`10px`}),n(u,{width:`70%`,height:`18px`})])),64))]),o(`div`,_,[(c(),i(t,null,a(5,e=>o(`div`,{key:`m-${e}`,class:`page-skeleton__row`},[n(u,{circle:``,width:`36px`,height:`36px`}),o(`div`,v,[n(u,{width:`55%`,height:`12px`}),n(u,{width:`35%`,height:`10px`})])])),64))])],64)):e.variant===`detail`?(c(),i(t,{key:2},[n(u,{height:`220px`,radius:`0`}),o(`div`,y,[n(u,{width:`70%`,height:`20px`}),n(u,{width:`40%`,height:`12px`}),n(u,{height:`72px`,radius:`12px`}),n(u,{width:`100%`,height:`12px`}),n(u,{width:`92%`,height:`12px`}),n(u,{width:`85%`,height:`12px`}),n(u,{height:`48px`,radius:`12px`})])],64)):e.variant===`grid`||e.variant===`cards`?(c(),i(t,{key:3},[n(u,{width:`55%`,height:`16px`}),o(`div`,b,[(c(),i(t,null,a(4,e=>n(u,{key:`c-${e}`,width:`72px`,height:`32px`,radius:`999px`})),64))]),o(`div`,x,[(c(!0),i(t,null,a(e.rows,e=>(c(),i(`div`,{key:`card-${e}`,class:`page-skeleton__card`},[n(u,{height:`120px`,radius:`12px`}),n(u,{width:`85%`,height:`12px`}),n(u,{width:`55%`,height:`10px`})]))),128))])],64)):e.variant===`form`?(c(),i(`div`,S,[(c(!0),i(t,null,a(e.rows,e=>(c(),i(`div`,{key:`f-${e}`,class:`page-skeleton__field`},[n(u,{width:`30%`,height:`10px`}),n(u,{height:`44px`,radius:`10px`})]))),128)),n(u,{height:`48px`,radius:`12px`})])):(c(),i(`div`,C,[(c(!0),i(t,null,a(e.rows,e=>(c(),i(`div`,{key:`r-${e}`,class:`page-skeleton__row page-skeleton__row--card`},[n(u,{circle:``,width:`40px`,height:`40px`}),o(`div`,w,[n(u,{width:`62%`,height:`13px`}),n(u,{width:`42%`,height:`10px`}),n(u,{width:`28%`,height:`10px`})])]))),128))]))]))}}),[[`__scopeId`,`data-v-d4bc3a38`]]);export{T as t}; |