cecomponent 2.0.21 → 2.0.22

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.
@@ -344,7 +344,7 @@ i.goToAndStop(b-i.firstFrame-1,!0)}S.type==="loop"&&(d===null||d!==S.frames||i.i
344
344
  `),p.push(` </office:body>
345
345
  `),f.bookType=="fods"?p.push("</office:document>"):p.push("</office:document-content>"),p.join("")}})();function write_ods(e,t){if(t.bookType=="fods")return write_content_ods(e,t);var n=zip_new(),i="",o=[],l=[];return i="mimetype",zip_add_file(n,i,"application/vnd.oasis.opendocument.spreadsheet"),i="content.xml",zip_add_file(n,i,write_content_ods(e,t)),o.push([i,"text/xml"]),l.push([i,"ContentFile"]),i="styles.xml",zip_add_file(n,i,write_styles_ods(e,t)),o.push([i,"text/xml"]),l.push([i,"StylesFile"]),i="meta.xml",zip_add_file(n,i,XML_HEADER+write_meta_ods()),o.push([i,"text/xml"]),l.push([i,"MetadataFile"]),i="manifest.rdf",zip_add_file(n,i,write_rdf(l)),o.push([i,"application/rdf+xml"]),i="META-INF/manifest.xml",zip_add_file(n,i,write_manifest(o)),n}/*! 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 n=0;n<=e.length-t.length;++n){for(var i=0;i<t.length;++i)if(e[n+i]!=t[i])continue e;return!0}return!1}function u8concat(e){var t=e.reduce(function(o,l){return o+l.length},0),n=new Uint8Array(t),i=0;return e.forEach(function(o){n.set(o,i),i+=o.length}),n}function writeDecimal128LE(e,t,n){var i=Math.floor(n==0?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,o=n/Math.pow(10,i-6176);e[t+15]|=i>>7,e[t+14]|=(i&127)<<1;for(var l=0;o>=1;++l,o/=256)e[t+l]=o&255;e[t+15]|=n>=0?0:128}function parse_varint49(e,t){var n=t?t[0]:0,i=e[n]&127;e:if(e[n++]>=128&&(i|=(e[n]&127)<<7,e[n++]<128||(i|=(e[n]&127)<<14,e[n++]<128)||(i|=(e[n]&127)<<21,e[n++]<128)||(i+=(e[n]&127)*Math.pow(2,28),++n,e[n++]<128)||(i+=(e[n]&127)*Math.pow(2,35),++n,e[n++]<128)||(i+=(e[n]&127)*Math.pow(2,42),++n,e[n++]<128)))break e;return t&&(t[0]=n),i}function write_varint49(e){var t=new Uint8Array(7);t[0]=e&127;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383||(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)||(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)||(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)||(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103))break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function varint_to_i32(e){var t=0,n=e[t]&127;e:if(e[t++]>=128){if(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128))break e;n|=(e[t]&127)<<28}return n}function parse_shallow(e){for(var t=[],n=[0];n[0]<e.length;){var i=n[0],o=parse_varint49(e,n),l=o&7;o=Math.floor(o/8);var u=0,f;if(o==0)break;switch(l){case 0:{for(var p=n[0];e[n[0]++]>=128;);f=e.slice(p,n[0])}break;case 5:u=4,f=e.slice(n[0],n[0]+u),n[0]+=u;break;case 1:u=8,f=e.slice(n[0],n[0]+u),n[0]+=u;break;case 2:u=parse_varint49(e,n),f=e.slice(n[0],n[0]+u),n[0]+=u;break;case 3:case 4:default:throw new Error("PB Type ".concat(l," for Field ").concat(o," at offset ").concat(i))}var m={data:f,type:l};t[o]==null?t[o]=[m]:t[o].push(m)}return t}function write_shallow(e){var t=[];return e.forEach(function(n,i){n.forEach(function(o){o.data&&(t.push(write_varint49(i*8+o.type)),o.type==2&&t.push(write_varint49(o.data.length)),t.push(o.data))})}),u8concat(t)}function parse_iwa_file(e){for(var t,n=[],i=[0];i[0]<e.length;){var o=parse_varint49(e,i),l=parse_shallow(e.slice(i[0],i[0]+o));i[0]+=o;var u={id:varint_to_i32(l[1][0].data),messages:[]};l[2].forEach(function(f){var p=parse_shallow(f.data),m=varint_to_i32(p[3][0].data);u.messages.push({meta:p,data:e.slice(i[0],i[0]+m)}),i[0]+=m}),(t=l[3])!=null&&t[0]&&(u.merge=varint_to_i32(l[3][0].data)>>>0>0),n.push(u)}return n}function write_iwa_file(e){var t=[];return e.forEach(function(n){var i=[];i[1]=[{data:write_varint49(n.id),type:0}],i[2]=[],n.merge!=null&&(i[3]=[{data:write_varint49(+!!n.merge),type:0}]);var o=[];n.messages.forEach(function(u){o.push(u.data),u.meta[3]=[{type:0,data:write_varint49(u.data.length)}],i[2].push({data:write_shallow(u.meta),type:2})});var l=write_shallow(i);t.push(write_varint49(l.length)),t.push(l),o.forEach(function(u){return t.push(u)})}),u8concat(t)}function parse_snappy_chunk(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],i=parse_varint49(t,n),o=[];n[0]<t.length;){var l=t[n[0]]&3;if(l==0){var u=t[n[0]++]>>2;if(u<60)++u;else{var f=u-59;u=t[n[0]],f>1&&(u|=t[n[0]+1]<<8),f>2&&(u|=t[n[0]+2]<<16),f>3&&(u|=t[n[0]+3]<<24),u>>>=0,u++,n[0]+=f}o.push(t.slice(n[0],n[0]+u)),n[0]+=u;continue}else{var p=0,m=0;if(l==1?(m=(t[n[0]]>>2&7)+4,p=(t[n[0]++]&224)<<3,p|=t[n[0]++]):(m=(t[n[0]++]>>2)+1,l==2?(p=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(p=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),o=[u8concat(o)],p==0)throw new Error("Invalid offset 0");if(p>o[0].length)throw new Error("Invalid offset beyond length");if(m>=p)for(o.push(o[0].slice(-p)),m-=p;m>=o[o.length-1].length;)o.push(o[o.length-1]),m-=o[o.length-1].length;o.push(o[0].slice(-p,-p+m))}}var d=u8concat(o);if(d.length!=i)throw new Error("Unexpected length: ".concat(d.length," != ").concat(i));return d}function decompress_iwa_file(e){for(var t=[],n=0;n<e.length;){var i=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(parse_snappy_chunk(i,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return u8concat(t)}function compress_iwa_file(e){for(var t=[],n=0;n<e.length;){var i=Math.min(e.length-n,268435455),o=new Uint8Array(4);t.push(o);var l=write_varint49(i),u=l.length;t.push(l),i<=60?(u++,t.push(new Uint8Array([i-1<<2]))):i<=256?(u+=2,t.push(new Uint8Array([240,i-1&255]))):i<=65536?(u+=3,t.push(new Uint8Array([244,i-1&255,i-1>>8&255]))):i<=16777216?(u+=4,t.push(new Uint8Array([248,i-1&255,i-1>>8&255,i-1>>16&255]))):i<=4294967296&&(u+=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(n,n+i)),u+=i,o[0]=0,o[1]=u&255,o[2]=u>>8&255,o[3]=u>>16&255,n+=i}return u8concat(t)}function write_new_storage(e,t){var n=new Uint8Array(32),i=u8_to_dataview(n),o=12,l=0;switch(n[0]=5,e.t){case"n":n[1]=2,writeDecimal128LE(n,o,e.v),l|=1,o+=16;break;case"b":n[1]=6,i.setFloat64(o,e.v?1:0,!0),l|=2,o+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,i.setUint32(o,t.indexOf(e.v),!0),l|=8,o+=4;break;default:throw"unsupported cell type "+e.t}return i.setUint32(8,l,!0),n.slice(0,o)}function write_old_storage(e,t){var n=new Uint8Array(32),i=u8_to_dataview(n),o=12,l=0;switch(n[0]=3,e.t){case"n":n[2]=2,i.setFloat64(o,e.v,!0),l|=32,o+=8;break;case"b":n[2]=6,i.setFloat64(o,e.v?1:0,!0),l|=32,o+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,i.setUint32(o,t.indexOf(e.v),!0),l|=16,o+=4;break;default:throw"unsupported cell type "+e.t}return i.setUint32(4,l,!0),n.slice(0,o)}function parse_TSP_Reference(e){var t=parse_shallow(e);return parse_varint49(t[1][0].data)}function write_tile_row(e,t,n){var i,o,l,u;if(!((i=e[6])!=null&&i[0])||!((o=e[7])!=null&&o[0]))throw"Mutation only works on post-BNC storages!";var f=((u=(l=e[8])==null?void 0:l[0])==null?void 0:u.data)&&varint_to_i32(e[8][0].data)>0||!1;if(f)throw"Math only works with normal offsets";for(var p=0,m=u8_to_dataview(e[7][0].data),d=0,g=[],_=u8_to_dataview(e[4][0].data),E=0,S=[],b=0;b<t.length;++b){if(t[b]==null){m.setUint16(b*2,65535,!0),_.setUint16(b*2,65535);continue}m.setUint16(b*2,d,!0),_.setUint16(b*2,E,!0);var T,C;switch(typeof t[b]){case"string":T=write_new_storage({t:"s",v:t[b]},n),C=write_old_storage({t:"s",v:t[b]},n);break;case"number":T=write_new_storage({t:"n",v:t[b]},n),C=write_old_storage({t:"n",v:t[b]},n);break;case"boolean":T=write_new_storage({t:"b",v:t[b]},n),C=write_old_storage({t:"b",v:t[b]},n);break;default:throw new Error("Unsupported value "+t[b])}g.push(T),d+=T.length,S.push(C),E+=C.length,++p}for(e[2][0].data=write_varint49(p);b<e[7][0].data.length/2;++b)m.setUint16(b*2,65535,!0),_.setUint16(b*2,65535,!0);return e[6][0].data=u8concat(g),e[3][0].data=u8concat(S),p}function write_numbers_iwa(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var i=decode_range(n["!ref"]);i.s.r=i.s.c=0;var o=!1;i.e.c>9&&(o=!0,i.e.c=9),i.e.r>49&&(o=!0,i.e.r=49),o&&console.error("The Numbers writer is currently limited to ".concat(encode_range(i)));var l=sheet_to_json(n,{range:i,header:1}),u=["~Sh33tJ5~"];l.forEach(function(Z){return Z.forEach(function(X){typeof X=="string"&&u.push(X)})});var f={},p=[],m=CFB.read(t.numbers,{type:"base64"});m.FileIndex.map(function(Z,X){return[Z,m.FullPaths[X]]}).forEach(function(Z){var X=Z[0],ee=Z[1];if(X.type==2&&X.name.match(/\.iwa/)){var ce=X.content,de=decompress_iwa_file(ce),Ee=parse_iwa_file(de);Ee.forEach(function(ue){p.push(ue.id),f[ue.id]={deps:[],location:ee,type:varint_to_i32(ue.messages[0].meta[1][0].data)}})}}),p.sort(function(Z,X){return Z-X});var d=p.filter(function(Z){return Z>1}).map(function(Z){return[Z,write_varint49(Z)]});m.FileIndex.map(function(Z,X){return[Z,m.FullPaths[X]]}).forEach(function(Z){var X=Z[0];if(Z[1],!!X.name.match(/\.iwa/)){var ee=parse_iwa_file(decompress_iwa_file(X.content));ee.forEach(function(ce){ce.messages.forEach(function(de){d.forEach(function(Ee){ce.messages.some(function(ue){return varint_to_i32(ue.meta[1][0].data)!=11006&&u8contains(ue.data,Ee[1])})&&f[Ee[0]].deps.push(ce.id)})})})}});for(var g=CFB.find(m,f[1].location),_=parse_iwa_file(decompress_iwa_file(g.content)),E,S=0;S<_.length;++S){var b=_[S];b.id==1&&(E=b)}var T=parse_TSP_Reference(parse_shallow(E.messages[0].data)[1][0].data);for(g=CFB.find(m,f[T].location),_=parse_iwa_file(decompress_iwa_file(g.content)),S=0;S<_.length;++S)b=_[S],b.id==T&&(E=b);for(T=parse_TSP_Reference(parse_shallow(E.messages[0].data)[2][0].data),g=CFB.find(m,f[T].location),_=parse_iwa_file(decompress_iwa_file(g.content)),S=0;S<_.length;++S)b=_[S],b.id==T&&(E=b);for(T=parse_TSP_Reference(parse_shallow(E.messages[0].data)[2][0].data),g=CFB.find(m,f[T].location),_=parse_iwa_file(decompress_iwa_file(g.content)),S=0;S<_.length;++S)b=_[S],b.id==T&&(E=b);var C=parse_shallow(E.messages[0].data);{C[6][0].data=write_varint49(i.e.r+1),C[7][0].data=write_varint49(i.e.c+1);var R=parse_TSP_Reference(C[46][0].data),A=CFB.find(m,f[R].location),O=parse_iwa_file(decompress_iwa_file(A.content));{for(var I=0;I<O.length&&O[I].id!=R;++I);if(O[I].id!=R)throw"Bad ColumnRowUIDMapArchive";var j=parse_shallow(O[I].messages[0].data);j[1]=[],j[2]=[],j[3]=[];for(var D=0;D<=i.e.c;++D){var F=[];F[1]=F[2]=[{type:0,data:write_varint49(D+420690)}],j[1].push({type:2,data:write_shallow(F)}),j[2].push({type:0,data:write_varint49(D)}),j[3].push({type:0,data:write_varint49(D)})}j[4]=[],j[5]=[],j[6]=[];for(var B=0;B<=i.e.r;++B)F=[],F[1]=F[2]=[{type:0,data:write_varint49(B+726270)}],j[4].push({type:2,data:write_shallow(F)}),j[5].push({type:0,data:write_varint49(B)}),j[6].push({type:0,data:write_varint49(B)});O[I].messages[0].data=write_shallow(j)}A.content=compress_iwa_file(write_iwa_file(O)),A.size=A.content.length,delete C[46];var q=parse_shallow(C[4][0].data);{q[7][0].data=write_varint49(i.e.r+1);var H=parse_shallow(q[1][0].data),M=parse_TSP_Reference(H[2][0].data);A=CFB.find(m,f[M].location),O=parse_iwa_file(decompress_iwa_file(A.content));{if(O[0].id!=M)throw"Bad HeaderStorageBucket";var K=parse_shallow(O[0].messages[0].data);for(B=0;B<l.length;++B){var Q=parse_shallow(K[2][0].data);Q[1][0].data=write_varint49(B),Q[4][0].data=write_varint49(l[B].length),K[2][B]={type:K[2][0].type,data:write_shallow(Q)}}O[0].messages[0].data=write_shallow(K)}A.content=compress_iwa_file(write_iwa_file(O)),A.size=A.content.length;var J=parse_TSP_Reference(q[2][0].data);A=CFB.find(m,f[J].location),O=parse_iwa_file(decompress_iwa_file(A.content));{if(O[0].id!=J)throw"Bad HeaderStorageBucket";for(K=parse_shallow(O[0].messages[0].data),D=0;D<=i.e.c;++D)Q=parse_shallow(K[2][0].data),Q[1][0].data=write_varint49(D),Q[4][0].data=write_varint49(i.e.r+1),K[2][D]={type:K[2][0].type,data:write_shallow(Q)};O[0].messages[0].data=write_shallow(K)}A.content=compress_iwa_file(write_iwa_file(O)),A.size=A.content.length;var V=parse_TSP_Reference(q[4][0].data);(function(){for(var Z=CFB.find(m,f[V].location),X=parse_iwa_file(decompress_iwa_file(Z.content)),ee,ce=0;ce<X.length;++ce){var de=X[ce];de.id==V&&(ee=de)}var Ee=parse_shallow(ee.messages[0].data);{Ee[3]=[];var ue=[];u.forEach(function(ae,Ce){ue[1]=[{type:0,data:write_varint49(Ce)}],ue[2]=[{type:0,data:write_varint49(1)}],ue[3]=[{type:2,data:stru8(ae)}],Ee[3].push({type:2,data:write_shallow(ue)})})}ee.messages[0].data=write_shallow(Ee);var pe=write_iwa_file(X),Pe=compress_iwa_file(pe);Z.content=Pe,Z.size=Z.content.length})();var U=parse_shallow(q[3][0].data);{var N=U[1][0];delete U[2];var L=parse_shallow(N.data);{var G=parse_TSP_Reference(L[2][0].data);(function(){for(var Z=CFB.find(m,f[G].location),X=parse_iwa_file(decompress_iwa_file(Z.content)),ee,ce=0;ce<X.length;++ce){var de=X[ce];de.id==G&&(ee=de)}var Ee=parse_shallow(ee.messages[0].data);{delete Ee[6],delete U[7];var ue=new Uint8Array(Ee[5][0].data);Ee[5]=[];for(var pe=0,Pe=0;Pe<=i.e.r;++Pe){var ae=parse_shallow(ue);pe+=write_tile_row(ae,l[Pe],u),ae[1][0].data=write_varint49(Pe),Ee[5].push({data:write_shallow(ae),type:2})}Ee[1]=[{type:0,data:write_varint49(i.e.c+1)}],Ee[2]=[{type:0,data:write_varint49(i.e.r+1)}],Ee[3]=[{type:0,data:write_varint49(pe)}],Ee[4]=[{type:0,data:write_varint49(i.e.r+1)}]}ee.messages[0].data=write_shallow(Ee);var Ce=write_iwa_file(X),ye=compress_iwa_file(Ce);Z.content=ye,Z.size=Z.content.length})()}N.data=write_shallow(L)}q[3][0].data=write_shallow(U)}C[4][0].data=write_shallow(q)}E.messages[0].data=write_shallow(C);var W=write_iwa_file(_),z=compress_iwa_file(W);return g.content=z,g.size=g.content.length,m}function fix_opts_func(e){return function(n){for(var i=0;i!=e.length;++i){var o=e[i];n[o[0]]===void 0&&(n[o[0]]=o[1]),o[2]==="n"&&(n[o[0]]=Number(n[o[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 n=t.bookType=="xlsb"?"bin":"xml",i=VBAFMTS.indexOf(t.bookType)>-1,o=new_ct();fix_write_opts(t=t||{});var l=zip_new(),u="",f=0;if(t.cellXfs=[],get_cell_style(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),u="docProps/core.xml",zip_add_file(l,u,write_core_props(e.Props,t)),o.coreprops.push(u),add_rels(t.rels,2,u,RELS.CORE_PROPS),u="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var p=[],m=0;m<e.SheetNames.length;++m)(e.Workbook.Sheets[m]||{}).Hidden!=2&&p.push(e.SheetNames[m]);e.Props.SheetNames=p}for(e.Props.Worksheets=e.Props.SheetNames.length,zip_add_file(l,u,write_ext_props(e.Props)),o.extprops.push(u),add_rels(t.rels,3,u,RELS.EXT_PROPS),e.Custprops!==e.Props&&keys(e.Custprops||{}).length>0&&(u="docProps/custom.xml",zip_add_file(l,u,write_cust_props(e.Custprops)),o.custprops.push(u),add_rels(t.rels,4,u,RELS.CUST_PROPS)),f=1;f<=e.SheetNames.length;++f){var d={"!id":{}},g=e.Sheets[e.SheetNames[f-1]],_=(g||{})["!type"]||"sheet";switch(_){case"chart":default:u="xl/worksheets/sheet"+f+"."+n,zip_add_file(l,u,write_ws(f-1,u,t,e,d)),o.sheets.push(u),add_rels(t.wbrels,-1,"worksheets/sheet"+f+"."+n,RELS.WS[0])}if(g){var E=g["!comments"],S=!1,b="";E&&E.length>0&&(b="xl/comments"+f+"."+n,zip_add_file(l,b,write_cmnt(E,b)),o.comments.push(b),add_rels(d,-1,"../comments"+f+"."+n,RELS.CMNT),S=!0),g["!legacy"]&&S&&zip_add_file(l,"xl/drawings/vmlDrawing"+f+".vml",write_comments_vml(f,g["!comments"])),delete g["!comments"],delete g["!legacy"]}d["!id"].rId1&&zip_add_file(l,get_rels_path(u),write_rels(d))}return t.Strings!=null&&t.Strings.length>0&&(u="xl/sharedStrings."+n,zip_add_file(l,u,write_sst(t.Strings,u,t)),o.strs.push(u),add_rels(t.wbrels,-1,"sharedStrings."+n,RELS.SST)),u="xl/workbook."+n,zip_add_file(l,u,write_wb(e,u)),o.workbooks.push(u),add_rels(t.rels,1,u,RELS.WB),u="xl/theme/theme1.xml",zip_add_file(l,u,write_theme(e.Themes,t)),o.themes.push(u),add_rels(t.wbrels,-1,"theme/theme1.xml",RELS.THEME),u="xl/styles."+n,zip_add_file(l,u,write_sty(e,u,t)),o.styles.push(u),add_rels(t.wbrels,-1,"styles."+n,RELS.STY),e.vbaraw&&i&&(u="xl/vbaProject.bin",zip_add_file(l,u,e.vbaraw),o.vba.push(u),add_rels(t.wbrels,-1,"vbaProject.bin",RELS.VBA)),u="xl/metadata."+n,zip_add_file(l,u,write_xlmeta(u)),o.metadata.push(u),add_rels(t.wbrels,-1,"metadata."+n,RELS.XLMETA),zip_add_file(l,"[Content_Types].xml",write_ct(o,t)),zip_add_file(l,"_rels/.rels",write_rels(t.rels)),zip_add_file(l,"xl/_rels/workbook."+n+".rels",write_rels(t.wbrels)),delete t.revssf,delete t.ssf,l}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 n="xml",i=VBAFMTS.indexOf(t.bookType)>-1,o=new_ct();fix_write_opts(t=t||{});var l=zip_new(),u="",f=0;if(t.cellXfs=[],get_cell_style(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),u="docProps/core.xml",zip_add_file(l,u,write_core_props(e.Props,t)),o.coreprops.push(u),add_rels(t.rels,2,u,RELS.CORE_PROPS),u="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var p=[],m=0;m<e.SheetNames.length;++m)(e.Workbook.Sheets[m]||{}).Hidden!=2&&p.push(e.SheetNames[m]);e.Props.SheetNames=p}e.Props.Worksheets=e.Props.SheetNames.length,zip_add_file(l,u,write_ext_props(e.Props)),o.extprops.push(u),add_rels(t.rels,3,u,RELS.EXT_PROPS),e.Custprops!==e.Props&&keys(e.Custprops||{}).length>0&&(u="docProps/custom.xml",zip_add_file(l,u,write_cust_props(e.Custprops)),o.custprops.push(u),add_rels(t.rels,4,u,RELS.CUST_PROPS));var d=["SheetJ5"];for(t.tcid=0,f=1;f<=e.SheetNames.length;++f){var g={"!id":{}},_=e.Sheets[e.SheetNames[f-1]],E=(_||{})["!type"]||"sheet";switch(E){case"chart":default:u="xl/worksheets/sheet"+f+"."+n,zip_add_file(l,u,write_ws_xml(f-1,t,e,g)),o.sheets.push(u),add_rels(t.wbrels,-1,"worksheets/sheet"+f+"."+n,RELS.WS[0])}if(_){var S=_["!comments"],b=!1,T="";if(S&&S.length>0){var C=!1;S.forEach(function(R){R[1].forEach(function(A){A.T==!0&&(C=!0)})}),C&&(T="xl/threadedComments/threadedComment"+f+"."+n,zip_add_file(l,T,write_tcmnt_xml(S,d,t)),o.threadedcomments.push(T),add_rels(g,-1,"../threadedComments/threadedComment"+f+"."+n,RELS.TCMNT)),T="xl/comments"+f+"."+n,zip_add_file(l,T,write_comments_xml(S)),o.comments.push(T),add_rels(g,-1,"../comments"+f+"."+n,RELS.CMNT),b=!0}_["!legacy"]&&b&&zip_add_file(l,"xl/drawings/vmlDrawing"+f+".vml",write_comments_vml(f,_["!comments"])),delete _["!comments"],delete _["!legacy"]}g["!id"].rId1&&zip_add_file(l,get_rels_path(u),write_rels(g))}return t.Strings!=null&&t.Strings.length>0&&(u="xl/sharedStrings."+n,zip_add_file(l,u,write_sst_xml(t.Strings,t)),o.strs.push(u),add_rels(t.wbrels,-1,"sharedStrings."+n,RELS.SST)),u="xl/workbook."+n,zip_add_file(l,u,write_wb_xml(e)),o.workbooks.push(u),add_rels(t.rels,1,u,RELS.WB),u="xl/theme/theme1.xml",zip_add_file(l,u,write_theme(e.Themes,t)),o.themes.push(u),add_rels(t.wbrels,-1,"theme/theme1.xml",RELS.THEME),u="xl/styles."+n,zip_add_file(l,u,write_sty_xml(e,t)),o.styles.push(u),add_rels(t.wbrels,-1,"styles."+n,RELS.STY),e.vbaraw&&i&&(u="xl/vbaProject.bin",zip_add_file(l,u,e.vbaraw),o.vba.push(u),add_rels(t.wbrels,-1,"vbaProject.bin",RELS.VBA)),u="xl/metadata."+n,zip_add_file(l,u,write_xlmeta_xml()),o.metadata.push(u),add_rels(t.wbrels,-1,"metadata."+n,RELS.XLMETA),d.length>1&&(u="xl/persons/person.xml",zip_add_file(l,u,write_people_xml(d)),o.people.push(u),add_rels(t.wbrels,-1,"persons/person.xml",RELS.PEOPLE)),zip_add_file(l,"[Content_Types].xml",write_ct(o,t)),zip_add_file(l,"_rels/.rels",write_rels(t.rels)),zip_add_file(l,"xl/_rels/workbook."+n+".rels",write_rels(t.wbrels)),delete t.revssf,delete t.ssf,l}function firstbyte(e,t){var n="";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":n=Base64_decode(e.slice(0,12));break;case"binary":n=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[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.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 n=dup(t||{}),i=write_zip(e,n);return write_zip_denouement(i,n)}function write_zip_denouement(e,t){var n={},i=has_buf?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=i;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=i;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?CFB.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if(typeof Deno<"u"&&typeof o=="string"){if(t.type=="binary"||t.type=="base64")return o;o=new Uint8Array(s2ab(o))}return t.password&&typeof encrypt_agile<"u"?write_cfb_ctr(encrypt_agile(o,t.password),t):t.type==="file"?write_dl(t.file,o):t.type=="string"?utf8read(o):o}function write_cfb_type(e,t){var n=t||{},i=write_xlscfb(e,n);return write_cfb_ctr(i,n)}function write_string_type(e,t,n){n||(n="");var i=n+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(o){return o.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(n){return n.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 n="",i=0;i<e.length;++i)n+=String.fromCharCode(e[i]);return t.type=="base64"?Base64_encode(n):t.type=="string"?utf8read(n):n;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 n=dup(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),n.type=="array"){n.type="binary";var i=writeSync(e,n);return n.type="array",s2ab(i)}var o=0;if(n.sheet&&(typeof n.sheet=="number"?o=n.sheet:o=e.SheetNames.indexOf(n.sheet),!e.SheetNames[o]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return write_string_type(write_xlml(e,n),n);case"slk":case"sylk":return write_string_type(SYLK.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"htm":case"html":return write_string_type(sheet_to_html(e.Sheets[e.SheetNames[o]],n),n);case"txt":return write_stxt_type(sheet_to_txt(e.Sheets[e.SheetNames[o]],n),n);case"csv":return write_string_type(sheet_to_csv(e.Sheets[e.SheetNames[o]],n),n,"\uFEFF");case"dif":return write_string_type(DIF.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"dbf":return write_binary_type(DBF.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"prn":return write_string_type(PRN.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"rtf":return write_string_type(RTF.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"eth":return write_string_type(ETH.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"fods":return write_string_type(write_ods(e,n),n);case"wk1":return write_binary_type(WK_.sheet_to_wk1(e.Sheets[e.SheetNames[o]],n),n);case"wk3":return write_binary_type(WK_.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),write_binary_type(write_biff_buf(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),write_cfb_type(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return write_zip_type(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function resolve_book_type(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},n=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();n.match(/^\.[a-z]+$/)&&(e.bookType=n.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function writeFileSync(e,t,n){var i={};return i.type="file",i.file=t,resolve_book_type(i),writeSync(e,i)}function make_json_row(e,t,n,i,o,l,u,f){var p=encode_row(n),m=f.defval,d=f.raw||!Object.prototype.hasOwnProperty.call(f,"raw"),g=!0,_=o===1?[]:{};if(o!==1)if(Object.defineProperty)try{Object.defineProperty(_,"__rowNum__",{value:n,enumerable:!1})}catch{_.__rowNum__=n}else _.__rowNum__=n;if(!u||e[n])for(var E=t.s.c;E<=t.e.c;++E){var S=u?e[n][E]:e[i[E]+p];if(S===void 0||S.t===void 0){if(m===void 0)continue;l[E]!=null&&(_[l[E]]=m);continue}var b=S.v;switch(S.t){case"z":if(b==null)break;continue;case"e":b=b==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+S.t)}if(l[E]!=null){if(b==null)if(S.t=="e"&&b===null)_[l[E]]=null;else if(m!==void 0)_[l[E]]=m;else if(d&&b===null)_[l[E]]=null;else continue;else _[l[E]]=d&&(S.t!=="n"||S.t==="n"&&f.rawNumbers!==!1)?b:format_cell(S,b,f);b!=null&&(g=!1)}}return{row:_,isempty:g}}function sheet_to_json(e,t){if(e==null||e["!ref"]==null)return[];var n={t:"n",v:0},i=0,o=1,l=[],u=0,f="",p={s:{r:0,c:0},e:{r:0,c:0}},m=t||{},d=m.range!=null?m.range:e["!ref"];switch(m.header===1?i=1:m.header==="A"?i=2:Array.isArray(m.header)?i=3:m.header==null&&(i=0),typeof d){case"string":p=safe_decode_range(d);break;case"number":p=safe_decode_range(e["!ref"]),p.s.r=d;break;default:p=d}i>0&&(o=0);var g=encode_row(p.s.r),_=[],E=[],S=0,b=0,T=Array.isArray(e),C=p.s.r,R=0,A={};T&&!e[C]&&(e[C]=[]);var O=m.skipHidden&&e["!cols"]||[],I=m.skipHidden&&e["!rows"]||[];for(R=p.s.c;R<=p.e.c;++R)if(!(O[R]||{}).hidden)switch(_[R]=encode_col(R),n=T?e[C][R]:e[_[R]+g],i){case 1:l[R]=R-p.s.c;break;case 2:l[R]=_[R];break;case 3:l[R]=m.header[R-p.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),f=u=format_cell(n,null,m),b=A[u]||0,!b)A[u]=1;else{do f=u+"_"+b++;while(A[f]);A[u]=b,A[f]=1}l[R]=f}for(C=p.s.r+o;C<=p.e.r;++C)if(!(I[C]||{}).hidden){var j=make_json_row(e,p,C,_,i,l,T,m);(j.isempty===!1||(i===1?m.blankrows!==!1:m.blankrows))&&(E[S++]=j.row)}return E.length=S,E}var qreg=/"/g;function make_csv_row(e,t,n,i,o,l,u,f){for(var p=!0,m=[],d="",g=encode_row(n),_=t.s.c;_<=t.e.c;++_)if(i[_]){var E=f.dense?(e[n]||[])[_]:e[i[_]+g];if(E==null)d="";else if(E.v!=null){p=!1,d=""+(f.rawNumbers&&E.t=="n"?E.v:format_cell(E,null,f));for(var S=0,b=0;S!==d.length;++S)if((b=d.charCodeAt(S))===o||b===l||b===34||f.forceQuotes){d='"'+d.replace(qreg,'""')+'"';break}d=="ID"&&(d='"ID"')}else E.f!=null&&!E.F?(p=!1,d="="+E.f,d.indexOf(",")>=0&&(d='"'+d.replace(qreg,'""')+'"')):d="";m.push(d)}return f.blankrows===!1&&p?null:m.join(u)}function sheet_to_csv(e,t){var n=[],i=t??{};if(e==null||e["!ref"]==null)return"";var o=safe_decode_range(e["!ref"]),l=i.FS!==void 0?i.FS:",",u=l.charCodeAt(0),f=i.RS!==void 0?i.RS:`
346
346
  `,p=f.charCodeAt(0),m=new RegExp((l=="|"?"\\|":l)+"+$"),d="",g=[];i.dense=Array.isArray(e);for(var _=i.skipHidden&&e["!cols"]||[],E=i.skipHidden&&e["!rows"]||[],S=o.s.c;S<=o.e.c;++S)(_[S]||{}).hidden||(g[S]=encode_col(S));for(var b=0,T=o.s.r;T<=o.e.r;++T)(E[T]||{}).hidden||(d=make_csv_row(e,o,T,g,u,p,l,i),d!=null&&(i.strip&&(d=d.replace(m,"")),(d||i.blankrows!==!1)&&n.push((b++?f:"")+d)));return delete i.dense,n.join("")}function sheet_to_txt(e,t){t||(t={}),t.FS=" ",t.RS=`
347
- `;var n=sheet_to_csv(e,t);return n}function sheet_to_formulae(e){var t="",n,i="";if(e==null||e["!ref"]==null)return[];var o=safe_decode_range(e["!ref"]),l="",u=[],f,p=[],m=Array.isArray(e);for(f=o.s.c;f<=o.e.c;++f)u[f]=encode_col(f);for(var d=o.s.r;d<=o.e.r;++d)for(l=encode_row(d),f=o.s.c;f<=o.e.c;++f)if(t=u[f]+l,n=m?(e[d]||[])[f]:e[t],i="",n!==void 0){if(n.F!=null){if(t=n.F,!n.f)continue;i=n.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(n.f!=null)i=n.f;else{if(n.t=="z")continue;if(n.t=="n"&&n.v!=null)i=""+n.v;else if(n.t=="b")i=n.v?"TRUE":"FALSE";else if(n.w!==void 0)i="'"+n.w;else{if(n.v===void 0)continue;n.t=="s"?i="'"+n.v:i=""+n.v}}p[p.length]=t+"="+i}return p}function sheet_add_json(e,t,n){var i=n||{},o=+!i.skipHeader,l=e||{},u=0,f=0;if(l&&i.origin!=null)if(typeof i.origin=="number")u=i.origin;else{var p=typeof i.origin=="string"?decode_cell(i.origin):i.origin;u=p.r,f=p.c}var m,d={s:{c:0,r:0},e:{c:f,r:u+t.length-1+o}};if(l["!ref"]){var g=safe_decode_range(l["!ref"]);d.e.c=Math.max(d.e.c,g.e.c),d.e.r=Math.max(d.e.r,g.e.r),u==-1&&(u=g.e.r+1,d.e.r=u+t.length-1+o)}else u==-1&&(u=0,d.e.r=t.length-1+o);var _=i.header||[],E=0;t.forEach(function(b,T){keys(b).forEach(function(C){(E=_.indexOf(C))==-1&&(_[E=_.length]=C);var R=b[C],A="z",O="",I=encode_cell({c:f+E,r:u+T+o});m=ws_get_cell_stub(l,I),R&&typeof R=="object"&&!(R instanceof Date)?l[I]=R:(typeof R=="number"?A="n":typeof R=="boolean"?A="b":typeof R=="string"?A="s":R instanceof Date?(A="d",i.cellDates||(A="n",R=datenum(R)),O=i.dateNF||table_fmt[14]):R===null&&i.nullError&&(A="e",R=0),m?(m.t=A,m.v=R,delete m.w,delete m.R,O&&(m.z=O)):l[I]=m={t:A,v:R},O&&(m.z=O))})}),d.e.c=Math.max(d.e.c,f+_.length-1);var S=encode_row(u);if(o)for(E=0;E<_.length;++E)l[encode_col(E+f)+S]={t:"s",v:_[E]};return l["!ref"]=encode_range(d),l}function json_to_sheet(e,t){return sheet_add_json(null,e,t)}function ws_get_cell_stub(e,t,n){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:n||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 n=e.SheetNames.indexOf(t);if(n>-1)return n;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,n,i){var o=1;if(!n)for(;o<=65535&&e.SheetNames.indexOf(n="Sheet"+o)!=-1;++o,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(i&&e.SheetNames.indexOf(n)>=0){var l=n.match(/(^.*?)(\d+)$/);o=l&&+l[2]||0;var u=l&&l[1]||n;for(++o;o<=65535&&e.SheetNames.indexOf(n=u+o)!=-1;++o);}if(check_ws_name(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function book_set_sheet_visibility(e,t,n){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]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[i].Hidden=n}function cell_set_number_format(e,t){return e.z=t,e}function cell_set_hyperlink(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function cell_set_internal_link(e,t,n){return cell_set_hyperlink(e,"#"+t,n)}function cell_add_comment(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})}function sheet_set_array_formula(e,t,n,i){for(var o=typeof t!="string"?t:safe_decode_range(t),l=typeof t=="string"?t:encode_range(t),u=o.s.r;u<=o.e.r;++u)for(var f=o.s.c;f<=o.e.c;++f){var p=ws_get_cell_stub(e,u,f);p.t="n",p.F=l,delete p.v,u==o.s.r&&f==o.s.c&&(p.f=n,i&&(p.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 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((n,i)=>jsxRuntimeExports.jsx("th",{children:jsxRuntimeExports.jsx("div",{className:"skeleton skeleton-header"})},i))})}),jsxRuntimeExports.jsx("tbody",{children:Array.from({length:t}).map((n,i)=>jsxRuntimeExports.jsx("tr",{children:Array.from({length:e}).map((o,l)=>jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx("div",{className:"skeleton skeleton-cell"})},l))},i))})]})}),CERadioButton=({label:e,value:t,checked:n,onChange:i,id:o,name:l})=>jsxRuntimeExports.jsxs("label",{className:"radio-button",style:{margin:"0.5rem 0"},children:[jsxRuntimeExports.jsx("input",{type:"radio",id:o,name:l,value:t,checked:n,onChange:()=>i(t),style:{marginRight:e?"0.5rem":0}}),e&&jsxRuntimeExports.jsx("span",{children:e})]}),CETruncatedTextWithTooltip=({text:e})=>{const[t,n]=React.useState(!1),[i,o]=React.useState({top:0,left:0}),l=React.useRef(null),[u,f]=React.useState(!1);React.useEffect(()=>{l.current&&f(l.current.scrollWidth>l.current.clientWidth)},[e]);const p=()=>{if(!l.current)return;const d=l.current.getBoundingClientRect(),g=300,_=100;let E=d.bottom+window.scrollY+8,S=d.left+window.scrollX;const b=window.innerWidth,T=window.innerHeight;S+g>b&&(S=b-g-8),d.bottom+_>T&&(E=d.top+window.scrollY-_-8),o({top:E,left:S}),n(!0)},m=()=>n(!1);return jsxRuntimeExports.jsxs("span",{className:"truncated-text-with-tooltip",ref:l,onMouseEnter:p,onMouseLeave:m,children:[e,u&&t&&ReactDOM.createPortal(jsxRuntimeExports.jsx("div",{className:"truncated-text-tooltip global-tooltip",style:{position:"absolute",top:`${i.top}px`,left:`${i.left}px`},children:e}),document.body)]})},DatePickerCell=({row:e,colId:t})=>{var i;const n=o=>{var u;const l=o.target.value;(u=e[t])==null||u.onchange(l)};return jsxRuntimeExports.jsx("div",{style:{minWidth:"120px"},children:jsxRuntimeExports.jsx("input",{type:"date",value:(i=e[t])==null?void 0:i.value,onChange:o=>n(o)})})},AddNewRowCell=({row:e,column:t,colId:n})=>{var p,m,d,g,_,E,S,b,T,C,R,A,O,I,j,D;const i=(((p=e[n])==null?void 0:p.required)??t.required)||!1,o=!!e[n].error,[l,u]=React.useState(!1),f=t.elementType;return React.useEffect(()=>{u(!(o||i))},[o,i,t.required]),jsxRuntimeExports.jsx("div",{children:o&&!l?jsxRuntimeExports.jsxs("div",{className:"add-new-row-error-content",onClick:()=>u(!0),role:"button",tabIndex:0,title:((m=e[n])==null?void 0:m.tooltip)||"","aria-label":((d=e[n])==null?void 0:d.tooltip)||"",children:[jsxRuntimeExports.jsx("span",{className:"table-new-row-warning-message",children:(g=e[n])==null?void 0:g.value}),jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#d32f2f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-circle-alert",style:{flexShrink:0},children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),jsxRuntimeExports.jsx("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})]},e.id):i&&!l?jsxRuntimeExports.jsxs("div",{className:"add-new-row-error-warning",onClick:()=>u(!0),role:"button",tabIndex:0,title:((_=e[n])==null?void 0:_.tooltip)||"This field is required. Click to enter a value.","aria-label":((E=e[n])==null?void 0:E.tooltip)||"This field is required. Click to enter a value.",children:[jsxRuntimeExports.jsx("span",{className:"table-new-row-warning-message",children:((S=e[n])==null?void 0:S.value)||"Required"}),jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#ff9800",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-triangle-alert",style:{flexShrink:0},children:[jsxRuntimeExports.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),jsxRuntimeExports.jsx("path",{d:"M12 9v4"}),jsxRuntimeExports.jsx("path",{d:"M12 17h.01"})]})]},e.id):l&&(f==="auto-suggest"?jsxRuntimeExports.jsx(CEAdvancedAutoSuggest,{label:"",fetchSuggestions:(b=e[n])==null?void 0:b.fetchOptions,onChange:()=>{},onSelect:F=>{var B,q;return(q=(B=e[n])==null?void 0:B.onselect)==null?void 0:q.call(B,F)},value:((T=e[n])==null?void 0:T.selectedOption)||null}):f==="date-picker"?jsxRuntimeExports.jsx(DatePickerCell,{row:e,colId:n}):f==="text-input"?jsxRuntimeExports.jsx(CEInputBox,{onChange:F=>{var B;return(B=e[n])==null?void 0:B.onchange(F)},value:((C=e[n])==null?void 0:C.value)||"",showError:!1,disabled:((R=e[n])==null?void 0:R.disabled)??!1}):f==="number-input"?jsxRuntimeExports.jsx(CEInputBox,{type:"number",onChange:F=>{var B;return(B=e[n])==null?void 0:B.onchange(F)},value:((A=e[n])==null?void 0:A.value)||"",showError:!1,disabled:((O=e[n])==null?void 0:O.disabled)??!1}):f==="drop-down-input"?jsxRuntimeExports.jsx(CEDynamicSelectField,{label:"",value:((I=e[n])==null?void 0:I.value)||"",onChange:F=>{var B;(B=e[n])==null||B.onchange(F.target.value)},options:((j=e[n])==null?void 0:j.options)||[],showPlaceholder:!0,placeholderText:""}):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(((D=e[n])==null?void 0:D.value)??"")}))})},CEDateRangePicker=({label:e="Submitted Date",tooltip:t,required:n=!1,onChange:i,size:o="medium",style:l,inputGroupStyle:u,id:f,name:p,mode:m="range",defaultValue:d,disabled:g=!1,minDate:_="",defaultFloat:E=!0,disablePastDates:S=!1})=>{const[b,T]=React.useState(""),[C,R]=React.useState(""),[A,O]=React.useState(()=>!!E),[I,j]=React.useState(""),F=new Date().toISOString().split("T")[0],B=_?new Date(_).toISOString().split("T")[0]:S?F:void 0,q=()=>O(!0),H=G=>{!G.currentTarget.value&&!b&&!C&&O(!1)},M=(G,W)=>{if(i==null||i({startDate:G||"",endDate:W||""}),G&&!W||!G&&W){j("Both start and end dates must be selected");return}if(G&&W&&new Date(W)<new Date(G)){j("End date must be after or equal to start date");return}j("")},K=G=>{if(!G)return"";if(/^\d{4}-\d{2}-\d{2}$/.test(G))return G;if(G.includes("/")){const Z=G.split("/").map(X=>X.trim());if(Z.length>=3){const X=Z[0].padStart(2,"0").slice(0,2),ee=Z[1].padStart(2,"0").slice(0,2),de=Z[2].replace(/\D/g,"").slice(0,4);return de.length!==4?"":`${de}-${X}-${ee}`}}const W=G.replace(/\D/g,"");if(W.length===8){const Z=W.slice(0,4),X=W.slice(4,6),ee=W.slice(6,8);if(+X>=1&&+X<=12)return`${Z}-${X}-${ee}`;const ce=W.slice(0,2),de=W.slice(2,4);return`${W.slice(4,8)}-${ce}-${de}`}const z=new Date(G);if(!isNaN(z.getTime())){const Z=z.getFullYear().toString().slice(0,4).padStart(4,"0"),X=(z.getMonth()+1).toString().padStart(2,"0"),ee=z.getDate().toString().padStart(2,"0");return`${Z}-${X}-${ee}`}return""},Q=G=>{const W=G.match(/^(\d{4})/);return(W==null?void 0:W[1])==="0000"};React.useEffect(()=>{d&&(d.startDate&&T(K(d.startDate)),d.endDate&&R(K(d.endDate)))},[d]);const J=G=>{const W=K(G.target.value);T(W),M(W,C)},V=G=>{const W=K(G.target.value);R(W),M(b,W)},U=!!(A||b||C),N=getSizeStyle$1(o),L=({text:G,float:W,showTooltip:z=!0})=>jsxRuntimeExports.jsxs("label",{className:`floating-label-box${W?" float":""}`,children:[jsxRuntimeExports.jsxs("span",{className:"label-text",children:[G,n&&jsxRuntimeExports.jsx("span",{className:"required-star",children:"*"})]}),t&&z&&jsxRuntimeExports.jsxs("span",{className:"tooltip-icon",role:"button","aria-label":t,tabIndex:0,children:[jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",width:"1em",height:"1em","aria-hidden":"true",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),jsxRuntimeExports.jsx("text",{x:"12",y:"16",textAnchor:"middle",fontSize:"12",fill:"currentColor",fontFamily:"Inter, Arial",fontWeight:"600",children:"i"})]}),jsxRuntimeExports.jsx("span",{className:"tooltip-bubble",role:"tooltip",children:t})]})]});return jsxRuntimeExports.jsxs("div",{className:"date-range-picker",style:l,id:f,children:[jsxRuntimeExports.jsx("div",{className:"date-range-field-group",style:u,children:m==="single"?jsxRuntimeExports.jsxs("div",{className:"field-box ",style:N,children:[jsxRuntimeExports.jsx("input",{type:"date",value:b,name:p,min:B,disabled:g,onChange:G=>{const W=G.target.value;if(T(W),Q(W)){j("Year cannot be 0000");return}I==="Year cannot be 0000"&&j("");const z=K(W);i==null||i({startDate:z,endDate:""})},onFocus:q,onBlur:H}),jsxRuntimeExports.jsx(L,{text:e,float:U,showTooltip:!0})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"field-box ",style:N,children:[jsxRuntimeExports.jsx("input",{type:"date",value:b,name:p?`${p}-from`:void 0,min:B,onChange:J,onFocus:q,onBlur:H,disabled:g}),jsxRuntimeExports.jsx(L,{text:"From",float:!0,showTooltip:!0})]}),jsxRuntimeExports.jsx("span",{className:"range-separator centered",children:"to"}),jsxRuntimeExports.jsxs("div",{className:"field-box ",style:N,children:[jsxRuntimeExports.jsx("input",{type:"date",value:C,name:p?`${p}-to`:void 0,min:B,onChange:V,onFocus:q,onBlur:H,disabled:g}),jsxRuntimeExports.jsx(L,{text:"To",float:!0,showTooltip:!1})]})]})}),I&&m!=="single"&&jsxRuntimeExports.jsx("div",{className:"error-text",children:I})]})},useEscapeKey=e=>{React.useEffect(()=>{const t=n=>{n.key==="Escape"&&e()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e])},getColumnValue=e=>{if(e==null)return"";if(React.isValidElement(e)){const t=e;return t.props["data-value"]||t.props["data-sort"]||""}return typeof e=="string"||typeof e=="number"?e:String(e)},stripReactElements=e=>{if(Array.isArray(e))return e.map(stripReactElements);if(e&&typeof e=="object"&&!React.isValidElement(e)){const t={};for(const n in e)React.isValidElement(e[n])||(t[n]=stripReactElements(e[n]));return t}return e},Edit="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.06%203.58988L20.41%204.93988C21.2%205.71988%2021.2%206.98988%2020.41%207.76988L7.18%2020.9999H3V16.8199L13.4%206.40988L16.23%203.58988C17.01%202.80988%2018.28%202.80988%2019.06%203.58988ZM5%2018.9999L6.41%2019.0599L16.23%209.22988L14.82%207.81988L5%2017.6399V18.9999Z'%20fill='%2379747E'/%3e%3c/svg%3e",Approve="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.00003%2016.1701L4.83003%2012.0001L3.41003%2013.4101L9.00003%2019.0001L21%207.00009L19.59%205.59009L9.00003%2016.1701Z'%20fill='%2379747E'/%3e%3c/svg%3e",Reassign="data:image/svg+xml,%3csvg%20width='17'%20height='20'%20viewBox='0%200%2017%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.83828%200.221421C8.68188%200.075693%208.47503%20-0.00364251%208.2613%200.000128532C8.04757%200.00389957%207.84365%200.0904828%207.69249%200.241637C7.54134%200.392791%207.45476%200.596715%207.45098%200.810446C7.44721%201.02418%207.52655%201.23103%207.67228%201.38742L9.01428%202.72942H8.53028C6.89858%202.72942%205.30353%203.21327%203.94682%204.1198C2.59012%205.02632%201.53269%206.31479%200.908271%207.82228C0.283848%209.32977%200.120471%2010.9886%200.438799%2012.5889C0.757127%2014.1893%201.54286%2015.6593%202.69665%2016.8131C3.85043%2017.9668%205.32044%2018.7526%206.92078%2019.0709C8.52112%2019.3892%2010.1799%2019.2258%2011.6874%2018.6014C13.1949%2017.977%2014.4834%2016.9196%2015.3899%2015.5629C16.2964%2014.2062%2016.7803%2012.6111%2016.7803%2010.9794C16.7803%2010.7606%2016.6934%2010.5508%2016.5386%2010.3961C16.3839%2010.2413%2016.1741%2010.1544%2015.9553%2010.1544C15.7365%2010.1544%2015.5266%2010.2413%2015.3719%2010.3961C15.2172%2010.5508%2015.1303%2010.7606%2015.1303%2010.9794C15.1302%2012.2819%2014.7448%2013.5553%2014.0225%2014.6391C13.3002%2015.723%2012.2733%2016.5689%2011.0712%2017.0703C9.86915%2017.5718%208.54557%2017.7064%207.26716%2017.4571C5.98875%2017.2078%204.81268%2016.5859%203.88704%2015.6695C2.96139%2014.7532%202.32757%2013.5835%202.06538%2012.3077C1.80319%2011.0318%201.92436%209.70696%202.41362%208.49986C2.90289%207.29276%203.73837%206.25741%204.81488%205.52419C5.89138%204.79097%207.16076%204.39266%208.46318%204.37942L7.67118%205.17142C7.52097%205.32709%207.43791%205.53552%207.43989%205.75184C7.44187%205.96815%207.52873%206.17503%207.68177%206.32792C7.8348%206.48081%208.04177%206.56748%208.25808%206.56925C8.47439%206.57103%208.68275%206.48778%208.83828%206.33742L11.3133%203.86242C11.4678%203.70773%2011.5546%203.49805%2011.5546%203.27942C11.5546%203.0608%2011.4678%202.85111%2011.3133%202.69642L8.83828%200.221421ZM12.9523%207.08542C13.1097%207.23717%2013.2005%207.44523%2013.2046%207.66387C13.2087%207.8825%2013.1259%208.09384%2012.9743%208.25142L8.73928%2012.6514C8.66232%2012.7313%208.57005%2012.7948%208.46799%2012.8382C8.36593%2012.8815%208.25617%2012.9039%208.14528%2012.9039C8.03438%2012.9039%207.92462%2012.8815%207.82256%2012.8382C7.7205%2012.7948%207.62824%2012.7313%207.55128%2012.6514L5.73628%2010.766C5.65735%2010.6888%205.59473%2010.5965%205.55212%2010.4947C5.50952%2010.3928%205.48779%2010.2834%205.48822%2010.173C5.48866%2010.0626%205.51125%209.95343%205.55467%209.85191C5.59808%209.75039%205.66143%209.65862%205.74096%209.58204C5.82049%209.50545%205.91459%209.44561%206.01767%209.40606C6.12075%209.3665%206.23073%209.34804%206.34107%209.35177C6.45142%209.3555%206.5599%209.38134%206.66008%209.42776C6.76026%209.47418%206.8501%209.54024%206.92428%209.62202L8.14528%2010.8892L11.7863%207.10742C11.938%206.94997%2012.1461%206.85921%2012.3647%206.85509C12.5834%206.85096%2012.7947%206.93381%2012.9523%207.08542Z'%20fill='%2365B230'/%3e%3c/svg%3e",Add="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%2013H13V20H11V13H4V11H11V4H13V11H20V13Z'%20fill='%2379747E'/%3e%3c/svg%3e",Delete="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15%203V4H20V6H19V19C19%2020.1%2018.1%2021%2017%2021H7C5.9%2021%205%2020.1%205%2019V6H4V4H9V3H15ZM7%2019H17V6H7V19ZM9%208H11V17H9V8ZM15%208H13V17H15V8Z'%20fill='%2379747E'/%3e%3c/svg%3e",Cancel="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202C6.47%202%202%206.47%202%2012C2%2017.53%206.47%2022%2012%2022C17.53%2022%2022%2017.53%2022%2012C22%206.47%2017.53%202%2012%202ZM12%2020C7.59%2020%204%2016.41%204%2012C4%207.59%207.59%204%2012%204C16.41%204%2020%207.59%2020%2012C20%2016.41%2016.41%2020%2012%2020ZM12%2010.59L15.59%207L17%208.41L13.41%2012L17%2015.59L15.59%2017L12%2013.41L8.41%2017L7%2015.59L10.59%2012L7%208.41L8.41%207L12%2010.59Z'%20fill='%23C53225'/%3e%3c/svg%3e",ShowOrHideColumn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%3e%3cpath%20d='M0%200%20C1.39042818%20-0.00202787%202.78085531%20-0.00494519%204.17127991%20-0.00869751%20C7.06831102%20-0.0130889%209.9650623%20-0.00679496%2012.86206055%200.00732422%20C16.54104169%200.02439842%2020.21936509%200.01456623%2023.89832211%20-0.00339317%20C26.76486496%20-0.0143319%2029.63125676%20-0.01073875%2032.49780464%20-0.0030098%20C34.50268617%20-0.00008719%2036.50757401%20-0.00906178%2038.51243591%20-0.0184021%20C51.84643905%200.08288397%2062.36831214%202.18438052%2072.34765625%2011.3984375%20C82.72862089%2022.29501297%2083.81157502%2035.39563727%2083.72860718%2049.8704834%20C83.73328715%2051.15071931%2083.73796712%2052.43095523%2083.74278891%2053.74998617%20C83.75517662%2057.26010193%2083.74918524%2060.76996931%2083.73983026%2064.28008533%20C83.73298924%2068.08247635%2083.7435458%2071.88482726%2083.75177002%2075.68721008%20C83.76505611%2083.11894567%2083.76225259%2090.55058996%2083.7535321%2097.98232901%20C83.74673568%20104.02640949%2083.74584727%20110.07046452%2083.74910355%20116.11454773%20C83.74956325%20116.97729682%2083.75002294%20117.84004591%2083.75049657%20118.72893891%20C83.75145582%20120.4820182%2083.75242847%20122.23509749%2083.75341435%20123.98817676%20C83.76195323%20140.39713998%2083.75215774%20156.80605278%2083.73601325%20173.21500772%20C83.72261144%20187.27113064%2083.72493995%20201.32717921%2083.73876953%20215.38330078%20C83.75485194%20231.73663572%2083.7611294%20248.08992656%2083.75193274%20264.4432683%20C83.75097717%20266.18962128%2083.75003406%20267.93597427%2083.74910355%20269.68232727%20C83.74864072%20270.54139399%2083.74817789%20271.4004607%2083.74770104%20272.28555974%20C83.74511913%20278.31698617%2083.74946486%20284.34838445%2083.75654221%20290.37980652%20C83.76498704%20297.73782249%2083.76261469%20305.09574254%2083.74669997%20312.45374763%20C83.73885718%20316.20237621%2083.73565678%20319.95084531%2083.74564743%20323.69947243%20C83.75634508%20327.77524883%2083.74350635%20331.85062835%2083.72860718%20335.9263916%20C83.73529934%20337.09392896%2083.74199151%20338.26146632%2083.74888647%20339.4643836%20C83.6547451%20352.81613252%2081.80817857%20364.46802168%2072.34765625%20374.3984375%20C61.26850374%20384.62796175%2049.36756952%20385.86653363%2034.74609375%20385.76171875%20C33.37472535%20385.7611982%2032.0033562%20385.76172342%2030.63198853%20385.76322937%20C27.77960848%20385.76314043%2024.92751564%20385.75287014%2022.07519531%20385.73461914%20C18.44659665%20385.71189135%2014.81841439%20385.71140425%2011.18976402%20385.71813679%20C8.36535029%20385.72150093%205.54102895%20385.71480174%202.71663284%20385.70500755%20C0.73715224%20385.69937125%20-1.24234414%20385.70058074%20-3.22183228%20385.70198059%20C-16.18209116%20385.60087128%20-25.59788448%20384.09755013%20-35.65234375%20375.3984375%20C-45.54661727%20364.26539458%20-47.11519405%20351.39165616%20-47.03329468%20336.96398926%20C-47.03797465%20335.6757351%20-47.04265462%20334.38748094%20-47.04747641%20333.06018877%20C-47.05988124%20329.52308071%20-47.0538647%20325.98621866%20-47.04451776%20322.44911027%20C-47.03768394%20318.61945404%20-47.04822979%20314.78983788%20-47.05645752%20310.96018982%20C-47.06975116%20303.47317331%20-47.06693669%20295.98624736%20-47.0582196%20288.4992274%20C-47.05142618%20282.41077808%20-47.05053348%20276.32235401%20-47.05379105%20270.23390198%20C-47.05425075%20269.36517795%20-47.05471044%20268.49645393%20-47.05518407%20267.60140494%20C-47.05614331%20265.83624438%20-47.05711595%20264.07108383%20-47.05810185%20262.30592328%20C-47.06664294%20245.77967925%20-47.05684175%20229.25348526%20-47.04070075%20212.72724944%20C-47.02729873%20198.56732745%20-47.02962719%20184.40747926%20-47.04345703%20170.24755859%20C-47.05953551%20153.7777782%20-47.06581909%20137.3080416%20-47.05662024%20120.83825445%20C-47.05566466%20119.07982732%20-47.05472155%20117.32140017%20-47.05379105%20115.56297302%20C-47.05332822%20114.69794239%20-47.05286539%20113.83291175%20-47.05238854%20112.94166806%20C-47.04980545%20106.8651998%20-47.05415492%20100.78875947%20-47.06122971%2094.71229553%20C-47.06967015%2087.30042821%20-47.06731132%2079.88865612%20-47.05138747%2072.47679961%20C-47.04353884%2068.69994852%20-47.04035446%2064.92325585%20-47.05033493%2061.14640617%20C-47.06101703%2057.0417633%20-47.04820598%2052.93751546%20-47.03329468%2048.83288574%20C-47.03998684%2047.65397152%20-47.04667901%2046.47505731%20-47.05357397%2045.26041842%20C-46.9542233%2031.0988315%20-44.31098753%2020.04518898%20-34.13671875%209.88671875%20C-23.81712366%200.73176368%20-13.42909464%20-0.06246693%200%200%20Z%20'%20fill='%23212121'%20transform='translate(88.65234375,63.6015625)'/%3e%3cpath%20d='M0%200%20C1.37183255%20-0.00389885%202.74366391%20-0.00823591%204.11549377%20-0.01298523%20C6.97555474%20-0.02039888%209.83549214%20-0.02019147%2012.69555664%20-0.01489258%20C16.33091665%20-0.00909958%2019.96576688%20-0.02604816%2023.60104275%20-0.04923725%20C26.42978286%20-0.06408398%2029.25840319%20-0.06483166%2032.08717537%20-0.06172752%20C34.0694059%20-0.06247893%2036.05161807%20-0.07625581%2038.03379822%20-0.09040833%20C50.34165442%20-0.02798927%2060.24736289%202.00602656%2069.62890625%2010.30078125%20C80.23052058%2021.7808721%2081.93785653%2033.21068447%2081.88960266%2048.37446594%20C81.89342821%2049.66015683%2081.89725376%2050.94584772%2081.90119523%2052.27049893%20C81.9114249%2055.81433436%2081.90930634%2059.35806804%2081.90501463%2062.90191162%20C81.9025382%2066.73366042%2081.91157295%2070.56538531%2081.91905212%2074.39712524%20C81.93177597%2081.89455933%2081.93359569%2089.39195757%2081.93125186%2096.88940064%20C81.92946586%20102.98649949%2081.93122438%20109.08358749%2081.9354763%20115.18068504%20C81.93607149%20116.04981554%2081.93666668%20116.91894603%2081.93727991%20117.81441381%20C81.93849171%20119.58029897%2081.93970585%20121.34618412%2081.94092228%20123.11206927%20C81.95178902%20139.65831656%2081.9496395%20156.20454344%2081.94353744%20172.75079187%20C81.93836971%20187.86983815%2081.94962147%20202.98881998%2081.96863566%20218.10785351%20C81.98803326%20233.65155953%2081.99626664%20249.19523509%2081.9925124%20264.73895329%20C81.99060319%20273.45773292%2081.99306052%20282.17645771%2082.00722694%20290.89522743%20C82.01916628%20298.31814058%2082.02051713%20305.74096513%2082.00843678%20313.16387955%20C82.00256581%20316.94678992%2082.00139893%20320.72953843%2082.01343918%20324.51243782%20C82.02637213%20328.62380077%2082.01579126%20332.73478184%2082.00312805%20336.84614563%20C82.01050234%20338.02710621%2082.01787662%20339.20806678%2082.02547437%20340.42481405%20C81.94020249%20353.64162412%2079.58475249%20365.22365731%2070.62890625%20375.30078125%20C59.43149551%20384.98877486%2048.5995069%20385.6116798%2034.29296875%20385.6015625%20C32.92353183%20385.60546179%2031.5540961%20385.60979893%2030.18466187%20385.61454773%20C27.32879702%20385.62196213%2024.47305589%20385.62175381%2021.6171875%20385.61645508%20C17.99089323%20385.61066763%2014.36511094%20385.62759691%2010.73890114%20385.65079975%20C7.91440971%20385.66566391%205.090038%20385.66639174%202.26551437%20385.66329002%20C0.28942353%20385.66404012%20-1.68664899%20385.67780547%20-3.66268921%20385.69197083%20C-16.94942739%20385.62458325%20-27.43251173%20383.47720207%20-37.37109375%20374.30078125%20C-47.75205839%20363.40420578%20-48.83501252%20350.30358148%20-48.75204468%20335.82873535%20C-48.75672465%20334.54849944%20-48.76140462%20333.26826352%20-48.76622641%20331.94923258%20C-48.77861412%20328.43911682%20-48.77262274%20324.92924944%20-48.76326776%20321.41913342%20C-48.75642674%20317.6167424%20-48.7669833%20313.81439149%20-48.77520752%20310.01200867%20C-48.78849361%20302.58027308%20-48.78569009%20295.14862879%20-48.7769696%20287.71688974%20C-48.77017318%20281.67280926%20-48.76928477%20275.62875423%20-48.77254105%20269.58467102%20C-48.77300075%20268.72192193%20-48.77346044%20267.85917284%20-48.77393407%20266.97027984%20C-48.77489332%20265.21720055%20-48.77586597%20263.46412126%20-48.77685185%20261.71104199%20C-48.78539073%20245.30207877%20-48.77559524%20228.89316597%20-48.75945075%20212.48421103%20C-48.74604894%20198.42808811%20-48.74837745%20184.37203954%20-48.76220703%20170.31591797%20C-48.77828944%20153.96258303%20-48.7845669%20137.60929219%20-48.77537024%20121.25595045%20C-48.77441467%20119.50959747%20-48.77347156%20117.76324448%20-48.77254105%20116.01689148%20C-48.77184681%20114.72829141%20-48.77184681%20114.72829141%20-48.77113854%20113.41365901%20C-48.76855663%20107.38223258%20-48.77290236%20101.3508343%20-48.77997971%2095.31941223%20C-48.78842454%2087.96139626%20-48.78605219%2080.60347621%20-48.77013747%2073.24547112%20C-48.76229468%2069.49684254%20-48.75909428%2065.74837344%20-48.76908493%2061.99974632%20C-48.77978258%2057.92396992%20-48.76694385%2053.8485904%20-48.75204468%2049.77282715%20C-48.75873684%2048.60528979%20-48.76542901%2047.43775243%20-48.77232397%2046.23483515%20C-48.67188333%2031.98968244%20-46.49788008%2020.60627557%20-36.37109375%2010.30078125%20C-24.99934532%200.70204736%20-14.4396423%20-0.01018664%200%200%20Z%20'%20fill='%23212121'%20transform='translate(389.37109375,63.69921875)'/%3e%3cpath%20d='M0%200%20C1.37422758%20-0.00135128%202.7484547%20-0.00329565%204.12268066%20-0.00579834%20C6.98694461%20-0.00872786%209.85108284%20-0.00452264%2012.71533203%200.00488281%20C16.35966249%200.01627611%2020.0036982%200.00970489%2023.64801788%20-0.00226212%20C26.48099937%20-0.00953987%2029.31391266%20-0.00716587%2032.14689636%20-0.00200653%20C34.13524571%20-0.00005138%2036.12359788%20-0.00605238%2038.11193848%20-0.01226807%20C50.97970432%200.05377783%2060.71208654%201.43181578%2070.59375%2010.265625%20C80.43904472%2021.59627658%2081.90061916%2032.80877037%2081.85444641%2047.42196655%20C81.85827196%2048.71653011%2081.86209751%2050.01109367%2081.86603898%2051.34488642%20C81.87626947%2054.91345539%2081.87414988%2058.48192333%2081.86985838%2062.05050039%20C81.86738212%2065.90881512%2081.87641644%2069.76710608%2081.88389587%2073.62541199%20C81.89661984%2081.17464796%2081.89843945%2088.72384832%2081.89609561%2096.27309321%20C81.89430976%20102.4116766%2081.89606782%20108.55024922%2081.90032005%20114.68883133%20C81.90091524%20115.56380127%2081.90151043%20116.43877121%2081.90212366%20117.34025539%20C81.90333546%20119.11798027%2081.90454959%20120.89570516%2081.90576603%20122.67343004%20C81.91663264%20139.33028616%2081.91448321%20155.98712201%2081.90838119%20172.64397927%20C81.90321249%20187.86716535%2081.9144678%20203.09028744%2081.93347941%20218.31346087%20C81.95287204%20233.96225318%2081.96111133%20249.61101523%2081.95735615%20265.25981963%20C81.95544632%20274.03837098%2081.9579105%20282.81686787%2081.97207069%20291.59540939%20C81.98400361%20299.06848993%2081.98536797%20306.54148247%2081.97328053%20314.01456426%20C81.96740531%20317.8236788%2081.96625461%20321.63263253%2081.97828293%20325.44173622%20C81.99119743%20329.57972269%2081.98064519%20333.71732895%2081.9679718%20337.85531616%20C81.97534609%20339.04697148%2081.98272037%20340.23862679%2081.99031812%20341.46639287%20C81.9070551%20354.42932661%2079.28845483%20365.35673186%2070.59375%20375.265625%20C59.40723239%20384.95958111%2048.55610413%20385.57651772%2034.2578125%20385.56640625%20C32.88837558%20385.57030554%2031.51893985%20385.57464268%2030.14950562%20385.57939148%20C27.29364077%20385.58680588%2024.43789964%20385.58659756%2021.58203125%20385.58129883%20C17.95573698%20385.57551138%2014.32995469%20385.59244066%2010.70374489%20385.6156435%20C7.87925346%20385.63050766%205.05488175%20385.63123549%202.23035812%20385.62813377%20C0.25426728%20385.62888387%20-1.72180524%20385.64264922%20-3.69784546%20385.65681458%20C-16.86957859%20385.59001028%20-27.6387559%20383.53875206%20-37.40625%20374.265625%20C-47.39849958%20362.83409444%20-48.87080006%20349.69908274%20-48.79393005%20334.88296509%20C-48.79931559%20333.61230741%20-48.80470113%20332.34164973%20-48.81024987%20331.03248727%20C-48.82455435%20327.54904283%20-48.8205075%20324.06583798%20-48.81308305%20320.58238125%20C-48.80831603%20316.80857637%20-48.82089218%20313.03482073%20-48.83110046%20309.2610321%20C-48.84822503%20301.88477917%20-48.84914173%20294.50861166%20-48.84388756%20287.13234402%20C-48.83983281%20281.1321392%20-48.84130485%20275.13195947%20-48.84663582%20269.13175583%20C-48.84738424%20268.27513491%20-48.84813266%20267.41851399%20-48.84890376%20266.53593486%20C-48.85043537%20264.79526103%20-48.85197372%20263.05458721%20-48.85351873%20261.31391339%20C-48.86722079%20245.02030083%20-48.86182222%20228.72673639%20-48.85033352%20212.43312494%20C-48.84040323%20197.55559901%20-48.85334236%20182.67819748%20-48.87726771%20167.80069073%20C-48.90170128%20152.49074933%20-48.91125616%20137.18086577%20-48.90461498%20121.87090528%20C-48.90113225%20113.28900812%20-48.90329207%20104.70720657%20-48.92086601%2096.12532425%20C-48.93564136%2088.82004658%20-48.93615417%2081.51493187%20-48.9187951%2074.20965721%20C-48.91032641%2070.48908615%20-48.90803312%2066.76880554%20-48.92344666%2063.0482502%20C-49.06818906%2025.32392537%20-49.06818906%2025.32392537%20-38.8046875%2012.67578125%20C-27.21540674%201.02987534%20-15.72851608%20-0.04916843%200%200%20Z%20'%20fill='%23212121'%20transform='translate(239.40625,63.734375)'/%3e%3c/svg%3e",SearchRounded="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='M15.5001%2014.5H14.7101L14.4301%2014.23C15.6301%2012.83%2016.2501%2010.92%2015.9101%208.89002C15.4401%206.11002%2013.1201%203.89002%2010.3201%203.55002C6.09014%203.03002%202.53014%206.59001%203.05014%2010.82C3.39014%2013.62%205.61014%2015.94%208.39014%2016.41C10.4201%2016.75%2012.3301%2016.13%2013.7301%2014.93L14.0001%2015.21V16L18.2501%2020.25C18.6601%2020.66%2019.3301%2020.66%2019.7401%2020.25C20.1501%2019.84%2020.1501%2019.17%2019.7401%2018.76L15.5001%2014.5ZM9.50014%2014.5C7.01014%2014.5%205.00014%2012.49%205.00014%2010C5.00014%207.51002%207.01014%205.50002%209.50014%205.50002C11.9901%205.50002%2014.0001%207.51002%2014.0001%2010C14.0001%2012.49%2011.9901%2014.5%209.50014%2014.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",SortIcon="data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3115_5954)'%3e%3cpath%20d='M4.72326%2013.2386L1.2194%209.72426C0.396731%209.2419%20-0.40373%2010.2466%200.225485%2010.9546C1.77064%2012.4991%203.28619%2014.0746%204.8348%2015.616C4.89796%2015.6789%204.93004%2015.7593%205.00061%2015.8228C5.43736%2016.2172%206.29803%2015.9196%206.3158%2015.2815L6.31382%200.712092C6.27829%20-0.0888571%205.09586%20-0.25464%204.80025%200.452932C4.78347%200.493379%204.72277%200.686625%204.72277%200.711592V13.2391L4.72326%2013.2386Z'%20fill='%23909090'/%3e%3cpath%20d='M10.2754%202.75243L13.7792%206.26632C14.596%206.75068%2015.4078%205.7465%2014.7727%205.03643C13.2423%203.50195%2011.7332%201.94449%2010.2004%200.412502C10.1372%200.349085%2010.1051%200.26919%2010.0345%200.205773C9.56868%20-0.214176%208.72134%200.0359959%208.68235%200.709612L8.68432%2015.279C8.71986%2016.0799%209.90229%2016.2457%2010.1979%2015.5381C10.2147%2015.4977%2010.2754%2015.3045%2010.2754%2015.2795V2.75243Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3115_5954'%3e%3crect%20width='15'%20height='16'%20fill='white'%20transform='matrix(-1%200%200%201%2015%200)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",InfoIcon="data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.71338%2011.25H9.21338V6.75H7.71338V11.25ZM8.46338%205.25C8.67588%205.25%208.85413%205.178%208.99813%205.034C9.14213%204.89%209.21388%204.712%209.21338%204.5C9.21338%204.2875%209.14138%204.1095%208.99738%203.966C8.85338%203.8225%208.67538%203.7505%208.46338%203.75C8.25088%203.75%208.07288%203.822%207.92938%203.966C7.78588%204.11%207.71388%204.288%207.71338%204.5C7.71338%204.7125%207.78538%204.89075%207.92938%205.03475C8.07338%205.17875%208.25138%205.2505%208.46338%205.25ZM8.46338%2015C7.42588%2015%206.45088%2014.803%205.53838%2014.409C4.62588%2014.015%203.83213%2013.4807%203.15713%2012.8062C2.48213%2012.1312%201.94788%2011.3375%201.55438%2010.425C1.16088%209.5125%200.963879%208.5375%200.963379%207.5C0.963379%206.4625%201.16038%205.4875%201.55438%204.575C1.94838%203.6625%202.48263%202.86875%203.15713%202.19375C3.83213%201.51875%204.62588%200.9845%205.53838%200.591C6.45088%200.1975%207.42588%200.0005%208.46338%200C9.50088%200%2010.4759%200.197%2011.3884%200.591C12.3009%200.985%2013.0946%201.51925%2013.7696%202.19375C14.4446%202.86875%2014.9791%203.6625%2015.3731%204.575C15.7671%205.4875%2015.9639%206.4625%2015.9634%207.5C15.9634%208.5375%2015.7664%209.5125%2015.3724%2010.425C14.9784%2011.3375%2014.4441%2012.1312%2013.7696%2012.8062C13.0946%2013.4812%2012.3009%2014.0157%2011.3884%2014.4097C10.4759%2014.8037%209.50088%2015.0005%208.46338%2015ZM8.46338%2013.5C10.1384%2013.5%2011.5571%2012.9187%2012.7196%2011.7562C13.8821%2010.5937%2014.4634%209.175%2014.4634%207.5C14.4634%205.825%2013.8821%204.40625%2012.7196%203.24375C11.5571%202.08125%2010.1384%201.5%208.46338%201.5C6.78838%201.5%205.36963%202.08125%204.20713%203.24375C3.04463%204.40625%202.46338%205.825%202.46338%207.5C2.46338%209.175%203.04463%2010.5937%204.20713%2011.7562C5.36963%2012.9187%206.78838%2013.5%208.46338%2013.5Z'%20fill='%23464646'/%3e%3c/svg%3e",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",PaginationControls=({currentPage:e,totalPages:t,setCurrentPage:n})=>{const l=Math.floor(e/5)*5,u=Math.min(l+5,t),f=()=>{n(Math.max(0,l-1))},p=()=>{n(Math.min(t-1,u))},m=[];for(let d=l;d<u;d++)m.push(jsxRuntimeExports.jsx("button",{className:`pagination-page${e===d?" active":""}`,onClick:()=>n(d),disabled:e===d,children:d+1},d));return jsxRuntimeExports.jsxs("div",{className:"pagination-controls",children:[jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>n(0),disabled:e===0,children:"First"}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>n(e-1),disabled:e===0,children:"Previous"}),l>0&&jsxRuntimeExports.jsx("button",{className:"pagination-ellipsis",onClick:f,children:"..."}),m,u<t&&jsxRuntimeExports.jsx("button",{className:"pagination-ellipsis",onClick:p,children:"..."}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>n(e+1),disabled:e===t-1,children:"Next"}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>n(t-1),disabled:e===t-1,children:"Last"})]})},RowsPerPageSelector=({rowsPerPage:e,setRowsPerPage:t,setCurrentPage:n,pageSizeOptions:i})=>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:o=>{t(Number(o.target.value)),n(0)},className:"ml-8",children:i.map(o=>jsxRuntimeExports.jsx("option",{value:o,children:o},o))})]}),EntriesInfo=({dataLength:e,currentPage:t,rowsPerPage:n})=>jsxRuntimeExports.jsx("div",{className:"entries-info",children:e>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Showing ",e===0?0:t*n+1," to"," ",Math.min((t+1)*n,e)," of ",e," ","entries"]})}),CEDataGridDynamicTable=({title:e,jsonData:t,columnList:n,ischeckBoxInGrid:i,isSingleSelectionMode:o=!1,isRadioButtonInGrid:l,onRadioChange:u,getSelectedRadioValue:f,renderRadioInColumnId:p,isSearchBoxInGrid:m,isAddButtonRequired:d,isEditButtonRequired:g,isDeleteButtonRequired:_,isApproveButtonRequired:E,isReassignButtonRequired:S,isCancelButtonRequired:b,isExportAllToExcel:T,handleEditClick:C,handleAddClick:R,handleDeleteClick:A,handleApproveClick:O,handleReassignClick:I,handleCancelClick:j,noOfPagesPerPage:D,clickableColumns:F,conditionalClickableColumns:B,clickableCellPredicate:q,handleCellClick:H,onReload:M,showDownloadIcon:K=!0,downloadOptions:Q,showRefreshIcon:J=!0,showFullViewIcon:V=!0,showColumnVisibilityIcon:U=!0,showSortIcon:N=!0,showFilterIcon:L=!0,defaultSortConfig:G,onDataUpdate:W,isOverrideCSS:z,showPagination:Z=!0,shouldResetSearchOnDataChange:X,pageSizeOptions:ee=[10,20,50,100],handleSelectedRows:ce,rowsSelected:de,selectionKey:Ee="id",onPageChange:ue,getRowDisabled:pe})=>{const[Pe,ae]=React.useState({}),[Ce,ye]=React.useState([]),[je,Te]=React.useState([]),[be,Ne]=React.useState(!1),[ze,Le]=React.useState(null),[Ue,Fe]=React.useState(new Set),[Ke,Xe]=React.useState(null),[Qe,qe]=React.useState(!1),[it,Je]=React.useState(""),[lt,dt]=React.useState(null),[at,vt]=React.useState("contains"),[ht,rt]=React.useState(""),[et,ct]=React.useState({}),[pt,nt]=React.useState(0),[ot,kt]=React.useState(D??10),[Tt,Dt]=React.useState(new Set),[mt,_t]=React.useState(""),[Ct,bt]=React.useState(!1),[Ve,st]=React.useState(new Set),[xt,Et]=React.useState([]),Ot=React.useMemo(()=>{const le=(n??[]).map(me=>me.id).join("|");return`ce-grid:${typeof e=="string"?e:"grid"}:${le}`},[n,e]),[St,Vt]=React.useState(null),Nt=React.useRef(null),Wt=React.useRef(null),Y=React.useRef(null),se=React.useRef(null),[te,ne]=React.useState(new Set),[ie,oe]=React.useState([]),[ve,we]=React.useState(!1),[he,ge]=React.useState(null),[_e,Ae]=React.useState(!1),[Ie,De]=React.useState(!0),Oe=React.useRef([]),Me=()=>Ae(!0),He=()=>Ae(!1),tt=le=>{if(nt(le),typeof ue=="function")try{ue(le)}catch{}};React.useEffect(()=>{if(typeof ue=="function")try{ue(pt)}catch{}},[pt]);const Ye=(le,fe)=>{if(typeof Ee=="function")try{const me=Ee(le);if(me!=null)return me}catch{}else if(typeof Ee=="string"&&le&&le[Ee]!==void 0)return le[Ee];if(fe!==void 0)return`__row_${fe}`};React.useEffect(()=>{if(typeof ce=="function"){const le=Array.from(Ue),fe=le.map(me=>{if(typeof me=="string"&&me.startsWith("__row_")){const xe=parseInt(me.slice(6),10);return!isNaN(xe)&&xe>=0&&xe<Ce.length?Ce[xe]:void 0}return(je||Ce||[]).find(xe=>{const Re=Ye(xe);return Re!==void 0&&(Re===me||String(Re)===String(me))})}).filter(Boolean);try{ce.length===1?ce({ids:le,rows:fe}):ce(fe)}catch{try{ce(fe)}catch{}}}},[Ue,Ce,Ee]),React.useEffect(()=>{if(!de)return;const le=Array.from(de),fe=le.every(xe=>typeof xe=="number"&&xe>=0&&xe<Ce.length),me=new Set(le.map(xe=>{if(fe){const Re=Ce[xe-1];return Ye(Re,xe)??`__row_${xe}`}return xe}));((xe,Re)=>!(xe.size!==Re.size||!Array.from(xe).every(ke=>Re.has(ke))))(me,Ue)||Fe(me)},[de,Ce,Ee]),React.useEffect(()=>{if(t&&Array.isArray(t)){const le=stripReactElements(Oe.current),fe=stripReactElements(t),me=JSON.stringify(le)!==JSON.stringify(fe);if(t&&Array.isArray(t)&&me){let Se=[...t];if(G){const{column:xe,direction:Re}=G;Se.sort((ke,Be)=>{const $e=ke[xe],Ge=Be[xe],We=new Date($e),Ze=new Date(Ge),ft=!isNaN(We.getTime()),Ft=!isNaN(Ze.getTime());if(ft&&Ft)return Re==="asc"?We.getTime()-Ze.getTime():Ze.getTime()-We.getTime();const Lt=String($e||"").toLowerCase(),jt=String(Ge||"").toLowerCase();return Lt.localeCompare(jt)}),Re==="desc"&&Se.reverse(),ge(G)}if(ye(Se),Te(Se),De(!1),X?(_t(""),ct({})):gt(),p){const xe={},Re=Array.isArray(p)?p:[p];Se.forEach((ke,Be)=>{const $e=ke.id??`__row_${Be}`;for(const Ge of Re)if(ke[Ge]===!0){xe[$e]={columnId:Ge,rowData:ke};break}}),wt(xe)}Oe.current=t}}else De(!0)},[t,G,p]),React.useEffect(()=>{if(Ce.length>0){const le=(n??[]).map(Se=>({id:Se.id,label:Se.label??Se.id,tooltip:Se.tooltip,shouldDisplay:Se.shouldDisplay??!0,shouldVisible:Se.shouldVisible??!0,width:Se.width,elementType:Se.elementType,required:Se.required??!1})),fe=Object.keys(Ce[0]||{}).map(Se=>({id:Se,label:Se.charAt(0).toUpperCase()+Se.slice(1),shouldDisplay:!0,shouldVisible:!0})),me=le.length>0?le:fe;if(oe(me),!ve){try{const Se=typeof window<"u"?window.localStorage.getItem(`${Ot}:columns`):null;if(Se){const xe=JSON.parse(Se),Re=new Set((xe.visibleColumns||[]).filter(Be=>me.some($e=>$e.id===Be))),ke=Array.isArray(xe.columnOrder)?xe.columnOrder.filter(Be=>me.some($e=>$e.id===Be)):[];if(Re.size>0)st(Re);else{const Be=me.filter($e=>$e.shouldDisplay!==!1).map($e=>$e.id);st(new Set(Be))}if(ke.length>0)Et(ke);else{const Be=me.filter($e=>$e.shouldVisible!==!1).map($e=>$e.id);Et(Be)}}else{const xe=me.filter(ke=>ke.shouldDisplay!==!1).map(ke=>ke.id);st(new Set(xe));const Re=me.filter(ke=>ke.shouldVisible!==!1).map(ke=>ke.id);Et(Re)}}catch{const xe=me.filter(ke=>ke.shouldDisplay!==!1).map(ke=>ke.id);st(new Set(xe));const Re=me.filter(ke=>ke.shouldVisible!==!1).map(ke=>ke.id);Et(Re)}we(!0)}}},[Ce,n,Ot,ve]),React.useEffect(()=>{if(ve)try{const le={visibleColumns:Array.from(Ve),columnOrder:xt};typeof window<"u"&&window.localStorage.setItem(`${Ot}:columns`,JSON.stringify(le))}catch{}},[Ve,xt,Ot,ve]);const[ut,wt]=React.useState({}),Pt=({rowIndex:le,columnId:fe,rowData:me})=>{const Se=Array.isArray(p)?p:[p],xe={...me,...Object.fromEntries(Se.map(Be=>[Be,Be===fe]))},Re=me.id??`__row_${le}`;wt(Be=>({...Be,[Re]:{columnId:fe,rowData:xe}}));const ke=Ce.map((Be,$e)=>(Be.id??`__row_${$e}`)===Re?{...Be,...Object.fromEntries(Se.map(We=>[We,We===fe]))}:Be);ye(ke),Te(ke),W&&W({fullData:ke,updatedRow:xe})},Rt=le=>{var Se;const fe=Ce.findIndex(xe=>xe===le),me=le.id??`__row_${fe}`;return((Se=ut[me])==null?void 0:Se.columnId)||""};React.useEffect(()=>{const le=Math.ceil(Ce.length/ot);pt>0&&pt>=le&&nt(0)},[Ce.length,ot]);const yt=React.useMemo(()=>{const le=pt*ot,fe=le+ot;return Ce.slice(le,fe)},[Ce,pt,ot]),Mt=()=>{_t("");const le=It(je,et,"");ye(le)},gt=()=>{const le=It(je,et,mt);ye(le),nt(0)},Qt=le=>{const fe=new Set(Ve);fe.has(le)?fe.size>1&&fe.delete(le):fe.add(le),st(fe)},Kt=(le,fe=null)=>{const me=fe?`${le}-${fe}`:`${le}`,Se=new Set(Tt);Se.has(me)?Se.delete(me):(Array.from(Se).forEach(xe=>{xe.startsWith(`${le}`)&&Se.delete(xe)}),Se.add(me)),Dt(Se)},Xt=le=>{Xe(Ke===le?null:le)};React.useEffect(()=>{const le=fe=>{var ke,Be,$e,Ge;if(!Ke)return;const me=fe.target,Se=((ke=Wt.current)==null?void 0:ke.contains(me))??!1,xe=((Be=Y.current)==null?void 0:Be.contains(me))??!1,Re=((Ge=($e=fe.target)==null?void 0:$e.closest)==null?void 0:Ge.call($e,".dropdown-trigger"))!=null;!Se&&!xe&&!Re&&Xe(null)};return document.addEventListener("click",le),()=>{document.removeEventListener("click",le)}},[Ke]),React.useMemo(()=>new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}),[]);const er=(le,fe)=>{if(le==null)return 1;if(fe==null)return-1;const me=new Date(le),Se=new Date(fe);return!isNaN(me.getTime())&&!isNaN(Se.getTime())?me.getTime()-Se.getTime():!isNaN(Number(le))&&!isNaN(Number(fe))?Number(le)-Number(fe):String(le).localeCompare(String(fe),void 0,{numeric:!0,sensitivity:"base"})},Ht=(le,fe,me)=>{const Se=getColumnValue(le==null?void 0:le[me]),xe=getColumnValue(fe==null?void 0:fe[me]);return er(Se,xe)},tr=(le,fe)=>{for(let me=1;me<le.length;me++)if(Ht(le[me-1],le[me],fe)>0)return!1;return!0},rr=(le,fe)=>{for(let me=1;me<le.length;me++)if(Ht(le[me-1],le[me],fe)<0)return!1;return!0},It=(le,fe=et,me=mt)=>{let Se=[...le];if(me&&me.trim()){const xe=me.toLowerCase();Se=Se.filter(Re=>Object.entries(Re).some(([ke,Be])=>Ve.has(ke)?String(Be??"").toLowerCase().includes(xe):!1))}return Object.entries(fe||{}).forEach(([xe,Re])=>{const{value:ke,operator:Be}=Re,$e=(ke??"").toLowerCase();Se=Se.filter(Ge=>{const We=Ge[xe],Ze=String(getColumnValue(We)??"").toLowerCase();switch((Be||"").toString()){case"contains":return Ze.includes($e);case"equals":return Ze===$e;case"startsWith":return Ze.startsWith($e);case"endsWith":return Ze.endsWith($e);case"does not contain":return!Ze.includes($e);case"does not equal":return Ze!==$e;case"is any of":return ke.split(",").map(ft=>ft.trim().toLowerCase()).includes(Ze);case"Date Range":case"dateRange":{if(!ke)return!0;const ft=ke.split(" - ").map(dr=>dr.trim());if(ft.length!==2)return!1;const Ft=new Date(ft[0]),Lt=new Date(ft[1]);if(isNaN(Ft.getTime())||isNaN(Lt.getTime())||(Ft.setHours(0,0,0,0),Lt.setHours(23,59,59,999),!We))return!1;const jt=new Date(We);return isNaN(jt.getTime())?!1:(jt.setHours(0,0,0,0),jt>=Ft&&jt<=Lt)}default:return!0}})}),Se},nr=le=>{if(!je||je.length===0)return;const fe=Object.keys(et).length>0,me=mt.trim().length>0,Se=fe||me?Ce:je;let xe;(he==null?void 0:he.column)===le?xe=he.direction==="asc"?"desc":"asc":tr(Se,le)?xe="desc":(rr(Se,le),xe="asc"),ge({column:le,direction:xe});const Re=[...je].sort((Be,$e)=>{const Ge=Ht(Be,$e,le);return xe==="asc"?Ge:-Ge});Te(Re);const ke=It(Re);ye(ke),nt(0)},Yt=()=>{if(!it){qe(!1),rt(""),Je(""),nt(0);return}if(at==="Date Range")if(lt&&lt.startDate&&lt.endDate)$t(it,void 0,"Date Range");else{qe(!0);return}else ht&&ht.trim()!==""&&$t(it,ht,at);qe(!1),rt(""),Je(""),dt(null),nt(0)},$t=(le,fe,me)=>{if(me==="Date Range"&&lt&&le){const{startDate:Se,endDate:xe}=lt;if(!Se||!xe){console.warn("Invalid date range:",Se,xe);return}const Re=new Date(Se);Re.setHours(0,0,0,0);const ke=new Date(xe);ke.setHours(23,59,59,999);const Be=je.filter($e=>{const Ge=$e[le];if(!Ge)return!1;const We=new Date(Ge);return isNaN(We.getTime())?!1:(We.setHours(0,0,0,0),We>=Re&&We<=ke)});ye(Be),nt(0),ct({...et,[le]:{value:`${Se} - ${xe}`,operator:"Date Range"}}),qe(!1),Xe(null),dt(null);return}if(le){const Se={...et};if(fe===""&&(me==="contains"||me==="equals")){Je(le),vt(me||at),rt(""),qe(!0);return}else fe&&fe.trim()!==""?Se[le]={value:fe,operator:me||at}:delete Se[le];ct(Se);let xe=[...je];Object.entries(Se).forEach(([Re,ke])=>{const{value:Be,operator:$e}=ke;xe=xe.filter(Ge=>{const We=String(getColumnValue(Ge[Re])||"").toLowerCase(),Ze=Be.toLowerCase();switch($e){case"contains":return We.includes(Ze);case"equals":return We===Ze;case"startsWith":return We.startsWith(Ze);case"endsWith":return We.endsWith(Ze);case"does not contain":return!We.includes(Ze);case"does not equal":return We!==Ze;case"is any of":return Be.split(",").map(ft=>ft.trim().toLowerCase()).includes(We);default:return!0}})}),ye(xe),nt(0),qe(!1)}},ir=le=>{le.key==="Enter"&&$t()};useEscapeKey(()=>{Xe(null),qe(!1)});const Gt=(le,fe="")=>{const me=Se=>{const xe=new Set(te);xe.has(Se)?xe.delete(Se):xe.add(Se),ne(xe)};if(Array.isArray(le)){const Se=Array.from(new Set(le.reduce((xe,Re)=>typeof Re=="object"&&Re!==null?[...xe,...Object.keys(Re)]:xe,[])));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(xe=>jsxRuntimeExports.jsx("th",{children:xe.charAt(0).toUpperCase()+xe.slice(1)},xe))})}),jsxRuntimeExports.jsx("tbody",{children:le.map((xe,Re)=>jsxRuntimeExports.jsx("tr",{children:Se.map(ke=>jsxRuntimeExports.jsx("td",{children:typeof xe[ke]=="object"&&xe[ke]!==null?jsxRuntimeExports.jsxs("div",{className:"flex-row-center",children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>me(`${fe}-${Re}-${ke}`),children:te.has(`${fe}-${Re}-${ke}`)?"▼":"▶"}),te.has(`${fe}-${Re}-${ke}`)&&Gt(xe[ke],`${fe}-${Re}-${ke}`)]}):String(xe[ke]||"")},`${fe}-${Re}-${ke}`))},`${fe}-${Re}`))})]})})})}else if(typeof le=="object"&&le!==null)return jsxRuntimeExports.jsx("div",{className:"nested-object",children:jsxRuntimeExports.jsxs("table",{className:"custom-table nested",children:[jsxRuntimeExports.jsx("thead",{style:{zIndex:20001,position:"sticky",top:0,background:"#f5f5f5"},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(le).map(([Se,xe])=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"table-cell",children:jsxRuntimeExports.jsx("strong",{children:Se})}),jsxRuntimeExports.jsx("td",{className:"table-cell",children:typeof xe=="object"&&xe!==null?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>me(`${fe}-${Se}`),children:te.has(`${fe}-${Se}`)?"▼":"▶"}),te.has(`${fe}-${Se}`)&&Gt(xe,`${fe}-${Se}`)]}):String(xe)})]},`${fe}-${Se}`))})]})});return jsxRuntimeExports.jsx("span",{children:String(le)})},Zt=le=>{var fe;if(le){const me=(fe=le.parentElement)==null?void 0:fe.querySelector(".dropdown-trigger");if(!me)return;const Se=me.getBoundingClientRect(),xe=window.innerHeight,Re=window.innerWidth,ke=le.offsetHeight,Be=le.offsetWidth,$e=Se.bottom+ke>xe,Ge=Se.left+Be>Re,We=Se.left-Be<0;let Ze,ft;$e?(Ze=Se.top-ke,le.classList.add("adjust-top")):(Ze=Se.bottom,le.classList.remove("adjust-top")),Ge?(ft=Se.right-Be,le.classList.add("adjust-left"),le.classList.remove("adjust-right")):We?(ft=Se.left,le.classList.add("adjust-right"),le.classList.remove("adjust-left")):(ft=Se.left,le.classList.remove("adjust-left"),le.classList.remove("adjust-right")),le.style.top=`${Ze}px`,le.style.left=`${ft}px`,le.classList.add("dropdown-fixed-position")}};React.useEffect(()=>{const le=fe=>{Qe&&Nt.current&&!Nt.current.contains(fe.target)&&qe(!1)};return document.addEventListener("mousedown",le),()=>{document.removeEventListener("mousedown",le)}},[Qe]),React.useEffect(()=>()=>{},[Ke]),React.useEffect(()=>{const le=fe=>{Ct&&se.current&&!se.current.contains(fe.target)&&bt(!1)};return document.addEventListener("mousedown",le),()=>{document.removeEventListener("mousedown",le)}},[Ct]);const ar=(le,fe)=>{le.preventDefault();const me=le.pageX,Se=Pe[fe]||150,xe=ke=>{const Be=Math.max(100,Se+(ke.pageX-me));ae($e=>({...$e,[fe]:Be}))},Re=()=>{document.removeEventListener("mousemove",xe),document.removeEventListener("mouseup",Re)};document.addEventListener("mousemove",xe),document.addEventListener("mouseup",Re)},qt=(le,fe,me)=>{var xe;const Se=String(fe??"");if(typeof q=="function")try{if(q(me??{},le))return!0}catch{}return F!=null&&F.includes(le)?B!=null&&B[le]?B[le].includes(Se):!0:!!((xe=B==null?void 0:B._global_)!=null&&xe.includes(Se))},sr=(le,fe)=>{qt(fe,le[fe],le)&&H&&H(le,fe)},zt=yt.some(le=>Array.from(Ve).some(fe=>Array.isArray(le[fe])&&le[fe].length>0&&le[fe].some(me=>typeof me=="object"&&me!==null))),or=le=>{const fe=/[\\/:*?"<>|]/g;return le.replace(fe,"").trim()},lr=le=>{try{const fe=window.prompt("Enter file name",le);if(!fe)return le;const me=or(fe);return me.length===0?le:me.endsWith(".xlsx")?me:`${me}.xlsx`}catch{return le}},Ut=(le=!1)=>{const fe=ie.filter($e=>Ve.has($e.id));let me;if(le||!(Ce&&Ce.length>0))me=je;else{const $e=Array.from(Ue);if($e.length>0){let Ge;if(typeof Ee=="function")Ge=Ee;else{const We=Ee??"id";Ge=Ze=>Ze[We]}me=Ce.filter(We=>$e.includes(Ge(We)))}else me=Ce}const Se=me.map($e=>fe.reduce((Ge,We)=>(Ge[We.label||We.id]=getColumnValue($e[We.id]),Ge),{})),xe=utils.json_to_sheet(Se),Re=utils.book_new();utils.book_append_sheet(Re,xe,"Data");let ke;le||me===je?ke="all-data-export.xlsx":Array.from(Ue).length>0?ke="selected-rows-export.xlsx":ke="filtered-search-export.xlsx";const Be=lr(ke);writeFileSync(Re,Be)},cr=()=>jsxRuntimeExports.jsxs("div",{className:z?"esign-table-container":"table-container",children:[jsxRuntimeExports.jsx("div",{className:"table-scroll-container",children:Ve.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:[zt&&jsxRuntimeExports.jsx("th",{className:"expand-column"}),i&&jsxRuntimeExports.jsx("th",{className:"checkbox-column",children:o?jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:Ue.size>0,onChange:()=>{Fe(new Set)}}):jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:yt.length>0&&yt.every((le,fe)=>{const me=Ye(le,pt*ot+fe);return me!==void 0&&Ue.has(me)}),onChange:le=>{const fe=new Set(Ue),me=je&&je.length>0?je:Ce||[],Se=yt.map(Re=>{const ke=Ye(Re);if(ke!==void 0)return ke;const Be=me.indexOf(Re);return Be>=0?`__row_${Be}`:void 0}).filter(Re=>Re!==void 0),xe=new Set(Se);if(le){if(Fe(new Set(xe)),typeof ce=="function"){const Re=Array.from(xe),ke=Re.map(Be=>me.find($e=>{const Ge=Ye($e);return Ge!==void 0&&(Ge===Be||String(Ge)===String(Be))})).filter(Boolean);try{ce.length===1?ce({ids:Re,rows:ke,toggledId:void 0,toggledRow:void 0,toggledChecked:!0}):ce(ke)}catch{try{ce(ke)}catch{}}}}else{const Re=new Set(fe);if(Se.forEach(ke=>Re.delete(ke)),Fe(Re),typeof ce=="function"){const ke=Se,Be=ke.map($e=>me.find(Ge=>{const We=Ye(Ge);return We!==void 0&&(We===$e||String(We)===String($e))})).filter(Boolean);try{ce.length===1?ce({ids:Array.from(Re),rows:Array.from(Re).map($e=>me.find(Ge=>{const We=Ye(Ge);return We!==void 0&&(We===$e||String(We)===String($e))})).filter(Boolean),unselectedIds:ke,unselectedRows:Be,toggledId:void 0,toggledRow:void 0,toggledChecked:!1}):ce(Array.from(Re).map($e=>me.find(Ge=>{const We=Ye(Ge);return We!==void 0&&(We===$e||String(We)===String($e))})).filter(Boolean))}catch{try{ce([])}catch{}}}}}})}),xt.filter(le=>ie.find(me=>me.id===le)&&Ve.has(le)).map(le=>{const fe=ie.find(me=>me.id===le);return fe?jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:Pe[fe.id]?`${Pe[fe.id]}px`:fe.width||"150px",minWidth:"80px",maxWidth:"600px"},children:jsxRuntimeExports.jsxs("div",{className:"column-header",children:[jsxRuntimeExports.jsxs("span",{className:"column-label-with-info",children:[fe.label,fe.tooltip&&jsxRuntimeExports.jsx("img",{src:InfoIcon,alt:"info",title:fe.tooltip,width:14,height:14,className:"info-icon"})]}),jsxRuntimeExports.jsxs("div",{className:"column-actions",children:[N&&jsxRuntimeExports.jsx("img",{src:SortIcon,alt:"Sort",title:"Sort",width:14,height:14,onClick:()=>nr(fe.id),style:{cursor:"pointer",transition:"transform 0.2s ease-in-out",transform:(he==null?void 0:he.column)===fe.id?he.direction==="asc"?"rotate(0deg)":"rotate(180deg)":"none",filter:(he==null?void 0:he.column)===fe.id?"brightness(0.6)":"none"}}),L&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:fe.id===Ke?Wt:null,children:[jsxRuntimeExports.jsx("span",{className:`dropdown-trigger ${et[fe.id]?"filter-active":""}`,onClick:me=>{me.stopPropagation(),Xt(fe.id)},title:et[fe.id]?`Filter: ${et[fe.id].operator} "${et[fe.id].value}"`:"Filter options",children:"⋮"}),Ke===fe.id&&jsxRuntimeExports.jsxs("div",{className:"dropdown-menu",ref:me=>{me&&setTimeout(()=>Zt(me),0)},children:[jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Je(fe.id),qe(!0),Xe(null)},children:"Filter"}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{$t(fe.id,"","contains"),Xe(null)},children:"Contains..."}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{$t(fe.id,"","equals"),Xe(null)},children:"Equals..."}),et[fe.id]&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{const me={...et};delete me[fe.id],ct(me),rt(""),Je("");const Se=It(je,me,mt);ye(Se),nt(0),Xe(null)},children:"Clear Filter"}),Object.keys(et).length>0&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{ct({}),rt(""),Je(""),dt(null),_t(""),ye(je),nt(0),Xe(null)},children:"Clear All Filters"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"column-resizer",onMouseDown:me=>ar(me,fe.id)})]})},fe.id):null}),(g||S||b||E||_||d)&&jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:"150px",textAlign:"center"},children:"Action"})]}),be&&jsxRuntimeExports.jsxs("tr",{className:"filter-row",children:[zt&&jsxRuntimeExports.jsx("td",{}),i&&jsxRuntimeExports.jsx("td",{}),xt.filter(le=>ie.find(me=>me.id===le)&&Ve.has(le)).map(le=>{var me;const fe=ie.find(Se=>Se.id===le);return fe?jsxRuntimeExports.jsxs("td",{style:{position:"relative"},children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:`Search ${fe.label}`,value:((me=et[fe.id])==null?void 0:me.value)||"",onChange:Se=>{const xe=Se.target.value;rt(xe),Je(fe.id);const Re={...et};xe===""?delete Re[fe.id]:Re[fe.id]={value:xe,operator:"contains"},ct(Re);const ke=It(je,Re,mt);ye(ke),nt(0)},className:"filter-input-with-clear filter-input-padding"}),et[fe.id]&&jsxRuntimeExports.jsx("span",{className:"filter-clear-icon-inside",onClick:()=>{const Se={...et};delete Se[fe.id],ct(Se),rt(""),Je("");const xe=It(je,Se,mt);ye(xe),nt(0)},title:"Clear",children:"×"})]},`filter-${fe.id}`):null}),(g||S||b||E||_||d)&&jsxRuntimeExports.jsx("td",{})]})]}),jsxRuntimeExports.jsx("tbody",{children:yt.length===0?jsxRuntimeExports.jsx("tr",{className:"no-records-row",children:jsxRuntimeExports.jsx("td",{colSpan:(zt?1:0)+(i?1:0)+Array.from(Ve).length+(g||S||b||E||_||d?1:0),className:"no-records-cell",children:mt.trim()||Object.keys(et).length>0?"No records found for the search criteria":"No Data found"})}):yt.map((le,fe)=>{const me=typeof pe=="function"?pe(le):!1;return jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("tr",{onMouseEnter:()=>Le(pt*ot+fe),onMouseLeave:()=>Le(null),className:(le.isNewRow?"table-new-row":fe%2===0?`table-row-even ${le.hasError?"row-error":le.isModified?"row-invalid":""}`:`table-row-odd ${le.hasError?"row-error":le.isModified?"row-invalid":""}`)+(ze===pt*ot+fe?" row-hovered":"")+(me?" row-disabled":""),title:le.rowMessage||"",children:[zt&&jsxRuntimeExports.jsx("td",{className:"expand-column",children:Array.from(Ve).some(Se=>Array.isArray(le[Se])&&le[Se].length>0&&le[Se].some(xe=>typeof xe=="object"&&xe!==null))&&jsxRuntimeExports.jsx("button",{className:"expand-button",onClick:()=>Kt(fe),children:Array.from(Tt).some(Se=>Se.startsWith(`${fe}`))?"▼":"▶"})}),i&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:(()=>{const Se=Ye(le,pt*ot+fe);return Se!==void 0&&Ue.has(Se)})(),onChange:Se=>{if(me)return;const xe=Ye(le,pt*ot+fe);if(xe===void 0)return;let Re;o?(Re=Se?new Set([xe]):new Set,Fe(Re)):(Re=new Set(Ue),Se?Re.add(xe):Re.delete(xe),Fe(Re));const ke=je&&je.length>0?je:Ce||[],Be=Array.from(Re),$e=Be.map(We=>{if(typeof We=="string"&&We.startsWith("__row_")){const Ze=parseInt(We.slice(6),10);return!isNaN(Ze)&&Ze>=0&&Ze<ke.length?ke[Ze]:void 0}return ke.find(Ze=>{const ft=Ye(Ze);return ft!==void 0&&(ft===We||String(ft)===String(We))})}).filter(Boolean),Ge={ids:Be,rows:$e,toggledId:xe,toggledRow:le,toggledChecked:!!Se};if(typeof ce=="function")try{ce.length===1?ce(Ge):ce($e)}catch{try{ce($e)}catch{}}},disabled:me})}),l&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:"selected",checked:(f==null?void 0:f(fe))==="selected",onChange:()=>u==null?void 0:u({rowIndex:fe,columnId:"selected",rowData:le})})})}),xt.filter(Se=>ie.find(Re=>Re.id===Se)&&Ve.has(Se)).map(Se=>{const xe=ie.find(Re=>Re.id===Se);return xe?jsxRuntimeExports.jsx("td",{style:{width:Pe[xe.id]?`${Pe[xe.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},className:`table-cell ${qt(xe.id,le[xe.id],le)?"ce-clickable-cell":""}`,onClick:()=>{qt(xe.id,le[xe.id],le)?sr(le,xe.id):Array.isArray(le[xe.id])&&le[xe.id].length>0&&Kt(fe,xe.id)},children:le.isNewRow?jsxRuntimeExports.jsx(AddNewRowCell,{row:le,column:xe,colId:Se}):React.isValidElement(le[xe.id])?le[xe.id]:(Array.isArray(p)?p.includes(xe.id):p===xe.id)?jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:xe.id,checked:Rt(le)===xe.id,onChange:()=>Pt({rowIndex:fe,columnId:xe.id,rowData:le})})}):Array.isArray(le[xe.id])?`${le[xe.id].length}`:typeof le[xe.id]=="object"&&le[xe.id]!==null?Object.entries(le[xe.id]).map(([Re,ke])=>`${Re}: ${ke}`).join(", "):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(le[xe.id]??"")})},xe.id):null}),(g||S||b||E||_||d)&&jsxRuntimeExports.jsx("td",{className:"table-cell center-text",children:jsxRuntimeExports.jsxs("div",{className:"action-flex",children:[g&&jsxRuntimeExports.jsx("img",{src:Edit,alt:"Edit",title:"Edit",width:20,height:20,style:{cursor:"pointer"},onClick:()=>C==null?void 0:C(le,fe)}),S&&jsxRuntimeExports.jsx("img",{src:Reassign,alt:"Reassign",width:20,height:20,style:{cursor:"pointer"},onClick:I}),b&&jsxRuntimeExports.jsx("img",{src:Cancel,alt:"Cancel",width:20,height:20,style:{cursor:"pointer"},onClick:()=>j==null?void 0:j(le,fe)}),E&&jsxRuntimeExports.jsx("img",{src:Approve,alt:"Approve",width:20,height:20,style:{cursor:"pointer"},onClick:()=>O==null?void 0:O(le,fe)}),_&&jsxRuntimeExports.jsx("img",{src:Delete,alt:"Delete",width:20,height:20,style:{cursor:"pointer"},onClick:()=>A==null?void 0:A(le,fe)}),d&&jsxRuntimeExports.jsx("img",{src:Add,alt:"Add",width:20,height:20,style:{cursor:"pointer"},onClick:R})]})})]}),Array.from(Tt).map(Se=>{const[xe,Re]=Se.split("-");if(Number(xe)===fe){const ke=Re?{[Re]:le[Re]}:Object.keys(le).filter(Be=>Array.isArray(le[Be])||typeof le[Be]=="object").reduce((Be,$e)=>({...Be,[$e]:le[$e]}),{});return jsxRuntimeExports.jsx("tr",{className:"expanded-row",children:jsxRuntimeExports.jsx("td",{colSpan:Ve.size+2,className:"expanded-cell",children:Object.entries(ke).map(([Be,$e],Ge)=>jsxRuntimeExports.jsxs("div",{className:`expanded-section ${Ge%2===0?"expanded-section-even":"expanded-section-odd"}`,style:{backgroundColor:Ge%2===0?"#e8f5e9":"#e3f2fd",padding:"10px",marginBottom:"10px",borderRadius:"5px"},children:[jsxRuntimeExports.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:Be.charAt(0).toUpperCase()+Be.slice(1)}),Gt($e)]},Be))})},`expanded-${Se}`)}return null})]},fe)})})]})}),Z&&jsxRuntimeExports.jsxs("div",{className:"pagination-container",children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"40px"},children:[jsxRuntimeExports.jsx(EntriesInfo,{dataLength:Ce.length,currentPage:pt,rowsPerPage:ot}),jsxRuntimeExports.jsx(RowsPerPageSelector,{rowsPerPage:ot,setRowsPerPage:kt,setCurrentPage:tt,pageSizeOptions:ee})]}),jsxRuntimeExports.jsx(PaginationControls,{currentPage:pt,totalPages:Math.ceil(Ce.length/ot),setCurrentPage:tt})]}),Qe&&jsxRuntimeExports.jsx("div",{className:"filter-modal",children:jsxRuntimeExports.jsxs("div",{className:"filter-modal-content",ref:Nt,onKeyDown:ir,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:()=>qe(!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:it,onChange:le=>Je(le.target.value),className:"filter-select","aria-label":"Filter column",title:"Select column to filter",children:ie.map(le=>jsxRuntimeExports.jsx("option",{value:le.id,children:le.label},le.id))})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Operator:"}),jsxRuntimeExports.jsxs("select",{value:at,onChange:le=>vt(le.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:"Date Range",children:"Date Range"}),jsxRuntimeExports.jsx("option",{value:"is any of",children:"Is any of"})]}),at==="Date Range"&&jsxRuntimeExports.jsx("div",{style:{marginTop:"10px"},children:jsxRuntimeExports.jsx(CEDateRangePicker,{mode:"range",onChange:le=>{dt({startDate:le.startDate,endDate:le.endDate})}})})]}),at!=="Date Range"&&jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Value:"}),jsxRuntimeExports.jsx("input",{type:"text",value:ht,onChange:le=>rt(le.target.value),placeholder:"Enter filter value",title:"Filter value",className:"filter-input",autoFocus:!0,onKeyDown:le=>{le.key==="Enter"&&Yt(),le.key==="Escape"&&qe(!1)}})]}),Object.keys(et).length>0&&jsxRuntimeExports.jsxs("div",{className:"active-filters-summary",children:[jsxRuntimeExports.jsx("div",{className:"active-filters-header",children:"Active Filters:"}),Object.entries(et).map(([le,fe])=>{const me=ie.find(Se=>Se.id===le);return jsxRuntimeExports.jsxs("div",{className:"active-filter-item",children:[jsxRuntimeExports.jsxs("span",{children:[(me==null?void 0:me.label)||le,": "]}),jsxRuntimeExports.jsx("span",{className:"filter-operator",children:fe.operator}),jsxRuntimeExports.jsxs("span",{className:"filter-value",children:['"',fe.value,'"']})]},le)})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-footer",children:[jsxRuntimeExports.jsx(CEButton,{onClick:()=>{ct({}),ye(je),nt(0),qe(!1)},className:"clear-filters-button",variant:"outlined",children:"Clear All"}),jsxRuntimeExports.jsx(CEButton,{onClick:Yt,className:"apply-filter-button",variant:"primary",children:"Apply Filter"})]})]})})]}),ur=()=>{M?(De(!0),Promise.resolve(M()).finally(()=>{ct({});try{const le=ie.filter(me=>me.shouldDisplay!==!1).map(me=>me.id),fe=ie.filter(me=>me.shouldVisible!==!1).map(me=>me.id);st(new Set(le)),Et(fe),bt(!1)}catch{}De(!1)})):(De(!0),setTimeout(()=>{ye(t),Te(t),nt(0),_t(""),rt(""),Je(""),ct({}),ge(null);try{const le=ie.filter(me=>me.shouldDisplay!==!1).map(me=>me.id),fe=ie.filter(me=>me.shouldVisible!==!1).map(me=>me.id);st(new Set(le)),Et(fe),bt(!1)}catch{}De(!1)},300))},pr=ie.filter(le=>le.shouldVisible!==!1).every(le=>Ve.has(le.id));return jsxRuntimeExports.jsxs("div",{className:`datatable-wrapper${_e?" 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:[m&&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 le=!be;Ne(le),le||(ct({}),ye(je),nt(0),_t(""))}}),mt&&jsxRuntimeExports.jsx("button",{className:"search-cancel-button",onClick:()=>{_t(""),Mt()},children:"×"})]}),U&&jsxRuntimeExports.jsx("img",{src:ShowOrHideColumn,alt:"Columns",title:"Show/Hide Columns",width:20,height:20,style:{cursor:"pointer",fill:"#808080"},onClick:()=>bt(!0)}),Object.keys(et).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:()=>{ct({}),ye(je),nt(0)}}),T&&jsxRuntimeExports.jsx("img",{src:FileOpenRounded,alt:"Export",title:"Export All to Excel",width:20,height:20,className:"ce-export-icon",style:{cursor:"pointer",fill:"#808080"},onClick:()=>Ut(!0)}),J&&jsxRuntimeExports.jsx("img",{src:ReloadIcon,alt:"Reload",title:"Reload Data",width:20,height:20,className:"ce-reload-icon",style:{cursor:"pointer",fill:"#808080"},onClick:ur}),K&&jsxRuntimeExports.jsxs("div",{ref:Y,children:[jsxRuntimeExports.jsx("img",{src:ExportIcon,alt:"Download",title:"Download",width:20,height:20,className:"ce-export-icon icon-button dropdown-trigger",style:{cursor:"pointer"},onClick:le=>{le.stopPropagation(),Q&&Q.length>0?Xt("download"):Ut()}}),(()=>{const le=Q??[],fe=le.find(xe=>xe.usedefault===!0),me=le.filter(xe=>!xe.usedefault);let Se=[];return le.length>0?fe?Se=[{label:fe.label,onClick:()=>{fe.forceAll?Ut(!0):Ut()}},...me]:Se=[...me]:Se=[],Ke==="download"&&Se.length>0&&jsxRuntimeExports.jsx("div",{className:"dropdown-menu",ref:xe=>{xe&&setTimeout(()=>Zt(xe),0)},children:Se.map((xe,Re)=>jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:ke=>{ke.stopPropagation();try{xe.onClick()}finally{Xe(null)}},children:xe.label},Re))})})()]}),V&&jsxRuntimeExports.jsx("button",{className:"fullscreen-button",onClick:_e?He:Me,title:_e?"Exit Full Screen":"Full Screen",children:_e?"⤫":"⤢"})]})]}),Ct&&jsxRuntimeExports.jsx("div",{className:"column-modal",children:jsxRuntimeExports.jsxs("div",{className:"column-modal-content",ref:se,children:[jsxRuntimeExports.jsx("div",{className:"column-modal-header",children:jsxRuntimeExports.jsx("button",{className:"modal-close-button",onClick:()=>bt(!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:pr,onChange:le=>{st(le?new Set(ie.filter(fe=>fe.shouldVisible!==!1).map(fe=>fe.id)):new Set)}})})}),jsxRuntimeExports.jsx("div",{className:"column-list-container",children:xt.filter(le=>ie.find(fe=>fe.id===le&&fe.shouldVisible!==!1)).map(le=>{const fe=ie.find(me=>me.id===le);return fe?jsxRuntimeExports.jsxs("div",{className:`column-item ${St===fe.id?"dragging":""}`,draggable:!0,onDragStart:me=>{Vt(fe.id),me.dataTransfer.effectAllowed="move",me.dataTransfer.setData("text/plain",fe.id)},onDragEnd:()=>Vt(null),onDragOver:me=>{me.preventDefault(),me.dataTransfer.dropEffect="move"},onDragEnter:me=>{me.preventDefault(),me.currentTarget.classList.add("drag-over")},onDragLeave:me=>{me.currentTarget.classList.remove("drag-over")},onDrop:me=>{if(me.preventDefault(),me.currentTarget.classList.remove("drag-over"),St&&St!==fe.id){const Se=[...xt],xe=Se.indexOf(St),Re=Se.indexOf(fe.id);xe!==-1&&Re!==-1&&(Se.splice(xe,1),Se.splice(Re,0,St),Et(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:fe.label??fe.id,checked:Ve.has(fe.id),onChange:()=>Qt(fe.id)})]},fe.id):null})})]})}),Ie?jsxRuntimeExports.jsx(CESkeletonTable,{columns:ie.length||5,rows:ot||10}):cr()]})},DateInputPart=({value:e,onChange:t,max:n,min:i,length:o,placeholder:l,className:u,onClick:f,id:p,name:m})=>{const d=React.useRef(null),g=S=>{const b=S.target.value.replace(/\D/g,"");if(b.length<=o){if(b.length===1){const T=parseInt(b);if(n===12&&T>1){t(`0${T}`);return}if(n===31&&T>3){t(`0${T}`);return}}if(b.length===2){const T=parseInt(b);T>=i&&T<=n&&t(b);return}t(b)}},_=()=>{var S;(S=d.current)==null||S.select()},E=()=>{e.length===1&&t(e.padStart(2,"0"))};return jsxRuntimeExports.jsx("input",{ref:d,type:"text",value:e,onChange:g,onFocus:_,onBlur:E,id:p,name:m,onClick:f,maxLength:o,className:u??"date-input-part",placeholder:l})},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"],CALENDAR_HEIGHT_PX=290,GAP_PX=8,CEDatePicker=({onChange:e,label:t="Calendar",value:n,focused:i=!1,id:o,name:l,disablePastDates:u=!1,minDate:f,maxDate:p})=>{const[m,d]=React.useState(!1),[g,_]=React.useState(null),[E,S]=React.useState(new Date),[b,T]=React.useState(!1),[C,R]=React.useState({start:2020,end:2031}),[A,O]=React.useState("left"),[I,j]=React.useState(0),D=React.useRef(null),[F,B]=React.useState(i),[q,H]=React.useState(""),[M,K]=React.useState(""),[Q,J]=React.useState(""),[V,U]=React.useState(!0),[N,L]=React.useState({left:0,top:0}),G=React.useMemo(()=>{if(!f)return null;const Te=typeof f=="string"?new Date(f):new Date(f);return Te.setHours(0,0,0,0),Te},[f]),W=React.useMemo(()=>{if(!p)return null;const Te=typeof p=="string"?new Date(p):new Date(p);return Te.setHours(0,0,0,0),Te},[p]),z=React.useMemo(()=>{if(!u)return null;const Te=new Date;return Te.setHours(0,0,0,0),Te},[u]),Z=React.useCallback(()=>{d(!1),!q&&!M&&!Q&&B(!1)},[M,q,Q]);useEscapeKey(Z);const X=React.useRef(void 0);React.useEffect(()=>{if(n){const[Te,be,Ne]=n.split("/"),ze=new Date(`${Ne}-${Te}-${be}`);if(!isNaN(ze.getTime())){_(ze),S(Le=>Le.getFullYear()!==ze.getFullYear()||Le.getMonth()!==ze.getMonth()||Le.getDate()!==ze.getDate()?ze:Le),H(Te),K(be),J(Ne),U(!0),X.current=n;return}}X.current&&S(new Date),_(null),H(""),K(""),J(""),U(!0),X.current=n},[n,Z]);const ee=React.useRef(null),ce=()=>{const Te=D.current;if(!Te)return;const be=Te.getBoundingClientRect(),Ne=window.scrollY||window.pageYOffset,Le=(window.innerHeight||document.documentElement.clientHeight)-be.bottom,Ue=be.top;Le<CALENDAR_HEIGHT_PX&&Ue>=CALENDAR_HEIGHT_PX?L({left:be.left+window.scrollX,top:be.top+Ne-CALENDAR_HEIGHT_PX-GAP_PX}):L({left:be.left+window.scrollX,top:be.bottom+Ne+GAP_PX})};React.useEffect(()=>{if(!ee.current)return;const Te=ee.current;Te.style.position="absolute",Te.style.left=`${Math.max(8,N.left)}px`,Te.style.top=`${N.top}px`,Te.style.zIndex="99999"},[N,m]);const de=()=>{d(Te=>{const be=!Te;if(be){const Ne=g||new Date;S(Ne),q||H(String(Ne.getMonth()+1).padStart(2,"0")),M||K(String(Ne.getDate()).padStart(2,"0")),Q||J(String(Ne.getFullYear())),setTimeout(ce,0)}return be})};React.useEffect(()=>{if(!m)return;const Te=()=>ce(),be=()=>ce();return window.addEventListener("scroll",Te,!0),window.addEventListener("resize",be),()=>{window.removeEventListener("scroll",Te,!0),window.removeEventListener("resize",be)}},[m]),React.useEffect(()=>{const Te=be=>{const Ne=be.target;if(!D.current)return;const ze=document.getElementById("ce-datepicker-portal"),Le=D.current.contains(Ne),Ue=ze?ze.contains(Ne):!1;!Le&&!Ue&&Z()};return document.addEventListener("mousedown",Te),()=>document.removeEventListener("mousedown",Te)},[q,M,Q,Z]);const Ee=Te=>{const be=new Date(E.getFullYear(),E.getMonth(),Te);if(be.setHours(0,0,0,0),u&&z&&be.getTime()<z.getTime()||G&&be.getTime()<G.getTime()||W&&be.getTime()>W.getTime())return;_(be),S(be);const Ne=String(be.getMonth()+1).padStart(2,"0"),ze=String(be.getDate()).padStart(2,"0"),Le=String(be.getFullYear());H(Ne),K(ze),J(Le),U(!0),e(`${Ne}/${ze}/${Le}`),d(!1)},ue=Te=>{O(Te>0?"left":"right"),S(be=>{const Ne=new Date(be.getFullYear(),be.getMonth()+Te,1);return g&&H(String(Ne.getMonth()+1).padStart(2,"0")),j(ze=>ze+1),Ne})},pe=Te=>R(be=>({start:be.start+Te*10,end:be.end+Te*10})),Pe=Te=>{const be=new Date(Te,E.getMonth(),1);S(be),J(String(Te)),T(!1)},ae=()=>{const Te=new Date(E.getFullYear(),E.getMonth(),1),be=new Date(E.getFullYear(),E.getMonth()+1,0),Ne=Te.getDay(),ze=be.getDate(),Le=z,Ue=Ke=>Le?!g&&Le.getDate()===Ke&&Le.getMonth()===E.getMonth()&&Le.getFullYear()===E.getFullYear():!1,Fe=[];for(let Ke=0;Ke<Ne;Ke++)Fe.push(jsxRuntimeExports.jsx("div",{className:"dp-day empty"},`empty-${Ke}`));for(let Ke=1;Ke<=ze;Ke++){const Xe=(g==null?void 0:g.getDate())===Ke&&(g==null?void 0:g.getMonth())===E.getMonth()&&(g==null?void 0:g.getFullYear())===E.getFullYear(),Qe=new Date(E.getFullYear(),E.getMonth(),Ke);Qe.setHours(0,0,0,0);let qe=!1;u&&Le&&Qe.getTime()<Le.getTime()&&(qe=!0),G&&Qe.getTime()<G.getTime()&&(qe=!0),W&&Qe.getTime()>W.getTime()&&(qe=!0),Fe.push(jsxRuntimeExports.jsx("div",{className:`dp-day ${Xe?"selected":""} ${Ue(Ke)?"today":""} ${qe?"disabled":""}`,onClick:()=>{qe||Ee(Ke)},"aria-label":qe?"Date unavailable":"Select date","data-disabled":qe?"true":"false",tabIndex:qe?-1:0,children:Ke},Ke))}return Fe},Ce=(Te,be,Ne)=>{if(!Te||!be||!Ne){U(!1),S(new Date),_(null);return}const ze=`${Ne}-${Te}-${be}`,Le=new Date(ze);if(Le.setHours(0,0,0,0),Le.getFullYear()===parseInt(Ne,10)&&Le.getMonth()+1===parseInt(Te,10)&&Le.getDate()===parseInt(be,10)){if(u&&z&&Le.getTime()<z.getTime()||G&&Le.getTime()<G.getTime()||W&&Le.getTime()>W.getTime()){U(!1),_(null),S(new Date);return}_(Le),S(Le),U(!0),e(`${Te}/${be}/${Ne}`)}else U(!1),_(null),S(new Date),H(Te),K(be),J(Ne)},ye=jsxRuntimeExports.jsx("div",{className:"dp-wrapper",ref:D,children:jsxRuntimeExports.jsxs("div",{className:`dp-input-container ${F||m?"focused":""} ${g||q||M||Q?"has-value":""} ${V?"":"invalid"}`,children:[jsxRuntimeExports.jsx("div",{className:"dp-label floating",children:t}),jsxRuntimeExports.jsxs("div",{className:"dp-input-wrapper",onClick:()=>{B(!0)},children:[jsxRuntimeExports.jsx(DateInputPart,{value:q,onChange:Te=>{H(Te),Ce(Te,M,Q)},max:12,min:1,length:2,placeholder:"MM",onClick:de,id:o?`${o}-month`:void 0,name:l?`${l}-month`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx(DateInputPart,{value:M,onChange:Te=>{K(Te),Ce(q,Te,Q)},placeholder:"DD",max:31,min:1,length:2,onClick:de,id:o?`${o}-day`:void 0,name:l?`${l}-day`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx("input",{type:"text",value:Q,onChange:Te=>{const be=Te.target.value.replace(/\D/g,"");be.length<=4&&(J(be),be.length===4&&Ce(q,M,be))},onFocus:Te=>Te.target.select(),onBlur:()=>{Q.length===4&&Ce(q,M,Q)},className:"date-input-part",id:o?`${o}-year`:void 0,name:l?`${l}-year`:void 0,maxLength:4,placeholder:"YYYY"}),jsxRuntimeExports.jsx("span",{className:"dp-icon",onClick:de,children:jsxRuntimeExports.jsx("img",{src:DateRangeIcon,alt:"Calendar Icon"})})]})]})}),je=jsxRuntimeExports.jsxs("div",{id:"ce-datepicker-portal",className:"dp-calendar",ref:ee,role:"dialog","aria-modal":"true",children:[jsxRuntimeExports.jsxs("div",{className:"dp-header",children:[jsxRuntimeExports.jsxs("div",{className:"dp-title",onClick:()=>T(Te=>!Te),children:[b?`${C.start} - ${C.end}`:`${E.toLocaleString("default",{month:"long"})} ${E.getFullYear()}`,jsxRuntimeExports.jsx("button",{className:"dp-toggle-icon",children:"▾"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-controls",children:[jsxRuntimeExports.jsx("button",{onClick:()=>b?pe(-1):ue(-1),disabled:!b&&u&&E.getFullYear()===new Date().getFullYear()&&E.getMonth()===new Date().getMonth(),children:"‹"}),jsxRuntimeExports.jsx("button",{onClick:()=>b?pe(1):ue(1),disabled:!b&&!!W&&E.getFullYear()===W.getFullYear()&&E.getMonth()===W.getMonth(),children:"›"})]})]}),!b&&jsxRuntimeExports.jsx("div",{className:"dp-weekdays",children:WEEKDAYS.map(Te=>jsxRuntimeExports.jsx("div",{className:"dp-weekday",children:Te},Te))}),b?jsxRuntimeExports.jsx("div",{className:"dp-years-grid",children:Array.from({length:C.end-C.start+1},(Te,be)=>{const Ne=C.start+be;return jsxRuntimeExports.jsx("div",{className:"dp-year-item",onClick:()=>Pe(Ne),children:Ne},Ne)})}):jsxRuntimeExports.jsx("div",{className:`dp-days dp-slide-${A}`,children:ae()},I)]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ye,m&&ReactDOM.createPortal(je,document.body)]})},FieldsInput=({label:e,name:t,placeholder:n="",value:i="",onChange:o,size:l="medium"})=>{const[u,f]=React.useState(!1),[p,m]=React.useState(!1),d=getSizeStyle$1(l);React.useEffect(()=>{i&&i.trim().length>0&&m(!0)},[i]);const g=()=>{f(!0),m(!0)},_=S=>{f(!1),S.target.value.trim()||m(!1)},E=u||!!i;return jsxRuntimeExports.jsxs("div",{className:`floating-input-wrapper${p?" focused":""}`,style:d,children:[jsxRuntimeExports.jsx("label",{htmlFor:t,className:"floating-label",children:e}),jsxRuntimeExports.jsx("input",{id:t,name:t,className:"floating-input",placeholder:E?n:"",value:i,onChange:o,onFocus:g,onBlur:_})]})},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."})}),CEGridItem=({children:e,size:t=1})=>jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${t}`},children:e}),CEGridLayout=({children:e,columns:t=12,gap:n="1rem",alignItems:i="stretch",justifyItems:o="stretch",gridTemplateColumns:l})=>jsxRuntimeExports.jsx("div",{className:"grid-container",style:{display:"grid",width:"100%",gridTemplateColumns:l||`repeat(${t}, 1fr)`,gap:n,alignItems:i,justifyItems:o,backgroundColor:"transparent"},children:e}),CELogo=({src:e,alt:t="Logo",style:n})=>jsxRuntimeExports.jsx("img",{src:e,alt:t,style:{height:25,...n}}),CESearchBar=({onFocus:e,onBlur:t,quickActions:n=[],recentSearches:i=[]})=>{const[o,l]=React.useState(!1),[u,f]=React.useState(""),[p,m]=React.useState(n),[d,g]=React.useState(i),_=(S,b)=>{S==="quickActions"?m(T=>T.filter((C,R)=>R!==b)):g(T=>T.filter((C,R)=>R!==b))},E=()=>{u.trim()!==""&&(g(S=>[u,...S]),f(""))};return jsxRuntimeExports.jsxs("div",{className:"ceui-search-bar",children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search...",className:"ceui-search-input",value:u,onChange:S=>f(S.target.value),onFocus:()=>{l(!0),e&&e()},onBlur:()=>{setTimeout(()=>l(!1),200),t&&t()},onKeyDown:S=>{S.key==="Enter"&&E()}}),o&&jsxRuntimeExports.jsxs("div",{className:"ceui-search-suggestions",children:[p.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Quick actions"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:p.map((S,b)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[S,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>_("quickActions",b),children:"✕"})]},b))})]}),d.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Recent search"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:d.map((S,b)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[S,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>_("recentSearches",b),children:"✕"})]},b))})]})]})]})},CESearchButton=({showSuggestions:e=!1,quickActions:t=[],recentSearches:n=[]})=>{const[i,o]=React.useState(!1),[l,u]=React.useState(!1),f=React.useRef(null),p=d=>{f.current&&!f.current.contains(d.target)&&(o(!1),u(!1))},m=()=>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 React.useEffect(()=>(i?document.addEventListener("mousedown",p):document.removeEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}),[i]),console.log("isSearchOpen:",i),console.log("showDropdown:",l),console.log("showSuggestions:",e),jsxRuntimeExports.jsxs("div",{ref:f,className:`ceui-animated-search-wrapper ${i?"expanded":"collapsed"}`,children:[jsxRuntimeExports.jsx("button",{className:"ceui-search-button","aria-label":"Open search",onClick:()=>o(!0),children:jsxRuntimeExports.jsx(m,{})}),i&&jsxRuntimeExports.jsx(CESearchBar,{showSuggestions:i&&(e||l),onFocus:()=>u(!0),onBlur:()=>{setTimeout(()=>u(!1),200)},quickActions:t,recentSearches:n})]})},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]=React.useState(!1),n=React.useRef(null),i=()=>t(!e),o=l=>{n.current&&!n.current.contains(l.target)&&t(!1)};return React.useEffect(()=>(e?document.addEventListener("mousedown",o):document.removeEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}),[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:n,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:n,logoWidth:i,showSearchButton:o=!1,quickActions:l=[],recentSearches:u=[],showHelpButton:f=!1,showNotificationButton:p=!1,showAvatarMenu:m=!1,showUserInfo:d=!1,showHamburgerButton:g=!1,showDrawer:_=!1,userInfoProps:E,onMenuClick:S,drawerJsonUrl:b="",isDrawerOpen:T=!1,onDrawerClose:C})=>{const R=()=>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:n||35,width:i||"auto",maxWidth:120}}):jsxRuntimeExports.jsx(R,{})}),jsxRuntimeExports.jsxs("div",{className:"ceui-header-right",children:[o&&jsxRuntimeExports.jsx(CESearchButton,{showSuggestions:!0,quickActions:l,recentSearches:u,value:"",onChange:()=>{},onClear:()=>{}}),f&&jsxRuntimeExports.jsx(CEHelpButton,{}),p&&jsxRuntimeExports.jsx(CENotificationButton,{}),m&&jsxRuntimeExports.jsx(CEAvatarMenu,{}),d&&E&&jsxRuntimeExports.jsx(CEUserInfo,{name:E.name,role:E.role})]})]}),_&&g&&jsxRuntimeExports.jsx(CEDrawer,{jsonUrl:b,isOpen:T,onClose:C||(()=>{})})]})},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"})}),InputDropDown=({options:e,selected:t,onChange:n,multiple:i=!1,placeholder:o="Select...",size:l="medium",style:u={},allowClear:f=!0,showInputPills:p=!0,id:m,name:d,required:g=!1,enableSelectAll:_=!1,selectAllLabel:E="Select All",isSearchField:S=!1})=>{const[b,T]=React.useState(!1),[C,R]=React.useState(!1),[A,O]=React.useState(""),I=React.useRef(null),D={...getSizeStyle$1(l),...u},F=S?e.filter(V=>V.label.toLowerCase().includes(A.toLowerCase())):e,B=V=>{if(i){const U=t.includes(V)?t.filter(N=>N!==V):[...t,V];n(U)}else n([V]),T(!1)},q=()=>n([]),H=V=>{n(t.filter(U=>U!==V))},M=e.filter(V=>t.includes(V.value)).map(V=>V.label),K=e.map(V=>V.value),Q=i&&t.length===K.length&&K.length>0,J=()=>{n(Q?[]:K)};return React.useEffect(()=>{const V=U=>{var N;(N=I.current)!=null&&N.contains(U.target)||T(!1)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[]),React.useEffect(()=>{!b&&S&&O("")},[b,S]),jsxRuntimeExports.jsx("div",{className:`dropdown-container ${b||t.length>0?"float":""}`,ref:I,style:D,id:m,"data-name":d,"aria-required":g,children:jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${b?"open":""}`,onClick:()=>T(V=>!V),onFocus:()=>R(!0),onBlur:()=>R(!1),tabIndex:0,children:[jsxRuntimeExports.jsxs("label",{className:"floating-placeholder",children:[o,g&&jsxRuntimeExports.jsx("span",{className:"required-asterisk","aria-hidden":"true",children:"*"})]}),jsxRuntimeExports.jsx("div",{className:"selected-display",children:t.length===0?"":i?p?M.map((V,U)=>jsxRuntimeExports.jsxs("span",{className:"chip",children:[V,jsxRuntimeExports.jsx("span",{className:"close-icon",onClick:N=>{var L;N.stopPropagation(),H(((L=e.find(G=>G.label===V))==null?void 0:L.value)||"")},children:"×"})]},U)):jsxRuntimeExports.jsx("div",{className:"selected-display-label",children:M.join(",")}):jsxRuntimeExports.jsx("span",{children:M[0]})}),f&&t.length>0&&jsxRuntimeExports.jsx("button",{className:"clear-button",onClick:V=>{V.stopPropagation(),q()},children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M6 9l6 6 6-6"})})}),b&&jsxRuntimeExports.jsxs("ul",{className:"dropdown-options",children:[S&&jsxRuntimeExports.jsx("li",{className:"component-add-dropdown-search",onClick:V=>V.stopPropagation(),children:jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search...",value:A,autoFocus:!0,onChange:V=>O(V.target.value),onKeyDown:V=>V.stopPropagation()})}),i&&_&&jsxRuntimeExports.jsxs("li",{className:`dropdown-option select-all ${Q?"selected":""}`,onClick:V=>{V.stopPropagation(),J()},children:[jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:Q}),E]}),F.map(V=>jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${t.includes(V.value)?"selected":""}`,onClick:U=>{U.stopPropagation(),B(V.value)},children:[i&&jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:t.includes(V.value)}),V.label]},V.value)),S&&F.length===0&&jsxRuntimeExports.jsx("li",{className:"dropdown-empty",children:"No results found"})]})]})})},CELinearProgressBar=({duration:e,color:t="#4caf50",backgroundColor:n="#e0e0e0",height:i="10px",isActive:o=!1})=>{const l=React.useRef(null);return React.useEffect(()=>{const u=l.current;if(!(!u||!o))return u.style.width="0%",u.style.transition="none",u.offsetWidth,requestAnimationFrame(()=>{u&&(u.style.transition=`width ${e}ms linear`,u.style.width="100%")}),()=>{u&&(u.style.width="0%",u.style.transition="none")}},[e,o]),jsxRuntimeExports.jsx("div",{className:"snackbar__progress-container",style:{height:i},children:jsxRuntimeExports.jsx("div",{ref:l,className:"snackbar__progress-bar"})})},CEMenuBar=({menuData:e})=>{const[t,n]=React.useState({}),i=(p,m)=>{n(d=>({...d,[p]:m}))};useEscapeKey(()=>{n({})});const l=p=>p.children&&p.children.length>0,u=p=>p.some(m=>l(m)),f=(p,m="")=>!p||p.length===0?null:jsxRuntimeExports.jsx("ul",{className:m?"ce-submenu":"ce-dropdown",children:p.map(d=>{const g=m?`${m}-${d.name}`:d.name,_=l(d);return jsxRuntimeExports.jsxs("li",{className:`ce-dropdown-item ${_?"has-submenu":""}`,onMouseEnter:()=>_&&i(g,!0),onMouseLeave:()=>_&&i(g,!1),onClick:()=>console.log(`Clicked: ${d.name}`),children:[d.name,_&&jsxRuntimeExports.jsx("span",{className:"ce-icon right",children:"▶"}),_&&t[g]&&f(d.children,g)]},g)})});return jsxRuntimeExports.jsx("div",{className:"ce-menu-bar",children:jsxRuntimeExports.jsx("div",{className:"ce-menu-container",children:e.map(p=>{const m=u(p.items);return jsxRuntimeExports.jsxs("div",{className:"ce-menu-item",onMouseEnter:()=>m&&i(p.title,!0),onMouseLeave:()=>m&&i(p.title,!1),children:[jsxRuntimeExports.jsxs("button",{className:"ce-menu-button",children:[p.title,m&&jsxRuntimeExports.jsx("span",{className:"ce-icon",children:"▼"})]}),m&&t[p.title]&&f(p.items,p.title)]},p.title)})})})},CEPagination=({currentPage:e,totalPages:t,onPageChange:n})=>{const i=()=>{const p=[];if(t<=8)for(let m=0;m<t;m++)p.push(m);else if(e<7){for(let m=0;m<8;m++)p.push(m);p.push("..."),p.push(t-1)}else if(e>=t-8+1){p.push(0),p.push("...");for(let m=t-8;m<t;m++)p.push(m)}else{p.push(0),p.push("...");for(let m=e-3;m<=e+3;m++)p.push(m);p.push("..."),p.push(t-1)}return p},o=f=>{typeof f=="number"&&n(f)},l=()=>{e>0&&n(e-1)},u=()=>{e<t-1&&n(e+1)};return jsxRuntimeExports.jsxs("div",{className:"pagination",children:[jsxRuntimeExports.jsx("button",{onClick:l,disabled:e===0,className:"pagination-button",children:"Previous"}),i().map((f,p)=>typeof f=="number"?jsxRuntimeExports.jsx("button",{onClick:()=>o(f),className:`pagination-button page-number ${e===f?"active":""}`,children:f+1},p):jsxRuntimeExports.jsx("span",{className:"pagination-ellipsis",children:f},p)),jsxRuntimeExports.jsx("button",{onClick:u,disabled:e===t-1,className:"pagination-button",children:"Next"})]})},CERadioButtonGroup=({options:e,name:t,defaultValue:n,onChange:i,direction:o="horizontal",id:l,nameAttr:u})=>{const[f,p]=React.useState(n||""),m=d=>{p(d),i(d)};return jsxRuntimeExports.jsx("div",{className:`radio-button-group ${o}`,role:"radiogroup","aria-labelledby":t,id:l,children:e.map(d=>jsxRuntimeExports.jsx("div",{className:"radio-button",children:jsxRuntimeExports.jsx(CERadioButton,{label:d.label,value:d.value,checked:f===d.value,onChange:m,id:l?`${l}-${d.value}`:void 0,name:u})},d.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:n="100%",height:i="auto",minHeight:o="200px",maxHeight:l="none",className:u="",style:f={},editorStyle:p={}})=>{const m=React.useRef(null),[d,g]=React.useState("3"),[_,E]=React.useState("Arial"),[S,b]=React.useState({bold:!1,italic:!1,underline:!1,strikeThrough:!1,subscript:!1,superscript:!1,justifyLeft:!0,justifyCenter:!1,justifyRight:!1,justifyFull:!1});React.useEffect(()=>{m.current&&e&&(m.current.innerHTML=e)},[e]);const T=React.useCallback(j=>{try{return document.queryCommandState(j)}catch{return!1}},[]),C=React.useCallback(()=>{b({bold:T("bold"),italic:T("italic"),underline:T("underline"),strikeThrough:T("strikethrough"),subscript:T("subscript"),superscript:T("superscript"),justifyLeft:T("justifyLeft"),justifyCenter:T("justifyCenter"),justifyRight:T("justifyRight"),justifyFull:T("justifyFull")})},[T]),R=React.useCallback((j,D="")=>{var q,H;const F=saveSelection(),B=document.getSelection();if(j==="createLink"){const M=prompt("Enter URL:");if(M){restoreSelection(F),document.execCommand("createLink",!1,M);const K=(q=B==null?void 0:B.anchorNode)==null?void 0:q.parentElement;K instanceof HTMLAnchorElement&&(K.target="_blank",K.rel="noopener noreferrer")}}else if(j==="insertImage"){const M=prompt("Enter image URL:");if(M){restoreSelection(F);const K=`<img src="${M}" alt="image" style="max-width: 100%; height: auto;"/>`;document.execCommand("insertHTML",!1,K)}}else j==="fontSize"||j==="fontName"?(restoreSelection(F),document.execCommand(j,!0,D),j==="fontSize"?g(D):E(D)):(restoreSelection(F),document.execCommand(j,!1,D));m.current&&(t==null||t(m.current.innerHTML)),(H=m.current)==null||H.focus(),C()},[t,C]),A=j=>{if(j.key==="Tab"&&(j.preventDefault(),document.execCommand("insertHTML",!1,"&nbsp;&nbsp;&nbsp;&nbsp;")),j.ctrlKey||j.metaKey)switch(j.key.toLowerCase()){case"z":j.preventDefault(),j.shiftKey?R("redo"):R("undo");break;case"y":j.preventDefault(),R("redo");break}},O=[{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"}],I=["Arial","Times New Roman","Courier New","Georgia","Verdana","Helvetica","Serif Fonts","Algerian"];return jsxRuntimeExports.jsxs("div",{className:`rich-text-editor ${u}`,style:{width:n,height:i,...f},children:[jsxRuntimeExports.jsxs("div",{className:"toolbar",children:[jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("bold"),className:`toolbar-button ${S.bold?"active":""}`,title:"Bold",children:jsxRuntimeExports.jsx("strong",{children:"B"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("italic"),className:`toolbar-button ${S.italic?"active":""}`,title:"Italic",children:jsxRuntimeExports.jsx("em",{children:"I"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("underline"),className:`toolbar-button ${S.underline?"active":""}`,title:"Underline",children:jsxRuntimeExports.jsx("u",{children:"U"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("strikeThrough"),className:`toolbar-button ${S.strikeThrough?"active":""}`,title:"Strike Through",children:jsxRuntimeExports.jsx("s",{children:"S"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("subscript"),className:`toolbar-button ${S.subscript?"active":""}`,title:"Subscript",children:"X₂"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("superscript"),className:`toolbar-button ${S.superscript?"active":""}`,title:"Superscript",children:"X²"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("justifyLeft"),className:`toolbar-button ${S.justifyLeft?"active":""}`,title:"Align Left",children:"⇤"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("justifyCenter"),className:`toolbar-button ${S.justifyCenter?"active":""}`,title:"Center",children:"⇔"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("justifyRight"),className:`toolbar-button ${S.justifyRight?"active":""}`,title:"Align Right",children:"⇥"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("justifyFull"),className:`toolbar-button ${S.justifyFull?"active":""}`,title:"Justify",children:"≡"})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>R("insertUnorderedList"),className:"toolbar-button",title:"Bullet List",children:"●"}),jsxRuntimeExports.jsx("button",{onClick:()=>R("insertOrderedList"),className:"toolbar-button",title:"Numbered List",children:"1. 2. 3."})]}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:d,onChange:j=>R("fontSize",j.target.value),className:"toolbar-select",title:"Font Size",children:O.map(j=>jsxRuntimeExports.jsx("option",{value:j.value,children:j.label},j.value))})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:_,onChange:j=>R("fontName",j.target.value),className:"toolbar-select",title:"Font Family",children:I.map(j=>jsxRuntimeExports.jsx("option",{value:j,children:j},j))})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>R("createLink"),className:"toolbar-button",title:"Insert Link",children:"🔗"}),jsxRuntimeExports.jsx("button",{onClick:()=>R("insertImage"),className:"toolbar-button",title:"Insert Image",children:"📷"})]}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>R("undo"),className:"toolbar-button",title:"Undo (Ctrl+Z)",children:"↩"}),jsxRuntimeExports.jsx("button",{onClick:()=>R("redo"),className:"toolbar-button",title:"Redo (Ctrl+Y)",children:"↪"})]})]}),jsxRuntimeExports.jsx("div",{ref:m,className:"editor-content",contentEditable:!0,style:{minHeight:o,maxHeight:l,height:i==="auto"?"auto":"100%",...p},onKeyDown:A,onKeyUp:C,onMouseUp:C,onInput:()=>{m.current&&(t==null||t(m.current.innerHTML)),C()}})]})},CETabView=({tabs:e,renderContent:t,variant:n="top"})=>{var f;const i=React.useMemo(()=>e.map(p=>{if(typeof p=="string")return{key:p,label:p};const m=p.key??p.label??"tab",d=p.label??p.key??"Tab";return{key:m,label:d,icon:p.icon,badgeCount:p.badgeCount}}),[e]),[o,l]=React.useState(((f=i[0])==null?void 0:f.key)??"");if(React.useEffect(()=>{if(!i.length)return;i.some(m=>m.key===o)||l(i[0].key)},[i,o]),!i.length)return null;const u=n==="top";return jsxRuntimeExports.jsxs("div",{className:`tabview-container ${u?"tabview-container-top":"tabview-container-sidebar"}`,children:[u?jsxRuntimeExports.jsx("div",{className:"tabview-topbar",role:"tablist","aria-label":"Tab navigation",children:i.map(p=>{const m=o===p.key;return jsxRuntimeExports.jsxs("button",{className:`tabview-top-tab ${m?"tabview-top-tab-active":""}`,onClick:()=>l(p.key),role:"tab",tabIndex:m?0:-1,children:[p.icon&&jsxRuntimeExports.jsx("span",{className:"tabview-icon",children:p.icon}),jsxRuntimeExports.jsx("span",{className:"tabview-label",children:p.label}),p.badgeCount?jsxRuntimeExports.jsx("span",{className:"tabview-badge","aria-label":`${p.badgeCount} items`,children:p.badgeCount}):null]},p.key)})}):jsxRuntimeExports.jsx("div",{className:"tabview-sidebar",role:"tablist","aria-label":"Tab navigation",children:i.map(p=>{const m=o===p.key;return jsxRuntimeExports.jsxs("div",{className:`tabview-tab ${m?"tabview-tab-active":""}`,onClick:()=>l(p.key),role:"tab",tabIndex:m?0:-1,children:[p.icon&&jsxRuntimeExports.jsx("span",{className:"tabview-icon",children:p.icon}),jsxRuntimeExports.jsx("span",{className:"tabview-label",children:p.label}),p.badgeCount?jsxRuntimeExports.jsx("span",{className:"tabview-badge","aria-label":`${p.badgeCount} items`,children:p.badgeCount}):null]},p.key)})}),jsxRuntimeExports.jsx("div",{className:"tabview-content",role:"tabpanel",children:t(o)})]})},CETemplate=({children:e,headerProps:t,showHeader:n=!0,showFooter:i=!0,containerClassName:o="",containerStyle:l={}})=>jsxRuntimeExports.jsxs("div",{className:`ce-wrapper ${o}`,style:l,children:[n&&jsxRuntimeExports.jsx(CEHeader,{...t}),jsxRuntimeExports.jsx("main",{className:"main-content",children:e}),i&&jsxRuntimeExports.jsx(CEFooter,{})]}),CETimePicker=({label:e="Select Time",onChange:t,initialTime:n="",className:i="",id:o,name:l})=>{const[u,f]=React.useState(!1),[p,m]=React.useState(n),[d,g]=React.useState("12"),[_,E]=React.useState("00"),[S,b]=React.useState("AM"),[T,C]=React.useState(!1),[R,A]=React.useState(""),[O,I]=React.useState(""),j=React.useRef(null),D=Array.from({length:12},(U,N)=>String(N+1).padStart(2,"0")),F=Array.from({length:60},(U,N)=>String(N).padStart(2,"0")),B=(U,N)=>{if(!U)return"";const L=parseInt(U);return N==="hours"?L>12?"12":L===0?"01":U.padStart(2,"0"):L>59?"59":U.padStart(2,"0")},q=U=>{const N=U.target.value,L=U.target.selectionStart||0;let G=d,W=_,z=S,Z=p;if(L<=2){const X=N.substring(0,2).replace(/[^0-9]/g,"");if(X){if(X.length===1){const ee=parseInt(X);ee>=2&&ee<=9?(G=X.padStart(2,"0"),setTimeout(()=>{j.current&&j.current.setSelectionRange(3,5)},10)):(G=X,setTimeout(()=>{j.current&&j.current.setSelectionRange(1,1)},10))}else if(X.length===2){const ee=parseInt(X);ee>=1&&ee<=12?(G=X,setTimeout(()=>{j.current&&j.current.setSelectionRange(3,5)},10)):(G=X[0],setTimeout(()=>{j.current&&j.current.setSelectionRange(1,1)},10))}Z=`${G}:${_} ${S}`}}else if(L>=3&&L<=5){const X=N.indexOf(":")+1,ee=N.substring(X,X+2).replace(/[^0-9]/g,"");if(ee){if(ee.length===1)W=ee,Z=`${d}:${W} ${S}`,setTimeout(()=>{j.current&&j.current.setSelectionRange(4,4)},10);else if(ee.length===2){const ce=parseInt(ee);ce>=0&&ce<=59?(W=ee,setTimeout(()=>{j.current&&j.current.setSelectionRange(6,8)},10)):(W=ee[0],setTimeout(()=>{j.current&&j.current.setSelectionRange(4,4)},10))}Z=`${d}:${W} ${S}`}}else if(L>=6){const ee=N.substring(N.lastIndexOf(" ")+1).toUpperCase();ee.startsWith("A")?(z="AM",Z=`${d}:${_} AM`):ee.startsWith("P")&&(z="PM",Z=`${d}:${_} PM`)}g(G),E(W),b(z),m(Z),f(!1),t==null||t(Z)},H=U=>{if(!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","0","1","2","3","4","5","6","7","8","9",":","A","P","M"," ","a","p","m"].includes(U.key)){U.preventDefault();return}if(U.key==="Enter"||U.key===":"){U.preventDefault();const L=U.currentTarget.selectionStart||0;if(L<=2){if(R){const G=B(R,"hours");g(G),A(""),m(`${G}:${_} ${S}`)}U.currentTarget.setSelectionRange(3,5)}else if(L>=3&&L<=5){if(O){const G=B(O,"minutes");E(G),I(""),m(`${d}:${G} ${S}`)}U.currentTarget.setSelectionRange(6,8)}}},M=U=>{const N=U.currentTarget.selectionStart||0,L=j.current;L&&(N<=1?L.setSelectionRange(0,2):N>=3&&N<=4?L.setSelectionRange(3,5):N>=6&&L.setSelectionRange(6,8))},K=()=>{f(!0),C(!0)},Q=(U,N)=>{const L=U==="hours"?N:d,G=U==="minutes"?N:_,W=U==="period"?N:S;g(L),E(G),b(W);const z=`${L}:${G} ${W}`;m(z),t==null||t(z)},J=()=>{const U=`${d}:${_} ${S}`;m(U),f(!1),t==null||t(U)},V=()=>{m(""),g("12"),E("00"),b("AM"),f(!1),C(!1)};return jsxRuntimeExports.jsxs("div",{className:`time-picker-container ${i}`,children:[jsxRuntimeExports.jsxs("div",{className:`time-picker-input ${u||T?"active":""}`,children:[jsxRuntimeExports.jsx("input",{ref:j,type:"text",id:o,name:l,value:p,onChange:q,onKeyDown:H,onClick:U=>{p||K(),M(U)},onFocus:()=>C(!0),onBlur:()=>!u&&C(!1),placeholder:T||p?"hh:mm AM":"",className:"time-input",maxLength:8}),jsxRuntimeExports.jsx("label",{className:`floating-label ${u||T||p?"active":""}`,children:e}),jsxRuntimeExports.jsx("span",{className:"clock-icon",onClick:U=>{U.stopPropagation(),K()},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 ${u?"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:D.map(U=>jsxRuntimeExports.jsx("div",{className:`time-item ${U===d?"selected":""}`,onClick:()=>Q("hours",U),children:U},U))})]}),jsxRuntimeExports.jsxs("div",{className:"time-section",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Minutes"}),jsxRuntimeExports.jsx("div",{className:"time-list",children:F.map(U=>jsxRuntimeExports.jsx("div",{className:`time-item ${U===_?"selected":""}`,onClick:()=>Q("minutes",U),children:U},U))})]}),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(U=>jsxRuntimeExports.jsx("div",{className:`period-item ${U===S?"selected":""}`,onClick:()=>Q("period",U),children:U},U))})]})]}),jsxRuntimeExports.jsxs("div",{className:"time-picker-actions",children:[jsxRuntimeExports.jsx("button",{className:"time-picker-button cancel",onClick:V,children:"Cancel"}),jsxRuntimeExports.jsx("button",{className:"time-picker-button ok",onClick:J,children:"OK"})]})]})]})},TransferItem=({label:e,checked:t,onChange:n,disabled:i})=>jsxRuntimeExports.jsx(CECheckBox,{label:e,checked:t,onChange:n,disabled:i}),CETransferButton=({label:e,onClick:t,disabled:n=!1,className:i=""})=>jsxRuntimeExports.jsx("button",{onClick:t,disabled:n,className:`transfer-button ${i}`,children:e}),TransferList=({dataUrl:e,onTransfer:t,containerClass:n="",boxClass:i="",buttonClass:o=""})=>{const[l,u]=React.useState([]),[f,p]=React.useState([]),[m,d]=React.useState(!0),[g,_]=React.useState(null),[E,S]=React.useState(new Set),[b,T]=React.useState(new Set);React.useEffect(()=>{(async()=>{var j,D;try{d(!0),_(null);const B=(await axios.get(e)).data.items||[];u(B.slice(0,Math.ceil(B.length/2))),p(B.slice(Math.ceil(B.length/2)))}catch(F){_(axios.isAxiosError(F)?((D=(j=F.response)==null?void 0:j.data)==null?void 0:D.message)||F.message:"An error occurred")}finally{d(!1)}})()},[]);const C=I=>{if(I==="available"){const j=l.filter(F=>E.has(F.id)).sort((F,B)=>{const q=parseInt(F.id.replace(/\D/g,"")),H=parseInt(B.id.replace(/\D/g,""));return q-H}),D=l.filter(F=>!E.has(F.id));u(D),p(F=>[...F,...j].sort((q,H)=>{const M=parseInt(q.id.replace(/\D/g,"")),K=parseInt(H.id.replace(/\D/g,""));return M-K})),S(new Set)}else{const j=f.filter(F=>b.has(F.id)).sort((F,B)=>{const q=parseInt(F.id.replace(/\D/g,"")),H=parseInt(B.id.replace(/\D/g,""));return q-H}),D=f.filter(F=>!b.has(F.id));p(D),u(F=>[...F,...j].sort((q,H)=>{const M=parseInt(q.id.replace(/\D/g,"")),K=parseInt(H.id.replace(/\D/g,""));return M-K})),T(new Set)}t(f,l)},R=(I,j,D)=>{D(F=>{const B=new Set(F);return B.has(I)?B.delete(I):B.add(I),B})},A=(I,j,D)=>F=>{const B=new Set(j),q=I.filter(H=>!H.disabled);F?q.forEach(H=>B.add(H.id)):q.forEach(H=>B.delete(H.id)),D(B)},O=(I,j,D,F)=>{const B=I.filter(Q=>!Q.disabled),q=B.length>0&&B.every(Q=>j.has(Q.id)),H=j.size,M=I.length,K=I.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:A(I,j,D),disabled:K})}),jsxRuntimeExports.jsxs("div",{className:"title-section",children:[jsxRuntimeExports.jsx("div",{className:"title",children:F}),jsxRuntimeExports.jsxs("div",{className:"count-text",children:[H,"/",M," selected"]})]})]})}),jsxRuntimeExports.jsx("div",{className:"transfer-items",children:I.map(Q=>jsxRuntimeExports.jsx(TransferItem,{label:Q.label,checked:j.has(Q.id),disabled:Q.disabled,onChange:()=>R(Q.id,j,D)},Q.id))})]})};return m?jsxRuntimeExports.jsx("div",{children:"Loading..."}):g?jsxRuntimeExports.jsxs("div",{children:["Error: ",g]}):jsxRuntimeExports.jsxs("div",{className:`transfer-list-container ${n}`,children:[O(l,E,S,"Choices"),jsxRuntimeExports.jsxs("div",{className:"transfer-buttons",children:[jsxRuntimeExports.jsx(CETransferButton,{label:">>",onClick:()=>C("available"),disabled:E.size===0,className:o}),jsxRuntimeExports.jsx(CETransferButton,{label:"<<",onClick:()=>C("chosen"),disabled:b.size===0,className:o})]}),O(f,b,T,"Chosen")]})},CEBadge=({label:e,backgroundColor:t="#e0e0e0",textColor:n="#000",style:i,id:o,name:l,disable:u=!1})=>jsxRuntimeExports.jsx("span",{id:o,"data-name":l,"aria-disabled":u,style:{backgroundColor:t,color:n,padding:"4px 10px",borderRadius:"12px",fontSize:"12px",display:"inline-block",whiteSpace:"nowrap",...u?{opacity:.6,pointerEvents:"none"}:{},...i},children:e}),chatIcon="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='M20%202.5H4C2.9%202.5%202.01%203.4%202.01%204.5L2%2022.5L6%2018.5H20C21.1%2018.5%2022%2017.6%2022%2016.5V4.5C22%203.4%2021.1%202.5%2020%202.5ZM7%209.5H17C17.55%209.5%2018%209.95%2018%2010.5C18%2011.05%2017.55%2011.5%2017%2011.5H7C6.45%2011.5%206%2011.05%206%2010.5C6%209.95%206.45%209.5%207%209.5ZM13%2014.5H7C6.45%2014.5%206%2014.05%206%2013.5C6%2012.95%206.45%2012.5%207%2012.5H13C13.55%2012.5%2014%2012.95%2014%2013.5C14%2014.05%2013.55%2014.5%2013%2014.5ZM17%208.5H7C6.45%208.5%206%208.05%206%207.5C6%206.95%206.45%206.5%207%206.5H17C17.55%206.5%2018%206.95%2018%207.5C18%208.05%2017.55%208.5%2017%208.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",CEChatbox=({notes:e,onAddNote:t,buttonLabel:n,buttonIcon:i})=>{const[o,l]=React.useState(""),u=()=>{t(o),l("")},f=p=>{p.key==="Enter"&&u()};return jsxRuntimeExports.jsxs("div",{className:"notes-container",children:[jsxRuntimeExports.jsxs("div",{className:"notes-header",children:[jsxRuntimeExports.jsx("img",{src:chatIcon,alt:"Chat Icon",className:"notes-icon"}),jsxRuntimeExports.jsx("span",{className:"notes-title",children:"Notes"})]}),jsxRuntimeExports.jsxs("div",{className:"add-note-section",children:[jsxRuntimeExports.jsx("textarea",{value:o,onChange:p=>l(p.target.value),onKeyPress:f,placeholder:"Add a note...",className:"add-note-input",rows:3}),jsxRuntimeExports.jsx(CEButton,{label:n,icon:i,variant:"outlinedGreen",onClick:u,sx:{width:"100%",marginTop:"10px"},children:void 0})]}),jsxRuntimeExports.jsx("div",{className:"notes-list",children:e.map(p=>jsxRuntimeExports.jsxs("div",{className:"note-item",children:[jsxRuntimeExports.jsx("div",{className:"note-avatar",children:p.initials}),jsxRuntimeExports.jsxs("div",{className:"note-content",children:[jsxRuntimeExports.jsxs("div",{className:"note-header",children:[jsxRuntimeExports.jsx("span",{className:"note-author",children:p.author}),jsxRuntimeExports.jsx("span",{className:"note-timestamp",children:p.timestamp})]}),jsxRuntimeExports.jsx("div",{className:"note-text",children:p.content})]})]},p.id))})]})},CEStatusDropdown=({options:e,selected:t,onChange:n,placeholder:i="Select status...",size:o="medium",disabled:l=!1,ariaLabel:u="Status selection dropdown"})=>{const[f,p]=React.useState(!1),m=React.useRef(null),d=e.find(b=>b.value===t),g=b=>{n(b),p(!1)};React.useEffect(()=>{const b=T=>{var C;(C=m.current)!=null&&C.contains(T.target)||p(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const _=b=>{l||(b.key==="Enter"||b.key===" "?(b.preventDefault(),p(!f)):b.key==="Escape"&&p(!1))},E=b=>{if(b!=null&&b.statusType)switch(b.statusType){case"in-progress":return"in-progress";case"declined":return"declined";case"withdrawn":return"withdrawn";default:return""}return""},S=()=>{if(d){const b={};return d.backgroundColor&&(b.backgroundColor=d.backgroundColor),d.textColor&&(b.color=d.textColor),b}return{}};return jsxRuntimeExports.jsxs("div",{className:`status-dropdown-container ${l?"disabled":""} size-${o}`,ref:m,children:[jsxRuntimeExports.jsxs("div",{className:`status-dropdown-trigger ${f?"open":""} ${d?`has-selection ${E(d)}`:""}`,onClick:()=>!l&&g((d==null?void 0:d.value)||""),onKeyDown:_,tabIndex:l?-1:0,role:"button","aria-haspopup":"listbox","aria-expanded":f?"true":"false","aria-label":u,style:S(),children:[jsxRuntimeExports.jsx("span",{className:"status-text",children:d?d.label:i}),jsxRuntimeExports.jsx("span",{className:"status-dropdown-icon",onClick:b=>{b.stopPropagation(),!l&&p(!f)},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 ${f?"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"})})})]}),f&&!l&&jsxRuntimeExports.jsx("ul",{className:"status-dropdown-options",role:"listbox","aria-label":"Status options",children:e.map(b=>{const T={};return b.backgroundColor&&(T.backgroundColor=b.backgroundColor),b.textColor&&(T.color=b.textColor),jsxRuntimeExports.jsxs("li",{className:`status-dropdown-option ${t===b.value?"selected":""} ${E(b)}`,onClick:()=>g(b.value),role:"option","aria-selected":t===b.value?"true":"false",style:T,children:[jsxRuntimeExports.jsx("span",{className:"option-indicator",children:b.icon?b.icon:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[b.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"})]}),b.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"})]}),b.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"})]})]})}),b.label]},b.value)})})]})},CEToggleYesNo=({value:e,onChange:t,label:n})=>jsxRuntimeExports.jsxs("div",{className:"toggle-container",children:[n&&jsxRuntimeExports.jsx("div",{className:"label",children:n}),jsxRuntimeExports.jsxs("div",{className:"toggle-group",children:[jsxRuntimeExports.jsxs(CEButton,{size:"small",variant:e==="yes"?"primary":"outlined",className:`toggle-btn ${e==="yes"?"active":""}`,onClick:()=>t("yes"),children:[jsxRuntimeExports.jsx("span",{className:"circle"}),"YES"]}),jsxRuntimeExports.jsxs(CEButton,{size:"small",variant:e==="no"?"primary":"outlined",className:`toggle-btn ${e==="no"?"active":""}`,onClick:()=>t("no"),children:[jsxRuntimeExports.jsx("span",{className:"circle"}),"NO"]})]})]}),days=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],CEOperatingDaysSelector=({selectedDays:e,onChange:t})=>{const n=i=>{e.includes(i)?t(e.filter(o=>o!==i)):t([...e,i])};return jsxRuntimeExports.jsx("div",{className:"days-group",children:days.map(i=>jsxRuntimeExports.jsx(CEButton,{size:"small",variant:e.includes(i)?"primary":"outlined",className:`day-btn ${e.includes(i)?"active":""}`,onClick:()=>n(i),children:i},i))})},CERoundTabNav=({tabs:e,activeTab:t,onTabClick:n,tabBarBgColor:i,tabBarItemBgColor:o})=>jsxRuntimeExports.jsx("div",{className:"om-om-radiusTab-bar-nwo",style:{backgroundColor:i||"#6fb744"},children:e.map(l=>jsxRuntimeExports.jsx("div",{className:`om-radiusTab-item-nwo ${l.value===t?"active":""}`,onClick:u=>n(l.value,u),style:{backgroundColor:l.value===t?o||"#ebebf0":""},children:l.label},l.value))}),CEAccordion=({children:e})=>jsxRuntimeExports.jsx("div",{className:"accordion-container",children:e}),CEAccordionItem=({title:e,children:t,initiallyOpen:n=!1})=>{const[i,o]=React.useState(n);return jsxRuntimeExports.jsxs("div",{className:"accordion-item",children:[jsxRuntimeExports.jsxs("button",{className:`accordion-header ${i?"open":""}`,onClick:()=>o(!i),children:[jsxRuntimeExports.jsx("span",{className:"accordion-title",children:e}),jsxRuntimeExports.jsx("span",{className:`accordion-icon ${i?"open":""}`,children:jsxRuntimeExports.jsxs("svg",{width:"21",height:"12",viewBox:"0 0 21 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("g",{clipPath:"url(#clip0_20728_2951)",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 1.89L19.094 0.5L10.487 8.761L9.569 7.88L9.574 7.885L1.927 0.545L0.5 1.914L10.487 11.5L20.5 1.89Z",fill:"black"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip0_20728_2951",children:jsxRuntimeExports.jsx("rect",{width:"11",height:"20",fill:"white",transform:"matrix(0 -1 1 0 0.5 11.5)"})})})]})})]}),i&&jsxRuntimeExports.jsx("div",{className:"accordion-content",children:t})]})},CEToggleSlide=({checked:e,onToggle:t,label:n,disabled:i=!1})=>{const o=()=>{i||t(!e)};return jsxRuntimeExports.jsxs("div",{className:"toggle-container",children:[n&&jsxRuntimeExports.jsx("span",{className:"toggle-label",children:n}),jsxRuntimeExports.jsxs("label",{className:`toggle-switch ${i?"disabled":""}`,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:e,onChange:o,disabled:i,className:"toggle-checkbox"}),jsxRuntimeExports.jsx("span",{className:"toggle-slider"})]})]})};var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),_excluded$n=["attr","size","title"];function _objectWithoutProperties$n(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$n(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$n(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _extends$t(){return _extends$t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$t.apply(this,arguments)}function ownKeys$C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$C(Object(n),!0).forEach(function(i){_defineProperty$E(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$C(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$E(e,t,n){return t=_toPropertyKey$E(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$E(e){var t=_toPrimitive$E(e,"string");return typeof t=="symbol"?t:t+""}function _toPrimitive$E(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tree2Element(e){return e&&e.map((t,n)=>React.createElement(t.tag,_objectSpread$C({key:n},t.attr),Tree2Element(t.child)))}function GenIcon(e){return t=>React.createElement(IconBase,_extends$t({attr:_objectSpread$C({},e.attr)},t),Tree2Element(e.child))}function IconBase(e){var t=n=>{var{attr:i,size:o,title:l}=e,u=_objectWithoutProperties$n(e,_excluded$n),f=o||n.size||"1em",p;return n.className&&(p=n.className),e.className&&(p=(p?p+" ":"")+e.className),React.createElement("svg",_extends$t({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:p,style:_objectSpread$C(_objectSpread$C({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&React.createElement("title",null,l),e.children)};return IconContext!==void 0?React.createElement(IconContext.Consumer,null,n=>t(n)):t(DefaultContext)}function FaSearch(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function MdKeyboardArrowDown(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}const CEAdvancedMultiSelectDropdown=({options:e,onSelectItem:t,onChange:n,placeholder:i="Search customers...",allowSearch:o=!0,width:l="100%",inputHeight:u="3rem",dropdownMaxHeight:f="20rem",id:p,name:m})=>{const[d,g]=React.useState(!1),[_,E]=React.useState(""),[S,b]=React.useState([]),T=React.useRef(null);React.useEffect(()=>{n&&n(S)},[S,n]);const C=e.filter(R=>{var A;return R.label.toLowerCase().includes(_.toLowerCase())||((A=R.subtitle)==null?void 0:A.toLowerCase().includes(_.toLowerCase()))});return React.useEffect(()=>{const R=A=>{var O;(O=T.current)!=null&&O.contains(A.target)||g(!1)};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]),jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:T,style:{width:l},children:[jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${d?"open":""}`,style:{minHeight:u},children:[jsxRuntimeExports.jsx(FaSearch,{className:"search-icon"}),jsxRuntimeExports.jsxs("div",{className:"selected-chips",onClick:()=>g(!0),children:[S.length===0&&jsxRuntimeExports.jsx("input",{type:"text",className:"search-input",id:p,name:m,placeholder:i,value:_,onChange:R=>{E(R.target.value),d||g(!0)},onClick:R=>{R.stopPropagation(),g(!0)},style:{height:u}}),S.map(R=>jsxRuntimeExports.jsxs("div",{className:"selected-item-inline",children:[jsxRuntimeExports.jsx("span",{className:"selected-item-label",children:R.label}),jsxRuntimeExports.jsx("button",{type:"button",className:"selected-item-remove",onClick:A=>{A.stopPropagation(),b(O=>O.filter(I=>I.value!==R.value))},"aria-label":`Remove ${R.label}`,children:"×"})]},R.value))]}),jsxRuntimeExports.jsx(MdKeyboardArrowDown,{className:`dropdown-arrow ${d?"rotated":""}`,onClick:R=>{R.stopPropagation(),g(A=>!A)}})]}),d&&jsxRuntimeExports.jsx("div",{className:"dropdown-options",style:{maxHeight:f},children:jsxRuntimeExports.jsx("ul",{className:"dropdown-list",children:C.length>0?C.map(R=>{const A=S.some(O=>O.value===R.value);return jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${A?"selected":""}`,onClick:O=>{O.stopPropagation(),b(I=>{const j=I.some(F=>F.value===R.value);let D;return j?D=I.filter(F=>F.value!==R.value):D=[...I,R],D}),E(""),t(R),g(!1)},children:[jsxRuntimeExports.jsxs("div",{className:"option-content",children:[jsxRuntimeExports.jsx("div",{className:"option-line-1",children:R.label}),R.subtitle&&jsxRuntimeExports.jsx("div",{className:"option-line-2",children:R.subtitle})]}),R.icon&&jsxRuntimeExports.jsx("div",{className:"option-icon",children:R.icon})]},R.value)}):jsxRuntimeExports.jsx("li",{className:"dropdown-option no-results",children:"No results found"})})})]})},AutoCompleteInput=({label:e,options:t,value:n,onChange:i,multiple:o=!0,showCheckboxes:l=!0,required:u=!1})=>{const[f,p]=React.useState(!1),[m,d]=React.useState(!1),[g,_]=React.useState(""),E=React.useRef(null),S=React.useRef(null),b=t.filter(R=>R.toLowerCase().includes(g.toLowerCase())),T=R=>{if(o){const A=n.includes(R);i(A?n.filter(O=>O!==R):[...n,R]),_("")}else i([R]),_(R),p(!1)},C=R=>{S.current&&!S.current.contains(R.target)&&(p(!1),d(!1))};return React.useEffect(()=>(document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)),[]),jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:S,children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper always-float ${m||f?"focused":""} ${n.length>0?"has-value":""}`,children:[jsxRuntimeExports.jsxs("label",{className:"autocomplete-label",children:[e,u&&jsxRuntimeExports.jsx("span",{className:"required-asterisk","aria-hidden":"true",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"input-area",children:[o&&n.length>0&&jsxRuntimeExports.jsx("div",{className:"selected-values",children:n.map(R=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[R,jsxRuntimeExports.jsx("button",{onClick:A=>{A.stopPropagation(),i(n.filter(O=>O!==R))},children:"×"})]},R))}),jsxRuntimeExports.jsx("input",{ref:E,type:"text",className:"autocomplete-input",value:g,placeholder:o&&n.length>0?"":"Select Status",onChange:R=>_(R.target.value),onFocus:()=>{d(!0),p(!0)}}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:()=>p(R=>!R),children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M6 9l6 6 6-6"})})})]})]}),f&&jsxRuntimeExports.jsxs("ul",{className:"autocomplete-list",children:[o&&l&&jsxRuntimeExports.jsx("li",{className:"select-all-option",children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.length===t.length,onChange:()=>{const R=n.length===t.length;i(R?[]:[...t])}}),"Select All"]})}),b.map(R=>jsxRuntimeExports.jsx("li",{onClick:()=>T(R),children:o&&l?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(R),onChange:()=>T(R),onClick:A=>A.stopPropagation()}),R]}):R},R))]})]})},CEAutoCompleteSelect=({label:e,options:t,value:n,onChange:i,placeholderText:o,multiple:l=!1,showCheckboxes:u=!1,id:f,required:p=!1,showSelectionCountOnly:m=!1,disabled:d=!1})=>{const[g,_]=React.useState(!1),[E,S]=React.useState(!1),[b,T]=React.useState(""),C=React.useRef(null),R=React.useRef(null),A=t.filter(F=>{var B;return(B=F.label)==null?void 0:B.toLowerCase().includes(b==null?void 0:b.toLowerCase())});React.useEffect(()=>{if(l)l&&T("");else{const F=j(n[0]);T(F||"")}},[n,l,t]);const O=F=>{if(!d)if(l){const B=n.includes(F.value);i(B?n.filter(q=>q!==F.value):[...n,F.value]),T("")}else i([F.value]),T(F.label),_(!1)},I=F=>{R.current&&!R.current.contains(F.target)&&(_(!1),S(!1))};React.useEffect(()=>(document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)),[]);const j=F=>{var B;return((B=t.find(q=>q.value===F))==null?void 0:B.label)||F},D=F=>{F.stopPropagation(),T(""),i([])};return jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:R,id:f,"data-testid":f?`ce-autocomplete-${f}`:"ce-autocomplete",children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper always-float ${E||g?"focused":""} ${n.length>0?"has-value has-clear":""} ${d?"disabled":""}`,onClick:()=>{d||_(!0)},children:[jsxRuntimeExports.jsxs("label",{className:"autocomplete-label",children:[e,p&&jsxRuntimeExports.jsx("span",{className:"required-asterisk",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"input-area",children:[l&&n.length>0&&jsxRuntimeExports.jsx("div",{className:"selected-values",children:m?jsxRuntimeExports.jsxs("span",{className:"selected-summary",children:["Selected + ",n.length]}):n.map(F=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[j(F),jsxRuntimeExports.jsx("button",{onClick:B=>{d||(B.stopPropagation(),i(n.filter(q=>q!==F)))},children:"×"})]},F))}),jsxRuntimeExports.jsx("input",{ref:C,type:"text",className:"autocomplete-input",placeholder:l&&n.length>0?"":o,value:b,disabled:d,onChange:F=>T(F.target.value),onFocus:()=>{S(!0),_(!0)}}),n.length>0&&!d&&jsxRuntimeExports.jsx("span",{className:"clear-icon",onClick:D,title:"Clear",children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:F=>{d||(F.stopPropagation(),_(B=>!B))},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M6 9l6 6 6-6"})})})]})]}),g&&jsxRuntimeExports.jsxs("ul",{className:"autocomplete-list",children:[l&&u&&jsxRuntimeExports.jsx("li",{className:"select-all-option",children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.length===t.length,onChange:()=>{const F=n.length===t.length;i(F?[]:t.map(B=>B.value))}}),"Select All"]})}),A.map(F=>jsxRuntimeExports.jsx("li",{onClick:()=>O(F),children:l&&u?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(F.value),onChange:()=>O(F),onClick:B=>B.stopPropagation()}),F.label]}):F.label},F.value))]})]})};var EventKeys=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function isEventKey(e){if(typeof e!="string")return!1;var t=EventKeys;return t.includes(e)}var SVGElementPropKeys=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function isSvgElementPropKey(e){if(typeof e!="string")return!1;var t=SVGElementPropKeys;return t.includes(e)}function isDataAttribute(e){return typeof e=="string"&&e.startsWith("data-")}function svgPropertiesNoEvents(e){var t=Object.entries(e).filter(n=>{var[i]=n;return isSvgElementPropKey(i)||isDataAttribute(i)});return Object.fromEntries(t)}function svgPropertiesNoEventsFromUnknown(e){if(e==null)return null;if(React.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return svgPropertiesNoEvents(t)}return typeof e=="object"&&!Array.isArray(e)?svgPropertiesNoEvents(e):null}function svgPropertiesAndEvents(e){var t=Object.entries(e).filter(n=>{var[i]=n;return isSvgElementPropKey(i)||isDataAttribute(i)||isEventKey(i)});return Object.fromEntries(t)}function svgPropertiesAndEventsFromUnknown(e){return e==null?null:React.isValidElement(e)?svgPropertiesAndEvents(e.props):typeof e=="object"&&!Array.isArray(e)?svgPropertiesAndEvents(e):null}var _excluded$m=["children","width","height","viewBox","className","style","title","desc"];function _extends$s(){return _extends$s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$s.apply(null,arguments)}function _objectWithoutProperties$m(e,t){if(e==null)return{};var n,i,o=_objectWithoutPropertiesLoose$m(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose$m(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var Surface=React.forwardRef((e,t)=>{var{children:n,width:i,height:o,viewBox:l,className:u,style:f,title:p,desc:m}=e,d=_objectWithoutProperties$m(e,_excluded$m),g=l||{width:i,height:o,x:0,y:0},_=clsx("recharts-surface",u);return React__namespace.createElement("svg",_extends$s({},svgPropertiesAndEvents(d),{className:_,width:i,height:o,style:f,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height),ref:t}),React__namespace.createElement("title",null,p),React__namespace.createElement("desc",null,m),n)}),_excluded$l=["children","className"];function _extends$r(){return _extends$r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$r.apply(null,arguments)}function _objectWithoutProperties$l(e,t){if(e==null)return{};var n,i,o=_objectWithoutPropertiesLoose$l(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose$l(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var Layer=React__namespace.forwardRef((e,t)=>{var{children:n,className:i}=e,o=_objectWithoutProperties$l(e,_excluded$l),l=clsx("recharts-layer",i);return React__namespace.createElement("g",_extends$r({className:l},svgPropertiesAndEvents(o),{ref:t}),n)}),LegendPortalContext=React.createContext(null),useLegendPortal=()=>React.useContext(LegendPortalContext);function constant$1(e){return function(){return e}}const cos=Math.cos,sin=Math.sin,sqrt$1=Math.sqrt,pi$1=Math.PI,tau$1=2*pi$1,pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function append(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function appendRound(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return append;const n=10**t;return function(i){this._+=i[0];for(let o=1,l=i.length;o<l;++o)this._+=Math.round(arguments[o]*n)/n+i[o]}}class Path{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?append:appendRound(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,o){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(t,n,i,o,l,u){this._append`C${+t},${+n},${+i},${+o},${this._x1=+l},${this._y1=+u}`}arcTo(t,n,i,o,l){if(t=+t,n=+n,i=+i,o=+o,l=+l,l<0)throw new Error(`negative radius: ${l}`);let u=this._x1,f=this._y1,p=i-t,m=o-n,d=u-t,g=f-n,_=d*d+g*g;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(_>epsilon)if(!(Math.abs(g*p-m*d)>epsilon)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let E=i-u,S=o-f,b=p*p+m*m,T=E*E+S*S,C=Math.sqrt(b),R=Math.sqrt(_),A=l*Math.tan((pi-Math.acos((b+_-T)/(2*C*R)))/2),O=A/R,I=A/C;Math.abs(O-1)>epsilon&&this._append`L${t+O*d},${n+O*g}`,this._append`A${l},${l},0,0,${+(g*E>d*S)},${this._x1=t+I*p},${this._y1=n+I*m}`}}arc(t,n,i,o,l,u){if(t=+t,n=+n,i=+i,u=!!u,i<0)throw new Error(`negative radius: ${i}`);let f=i*Math.cos(o),p=i*Math.sin(o),m=t+f,d=n+p,g=1^u,_=u?o-l:l-o;this._x1===null?this._append`M${m},${d}`:(Math.abs(this._x1-m)>epsilon||Math.abs(this._y1-d)>epsilon)&&this._append`L${m},${d}`,i&&(_<0&&(_=_%tau+tau),_>tauEpsilon?this._append`A${i},${i},0,1,${g},${t-f},${n-p}A${i},${i},0,1,${g},${this._x1=m},${this._y1=d}`:_>epsilon&&this._append`A${i},${i},0,${+(_>=pi)},${g},${this._x1=t+i*Math.cos(l)},${this._y1=n+i*Math.sin(l)}`)}rect(t,n,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function withPath(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new Path(t)}function array(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function shapeLine(e,t){var n=constant$1(!0),i=null,o=curveLinear,l=null,u=withPath(f);e=typeof e=="function"?e:e===void 0?x:constant$1(e),t=typeof t=="function"?t:t===void 0?y:constant$1(t);function f(p){var m,d=(p=array(p)).length,g,_=!1,E;for(i==null&&(l=o(E=u())),m=0;m<=d;++m)!(m<d&&n(g=p[m],m,p))===_&&((_=!_)?l.lineStart():l.lineEnd()),_&&l.point(+e(g,m,p),+t(g,m,p));if(E)return l=null,E+""||null}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:constant$1(+p),f):e},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:constant$1(+p),f):t},f.defined=function(p){return arguments.length?(n=typeof p=="function"?p:constant$1(!!p),f):n},f.curve=function(p){return arguments.length?(o=p,i!=null&&(l=o(i)),f):o},f.context=function(p){return arguments.length?(p==null?i=l=null:l=o(i=p),f):i},f}function shapeArea(e,t,n){var i=null,o=constant$1(!0),l=null,u=curveLinear,f=null,p=withPath(m);e=typeof e=="function"?e:e===void 0?x:constant$1(+e),t=typeof t=="function"?t:constant$1(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?y:constant$1(+n);function m(g){var _,E,S,b=(g=array(g)).length,T,C=!1,R,A=new Array(b),O=new Array(b);for(l==null&&(f=u(R=p())),_=0;_<=b;++_){if(!(_<b&&o(T=g[_],_,g))===C)if(C=!C)E=_,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),S=_-1;S>=E;--S)f.point(A[S],O[S]);f.lineEnd(),f.areaEnd()}C&&(A[_]=+e(T,_,g),O[_]=+t(T,_,g),f.point(i?+i(T,_,g):A[_],n?+n(T,_,g):O[_]))}if(R)return f=null,R+""||null}function d(){return shapeLine().defined(o).curve(u).context(l)}return m.x=function(g){return arguments.length?(e=typeof g=="function"?g:constant$1(+g),i=null,m):e},m.x0=function(g){return arguments.length?(e=typeof g=="function"?g:constant$1(+g),m):e},m.x1=function(g){return arguments.length?(i=g==null?null:typeof g=="function"?g:constant$1(+g),m):i},m.y=function(g){return arguments.length?(t=typeof g=="function"?g:constant$1(+g),n=null,m):t},m.y0=function(g){return arguments.length?(t=typeof g=="function"?g:constant$1(+g),m):t},m.y1=function(g){return arguments.length?(n=g==null?null:typeof g=="function"?g:constant$1(+g),m):n},m.lineX0=m.lineY0=function(){return d().x(e).y(t)},m.lineY1=function(){return d().x(e).y(n)},m.lineX1=function(){return d().x(i).y(t)},m.defined=function(g){return arguments.length?(o=typeof g=="function"?g:constant$1(!!g),m):o},m.curve=function(g){return arguments.length?(u=g,l!=null&&(f=u(l)),m):u},m.context=function(g){return arguments.length?(g==null?l=f=null:f=u(l=g),m):l},m}class Bump{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function bumpX(e){return new Bump(e,!0)}function bumpY(e){return new Bump(e,!1)}const symbolCircle={draw(e,t){const n=sqrt$1(t/pi$1);e.moveTo(n,0),e.arc(0,0,n,0,tau$1)}},symbolCross={draw(e,t){const n=sqrt$1(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},tan30=sqrt$1(1/3),tan30_2=tan30*2,symbolDiamond={draw(e,t){const n=sqrt$1(t/tan30_2),i=n*tan30;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},symbolSquare={draw(e,t){const n=sqrt$1(t),i=-n/2;e.rect(i,i,n,n)}},ka=.8908130915292852,kr=sin(pi$1/10)/sin(7*pi$1/10),kx=sin(tau$1/10)*kr,ky=-cos(tau$1/10)*kr,symbolStar={draw(e,t){const n=sqrt$1(t*ka),i=kx*n,o=ky*n;e.moveTo(0,-n),e.lineTo(i,o);for(let l=1;l<5;++l){const u=tau$1*l/5,f=cos(u),p=sin(u);e.lineTo(p*n,-f*n),e.lineTo(f*i-p*o,p*i+f*o)}e.closePath()}},sqrt3=sqrt$1(3),symbolTriangle={draw(e,t){const n=-sqrt$1(t/(sqrt3*3));e.moveTo(0,n*2),e.lineTo(-sqrt3*n,-n),e.lineTo(sqrt3*n,-n),e.closePath()}},c=-.5,s=sqrt$1(3)/2,k=1/sqrt$1(12),a=(k/2+1)*3,symbolWye={draw(e,t){const n=sqrt$1(t/a),i=n/2,o=n*k,l=i,u=n*k+n,f=-l,p=u;e.moveTo(i,o),e.lineTo(l,u),e.lineTo(f,p),e.lineTo(c*i-s*o,s*i+c*o),e.lineTo(c*l-s*u,s*l+c*u),e.lineTo(c*f-s*p,s*f+c*p),e.lineTo(c*i+s*o,c*o-s*i),e.lineTo(c*l+s*u,c*u-s*l),e.lineTo(c*f+s*p,c*p-s*f),e.closePath()}};function Symbol$1(e,t){let n=null,i=withPath(o);e=typeof e=="function"?e:constant$1(e||symbolCircle),t=typeof t=="function"?t:constant$1(t===void 0?64:+t);function o(){let l;if(n||(n=l=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),l)return n=null,l+""||null}return o.type=function(l){return arguments.length?(e=typeof l=="function"?l:constant$1(l),o):e},o.size=function(l){return arguments.length?(t=typeof l=="function"?l:constant$1(+l),o):t},o.context=function(l){return arguments.length?(n=l??null,o):n},o}function noop$5(){}function point$2(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Basis(e){this._context=e}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasis(e){return new Basis(e)}function BasisClosed(e){this._context=e}BasisClosed.prototype={areaStart:noop$5,areaEnd:noop$5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:point$2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisClosed(e){return new BasisClosed(e)}function BasisOpen(e){this._context=e}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:point$2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisOpen(e){return new BasisOpen(e)}function LinearClosed(e){this._context=e}LinearClosed.prototype={areaStart:noop$5,areaEnd:noop$5,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function curveLinearClosed(e){return new LinearClosed(e)}function sign(e){return e<0?-1:1}function slope3(e,t,n){var i=e._x1-e._x0,o=t-e._x1,l=(e._y1-e._y0)/(i||o<0&&-0),u=(n-e._y1)/(o||i<0&&-0),f=(l*o+u*i)/(i+o);return(sign(l)+sign(u))*Math.min(Math.abs(l),Math.abs(u),.5*Math.abs(f))||0}function slope2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function point$1(e,t,n){var i=e._x0,o=e._y0,l=e._x1,u=e._y1,f=(l-i)/3;e._context.bezierCurveTo(i+f,o+f*t,l-f,u-f*n,l,u)}function MonotoneX(e){this._context=e}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$1(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,n=slope3(this,e,t)),n);break;default:point$1(this,this._t0,n=slope3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,t){MonotoneX.prototype.point.call(this,t,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,o,l){this._context.bezierCurveTo(t,e,i,n,l,o)}};function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var i=controlPoints(e),o=controlPoints(t),l=0,u=1;u<n;++l,++u)this._context.bezierCurveTo(i[0][l],o[0][l],i[1][l],o[1][l],e[u],t[u]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function controlPoints(e){var t,n=e.length-1,i,o=new Array(n),l=new Array(n),u=new Array(n);for(o[0]=0,l[0]=2,u[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,l[t]=4,u[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,l[n-1]=7,u[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=o[t]/l[t-1],l[t]-=i,u[t]-=i*u[t-1];for(o[n-1]=u[n-1]/l[n-1],t=n-2;t>=0;--t)o[t]=(u[t]-o[t+1])/l[t];for(l[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-o[t+1];return[o,l]}function curveNatural(e){return new Natural(e)}function Step(e,t){this._context=e,this._t=t}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function curveStep(e){return new Step(e,.5)}function stepBefore(e){return new Step(e,0)}function stepAfter(e){return new Step(e,1)}function stackOffsetNone(e,t){if((u=e.length)>1)for(var n=1,i,o,l=e[t[0]],u,f=l.length;n<u;++n)for(o=l,l=e[t[n]],i=0;i<f;++i)l[i][1]+=l[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function stackOrderNone(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function stackValue(e,t){return e[t]}function stackSeries(e){const t=[];return t.key=e,t}function shapeStack(){var e=constant$1([]),t=stackOrderNone,n=stackOffsetNone,i=stackValue;function o(l){var u=Array.from(e.apply(this,arguments),stackSeries),f,p=u.length,m=-1,d;for(const g of l)for(f=0,++m;f<p;++f)(u[f][m]=[0,+i(g,u[f].key,m,l)]).data=g;for(f=0,d=array(t(u));f<p;++f)u[d[f]].index=f;return n(u,d),u}return o.keys=function(l){return arguments.length?(e=typeof l=="function"?l:constant$1(Array.from(l)),o):e},o.value=function(l){return arguments.length?(i=typeof l=="function"?l:constant$1(+l),o):i},o.order=function(l){return arguments.length?(t=l==null?stackOrderNone:typeof l=="function"?l:constant$1(Array.from(l)),o):t},o.offset=function(l){return arguments.length?(n=l??stackOffsetNone,o):n},o}function stackOffsetExpand(e,t){if((i=e.length)>0){for(var n,i,o=0,l=e[0].length,u;o<l;++o){for(u=n=0;n<i;++n)u+=e[n][o][1]||0;if(u)for(n=0;n<i;++n)e[n][o][1]/=u}stackOffsetNone(e,t)}}function stackOffsetSilhouette(e,t){if((o=e.length)>0){for(var n=0,i=e[t[0]],o,l=i.length;n<l;++n){for(var u=0,f=0;u<o;++u)f+=e[u][n][1]||0;i[n][1]+=i[n][0]=-f/2}stackOffsetNone(e,t)}}function stackOffsetWiggle(e,t){if(!(!((u=e.length)>0)||!((l=(o=e[t[0]]).length)>0))){for(var n=0,i=1,o,l,u;i<l;++i){for(var f=0,p=0,m=0;f<u;++f){for(var d=e[t[f]],g=d[i][1]||0,_=d[i-1][1]||0,E=(g-_)/2,S=0;S<f;++S){var b=e[t[S]],T=b[i][1]||0,C=b[i-1][1]||0;E+=T-C}p+=g,m+=E*g}o[i-1][1]+=o[i-1][0]=n,p&&(n-=m/p)}o[i-1][1]+=o[i-1][0]=n,stackOffsetNone(e,t)}}var get$2={},isUnsafeProperty={},hasRequiredIsUnsafeProperty;function requireIsUnsafeProperty(){return hasRequiredIsUnsafeProperty||(hasRequiredIsUnsafeProperty=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(isUnsafeProperty)),isUnsafeProperty}var isDeepKey={},hasRequiredIsDeepKey;function requireIsDeepKey(){return hasRequiredIsDeepKey||(hasRequiredIsDeepKey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(isDeepKey)),isDeepKey}var toKey={},hasRequiredToKey;function requireToKey(){return hasRequiredToKey||(hasRequiredToKey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;return typeof n=="string"||typeof n=="symbol"?n:Object.is((i=n==null?void 0:n.valueOf)==null?void 0:i.call(n),-0)?"-0":String(n)}e.toKey=t})(toKey)),toKey}var toPath={},toString$1={},hasRequiredToString;function requireToString(){return hasRequiredToString||(hasRequiredToString=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const i=String(n);return i==="0"&&Object.is(Number(n),-0)?"-0":i}e.toString=t})(toString$1)),toString$1}var hasRequiredToPath;function requireToPath(){return hasRequiredToPath||(hasRequiredToPath=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireToString(),n=requireToKey();function i(o){if(Array.isArray(o))return o.map(n.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const l=[],u=o.length;if(u===0)return l;let f=0,p="",m="",d=!1;for(o.charCodeAt(0)===46&&(l.push(""),f++);f<u;){const g=o[f];m?g==="\\"&&f+1<u?(f++,p+=o[f]):g===m?m="":p+=g:d?g==='"'||g==="'"?m=g:g==="]"?(d=!1,l.push(p),p=""):p+=g:g==="["?(d=!0,p&&(l.push(p),p="")):g==="."?p&&(l.push(p),p=""):p+=g,f++}return p&&l.push(p),l}e.toPath=i})(toPath)),toPath}var hasRequiredGet$1;function requireGet$1(){return hasRequiredGet$1||(hasRequiredGet$1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIsUnsafeProperty(),n=requireIsDeepKey(),i=requireToKey(),o=requireToPath();function l(f,p,m){if(f==null)return m;switch(typeof p){case"string":{if(t.isUnsafeProperty(p))return m;const d=f[p];return d===void 0?n.isDeepKey(p)?l(f,o.toPath(p),m):m:d}case"number":case"symbol":{typeof p=="number"&&(p=i.toKey(p));const d=f[p];return d===void 0?m:d}default:{if(Array.isArray(p))return u(f,p,m);if(Object.is(p==null?void 0:p.valueOf(),-0)?p="-0":p=String(p),t.isUnsafeProperty(p))return m;const d=f[p];return d===void 0?m:d}}}function u(f,p,m){if(p.length===0)return m;let d=f;for(let g=0;g<p.length;g++){if(d==null||t.isUnsafeProperty(p[g]))return m;d=d[p[g]]}return d===void 0?m:d}e.get=l})(get$2)),get$2}var get$1,hasRequiredGet;function requireGet(){return hasRequiredGet||(hasRequiredGet=1,get$1=requireGet$1().get),get$1}var getExports=requireGet();const get=getDefaultExportFromCjs(getExports);var mathSign=e=>e===0?0:e>0?1:-1,isNan=e=>typeof e=="number"&&e!=+e,isPercent=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,isNumber=e=>(typeof e=="number"||e instanceof Number)&&!isNan(e),isNumOrStr=e=>isNumber(e)||typeof e=="string",idCounter=0,uniqueId=e=>{var t=++idCounter;return"".concat(e||"").concat(t)},getPercentValue=function e(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!isNumber(t)&&typeof t!="string")return i;var l;if(isPercent(t)){if(n==null)return i;var u=t.indexOf("%");l=n*parseFloat(t.slice(0,u))/100}else l=+t;return isNan(l)&&(l=i),o&&n!=null&&l>n&&(l=n),l},hasDuplicate=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},i=0;i<t;i++)if(!n[e[i]])n[e[i]]=!0;else return!0;return!1};function interpolate$1(e,t,n){return isNumber(e)&&isNumber(t)?e+n*(t-e):t}function findEntryInArray(e,t,n){if(!(!e||!e.length))return e.find(i=>i&&(typeof t=="function"?t(i):get(i,t))===n)}var isNullish=e=>e===null||typeof e>"u",upperFirst=e=>isNullish(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),_excluded$k=["type","size","sizeType"];function _extends$q(){return _extends$q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$q.apply(null,arguments)}function ownKeys$B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$B(Object(n),!0).forEach(function(i){_defineProperty$D(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$B(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$D(e,t,n){return(t=_toPropertyKey$D(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$D(e){var t=_toPrimitive$D(e,"string");return typeof t=="symbol"?t:t+""}function _toPrimitive$D(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _objectWithoutProperties$k(e,t){if(e==null)return{};var n,i,o=_objectWithoutPropertiesLoose$k(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose$k(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var symbolFactories={symbolCircle,symbolCross,symbolDiamond,symbolSquare,symbolStar,symbolTriangle,symbolWye},RADIAN$1=Math.PI/180,getSymbolFactory=e=>{var t="symbol".concat(upperFirst(e));return symbolFactories[t]||symbolCircle},calculateAreaSize=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var i=18*RADIAN$1;return 1.25*e*e*(Math.tan(i)-Math.tan(i*2)*Math.tan(i)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},registerSymbol=(e,t)=>{symbolFactories["symbol".concat(upperFirst(e))]=t},Symbols=e=>{var{type:t="circle",size:n=64,sizeType:i="area"}=e,o=_objectWithoutProperties$k(e,_excluded$k),l=_objectSpread$B(_objectSpread$B({},o),{},{type:t,size:n,sizeType:i}),u="circle";typeof t=="string"&&(u=t);var f=()=>{var _=getSymbolFactory(u),E=Symbol$1().type(_).size(calculateAreaSize(n,i,u)),S=E();if(S!==null)return S},{className:p,cx:m,cy:d}=l,g=svgPropertiesAndEvents(l);return m===+m&&d===+d&&n===+n?React__namespace.createElement("path",_extends$q({},g,{className:clsx("recharts-symbols",p),transform:"translate(".concat(m,", ").concat(d,")"),d:f()})):null};Symbols.registerSymbol=registerSymbol;var adaptEventHandlers=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(React.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var i={};return Object.keys(n).forEach(o=>{isEventKey(o)&&(i[o]=(l=>n[o](n,l)))}),i},getEventHandlerOfChild=(e,t,n)=>i=>(e(t,n,i),null),adaptEventsOfChild=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var i=null;return Object.keys(e).forEach(o=>{var l=e[o];isEventKey(o)&&typeof l=="function"&&(i||(i={}),i[o]=getEventHandlerOfChild(l,t,n))}),i};function _extends$p(){return _extends$p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$p.apply(null,arguments)}function ownKeys$A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$A(Object(n),!0).forEach(function(i){_defineProperty$C(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$A(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$C(e,t,n){return(t=_toPropertyKey$C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$C(e){var t=_toPrimitive$C(e,"string");return typeof t=="symbol"?t:t+""}function _toPrimitive$C(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SIZE=32;class DefaultLegendContent extends React.PureComponent{renderIcon(t,n){var{inactiveColor:i}=this.props,o=SIZE/2,l=SIZE/6,u=SIZE/3,f=t.inactive?i:t.color,p=n??t.type;if(p==="none")return null;if(p==="plainline")return React__namespace.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:o,x2:SIZE,y2:o,className:"recharts-legend-icon"});if(p==="line")return React__namespace.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(o,"h").concat(u,`
347
+ `;var n=sheet_to_csv(e,t);return n}function sheet_to_formulae(e){var t="",n,i="";if(e==null||e["!ref"]==null)return[];var o=safe_decode_range(e["!ref"]),l="",u=[],f,p=[],m=Array.isArray(e);for(f=o.s.c;f<=o.e.c;++f)u[f]=encode_col(f);for(var d=o.s.r;d<=o.e.r;++d)for(l=encode_row(d),f=o.s.c;f<=o.e.c;++f)if(t=u[f]+l,n=m?(e[d]||[])[f]:e[t],i="",n!==void 0){if(n.F!=null){if(t=n.F,!n.f)continue;i=n.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(n.f!=null)i=n.f;else{if(n.t=="z")continue;if(n.t=="n"&&n.v!=null)i=""+n.v;else if(n.t=="b")i=n.v?"TRUE":"FALSE";else if(n.w!==void 0)i="'"+n.w;else{if(n.v===void 0)continue;n.t=="s"?i="'"+n.v:i=""+n.v}}p[p.length]=t+"="+i}return p}function sheet_add_json(e,t,n){var i=n||{},o=+!i.skipHeader,l=e||{},u=0,f=0;if(l&&i.origin!=null)if(typeof i.origin=="number")u=i.origin;else{var p=typeof i.origin=="string"?decode_cell(i.origin):i.origin;u=p.r,f=p.c}var m,d={s:{c:0,r:0},e:{c:f,r:u+t.length-1+o}};if(l["!ref"]){var g=safe_decode_range(l["!ref"]);d.e.c=Math.max(d.e.c,g.e.c),d.e.r=Math.max(d.e.r,g.e.r),u==-1&&(u=g.e.r+1,d.e.r=u+t.length-1+o)}else u==-1&&(u=0,d.e.r=t.length-1+o);var _=i.header||[],E=0;t.forEach(function(b,T){keys(b).forEach(function(C){(E=_.indexOf(C))==-1&&(_[E=_.length]=C);var R=b[C],A="z",O="",I=encode_cell({c:f+E,r:u+T+o});m=ws_get_cell_stub(l,I),R&&typeof R=="object"&&!(R instanceof Date)?l[I]=R:(typeof R=="number"?A="n":typeof R=="boolean"?A="b":typeof R=="string"?A="s":R instanceof Date?(A="d",i.cellDates||(A="n",R=datenum(R)),O=i.dateNF||table_fmt[14]):R===null&&i.nullError&&(A="e",R=0),m?(m.t=A,m.v=R,delete m.w,delete m.R,O&&(m.z=O)):l[I]=m={t:A,v:R},O&&(m.z=O))})}),d.e.c=Math.max(d.e.c,f+_.length-1);var S=encode_row(u);if(o)for(E=0;E<_.length;++E)l[encode_col(E+f)+S]={t:"s",v:_[E]};return l["!ref"]=encode_range(d),l}function json_to_sheet(e,t){return sheet_add_json(null,e,t)}function ws_get_cell_stub(e,t,n){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:n||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 n=e.SheetNames.indexOf(t);if(n>-1)return n;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,n,i){var o=1;if(!n)for(;o<=65535&&e.SheetNames.indexOf(n="Sheet"+o)!=-1;++o,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(i&&e.SheetNames.indexOf(n)>=0){var l=n.match(/(^.*?)(\d+)$/);o=l&&+l[2]||0;var u=l&&l[1]||n;for(++o;o<=65535&&e.SheetNames.indexOf(n=u+o)!=-1;++o);}if(check_ws_name(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function book_set_sheet_visibility(e,t,n){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]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[i].Hidden=n}function cell_set_number_format(e,t){return e.z=t,e}function cell_set_hyperlink(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function cell_set_internal_link(e,t,n){return cell_set_hyperlink(e,"#"+t,n)}function cell_add_comment(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})}function sheet_set_array_formula(e,t,n,i){for(var o=typeof t!="string"?t:safe_decode_range(t),l=typeof t=="string"?t:encode_range(t),u=o.s.r;u<=o.e.r;++u)for(var f=o.s.c;f<=o.e.c;++f){var p=ws_get_cell_stub(e,u,f);p.t="n",p.F=l,delete p.v,u==o.s.r&&f==o.s.c&&(p.f=n,i&&(p.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 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((n,i)=>jsxRuntimeExports.jsx("th",{children:jsxRuntimeExports.jsx("div",{className:"skeleton skeleton-header"})},i))})}),jsxRuntimeExports.jsx("tbody",{children:Array.from({length:t}).map((n,i)=>jsxRuntimeExports.jsx("tr",{children:Array.from({length:e}).map((o,l)=>jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx("div",{className:"skeleton skeleton-cell"})},l))},i))})]})}),CERadioButton=({label:e,value:t,checked:n,onChange:i,id:o,name:l})=>jsxRuntimeExports.jsxs("label",{className:"radio-button",style:{margin:"0.5rem 0"},children:[jsxRuntimeExports.jsx("input",{type:"radio",id:o,name:l,value:t,checked:n,onChange:()=>i(t),style:{marginRight:e?"0.5rem":0}}),e&&jsxRuntimeExports.jsx("span",{children:e})]}),CETruncatedTextWithTooltip=({text:e})=>{const[t,n]=React.useState(!1),[i,o]=React.useState({top:0,left:0}),l=React.useRef(null),[u,f]=React.useState(!1);React.useEffect(()=>{l.current&&f(l.current.scrollWidth>l.current.clientWidth)},[e]);const p=()=>{if(!l.current)return;const d=l.current.getBoundingClientRect(),g=300,_=100;let E=d.bottom+window.scrollY+8,S=d.left+window.scrollX;const b=window.innerWidth,T=window.innerHeight;S+g>b&&(S=b-g-8),d.bottom+_>T&&(E=d.top+window.scrollY-_-8),o({top:E,left:S}),n(!0)},m=()=>n(!1);return jsxRuntimeExports.jsxs("span",{className:"truncated-text-with-tooltip",ref:l,onMouseEnter:p,onMouseLeave:m,children:[e,u&&t&&ReactDOM.createPortal(jsxRuntimeExports.jsx("div",{className:"truncated-text-tooltip global-tooltip",style:{position:"absolute",top:`${i.top}px`,left:`${i.left}px`},children:e}),document.body)]})},DatePickerCell=({row:e,colId:t})=>{var i;const n=o=>{var u;const l=o.target.value;(u=e[t])==null||u.onchange(l)};return jsxRuntimeExports.jsx("div",{style:{minWidth:"120px"},children:jsxRuntimeExports.jsx("input",{type:"date",value:(i=e[t])==null?void 0:i.value,onChange:o=>n(o)})})},AddNewRowCell=({row:e,column:t,colId:n})=>{var p,m,d,g,_,E,S,b,T,C,R,A,O,I,j,D;const i=(((p=e[n])==null?void 0:p.required)??t.required)||!1,o=!!e[n].error,[l,u]=React.useState(!1),f=t.elementType;return React.useEffect(()=>{u(!(o||i))},[o,i,t.required]),jsxRuntimeExports.jsx("div",{children:o&&!l?jsxRuntimeExports.jsxs("div",{className:"add-new-row-error-content",onClick:()=>u(!0),role:"button",tabIndex:0,title:((m=e[n])==null?void 0:m.tooltip)||"","aria-label":((d=e[n])==null?void 0:d.tooltip)||"",children:[jsxRuntimeExports.jsx("span",{className:"table-new-row-warning-message",children:(g=e[n])==null?void 0:g.value}),jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#d32f2f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-circle-alert",style:{flexShrink:0},children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),jsxRuntimeExports.jsx("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})]},e.id):i&&!l?jsxRuntimeExports.jsxs("div",{className:"add-new-row-error-warning",onClick:()=>u(!0),role:"button",tabIndex:0,title:((_=e[n])==null?void 0:_.tooltip)||"This field is required. Click to enter a value.","aria-label":((E=e[n])==null?void 0:E.tooltip)||"This field is required. Click to enter a value.",children:[jsxRuntimeExports.jsx("span",{className:"table-new-row-warning-message",children:((S=e[n])==null?void 0:S.value)||"Required"}),jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#ff9800",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-triangle-alert",style:{flexShrink:0},children:[jsxRuntimeExports.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),jsxRuntimeExports.jsx("path",{d:"M12 9v4"}),jsxRuntimeExports.jsx("path",{d:"M12 17h.01"})]})]},e.id):l&&(f==="auto-suggest"?jsxRuntimeExports.jsx(CEAdvancedAutoSuggest,{label:"",fetchSuggestions:(b=e[n])==null?void 0:b.fetchOptions,onChange:()=>{},onSelect:F=>{var B,q;return(q=(B=e[n])==null?void 0:B.onselect)==null?void 0:q.call(B,F)},value:((T=e[n])==null?void 0:T.selectedOption)||null}):f==="date-picker"?jsxRuntimeExports.jsx(DatePickerCell,{row:e,colId:n}):f==="text-input"?jsxRuntimeExports.jsx(CEInputBox,{onChange:F=>{var B;return(B=e[n])==null?void 0:B.onchange(F)},value:((C=e[n])==null?void 0:C.value)||"",showError:!1,disabled:((R=e[n])==null?void 0:R.disabled)??!1}):f==="number-input"?jsxRuntimeExports.jsx(CEInputBox,{type:"number",onChange:F=>{var B;return(B=e[n])==null?void 0:B.onchange(F)},value:((A=e[n])==null?void 0:A.value)||"",showError:!1,disabled:((O=e[n])==null?void 0:O.disabled)??!1}):f==="drop-down-input"?jsxRuntimeExports.jsx(CEDynamicSelectField,{label:"",value:((I=e[n])==null?void 0:I.value)||"",onChange:F=>{var B;(B=e[n])==null||B.onchange(F.target.value)},options:((j=e[n])==null?void 0:j.options)||[],showPlaceholder:!0,placeholderText:""}):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(((D=e[n])==null?void 0:D.value)??"")}))})},CEDateRangePicker=({label:e="Submitted Date",tooltip:t,required:n=!1,onChange:i,size:o="medium",style:l,inputGroupStyle:u,id:f,name:p,mode:m="range",defaultValue:d,disabled:g=!1,minDate:_="",defaultFloat:E=!0,disablePastDates:S=!1})=>{const[b,T]=React.useState(""),[C,R]=React.useState(""),[A,O]=React.useState(()=>!!E),[I,j]=React.useState(""),F=new Date().toISOString().split("T")[0],B=_?new Date(_).toISOString().split("T")[0]:S?F:void 0,q=()=>O(!0),H=G=>{!G.currentTarget.value&&!b&&!C&&O(!1)},M=(G,W)=>{if(i==null||i({startDate:G||"",endDate:W||""}),G&&!W||!G&&W){j("Both start and end dates must be selected");return}if(G&&W&&new Date(W)<new Date(G)){j("End date must be after or equal to start date");return}j("")},K=G=>{if(!G)return"";if(/^\d{4}-\d{2}-\d{2}$/.test(G))return G;if(G.includes("/")){const Z=G.split("/").map(X=>X.trim());if(Z.length>=3){const X=Z[0].padStart(2,"0").slice(0,2),ee=Z[1].padStart(2,"0").slice(0,2),de=Z[2].replace(/\D/g,"").slice(0,4);return de.length!==4?"":`${de}-${X}-${ee}`}}const W=G.replace(/\D/g,"");if(W.length===8){const Z=W.slice(0,4),X=W.slice(4,6),ee=W.slice(6,8);if(+X>=1&&+X<=12)return`${Z}-${X}-${ee}`;const ce=W.slice(0,2),de=W.slice(2,4);return`${W.slice(4,8)}-${ce}-${de}`}const z=new Date(G);if(!isNaN(z.getTime())){const Z=z.getFullYear().toString().slice(0,4).padStart(4,"0"),X=(z.getMonth()+1).toString().padStart(2,"0"),ee=z.getDate().toString().padStart(2,"0");return`${Z}-${X}-${ee}`}return""},Q=G=>{const W=G.match(/^(\d{4})/);return(W==null?void 0:W[1])==="0000"};React.useEffect(()=>{d&&(d.startDate&&T(K(d.startDate)),d.endDate&&R(K(d.endDate)))},[d]);const J=G=>{const W=K(G.target.value);T(W),M(W,C)},V=G=>{const W=K(G.target.value);R(W),M(b,W)},U=!!(A||b||C),N=getSizeStyle$1(o),L=({text:G,float:W,showTooltip:z=!0})=>jsxRuntimeExports.jsxs("label",{className:`floating-label-box${W?" float":""}`,children:[jsxRuntimeExports.jsxs("span",{className:"label-text",children:[G,n&&jsxRuntimeExports.jsx("span",{className:"required-star",children:"*"})]}),t&&z&&jsxRuntimeExports.jsxs("span",{className:"tooltip-icon",role:"button","aria-label":t,tabIndex:0,children:[jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",width:"1em",height:"1em","aria-hidden":"true",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),jsxRuntimeExports.jsx("text",{x:"12",y:"16",textAnchor:"middle",fontSize:"12",fill:"currentColor",fontFamily:"Inter, Arial",fontWeight:"600",children:"i"})]}),jsxRuntimeExports.jsx("span",{className:"tooltip-bubble",role:"tooltip",children:t})]})]});return jsxRuntimeExports.jsxs("div",{className:"date-range-picker",style:l,id:f,children:[jsxRuntimeExports.jsx("div",{className:"date-range-field-group",style:u,children:m==="single"?jsxRuntimeExports.jsxs("div",{className:"field-box ",style:N,children:[jsxRuntimeExports.jsx("input",{type:"date",value:b,name:p,min:B,disabled:g,onChange:G=>{const W=G.target.value;if(T(W),Q(W)){j("Year cannot be 0000");return}I==="Year cannot be 0000"&&j("");const z=K(W);i==null||i({startDate:z,endDate:""})},onFocus:q,onBlur:H}),jsxRuntimeExports.jsx(L,{text:e,float:U,showTooltip:!0})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"field-box ",style:N,children:[jsxRuntimeExports.jsx("input",{type:"date",value:b,name:p?`${p}-from`:void 0,min:B,onChange:J,onFocus:q,onBlur:H,disabled:g}),jsxRuntimeExports.jsx(L,{text:"From",float:!0,showTooltip:!0})]}),jsxRuntimeExports.jsx("span",{className:"range-separator centered",children:"to"}),jsxRuntimeExports.jsxs("div",{className:"field-box ",style:N,children:[jsxRuntimeExports.jsx("input",{type:"date",value:C,name:p?`${p}-to`:void 0,min:B,onChange:V,onFocus:q,onBlur:H,disabled:g}),jsxRuntimeExports.jsx(L,{text:"To",float:!0,showTooltip:!1})]})]})}),I&&m!=="single"&&jsxRuntimeExports.jsx("div",{className:"error-text",children:I})]})},useEscapeKey=e=>{React.useEffect(()=>{const t=n=>{n.key==="Escape"&&e()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e])},getColumnValue=e=>{if(e==null)return"";if(React.isValidElement(e)){const t=e;return t.props["data-value"]||t.props["data-sort"]||""}return typeof e=="string"||typeof e=="number"?e:String(e)},stripReactElements=e=>{if(Array.isArray(e))return e.map(stripReactElements);if(e&&typeof e=="object"&&!React.isValidElement(e)){const t={};for(const n in e)React.isValidElement(e[n])||(t[n]=stripReactElements(e[n]));return t}return e},Edit="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.06%203.58988L20.41%204.93988C21.2%205.71988%2021.2%206.98988%2020.41%207.76988L7.18%2020.9999H3V16.8199L13.4%206.40988L16.23%203.58988C17.01%202.80988%2018.28%202.80988%2019.06%203.58988ZM5%2018.9999L6.41%2019.0599L16.23%209.22988L14.82%207.81988L5%2017.6399V18.9999Z'%20fill='%2379747E'/%3e%3c/svg%3e",Approve="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.00003%2016.1701L4.83003%2012.0001L3.41003%2013.4101L9.00003%2019.0001L21%207.00009L19.59%205.59009L9.00003%2016.1701Z'%20fill='%2379747E'/%3e%3c/svg%3e",Reassign="data:image/svg+xml,%3csvg%20width='17'%20height='20'%20viewBox='0%200%2017%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.83828%200.221421C8.68188%200.075693%208.47503%20-0.00364251%208.2613%200.000128532C8.04757%200.00389957%207.84365%200.0904828%207.69249%200.241637C7.54134%200.392791%207.45476%200.596715%207.45098%200.810446C7.44721%201.02418%207.52655%201.23103%207.67228%201.38742L9.01428%202.72942H8.53028C6.89858%202.72942%205.30353%203.21327%203.94682%204.1198C2.59012%205.02632%201.53269%206.31479%200.908271%207.82228C0.283848%209.32977%200.120471%2010.9886%200.438799%2012.5889C0.757127%2014.1893%201.54286%2015.6593%202.69665%2016.8131C3.85043%2017.9668%205.32044%2018.7526%206.92078%2019.0709C8.52112%2019.3892%2010.1799%2019.2258%2011.6874%2018.6014C13.1949%2017.977%2014.4834%2016.9196%2015.3899%2015.5629C16.2964%2014.2062%2016.7803%2012.6111%2016.7803%2010.9794C16.7803%2010.7606%2016.6934%2010.5508%2016.5386%2010.3961C16.3839%2010.2413%2016.1741%2010.1544%2015.9553%2010.1544C15.7365%2010.1544%2015.5266%2010.2413%2015.3719%2010.3961C15.2172%2010.5508%2015.1303%2010.7606%2015.1303%2010.9794C15.1302%2012.2819%2014.7448%2013.5553%2014.0225%2014.6391C13.3002%2015.723%2012.2733%2016.5689%2011.0712%2017.0703C9.86915%2017.5718%208.54557%2017.7064%207.26716%2017.4571C5.98875%2017.2078%204.81268%2016.5859%203.88704%2015.6695C2.96139%2014.7532%202.32757%2013.5835%202.06538%2012.3077C1.80319%2011.0318%201.92436%209.70696%202.41362%208.49986C2.90289%207.29276%203.73837%206.25741%204.81488%205.52419C5.89138%204.79097%207.16076%204.39266%208.46318%204.37942L7.67118%205.17142C7.52097%205.32709%207.43791%205.53552%207.43989%205.75184C7.44187%205.96815%207.52873%206.17503%207.68177%206.32792C7.8348%206.48081%208.04177%206.56748%208.25808%206.56925C8.47439%206.57103%208.68275%206.48778%208.83828%206.33742L11.3133%203.86242C11.4678%203.70773%2011.5546%203.49805%2011.5546%203.27942C11.5546%203.0608%2011.4678%202.85111%2011.3133%202.69642L8.83828%200.221421ZM12.9523%207.08542C13.1097%207.23717%2013.2005%207.44523%2013.2046%207.66387C13.2087%207.8825%2013.1259%208.09384%2012.9743%208.25142L8.73928%2012.6514C8.66232%2012.7313%208.57005%2012.7948%208.46799%2012.8382C8.36593%2012.8815%208.25617%2012.9039%208.14528%2012.9039C8.03438%2012.9039%207.92462%2012.8815%207.82256%2012.8382C7.7205%2012.7948%207.62824%2012.7313%207.55128%2012.6514L5.73628%2010.766C5.65735%2010.6888%205.59473%2010.5965%205.55212%2010.4947C5.50952%2010.3928%205.48779%2010.2834%205.48822%2010.173C5.48866%2010.0626%205.51125%209.95343%205.55467%209.85191C5.59808%209.75039%205.66143%209.65862%205.74096%209.58204C5.82049%209.50545%205.91459%209.44561%206.01767%209.40606C6.12075%209.3665%206.23073%209.34804%206.34107%209.35177C6.45142%209.3555%206.5599%209.38134%206.66008%209.42776C6.76026%209.47418%206.8501%209.54024%206.92428%209.62202L8.14528%2010.8892L11.7863%207.10742C11.938%206.94997%2012.1461%206.85921%2012.3647%206.85509C12.5834%206.85096%2012.7947%206.93381%2012.9523%207.08542Z'%20fill='%2365B230'/%3e%3c/svg%3e",Add="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%2013H13V20H11V13H4V11H11V4H13V11H20V13Z'%20fill='%2379747E'/%3e%3c/svg%3e",Delete="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15%203V4H20V6H19V19C19%2020.1%2018.1%2021%2017%2021H7C5.9%2021%205%2020.1%205%2019V6H4V4H9V3H15ZM7%2019H17V6H7V19ZM9%208H11V17H9V8ZM15%208H13V17H15V8Z'%20fill='%2379747E'/%3e%3c/svg%3e",Cancel="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202C6.47%202%202%206.47%202%2012C2%2017.53%206.47%2022%2012%2022C17.53%2022%2022%2017.53%2022%2012C22%206.47%2017.53%202%2012%202ZM12%2020C7.59%2020%204%2016.41%204%2012C4%207.59%207.59%204%2012%204C16.41%204%2020%207.59%2020%2012C20%2016.41%2016.41%2020%2012%2020ZM12%2010.59L15.59%207L17%208.41L13.41%2012L17%2015.59L15.59%2017L12%2013.41L8.41%2017L7%2015.59L10.59%2012L7%208.41L8.41%207L12%2010.59Z'%20fill='%23C53225'/%3e%3c/svg%3e",ShowOrHideColumn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%3e%3cpath%20d='M0%200%20C1.39042818%20-0.00202787%202.78085531%20-0.00494519%204.17127991%20-0.00869751%20C7.06831102%20-0.0130889%209.9650623%20-0.00679496%2012.86206055%200.00732422%20C16.54104169%200.02439842%2020.21936509%200.01456623%2023.89832211%20-0.00339317%20C26.76486496%20-0.0143319%2029.63125676%20-0.01073875%2032.49780464%20-0.0030098%20C34.50268617%20-0.00008719%2036.50757401%20-0.00906178%2038.51243591%20-0.0184021%20C51.84643905%200.08288397%2062.36831214%202.18438052%2072.34765625%2011.3984375%20C82.72862089%2022.29501297%2083.81157502%2035.39563727%2083.72860718%2049.8704834%20C83.73328715%2051.15071931%2083.73796712%2052.43095523%2083.74278891%2053.74998617%20C83.75517662%2057.26010193%2083.74918524%2060.76996931%2083.73983026%2064.28008533%20C83.73298924%2068.08247635%2083.7435458%2071.88482726%2083.75177002%2075.68721008%20C83.76505611%2083.11894567%2083.76225259%2090.55058996%2083.7535321%2097.98232901%20C83.74673568%20104.02640949%2083.74584727%20110.07046452%2083.74910355%20116.11454773%20C83.74956325%20116.97729682%2083.75002294%20117.84004591%2083.75049657%20118.72893891%20C83.75145582%20120.4820182%2083.75242847%20122.23509749%2083.75341435%20123.98817676%20C83.76195323%20140.39713998%2083.75215774%20156.80605278%2083.73601325%20173.21500772%20C83.72261144%20187.27113064%2083.72493995%20201.32717921%2083.73876953%20215.38330078%20C83.75485194%20231.73663572%2083.7611294%20248.08992656%2083.75193274%20264.4432683%20C83.75097717%20266.18962128%2083.75003406%20267.93597427%2083.74910355%20269.68232727%20C83.74864072%20270.54139399%2083.74817789%20271.4004607%2083.74770104%20272.28555974%20C83.74511913%20278.31698617%2083.74946486%20284.34838445%2083.75654221%20290.37980652%20C83.76498704%20297.73782249%2083.76261469%20305.09574254%2083.74669997%20312.45374763%20C83.73885718%20316.20237621%2083.73565678%20319.95084531%2083.74564743%20323.69947243%20C83.75634508%20327.77524883%2083.74350635%20331.85062835%2083.72860718%20335.9263916%20C83.73529934%20337.09392896%2083.74199151%20338.26146632%2083.74888647%20339.4643836%20C83.6547451%20352.81613252%2081.80817857%20364.46802168%2072.34765625%20374.3984375%20C61.26850374%20384.62796175%2049.36756952%20385.86653363%2034.74609375%20385.76171875%20C33.37472535%20385.7611982%2032.0033562%20385.76172342%2030.63198853%20385.76322937%20C27.77960848%20385.76314043%2024.92751564%20385.75287014%2022.07519531%20385.73461914%20C18.44659665%20385.71189135%2014.81841439%20385.71140425%2011.18976402%20385.71813679%20C8.36535029%20385.72150093%205.54102895%20385.71480174%202.71663284%20385.70500755%20C0.73715224%20385.69937125%20-1.24234414%20385.70058074%20-3.22183228%20385.70198059%20C-16.18209116%20385.60087128%20-25.59788448%20384.09755013%20-35.65234375%20375.3984375%20C-45.54661727%20364.26539458%20-47.11519405%20351.39165616%20-47.03329468%20336.96398926%20C-47.03797465%20335.6757351%20-47.04265462%20334.38748094%20-47.04747641%20333.06018877%20C-47.05988124%20329.52308071%20-47.0538647%20325.98621866%20-47.04451776%20322.44911027%20C-47.03768394%20318.61945404%20-47.04822979%20314.78983788%20-47.05645752%20310.96018982%20C-47.06975116%20303.47317331%20-47.06693669%20295.98624736%20-47.0582196%20288.4992274%20C-47.05142618%20282.41077808%20-47.05053348%20276.32235401%20-47.05379105%20270.23390198%20C-47.05425075%20269.36517795%20-47.05471044%20268.49645393%20-47.05518407%20267.60140494%20C-47.05614331%20265.83624438%20-47.05711595%20264.07108383%20-47.05810185%20262.30592328%20C-47.06664294%20245.77967925%20-47.05684175%20229.25348526%20-47.04070075%20212.72724944%20C-47.02729873%20198.56732745%20-47.02962719%20184.40747926%20-47.04345703%20170.24755859%20C-47.05953551%20153.7777782%20-47.06581909%20137.3080416%20-47.05662024%20120.83825445%20C-47.05566466%20119.07982732%20-47.05472155%20117.32140017%20-47.05379105%20115.56297302%20C-47.05332822%20114.69794239%20-47.05286539%20113.83291175%20-47.05238854%20112.94166806%20C-47.04980545%20106.8651998%20-47.05415492%20100.78875947%20-47.06122971%2094.71229553%20C-47.06967015%2087.30042821%20-47.06731132%2079.88865612%20-47.05138747%2072.47679961%20C-47.04353884%2068.69994852%20-47.04035446%2064.92325585%20-47.05033493%2061.14640617%20C-47.06101703%2057.0417633%20-47.04820598%2052.93751546%20-47.03329468%2048.83288574%20C-47.03998684%2047.65397152%20-47.04667901%2046.47505731%20-47.05357397%2045.26041842%20C-46.9542233%2031.0988315%20-44.31098753%2020.04518898%20-34.13671875%209.88671875%20C-23.81712366%200.73176368%20-13.42909464%20-0.06246693%200%200%20Z%20'%20fill='%23212121'%20transform='translate(88.65234375,63.6015625)'/%3e%3cpath%20d='M0%200%20C1.37183255%20-0.00389885%202.74366391%20-0.00823591%204.11549377%20-0.01298523%20C6.97555474%20-0.02039888%209.83549214%20-0.02019147%2012.69555664%20-0.01489258%20C16.33091665%20-0.00909958%2019.96576688%20-0.02604816%2023.60104275%20-0.04923725%20C26.42978286%20-0.06408398%2029.25840319%20-0.06483166%2032.08717537%20-0.06172752%20C34.0694059%20-0.06247893%2036.05161807%20-0.07625581%2038.03379822%20-0.09040833%20C50.34165442%20-0.02798927%2060.24736289%202.00602656%2069.62890625%2010.30078125%20C80.23052058%2021.7808721%2081.93785653%2033.21068447%2081.88960266%2048.37446594%20C81.89342821%2049.66015683%2081.89725376%2050.94584772%2081.90119523%2052.27049893%20C81.9114249%2055.81433436%2081.90930634%2059.35806804%2081.90501463%2062.90191162%20C81.9025382%2066.73366042%2081.91157295%2070.56538531%2081.91905212%2074.39712524%20C81.93177597%2081.89455933%2081.93359569%2089.39195757%2081.93125186%2096.88940064%20C81.92946586%20102.98649949%2081.93122438%20109.08358749%2081.9354763%20115.18068504%20C81.93607149%20116.04981554%2081.93666668%20116.91894603%2081.93727991%20117.81441381%20C81.93849171%20119.58029897%2081.93970585%20121.34618412%2081.94092228%20123.11206927%20C81.95178902%20139.65831656%2081.9496395%20156.20454344%2081.94353744%20172.75079187%20C81.93836971%20187.86983815%2081.94962147%20202.98881998%2081.96863566%20218.10785351%20C81.98803326%20233.65155953%2081.99626664%20249.19523509%2081.9925124%20264.73895329%20C81.99060319%20273.45773292%2081.99306052%20282.17645771%2082.00722694%20290.89522743%20C82.01916628%20298.31814058%2082.02051713%20305.74096513%2082.00843678%20313.16387955%20C82.00256581%20316.94678992%2082.00139893%20320.72953843%2082.01343918%20324.51243782%20C82.02637213%20328.62380077%2082.01579126%20332.73478184%2082.00312805%20336.84614563%20C82.01050234%20338.02710621%2082.01787662%20339.20806678%2082.02547437%20340.42481405%20C81.94020249%20353.64162412%2079.58475249%20365.22365731%2070.62890625%20375.30078125%20C59.43149551%20384.98877486%2048.5995069%20385.6116798%2034.29296875%20385.6015625%20C32.92353183%20385.60546179%2031.5540961%20385.60979893%2030.18466187%20385.61454773%20C27.32879702%20385.62196213%2024.47305589%20385.62175381%2021.6171875%20385.61645508%20C17.99089323%20385.61066763%2014.36511094%20385.62759691%2010.73890114%20385.65079975%20C7.91440971%20385.66566391%205.090038%20385.66639174%202.26551437%20385.66329002%20C0.28942353%20385.66404012%20-1.68664899%20385.67780547%20-3.66268921%20385.69197083%20C-16.94942739%20385.62458325%20-27.43251173%20383.47720207%20-37.37109375%20374.30078125%20C-47.75205839%20363.40420578%20-48.83501252%20350.30358148%20-48.75204468%20335.82873535%20C-48.75672465%20334.54849944%20-48.76140462%20333.26826352%20-48.76622641%20331.94923258%20C-48.77861412%20328.43911682%20-48.77262274%20324.92924944%20-48.76326776%20321.41913342%20C-48.75642674%20317.6167424%20-48.7669833%20313.81439149%20-48.77520752%20310.01200867%20C-48.78849361%20302.58027308%20-48.78569009%20295.14862879%20-48.7769696%20287.71688974%20C-48.77017318%20281.67280926%20-48.76928477%20275.62875423%20-48.77254105%20269.58467102%20C-48.77300075%20268.72192193%20-48.77346044%20267.85917284%20-48.77393407%20266.97027984%20C-48.77489332%20265.21720055%20-48.77586597%20263.46412126%20-48.77685185%20261.71104199%20C-48.78539073%20245.30207877%20-48.77559524%20228.89316597%20-48.75945075%20212.48421103%20C-48.74604894%20198.42808811%20-48.74837745%20184.37203954%20-48.76220703%20170.31591797%20C-48.77828944%20153.96258303%20-48.7845669%20137.60929219%20-48.77537024%20121.25595045%20C-48.77441467%20119.50959747%20-48.77347156%20117.76324448%20-48.77254105%20116.01689148%20C-48.77184681%20114.72829141%20-48.77184681%20114.72829141%20-48.77113854%20113.41365901%20C-48.76855663%20107.38223258%20-48.77290236%20101.3508343%20-48.77997971%2095.31941223%20C-48.78842454%2087.96139626%20-48.78605219%2080.60347621%20-48.77013747%2073.24547112%20C-48.76229468%2069.49684254%20-48.75909428%2065.74837344%20-48.76908493%2061.99974632%20C-48.77978258%2057.92396992%20-48.76694385%2053.8485904%20-48.75204468%2049.77282715%20C-48.75873684%2048.60528979%20-48.76542901%2047.43775243%20-48.77232397%2046.23483515%20C-48.67188333%2031.98968244%20-46.49788008%2020.60627557%20-36.37109375%2010.30078125%20C-24.99934532%200.70204736%20-14.4396423%20-0.01018664%200%200%20Z%20'%20fill='%23212121'%20transform='translate(389.37109375,63.69921875)'/%3e%3cpath%20d='M0%200%20C1.37422758%20-0.00135128%202.7484547%20-0.00329565%204.12268066%20-0.00579834%20C6.98694461%20-0.00872786%209.85108284%20-0.00452264%2012.71533203%200.00488281%20C16.35966249%200.01627611%2020.0036982%200.00970489%2023.64801788%20-0.00226212%20C26.48099937%20-0.00953987%2029.31391266%20-0.00716587%2032.14689636%20-0.00200653%20C34.13524571%20-0.00005138%2036.12359788%20-0.00605238%2038.11193848%20-0.01226807%20C50.97970432%200.05377783%2060.71208654%201.43181578%2070.59375%2010.265625%20C80.43904472%2021.59627658%2081.90061916%2032.80877037%2081.85444641%2047.42196655%20C81.85827196%2048.71653011%2081.86209751%2050.01109367%2081.86603898%2051.34488642%20C81.87626947%2054.91345539%2081.87414988%2058.48192333%2081.86985838%2062.05050039%20C81.86738212%2065.90881512%2081.87641644%2069.76710608%2081.88389587%2073.62541199%20C81.89661984%2081.17464796%2081.89843945%2088.72384832%2081.89609561%2096.27309321%20C81.89430976%20102.4116766%2081.89606782%20108.55024922%2081.90032005%20114.68883133%20C81.90091524%20115.56380127%2081.90151043%20116.43877121%2081.90212366%20117.34025539%20C81.90333546%20119.11798027%2081.90454959%20120.89570516%2081.90576603%20122.67343004%20C81.91663264%20139.33028616%2081.91448321%20155.98712201%2081.90838119%20172.64397927%20C81.90321249%20187.86716535%2081.9144678%20203.09028744%2081.93347941%20218.31346087%20C81.95287204%20233.96225318%2081.96111133%20249.61101523%2081.95735615%20265.25981963%20C81.95544632%20274.03837098%2081.9579105%20282.81686787%2081.97207069%20291.59540939%20C81.98400361%20299.06848993%2081.98536797%20306.54148247%2081.97328053%20314.01456426%20C81.96740531%20317.8236788%2081.96625461%20321.63263253%2081.97828293%20325.44173622%20C81.99119743%20329.57972269%2081.98064519%20333.71732895%2081.9679718%20337.85531616%20C81.97534609%20339.04697148%2081.98272037%20340.23862679%2081.99031812%20341.46639287%20C81.9070551%20354.42932661%2079.28845483%20365.35673186%2070.59375%20375.265625%20C59.40723239%20384.95958111%2048.55610413%20385.57651772%2034.2578125%20385.56640625%20C32.88837558%20385.57030554%2031.51893985%20385.57464268%2030.14950562%20385.57939148%20C27.29364077%20385.58680588%2024.43789964%20385.58659756%2021.58203125%20385.58129883%20C17.95573698%20385.57551138%2014.32995469%20385.59244066%2010.70374489%20385.6156435%20C7.87925346%20385.63050766%205.05488175%20385.63123549%202.23035812%20385.62813377%20C0.25426728%20385.62888387%20-1.72180524%20385.64264922%20-3.69784546%20385.65681458%20C-16.86957859%20385.59001028%20-27.6387559%20383.53875206%20-37.40625%20374.265625%20C-47.39849958%20362.83409444%20-48.87080006%20349.69908274%20-48.79393005%20334.88296509%20C-48.79931559%20333.61230741%20-48.80470113%20332.34164973%20-48.81024987%20331.03248727%20C-48.82455435%20327.54904283%20-48.8205075%20324.06583798%20-48.81308305%20320.58238125%20C-48.80831603%20316.80857637%20-48.82089218%20313.03482073%20-48.83110046%20309.2610321%20C-48.84822503%20301.88477917%20-48.84914173%20294.50861166%20-48.84388756%20287.13234402%20C-48.83983281%20281.1321392%20-48.84130485%20275.13195947%20-48.84663582%20269.13175583%20C-48.84738424%20268.27513491%20-48.84813266%20267.41851399%20-48.84890376%20266.53593486%20C-48.85043537%20264.79526103%20-48.85197372%20263.05458721%20-48.85351873%20261.31391339%20C-48.86722079%20245.02030083%20-48.86182222%20228.72673639%20-48.85033352%20212.43312494%20C-48.84040323%20197.55559901%20-48.85334236%20182.67819748%20-48.87726771%20167.80069073%20C-48.90170128%20152.49074933%20-48.91125616%20137.18086577%20-48.90461498%20121.87090528%20C-48.90113225%20113.28900812%20-48.90329207%20104.70720657%20-48.92086601%2096.12532425%20C-48.93564136%2088.82004658%20-48.93615417%2081.51493187%20-48.9187951%2074.20965721%20C-48.91032641%2070.48908615%20-48.90803312%2066.76880554%20-48.92344666%2063.0482502%20C-49.06818906%2025.32392537%20-49.06818906%2025.32392537%20-38.8046875%2012.67578125%20C-27.21540674%201.02987534%20-15.72851608%20-0.04916843%200%200%20Z%20'%20fill='%23212121'%20transform='translate(239.40625,63.734375)'/%3e%3c/svg%3e",SearchRounded="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='M15.5001%2014.5H14.7101L14.4301%2014.23C15.6301%2012.83%2016.2501%2010.92%2015.9101%208.89002C15.4401%206.11002%2013.1201%203.89002%2010.3201%203.55002C6.09014%203.03002%202.53014%206.59001%203.05014%2010.82C3.39014%2013.62%205.61014%2015.94%208.39014%2016.41C10.4201%2016.75%2012.3301%2016.13%2013.7301%2014.93L14.0001%2015.21V16L18.2501%2020.25C18.6601%2020.66%2019.3301%2020.66%2019.7401%2020.25C20.1501%2019.84%2020.1501%2019.17%2019.7401%2018.76L15.5001%2014.5ZM9.50014%2014.5C7.01014%2014.5%205.00014%2012.49%205.00014%2010C5.00014%207.51002%207.01014%205.50002%209.50014%205.50002C11.9901%205.50002%2014.0001%207.51002%2014.0001%2010C14.0001%2012.49%2011.9901%2014.5%209.50014%2014.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",SortIcon="data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3115_5954)'%3e%3cpath%20d='M4.72326%2013.2386L1.2194%209.72426C0.396731%209.2419%20-0.40373%2010.2466%200.225485%2010.9546C1.77064%2012.4991%203.28619%2014.0746%204.8348%2015.616C4.89796%2015.6789%204.93004%2015.7593%205.00061%2015.8228C5.43736%2016.2172%206.29803%2015.9196%206.3158%2015.2815L6.31382%200.712092C6.27829%20-0.0888571%205.09586%20-0.25464%204.80025%200.452932C4.78347%200.493379%204.72277%200.686625%204.72277%200.711592V13.2391L4.72326%2013.2386Z'%20fill='%23909090'/%3e%3cpath%20d='M10.2754%202.75243L13.7792%206.26632C14.596%206.75068%2015.4078%205.7465%2014.7727%205.03643C13.2423%203.50195%2011.7332%201.94449%2010.2004%200.412502C10.1372%200.349085%2010.1051%200.26919%2010.0345%200.205773C9.56868%20-0.214176%208.72134%200.0359959%208.68235%200.709612L8.68432%2015.279C8.71986%2016.0799%209.90229%2016.2457%2010.1979%2015.5381C10.2147%2015.4977%2010.2754%2015.3045%2010.2754%2015.2795V2.75243Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3115_5954'%3e%3crect%20width='15'%20height='16'%20fill='white'%20transform='matrix(-1%200%200%201%2015%200)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",InfoIcon="data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.71338%2011.25H9.21338V6.75H7.71338V11.25ZM8.46338%205.25C8.67588%205.25%208.85413%205.178%208.99813%205.034C9.14213%204.89%209.21388%204.712%209.21338%204.5C9.21338%204.2875%209.14138%204.1095%208.99738%203.966C8.85338%203.8225%208.67538%203.7505%208.46338%203.75C8.25088%203.75%208.07288%203.822%207.92938%203.966C7.78588%204.11%207.71388%204.288%207.71338%204.5C7.71338%204.7125%207.78538%204.89075%207.92938%205.03475C8.07338%205.17875%208.25138%205.2505%208.46338%205.25ZM8.46338%2015C7.42588%2015%206.45088%2014.803%205.53838%2014.409C4.62588%2014.015%203.83213%2013.4807%203.15713%2012.8062C2.48213%2012.1312%201.94788%2011.3375%201.55438%2010.425C1.16088%209.5125%200.963879%208.5375%200.963379%207.5C0.963379%206.4625%201.16038%205.4875%201.55438%204.575C1.94838%203.6625%202.48263%202.86875%203.15713%202.19375C3.83213%201.51875%204.62588%200.9845%205.53838%200.591C6.45088%200.1975%207.42588%200.0005%208.46338%200C9.50088%200%2010.4759%200.197%2011.3884%200.591C12.3009%200.985%2013.0946%201.51925%2013.7696%202.19375C14.4446%202.86875%2014.9791%203.6625%2015.3731%204.575C15.7671%205.4875%2015.9639%206.4625%2015.9634%207.5C15.9634%208.5375%2015.7664%209.5125%2015.3724%2010.425C14.9784%2011.3375%2014.4441%2012.1312%2013.7696%2012.8062C13.0946%2013.4812%2012.3009%2014.0157%2011.3884%2014.4097C10.4759%2014.8037%209.50088%2015.0005%208.46338%2015ZM8.46338%2013.5C10.1384%2013.5%2011.5571%2012.9187%2012.7196%2011.7562C13.8821%2010.5937%2014.4634%209.175%2014.4634%207.5C14.4634%205.825%2013.8821%204.40625%2012.7196%203.24375C11.5571%202.08125%2010.1384%201.5%208.46338%201.5C6.78838%201.5%205.36963%202.08125%204.20713%203.24375C3.04463%204.40625%202.46338%205.825%202.46338%207.5C2.46338%209.175%203.04463%2010.5937%204.20713%2011.7562C5.36963%2012.9187%206.78838%2013.5%208.46338%2013.5Z'%20fill='%23464646'/%3e%3c/svg%3e",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",PaginationControls=({currentPage:e,totalPages:t,setCurrentPage:n})=>{const l=Math.floor(e/5)*5,u=Math.min(l+5,t),f=()=>{n(Math.max(0,l-1))},p=()=>{n(Math.min(t-1,u))},m=[];for(let d=l;d<u;d++)m.push(jsxRuntimeExports.jsx("button",{className:`pagination-page${e===d?" active":""}`,onClick:()=>n(d),disabled:e===d,children:d+1},d));return jsxRuntimeExports.jsxs("div",{className:"pagination-controls",children:[jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>n(0),disabled:e===0,children:"First"}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>n(e-1),disabled:e===0,children:"Previous"}),l>0&&jsxRuntimeExports.jsx("button",{className:"pagination-ellipsis",onClick:f,children:"..."}),m,u<t&&jsxRuntimeExports.jsx("button",{className:"pagination-ellipsis",onClick:p,children:"..."}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>n(e+1),disabled:e===t-1,children:"Next"}),jsxRuntimeExports.jsx("button",{className:"pagination-button",onClick:()=>n(t-1),disabled:e===t-1,children:"Last"})]})},RowsPerPageSelector=({rowsPerPage:e,setRowsPerPage:t,setCurrentPage:n,pageSizeOptions:i})=>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:o=>{t(Number(o.target.value)),n(0)},className:"ml-8",children:i.map(o=>jsxRuntimeExports.jsx("option",{value:o,children:o},o))})]}),EntriesInfo=({dataLength:e,currentPage:t,rowsPerPage:n})=>jsxRuntimeExports.jsx("div",{className:"entries-info",children:e>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Showing ",e===0?0:t*n+1," to"," ",Math.min((t+1)*n,e)," of ",e," ","entries"]})}),CEDataGridDynamicTable=({title:e,jsonData:t,columnList:n,ischeckBoxInGrid:i,isSingleSelectionMode:o=!1,isRadioButtonInGrid:l,onRadioChange:u,getSelectedRadioValue:f,renderRadioInColumnId:p,isSearchBoxInGrid:m,isAddButtonRequired:d,isEditButtonRequired:g,isDeleteButtonRequired:_,isApproveButtonRequired:E,isReassignButtonRequired:S,isCancelButtonRequired:b,isExportAllToExcel:T,handleEditClick:C,handleAddClick:R,handleDeleteClick:A,handleApproveClick:O,handleReassignClick:I,handleCancelClick:j,noOfPagesPerPage:D,clickableColumns:F,conditionalClickableColumns:B,clickableCellPredicate:q,handleCellClick:H,onReload:M,showDownloadIcon:K=!0,downloadOptions:Q,showRefreshIcon:J=!0,showFullViewIcon:V=!0,showColumnVisibilityIcon:U=!0,showSortIcon:N=!0,showFilterIcon:L=!0,defaultSortConfig:G,onDataUpdate:W,isOverrideCSS:z,showPagination:Z=!0,shouldResetSearchOnDataChange:X,pageSizeOptions:ee=[10,20,50,100],handleSelectedRows:ce,rowsSelected:de,selectionKey:Ee="id",onPageChange:ue,getRowDisabled:pe})=>{const[Pe,ae]=React.useState({}),[Ce,ye]=React.useState([]),[je,Te]=React.useState([]),[be,Ne]=React.useState(!1),[ze,Le]=React.useState(null),[Ue,Fe]=React.useState(new Set),[Ke,Xe]=React.useState(null),[Qe,qe]=React.useState(!1),[it,Je]=React.useState(""),[lt,dt]=React.useState(null),[at,vt]=React.useState("contains"),[ht,rt]=React.useState(""),[et,ct]=React.useState({}),[pt,nt]=React.useState(0),[ot,kt]=React.useState(D??10),[Tt,Dt]=React.useState(new Set),[mt,_t]=React.useState(""),[Ct,bt]=React.useState(!1),[Ve,st]=React.useState(new Set),[xt,Et]=React.useState([]),Ot=React.useMemo(()=>{const le=(n??[]).map(me=>me.id).join("|");return`ce-grid:${typeof e=="string"?e:"grid"}:${le}`},[n,e]),[St,Vt]=React.useState(null),Nt=React.useRef(null),Wt=React.useRef(null),Y=React.useRef(null),se=React.useRef(null),[te,ne]=React.useState(new Set),[ie,oe]=React.useState([]),[ve,we]=React.useState(!1),[he,ge]=React.useState(null),[_e,Ae]=React.useState(!1),[Ie,De]=React.useState(!0),Oe=React.useRef([]),Me=()=>Ae(!0),He=()=>Ae(!1),tt=le=>{if(nt(le),typeof ue=="function")try{ue(le)}catch{}};React.useEffect(()=>{if(typeof ue=="function")try{ue(pt)}catch{}},[pt]);const Ye=(le,fe)=>{if(typeof Ee=="function")try{const me=Ee(le);if(me!=null)return me}catch{}else if(typeof Ee=="string"&&le&&le[Ee]!==void 0)return le[Ee];if(fe!==void 0)return`__row_${fe}`};React.useEffect(()=>{if(typeof ce=="function"){const le=Array.from(Ue),fe=le.map(me=>{if(typeof me=="string"&&me.startsWith("__row_")){const xe=parseInt(me.slice(6),10);return!isNaN(xe)&&xe>=0&&xe<Ce.length?Ce[xe]:void 0}return(je||Ce||[]).find(xe=>{const Re=Ye(xe);return Re!==void 0&&(Re===me||String(Re)===String(me))})}).filter(Boolean);try{ce.length===1?ce({ids:le,rows:fe}):ce(fe)}catch{try{ce(fe)}catch{}}}},[Ue,Ce,Ee]),React.useEffect(()=>{if(!de)return;const le=Array.from(de),fe=le.every(xe=>typeof xe=="number"&&xe>=0&&xe<Ce.length),me=new Set(le.map(xe=>{if(fe){const Re=Ce[xe-1];return Ye(Re,xe)??`__row_${xe}`}return xe}));((xe,Re)=>!(xe.size!==Re.size||!Array.from(xe).every(ke=>Re.has(ke))))(me,Ue)||Fe(me)},[de,Ce,Ee]),React.useEffect(()=>{if(t&&Array.isArray(t)){const le=stripReactElements(Oe.current),fe=stripReactElements(t),me=JSON.stringify(le)!==JSON.stringify(fe);if(t&&Array.isArray(t)&&me){let Se=[...t];if(G){const{column:xe,direction:Re}=G;Se.sort((ke,Be)=>{const $e=ke[xe],Ge=Be[xe],We=new Date($e),Ze=new Date(Ge),ft=!isNaN(We.getTime()),Ft=!isNaN(Ze.getTime());if(ft&&Ft)return Re==="asc"?We.getTime()-Ze.getTime():Ze.getTime()-We.getTime();const Lt=String($e||"").toLowerCase(),jt=String(Ge||"").toLowerCase();return Lt.localeCompare(jt)}),Re==="desc"&&Se.reverse(),ge(G)}if(ye(Se),Te(Se),De(!1),X?(_t(""),ct({})):gt(),p){const xe={},Re=Array.isArray(p)?p:[p];Se.forEach((ke,Be)=>{const $e=ke.id??`__row_${Be}`;for(const Ge of Re)if(ke[Ge]===!0){xe[$e]={columnId:Ge,rowData:ke};break}}),wt(xe)}Oe.current=t}}else De(!0)},[t,G,p]),React.useEffect(()=>{if(Ce.length>0){const le=(n??[]).map(Se=>({id:Se.id,label:Se.label??Se.id,tooltip:Se.tooltip,shouldDisplay:Se.shouldDisplay??!0,shouldVisible:Se.shouldVisible??!0,width:Se.width,elementType:Se.elementType,required:Se.required??!1})),fe=Object.keys(Ce[0]||{}).map(Se=>({id:Se,label:Se.charAt(0).toUpperCase()+Se.slice(1),shouldDisplay:!0,shouldVisible:!0})),me=le.length>0?le:fe;if(oe(me),!ve){try{const Se=typeof window<"u"?window.localStorage.getItem(`${Ot}:columns`):null;if(Se){const xe=JSON.parse(Se),Re=new Set((xe.visibleColumns||[]).filter(Be=>me.some($e=>$e.id===Be))),ke=Array.isArray(xe.columnOrder)?xe.columnOrder.filter(Be=>me.some($e=>$e.id===Be)):[];if(Re.size>0)st(Re);else{const Be=me.filter($e=>$e.shouldDisplay!==!1).map($e=>$e.id);st(new Set(Be))}if(ke.length>0)Et(ke);else{const Be=me.filter($e=>$e.shouldVisible!==!1).map($e=>$e.id);Et(Be)}}else{const xe=me.filter(ke=>ke.shouldDisplay!==!1).map(ke=>ke.id);st(new Set(xe));const Re=me.filter(ke=>ke.shouldVisible!==!1).map(ke=>ke.id);Et(Re)}}catch{const xe=me.filter(ke=>ke.shouldDisplay!==!1).map(ke=>ke.id);st(new Set(xe));const Re=me.filter(ke=>ke.shouldVisible!==!1).map(ke=>ke.id);Et(Re)}we(!0)}}},[Ce,n,Ot,ve]),React.useEffect(()=>{if(ve)try{const le={visibleColumns:Array.from(Ve),columnOrder:xt};typeof window<"u"&&window.localStorage.setItem(`${Ot}:columns`,JSON.stringify(le))}catch{}},[Ve,xt,Ot,ve]);const[ut,wt]=React.useState({}),Pt=({rowIndex:le,columnId:fe,rowData:me})=>{const Se=Array.isArray(p)?p:[p],xe={...me,...Object.fromEntries(Se.map(Be=>[Be,Be===fe]))},Re=me.id??`__row_${le}`;wt(Be=>({...Be,[Re]:{columnId:fe,rowData:xe}}));const ke=Ce.map((Be,$e)=>(Be.id??`__row_${$e}`)===Re?{...Be,...Object.fromEntries(Se.map(We=>[We,We===fe]))}:Be);ye(ke),Te(ke),W&&W({fullData:ke,updatedRow:xe})},Rt=le=>{var Se;const fe=Ce.findIndex(xe=>xe===le),me=le.id??`__row_${fe}`;return((Se=ut[me])==null?void 0:Se.columnId)||""};React.useEffect(()=>{const le=Math.ceil(Ce.length/ot);pt>0&&pt>=le&&nt(0)},[Ce.length,ot]);const yt=React.useMemo(()=>{const le=pt*ot,fe=le+ot;return Ce.slice(le,fe)},[Ce,pt,ot]),Mt=()=>{_t("");const le=It(je,et,"");ye(le)},gt=()=>{const le=It(je,et,mt);ye(le),nt(0)},Qt=le=>{const fe=new Set(Ve);fe.has(le)?fe.size>1&&fe.delete(le):fe.add(le),st(fe)},Kt=(le,fe=null)=>{const me=fe?`${le}-${fe}`:`${le}`,Se=new Set(Tt);Se.has(me)?Se.delete(me):(Array.from(Se).forEach(xe=>{xe.startsWith(`${le}`)&&Se.delete(xe)}),Se.add(me)),Dt(Se)},Xt=le=>{Xe(Ke===le?null:le)};React.useEffect(()=>{const le=fe=>{var ke,Be,$e,Ge;if(!Ke)return;const me=fe.target,Se=((ke=Wt.current)==null?void 0:ke.contains(me))??!1,xe=((Be=Y.current)==null?void 0:Be.contains(me))??!1,Re=((Ge=($e=fe.target)==null?void 0:$e.closest)==null?void 0:Ge.call($e,".dropdown-trigger"))!=null;!Se&&!xe&&!Re&&Xe(null)};return document.addEventListener("click",le),()=>{document.removeEventListener("click",le)}},[Ke]),React.useMemo(()=>new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}),[]);const er=(le,fe)=>{if(le==null)return 1;if(fe==null)return-1;const me=new Date(le),Se=new Date(fe);return!isNaN(me.getTime())&&!isNaN(Se.getTime())?me.getTime()-Se.getTime():!isNaN(Number(le))&&!isNaN(Number(fe))?Number(le)-Number(fe):String(le).localeCompare(String(fe),void 0,{numeric:!0,sensitivity:"base"})},Ht=(le,fe,me)=>{const Se=getColumnValue(le==null?void 0:le[me]),xe=getColumnValue(fe==null?void 0:fe[me]);return er(Se,xe)},tr=(le,fe)=>{for(let me=1;me<le.length;me++)if(Ht(le[me-1],le[me],fe)>0)return!1;return!0},rr=(le,fe)=>{for(let me=1;me<le.length;me++)if(Ht(le[me-1],le[me],fe)<0)return!1;return!0},It=(le,fe=et,me=mt)=>{let Se=[...le];if(me&&me.trim()){const xe=me.toLowerCase();Se=Se.filter(Re=>Object.entries(Re).some(([ke,Be])=>Ve.has(ke)?String(Be??"").toLowerCase().includes(xe):!1))}return Object.entries(fe||{}).forEach(([xe,Re])=>{const{value:ke,operator:Be}=Re,$e=(ke??"").toLowerCase();Se=Se.filter(Ge=>{const We=Ge[xe],Ze=String(getColumnValue(We)??"").toLowerCase();switch((Be||"").toString()){case"contains":return Ze.includes($e);case"equals":return Ze===$e;case"startsWith":return Ze.startsWith($e);case"endsWith":return Ze.endsWith($e);case"does not contain":return!Ze.includes($e);case"does not equal":return Ze!==$e;case"is any of":return ke.split(",").map(ft=>ft.trim().toLowerCase()).includes(Ze);case"Date Range":case"dateRange":{if(!ke)return!0;const ft=ke.split(" - ").map(dr=>dr.trim());if(ft.length!==2)return!1;const Ft=new Date(ft[0]),Lt=new Date(ft[1]);if(isNaN(Ft.getTime())||isNaN(Lt.getTime())||(Ft.setHours(0,0,0,0),Lt.setHours(23,59,59,999),!We))return!1;const jt=new Date(We);return isNaN(jt.getTime())?!1:(jt.setHours(0,0,0,0),jt>=Ft&&jt<=Lt)}default:return!0}})}),Se},nr=le=>{if(!je||je.length===0)return;const fe=Object.keys(et).length>0,me=mt.trim().length>0,Se=fe||me?Ce:je;let xe;(he==null?void 0:he.column)===le?xe=he.direction==="asc"?"desc":"asc":tr(Se,le)?xe="desc":(rr(Se,le),xe="asc"),ge({column:le,direction:xe});const Re=[...je].sort((Be,$e)=>{const Ge=Ht(Be,$e,le);return xe==="asc"?Ge:-Ge});Te(Re);const ke=It(Re);ye(ke),nt(0)},Yt=()=>{if(!it){qe(!1),rt(""),Je(""),nt(0);return}if(at==="Date Range")if(lt&&lt.startDate&&lt.endDate)$t(it,void 0,"Date Range");else{qe(!0);return}else ht&&ht.trim()!==""&&$t(it,ht,at);qe(!1),rt(""),Je(""),dt(null),nt(0)},$t=(le,fe,me)=>{if(me==="Date Range"&&lt&&le){const{startDate:Se,endDate:xe}=lt;if(!Se||!xe){console.warn("Invalid date range:",Se,xe);return}const Re=new Date(Se);Re.setHours(0,0,0,0);const ke=new Date(xe);ke.setHours(23,59,59,999);const Be=je.filter($e=>{const Ge=$e[le];if(!Ge)return!1;const We=new Date(Ge);return isNaN(We.getTime())?!1:(We.setHours(0,0,0,0),We>=Re&&We<=ke)});ye(Be),nt(0),ct({...et,[le]:{value:`${Se} - ${xe}`,operator:"Date Range"}}),qe(!1),Xe(null),dt(null);return}if(le){const Se={...et};if(fe===""&&(me==="contains"||me==="equals")){Je(le),vt(me||at),rt(""),qe(!0);return}else fe&&fe.trim()!==""?Se[le]={value:fe,operator:me||at}:delete Se[le];ct(Se);let xe=[...je];Object.entries(Se).forEach(([Re,ke])=>{const{value:Be,operator:$e}=ke;xe=xe.filter(Ge=>{const We=String(getColumnValue(Ge[Re])||"").toLowerCase(),Ze=Be.toLowerCase();switch($e){case"contains":return We.includes(Ze);case"equals":return We===Ze;case"startsWith":return We.startsWith(Ze);case"endsWith":return We.endsWith(Ze);case"does not contain":return!We.includes(Ze);case"does not equal":return We!==Ze;case"is any of":return Be.split(",").map(ft=>ft.trim().toLowerCase()).includes(We);default:return!0}})}),ye(xe),nt(0),qe(!1)}},ir=le=>{le.key==="Enter"&&$t()};useEscapeKey(()=>{Xe(null),qe(!1)});const Gt=(le,fe="")=>{const me=Se=>{const xe=new Set(te);xe.has(Se)?xe.delete(Se):xe.add(Se),ne(xe)};if(Array.isArray(le)){const Se=Array.from(new Set(le.reduce((xe,Re)=>typeof Re=="object"&&Re!==null?[...xe,...Object.keys(Re)]:xe,[])));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(xe=>jsxRuntimeExports.jsx("th",{children:xe.charAt(0).toUpperCase()+xe.slice(1)},xe))})}),jsxRuntimeExports.jsx("tbody",{children:le.map((xe,Re)=>jsxRuntimeExports.jsx("tr",{children:Se.map(ke=>jsxRuntimeExports.jsx("td",{children:typeof xe[ke]=="object"&&xe[ke]!==null?jsxRuntimeExports.jsxs("div",{className:"flex-row-center",children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>me(`${fe}-${Re}-${ke}`),children:te.has(`${fe}-${Re}-${ke}`)?"▼":"▶"}),te.has(`${fe}-${Re}-${ke}`)&&Gt(xe[ke],`${fe}-${Re}-${ke}`)]}):String(xe[ke]||"")},`${fe}-${Re}-${ke}`))},`${fe}-${Re}`))})]})})})}else if(typeof le=="object"&&le!==null)return jsxRuntimeExports.jsx("div",{className:"nested-object",children:jsxRuntimeExports.jsxs("table",{className:"custom-table nested",children:[jsxRuntimeExports.jsx("thead",{style:{zIndex:20001,position:"sticky",top:0,background:"#f5f5f5"},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(le).map(([Se,xe])=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"table-cell",children:jsxRuntimeExports.jsx("strong",{children:Se})}),jsxRuntimeExports.jsx("td",{className:"table-cell",children:typeof xe=="object"&&xe!==null?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>me(`${fe}-${Se}`),children:te.has(`${fe}-${Se}`)?"▼":"▶"}),te.has(`${fe}-${Se}`)&&Gt(xe,`${fe}-${Se}`)]}):String(xe)})]},`${fe}-${Se}`))})]})});return jsxRuntimeExports.jsx("span",{children:String(le)})},Zt=le=>{var fe;if(le){const me=(fe=le.parentElement)==null?void 0:fe.querySelector(".dropdown-trigger");if(!me)return;const Se=me.getBoundingClientRect(),xe=window.innerHeight,Re=window.innerWidth,ke=le.offsetHeight,Be=le.offsetWidth,$e=Se.bottom+ke>xe,Ge=Se.left+Be>Re,We=Se.left-Be<0;let Ze,ft;$e?(Ze=Se.top-ke,le.classList.add("adjust-top")):(Ze=Se.bottom,le.classList.remove("adjust-top")),Ge?(ft=Se.right-Be,le.classList.add("adjust-left"),le.classList.remove("adjust-right")):We?(ft=Se.left,le.classList.add("adjust-right"),le.classList.remove("adjust-left")):(ft=Se.left,le.classList.remove("adjust-left"),le.classList.remove("adjust-right")),le.style.top=`${Ze}px`,le.style.left=`${ft}px`,le.classList.add("dropdown-fixed-position")}};React.useEffect(()=>{const le=fe=>{Qe&&Nt.current&&!Nt.current.contains(fe.target)&&qe(!1)};return document.addEventListener("mousedown",le),()=>{document.removeEventListener("mousedown",le)}},[Qe]),React.useEffect(()=>()=>{},[Ke]),React.useEffect(()=>{const le=fe=>{Ct&&se.current&&!se.current.contains(fe.target)&&bt(!1)};return document.addEventListener("mousedown",le),()=>{document.removeEventListener("mousedown",le)}},[Ct]);const ar=(le,fe)=>{le.preventDefault();const me=le.pageX,Se=Pe[fe]||150,xe=ke=>{const Be=Math.max(100,Se+(ke.pageX-me));ae($e=>({...$e,[fe]:Be}))},Re=()=>{document.removeEventListener("mousemove",xe),document.removeEventListener("mouseup",Re)};document.addEventListener("mousemove",xe),document.addEventListener("mouseup",Re)},qt=(le,fe,me)=>{var xe;const Se=String(fe??"");if(typeof q=="function")try{if(q(me??{},le))return!0}catch{}return F!=null&&F.includes(le)?B!=null&&B[le]?B[le].includes(Se):!0:!!((xe=B==null?void 0:B._global_)!=null&&xe.includes(Se))},sr=(le,fe)=>{qt(fe,le[fe],le)&&H&&H(le,fe)},zt=yt.some(le=>Array.from(Ve).some(fe=>Array.isArray(le[fe])&&le[fe].length>0&&le[fe].some(me=>typeof me=="object"&&me!==null))),or=le=>{const fe=/[\\/:*?"<>|]/g;return le.replace(fe,"").trim()},lr=le=>{try{const fe=window.prompt("Enter file name",le);if(!fe)return le;const me=or(fe);return me.length===0?le:me.endsWith(".xlsx")?me:`${me}.xlsx`}catch{return le}},Ut=(le=!1)=>{const fe=ie.filter($e=>Ve.has($e.id));let me;if(le||!(Ce&&Ce.length>0))me=je;else{const $e=Array.from(Ue);if($e.length>0){let Ge;if(typeof Ee=="function")Ge=Ee;else{const We=Ee??"id";Ge=Ze=>Ze[We]}me=Ce.filter(We=>$e.includes(Ge(We)))}else me=Ce}const Se=me.map($e=>fe.reduce((Ge,We)=>(Ge[We.label||We.id]=getColumnValue($e[We.id]),Ge),{})),xe=utils.json_to_sheet(Se),Re=utils.book_new();utils.book_append_sheet(Re,xe,"Data");let ke;le||me===je?ke="all-data-export.xlsx":Array.from(Ue).length>0?ke="selected-rows-export.xlsx":ke="filtered-search-export.xlsx";const Be=lr(ke);writeFileSync(Re,Be)},cr=()=>jsxRuntimeExports.jsxs("div",{className:z?"esign-table-container":"table-container",children:[jsxRuntimeExports.jsx("div",{className:"table-scroll-container",children:Ve.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:[zt&&jsxRuntimeExports.jsx("th",{className:"expand-column"}),i&&jsxRuntimeExports.jsx("th",{className:"checkbox-column",children:o?jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:Ue.size>0,onChange:()=>{Fe(new Set)}}):jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:yt.length>0&&yt.every((le,fe)=>{const me=Ye(le,pt*ot+fe);return me!==void 0&&Ue.has(me)}),onChange:le=>{const fe=new Set(Ue),me=je&&je.length>0?je:Ce||[],Se=yt.map(Re=>{const ke=Ye(Re);if(ke!==void 0)return ke;const Be=me.indexOf(Re);return Be>=0?`__row_${Be}`:void 0}).filter(Re=>Re!==void 0),xe=new Set(Se);if(le){if(Fe(new Set(xe)),typeof ce=="function"){const Re=Array.from(xe),ke=Re.map(Be=>me.find($e=>{const Ge=Ye($e);return Ge!==void 0&&(Ge===Be||String(Ge)===String(Be))})).filter(Boolean);try{ce.length===1?ce({ids:Re,rows:ke,toggledId:void 0,toggledRow:void 0,toggledChecked:!0}):ce(ke)}catch{try{ce(ke)}catch{}}}}else{const Re=new Set(fe);if(Se.forEach(ke=>Re.delete(ke)),Fe(Re),typeof ce=="function"){const ke=Se,Be=ke.map($e=>me.find(Ge=>{const We=Ye(Ge);return We!==void 0&&(We===$e||String(We)===String($e))})).filter(Boolean);try{ce.length===1?ce({ids:Array.from(Re),rows:Array.from(Re).map($e=>me.find(Ge=>{const We=Ye(Ge);return We!==void 0&&(We===$e||String(We)===String($e))})).filter(Boolean),unselectedIds:ke,unselectedRows:Be,toggledId:void 0,toggledRow:void 0,toggledChecked:!1}):ce(Array.from(Re).map($e=>me.find(Ge=>{const We=Ye(Ge);return We!==void 0&&(We===$e||String(We)===String($e))})).filter(Boolean))}catch{try{ce([])}catch{}}}}}})}),xt.filter(le=>ie.find(me=>me.id===le)&&Ve.has(le)).map(le=>{const fe=ie.find(me=>me.id===le);return fe?jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:Pe[fe.id]?`${Pe[fe.id]}px`:fe.width||"150px",minWidth:"80px",maxWidth:"600px"},children:jsxRuntimeExports.jsxs("div",{className:"column-header",children:[jsxRuntimeExports.jsxs("span",{className:"column-label-with-info",children:[fe.label,fe.tooltip&&jsxRuntimeExports.jsx("img",{src:InfoIcon,alt:"info",title:fe.tooltip,width:14,height:14,className:"info-icon"})]}),jsxRuntimeExports.jsxs("div",{className:"column-actions",children:[N&&jsxRuntimeExports.jsx("img",{src:SortIcon,alt:"Sort",title:"Sort",width:14,height:14,onClick:()=>nr(fe.id),style:{cursor:"pointer",transition:"transform 0.2s ease-in-out",transform:(he==null?void 0:he.column)===fe.id?he.direction==="asc"?"rotate(0deg)":"rotate(180deg)":"none",filter:(he==null?void 0:he.column)===fe.id?"brightness(0.6)":"none"}}),L&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:fe.id===Ke?Wt:null,children:[jsxRuntimeExports.jsx("span",{className:`dropdown-trigger ${et[fe.id]?"filter-active":""}`,onClick:me=>{me.stopPropagation(),Xt(fe.id)},title:et[fe.id]?`Filter: ${et[fe.id].operator} "${et[fe.id].value}"`:"Filter options",children:"⋮"}),Ke===fe.id&&jsxRuntimeExports.jsxs("div",{className:"dropdown-menu",ref:me=>{me&&setTimeout(()=>Zt(me),0)},children:[jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Je(fe.id),qe(!0),Xe(null)},children:"Filter"}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{$t(fe.id,"","contains"),Xe(null)},children:"Contains..."}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{$t(fe.id,"","equals"),Xe(null)},children:"Equals..."}),et[fe.id]&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{const me={...et};delete me[fe.id],ct(me),rt(""),Je("");const Se=It(je,me,mt);ye(Se),nt(0),Xe(null)},children:"Clear Filter"}),Object.keys(et).length>0&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{ct({}),rt(""),Je(""),dt(null),_t(""),ye(je),nt(0),Xe(null)},children:"Clear All Filters"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"column-resizer",onMouseDown:me=>ar(me,fe.id)})]})},fe.id):null}),(g||S||b||E||_||d)&&jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:"150px",textAlign:"center"},children:"Action"})]}),be&&jsxRuntimeExports.jsxs("tr",{className:"filter-row",children:[zt&&jsxRuntimeExports.jsx("td",{}),i&&jsxRuntimeExports.jsx("td",{}),xt.filter(le=>ie.find(me=>me.id===le)&&Ve.has(le)).map(le=>{var me;const fe=ie.find(Se=>Se.id===le);return fe?jsxRuntimeExports.jsxs("td",{style:{position:"relative"},children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:`Search ${fe.label}`,value:((me=et[fe.id])==null?void 0:me.value)||"",onChange:Se=>{const xe=Se.target.value;rt(xe),Je(fe.id);const Re={...et};xe===""?delete Re[fe.id]:Re[fe.id]={value:xe,operator:"contains"},ct(Re);const ke=It(je,Re,mt);ye(ke),nt(0)},className:"filter-input-with-clear filter-input-padding"}),et[fe.id]&&jsxRuntimeExports.jsx("span",{className:"filter-clear-icon-inside",onClick:()=>{const Se={...et};delete Se[fe.id],ct(Se),rt(""),Je("");const xe=It(je,Se,mt);ye(xe),nt(0)},title:"Clear",children:"×"})]},`filter-${fe.id}`):null}),(g||S||b||E||_||d)&&jsxRuntimeExports.jsx("td",{})]})]}),jsxRuntimeExports.jsx("tbody",{children:yt.length===0?jsxRuntimeExports.jsx("tr",{className:"no-records-row",children:jsxRuntimeExports.jsx("td",{colSpan:(zt?1:0)+(i?1:0)+Array.from(Ve).length+(g||S||b||E||_||d?1:0),className:"no-records-cell",children:mt.trim()||Object.keys(et).length>0?"No records found for the search criteria":"No Data found"})}):yt.map((le,fe)=>{const me=typeof pe=="function"?pe(le):!1;return jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("tr",{onMouseEnter:()=>Le(pt*ot+fe),onMouseLeave:()=>Le(null),className:(le.isNewRow?"table-new-row":fe%2===0?`table-row-even ${le.hasError?"row-error":le.isModified?"row-invalid":""}`:`table-row-odd ${le.hasError?"row-error":le.isModified?"row-invalid":""}`)+(ze===pt*ot+fe?" row-hovered":"")+(me?" row-disabled":""),title:le.rowMessage||"",children:[zt&&jsxRuntimeExports.jsx("td",{className:"expand-column",children:Array.from(Ve).some(Se=>Array.isArray(le[Se])&&le[Se].length>0&&le[Se].some(xe=>typeof xe=="object"&&xe!==null))&&jsxRuntimeExports.jsx("button",{className:"expand-button",onClick:()=>Kt(fe),children:Array.from(Tt).some(Se=>Se.startsWith(`${fe}`))?"▼":"▶"})}),i&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:(()=>{const Se=Ye(le,pt*ot+fe);return Se!==void 0&&Ue.has(Se)})(),onChange:Se=>{if(me)return;const xe=Ye(le,pt*ot+fe);if(xe===void 0)return;let Re;o?(Re=Se?new Set([xe]):new Set,Fe(Re)):(Re=new Set(Ue),Se?Re.add(xe):Re.delete(xe),Fe(Re));const ke=je&&je.length>0?je:Ce||[],Be=Array.from(Re),$e=Be.map(We=>{if(typeof We=="string"&&We.startsWith("__row_")){const Ze=parseInt(We.slice(6),10);return!isNaN(Ze)&&Ze>=0&&Ze<ke.length?ke[Ze]:void 0}return ke.find(Ze=>{const ft=Ye(Ze);return ft!==void 0&&(ft===We||String(ft)===String(We))})}).filter(Boolean),Ge={ids:Be,rows:$e,toggledId:xe,toggledRow:le,toggledChecked:!!Se};if(typeof ce=="function")try{ce.length===1?ce(Ge):ce($e)}catch{try{ce($e)}catch{}}},disabled:me})}),l&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:"selected",checked:(f==null?void 0:f(fe))==="selected",onChange:()=>u==null?void 0:u({rowIndex:fe,columnId:"selected",rowData:le})})})}),xt.filter(Se=>ie.find(Re=>Re.id===Se)&&Ve.has(Se)).map(Se=>{const xe=ie.find(Re=>Re.id===Se);return xe?jsxRuntimeExports.jsx("td",{style:{width:Pe[xe.id]?`${Pe[xe.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},className:`table-cell ${qt(xe.id,le[xe.id],le)?"ce-clickable-cell":""}`,onClick:()=>{qt(xe.id,le[xe.id],le)?sr(le,xe.id):Array.isArray(le[xe.id])&&le[xe.id].length>0&&Kt(fe,xe.id)},children:le.isNewRow?jsxRuntimeExports.jsx(AddNewRowCell,{row:le,column:xe,colId:Se}):React.isValidElement(le[xe.id])?le[xe.id]:(Array.isArray(p)?p.includes(xe.id):p===xe.id)?jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:xe.id,checked:Rt(le)===xe.id,onChange:()=>Pt({rowIndex:fe,columnId:xe.id,rowData:le})})}):Array.isArray(le[xe.id])?`${le[xe.id].length}`:typeof le[xe.id]=="object"&&le[xe.id]!==null?Object.entries(le[xe.id]).map(([Re,ke])=>`${Re}: ${ke}`).join(", "):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(le[xe.id]??"")})},xe.id):null}),(g||S||b||E||_||d)&&jsxRuntimeExports.jsx("td",{className:"table-cell center-text",children:jsxRuntimeExports.jsxs("div",{className:"action-flex",children:[g&&jsxRuntimeExports.jsx("img",{src:Edit,alt:"Edit",title:"Edit",width:20,height:20,style:{cursor:"pointer"},onClick:()=>C==null?void 0:C(le,fe)}),S&&jsxRuntimeExports.jsx("img",{src:Reassign,alt:"Reassign",width:20,height:20,style:{cursor:"pointer"},onClick:I}),b&&jsxRuntimeExports.jsx("img",{src:Cancel,alt:"Cancel",width:20,height:20,style:{cursor:"pointer"},onClick:()=>j==null?void 0:j(le,fe)}),E&&jsxRuntimeExports.jsx("img",{src:Approve,alt:"Approve",width:20,height:20,style:{cursor:"pointer"},onClick:()=>O==null?void 0:O(le,fe)}),_&&jsxRuntimeExports.jsx("img",{src:Delete,alt:"Delete",width:20,height:20,style:{cursor:"pointer"},onClick:()=>A==null?void 0:A(le,fe)}),d&&jsxRuntimeExports.jsx("img",{src:Add,alt:"Add",width:20,height:20,style:{cursor:"pointer"},onClick:R})]})})]}),Array.from(Tt).map(Se=>{const[xe,Re]=Se.split("-");if(Number(xe)===fe){const ke=Re?{[Re]:le[Re]}:Object.keys(le).filter(Be=>Array.isArray(le[Be])||typeof le[Be]=="object").reduce((Be,$e)=>({...Be,[$e]:le[$e]}),{});return jsxRuntimeExports.jsx("tr",{className:"expanded-row",children:jsxRuntimeExports.jsx("td",{colSpan:Ve.size+2,className:"expanded-cell",children:Object.entries(ke).map(([Be,$e],Ge)=>jsxRuntimeExports.jsxs("div",{className:`expanded-section ${Ge%2===0?"expanded-section-even":"expanded-section-odd"}`,style:{backgroundColor:Ge%2===0?"#e8f5e9":"#e3f2fd",padding:"10px",marginBottom:"10px",borderRadius:"5px"},children:[jsxRuntimeExports.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:Be.charAt(0).toUpperCase()+Be.slice(1)}),Gt($e)]},Be))})},`expanded-${Se}`)}return null})]},fe)})})]})}),Z&&jsxRuntimeExports.jsxs("div",{className:"pagination-container",children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"40px"},children:[jsxRuntimeExports.jsx(EntriesInfo,{dataLength:Ce.length,currentPage:pt,rowsPerPage:ot}),jsxRuntimeExports.jsx(RowsPerPageSelector,{rowsPerPage:ot,setRowsPerPage:kt,setCurrentPage:tt,pageSizeOptions:ee})]}),jsxRuntimeExports.jsx(PaginationControls,{currentPage:pt,totalPages:Math.ceil(Ce.length/ot),setCurrentPage:tt})]}),Qe&&jsxRuntimeExports.jsx("div",{className:"filter-modal",children:jsxRuntimeExports.jsxs("div",{className:"filter-modal-content",ref:Nt,onKeyDown:ir,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:()=>qe(!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:it,onChange:le=>Je(le.target.value),className:"filter-select","aria-label":"Filter column",title:"Select column to filter",children:ie.map(le=>jsxRuntimeExports.jsx("option",{value:le.id,children:le.label},le.id))})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Operator:"}),jsxRuntimeExports.jsxs("select",{value:at,onChange:le=>vt(le.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:"Date Range",children:"Date Range"}),jsxRuntimeExports.jsx("option",{value:"is any of",children:"Is any of"})]}),at==="Date Range"&&jsxRuntimeExports.jsx("div",{style:{marginTop:"10px"},children:jsxRuntimeExports.jsx(CEDateRangePicker,{mode:"range",onChange:le=>{dt({startDate:le.startDate,endDate:le.endDate})}})})]}),at!=="Date Range"&&jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Value:"}),jsxRuntimeExports.jsx("input",{type:"text",value:ht,onChange:le=>rt(le.target.value),placeholder:"Enter filter value",title:"Filter value",className:"filter-input",autoFocus:!0,onKeyDown:le=>{le.key==="Enter"&&Yt(),le.key==="Escape"&&qe(!1)}})]}),Object.keys(et).length>0&&jsxRuntimeExports.jsxs("div",{className:"active-filters-summary",children:[jsxRuntimeExports.jsx("div",{className:"active-filters-header",children:"Active Filters:"}),Object.entries(et).map(([le,fe])=>{const me=ie.find(Se=>Se.id===le);return jsxRuntimeExports.jsxs("div",{className:"active-filter-item",children:[jsxRuntimeExports.jsxs("span",{children:[(me==null?void 0:me.label)||le,": "]}),jsxRuntimeExports.jsx("span",{className:"filter-operator",children:fe.operator}),jsxRuntimeExports.jsxs("span",{className:"filter-value",children:['"',fe.value,'"']})]},le)})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-footer",children:[jsxRuntimeExports.jsx(CEButton,{onClick:()=>{ct({}),ye(je),nt(0),qe(!1)},className:"clear-filters-button",variant:"outlined",children:"Clear All"}),jsxRuntimeExports.jsx(CEButton,{onClick:Yt,className:"apply-filter-button",variant:"primary",children:"Apply Filter"})]})]})})]}),ur=()=>{M?(De(!0),Promise.resolve(M()).finally(()=>{ct({});try{const le=ie.filter(me=>me.shouldDisplay!==!1).map(me=>me.id),fe=ie.filter(me=>me.shouldVisible!==!1).map(me=>me.id);st(new Set(le)),Et(fe),bt(!1)}catch{}De(!1)})):(De(!0),setTimeout(()=>{ye(t),Te(t),nt(0),_t(""),rt(""),Je(""),ct({}),ge(null);try{const le=ie.filter(me=>me.shouldDisplay!==!1).map(me=>me.id),fe=ie.filter(me=>me.shouldVisible!==!1).map(me=>me.id);st(new Set(le)),Et(fe),bt(!1)}catch{}De(!1)},300))},pr=ie.filter(le=>le.shouldVisible!==!1).every(le=>Ve.has(le.id));return jsxRuntimeExports.jsxs("div",{className:`datatable-wrapper${_e?" 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:[m&&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 le=!be;Ne(le),le||(ct({}),ye(je),nt(0),_t(""))}}),mt&&jsxRuntimeExports.jsx("button",{className:"search-cancel-button",onClick:()=>{_t(""),Mt()},children:"×"})]}),U&&jsxRuntimeExports.jsx("img",{src:ShowOrHideColumn,alt:"Columns",title:"Show/Hide Columns",width:20,height:20,style:{cursor:"pointer",fill:"#808080"},onClick:()=>bt(!0)}),Object.keys(et).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:()=>{ct({}),ye(je),nt(0)}}),T&&jsxRuntimeExports.jsx("img",{src:FileOpenRounded,alt:"Export",title:"Export All to Excel",width:20,height:20,className:"ce-export-icon",style:{cursor:"pointer",fill:"#808080"},onClick:()=>Ut(!0)}),J&&jsxRuntimeExports.jsx("img",{src:ReloadIcon,alt:"Reload",title:"Reload Data",width:20,height:20,className:"ce-reload-icon",style:{cursor:"pointer",fill:"#808080"},onClick:ur}),K&&jsxRuntimeExports.jsxs("div",{ref:Y,children:[jsxRuntimeExports.jsx("img",{src:ExportIcon,alt:"Download",title:"Download",width:20,height:20,className:"ce-export-icon icon-button dropdown-trigger",style:{cursor:"pointer"},onClick:le=>{le.stopPropagation(),Q&&Q.length>0?Xt("download"):Ut()}}),(()=>{const le=Q??[],fe=le.find(xe=>xe.usedefault===!0),me=le.filter(xe=>!xe.usedefault);let Se=[];return le.length>0?fe?Se=[{label:fe.label,onClick:()=>{fe.forceAll?Ut(!0):Ut()}},...me]:Se=[...me]:Se=[],Ke==="download"&&Se.length>0&&jsxRuntimeExports.jsx("div",{className:"dropdown-menu",ref:xe=>{xe&&setTimeout(()=>Zt(xe),0)},children:Se.map((xe,Re)=>jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:ke=>{ke.stopPropagation();try{xe.onClick()}finally{Xe(null)}},children:xe.label},Re))})})()]}),V&&jsxRuntimeExports.jsx("button",{className:"fullscreen-button",onClick:_e?He:Me,title:_e?"Exit Full Screen":"Full Screen",children:_e?"⤫":"⤢"})]})]}),Ct&&jsxRuntimeExports.jsx("div",{className:"column-modal",children:jsxRuntimeExports.jsxs("div",{className:"column-modal-content",ref:se,children:[jsxRuntimeExports.jsx("div",{className:"column-modal-header",children:jsxRuntimeExports.jsx("button",{className:"modal-close-button",onClick:()=>bt(!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:pr,onChange:le=>{st(le?new Set(ie.filter(fe=>fe.shouldVisible!==!1).map(fe=>fe.id)):new Set)}})})}),jsxRuntimeExports.jsx("div",{className:"column-list-container",children:xt.filter(le=>ie.find(fe=>fe.id===le&&fe.shouldVisible!==!1)).map(le=>{const fe=ie.find(me=>me.id===le);return fe?jsxRuntimeExports.jsxs("div",{className:`column-item ${St===fe.id?"dragging":""}`,draggable:!0,onDragStart:me=>{Vt(fe.id),me.dataTransfer.effectAllowed="move",me.dataTransfer.setData("text/plain",fe.id)},onDragEnd:()=>Vt(null),onDragOver:me=>{me.preventDefault(),me.dataTransfer.dropEffect="move"},onDragEnter:me=>{me.preventDefault(),me.currentTarget.classList.add("drag-over")},onDragLeave:me=>{me.currentTarget.classList.remove("drag-over")},onDrop:me=>{if(me.preventDefault(),me.currentTarget.classList.remove("drag-over"),St&&St!==fe.id){const Se=[...xt],xe=Se.indexOf(St),Re=Se.indexOf(fe.id);xe!==-1&&Re!==-1&&(Se.splice(xe,1),Se.splice(Re,0,St),Et(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:fe.label??fe.id,checked:Ve.has(fe.id),onChange:()=>Qt(fe.id)})]},fe.id):null})})]})}),Ie?jsxRuntimeExports.jsx(CESkeletonTable,{columns:ie.length||5,rows:ot||10}):cr()]})},DateInputPart=({value:e,onChange:t,max:n,min:i,length:o,placeholder:l,className:u,onClick:f,id:p,name:m})=>{const d=React.useRef(null),g=S=>{const b=S.target.value.replace(/\D/g,"");if(b.length<=o){if(b.length===1){const T=parseInt(b);if(n===12&&T>1){t(`0${T}`);return}if(n===31&&T>3){t(`0${T}`);return}}if(b.length===2){const T=parseInt(b);T>=i&&T<=n&&t(b);return}t(b)}},_=()=>{var S;(S=d.current)==null||S.select()},E=()=>{e.length===1&&t(e.padStart(2,"0"))};return jsxRuntimeExports.jsx("input",{ref:d,type:"text",value:e,onChange:g,onFocus:_,onBlur:E,id:p,name:m,onClick:f,maxLength:o,className:u??"date-input-part",placeholder:l})},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"],CALENDAR_HEIGHT_PX=290,GAP_PX=8,CEDatePicker=({onChange:e,label:t="Calendar",value:n,focused:i=!1,id:o,name:l,disablePastDates:u=!1,minDate:f,maxDate:p})=>{const[m,d]=React.useState(!1),[g,_]=React.useState(null),[E,S]=React.useState(new Date),[b,T]=React.useState(!1),[C,R]=React.useState({start:2020,end:2031}),[A,O]=React.useState("left"),[I,j]=React.useState(0),D=React.useRef(null),[F,B]=React.useState(i),[q,H]=React.useState(""),[M,K]=React.useState(""),[Q,J]=React.useState(""),[V,U]=React.useState(!0),[N,L]=React.useState({left:0,top:0}),G=React.useMemo(()=>{if(f==null||f==="")return null;const Te=typeof f=="string"?new Date(f):new Date(f);return Te.setHours(0,0,0,0),isNaN(Te.getTime())?null:Te},[f]),W=React.useMemo(()=>{if(p==null||p==="")return null;const Te=typeof p=="string"?new Date(p):new Date(p);return Te.setHours(0,0,0,0),isNaN(Te.getTime())?null:Te},[p]),z=React.useMemo(()=>{if(!u)return null;const Te=new Date;return Te.setHours(0,0,0,0),Te},[u]),Z=React.useCallback(()=>{d(!1),!q&&!M&&!Q&&B(!1)},[M,q,Q]);useEscapeKey(Z);const X=React.useRef(void 0);React.useEffect(()=>{if(n){const[Te,be,Ne]=n.split("/"),ze=new Date(`${Ne}-${Te}-${be}`);if(!isNaN(ze.getTime())){_(ze),S(Le=>Le.getFullYear()!==ze.getFullYear()||Le.getMonth()!==ze.getMonth()||Le.getDate()!==ze.getDate()?ze:Le),H(Te),K(be),J(Ne),U(!0),X.current=n;return}}X.current&&S(new Date),_(null),H(""),K(""),J(""),U(!0),X.current=n},[n,Z]);const ee=React.useRef(null),ce=()=>{const Te=D.current;if(!Te)return;const be=Te.getBoundingClientRect(),Ne=window.scrollY||window.pageYOffset,Le=(window.innerHeight||document.documentElement.clientHeight)-be.bottom,Ue=be.top;Le<CALENDAR_HEIGHT_PX&&Ue>=CALENDAR_HEIGHT_PX?L({left:be.left+window.scrollX,top:be.top+Ne-CALENDAR_HEIGHT_PX-GAP_PX}):L({left:be.left+window.scrollX,top:be.bottom+Ne+GAP_PX})};React.useEffect(()=>{if(!ee.current)return;const Te=ee.current;Te.style.position="absolute",Te.style.left=`${Math.max(8,N.left)}px`,Te.style.top=`${N.top}px`,Te.style.zIndex="99999"},[N,m]);const de=()=>{d(Te=>{const be=!Te;if(be){const Ne=g||new Date;S(Ne),q||H(String(Ne.getMonth()+1).padStart(2,"0")),M||K(String(Ne.getDate()).padStart(2,"0")),Q||J(String(Ne.getFullYear())),setTimeout(ce,0)}return be})};React.useEffect(()=>{if(!m)return;const Te=()=>ce(),be=()=>ce();return window.addEventListener("scroll",Te,!0),window.addEventListener("resize",be),()=>{window.removeEventListener("scroll",Te,!0),window.removeEventListener("resize",be)}},[m]),React.useEffect(()=>{const Te=be=>{const Ne=be.target;if(!D.current)return;const ze=document.getElementById("ce-datepicker-portal"),Le=D.current.contains(Ne),Ue=ze?ze.contains(Ne):!1;!Le&&!Ue&&Z()};return document.addEventListener("mousedown",Te),()=>document.removeEventListener("mousedown",Te)},[q,M,Q,Z]);const Ee=Te=>{const be=new Date(E.getFullYear(),E.getMonth(),Te);if(be.setHours(0,0,0,0),u&&z&&be.getTime()<z.getTime()||G&&be.getTime()<G.getTime()||W&&be.getTime()>W.getTime())return;_(be),S(be);const Ne=String(be.getMonth()+1).padStart(2,"0"),ze=String(be.getDate()).padStart(2,"0"),Le=String(be.getFullYear());H(Ne),K(ze),J(Le),U(!0),e(`${Ne}/${ze}/${Le}`),d(!1)},ue=Te=>{O(Te>0?"left":"right"),S(be=>{const Ne=new Date(be.getFullYear(),be.getMonth()+Te,1);return g&&H(String(Ne.getMonth()+1).padStart(2,"0")),j(ze=>ze+1),Ne})},pe=Te=>R(be=>({start:be.start+Te*10,end:be.end+Te*10})),Pe=Te=>{const be=new Date(Te,E.getMonth(),1);S(be),J(String(Te)),T(!1)},ae=()=>{const Te=new Date(E.getFullYear(),E.getMonth(),1),be=new Date(E.getFullYear(),E.getMonth()+1,0),Ne=Te.getDay(),ze=be.getDate(),Le=z,Ue=Ke=>Le?!g&&Le.getDate()===Ke&&Le.getMonth()===E.getMonth()&&Le.getFullYear()===E.getFullYear():!1,Fe=[];for(let Ke=0;Ke<Ne;Ke++)Fe.push(jsxRuntimeExports.jsx("div",{className:"dp-day empty"},`empty-${Ke}`));for(let Ke=1;Ke<=ze;Ke++){const Xe=(g==null?void 0:g.getDate())===Ke&&(g==null?void 0:g.getMonth())===E.getMonth()&&(g==null?void 0:g.getFullYear())===E.getFullYear(),Qe=new Date(E.getFullYear(),E.getMonth(),Ke);Qe.setHours(0,0,0,0);let qe=!1;u&&Le&&Qe.getTime()<Le.getTime()&&(qe=!0),G&&Qe.getTime()<G.getTime()&&(qe=!0),W&&Qe.getTime()>W.getTime()&&(qe=!0),Fe.push(jsxRuntimeExports.jsx("div",{className:`dp-day ${Xe?"selected":""} ${Ue(Ke)?"today":""} ${qe?"disabled":""}`,onClick:()=>{qe||Ee(Ke)},"aria-label":qe?"Date unavailable":"Select date","data-disabled":qe?"true":"false",tabIndex:qe?-1:0,children:Ke},Ke))}return Fe},Ce=(Te,be,Ne)=>{if(!Te||!be||!Ne){U(!1),S(new Date),_(null);return}const ze=`${Ne}-${Te}-${be}`,Le=new Date(ze);if(Le.setHours(0,0,0,0),Le.getFullYear()===parseInt(Ne,10)&&Le.getMonth()+1===parseInt(Te,10)&&Le.getDate()===parseInt(be,10)){if(u&&z&&Le.getTime()<z.getTime()||G&&Le.getTime()<G.getTime()||W&&Le.getTime()>W.getTime()){U(!1),_(null),S(new Date);return}_(Le),S(Le),U(!0),e(`${Te}/${be}/${Ne}`)}else U(!1),_(null),S(new Date),H(Te),K(be),J(Ne)},ye=jsxRuntimeExports.jsx("div",{className:"dp-wrapper",ref:D,children:jsxRuntimeExports.jsxs("div",{className:`dp-input-container ${F||m?"focused":""} ${g||q||M||Q?"has-value":""} ${V?"":"invalid"}`,children:[jsxRuntimeExports.jsx("div",{className:"dp-label floating",children:t}),jsxRuntimeExports.jsxs("div",{className:"dp-input-wrapper",onClick:()=>{B(!0)},children:[jsxRuntimeExports.jsx(DateInputPart,{value:q,onChange:Te=>{H(Te),Ce(Te,M,Q)},max:12,min:1,length:2,placeholder:"MM",onClick:de,id:o?`${o}-month`:void 0,name:l?`${l}-month`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx(DateInputPart,{value:M,onChange:Te=>{K(Te),Ce(q,Te,Q)},placeholder:"DD",max:31,min:1,length:2,onClick:de,id:o?`${o}-day`:void 0,name:l?`${l}-day`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx("input",{type:"text",value:Q,onChange:Te=>{const be=Te.target.value.replace(/\D/g,"");be.length<=4&&(J(be),be.length===4&&Ce(q,M,be))},onFocus:Te=>Te.target.select(),onBlur:()=>{Q.length===4&&Ce(q,M,Q)},className:"date-input-part",id:o?`${o}-year`:void 0,name:l?`${l}-year`:void 0,maxLength:4,placeholder:"YYYY"}),jsxRuntimeExports.jsx("span",{className:"dp-icon",onClick:de,children:jsxRuntimeExports.jsx("img",{src:DateRangeIcon,alt:"Calendar Icon"})})]})]})}),je=jsxRuntimeExports.jsxs("div",{id:"ce-datepicker-portal",className:"dp-calendar",ref:ee,role:"dialog","aria-modal":"true",children:[jsxRuntimeExports.jsxs("div",{className:"dp-header",children:[jsxRuntimeExports.jsxs("div",{className:"dp-title",onClick:()=>T(Te=>!Te),children:[b?`${C.start} - ${C.end}`:`${E.toLocaleString("default",{month:"long"})} ${E.getFullYear()}`,jsxRuntimeExports.jsx("button",{className:"dp-toggle-icon",children:"▾"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-controls",children:[jsxRuntimeExports.jsx("button",{onClick:()=>b?pe(-1):ue(-1),disabled:!b&&u&&E.getFullYear()===new Date().getFullYear()&&E.getMonth()===new Date().getMonth(),children:"‹"}),jsxRuntimeExports.jsx("button",{onClick:()=>b?pe(1):ue(1),disabled:!1,children:"›"})]})]}),!b&&jsxRuntimeExports.jsx("div",{className:"dp-weekdays",children:WEEKDAYS.map(Te=>jsxRuntimeExports.jsx("div",{className:"dp-weekday",children:Te},Te))}),b?jsxRuntimeExports.jsx("div",{className:"dp-years-grid",children:Array.from({length:C.end-C.start+1},(Te,be)=>{const Ne=C.start+be;return jsxRuntimeExports.jsx("div",{className:"dp-year-item",onClick:()=>Pe(Ne),children:Ne},Ne)})}):jsxRuntimeExports.jsx("div",{className:`dp-days dp-slide-${A}`,children:ae()},I)]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ye,m&&ReactDOM.createPortal(je,document.body)]})},FieldsInput=({label:e,name:t,placeholder:n="",value:i="",onChange:o,size:l="medium"})=>{const[u,f]=React.useState(!1),[p,m]=React.useState(!1),d=getSizeStyle$1(l);React.useEffect(()=>{i&&i.trim().length>0&&m(!0)},[i]);const g=()=>{f(!0),m(!0)},_=S=>{f(!1),S.target.value.trim()||m(!1)},E=u||!!i;return jsxRuntimeExports.jsxs("div",{className:`floating-input-wrapper${p?" focused":""}`,style:d,children:[jsxRuntimeExports.jsx("label",{htmlFor:t,className:"floating-label",children:e}),jsxRuntimeExports.jsx("input",{id:t,name:t,className:"floating-input",placeholder:E?n:"",value:i,onChange:o,onFocus:g,onBlur:_})]})},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."})}),CEGridItem=({children:e,size:t=1})=>jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${t}`},children:e}),CEGridLayout=({children:e,columns:t=12,gap:n="1rem",alignItems:i="stretch",justifyItems:o="stretch",gridTemplateColumns:l})=>jsxRuntimeExports.jsx("div",{className:"grid-container",style:{display:"grid",width:"100%",gridTemplateColumns:l||`repeat(${t}, 1fr)`,gap:n,alignItems:i,justifyItems:o,backgroundColor:"transparent"},children:e}),CELogo=({src:e,alt:t="Logo",style:n})=>jsxRuntimeExports.jsx("img",{src:e,alt:t,style:{height:25,...n}}),CESearchBar=({onFocus:e,onBlur:t,quickActions:n=[],recentSearches:i=[]})=>{const[o,l]=React.useState(!1),[u,f]=React.useState(""),[p,m]=React.useState(n),[d,g]=React.useState(i),_=(S,b)=>{S==="quickActions"?m(T=>T.filter((C,R)=>R!==b)):g(T=>T.filter((C,R)=>R!==b))},E=()=>{u.trim()!==""&&(g(S=>[u,...S]),f(""))};return jsxRuntimeExports.jsxs("div",{className:"ceui-search-bar",children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search...",className:"ceui-search-input",value:u,onChange:S=>f(S.target.value),onFocus:()=>{l(!0),e&&e()},onBlur:()=>{setTimeout(()=>l(!1),200),t&&t()},onKeyDown:S=>{S.key==="Enter"&&E()}}),o&&jsxRuntimeExports.jsxs("div",{className:"ceui-search-suggestions",children:[p.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Quick actions"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:p.map((S,b)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[S,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>_("quickActions",b),children:"✕"})]},b))})]}),d.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Recent search"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:d.map((S,b)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[S,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>_("recentSearches",b),children:"✕"})]},b))})]})]})]})},CESearchButton=({showSuggestions:e=!1,quickActions:t=[],recentSearches:n=[]})=>{const[i,o]=React.useState(!1),[l,u]=React.useState(!1),f=React.useRef(null),p=d=>{f.current&&!f.current.contains(d.target)&&(o(!1),u(!1))},m=()=>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 React.useEffect(()=>(i?document.addEventListener("mousedown",p):document.removeEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}),[i]),console.log("isSearchOpen:",i),console.log("showDropdown:",l),console.log("showSuggestions:",e),jsxRuntimeExports.jsxs("div",{ref:f,className:`ceui-animated-search-wrapper ${i?"expanded":"collapsed"}`,children:[jsxRuntimeExports.jsx("button",{className:"ceui-search-button","aria-label":"Open search",onClick:()=>o(!0),children:jsxRuntimeExports.jsx(m,{})}),i&&jsxRuntimeExports.jsx(CESearchBar,{showSuggestions:i&&(e||l),onFocus:()=>u(!0),onBlur:()=>{setTimeout(()=>u(!1),200)},quickActions:t,recentSearches:n})]})},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]=React.useState(!1),n=React.useRef(null),i=()=>t(!e),o=l=>{n.current&&!n.current.contains(l.target)&&t(!1)};return React.useEffect(()=>(e?document.addEventListener("mousedown",o):document.removeEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}),[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:n,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:n,logoWidth:i,showSearchButton:o=!1,quickActions:l=[],recentSearches:u=[],showHelpButton:f=!1,showNotificationButton:p=!1,showAvatarMenu:m=!1,showUserInfo:d=!1,showHamburgerButton:g=!1,showDrawer:_=!1,userInfoProps:E,onMenuClick:S,drawerJsonUrl:b="",isDrawerOpen:T=!1,onDrawerClose:C})=>{const R=()=>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:n||35,width:i||"auto",maxWidth:120}}):jsxRuntimeExports.jsx(R,{})}),jsxRuntimeExports.jsxs("div",{className:"ceui-header-right",children:[o&&jsxRuntimeExports.jsx(CESearchButton,{showSuggestions:!0,quickActions:l,recentSearches:u,value:"",onChange:()=>{},onClear:()=>{}}),f&&jsxRuntimeExports.jsx(CEHelpButton,{}),p&&jsxRuntimeExports.jsx(CENotificationButton,{}),m&&jsxRuntimeExports.jsx(CEAvatarMenu,{}),d&&E&&jsxRuntimeExports.jsx(CEUserInfo,{name:E.name,role:E.role})]})]}),_&&g&&jsxRuntimeExports.jsx(CEDrawer,{jsonUrl:b,isOpen:T,onClose:C||(()=>{})})]})},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"})}),InputDropDown=({options:e,selected:t,onChange:n,multiple:i=!1,placeholder:o="Select...",size:l="medium",style:u={},allowClear:f=!0,showInputPills:p=!0,id:m,name:d,required:g=!1,enableSelectAll:_=!1,selectAllLabel:E="Select All",isSearchField:S=!1})=>{const[b,T]=React.useState(!1),[C,R]=React.useState(!1),[A,O]=React.useState(""),I=React.useRef(null),D={...getSizeStyle$1(l),...u},F=S?e.filter(V=>V.label.toLowerCase().includes(A.toLowerCase())):e,B=V=>{if(i){const U=t.includes(V)?t.filter(N=>N!==V):[...t,V];n(U)}else n([V]),T(!1)},q=()=>n([]),H=V=>{n(t.filter(U=>U!==V))},M=e.filter(V=>t.includes(V.value)).map(V=>V.label),K=e.map(V=>V.value),Q=i&&t.length===K.length&&K.length>0,J=()=>{n(Q?[]:K)};return React.useEffect(()=>{const V=U=>{var N;(N=I.current)!=null&&N.contains(U.target)||T(!1)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[]),React.useEffect(()=>{!b&&S&&O("")},[b,S]),jsxRuntimeExports.jsx("div",{className:`dropdown-container ${b||t.length>0?"float":""}`,ref:I,style:D,id:m,"data-name":d,"aria-required":g,children:jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${b?"open":""}`,onClick:()=>T(V=>!V),onFocus:()=>R(!0),onBlur:()=>R(!1),tabIndex:0,children:[jsxRuntimeExports.jsxs("label",{className:"floating-placeholder",children:[o,g&&jsxRuntimeExports.jsx("span",{className:"required-asterisk","aria-hidden":"true",children:"*"})]}),jsxRuntimeExports.jsx("div",{className:"selected-display",children:t.length===0?"":i?p?M.map((V,U)=>jsxRuntimeExports.jsxs("span",{className:"chip",children:[V,jsxRuntimeExports.jsx("span",{className:"close-icon",onClick:N=>{var L;N.stopPropagation(),H(((L=e.find(G=>G.label===V))==null?void 0:L.value)||"")},children:"×"})]},U)):jsxRuntimeExports.jsx("div",{className:"selected-display-label",children:M.join(",")}):jsxRuntimeExports.jsx("span",{children:M[0]})}),f&&t.length>0&&jsxRuntimeExports.jsx("button",{className:"clear-button",onClick:V=>{V.stopPropagation(),q()},children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M6 9l6 6 6-6"})})}),b&&jsxRuntimeExports.jsxs("ul",{className:"dropdown-options",children:[S&&jsxRuntimeExports.jsx("li",{className:"component-add-dropdown-search",onClick:V=>V.stopPropagation(),children:jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search...",value:A,autoFocus:!0,onChange:V=>O(V.target.value),onKeyDown:V=>V.stopPropagation()})}),i&&_&&jsxRuntimeExports.jsxs("li",{className:`dropdown-option select-all ${Q?"selected":""}`,onClick:V=>{V.stopPropagation(),J()},children:[jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:Q}),E]}),F.map(V=>jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${t.includes(V.value)?"selected":""}`,onClick:U=>{U.stopPropagation(),B(V.value)},children:[i&&jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:t.includes(V.value)}),V.label]},V.value)),S&&F.length===0&&jsxRuntimeExports.jsx("li",{className:"dropdown-empty",children:"No results found"})]})]})})},CELinearProgressBar=({duration:e,color:t="#4caf50",backgroundColor:n="#e0e0e0",height:i="10px",isActive:o=!1})=>{const l=React.useRef(null);return React.useEffect(()=>{const u=l.current;if(!(!u||!o))return u.style.width="0%",u.style.transition="none",u.offsetWidth,requestAnimationFrame(()=>{u&&(u.style.transition=`width ${e}ms linear`,u.style.width="100%")}),()=>{u&&(u.style.width="0%",u.style.transition="none")}},[e,o]),jsxRuntimeExports.jsx("div",{className:"snackbar__progress-container",style:{height:i},children:jsxRuntimeExports.jsx("div",{ref:l,className:"snackbar__progress-bar"})})},CEMenuBar=({menuData:e})=>{const[t,n]=React.useState({}),i=(p,m)=>{n(d=>({...d,[p]:m}))};useEscapeKey(()=>{n({})});const l=p=>p.children&&p.children.length>0,u=p=>p.some(m=>l(m)),f=(p,m="")=>!p||p.length===0?null:jsxRuntimeExports.jsx("ul",{className:m?"ce-submenu":"ce-dropdown",children:p.map(d=>{const g=m?`${m}-${d.name}`:d.name,_=l(d);return jsxRuntimeExports.jsxs("li",{className:`ce-dropdown-item ${_?"has-submenu":""}`,onMouseEnter:()=>_&&i(g,!0),onMouseLeave:()=>_&&i(g,!1),onClick:()=>console.log(`Clicked: ${d.name}`),children:[d.name,_&&jsxRuntimeExports.jsx("span",{className:"ce-icon right",children:"▶"}),_&&t[g]&&f(d.children,g)]},g)})});return jsxRuntimeExports.jsx("div",{className:"ce-menu-bar",children:jsxRuntimeExports.jsx("div",{className:"ce-menu-container",children:e.map(p=>{const m=u(p.items);return jsxRuntimeExports.jsxs("div",{className:"ce-menu-item",onMouseEnter:()=>m&&i(p.title,!0),onMouseLeave:()=>m&&i(p.title,!1),children:[jsxRuntimeExports.jsxs("button",{className:"ce-menu-button",children:[p.title,m&&jsxRuntimeExports.jsx("span",{className:"ce-icon",children:"▼"})]}),m&&t[p.title]&&f(p.items,p.title)]},p.title)})})})},CEPagination=({currentPage:e,totalPages:t,onPageChange:n})=>{const i=()=>{const p=[];if(t<=8)for(let m=0;m<t;m++)p.push(m);else if(e<7){for(let m=0;m<8;m++)p.push(m);p.push("..."),p.push(t-1)}else if(e>=t-8+1){p.push(0),p.push("...");for(let m=t-8;m<t;m++)p.push(m)}else{p.push(0),p.push("...");for(let m=e-3;m<=e+3;m++)p.push(m);p.push("..."),p.push(t-1)}return p},o=f=>{typeof f=="number"&&n(f)},l=()=>{e>0&&n(e-1)},u=()=>{e<t-1&&n(e+1)};return jsxRuntimeExports.jsxs("div",{className:"pagination",children:[jsxRuntimeExports.jsx("button",{onClick:l,disabled:e===0,className:"pagination-button",children:"Previous"}),i().map((f,p)=>typeof f=="number"?jsxRuntimeExports.jsx("button",{onClick:()=>o(f),className:`pagination-button page-number ${e===f?"active":""}`,children:f+1},p):jsxRuntimeExports.jsx("span",{className:"pagination-ellipsis",children:f},p)),jsxRuntimeExports.jsx("button",{onClick:u,disabled:e===t-1,className:"pagination-button",children:"Next"})]})},CERadioButtonGroup=({options:e,name:t,defaultValue:n,onChange:i,direction:o="horizontal",id:l,nameAttr:u})=>{const[f,p]=React.useState(n||""),m=d=>{p(d),i(d)};return jsxRuntimeExports.jsx("div",{className:`radio-button-group ${o}`,role:"radiogroup","aria-labelledby":t,id:l,children:e.map(d=>jsxRuntimeExports.jsx("div",{className:"radio-button",children:jsxRuntimeExports.jsx(CERadioButton,{label:d.label,value:d.value,checked:f===d.value,onChange:m,id:l?`${l}-${d.value}`:void 0,name:u})},d.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:n="100%",height:i="auto",minHeight:o="200px",maxHeight:l="none",className:u="",style:f={},editorStyle:p={}})=>{const m=React.useRef(null),[d,g]=React.useState("3"),[_,E]=React.useState("Arial"),[S,b]=React.useState({bold:!1,italic:!1,underline:!1,strikeThrough:!1,subscript:!1,superscript:!1,justifyLeft:!0,justifyCenter:!1,justifyRight:!1,justifyFull:!1});React.useEffect(()=>{m.current&&e&&(m.current.innerHTML=e)},[e]);const T=React.useCallback(j=>{try{return document.queryCommandState(j)}catch{return!1}},[]),C=React.useCallback(()=>{b({bold:T("bold"),italic:T("italic"),underline:T("underline"),strikeThrough:T("strikethrough"),subscript:T("subscript"),superscript:T("superscript"),justifyLeft:T("justifyLeft"),justifyCenter:T("justifyCenter"),justifyRight:T("justifyRight"),justifyFull:T("justifyFull")})},[T]),R=React.useCallback((j,D="")=>{var q,H;const F=saveSelection(),B=document.getSelection();if(j==="createLink"){const M=prompt("Enter URL:");if(M){restoreSelection(F),document.execCommand("createLink",!1,M);const K=(q=B==null?void 0:B.anchorNode)==null?void 0:q.parentElement;K instanceof HTMLAnchorElement&&(K.target="_blank",K.rel="noopener noreferrer")}}else if(j==="insertImage"){const M=prompt("Enter image URL:");if(M){restoreSelection(F);const K=`<img src="${M}" alt="image" style="max-width: 100%; height: auto;"/>`;document.execCommand("insertHTML",!1,K)}}else j==="fontSize"||j==="fontName"?(restoreSelection(F),document.execCommand(j,!0,D),j==="fontSize"?g(D):E(D)):(restoreSelection(F),document.execCommand(j,!1,D));m.current&&(t==null||t(m.current.innerHTML)),(H=m.current)==null||H.focus(),C()},[t,C]),A=j=>{if(j.key==="Tab"&&(j.preventDefault(),document.execCommand("insertHTML",!1,"&nbsp;&nbsp;&nbsp;&nbsp;")),j.ctrlKey||j.metaKey)switch(j.key.toLowerCase()){case"z":j.preventDefault(),j.shiftKey?R("redo"):R("undo");break;case"y":j.preventDefault(),R("redo");break}},O=[{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"}],I=["Arial","Times New Roman","Courier New","Georgia","Verdana","Helvetica","Serif Fonts","Algerian"];return jsxRuntimeExports.jsxs("div",{className:`rich-text-editor ${u}`,style:{width:n,height:i,...f},children:[jsxRuntimeExports.jsxs("div",{className:"toolbar",children:[jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("bold"),className:`toolbar-button ${S.bold?"active":""}`,title:"Bold",children:jsxRuntimeExports.jsx("strong",{children:"B"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("italic"),className:`toolbar-button ${S.italic?"active":""}`,title:"Italic",children:jsxRuntimeExports.jsx("em",{children:"I"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("underline"),className:`toolbar-button ${S.underline?"active":""}`,title:"Underline",children:jsxRuntimeExports.jsx("u",{children:"U"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("strikeThrough"),className:`toolbar-button ${S.strikeThrough?"active":""}`,title:"Strike Through",children:jsxRuntimeExports.jsx("s",{children:"S"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("subscript"),className:`toolbar-button ${S.subscript?"active":""}`,title:"Subscript",children:"X₂"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("superscript"),className:`toolbar-button ${S.superscript?"active":""}`,title:"Superscript",children:"X²"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("justifyLeft"),className:`toolbar-button ${S.justifyLeft?"active":""}`,title:"Align Left",children:"⇤"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("justifyCenter"),className:`toolbar-button ${S.justifyCenter?"active":""}`,title:"Center",children:"⇔"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("justifyRight"),className:`toolbar-button ${S.justifyRight?"active":""}`,title:"Align Right",children:"⇥"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>R("justifyFull"),className:`toolbar-button ${S.justifyFull?"active":""}`,title:"Justify",children:"≡"})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>R("insertUnorderedList"),className:"toolbar-button",title:"Bullet List",children:"●"}),jsxRuntimeExports.jsx("button",{onClick:()=>R("insertOrderedList"),className:"toolbar-button",title:"Numbered List",children:"1. 2. 3."})]}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:d,onChange:j=>R("fontSize",j.target.value),className:"toolbar-select",title:"Font Size",children:O.map(j=>jsxRuntimeExports.jsx("option",{value:j.value,children:j.label},j.value))})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:_,onChange:j=>R("fontName",j.target.value),className:"toolbar-select",title:"Font Family",children:I.map(j=>jsxRuntimeExports.jsx("option",{value:j,children:j},j))})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>R("createLink"),className:"toolbar-button",title:"Insert Link",children:"🔗"}),jsxRuntimeExports.jsx("button",{onClick:()=>R("insertImage"),className:"toolbar-button",title:"Insert Image",children:"📷"})]}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>R("undo"),className:"toolbar-button",title:"Undo (Ctrl+Z)",children:"↩"}),jsxRuntimeExports.jsx("button",{onClick:()=>R("redo"),className:"toolbar-button",title:"Redo (Ctrl+Y)",children:"↪"})]})]}),jsxRuntimeExports.jsx("div",{ref:m,className:"editor-content",contentEditable:!0,style:{minHeight:o,maxHeight:l,height:i==="auto"?"auto":"100%",...p},onKeyDown:A,onKeyUp:C,onMouseUp:C,onInput:()=>{m.current&&(t==null||t(m.current.innerHTML)),C()}})]})},CETabView=({tabs:e,renderContent:t,variant:n="top"})=>{var f;const i=React.useMemo(()=>e.map(p=>{if(typeof p=="string")return{key:p,label:p};const m=p.key??p.label??"tab",d=p.label??p.key??"Tab";return{key:m,label:d,icon:p.icon,badgeCount:p.badgeCount}}),[e]),[o,l]=React.useState(((f=i[0])==null?void 0:f.key)??"");if(React.useEffect(()=>{if(!i.length)return;i.some(m=>m.key===o)||l(i[0].key)},[i,o]),!i.length)return null;const u=n==="top";return jsxRuntimeExports.jsxs("div",{className:`tabview-container ${u?"tabview-container-top":"tabview-container-sidebar"}`,children:[u?jsxRuntimeExports.jsx("div",{className:"tabview-topbar",role:"tablist","aria-label":"Tab navigation",children:i.map(p=>{const m=o===p.key;return jsxRuntimeExports.jsxs("button",{className:`tabview-top-tab ${m?"tabview-top-tab-active":""}`,onClick:()=>l(p.key),role:"tab",tabIndex:m?0:-1,children:[p.icon&&jsxRuntimeExports.jsx("span",{className:"tabview-icon",children:p.icon}),jsxRuntimeExports.jsx("span",{className:"tabview-label",children:p.label}),p.badgeCount?jsxRuntimeExports.jsx("span",{className:"tabview-badge","aria-label":`${p.badgeCount} items`,children:p.badgeCount}):null]},p.key)})}):jsxRuntimeExports.jsx("div",{className:"tabview-sidebar",role:"tablist","aria-label":"Tab navigation",children:i.map(p=>{const m=o===p.key;return jsxRuntimeExports.jsxs("div",{className:`tabview-tab ${m?"tabview-tab-active":""}`,onClick:()=>l(p.key),role:"tab",tabIndex:m?0:-1,children:[p.icon&&jsxRuntimeExports.jsx("span",{className:"tabview-icon",children:p.icon}),jsxRuntimeExports.jsx("span",{className:"tabview-label",children:p.label}),p.badgeCount?jsxRuntimeExports.jsx("span",{className:"tabview-badge","aria-label":`${p.badgeCount} items`,children:p.badgeCount}):null]},p.key)})}),jsxRuntimeExports.jsx("div",{className:"tabview-content",role:"tabpanel",children:t(o)})]})},CETemplate=({children:e,headerProps:t,showHeader:n=!0,showFooter:i=!0,containerClassName:o="",containerStyle:l={}})=>jsxRuntimeExports.jsxs("div",{className:`ce-wrapper ${o}`,style:l,children:[n&&jsxRuntimeExports.jsx(CEHeader,{...t}),jsxRuntimeExports.jsx("main",{className:"main-content",children:e}),i&&jsxRuntimeExports.jsx(CEFooter,{})]}),CETimePicker=({label:e="Select Time",onChange:t,initialTime:n="",className:i="",id:o,name:l})=>{const[u,f]=React.useState(!1),[p,m]=React.useState(n),[d,g]=React.useState("12"),[_,E]=React.useState("00"),[S,b]=React.useState("AM"),[T,C]=React.useState(!1),[R,A]=React.useState(""),[O,I]=React.useState(""),j=React.useRef(null),D=Array.from({length:12},(U,N)=>String(N+1).padStart(2,"0")),F=Array.from({length:60},(U,N)=>String(N).padStart(2,"0")),B=(U,N)=>{if(!U)return"";const L=parseInt(U);return N==="hours"?L>12?"12":L===0?"01":U.padStart(2,"0"):L>59?"59":U.padStart(2,"0")},q=U=>{const N=U.target.value,L=U.target.selectionStart||0;let G=d,W=_,z=S,Z=p;if(L<=2){const X=N.substring(0,2).replace(/[^0-9]/g,"");if(X){if(X.length===1){const ee=parseInt(X);ee>=2&&ee<=9?(G=X.padStart(2,"0"),setTimeout(()=>{j.current&&j.current.setSelectionRange(3,5)},10)):(G=X,setTimeout(()=>{j.current&&j.current.setSelectionRange(1,1)},10))}else if(X.length===2){const ee=parseInt(X);ee>=1&&ee<=12?(G=X,setTimeout(()=>{j.current&&j.current.setSelectionRange(3,5)},10)):(G=X[0],setTimeout(()=>{j.current&&j.current.setSelectionRange(1,1)},10))}Z=`${G}:${_} ${S}`}}else if(L>=3&&L<=5){const X=N.indexOf(":")+1,ee=N.substring(X,X+2).replace(/[^0-9]/g,"");if(ee){if(ee.length===1)W=ee,Z=`${d}:${W} ${S}`,setTimeout(()=>{j.current&&j.current.setSelectionRange(4,4)},10);else if(ee.length===2){const ce=parseInt(ee);ce>=0&&ce<=59?(W=ee,setTimeout(()=>{j.current&&j.current.setSelectionRange(6,8)},10)):(W=ee[0],setTimeout(()=>{j.current&&j.current.setSelectionRange(4,4)},10))}Z=`${d}:${W} ${S}`}}else if(L>=6){const ee=N.substring(N.lastIndexOf(" ")+1).toUpperCase();ee.startsWith("A")?(z="AM",Z=`${d}:${_} AM`):ee.startsWith("P")&&(z="PM",Z=`${d}:${_} PM`)}g(G),E(W),b(z),m(Z),f(!1),t==null||t(Z)},H=U=>{if(!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","0","1","2","3","4","5","6","7","8","9",":","A","P","M"," ","a","p","m"].includes(U.key)){U.preventDefault();return}if(U.key==="Enter"||U.key===":"){U.preventDefault();const L=U.currentTarget.selectionStart||0;if(L<=2){if(R){const G=B(R,"hours");g(G),A(""),m(`${G}:${_} ${S}`)}U.currentTarget.setSelectionRange(3,5)}else if(L>=3&&L<=5){if(O){const G=B(O,"minutes");E(G),I(""),m(`${d}:${G} ${S}`)}U.currentTarget.setSelectionRange(6,8)}}},M=U=>{const N=U.currentTarget.selectionStart||0,L=j.current;L&&(N<=1?L.setSelectionRange(0,2):N>=3&&N<=4?L.setSelectionRange(3,5):N>=6&&L.setSelectionRange(6,8))},K=()=>{f(!0),C(!0)},Q=(U,N)=>{const L=U==="hours"?N:d,G=U==="minutes"?N:_,W=U==="period"?N:S;g(L),E(G),b(W);const z=`${L}:${G} ${W}`;m(z),t==null||t(z)},J=()=>{const U=`${d}:${_} ${S}`;m(U),f(!1),t==null||t(U)},V=()=>{m(""),g("12"),E("00"),b("AM"),f(!1),C(!1)};return jsxRuntimeExports.jsxs("div",{className:`time-picker-container ${i}`,children:[jsxRuntimeExports.jsxs("div",{className:`time-picker-input ${u||T?"active":""}`,children:[jsxRuntimeExports.jsx("input",{ref:j,type:"text",id:o,name:l,value:p,onChange:q,onKeyDown:H,onClick:U=>{p||K(),M(U)},onFocus:()=>C(!0),onBlur:()=>!u&&C(!1),placeholder:T||p?"hh:mm AM":"",className:"time-input",maxLength:8}),jsxRuntimeExports.jsx("label",{className:`floating-label ${u||T||p?"active":""}`,children:e}),jsxRuntimeExports.jsx("span",{className:"clock-icon",onClick:U=>{U.stopPropagation(),K()},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 ${u?"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:D.map(U=>jsxRuntimeExports.jsx("div",{className:`time-item ${U===d?"selected":""}`,onClick:()=>Q("hours",U),children:U},U))})]}),jsxRuntimeExports.jsxs("div",{className:"time-section",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Minutes"}),jsxRuntimeExports.jsx("div",{className:"time-list",children:F.map(U=>jsxRuntimeExports.jsx("div",{className:`time-item ${U===_?"selected":""}`,onClick:()=>Q("minutes",U),children:U},U))})]}),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(U=>jsxRuntimeExports.jsx("div",{className:`period-item ${U===S?"selected":""}`,onClick:()=>Q("period",U),children:U},U))})]})]}),jsxRuntimeExports.jsxs("div",{className:"time-picker-actions",children:[jsxRuntimeExports.jsx("button",{className:"time-picker-button cancel",onClick:V,children:"Cancel"}),jsxRuntimeExports.jsx("button",{className:"time-picker-button ok",onClick:J,children:"OK"})]})]})]})},TransferItem=({label:e,checked:t,onChange:n,disabled:i})=>jsxRuntimeExports.jsx(CECheckBox,{label:e,checked:t,onChange:n,disabled:i}),CETransferButton=({label:e,onClick:t,disabled:n=!1,className:i=""})=>jsxRuntimeExports.jsx("button",{onClick:t,disabled:n,className:`transfer-button ${i}`,children:e}),TransferList=({dataUrl:e,onTransfer:t,containerClass:n="",boxClass:i="",buttonClass:o=""})=>{const[l,u]=React.useState([]),[f,p]=React.useState([]),[m,d]=React.useState(!0),[g,_]=React.useState(null),[E,S]=React.useState(new Set),[b,T]=React.useState(new Set);React.useEffect(()=>{(async()=>{var j,D;try{d(!0),_(null);const B=(await axios.get(e)).data.items||[];u(B.slice(0,Math.ceil(B.length/2))),p(B.slice(Math.ceil(B.length/2)))}catch(F){_(axios.isAxiosError(F)?((D=(j=F.response)==null?void 0:j.data)==null?void 0:D.message)||F.message:"An error occurred")}finally{d(!1)}})()},[]);const C=I=>{if(I==="available"){const j=l.filter(F=>E.has(F.id)).sort((F,B)=>{const q=parseInt(F.id.replace(/\D/g,"")),H=parseInt(B.id.replace(/\D/g,""));return q-H}),D=l.filter(F=>!E.has(F.id));u(D),p(F=>[...F,...j].sort((q,H)=>{const M=parseInt(q.id.replace(/\D/g,"")),K=parseInt(H.id.replace(/\D/g,""));return M-K})),S(new Set)}else{const j=f.filter(F=>b.has(F.id)).sort((F,B)=>{const q=parseInt(F.id.replace(/\D/g,"")),H=parseInt(B.id.replace(/\D/g,""));return q-H}),D=f.filter(F=>!b.has(F.id));p(D),u(F=>[...F,...j].sort((q,H)=>{const M=parseInt(q.id.replace(/\D/g,"")),K=parseInt(H.id.replace(/\D/g,""));return M-K})),T(new Set)}t(f,l)},R=(I,j,D)=>{D(F=>{const B=new Set(F);return B.has(I)?B.delete(I):B.add(I),B})},A=(I,j,D)=>F=>{const B=new Set(j),q=I.filter(H=>!H.disabled);F?q.forEach(H=>B.add(H.id)):q.forEach(H=>B.delete(H.id)),D(B)},O=(I,j,D,F)=>{const B=I.filter(Q=>!Q.disabled),q=B.length>0&&B.every(Q=>j.has(Q.id)),H=j.size,M=I.length,K=I.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:A(I,j,D),disabled:K})}),jsxRuntimeExports.jsxs("div",{className:"title-section",children:[jsxRuntimeExports.jsx("div",{className:"title",children:F}),jsxRuntimeExports.jsxs("div",{className:"count-text",children:[H,"/",M," selected"]})]})]})}),jsxRuntimeExports.jsx("div",{className:"transfer-items",children:I.map(Q=>jsxRuntimeExports.jsx(TransferItem,{label:Q.label,checked:j.has(Q.id),disabled:Q.disabled,onChange:()=>R(Q.id,j,D)},Q.id))})]})};return m?jsxRuntimeExports.jsx("div",{children:"Loading..."}):g?jsxRuntimeExports.jsxs("div",{children:["Error: ",g]}):jsxRuntimeExports.jsxs("div",{className:`transfer-list-container ${n}`,children:[O(l,E,S,"Choices"),jsxRuntimeExports.jsxs("div",{className:"transfer-buttons",children:[jsxRuntimeExports.jsx(CETransferButton,{label:">>",onClick:()=>C("available"),disabled:E.size===0,className:o}),jsxRuntimeExports.jsx(CETransferButton,{label:"<<",onClick:()=>C("chosen"),disabled:b.size===0,className:o})]}),O(f,b,T,"Chosen")]})},CEBadge=({label:e,backgroundColor:t="#e0e0e0",textColor:n="#000",style:i,id:o,name:l,disable:u=!1})=>jsxRuntimeExports.jsx("span",{id:o,"data-name":l,"aria-disabled":u,style:{backgroundColor:t,color:n,padding:"4px 10px",borderRadius:"12px",fontSize:"12px",display:"inline-block",whiteSpace:"nowrap",...u?{opacity:.6,pointerEvents:"none"}:{},...i},children:e}),chatIcon="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='M20%202.5H4C2.9%202.5%202.01%203.4%202.01%204.5L2%2022.5L6%2018.5H20C21.1%2018.5%2022%2017.6%2022%2016.5V4.5C22%203.4%2021.1%202.5%2020%202.5ZM7%209.5H17C17.55%209.5%2018%209.95%2018%2010.5C18%2011.05%2017.55%2011.5%2017%2011.5H7C6.45%2011.5%206%2011.05%206%2010.5C6%209.95%206.45%209.5%207%209.5ZM13%2014.5H7C6.45%2014.5%206%2014.05%206%2013.5C6%2012.95%206.45%2012.5%207%2012.5H13C13.55%2012.5%2014%2012.95%2014%2013.5C14%2014.05%2013.55%2014.5%2013%2014.5ZM17%208.5H7C6.45%208.5%206%208.05%206%207.5C6%206.95%206.45%206.5%207%206.5H17C17.55%206.5%2018%206.95%2018%207.5C18%208.05%2017.55%208.5%2017%208.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",CEChatbox=({notes:e,onAddNote:t,buttonLabel:n,buttonIcon:i})=>{const[o,l]=React.useState(""),u=()=>{t(o),l("")},f=p=>{p.key==="Enter"&&u()};return jsxRuntimeExports.jsxs("div",{className:"notes-container",children:[jsxRuntimeExports.jsxs("div",{className:"notes-header",children:[jsxRuntimeExports.jsx("img",{src:chatIcon,alt:"Chat Icon",className:"notes-icon"}),jsxRuntimeExports.jsx("span",{className:"notes-title",children:"Notes"})]}),jsxRuntimeExports.jsxs("div",{className:"add-note-section",children:[jsxRuntimeExports.jsx("textarea",{value:o,onChange:p=>l(p.target.value),onKeyPress:f,placeholder:"Add a note...",className:"add-note-input",rows:3}),jsxRuntimeExports.jsx(CEButton,{label:n,icon:i,variant:"outlinedGreen",onClick:u,sx:{width:"100%",marginTop:"10px"},children:void 0})]}),jsxRuntimeExports.jsx("div",{className:"notes-list",children:e.map(p=>jsxRuntimeExports.jsxs("div",{className:"note-item",children:[jsxRuntimeExports.jsx("div",{className:"note-avatar",children:p.initials}),jsxRuntimeExports.jsxs("div",{className:"note-content",children:[jsxRuntimeExports.jsxs("div",{className:"note-header",children:[jsxRuntimeExports.jsx("span",{className:"note-author",children:p.author}),jsxRuntimeExports.jsx("span",{className:"note-timestamp",children:p.timestamp})]}),jsxRuntimeExports.jsx("div",{className:"note-text",children:p.content})]})]},p.id))})]})},CEStatusDropdown=({options:e,selected:t,onChange:n,placeholder:i="Select status...",size:o="medium",disabled:l=!1,ariaLabel:u="Status selection dropdown"})=>{const[f,p]=React.useState(!1),m=React.useRef(null),d=e.find(b=>b.value===t),g=b=>{n(b),p(!1)};React.useEffect(()=>{const b=T=>{var C;(C=m.current)!=null&&C.contains(T.target)||p(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const _=b=>{l||(b.key==="Enter"||b.key===" "?(b.preventDefault(),p(!f)):b.key==="Escape"&&p(!1))},E=b=>{if(b!=null&&b.statusType)switch(b.statusType){case"in-progress":return"in-progress";case"declined":return"declined";case"withdrawn":return"withdrawn";default:return""}return""},S=()=>{if(d){const b={};return d.backgroundColor&&(b.backgroundColor=d.backgroundColor),d.textColor&&(b.color=d.textColor),b}return{}};return jsxRuntimeExports.jsxs("div",{className:`status-dropdown-container ${l?"disabled":""} size-${o}`,ref:m,children:[jsxRuntimeExports.jsxs("div",{className:`status-dropdown-trigger ${f?"open":""} ${d?`has-selection ${E(d)}`:""}`,onClick:()=>!l&&g((d==null?void 0:d.value)||""),onKeyDown:_,tabIndex:l?-1:0,role:"button","aria-haspopup":"listbox","aria-expanded":f?"true":"false","aria-label":u,style:S(),children:[jsxRuntimeExports.jsx("span",{className:"status-text",children:d?d.label:i}),jsxRuntimeExports.jsx("span",{className:"status-dropdown-icon",onClick:b=>{b.stopPropagation(),!l&&p(!f)},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 ${f?"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"})})})]}),f&&!l&&jsxRuntimeExports.jsx("ul",{className:"status-dropdown-options",role:"listbox","aria-label":"Status options",children:e.map(b=>{const T={};return b.backgroundColor&&(T.backgroundColor=b.backgroundColor),b.textColor&&(T.color=b.textColor),jsxRuntimeExports.jsxs("li",{className:`status-dropdown-option ${t===b.value?"selected":""} ${E(b)}`,onClick:()=>g(b.value),role:"option","aria-selected":t===b.value?"true":"false",style:T,children:[jsxRuntimeExports.jsx("span",{className:"option-indicator",children:b.icon?b.icon:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[b.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"})]}),b.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"})]}),b.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"})]})]})}),b.label]},b.value)})})]})},CEToggleYesNo=({value:e,onChange:t,label:n})=>jsxRuntimeExports.jsxs("div",{className:"toggle-container",children:[n&&jsxRuntimeExports.jsx("div",{className:"label",children:n}),jsxRuntimeExports.jsxs("div",{className:"toggle-group",children:[jsxRuntimeExports.jsxs(CEButton,{size:"small",variant:e==="yes"?"primary":"outlined",className:`toggle-btn ${e==="yes"?"active":""}`,onClick:()=>t("yes"),children:[jsxRuntimeExports.jsx("span",{className:"circle"}),"YES"]}),jsxRuntimeExports.jsxs(CEButton,{size:"small",variant:e==="no"?"primary":"outlined",className:`toggle-btn ${e==="no"?"active":""}`,onClick:()=>t("no"),children:[jsxRuntimeExports.jsx("span",{className:"circle"}),"NO"]})]})]}),days=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],CEOperatingDaysSelector=({selectedDays:e,onChange:t})=>{const n=i=>{e.includes(i)?t(e.filter(o=>o!==i)):t([...e,i])};return jsxRuntimeExports.jsx("div",{className:"days-group",children:days.map(i=>jsxRuntimeExports.jsx(CEButton,{size:"small",variant:e.includes(i)?"primary":"outlined",className:`day-btn ${e.includes(i)?"active":""}`,onClick:()=>n(i),children:i},i))})},CERoundTabNav=({tabs:e,activeTab:t,onTabClick:n,tabBarBgColor:i,tabBarItemBgColor:o})=>jsxRuntimeExports.jsx("div",{className:"om-om-radiusTab-bar-nwo",style:{backgroundColor:i||"#6fb744"},children:e.map(l=>jsxRuntimeExports.jsx("div",{className:`om-radiusTab-item-nwo ${l.value===t?"active":""}`,onClick:u=>n(l.value,u),style:{backgroundColor:l.value===t?o||"#ebebf0":""},children:l.label},l.value))}),CEAccordion=({children:e})=>jsxRuntimeExports.jsx("div",{className:"accordion-container",children:e}),CEAccordionItem=({title:e,children:t,initiallyOpen:n=!1})=>{const[i,o]=React.useState(n);return jsxRuntimeExports.jsxs("div",{className:"accordion-item",children:[jsxRuntimeExports.jsxs("button",{className:`accordion-header ${i?"open":""}`,onClick:()=>o(!i),children:[jsxRuntimeExports.jsx("span",{className:"accordion-title",children:e}),jsxRuntimeExports.jsx("span",{className:`accordion-icon ${i?"open":""}`,children:jsxRuntimeExports.jsxs("svg",{width:"21",height:"12",viewBox:"0 0 21 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("g",{clipPath:"url(#clip0_20728_2951)",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 1.89L19.094 0.5L10.487 8.761L9.569 7.88L9.574 7.885L1.927 0.545L0.5 1.914L10.487 11.5L20.5 1.89Z",fill:"black"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip0_20728_2951",children:jsxRuntimeExports.jsx("rect",{width:"11",height:"20",fill:"white",transform:"matrix(0 -1 1 0 0.5 11.5)"})})})]})})]}),i&&jsxRuntimeExports.jsx("div",{className:"accordion-content",children:t})]})},CEToggleSlide=({checked:e,onToggle:t,label:n,disabled:i=!1})=>{const o=()=>{i||t(!e)};return jsxRuntimeExports.jsxs("div",{className:"toggle-container",children:[n&&jsxRuntimeExports.jsx("span",{className:"toggle-label",children:n}),jsxRuntimeExports.jsxs("label",{className:`toggle-switch ${i?"disabled":""}`,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:e,onChange:o,disabled:i,className:"toggle-checkbox"}),jsxRuntimeExports.jsx("span",{className:"toggle-slider"})]})]})};var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),_excluded$n=["attr","size","title"];function _objectWithoutProperties$n(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$n(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$n(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _extends$t(){return _extends$t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$t.apply(this,arguments)}function ownKeys$C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$C(Object(n),!0).forEach(function(i){_defineProperty$E(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$C(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$E(e,t,n){return t=_toPropertyKey$E(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$E(e){var t=_toPrimitive$E(e,"string");return typeof t=="symbol"?t:t+""}function _toPrimitive$E(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tree2Element(e){return e&&e.map((t,n)=>React.createElement(t.tag,_objectSpread$C({key:n},t.attr),Tree2Element(t.child)))}function GenIcon(e){return t=>React.createElement(IconBase,_extends$t({attr:_objectSpread$C({},e.attr)},t),Tree2Element(e.child))}function IconBase(e){var t=n=>{var{attr:i,size:o,title:l}=e,u=_objectWithoutProperties$n(e,_excluded$n),f=o||n.size||"1em",p;return n.className&&(p=n.className),e.className&&(p=(p?p+" ":"")+e.className),React.createElement("svg",_extends$t({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:p,style:_objectSpread$C(_objectSpread$C({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&React.createElement("title",null,l),e.children)};return IconContext!==void 0?React.createElement(IconContext.Consumer,null,n=>t(n)):t(DefaultContext)}function FaSearch(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function MdKeyboardArrowDown(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}const CEAdvancedMultiSelectDropdown=({options:e,onSelectItem:t,onChange:n,placeholder:i="Search customers...",allowSearch:o=!0,width:l="100%",inputHeight:u="3rem",dropdownMaxHeight:f="20rem",id:p,name:m})=>{const[d,g]=React.useState(!1),[_,E]=React.useState(""),[S,b]=React.useState([]),T=React.useRef(null);React.useEffect(()=>{n&&n(S)},[S,n]);const C=e.filter(R=>{var A;return R.label.toLowerCase().includes(_.toLowerCase())||((A=R.subtitle)==null?void 0:A.toLowerCase().includes(_.toLowerCase()))});return React.useEffect(()=>{const R=A=>{var O;(O=T.current)!=null&&O.contains(A.target)||g(!1)};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]),jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:T,style:{width:l},children:[jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${d?"open":""}`,style:{minHeight:u},children:[jsxRuntimeExports.jsx(FaSearch,{className:"search-icon"}),jsxRuntimeExports.jsxs("div",{className:"selected-chips",onClick:()=>g(!0),children:[S.length===0&&jsxRuntimeExports.jsx("input",{type:"text",className:"search-input",id:p,name:m,placeholder:i,value:_,onChange:R=>{E(R.target.value),d||g(!0)},onClick:R=>{R.stopPropagation(),g(!0)},style:{height:u}}),S.map(R=>jsxRuntimeExports.jsxs("div",{className:"selected-item-inline",children:[jsxRuntimeExports.jsx("span",{className:"selected-item-label",children:R.label}),jsxRuntimeExports.jsx("button",{type:"button",className:"selected-item-remove",onClick:A=>{A.stopPropagation(),b(O=>O.filter(I=>I.value!==R.value))},"aria-label":`Remove ${R.label}`,children:"×"})]},R.value))]}),jsxRuntimeExports.jsx(MdKeyboardArrowDown,{className:`dropdown-arrow ${d?"rotated":""}`,onClick:R=>{R.stopPropagation(),g(A=>!A)}})]}),d&&jsxRuntimeExports.jsx("div",{className:"dropdown-options",style:{maxHeight:f},children:jsxRuntimeExports.jsx("ul",{className:"dropdown-list",children:C.length>0?C.map(R=>{const A=S.some(O=>O.value===R.value);return jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${A?"selected":""}`,onClick:O=>{O.stopPropagation(),b(I=>{const j=I.some(F=>F.value===R.value);let D;return j?D=I.filter(F=>F.value!==R.value):D=[...I,R],D}),E(""),t(R),g(!1)},children:[jsxRuntimeExports.jsxs("div",{className:"option-content",children:[jsxRuntimeExports.jsx("div",{className:"option-line-1",children:R.label}),R.subtitle&&jsxRuntimeExports.jsx("div",{className:"option-line-2",children:R.subtitle})]}),R.icon&&jsxRuntimeExports.jsx("div",{className:"option-icon",children:R.icon})]},R.value)}):jsxRuntimeExports.jsx("li",{className:"dropdown-option no-results",children:"No results found"})})})]})},AutoCompleteInput=({label:e,options:t,value:n,onChange:i,multiple:o=!0,showCheckboxes:l=!0,required:u=!1})=>{const[f,p]=React.useState(!1),[m,d]=React.useState(!1),[g,_]=React.useState(""),E=React.useRef(null),S=React.useRef(null),b=t.filter(R=>R.toLowerCase().includes(g.toLowerCase())),T=R=>{if(o){const A=n.includes(R);i(A?n.filter(O=>O!==R):[...n,R]),_("")}else i([R]),_(R),p(!1)},C=R=>{S.current&&!S.current.contains(R.target)&&(p(!1),d(!1))};return React.useEffect(()=>(document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)),[]),jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:S,children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper always-float ${m||f?"focused":""} ${n.length>0?"has-value":""}`,children:[jsxRuntimeExports.jsxs("label",{className:"autocomplete-label",children:[e,u&&jsxRuntimeExports.jsx("span",{className:"required-asterisk","aria-hidden":"true",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"input-area",children:[o&&n.length>0&&jsxRuntimeExports.jsx("div",{className:"selected-values",children:n.map(R=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[R,jsxRuntimeExports.jsx("button",{onClick:A=>{A.stopPropagation(),i(n.filter(O=>O!==R))},children:"×"})]},R))}),jsxRuntimeExports.jsx("input",{ref:E,type:"text",className:"autocomplete-input",value:g,placeholder:o&&n.length>0?"":"Select Status",onChange:R=>_(R.target.value),onFocus:()=>{d(!0),p(!0)}}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:()=>p(R=>!R),children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M6 9l6 6 6-6"})})})]})]}),f&&jsxRuntimeExports.jsxs("ul",{className:"autocomplete-list",children:[o&&l&&jsxRuntimeExports.jsx("li",{className:"select-all-option",children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.length===t.length,onChange:()=>{const R=n.length===t.length;i(R?[]:[...t])}}),"Select All"]})}),b.map(R=>jsxRuntimeExports.jsx("li",{onClick:()=>T(R),children:o&&l?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(R),onChange:()=>T(R),onClick:A=>A.stopPropagation()}),R]}):R},R))]})]})},CEAutoCompleteSelect=({label:e,options:t,value:n,onChange:i,placeholderText:o,multiple:l=!1,showCheckboxes:u=!1,id:f,required:p=!1,showSelectionCountOnly:m=!1,disabled:d=!1})=>{const[g,_]=React.useState(!1),[E,S]=React.useState(!1),[b,T]=React.useState(""),C=React.useRef(null),R=React.useRef(null),A=t.filter(F=>{var B;return(B=F.label)==null?void 0:B.toLowerCase().includes(b==null?void 0:b.toLowerCase())});React.useEffect(()=>{if(l)l&&T("");else{const F=j(n[0]);T(F||"")}},[n,l,t]);const O=F=>{if(!d)if(l){const B=n.includes(F.value);i(B?n.filter(q=>q!==F.value):[...n,F.value]),T("")}else i([F.value]),T(F.label),_(!1)},I=F=>{R.current&&!R.current.contains(F.target)&&(_(!1),S(!1))};React.useEffect(()=>(document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)),[]);const j=F=>{var B;return((B=t.find(q=>q.value===F))==null?void 0:B.label)||F},D=F=>{F.stopPropagation(),T(""),i([])};return jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:R,id:f,"data-testid":f?`ce-autocomplete-${f}`:"ce-autocomplete",children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper always-float ${E||g?"focused":""} ${n.length>0?"has-value has-clear":""} ${d?"disabled":""}`,onClick:()=>{d||_(!0)},children:[jsxRuntimeExports.jsxs("label",{className:"autocomplete-label",children:[e,p&&jsxRuntimeExports.jsx("span",{className:"required-asterisk",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"input-area",children:[l&&n.length>0&&jsxRuntimeExports.jsx("div",{className:"selected-values",children:m?jsxRuntimeExports.jsxs("span",{className:"selected-summary",children:["Selected + ",n.length]}):n.map(F=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[j(F),jsxRuntimeExports.jsx("button",{onClick:B=>{d||(B.stopPropagation(),i(n.filter(q=>q!==F)))},children:"×"})]},F))}),jsxRuntimeExports.jsx("input",{ref:C,type:"text",className:"autocomplete-input",placeholder:l&&n.length>0?"":o,value:b,disabled:d,onChange:F=>T(F.target.value),onFocus:()=>{S(!0),_(!0)}}),n.length>0&&!d&&jsxRuntimeExports.jsx("span",{className:"clear-icon",onClick:D,title:"Clear",children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:F=>{d||(F.stopPropagation(),_(B=>!B))},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M6 9l6 6 6-6"})})})]})]}),g&&jsxRuntimeExports.jsxs("ul",{className:"autocomplete-list",children:[l&&u&&jsxRuntimeExports.jsx("li",{className:"select-all-option",children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.length===t.length,onChange:()=>{const F=n.length===t.length;i(F?[]:t.map(B=>B.value))}}),"Select All"]})}),A.map(F=>jsxRuntimeExports.jsx("li",{onClick:()=>O(F),children:l&&u?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(F.value),onChange:()=>O(F),onClick:B=>B.stopPropagation()}),F.label]}):F.label},F.value))]})]})};var EventKeys=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function isEventKey(e){if(typeof e!="string")return!1;var t=EventKeys;return t.includes(e)}var SVGElementPropKeys=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function isSvgElementPropKey(e){if(typeof e!="string")return!1;var t=SVGElementPropKeys;return t.includes(e)}function isDataAttribute(e){return typeof e=="string"&&e.startsWith("data-")}function svgPropertiesNoEvents(e){var t=Object.entries(e).filter(n=>{var[i]=n;return isSvgElementPropKey(i)||isDataAttribute(i)});return Object.fromEntries(t)}function svgPropertiesNoEventsFromUnknown(e){if(e==null)return null;if(React.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return svgPropertiesNoEvents(t)}return typeof e=="object"&&!Array.isArray(e)?svgPropertiesNoEvents(e):null}function svgPropertiesAndEvents(e){var t=Object.entries(e).filter(n=>{var[i]=n;return isSvgElementPropKey(i)||isDataAttribute(i)||isEventKey(i)});return Object.fromEntries(t)}function svgPropertiesAndEventsFromUnknown(e){return e==null?null:React.isValidElement(e)?svgPropertiesAndEvents(e.props):typeof e=="object"&&!Array.isArray(e)?svgPropertiesAndEvents(e):null}var _excluded$m=["children","width","height","viewBox","className","style","title","desc"];function _extends$s(){return _extends$s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$s.apply(null,arguments)}function _objectWithoutProperties$m(e,t){if(e==null)return{};var n,i,o=_objectWithoutPropertiesLoose$m(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose$m(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var Surface=React.forwardRef((e,t)=>{var{children:n,width:i,height:o,viewBox:l,className:u,style:f,title:p,desc:m}=e,d=_objectWithoutProperties$m(e,_excluded$m),g=l||{width:i,height:o,x:0,y:0},_=clsx("recharts-surface",u);return React__namespace.createElement("svg",_extends$s({},svgPropertiesAndEvents(d),{className:_,width:i,height:o,style:f,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height),ref:t}),React__namespace.createElement("title",null,p),React__namespace.createElement("desc",null,m),n)}),_excluded$l=["children","className"];function _extends$r(){return _extends$r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$r.apply(null,arguments)}function _objectWithoutProperties$l(e,t){if(e==null)return{};var n,i,o=_objectWithoutPropertiesLoose$l(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose$l(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var Layer=React__namespace.forwardRef((e,t)=>{var{children:n,className:i}=e,o=_objectWithoutProperties$l(e,_excluded$l),l=clsx("recharts-layer",i);return React__namespace.createElement("g",_extends$r({className:l},svgPropertiesAndEvents(o),{ref:t}),n)}),LegendPortalContext=React.createContext(null),useLegendPortal=()=>React.useContext(LegendPortalContext);function constant$1(e){return function(){return e}}const cos=Math.cos,sin=Math.sin,sqrt$1=Math.sqrt,pi$1=Math.PI,tau$1=2*pi$1,pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function append(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function appendRound(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return append;const n=10**t;return function(i){this._+=i[0];for(let o=1,l=i.length;o<l;++o)this._+=Math.round(arguments[o]*n)/n+i[o]}}class Path{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?append:appendRound(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,o){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(t,n,i,o,l,u){this._append`C${+t},${+n},${+i},${+o},${this._x1=+l},${this._y1=+u}`}arcTo(t,n,i,o,l){if(t=+t,n=+n,i=+i,o=+o,l=+l,l<0)throw new Error(`negative radius: ${l}`);let u=this._x1,f=this._y1,p=i-t,m=o-n,d=u-t,g=f-n,_=d*d+g*g;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(_>epsilon)if(!(Math.abs(g*p-m*d)>epsilon)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let E=i-u,S=o-f,b=p*p+m*m,T=E*E+S*S,C=Math.sqrt(b),R=Math.sqrt(_),A=l*Math.tan((pi-Math.acos((b+_-T)/(2*C*R)))/2),O=A/R,I=A/C;Math.abs(O-1)>epsilon&&this._append`L${t+O*d},${n+O*g}`,this._append`A${l},${l},0,0,${+(g*E>d*S)},${this._x1=t+I*p},${this._y1=n+I*m}`}}arc(t,n,i,o,l,u){if(t=+t,n=+n,i=+i,u=!!u,i<0)throw new Error(`negative radius: ${i}`);let f=i*Math.cos(o),p=i*Math.sin(o),m=t+f,d=n+p,g=1^u,_=u?o-l:l-o;this._x1===null?this._append`M${m},${d}`:(Math.abs(this._x1-m)>epsilon||Math.abs(this._y1-d)>epsilon)&&this._append`L${m},${d}`,i&&(_<0&&(_=_%tau+tau),_>tauEpsilon?this._append`A${i},${i},0,1,${g},${t-f},${n-p}A${i},${i},0,1,${g},${this._x1=m},${this._y1=d}`:_>epsilon&&this._append`A${i},${i},0,${+(_>=pi)},${g},${this._x1=t+i*Math.cos(l)},${this._y1=n+i*Math.sin(l)}`)}rect(t,n,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function withPath(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new Path(t)}function array(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function shapeLine(e,t){var n=constant$1(!0),i=null,o=curveLinear,l=null,u=withPath(f);e=typeof e=="function"?e:e===void 0?x:constant$1(e),t=typeof t=="function"?t:t===void 0?y:constant$1(t);function f(p){var m,d=(p=array(p)).length,g,_=!1,E;for(i==null&&(l=o(E=u())),m=0;m<=d;++m)!(m<d&&n(g=p[m],m,p))===_&&((_=!_)?l.lineStart():l.lineEnd()),_&&l.point(+e(g,m,p),+t(g,m,p));if(E)return l=null,E+""||null}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:constant$1(+p),f):e},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:constant$1(+p),f):t},f.defined=function(p){return arguments.length?(n=typeof p=="function"?p:constant$1(!!p),f):n},f.curve=function(p){return arguments.length?(o=p,i!=null&&(l=o(i)),f):o},f.context=function(p){return arguments.length?(p==null?i=l=null:l=o(i=p),f):i},f}function shapeArea(e,t,n){var i=null,o=constant$1(!0),l=null,u=curveLinear,f=null,p=withPath(m);e=typeof e=="function"?e:e===void 0?x:constant$1(+e),t=typeof t=="function"?t:constant$1(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?y:constant$1(+n);function m(g){var _,E,S,b=(g=array(g)).length,T,C=!1,R,A=new Array(b),O=new Array(b);for(l==null&&(f=u(R=p())),_=0;_<=b;++_){if(!(_<b&&o(T=g[_],_,g))===C)if(C=!C)E=_,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),S=_-1;S>=E;--S)f.point(A[S],O[S]);f.lineEnd(),f.areaEnd()}C&&(A[_]=+e(T,_,g),O[_]=+t(T,_,g),f.point(i?+i(T,_,g):A[_],n?+n(T,_,g):O[_]))}if(R)return f=null,R+""||null}function d(){return shapeLine().defined(o).curve(u).context(l)}return m.x=function(g){return arguments.length?(e=typeof g=="function"?g:constant$1(+g),i=null,m):e},m.x0=function(g){return arguments.length?(e=typeof g=="function"?g:constant$1(+g),m):e},m.x1=function(g){return arguments.length?(i=g==null?null:typeof g=="function"?g:constant$1(+g),m):i},m.y=function(g){return arguments.length?(t=typeof g=="function"?g:constant$1(+g),n=null,m):t},m.y0=function(g){return arguments.length?(t=typeof g=="function"?g:constant$1(+g),m):t},m.y1=function(g){return arguments.length?(n=g==null?null:typeof g=="function"?g:constant$1(+g),m):n},m.lineX0=m.lineY0=function(){return d().x(e).y(t)},m.lineY1=function(){return d().x(e).y(n)},m.lineX1=function(){return d().x(i).y(t)},m.defined=function(g){return arguments.length?(o=typeof g=="function"?g:constant$1(!!g),m):o},m.curve=function(g){return arguments.length?(u=g,l!=null&&(f=u(l)),m):u},m.context=function(g){return arguments.length?(g==null?l=f=null:f=u(l=g),m):l},m}class Bump{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function bumpX(e){return new Bump(e,!0)}function bumpY(e){return new Bump(e,!1)}const symbolCircle={draw(e,t){const n=sqrt$1(t/pi$1);e.moveTo(n,0),e.arc(0,0,n,0,tau$1)}},symbolCross={draw(e,t){const n=sqrt$1(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},tan30=sqrt$1(1/3),tan30_2=tan30*2,symbolDiamond={draw(e,t){const n=sqrt$1(t/tan30_2),i=n*tan30;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},symbolSquare={draw(e,t){const n=sqrt$1(t),i=-n/2;e.rect(i,i,n,n)}},ka=.8908130915292852,kr=sin(pi$1/10)/sin(7*pi$1/10),kx=sin(tau$1/10)*kr,ky=-cos(tau$1/10)*kr,symbolStar={draw(e,t){const n=sqrt$1(t*ka),i=kx*n,o=ky*n;e.moveTo(0,-n),e.lineTo(i,o);for(let l=1;l<5;++l){const u=tau$1*l/5,f=cos(u),p=sin(u);e.lineTo(p*n,-f*n),e.lineTo(f*i-p*o,p*i+f*o)}e.closePath()}},sqrt3=sqrt$1(3),symbolTriangle={draw(e,t){const n=-sqrt$1(t/(sqrt3*3));e.moveTo(0,n*2),e.lineTo(-sqrt3*n,-n),e.lineTo(sqrt3*n,-n),e.closePath()}},c=-.5,s=sqrt$1(3)/2,k=1/sqrt$1(12),a=(k/2+1)*3,symbolWye={draw(e,t){const n=sqrt$1(t/a),i=n/2,o=n*k,l=i,u=n*k+n,f=-l,p=u;e.moveTo(i,o),e.lineTo(l,u),e.lineTo(f,p),e.lineTo(c*i-s*o,s*i+c*o),e.lineTo(c*l-s*u,s*l+c*u),e.lineTo(c*f-s*p,s*f+c*p),e.lineTo(c*i+s*o,c*o-s*i),e.lineTo(c*l+s*u,c*u-s*l),e.lineTo(c*f+s*p,c*p-s*f),e.closePath()}};function Symbol$1(e,t){let n=null,i=withPath(o);e=typeof e=="function"?e:constant$1(e||symbolCircle),t=typeof t=="function"?t:constant$1(t===void 0?64:+t);function o(){let l;if(n||(n=l=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),l)return n=null,l+""||null}return o.type=function(l){return arguments.length?(e=typeof l=="function"?l:constant$1(l),o):e},o.size=function(l){return arguments.length?(t=typeof l=="function"?l:constant$1(+l),o):t},o.context=function(l){return arguments.length?(n=l??null,o):n},o}function noop$5(){}function point$2(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Basis(e){this._context=e}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasis(e){return new Basis(e)}function BasisClosed(e){this._context=e}BasisClosed.prototype={areaStart:noop$5,areaEnd:noop$5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:point$2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisClosed(e){return new BasisClosed(e)}function BasisOpen(e){this._context=e}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:point$2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisOpen(e){return new BasisOpen(e)}function LinearClosed(e){this._context=e}LinearClosed.prototype={areaStart:noop$5,areaEnd:noop$5,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function curveLinearClosed(e){return new LinearClosed(e)}function sign(e){return e<0?-1:1}function slope3(e,t,n){var i=e._x1-e._x0,o=t-e._x1,l=(e._y1-e._y0)/(i||o<0&&-0),u=(n-e._y1)/(o||i<0&&-0),f=(l*o+u*i)/(i+o);return(sign(l)+sign(u))*Math.min(Math.abs(l),Math.abs(u),.5*Math.abs(f))||0}function slope2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function point$1(e,t,n){var i=e._x0,o=e._y0,l=e._x1,u=e._y1,f=(l-i)/3;e._context.bezierCurveTo(i+f,o+f*t,l-f,u-f*n,l,u)}function MonotoneX(e){this._context=e}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$1(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,n=slope3(this,e,t)),n);break;default:point$1(this,this._t0,n=slope3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,t){MonotoneX.prototype.point.call(this,t,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,o,l){this._context.bezierCurveTo(t,e,i,n,l,o)}};function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var i=controlPoints(e),o=controlPoints(t),l=0,u=1;u<n;++l,++u)this._context.bezierCurveTo(i[0][l],o[0][l],i[1][l],o[1][l],e[u],t[u]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function controlPoints(e){var t,n=e.length-1,i,o=new Array(n),l=new Array(n),u=new Array(n);for(o[0]=0,l[0]=2,u[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,l[t]=4,u[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,l[n-1]=7,u[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=o[t]/l[t-1],l[t]-=i,u[t]-=i*u[t-1];for(o[n-1]=u[n-1]/l[n-1],t=n-2;t>=0;--t)o[t]=(u[t]-o[t+1])/l[t];for(l[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-o[t+1];return[o,l]}function curveNatural(e){return new Natural(e)}function Step(e,t){this._context=e,this._t=t}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function curveStep(e){return new Step(e,.5)}function stepBefore(e){return new Step(e,0)}function stepAfter(e){return new Step(e,1)}function stackOffsetNone(e,t){if((u=e.length)>1)for(var n=1,i,o,l=e[t[0]],u,f=l.length;n<u;++n)for(o=l,l=e[t[n]],i=0;i<f;++i)l[i][1]+=l[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function stackOrderNone(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function stackValue(e,t){return e[t]}function stackSeries(e){const t=[];return t.key=e,t}function shapeStack(){var e=constant$1([]),t=stackOrderNone,n=stackOffsetNone,i=stackValue;function o(l){var u=Array.from(e.apply(this,arguments),stackSeries),f,p=u.length,m=-1,d;for(const g of l)for(f=0,++m;f<p;++f)(u[f][m]=[0,+i(g,u[f].key,m,l)]).data=g;for(f=0,d=array(t(u));f<p;++f)u[d[f]].index=f;return n(u,d),u}return o.keys=function(l){return arguments.length?(e=typeof l=="function"?l:constant$1(Array.from(l)),o):e},o.value=function(l){return arguments.length?(i=typeof l=="function"?l:constant$1(+l),o):i},o.order=function(l){return arguments.length?(t=l==null?stackOrderNone:typeof l=="function"?l:constant$1(Array.from(l)),o):t},o.offset=function(l){return arguments.length?(n=l??stackOffsetNone,o):n},o}function stackOffsetExpand(e,t){if((i=e.length)>0){for(var n,i,o=0,l=e[0].length,u;o<l;++o){for(u=n=0;n<i;++n)u+=e[n][o][1]||0;if(u)for(n=0;n<i;++n)e[n][o][1]/=u}stackOffsetNone(e,t)}}function stackOffsetSilhouette(e,t){if((o=e.length)>0){for(var n=0,i=e[t[0]],o,l=i.length;n<l;++n){for(var u=0,f=0;u<o;++u)f+=e[u][n][1]||0;i[n][1]+=i[n][0]=-f/2}stackOffsetNone(e,t)}}function stackOffsetWiggle(e,t){if(!(!((u=e.length)>0)||!((l=(o=e[t[0]]).length)>0))){for(var n=0,i=1,o,l,u;i<l;++i){for(var f=0,p=0,m=0;f<u;++f){for(var d=e[t[f]],g=d[i][1]||0,_=d[i-1][1]||0,E=(g-_)/2,S=0;S<f;++S){var b=e[t[S]],T=b[i][1]||0,C=b[i-1][1]||0;E+=T-C}p+=g,m+=E*g}o[i-1][1]+=o[i-1][0]=n,p&&(n-=m/p)}o[i-1][1]+=o[i-1][0]=n,stackOffsetNone(e,t)}}var get$2={},isUnsafeProperty={},hasRequiredIsUnsafeProperty;function requireIsUnsafeProperty(){return hasRequiredIsUnsafeProperty||(hasRequiredIsUnsafeProperty=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(isUnsafeProperty)),isUnsafeProperty}var isDeepKey={},hasRequiredIsDeepKey;function requireIsDeepKey(){return hasRequiredIsDeepKey||(hasRequiredIsDeepKey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(isDeepKey)),isDeepKey}var toKey={},hasRequiredToKey;function requireToKey(){return hasRequiredToKey||(hasRequiredToKey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;return typeof n=="string"||typeof n=="symbol"?n:Object.is((i=n==null?void 0:n.valueOf)==null?void 0:i.call(n),-0)?"-0":String(n)}e.toKey=t})(toKey)),toKey}var toPath={},toString$1={},hasRequiredToString;function requireToString(){return hasRequiredToString||(hasRequiredToString=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const i=String(n);return i==="0"&&Object.is(Number(n),-0)?"-0":i}e.toString=t})(toString$1)),toString$1}var hasRequiredToPath;function requireToPath(){return hasRequiredToPath||(hasRequiredToPath=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireToString(),n=requireToKey();function i(o){if(Array.isArray(o))return o.map(n.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const l=[],u=o.length;if(u===0)return l;let f=0,p="",m="",d=!1;for(o.charCodeAt(0)===46&&(l.push(""),f++);f<u;){const g=o[f];m?g==="\\"&&f+1<u?(f++,p+=o[f]):g===m?m="":p+=g:d?g==='"'||g==="'"?m=g:g==="]"?(d=!1,l.push(p),p=""):p+=g:g==="["?(d=!0,p&&(l.push(p),p="")):g==="."?p&&(l.push(p),p=""):p+=g,f++}return p&&l.push(p),l}e.toPath=i})(toPath)),toPath}var hasRequiredGet$1;function requireGet$1(){return hasRequiredGet$1||(hasRequiredGet$1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIsUnsafeProperty(),n=requireIsDeepKey(),i=requireToKey(),o=requireToPath();function l(f,p,m){if(f==null)return m;switch(typeof p){case"string":{if(t.isUnsafeProperty(p))return m;const d=f[p];return d===void 0?n.isDeepKey(p)?l(f,o.toPath(p),m):m:d}case"number":case"symbol":{typeof p=="number"&&(p=i.toKey(p));const d=f[p];return d===void 0?m:d}default:{if(Array.isArray(p))return u(f,p,m);if(Object.is(p==null?void 0:p.valueOf(),-0)?p="-0":p=String(p),t.isUnsafeProperty(p))return m;const d=f[p];return d===void 0?m:d}}}function u(f,p,m){if(p.length===0)return m;let d=f;for(let g=0;g<p.length;g++){if(d==null||t.isUnsafeProperty(p[g]))return m;d=d[p[g]]}return d===void 0?m:d}e.get=l})(get$2)),get$2}var get$1,hasRequiredGet;function requireGet(){return hasRequiredGet||(hasRequiredGet=1,get$1=requireGet$1().get),get$1}var getExports=requireGet();const get=getDefaultExportFromCjs(getExports);var mathSign=e=>e===0?0:e>0?1:-1,isNan=e=>typeof e=="number"&&e!=+e,isPercent=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,isNumber=e=>(typeof e=="number"||e instanceof Number)&&!isNan(e),isNumOrStr=e=>isNumber(e)||typeof e=="string",idCounter=0,uniqueId=e=>{var t=++idCounter;return"".concat(e||"").concat(t)},getPercentValue=function e(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!isNumber(t)&&typeof t!="string")return i;var l;if(isPercent(t)){if(n==null)return i;var u=t.indexOf("%");l=n*parseFloat(t.slice(0,u))/100}else l=+t;return isNan(l)&&(l=i),o&&n!=null&&l>n&&(l=n),l},hasDuplicate=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},i=0;i<t;i++)if(!n[e[i]])n[e[i]]=!0;else return!0;return!1};function interpolate$1(e,t,n){return isNumber(e)&&isNumber(t)?e+n*(t-e):t}function findEntryInArray(e,t,n){if(!(!e||!e.length))return e.find(i=>i&&(typeof t=="function"?t(i):get(i,t))===n)}var isNullish=e=>e===null||typeof e>"u",upperFirst=e=>isNullish(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),_excluded$k=["type","size","sizeType"];function _extends$q(){return _extends$q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$q.apply(null,arguments)}function ownKeys$B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$B(Object(n),!0).forEach(function(i){_defineProperty$D(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$B(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$D(e,t,n){return(t=_toPropertyKey$D(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$D(e){var t=_toPrimitive$D(e,"string");return typeof t=="symbol"?t:t+""}function _toPrimitive$D(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _objectWithoutProperties$k(e,t){if(e==null)return{};var n,i,o=_objectWithoutPropertiesLoose$k(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose$k(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var symbolFactories={symbolCircle,symbolCross,symbolDiamond,symbolSquare,symbolStar,symbolTriangle,symbolWye},RADIAN$1=Math.PI/180,getSymbolFactory=e=>{var t="symbol".concat(upperFirst(e));return symbolFactories[t]||symbolCircle},calculateAreaSize=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var i=18*RADIAN$1;return 1.25*e*e*(Math.tan(i)-Math.tan(i*2)*Math.tan(i)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},registerSymbol=(e,t)=>{symbolFactories["symbol".concat(upperFirst(e))]=t},Symbols=e=>{var{type:t="circle",size:n=64,sizeType:i="area"}=e,o=_objectWithoutProperties$k(e,_excluded$k),l=_objectSpread$B(_objectSpread$B({},o),{},{type:t,size:n,sizeType:i}),u="circle";typeof t=="string"&&(u=t);var f=()=>{var _=getSymbolFactory(u),E=Symbol$1().type(_).size(calculateAreaSize(n,i,u)),S=E();if(S!==null)return S},{className:p,cx:m,cy:d}=l,g=svgPropertiesAndEvents(l);return m===+m&&d===+d&&n===+n?React__namespace.createElement("path",_extends$q({},g,{className:clsx("recharts-symbols",p),transform:"translate(".concat(m,", ").concat(d,")"),d:f()})):null};Symbols.registerSymbol=registerSymbol;var adaptEventHandlers=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(React.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var i={};return Object.keys(n).forEach(o=>{isEventKey(o)&&(i[o]=(l=>n[o](n,l)))}),i},getEventHandlerOfChild=(e,t,n)=>i=>(e(t,n,i),null),adaptEventsOfChild=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var i=null;return Object.keys(e).forEach(o=>{var l=e[o];isEventKey(o)&&typeof l=="function"&&(i||(i={}),i[o]=getEventHandlerOfChild(l,t,n))}),i};function _extends$p(){return _extends$p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$p.apply(null,arguments)}function ownKeys$A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$A(Object(n),!0).forEach(function(i){_defineProperty$C(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$A(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$C(e,t,n){return(t=_toPropertyKey$C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$C(e){var t=_toPrimitive$C(e,"string");return typeof t=="symbol"?t:t+""}function _toPrimitive$C(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SIZE=32;class DefaultLegendContent extends React.PureComponent{renderIcon(t,n){var{inactiveColor:i}=this.props,o=SIZE/2,l=SIZE/6,u=SIZE/3,f=t.inactive?i:t.color,p=n??t.type;if(p==="none")return null;if(p==="plainline")return React__namespace.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:o,x2:SIZE,y2:o,className:"recharts-legend-icon"});if(p==="line")return React__namespace.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(o,"h").concat(u,`
348
348
  A`).concat(l,",").concat(l,",0,1,1,").concat(2*u,",").concat(o,`
349
349
  H`).concat(SIZE,"M").concat(2*u,",").concat(o,`
350
350
  A`).concat(l,",").concat(l,",0,1,1,").concat(u,",").concat(o),className:"recharts-legend-icon"});if(p==="rect")return React__namespace.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(SIZE/8,"h").concat(SIZE,"v").concat(SIZE*3/4,"h").concat(-SIZE,"z"),className:"recharts-legend-icon"});if(React__namespace.isValidElement(t.legendIcon)){var m=_objectSpread$A({},t);return delete m.legendIcon,React__namespace.cloneElement(t.legendIcon,m)}return React__namespace.createElement(Symbols,{fill:f,cx:o,cy:o,size:SIZE,sizeType:"diameter",type:p})}renderItems(){var{payload:t,iconSize:n,layout:i,formatter:o,inactiveColor:l,iconType:u}=this.props,f={x:0,y:0,width:SIZE,height:SIZE},p={display:i==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((d,g)=>{var _=d.formatter||o,E=clsx({"recharts-legend-item":!0,["legend-item-".concat(g)]:!0,inactive:d.inactive});if(d.type==="none")return null;var S=d.inactive?l:d.color,b=_?_(d.value,d,g):d.value;return React__namespace.createElement("li",_extends$p({className:E,style:p,key:"legend-item-".concat(g)},adaptEventsOfChild(this.props,d,g)),React__namespace.createElement(Surface,{width:n,height:n,viewBox:f,style:m,"aria-label":"".concat(b," legend icon")},this.renderIcon(d,u)),React__namespace.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},b))})}render(){var{payload:t,layout:n,align:i}=this.props;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:n==="horizontal"?i:"left"};return React__namespace.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}_defineProperty$C(DefaultLegendContent,"displayName","Legend");_defineProperty$C(DefaultLegendContent,"defaultProps",{align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"});var uniqBy$3={},uniqBy$2={},hasRequiredUniqBy$2;function requireUniqBy$2(){return hasRequiredUniqBy$2||(hasRequiredUniqBy$2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i){const o=new Map;for(let l=0;l<n.length;l++){const u=n[l],f=i(u);o.has(f)||o.set(f,u)}return Array.from(o.values())}e.uniqBy=t})(uniqBy$2)),uniqBy$2}var identity$4={},hasRequiredIdentity;function requireIdentity(){return hasRequiredIdentity||(hasRequiredIdentity=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(identity$4)),identity$4}var isArrayLikeObject={},isArrayLike={},isLength={},hasRequiredIsLength;function requireIsLength(){return hasRequiredIsLength||(hasRequiredIsLength=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(isLength)),isLength}var hasRequiredIsArrayLike;function requireIsArrayLike(){return hasRequiredIsArrayLike||(hasRequiredIsArrayLike=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIsLength();function n(i){return i!=null&&typeof i!="function"&&t.isLength(i.length)}e.isArrayLike=n})(isArrayLike)),isArrayLike}var isObjectLike={},hasRequiredIsObjectLike;function requireIsObjectLike(){return hasRequiredIsObjectLike||(hasRequiredIsObjectLike=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(isObjectLike)),isObjectLike}var hasRequiredIsArrayLikeObject;function requireIsArrayLikeObject(){return hasRequiredIsArrayLikeObject||(hasRequiredIsArrayLikeObject=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIsArrayLike(),n=requireIsObjectLike();function i(o){return n.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=i})(isArrayLikeObject)),isArrayLikeObject}var iteratee={},property={},hasRequiredProperty;function requireProperty(){return hasRequiredProperty||(hasRequiredProperty=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireGet$1();function n(i){return function(o){return t.get(o,i)}}e.property=n})(property)),property}var matches={},isMatch={},isMatchWith={},isObject={},hasRequiredIsObject;function requireIsObject(){return hasRequiredIsObject||(hasRequiredIsObject=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(isObject)),isObject}var isPrimitive={},hasRequiredIsPrimitive;function requireIsPrimitive(){return hasRequiredIsPrimitive||(hasRequiredIsPrimitive=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(isPrimitive)),isPrimitive}var eq={},hasRequiredEq;function requireEq(){return hasRequiredEq||(hasRequiredEq=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i){return n===i||Number.isNaN(n)&&Number.isNaN(i)}e.eq=t})(eq)),eq}var hasRequiredIsMatchWith;function requireIsMatchWith(){return hasRequiredIsMatchWith||(hasRequiredIsMatchWith=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIsObject(),n=requireIsPrimitive(),i=requireEq();function o(d,g,_){return typeof _!="function"?o(d,g,()=>{}):l(d,g,function E(S,b,T,C,R,A){const O=_(S,b,T,C,R,A);return O!==void 0?!!O:l(S,b,E,A)},new Map)}function l(d,g,_,E){if(g===d)return!0;switch(typeof g){case"object":return u(d,g,_,E);case"function":return Object.keys(g).length>0?l(d,{...g},_,E):i.eq(d,g);default:return t.isObject(d)?typeof g=="string"?g==="":!0:i.eq(d,g)}}function u(d,g,_,E){if(g==null)return!0;if(Array.isArray(g))return p(d,g,_,E);if(g instanceof Map)return f(d,g,_,E);if(g instanceof Set)return m(d,g,_,E);const S=Object.keys(g);if(d==null)return S.length===0;if(S.length===0)return!0;if(E!=null&&E.has(g))return E.get(g)===d;E==null||E.set(g,d);try{for(let b=0;b<S.length;b++){const T=S[b];if(!n.isPrimitive(d)&&!(T in d)||g[T]===void 0&&d[T]!==void 0||g[T]===null&&d[T]!==null||!_(d[T],g[T],T,d,g,E))return!1}return!0}finally{E==null||E.delete(g)}}function f(d,g,_,E){if(g.size===0)return!0;if(!(d instanceof Map))return!1;for(const[S,b]of g.entries()){const T=d.get(S);if(_(T,b,S,d,g,E)===!1)return!1}return!0}function p(d,g,_,E){if(g.length===0)return!0;if(!Array.isArray(d))return!1;const S=new Set;for(let b=0;b<g.length;b++){const T=g[b];let C=!1;for(let R=0;R<d.length;R++){if(S.has(R))continue;const A=d[R];let O=!1;if(_(A,T,b,d,g,E)&&(O=!0),O){S.add(R),C=!0;break}}if(!C)return!1}return!0}function m(d,g,_,E){return g.size===0?!0:d instanceof Set?p([...d],[...g],_,E):!1}e.isMatchWith=o,e.isSetMatch=m})(isMatchWith)),isMatchWith}var hasRequiredIsMatch;function requireIsMatch(){return hasRequiredIsMatch||(hasRequiredIsMatch=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIsMatchWith();function n(i,o){return t.isMatchWith(i,o,()=>{})}e.isMatch=n})(isMatch)),isMatch}var cloneDeep$1={},cloneDeepWith$1={},getSymbols={},hasRequiredGetSymbols;function requireGetSymbols(){return hasRequiredGetSymbols||(hasRequiredGetSymbols=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(i=>Object.prototype.propertyIsEnumerable.call(n,i))}e.getSymbols=t})(getSymbols)),getSymbols}var getTag={},hasRequiredGetTag;function requireGetTag(){return hasRequiredGetTag||(hasRequiredGetTag=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(getTag)),getTag}var tags={},hasRequiredTags;function requireTags(){return hasRequiredTags||(hasRequiredTags=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",i="[object Number]",o="[object Boolean]",l="[object Arguments]",u="[object Symbol]",f="[object Date]",p="[object Map]",m="[object Set]",d="[object Array]",g="[object Function]",_="[object ArrayBuffer]",E="[object Object]",S="[object Error]",b="[object DataView]",T="[object Uint8Array]",C="[object Uint8ClampedArray]",R="[object Uint16Array]",A="[object Uint32Array]",O="[object BigUint64Array]",I="[object Int8Array]",j="[object Int16Array]",D="[object Int32Array]",F="[object BigInt64Array]",B="[object Float32Array]",q="[object Float64Array]";e.argumentsTag=l,e.arrayBufferTag=_,e.arrayTag=d,e.bigInt64ArrayTag=F,e.bigUint64ArrayTag=O,e.booleanTag=o,e.dataViewTag=b,e.dateTag=f,e.errorTag=S,e.float32ArrayTag=B,e.float64ArrayTag=q,e.functionTag=g,e.int16ArrayTag=j,e.int32ArrayTag=D,e.int8ArrayTag=I,e.mapTag=p,e.numberTag=i,e.objectTag=E,e.regexpTag=t,e.setTag=m,e.stringTag=n,e.symbolTag=u,e.uint16ArrayTag=R,e.uint32ArrayTag=A,e.uint8ArrayTag=T,e.uint8ClampedArrayTag=C})(tags)),tags}var isTypedArray={},hasRequiredIsTypedArray;function requireIsTypedArray(){return hasRequiredIsTypedArray||(hasRequiredIsTypedArray=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(isTypedArray)),isTypedArray}var hasRequiredCloneDeepWith$1;function requireCloneDeepWith$1(){return hasRequiredCloneDeepWith$1||(hasRequiredCloneDeepWith$1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireGetSymbols(),n=requireGetTag(),i=requireTags(),o=requireIsPrimitive(),l=requireIsTypedArray();function u(d,g){return f(d,void 0,d,new Map,g)}function f(d,g,_,E=new Map,S=void 0){const b=S==null?void 0:S(d,g,_,E);if(b!==void 0)return b;if(o.isPrimitive(d))return d;if(E.has(d))return E.get(d);if(Array.isArray(d)){const T=new Array(d.length);E.set(d,T);for(let C=0;C<d.length;C++)T[C]=f(d[C],C,_,E,S);return Object.hasOwn(d,"index")&&(T.index=d.index),Object.hasOwn(d,"input")&&(T.input=d.input),T}if(d instanceof Date)return new Date(d.getTime());if(d instanceof RegExp){const T=new RegExp(d.source,d.flags);return T.lastIndex=d.lastIndex,T}if(d instanceof Map){const T=new Map;E.set(d,T);for(const[C,R]of d)T.set(C,f(R,C,_,E,S));return T}if(d instanceof Set){const T=new Set;E.set(d,T);for(const C of d)T.add(f(C,void 0,_,E,S));return T}if(typeof Buffer<"u"&&Buffer.isBuffer(d))return d.subarray();if(l.isTypedArray(d)){const T=new(Object.getPrototypeOf(d)).constructor(d.length);E.set(d,T);for(let C=0;C<d.length;C++)T[C]=f(d[C],C,_,E,S);return T}if(d instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&d instanceof SharedArrayBuffer)return d.slice(0);if(d instanceof DataView){const T=new DataView(d.buffer.slice(0),d.byteOffset,d.byteLength);return E.set(d,T),p(T,d,_,E,S),T}if(typeof File<"u"&&d instanceof File){const T=new File([d],d.name,{type:d.type});return E.set(d,T),p(T,d,_,E,S),T}if(typeof Blob<"u"&&d instanceof Blob){const T=new Blob([d],{type:d.type});return E.set(d,T),p(T,d,_,E,S),T}if(d instanceof Error){const T=new d.constructor;return E.set(d,T),T.message=d.message,T.name=d.name,T.stack=d.stack,T.cause=d.cause,p(T,d,_,E,S),T}if(d instanceof Boolean){const T=new Boolean(d.valueOf());return E.set(d,T),p(T,d,_,E,S),T}if(d instanceof Number){const T=new Number(d.valueOf());return E.set(d,T),p(T,d,_,E,S),T}if(d instanceof String){const T=new String(d.valueOf());return E.set(d,T),p(T,d,_,E,S),T}if(typeof d=="object"&&m(d)){const T=Object.create(Object.getPrototypeOf(d));return E.set(d,T),p(T,d,_,E,S),T}return d}function p(d,g,_=d,E,S){const b=[...Object.keys(g),...t.getSymbols(g)];for(let T=0;T<b.length;T++){const C=b[T],R=Object.getOwnPropertyDescriptor(d,C);(R==null||R.writable)&&(d[C]=f(g[C],C,_,E,S))}}function m(d){switch(n.getTag(d)){case i.argumentsTag:case i.arrayTag:case i.arrayBufferTag:case i.dataViewTag:case i.booleanTag:case i.dateTag:case i.float32ArrayTag:case i.float64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.mapTag:case i.numberTag:case i.objectTag:case i.regexpTag:case i.setTag:case i.stringTag:case i.symbolTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=u,e.cloneDeepWithImpl=f,e.copyProperties=p})(cloneDeepWith$1)),cloneDeepWith$1}var hasRequiredCloneDeep$1;function requireCloneDeep$1(){return hasRequiredCloneDeep$1||(hasRequiredCloneDeep$1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireCloneDeepWith$1();function n(i){return t.cloneDeepWithImpl(i,void 0,i,new Map,void 0)}e.cloneDeep=n})(cloneDeep$1)),cloneDeep$1}var hasRequiredMatches;function requireMatches(){return hasRequiredMatches||(hasRequiredMatches=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIsMatch(),n=requireCloneDeep$1();function i(o){return o=n.cloneDeep(o),l=>t.isMatch(l,o)}e.matches=i})(matches)),matches}var matchesProperty={},cloneDeep={},cloneDeepWith={},hasRequiredCloneDeepWith;function requireCloneDeepWith(){return hasRequiredCloneDeepWith||(hasRequiredCloneDeepWith=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireCloneDeepWith$1(),n=requireTags();function i(o,l){return t.cloneDeepWith(o,(u,f,p,m)=>{const d=l==null?void 0:l(u,f,p,m);if(d!==void 0)return d;if(typeof o=="object")switch(Object.prototype.toString.call(o)){case n.numberTag:case n.stringTag:case n.booleanTag:{const g=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(g,o),g}case n.argumentsTag:{const g={};return t.copyProperties(g,o),g.length=o.length,g[Symbol.iterator]=o[Symbol.iterator],g}default:return}})}e.cloneDeepWith=i})(cloneDeepWith)),cloneDeepWith}var hasRequiredCloneDeep;function requireCloneDeep(){return hasRequiredCloneDeep||(hasRequiredCloneDeep=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireCloneDeepWith();function n(i){return t.cloneDeepWith(i)}e.cloneDeep=n})(cloneDeep)),cloneDeep}var has$1={},isIndex={},hasRequiredIsIndex;function requireIsIndex(){return hasRequiredIsIndex||(hasRequiredIsIndex=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(i,o=Number.MAX_SAFE_INTEGER){switch(typeof i){case"number":return Number.isInteger(i)&&i>=0&&i<o;case"symbol":return!1;case"string":return t.test(i)}}e.isIndex=n})(isIndex)),isIndex}var isArguments={},hasRequiredIsArguments;function requireIsArguments(){return hasRequiredIsArguments||(hasRequiredIsArguments=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireGetTag();function n(i){return i!==null&&typeof i=="object"&&t.getTag(i)==="[object Arguments]"}e.isArguments=n})(isArguments)),isArguments}var hasRequiredHas;function requireHas(){return hasRequiredHas||(hasRequiredHas=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIsDeepKey(),n=requireIsIndex(),i=requireIsArguments(),o=requireToPath();function l(u,f){let p;if(Array.isArray(f)?p=f:typeof f=="string"&&t.isDeepKey(f)&&(u==null?void 0:u[f])==null?p=o.toPath(f):p=[f],p.length===0)return!1;let m=u;for(let d=0;d<p.length;d++){const g=p[d];if((m==null||!Object.hasOwn(m,g))&&!((Array.isArray(m)||i.isArguments(m))&&n.isIndex(g)&&g<m.length))return!1;m=m[g]}return!0}e.has=l})(has$1)),has$1}var hasRequiredMatchesProperty;function requireMatchesProperty(){return hasRequiredMatchesProperty||(hasRequiredMatchesProperty=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIsMatch(),n=requireToKey(),i=requireCloneDeep(),o=requireGet$1(),l=requireHas();function u(f,p){switch(typeof f){case"object":{Object.is(f==null?void 0:f.valueOf(),-0)&&(f="-0");break}case"number":{f=n.toKey(f);break}}return p=i.cloneDeep(p),function(m){const d=o.get(m,f);return d===void 0?l.has(m,f):p===void 0?d===void 0:t.isMatch(d,p)}}e.matchesProperty=u})(matchesProperty)),matchesProperty}var hasRequiredIteratee;function requireIteratee(){return hasRequiredIteratee||(hasRequiredIteratee=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireIdentity(),n=requireProperty(),i=requireMatches(),o=requireMatchesProperty();function l(u){if(u==null)return t.identity;switch(typeof u){case"function":return u;case"object":return Array.isArray(u)&&u.length===2?o.matchesProperty(u[0],u[1]):i.matches(u);case"string":case"symbol":case"number":return n.property(u)}}e.iteratee=l})(iteratee)),iteratee}var hasRequiredUniqBy$1;function requireUniqBy$1(){return hasRequiredUniqBy$1||(hasRequiredUniqBy$1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=requireUniqBy$2(),n=requireIdentity(),i=requireIsArrayLikeObject(),o=requireIteratee();function l(u,f=n.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),o.iteratee(f)):[]}e.uniqBy=l})(uniqBy$3)),uniqBy$3}var uniqBy$1,hasRequiredUniqBy;function requireUniqBy(){return hasRequiredUniqBy||(hasRequiredUniqBy=1,uniqBy$1=requireUniqBy$1().uniqBy),uniqBy$1}var uniqByExports=requireUniqBy();const uniqBy=getDefaultExportFromCjs(uniqByExports);function getUniqPayload(e,t,n){return t===!0?uniqBy(e,n):typeof t=="function"?uniqBy(e,t):e}var withSelector$1={exports:{}},withSelector_production={},shim={exports:{}},useSyncExternalStoreShim_production={};/**
@@ -42310,13 +42310,15 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
42310
42310
  left: 0,
42311
42311
  top: 0
42312
42312
  }), G = useMemo(() => {
42313
- if (!f) return null;
42313
+ if (f == null || f === "")
42314
+ return null;
42314
42315
  const Te = typeof f == "string" ? new Date(f) : new Date(f);
42315
- return Te.setHours(0, 0, 0, 0), Te;
42316
+ return Te.setHours(0, 0, 0, 0), isNaN(Te.getTime()) ? null : Te;
42316
42317
  }, [f]), W = useMemo(() => {
42317
- if (!p) return null;
42318
+ if (p == null || p === "")
42319
+ return null;
42318
42320
  const Te = typeof p == "string" ? new Date(p) : new Date(p);
42319
- return Te.setHours(0, 0, 0, 0), Te;
42321
+ return Te.setHours(0, 0, 0, 0), isNaN(Te.getTime()) ? null : Te;
42320
42322
  }, [p]), z = useMemo(() => {
42321
42323
  if (!u) return null;
42322
42324
  const Te = /* @__PURE__ */ new Date();
@@ -42553,7 +42555,7 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
42553
42555
  "button",
42554
42556
  {
42555
42557
  onClick: () => b ? pe(1) : ue(1),
42556
- disabled: !b && !!W && E.getFullYear() === W.getFullYear() && E.getMonth() === W.getMonth(),
42558
+ disabled: !1,
42557
42559
  children: "›"
42558
42560
  }
42559
42561
  )
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": "2.0.21",
4
+ "version": "2.0.22",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",