PageSourceSearch

https://panel.amadast.com/assets/AppsList-BZXc2P4J.js

js amadast.com collected 2026-09-28 09:00:29 UTC 3,010 bytes, 2 lines download raw bytes

1import{a as T,_ as r}from"./BTableCol-DUrrIe7f.js";import w from"./BaseSwitch-BhkDORwu.js";import{ds as x,aU as _,fC as I,fD as f,k as N,c as g,b as p,a as i,w as o,o as h,m as c,t as u,d as P,n as S,P as C}from"./index-C3BBC50r.js";import{_ as O}from"./BaseImg-W-TOwFj-.js";import{u as R}from"./storeManageApps-BylsQJiK.js";import"./useInputValidation-4uYMCiOM.js";import"./computed_prop-CVkBJ8x8.js";import"./BaseCheckbox-CHNl0Oi3.js";import"./FormError-DIZ5phUb.js";import"./BaseLoading-BuHHNqTv.js";import"./_setToString-DDush9pL.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"e75a9d3326ba4029ab445db8fc46681ab6937a49"};var l=new s.Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="e0a31139-ec93-4da8-ac67-bcd98e5b4d2c",s._sentryDebugIdIdentifier="sentry-dbid-e0a31139-ec93-4da8-ac67-bcd98e5b4d2c")}catch{}})();const D={class:"flex items-center"},U={key:0,class:"text-sm line-clamp-1"},j={__name:"AppsList",setup(s){const{isAppEnabled:l,toggleApp:m}=R(),A=[{id:_,title:"برنامک کد پستی خودکار",author:"آمادست",thumbnail:x,price:"هر درخواست 125 تومان",discount:"رایگان",description:"",enabled:l(_)},{id:f,title:"برنامک پیشنهاد گیرنده سفارش",author:"آمادست",thumbnail:I,price:"",discount:"رایگان",description:"",enabled:l(f)}],E=n=>{var t,e,d,b;const a=C().getAppRefs;l(n)?(e=(t=a[n])==null?void 0:t.onEnabled)==null||e.call(t):(b=(d=a[n])==null?void 0:d.onDisabled)==null||b.call(d)},y=async(n,a)=>{await m(n,a),E(n)};return N(()=>{}),(n,a)=>(h(),g("div",null,[a[2]||(a[2]=p("p",{class:"text-muted text-sm"},"با فعال سازی برنامک ها، امکانات جدیدی به پنل تان اضافه کنید.",-1)),i(T,{data:A,total:1,"current-page":1,"per-page":20,"is-loading":!1,"has-error":!1,"has-pagination":!1,"has-loadmore":!1,class:"mt-2"},{default:o(()=>[a[0]||(a[0]=c(" thumbnail discount link description ",-1)),i(r,{label:"نام برنامک",width:"20%"},{body:o(t=>[p("div",D,[i(O,{src:t.data.thumbnail,title:t.data.title,width:100,height:100,class:"w-10 h-10 rounded-lg border bg-white ml-2"},null,8,["src","title"]),c(" "+u(t.data.title),1)])]),_:1}),i(r,{label:"سازنده",width:"15%"},{body:o(t=>[c(u(t.data.author),1)]),_:1}),i(r,{label:"قیمت",width:"20%"},{body:o(t=>{var e,d;return[(e=t.data)!=null&&e.discount?(h(),g("div",U,u(t.data.discount),1)):P("",!0),p("div",{class:S(["text-sm line-clamp-1",{"text-neutral-400 text-xxs line-through":(d=t.data)==null?void 0:d.discount}])},u(t.data.price),3)]}),_:1}),i(r,{label:"وضعیت",width:"15%"},{body:o(t=>[i(w,{modelValue:t.data.enabled,"onUpdate:modelValue":e=>t.data.enabled=e,input:{},onChange:e=>y(t.data.id,!1)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),a[1]||(a[1]=p("button",null,null,-1))]),_:1})]))}};export{j as default};
2//# sourceMappingURL=AppsList-BZXc2P4J.js.map

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.