Files
nademitex_admin/dist/assets/CategoriesView-jQSu6NG7.js
T

1 line
17 KiB
JavaScript
Raw Normal View History

2026-09-24 20:14:11 +03:30
import{$ as e,B as t,C as n,Ct as r,G as i,J as a,N as o,Q as s,V as c,X as l,Z as u,dt as d,et as f,gt as p,ht as m,it as h,lt as g,rt as _,st as ee,tt as v,vt as y,yt as b,z as te}from"./index-B2VD3zy8.js";import{t as ne}from"./AdminPageSkeleton-BJpm6oxf.js";import{t as x}from"./BaseSwitch-dp2xMemS.js";import{t as S}from"./AdminImagePicker-C0OGC-bB.js";import{t as C}from"./AdminSelect-BeLNl2Qz.js";var w={class:`category-icon`,"aria-hidden":`true`},T=[`width`,`height`,`stroke`,`stroke-width`],E=[`width`,`height`,`stroke`,`stroke-width`],D=[`width`,`height`,`stroke`,`stroke-width`],O=[`width`,`height`,`stroke`],k=[`width`,`height`,`stroke`],A=[`width`,`height`,`stroke`],j=c(h({__name:`CategoryIcon`,props:{name:{},size:{default:18},color:{default:`currentColor`},strokeWidth:{default:1.5}},setup(n){let r=n,i={bolt:`vuesax-linear:flash`,feather:`vuesax-linear:pen-add`,diamond:`vuesax-linear:diamonds`,grid:`vuesax-linear:element-3`,bag:`vuesax-linear:shopping-bag`,weight:`vuesax-linear:shopping-bag`,"id-card":`vuesax-linear:personalcard`,catalog:`vuesax-linear:category`,headset:`vuesax-linear:headphone`,home:`vuesax-linear:home`},a=l(()=>i[r.name]);return(r,i)=>(g(),f(`span`,w,[a.value?(g(),s(t,{key:0,icon:a.value,size:n.size,"stroke-width":n.strokeWidth,color:n.color},null,8,[`icon`,`size`,`stroke-width`,`color`])):n.name===`shirt`?(g(),f(`svg`,{key:1,width:n.size,height:n.size,viewBox:`0 0 24 24`,fill:`none`,stroke:n.color,"stroke-width":n.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...i[0]||=[u(`path`,{d:`M8.25 5.25 12 7.75l3.75-2.5 2.25 2.75L16 9.5V18.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V9.5L6 8l2.25-2.75Z`},null,-1),u(`path`,{d:`M12 7.75V18.5`},null,-1)]],8,T)):n.name===`suit`?(g(),f(`svg`,{key:2,width:n.size,height:n.size,viewBox:`0 0 24 24`,fill:`none`,stroke:n.color,"stroke-width":n.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...i[1]||=[u(`path`,{d:`M7.5 5.5h9l2 3v10.5a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V8.5l2-3Z`},null,-1),u(`path`,{d:`M12 5.5v13`},null,-1),u(`path`,{d:`M7.5 9 12 11.75 16.5 9`},null,-1),u(`path`,{d:`M10.25 5.5V4a1.75 1.75 0 0 1 3.5 0v1.5`},null,-1)]],8,E)):n.name===`trousers`?(g(),f(`svg`,{key:3,width:n.size,height:n.size,viewBox:`0 0 24 24`,fill:`none`,stroke:n.color,"stroke-width":n.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...i[2]||=[u(`path`,{d:`M8 4.5h8v4.25l-1.75 11H13l-1-9.5-1 9.5H7.75L6 8.75V4.5Z`},null,-1),u(`path`,{d:`M12 8.75v11`},null,-1),u(`path`,{d:`M8 7.25h8`},null,-1)]],8,D)):n.name===`ruler`?(g(),f(`svg`,{key:4,width:n.size,height:n.size,viewBox:`0 0 24 24`,fill:`none`,stroke:n.color,"stroke-width":`1.6`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...i[3]||=[v(`<rect x="3" y="8" width="18" height="8" rx="1.5" data-v-76e4dc13></rect><path d="M7 8v3" data-v-76e4dc13></path><path d="M10 8v4" data-v-76e4dc13></path><path d="M13 8v3" data-v-76e4dc13></path><path d="M16 8v4" data-v-76e4dc13></path>`,5)]],8,O)):n.name===`composition`?(g(),f(`svg`,{key:5,width:n.size,height:n.size,viewBox:`0 0 24 24`,fill:`none`,stroke:n.color,"stroke-width":`1.6`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...i[4]||=[u(`path`,{d:`M12 3.5 20 8v8l-8 4.5L4 16V8l8-4.5Z`},null,-1)]],8,k)):n.name===`weave`?(g(),f(`svg`,{key:6,width:n.size,height:n.size,viewBox:`0 0 24 24`,fill:`none`,stroke:n.color,"stroke-width":`1.6`,"stroke-linecap":`round`},[...i[5]||=[v(`<path d="M6 4v16" data-v-76e4dc13></path><path d="M10 4v16" data-v-76e4dc13></path><path d="M14 4v16" data-v-76e4dc13></path><path d="M18 4v16" data-v-76e4dc13></path><path d="M4 8h16" data-v-76e4dc13></path><path d="M4 12h16" data-v-76e4dc13></path><path d="M4 16h16" data-v-76e4dc13></path>`,7)]],8,A)):e(``,!0)]))}}),[[`__scopeId`,`data-v-76e4dc13`]]),re={class:`categories-admin`},ie={class:`admin-page-header`},ae=[`disabled`],oe={key:1,class:`categories-admin__grid`},se={class:`admin-card categories-panel`},ce={class:`categories-panel__head`},le={key:0,class:`categories-panel__add`},ue={key:1,class:`categories-panel__empty`},M={key:2,class:`categories-panel__list`},N={class:`catego