PageSourceSearch

https://tfsapp.co.za/build/assets/Index-Bbg9OeP8.js

js tfsapp.co.za collected 2026-10-02 16:16:07 UTC 4,124 bytes, 1 lines download raw bytes

1import{d as p,c as d,a as t,u as s,h as _,w as o,b as e,p as c,f as y,o as i,F as u,m as k,y as b,t as f,r as w}from"./app-DMY-rQlm.js";import{_ as a}from"./index-DYhFo3fA.js";import{_ as v}from"./AppLayout.vue_vue_type_script_setup_true_lang-CedjZedz.js";import{P as S,T as j}from"./trash-2-CB8F6Eij.js";import{c as m}from"./createLucideIcon-pN9vH-qX.js";import"./index-Czb7tQdy.js";import"./VisuallyHidden-CrXhfi69.js";import"./useForwardExpose-DSXdWQ9c.js";import"./index-SJDSbS2X.js";import"./useForwardPropsEmits-CQFe4_bg.js";const C=m("GripVerticalIcon",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);const V=m("Settings2Icon",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]),$={class:"flex h-full flex-col gap-4 p-4"},z={class:"flex items-center justify-between"},I={class:"rounded-md border bg-card overflow-hidden"},N={class:"w-full text-sm"},T={class:"p-4 align-middle"},A={class:"p-4 align-middle font-medium"},B={class:"flex items-center gap-2"},F={class:"p-4 align-middle"},M={key:0,class:"inline-flex items-center rounded-full bg-emerald-100 px-2.5 py-0.5 text-xs font-medium text-emerald-800 dark:bg-emerald-900/30 dark:text-emerald-400"},W={key:1,class:"inline-flex items-center rounded-full bg-blue-100 px-2.5 py-0.5 text-xs font-medium text-blue-800 dark:bg-blue-900/30 dark:text-blue-400"},D={class:"p-4 align-middle italic text-muted-foreground"},E={class:"p-4 align-middle text-right"},G={class:"flex justify-end gap-2"},Y=p({__name:"Index",props:{statuses:{}},setup(x){const h=[{title:"Settings",href:"#"},{title:"Workflow Statuses",href:"/settings/workflow-statuses"}],g=n=>{confirm("Are you sure you want to delete this status?")&&w.delete(`/settings/workflow-statuses/${n}`)};return(n,r)=>(i(),d(u,null,[t(s(_),{title:"Workflow Statuses"}),t(v,{breadcrumbs:h},{default:o(()=>[e("div",$,[e("div",z,[r[1]||(r[1]=e("div",null,[e("h2",{class:"text-2xl font-bold tracking-tight"},"Workflow Statuses"),e("p",{class:"text-muted-foreground"}," Manage delivery statuses, transitions, and proof requirements. ")],-1)),t(s(a),{"as-child":""},{default:o(()=>[t(s(c),{href:"/settings/workflow-statuses/create"},{default:o(()=>[t(s(S),{class:"mr-2 h-4 w-4"}),r[0]||(r[0]=y(" Add Status ",-1))]),_:1})]),_:1})]),e("div",I,[e("table",N,[r[2]||(r[2]=e("thead",null,[e("tr",{class:"border-b bg-muted/50 transition-colors"},[e("th",{class:"h-10 px-4 text-left align-middle font-medium text-muted-foreground w-[50px]"}),e("th",{class:"h-10 px-4 text-left align-middle font-medium text-muted-foreground"},"Name"),e("th",{class:"h-10 px-4 text-left align-middle font-medium text-muted-foreground"},"Type"),e("th",{class:"h-10 px-4 text-left align-middle font-medium text-muted-foreground"},"Order"),e("th",{class:"h-10 px-4 text-right align-middle font-medium text-muted-foreground"},"Actions")])],-1)),e("tbody",null,[(i(!0),d(u,null,k(x.statuses,l=>(i(),d("tr",{key:l.id,class:"border-b transition-colors hover:bg-muted/50"},[e("td",T,[t(s(C),{class:"h-4 w-4 text-muted-foreground cursor-grab"})]),e("td",A,[e("div",B,[e("div",{class:"h-3 w-3 rounded-full",style:b({backgroundColor:l.color})},null,4),e("span",null,f(l.name),1)])]),e("td",F,[l.is_final?(i(),d("span",M," Final ")):(i(),d("span",W," Step "))]),e("td",D,f(l.sort_order),1),e("td",E,[e("div",G,[t(s(a),{variant:"ghost",size:"icon","as-child":"",title:"Edit"},{default:o(()=>[t(s(c),{href:`/settings/workflow-statuses/${l.id}/edit`},{default:o(()=>[t(s(V),{class:"h-4 w-4 text-muted-foreground hover:text-foreground"})]),_:1},8,["href"])]),_:2},1024),t(s(a),{variant:"ghost",size:"icon",class:"text-destructive hover:text-destructive",title:"Delete",onClick:L=>g(l.id)},{default:o(()=>[t(s(j),{class:"h-4 w-4"})]),_:1},8,["onClick"])])])]))),128))])])])])]),_:1})],64))}});
1export{Y as default};

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.