cecomponent 1.0.88 → 1.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -139,4 +139,4 @@ i.goToAndStop(p-i.firstFrame-1,!0)}d.type==="loop"&&(c===null||c!==d.frames||i.i
139
139
  `),l.push(` </office:body>
140
140
  `),o.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function write_ods(e,t){if(t.bookType=="fods")return write_content_ods(e,t);var r=zip_new(),i="",s=[],n=[];return i="mimetype",zip_add_file(r,i,"application/vnd.oasis.opendocument.spreadsheet"),i="content.xml",zip_add_file(r,i,write_content_ods(e,t)),s.push([i,"text/xml"]),n.push([i,"ContentFile"]),i="styles.xml",zip_add_file(r,i,write_styles_ods(e,t)),s.push([i,"text/xml"]),n.push([i,"StylesFile"]),i="meta.xml",zip_add_file(r,i,XML_HEADER+write_meta_ods()),s.push([i,"text/xml"]),n.push([i,"MetadataFile"]),i="manifest.rdf",zip_add_file(r,i,write_rdf(n)),s.push([i,"application/rdf+xml"]),i="META-INF/manifest.xml",zip_add_file(r,i,write_manifest(s)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function u8_to_dataview(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function stru8(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):s2a(utf8write(e))}function u8contains(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var i=0;i<t.length;++i)if(e[r+i]!=t[i])continue e;return!0}return!1}function u8concat(e){var t=e.reduce(function(s,n){return s+n.length},0),r=new Uint8Array(t),i=0;return e.forEach(function(s){r.set(s,i),i+=s.length}),r}function writeDecimal128LE(e,t,r){var i=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,s=r/Math.pow(10,i-6176);e[t+15]|=i>>7,e[t+14]|=(i&127)<<1;for(var n=0;s>=1;++n,s/=256)e[t+n]=s&255;e[t+15]|=r>=0?0:128}function parse_varint49(e,t){var r=t?t[0]:0,i=e[r]&127;e:if(e[r++]>=128&&(i|=(e[r]&127)<<7,e[r++]<128||(i|=(e[r]&127)<<14,e[r++]<128)||(i|=(e[r]&127)<<21,e[r++]<128)||(i+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(i+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(i+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),i}function write_varint49(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function varint_to_i32(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function parse_shallow(e){for(var t=[],r=[0];r[0]<e.length;){var i=r[0],s=parse_varint49(e,r),n=s&7;s=Math.floor(s/8);var a=0,o;if(s==0)break;switch(n){case 0:{for(var l=r[0];e[r[0]++]>=128;);o=e.slice(l,r[0])}break;case 5:a=4,o=e.slice(r[0],r[0]+a),r[0]+=a;break;case 1:a=8,o=e.slice(r[0],r[0]+a),r[0]+=a;break;case 2:a=parse_varint49(e,r),o=e.slice(r[0],r[0]+a),r[0]+=a;break;case 3:case 4:default:throw new Error("PB Type ".concat(n," for Field ").concat(s," at offset ").concat(i))}var f={data:o,type:n};t[s]==null?t[s]=[f]:t[s].push(f)}return t}function write_shallow(e){var t=[];return e.forEach(function(r,i){r.forEach(function(s){s.data&&(t.push(write_varint49(i*8+s.type)),s.type==2&&t.push(write_varint49(s.data.length)),t.push(s.data))})}),u8concat(t)}function parse_iwa_file(e){for(var t,r=[],i=[0];i[0]<e.length;){var s=parse_varint49(e,i),n=parse_shallow(e.slice(i[0],i[0]+s));i[0]+=s;var a={id:varint_to_i32(n[1][0].data),messages:[]};n[2].forEach(function(o){var l=parse_shallow(o.data),f=varint_to_i32(l[3][0].data);a.messages.push({meta:l,data:e.slice(i[0],i[0]+f)}),i[0]+=f}),(t=n[3])!=null&&t[0]&&(a.merge=varint_to_i32(n[3][0].data)>>>0>0),r.push(a)}return r}function write_iwa_file(e){var t=[];return e.forEach(function(r){var i=[];i[1]=[{data:write_varint49(r.id),type:0}],i[2]=[],r.merge!=null&&(i[3]=[{data:write_varint49(+!!r.merge),type:0}]);var s=[];r.messages.forEach(function(a){s.push(a.data),a.meta[3]=[{type:0,data:write_varint49(a.data.length)}],i[2].push({data:write_shallow(a.meta),type:2})});var n=write_shallow(i);t.push(write_varint49(n.length)),t.push(n),s.forEach(function(a){return t.push(a)})}),u8concat(t)}function parse_snappy_chunk(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],i=parse_varint49(t,r),s=[];r[0]<t.length;){var n=t[r[0]]&3;if(n==0){var a=t[r[0]++]>>2;if(a<60)++a;else{var o=a-59;a=t[r[0]],o>1&&(a|=t[r[0]+1]<<8),o>2&&(a|=t[r[0]+2]<<16),o>3&&(a|=t[r[0]+3]<<24),a>>>=0,a++,r[0]+=o}s.push(t.slice(r[0],r[0]+a)),r[0]+=a;continue}else{var l=0,f=0;if(n==1?(f=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(f=(t[r[0]++]>>2)+1,n==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),s=[u8concat(s)],l==0)throw new Error("Invalid offset 0");if(l>s[0].length)throw new Error("Invalid offset beyond length");if(f>=l)for(s.push(s[0].slice(-l)),f-=l;f>=s[s.length-1].length;)s.push(s[s.length-1]),f-=s[s.length-1].length;s.push(s[0].slice(-l,-l+f))}}var c=u8concat(s);if(c.length!=i)throw new Error("Unexpected length: ".concat(c.length," != ").concat(i));return c}function decompress_iwa_file(e){for(var t=[],r=0;r<e.length;){var i=e[r++],s=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(parse_snappy_chunk(i,e.slice(r,r+s))),r+=s}if(r!==e.length)throw new Error("data is not a valid framed stream!");return u8concat(t)}function compress_iwa_file(e){for(var t=[],r=0;r<e.length;){var i=Math.min(e.length-r,268435455),s=new Uint8Array(4);t.push(s);var n=write_varint49(i),a=n.length;t.push(n),i<=60?(a++,t.push(new Uint8Array([i-1<<2]))):i<=256?(a+=2,t.push(new Uint8Array([240,i-1&255]))):i<=65536?(a+=3,t.push(new Uint8Array([244,i-1&255,i-1>>8&255]))):i<=16777216?(a+=4,t.push(new Uint8Array([248,i-1&255,i-1>>8&255,i-1>>16&255]))):i<=4294967296&&(a+=5,t.push(new Uint8Array([252,i-1&255,i-1>>8&255,i-1>>16&255,i-1>>>24&255]))),t.push(e.slice(r,r+i)),a+=i,s[0]=0,s[1]=a&255,s[2]=a>>8&255,s[3]=a>>16&255,r+=i}return u8concat(t)}function write_new_storage(e,t){var r=new Uint8Array(32),i=u8_to_dataview(r),s=12,n=0;switch(r[0]=5,e.t){case"n":r[1]=2,writeDecimal128LE(r,s,e.v),n|=1,s+=16;break;case"b":r[1]=6,i.setFloat64(s,e.v?1:0,!0),n|=2,s+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,i.setUint32(s,t.indexOf(e.v),!0),n|=8,s+=4;break;default:throw"unsupported cell type "+e.t}return i.setUint32(8,n,!0),r.slice(0,s)}function write_old_storage(e,t){var r=new Uint8Array(32),i=u8_to_dataview(r),s=12,n=0;switch(r[0]=3,e.t){case"n":r[2]=2,i.setFloat64(s,e.v,!0),n|=32,s+=8;break;case"b":r[2]=6,i.setFloat64(s,e.v?1:0,!0),n|=32,s+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,i.setUint32(s,t.indexOf(e.v),!0),n|=16,s+=4;break;default:throw"unsupported cell type "+e.t}return i.setUint32(4,n,!0),r.slice(0,s)}function parse_TSP_Reference(e){var t=parse_shallow(e);return parse_varint49(t[1][0].data)}function write_tile_row(e,t,r){var i,s,n,a;if(!((i=e[6])!=null&&i[0])||!((s=e[7])!=null&&s[0]))throw"Mutation only works on post-BNC storages!";var o=((a=(n=e[8])==null?void 0:n[0])==null?void 0:a.data)&&varint_to_i32(e[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var l=0,f=u8_to_dataview(e[7][0].data),c=0,m=[],u=u8_to_dataview(e[4][0].data),x=0,d=[],p=0;p<t.length;++p){if(t[p]==null){f.setUint16(p*2,65535,!0),u.setUint16(p*2,65535);continue}f.setUint16(p*2,c,!0),u.setUint16(p*2,x,!0);var E,g;switch(typeof t[p]){case"string":E=write_new_storage({t:"s",v:t[p]},r),g=write_old_storage({t:"s",v:t[p]},r);break;case"number":E=write_new_storage({t:"n",v:t[p]},r),g=write_old_storage({t:"n",v:t[p]},r);break;case"boolean":E=write_new_storage({t:"b",v:t[p]},r),g=write_old_storage({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}m.push(E),c+=E.length,d.push(g),x+=g.length,++l}for(e[2][0].data=write_varint49(l);p<e[7][0].data.length/2;++p)f.setUint16(p*2,65535,!0),u.setUint16(p*2,65535,!0);return e[6][0].data=u8concat(m),e[3][0].data=u8concat(d),l}function write_numbers_iwa(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var i=decode_range(r["!ref"]);i.s.r=i.s.c=0;var s=!1;i.e.c>9&&(s=!0,i.e.c=9),i.e.r>49&&(s=!0,i.e.r=49),s&&console.error("The Numbers writer is currently limited to ".concat(encode_range(i)));var n=sheet_to_json(r,{range:i,header:1}),a=["~Sh33tJ5~"];n.forEach(function(H){return H.forEach(function(B){typeof B=="string"&&a.push(B)})});var o={},l=[],f=CFB.read(t.numbers,{type:"base64"});f.FileIndex.map(function(H,B){return[H,f.FullPaths[B]]}).forEach(function(H){var B=H[0],z=H[1];if(B.type==2&&B.name.match(/\.iwa/)){var re=B.content,ce=decompress_iwa_file(re),fe=parse_iwa_file(ce);fe.forEach(function(pe){l.push(pe.id),o[pe.id]={deps:[],location:z,type:varint_to_i32(pe.messages[0].meta[1][0].data)}})}}),l.sort(function(H,B){return H-B});var c=l.filter(function(H){return H>1}).map(function(H){return[H,write_varint49(H)]});f.FileIndex.map(function(H,B){return[H,f.FullPaths[B]]}).forEach(function(H){var B=H[0];if(H[1],!!B.name.match(/\.iwa/)){var z=parse_iwa_file(decompress_iwa_file(B.content));z.forEach(function(re){re.messages.forEach(function(ce){c.forEach(function(fe){re.messages.some(function(pe){return varint_to_i32(pe.meta[1][0].data)!=11006&&u8contains(pe.data,fe[1])})&&o[fe[0]].deps.push(re.id)})})})}});for(var m=CFB.find(f,o[1].location),u=parse_iwa_file(decompress_iwa_file(m.content)),x,d=0;d<u.length;++d){var p=u[d];p.id==1&&(x=p)}var E=parse_TSP_Reference(parse_shallow(x.messages[0].data)[1][0].data);for(m=CFB.find(f,o[E].location),u=parse_iwa_file(decompress_iwa_file(m.content)),d=0;d<u.length;++d)p=u[d],p.id==E&&(x=p);for(E=parse_TSP_Reference(parse_shallow(x.messages[0].data)[2][0].data),m=CFB.find(f,o[E].location),u=parse_iwa_file(decompress_iwa_file(m.content)),d=0;d<u.length;++d)p=u[d],p.id==E&&(x=p);for(E=parse_TSP_Reference(parse_shallow(x.messages[0].data)[2][0].data),m=CFB.find(f,o[E].location),u=parse_iwa_file(decompress_iwa_file(m.content)),d=0;d<u.length;++d)p=u[d],p.id==E&&(x=p);var g=parse_shallow(x.messages[0].data);{g[6][0].data=write_varint49(i.e.r+1),g[7][0].data=write_varint49(i.e.c+1);var _=parse_TSP_Reference(g[46][0].data),y=CFB.find(f,o[_].location),S=parse_iwa_file(decompress_iwa_file(y.content));{for(var C=0;C<S.length&&S[C].id!=_;++C);if(S[C].id!=_)throw"Bad ColumnRowUIDMapArchive";var b=parse_shallow(S[C].messages[0].data);b[1]=[],b[2]=[],b[3]=[];for(var A=0;A<=i.e.c;++A){var k=[];k[1]=k[2]=[{type:0,data:write_varint49(A+420690)}],b[1].push({type:2,data:write_shallow(k)}),b[2].push({type:0,data:write_varint49(A)}),b[3].push({type:0,data:write_varint49(A)})}b[4]=[],b[5]=[],b[6]=[];for(var I=0;I<=i.e.r;++I)k=[],k[1]=k[2]=[{type:0,data:write_varint49(I+726270)}],b[4].push({type:2,data:write_shallow(k)}),b[5].push({type:0,data:write_varint49(I)}),b[6].push({type:0,data:write_varint49(I)});S[C].messages[0].data=write_shallow(b)}y.content=compress_iwa_file(write_iwa_file(S)),y.size=y.content.length,delete g[46];var q=parse_shallow(g[4][0].data);{q[7][0].data=write_varint49(i.e.r+1);var X=parse_shallow(q[1][0].data),W=parse_TSP_Reference(X[2][0].data);y=CFB.find(f,o[W].location),S=parse_iwa_file(decompress_iwa_file(y.content));{if(S[0].id!=W)throw"Bad HeaderStorageBucket";var J=parse_shallow(S[0].messages[0].data);for(I=0;I<n.length;++I){var ae=parse_shallow(J[2][0].data);ae[1][0].data=write_varint49(I),ae[4][0].data=write_varint49(n[I].length),J[2][I]={type:J[2][0].type,data:write_shallow(ae)}}S[0].messages[0].data=write_shallow(J)}y.content=compress_iwa_file(write_iwa_file(S)),y.size=y.content.length;var Y=parse_TSP_Reference(q[2][0].data);y=CFB.find(f,o[Y].location),S=parse_iwa_file(decompress_iwa_file(y.content));{if(S[0].id!=Y)throw"Bad HeaderStorageBucket";for(J=parse_shallow(S[0].messages[0].data),A=0;A<=i.e.c;++A)ae=parse_shallow(J[2][0].data),ae[1][0].data=write_varint49(A),ae[4][0].data=write_varint49(i.e.r+1),J[2][A]={type:J[2][0].type,data:write_shallow(ae)};S[0].messages[0].data=write_shallow(J)}y.content=compress_iwa_file(write_iwa_file(S)),y.size=y.content.length;var L=parse_TSP_Reference(q[4][0].data);(function(){for(var H=CFB.find(f,o[L].location),B=parse_iwa_file(decompress_iwa_file(H.content)),z,re=0;re<B.length;++re){var ce=B[re];ce.id==L&&(z=ce)}var fe=parse_shallow(z.messages[0].data);{fe[3]=[];var pe=[];a.forEach(function(Ce,Te){pe[1]=[{type:0,data:write_varint49(Te)}],pe[2]=[{type:0,data:write_varint49(1)}],pe[3]=[{type:2,data:stru8(Ce)}],fe[3].push({type:2,data:write_shallow(pe)})})}z.messages[0].data=write_shallow(fe);var le=write_iwa_file(B),Se=compress_iwa_file(le);H.content=Se,H.size=H.content.length})();var j=parse_shallow(q[3][0].data);{var T=j[1][0];delete j[2];var R=parse_shallow(T.data);{var M=parse_TSP_Reference(R[2][0].data);(function(){for(var H=CFB.find(f,o[M].location),B=parse_iwa_file(decompress_iwa_file(H.content)),z,re=0;re<B.length;++re){var ce=B[re];ce.id==M&&(z=ce)}var fe=parse_shallow(z.messages[0].data);{delete fe[6],delete j[7];var pe=new Uint8Array(fe[5][0].data);fe[5]=[];for(var le=0,Se=0;Se<=i.e.r;++Se){var Ce=parse_shallow(pe);le+=write_tile_row(Ce,n[Se],a),Ce[1][0].data=write_varint49(Se),fe[5].push({data:write_shallow(Ce),type:2})}fe[1]=[{type:0,data:write_varint49(i.e.c+1)}],fe[2]=[{type:0,data:write_varint49(i.e.r+1)}],fe[3]=[{type:0,data:write_varint49(le)}],fe[4]=[{type:0,data:write_varint49(i.e.r+1)}]}z.messages[0].data=write_shallow(fe);var Te=write_iwa_file(B),he=compress_iwa_file(Te);H.content=he,H.size=H.content.length})()}T.data=write_shallow(R)}q[3][0].data=write_shallow(j)}g[4][0].data=write_shallow(q)}x.messages[0].data=write_shallow(g);var D=write_iwa_file(u),P=compress_iwa_file(D);return m.content=P,m.size=m.content.length,f}function fix_opts_func(e){return function(r){for(var i=0;i!=e.length;++i){var s=e[i];r[s[0]]===void 0&&(r[s[0]]=s[1]),s[2]==="n"&&(r[s[0]]=Number(r[s[0]]))}}}function fix_write_opts(e){fix_opts_func([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function write_zip(e,t){return t.bookType=="ods"?write_ods(e,t):t.bookType=="numbers"?write_numbers_iwa(e,t):t.bookType=="xlsb"?write_zip_xlsxb(e,t):write_zip_xlsx(e,t)}function write_zip_xlsxb(e,t){_shapeid=1024,e&&!e.SSF&&(e.SSF=dup(table_fmt)),e&&e.SSF&&(make_ssf(),SSF_load_table(e.SSF),t.revssf=evert_num(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,browser_has_Map?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",i=VBAFMTS.indexOf(t.bookType)>-1,s=new_ct();fix_write_opts(t=t||{});var n=zip_new(),a="",o=0;if(t.cellXfs=[],get_cell_style(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",zip_add_file(n,a,write_core_props(e.Props,t)),s.coreprops.push(a),add_rels(t.rels,2,a,RELS.CORE_PROPS),a="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],f=0;f<e.SheetNames.length;++f)(e.Workbook.Sheets[f]||{}).Hidden!=2&&l.push(e.SheetNames[f]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,zip_add_file(n,a,write_ext_props(e.Props)),s.extprops.push(a),add_rels(t.rels,3,a,RELS.EXT_PROPS),e.Custprops!==e.Props&&keys(e.Custprops||{}).length>0&&(a="docProps/custom.xml",zip_add_file(n,a,write_cust_props(e.Custprops)),s.custprops.push(a),add_rels(t.rels,4,a,RELS.CUST_PROPS)),o=1;o<=e.SheetNames.length;++o){var c={"!id":{}},m=e.Sheets[e.SheetNames[o-1]],u=(m||{})["!type"]||"sheet";switch(u){case"chart":default:a="xl/worksheets/sheet"+o+"."+r,zip_add_file(n,a,write_ws(o-1,a,t,e,c)),s.sheets.push(a),add_rels(t.wbrels,-1,"worksheets/sheet"+o+"."+r,RELS.WS[0])}if(m){var x=m["!comments"],d=!1,p="";x&&x.length>0&&(p="xl/comments"+o+"."+r,zip_add_file(n,p,write_cmnt(x,p)),s.comments.push(p),add_rels(c,-1,"../comments"+o+"."+r,RELS.CMNT),d=!0),m["!legacy"]&&d&&zip_add_file(n,"xl/drawings/vmlDrawing"+o+".vml",write_comments_vml(o,m["!comments"])),delete m["!comments"],delete m["!legacy"]}c["!id"].rId1&&zip_add_file(n,get_rels_path(a),write_rels(c))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,zip_add_file(n,a,write_sst(t.Strings,a,t)),s.strs.push(a),add_rels(t.wbrels,-1,"sharedStrings."+r,RELS.SST)),a="xl/workbook."+r,zip_add_file(n,a,write_wb(e,a)),s.workbooks.push(a),add_rels(t.rels,1,a,RELS.WB),a="xl/theme/theme1.xml",zip_add_file(n,a,write_theme(e.Themes,t)),s.themes.push(a),add_rels(t.wbrels,-1,"theme/theme1.xml",RELS.THEME),a="xl/styles."+r,zip_add_file(n,a,write_sty(e,a,t)),s.styles.push(a),add_rels(t.wbrels,-1,"styles."+r,RELS.STY),e.vbaraw&&i&&(a="xl/vbaProject.bin",zip_add_file(n,a,e.vbaraw),s.vba.push(a),add_rels(t.wbrels,-1,"vbaProject.bin",RELS.VBA)),a="xl/metadata."+r,zip_add_file(n,a,write_xlmeta(a)),s.metadata.push(a),add_rels(t.wbrels,-1,"metadata."+r,RELS.XLMETA),zip_add_file(n,"[Content_Types].xml",write_ct(s,t)),zip_add_file(n,"_rels/.rels",write_rels(t.rels)),zip_add_file(n,"xl/_rels/workbook."+r+".rels",write_rels(t.wbrels)),delete t.revssf,delete t.ssf,n}function write_zip_xlsx(e,t){_shapeid=1024,e&&!e.SSF&&(e.SSF=dup(table_fmt)),e&&e.SSF&&(make_ssf(),SSF_load_table(e.SSF),t.revssf=evert_num(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,browser_has_Map?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",i=VBAFMTS.indexOf(t.bookType)>-1,s=new_ct();fix_write_opts(t=t||{});var n=zip_new(),a="",o=0;if(t.cellXfs=[],get_cell_style(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",zip_add_file(n,a,write_core_props(e.Props,t)),s.coreprops.push(a),add_rels(t.rels,2,a,RELS.CORE_PROPS),a="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],f=0;f<e.SheetNames.length;++f)(e.Workbook.Sheets[f]||{}).Hidden!=2&&l.push(e.SheetNames[f]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,zip_add_file(n,a,write_ext_props(e.Props)),s.extprops.push(a),add_rels(t.rels,3,a,RELS.EXT_PROPS),e.Custprops!==e.Props&&keys(e.Custprops||{}).length>0&&(a="docProps/custom.xml",zip_add_file(n,a,write_cust_props(e.Custprops)),s.custprops.push(a),add_rels(t.rels,4,a,RELS.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var m={"!id":{}},u=e.Sheets[e.SheetNames[o-1]],x=(u||{})["!type"]||"sheet";switch(x){case"chart":default:a="xl/worksheets/sheet"+o+"."+r,zip_add_file(n,a,write_ws_xml(o-1,t,e,m)),s.sheets.push(a),add_rels(t.wbrels,-1,"worksheets/sheet"+o+"."+r,RELS.WS[0])}if(u){var d=u["!comments"],p=!1,E="";if(d&&d.length>0){var g=!1;d.forEach(function(_){_[1].forEach(function(y){y.T==!0&&(g=!0)})}),g&&(E="xl/threadedComments/threadedComment"+o+"."+r,zip_add_file(n,E,write_tcmnt_xml(d,c,t)),s.threadedcomments.push(E),add_rels(m,-1,"../threadedComments/threadedComment"+o+"."+r,RELS.TCMNT)),E="xl/comments"+o+"."+r,zip_add_file(n,E,write_comments_xml(d)),s.comments.push(E),add_rels(m,-1,"../comments"+o+"."+r,RELS.CMNT),p=!0}u["!legacy"]&&p&&zip_add_file(n,"xl/drawings/vmlDrawing"+o+".vml",write_comments_vml(o,u["!comments"])),delete u["!comments"],delete u["!legacy"]}m["!id"].rId1&&zip_add_file(n,get_rels_path(a),write_rels(m))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,zip_add_file(n,a,write_sst_xml(t.Strings,t)),s.strs.push(a),add_rels(t.wbrels,-1,"sharedStrings."+r,RELS.SST)),a="xl/workbook."+r,zip_add_file(n,a,write_wb_xml(e)),s.workbooks.push(a),add_rels(t.rels,1,a,RELS.WB),a="xl/theme/theme1.xml",zip_add_file(n,a,write_theme(e.Themes,t)),s.themes.push(a),add_rels(t.wbrels,-1,"theme/theme1.xml",RELS.THEME),a="xl/styles."+r,zip_add_file(n,a,write_sty_xml(e,t)),s.styles.push(a),add_rels(t.wbrels,-1,"styles."+r,RELS.STY),e.vbaraw&&i&&(a="xl/vbaProject.bin",zip_add_file(n,a,e.vbaraw),s.vba.push(a),add_rels(t.wbrels,-1,"vbaProject.bin",RELS.VBA)),a="xl/metadata."+r,zip_add_file(n,a,write_xlmeta_xml()),s.metadata.push(a),add_rels(t.wbrels,-1,"metadata."+r,RELS.XLMETA),c.length>1&&(a="xl/persons/person.xml",zip_add_file(n,a,write_people_xml(c)),s.people.push(a),add_rels(t.wbrels,-1,"persons/person.xml",RELS.PEOPLE)),zip_add_file(n,"[Content_Types].xml",write_ct(s,t)),zip_add_file(n,"_rels/.rels",write_rels(t.rels)),zip_add_file(n,"xl/_rels/workbook."+r+".rels",write_rels(t.wbrels)),delete t.revssf,delete t.ssf,n}function firstbyte(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Base64_decode(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function write_cfb_ctr(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return write_dl(t.file,CFB.write(e,{type:has_buf?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return CFB.write(e,t)}function write_zip_type(e,t){var r=dup(t||{}),i=write_zip(e,r);return write_zip_denouement(i,r)}function write_zip_denouement(e,t){var r={},i=has_buf?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=i;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=i;break;default:throw new Error("Unrecognized type "+t.type)}var s=e.FullPaths?CFB.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof s=="string"){if(t.type=="binary"||t.type=="base64")return s;s=new Uint8Array(s2ab(s))}return t.password&&typeof encrypt_agile<"u"?write_cfb_ctr(encrypt_agile(s,t.password),t):t.type==="file"?write_dl(t.file,s):t.type=="string"?utf8read(s):s}function write_cfb_type(e,t){var r=t||{},i=write_xlscfb(e,r);return write_cfb_ctr(i,r)}function write_string_type(e,t,r){r||(r="");var i=r+e;switch(t.type){case"base64":return Base64_encode(utf8write(i));case"binary":return utf8write(i);case"string":return e;case"file":return write_dl(t.file,i,"utf8");case"buffer":return has_buf?Buffer_from(i,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(i):write_string_type(i,{type:"binary"}).split("").map(function(s){return s.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function write_stxt_type(e,t){switch(t.type){case"base64":return Base64_encode(e);case"binary":return e;case"string":return e;case"file":return write_dl(t.file,e,"binary");case"buffer":return has_buf?Buffer_from(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function write_binary_type(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",i=0;i<e.length;++i)r+=String.fromCharCode(e[i]);return t.type=="base64"?Base64_encode(r):t.type=="string"?utf8read(r):r;case"file":return write_dl(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function writeSync(e,t){reset_cp(),check_wb(e);var r=dup(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var i=writeSync(e,r);return r.type="array",s2ab(i)}var s=0;if(r.sheet&&(typeof r.sheet=="number"?s=r.sheet:s=e.SheetNames.indexOf(r.sheet),!e.SheetNames[s]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return write_string_type(write_xlml(e,r),r);case"slk":case"sylk":return write_string_type(SYLK.from_sheet(e.Sheets[e.SheetNames[s]],r),r);case"htm":case"html":return write_string_type(sheet_to_html(e.Sheets[e.SheetNames[s]],r),r);case"txt":return write_stxt_type(sheet_to_txt(e.Sheets[e.SheetNames[s]],r),r);case"csv":return write_string_type(sheet_to_csv(e.Sheets[e.SheetNames[s]],r),r,"\uFEFF");case"dif":return write_string_type(DIF.from_sheet(e.Sheets[e.SheetNames[s]],r),r);case"dbf":return write_binary_type(DBF.from_sheet(e.Sheets[e.SheetNames[s]],r),r);case"prn":return write_string_type(PRN.from_sheet(e.Sheets[e.SheetNames[s]],r),r);case"rtf":return write_string_type(RTF.from_sheet(e.Sheets[e.SheetNames[s]],r),r);case"eth":return write_string_type(ETH.from_sheet(e.Sheets[e.SheetNames[s]],r),r);case"fods":return write_string_type(write_ods(e,r),r);case"wk1":return write_binary_type(WK_.sheet_to_wk1(e.Sheets[e.SheetNames[s]],r),r);case"wk3":return write_binary_type(WK_.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),write_binary_type(write_biff_buf(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),write_cfb_type(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return write_zip_type(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function resolve_book_type(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function writeFileSync(e,t,r){var i=r||{};return i.type="file",i.file=t,resolve_book_type(i),writeSync(e,i)}function make_json_row(e,t,r,i,s,n,a,o){var l=encode_row(r),f=o.defval,c=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),m=!0,u=s===1?[]:{};if(s!==1)if(Object.defineProperty)try{Object.defineProperty(u,"__rowNum__",{value:r,enumerable:!1})}catch{u.__rowNum__=r}else u.__rowNum__=r;if(!a||e[r])for(var x=t.s.c;x<=t.e.c;++x){var d=a?e[r][x]:e[i[x]+l];if(d===void 0||d.t===void 0){if(f===void 0)continue;n[x]!=null&&(u[n[x]]=f);continue}var p=d.v;switch(d.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+d.t)}if(n[x]!=null){if(p==null)if(d.t=="e"&&p===null)u[n[x]]=null;else if(f!==void 0)u[n[x]]=f;else if(c&&p===null)u[n[x]]=null;else continue;else u[n[x]]=c&&(d.t!=="n"||d.t==="n"&&o.rawNumbers!==!1)?p:format_cell(d,p,o);p!=null&&(m=!1)}}return{row:u,isempty:m}}function sheet_to_json(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},i=0,s=1,n=[],a=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},f=t||{},c=f.range!=null?f.range:e["!ref"];switch(f.header===1?i=1:f.header==="A"?i=2:Array.isArray(f.header)?i=3:f.header==null&&(i=0),typeof c){case"string":l=safe_decode_range(c);break;case"number":l=safe_decode_range(e["!ref"]),l.s.r=c;break;default:l=c}i>0&&(s=0);var m=encode_row(l.s.r),u=[],x=[],d=0,p=0,E=Array.isArray(e),g=l.s.r,_=0,y={};E&&!e[g]&&(e[g]=[]);var S=f.skipHidden&&e["!cols"]||[],C=f.skipHidden&&e["!rows"]||[];for(_=l.s.c;_<=l.e.c;++_)if(!(S[_]||{}).hidden)switch(u[_]=encode_col(_),r=E?e[g][_]:e[u[_]+m],i){case 1:n[_]=_-l.s.c;break;case 2:n[_]=u[_];break;case 3:n[_]=f.header[_-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),o=a=format_cell(r,null,f),p=y[a]||0,!p)y[a]=1;else{do o=a+"_"+p++;while(y[o]);y[a]=p,y[o]=1}n[_]=o}for(g=l.s.r+s;g<=l.e.r;++g)if(!(C[g]||{}).hidden){var b=make_json_row(e,l,g,u,i,n,E,f);(b.isempty===!1||(i===1?f.blankrows!==!1:f.blankrows))&&(x[d++]=b.row)}return x.length=d,x}var qreg=/"/g;function make_csv_row(e,t,r,i,s,n,a,o){for(var l=!0,f=[],c="",m=encode_row(r),u=t.s.c;u<=t.e.c;++u)if(i[u]){var x=o.dense?(e[r]||[])[u]:e[i[u]+m];if(x==null)c="";else if(x.v!=null){l=!1,c=""+(o.rawNumbers&&x.t=="n"?x.v:format_cell(x,null,o));for(var d=0,p=0;d!==c.length;++d)if((p=c.charCodeAt(d))===s||p===n||p===34||o.forceQuotes){c='"'+c.replace(qreg,'""')+'"';break}c=="ID"&&(c='"ID"')}else x.f!=null&&!x.F?(l=!1,c="="+x.f,c.indexOf(",")>=0&&(c='"'+c.replace(qreg,'""')+'"')):c="";f.push(c)}return o.blankrows===!1&&l?null:f.join(a)}function sheet_to_csv(e,t){var r=[],i=t??{};if(e==null||e["!ref"]==null)return"";var s=safe_decode_range(e["!ref"]),n=i.FS!==void 0?i.FS:",",a=n.charCodeAt(0),o=i.RS!==void 0?i.RS:`
141
141
  `,l=o.charCodeAt(0),f=new RegExp((n=="|"?"\\|":n)+"+$"),c="",m=[];i.dense=Array.isArray(e);for(var u=i.skipHidden&&e["!cols"]||[],x=i.skipHidden&&e["!rows"]||[],d=s.s.c;d<=s.e.c;++d)(u[d]||{}).hidden||(m[d]=encode_col(d));for(var p=0,E=s.s.r;E<=s.e.r;++E)(x[E]||{}).hidden||(c=make_csv_row(e,s,E,m,a,l,n,i),c!=null&&(i.strip&&(c=c.replace(f,"")),(c||i.blankrows!==!1)&&r.push((p++?o:"")+c)));return delete i.dense,r.join("")}function sheet_to_txt(e,t){t||(t={}),t.FS=" ",t.RS=`
142
- `;var r=sheet_to_csv(e,t);return r}function sheet_to_formulae(e){var t="",r,i="";if(e==null||e["!ref"]==null)return[];var s=safe_decode_range(e["!ref"]),n="",a=[],o,l=[],f=Array.isArray(e);for(o=s.s.c;o<=s.e.c;++o)a[o]=encode_col(o);for(var c=s.s.r;c<=s.e.r;++c)for(n=encode_row(c),o=s.s.c;o<=s.e.c;++o)if(t=a[o]+n,r=f?(e[c]||[])[o]:e[t],i="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;i=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)i=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)i=""+r.v;else if(r.t=="b")i=r.v?"TRUE":"FALSE";else if(r.w!==void 0)i="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?i="'"+r.v:i=""+r.v}}l[l.length]=t+"="+i}return l}function sheet_add_json(e,t,r){var i=r||{},s=+!i.skipHeader,n=e||{},a=0,o=0;if(n&&i.origin!=null)if(typeof i.origin=="number")a=i.origin;else{var l=typeof i.origin=="string"?decode_cell(i.origin):i.origin;a=l.r,o=l.c}var f,c={s:{c:0,r:0},e:{c:o,r:a+t.length-1+s}};if(n["!ref"]){var m=safe_decode_range(n["!ref"]);c.e.c=Math.max(c.e.c,m.e.c),c.e.r=Math.max(c.e.r,m.e.r),a==-1&&(a=m.e.r+1,c.e.r=a+t.length-1+s)}else a==-1&&(a=0,c.e.r=t.length-1+s);var u=i.header||[],x=0;t.forEach(function(p,E){keys(p).forEach(function(g){(x=u.indexOf(g))==-1&&(u[x=u.length]=g);var _=p[g],y="z",S="",C=encode_cell({c:o+x,r:a+E+s});f=ws_get_cell_stub(n,C),_&&typeof _=="object"&&!(_ instanceof Date)?n[C]=_:(typeof _=="number"?y="n":typeof _=="boolean"?y="b":typeof _=="string"?y="s":_ instanceof Date?(y="d",i.cellDates||(y="n",_=datenum(_)),S=i.dateNF||table_fmt[14]):_===null&&i.nullError&&(y="e",_=0),f?(f.t=y,f.v=_,delete f.w,delete f.R,S&&(f.z=S)):n[C]=f={t:y,v:_},S&&(f.z=S))})}),c.e.c=Math.max(c.e.c,o+u.length-1);var d=encode_row(a);if(s)for(x=0;x<u.length;++x)n[encode_col(x+o)+d]={t:"s",v:u[x]};return n["!ref"]=encode_range(c),n}function json_to_sheet(e,t){return sheet_add_json(null,e,t)}function ws_get_cell_stub(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var i=decode_cell(t);return e[i.r]||(e[i.r]=[]),e[i.r][i.c]||(e[i.r][i.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?ws_get_cell_stub(e,encode_cell(t)):ws_get_cell_stub(e,encode_cell({r:t,c:r||0}))}function wb_sheet_idx(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function book_new(){return{SheetNames:[],Sheets:{}}}function book_append_sheet(e,t,r,i){var s=1;if(!r)for(;s<=65535&&e.SheetNames.indexOf(r="Sheet"+s)!=-1;++s,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(i&&e.SheetNames.indexOf(r)>=0){var n=r.match(/(^.*?)(\d+)$/);s=n&&+n[2]||0;var a=n&&n[1]||r;for(++s;s<=65535&&e.SheetNames.indexOf(r=a+s)!=-1;++s);}if(check_ws_name(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function book_set_sheet_visibility(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var i=wb_sheet_idx(e,t);switch(e.Workbook.Sheets[i]||(e.Workbook.Sheets[i]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[i].Hidden=r}function cell_set_number_format(e,t){return e.z=t,e}function cell_set_hyperlink(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function cell_set_internal_link(e,t,r){return cell_set_hyperlink(e,"#"+t,r)}function cell_add_comment(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function sheet_set_array_formula(e,t,r,i){for(var s=typeof t!="string"?t:safe_decode_range(t),n=typeof t=="string"?t:encode_range(t),a=s.s.r;a<=s.e.r;++a)for(var o=s.s.c;o<=s.e.c;++o){var l=ws_get_cell_stub(e,a,o);l.t="n",l.F=n,delete l.v,a==s.s.r&&o==s.s.c&&(l.f=r,i&&(l.D=!0))}return e}var utils={encode_col,encode_row,encode_cell,encode_range,decode_col,decode_row,split_cell,decode_cell,decode_range,format_cell,sheet_add_aoa,sheet_add_json,sheet_add_dom,aoa_to_sheet,json_to_sheet,table_to_sheet:parse_dom_table,table_to_book,sheet_to_csv,sheet_to_txt,sheet_to_json,sheet_to_html,sheet_to_formulae,sheet_to_row_object_array:sheet_to_json,sheet_get_cell:ws_get_cell_stub,book_new,book_append_sheet,book_set_sheet_visibility,cell_set_number_format,cell_set_hyperlink,cell_set_internal_link,cell_add_comment,sheet_set_array_formula,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const ExportIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.59%209.5H15V4.5C15%203.95%2014.55%203.5%2014%203.5H10C9.45%203.5%209%203.95%209%204.5V9.5H7.41C6.52%209.5%206.07%2010.58%206.7%2011.21L11.29%2015.8C11.68%2016.19%2012.31%2016.19%2012.7%2015.8L17.29%2011.21C17.92%2010.58%2017.48%209.5%2016.59%209.5ZM5%2019.5C5%2020.05%205.45%2020.5%206%2020.5H18C18.55%2020.5%2019%2020.05%2019%2019.5C19%2018.95%2018.55%2018.5%2018%2018.5H6C5.45%2018.5%205%2018.95%205%2019.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",FileOpenRounded="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%202.5H10.83C10.3%202.5%209.79%202.71%209.41%203.09L4.59%207.91C4.21%208.29%204%208.8%204%209.33V20.5C4%2021.6%204.9%2022.5%206%2022.5H18C19.1%2022.5%2020%2021.6%2020%2020.5V4.5C20%203.4%2019.1%202.5%2018%202.5ZM11.65%2017.15L8.86%2014.36C8.54%2014.04%208.76%2013.5%209.21%2013.5H11V10.51C11%209.96%2011.44%209.52%2011.99%209.51C12.55%209.5%2013%209.95%2013%2010.51V13.5H14.79C15.24%2013.5%2015.46%2014.04%2015.14%2014.35L12.35%2017.14C12.16%2017.34%2011.84%2017.34%2011.65%2017.15Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",ReloadIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.6498%206.84999C16.0198%205.21999%2013.7098%204.27999%2011.1698%204.53999C7.49978%204.90999%204.47978%207.88999%204.06978%2011.56C3.51978%2016.41%207.26978%2020.5%2011.9998%2020.5C15.1898%2020.5%2017.9298%2018.63%2019.2098%2015.94C19.5298%2015.27%2019.0498%2014.5%2018.3098%2014.5C17.9398%2014.5%2017.5898%2014.7%2017.4298%2015.03C16.2998%2017.46%2013.5898%2019%2010.6298%2018.34C8.40978%2017.85%206.61978%2016.04%206.14978%2013.82C5.30978%209.93999%208.25978%206.49999%2011.9998%206.49999C13.6598%206.49999%2015.1398%207.18999%2016.2198%208.27999L14.7098%209.78999C14.0798%2010.42%2014.5198%2011.5%2015.4098%2011.5H18.9998C19.5498%2011.5%2019.9998%2011.05%2019.9998%2010.5V6.90999C19.9998%206.01999%2018.9198%205.56999%2018.2898%206.19999L17.6498%206.84999Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",FilterAltOffRounded="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.7901%206.11003C20.3001%205.45003%2019.8301%204.50003%2019.0001%204.50003H6.83008L14.8001%2012.47L19.7901%206.11003Z'%20fill='black'%20fill-opacity='0.54'/%3e%3cpath%20d='M20.4901%2020.99L3.51012%204.01003C3.12012%203.62003%202.49012%203.62003%202.10012%204.01003C1.71012%204.40003%201.71012%205.03003%202.10012%205.42003L10.0001%2013.5V18.5C10.0001%2019.6%2010.9001%2020.5%2012.0001%2020.5C13.1001%2020.5%2014.0001%2019.6%2014.0001%2018.5V17.33L19.0701%2022.4C19.4601%2022.79%2020.0901%2022.79%2020.4801%2022.4C20.8701%2022.01%2020.8801%2021.38%2020.4901%2020.99Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",CESkeletonTable=({columns:e,rows:t})=>jsxRuntimeExports.jsx("div",{className:"skeleton-table",children:jsxRuntimeExports.jsxs("table",{children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:Array.from({length:e}).map((r,i)=>jsxRuntimeExports.jsx("th",{children:jsxRuntimeExports.jsx("div",{className:"skeleton skeleton-header"})},i))})}),jsxRuntimeExports.jsx("tbody",{children:Array.from({length:t}).map((r,i)=>jsxRuntimeExports.jsx("tr",{children:Array.from({length:e}).map((s,n)=>jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx("div",{className:"skeleton skeleton-cell"})},n))},i))})]})}),CERadioButton=({label:e,value:t,checked:r,onChange:i})=>jsxRuntimeExports.jsxs("label",{className:"radio-button",style:{margin:"0.5rem 0"},children:[jsxRuntimeExports.jsx("input",{type:"radio",value:t,checked:r,onChange:()=>i(t),style:{marginRight:e?"0.5rem":0}}),e&&jsxRuntimeExports.jsx("span",{children:e})]}),PaginationControls=({currentPage:e,totalPages:t,setCurrentPage:r})=>{const n=Math.floor(e/5)*5,a=Math.min(n+5,t),o=()=>{r(Math.max(0,n-1))},l=()=>{r(Math.min(t-1,a))},f=[];for(let c=n;c<a;c++)f.push(jsxRuntimeExports.jsx("button",{className:`pagination-page${e===c?" active":""}`,onClick:()=>r(c),disabled:e===c,children:c+1},c));return jsxRuntimeExports.jsxs("div",{className:"pagination-controls",children:[jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>r(0),disabled:e===0,children:"First"}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>r(e-1),disabled:e===0,children:"Previous"}),n>0&&jsxRuntimeExports.jsx("button",{className:"pagination-ellipsis",onClick:o,children:"..."}),f,a<t&&jsxRuntimeExports.jsx("button",{className:"pagination-ellipsis",onClick:l,children:"..."}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>r(e+1),disabled:e===t-1,children:"Next"}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>r(t-1),disabled:e===t-1,children:"Last"})]})},RowsPerPageSelector=({rowsPerPage:e,setRowsPerPage:t,setCurrentPage:r})=>jsxRuntimeExports.jsxs("div",{className:"rows-per-page-container",children:[jsxRuntimeExports.jsx("label",{htmlFor:"rows-per-page-select",children:"Rows per page:"}),jsxRuntimeExports.jsx("select",{id:"rows-per-page-select",value:e,onChange:i=>{t(Number(i.target.value)),r(0)},style:{marginLeft:"8px"},children:[10,20,50,100].map(i=>jsxRuntimeExports.jsx("option",{value:i,children:i},i))})]}),EntriesInfo=({dataLength:e,currentPage:t,rowsPerPage:r})=>jsxRuntimeExports.jsx("div",{className:"entries-info",children:e>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Showing ",e===0?0:t*r+1," to"," ",Math.min((t+1)*r,e)," of ",e," ","entries"]})}),CEDataGridDynamicTable=({title:e,jsonData:t,columnList:r,ischeckBoxInGrid:i,isRadioButtonInGrid:s,onRadioChange:n,getSelectedRadioValue:a,renderRadioInColumnId:o,isSearchBoxInGrid:l,isAddButtonRequired:f,isEditButtonRequired:c,isDeleteButtonRequired:m,isApproveButtonRequired:u,isReassignButtonRequired:x,isCancelButtonRequired:d,isExportToExcelRequired:p,isExportAllToExcel:E,handleEditClick:g,handleAddClick:_,handleDeleteClick:y,handleApproveClick:S,handleReassignClick:C,handleCancelClick:b,noOfPagesPerPage:A,clickableColumns:k,conditionalClickableColumns:I,handleCellClick:q,onReload:X,showDownloadIcon:W=!0,showRefreshIcon:J=!0,showFullViewIcon:ae=!0,showSearchIcon:Y=!0,showColumnVisibilityIcon:L=!0,showSortIcon:j=!0,showFilterIcon:T=!0,defaultSortConfig:R,onDataUpdate:M,isOverrideCSS:D,showPagination:P=!0,shouldResetSearchOnDataChange:H})=>{const[B,z]=React2.useState({}),[re,ce]=React2.useState(!1),[fe,pe]=React2.useState([]),[le,Se]=React2.useState([]),[Ce,Te]=React2.useState([]),[he,je]=React2.useState(!1),[Re,ye]=React2.useState(new Set),[Fe,Me]=React2.useState(null),[Ve,Pe]=React2.useState(!1),[Je,$e]=React2.useState(""),[De,Ke]=React2.useState("contains"),[Ue,Ge]=React2.useState(""),[Le,We]=React2.useState({}),[Qe,qe]=React2.useState(0),[it,wt]=React2.useState(A??10),[pt,St]=React2.useState(new Set),[Ze,ot]=React2.useState(""),[dt,xt]=React2.useState(!1),[He,mt]=React2.useState(new Set),[lt,ft]=React2.useState([]),[ct,Ct]=React2.useState(null),yt=React2.useRef(null),vt=React2.useRef(null),gt=React2.useRef(null),[ht,bt]=React2.useState(new Set),[Ye,_t]=React2.useState([]),[At,Rt]=React2.useState(!1),[et,F]=React2.useState(null),V=React2.useRef([]),[N,O]=React2.useState(!1),U=()=>O(!0),G=()=>O(!1),[Q,ne]=React2.useState(!0),Z=K=>{if(Array.isArray(K))return K.map(Z);if(K&&typeof K=="object"&&!React2.isValidElement(K)){const te={};for(const oe in K)React2.isValidElement(K[oe])||(te[oe]=Z(K[oe]));return te}return K};React2.useEffect(()=>{if(t&&Array.isArray(t)){const K=Z(V.current),te=Z(t),oe=JSON.stringify(K)!==JSON.stringify(te);if(t&&Array.isArray(t)&&oe){let se=[...t];if(R){const{column:de,direction:Ee}=R;se.sort((_e,we)=>{const ke=_e[de],Ie=we[de],Ae=new Date(ke),Be=new Date(Ie),Xe=!isNaN(Ae.getTime()),at=!isNaN(Be.getTime());if(Xe&&at)return Ee==="asc"?Ae.getTime()-Be.getTime():Be.getTime()-Ae.getTime();const Ft=String(ke||"").toLowerCase(),Bt=String(Ie||"").toLowerCase();return Ft.localeCompare(Bt)}),Ee==="desc"&&se.reverse(),F(R)}if(pe(se),Se(se),ne(!1),H?(ot(""),We({})):ve(),o){const de={},Ee=Array.isArray(o)?o:[o];se.forEach((_e,we)=>{const ke=_e.id??`__row_${we}`;for(const Ie of Ee)if(_e[Ie]===!0){de[ke]={columnId:Ie,rowData:_e};break}}),ie(de)}V.current=t}}else ne(!0)},[t,R,o]),React2.useEffect(()=>{if(fe.length>0){const K=(r??[]).map(se=>({id:se.id,label:se.label??se.id,tooltip:se.tooltip,shouldDisplay:se.shouldDisplay??!0,shouldVisible:se.shouldVisible??!0})),te=Object.keys(fe[0]||{}).map(se=>({id:se,label:se.charAt(0).toUpperCase()+se.slice(1),shouldDisplay:!0,shouldVisible:!0})),oe=K.length>0?K:te;if(_t(oe),!At){const se=oe.filter(Ee=>Ee.shouldDisplay!==!1).map(Ee=>Ee.id),de=oe.filter(Ee=>Ee.shouldVisible!==!1).map(Ee=>Ee.id);mt(new Set(se)),ft(de),Rt(!0)}}},[fe,r]);const[ee,ie]=React2.useState({}),ue=({rowIndex:K,columnId:te,rowData:oe})=>{const se=Array.isArray(o)?o:[o],de={...oe,...Object.fromEntries(se.map(we=>[we,we===te]))},Ee=oe.id??`__row_${K}`;ie(we=>({...we,[Ee]:{columnId:te,rowData:de}}));const _e=fe.map((we,ke)=>(we.id??`__row_${ke}`)===Ee?{...we,...Object.fromEntries(se.map(Ae=>[Ae,Ae===te]))}:we);pe(_e),Se(_e),M&&M({fullData:_e,updatedRow:de})},me=K=>{var se;const te=fe.findIndex(de=>de===K),oe=K.id??`__row_${te}`;return((se=ee[oe])==null?void 0:se.columnId)||""},ge=React2.useMemo(()=>{const K=Qe*it,te=K+it;return fe.slice(K,te)},[fe,Qe,it]),xe=()=>{ot(""),ve()},ve=()=>{let K=[...le];Ze.trim()&&(K=K.filter(te=>Object.entries(te).some(([oe,se])=>He.has(oe)?String(se).toLowerCase().includes(Ze.toLowerCase()):!1))),Object.entries(Le).forEach(([te,oe])=>{const{value:se,operator:de}=oe;K=K.filter(Ee=>{const _e=String(Ee[te]||"").toLowerCase(),we=se.toLowerCase();switch(de){case"contains":return _e.includes(we);case"equals":return _e===we;case"startsWith":return _e.startsWith(we);case"endsWith":return _e.endsWith(we);case"does not contain":return!_e.includes(we);case"does not equal":return _e!==we;case"is any of":return se.split(",").map(ke=>ke.trim().toLowerCase()).includes(_e);default:return!0}})}),pe(K),qe(0)},be=K=>{const te=new Set(He);te.has(K)?te.size>1&&te.delete(K):te.add(K),mt(te)},Ne=(K,te=null)=>{const oe=te?`${K}-${te}`:`${K}`,se=new Set(pt);se.has(oe)?se.delete(oe):(Array.from(se).forEach(de=>{de.startsWith(`${K}`)&&se.delete(de)}),se.add(oe)),St(se)},Oe=K=>{Me(Fe===K?null:K)};React2.useEffect(()=>{const K=te=>{if(Fe&&!te.target)return;const oe=te.target;!oe.closest(".dropdown-menu")&&!oe.closest(".dropdown-trigger")&&Me(null)};return document.addEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)}},[Fe]);const ze=K=>{if(le.length===0)return;let te="asc";et&&et.column===K&&(te=et.direction==="asc"?"desc":"asc");const oe=[...le].sort((de,Ee)=>{const _e=de[K],we=Ee[K];if(_e==null)return 1;if(we==null)return-1;const ke=String(_e).toLowerCase(),Ie=String(we).toLowerCase();return!isNaN(Number(_e))&&!isNaN(Number(we))?te==="asc"?Number(_e)-Number(we):Number(we)-Number(_e):te==="asc"?ke.localeCompare(Ie):Ie.localeCompare(ke)});F({column:K,direction:te}),Se(oe);let se=[...oe];Object.entries(Le).forEach(([de,Ee])=>{const{value:_e,operator:we}=Ee,ke=_e.toLowerCase();se=se.filter(Ie=>{const Ae=String(Ie[de]||"").toLowerCase();switch(we){case"contains":return Ae.includes(ke);case"equals":return Ae===ke;case"startsWith":return Ae.startsWith(ke);case"endsWith":return Ae.endsWith(ke);default:return!0}})}),Ze.trim()&&(se=se.filter(de=>Object.entries(de).some(([Ee,_e])=>He.has(Ee)?String(_e).toLowerCase().includes(Ze.toLowerCase()):!1))),pe(se),qe(0)},nt=()=>{Je&&Ue.trim()!==""&&st(Je,Ue,De),Pe(!1),Ge(""),$e(""),qe(0)},st=(K,te,oe)=>{if(K){const se={...Le};if(te===""&&(oe==="contains"||oe==="equals")){$e(K),Ke(oe||De),Ge(""),Pe(!0);return}else te&&te.trim()!==""?se[K]={value:te,operator:oe||De}:delete se[K];We(se);let de=[...le];Object.entries(se).forEach(([Ee,_e])=>{const{value:we,operator:ke}=_e;de=de.filter(Ie=>{const Ae=String(Ie[Ee]||"").toLowerCase(),Be=we.toLowerCase();switch(ke){case"contains":return Ae.includes(Be);case"equals":return Ae===Be;case"startsWith":return Ae.startsWith(Be);case"endsWith":return Ae.endsWith(Be);case"does not contain":return!Ae.includes(Be);case"does not equal":return Ae!==Be;case"is any of":return we.split(",").map(Xe=>Xe.trim().toLowerCase()).includes(Ae);default:return!0}})}),pe(de),Te(de),qe(0),Pe(!1)}},ut=K=>{K.key==="Enter"&&st()};useEscapeKey(()=>{Me(null),Pe(!1)});const tt=(K,te="")=>{const oe=se=>{const de=new Set(ht);de.has(se)?de.delete(se):de.add(se),bt(de)};if(Array.isArray(K)){const se=Array.from(new Set(K.reduce((de,Ee)=>typeof Ee=="object"&&Ee!==null?[...de,...Object.keys(Ee)]:de,[])));return jsxRuntimeExports.jsx("div",{className:"expanded-section",children:jsxRuntimeExports.jsx("div",{className:"nested-table",children:jsxRuntimeExports.jsxs("table",{children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:se.map(de=>jsxRuntimeExports.jsx("th",{children:de.charAt(0).toUpperCase()+de.slice(1)},de))})}),jsxRuntimeExports.jsx("tbody",{children:K.map((de,Ee)=>jsxRuntimeExports.jsx("tr",{children:se.map(_e=>jsxRuntimeExports.jsx("td",{children:typeof de[_e]=="object"&&de[_e]!==null?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>oe(`${te}-${Ee}-${_e}`),children:ht.has(`${te}-${Ee}-${_e}`)?"▼":"▶"}),ht.has(`${te}-${Ee}-${_e}`)&&tt(de[_e],`${te}-${Ee}-${_e}`)]}):String(de[_e]||"")},`${te}-${Ee}-${_e}`))},`${te}-${Ee}`))})]})})})}else if(typeof K=="object"&&K!==null)return jsxRuntimeExports.jsx("div",{className:"nested-object",children:jsxRuntimeExports.jsxs("table",{className:"custom-table nested",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"table-header-cell",children:"Property"}),jsxRuntimeExports.jsx("th",{className:"table-header-cell",children:"Value"})]})}),jsxRuntimeExports.jsx("tbody",{children:Object.entries(K).map(([se,de])=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"table-cell",children:jsxRuntimeExports.jsx("strong",{children:se})}),jsxRuntimeExports.jsx("td",{className:"table-cell",children:typeof de=="object"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>oe(`${te}-${se}`),children:ht.has(`${te}-${se}`)?"▼":"▶"}),ht.has(`${te}-${se}`)&&tt(de,`${te}-${se}`)]}):String(de)})]},`${te}-${se}`))})]})});return jsxRuntimeExports.jsx("span",{children:String(K)})},Et=K=>{var te;if(K){const oe=(te=K.parentElement)==null?void 0:te.querySelector(".dropdown-trigger");if(!oe)return;const se=oe.getBoundingClientRect(),de=window.innerHeight,Ee=window.innerWidth,_e=K.offsetHeight,we=K.offsetWidth,ke=se.bottom+_e>de,Ie=se.left+we>Ee,Ae=se.left-we<0;let Be,Xe;ke?(Be=se.top-_e,K.classList.add("adjust-top")):(Be=se.bottom,K.classList.remove("adjust-top")),Ie?(Xe=se.right-we,K.classList.add("adjust-left"),K.classList.remove("adjust-right")):Ae?(Xe=se.left,K.classList.add("adjust-right"),K.classList.remove("adjust-left")):(Xe=se.left,K.classList.remove("adjust-left"),K.classList.remove("adjust-right")),K.style.top=`${Be}px`,K.style.left=`${Xe}px`,K.classList.add("dropdown-fixed-position")}};React2.useEffect(()=>{const K=te=>{Ve&&yt.current&&!yt.current.contains(te.target)&&Pe(!1)};return document.addEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)}},[Ve]),React2.useEffect(()=>{const K=te=>{Fe&&vt.current&&!vt.current.contains(te.target)&&Me(null)};return document.addEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)}},[Fe]),React2.useEffect(()=>{const K=te=>{dt&&gt.current&&!gt.current.contains(te.target)&&xt(!1)};return document.addEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)}},[dt]);const rt=(K,te)=>{K.preventDefault();const oe=K.pageX,se=B[te]||150,de=_e=>{const we=Math.max(100,se+(_e.pageX-oe));z(ke=>({...ke,[te]:we}))},Ee=()=>{document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",Ee)};document.addEventListener("mousemove",de),document.addEventListener("mouseup",Ee)},kt=(K,te)=>{var se;const oe=String(te);return k!=null&&k.includes(K)?I!=null&&I[K]?I[K].includes(oe):!0:!!((se=I==null?void 0:I._global_)!=null&&se.includes(oe))},Lt=(K,te)=>{kt(te,K[te])&&q&&q(K,te)},Tt=ge.some(K=>Array.from(He).some(te=>Array.isArray(K[te])&&K[te].length>0&&K[te].some(oe=>typeof oe=="object"&&oe!==null))),It=()=>{const K=Ye.filter(de=>He.has(de.id)),te=le.map(de=>K.reduce((Ee,_e)=>(Ee[_e.label||_e.id]=de[_e.id],Ee),{})),oe=utils.json_to_sheet(te),se=utils.book_new();utils.book_append_sheet(se,oe,"Data"),writeFileSync(se,"alldata-grid-export.xlsx")},Mt=()=>jsxRuntimeExports.jsxs("div",{className:D?"esign-table-container":"table-container",children:[jsxRuntimeExports.jsx("div",{className:"table-scroll-container",children:He.size===0?jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"200px",display:"flex",alignItems:"center",justifyContent:"center",color:"#888",fontSize:"1.2em",background:"#fafafa",border:"1px solid #eee",borderRadius:"8px"},children:"Please select at least one column to show data"}):jsxRuntimeExports.jsxs("table",{className:"custom-table",style:{tableLayout:"fixed",width:"100%"},children:[jsxRuntimeExports.jsxs("thead",{children:[jsxRuntimeExports.jsxs("tr",{children:[Tt&&jsxRuntimeExports.jsx("th",{className:"expand-column"}),i&&jsxRuntimeExports.jsx("th",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:Re.size===fe.length&&fe.length>0,onChange:K=>{if(K){const te=new Set(fe.map((oe,se)=>se));ye(te)}else ye(new Set)}})}),lt.filter(K=>Ye.find(oe=>oe.id===K)&&He.has(K)).map(K=>{const te=Ye.find(oe=>oe.id===K);return te?jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:B[te.id]?`${B[te.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},children:jsxRuntimeExports.jsxs("div",{className:"column-header",children:[jsxRuntimeExports.jsxs("span",{className:"column-label-with-info",children:[te.label,te.tooltip&&jsxRuntimeExports.jsx("img",{src:InfoIcon,alt:"info",title:te.tooltip,width:14,height:14,className:"info-icon"})]}),jsxRuntimeExports.jsxs("div",{className:"column-actions",children:[j&&jsxRuntimeExports.jsx("img",{src:SortIcon,alt:"Sort",title:"Sort",width:14,height:14,onClick:()=>ze(te.id),style:{cursor:"pointer",transition:"transform 0.2s ease-in-out",transform:(et==null?void 0:et.column)===te.id?et.direction==="asc"?"rotate(0deg)":"rotate(180deg)":"none",filter:(et==null?void 0:et.column)===te.id?"brightness(0.6)":"none"}}),T&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:te.id===Fe?vt:null,children:[jsxRuntimeExports.jsx("span",{className:`dropdown-trigger ${Le[te.id]?"filter-active":""}`,onClick:oe=>{oe.stopPropagation(),Oe(te.id)},title:Le[te.id]?`Filter: ${Le[te.id].operator} "${Le[te.id].value}"`:"Filter options",children:"⋮"}),Fe===te.id&&jsxRuntimeExports.jsxs("div",{className:"dropdown-menu",ref:oe=>{oe&&setTimeout(()=>Et(oe),0)},children:[jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{$e(te.id),Pe(!0),Me(null)},children:"Filter"}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{st(te.id,"","contains"),Me(null)},children:"Contains..."}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{st(te.id,"","equals"),Me(null)},children:"Equals..."}),Le[te.id]&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{const oe={...Le};delete oe[te.id],We(oe),Ge(""),$e("");let se=[...le];Ze.trim()&&(se=se.filter(de=>Object.entries(de).some(([Ee,_e])=>He.has(Ee)?String(_e).toLowerCase().includes(Ze.toLowerCase()):!1))),Object.entries(oe).forEach(([de,Ee])=>{const{value:_e,operator:we}=Ee;se=se.filter(ke=>{const Ie=String(ke[de]||"").toLowerCase(),Ae=_e.toLowerCase();switch(we){case"contains":return Ie.includes(Ae);case"equals":return Ie===Ae;case"startsWith":return Ie.startsWith(Ae);case"endsWith":return Ie.endsWith(Ae);case"does not contain":return!Ie.includes(Ae);case"does not equal":return Ie!==Ae;case"is any of":return _e.split(",").map(Be=>Be.trim().toLowerCase()).includes(Ie);default:return!0}})}),pe(se),qe(0),Me(null)},children:"Clear Filter"}),Object.keys(Le).length>0&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{We({}),pe(le),qe(0),Me(null)},children:"Clear All Filters"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"column-resizer",onMouseDown:oe=>rt(oe,te.id)})]})},te.id):null}),(c||x||d||u||m||f)&&jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:"150px",textAlign:"center"},children:"Action"})]}),he&&jsxRuntimeExports.jsxs("tr",{className:"filter-row",children:[Tt&&jsxRuntimeExports.jsx("td",{}),i&&jsxRuntimeExports.jsx("td",{}),lt.filter(K=>Ye.find(oe=>oe.id===K)&&He.has(K)).map(K=>{var oe;const te=Ye.find(se=>se.id===K);return te?jsxRuntimeExports.jsxs("td",{style:{position:"relative"},children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:`Search ${te.label}`,value:((oe=Le[te.id])==null?void 0:oe.value)||"",onChange:se=>{const de=se.target.value;Ge(de),$e(te.id);const Ee={...Le};de===""?delete Ee[te.id]:Ee[te.id]={value:de,operator:"contains"},We(Ee);let _e=[...le];Ze.trim()&&(_e=_e.filter(we=>Object.entries(we).some(([ke,Ie])=>He.has(ke)?String(Ie).toLowerCase().includes(Ze.toLowerCase()):!1))),Object.entries(Ee).forEach(([we,ke])=>{const{value:Ie,operator:Ae}=ke;_e=_e.filter(Be=>{const Xe=String(Be[we]||"").toLowerCase(),at=Ie.toLowerCase();switch(Ae){case"contains":return Xe.includes(at);case"equals":return Xe===at;case"startsWith":return Xe.startsWith(at);case"endsWith":return Xe.endsWith(at);case"does not contain":return!Xe.includes(at);case"does not equal":return Xe!==at;case"is any of":return Ie.split(",").map(Ft=>Ft.trim().toLowerCase()).includes(Xe);default:return!0}})}),pe(_e),qe(0)},className:"filter-input-with-clear",style:{paddingRight:"28px"}}),Le[te.id]&&jsxRuntimeExports.jsx("span",{className:"filter-clear-icon-inside",onClick:()=>{const se={...Le};delete se[te.id],We(se),Ge(""),$e("");let de=[...le];Ze.trim()&&(de=de.filter(Ee=>Object.entries(Ee).some(([_e,we])=>He.has(_e)?String(we).toLowerCase().includes(Ze.toLowerCase()):!1))),Object.entries(se).forEach(([Ee,_e])=>{const{value:we,operator:ke}=_e;de=de.filter(Ie=>{const Ae=String(Ie[Ee]||"").toLowerCase(),Be=we.toLowerCase();switch(ke){case"contains":return Ae.includes(Be);case"equals":return Ae===Be;case"startsWith":return Ae.startsWith(Be);case"endsWith":return Ae.endsWith(Be);case"does not contain":return!Ae.includes(Be);case"does not equal":return Ae!==Be;case"is any of":return we.split(",").map(Xe=>Xe.trim().toLowerCase()).includes(Ae);default:return!0}})}),pe(de),qe(0)},title:"Clear",children:"×"})]},`filter-${te.id}`):null}),(c||x||d||u||m||f)&&jsxRuntimeExports.jsx("td",{})]})]}),jsxRuntimeExports.jsx("tbody",{children:ge.length===0?jsxRuntimeExports.jsx("tr",{className:"no-records-row",children:jsxRuntimeExports.jsx("td",{colSpan:(Tt?1:0)+(i?1:0)+Array.from(He).length+(c||x||d||u||m||f?1:0),className:"no-records-cell",children:Ze.trim()||Object.keys(Le).length>0?"No records found for the search criteria":"No Data found"})}):ge.map((K,te)=>jsxRuntimeExports.jsxs(React2.Fragment,{children:[jsxRuntimeExports.jsxs("tr",{className:te%2===0?"table-row-even":"table-row-odd",children:[Tt&&jsxRuntimeExports.jsx("td",{className:"expand-column",children:Array.from(He).some(oe=>Array.isArray(K[oe])&&K[oe].length>0&&K[oe].some(se=>typeof se=="object"&&se!==null))&&jsxRuntimeExports.jsx("button",{className:"expand-button",onClick:()=>Ne(te),children:Array.from(pt).some(oe=>oe.startsWith(`${te}`))?"▼":"▶"})}),i&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:Re.has(te),onChange:oe=>{const se=new Set(Re);oe?se.add(te):se.delete(te),ye(se)}})}),s&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:"selected",checked:(a==null?void 0:a(te))==="selected",onChange:()=>n==null?void 0:n({rowIndex:te,columnId:"selected",rowData:K})})})}),lt.filter(oe=>Ye.find(de=>de.id===oe)&&He.has(oe)).map(oe=>{const se=Ye.find(de=>de.id===oe);return se?jsxRuntimeExports.jsx("td",{style:{width:B[se.id]?`${B[se.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},className:`table-cell ${kt(se.id,K[se.id])?"ce-clickable-cell":""}`,onClick:()=>{kt(se.id,K[se.id])?Lt(K,se.id):Array.isArray(K[se.id])&&K[se.id].length>0&&Ne(te,se.id)},children:React2.isValidElement(K[se.id])?K[se.id]:(Array.isArray(o)?o.includes(se.id):o===se.id)?jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:se.id,checked:me(K)===se.id,onChange:()=>ue({rowIndex:te,columnId:se.id,rowData:K})})}):Array.isArray(K[se.id])?`${K[se.id].length}`:typeof K[se.id]=="object"&&K[se.id]!==null?Object.entries(K[se.id]).map(([de,Ee])=>`${de}: ${Ee}`).join(", "):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(K[se.id]??"")})},se.id):null}),(c||x||d||u||m||f)&&jsxRuntimeExports.jsx("td",{className:"table-cell",style:{textAlign:"center"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px",flexWrap:"wrap"},children:[c&&jsxRuntimeExports.jsx("img",{src:Edit,alt:"Edit",title:"Edit",width:20,height:20,style:{cursor:"pointer"},onClick:g}),x&&jsxRuntimeExports.jsx("img",{src:Reassign,alt:"Reassign",width:20,height:20,style:{cursor:"pointer"},onClick:C}),d&&jsxRuntimeExports.jsx("img",{src:Cancel,alt:"Cancel",width:20,height:20,style:{cursor:"pointer"},onClick:b}),u&&jsxRuntimeExports.jsx("img",{src:Approve,alt:"Approve",width:20,height:20,style:{cursor:"pointer"},onClick:S}),m&&jsxRuntimeExports.jsx("img",{src:Delete,alt:"Delete",width:20,height:20,style:{cursor:"pointer"},onClick:y}),f&&jsxRuntimeExports.jsx("img",{src:Add,alt:"Add",width:20,height:20,style:{cursor:"pointer"},onClick:_})]})})]}),Array.from(pt).map(oe=>{const[se,de]=oe.split("-");if(Number(se)===te){const Ee=de?{[de]:K[de]}:Object.keys(K).filter(_e=>Array.isArray(K[_e])||typeof K[_e]=="object").reduce((_e,we)=>({..._e,[we]:K[we]}),{});return jsxRuntimeExports.jsx("tr",{className:"expanded-row",children:jsxRuntimeExports.jsx("td",{colSpan:He.size+2,className:"expanded-cell",children:Object.entries(Ee).map(([_e,we],ke)=>jsxRuntimeExports.jsxs("div",{className:`expanded-section ${ke%2===0?"expanded-section-even":"expanded-section-odd"}`,style:{backgroundColor:ke%2===0?"#e8f5e9":"#e3f2fd",padding:"10px",marginBottom:"10px",borderRadius:"5px"},children:[jsxRuntimeExports.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:_e.charAt(0).toUpperCase()+_e.slice(1)}),tt(we)]},_e))})},`expanded-${oe}`)}return null})]},te))})]})}),P&&jsxRuntimeExports.jsxs("div",{className:"pagination-container",children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"40px"},children:[jsxRuntimeExports.jsx(EntriesInfo,{dataLength:fe.length,currentPage:Qe,rowsPerPage:it}),jsxRuntimeExports.jsx(RowsPerPageSelector,{rowsPerPage:it,setRowsPerPage:wt,setCurrentPage:qe})]}),jsxRuntimeExports.jsx(PaginationControls,{currentPage:Qe,totalPages:Math.ceil(fe.length/it),setCurrentPage:qe})]}),Ve&&jsxRuntimeExports.jsx("div",{className:"filter-modal",children:jsxRuntimeExports.jsxs("div",{className:"filter-modal-content",ref:yt,onKeyDown:ut,tabIndex:0,children:[jsxRuntimeExports.jsxs("div",{className:"filter-modal-header",children:[jsxRuntimeExports.jsx("h3",{children:"Filter Data"}),jsxRuntimeExports.jsx(CEButton,{className:"close-button-close",onClick:()=>Pe(!1),children:"×"})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-body",children:[jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Column:"}),jsxRuntimeExports.jsx("select",{value:Je,onChange:K=>$e(K.target.value),className:"filter-select","aria-label":"Filter column",title:"Select column to filter",children:Ye.map(K=>jsxRuntimeExports.jsx("option",{value:K.id,children:K.label},K.id))})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Operator:"}),jsxRuntimeExports.jsxs("select",{value:De,onChange:K=>Ke(K.target.value),className:"filter-select","aria-label":"Filter operator",title:"Select filter operator",children:[jsxRuntimeExports.jsx("option",{value:"contains",children:"contains"}),jsxRuntimeExports.jsx("option",{value:"equals",children:"equals"}),jsxRuntimeExports.jsx("option",{value:"startsWith",children:"starts with"}),jsxRuntimeExports.jsx("option",{value:"endsWith",children:"ends with"}),jsxRuntimeExports.jsx("option",{value:"does not contain",children:"does not contain"}),jsxRuntimeExports.jsx("option",{value:"does not equal",children:"does not equal"}),jsxRuntimeExports.jsx("option",{value:"is any of",children:"is any of"})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Value:"}),jsxRuntimeExports.jsx("input",{type:"text",value:Ue,onChange:K=>Ge(K.target.value),placeholder:"Enter filter value",title:"Filter value",className:"filter-input",autoFocus:!0,onKeyDown:K=>{K.key==="Enter"&&nt(),K.key==="Escape"&&Pe(!1)}})]}),Object.keys(Le).length>0&&jsxRuntimeExports.jsxs("div",{className:"active-filters-summary",children:[jsxRuntimeExports.jsx("div",{className:"active-filters-header",children:"Active Filters:"}),Object.entries(Le).map(([K,te])=>{const oe=Ye.find(se=>se.id===K);return jsxRuntimeExports.jsxs("div",{className:"active-filter-item",children:[jsxRuntimeExports.jsxs("span",{children:[(oe==null?void 0:oe.label)||K,": "]}),jsxRuntimeExports.jsx("span",{className:"filter-operator",children:te.operator}),jsxRuntimeExports.jsxs("span",{className:"filter-value",children:['"',te.value,'"']})]},K)})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-footer",children:[jsxRuntimeExports.jsx(CEButton,{onClick:()=>{We({}),pe(le),qe(0),Pe(!1)},className:"clear-filters-button",variant:"outlined",children:"Clear All"}),jsxRuntimeExports.jsx(CEButton,{onClick:nt,className:"apply-filter-button",variant:"primary",children:"Apply Filter"})]})]})})]}),Dt=()=>{const K=Ye.filter(de=>He.has(de.id)),te=ge.map(de=>Object.fromEntries(K.map(Ee=>[Ee.label||Ee.id,de[Ee.id]]))),oe=utils.json_to_sheet(te),se=utils.book_new();utils.book_append_sheet(se,oe,"Data"),writeFileSync(se,"data-grid-export.xlsx",{bookType:"xlsx"})},Nt=()=>{X?(ne(!0),Promise.resolve(X()).finally(()=>{We({}),ne(!1)})):(ne(!0),setTimeout(()=>{pe(t),Se(t),qe(0),ot(""),Ge(""),$e(""),We({}),F(null),ne(!1)},300))},Ot=Ye.filter(K=>K.shouldVisible!==!1).every(K=>He.has(K.id));return jsxRuntimeExports.jsxs("div",{className:`datatable-wrapper${N?" ce-grid-fullscreen":""}`,children:[jsxRuntimeExports.jsxs("div",{className:"grid-header",children:[e&&jsxRuntimeExports.jsx("span",{className:"header-title",children:e}),jsxRuntimeExports.jsxs("div",{className:"search-container",children:[l&&jsxRuntimeExports.jsxs("div",{className:"search-wrapper",children:[jsxRuntimeExports.jsx("img",{src:SearchRounded,alt:"Show Filter",title:"Show/Hide Filter",width:20,height:20,style:{cursor:"pointer",fill:"#808080"},onClick:()=>{const K=!he;je(K),K||(We({}),pe(le),qe(0),ot(""))}}),Ze&&jsxRuntimeExports.jsx("button",{className:"search-cancel-button",onClick:()=>{ot(""),xe()},children:"×"})]}),L&&jsxRuntimeExports.jsx("img",{src:ShowOrHideColumn,alt:"Columns",title:"Show/Hide Columns",width:20,height:20,style:{cursor:"pointer",fill:"#808080"},onClick:()=>xt(!0)}),Object.keys(Le).length>0&&jsxRuntimeExports.jsx("img",{src:FilterAltOffRounded,alt:"Clear Filters",title:"Clear All Filters",width:20,height:20,style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:()=>{We({}),pe(le),qe(0)}}),W&&jsxRuntimeExports.jsx("img",{src:ExportIcon,alt:"Export",title:"Export to XLS",width:20,height:20,className:"ce-export-icon",style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:Dt}),E&&jsxRuntimeExports.jsx("img",{src:FileOpenRounded,alt:"Export",title:"Export All to Excel",width:20,height:20,className:"ce-export-icon",style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:It}),J&&jsxRuntimeExports.jsx("img",{src:ReloadIcon,alt:"Reload",title:"Reload Data",width:20,height:20,className:"ce-reload-icon",style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:Nt}),ae&&jsxRuntimeExports.jsx("button",{className:"fullscreen-button",onClick:N?G:U,title:N?"Exit Full Screen":"Full Screen",children:N?"⤫":"⤢"})]})]}),dt&&jsxRuntimeExports.jsx("div",{className:"column-modal",children:jsxRuntimeExports.jsxs("div",{className:"column-modal-content",ref:gt,children:[jsxRuntimeExports.jsx("div",{className:"column-modal-header",children:jsxRuntimeExports.jsx("button",{className:"modal-close-button",onClick:()=>xt(!1),children:"×"})}),jsxRuntimeExports.jsx("h3",{className:"column-modal-title",children:"Column Visibility and Order"}),jsxRuntimeExports.jsx("p",{className:"column-modal-description",children:"Drag and drop columns to change their order. Check or uncheck to show or hide columns."}),jsxRuntimeExports.jsx("div",{className:"column-modal-actions",children:jsxRuntimeExports.jsx("div",{className:"select-all-action",children:jsxRuntimeExports.jsx(CECheckBox,{label:"Select All",checked:Ot,onChange:K=>{mt(K?new Set(Ye.filter(te=>te.shouldVisible!==!1).map(te=>te.id)):new Set)}})})}),jsxRuntimeExports.jsx("div",{className:"column-list-container",children:lt.filter(K=>Ye.find(te=>te.id===K&&te.shouldVisible!==!1)).map(K=>{const te=Ye.find(oe=>oe.id===K);return te?jsxRuntimeExports.jsxs("div",{className:`column-item ${ct===te.id?"dragging":""}`,draggable:!0,onDragStart:oe=>{Ct(te.id),oe.dataTransfer.effectAllowed="move",oe.dataTransfer.setData("text/plain",te.id)},onDragEnd:()=>Ct(null),onDragOver:oe=>{oe.preventDefault(),oe.dataTransfer.dropEffect="move"},onDragEnter:oe=>{oe.preventDefault(),oe.currentTarget.classList.add("drag-over")},onDragLeave:oe=>{oe.currentTarget.classList.remove("drag-over")},onDrop:oe=>{if(oe.preventDefault(),oe.currentTarget.classList.remove("drag-over"),ct&&ct!==te.id){const se=[...lt],de=se.indexOf(ct),Ee=se.indexOf(te.id);de!==-1&&Ee!==-1&&(se.splice(de,1),se.splice(Ee,0,ct),ft(se))}},children:[jsxRuntimeExports.jsx("div",{className:"column-drag-handle",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:jsxRuntimeExports.jsx("path",{d:"M4 4h2v2H4V4zm0 6h2v2H4v-2zm0-3h2v2H4V7zm8 3h-6v2h6v-2zm0-3h-6v2h6V7zm0-3h-6v2h6V4z"})})}),jsxRuntimeExports.jsx(CECheckBox,{label:te.label??te.id,checked:He.has(te.id),onChange:()=>be(te.id)})]},te.id):null})})]})}),Q?jsxRuntimeExports.jsx(CESkeletonTable,{columns:Ye.length||5,rows:it||10}):Mt()]})},DateInputPart=({value:e,onChange:t,max:r,min:i,length:s,placeholder:n})=>{const a=React2.useRef(null),o=c=>{const m=c.target.value.replace(/\D/g,"");if(m.length<=s){if(m.length===1){const u=parseInt(m);if(r===12&&u>1){t(`0${u}`);return}if(r===31&&u>3){t(`0${u}`);return}}if(m.length===2){const u=parseInt(m);u>=i&&u<=r&&t(m);return}t(m)}},l=()=>{var c;(c=a.current)==null||c.select()},f=()=>{e.length===1&&t(e.padStart(2,"0"))};return jsxRuntimeExports.jsx("input",{ref:a,type:"text",value:e,onChange:o,onFocus:l,onBlur:f,maxLength:s,className:"date-input-part",placeholder:n})},DateRangeIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%204.5H18V3.5C18%202.95%2017.55%202.5%2017%202.5C16.45%202.5%2016%202.95%2016%203.5V4.5H8V3.5C8%202.95%207.55%202.5%207%202.5C6.45%202.5%206%202.95%206%203.5V4.5H5C3.89%204.5%203.01%205.4%203.01%206.5L3%2020.5C3%2021.6%203.89%2022.5%205%2022.5H19C20.1%2022.5%2021%2021.6%2021%2020.5V6.5C21%205.4%2020.1%204.5%2019%204.5ZM19%2019.5C19%2020.05%2018.55%2020.5%2018%2020.5H6C5.45%2020.5%205%2020.05%205%2019.5V9.5H19V19.5ZM7%2011.5H9V13.5H7V11.5ZM11%2011.5H13V13.5H11V11.5ZM15%2011.5H17V13.5H15V11.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",WEEKDAYS=["Su","Mo","Tu","We","Th","Fr","Sa"],CEDatePicker=({onChange:e,label:t="Calendar"})=>{const[r,i]=React2.useState(!1),[s,n]=React2.useState(null),[a,o]=React2.useState(new Date),[l,f]=React2.useState(!1),[c,m]=React2.useState({start:2020,end:2031}),[u,x]=React2.useState("left"),[d,p]=React2.useState(0),E=React2.useRef(null),[g,_]=React2.useState(!1),[y,S]=React2.useState(""),[C,b]=React2.useState(""),[A,k]=React2.useState(""),[I,q]=React2.useState(!0),X=()=>{i(!1),!y&&!C&&!A&&_(!1)};useEscapeKey(X);const W=()=>{i(M=>{if(!M){const D=s||new Date;o(D),y||S(String(D.getMonth()+1).padStart(2,"0")),C||b(String(D.getDate()).padStart(2,"0")),A||k(String(D.getFullYear()))}return!M})};React2.useEffect(()=>{const M=D=>{E.current&&!E.current.contains(D.target)&&X()};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[y,C,A]);const J=M=>{const D=new Date(a.getFullYear(),a.getMonth(),M);n(D),o(D);const P=String(D.getMonth()+1).padStart(2,"0"),H=String(D.getDate()).padStart(2,"0"),B=String(D.getFullYear());S(P),b(H),k(B),q(!0),e(`${P}/${H}/${B}`),i(!1)},ae=M=>{x(M>0?"left":"right"),o(D=>{const P=new Date(D.getFullYear(),D.getMonth()+M,1);return s&&S(String(P.getMonth()+1).padStart(2,"0")),p(H=>H+1),P})},Y=()=>{f(M=>!M)},L=M=>{m(D=>({start:D.start+M*10,end:D.end+M*10}))},j=M=>{const D=new Date(M,a.getMonth(),1);o(D),k(String(M)),f(!1)},T=()=>{const M=new Date(a.getFullYear(),a.getMonth(),1),D=new Date(a.getFullYear(),a.getMonth()+1,0),P=M.getDay(),H=D.getDate(),B=new Date,z=ce=>!s&&B.getDate()===ce&&B.getMonth()===a.getMonth()&&B.getFullYear()===a.getFullYear(),re=[];for(let ce=0;ce<P;ce++)re.push(jsxRuntimeExports.jsx("div",{className:"dp-day empty"},`empty-${ce}`));for(let ce=1;ce<=H;ce++){const fe=(s==null?void 0:s.getDate())===ce&&(s==null?void 0:s.getMonth())===a.getMonth()&&(s==null?void 0:s.getFullYear())===a.getFullYear();re.push(jsxRuntimeExports.jsx("div",{className:`dp-day ${fe?"selected":""} ${z(ce)?"today":""}`,onClick:()=>J(ce),children:ce},ce))}return re},R=(M,D,P)=>{if(!M||!D||!P){q(!1),o(new Date),n(null);return}const H=`${P}-${M}-${D}`,B=new Date(H);if(B.getFullYear()===parseInt(P)&&B.getMonth()+1===parseInt(M)&&B.getDate()===parseInt(D))n(B),o(B),q(!0),e(`${M}/${D}/${P}`);else{const z=new Date;q(!1),n(null),o(z),S(M),b(D),k(P)}};return jsxRuntimeExports.jsxs("div",{className:"dp-wrapper",ref:E,children:[jsxRuntimeExports.jsxs("div",{className:`dp-input-container ${g||r?"focused":""} ${I?"":"invalid"}`,children:[jsxRuntimeExports.jsx("div",{className:`dp-label ${g||r||s||y||C||A?"floating":""} ${I?"":"invalid"}`,children:t}),jsxRuntimeExports.jsxs("div",{className:"dp-input-wrapper",onClick:()=>{_(!0)},children:[jsxRuntimeExports.jsx(DateInputPart,{value:y,onChange:M=>{S(M),R(M,C,A)},max:12,min:1,length:2,placeholder:"MM",onClick:W}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx(DateInputPart,{value:C,onChange:M=>{b(M),R(y,M,A)},placeholder:"DD",max:31,min:1,length:2,onClick:W}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx("input",{type:"text",value:A,onChange:M=>{const D=M.target.value.replace(/\D/g,"");D.length<=4&&(k(D),D.length===4&&R(y,C,D))},onFocus:M=>M.target.select(),onBlur:()=>{A.length===4&&R(y,C,A)},className:"date-input-part",maxLength:4,placeholder:"YYYY"}),jsxRuntimeExports.jsx("span",{className:"dp-icon",onClick:W,children:jsxRuntimeExports.jsx("img",{src:DateRangeIcon,alt:"Calendar Icon"})})]})]}),r&&jsxRuntimeExports.jsxs("div",{className:"dp-calendar",children:[jsxRuntimeExports.jsxs("div",{className:"dp-header",children:[jsxRuntimeExports.jsxs("div",{className:"dp-title",onClick:Y,children:[l?`${c.start} - ${c.end}`:`${a.toLocaleString("default",{month:"long"})} ${a.getFullYear()}`,jsxRuntimeExports.jsx("button",{className:"dp-toggle-icon",children:"▾"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-controls",children:[jsxRuntimeExports.jsx("button",{onClick:()=>l?L(-1):ae(-1),children:"‹"}),jsxRuntimeExports.jsx("button",{onClick:()=>l?L(1):ae(1),children:"›"})]})]}),!l&&jsxRuntimeExports.jsx("div",{className:"dp-weekdays",children:WEEKDAYS.map(M=>jsxRuntimeExports.jsx("div",{className:"dp-weekday",children:M},M))}),l?jsxRuntimeExports.jsx("div",{className:"dp-years-grid",children:Array.from({length:c.end-c.start+1},(M,D)=>{const P=c.start+D;return jsxRuntimeExports.jsx("div",{className:"dp-year-item",onClick:()=>j(P),children:P},P)})}):jsxRuntimeExports.jsx("div",{className:`dp-days dp-slide-${u}`,children:T()},d)]})]})},CEDateRangePicker=({label:e="Submitted Date",onChange:t,size:r="medium",style:i,inputGroupStyle:s})=>{const[n,a]=React2.useState(""),[o,l]=React2.useState(""),[f,c]=React2.useState(!1),[m,u]=React2.useState(""),x=()=>c(!0),d=y=>{!y.currentTarget.value&&!n&&!o&&c(!1)},p=(y,S)=>{y&&S&&new Date(S)<new Date(y)?u("End date must be after or equal to start date"):(u(""),t==null||t({startDate:y,endDate:S}))},E=y=>{const S=y.target.value;a(S),p(S,o)},g=y=>{const S=y.target.value;l(S),p(n,S)},_=getSizeStyle$1(r);return jsxRuntimeExports.jsxs("div",{className:"date-range-picker",style:i,children:[jsxRuntimeExports.jsx("label",{className:"floating-label float",children:e}),jsxRuntimeExports.jsxs("div",{className:`input-group ${m?"input-error":""}`,style:{padding:_.padding,fontSize:_.fontSize,...s},children:[jsxRuntimeExports.jsx("input",{type:"date",value:n,onChange:E,onFocus:x,onBlur:d,style:{fontSize:_.fontSize}}),jsxRuntimeExports.jsx("span",{className:"separator",children:" - "}),jsxRuntimeExports.jsx("input",{type:"date",value:o,onChange:g,onFocus:x,onBlur:d,style:{fontSize:_.fontSize}})]}),m&&jsxRuntimeExports.jsx("div",{className:"error-text",children:m})]})},FieldsInput=({label:e,name:t,placeholder:r="",value:i="",onChange:s,size:n="medium"})=>{const[a,o]=React2.useState(!1),[l,f]=React2.useState(!1),c=getSizeStyle$1(n);React2.useEffect(()=>{i&&i.trim().length>0&&f(!0)},[i]);const m=()=>{o(!0),f(!0)},u=d=>{o(!1),d.target.value.trim()||f(!1)},x=a||!!i;return jsxRuntimeExports.jsxs("div",{className:`floating-input-wrapper${l?" focused":""}`,style:c,children:[jsxRuntimeExports.jsx("label",{htmlFor:t,className:"floating-label",children:e}),jsxRuntimeExports.jsx("input",{id:t,name:t,className:"floating-input",placeholder:x?r:"",value:i,onChange:s,onFocus:m,onBlur:u})]})},CEFooter=()=>jsxRuntimeExports.jsx("footer",{style:{zIndex:1100,backgroundColor:"var(--grey-color)",width:"100%",height:"36px",position:"fixed",bottom:"0",left:"0",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",marginTop:"auto"},children:jsxRuntimeExports.jsx("p",{style:{color:"var(--white-color)",fontSize:"0.8rem",margin:"0"},children:"© All rights reserved by Clean Earth."})}),CEGridLayout=({children:e,columns:t=12,gap:r="1rem",alignItems:i="stretch",justifyItems:s="stretch",gridTemplateColumns:n})=>jsxRuntimeExports.jsx("div",{className:"grid-container",style:{display:"grid",gridTemplateColumns:n||`repeat(${t}, 1fr)`,gap:r,alignItems:i,justifyItems:s,backgroundColor:"transparent"},children:e}),CELogo=({src:e,alt:t="Logo",style:r})=>jsxRuntimeExports.jsx("img",{src:e,alt:t,style:{height:25,...r}}),CESearchBar=({onFocus:e,onBlur:t,quickActions:r=[],recentSearches:i=[]})=>{const[s,n]=React2.useState(!1),[a,o]=React2.useState(""),[l,f]=React2.useState(r),[c,m]=React2.useState(i),u=(d,p)=>{d==="quickActions"?f(E=>E.filter((g,_)=>_!==p)):m(E=>E.filter((g,_)=>_!==p))},x=()=>{a.trim()!==""&&(m(d=>[a,...d]),o(""))};return jsxRuntimeExports.jsxs("div",{className:"ceui-search-bar",children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search...",className:"ceui-search-input",value:a,onChange:d=>o(d.target.value),onFocus:()=>{n(!0),e&&e()},onBlur:()=>{setTimeout(()=>n(!1),200),t&&t()},onKeyDown:d=>{d.key==="Enter"&&x()}}),s&&jsxRuntimeExports.jsxs("div",{className:"ceui-search-suggestions",children:[l.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Quick actions"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:l.map((d,p)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[d,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>u("quickActions",p),children:"✕"})]},p))})]}),c.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Recent search"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:c.map((d,p)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[d,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>u("recentSearches",p),children:"✕"})]},p))})]})]})]})},CESearchButton=({showSuggestions:e=!1,quickActions:t=[],recentSearches:r=[]})=>{const[i,s]=React2.useState(!1),[n,a]=React2.useState(!1),o=React2.useRef(null),l=c=>{o.current&&!o.current.contains(c.target)&&(s(!1),a(!1))},f=()=>jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M15.5001 14.5H14.7101L14.4301 14.23C15.6301 12.83 16.2501 10.92 15.9101 8.89002C15.4401 6.11002 13.1201 3.89002 10.3201 3.55002C6.09014 3.03002 2.53014 6.59001 3.05014 10.82C3.39014 13.62 5.61014 15.94 8.39014 16.41C10.4201 16.75 12.3301 16.13 13.7301 14.93L14.0001 15.21V16L18.2501 20.25C18.6601 20.66 19.3301 20.66 19.7401 20.25C20.1501 19.84 20.1501 19.17 19.7401 18.76L15.5001 14.5ZM9.50014 14.5C7.01014 14.5 5.00014 12.49 5.00014 10C5.00014 7.51002 7.01014 5.50002 9.50014 5.50002C11.9901 5.50002 14.0001 7.51002 14.0001 10C14.0001 12.49 11.9901 14.5 9.50014 14.5Z",fill:"black",fillOpacity:"0.54"})});return React2.useEffect(()=>(i?document.addEventListener("mousedown",l):document.removeEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}),[i]),console.log("isSearchOpen:",i),console.log("showDropdown:",n),console.log("showSuggestions:",e),jsxRuntimeExports.jsxs("div",{ref:o,className:`ceui-animated-search-wrapper ${i?"expanded":"collapsed"}`,children:[jsxRuntimeExports.jsx("button",{className:"ceui-search-button","aria-label":"Open search",onClick:()=>s(!0),children:jsxRuntimeExports.jsx(f,{})}),i&&jsxRuntimeExports.jsx(CESearchBar,{showSuggestions:i&&(e||n),onFocus:()=>a(!0),onBlur:()=>{setTimeout(()=>a(!1),200)},quickActions:t,recentSearches:r})]})},CEHelpButton=()=>jsxRuntimeExports.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:0,margin:0,outline:"none"},"aria-label":"Help",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12 2.5C6.48 2.5 2 6.98 2 12.5C2 18.02 6.48 22.5 12 22.5C17.52 22.5 22 18.02 22 12.5C22 6.98 17.52 2.5 12 2.5ZM13 19.5H11V17.5H13V19.5ZM15.07 11.75L14.17 12.67C13.67 13.18 13.31 13.64 13.13 14.36C13.05 14.68 13 15.04 13 15.5H11V15C11 14.54 11.08 14.1 11.22 13.69C11.42 13.11 11.75 12.59 12.17 12.17L13.41 10.91C13.87 10.47 14.09 9.81 13.96 9.11C13.83 8.39 13.27 7.78 12.57 7.58C11.46 7.27 10.43 7.9 10.1 8.85C9.98 9.22 9.67 9.5 9.28 9.5H8.98C8.4 9.5 8 8.94 8.16 8.38C8.59 6.91 9.84 5.79 11.39 5.55C12.91 5.31 14.36 6.1 15.26 7.35C16.44 8.98 16.09 10.73 15.07 11.75Z",fill:"black",fillOpacity:"0.54"})})}),CENotificationButton=()=>jsxRuntimeExports.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:0,margin:0,outline:"none"},"aria-label":"Notifications",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.4775 22.2632C12.0837 22.2632 12.6651 21.9999 13.0938 21.531C13.5224 21.0622 13.7633 20.4264 13.7633 19.7634H9.19183C9.19183 20.4264 9.43264 21.0622 9.8613 21.531C10.2899 21.9999 10.8713 22.2632 11.4775 22.2632ZM12.6147 3.63801C12.6306 3.46421 12.6131 3.28869 12.5632 3.12276C12.5133 2.95683 12.4322 2.80417 12.3251 2.67464C12.2179 2.54511 12.0871 2.44157 11.9412 2.37071C11.7952 2.29985 11.6372 2.26324 11.4775 2.26324C11.3178 2.26324 11.1599 2.29985 11.0139 2.37071C10.8679 2.44157 10.7372 2.54511 10.63 2.67464C10.5229 2.80417 10.4417 2.95683 10.3919 3.12276C10.342 3.28869 10.3244 3.46421 10.3404 3.63801C9.04845 3.92494 7.88695 4.6916 7.05275 5.80806C6.21856 6.92452 5.76299 8.3221 5.76325 9.76393C5.76325 11.1364 5.19182 17.2635 3.47754 18.5134H19.4775C17.7633 17.2635 17.1918 11.1364 17.1918 9.76393C17.1918 6.73909 15.2261 4.21423 12.6147 3.63801Z",fill:"#757575"})})}),CEAvatarMenu=()=>{const[e,t]=React2.useState(!1),r=React2.useRef(null),i=()=>t(!e),s=n=>{r.current&&!r.current.contains(n.target)&&t(!1)};return React2.useEffect(()=>(e?document.addEventListener("mousedown",s):document.removeEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}),[e]),jsxRuntimeExports.jsxs("div",{style:{position:"relative",zIndex:1e3},children:[jsxRuntimeExports.jsx("img",{src:"src/assets/profile_pic.png",alt:"Profile",style:{width:40,height:40,borderRadius:"50%",cursor:"pointer"},onClick:i}),e&&jsxRuntimeExports.jsxs("div",{ref:r,style:{position:"absolute",right:0,top:"100%",background:"white",border:"1px solid #ccc",boxShadow:"0 2px 10px rgba(0,0,0,0.1)",zIndex:9999,minWidth:120},children:[jsxRuntimeExports.jsx("div",{style:menuItemStyle,children:"My Account"}),jsxRuntimeExports.jsx("div",{style:menuItemStyle,children:"Settings"}),jsxRuntimeExports.jsx("div",{style:menuItemStyle,children:"Logout"})]})]})},menuItemStyle={padding:"10px 15px",cursor:"pointer",fontSize:14,borderBottom:"1px solid #eee"},CEUserInfo=({name:e,role:t})=>jsxRuntimeExports.jsxs("div",{className:"ceui-user-info",children:[jsxRuntimeExports.jsx("span",{className:"ceui-user-name",children:e}),jsxRuntimeExports.jsx("span",{className:"ceui-user-role",children:t})]}),CEHeader=({headerColor:e="white",logoSrc:t,logoHeight:r,logoWidth:i,showSearchButton:s=!1,quickActions:n=[],recentSearches:a=[],showHelpButton:o=!1,showNotificationButton:l=!1,showAvatarMenu:f=!1,showUserInfo:c=!1,showHamburgerButton:m=!1,showDrawer:u=!1,userInfoProps:x,onMenuClick:d,drawerJsonUrl:p="",isDrawerOpen:E=!1,onDrawerClose:g})=>{const _=()=>jsxRuntimeExports.jsxs("svg",{width:"120",height:"35",viewBox:"0 0 245 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsxs("g",{clipPath:"url(#clip0_1572_8855)",children:[jsxRuntimeExports.jsx("path",{d:"M0 1.49012e-05H245V60H0V1.49012e-05Z",fill:"#F4F5F7"}),jsxRuntimeExports.jsx("path",{d:"M53.3741 31.7566C53.3741 39.7826 47.1908 46.1485 39.2275 46.1485C31.2641 46.1485 25.0809 39.7826 25.0809 31.7566C25.0809 23.7306 31.2641 17.3646 39.2275 17.3646C47.1908 17.3646 53.3741 23.7306 53.3741 31.7566Z",fill:"#007ACC"}),jsxRuntimeExports.jsx("path",{d:"M91.5 25H76V35H91.5V30H81.5V29H91.5V25Z",fill:"#000"}),jsxRuntimeExports.jsx("path",{d:"M65 35H69V25H65V35Z",fill:"#000"})]}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip0_1572_8855",children:jsxRuntimeExports.jsx("rect",{width:"245",height:"60",fill:"white"})})})]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("header",{className:"ceui-header",style:{backgroundColor:e},children:[jsxRuntimeExports.jsx("div",{className:"ceui-header-left",children:t?jsxRuntimeExports.jsx(CELogo,{src:t,alt:"Core Logo",style:{height:r||35,width:i||"auto",maxWidth:120}}):jsxRuntimeExports.jsx(_,{})}),jsxRuntimeExports.jsxs("div",{className:"ceui-header-right",children:[s&&jsxRuntimeExports.jsx(CESearchButton,{showSuggestions:!0,quickActions:n,recentSearches:a,value:"",onChange:()=>{},onClear:()=>{}}),o&&jsxRuntimeExports.jsx(CEHelpButton,{}),l&&jsxRuntimeExports.jsx(CENotificationButton,{}),f&&jsxRuntimeExports.jsx(CEAvatarMenu,{}),c&&x&&jsxRuntimeExports.jsx(CEUserInfo,{name:x.name,role:x.role})]})]}),u&&m&&jsxRuntimeExports.jsx(CEDrawer,{jsonUrl:p,isOpen:E,onClose:g||(()=>{})})]})},CEGridMenuButton=()=>jsxRuntimeExports.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:0,margin:0,outline:"none"},children:jsxRuntimeExports.jsx("img",{src:"src/assets/Grid_4x4Rounded.svg",alt:""})}),CEHamburgerButton=({onClick:e,style:t})=>jsxRuntimeExports.jsx("button",{onClick:e,style:{background:"none",border:"none",cursor:"pointer",padding:0,margin:0,outline:"none",...t},children:jsxRuntimeExports.jsx("img",{src:"src/assets/MenuRounded.svg",alt:"Menu"})}),CEInputBox=({value:e,onChange:t,placeholder:r="",type:i="text",maxLength:s,minLength:n,required:a=!1,customValidator:o,errorMessage:l="Invalid input",showError:f=!0,label:c,disabled:m=!1,style:u={},size:x="medium",onFocus:d,onBlur:p})=>{const[E,g]=React2.useState(!1),_=k=>{g(!0),d==null||d(k)},y=k=>{g(!1),p==null||p(k)},S=k=>{const I=k.target.value;i==="number"&&!/^\d*$/.test(I)||i==="alphanumeric"&&!/^[a-zA-Z0-9]*$/.test(I)||t(I)},C=getSizeStyle$1(x||"medium"),b=f&&a&&!e,A={fontSize:C.fontSize,padding:C.padding,...u};return jsxRuntimeExports.jsxs("div",{className:`validated-input-wrapper ${E?"focused":""} ${b?"error":""}`,children:[c&&jsxRuntimeExports.jsx("label",{className:`validated-input-label ${e||E?"shrink":""}`,children:c}),i==="textarea"?jsxRuntimeExports.jsx("textarea",{value:e,onChange:S,onFocus:_,onBlur:y,placeholder:r||" ",className:`validated-input-field ${b?"input-error":""}`,disabled:m,style:A}):jsxRuntimeExports.jsx("input",{type:i,value:e,onChange:S,onFocus:_,onBlur:y,placeholder:r||" ",className:`validated-input-field ${b?"input-error":""}`,disabled:m,style:A}),f&&!e&&jsxRuntimeExports.jsx("div",{className:"validated-input-error",children:l})]})},InputDropDown=({options:e,selected:t,onChange:r,multiple:i=!1,placeholder:s="Select...",size:n="medium",style:a={},allowClear:o=!0})=>{const[l,f]=React2.useState(!1),[c,m]=React2.useState(!1),u=React2.useRef(null),d={...getSizeStyle$1(n),...a},p=y=>{if(i){const S=t.includes(y)?t.filter(C=>C!==y):[...t,y];r(S)}else r([y]),f(!1)},E=()=>r([]),g=e.filter(y=>t.includes(y.value)).map(y=>y.label);React2.useEffect(()=>{const y=S=>{var C;(C=u.current)!=null&&C.contains(S.target)||f(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);const _=y=>{const S=t.filter(C=>C!==y);r(S)};return jsxRuntimeExports.jsx("div",{className:`dropdown-container ${l||t.length>0?"float":""}`,ref:u,style:d,children:jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${l?"open":""}`,onClick:()=>f(y=>!y),onFocus:()=>m(!0),onBlur:()=>m(!1),tabIndex:0,children:[jsxRuntimeExports.jsx("label",{className:"floating-placeholder",children:s}),jsxRuntimeExports.jsx("div",{className:"selected-display",children:t.length===0?"":i?g.map((y,S)=>jsxRuntimeExports.jsxs("span",{className:"chip",children:[y,jsxRuntimeExports.jsx("span",{className:"close-icon",onClick:C=>{var b;C.stopPropagation(),_(((b=e.find(A=>A.label===y))==null?void 0:b.value)||"")},children:"×"})]},S)):jsxRuntimeExports.jsx("span",{children:g[0]})}),o&&t.length>0&&jsxRuntimeExports.jsx("button",{className:"clear-button",onClick:y=>{y.stopPropagation(),E()},children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`dropdown-icon-img ${l?"rotate-icon":""}`,children:jsxRuntimeExports.jsx("path",{d:"M8.12021 9.79006L12.0002 13.6701L15.8802 9.79006C16.2702 9.40006 16.9002 9.40006 17.2902 9.79006C17.6802 10.1801 17.6802 10.8101 17.2902 11.2001L12.7002 15.7901C12.3102 16.1801 11.6802 16.1801 11.2902 15.7901L6.70021 11.2001C6.31021 10.8101 6.31021 10.1801 6.70021 9.79006C7.09021 9.41006 7.73021 9.40006 8.12021 9.79006Z",fill:"black",fillOpacity:"0.54"})})}),l&&jsxRuntimeExports.jsx("ul",{className:"dropdown-options",children:e.map(y=>jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${t.includes(y.value)?"selected":""}`,onClick:S=>{S.stopPropagation(),p(y.value)},children:[i&&jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:t.includes(y.value)}),y.label]},y.value))})]})})},CELinearProgressBar=({duration:e,color:t="#4caf50",backgroundColor:r="#e0e0e0",height:i="10px",isActive:s=!1})=>{const n=React2.useRef(null);return React2.useEffect(()=>{const a=n.current;if(!(!a||!s))return a.style.width="0%",a.style.transition="none",a.offsetWidth,requestAnimationFrame(()=>{a&&(a.style.transition=`width ${e}ms linear`,a.style.width="100%")}),()=>{a&&(a.style.width="0%",a.style.transition="none")}},[e,s]),jsxRuntimeExports.jsx("div",{className:"snackbar__progress-container",style:{height:i},children:jsxRuntimeExports.jsx("div",{ref:n,className:"snackbar__progress-bar"})})},CEMenuBar=({menuData:e})=>{const[t,r]=React2.useState({}),i=(l,f)=>{r(c=>({...c,[l]:f}))};useEscapeKey(()=>{r({})});const n=l=>l.children&&l.children.length>0,a=l=>l.some(f=>n(f)),o=(l,f="")=>!l||l.length===0?null:jsxRuntimeExports.jsx("ul",{className:f?"ce-submenu":"ce-dropdown",children:l.map(c=>{const m=f?`${f}-${c.name}`:c.name,u=n(c);return jsxRuntimeExports.jsxs("li",{className:`ce-dropdown-item ${u?"has-submenu":""}`,onMouseEnter:()=>u&&i(m,!0),onMouseLeave:()=>u&&i(m,!1),onClick:()=>console.log(`Clicked: ${c.name}`),children:[c.name,u&&jsxRuntimeExports.jsx("span",{className:"ce-icon right",children:"▶"}),u&&t[m]&&o(c.children,m)]},m)})});return jsxRuntimeExports.jsx("div",{className:"ce-menu-bar",children:jsxRuntimeExports.jsx("div",{className:"ce-menu-container",children:e.map(l=>{const f=a(l.items);return jsxRuntimeExports.jsxs("div",{className:"ce-menu-item",onMouseEnter:()=>f&&i(l.title,!0),onMouseLeave:()=>f&&i(l.title,!1),children:[jsxRuntimeExports.jsxs("button",{className:"ce-menu-button",children:[l.title,f&&jsxRuntimeExports.jsx("span",{className:"ce-icon",children:"▼"})]}),f&&t[l.title]&&o(l.items,l.title)]},l.title)})})})},CEPagination=({currentPage:e,totalPages:t,onPageChange:r})=>{const i=()=>{const l=[];if(t<=8)for(let f=0;f<t;f++)l.push(f);else if(e<7){for(let f=0;f<8;f++)l.push(f);l.push("..."),l.push(t-1)}else if(e>=t-8+1){l.push(0),l.push("...");for(let f=t-8;f<t;f++)l.push(f)}else{l.push(0),l.push("...");for(let f=e-3;f<=e+3;f++)l.push(f);l.push("..."),l.push(t-1)}return l},s=o=>{typeof o=="number"&&r(o)},n=()=>{e>0&&r(e-1)},a=()=>{e<t-1&&r(e+1)};return jsxRuntimeExports.jsxs("div",{className:"pagination",children:[jsxRuntimeExports.jsx("button",{onClick:n,disabled:e===0,className:"pagination-button",children:"Previous"}),i().map((o,l)=>typeof o=="number"?jsxRuntimeExports.jsx("button",{onClick:()=>s(o),className:`pagination-button page-number ${e===o?"active":""}`,children:o+1},l):jsxRuntimeExports.jsx("span",{className:"pagination-ellipsis",children:o},l)),jsxRuntimeExports.jsx("button",{onClick:a,disabled:e===t-1,className:"pagination-button",children:"Next"})]})},CERadioButtonGroup=({options:e,name:t,defaultValue:r,onChange:i,direction:s="horizontal"})=>{const[n,a]=React2.useState(r||""),o=l=>{a(l),i(l)};return jsxRuntimeExports.jsx("div",{className:`radio-button-group ${s}`,role:"radiogroup","aria-labelledby":t,children:e.map(l=>jsxRuntimeExports.jsx("div",{className:"radio-button",children:jsxRuntimeExports.jsx(CERadioButton,{label:l.label,value:l.value,checked:n===l.value,onChange:o})},l.value))})},saveSelection=()=>{const e=window.getSelection();return e!=null&&e.rangeCount?e.getRangeAt(0):null},restoreSelection=e=>{if(e){const t=window.getSelection();t==null||t.removeAllRanges(),t==null||t.addRange(e)}},CERichTextEditor=({initialValue:e="",onChange:t,width:r="100%",height:i="auto",minHeight:s="200px",maxHeight:n="none",className:a="",style:o={},editorStyle:l={}})=>{const f=React2.useRef(null),[c,m]=React2.useState("3"),[u,x]=React2.useState("Arial"),[d,p]=React2.useState({bold:!1,italic:!1,underline:!1,strikeThrough:!1,subscript:!1,superscript:!1,justifyLeft:!0,justifyCenter:!1,justifyRight:!1,justifyFull:!1});React2.useEffect(()=>{f.current&&e&&(f.current.innerHTML=e)},[e]);const E=React2.useCallback(b=>{try{return document.queryCommandState(b)}catch{return!1}},[]),g=React2.useCallback(()=>{p({bold:E("bold"),italic:E("italic"),underline:E("underline"),strikeThrough:E("strikethrough"),subscript:E("subscript"),superscript:E("superscript"),justifyLeft:E("justifyLeft"),justifyCenter:E("justifyCenter"),justifyRight:E("justifyRight"),justifyFull:E("justifyFull")})},[E]),_=React2.useCallback((b,A="")=>{var q,X;const k=saveSelection(),I=document.getSelection();if(b==="createLink"){const W=prompt("Enter URL:");if(W){restoreSelection(k),document.execCommand("createLink",!1,W);const J=(q=I==null?void 0:I.anchorNode)==null?void 0:q.parentElement;J instanceof HTMLAnchorElement&&(J.target="_blank",J.rel="noopener noreferrer")}}else if(b==="insertImage"){const W=prompt("Enter image URL:");if(W){restoreSelection(k);const J=`<img src="${W}" alt="image" style="max-width: 100%; height: auto;"/>`;document.execCommand("insertHTML",!1,J)}}else b==="fontSize"||b==="fontName"?(restoreSelection(k),document.execCommand(b,!0,A),b==="fontSize"?m(A):x(A)):(restoreSelection(k),document.execCommand(b,!1,A));f.current&&(t==null||t(f.current.innerHTML)),(X=f.current)==null||X.focus(),g()},[t,g]),y=b=>{if(b.key==="Tab"&&(b.preventDefault(),document.execCommand("insertHTML",!1,"&nbsp;&nbsp;&nbsp;&nbsp;")),b.ctrlKey||b.metaKey)switch(b.key.toLowerCase()){case"z":b.preventDefault(),b.shiftKey?_("redo"):_("undo");break;case"y":b.preventDefault(),_("redo");break}},S=[{value:"1",label:"2"},{value:"2",label:"4"},{value:"3",label:"6"},{value:"4",label:"8"},{value:"5",label:"10"},{value:"6",label:"12"},{value:"7",label:"14"}],C=["Arial","Times New Roman","Courier New","Georgia","Verdana","Helvetica","Serif Fonts","Algerian"];return jsxRuntimeExports.jsxs("div",{className:`rich-text-editor ${a}`,style:{width:r,height:i,...o},children:[jsxRuntimeExports.jsxs("div",{className:"toolbar",children:[jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("bold"),className:`toolbar-button ${d.bold?"active":""}`,title:"Bold",children:jsxRuntimeExports.jsx("strong",{children:"B"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("italic"),className:`toolbar-button ${d.italic?"active":""}`,title:"Italic",children:jsxRuntimeExports.jsx("em",{children:"I"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("underline"),className:`toolbar-button ${d.underline?"active":""}`,title:"Underline",children:jsxRuntimeExports.jsx("u",{children:"U"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("strikeThrough"),className:`toolbar-button ${d.strikeThrough?"active":""}`,title:"Strike Through",children:jsxRuntimeExports.jsx("s",{children:"S"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("subscript"),className:`toolbar-button ${d.subscript?"active":""}`,title:"Subscript",children:"X₂"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("superscript"),className:`toolbar-button ${d.superscript?"active":""}`,title:"Superscript",children:"X²"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("justifyLeft"),className:`toolbar-button ${d.justifyLeft?"active":""}`,title:"Align Left",children:"⇤"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("justifyCenter"),className:`toolbar-button ${d.justifyCenter?"active":""}`,title:"Center",children:"⇔"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("justifyRight"),className:`toolbar-button ${d.justifyRight?"active":""}`,title:"Align Right",children:"⇥"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("justifyFull"),className:`toolbar-button ${d.justifyFull?"active":""}`,title:"Justify",children:"≡"})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>_("insertUnorderedList"),className:"toolbar-button",title:"Bullet List",children:"●"}),jsxRuntimeExports.jsx("button",{onClick:()=>_("insertOrderedList"),className:"toolbar-button",title:"Numbered List",children:"1. 2. 3."})]}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:c,onChange:b=>_("fontSize",b.target.value),className:"toolbar-select",title:"Font Size",children:S.map(b=>jsxRuntimeExports.jsx("option",{value:b.value,children:b.label},b.value))})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:u,onChange:b=>_("fontName",b.target.value),className:"toolbar-select",title:"Font Family",children:C.map(b=>jsxRuntimeExports.jsx("option",{value:b,children:b},b))})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>_("createLink"),className:"toolbar-button",title:"Insert Link",children:"🔗"}),jsxRuntimeExports.jsx("button",{onClick:()=>_("insertImage"),className:"toolbar-button",title:"Insert Image",children:"📷"})]}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>_("undo"),className:"toolbar-button",title:"Undo (Ctrl+Z)",children:"↩"}),jsxRuntimeExports.jsx("button",{onClick:()=>_("redo"),className:"toolbar-button",title:"Redo (Ctrl+Y)",children:"↪"})]})]}),jsxRuntimeExports.jsx("div",{ref:f,className:"editor-content",contentEditable:!0,style:{minHeight:s,maxHeight:n,height:i==="auto"?"auto":"100%",...l},onKeyDown:y,onKeyUp:g,onMouseUp:g,onInput:()=>{f.current&&(t==null||t(f.current.innerHTML)),g()}})]})},CETabView=({tabs:e,renderContent:t})=>{const[r,i]=React2.useState(e[0]);return jsxRuntimeExports.jsxs("div",{className:"tabview-container",children:[jsxRuntimeExports.jsx("div",{className:"tabview-sidebar",children:e.map(s=>jsxRuntimeExports.jsx("div",{className:`tabview-tab ${r===s?"tabview-tab-active":""}`,onClick:()=>i(s),children:s},s))}),jsxRuntimeExports.jsx("div",{className:"tabview-content",children:t(r)})]})},CETemplate=({children:e,headerProps:t,showHeader:r=!0,showFooter:i=!0,containerClassName:s="",containerStyle:n={}})=>jsxRuntimeExports.jsxs("div",{className:`ce-wrapper ${s}`,style:n,children:[r&&jsxRuntimeExports.jsx(CEHeader,{...t}),jsxRuntimeExports.jsx("main",{className:"main-content",children:e}),i&&jsxRuntimeExports.jsx(CEFooter,{})]}),CETimePicker=({label:e="Select Time",onChange:t,initialTime:r="",className:i=""})=>{const[s,n]=React2.useState(!1),[a,o]=React2.useState(r),[l,f]=React2.useState("12"),[c,m]=React2.useState("00"),[u,x]=React2.useState("AM"),[d,p]=React2.useState(!1),[E,g]=React2.useState(""),[_,y]=React2.useState(""),S=React2.useRef(null),C=Array.from({length:12},(Y,L)=>String(L+1).padStart(2,"0")),b=Array.from({length:60},(Y,L)=>String(L).padStart(2,"0")),A=(Y,L)=>{if(!Y)return"";const j=parseInt(Y);return L==="hours"?j>12?"12":j===0?"01":Y.padStart(2,"0"):j>59?"59":Y.padStart(2,"0")},k=Y=>{const L=Y.target.value,j=Y.target.selectionStart||0;let T=l,R=c,M=u,D=a;if(j<=2){const P=L.substring(0,2).replace(/[^0-9]/g,"");if(P){if(P.length===1){const H=parseInt(P);H>=2&&H<=9?(T=P.padStart(2,"0"),setTimeout(()=>{S.current&&S.current.setSelectionRange(3,5)},10)):(T=P,setTimeout(()=>{S.current&&S.current.setSelectionRange(1,1)},10))}else if(P.length===2){const H=parseInt(P);H>=1&&H<=12?(T=P,setTimeout(()=>{S.current&&S.current.setSelectionRange(3,5)},10)):(T=P[0],setTimeout(()=>{S.current&&S.current.setSelectionRange(1,1)},10))}D=`${T}:${c} ${u}`}}else if(j>=3&&j<=5){const P=L.indexOf(":")+1,H=L.substring(P,P+2).replace(/[^0-9]/g,"");if(H){if(H.length===1)R=H,D=`${l}:${R} ${u}`,setTimeout(()=>{S.current&&S.current.setSelectionRange(4,4)},10);else if(H.length===2){const B=parseInt(H);B>=0&&B<=59?(R=H,setTimeout(()=>{S.current&&S.current.setSelectionRange(6,8)},10)):(R=H[0],setTimeout(()=>{S.current&&S.current.setSelectionRange(4,4)},10))}D=`${l}:${R} ${u}`}}else if(j>=6){const H=L.substring(L.lastIndexOf(" ")+1).toUpperCase();H.startsWith("A")?(M="AM",D=`${l}:${c} AM`):H.startsWith("P")&&(M="PM",D=`${l}:${c} PM`)}f(T),m(R),x(M),o(D),n(!1),t==null||t(D)},I=Y=>{if(!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","0","1","2","3","4","5","6","7","8","9",":","A","P","M"," ","a","p","m"].includes(Y.key)){Y.preventDefault();return}if(Y.key==="Enter"||Y.key===":"){Y.preventDefault();const j=Y.currentTarget.selectionStart||0;if(j<=2){if(E){const T=A(E,"hours");f(T),g(""),o(`${T}:${c} ${u}`)}Y.currentTarget.setSelectionRange(3,5)}else if(j>=3&&j<=5){if(_){const T=A(_,"minutes");m(T),y(""),o(`${l}:${T} ${u}`)}Y.currentTarget.setSelectionRange(6,8)}}},q=Y=>{const L=Y.currentTarget.selectionStart||0,j=S.current;j&&(L<=1?j.setSelectionRange(0,2):L>=3&&L<=4?j.setSelectionRange(3,5):L>=6&&j.setSelectionRange(6,8))},X=()=>{n(!0),p(!0)},W=(Y,L)=>{const j=Y==="hours"?L:l,T=Y==="minutes"?L:c,R=Y==="period"?L:u;f(j),m(T),x(R);const M=`${j}:${T} ${R}`;o(M),t==null||t(M)},J=()=>{const Y=`${l}:${c} ${u}`;o(Y),n(!1),t==null||t(Y)},ae=()=>{o(""),f("12"),m("00"),x("AM"),n(!1),p(!1)};return jsxRuntimeExports.jsxs("div",{className:`time-picker-container ${i}`,children:[jsxRuntimeExports.jsxs("div",{className:`time-picker-input ${s||d?"active":""}`,children:[jsxRuntimeExports.jsx("input",{ref:S,type:"text",value:a,onChange:k,onKeyDown:I,onClick:Y=>{a||X(),q(Y)},onFocus:()=>p(!0),onBlur:()=>!s&&p(!1),placeholder:d||a?"hh:mm AM":"",className:"time-input",maxLength:8}),jsxRuntimeExports.jsx("label",{className:`floating-label ${s||d||a?"active":""}`,children:e}),jsxRuntimeExports.jsx("span",{className:"clock-icon",onClick:Y=>{Y.stopPropagation(),X()},children:jsxRuntimeExports.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("path",{d:"M12 6v6l4 2"})]})})]}),jsxRuntimeExports.jsxs("div",{className:`time-picker-popup ${s?"open":""}`,children:[jsxRuntimeExports.jsxs("div",{className:"time-picker-sections",children:[jsxRuntimeExports.jsxs("div",{className:"time-section",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Hours"}),jsxRuntimeExports.jsx("div",{className:"time-list",children:C.map(Y=>jsxRuntimeExports.jsx("div",{className:`time-item ${Y===l?"selected":""}`,onClick:()=>W("hours",Y),children:Y},Y))})]}),jsxRuntimeExports.jsxs("div",{className:"time-section",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Minutes"}),jsxRuntimeExports.jsx("div",{className:"time-list",children:b.map(Y=>jsxRuntimeExports.jsx("div",{className:`time-item ${Y===c?"selected":""}`,onClick:()=>W("minutes",Y),children:Y},Y))})]}),jsxRuntimeExports.jsxs("div",{className:"time-section period",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Period"}),jsxRuntimeExports.jsx("div",{className:"period-list",children:["AM","PM"].map(Y=>jsxRuntimeExports.jsx("div",{className:`period-item ${Y===u?"selected":""}`,onClick:()=>W("period",Y),children:Y},Y))})]})]}),jsxRuntimeExports.jsxs("div",{className:"time-picker-actions",children:[jsxRuntimeExports.jsx("button",{className:"time-picker-button cancel",onClick:ae,children:"Cancel"}),jsxRuntimeExports.jsx("button",{className:"time-picker-button ok",onClick:J,children:"OK"})]})]})]})},TransferItem=({label:e,checked:t,onChange:r,disabled:i})=>jsxRuntimeExports.jsx(CECheckBox,{label:e,checked:t,onChange:r,disabled:i}),CETransferButton=({label:e,onClick:t,disabled:r=!1,className:i=""})=>jsxRuntimeExports.jsx("button",{onClick:t,disabled:r,className:`transfer-button ${i}`,children:e}),TransferList=({dataUrl:e,onTransfer:t,containerClass:r="",boxClass:i="",buttonClass:s=""})=>{const[n,a]=React2.useState([]),[o,l]=React2.useState([]),[f,c]=React2.useState(!0),[m,u]=React2.useState(null),[x,d]=React2.useState(new Set),[p,E]=React2.useState(new Set);React2.useEffect(()=>{(async()=>{var b,A;try{c(!0),u(null);const I=(await axios.get(e)).data.items||[];a(I.slice(0,Math.ceil(I.length/2))),l(I.slice(Math.ceil(I.length/2)))}catch(k){u(axios.isAxiosError(k)?((A=(b=k.response)==null?void 0:b.data)==null?void 0:A.message)||k.message:"An error occurred")}finally{c(!1)}})()},[]);const g=C=>{if(C==="available"){const b=n.filter(k=>x.has(k.id)).sort((k,I)=>{const q=parseInt(k.id.replace(/\D/g,"")),X=parseInt(I.id.replace(/\D/g,""));return q-X}),A=n.filter(k=>!x.has(k.id));a(A),l(k=>[...k,...b].sort((q,X)=>{const W=parseInt(q.id.replace(/\D/g,"")),J=parseInt(X.id.replace(/\D/g,""));return W-J})),d(new Set)}else{const b=o.filter(k=>p.has(k.id)).sort((k,I)=>{const q=parseInt(k.id.replace(/\D/g,"")),X=parseInt(I.id.replace(/\D/g,""));return q-X}),A=o.filter(k=>!p.has(k.id));l(A),a(k=>[...k,...b].sort((q,X)=>{const W=parseInt(q.id.replace(/\D/g,"")),J=parseInt(X.id.replace(/\D/g,""));return W-J})),E(new Set)}t(o,n)},_=(C,b,A)=>{A(k=>{const I=new Set(k);return I.has(C)?I.delete(C):I.add(C),I})},y=(C,b,A)=>k=>{const I=new Set(b),q=C.filter(X=>!X.disabled);k?q.forEach(X=>I.add(X.id)):q.forEach(X=>I.delete(X.id)),A(I)},S=(C,b,A,k)=>{const I=C.filter(ae=>!ae.disabled),q=I.length>0&&I.every(ae=>b.has(ae.id)),X=b.size,W=C.length,J=C.length===0;return jsxRuntimeExports.jsxs("div",{className:`transfer-box ${i}`,children:[jsxRuntimeExports.jsx("div",{className:"transfer-box-header",children:jsxRuntimeExports.jsxs("div",{className:"header-content",children:[jsxRuntimeExports.jsx("div",{className:"checkbox-wrapper",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:q,onChange:y(C,b,A),disabled:J})}),jsxRuntimeExports.jsxs("div",{className:"title-section",children:[jsxRuntimeExports.jsx("div",{className:"title",children:k}),jsxRuntimeExports.jsxs("div",{className:"count-text",children:[X,"/",W," selected"]})]})]})}),jsxRuntimeExports.jsx("div",{className:"transfer-items",children:C.map(ae=>jsxRuntimeExports.jsx(TransferItem,{label:ae.label,checked:b.has(ae.id),disabled:ae.disabled,onChange:()=>_(ae.id,b,A)},ae.id))})]})};return f?jsxRuntimeExports.jsx("div",{children:"Loading..."}):m?jsxRuntimeExports.jsxs("div",{children:["Error: ",m]}):jsxRuntimeExports.jsxs("div",{className:`transfer-list-container ${r}`,children:[S(n,x,d,"Choices"),jsxRuntimeExports.jsxs("div",{className:"transfer-buttons",children:[jsxRuntimeExports.jsx(CETransferButton,{label:">>",onClick:()=>g("available"),disabled:x.size===0,className:s}),jsxRuntimeExports.jsx(CETransferButton,{label:"<<",onClick:()=>g("chosen"),disabled:p.size===0,className:s})]}),S(o,p,E,"Chosen")]})},CEBadge=({label:e,backgroundColor:t="#e0e0e0",textColor:r="#000",style:i})=>jsxRuntimeExports.jsx("span",{style:{backgroundColor:t,color:r,padding:"4px 10px",borderRadius:"12px",fontSize:"12px",display:"inline-block",whiteSpace:"nowrap",...i},children:e}),CEChatbox=({buttonLabel:e,buttonIcon:t})=>{const[r,i]=React2.useState([{id:1,author:"David Brown",initials:"DB",timestamp:"Jan 22, 2024 at 8:50 PM",content:"Contract amendments have been drafted and sent to all affected agencies. Expected completion by end of month."},{id:2,author:"Mike Wilson",initials:"MW",timestamp:"Jan 21, 2024 at 5:00 PM",content:"Utah DEQ has approved the new pricing structure. All 15 state agencies have been notified and are in agreement with the changes."}]),[s,n]=React2.useState(""),a=()=>{if(s.trim()){const l={id:r.length+1,author:"Current User",initials:"CU",timestamp:new Date().toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),content:s};i([l,...r]),n("")}},o=l=>{l.key==="Enter"&&a()};return jsxRuntimeExports.jsxs("div",{className:"notes-container",children:[jsxRuntimeExports.jsxs("div",{className:"notes-header",children:[jsxRuntimeExports.jsx("span",{className:"notes-icon",children:"📝"}),jsxRuntimeExports.jsx("span",{className:"notes-title",children:"Notes"})]}),jsxRuntimeExports.jsxs("div",{className:"add-note-section",children:[jsxRuntimeExports.jsx("textarea",{value:s,onChange:l=>n(l.target.value),onKeyPress:o,placeholder:"Add a note...",className:"add-note-input",rows:3}),jsxRuntimeExports.jsx(CEButton,{label:e,icon:t,variant:"outlinedGreen",onClick:a,sx:{width:"100%",marginTop:"10px"},children:void 0})]}),jsxRuntimeExports.jsx("div",{className:"notes-list",children:r.map(l=>jsxRuntimeExports.jsxs("div",{className:"note-item",children:[jsxRuntimeExports.jsx("div",{className:"note-avatar",children:l.initials}),jsxRuntimeExports.jsxs("div",{className:"note-content",children:[jsxRuntimeExports.jsxs("div",{className:"note-header",children:[jsxRuntimeExports.jsx("span",{className:"note-author",children:l.author}),jsxRuntimeExports.jsx("span",{className:"note-timestamp",children:l.timestamp})]}),jsxRuntimeExports.jsx("div",{className:"note-text",children:l.content})]})]},l.id))})]})},CEStatusDropdown=({options:e,selected:t,onChange:r,placeholder:i="Select status...",size:s="medium",disabled:n=!1,ariaLabel:a="Status selection dropdown"})=>{const[o,l]=React2.useState(!1),f=React2.useRef(null),c=e.find(p=>p.value===t),m=p=>{r(p),l(!1)};React2.useEffect(()=>{const p=E=>{var g;(g=f.current)!=null&&g.contains(E.target)||l(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]);const u=p=>{n||(p.key==="Enter"||p.key===" "?(p.preventDefault(),l(!o)):p.key==="Escape"&&l(!1))},x=p=>{if(p!=null&&p.statusType)switch(p.statusType){case"in-progress":return"in-progress";case"declined":return"declined";case"withdrawn":return"withdrawn";default:return""}return""},d=()=>{if(c){const p={};return c.backgroundColor&&(p.backgroundColor=c.backgroundColor),c.textColor&&(p.color=c.textColor),p}return{}};return jsxRuntimeExports.jsxs("div",{className:`status-dropdown-container ${n?"disabled":""} size-${s}`,ref:f,children:[jsxRuntimeExports.jsxs("div",{className:`status-dropdown-trigger ${o?"open":""} ${c?`has-selection ${x(c)}`:""}`,onClick:()=>!n&&l(!o),onKeyDown:u,tabIndex:n?-1:0,role:"button","aria-haspopup":"listbox","aria-expanded":o?"true":"false","aria-label":a,style:d(),children:[jsxRuntimeExports.jsx("span",{className:"status-text",children:c?c.label:i}),jsxRuntimeExports.jsx("span",{className:"status-dropdown-icon",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`dropdown-arrow ${o?"rotate":""}`,children:jsxRuntimeExports.jsx("path",{d:"M8.12021 9.79006L12.0002 13.6701L15.8802 9.79006C16.2702 9.40006 16.9002 9.40006 17.2902 9.79006C17.6802 10.1801 17.6802 10.8101 17.2902 11.2001L12.7002 15.7901C12.3102 16.1801 11.6802 16.1801 11.2902 15.7901L6.70021 11.2001C6.31021 10.8101 6.31021 10.1801 6.70021 9.79006C7.09021 9.41006 7.73021 9.40006 8.12021 9.79006Z",fill:"currentColor",fillOpacity:"0.7"})})})]}),o&&!n&&jsxRuntimeExports.jsx("ul",{className:"status-dropdown-options",role:"listbox","aria-label":"Status options",children:e.map(p=>{const E={};return p.backgroundColor&&(E.backgroundColor=p.backgroundColor),p.textColor&&(E.color=p.textColor),jsxRuntimeExports.jsxs("li",{className:`status-dropdown-option ${t===p.value?"selected":""} ${x(p)}`,onClick:()=>m(p.value),role:"option","aria-selected":t===p.value?"true":"false",style:E,children:[jsxRuntimeExports.jsx("span",{className:"option-indicator",children:p.icon?p.icon:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[p.statusType==="declined"&&jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"#ff4757"}),jsxRuntimeExports.jsx("path",{d:"M15 9l-6 6m0-6l6 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})]}),p.statusType==="withdrawn"&&jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"#ffa502"}),jsxRuntimeExports.jsx("path",{d:"M12 8v4M12 16h.01",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})]}),p.statusType==="in-progress"&&jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"#5f27cd"}),jsxRuntimeExports.jsx("path",{d:"M8 12l2 2 4-4",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})]})}),p.label]},p.value)})})]})};exports.CEAutoSuggestInput=CEAutoSuggestInput;exports.CEAvatarMenu=CEAvatarMenu;exports.CEBadge=CEBadge;exports.CEBreadcrumbs=Breadcrumbs;exports.CEButton=CEButton;exports.CEChatbox=CEChatbox;exports.CECheckbox=CECheckBox;exports.CEChipInput=CEChipInput;exports.CEDataGridDynamicTable=CEDataGridDynamicTable;exports.CEDatePicker=CEDatePicker;exports.CEDateRangePicker=CEDateRangePicker;exports.CEDialogBox=CEDialogBox;exports.CEDrawer=CEDrawer;exports.CEDynamicSearchField=CEDynamicSearchField;exports.CEDynamicSelectField=CEDynamicSelectField;exports.CEDynamicTextField=CEDynamicTextField;exports.CEFieldsInput=FieldsInput;exports.CEFooter=CEFooter;exports.CEGridLayout=CEGridLayout;exports.CEGridMenuButton=CEGridMenuButton;exports.CEHamburgerButton=CEHamburgerButton;exports.CEHeader=CEHeader;exports.CEInputBox=CEInputBox;exports.CEInputDropDown=InputDropDown;exports.CELinearProgressBar=CELinearProgressBar;exports.CELogo=CELogo;exports.CEMenuBar=CEMenuBar;exports.CEMessageModal=CEMessageModal;exports.CEModalPopUp=CECustomModal;exports.CENotificationButton=CENotificationButton;exports.CEPagination=CEPagination;exports.CERadioButton=CERadioButton;exports.CERadioGroup=CERadioButtonGroup;exports.CERichTextEditor=CERichTextEditor;exports.CESearchBar=CESearchBar;exports.CESearchButton=CESearchButton;exports.CESnackBar=CESnackBar;exports.CEStatusDropdown=CEStatusDropdown;exports.CEStepper=CEStepper;exports.CETabView=CETabView;exports.CETemplate=CETemplate;exports.CETimePicker=CETimePicker;exports.CETransferButton=CETransferButton;exports.CEUploadModalWrapper=CEUploadModalWrapper;exports.CEUserInfo=CEUserInfo;exports.CeBox=CeBox;exports.TransferList=TransferList;
142
+ `;var r=sheet_to_csv(e,t);return r}function sheet_to_formulae(e){var t="",r,i="";if(e==null||e["!ref"]==null)return[];var s=safe_decode_range(e["!ref"]),n="",a=[],o,l=[],f=Array.isArray(e);for(o=s.s.c;o<=s.e.c;++o)a[o]=encode_col(o);for(var c=s.s.r;c<=s.e.r;++c)for(n=encode_row(c),o=s.s.c;o<=s.e.c;++o)if(t=a[o]+n,r=f?(e[c]||[])[o]:e[t],i="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;i=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)i=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)i=""+r.v;else if(r.t=="b")i=r.v?"TRUE":"FALSE";else if(r.w!==void 0)i="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?i="'"+r.v:i=""+r.v}}l[l.length]=t+"="+i}return l}function sheet_add_json(e,t,r){var i=r||{},s=+!i.skipHeader,n=e||{},a=0,o=0;if(n&&i.origin!=null)if(typeof i.origin=="number")a=i.origin;else{var l=typeof i.origin=="string"?decode_cell(i.origin):i.origin;a=l.r,o=l.c}var f,c={s:{c:0,r:0},e:{c:o,r:a+t.length-1+s}};if(n["!ref"]){var m=safe_decode_range(n["!ref"]);c.e.c=Math.max(c.e.c,m.e.c),c.e.r=Math.max(c.e.r,m.e.r),a==-1&&(a=m.e.r+1,c.e.r=a+t.length-1+s)}else a==-1&&(a=0,c.e.r=t.length-1+s);var u=i.header||[],x=0;t.forEach(function(p,E){keys(p).forEach(function(g){(x=u.indexOf(g))==-1&&(u[x=u.length]=g);var _=p[g],y="z",S="",C=encode_cell({c:o+x,r:a+E+s});f=ws_get_cell_stub(n,C),_&&typeof _=="object"&&!(_ instanceof Date)?n[C]=_:(typeof _=="number"?y="n":typeof _=="boolean"?y="b":typeof _=="string"?y="s":_ instanceof Date?(y="d",i.cellDates||(y="n",_=datenum(_)),S=i.dateNF||table_fmt[14]):_===null&&i.nullError&&(y="e",_=0),f?(f.t=y,f.v=_,delete f.w,delete f.R,S&&(f.z=S)):n[C]=f={t:y,v:_},S&&(f.z=S))})}),c.e.c=Math.max(c.e.c,o+u.length-1);var d=encode_row(a);if(s)for(x=0;x<u.length;++x)n[encode_col(x+o)+d]={t:"s",v:u[x]};return n["!ref"]=encode_range(c),n}function json_to_sheet(e,t){return sheet_add_json(null,e,t)}function ws_get_cell_stub(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var i=decode_cell(t);return e[i.r]||(e[i.r]=[]),e[i.r][i.c]||(e[i.r][i.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?ws_get_cell_stub(e,encode_cell(t)):ws_get_cell_stub(e,encode_cell({r:t,c:r||0}))}function wb_sheet_idx(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function book_new(){return{SheetNames:[],Sheets:{}}}function book_append_sheet(e,t,r,i){var s=1;if(!r)for(;s<=65535&&e.SheetNames.indexOf(r="Sheet"+s)!=-1;++s,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(i&&e.SheetNames.indexOf(r)>=0){var n=r.match(/(^.*?)(\d+)$/);s=n&&+n[2]||0;var a=n&&n[1]||r;for(++s;s<=65535&&e.SheetNames.indexOf(r=a+s)!=-1;++s);}if(check_ws_name(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function book_set_sheet_visibility(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var i=wb_sheet_idx(e,t);switch(e.Workbook.Sheets[i]||(e.Workbook.Sheets[i]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[i].Hidden=r}function cell_set_number_format(e,t){return e.z=t,e}function cell_set_hyperlink(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function cell_set_internal_link(e,t,r){return cell_set_hyperlink(e,"#"+t,r)}function cell_add_comment(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function sheet_set_array_formula(e,t,r,i){for(var s=typeof t!="string"?t:safe_decode_range(t),n=typeof t=="string"?t:encode_range(t),a=s.s.r;a<=s.e.r;++a)for(var o=s.s.c;o<=s.e.c;++o){var l=ws_get_cell_stub(e,a,o);l.t="n",l.F=n,delete l.v,a==s.s.r&&o==s.s.c&&(l.f=r,i&&(l.D=!0))}return e}var utils={encode_col,encode_row,encode_cell,encode_range,decode_col,decode_row,split_cell,decode_cell,decode_range,format_cell,sheet_add_aoa,sheet_add_json,sheet_add_dom,aoa_to_sheet,json_to_sheet,table_to_sheet:parse_dom_table,table_to_book,sheet_to_csv,sheet_to_txt,sheet_to_json,sheet_to_html,sheet_to_formulae,sheet_to_row_object_array:sheet_to_json,sheet_get_cell:ws_get_cell_stub,book_new,book_append_sheet,book_set_sheet_visibility,cell_set_number_format,cell_set_hyperlink,cell_set_internal_link,cell_add_comment,sheet_set_array_formula,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const ExportIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.59%209.5H15V4.5C15%203.95%2014.55%203.5%2014%203.5H10C9.45%203.5%209%203.95%209%204.5V9.5H7.41C6.52%209.5%206.07%2010.58%206.7%2011.21L11.29%2015.8C11.68%2016.19%2012.31%2016.19%2012.7%2015.8L17.29%2011.21C17.92%2010.58%2017.48%209.5%2016.59%209.5ZM5%2019.5C5%2020.05%205.45%2020.5%206%2020.5H18C18.55%2020.5%2019%2020.05%2019%2019.5C19%2018.95%2018.55%2018.5%2018%2018.5H6C5.45%2018.5%205%2018.95%205%2019.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",FileOpenRounded="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%202.5H10.83C10.3%202.5%209.79%202.71%209.41%203.09L4.59%207.91C4.21%208.29%204%208.8%204%209.33V20.5C4%2021.6%204.9%2022.5%206%2022.5H18C19.1%2022.5%2020%2021.6%2020%2020.5V4.5C20%203.4%2019.1%202.5%2018%202.5ZM11.65%2017.15L8.86%2014.36C8.54%2014.04%208.76%2013.5%209.21%2013.5H11V10.51C11%209.96%2011.44%209.52%2011.99%209.51C12.55%209.5%2013%209.95%2013%2010.51V13.5H14.79C15.24%2013.5%2015.46%2014.04%2015.14%2014.35L12.35%2017.14C12.16%2017.34%2011.84%2017.34%2011.65%2017.15Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",ReloadIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.6498%206.84999C16.0198%205.21999%2013.7098%204.27999%2011.1698%204.53999C7.49978%204.90999%204.47978%207.88999%204.06978%2011.56C3.51978%2016.41%207.26978%2020.5%2011.9998%2020.5C15.1898%2020.5%2017.9298%2018.63%2019.2098%2015.94C19.5298%2015.27%2019.0498%2014.5%2018.3098%2014.5C17.9398%2014.5%2017.5898%2014.7%2017.4298%2015.03C16.2998%2017.46%2013.5898%2019%2010.6298%2018.34C8.40978%2017.85%206.61978%2016.04%206.14978%2013.82C5.30978%209.93999%208.25978%206.49999%2011.9998%206.49999C13.6598%206.49999%2015.1398%207.18999%2016.2198%208.27999L14.7098%209.78999C14.0798%2010.42%2014.5198%2011.5%2015.4098%2011.5H18.9998C19.5498%2011.5%2019.9998%2011.05%2019.9998%2010.5V6.90999C19.9998%206.01999%2018.9198%205.56999%2018.2898%206.19999L17.6498%206.84999Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",FilterAltOffRounded="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.7901%206.11003C20.3001%205.45003%2019.8301%204.50003%2019.0001%204.50003H6.83008L14.8001%2012.47L19.7901%206.11003Z'%20fill='black'%20fill-opacity='0.54'/%3e%3cpath%20d='M20.4901%2020.99L3.51012%204.01003C3.12012%203.62003%202.49012%203.62003%202.10012%204.01003C1.71012%204.40003%201.71012%205.03003%202.10012%205.42003L10.0001%2013.5V18.5C10.0001%2019.6%2010.9001%2020.5%2012.0001%2020.5C13.1001%2020.5%2014.0001%2019.6%2014.0001%2018.5V17.33L19.0701%2022.4C19.4601%2022.79%2020.0901%2022.79%2020.4801%2022.4C20.8701%2022.01%2020.8801%2021.38%2020.4901%2020.99Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",CESkeletonTable=({columns:e,rows:t})=>jsxRuntimeExports.jsx("div",{className:"skeleton-table",children:jsxRuntimeExports.jsxs("table",{children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:Array.from({length:e}).map((r,i)=>jsxRuntimeExports.jsx("th",{children:jsxRuntimeExports.jsx("div",{className:"skeleton skeleton-header"})},i))})}),jsxRuntimeExports.jsx("tbody",{children:Array.from({length:t}).map((r,i)=>jsxRuntimeExports.jsx("tr",{children:Array.from({length:e}).map((s,n)=>jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx("div",{className:"skeleton skeleton-cell"})},n))},i))})]})}),CERadioButton=({label:e,value:t,checked:r,onChange:i})=>jsxRuntimeExports.jsxs("label",{className:"radio-button",style:{margin:"0.5rem 0"},children:[jsxRuntimeExports.jsx("input",{type:"radio",value:t,checked:r,onChange:()=>i(t),style:{marginRight:e?"0.5rem":0}}),e&&jsxRuntimeExports.jsx("span",{children:e})]}),PaginationControls=({currentPage:e,totalPages:t,setCurrentPage:r})=>{const n=Math.floor(e/5)*5,a=Math.min(n+5,t),o=()=>{r(Math.max(0,n-1))},l=()=>{r(Math.min(t-1,a))},f=[];for(let c=n;c<a;c++)f.push(jsxRuntimeExports.jsx("button",{className:`pagination-page${e===c?" active":""}`,onClick:()=>r(c),disabled:e===c,children:c+1},c));return jsxRuntimeExports.jsxs("div",{className:"pagination-controls",children:[jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>r(0),disabled:e===0,children:"First"}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>r(e-1),disabled:e===0,children:"Previous"}),n>0&&jsxRuntimeExports.jsx("button",{className:"pagination-ellipsis",onClick:o,children:"..."}),f,a<t&&jsxRuntimeExports.jsx("button",{className:"pagination-ellipsis",onClick:l,children:"..."}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>r(e+1),disabled:e===t-1,children:"Next"}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>r(t-1),disabled:e===t-1,children:"Last"})]})},RowsPerPageSelector=({rowsPerPage:e,setRowsPerPage:t,setCurrentPage:r})=>jsxRuntimeExports.jsxs("div",{className:"rows-per-page-container",children:[jsxRuntimeExports.jsx("label",{htmlFor:"rows-per-page-select",children:"Rows per page:"}),jsxRuntimeExports.jsx("select",{id:"rows-per-page-select",value:e,onChange:i=>{t(Number(i.target.value)),r(0)},style:{marginLeft:"8px"},children:[10,20,50,100].map(i=>jsxRuntimeExports.jsx("option",{value:i,children:i},i))})]}),EntriesInfo=({dataLength:e,currentPage:t,rowsPerPage:r})=>jsxRuntimeExports.jsx("div",{className:"entries-info",children:e>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Showing ",e===0?0:t*r+1," to"," ",Math.min((t+1)*r,e)," of ",e," ","entries"]})}),CEDataGridDynamicTable=({title:e,jsonData:t,columnList:r,ischeckBoxInGrid:i,isRadioButtonInGrid:s,onRadioChange:n,getSelectedRadioValue:a,renderRadioInColumnId:o,isSearchBoxInGrid:l,isAddButtonRequired:f,isEditButtonRequired:c,isDeleteButtonRequired:m,isApproveButtonRequired:u,isReassignButtonRequired:x,isCancelButtonRequired:d,isExportToExcelRequired:p,isExportAllToExcel:E,handleEditClick:g,handleAddClick:_,handleDeleteClick:y,handleApproveClick:S,handleReassignClick:C,handleCancelClick:b,noOfPagesPerPage:A,clickableColumns:k,conditionalClickableColumns:I,handleCellClick:q,onReload:X,showDownloadIcon:W=!0,showRefreshIcon:J=!0,showFullViewIcon:ae=!0,showSearchIcon:Y=!0,showColumnVisibilityIcon:L=!0,showSortIcon:j=!0,showFilterIcon:T=!0,defaultSortConfig:R,onDataUpdate:M,isOverrideCSS:D,showPagination:P=!0,shouldResetSearchOnDataChange:H})=>{const[B,z]=React2.useState({}),[re,ce]=React2.useState(!1),[fe,pe]=React2.useState([]),[le,Se]=React2.useState([]),[Ce,Te]=React2.useState([]),[he,je]=React2.useState(!1),[Re,ye]=React2.useState(new Set),[Fe,Me]=React2.useState(null),[Ve,Pe]=React2.useState(!1),[Je,$e]=React2.useState(""),[De,Ke]=React2.useState("contains"),[Ue,Ge]=React2.useState(""),[Le,We]=React2.useState({}),[Qe,qe]=React2.useState(0),[it,wt]=React2.useState(A??10),[pt,St]=React2.useState(new Set),[Ze,ot]=React2.useState(""),[dt,xt]=React2.useState(!1),[He,mt]=React2.useState(new Set),[lt,ft]=React2.useState([]),[ct,Ct]=React2.useState(null),yt=React2.useRef(null),vt=React2.useRef(null),gt=React2.useRef(null),[ht,bt]=React2.useState(new Set),[Ye,_t]=React2.useState([]),[At,Rt]=React2.useState(!1),[et,F]=React2.useState(null),V=React2.useRef([]),[N,O]=React2.useState(!1),U=()=>O(!0),G=()=>O(!1),[Q,ne]=React2.useState(!0),Z=K=>{if(Array.isArray(K))return K.map(Z);if(K&&typeof K=="object"&&!React2.isValidElement(K)){const te={};for(const oe in K)React2.isValidElement(K[oe])||(te[oe]=Z(K[oe]));return te}return K};React2.useEffect(()=>{if(t&&Array.isArray(t)){const K=Z(V.current),te=Z(t),oe=JSON.stringify(K)!==JSON.stringify(te);if(t&&Array.isArray(t)&&oe){let se=[...t];if(R){const{column:de,direction:Ee}=R;se.sort((_e,we)=>{const ke=_e[de],Ie=we[de],Ae=new Date(ke),Be=new Date(Ie),Xe=!isNaN(Ae.getTime()),at=!isNaN(Be.getTime());if(Xe&&at)return Ee==="asc"?Ae.getTime()-Be.getTime():Be.getTime()-Ae.getTime();const Ft=String(ke||"").toLowerCase(),Bt=String(Ie||"").toLowerCase();return Ft.localeCompare(Bt)}),Ee==="desc"&&se.reverse(),F(R)}if(pe(se),Se(se),ne(!1),H?(ot(""),We({})):ve(),o){const de={},Ee=Array.isArray(o)?o:[o];se.forEach((_e,we)=>{const ke=_e.id??`__row_${we}`;for(const Ie of Ee)if(_e[Ie]===!0){de[ke]={columnId:Ie,rowData:_e};break}}),ie(de)}V.current=t}}else ne(!0)},[t,R,o]),React2.useEffect(()=>{if(fe.length>0){const K=(r??[]).map(se=>({id:se.id,label:se.label??se.id,tooltip:se.tooltip,shouldDisplay:se.shouldDisplay??!0,shouldVisible:se.shouldVisible??!0})),te=Object.keys(fe[0]||{}).map(se=>({id:se,label:se.charAt(0).toUpperCase()+se.slice(1),shouldDisplay:!0,shouldVisible:!0})),oe=K.length>0?K:te;if(_t(oe),!At){const se=oe.filter(Ee=>Ee.shouldDisplay!==!1).map(Ee=>Ee.id),de=oe.filter(Ee=>Ee.shouldVisible!==!1).map(Ee=>Ee.id);mt(new Set(se)),ft(de),Rt(!0)}}},[fe,r]);const[ee,ie]=React2.useState({}),ue=({rowIndex:K,columnId:te,rowData:oe})=>{const se=Array.isArray(o)?o:[o],de={...oe,...Object.fromEntries(se.map(we=>[we,we===te]))},Ee=oe.id??`__row_${K}`;ie(we=>({...we,[Ee]:{columnId:te,rowData:de}}));const _e=fe.map((we,ke)=>(we.id??`__row_${ke}`)===Ee?{...we,...Object.fromEntries(se.map(Ae=>[Ae,Ae===te]))}:we);pe(_e),Se(_e),M&&M({fullData:_e,updatedRow:de})},me=K=>{var se;const te=fe.findIndex(de=>de===K),oe=K.id??`__row_${te}`;return((se=ee[oe])==null?void 0:se.columnId)||""},ge=React2.useMemo(()=>{const K=Qe*it,te=K+it;return fe.slice(K,te)},[fe,Qe,it]),xe=()=>{ot(""),ve()},ve=()=>{let K=[...le];Ze.trim()&&(K=K.filter(te=>Object.entries(te).some(([oe,se])=>He.has(oe)?String(se).toLowerCase().includes(Ze.toLowerCase()):!1))),Object.entries(Le).forEach(([te,oe])=>{const{value:se,operator:de}=oe;K=K.filter(Ee=>{const _e=String(Ee[te]||"").toLowerCase(),we=se.toLowerCase();switch(de){case"contains":return _e.includes(we);case"equals":return _e===we;case"startsWith":return _e.startsWith(we);case"endsWith":return _e.endsWith(we);case"does not contain":return!_e.includes(we);case"does not equal":return _e!==we;case"is any of":return se.split(",").map(ke=>ke.trim().toLowerCase()).includes(_e);default:return!0}})}),pe(K),qe(0)},be=K=>{const te=new Set(He);te.has(K)?te.size>1&&te.delete(K):te.add(K),mt(te)},Ne=(K,te=null)=>{const oe=te?`${K}-${te}`:`${K}`,se=new Set(pt);se.has(oe)?se.delete(oe):(Array.from(se).forEach(de=>{de.startsWith(`${K}`)&&se.delete(de)}),se.add(oe)),St(se)},Oe=K=>{Me(Fe===K?null:K)};React2.useEffect(()=>{const K=te=>{if(Fe&&!te.target)return;const oe=te.target;!oe.closest(".dropdown-menu")&&!oe.closest(".dropdown-trigger")&&Me(null)};return document.addEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)}},[Fe]);const ze=K=>{if(le.length===0)return;let te="asc";et&&et.column===K&&(te=et.direction==="asc"?"desc":"asc");const oe=[...le].sort((de,Ee)=>{const _e=de[K],we=Ee[K];if(_e==null)return 1;if(we==null)return-1;const ke=String(_e).toLowerCase(),Ie=String(we).toLowerCase();return!isNaN(Number(_e))&&!isNaN(Number(we))?te==="asc"?Number(_e)-Number(we):Number(we)-Number(_e):te==="asc"?ke.localeCompare(Ie):Ie.localeCompare(ke)});F({column:K,direction:te}),Se(oe);let se=[...oe];Object.entries(Le).forEach(([de,Ee])=>{const{value:_e,operator:we}=Ee,ke=_e.toLowerCase();se=se.filter(Ie=>{const Ae=String(Ie[de]||"").toLowerCase();switch(we){case"contains":return Ae.includes(ke);case"equals":return Ae===ke;case"startsWith":return Ae.startsWith(ke);case"endsWith":return Ae.endsWith(ke);default:return!0}})}),Ze.trim()&&(se=se.filter(de=>Object.entries(de).some(([Ee,_e])=>He.has(Ee)?String(_e).toLowerCase().includes(Ze.toLowerCase()):!1))),pe(se),qe(0)},nt=()=>{Je&&Ue.trim()!==""&&st(Je,Ue,De),Pe(!1),Ge(""),$e(""),qe(0)},st=(K,te,oe)=>{if(K){const se={...Le};if(te===""&&(oe==="contains"||oe==="equals")){$e(K),Ke(oe||De),Ge(""),Pe(!0);return}else te&&te.trim()!==""?se[K]={value:te,operator:oe||De}:delete se[K];We(se);let de=[...le];Object.entries(se).forEach(([Ee,_e])=>{const{value:we,operator:ke}=_e;de=de.filter(Ie=>{const Ae=String(Ie[Ee]||"").toLowerCase(),Be=we.toLowerCase();switch(ke){case"contains":return Ae.includes(Be);case"equals":return Ae===Be;case"startsWith":return Ae.startsWith(Be);case"endsWith":return Ae.endsWith(Be);case"does not contain":return!Ae.includes(Be);case"does not equal":return Ae!==Be;case"is any of":return we.split(",").map(Xe=>Xe.trim().toLowerCase()).includes(Ae);default:return!0}})}),pe(de),Te(de),qe(0),Pe(!1)}},ut=K=>{K.key==="Enter"&&st()};useEscapeKey(()=>{Me(null),Pe(!1)});const tt=(K,te="")=>{const oe=se=>{const de=new Set(ht);de.has(se)?de.delete(se):de.add(se),bt(de)};if(Array.isArray(K)){const se=Array.from(new Set(K.reduce((de,Ee)=>typeof Ee=="object"&&Ee!==null?[...de,...Object.keys(Ee)]:de,[])));return jsxRuntimeExports.jsx("div",{className:"expanded-section",children:jsxRuntimeExports.jsx("div",{className:"nested-table",children:jsxRuntimeExports.jsxs("table",{children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:se.map(de=>jsxRuntimeExports.jsx("th",{children:de.charAt(0).toUpperCase()+de.slice(1)},de))})}),jsxRuntimeExports.jsx("tbody",{children:K.map((de,Ee)=>jsxRuntimeExports.jsx("tr",{children:se.map(_e=>jsxRuntimeExports.jsx("td",{children:typeof de[_e]=="object"&&de[_e]!==null?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>oe(`${te}-${Ee}-${_e}`),children:ht.has(`${te}-${Ee}-${_e}`)?"▼":"▶"}),ht.has(`${te}-${Ee}-${_e}`)&&tt(de[_e],`${te}-${Ee}-${_e}`)]}):String(de[_e]||"")},`${te}-${Ee}-${_e}`))},`${te}-${Ee}`))})]})})})}else if(typeof K=="object"&&K!==null)return jsxRuntimeExports.jsx("div",{className:"nested-object",children:jsxRuntimeExports.jsxs("table",{className:"custom-table nested",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"table-header-cell",children:"Property"}),jsxRuntimeExports.jsx("th",{className:"table-header-cell",children:"Value"})]})}),jsxRuntimeExports.jsx("tbody",{children:Object.entries(K).map(([se,de])=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"table-cell",children:jsxRuntimeExports.jsx("strong",{children:se})}),jsxRuntimeExports.jsx("td",{className:"table-cell",children:typeof de=="object"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>oe(`${te}-${se}`),children:ht.has(`${te}-${se}`)?"▼":"▶"}),ht.has(`${te}-${se}`)&&tt(de,`${te}-${se}`)]}):String(de)})]},`${te}-${se}`))})]})});return jsxRuntimeExports.jsx("span",{children:String(K)})},Et=K=>{var te;if(K){const oe=(te=K.parentElement)==null?void 0:te.querySelector(".dropdown-trigger");if(!oe)return;const se=oe.getBoundingClientRect(),de=window.innerHeight,Ee=window.innerWidth,_e=K.offsetHeight,we=K.offsetWidth,ke=se.bottom+_e>de,Ie=se.left+we>Ee,Ae=se.left-we<0;let Be,Xe;ke?(Be=se.top-_e,K.classList.add("adjust-top")):(Be=se.bottom,K.classList.remove("adjust-top")),Ie?(Xe=se.right-we,K.classList.add("adjust-left"),K.classList.remove("adjust-right")):Ae?(Xe=se.left,K.classList.add("adjust-right"),K.classList.remove("adjust-left")):(Xe=se.left,K.classList.remove("adjust-left"),K.classList.remove("adjust-right")),K.style.top=`${Be}px`,K.style.left=`${Xe}px`,K.classList.add("dropdown-fixed-position")}};React2.useEffect(()=>{const K=te=>{Ve&&yt.current&&!yt.current.contains(te.target)&&Pe(!1)};return document.addEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)}},[Ve]),React2.useEffect(()=>{const K=te=>{Fe&&vt.current&&!vt.current.contains(te.target)&&Me(null)};return document.addEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)}},[Fe]),React2.useEffect(()=>{const K=te=>{dt&&gt.current&&!gt.current.contains(te.target)&&xt(!1)};return document.addEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)}},[dt]);const rt=(K,te)=>{K.preventDefault();const oe=K.pageX,se=B[te]||150,de=_e=>{const we=Math.max(100,se+(_e.pageX-oe));z(ke=>({...ke,[te]:we}))},Ee=()=>{document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",Ee)};document.addEventListener("mousemove",de),document.addEventListener("mouseup",Ee)},kt=(K,te)=>{var se;const oe=String(te);return k!=null&&k.includes(K)?I!=null&&I[K]?I[K].includes(oe):!0:!!((se=I==null?void 0:I._global_)!=null&&se.includes(oe))},Lt=(K,te)=>{kt(te,K[te])&&q&&q(K,te)},Tt=ge.some(K=>Array.from(He).some(te=>Array.isArray(K[te])&&K[te].length>0&&K[te].some(oe=>typeof oe=="object"&&oe!==null))),It=()=>{const K=Ye.filter(de=>He.has(de.id)),te=le.map(de=>K.reduce((Ee,_e)=>(Ee[_e.label||_e.id]=de[_e.id],Ee),{})),oe=utils.json_to_sheet(te),se=utils.book_new();utils.book_append_sheet(se,oe,"Data"),writeFileSync(se,"alldata-grid-export.xlsx")},Mt=()=>jsxRuntimeExports.jsxs("div",{className:D?"esign-table-container":"table-container",children:[jsxRuntimeExports.jsx("div",{className:"table-scroll-container",children:He.size===0?jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"200px",display:"flex",alignItems:"center",justifyContent:"center",color:"#888",fontSize:"1.2em",background:"#fafafa",border:"1px solid #eee",borderRadius:"8px"},children:"Please select at least one column to show data"}):jsxRuntimeExports.jsxs("table",{className:"custom-table",style:{tableLayout:"fixed",width:"100%"},children:[jsxRuntimeExports.jsxs("thead",{children:[jsxRuntimeExports.jsxs("tr",{children:[Tt&&jsxRuntimeExports.jsx("th",{className:"expand-column"}),i&&jsxRuntimeExports.jsx("th",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:Re.size===fe.length&&fe.length>0,onChange:K=>{if(K){const te=new Set(fe.map((oe,se)=>se));ye(te)}else ye(new Set)}})}),lt.filter(K=>Ye.find(oe=>oe.id===K)&&He.has(K)).map(K=>{const te=Ye.find(oe=>oe.id===K);return te?jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:B[te.id]?`${B[te.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},children:jsxRuntimeExports.jsxs("div",{className:"column-header",children:[jsxRuntimeExports.jsxs("span",{className:"column-label-with-info",children:[te.label,te.tooltip&&jsxRuntimeExports.jsx("img",{src:InfoIcon,alt:"info",title:te.tooltip,width:14,height:14,className:"info-icon"})]}),jsxRuntimeExports.jsxs("div",{className:"column-actions",children:[j&&jsxRuntimeExports.jsx("img",{src:SortIcon,alt:"Sort",title:"Sort",width:14,height:14,onClick:()=>ze(te.id),style:{cursor:"pointer",transition:"transform 0.2s ease-in-out",transform:(et==null?void 0:et.column)===te.id?et.direction==="asc"?"rotate(0deg)":"rotate(180deg)":"none",filter:(et==null?void 0:et.column)===te.id?"brightness(0.6)":"none"}}),T&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:te.id===Fe?vt:null,children:[jsxRuntimeExports.jsx("span",{className:`dropdown-trigger ${Le[te.id]?"filter-active":""}`,onClick:oe=>{oe.stopPropagation(),Oe(te.id)},title:Le[te.id]?`Filter: ${Le[te.id].operator} "${Le[te.id].value}"`:"Filter options",children:"⋮"}),Fe===te.id&&jsxRuntimeExports.jsxs("div",{className:"dropdown-menu",ref:oe=>{oe&&setTimeout(()=>Et(oe),0)},children:[jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{$e(te.id),Pe(!0),Me(null)},children:"Filter"}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{st(te.id,"","contains"),Me(null)},children:"Contains..."}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{st(te.id,"","equals"),Me(null)},children:"Equals..."}),Le[te.id]&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{const oe={...Le};delete oe[te.id],We(oe),Ge(""),$e("");let se=[...le];Ze.trim()&&(se=se.filter(de=>Object.entries(de).some(([Ee,_e])=>He.has(Ee)?String(_e).toLowerCase().includes(Ze.toLowerCase()):!1))),Object.entries(oe).forEach(([de,Ee])=>{const{value:_e,operator:we}=Ee;se=se.filter(ke=>{const Ie=String(ke[de]||"").toLowerCase(),Ae=_e.toLowerCase();switch(we){case"contains":return Ie.includes(Ae);case"equals":return Ie===Ae;case"startsWith":return Ie.startsWith(Ae);case"endsWith":return Ie.endsWith(Ae);case"does not contain":return!Ie.includes(Ae);case"does not equal":return Ie!==Ae;case"is any of":return _e.split(",").map(Be=>Be.trim().toLowerCase()).includes(Ie);default:return!0}})}),pe(se),qe(0),Me(null)},children:"Clear Filter"}),Object.keys(Le).length>0&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{We({}),pe(le),qe(0),Me(null)},children:"Clear All Filters"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"column-resizer",onMouseDown:oe=>rt(oe,te.id)})]})},te.id):null}),(c||x||d||u||m||f)&&jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:"150px",textAlign:"center"},children:"Action"})]}),he&&jsxRuntimeExports.jsxs("tr",{className:"filter-row",children:[Tt&&jsxRuntimeExports.jsx("td",{}),i&&jsxRuntimeExports.jsx("td",{}),lt.filter(K=>Ye.find(oe=>oe.id===K)&&He.has(K)).map(K=>{var oe;const te=Ye.find(se=>se.id===K);return te?jsxRuntimeExports.jsxs("td",{style:{position:"relative"},children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:`Search ${te.label}`,value:((oe=Le[te.id])==null?void 0:oe.value)||"",onChange:se=>{const de=se.target.value;Ge(de),$e(te.id);const Ee={...Le};de===""?delete Ee[te.id]:Ee[te.id]={value:de,operator:"contains"},We(Ee);let _e=[...le];Ze.trim()&&(_e=_e.filter(we=>Object.entries(we).some(([ke,Ie])=>He.has(ke)?String(Ie).toLowerCase().includes(Ze.toLowerCase()):!1))),Object.entries(Ee).forEach(([we,ke])=>{const{value:Ie,operator:Ae}=ke;_e=_e.filter(Be=>{const Xe=String(Be[we]||"").toLowerCase(),at=Ie.toLowerCase();switch(Ae){case"contains":return Xe.includes(at);case"equals":return Xe===at;case"startsWith":return Xe.startsWith(at);case"endsWith":return Xe.endsWith(at);case"does not contain":return!Xe.includes(at);case"does not equal":return Xe!==at;case"is any of":return Ie.split(",").map(Ft=>Ft.trim().toLowerCase()).includes(Xe);default:return!0}})}),pe(_e),qe(0)},className:"filter-input-with-clear",style:{paddingRight:"28px"}}),Le[te.id]&&jsxRuntimeExports.jsx("span",{className:"filter-clear-icon-inside",onClick:()=>{const se={...Le};delete se[te.id],We(se),Ge(""),$e("");let de=[...le];Ze.trim()&&(de=de.filter(Ee=>Object.entries(Ee).some(([_e,we])=>He.has(_e)?String(we).toLowerCase().includes(Ze.toLowerCase()):!1))),Object.entries(se).forEach(([Ee,_e])=>{const{value:we,operator:ke}=_e;de=de.filter(Ie=>{const Ae=String(Ie[Ee]||"").toLowerCase(),Be=we.toLowerCase();switch(ke){case"contains":return Ae.includes(Be);case"equals":return Ae===Be;case"startsWith":return Ae.startsWith(Be);case"endsWith":return Ae.endsWith(Be);case"does not contain":return!Ae.includes(Be);case"does not equal":return Ae!==Be;case"is any of":return we.split(",").map(Xe=>Xe.trim().toLowerCase()).includes(Ae);default:return!0}})}),pe(de),qe(0)},title:"Clear",children:"×"})]},`filter-${te.id}`):null}),(c||x||d||u||m||f)&&jsxRuntimeExports.jsx("td",{})]})]}),jsxRuntimeExports.jsx("tbody",{children:ge.length===0?jsxRuntimeExports.jsx("tr",{className:"no-records-row",children:jsxRuntimeExports.jsx("td",{colSpan:(Tt?1:0)+(i?1:0)+Array.from(He).length+(c||x||d||u||m||f?1:0),className:"no-records-cell",children:Ze.trim()||Object.keys(Le).length>0?"No records found for the search criteria":"No Data found"})}):ge.map((K,te)=>jsxRuntimeExports.jsxs(React2.Fragment,{children:[jsxRuntimeExports.jsxs("tr",{className:te%2===0?"table-row-even":"table-row-odd",children:[Tt&&jsxRuntimeExports.jsx("td",{className:"expand-column",children:Array.from(He).some(oe=>Array.isArray(K[oe])&&K[oe].length>0&&K[oe].some(se=>typeof se=="object"&&se!==null))&&jsxRuntimeExports.jsx("button",{className:"expand-button",onClick:()=>Ne(te),children:Array.from(pt).some(oe=>oe.startsWith(`${te}`))?"▼":"▶"})}),i&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:Re.has(te),onChange:oe=>{const se=new Set(Re);oe?se.add(te):se.delete(te),ye(se)}})}),s&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:"selected",checked:(a==null?void 0:a(te))==="selected",onChange:()=>n==null?void 0:n({rowIndex:te,columnId:"selected",rowData:K})})})}),lt.filter(oe=>Ye.find(de=>de.id===oe)&&He.has(oe)).map(oe=>{const se=Ye.find(de=>de.id===oe);return se?jsxRuntimeExports.jsx("td",{style:{width:B[se.id]?`${B[se.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},className:`table-cell ${kt(se.id,K[se.id])?"ce-clickable-cell":""}`,onClick:()=>{kt(se.id,K[se.id])?Lt(K,se.id):Array.isArray(K[se.id])&&K[se.id].length>0&&Ne(te,se.id)},children:React2.isValidElement(K[se.id])?K[se.id]:(Array.isArray(o)?o.includes(se.id):o===se.id)?jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:se.id,checked:me(K)===se.id,onChange:()=>ue({rowIndex:te,columnId:se.id,rowData:K})})}):Array.isArray(K[se.id])?`${K[se.id].length}`:typeof K[se.id]=="object"&&K[se.id]!==null?Object.entries(K[se.id]).map(([de,Ee])=>`${de}: ${Ee}`).join(", "):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(K[se.id]??"")})},se.id):null}),(c||x||d||u||m||f)&&jsxRuntimeExports.jsx("td",{className:"table-cell",style:{textAlign:"center"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px",flexWrap:"wrap"},children:[c&&jsxRuntimeExports.jsx("img",{src:Edit,alt:"Edit",title:"Edit",width:20,height:20,style:{cursor:"pointer"},onClick:g}),x&&jsxRuntimeExports.jsx("img",{src:Reassign,alt:"Reassign",width:20,height:20,style:{cursor:"pointer"},onClick:C}),d&&jsxRuntimeExports.jsx("img",{src:Cancel,alt:"Cancel",width:20,height:20,style:{cursor:"pointer"},onClick:b}),u&&jsxRuntimeExports.jsx("img",{src:Approve,alt:"Approve",width:20,height:20,style:{cursor:"pointer"},onClick:S}),m&&jsxRuntimeExports.jsx("img",{src:Delete,alt:"Delete",width:20,height:20,style:{cursor:"pointer"},onClick:y}),f&&jsxRuntimeExports.jsx("img",{src:Add,alt:"Add",width:20,height:20,style:{cursor:"pointer"},onClick:_})]})})]}),Array.from(pt).map(oe=>{const[se,de]=oe.split("-");if(Number(se)===te){const Ee=de?{[de]:K[de]}:Object.keys(K).filter(_e=>Array.isArray(K[_e])||typeof K[_e]=="object").reduce((_e,we)=>({..._e,[we]:K[we]}),{});return jsxRuntimeExports.jsx("tr",{className:"expanded-row",children:jsxRuntimeExports.jsx("td",{colSpan:He.size+2,className:"expanded-cell",children:Object.entries(Ee).map(([_e,we],ke)=>jsxRuntimeExports.jsxs("div",{className:`expanded-section ${ke%2===0?"expanded-section-even":"expanded-section-odd"}`,style:{backgroundColor:ke%2===0?"#e8f5e9":"#e3f2fd",padding:"10px",marginBottom:"10px",borderRadius:"5px"},children:[jsxRuntimeExports.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:_e.charAt(0).toUpperCase()+_e.slice(1)}),tt(we)]},_e))})},`expanded-${oe}`)}return null})]},te))})]})}),P&&jsxRuntimeExports.jsxs("div",{className:"pagination-container",children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"40px"},children:[jsxRuntimeExports.jsx(EntriesInfo,{dataLength:fe.length,currentPage:Qe,rowsPerPage:it}),jsxRuntimeExports.jsx(RowsPerPageSelector,{rowsPerPage:it,setRowsPerPage:wt,setCurrentPage:qe})]}),jsxRuntimeExports.jsx(PaginationControls,{currentPage:Qe,totalPages:Math.ceil(fe.length/it),setCurrentPage:qe})]}),Ve&&jsxRuntimeExports.jsx("div",{className:"filter-modal",children:jsxRuntimeExports.jsxs("div",{className:"filter-modal-content",ref:yt,onKeyDown:ut,tabIndex:0,children:[jsxRuntimeExports.jsxs("div",{className:"filter-modal-header",children:[jsxRuntimeExports.jsx("h3",{children:"Filter Data"}),jsxRuntimeExports.jsx(CEButton,{className:"close-button-close",onClick:()=>Pe(!1),children:"×"})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-body",children:[jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Column:"}),jsxRuntimeExports.jsx("select",{value:Je,onChange:K=>$e(K.target.value),className:"filter-select","aria-label":"Filter column",title:"Select column to filter",children:Ye.map(K=>jsxRuntimeExports.jsx("option",{value:K.id,children:K.label},K.id))})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Operator:"}),jsxRuntimeExports.jsxs("select",{value:De,onChange:K=>Ke(K.target.value),className:"filter-select","aria-label":"Filter operator",title:"Select filter operator",children:[jsxRuntimeExports.jsx("option",{value:"contains",children:"contains"}),jsxRuntimeExports.jsx("option",{value:"equals",children:"equals"}),jsxRuntimeExports.jsx("option",{value:"startsWith",children:"starts with"}),jsxRuntimeExports.jsx("option",{value:"endsWith",children:"ends with"}),jsxRuntimeExports.jsx("option",{value:"does not contain",children:"does not contain"}),jsxRuntimeExports.jsx("option",{value:"does not equal",children:"does not equal"}),jsxRuntimeExports.jsx("option",{value:"is any of",children:"is any of"})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Value:"}),jsxRuntimeExports.jsx("input",{type:"text",value:Ue,onChange:K=>Ge(K.target.value),placeholder:"Enter filter value",title:"Filter value",className:"filter-input",autoFocus:!0,onKeyDown:K=>{K.key==="Enter"&&nt(),K.key==="Escape"&&Pe(!1)}})]}),Object.keys(Le).length>0&&jsxRuntimeExports.jsxs("div",{className:"active-filters-summary",children:[jsxRuntimeExports.jsx("div",{className:"active-filters-header",children:"Active Filters:"}),Object.entries(Le).map(([K,te])=>{const oe=Ye.find(se=>se.id===K);return jsxRuntimeExports.jsxs("div",{className:"active-filter-item",children:[jsxRuntimeExports.jsxs("span",{children:[(oe==null?void 0:oe.label)||K,": "]}),jsxRuntimeExports.jsx("span",{className:"filter-operator",children:te.operator}),jsxRuntimeExports.jsxs("span",{className:"filter-value",children:['"',te.value,'"']})]},K)})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-footer",children:[jsxRuntimeExports.jsx(CEButton,{onClick:()=>{We({}),pe(le),qe(0),Pe(!1)},className:"clear-filters-button",variant:"outlined",children:"Clear All"}),jsxRuntimeExports.jsx(CEButton,{onClick:nt,className:"apply-filter-button",variant:"primary",children:"Apply Filter"})]})]})})]}),Dt=()=>{const K=Ye.filter(de=>He.has(de.id)),te=ge.map(de=>Object.fromEntries(K.map(Ee=>[Ee.label||Ee.id,de[Ee.id]]))),oe=utils.json_to_sheet(te),se=utils.book_new();utils.book_append_sheet(se,oe,"Data"),writeFileSync(se,"data-grid-export.xlsx",{bookType:"xlsx"})},Nt=()=>{X?(ne(!0),Promise.resolve(X()).finally(()=>{We({}),ne(!1)})):(ne(!0),setTimeout(()=>{pe(t),Se(t),qe(0),ot(""),Ge(""),$e(""),We({}),F(null),ne(!1)},300))},Ot=Ye.filter(K=>K.shouldVisible!==!1).every(K=>He.has(K.id));return jsxRuntimeExports.jsxs("div",{className:`datatable-wrapper${N?" ce-grid-fullscreen":""}`,children:[jsxRuntimeExports.jsxs("div",{className:"grid-header",children:[e&&jsxRuntimeExports.jsx("span",{className:"header-title",children:e}),jsxRuntimeExports.jsxs("div",{className:"search-container",children:[l&&jsxRuntimeExports.jsxs("div",{className:"search-wrapper",children:[jsxRuntimeExports.jsx("img",{src:SearchRounded,alt:"Show Filter",title:"Show/Hide Filter",width:20,height:20,style:{cursor:"pointer",fill:"#808080"},onClick:()=>{const K=!he;je(K),K||(We({}),pe(le),qe(0),ot(""))}}),Ze&&jsxRuntimeExports.jsx("button",{className:"search-cancel-button",onClick:()=>{ot(""),xe()},children:"×"})]}),L&&jsxRuntimeExports.jsx("img",{src:ShowOrHideColumn,alt:"Columns",title:"Show/Hide Columns",width:20,height:20,style:{cursor:"pointer",fill:"#808080"},onClick:()=>xt(!0)}),Object.keys(Le).length>0&&jsxRuntimeExports.jsx("img",{src:FilterAltOffRounded,alt:"Clear Filters",title:"Clear All Filters",width:20,height:20,style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:()=>{We({}),pe(le),qe(0)}}),W&&jsxRuntimeExports.jsx("img",{src:ExportIcon,alt:"Export",title:"Export to XLS",width:20,height:20,className:"ce-export-icon",style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:Dt}),E&&jsxRuntimeExports.jsx("img",{src:FileOpenRounded,alt:"Export",title:"Export All to Excel",width:20,height:20,className:"ce-export-icon",style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:It}),J&&jsxRuntimeExports.jsx("img",{src:ReloadIcon,alt:"Reload",title:"Reload Data",width:20,height:20,className:"ce-reload-icon",style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:Nt}),ae&&jsxRuntimeExports.jsx("button",{className:"fullscreen-button",onClick:N?G:U,title:N?"Exit Full Screen":"Full Screen",children:N?"⤫":"⤢"})]})]}),dt&&jsxRuntimeExports.jsx("div",{className:"column-modal",children:jsxRuntimeExports.jsxs("div",{className:"column-modal-content",ref:gt,children:[jsxRuntimeExports.jsx("div",{className:"column-modal-header",children:jsxRuntimeExports.jsx("button",{className:"modal-close-button",onClick:()=>xt(!1),children:"×"})}),jsxRuntimeExports.jsx("h3",{className:"column-modal-title",children:"Column Visibility and Order"}),jsxRuntimeExports.jsx("p",{className:"column-modal-description",children:"Drag and drop columns to change their order. Check or uncheck to show or hide columns."}),jsxRuntimeExports.jsx("div",{className:"column-modal-actions",children:jsxRuntimeExports.jsx("div",{className:"select-all-action",children:jsxRuntimeExports.jsx(CECheckBox,{label:"Select All",checked:Ot,onChange:K=>{mt(K?new Set(Ye.filter(te=>te.shouldVisible!==!1).map(te=>te.id)):new Set)}})})}),jsxRuntimeExports.jsx("div",{className:"column-list-container",children:lt.filter(K=>Ye.find(te=>te.id===K&&te.shouldVisible!==!1)).map(K=>{const te=Ye.find(oe=>oe.id===K);return te?jsxRuntimeExports.jsxs("div",{className:`column-item ${ct===te.id?"dragging":""}`,draggable:!0,onDragStart:oe=>{Ct(te.id),oe.dataTransfer.effectAllowed="move",oe.dataTransfer.setData("text/plain",te.id)},onDragEnd:()=>Ct(null),onDragOver:oe=>{oe.preventDefault(),oe.dataTransfer.dropEffect="move"},onDragEnter:oe=>{oe.preventDefault(),oe.currentTarget.classList.add("drag-over")},onDragLeave:oe=>{oe.currentTarget.classList.remove("drag-over")},onDrop:oe=>{if(oe.preventDefault(),oe.currentTarget.classList.remove("drag-over"),ct&&ct!==te.id){const se=[...lt],de=se.indexOf(ct),Ee=se.indexOf(te.id);de!==-1&&Ee!==-1&&(se.splice(de,1),se.splice(Ee,0,ct),ft(se))}},children:[jsxRuntimeExports.jsx("div",{className:"column-drag-handle",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:jsxRuntimeExports.jsx("path",{d:"M4 4h2v2H4V4zm0 6h2v2H4v-2zm0-3h2v2H4V7zm8 3h-6v2h6v-2zm0-3h-6v2h6V7zm0-3h-6v2h6V4z"})})}),jsxRuntimeExports.jsx(CECheckBox,{label:te.label??te.id,checked:He.has(te.id),onChange:()=>be(te.id)})]},te.id):null})})]})}),Q?jsxRuntimeExports.jsx(CESkeletonTable,{columns:Ye.length||5,rows:it||10}):Mt()]})},DateInputPart=({value:e,onChange:t,max:r,min:i,length:s,placeholder:n})=>{const a=React2.useRef(null),o=c=>{const m=c.target.value.replace(/\D/g,"");if(m.length<=s){if(m.length===1){const u=parseInt(m);if(r===12&&u>1){t(`0${u}`);return}if(r===31&&u>3){t(`0${u}`);return}}if(m.length===2){const u=parseInt(m);u>=i&&u<=r&&t(m);return}t(m)}},l=()=>{var c;(c=a.current)==null||c.select()},f=()=>{e.length===1&&t(e.padStart(2,"0"))};return jsxRuntimeExports.jsx("input",{ref:a,type:"text",value:e,onChange:o,onFocus:l,onBlur:f,maxLength:s,className:"date-input-part",placeholder:n})},DateRangeIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%204.5H18V3.5C18%202.95%2017.55%202.5%2017%202.5C16.45%202.5%2016%202.95%2016%203.5V4.5H8V3.5C8%202.95%207.55%202.5%207%202.5C6.45%202.5%206%202.95%206%203.5V4.5H5C3.89%204.5%203.01%205.4%203.01%206.5L3%2020.5C3%2021.6%203.89%2022.5%205%2022.5H19C20.1%2022.5%2021%2021.6%2021%2020.5V6.5C21%205.4%2020.1%204.5%2019%204.5ZM19%2019.5C19%2020.05%2018.55%2020.5%2018%2020.5H6C5.45%2020.5%205%2020.05%205%2019.5V9.5H19V19.5ZM7%2011.5H9V13.5H7V11.5ZM11%2011.5H13V13.5H11V11.5ZM15%2011.5H17V13.5H15V11.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",WEEKDAYS=["Su","Mo","Tu","We","Th","Fr","Sa"],CEDatePicker=({onChange:e,label:t="Calendar"})=>{const[r,i]=React2.useState(!1),[s,n]=React2.useState(null),[a,o]=React2.useState(new Date),[l,f]=React2.useState(!1),[c,m]=React2.useState({start:2020,end:2031}),[u,x]=React2.useState("left"),[d,p]=React2.useState(0),E=React2.useRef(null),[g,_]=React2.useState(!1),[y,S]=React2.useState(""),[C,b]=React2.useState(""),[A,k]=React2.useState(""),[I,q]=React2.useState(!0),X=()=>{i(!1),!y&&!C&&!A&&_(!1)};useEscapeKey(X);const W=()=>{i(M=>{if(!M){const D=s||new Date;o(D),y||S(String(D.getMonth()+1).padStart(2,"0")),C||b(String(D.getDate()).padStart(2,"0")),A||k(String(D.getFullYear()))}return!M})};React2.useEffect(()=>{const M=D=>{E.current&&!E.current.contains(D.target)&&X()};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[y,C,A]);const J=M=>{const D=new Date(a.getFullYear(),a.getMonth(),M);n(D),o(D);const P=String(D.getMonth()+1).padStart(2,"0"),H=String(D.getDate()).padStart(2,"0"),B=String(D.getFullYear());S(P),b(H),k(B),q(!0),e(`${P}/${H}/${B}`),i(!1)},ae=M=>{x(M>0?"left":"right"),o(D=>{const P=new Date(D.getFullYear(),D.getMonth()+M,1);return s&&S(String(P.getMonth()+1).padStart(2,"0")),p(H=>H+1),P})},Y=()=>{f(M=>!M)},L=M=>{m(D=>({start:D.start+M*10,end:D.end+M*10}))},j=M=>{const D=new Date(M,a.getMonth(),1);o(D),k(String(M)),f(!1)},T=()=>{const M=new Date(a.getFullYear(),a.getMonth(),1),D=new Date(a.getFullYear(),a.getMonth()+1,0),P=M.getDay(),H=D.getDate(),B=new Date,z=ce=>!s&&B.getDate()===ce&&B.getMonth()===a.getMonth()&&B.getFullYear()===a.getFullYear(),re=[];for(let ce=0;ce<P;ce++)re.push(jsxRuntimeExports.jsx("div",{className:"dp-day empty"},`empty-${ce}`));for(let ce=1;ce<=H;ce++){const fe=(s==null?void 0:s.getDate())===ce&&(s==null?void 0:s.getMonth())===a.getMonth()&&(s==null?void 0:s.getFullYear())===a.getFullYear();re.push(jsxRuntimeExports.jsx("div",{className:`dp-day ${fe?"selected":""} ${z(ce)?"today":""}`,onClick:()=>J(ce),children:ce},ce))}return re},R=(M,D,P)=>{if(!M||!D||!P){q(!1),o(new Date),n(null);return}const H=`${P}-${M}-${D}`,B=new Date(H);if(B.getFullYear()===parseInt(P)&&B.getMonth()+1===parseInt(M)&&B.getDate()===parseInt(D))n(B),o(B),q(!0),e(`${M}/${D}/${P}`);else{const z=new Date;q(!1),n(null),o(z),S(M),b(D),k(P)}};return jsxRuntimeExports.jsxs("div",{className:"dp-wrapper",ref:E,children:[jsxRuntimeExports.jsxs("div",{className:`dp-input-container ${g||r?"focused":""} ${I?"":"invalid"}`,children:[jsxRuntimeExports.jsx("div",{className:`dp-label ${g||r||s||y||C||A?"floating":""} ${I?"":"invalid"}`,children:t}),jsxRuntimeExports.jsxs("div",{className:"dp-input-wrapper",onClick:()=>{_(!0)},children:[jsxRuntimeExports.jsx(DateInputPart,{value:y,onChange:M=>{S(M),R(M,C,A)},max:12,min:1,length:2,placeholder:"MM",onClick:W}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx(DateInputPart,{value:C,onChange:M=>{b(M),R(y,M,A)},placeholder:"DD",max:31,min:1,length:2,onClick:W}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx("input",{type:"text",value:A,onChange:M=>{const D=M.target.value.replace(/\D/g,"");D.length<=4&&(k(D),D.length===4&&R(y,C,D))},onFocus:M=>M.target.select(),onBlur:()=>{A.length===4&&R(y,C,A)},className:"date-input-part",maxLength:4,placeholder:"YYYY"}),jsxRuntimeExports.jsx("span",{className:"dp-icon",onClick:W,children:jsxRuntimeExports.jsx("img",{src:DateRangeIcon,alt:"Calendar Icon"})})]})]}),r&&jsxRuntimeExports.jsxs("div",{className:"dp-calendar",children:[jsxRuntimeExports.jsxs("div",{className:"dp-header",children:[jsxRuntimeExports.jsxs("div",{className:"dp-title",onClick:Y,children:[l?`${c.start} - ${c.end}`:`${a.toLocaleString("default",{month:"long"})} ${a.getFullYear()}`,jsxRuntimeExports.jsx("button",{className:"dp-toggle-icon",children:"▾"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-controls",children:[jsxRuntimeExports.jsx("button",{onClick:()=>l?L(-1):ae(-1),children:"‹"}),jsxRuntimeExports.jsx("button",{onClick:()=>l?L(1):ae(1),children:"›"})]})]}),!l&&jsxRuntimeExports.jsx("div",{className:"dp-weekdays",children:WEEKDAYS.map(M=>jsxRuntimeExports.jsx("div",{className:"dp-weekday",children:M},M))}),l?jsxRuntimeExports.jsx("div",{className:"dp-years-grid",children:Array.from({length:c.end-c.start+1},(M,D)=>{const P=c.start+D;return jsxRuntimeExports.jsx("div",{className:"dp-year-item",onClick:()=>j(P),children:P},P)})}):jsxRuntimeExports.jsx("div",{className:`dp-days dp-slide-${u}`,children:T()},d)]})]})},CEDateRangePicker=({label:e="Submitted Date",onChange:t,size:r="medium",style:i,inputGroupStyle:s})=>{const[n,a]=React2.useState(""),[o,l]=React2.useState(""),[f,c]=React2.useState(!1),[m,u]=React2.useState(""),x=()=>c(!0),d=y=>{!y.currentTarget.value&&!n&&!o&&c(!1)},p=(y,S)=>{y&&S&&new Date(S)<new Date(y)?u("End date must be after or equal to start date"):(u(""),t==null||t({startDate:y,endDate:S}))},E=y=>{const S=y.target.value;a(S),p(S,o)},g=y=>{const S=y.target.value;l(S),p(n,S)},_=getSizeStyle$1(r);return jsxRuntimeExports.jsxs("div",{className:"date-range-picker",style:i,children:[jsxRuntimeExports.jsx("label",{className:"floating-label float",children:e}),jsxRuntimeExports.jsxs("div",{className:`input-group ${m?"input-error":""}`,style:{padding:_.padding,fontSize:_.fontSize,...s},children:[jsxRuntimeExports.jsx("input",{type:"date",value:n,onChange:E,onFocus:x,onBlur:d,style:{fontSize:_.fontSize}}),jsxRuntimeExports.jsx("span",{className:"separator",children:" - "}),jsxRuntimeExports.jsx("input",{type:"date",value:o,onChange:g,onFocus:x,onBlur:d,style:{fontSize:_.fontSize}})]}),m&&jsxRuntimeExports.jsx("div",{className:"error-text",children:m})]})},FieldsInput=({label:e,name:t,placeholder:r="",value:i="",onChange:s,size:n="medium"})=>{const[a,o]=React2.useState(!1),[l,f]=React2.useState(!1),c=getSizeStyle$1(n);React2.useEffect(()=>{i&&i.trim().length>0&&f(!0)},[i]);const m=()=>{o(!0),f(!0)},u=d=>{o(!1),d.target.value.trim()||f(!1)},x=a||!!i;return jsxRuntimeExports.jsxs("div",{className:`floating-input-wrapper${l?" focused":""}`,style:c,children:[jsxRuntimeExports.jsx("label",{htmlFor:t,className:"floating-label",children:e}),jsxRuntimeExports.jsx("input",{id:t,name:t,className:"floating-input",placeholder:x?r:"",value:i,onChange:s,onFocus:m,onBlur:u})]})},CEFooter=()=>jsxRuntimeExports.jsx("footer",{style:{zIndex:1100,backgroundColor:"var(--grey-color)",width:"100%",height:"36px",position:"fixed",bottom:"0",left:"0",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",marginTop:"auto"},children:jsxRuntimeExports.jsx("p",{style:{color:"var(--white-color)",fontSize:"0.8rem",margin:"0"},children:"© All rights reserved by Clean Earth."})}),CEGridLayout=({children:e,columns:t=12,gap:r="1rem",alignItems:i="stretch",justifyItems:s="stretch",gridTemplateColumns:n})=>jsxRuntimeExports.jsx("div",{className:"grid-container",style:{display:"grid",gridTemplateColumns:n||`repeat(${t}, 1fr)`,gap:r,alignItems:i,justifyItems:s,backgroundColor:"transparent"},children:e}),CELogo=({src:e,alt:t="Logo",style:r})=>jsxRuntimeExports.jsx("img",{src:e,alt:t,style:{height:25,...r}}),CESearchBar=({onFocus:e,onBlur:t,quickActions:r=[],recentSearches:i=[]})=>{const[s,n]=React2.useState(!1),[a,o]=React2.useState(""),[l,f]=React2.useState(r),[c,m]=React2.useState(i),u=(d,p)=>{d==="quickActions"?f(E=>E.filter((g,_)=>_!==p)):m(E=>E.filter((g,_)=>_!==p))},x=()=>{a.trim()!==""&&(m(d=>[a,...d]),o(""))};return jsxRuntimeExports.jsxs("div",{className:"ceui-search-bar",children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search...",className:"ceui-search-input",value:a,onChange:d=>o(d.target.value),onFocus:()=>{n(!0),e&&e()},onBlur:()=>{setTimeout(()=>n(!1),200),t&&t()},onKeyDown:d=>{d.key==="Enter"&&x()}}),s&&jsxRuntimeExports.jsxs("div",{className:"ceui-search-suggestions",children:[l.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Quick actions"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:l.map((d,p)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[d,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>u("quickActions",p),children:"✕"})]},p))})]}),c.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Recent search"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:c.map((d,p)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[d,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>u("recentSearches",p),children:"✕"})]},p))})]})]})]})},CESearchButton=({showSuggestions:e=!1,quickActions:t=[],recentSearches:r=[]})=>{const[i,s]=React2.useState(!1),[n,a]=React2.useState(!1),o=React2.useRef(null),l=c=>{o.current&&!o.current.contains(c.target)&&(s(!1),a(!1))},f=()=>jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M15.5001 14.5H14.7101L14.4301 14.23C15.6301 12.83 16.2501 10.92 15.9101 8.89002C15.4401 6.11002 13.1201 3.89002 10.3201 3.55002C6.09014 3.03002 2.53014 6.59001 3.05014 10.82C3.39014 13.62 5.61014 15.94 8.39014 16.41C10.4201 16.75 12.3301 16.13 13.7301 14.93L14.0001 15.21V16L18.2501 20.25C18.6601 20.66 19.3301 20.66 19.7401 20.25C20.1501 19.84 20.1501 19.17 19.7401 18.76L15.5001 14.5ZM9.50014 14.5C7.01014 14.5 5.00014 12.49 5.00014 10C5.00014 7.51002 7.01014 5.50002 9.50014 5.50002C11.9901 5.50002 14.0001 7.51002 14.0001 10C14.0001 12.49 11.9901 14.5 9.50014 14.5Z",fill:"black",fillOpacity:"0.54"})});return React2.useEffect(()=>(i?document.addEventListener("mousedown",l):document.removeEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}),[i]),console.log("isSearchOpen:",i),console.log("showDropdown:",n),console.log("showSuggestions:",e),jsxRuntimeExports.jsxs("div",{ref:o,className:`ceui-animated-search-wrapper ${i?"expanded":"collapsed"}`,children:[jsxRuntimeExports.jsx("button",{className:"ceui-search-button","aria-label":"Open search",onClick:()=>s(!0),children:jsxRuntimeExports.jsx(f,{})}),i&&jsxRuntimeExports.jsx(CESearchBar,{showSuggestions:i&&(e||n),onFocus:()=>a(!0),onBlur:()=>{setTimeout(()=>a(!1),200)},quickActions:t,recentSearches:r})]})},CEHelpButton=()=>jsxRuntimeExports.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:0,margin:0,outline:"none"},"aria-label":"Help",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12 2.5C6.48 2.5 2 6.98 2 12.5C2 18.02 6.48 22.5 12 22.5C17.52 22.5 22 18.02 22 12.5C22 6.98 17.52 2.5 12 2.5ZM13 19.5H11V17.5H13V19.5ZM15.07 11.75L14.17 12.67C13.67 13.18 13.31 13.64 13.13 14.36C13.05 14.68 13 15.04 13 15.5H11V15C11 14.54 11.08 14.1 11.22 13.69C11.42 13.11 11.75 12.59 12.17 12.17L13.41 10.91C13.87 10.47 14.09 9.81 13.96 9.11C13.83 8.39 13.27 7.78 12.57 7.58C11.46 7.27 10.43 7.9 10.1 8.85C9.98 9.22 9.67 9.5 9.28 9.5H8.98C8.4 9.5 8 8.94 8.16 8.38C8.59 6.91 9.84 5.79 11.39 5.55C12.91 5.31 14.36 6.1 15.26 7.35C16.44 8.98 16.09 10.73 15.07 11.75Z",fill:"black",fillOpacity:"0.54"})})}),CENotificationButton=()=>jsxRuntimeExports.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:0,margin:0,outline:"none"},"aria-label":"Notifications",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.4775 22.2632C12.0837 22.2632 12.6651 21.9999 13.0938 21.531C13.5224 21.0622 13.7633 20.4264 13.7633 19.7634H9.19183C9.19183 20.4264 9.43264 21.0622 9.8613 21.531C10.2899 21.9999 10.8713 22.2632 11.4775 22.2632ZM12.6147 3.63801C12.6306 3.46421 12.6131 3.28869 12.5632 3.12276C12.5133 2.95683 12.4322 2.80417 12.3251 2.67464C12.2179 2.54511 12.0871 2.44157 11.9412 2.37071C11.7952 2.29985 11.6372 2.26324 11.4775 2.26324C11.3178 2.26324 11.1599 2.29985 11.0139 2.37071C10.8679 2.44157 10.7372 2.54511 10.63 2.67464C10.5229 2.80417 10.4417 2.95683 10.3919 3.12276C10.342 3.28869 10.3244 3.46421 10.3404 3.63801C9.04845 3.92494 7.88695 4.6916 7.05275 5.80806C6.21856 6.92452 5.76299 8.3221 5.76325 9.76393C5.76325 11.1364 5.19182 17.2635 3.47754 18.5134H19.4775C17.7633 17.2635 17.1918 11.1364 17.1918 9.76393C17.1918 6.73909 15.2261 4.21423 12.6147 3.63801Z",fill:"#757575"})})}),CEAvatarMenu=()=>{const[e,t]=React2.useState(!1),r=React2.useRef(null),i=()=>t(!e),s=n=>{r.current&&!r.current.contains(n.target)&&t(!1)};return React2.useEffect(()=>(e?document.addEventListener("mousedown",s):document.removeEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}),[e]),jsxRuntimeExports.jsxs("div",{style:{position:"relative",zIndex:1e3},children:[jsxRuntimeExports.jsx("img",{src:"src/assets/profile_pic.png",alt:"Profile",style:{width:40,height:40,borderRadius:"50%",cursor:"pointer"},onClick:i}),e&&jsxRuntimeExports.jsxs("div",{ref:r,style:{position:"absolute",right:0,top:"100%",background:"white",border:"1px solid #ccc",boxShadow:"0 2px 10px rgba(0,0,0,0.1)",zIndex:9999,minWidth:120},children:[jsxRuntimeExports.jsx("div",{style:menuItemStyle,children:"My Account"}),jsxRuntimeExports.jsx("div",{style:menuItemStyle,children:"Settings"}),jsxRuntimeExports.jsx("div",{style:menuItemStyle,children:"Logout"})]})]})},menuItemStyle={padding:"10px 15px",cursor:"pointer",fontSize:14,borderBottom:"1px solid #eee"},CEUserInfo=({name:e,role:t})=>jsxRuntimeExports.jsxs("div",{className:"ceui-user-info",children:[jsxRuntimeExports.jsx("span",{className:"ceui-user-name",children:e}),jsxRuntimeExports.jsx("span",{className:"ceui-user-role",children:t})]}),CEHeader=({headerColor:e="white",logoSrc:t,logoHeight:r,logoWidth:i,showSearchButton:s=!1,quickActions:n=[],recentSearches:a=[],showHelpButton:o=!1,showNotificationButton:l=!1,showAvatarMenu:f=!1,showUserInfo:c=!1,showHamburgerButton:m=!1,showDrawer:u=!1,userInfoProps:x,onMenuClick:d,drawerJsonUrl:p="",isDrawerOpen:E=!1,onDrawerClose:g})=>{const _=()=>jsxRuntimeExports.jsxs("svg",{width:"120",height:"35",viewBox:"0 0 245 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsxs("g",{clipPath:"url(#clip0_1572_8855)",children:[jsxRuntimeExports.jsx("path",{d:"M0 1.49012e-05H245V60H0V1.49012e-05Z",fill:"#F4F5F7"}),jsxRuntimeExports.jsx("path",{d:"M53.3741 31.7566C53.3741 39.7826 47.1908 46.1485 39.2275 46.1485C31.2641 46.1485 25.0809 39.7826 25.0809 31.7566C25.0809 23.7306 31.2641 17.3646 39.2275 17.3646C47.1908 17.3646 53.3741 23.7306 53.3741 31.7566Z",fill:"#007ACC"}),jsxRuntimeExports.jsx("path",{d:"M91.5 25H76V35H91.5V30H81.5V29H91.5V25Z",fill:"#000"}),jsxRuntimeExports.jsx("path",{d:"M65 35H69V25H65V35Z",fill:"#000"})]}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip0_1572_8855",children:jsxRuntimeExports.jsx("rect",{width:"245",height:"60",fill:"white"})})})]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("header",{className:"ceui-header",style:{backgroundColor:e},children:[jsxRuntimeExports.jsx("div",{className:"ceui-header-left",children:t?jsxRuntimeExports.jsx(CELogo,{src:t,alt:"Core Logo",style:{height:r||35,width:i||"auto",maxWidth:120}}):jsxRuntimeExports.jsx(_,{})}),jsxRuntimeExports.jsxs("div",{className:"ceui-header-right",children:[s&&jsxRuntimeExports.jsx(CESearchButton,{showSuggestions:!0,quickActions:n,recentSearches:a,value:"",onChange:()=>{},onClear:()=>{}}),o&&jsxRuntimeExports.jsx(CEHelpButton,{}),l&&jsxRuntimeExports.jsx(CENotificationButton,{}),f&&jsxRuntimeExports.jsx(CEAvatarMenu,{}),c&&x&&jsxRuntimeExports.jsx(CEUserInfo,{name:x.name,role:x.role})]})]}),u&&m&&jsxRuntimeExports.jsx(CEDrawer,{jsonUrl:p,isOpen:E,onClose:g||(()=>{})})]})},CEGridMenuButton=()=>jsxRuntimeExports.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:0,margin:0,outline:"none"},children:jsxRuntimeExports.jsx("img",{src:"src/assets/Grid_4x4Rounded.svg",alt:""})}),CEHamburgerButton=({onClick:e,style:t})=>jsxRuntimeExports.jsx("button",{onClick:e,style:{background:"none",border:"none",cursor:"pointer",padding:0,margin:0,outline:"none",...t},children:jsxRuntimeExports.jsx("img",{src:"src/assets/MenuRounded.svg",alt:"Menu"})}),CEInputBox=({value:e,onChange:t,placeholder:r="",type:i="text",maxLength:s,minLength:n,required:a=!1,customValidator:o,errorMessage:l="Invalid input",showError:f=!0,label:c,disabled:m=!1,style:u={},size:x="medium",onFocus:d,onBlur:p})=>{const[E,g]=React2.useState(!1),_=k=>{g(!0),d==null||d(k)},y=k=>{g(!1),p==null||p(k)},S=k=>{const I=k.target.value;i==="number"&&!/^\d*$/.test(I)||i==="alphanumeric"&&!/^[a-zA-Z0-9]*$/.test(I)||t(I)},C=getSizeStyle$1(x||"medium"),b=f&&a&&!e,A={fontSize:C.fontSize,padding:C.padding,...u};return jsxRuntimeExports.jsxs("div",{className:`validated-input-wrapper ${E?"focused":""} ${b?"error":""}`,children:[c&&jsxRuntimeExports.jsx("label",{className:`validated-input-label ${e||E?"shrink":""}`,children:c}),i==="textarea"?jsxRuntimeExports.jsx("textarea",{value:e,onChange:S,onFocus:_,onBlur:y,placeholder:r||" ",className:`validated-input-field ${b?"input-error":""}`,disabled:m,style:A}):jsxRuntimeExports.jsx("input",{type:i,value:e,onChange:S,onFocus:_,onBlur:y,placeholder:r||" ",className:`validated-input-field ${b?"input-error":""}`,disabled:m,style:A}),f&&!e&&jsxRuntimeExports.jsx("div",{className:"validated-input-error",children:l})]})},InputDropDown=({options:e,selected:t,onChange:r,multiple:i=!1,placeholder:s="Select...",size:n="medium",style:a={},allowClear:o=!0})=>{const[l,f]=React2.useState(!1),[c,m]=React2.useState(!1),u=React2.useRef(null),d={...getSizeStyle$1(n),...a},p=y=>{if(i){const S=t.includes(y)?t.filter(C=>C!==y):[...t,y];r(S)}else r([y]),f(!1)},E=()=>r([]),g=e.filter(y=>t.includes(y.value)).map(y=>y.label);React2.useEffect(()=>{const y=S=>{var C;(C=u.current)!=null&&C.contains(S.target)||f(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);const _=y=>{const S=t.filter(C=>C!==y);r(S)};return jsxRuntimeExports.jsx("div",{className:`dropdown-container ${l||t.length>0?"float":""}`,ref:u,style:d,children:jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${l?"open":""}`,onClick:()=>f(y=>!y),onFocus:()=>m(!0),onBlur:()=>m(!1),tabIndex:0,children:[jsxRuntimeExports.jsx("label",{className:"floating-placeholder",children:s}),jsxRuntimeExports.jsx("div",{className:"selected-display",children:t.length===0?"":i?g.map((y,S)=>jsxRuntimeExports.jsxs("span",{className:"chip",children:[y,jsxRuntimeExports.jsx("span",{className:"close-icon",onClick:C=>{var b;C.stopPropagation(),_(((b=e.find(A=>A.label===y))==null?void 0:b.value)||"")},children:"×"})]},S)):jsxRuntimeExports.jsx("span",{children:g[0]})}),o&&t.length>0&&jsxRuntimeExports.jsx("button",{className:"clear-button",onClick:y=>{y.stopPropagation(),E()},children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`dropdown-icon-img ${l?"rotate-icon":""}`,children:jsxRuntimeExports.jsx("path",{d:"M8.12021 9.79006L12.0002 13.6701L15.8802 9.79006C16.2702 9.40006 16.9002 9.40006 17.2902 9.79006C17.6802 10.1801 17.6802 10.8101 17.2902 11.2001L12.7002 15.7901C12.3102 16.1801 11.6802 16.1801 11.2902 15.7901L6.70021 11.2001C6.31021 10.8101 6.31021 10.1801 6.70021 9.79006C7.09021 9.41006 7.73021 9.40006 8.12021 9.79006Z",fill:"black",fillOpacity:"0.54"})})}),l&&jsxRuntimeExports.jsx("ul",{className:"dropdown-options",children:e.map(y=>jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${t.includes(y.value)?"selected":""}`,onClick:S=>{S.stopPropagation(),p(y.value)},children:[i&&jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:t.includes(y.value)}),y.label]},y.value))})]})})},CELinearProgressBar=({duration:e,color:t="#4caf50",backgroundColor:r="#e0e0e0",height:i="10px",isActive:s=!1})=>{const n=React2.useRef(null);return React2.useEffect(()=>{const a=n.current;if(!(!a||!s))return a.style.width="0%",a.style.transition="none",a.offsetWidth,requestAnimationFrame(()=>{a&&(a.style.transition=`width ${e}ms linear`,a.style.width="100%")}),()=>{a&&(a.style.width="0%",a.style.transition="none")}},[e,s]),jsxRuntimeExports.jsx("div",{className:"snackbar__progress-container",style:{height:i},children:jsxRuntimeExports.jsx("div",{ref:n,className:"snackbar__progress-bar"})})},CEMenuBar=({menuData:e})=>{const[t,r]=React2.useState({}),i=(l,f)=>{r(c=>({...c,[l]:f}))};useEscapeKey(()=>{r({})});const n=l=>l.children&&l.children.length>0,a=l=>l.some(f=>n(f)),o=(l,f="")=>!l||l.length===0?null:jsxRuntimeExports.jsx("ul",{className:f?"ce-submenu":"ce-dropdown",children:l.map(c=>{const m=f?`${f}-${c.name}`:c.name,u=n(c);return jsxRuntimeExports.jsxs("li",{className:`ce-dropdown-item ${u?"has-submenu":""}`,onMouseEnter:()=>u&&i(m,!0),onMouseLeave:()=>u&&i(m,!1),onClick:()=>console.log(`Clicked: ${c.name}`),children:[c.name,u&&jsxRuntimeExports.jsx("span",{className:"ce-icon right",children:"▶"}),u&&t[m]&&o(c.children,m)]},m)})});return jsxRuntimeExports.jsx("div",{className:"ce-menu-bar",children:jsxRuntimeExports.jsx("div",{className:"ce-menu-container",children:e.map(l=>{const f=a(l.items);return jsxRuntimeExports.jsxs("div",{className:"ce-menu-item",onMouseEnter:()=>f&&i(l.title,!0),onMouseLeave:()=>f&&i(l.title,!1),children:[jsxRuntimeExports.jsxs("button",{className:"ce-menu-button",children:[l.title,f&&jsxRuntimeExports.jsx("span",{className:"ce-icon",children:"▼"})]}),f&&t[l.title]&&o(l.items,l.title)]},l.title)})})})},CEPagination=({currentPage:e,totalPages:t,onPageChange:r})=>{const i=()=>{const l=[];if(t<=8)for(let f=0;f<t;f++)l.push(f);else if(e<7){for(let f=0;f<8;f++)l.push(f);l.push("..."),l.push(t-1)}else if(e>=t-8+1){l.push(0),l.push("...");for(let f=t-8;f<t;f++)l.push(f)}else{l.push(0),l.push("...");for(let f=e-3;f<=e+3;f++)l.push(f);l.push("..."),l.push(t-1)}return l},s=o=>{typeof o=="number"&&r(o)},n=()=>{e>0&&r(e-1)},a=()=>{e<t-1&&r(e+1)};return jsxRuntimeExports.jsxs("div",{className:"pagination",children:[jsxRuntimeExports.jsx("button",{onClick:n,disabled:e===0,className:"pagination-button",children:"Previous"}),i().map((o,l)=>typeof o=="number"?jsxRuntimeExports.jsx("button",{onClick:()=>s(o),className:`pagination-button page-number ${e===o?"active":""}`,children:o+1},l):jsxRuntimeExports.jsx("span",{className:"pagination-ellipsis",children:o},l)),jsxRuntimeExports.jsx("button",{onClick:a,disabled:e===t-1,className:"pagination-button",children:"Next"})]})},CERadioButtonGroup=({options:e,name:t,defaultValue:r,onChange:i,direction:s="horizontal"})=>{const[n,a]=React2.useState(r||""),o=l=>{a(l),i(l)};return jsxRuntimeExports.jsx("div",{className:`radio-button-group ${s}`,role:"radiogroup","aria-labelledby":t,children:e.map(l=>jsxRuntimeExports.jsx("div",{className:"radio-button",children:jsxRuntimeExports.jsx(CERadioButton,{label:l.label,value:l.value,checked:n===l.value,onChange:o})},l.value))})},saveSelection=()=>{const e=window.getSelection();return e!=null&&e.rangeCount?e.getRangeAt(0):null},restoreSelection=e=>{if(e){const t=window.getSelection();t==null||t.removeAllRanges(),t==null||t.addRange(e)}},CERichTextEditor=({initialValue:e="",onChange:t,width:r="100%",height:i="auto",minHeight:s="200px",maxHeight:n="none",className:a="",style:o={},editorStyle:l={}})=>{const f=React2.useRef(null),[c,m]=React2.useState("3"),[u,x]=React2.useState("Arial"),[d,p]=React2.useState({bold:!1,italic:!1,underline:!1,strikeThrough:!1,subscript:!1,superscript:!1,justifyLeft:!0,justifyCenter:!1,justifyRight:!1,justifyFull:!1});React2.useEffect(()=>{f.current&&e&&(f.current.innerHTML=e)},[e]);const E=React2.useCallback(b=>{try{return document.queryCommandState(b)}catch{return!1}},[]),g=React2.useCallback(()=>{p({bold:E("bold"),italic:E("italic"),underline:E("underline"),strikeThrough:E("strikethrough"),subscript:E("subscript"),superscript:E("superscript"),justifyLeft:E("justifyLeft"),justifyCenter:E("justifyCenter"),justifyRight:E("justifyRight"),justifyFull:E("justifyFull")})},[E]),_=React2.useCallback((b,A="")=>{var q,X;const k=saveSelection(),I=document.getSelection();if(b==="createLink"){const W=prompt("Enter URL:");if(W){restoreSelection(k),document.execCommand("createLink",!1,W);const J=(q=I==null?void 0:I.anchorNode)==null?void 0:q.parentElement;J instanceof HTMLAnchorElement&&(J.target="_blank",J.rel="noopener noreferrer")}}else if(b==="insertImage"){const W=prompt("Enter image URL:");if(W){restoreSelection(k);const J=`<img src="${W}" alt="image" style="max-width: 100%; height: auto;"/>`;document.execCommand("insertHTML",!1,J)}}else b==="fontSize"||b==="fontName"?(restoreSelection(k),document.execCommand(b,!0,A),b==="fontSize"?m(A):x(A)):(restoreSelection(k),document.execCommand(b,!1,A));f.current&&(t==null||t(f.current.innerHTML)),(X=f.current)==null||X.focus(),g()},[t,g]),y=b=>{if(b.key==="Tab"&&(b.preventDefault(),document.execCommand("insertHTML",!1,"&nbsp;&nbsp;&nbsp;&nbsp;")),b.ctrlKey||b.metaKey)switch(b.key.toLowerCase()){case"z":b.preventDefault(),b.shiftKey?_("redo"):_("undo");break;case"y":b.preventDefault(),_("redo");break}},S=[{value:"1",label:"2"},{value:"2",label:"4"},{value:"3",label:"6"},{value:"4",label:"8"},{value:"5",label:"10"},{value:"6",label:"12"},{value:"7",label:"14"}],C=["Arial","Times New Roman","Courier New","Georgia","Verdana","Helvetica","Serif Fonts","Algerian"];return jsxRuntimeExports.jsxs("div",{className:`rich-text-editor ${a}`,style:{width:r,height:i,...o},children:[jsxRuntimeExports.jsxs("div",{className:"toolbar",children:[jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("bold"),className:`toolbar-button ${d.bold?"active":""}`,title:"Bold",children:jsxRuntimeExports.jsx("strong",{children:"B"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("italic"),className:`toolbar-button ${d.italic?"active":""}`,title:"Italic",children:jsxRuntimeExports.jsx("em",{children:"I"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("underline"),className:`toolbar-button ${d.underline?"active":""}`,title:"Underline",children:jsxRuntimeExports.jsx("u",{children:"U"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("strikeThrough"),className:`toolbar-button ${d.strikeThrough?"active":""}`,title:"Strike Through",children:jsxRuntimeExports.jsx("s",{children:"S"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("subscript"),className:`toolbar-button ${d.subscript?"active":""}`,title:"Subscript",children:"X₂"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("superscript"),className:`toolbar-button ${d.superscript?"active":""}`,title:"Superscript",children:"X²"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("justifyLeft"),className:`toolbar-button ${d.justifyLeft?"active":""}`,title:"Align Left",children:"⇤"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("justifyCenter"),className:`toolbar-button ${d.justifyCenter?"active":""}`,title:"Center",children:"⇔"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("justifyRight"),className:`toolbar-button ${d.justifyRight?"active":""}`,title:"Align Right",children:"⇥"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>_("justifyFull"),className:`toolbar-button ${d.justifyFull?"active":""}`,title:"Justify",children:"≡"})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>_("insertUnorderedList"),className:"toolbar-button",title:"Bullet List",children:"●"}),jsxRuntimeExports.jsx("button",{onClick:()=>_("insertOrderedList"),className:"toolbar-button",title:"Numbered List",children:"1. 2. 3."})]}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:c,onChange:b=>_("fontSize",b.target.value),className:"toolbar-select",title:"Font Size",children:S.map(b=>jsxRuntimeExports.jsx("option",{value:b.value,children:b.label},b.value))})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:u,onChange:b=>_("fontName",b.target.value),className:"toolbar-select",title:"Font Family",children:C.map(b=>jsxRuntimeExports.jsx("option",{value:b,children:b},b))})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>_("createLink"),className:"toolbar-button",title:"Insert Link",children:"🔗"}),jsxRuntimeExports.jsx("button",{onClick:()=>_("insertImage"),className:"toolbar-button",title:"Insert Image",children:"📷"})]}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>_("undo"),className:"toolbar-button",title:"Undo (Ctrl+Z)",children:"↩"}),jsxRuntimeExports.jsx("button",{onClick:()=>_("redo"),className:"toolbar-button",title:"Redo (Ctrl+Y)",children:"↪"})]})]}),jsxRuntimeExports.jsx("div",{ref:f,className:"editor-content",contentEditable:!0,style:{minHeight:s,maxHeight:n,height:i==="auto"?"auto":"100%",...l},onKeyDown:y,onKeyUp:g,onMouseUp:g,onInput:()=>{f.current&&(t==null||t(f.current.innerHTML)),g()}})]})},CETabView=({tabs:e,renderContent:t})=>{const[r,i]=React2.useState(e[0]);return jsxRuntimeExports.jsxs("div",{className:"tabview-container",children:[jsxRuntimeExports.jsx("div",{className:"tabview-sidebar",children:e.map(s=>jsxRuntimeExports.jsx("div",{className:`tabview-tab ${r===s?"tabview-tab-active":""}`,onClick:()=>i(s),children:s},s))}),jsxRuntimeExports.jsx("div",{className:"tabview-content",children:t(r)})]})},CETemplate=({children:e,headerProps:t,showHeader:r=!0,showFooter:i=!0,containerClassName:s="",containerStyle:n={}})=>jsxRuntimeExports.jsxs("div",{className:`ce-wrapper ${s}`,style:n,children:[r&&jsxRuntimeExports.jsx(CEHeader,{...t}),jsxRuntimeExports.jsx("main",{className:"main-content",children:e}),i&&jsxRuntimeExports.jsx(CEFooter,{})]}),CETimePicker=({label:e="Select Time",onChange:t,initialTime:r="",className:i=""})=>{const[s,n]=React2.useState(!1),[a,o]=React2.useState(r),[l,f]=React2.useState("12"),[c,m]=React2.useState("00"),[u,x]=React2.useState("AM"),[d,p]=React2.useState(!1),[E,g]=React2.useState(""),[_,y]=React2.useState(""),S=React2.useRef(null),C=Array.from({length:12},(Y,L)=>String(L+1).padStart(2,"0")),b=Array.from({length:60},(Y,L)=>String(L).padStart(2,"0")),A=(Y,L)=>{if(!Y)return"";const j=parseInt(Y);return L==="hours"?j>12?"12":j===0?"01":Y.padStart(2,"0"):j>59?"59":Y.padStart(2,"0")},k=Y=>{const L=Y.target.value,j=Y.target.selectionStart||0;let T=l,R=c,M=u,D=a;if(j<=2){const P=L.substring(0,2).replace(/[^0-9]/g,"");if(P){if(P.length===1){const H=parseInt(P);H>=2&&H<=9?(T=P.padStart(2,"0"),setTimeout(()=>{S.current&&S.current.setSelectionRange(3,5)},10)):(T=P,setTimeout(()=>{S.current&&S.current.setSelectionRange(1,1)},10))}else if(P.length===2){const H=parseInt(P);H>=1&&H<=12?(T=P,setTimeout(()=>{S.current&&S.current.setSelectionRange(3,5)},10)):(T=P[0],setTimeout(()=>{S.current&&S.current.setSelectionRange(1,1)},10))}D=`${T}:${c} ${u}`}}else if(j>=3&&j<=5){const P=L.indexOf(":")+1,H=L.substring(P,P+2).replace(/[^0-9]/g,"");if(H){if(H.length===1)R=H,D=`${l}:${R} ${u}`,setTimeout(()=>{S.current&&S.current.setSelectionRange(4,4)},10);else if(H.length===2){const B=parseInt(H);B>=0&&B<=59?(R=H,setTimeout(()=>{S.current&&S.current.setSelectionRange(6,8)},10)):(R=H[0],setTimeout(()=>{S.current&&S.current.setSelectionRange(4,4)},10))}D=`${l}:${R} ${u}`}}else if(j>=6){const H=L.substring(L.lastIndexOf(" ")+1).toUpperCase();H.startsWith("A")?(M="AM",D=`${l}:${c} AM`):H.startsWith("P")&&(M="PM",D=`${l}:${c} PM`)}f(T),m(R),x(M),o(D),n(!1),t==null||t(D)},I=Y=>{if(!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","0","1","2","3","4","5","6","7","8","9",":","A","P","M"," ","a","p","m"].includes(Y.key)){Y.preventDefault();return}if(Y.key==="Enter"||Y.key===":"){Y.preventDefault();const j=Y.currentTarget.selectionStart||0;if(j<=2){if(E){const T=A(E,"hours");f(T),g(""),o(`${T}:${c} ${u}`)}Y.currentTarget.setSelectionRange(3,5)}else if(j>=3&&j<=5){if(_){const T=A(_,"minutes");m(T),y(""),o(`${l}:${T} ${u}`)}Y.currentTarget.setSelectionRange(6,8)}}},q=Y=>{const L=Y.currentTarget.selectionStart||0,j=S.current;j&&(L<=1?j.setSelectionRange(0,2):L>=3&&L<=4?j.setSelectionRange(3,5):L>=6&&j.setSelectionRange(6,8))},X=()=>{n(!0),p(!0)},W=(Y,L)=>{const j=Y==="hours"?L:l,T=Y==="minutes"?L:c,R=Y==="period"?L:u;f(j),m(T),x(R);const M=`${j}:${T} ${R}`;o(M),t==null||t(M)},J=()=>{const Y=`${l}:${c} ${u}`;o(Y),n(!1),t==null||t(Y)},ae=()=>{o(""),f("12"),m("00"),x("AM"),n(!1),p(!1)};return jsxRuntimeExports.jsxs("div",{className:`time-picker-container ${i}`,children:[jsxRuntimeExports.jsxs("div",{className:`time-picker-input ${s||d?"active":""}`,children:[jsxRuntimeExports.jsx("input",{ref:S,type:"text",value:a,onChange:k,onKeyDown:I,onClick:Y=>{a||X(),q(Y)},onFocus:()=>p(!0),onBlur:()=>!s&&p(!1),placeholder:d||a?"hh:mm AM":"",className:"time-input",maxLength:8}),jsxRuntimeExports.jsx("label",{className:`floating-label ${s||d||a?"active":""}`,children:e}),jsxRuntimeExports.jsx("span",{className:"clock-icon",onClick:Y=>{Y.stopPropagation(),X()},children:jsxRuntimeExports.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("path",{d:"M12 6v6l4 2"})]})})]}),jsxRuntimeExports.jsxs("div",{className:`time-picker-popup ${s?"open":""}`,children:[jsxRuntimeExports.jsxs("div",{className:"time-picker-sections",children:[jsxRuntimeExports.jsxs("div",{className:"time-section",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Hours"}),jsxRuntimeExports.jsx("div",{className:"time-list",children:C.map(Y=>jsxRuntimeExports.jsx("div",{className:`time-item ${Y===l?"selected":""}`,onClick:()=>W("hours",Y),children:Y},Y))})]}),jsxRuntimeExports.jsxs("div",{className:"time-section",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Minutes"}),jsxRuntimeExports.jsx("div",{className:"time-list",children:b.map(Y=>jsxRuntimeExports.jsx("div",{className:`time-item ${Y===c?"selected":""}`,onClick:()=>W("minutes",Y),children:Y},Y))})]}),jsxRuntimeExports.jsxs("div",{className:"time-section period",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Period"}),jsxRuntimeExports.jsx("div",{className:"period-list",children:["AM","PM"].map(Y=>jsxRuntimeExports.jsx("div",{className:`period-item ${Y===u?"selected":""}`,onClick:()=>W("period",Y),children:Y},Y))})]})]}),jsxRuntimeExports.jsxs("div",{className:"time-picker-actions",children:[jsxRuntimeExports.jsx("button",{className:"time-picker-button cancel",onClick:ae,children:"Cancel"}),jsxRuntimeExports.jsx("button",{className:"time-picker-button ok",onClick:J,children:"OK"})]})]})]})},TransferItem=({label:e,checked:t,onChange:r,disabled:i})=>jsxRuntimeExports.jsx(CECheckBox,{label:e,checked:t,onChange:r,disabled:i}),CETransferButton=({label:e,onClick:t,disabled:r=!1,className:i=""})=>jsxRuntimeExports.jsx("button",{onClick:t,disabled:r,className:`transfer-button ${i}`,children:e}),TransferList=({dataUrl:e,onTransfer:t,containerClass:r="",boxClass:i="",buttonClass:s=""})=>{const[n,a]=React2.useState([]),[o,l]=React2.useState([]),[f,c]=React2.useState(!0),[m,u]=React2.useState(null),[x,d]=React2.useState(new Set),[p,E]=React2.useState(new Set);React2.useEffect(()=>{(async()=>{var b,A;try{c(!0),u(null);const I=(await axios.get(e)).data.items||[];a(I.slice(0,Math.ceil(I.length/2))),l(I.slice(Math.ceil(I.length/2)))}catch(k){u(axios.isAxiosError(k)?((A=(b=k.response)==null?void 0:b.data)==null?void 0:A.message)||k.message:"An error occurred")}finally{c(!1)}})()},[]);const g=C=>{if(C==="available"){const b=n.filter(k=>x.has(k.id)).sort((k,I)=>{const q=parseInt(k.id.replace(/\D/g,"")),X=parseInt(I.id.replace(/\D/g,""));return q-X}),A=n.filter(k=>!x.has(k.id));a(A),l(k=>[...k,...b].sort((q,X)=>{const W=parseInt(q.id.replace(/\D/g,"")),J=parseInt(X.id.replace(/\D/g,""));return W-J})),d(new Set)}else{const b=o.filter(k=>p.has(k.id)).sort((k,I)=>{const q=parseInt(k.id.replace(/\D/g,"")),X=parseInt(I.id.replace(/\D/g,""));return q-X}),A=o.filter(k=>!p.has(k.id));l(A),a(k=>[...k,...b].sort((q,X)=>{const W=parseInt(q.id.replace(/\D/g,"")),J=parseInt(X.id.replace(/\D/g,""));return W-J})),E(new Set)}t(o,n)},_=(C,b,A)=>{A(k=>{const I=new Set(k);return I.has(C)?I.delete(C):I.add(C),I})},y=(C,b,A)=>k=>{const I=new Set(b),q=C.filter(X=>!X.disabled);k?q.forEach(X=>I.add(X.id)):q.forEach(X=>I.delete(X.id)),A(I)},S=(C,b,A,k)=>{const I=C.filter(ae=>!ae.disabled),q=I.length>0&&I.every(ae=>b.has(ae.id)),X=b.size,W=C.length,J=C.length===0;return jsxRuntimeExports.jsxs("div",{className:`transfer-box ${i}`,children:[jsxRuntimeExports.jsx("div",{className:"transfer-box-header",children:jsxRuntimeExports.jsxs("div",{className:"header-content",children:[jsxRuntimeExports.jsx("div",{className:"checkbox-wrapper",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:q,onChange:y(C,b,A),disabled:J})}),jsxRuntimeExports.jsxs("div",{className:"title-section",children:[jsxRuntimeExports.jsx("div",{className:"title",children:k}),jsxRuntimeExports.jsxs("div",{className:"count-text",children:[X,"/",W," selected"]})]})]})}),jsxRuntimeExports.jsx("div",{className:"transfer-items",children:C.map(ae=>jsxRuntimeExports.jsx(TransferItem,{label:ae.label,checked:b.has(ae.id),disabled:ae.disabled,onChange:()=>_(ae.id,b,A)},ae.id))})]})};return f?jsxRuntimeExports.jsx("div",{children:"Loading..."}):m?jsxRuntimeExports.jsxs("div",{children:["Error: ",m]}):jsxRuntimeExports.jsxs("div",{className:`transfer-list-container ${r}`,children:[S(n,x,d,"Choices"),jsxRuntimeExports.jsxs("div",{className:"transfer-buttons",children:[jsxRuntimeExports.jsx(CETransferButton,{label:">>",onClick:()=>g("available"),disabled:x.size===0,className:s}),jsxRuntimeExports.jsx(CETransferButton,{label:"<<",onClick:()=>g("chosen"),disabled:p.size===0,className:s})]}),S(o,p,E,"Chosen")]})},CEBadge=({label:e,backgroundColor:t="#e0e0e0",textColor:r="#000",style:i})=>jsxRuntimeExports.jsx("span",{style:{backgroundColor:t,color:r,padding:"4px 10px",borderRadius:"12px",fontSize:"12px",display:"inline-block",whiteSpace:"nowrap",...i},children:e}),CEChatbox=({buttonLabel:e,buttonIcon:t})=>{const[r,i]=React2.useState([{id:1,author:"David Brown",initials:"DB",timestamp:"Jan 22, 2024 at 8:50 PM",content:"Contract amendments have been drafted and sent to all affected agencies. Expected completion by end of month."},{id:2,author:"Mike Wilson",initials:"MW",timestamp:"Jan 21, 2024 at 5:00 PM",content:"Utah DEQ has approved the new pricing structure. All 15 state agencies have been notified and are in agreement with the changes."}]),[s,n]=React2.useState(""),a=()=>{if(s.trim()){const l={id:r.length+1,author:"Current User",initials:"CU",timestamp:new Date().toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),content:s};i([l,...r]),n("")}},o=l=>{l.key==="Enter"&&a()};return jsxRuntimeExports.jsxs("div",{className:"notes-container",children:[jsxRuntimeExports.jsxs("div",{className:"notes-header",children:[jsxRuntimeExports.jsx("span",{className:"notes-icon",children:"📝"}),jsxRuntimeExports.jsx("span",{className:"notes-title",children:"Notes"})]}),jsxRuntimeExports.jsxs("div",{className:"add-note-section",children:[jsxRuntimeExports.jsx("textarea",{value:s,onChange:l=>n(l.target.value),onKeyPress:o,placeholder:"Add a note...",className:"add-note-input",rows:3}),jsxRuntimeExports.jsx(CEButton,{label:e,icon:t,variant:"outlinedGreen",onClick:a,sx:{width:"100%",marginTop:"10px"},children:void 0})]}),jsxRuntimeExports.jsx("div",{className:"notes-list",children:r.map(l=>jsxRuntimeExports.jsxs("div",{className:"note-item",children:[jsxRuntimeExports.jsx("div",{className:"note-avatar",children:l.initials}),jsxRuntimeExports.jsxs("div",{className:"note-content",children:[jsxRuntimeExports.jsxs("div",{className:"note-header",children:[jsxRuntimeExports.jsx("span",{className:"note-author",children:l.author}),jsxRuntimeExports.jsx("span",{className:"note-timestamp",children:l.timestamp})]}),jsxRuntimeExports.jsx("div",{className:"note-text",children:l.content})]})]},l.id))})]})},CEStatusDropdown=({options:e,selected:t,onChange:r,placeholder:i="Select status...",size:s="medium",disabled:n=!1,ariaLabel:a="Status selection dropdown"})=>{const[o,l]=React2.useState(!1),f=React2.useRef(null),c=e.find(p=>p.value===t),m=p=>{r(p),l(!1)};React2.useEffect(()=>{const p=E=>{var g;(g=f.current)!=null&&g.contains(E.target)||l(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]);const u=p=>{n||(p.key==="Enter"||p.key===" "?(p.preventDefault(),l(!o)):p.key==="Escape"&&l(!1))},x=p=>{if(p!=null&&p.statusType)switch(p.statusType){case"in-progress":return"in-progress";case"declined":return"declined";case"withdrawn":return"withdrawn";default:return""}return""},d=()=>{if(c){const p={};return c.backgroundColor&&(p.backgroundColor=c.backgroundColor),c.textColor&&(p.color=c.textColor),p}return{}};return jsxRuntimeExports.jsxs("div",{className:`status-dropdown-container ${n?"disabled":""} size-${s}`,ref:f,children:[jsxRuntimeExports.jsxs("div",{className:`status-dropdown-trigger ${o?"open":""} ${c?`has-selection ${x(c)}`:""}`,onClick:()=>!n&&l(!o),onKeyDown:u,tabIndex:n?-1:0,role:"button","aria-haspopup":"listbox","aria-expanded":o?"true":"false","aria-label":a,style:d(),children:[jsxRuntimeExports.jsx("span",{className:"status-text",children:c?c.label:i}),jsxRuntimeExports.jsx("span",{className:"status-dropdown-icon",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`dropdown-arrow ${o?"rotate":""}`,children:jsxRuntimeExports.jsx("path",{d:"M8.12021 9.79006L12.0002 13.6701L15.8802 9.79006C16.2702 9.40006 16.9002 9.40006 17.2902 9.79006C17.6802 10.1801 17.6802 10.8101 17.2902 11.2001L12.7002 15.7901C12.3102 16.1801 11.6802 16.1801 11.2902 15.7901L6.70021 11.2001C6.31021 10.8101 6.31021 10.1801 6.70021 9.79006C7.09021 9.41006 7.73021 9.40006 8.12021 9.79006Z",fill:"currentColor",fillOpacity:"0.7"})})})]}),o&&!n&&jsxRuntimeExports.jsx("ul",{className:"status-dropdown-options",role:"listbox","aria-label":"Status options",children:e.map(p=>{const E={};return p.backgroundColor&&(E.backgroundColor=p.backgroundColor),p.textColor&&(E.color=p.textColor),jsxRuntimeExports.jsxs("li",{className:`status-dropdown-option ${t===p.value?"selected":""} ${x(p)}`,onClick:()=>m(p.value),role:"option","aria-selected":t===p.value?"true":"false",style:E,children:[jsxRuntimeExports.jsx("span",{className:"option-indicator",children:p.icon?p.icon:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[p.statusType==="declined"&&jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"#ff4757"}),jsxRuntimeExports.jsx("path",{d:"M15 9l-6 6m0-6l6 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})]}),p.statusType==="withdrawn"&&jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"#ffa502"}),jsxRuntimeExports.jsx("path",{d:"M12 8v4M12 16h.01",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})]}),p.statusType==="in-progress"&&jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"#5f27cd"}),jsxRuntimeExports.jsx("path",{d:"M8 12l2 2 4-4",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})]})}),p.label]},p.value)})})]})};exports.CEAutoSuggestInput=CEAutoSuggestInput;exports.CEAvatarMenu=CEAvatarMenu;exports.CEBadge=CEBadge;exports.CEBreadcrumbs=Breadcrumbs;exports.CEButton=CEButton;exports.CEChatbox=CEChatbox;exports.CECheckbox=CECheckBox;exports.CEChipInput=CEChipInput;exports.CEDataGridDynamicTable=CEDataGridDynamicTable;exports.CEDatePicker=CEDatePicker;exports.CEDateRangePicker=CEDateRangePicker;exports.CEDialogBox=CEDialogBox;exports.CEDrawer=CEDrawer;exports.CEDynamicSearchField=CEDynamicSearchField;exports.CEDynamicSelectField=CEDynamicSelectField;exports.CEDynamicTextField=CEDynamicTextField;exports.CEFieldsInput=FieldsInput;exports.CEFooter=CEFooter;exports.CEGridLayout=CEGridLayout;exports.CEGridMenuButton=CEGridMenuButton;exports.CEHamburgerButton=CEHamburgerButton;exports.CEHeader=CEHeader;exports.CEInputBox=CEInputBox;exports.CEInputDropDown=InputDropDown;exports.CELinearProgressBar=CELinearProgressBar;exports.CELogo=CELogo;exports.CEMenuBar=CEMenuBar;exports.CEMessageModal=CEMessageModal;exports.CEModalPopUp=CECustomModal;exports.CENotificationButton=CENotificationButton;exports.CEPagination=CEPagination;exports.CERadioButton=CERadioButton;exports.CERadioGroup=CERadioButtonGroup;exports.CERichTextEditor=CERichTextEditor;exports.CESearchBar=CESearchBar;exports.CESearchButton=CESearchButton;exports.CESkeletonTable=CESkeletonTable;exports.CESnackBar=CESnackBar;exports.CEStatusDropdown=CEStatusDropdown;exports.CEStepper=CEStepper;exports.CETabView=CETabView;exports.CETemplate=CETemplate;exports.CETimePicker=CETimePicker;exports.CETransferButton=CETransferButton;exports.CETruncatedTextWithTooltip=CETruncatedTextWithTooltip;exports.CEUploadModalWrapper=CEUploadModalWrapper;exports.CEUserInfo=CEUserInfo;exports.CeBox=CeBox;exports.TransferList=TransferList;
@@ -31645,6 +31645,7 @@ export {
31645
31645
  CERichTextEditor,
31646
31646
  CESearchBar,
31647
31647
  CESearchButton,
31648
+ CESkeletonTable,
31648
31649
  CESnackBar,
31649
31650
  CEStatusDropdown,
31650
31651
  CEStepper,
@@ -31652,6 +31653,7 @@ export {
31652
31653
  CETemplate,
31653
31654
  CETimePicker,
31654
31655
  CETransferButton,
31656
+ CETruncatedTextWithTooltip,
31655
31657
  CEUploadModalWrapper,
31656
31658
  CEUserInfo,
31657
31659
  CeBox,
package/dist/index.d.ts CHANGED
@@ -45,3 +45,5 @@ export { default as CETransferButton } from './components/Common/TransferListNew
45
45
  export { default as CEBadge } from './components/Common/CEBadge/CEBadge';
46
46
  export { default as CEChatbox } from './components/Common/CEChatbox/CEChatbox';
47
47
  export { default as CEStatusDropdown } from './components/Common/StatusDropDown/CEStatusDropdown';
48
+ export { default as CETruncatedTextWithTooltip } from './components/Common/DataGrid/CETruncatedTextWithTooltip';
49
+ export { default as CESkeletonTable } from './components/Common/DataGrid/CESkeletonTable';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "1.0.88",
4
+ "version": "1.0.89",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/index.d.ts",