1 line
3.5 KiB
JavaScript
1 line
3.5 KiB
JavaScript
import{Ct as e,O as t,P as n,R as r,Tt as i,Y as a,Z as o,j as s,n as c,z as l}from"./BasicIcon-C6boaehV.js";var u=c(l({__name:`SkeletonBlock`,props:{width:{default:`100%`},height:{default:`14px`},radius:{default:`8px`},circle:{type:Boolean,default:!1}},setup(t){return(r,o)=>(a(),n(`span`,{class:e([`sk`,{"sk--circle":t.circle}]),style:i({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=c(l({__name:`PageSkeleton`,props:{variant:{default:`list`},rows:{default:4}},setup(e){return(i,c)=>(a(),n(`div`,d,[e.variant===`home`?(a(),n(t,{key:0},[s(`div`,f,[r(u,{height:`148px`,radius:`16px`})]),s(`div`,p,[(a(),n(t,null,o(4,e=>s(`div`,{key:`q-${e}`,class:`page-skeleton__quick-item`},[r(u,{circle:``,width:`48px`,height:`48px`}),r(u,{width:`64%`,height:`10px`})])),64))]),r(u,{width:`40%`,height:`16px`}),s(`div`,m,[(a(),n(t,null,o(4,e=>s(`div`,{key:`g-${e}`,class:`page-skeleton__card`},[r(u,{height:`110px`,radius:`12px`}),r(u,{width:`80%`,height:`12px`}),r(u,{width:`50%`,height:`10px`})])),64))])],64)):e.variant===`profile`?(a(),n(t,{key:1},[s(`div`,h,[r(u,{circle:``,width:`72px`,height:`72px`}),r(u,{width:`45%`,height:`18px`}),r(u,{width:`30%`,height:`12px`})]),s(`div`,g,[(a(),n(t,null,o(4,e=>s(`div`,{key:`s-${e}`,class:`page-skeleton__stat`},[r(u,{width:`50%`,height:`10px`}),r(u,{width:`70%`,height:`18px`})])),64))]),s(`div`,_,[(a(),n(t,null,o(5,e=>s(`div`,{key:`m-${e}`,class:`page-skeleton__row`},[r(u,{circle:``,width:`36px`,height:`36px`}),s(`div`,v,[r(u,{width:`55%`,height:`12px`}),r(u,{width:`35%`,height:`10px`})])])),64))])],64)):e.variant===`detail`?(a(),n(t,{key:2},[r(u,{height:`220px`,radius:`0`}),s(`div`,y,[r(u,{width:`70%`,height:`20px`}),r(u,{width:`40%`,height:`12px`}),r(u,{height:`72px`,radius:`12px`}),r(u,{width:`100%`,height:`12px`}),r(u,{width:`92%`,height:`12px`}),r(u,{width:`85%`,height:`12px`}),r(u,{height:`48px`,radius:`12px`})])],64)):e.variant===`grid`||e.variant===`cards`?(a(),n(t,{key:3},[r(u,{width:`55%`,height:`16px`}),s(`div`,b,[(a(),n(t,null,o(4,e=>r(u,{key:`c-${e}`,width:`72px`,height:`32px`,radius:`999px`})),64))]),s(`div`,x,[(a(!0),n(t,null,o(e.rows,e=>(a(),n(`div`,{key:`card-${e}`,class:`page-skeleton__card`},[r(u,{height:`120px`,radius:`12px`}),r(u,{width:`85%`,height:`12px`}),r(u,{width:`55%`,height:`10px`})]))),128))])],64)):e.variant===`form`?(a(),n(`div`,S,[(a(!0),n(t,null,o(e.rows,e=>(a(),n(`div`,{key:`f-${e}`,class:`page-skeleton__field`},[r(u,{width:`30%`,height:`10px`}),r(u,{height:`44px`,radius:`10px`})]))),128)),r(u,{height:`48px`,radius:`12px`})])):(a(),n(`div`,C,[(a(!0),n(t,null,o(e.rows,e=>(a(),n(`div`,{key:`r-${e}`,class:`page-skeleton__row page-skeleton__row--card`},[r(u,{circle:``,width:`40px`,height:`40px`}),s(`div`,w,[r(u,{width:`62%`,height:`13px`}),r(u,{width:`42%`,height:`10px`}),r(u,{width:`28%`,height:`10px`})])]))),128))]))]))}}),[[`__scopeId`,`data-v-d4bc3a38`]]);export{T as t}; |