import{a as e,t}from"./react-D0JuimcS.js";import{o as n,t as r}from"./utils-Dac180Gn.js";import{$r as ee,Ai as te,Bn as i,Ci as a,Cr as o,Di as s,Ei as c,Fi as l,Fn as u,Gn as d,Gr as f,Hn as p,Hr as m,Ii as h,In as g,Jn as _,Jr as v,Kn as y,Kr as b,Li as x,Ln as S,Mi as C,Mn as w,Ni as T,Nn as E,Oi as D,Pi as O,Pn as k,Qr as A,Rn as j,Si as M,Sr as N,Ti as P,Tr as F,Un as I,Ur as L,Vn as R,Wn as z,Wr as B,Xr as V,Yr as H,Zr as U,_r as ne,ai as W,bi as G,br as K,cr as q,dr as J,ei as Y,fr as X,gr as Z,hr as re,ii as ie,ji as ae,jn as oe,ki as se,lr as ce,mr as le,ni as ue,pr as de,qn as fe,qr as pe,ri as me,ti as he,ur as ge,vr as _e,wi as ve,wr as ye,xi as be,xr as xe,yr as Se,zn as Ce}from"./index-BP3TYB4i.js";import{t as we}from"./page-content-DDtdeMxM.js";import{t as Te}from"./specification-master-page-P3h3jMe7.js";var Ee=e(t(),1),Q=n(),$=[{key:`makes`,label:`Makes`,title:`Makes`,placeholder:`e.g. VTI, L&T, KSB`,useGet:H,useCreate:j,useUpdate:s,useDelete:re},{key:`valve-types`,label:`Valve Types`,title:`Valve Types`,placeholder:`e.g. Trunnion Mounted Ball, Gate`,useGet:W,useCreate:_,useUpdate:x,useDelete:F},{key:`applications`,label:`Applications`,title:`Applications`,placeholder:`e.g. LPG, Steam, Water`,useGet:m,useCreate:oe,useUpdate:G,useDelete:q},{key:`design-standards`,label:`Design Std`,title:`Design Standards`,placeholder:`e.g. API 6D, BS 5351`,useGet:f,useCreate:k,useUpdate:a,useDelete:J},{key:`testing-standards`,label:`Testing Std`,title:`Testing Standards`,placeholder:`e.g. API 598, BS 6755`,useGet:me,useCreate:y,useUpdate:l,useDelete:o},{key:`sizes`,label:`Sizes`,title:`Sizes`,placeholder:`e.g. 1/2", 2", 14"`,useGet:ue,useCreate:d,useUpdate:O,useDelete:N},{key:`classes`,label:`Classes`,title:`Classes`,placeholder:`e.g. 150#, 300#, 600#`,useGet:B,useCreate:E,useUpdate:M,useDelete:ge},{key:`patterns`,label:`Patterns`,title:`Patterns`,placeholder:`e.g. Full Bore, Reduced Bore`,useGet:U,useCreate:i,useUpdate:se,useDelete:ne},{key:`bodies`,label:`Body`,title:`Body Materials`,placeholder:`e.g. ASTM A216 GR WCB, SS304`,useGet:L,useCreate:w,useUpdate:be,useDelete:ce},{key:`trims`,label:`Trim`,title:`Ball/Wedge/Piston`,placeholder:`e.g. SS304, SS316, Stellite`,useGet:ie,useCreate:fe,useUpdate:h,useDelete:ye},{key:`seats`,label:`Seats`,title:`Seats`,placeholder:`e.g. RPTFE, PEEK, Metal to Metal`,useGet:ee,useCreate:p,useUpdate:ae,useDelete:Se},{key:`seals`,label:`Seals`,title:`Seals`,placeholder:`e.g. Graphite, PTFE, Viton`,useGet:A,useCreate:R,useUpdate:te,useDelete:_e},{key:`gaskets`,label:`Gaskets`,title:`Gaskets`,placeholder:`e.g. Spiral Wound, Ring Joint`,useGet:v,useCreate:S,useUpdate:c,useDelete:le},{key:`discs`,label:`Discs`,title:`Discs`,placeholder:`e.g. AISI SS304, A216 GR WCB`,useGet:b,useCreate:u,useUpdate:ve,useDelete:X},{key:`shafts`,label:`Shafts`,title:`Shafts`,placeholder:`e.g. AISI SS304, EN8, EN19`,useGet:he,useCreate:z,useUpdate:T,useDelete:xe},{key:`end-connections`,label:`End Conn.`,title:`End Connections`,placeholder:`e.g. Flanged, Butt Weld, Socket Weld`,useGet:pe,useCreate:g,useUpdate:P,useDelete:de},{key:`services`,label:`Services`,title:`Service Types`,placeholder:`e.g. Hydro Test, Painting`,useGet:Y,useCreate:I,useUpdate:C,useDelete:K},{key:`operations`,label:`Operations`,title:`Operations`,placeholder:`e.g. Manual, Gear, Pneumatic`,useGet:V,useCreate:Ce,useUpdate:D,useDelete:Z}];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};