import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{t}from"./react-BatatxyT.js";import{s as n,t as r}from"./utils-BO1RPuol.js";import{$n as ee,Ar as te,Bi as i,Cr as a,Dr as o,Er as s,Fi as c,Fr as l,Gi as u,Gn as d,Hi as f,Ii as p,Ir as m,Ji as h,Jn as g,Ki as _,Kn as v,Li as y,Lr as b,Mr as x,Ni as S,Nr as C,Or as w,Pi as T,Pr as E,Qn as D,Ri as O,Rr as k,Sr as A,Tr as j,Ui as M,Vi as N,Wi as P,Wn as F,Xi as I,Xn as L,Yi as R,Yn as z,Zn as B,_i as V,ai as H,ar as U,ci as ne,di as W,er as G,fi as K,gi as q,hi as J,ii as Y,ir as X,jr as Z,kr as re,li as ie,mi as ae,ni as oe,nr as se,oi as ce,or as le,pi as ue,qi as de,qn as fe,ri as pe,rr as me,si as he,sr as ge,ti as _e,tr as ve,ui as ye,vi as be,wr as xe,xr as Se,zi as Ce}from"./index-B4NicEaS.js";import{t as we}from"./page-content-DdXVZwik.js";import{t as Te}from"./specification-master-page-bGJ5biQ6.js";var Ee=e(t(),1),Q=n(),$=[{key:`makes`,label:`Makes`,title:`Makes`,placeholder:`e.g. VTI, L&T, KSB`,useGet:ne,useCreate:B,useUpdate:i,useDelete:w},{key:`valve-types`,label:`Valve Types`,title:`Valve Types`,placeholder:`e.g. Trunnion Mounted Ball, Gate`,useGet:be,useCreate:ge,useUpdate:I,useDelete:k},{key:`applications`,label:`Applications`,title:`Applications`,placeholder:`e.g. LPG, Steam, Water`,useGet:_e,useCreate:F,useUpdate:S,useDelete:Se},{key:`design-standards`,label:`Design Std`,title:`Design Standards`,placeholder:`e.g. API 6D, BS 5351`,useGet:Y,useCreate:fe,useUpdate:p,useDelete:xe},{key:`testing-standards`,label:`Testing Std`,title:`Testing Standards`,placeholder:`e.g. API 598, BS 6755`,useGet:q,useCreate:U,useUpdate:h,useDelete:m},{key:`sizes`,label:`Sizes`,title:`Sizes`,placeholder:`e.g. 1/2", 2", 14"`,useGet:J,useCreate:X,useUpdate:de,useDelete:l},{key:`classes`,label:`Classes`,title:`Classes`,placeholder:`e.g. 150#, 300#, 600#`,useGet:pe,useCreate:v,useUpdate:c,useDelete:a},{key:`patterns`,label:`Patterns`,title:`Patterns`,placeholder:`e.g. Full Bore, Reduced Bore`,useGet:ye,useCreate:ee,useUpdate:f,useDelete:te},{key:`bodies`,label:`Body`,title:`Body Materials`,placeholder:`e.g. ASTM A216 GR WCB, SS304`,useGet:oe,useCreate:d,useUpdate:T,useDelete:A},{key:`trims`,label:`Trim`,title:`Ball/Wedge/Piston`,placeholder:`e.g. SS304, SS316, Stellite`,useGet:V,useCreate:le,useUpdate:R,useDelete:b},{key:`seats`,label:`Seats`,title:`Seats`,placeholder:`e.g. RPTFE, PEEK, Metal to Metal`,useGet:K,useCreate:ve,useUpdate:P,useDelete:x},{key:`seals`,label:`Seals`,title:`Seals`,placeholder:`e.g. Graphite, PTFE, Viton`,useGet:W,useCreate:G,useUpdate:M,useDelete:Z},{key:`gaskets`,label:`Gaskets`,title:`Gaskets`,placeholder:`e.g. Spiral Wound, Ring Joint`,useGet:he,useCreate:L,useUpdate:Ce,useDelete:o},{key:`discs`,label:`Discs`,title:`Discs`,placeholder:`e.g. AISI SS304, A216 GR WCB`,useGet:H,useCreate:g,useUpdate:y,useDelete:j},{key:`shafts`,label:`Shafts`,title:`Shafts`,placeholder:`e.g. AISI SS304, EN8, EN19`,useGet:ae,useCreate:me,useUpdate:_,useDelete:E},{key:`end-connections`,label:`End Conn.`,title:`End Connections`,placeholder:`e.g. Flanged, Butt Weld, Socket Weld`,useGet:ce,useCreate:z,useUpdate:O,useDelete:s},{key:`services`,label:`Services`,title:`Service Types`,placeholder:`e.g. Hydro Test, Painting`,useGet:ue,useCreate:se,useUpdate:u,useDelete:C},{key:`operations`,label:`Operations`,title:`Operations`,placeholder:`e.g. Manual, Gear, Pneumatic`,useGet:ie,useCreate:D,useUpdate:N,useDelete:re}];function De(){let[e,t]=(0,Ee.useState)($[0].key),n=$.find(t=>t.key===e);return(0,Q.jsx)(we,{children:(0,Q.jsxs)(`div`,{className:`space-y-4`,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h1`,{className:`text-2xl font-bold`,children:`Item Specifications`}),(0,Q.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:`Manage specification masters used in BOQ items`})]}),(0,Q.jsx)(`div`,{className:`flex flex-wrap gap-1 border-b overflow-x-auto`,children:$.map(n=>(0,Q.jsx)(`button`,{onClick:()=>t(n.key),className:r(`px-3 py-2 text-xs font-medium border-b-2 transition-colors whitespace-nowrap`,e===n.key?`border-primary text-primary`:`border-transparent text-muted-foreground hover:text-foreground`),children:n.label},n.key))}),(0,Q.jsx)(Te,{title:n.title,label:n.title.replace(/s$/,``),placeholder:n.placeholder,useGetQuery:n.useGet,useCreateMutation:n.useCreate,useUpdateMutation:n.useUpdate,useDeleteMutation:n.useDelete},n.key)]})})}export{De as default};