cecomponent 1.0.197 → 1.0.198

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.
@@ -341,7 +341,7 @@ i.goToAndStop(b-i.firstFrame-1,!0)}E.type==="loop"&&(m===null||m!==E.frames||i.i
341
341
  `),p.push(` </office:body>
342
342
  `),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 d={data:f,type:l};t[o]==null?t[o]=[d]:t[o].push(d)}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),d=varint_to_i32(p[3][0].data);u.messages.push({meta:p,data:e.slice(i[0],i[0]+d)}),i[0]+=d}),(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,d=0;if(l==1?(d=(t[n[0]]>>2&7)+4,p=(t[n[0]++]&224)<<3,p|=t[n[0]++]):(d=(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(d>=p)for(o.push(o[0].slice(-p)),d-=p;d>=o[o.length-1].length;)o.push(o[o.length-1]),d-=o[o.length-1].length;o.push(o[0].slice(-p,-p+d))}}var m=u8concat(o);if(m.length!=i)throw new Error("Unexpected length: ".concat(m.length," != ").concat(i));return m}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,d=u8_to_dataview(e[7][0].data),m=0,g=[],_=u8_to_dataview(e[4][0].data),S=0,E=[],b=0;b<t.length;++b){if(t[b]==null){d.setUint16(b*2,65535,!0),_.setUint16(b*2,65535);continue}d.setUint16(b*2,m,!0),_.setUint16(b*2,S,!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),m+=T.length,E.push(C),S+=C.length,++p}for(e[2][0].data=write_varint49(p);b<e[7][0].data.length/2;++b)d.setUint16(b*2,65535,!0),_.setUint16(b*2,65535,!0);return e[6][0].data=u8concat(g),e[3][0].data=u8concat(E),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(Y){return Y.forEach(function(J){typeof J=="string"&&u.push(J)})});var f={},p=[],d=CFB.read(t.numbers,{type:"base64"});d.FileIndex.map(function(Y,J){return[Y,d.FullPaths[J]]}).forEach(function(Y){var J=Y[0],te=Y[1];if(J.type==2&&J.name.match(/\.iwa/)){var le=J.content,be=decompress_iwa_file(le),me=parse_iwa_file(be);me.forEach(function(fe){p.push(fe.id),f[fe.id]={deps:[],location:te,type:varint_to_i32(fe.messages[0].meta[1][0].data)}})}}),p.sort(function(Y,J){return Y-J});var m=p.filter(function(Y){return Y>1}).map(function(Y){return[Y,write_varint49(Y)]});d.FileIndex.map(function(Y,J){return[Y,d.FullPaths[J]]}).forEach(function(Y){var J=Y[0];if(Y[1],!!J.name.match(/\.iwa/)){var te=parse_iwa_file(decompress_iwa_file(J.content));te.forEach(function(le){le.messages.forEach(function(be){m.forEach(function(me){le.messages.some(function(fe){return varint_to_i32(fe.meta[1][0].data)!=11006&&u8contains(fe.data,me[1])})&&f[me[0]].deps.push(le.id)})})})}});for(var g=CFB.find(d,f[1].location),_=parse_iwa_file(decompress_iwa_file(g.content)),S,E=0;E<_.length;++E){var b=_[E];b.id==1&&(S=b)}var T=parse_TSP_Reference(parse_shallow(S.messages[0].data)[1][0].data);for(g=CFB.find(d,f[T].location),_=parse_iwa_file(decompress_iwa_file(g.content)),E=0;E<_.length;++E)b=_[E],b.id==T&&(S=b);for(T=parse_TSP_Reference(parse_shallow(S.messages[0].data)[2][0].data),g=CFB.find(d,f[T].location),_=parse_iwa_file(decompress_iwa_file(g.content)),E=0;E<_.length;++E)b=_[E],b.id==T&&(S=b);for(T=parse_TSP_Reference(parse_shallow(S.messages[0].data)[2][0].data),g=CFB.find(d,f[T].location),_=parse_iwa_file(decompress_iwa_file(g.content)),E=0;E<_.length;++E)b=_[E],b.id==T&&(S=b);var C=parse_shallow(S.messages[0].data);{C[6][0].data=write_varint49(i.e.r+1),C[7][0].data=write_varint49(i.e.c+1);var A=parse_TSP_Reference(C[46][0].data),R=CFB.find(d,f[A].location),j=parse_iwa_file(decompress_iwa_file(R.content));{for(var O=0;O<j.length&&j[O].id!=A;++O);if(j[O].id!=A)throw"Bad ColumnRowUIDMapArchive";var I=parse_shallow(j[O].messages[0].data);I[1]=[],I[2]=[],I[3]=[];for(var M=0;M<=i.e.c;++M){var N=[];N[1]=N[2]=[{type:0,data:write_varint49(M+420690)}],I[1].push({type:2,data:write_shallow(N)}),I[2].push({type:0,data:write_varint49(M)}),I[3].push({type:0,data:write_varint49(M)})}I[4]=[],I[5]=[],I[6]=[];for(var D=0;D<=i.e.r;++D)N=[],N[1]=N[2]=[{type:0,data:write_varint49(D+726270)}],I[4].push({type:2,data:write_shallow(N)}),I[5].push({type:0,data:write_varint49(D)}),I[6].push({type:0,data:write_varint49(D)});j[O].messages[0].data=write_shallow(I)}R.content=compress_iwa_file(write_iwa_file(j)),R.size=R.content.length,delete C[46];var F=parse_shallow(C[4][0].data);{F[7][0].data=write_varint49(i.e.r+1);var q=parse_shallow(F[1][0].data),V=parse_TSP_Reference(q[2][0].data);R=CFB.find(d,f[V].location),j=parse_iwa_file(decompress_iwa_file(R.content));{if(j[0].id!=V)throw"Bad HeaderStorageBucket";var G=parse_shallow(j[0].messages[0].data);for(D=0;D<l.length;++D){var ee=parse_shallow(G[2][0].data);ee[1][0].data=write_varint49(D),ee[4][0].data=write_varint49(l[D].length),G[2][D]={type:G[2][0].type,data:write_shallow(ee)}}j[0].messages[0].data=write_shallow(G)}R.content=compress_iwa_file(write_iwa_file(j)),R.size=R.content.length;var X=parse_TSP_Reference(F[2][0].data);R=CFB.find(d,f[X].location),j=parse_iwa_file(decompress_iwa_file(R.content));{if(j[0].id!=X)throw"Bad HeaderStorageBucket";for(G=parse_shallow(j[0].messages[0].data),M=0;M<=i.e.c;++M)ee=parse_shallow(G[2][0].data),ee[1][0].data=write_varint49(M),ee[4][0].data=write_varint49(i.e.r+1),G[2][M]={type:G[2][0].type,data:write_shallow(ee)};j[0].messages[0].data=write_shallow(G)}R.content=compress_iwa_file(write_iwa_file(j)),R.size=R.content.length;var z=parse_TSP_Reference(F[4][0].data);(function(){for(var Y=CFB.find(d,f[z].location),J=parse_iwa_file(decompress_iwa_file(Y.content)),te,le=0;le<J.length;++le){var be=J[le];be.id==z&&(te=be)}var me=parse_shallow(te.messages[0].data);{me[3]=[];var fe=[];u.forEach(function(Q,Se){fe[1]=[{type:0,data:write_varint49(Se)}],fe[2]=[{type:0,data:write_varint49(1)}],fe[3]=[{type:2,data:stru8(Q)}],me[3].push({type:2,data:write_shallow(fe)})})}te.messages[0].data=write_shallow(me);var pe=write_iwa_file(J),ye=compress_iwa_file(pe);Y.content=ye,Y.size=Y.content.length})();var W=parse_shallow(F[3][0].data);{var L=W[1][0];delete W[2];var B=parse_shallow(L.data);{var U=parse_TSP_Reference(B[2][0].data);(function(){for(var Y=CFB.find(d,f[U].location),J=parse_iwa_file(decompress_iwa_file(Y.content)),te,le=0;le<J.length;++le){var be=J[le];be.id==U&&(te=be)}var me=parse_shallow(te.messages[0].data);{delete me[6],delete W[7];var fe=new Uint8Array(me[5][0].data);me[5]=[];for(var pe=0,ye=0;ye<=i.e.r;++ye){var Q=parse_shallow(fe);pe+=write_tile_row(Q,l[ye],u),Q[1][0].data=write_varint49(ye),me[5].push({data:write_shallow(Q),type:2})}me[1]=[{type:0,data:write_varint49(i.e.c+1)}],me[2]=[{type:0,data:write_varint49(i.e.r+1)}],me[3]=[{type:0,data:write_varint49(pe)}],me[4]=[{type:0,data:write_varint49(i.e.r+1)}]}te.messages[0].data=write_shallow(me);var Se=write_iwa_file(J),ce=compress_iwa_file(Se);Y.content=ce,Y.size=Y.content.length})()}L.data=write_shallow(B)}F[3][0].data=write_shallow(W)}C[4][0].data=write_shallow(F)}S.messages[0].data=write_shallow(C);var K=write_iwa_file(_),H=compress_iwa_file(K);return g.content=H,g.size=g.content.length,d}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=[],d=0;d<e.SheetNames.length;++d)(e.Workbook.Sheets[d]||{}).Hidden!=2&&p.push(e.SheetNames[d]);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$1(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 m={"!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,m)),o.sheets.push(u),add_rels(t.wbrels,-1,"worksheets/sheet"+f+"."+n,RELS.WS[0])}if(g){var S=g["!comments"],E=!1,b="";S&&S.length>0&&(b="xl/comments"+f+"."+n,zip_add_file(l,b,write_cmnt(S,b)),o.comments.push(b),add_rels(m,-1,"../comments"+f+"."+n,RELS.CMNT),E=!0),g["!legacy"]&&E&&zip_add_file(l,"xl/drawings/vmlDrawing"+f+".vml",write_comments_vml(f,g["!comments"])),delete g["!comments"],delete g["!legacy"]}m["!id"].rId1&&zip_add_file(l,get_rels_path(u),write_rels(m))}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=[],d=0;d<e.SheetNames.length;++d)(e.Workbook.Sheets[d]||{}).Hidden!=2&&p.push(e.SheetNames[d]);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$1(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 m=["SheetJ5"];for(t.tcid=0,f=1;f<=e.SheetNames.length;++f){var g={"!id":{}},_=e.Sheets[e.SheetNames[f-1]],S=(_||{})["!type"]||"sheet";switch(S){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 E=_["!comments"],b=!1,T="";if(E&&E.length>0){var C=!1;E.forEach(function(A){A[1].forEach(function(R){R.T==!0&&(C=!0)})}),C&&(T="xl/threadedComments/threadedComment"+f+"."+n,zip_add_file(l,T,write_tcmnt_xml(E,m,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(E)),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),m.length>1&&(u="xl/persons/person.xml",zip_add_file(l,u,write_people_xml(m)),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),d=f.defval,m=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 S=t.s.c;S<=t.e.c;++S){var E=u?e[n][S]:e[i[S]+p];if(E===void 0||E.t===void 0){if(d===void 0)continue;l[S]!=null&&(_[l[S]]=d);continue}var b=E.v;switch(E.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 "+E.t)}if(l[S]!=null){if(b==null)if(E.t=="e"&&b===null)_[l[S]]=null;else if(d!==void 0)_[l[S]]=d;else if(m&&b===null)_[l[S]]=null;else continue;else _[l[S]]=m&&(E.t!=="n"||E.t==="n"&&f.rawNumbers!==!1)?b:format_cell(E,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}},d=t||{},m=d.range!=null?d.range:e["!ref"];switch(d.header===1?i=1:d.header==="A"?i=2:Array.isArray(d.header)?i=3:d.header==null&&(i=0),typeof m){case"string":p=safe_decode_range(m);break;case"number":p=safe_decode_range(e["!ref"]),p.s.r=m;break;default:p=m}i>0&&(o=0);var g=encode_row(p.s.r),_=[],S=[],E=0,b=0,T=Array.isArray(e),C=p.s.r,A=0,R={};T&&!e[C]&&(e[C]=[]);var j=d.skipHidden&&e["!cols"]||[],O=d.skipHidden&&e["!rows"]||[];for(A=p.s.c;A<=p.e.c;++A)if(!(j[A]||{}).hidden)switch(_[A]=encode_col(A),n=T?e[C][A]:e[_[A]+g],i){case 1:l[A]=A-p.s.c;break;case 2:l[A]=_[A];break;case 3:l[A]=d.header[A-p.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),f=u=format_cell(n,null,d),b=R[u]||0,!b)R[u]=1;else{do f=u+"_"+b++;while(R[f]);R[u]=b,R[f]=1}l[A]=f}for(C=p.s.r+o;C<=p.e.r;++C)if(!(O[C]||{}).hidden){var I=make_json_row(e,p,C,_,i,l,T,d);(I.isempty===!1||(i===1?d.blankrows!==!1:d.blankrows))&&(S[E++]=I.row)}return S.length=E,S}var qreg=/"/g;function make_csv_row(e,t,n,i,o,l,u,f){for(var p=!0,d=[],m="",g=encode_row(n),_=t.s.c;_<=t.e.c;++_)if(i[_]){var S=f.dense?(e[n]||[])[_]:e[i[_]+g];if(S==null)m="";else if(S.v!=null){p=!1,m=""+(f.rawNumbers&&S.t=="n"?S.v:format_cell(S,null,f));for(var E=0,b=0;E!==m.length;++E)if((b=m.charCodeAt(E))===o||b===l||b===34||f.forceQuotes){m='"'+m.replace(qreg,'""')+'"';break}m=="ID"&&(m='"ID"')}else S.f!=null&&!S.F?(p=!1,m="="+S.f,m.indexOf(",")>=0&&(m='"'+m.replace(qreg,'""')+'"')):m="";d.push(m)}return f.blankrows===!1&&p?null:d.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:`
343
343
  `,p=f.charCodeAt(0),d=new RegExp((l=="|"?"\\|":l)+"+$"),m="",g=[];i.dense=Array.isArray(e);for(var _=i.skipHidden&&e["!cols"]||[],S=i.skipHidden&&e["!rows"]||[],E=o.s.c;E<=o.e.c;++E)(_[E]||{}).hidden||(g[E]=encode_col(E));for(var b=0,T=o.s.r;T<=o.e.r;++T)(S[T]||{}).hidden||(m=make_csv_row(e,o,T,g,u,p,l,i),m!=null&&(i.strip&&(m=m.replace(d,"")),(m||i.blankrows!==!1)&&n.push((b++?f:"")+m)));return delete i.dense,n.join("")}function sheet_to_txt(e,t){t||(t={}),t.FS=" ",t.RS=`
344
- `;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=[],d=Array.isArray(e);for(f=o.s.c;f<=o.e.c;++f)u[f]=encode_col(f);for(var m=o.s.r;m<=o.e.r;++m)for(l=encode_row(m),f=o.s.c;f<=o.e.c;++f)if(t=u[f]+l,n=d?(e[m]||[])[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 d,m={s:{c:0,r:0},e:{c:f,r:u+t.length-1+o}};if(l["!ref"]){var g=safe_decode_range(l["!ref"]);m.e.c=Math.max(m.e.c,g.e.c),m.e.r=Math.max(m.e.r,g.e.r),u==-1&&(u=g.e.r+1,m.e.r=u+t.length-1+o)}else u==-1&&(u=0,m.e.r=t.length-1+o);var _=i.header||[],S=0;t.forEach(function(b,T){keys$1(b).forEach(function(C){(S=_.indexOf(C))==-1&&(_[S=_.length]=C);var A=b[C],R="z",j="",O=encode_cell({c:f+S,r:u+T+o});d=ws_get_cell_stub(l,O),A&&typeof A=="object"&&!(A instanceof Date)?l[O]=A:(typeof A=="number"?R="n":typeof A=="boolean"?R="b":typeof A=="string"?R="s":A instanceof Date?(R="d",i.cellDates||(R="n",A=datenum(A)),j=i.dateNF||table_fmt[14]):A===null&&i.nullError&&(R="e",A=0),d?(d.t=R,d.v=A,delete d.w,delete d.R,j&&(d.z=j)):l[O]=d={t:R,v:A},j&&(d.z=j))})}),m.e.c=Math.max(m.e.c,f+_.length-1);var E=encode_row(u);if(o)for(S=0;S<_.length;++S)l[encode_col(S+f)+E]={t:"s",v:_[S]};return l["!ref"]=encode_range(m),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 m=l.current.getBoundingClientRect(),g=300,_=100;let S=m.bottom+window.scrollY+8,E=m.left+window.scrollX;const b=window.innerWidth,T=window.innerHeight;E+g>b&&(E=b-g-8),m.bottom+_>T&&(S=m.top+window.scrollY-_-8),o({top:S,left:E}),n(!0)},d=()=>n(!1);return jsxRuntimeExports.jsxs("span",{className:"truncated-text-with-tooltip",ref:l,onMouseEnter:p,onMouseLeave:d,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,d,m,g,_,S,E,b,T,C,A,R,j,O,I,M;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:((d=e[n])==null?void 0:d.tooltip)||"","aria-label":((m=e[n])==null?void 0:m.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":((S=e[n])==null?void 0:S.tooltip)||"This field is required. Click to enter a value.",children:[jsxRuntimeExports.jsx("span",{className:"table-new-row-warning-message",children:((E=e[n])==null?void 0:E.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:N=>{var D,F;return(F=(D=e[n])==null?void 0:D.onselect)==null?void 0:F.call(D,N)},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:N=>{var D;return(D=e[n])==null?void 0:D.onchange(N)},value:((C=e[n])==null?void 0:C.value)||"",showError:!1,disabled:((A=e[n])==null?void 0:A.disabled)??!1}):f==="number-input"?jsxRuntimeExports.jsx(CEInputBox,{type:"number",onChange:N=>{var D;return(D=e[n])==null?void 0:D.onchange(N)},value:((R=e[n])==null?void 0:R.value)||"",showError:!1,disabled:((j=e[n])==null?void 0:j.disabled)??!1}):f==="drop-down-input"?jsxRuntimeExports.jsx(CEDynamicSelectField,{label:"",value:((O=e[n])==null?void 0:O.value)||"",onChange:N=>{var D;(D=e[n])==null||D.onchange(N.target.value)},options:((I=e[n])==null?void 0:I.options)||[],showPlaceholder:!0,placeholderText:""}):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(((M=e[n])==null?void 0:M.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:d="range",defaultValue:m,disabled:g=!1,minDate:_="",defaultFloat:S=!0})=>{const[E,b]=React.useState(""),[T,C]=React.useState(""),[A,R]=React.useState(()=>!!S),[j,O]=React.useState(""),I=_?new Date(_).toISOString().split("T")[0]:void 0,M=()=>R(!0),N=z=>{!z.currentTarget.value&&!E&&!T&&R(!1)},D=(z,W)=>{if(i==null||i({startDate:z||"",endDate:W||""}),z&&!W||!z&&W){O("Both start and end dates must be selected");return}if(z&&W&&new Date(W)<new Date(z)){O("End date must be after or equal to start date");return}O("")},F=z=>{if(!z)return z;const W=z.split("-"),L=W[0].slice(0,4),B=W.slice(1);return B.length?`${L}-${B.join("-")}`:L};React.useEffect(()=>{m&&(m.startDate&&b(F(m.startDate)),m.endDate&&C(F(m.endDate)))},[m]);const q=z=>{const W=F(z.target.value);b(W),D(W,T)},V=z=>{const W=F(z.target.value);C(W),D(E,W)},G=!!(A||E||T),ee=getSizeStyle$1(o),X=({text:z,float:W,showTooltip:L=!0})=>jsxRuntimeExports.jsxs("label",{className:`floating-label-box${W?" float":""}`,children:[jsxRuntimeExports.jsxs("span",{className:"label-text",children:[z,n&&jsxRuntimeExports.jsx("span",{className:"required-star",children:"*"})]}),t&&L&&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:d==="single"?jsxRuntimeExports.jsxs("div",{className:"field-box ",style:ee,children:[jsxRuntimeExports.jsx("input",{type:"date",value:E,name:p,min:I,disabled:g,onChange:z=>{const W=F(z.target.value);b(W),i==null||i({startDate:W,endDate:""})},onFocus:M,onBlur:N}),jsxRuntimeExports.jsx(X,{text:e,float:G,showTooltip:!0})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"field-box ",style:ee,children:[jsxRuntimeExports.jsx("input",{type:"date",value:E,name:p?`${p}-from`:void 0,onChange:q,onFocus:M,onBlur:N,disabled:g}),jsxRuntimeExports.jsx(X,{text:"From",float:!0,showTooltip:!0})]}),jsxRuntimeExports.jsx("span",{className:"range-separator centered",children:"to"}),jsxRuntimeExports.jsxs("div",{className:"field-box ",style:ee,children:[jsxRuntimeExports.jsx("input",{type:"date",value:T,name:p?`${p}-to`:void 0,onChange:V,onFocus:M,onBlur:N,disabled:g}),jsxRuntimeExports.jsx(X,{text:"To",float:!0,showTooltip:!1})]})]})}),j&&d!=="single"&&jsxRuntimeExports.jsx("div",{className:"error-text",children:j})]})},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))},d=[];for(let m=l;m<u;m++)d.push(jsxRuntimeExports.jsx("button",{className:`pagination-page${e===m?" active":""}`,onClick:()=>n(m),disabled:e===m,children:m+1},m));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:"..."}),d,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)},style:{marginLeft:"8px"},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:d,isAddButtonRequired:m,isEditButtonRequired:g,isDeleteButtonRequired:_,isApproveButtonRequired:S,isReassignButtonRequired:E,isCancelButtonRequired:b,isExportAllToExcel:T,handleEditClick:C,handleAddClick:A,handleDeleteClick:R,handleApproveClick:j,handleReassignClick:O,handleCancelClick:I,noOfPagesPerPage:M,clickableColumns:N,conditionalClickableColumns:D,clickableCellPredicate:F,handleCellClick:q,onReload:V,showDownloadIcon:G=!0,downloadOptions:ee,showRefreshIcon:X=!0,showFullViewIcon:z=!0,showColumnVisibilityIcon:W=!0,showSortIcon:L=!0,showFilterIcon:B=!0,defaultSortConfig:U,onDataUpdate:K,isOverrideCSS:H,showPagination:Y=!0,shouldResetSearchOnDataChange:J,pageSizeOptions:te=[10,20,50,100],handleSelectedRows:le,rowsSelected:be,selectionKey:me="id",onPageChange:fe})=>{const[pe,ye]=React.useState({}),[Q,Se]=React.useState([]),[ce,$e]=React.useState([]),[Ie,Pe]=React.useState(!1),[Fe,He]=React.useState(null),[We,ze]=React.useState(new Set),[ke,Ye]=React.useState(null),[Ge,Xe]=React.useState(!1),[Je,Ze]=React.useState(""),[rt,ft]=React.useState(null),[ot,ct]=React.useState("contains"),[mt,it]=React.useState(""),[Ke,pt]=React.useState({}),[st,at]=React.useState(0),[nt,At]=React.useState(M??10),[St,kt]=React.useState(new Set),[xt,yt]=React.useState(""),[wt,_t]=React.useState(!1),[ht,Be]=React.useState(new Set),[lt,bt]=React.useState([]),[Tt,Lt]=React.useState(null),Pt=React.useRef(null),Bt=React.useRef(null),qt=React.useRef(null),jt=React.useRef(null),[Z,ae]=React.useState(new Set),[ne,ie]=React.useState([]),[oe,se]=React.useState(!1),[xe,Te]=React.useState(null),[ge,_e]=React.useState(!1),[Ee,Ce]=React.useState(!0),Oe=React.useRef([]),Ne=()=>_e(!0),Ae=()=>_e(!1),je=ue=>{if(at(ue),typeof fe=="function")try{fe(ue)}catch{}};React.useEffect(()=>{if(typeof fe=="function")try{fe(st)}catch{}},[st]);const De=(ue,he)=>{if(typeof me=="function")try{const de=me(ue);if(de!=null)return de}catch{}else if(typeof me=="string"&&ue&&ue[me]!==void 0)return ue[me];if(he!==void 0)return`__row_${he}`};React.useEffect(()=>{if(typeof le=="function"){const ue=Array.from(We),he=ue.map(de=>{if(typeof de=="string"&&de.startsWith("__row_")){const we=parseInt(de.slice(6),10);return!isNaN(we)&&we>=0&&we<Q.length?Q[we]:void 0}return(ce||Q||[]).find(we=>{const Re=De(we);return Re!==void 0&&(Re===de||String(Re)===String(de))})}).filter(Boolean);try{le.length===1?le({ids:ue,rows:he}):le(he)}catch{try{le(he)}catch{}}}},[We,Q,me]),React.useEffect(()=>{if(!be)return;const ue=Array.from(be),he=ue.every(we=>typeof we=="number"&&we>=0&&we<Q.length),de=new Set(ue.map(we=>{if(he){const Re=Q[we-1];return De(Re,we)??`__row_${we}`}return we}));((we,Re)=>!(we.size!==Re.size||!Array.from(we).every(Me=>Re.has(Me))))(de,We)||ze(de)},[be,Q,me]),React.useEffect(()=>{if(t&&Array.isArray(t)){const ue=stripReactElements(Oe.current),he=stripReactElements(t),de=JSON.stringify(ue)!==JSON.stringify(he);if(t&&Array.isArray(t)&&de){let ve=[...t];if(U){const{column:we,direction:Re}=U;ve.sort((Me,Le)=>{const qe=Me[we],Ue=Le[we],Ve=new Date(qe),et=new Date(Ue),dt=!isNaN(Ve.getTime()),Nt=!isNaN(et.getTime());if(dt&&Nt)return Re==="asc"?Ve.getTime()-et.getTime():et.getTime()-Ve.getTime();const Ft=String(qe||"").toLowerCase(),$t=String(Ue||"").toLowerCase();return Ft.localeCompare($t)}),Re==="desc"&&ve.reverse(),Te(U)}if(Se(ve),$e(ve),Ce(!1),J?(yt(""),pt({})):Et(),p){const we={},Re=Array.isArray(p)?p:[p];ve.forEach((Me,Le)=>{const qe=Me.id??`__row_${Le}`;for(const Ue of Re)if(Me[Ue]===!0){we[qe]={columnId:Ue,rowData:Me};break}}),Qe(we)}Oe.current=t}}else Ce(!0)},[t,U,p]),React.useEffect(()=>{if(Q.length>0){const ue=(n??[]).map(ve=>({id:ve.id,label:ve.label??ve.id,tooltip:ve.tooltip,shouldDisplay:ve.shouldDisplay??!0,shouldVisible:ve.shouldVisible??!0,width:ve.width,elementType:ve.elementType,required:ve.required??!1})),he=Object.keys(Q[0]||{}).map(ve=>({id:ve,label:ve.charAt(0).toUpperCase()+ve.slice(1),shouldDisplay:!0,shouldVisible:!0})),de=ue.length>0?ue:he;if(ie(de),!oe){const ve=de.filter(Re=>Re.shouldDisplay!==!1).map(Re=>Re.id),we=de.filter(Re=>Re.shouldVisible!==!1).map(Re=>Re.id);Be(new Set(ve)),bt(we),se(!0)}}},[Q,n]);const[tt,Qe]=React.useState({}),ut=({rowIndex:ue,columnId:he,rowData:de})=>{const ve=Array.isArray(p)?p:[p],we={...de,...Object.fromEntries(ve.map(Le=>[Le,Le===he]))},Re=de.id??`__row_${ue}`;Qe(Le=>({...Le,[Re]:{columnId:he,rowData:we}}));const Me=Q.map((Le,qe)=>(Le.id??`__row_${qe}`)===Re?{...Le,...Object.fromEntries(ve.map(Ve=>[Ve,Ve===he]))}:Le);Se(Me),$e(Me),K&&K({fullData:Me,updatedRow:we})},Ct=ue=>{var ve;const he=Q.findIndex(we=>we===ue),de=ue.id??`__row_${he}`;return((ve=tt[de])==null?void 0:ve.columnId)||""};React.useEffect(()=>{const ue=Math.ceil(Q.length/nt);st>0&&st>=ue&&at(0)},[Q.length,nt]);const vt=React.useMemo(()=>{const ue=st*nt,he=ue+nt;return Q.slice(ue,he)},[Q,st,nt]),Rt=()=>{yt("");const ue=Ot(ce,Ke,"");Se(ue)},Et=()=>{const ue=Ot(ce,Ke,xt);Se(ue),at(0)},It=ue=>{const he=new Set(ht);he.has(ue)?he.size>1&&he.delete(ue):he.add(ue),Be(he)},gt=(ue,he=null)=>{const de=he?`${ue}-${he}`:`${ue}`,ve=new Set(St);ve.has(de)?ve.delete(de):(Array.from(ve).forEach(we=>{we.startsWith(`${ue}`)&&ve.delete(we)}),ve.add(de)),kt(ve)},Gt=ue=>{Ye(ke===ue?null:ue)};React.useEffect(()=>{const ue=he=>{var Me,Le,qe,Ue;if(!ke)return;const de=he.target,ve=((Me=Bt.current)==null?void 0:Me.contains(de))??!1,we=((Le=qt.current)==null?void 0:Le.contains(de))??!1,Re=((Ue=(qe=he.target)==null?void 0:qe.closest)==null?void 0:Ue.call(qe,".dropdown-trigger"))!=null;!ve&&!we&&!Re&&Ye(null)};return document.addEventListener("click",ue),()=>{document.removeEventListener("click",ue)}},[ke]),React.useMemo(()=>new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}),[]);const Zt=(ue,he)=>{if(ue==null)return 1;if(he==null)return-1;const de=new Date(ue),ve=new Date(he);return!isNaN(de.getTime())&&!isNaN(ve.getTime())?de.getTime()-ve.getTime():!isNaN(Number(ue))&&!isNaN(Number(he))?Number(ue)-Number(he):String(ue).localeCompare(String(he),void 0,{numeric:!0,sensitivity:"base"})},Wt=(ue,he,de)=>{const ve=getColumnValue(ue==null?void 0:ue[de]),we=getColumnValue(he==null?void 0:he[de]);return Zt(ve,we)},Jt=(ue,he)=>{for(let de=1;de<ue.length;de++)if(Wt(ue[de-1],ue[de],he)>0)return!1;return!0},Qt=(ue,he)=>{for(let de=1;de<ue.length;de++)if(Wt(ue[de-1],ue[de],he)<0)return!1;return!0},Ot=(ue,he=Ke,de=xt)=>{let ve=[...ue];if(de&&de.trim()){const we=de.toLowerCase();ve=ve.filter(Re=>Object.entries(Re).some(([Me,Le])=>ht.has(Me)?String(Le??"").toLowerCase().includes(we):!1))}return Object.entries(he||{}).forEach(([we,Re])=>{const{value:Me,operator:Le}=Re,qe=(Me??"").toLowerCase();ve=ve.filter(Ue=>{const Ve=Ue[we],et=String(getColumnValue(Ve)??"").toLowerCase();switch((Le||"").toString()){case"contains":return et.includes(qe);case"equals":return et===qe;case"startsWith":return et.startsWith(qe);case"endsWith":return et.endsWith(qe);case"does not contain":return!et.includes(qe);case"does not equal":return et!==qe;case"is any of":return Me.split(",").map(dt=>dt.trim().toLowerCase()).includes(et);case"Date Range":case"dateRange":{if(!Me)return!0;const dt=Me.split(" - ").map(cr=>cr.trim());if(dt.length!==2)return!1;const Nt=new Date(dt[0]),Ft=new Date(dt[1]);if(isNaN(Nt.getTime())||isNaN(Ft.getTime())||(Nt.setHours(0,0,0,0),Ft.setHours(23,59,59,999),!Ve))return!1;const $t=new Date(Ve);return isNaN($t.getTime())?!1:($t.setHours(0,0,0,0),$t>=Nt&&$t<=Ft)}default:return!0}})}),ve},er=ue=>{if(!ce||ce.length===0)return;const he=Object.keys(Ke).length>0,de=xt.trim().length>0,ve=he||de?Q:ce;let we;(xe==null?void 0:xe.column)===ue?we=xe.direction==="asc"?"desc":"asc":Jt(ve,ue)?we="desc":(Qt(ve,ue),we="asc"),Te({column:ue,direction:we});const Re=[...ce].sort((Le,qe)=>{const Ue=Wt(Le,qe,ue);return we==="asc"?Ue:-Ue});$e(Re);const Me=Ot(Re);Se(Me),at(0)},Kt=()=>{if(!Je){Xe(!1),it(""),Ze(""),at(0);return}if(ot==="Date Range")if(rt&&rt.startDate&&rt.endDate)Mt(Je,void 0,"Date Range");else{Xe(!0);return}else mt&&mt.trim()!==""&&Mt(Je,mt,ot);Xe(!1),it(""),Ze(""),ft(null),at(0)},Mt=(ue,he,de)=>{if(de==="Date Range"&&rt&&ue){const{startDate:ve,endDate:we}=rt;if(!ve||!we){console.warn("Invalid date range:",ve,we);return}const Re=new Date(ve);Re.setHours(0,0,0,0);const Me=new Date(we);Me.setHours(23,59,59,999);const Le=ce.filter(qe=>{const Ue=qe[ue];if(!Ue)return!1;const Ve=new Date(Ue);return isNaN(Ve.getTime())?!1:(Ve.setHours(0,0,0,0),Ve>=Re&&Ve<=Me)});Se(Le),at(0),pt({...Ke,[ue]:{value:`${ve} - ${we}`,operator:"Date Range"}}),Xe(!1),Ye(null),ft(null);return}if(ue){const ve={...Ke};if(he===""&&(de==="contains"||de==="equals")){Ze(ue),ct(de||ot),it(""),Xe(!0);return}else he&&he.trim()!==""?ve[ue]={value:he,operator:de||ot}:delete ve[ue];pt(ve);let we=[...ce];Object.entries(ve).forEach(([Re,Me])=>{const{value:Le,operator:qe}=Me;we=we.filter(Ue=>{const Ve=String(getColumnValue(Ue[Re])||"").toLowerCase(),et=Le.toLowerCase();switch(qe){case"contains":return Ve.includes(et);case"equals":return Ve===et;case"startsWith":return Ve.startsWith(et);case"endsWith":return Ve.endsWith(et);case"does not contain":return!Ve.includes(et);case"does not equal":return Ve!==et;case"is any of":return Le.split(",").map(dt=>dt.trim().toLowerCase()).includes(Ve);default:return!0}})}),Se(we),at(0),Xe(!1)}},tr=ue=>{ue.key==="Enter"&&Mt()};useEscapeKey(()=>{Ye(null),Xe(!1)});const Ut=(ue,he="")=>{const de=ve=>{const we=new Set(Z);we.has(ve)?we.delete(ve):we.add(ve),ae(we)};if(Array.isArray(ue)){const ve=Array.from(new Set(ue.reduce((we,Re)=>typeof Re=="object"&&Re!==null?[...we,...Object.keys(Re)]:we,[])));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:ve.map(we=>jsxRuntimeExports.jsx("th",{children:we.charAt(0).toUpperCase()+we.slice(1)},we))})}),jsxRuntimeExports.jsx("tbody",{children:ue.map((we,Re)=>jsxRuntimeExports.jsx("tr",{children:ve.map(Me=>jsxRuntimeExports.jsx("td",{children:typeof we[Me]=="object"&&we[Me]!==null?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>de(`${he}-${Re}-${Me}`),children:Z.has(`${he}-${Re}-${Me}`)?"▼":"▶"}),Z.has(`${he}-${Re}-${Me}`)&&Ut(we[Me],`${he}-${Re}-${Me}`)]}):String(we[Me]||"")},`${he}-${Re}-${Me}`))},`${he}-${Re}`))})]})})})}else if(typeof ue=="object"&&ue!==null)return jsxRuntimeExports.jsx("div",{className:"nested-object",children:jsxRuntimeExports.jsxs("table",{className:"custom-table nested",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"table-header-cell",children:"Property"}),jsxRuntimeExports.jsx("th",{className:"table-header-cell",children:"Value"})]})}),jsxRuntimeExports.jsx("tbody",{children:Object.entries(ue).map(([ve,we])=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"table-cell",children:jsxRuntimeExports.jsx("strong",{children:ve})}),jsxRuntimeExports.jsx("td",{className:"table-cell",children:typeof we=="object"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>de(`${he}-${ve}`),children:Z.has(`${he}-${ve}`)?"▼":"▶"}),Z.has(`${he}-${ve}`)&&Ut(we,`${he}-${ve}`)]}):String(we)})]},`${he}-${ve}`))})]})});return jsxRuntimeExports.jsx("span",{children:String(ue)})},Xt=ue=>{var he;if(ue){const de=(he=ue.parentElement)==null?void 0:he.querySelector(".dropdown-trigger");if(!de)return;const ve=de.getBoundingClientRect(),we=window.innerHeight,Re=window.innerWidth,Me=ue.offsetHeight,Le=ue.offsetWidth,qe=ve.bottom+Me>we,Ue=ve.left+Le>Re,Ve=ve.left-Le<0;let et,dt;qe?(et=ve.top-Me,ue.classList.add("adjust-top")):(et=ve.bottom,ue.classList.remove("adjust-top")),Ue?(dt=ve.right-Le,ue.classList.add("adjust-left"),ue.classList.remove("adjust-right")):Ve?(dt=ve.left,ue.classList.add("adjust-right"),ue.classList.remove("adjust-left")):(dt=ve.left,ue.classList.remove("adjust-left"),ue.classList.remove("adjust-right")),ue.style.top=`${et}px`,ue.style.left=`${dt}px`,ue.classList.add("dropdown-fixed-position")}};React.useEffect(()=>{const ue=he=>{Ge&&Pt.current&&!Pt.current.contains(he.target)&&Xe(!1)};return document.addEventListener("mousedown",ue),()=>{document.removeEventListener("mousedown",ue)}},[Ge]),React.useEffect(()=>()=>{},[ke]),React.useEffect(()=>{const ue=he=>{wt&&jt.current&&!jt.current.contains(he.target)&&_t(!1)};return document.addEventListener("mousedown",ue),()=>{document.removeEventListener("mousedown",ue)}},[wt]);const rr=(ue,he)=>{ue.preventDefault();const de=ue.pageX,ve=pe[he]||150,we=Me=>{const Le=Math.max(100,ve+(Me.pageX-de));ye(qe=>({...qe,[he]:Le}))},Re=()=>{document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",Re)};document.addEventListener("mousemove",we),document.addEventListener("mouseup",Re)},Ht=(ue,he,de)=>{var we;const ve=String(he??"");if(typeof F=="function")try{if(F(de??{},ue))return!0}catch{}return N!=null&&N.includes(ue)?D!=null&&D[ue]?D[ue].includes(ve):!0:!!((we=D==null?void 0:D._global_)!=null&&we.includes(ve))},nr=(ue,he)=>{Ht(he,ue[he],ue)&&q&&q(ue,he)},Vt=vt.some(ue=>Array.from(ht).some(he=>Array.isArray(ue[he])&&ue[he].length>0&&ue[he].some(de=>typeof de=="object"&&de!==null))),ir=ue=>{const he=/[\\/:*?"<>|]/g;return ue.replace(he,"").trim()},ar=ue=>{try{const he=window.prompt("Enter file name",ue);if(!he)return ue;const de=ir(he);return de.length===0?ue:de.endsWith(".xlsx")?de:`${de}.xlsx`}catch{return ue}},zt=(ue=!1)=>{const he=ne.filter(qe=>ht.has(qe.id)),de=ue||!(Q&&Q.length>0)?ce:Q,ve=de.map(qe=>he.reduce((Ue,Ve)=>(Ue[Ve.label||Ve.id]=getColumnValue(qe[Ve.id]),Ue),{})),we=utils.json_to_sheet(ve),Re=utils.book_new();utils.book_append_sheet(Re,we,"Data");const Le=ar(ue||de===ce?"all-data-export.xlsx":"filtered-search-export.xlsx");writeFileSync(Re,Le)},or=()=>jsxRuntimeExports.jsxs("div",{className:H?"esign-table-container":"table-container",children:[jsxRuntimeExports.jsx("div",{className:"table-scroll-container",children:ht.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:[Vt&&jsxRuntimeExports.jsx("th",{className:"expand-column"}),i&&jsxRuntimeExports.jsx("th",{className:"checkbox-column",children:o?jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:We.size>0,onChange:()=>{ze(new Set)}}):jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:vt.length>0&&vt.every((ue,he)=>{const de=De(ue,st*nt+he);return de!==void 0&&We.has(de)}),onChange:ue=>{const he=new Set(We),de=ce&&ce.length>0?ce:Q||[],ve=vt.map(Re=>{const Me=De(Re);if(Me!==void 0)return Me;const Le=de.indexOf(Re);return Le>=0?`__row_${Le}`:void 0}).filter(Re=>Re!==void 0),we=new Set(ve);if(ue){if(ze(new Set(we)),typeof le=="function"){const Re=Array.from(we),Me=Re.map(Le=>de.find(qe=>{const Ue=De(qe);return Ue!==void 0&&(Ue===Le||String(Ue)===String(Le))})).filter(Boolean);try{le.length===1?le({ids:Re,rows:Me,toggledId:void 0,toggledRow:void 0,toggledChecked:!0}):le(Me)}catch{try{le(Me)}catch{}}}}else{const Re=new Set(he);if(ve.forEach(Me=>Re.delete(Me)),ze(Re),typeof le=="function"){const Me=ve,Le=Me.map(qe=>de.find(Ue=>{const Ve=De(Ue);return Ve!==void 0&&(Ve===qe||String(Ve)===String(qe))})).filter(Boolean);try{le.length===1?le({ids:Array.from(Re),rows:Array.from(Re).map(qe=>de.find(Ue=>{const Ve=De(Ue);return Ve!==void 0&&(Ve===qe||String(Ve)===String(qe))})).filter(Boolean),unselectedIds:Me,unselectedRows:Le,toggledId:void 0,toggledRow:void 0,toggledChecked:!1}):le(Array.from(Re).map(qe=>de.find(Ue=>{const Ve=De(Ue);return Ve!==void 0&&(Ve===qe||String(Ve)===String(qe))})).filter(Boolean))}catch{try{le([])}catch{}}}}}})}),lt.filter(ue=>ne.find(de=>de.id===ue)&&ht.has(ue)).map(ue=>{const he=ne.find(de=>de.id===ue);return he?jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:pe[he.id]?`${pe[he.id]}px`:he.width||"150px",minWidth:"80px",maxWidth:"600px"},children:jsxRuntimeExports.jsxs("div",{className:"column-header",children:[jsxRuntimeExports.jsxs("span",{className:"column-label-with-info",children:[he.label,he.tooltip&&jsxRuntimeExports.jsx("img",{src:InfoIcon,alt:"info",title:he.tooltip,width:14,height:14,className:"info-icon"})]}),jsxRuntimeExports.jsxs("div",{className:"column-actions",children:[L&&jsxRuntimeExports.jsx("img",{src:SortIcon,alt:"Sort",title:"Sort",width:14,height:14,onClick:()=>er(he.id),style:{cursor:"pointer",transition:"transform 0.2s ease-in-out",transform:(xe==null?void 0:xe.column)===he.id?xe.direction==="asc"?"rotate(0deg)":"rotate(180deg)":"none",filter:(xe==null?void 0:xe.column)===he.id?"brightness(0.6)":"none"}}),B&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:he.id===ke?Bt:null,children:[jsxRuntimeExports.jsx("span",{className:`dropdown-trigger ${Ke[he.id]?"filter-active":""}`,onClick:de=>{de.stopPropagation(),Gt(he.id)},title:Ke[he.id]?`Filter: ${Ke[he.id].operator} "${Ke[he.id].value}"`:"Filter options",children:"⋮"}),ke===he.id&&jsxRuntimeExports.jsxs("div",{className:"dropdown-menu",ref:de=>{de&&setTimeout(()=>Xt(de),0)},children:[jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Ze(he.id),Xe(!0),Ye(null)},children:"Filter"}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Mt(he.id,"","contains"),Ye(null)},children:"Contains..."}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Mt(he.id,"","equals"),Ye(null)},children:"Equals..."}),Ke[he.id]&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{const de={...Ke};delete de[he.id],pt(de),it(""),Ze("");const ve=Ot(ce,de,xt);Se(ve),at(0),Ye(null)},children:"Clear Filter"}),Object.keys(Ke).length>0&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{pt({}),it(""),Ze(""),ft(null),yt(""),Se(ce),at(0),Ye(null)},children:"Clear All Filters"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"column-resizer",onMouseDown:de=>rr(de,he.id)})]})},he.id):null}),(g||E||b||S||_||m)&&jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:"150px",textAlign:"center"},children:"Action"})]}),Ie&&jsxRuntimeExports.jsxs("tr",{className:"filter-row",children:[Vt&&jsxRuntimeExports.jsx("td",{}),i&&jsxRuntimeExports.jsx("td",{}),lt.filter(ue=>ne.find(de=>de.id===ue)&&ht.has(ue)).map(ue=>{var de;const he=ne.find(ve=>ve.id===ue);return he?jsxRuntimeExports.jsxs("td",{style:{position:"relative"},children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:`Search ${he.label}`,value:((de=Ke[he.id])==null?void 0:de.value)||"",onChange:ve=>{const we=ve.target.value;it(we),Ze(he.id);const Re={...Ke};we===""?delete Re[he.id]:Re[he.id]={value:we,operator:"contains"},pt(Re);const Me=Ot(ce,Re,xt);Se(Me),at(0)},className:"filter-input-with-clear",style:{paddingRight:"28px"}}),Ke[he.id]&&jsxRuntimeExports.jsx("span",{className:"filter-clear-icon-inside",onClick:()=>{const ve={...Ke};delete ve[he.id],pt(ve),it(""),Ze("");const we=Ot(ce,ve,xt);Se(we),at(0)},title:"Clear",children:"×"})]},`filter-${he.id}`):null}),(g||E||b||S||_||m)&&jsxRuntimeExports.jsx("td",{})]})]}),jsxRuntimeExports.jsx("tbody",{children:vt.length===0?jsxRuntimeExports.jsx("tr",{className:"no-records-row",children:jsxRuntimeExports.jsx("td",{colSpan:(Vt?1:0)+(i?1:0)+Array.from(ht).length+(g||E||b||S||_||m?1:0),className:"no-records-cell",children:xt.trim()||Object.keys(Ke).length>0?"No records found for the search criteria":"No Data found"})}):vt.map((ue,he)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("tr",{onMouseEnter:()=>He(st*nt+he),onMouseLeave:()=>He(null),className:(ue.isNewRow?"table-new-row":he%2===0?`table-row-even ${ue.hasError?"row-error":ue.isModified?"row-invalid":""}`:`table-row-odd ${ue.hasError?"row-error":ue.isModified?"row-invalid":""}`)+(Fe===st*nt+he?" row-hovered":""),title:ue.rowMessage||"",children:[Vt&&jsxRuntimeExports.jsx("td",{className:"expand-column",children:Array.from(ht).some(de=>Array.isArray(ue[de])&&ue[de].length>0&&ue[de].some(ve=>typeof ve=="object"&&ve!==null))&&jsxRuntimeExports.jsx("button",{className:"expand-button",onClick:()=>gt(he),children:Array.from(St).some(de=>de.startsWith(`${he}`))?"▼":"▶"})}),i&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:(()=>{const de=De(ue,st*nt+he);return de!==void 0&&We.has(de)})(),onChange:de=>{const ve=De(ue,st*nt+he);if(ve===void 0)return;let we;o?(we=de?new Set([ve]):new Set,ze(we)):(we=new Set(We),de?we.add(ve):we.delete(ve),ze(we));const Re=ce&&ce.length>0?ce:Q||[],Me=Array.from(we),Le=Me.map(Ue=>{if(typeof Ue=="string"&&Ue.startsWith("__row_")){const Ve=parseInt(Ue.slice(6),10);return!isNaN(Ve)&&Ve>=0&&Ve<Re.length?Re[Ve]:void 0}return Re.find(Ve=>{const et=De(Ve);return et!==void 0&&(et===Ue||String(et)===String(Ue))})}).filter(Boolean),qe={ids:Me,rows:Le,toggledId:ve,toggledRow:ue,toggledChecked:!!de};if(typeof le=="function")try{le.length===1?le(qe):le(Le)}catch{try{le(Le)}catch{}}}})}),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(he))==="selected",onChange:()=>u==null?void 0:u({rowIndex:he,columnId:"selected",rowData:ue})})})}),lt.filter(de=>ne.find(we=>we.id===de)&&ht.has(de)).map(de=>{const ve=ne.find(we=>we.id===de);return ve?jsxRuntimeExports.jsx("td",{style:{width:pe[ve.id]?`${pe[ve.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},className:`table-cell ${Ht(ve.id,ue[ve.id],ue)?"ce-clickable-cell":""}`,onClick:()=>{Ht(ve.id,ue[ve.id],ue)?nr(ue,ve.id):Array.isArray(ue[ve.id])&&ue[ve.id].length>0&&gt(he,ve.id)},children:ue.isNewRow?jsxRuntimeExports.jsx(AddNewRowCell,{row:ue,column:ve,colId:de}):React.isValidElement(ue[ve.id])?ue[ve.id]:(Array.isArray(p)?p.includes(ve.id):p===ve.id)?jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:ve.id,checked:Ct(ue)===ve.id,onChange:()=>ut({rowIndex:he,columnId:ve.id,rowData:ue})})}):Array.isArray(ue[ve.id])?`${ue[ve.id].length}`:typeof ue[ve.id]=="object"&&ue[ve.id]!==null?Object.entries(ue[ve.id]).map(([we,Re])=>`${we}: ${Re}`).join(", "):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(ue[ve.id]??"")})},ve.id):null}),(g||E||b||S||_||m)&&jsxRuntimeExports.jsx("td",{className:"table-cell",style:{textAlign:"center"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px",flexWrap:"wrap"},children:[g&&jsxRuntimeExports.jsx("img",{src:Edit,alt:"Edit",title:"Edit",width:20,height:20,style:{cursor:"pointer"},onClick:()=>C==null?void 0:C(ue,he)}),E&&jsxRuntimeExports.jsx("img",{src:Reassign,alt:"Reassign",width:20,height:20,style:{cursor:"pointer"},onClick:O}),b&&jsxRuntimeExports.jsx("img",{src:Cancel,alt:"Cancel",width:20,height:20,style:{cursor:"pointer"},onClick:()=>I==null?void 0:I(ue,he)}),S&&jsxRuntimeExports.jsx("img",{src:Approve,alt:"Approve",width:20,height:20,style:{cursor:"pointer"},onClick:()=>j==null?void 0:j(ue,he)}),_&&jsxRuntimeExports.jsx("img",{src:Delete,alt:"Delete",width:20,height:20,style:{cursor:"pointer"},onClick:()=>R==null?void 0:R(ue,he)}),m&&jsxRuntimeExports.jsx("img",{src:Add,alt:"Add",width:20,height:20,style:{cursor:"pointer"},onClick:A})]})})]}),Array.from(St).map(de=>{const[ve,we]=de.split("-");if(Number(ve)===he){const Re=we?{[we]:ue[we]}:Object.keys(ue).filter(Me=>Array.isArray(ue[Me])||typeof ue[Me]=="object").reduce((Me,Le)=>({...Me,[Le]:ue[Le]}),{});return jsxRuntimeExports.jsx("tr",{className:"expanded-row",children:jsxRuntimeExports.jsx("td",{colSpan:ht.size+2,className:"expanded-cell",children:Object.entries(Re).map(([Me,Le],qe)=>jsxRuntimeExports.jsxs("div",{className:`expanded-section ${qe%2===0?"expanded-section-even":"expanded-section-odd"}`,style:{backgroundColor:qe%2===0?"#e8f5e9":"#e3f2fd",padding:"10px",marginBottom:"10px",borderRadius:"5px"},children:[jsxRuntimeExports.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:Me.charAt(0).toUpperCase()+Me.slice(1)}),Ut(Le)]},Me))})},`expanded-${de}`)}return null})]},he))})]})}),Y&&jsxRuntimeExports.jsxs("div",{className:"pagination-container",children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"40px"},children:[jsxRuntimeExports.jsx(EntriesInfo,{dataLength:Q.length,currentPage:st,rowsPerPage:nt}),jsxRuntimeExports.jsx(RowsPerPageSelector,{rowsPerPage:nt,setRowsPerPage:At,setCurrentPage:je,pageSizeOptions:te})]}),jsxRuntimeExports.jsx(PaginationControls,{currentPage:st,totalPages:Math.ceil(Q.length/nt),setCurrentPage:je})]}),Ge&&jsxRuntimeExports.jsx("div",{className:"filter-modal",children:jsxRuntimeExports.jsxs("div",{className:"filter-modal-content",ref:Pt,onKeyDown:tr,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:()=>Xe(!1),children:"×"})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-body",children:[jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Column:"}),jsxRuntimeExports.jsx("select",{value:Je,onChange:ue=>Ze(ue.target.value),className:"filter-select","aria-label":"Filter column",title:"Select column to filter",children:ne.map(ue=>jsxRuntimeExports.jsx("option",{value:ue.id,children:ue.label},ue.id))})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Operator:"}),jsxRuntimeExports.jsxs("select",{value:ot,onChange:ue=>ct(ue.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"})]}),ot==="Date Range"&&jsxRuntimeExports.jsx("div",{style:{marginTop:"10px"},children:jsxRuntimeExports.jsx(CEDateRangePicker,{mode:"range",onChange:ue=>{ft({startDate:ue.startDate,endDate:ue.endDate})}})})]}),ot!=="Date Range"&&jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Value:"}),jsxRuntimeExports.jsx("input",{type:"text",value:mt,onChange:ue=>it(ue.target.value),placeholder:"Enter filter value",title:"Filter value",className:"filter-input",autoFocus:!0,onKeyDown:ue=>{ue.key==="Enter"&&Kt(),ue.key==="Escape"&&Xe(!1)}})]}),Object.keys(Ke).length>0&&jsxRuntimeExports.jsxs("div",{className:"active-filters-summary",children:[jsxRuntimeExports.jsx("div",{className:"active-filters-header",children:"Active Filters:"}),Object.entries(Ke).map(([ue,he])=>{const de=ne.find(ve=>ve.id===ue);return jsxRuntimeExports.jsxs("div",{className:"active-filter-item",children:[jsxRuntimeExports.jsxs("span",{children:[(de==null?void 0:de.label)||ue,": "]}),jsxRuntimeExports.jsx("span",{className:"filter-operator",children:he.operator}),jsxRuntimeExports.jsxs("span",{className:"filter-value",children:['"',he.value,'"']})]},ue)})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-footer",children:[jsxRuntimeExports.jsx(CEButton,{onClick:()=>{pt({}),Se(ce),at(0),Xe(!1)},className:"clear-filters-button",variant:"outlined",children:"Clear All"}),jsxRuntimeExports.jsx(CEButton,{onClick:Kt,className:"apply-filter-button",variant:"primary",children:"Apply Filter"})]})]})})]}),sr=()=>{V?(Ce(!0),Promise.resolve(V()).finally(()=>{pt({});try{const ue=ne.filter(de=>de.shouldDisplay!==!1).map(de=>de.id),he=ne.filter(de=>de.shouldVisible!==!1).map(de=>de.id);Be(new Set(ue)),bt(he),_t(!1)}catch{}Ce(!1)})):(Ce(!0),setTimeout(()=>{Se(t),$e(t),at(0),yt(""),it(""),Ze(""),pt({}),Te(null);try{const ue=ne.filter(de=>de.shouldDisplay!==!1).map(de=>de.id),he=ne.filter(de=>de.shouldVisible!==!1).map(de=>de.id);Be(new Set(ue)),bt(he),_t(!1)}catch{}Ce(!1)},300))},lr=ne.filter(ue=>ue.shouldVisible!==!1).every(ue=>ht.has(ue.id));return jsxRuntimeExports.jsxs("div",{className:`datatable-wrapper${ge?" 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:[d&&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 ue=!Ie;Pe(ue),ue||(pt({}),Se(ce),at(0),yt(""))}}),xt&&jsxRuntimeExports.jsx("button",{className:"search-cancel-button",onClick:()=>{yt(""),Rt()},children:"×"})]}),W&&jsxRuntimeExports.jsx("img",{src:ShowOrHideColumn,alt:"Columns",title:"Show/Hide Columns",width:20,height:20,style:{cursor:"pointer",fill:"#808080"},onClick:()=>_t(!0)}),Object.keys(Ke).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:()=>{pt({}),Se(ce),at(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:()=>zt(!0)}),X&&jsxRuntimeExports.jsx("img",{src:ReloadIcon,alt:"Reload",title:"Reload Data",width:20,height:20,className:"ce-reload-icon",style:{cursor:"pointer",fill:"#808080"},onClick:sr}),G&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:qt,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:ue=>{ue.stopPropagation(),ee&&ee.length>0?Gt("download"):zt()}}),(()=>{const ue=ee??[],he=ue.find(we=>we.usedefault===!0),de=ue.filter(we=>!we.usedefault);let ve=[];return ue.length>0?he?ve=[{label:he.label,onClick:()=>{he.forceAll?zt(!0):zt()}},...de]:ve=[...de]:ve=[],ke==="download"&&ve.length>0&&jsxRuntimeExports.jsx("div",{className:"dropdown-menu",ref:we=>{we&&setTimeout(()=>Xt(we),0)},children:ve.map((we,Re)=>jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:Me=>{Me.stopPropagation();try{we.onClick()}finally{Ye(null)}},children:we.label},Re))})})()]}),z&&jsxRuntimeExports.jsx("button",{className:"fullscreen-button",onClick:ge?Ae:Ne,title:ge?"Exit Full Screen":"Full Screen",children:ge?"⤫":"⤢"})]})]}),wt&&jsxRuntimeExports.jsx("div",{className:"column-modal",children:jsxRuntimeExports.jsxs("div",{className:"column-modal-content",ref:jt,children:[jsxRuntimeExports.jsx("div",{className:"column-modal-header",children:jsxRuntimeExports.jsx("button",{className:"modal-close-button",onClick:()=>_t(!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:lr,onChange:ue=>{Be(ue?new Set(ne.filter(he=>he.shouldVisible!==!1).map(he=>he.id)):new Set)}})})}),jsxRuntimeExports.jsx("div",{className:"column-list-container",children:lt.filter(ue=>ne.find(he=>he.id===ue&&he.shouldVisible!==!1)).map(ue=>{const he=ne.find(de=>de.id===ue);return he?jsxRuntimeExports.jsxs("div",{className:`column-item ${Tt===he.id?"dragging":""}`,draggable:!0,onDragStart:de=>{Lt(he.id),de.dataTransfer.effectAllowed="move",de.dataTransfer.setData("text/plain",he.id)},onDragEnd:()=>Lt(null),onDragOver:de=>{de.preventDefault(),de.dataTransfer.dropEffect="move"},onDragEnter:de=>{de.preventDefault(),de.currentTarget.classList.add("drag-over")},onDragLeave:de=>{de.currentTarget.classList.remove("drag-over")},onDrop:de=>{if(de.preventDefault(),de.currentTarget.classList.remove("drag-over"),Tt&&Tt!==he.id){const ve=[...lt],we=ve.indexOf(Tt),Re=ve.indexOf(he.id);we!==-1&&Re!==-1&&(ve.splice(we,1),ve.splice(Re,0,Tt),bt(ve))}},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:he.label??he.id,checked:ht.has(he.id),onChange:()=>It(he.id)})]},he.id):null})})]})}),Ee?jsxRuntimeExports.jsx(CESkeletonTable,{columns:ne.length||5,rows:nt||10}):or()]})},DateInputPart=({value:e,onChange:t,max:n,min:i,length:o,placeholder:l,className:u,onClick:f,id:p,name:d})=>{const m=React.useRef(null),g=E=>{const b=E.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 E;(E=m.current)==null||E.select()},S=()=>{e.length===1&&t(e.padStart(2,"0"))};return jsxRuntimeExports.jsx("input",{ref:m,type:"text",value:e,onChange:g,onFocus:_,onBlur:S,id:p,name:d,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,required:u=!1})=>{const[f,p]=React.useState(!1),[d,m]=React.useState(null),[g,_]=React.useState(new Date),[S,E]=React.useState(!1),[b,T]=React.useState({start:2020,end:2031}),[C,A]=React.useState("left"),[R,j]=React.useState(0),O=React.useRef(null),[I,M]=React.useState(i),[N,D]=React.useState(""),[F,q]=React.useState(""),[V,G]=React.useState(""),[ee,X]=React.useState(!0),[z,W]=React.useState({left:0,top:0}),[L,B]=React.useState("bottom"),U=()=>{p(!1),!N&&!F&&!V&&M(!1)};useEscapeKey(U),React.useEffect(()=>{if(n){const[ye,Q,Se]=n.split("/"),ce=new Date(`${Se}-${ye}-${Q}`);if(!isNaN(ce.getTime())){m(ce),_(ce),D(ye),q(Q),G(Se),X(!0);return}}m(null),D(""),q(""),G(""),X(!0),_(new Date)},[n]);const K=()=>{const ye=O.current;if(!ye)return;const Q=ye.getBoundingClientRect(),Se=window.scrollY||window.pageYOffset,$e=(window.innerHeight||document.documentElement.clientHeight)-Q.bottom,Ie=Q.top;$e<CALENDAR_HEIGHT_PX&&Ie>=CALENDAR_HEIGHT_PX?(B("top"),W({left:Q.left+window.scrollX,top:Q.top+Se-CALENDAR_HEIGHT_PX-GAP_PX})):(B("bottom"),W({left:Q.left+window.scrollX,top:Q.bottom+Se+GAP_PX}))},H=()=>{p(ye=>{const Q=!ye;if(Q){const Se=d||new Date;_(Se),N||D(String(Se.getMonth()+1).padStart(2,"0")),F||q(String(Se.getDate()).padStart(2,"0")),V||G(String(Se.getFullYear())),setTimeout(K,0)}return Q})};React.useEffect(()=>{if(!f)return;const ye=()=>K(),Q=()=>K();return window.addEventListener("scroll",ye,!0),window.addEventListener("resize",Q),()=>{window.removeEventListener("scroll",ye,!0),window.removeEventListener("resize",Q)}},[f]),React.useEffect(()=>{const ye=Q=>{const Se=Q.target;if(!O.current)return;const ce=document.getElementById("ce-datepicker-portal"),$e=O.current.contains(Se),Ie=ce?ce.contains(Se):!1;!$e&&!Ie&&U()};return document.addEventListener("mousedown",ye),()=>document.removeEventListener("mousedown",ye)},[N,F,V]);const Y=ye=>{const Q=new Date(g.getFullYear(),g.getMonth(),ye);m(Q),_(Q);const Se=String(Q.getMonth()+1).padStart(2,"0"),ce=String(Q.getDate()).padStart(2,"0"),$e=String(Q.getFullYear());D(Se),q(ce),G($e),X(!0),e(`${Se}/${ce}/${$e}`),p(!1)},J=ye=>{A(ye>0?"left":"right"),_(Q=>{const Se=new Date(Q.getFullYear(),Q.getMonth()+ye,1);return d&&D(String(Se.getMonth()+1).padStart(2,"0")),j(ce=>ce+1),Se})},te=ye=>T(Q=>({start:Q.start+ye*10,end:Q.end+ye*10})),le=ye=>{const Q=new Date(ye,g.getMonth(),1);_(Q),G(String(ye)),E(!1)},be=()=>{const ye=new Date(g.getFullYear(),g.getMonth(),1),Q=new Date(g.getFullYear(),g.getMonth()+1,0),Se=ye.getDay(),ce=Q.getDate(),$e=new Date,Ie=Fe=>!d&&$e.getDate()===Fe&&$e.getMonth()===g.getMonth()&&$e.getFullYear()===g.getFullYear(),Pe=[];for(let Fe=0;Fe<Se;Fe++)Pe.push(jsxRuntimeExports.jsx("div",{className:"dp-day empty"},`empty-${Fe}`));for(let Fe=1;Fe<=ce;Fe++){const He=(d==null?void 0:d.getDate())===Fe&&(d==null?void 0:d.getMonth())===g.getMonth()&&(d==null?void 0:d.getFullYear())===g.getFullYear();Pe.push(jsxRuntimeExports.jsx("div",{className:`dp-day ${He?"selected":""} ${Ie(Fe)?"today":""}`,onClick:()=>Y(Fe),children:Fe},Fe))}return Pe},me=(ye,Q,Se)=>{if(!ye||!Q||!Se){X(!1),_(new Date),m(null);return}const ce=`${Se}-${ye}-${Q}`,$e=new Date(ce);$e.getFullYear()===parseInt(Se,10)&&$e.getMonth()+1===parseInt(ye,10)&&$e.getDate()===parseInt(Q,10)?(m($e),_($e),X(!0),e(`${ye}/${Q}/${Se}`)):(X(!1),m(null),_(new Date),D(ye),q(Q),G(Se))},fe=jsxRuntimeExports.jsx("div",{className:"dp-wrapper",ref:O,children:jsxRuntimeExports.jsxs("div",{className:`dp-input-container ${I||f?"focused":""} ${d||N||F||V?"has-value":""} ${ee?"":"invalid"}`,"aria-required":u,children:[jsxRuntimeExports.jsxs("div",{className:`dp-label floating ${ee?"":"invalid"}`,children:[t,u&&jsxRuntimeExports.jsx("span",{className:"dp-required",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-input-wrapper",onClick:()=>{M(!0)},children:[jsxRuntimeExports.jsx(DateInputPart,{value:N,onChange:ye=>{D(ye),me(ye,F,V)},max:12,min:1,length:2,placeholder:"MM",onClick:H,id:o?`${o}-month`:void 0,name:l?`${l}-month`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx(DateInputPart,{value:F,onChange:ye=>{q(ye),me(N,ye,V)},placeholder:"DD",max:31,min:1,length:2,onClick:H,id:o?`${o}-day`:void 0,name:l?`${l}-day`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx("input",{type:"text",value:V,onChange:ye=>{const Q=ye.target.value.replace(/\D/g,"");Q.length<=4&&(G(Q),Q.length===4&&me(N,F,Q))},onFocus:ye=>ye.target.select(),onBlur:()=>{V.length===4&&me(N,F,V)},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:H,children:jsxRuntimeExports.jsx("img",{src:DateRangeIcon,alt:"Calendar Icon"})})]})]})}),pe=jsxRuntimeExports.jsxs("div",{id:"ce-datepicker-portal",className:"dp-calendar",style:{position:"absolute",left:Math.max(8,z.left),top:z.top,zIndex:99999},role:"dialog","aria-modal":"true",children:[jsxRuntimeExports.jsxs("div",{className:"dp-header",children:[jsxRuntimeExports.jsxs("div",{className:"dp-title",onClick:()=>E(ye=>!ye),children:[S?`${b.start} - ${b.end}`:`${g.toLocaleString("default",{month:"long"})} ${g.getFullYear()}`,jsxRuntimeExports.jsx("button",{className:"dp-toggle-icon",children:"▾"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-controls",children:[jsxRuntimeExports.jsx("button",{onClick:()=>S?te(-1):J(-1),children:"‹"}),jsxRuntimeExports.jsx("button",{onClick:()=>S?te(1):J(1),children:"›"})]})]}),!S&&jsxRuntimeExports.jsx("div",{className:"dp-weekdays",children:WEEKDAYS.map(ye=>jsxRuntimeExports.jsx("div",{className:"dp-weekday",children:ye},ye))}),S?jsxRuntimeExports.jsx("div",{className:"dp-years-grid",children:Array.from({length:b.end-b.start+1},(ye,Q)=>{const Se=b.start+Q;return jsxRuntimeExports.jsx("div",{className:"dp-year-item",onClick:()=>le(Se),children:Se},Se)})}):jsxRuntimeExports.jsx("div",{className:`dp-days dp-slide-${C}`,children:be()},R)]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[fe,f&&ReactDOM.createPortal(pe,document.body)]})},FieldsInput=({label:e,name:t,placeholder:n="",value:i="",onChange:o,size:l="medium"})=>{const[u,f]=React.useState(!1),[p,d]=React.useState(!1),m=getSizeStyle$1(l);React.useEffect(()=>{i&&i.trim().length>0&&d(!0)},[i]);const g=()=>{f(!0),d(!0)},_=E=>{f(!1),E.target.value.trim()||d(!1)},S=u||!!i;return jsxRuntimeExports.jsxs("div",{className:`floating-input-wrapper${p?" focused":""}`,style:m,children:[jsxRuntimeExports.jsx("label",{htmlFor:t,className:"floating-label",children:e}),jsxRuntimeExports.jsx("input",{id:t,name:t,className:"floating-input",placeholder:S?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,d]=React.useState(n),[m,g]=React.useState(i),_=(E,b)=>{E==="quickActions"?d(T=>T.filter((C,A)=>A!==b)):g(T=>T.filter((C,A)=>A!==b))},S=()=>{u.trim()!==""&&(g(E=>[u,...E]),f(""))};return jsxRuntimeExports.jsxs("div",{className:"ceui-search-bar",children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search...",className:"ceui-search-input",value:u,onChange:E=>f(E.target.value),onFocus:()=>{l(!0),e&&e()},onBlur:()=>{setTimeout(()=>l(!1),200),t&&t()},onKeyDown:E=>{E.key==="Enter"&&S()}}),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((E,b)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[E,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>_("quickActions",b),children:"✕"})]},b))})]}),m.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Recent search"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:m.map((E,b)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[E,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=m=>{f.current&&!f.current.contains(m.target)&&(o(!1),u(!1))},d=()=>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(d,{})}),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:d=!1,showUserInfo:m=!1,showHamburgerButton:g=!1,showDrawer:_=!1,userInfoProps:S,onMenuClick:E,drawerJsonUrl:b="",isDrawerOpen:T=!1,onDrawerClose:C})=>{const A=()=>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(A,{})}),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,{}),d&&jsxRuntimeExports.jsx(CEAvatarMenu,{}),m&&S&&jsxRuntimeExports.jsx(CEUserInfo,{name:S.name,role:S.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:d,name:m,required:g=!1,enableSelectAll:_=!1,selectAllLabel:S="Select All"})=>{const[E,b]=React.useState(!1),[T,C]=React.useState(!1),A=React.useRef(null),j={...getSizeStyle$1(l),...u},O=V=>{if(i){const G=t.includes(V)?t.filter(ee=>ee!==V):[...t,V];n(G)}else n([V]),b(!1)},I=()=>n([]),M=e.filter(V=>t.includes(V.value)).map(V=>V.label);React.useEffect(()=>{const V=G=>{var ee;(ee=A.current)!=null&&ee.contains(G.target)||b(!1)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[]);const N=V=>{const G=t.filter(ee=>ee!==V);n(G)},D=e.map(V=>V==null?void 0:V.value),F=i&&t.length===D.length&&D.length>0,q=()=>{n(F?[]:D)};return jsxRuntimeExports.jsx("div",{className:`dropdown-container ${E||t.length>0?"float":""}`,ref:A,style:j,id:d,"data-name":m,"aria-required":g,children:jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${E?"open":""}`,onClick:()=>b(V=>!V),onFocus:()=>C(!0),onBlur:()=>C(!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,G)=>jsxRuntimeExports.jsxs("span",{className:"chip",children:[V,jsxRuntimeExports.jsx("span",{className:"close-icon",onClick:ee=>{var X;ee.stopPropagation(),N(((X=e.find(z=>z.label===V))==null?void 0:X.value)||"")},children:"×"})]},G)):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(),I()},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"})})}),E&&jsxRuntimeExports.jsxs("ul",{className:"dropdown-options",children:[i&&_&&jsxRuntimeExports.jsxs("li",{className:`dropdown-option select-all ${F?"selected":""}`,onClick:V=>{V.stopPropagation(),q()},children:[jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:F}),S]}),e.map(V=>jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${t.includes(V.value)?"selected":""}`,onClick:G=>{G.stopPropagation(),O(V.value)},children:[i&&jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:t.includes(V.value)}),V.label]},V.value))]})]})})},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,d)=>{n(m=>({...m,[p]:d}))};useEscapeKey(()=>{n({})});const l=p=>p.children&&p.children.length>0,u=p=>p.some(d=>l(d)),f=(p,d="")=>!p||p.length===0?null:jsxRuntimeExports.jsx("ul",{className:d?"ce-submenu":"ce-dropdown",children:p.map(m=>{const g=d?`${d}-${m.name}`:m.name,_=l(m);return jsxRuntimeExports.jsxs("li",{className:`ce-dropdown-item ${_?"has-submenu":""}`,onMouseEnter:()=>_&&i(g,!0),onMouseLeave:()=>_&&i(g,!1),onClick:()=>console.log(`Clicked: ${m.name}`),children:[m.name,_&&jsxRuntimeExports.jsx("span",{className:"ce-icon right",children:"▶"}),_&&t[g]&&f(m.children,g)]},g)})});return jsxRuntimeExports.jsx("div",{className:"ce-menu-bar",children:jsxRuntimeExports.jsx("div",{className:"ce-menu-container",children:e.map(p=>{const d=u(p.items);return jsxRuntimeExports.jsxs("div",{className:"ce-menu-item",onMouseEnter:()=>d&&i(p.title,!0),onMouseLeave:()=>d&&i(p.title,!1),children:[jsxRuntimeExports.jsxs("button",{className:"ce-menu-button",children:[p.title,d&&jsxRuntimeExports.jsx("span",{className:"ce-icon",children:"▼"})]}),d&&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 d=0;d<t;d++)p.push(d);else if(e<7){for(let d=0;d<8;d++)p.push(d);p.push("..."),p.push(t-1)}else if(e>=t-8+1){p.push(0),p.push("...");for(let d=t-8;d<t;d++)p.push(d)}else{p.push(0),p.push("...");for(let d=e-3;d<=e+3;d++)p.push(d);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||""),d=m=>{p(m),i(m)};return jsxRuntimeExports.jsx("div",{className:`radio-button-group ${o}`,role:"radiogroup","aria-labelledby":t,id:l,children:e.map(m=>jsxRuntimeExports.jsx("div",{className:"radio-button",children:jsxRuntimeExports.jsx(CERadioButton,{label:m.label,value:m.value,checked:f===m.value,onChange:d,id:l?`${l}-${m.value}`:void 0,name:u})},m.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 d=React.useRef(null),[m,g]=React.useState("3"),[_,S]=React.useState("Arial"),[E,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(()=>{d.current&&e&&(d.current.innerHTML=e)},[e]);const T=React.useCallback(I=>{try{return document.queryCommandState(I)}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]),A=React.useCallback((I,M="")=>{var F,q;const N=saveSelection(),D=document.getSelection();if(I==="createLink"){const V=prompt("Enter URL:");if(V){restoreSelection(N),document.execCommand("createLink",!1,V);const G=(F=D==null?void 0:D.anchorNode)==null?void 0:F.parentElement;G instanceof HTMLAnchorElement&&(G.target="_blank",G.rel="noopener noreferrer")}}else if(I==="insertImage"){const V=prompt("Enter image URL:");if(V){restoreSelection(N);const G=`<img src="${V}" alt="image" style="max-width: 100%; height: auto;"/>`;document.execCommand("insertHTML",!1,G)}}else I==="fontSize"||I==="fontName"?(restoreSelection(N),document.execCommand(I,!0,M),I==="fontSize"?g(M):S(M)):(restoreSelection(N),document.execCommand(I,!1,M));d.current&&(t==null||t(d.current.innerHTML)),(q=d.current)==null||q.focus(),C()},[t,C]),R=I=>{if(I.key==="Tab"&&(I.preventDefault(),document.execCommand("insertHTML",!1,"&nbsp;&nbsp;&nbsp;&nbsp;")),I.ctrlKey||I.metaKey)switch(I.key.toLowerCase()){case"z":I.preventDefault(),I.shiftKey?A("redo"):A("undo");break;case"y":I.preventDefault(),A("redo");break}},j=[{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"}],O=["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:()=>A("bold"),className:`toolbar-button ${E.bold?"active":""}`,title:"Bold",children:jsxRuntimeExports.jsx("strong",{children:"B"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("italic"),className:`toolbar-button ${E.italic?"active":""}`,title:"Italic",children:jsxRuntimeExports.jsx("em",{children:"I"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("underline"),className:`toolbar-button ${E.underline?"active":""}`,title:"Underline",children:jsxRuntimeExports.jsx("u",{children:"U"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("strikeThrough"),className:`toolbar-button ${E.strikeThrough?"active":""}`,title:"Strike Through",children:jsxRuntimeExports.jsx("s",{children:"S"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("subscript"),className:`toolbar-button ${E.subscript?"active":""}`,title:"Subscript",children:"X₂"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("superscript"),className:`toolbar-button ${E.superscript?"active":""}`,title:"Superscript",children:"X²"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("justifyLeft"),className:`toolbar-button ${E.justifyLeft?"active":""}`,title:"Align Left",children:"⇤"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("justifyCenter"),className:`toolbar-button ${E.justifyCenter?"active":""}`,title:"Center",children:"⇔"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("justifyRight"),className:`toolbar-button ${E.justifyRight?"active":""}`,title:"Align Right",children:"⇥"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("justifyFull"),className:`toolbar-button ${E.justifyFull?"active":""}`,title:"Justify",children:"≡"})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>A("insertUnorderedList"),className:"toolbar-button",title:"Bullet List",children:"●"}),jsxRuntimeExports.jsx("button",{onClick:()=>A("insertOrderedList"),className:"toolbar-button",title:"Numbered List",children:"1. 2. 3."})]}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:m,onChange:I=>A("fontSize",I.target.value),className:"toolbar-select",title:"Font Size",children:j.map(I=>jsxRuntimeExports.jsx("option",{value:I.value,children:I.label},I.value))})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:_,onChange:I=>A("fontName",I.target.value),className:"toolbar-select",title:"Font Family",children:O.map(I=>jsxRuntimeExports.jsx("option",{value:I,children:I},I))})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>A("createLink"),className:"toolbar-button",title:"Insert Link",children:"🔗"}),jsxRuntimeExports.jsx("button",{onClick:()=>A("insertImage"),className:"toolbar-button",title:"Insert Image",children:"📷"})]}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>A("undo"),className:"toolbar-button",title:"Undo (Ctrl+Z)",children:"↩"}),jsxRuntimeExports.jsx("button",{onClick:()=>A("redo"),className:"toolbar-button",title:"Redo (Ctrl+Y)",children:"↪"})]})]}),jsxRuntimeExports.jsx("div",{ref:d,className:"editor-content",contentEditable:!0,style:{minHeight:o,maxHeight:l,height:i==="auto"?"auto":"100%",...p},onKeyDown:R,onKeyUp:C,onMouseUp:C,onInput:()=>{d.current&&(t==null||t(d.current.innerHTML)),C()}})]})},CETabView=({tabs:e,renderContent:t})=>{const[n,i]=React.useState(e[0]);return jsxRuntimeExports.jsxs("div",{className:"tabview-container",children:[jsxRuntimeExports.jsx("div",{className:"tabview-sidebar",children:e.map(o=>jsxRuntimeExports.jsx("div",{className:`tabview-tab ${n===o?"tabview-tab-active":""}`,onClick:()=>i(o),children:o},o))}),jsxRuntimeExports.jsx("div",{className:"tabview-content",children:t(n)})]})},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,d]=React.useState(n),[m,g]=React.useState("12"),[_,S]=React.useState("00"),[E,b]=React.useState("AM"),[T,C]=React.useState(!1),[A,R]=React.useState(""),[j,O]=React.useState(""),I=React.useRef(null),M=Array.from({length:12},(W,L)=>String(L+1).padStart(2,"0")),N=Array.from({length:60},(W,L)=>String(L).padStart(2,"0")),D=(W,L)=>{if(!W)return"";const B=parseInt(W);return L==="hours"?B>12?"12":B===0?"01":W.padStart(2,"0"):B>59?"59":W.padStart(2,"0")},F=W=>{const L=W.target.value,B=W.target.selectionStart||0;let U=m,K=_,H=E,Y=p;if(B<=2){const J=L.substring(0,2).replace(/[^0-9]/g,"");if(J){if(J.length===1){const te=parseInt(J);te>=2&&te<=9?(U=J.padStart(2,"0"),setTimeout(()=>{I.current&&I.current.setSelectionRange(3,5)},10)):(U=J,setTimeout(()=>{I.current&&I.current.setSelectionRange(1,1)},10))}else if(J.length===2){const te=parseInt(J);te>=1&&te<=12?(U=J,setTimeout(()=>{I.current&&I.current.setSelectionRange(3,5)},10)):(U=J[0],setTimeout(()=>{I.current&&I.current.setSelectionRange(1,1)},10))}Y=`${U}:${_} ${E}`}}else if(B>=3&&B<=5){const J=L.indexOf(":")+1,te=L.substring(J,J+2).replace(/[^0-9]/g,"");if(te){if(te.length===1)K=te,Y=`${m}:${K} ${E}`,setTimeout(()=>{I.current&&I.current.setSelectionRange(4,4)},10);else if(te.length===2){const le=parseInt(te);le>=0&&le<=59?(K=te,setTimeout(()=>{I.current&&I.current.setSelectionRange(6,8)},10)):(K=te[0],setTimeout(()=>{I.current&&I.current.setSelectionRange(4,4)},10))}Y=`${m}:${K} ${E}`}}else if(B>=6){const te=L.substring(L.lastIndexOf(" ")+1).toUpperCase();te.startsWith("A")?(H="AM",Y=`${m}:${_} AM`):te.startsWith("P")&&(H="PM",Y=`${m}:${_} PM`)}g(U),S(K),b(H),d(Y),f(!1),t==null||t(Y)},q=W=>{if(!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","0","1","2","3","4","5","6","7","8","9",":","A","P","M"," ","a","p","m"].includes(W.key)){W.preventDefault();return}if(W.key==="Enter"||W.key===":"){W.preventDefault();const B=W.currentTarget.selectionStart||0;if(B<=2){if(A){const U=D(A,"hours");g(U),R(""),d(`${U}:${_} ${E}`)}W.currentTarget.setSelectionRange(3,5)}else if(B>=3&&B<=5){if(j){const U=D(j,"minutes");S(U),O(""),d(`${m}:${U} ${E}`)}W.currentTarget.setSelectionRange(6,8)}}},V=W=>{const L=W.currentTarget.selectionStart||0,B=I.current;B&&(L<=1?B.setSelectionRange(0,2):L>=3&&L<=4?B.setSelectionRange(3,5):L>=6&&B.setSelectionRange(6,8))},G=()=>{f(!0),C(!0)},ee=(W,L)=>{const B=W==="hours"?L:m,U=W==="minutes"?L:_,K=W==="period"?L:E;g(B),S(U),b(K);const H=`${B}:${U} ${K}`;d(H),t==null||t(H)},X=()=>{const W=`${m}:${_} ${E}`;d(W),f(!1),t==null||t(W)},z=()=>{d(""),g("12"),S("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:I,type:"text",id:o,name:l,value:p,onChange:F,onKeyDown:q,onClick:W=>{p||G(),V(W)},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:W=>{W.stopPropagation(),G()},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:M.map(W=>jsxRuntimeExports.jsx("div",{className:`time-item ${W===m?"selected":""}`,onClick:()=>ee("hours",W),children:W},W))})]}),jsxRuntimeExports.jsxs("div",{className:"time-section",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Minutes"}),jsxRuntimeExports.jsx("div",{className:"time-list",children:N.map(W=>jsxRuntimeExports.jsx("div",{className:`time-item ${W===_?"selected":""}`,onClick:()=>ee("minutes",W),children:W},W))})]}),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(W=>jsxRuntimeExports.jsx("div",{className:`period-item ${W===E?"selected":""}`,onClick:()=>ee("period",W),children:W},W))})]})]}),jsxRuntimeExports.jsxs("div",{className:"time-picker-actions",children:[jsxRuntimeExports.jsx("button",{className:"time-picker-button cancel",onClick:z,children:"Cancel"}),jsxRuntimeExports.jsx("button",{className:"time-picker-button ok",onClick:X,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([]),[d,m]=React.useState(!0),[g,_]=React.useState(null),[S,E]=React.useState(new Set),[b,T]=React.useState(new Set);React.useEffect(()=>{(async()=>{var I,M;try{m(!0),_(null);const D=(await axios.get(e)).data.items||[];u(D.slice(0,Math.ceil(D.length/2))),p(D.slice(Math.ceil(D.length/2)))}catch(N){_(axios.isAxiosError(N)?((M=(I=N.response)==null?void 0:I.data)==null?void 0:M.message)||N.message:"An error occurred")}finally{m(!1)}})()},[]);const C=O=>{if(O==="available"){const I=l.filter(N=>S.has(N.id)).sort((N,D)=>{const F=parseInt(N.id.replace(/\D/g,"")),q=parseInt(D.id.replace(/\D/g,""));return F-q}),M=l.filter(N=>!S.has(N.id));u(M),p(N=>[...N,...I].sort((F,q)=>{const V=parseInt(F.id.replace(/\D/g,"")),G=parseInt(q.id.replace(/\D/g,""));return V-G})),E(new Set)}else{const I=f.filter(N=>b.has(N.id)).sort((N,D)=>{const F=parseInt(N.id.replace(/\D/g,"")),q=parseInt(D.id.replace(/\D/g,""));return F-q}),M=f.filter(N=>!b.has(N.id));p(M),u(N=>[...N,...I].sort((F,q)=>{const V=parseInt(F.id.replace(/\D/g,"")),G=parseInt(q.id.replace(/\D/g,""));return V-G})),T(new Set)}t(f,l)},A=(O,I,M)=>{M(N=>{const D=new Set(N);return D.has(O)?D.delete(O):D.add(O),D})},R=(O,I,M)=>N=>{const D=new Set(I),F=O.filter(q=>!q.disabled);N?F.forEach(q=>D.add(q.id)):F.forEach(q=>D.delete(q.id)),M(D)},j=(O,I,M,N)=>{const D=O.filter(ee=>!ee.disabled),F=D.length>0&&D.every(ee=>I.has(ee.id)),q=I.size,V=O.length,G=O.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:F,onChange:R(O,I,M),disabled:G})}),jsxRuntimeExports.jsxs("div",{className:"title-section",children:[jsxRuntimeExports.jsx("div",{className:"title",children:N}),jsxRuntimeExports.jsxs("div",{className:"count-text",children:[q,"/",V," selected"]})]})]})}),jsxRuntimeExports.jsx("div",{className:"transfer-items",children:O.map(ee=>jsxRuntimeExports.jsx(TransferItem,{label:ee.label,checked:I.has(ee.id),disabled:ee.disabled,onChange:()=>A(ee.id,I,M)},ee.id))})]})};return d?jsxRuntimeExports.jsx("div",{children:"Loading..."}):g?jsxRuntimeExports.jsxs("div",{children:["Error: ",g]}):jsxRuntimeExports.jsxs("div",{className:`transfer-list-container ${n}`,children:[j(l,S,E,"Choices"),jsxRuntimeExports.jsxs("div",{className:"transfer-buttons",children:[jsxRuntimeExports.jsx(CETransferButton,{label:">>",onClick:()=>C("available"),disabled:S.size===0,className:o}),jsxRuntimeExports.jsx(CETransferButton,{label:"<<",onClick:()=>C("chosen"),disabled:b.size===0,className:o})]}),j(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),d=React.useRef(null),m=e.find(b=>b.value===t),g=b=>{n(b),p(!1)};React.useEffect(()=>{const b=T=>{var C;(C=d.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))},S=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""},E=()=>{if(m){const b={};return m.backgroundColor&&(b.backgroundColor=m.backgroundColor),m.textColor&&(b.color=m.textColor),b}return{}};return jsxRuntimeExports.jsxs("div",{className:`status-dropdown-container ${l?"disabled":""} size-${o}`,ref:d,children:[jsxRuntimeExports.jsxs("div",{className:`status-dropdown-trigger ${f?"open":""} ${m?`has-selection ${S(m)}`:""}`,onClick:()=>!l&&g((m==null?void 0:m.value)||""),onKeyDown:_,tabIndex:l?-1:0,role:"button","aria-haspopup":"listbox","aria-expanded":f?"true":"false","aria-label":u,style:E(),children:[jsxRuntimeExports.jsx("span",{className:"status-text",children:m?m.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":""} ${S(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})=>{const 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",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:e,onChange: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$m=["attr","size","title"];function _objectWithoutProperties$m(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$m(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$m(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$y(){return _extends$y=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$y.apply(this,arguments)}function ownKeys$F(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$F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$F(Object(n),!0).forEach(function(i){_defineProperty$M(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$F(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$M(e,t,n){return t=_toPropertyKey$M(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$M(e){var t=_toPrimitive$M(e,"string");return typeof t=="symbol"?t:t+""}function _toPrimitive$M(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$F({key:n},t.attr),Tree2Element(t.child)))}function GenIcon(e){return t=>React.createElement(IconBase,_extends$y({attr:_objectSpread$F({},e.attr)},t),Tree2Element(e.child))}function IconBase(e){var t=n=>{var{attr:i,size:o,title:l}=e,u=_objectWithoutProperties$m(e,_excluded$m),f=o||n.size||"1em",p;return n.className&&(p=n.className),e.className&&(p=(p?p+" ":"")+e.className),React.createElement("svg",_extends$y({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:p,style:_objectSpread$F(_objectSpread$F({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:d})=>{const[m,g]=React.useState(!1),[_,S]=React.useState(""),[E,b]=React.useState([]),T=React.useRef(null);React.useEffect(()=>{n&&n(E)},[E,n]);const C=e.filter(A=>{var R;return A.label.toLowerCase().includes(_.toLowerCase())||((R=A.subtitle)==null?void 0:R.toLowerCase().includes(_.toLowerCase()))});return React.useEffect(()=>{const A=R=>{var j;(j=T.current)!=null&&j.contains(R.target)||g(!1)};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]),jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:T,style:{width:l},children:[jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${m?"open":""}`,style:{minHeight:u},children:[jsxRuntimeExports.jsx(FaSearch,{className:"search-icon"}),jsxRuntimeExports.jsxs("div",{className:"selected-chips",onClick:()=>g(!0),children:[E.length===0&&jsxRuntimeExports.jsx("input",{type:"text",className:"search-input",id:p,name:d,placeholder:i,value:_,onChange:A=>{S(A.target.value),m||g(!0)},onClick:A=>{A.stopPropagation(),g(!0)},style:{height:u}}),E.map(A=>jsxRuntimeExports.jsxs("div",{className:"selected-item-inline",children:[jsxRuntimeExports.jsx("span",{className:"selected-item-label",children:A.label}),jsxRuntimeExports.jsx("button",{type:"button",className:"selected-item-remove",onClick:R=>{R.stopPropagation(),b(j=>j.filter(O=>O.value!==A.value))},"aria-label":`Remove ${A.label}`,children:"×"})]},A.value))]}),jsxRuntimeExports.jsx(MdKeyboardArrowDown,{className:`dropdown-arrow ${m?"rotated":""}`,onClick:A=>{A.stopPropagation(),g(R=>!R)}})]}),m&&jsxRuntimeExports.jsx("div",{className:"dropdown-options",style:{maxHeight:f},children:jsxRuntimeExports.jsx("ul",{className:"dropdown-list",children:C.length>0?C.map(A=>{const R=E.some(j=>j.value===A.value);return jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${R?"selected":""}`,onClick:j=>{j.stopPropagation(),b(O=>{const I=O.some(N=>N.value===A.value);let M;return I?M=O.filter(N=>N.value!==A.value):M=[...O,A],M}),S(""),t(A),g(!1)},children:[jsxRuntimeExports.jsxs("div",{className:"option-content",children:[jsxRuntimeExports.jsx("div",{className:"option-line-1",children:A.label}),A.subtitle&&jsxRuntimeExports.jsx("div",{className:"option-line-2",children:A.subtitle})]}),A.icon&&jsxRuntimeExports.jsx("div",{className:"option-icon",children:A.icon})]},A.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),[d,m]=React.useState(!1),[g,_]=React.useState(""),S=React.useRef(null),E=React.useRef(null),b=t.filter(A=>A.toLowerCase().includes(g.toLowerCase())),T=A=>{if(o){const R=n.includes(A);i(R?n.filter(j=>j!==A):[...n,A]),_("")}else i([A]),_(A),p(!1)},C=A=>{E.current&&!E.current.contains(A.target)&&(p(!1),m(!1))};return React.useEffect(()=>(document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)),[]),jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:E,children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper always-float ${d||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(A=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[A,jsxRuntimeExports.jsx("button",{onClick:R=>{R.stopPropagation(),i(n.filter(j=>j!==A))},children:"×"})]},A))}),jsxRuntimeExports.jsx("input",{ref:S,type:"text",className:"autocomplete-input",value:g,placeholder:"Select Status",onChange:A=>_(A.target.value),onFocus:()=>{m(!0),p(!0)}}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:()=>p(A=>!A),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 A=n.length===t.length;i(A?[]:[...t])}}),"Select All"]})}),b.map(A=>jsxRuntimeExports.jsx("li",{onClick:()=>T(A),children:o&&l?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(A),onChange:()=>T(A),onClick:R=>R.stopPropagation()}),A]}):A},A))]})]})},CEAutoCompleteSelect=({label:e,options:t,value:n,onChange:i,placeholderText:o,multiple:l=!1,showCheckboxes:u=!1,id:f,required:p=!1,showSelectionCountOnly:d=!1})=>{const[m,g]=React.useState(!1),[_,S]=React.useState(!1),[E,b]=React.useState(""),T=React.useRef(null),C=React.useRef(null),A=t.filter(M=>{var N;return(N=M.label)==null?void 0:N.toLowerCase().includes(E==null?void 0:E.toLowerCase())});React.useEffect(()=>{if(l)l&&b("");else{const M=O(n[0]);b(M||"")}},[n,l,t]);const R=M=>{if(l){const N=n.includes(M.value);i(N?n.filter(D=>D!==M.value):[...n,M.value]),b("")}else i([M.value]),b(M.label),g(!1)},j=M=>{C.current&&!C.current.contains(M.target)&&(g(!1),S(!1))};React.useEffect(()=>(document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)),[]);const O=M=>{var N;return((N=t.find(D=>D.value===M))==null?void 0:N.label)||M},I=M=>{M.stopPropagation(),b(""),i([])};return jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:C,id:f,"data-testid":f?`ce-autocomplete-${f}`:"ce-autocomplete",children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper always-float ${_||m?"focused":""} ${n.length>0?"has-value has-clear":""}`,onClick:()=>g(!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:d?jsxRuntimeExports.jsxs("span",{className:"selected-summary",children:["Selected + ",n.length]}):n.map(M=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[O(M),jsxRuntimeExports.jsx("button",{onClick:N=>{N.stopPropagation(),i(n.filter(D=>D!==M))},children:"×"})]},M))}),jsxRuntimeExports.jsx("input",{ref:T,type:"text",className:"autocomplete-input",placeholder:o,value:E,onChange:M=>b(M.target.value),onFocus:()=>{S(!0),g(!0)}}),n.length>0&&jsxRuntimeExports.jsx("span",{className:"clear-icon",onClick:I,title:"Clear",children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:M=>{M.stopPropagation(),g(N=>!N)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M6 9l6 6 6-6"})})})]})]}),m&&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 M=n.length===t.length;i(M?[]:t.map(N=>N.value))}}),"Select All"]})}),A.map(M=>jsxRuntimeExports.jsx("li",{onClick:()=>R(M),children:l&&u?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(M.value),onChange:()=>R(M),onClick:N=>N.stopPropagation()}),M.label]}):M.label},M.value))]})]})};var isArray_1,hasRequiredIsArray;function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var e=Array.isArray;return isArray_1=e,isArray_1}var _freeGlobal,hasRequired_freeGlobal;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var e=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=e,_freeGlobal}var _root,hasRequired_root;function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var e=require_freeGlobal(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _root=n,_root}var _Symbol,hasRequired_Symbol;function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var e=require_root(),t=e.Symbol;return _Symbol=t,_Symbol}var _getRawTag,hasRequired_getRawTag;function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var e=require_Symbol(),t=Object.prototype,n=t.hasOwnProperty,i=t.toString,o=e?e.toStringTag:void 0;function l(u){var f=n.call(u,o),p=u[o];try{u[o]=void 0;var d=!0}catch{}var m=i.call(u);return d&&(f?u[o]=p:delete u[o]),m}return _getRawTag=l,_getRawTag}var _objectToString,hasRequired_objectToString;function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var e=Object.prototype,t=e.toString;function n(i){return t.call(i)}return _objectToString=n,_objectToString}var _baseGetTag,hasRequired_baseGetTag;function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var e=require_Symbol(),t=require_getRawTag(),n=require_objectToString(),i="[object Null]",o="[object Undefined]",l=e?e.toStringTag:void 0;function u(f){return f==null?f===void 0?o:i:l&&l in Object(f)?t(f):n(f)}return _baseGetTag=u,_baseGetTag}var isObjectLike_1,hasRequiredIsObjectLike;function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;hasRequiredIsObjectLike=1;function e(t){return t!=null&&typeof t=="object"}return isObjectLike_1=e,isObjectLike_1}var isSymbol_1,hasRequiredIsSymbol;function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol_1;hasRequiredIsSymbol=1;var e=require_baseGetTag(),t=requireIsObjectLike(),n="[object Symbol]";function i(o){return typeof o=="symbol"||t(o)&&e(o)==n}return isSymbol_1=i,isSymbol_1}var _isKey,hasRequired_isKey;function require_isKey(){if(hasRequired_isKey)return _isKey;hasRequired_isKey=1;var e=requireIsArray(),t=requireIsSymbol(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function o(l,u){if(e(l))return!1;var f=typeof l;return f=="number"||f=="symbol"||f=="boolean"||l==null||t(l)?!0:i.test(l)||!n.test(l)||u!=null&&l in Object(u)}return _isKey=o,_isKey}var isObject_1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1;hasRequiredIsObject=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return isObject_1=e,isObject_1}var isFunction_1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var e=require_baseGetTag(),t=requireIsObject(),n="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!t(f))return!1;var p=e(f);return p==i||p==o||p==n||p==l}return isFunction_1=u,isFunction_1}var _coreJsData,hasRequired_coreJsData;function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var e=require_root(),t=e["__core-js_shared__"];return _coreJsData=t,_coreJsData}var _isMasked,hasRequired_isMasked;function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var e=require_coreJsData(),t=function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function n(i){return!!t&&t in i}return _isMasked=n,_isMasked}var _toSource,hasRequired_toSource;function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var e=Function.prototype,t=e.toString;function n(i){if(i!=null){try{return t.call(i)}catch{}try{return i+""}catch{}}return""}return _toSource=n,_toSource}var _baseIsNative,hasRequired_baseIsNative;function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var e=requireIsFunction(),t=require_isMasked(),n=requireIsObject(),i=require_toSource(),o=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,p=u.toString,d=f.hasOwnProperty,m=RegExp("^"+p.call(d).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(_){if(!n(_)||t(_))return!1;var S=e(_)?m:l;return S.test(i(_))}return _baseIsNative=g,_baseIsNative}var _getValue,hasRequired_getValue;function require_getValue(){if(hasRequired_getValue)return _getValue;hasRequired_getValue=1;function e(t,n){return t==null?void 0:t[n]}return _getValue=e,_getValue}var _getNative,hasRequired_getNative;function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var e=require_baseIsNative(),t=require_getValue();function n(i,o){var l=t(i,o);return e(l)?l:void 0}return _getNative=n,_getNative}var _nativeCreate,hasRequired_nativeCreate;function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var e=require_getNative(),t=e(Object,"create");return _nativeCreate=t,_nativeCreate}var _hashClear,hasRequired_hashClear;function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var e=require_nativeCreate();function t(){this.__data__=e?e(null):{},this.size=0}return _hashClear=t,_hashClear}var _hashDelete,hasRequired_hashDelete;function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;hasRequired_hashDelete=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return _hashDelete=e,_hashDelete}var _hashGet,hasRequired_hashGet;function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var e=require_nativeCreate(),t="__lodash_hash_undefined__",n=Object.prototype,i=n.hasOwnProperty;function o(l){var u=this.__data__;if(e){var f=u[l];return f===t?void 0:f}return i.call(u,l)?u[l]:void 0}return _hashGet=o,_hashGet}var _hashHas,hasRequired_hashHas;function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var e=require_nativeCreate(),t=Object.prototype,n=t.hasOwnProperty;function i(o){var l=this.__data__;return e?l[o]!==void 0:n.call(l,o)}return _hashHas=i,_hashHas}var _hashSet,hasRequired_hashSet;function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var e=require_nativeCreate(),t="__lodash_hash_undefined__";function n(i,o){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=e&&o===void 0?t:o,this}return _hashSet=n,_hashSet}var _Hash,hasRequired_Hash;function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var e=require_hashClear(),t=require_hashDelete(),n=require_hashGet(),i=require_hashHas(),o=require_hashSet();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var d=u[f];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,_Hash=l,_Hash}var _listCacheClear,hasRequired_listCacheClear;function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;hasRequired_listCacheClear=1;function e(){this.__data__=[],this.size=0}return _listCacheClear=e,_listCacheClear}var eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;function e(t,n){return t===n||t!==t&&n!==n}return eq_1=e,eq_1}var _assocIndexOf,hasRequired_assocIndexOf;function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();function t(n,i){for(var o=n.length;o--;)if(e(n[o][0],i))return o;return-1}return _assocIndexOf=t,_assocIndexOf}var _listCacheDelete,hasRequired_listCacheDelete;function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype,n=t.splice;function i(o){var l=this.__data__,u=e(l,o);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():n.call(l,u,1),--this.size,!0}return _listCacheDelete=i,_listCacheDelete}var _listCacheGet,hasRequired_listCacheGet;function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();function t(n){var i=this.__data__,o=e(i,n);return o<0?void 0:i[o][1]}return _listCacheGet=t,_listCacheGet}var _listCacheHas,hasRequired_listCacheHas;function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();function t(n){return e(this.__data__,n)>-1}return _listCacheHas=t,_listCacheHas}var _listCacheSet,hasRequired_listCacheSet;function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();function t(n,i){var o=this.__data__,l=e(o,n);return l<0?(++this.size,o.push([n,i])):o[l][1]=i,this}return _listCacheSet=t,_listCacheSet}var _ListCache,hasRequired_ListCache;function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),n=require_listCacheGet(),i=require_listCacheHas(),o=require_listCacheSet();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var d=u[f];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,_ListCache=l,_ListCache}var _Map,hasRequired_Map;function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var e=require_getNative(),t=require_root(),n=e(t,"Map");return _Map=n,_Map}var _mapCacheClear,hasRequired_mapCacheClear;function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var e=require_Hash(),t=require_ListCache(),n=require_Map();function i(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return _mapCacheClear=i,_mapCacheClear}var _isKeyable,hasRequired_isKeyable;function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;hasRequired_isKeyable=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return _isKeyable=e,_isKeyable}var _getMapData,hasRequired_getMapData;function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var e=require_isKeyable();function t(n,i){var o=n.__data__;return e(i)?o[typeof i=="string"?"string":"hash"]:o.map}return _getMapData=t,_getMapData}var _mapCacheDelete,hasRequired_mapCacheDelete;function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var e=require_getMapData();function t(n){var i=e(this,n).delete(n);return this.size-=i?1:0,i}return _mapCacheDelete=t,_mapCacheDelete}var _mapCacheGet,hasRequired_mapCacheGet;function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var e=require_getMapData();function t(n){return e(this,n).get(n)}return _mapCacheGet=t,_mapCacheGet}var _mapCacheHas,hasRequired_mapCacheHas;function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var e=require_getMapData();function t(n){return e(this,n).has(n)}return _mapCacheHas=t,_mapCacheHas}var _mapCacheSet,hasRequired_mapCacheSet;function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var e=require_getMapData();function t(n,i){var o=e(this,n),l=o.size;return o.set(n,i),this.size+=o.size==l?0:1,this}return _mapCacheSet=t,_mapCacheSet}var _MapCache,hasRequired_MapCache;function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var e=require_mapCacheClear(),t=require_mapCacheDelete(),n=require_mapCacheGet(),i=require_mapCacheHas(),o=require_mapCacheSet();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var d=u[f];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,_MapCache=l,_MapCache}var memoize_1,hasRequiredMemoize;function requireMemoize(){if(hasRequiredMemoize)return memoize_1;hasRequiredMemoize=1;var e=require_MapCache(),t="Expected a function";function n(i,o){if(typeof i!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var l=function(){var u=arguments,f=o?o.apply(this,u):u[0],p=l.cache;if(p.has(f))return p.get(f);var d=i.apply(this,u);return l.cache=p.set(f,d)||p,d};return l.cache=new(n.Cache||e),l}return n.Cache=e,memoize_1=n,memoize_1}var _memoizeCapped,hasRequired_memoizeCapped;function require_memoizeCapped(){if(hasRequired_memoizeCapped)return _memoizeCapped;hasRequired_memoizeCapped=1;var e=requireMemoize(),t=500;function n(i){var o=e(i,function(u){return l.size===t&&l.clear(),u}),l=o.cache;return o}return _memoizeCapped=n,_memoizeCapped}var _stringToPath,hasRequired_stringToPath;function require_stringToPath(){if(hasRequired_stringToPath)return _stringToPath;hasRequired_stringToPath=1;var e=require_memoizeCapped(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,i=e(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(t,function(u,f,p,d){l.push(p?d.replace(n,"$1"):f||u)}),l});return _stringToPath=i,_stringToPath}var _arrayMap,hasRequired_arrayMap;function require_arrayMap(){if(hasRequired_arrayMap)return _arrayMap;hasRequired_arrayMap=1;function e(t,n){for(var i=-1,o=t==null?0:t.length,l=Array(o);++i<o;)l[i]=n(t[i],i,t);return l}return _arrayMap=e,_arrayMap}var _baseToString,hasRequired_baseToString;function require_baseToString(){if(hasRequired_baseToString)return _baseToString;hasRequired_baseToString=1;var e=require_Symbol(),t=require_arrayMap(),n=requireIsArray(),i=requireIsSymbol(),o=e?e.prototype:void 0,l=o?o.toString:void 0;function u(f){if(typeof f=="string")return f;if(n(f))return t(f,u)+"";if(i(f))return l?l.call(f):"";var p=f+"";return p=="0"&&1/f==-1/0?"-0":p}return _baseToString=u,_baseToString}var toString_1,hasRequiredToString;function requireToString(){if(hasRequiredToString)return toString_1;hasRequiredToString=1;var e=require_baseToString();function t(n){return n==null?"":e(n)}return toString_1=t,toString_1}var _castPath,hasRequired_castPath;function require_castPath(){if(hasRequired_castPath)return _castPath;hasRequired_castPath=1;var e=requireIsArray(),t=require_isKey(),n=require_stringToPath(),i=requireToString();function o(l,u){return e(l)?l:t(l,u)?[l]:n(i(l))}return _castPath=o,_castPath}var _toKey,hasRequired_toKey;function require_toKey(){if(hasRequired_toKey)return _toKey;hasRequired_toKey=1;var e=requireIsSymbol();function t(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}return _toKey=t,_toKey}var _baseGet,hasRequired_baseGet;function require_baseGet(){if(hasRequired_baseGet)return _baseGet;hasRequired_baseGet=1;var e=require_castPath(),t=require_toKey();function n(i,o){o=e(o,i);for(var l=0,u=o.length;i!=null&&l<u;)i=i[t(o[l++])];return l&&l==u?i:void 0}return _baseGet=n,_baseGet}var get_1,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get_1;hasRequiredGet=1;var e=require_baseGet();function t(n,i,o){var l=n==null?void 0:e(n,i);return l===void 0?o:l}return get_1=t,get_1}var getExports=requireGet();const get=getDefaultExportFromCjs(getExports);var isNil_1,hasRequiredIsNil;function requireIsNil(){if(hasRequiredIsNil)return isNil_1;hasRequiredIsNil=1;function e(t){return t==null}return isNil_1=e,isNil_1}var isNilExports=requireIsNil();const isNil=getDefaultExportFromCjs(isNilExports);var isString_1,hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString_1;hasRequiredIsString=1;var e=require_baseGetTag(),t=requireIsArray(),n=requireIsObjectLike(),i="[object String]";function o(l){return typeof l=="string"||!t(l)&&n(l)&&e(l)==i}return isString_1=o,isString_1}var isStringExports=requireIsString();const isString=getDefaultExportFromCjs(isStringExports);var isFunctionExports=requireIsFunction();const isFunction=getDefaultExportFromCjs(isFunctionExports);var isObjectExports=requireIsObject();const isObject=getDefaultExportFromCjs(isObjectExports);var reactIs={exports:{}},reactIs_production_min={};/**
344
+ `;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=[],d=Array.isArray(e);for(f=o.s.c;f<=o.e.c;++f)u[f]=encode_col(f);for(var m=o.s.r;m<=o.e.r;++m)for(l=encode_row(m),f=o.s.c;f<=o.e.c;++f)if(t=u[f]+l,n=d?(e[m]||[])[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 d,m={s:{c:0,r:0},e:{c:f,r:u+t.length-1+o}};if(l["!ref"]){var g=safe_decode_range(l["!ref"]);m.e.c=Math.max(m.e.c,g.e.c),m.e.r=Math.max(m.e.r,g.e.r),u==-1&&(u=g.e.r+1,m.e.r=u+t.length-1+o)}else u==-1&&(u=0,m.e.r=t.length-1+o);var _=i.header||[],S=0;t.forEach(function(b,T){keys$1(b).forEach(function(C){(S=_.indexOf(C))==-1&&(_[S=_.length]=C);var A=b[C],R="z",j="",O=encode_cell({c:f+S,r:u+T+o});d=ws_get_cell_stub(l,O),A&&typeof A=="object"&&!(A instanceof Date)?l[O]=A:(typeof A=="number"?R="n":typeof A=="boolean"?R="b":typeof A=="string"?R="s":A instanceof Date?(R="d",i.cellDates||(R="n",A=datenum(A)),j=i.dateNF||table_fmt[14]):A===null&&i.nullError&&(R="e",A=0),d?(d.t=R,d.v=A,delete d.w,delete d.R,j&&(d.z=j)):l[O]=d={t:R,v:A},j&&(d.z=j))})}),m.e.c=Math.max(m.e.c,f+_.length-1);var E=encode_row(u);if(o)for(S=0;S<_.length;++S)l[encode_col(S+f)+E]={t:"s",v:_[S]};return l["!ref"]=encode_range(m),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 m=l.current.getBoundingClientRect(),g=300,_=100;let S=m.bottom+window.scrollY+8,E=m.left+window.scrollX;const b=window.innerWidth,T=window.innerHeight;E+g>b&&(E=b-g-8),m.bottom+_>T&&(S=m.top+window.scrollY-_-8),o({top:S,left:E}),n(!0)},d=()=>n(!1);return jsxRuntimeExports.jsxs("span",{className:"truncated-text-with-tooltip",ref:l,onMouseEnter:p,onMouseLeave:d,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,d,m,g,_,S,E,b,T,C,A,R,j,O,I,M;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:((d=e[n])==null?void 0:d.tooltip)||"","aria-label":((m=e[n])==null?void 0:m.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":((S=e[n])==null?void 0:S.tooltip)||"This field is required. Click to enter a value.",children:[jsxRuntimeExports.jsx("span",{className:"table-new-row-warning-message",children:((E=e[n])==null?void 0:E.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:N=>{var D,F;return(F=(D=e[n])==null?void 0:D.onselect)==null?void 0:F.call(D,N)},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:N=>{var D;return(D=e[n])==null?void 0:D.onchange(N)},value:((C=e[n])==null?void 0:C.value)||"",showError:!1,disabled:((A=e[n])==null?void 0:A.disabled)??!1}):f==="number-input"?jsxRuntimeExports.jsx(CEInputBox,{type:"number",onChange:N=>{var D;return(D=e[n])==null?void 0:D.onchange(N)},value:((R=e[n])==null?void 0:R.value)||"",showError:!1,disabled:((j=e[n])==null?void 0:j.disabled)??!1}):f==="drop-down-input"?jsxRuntimeExports.jsx(CEDynamicSelectField,{label:"",value:((O=e[n])==null?void 0:O.value)||"",onChange:N=>{var D;(D=e[n])==null||D.onchange(N.target.value)},options:((I=e[n])==null?void 0:I.options)||[],showPlaceholder:!0,placeholderText:""}):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(((M=e[n])==null?void 0:M.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:d="range",defaultValue:m,disabled:g=!1,minDate:_="",defaultFloat:S=!0})=>{const[E,b]=React.useState(""),[T,C]=React.useState(""),[A,R]=React.useState(()=>!!S),[j,O]=React.useState(""),I=_?new Date(_).toISOString().split("T")[0]:void 0,M=()=>R(!0),N=z=>{!z.currentTarget.value&&!E&&!T&&R(!1)},D=(z,W)=>{if(i==null||i({startDate:z||"",endDate:W||""}),z&&!W||!z&&W){O("Both start and end dates must be selected");return}if(z&&W&&new Date(W)<new Date(z)){O("End date must be after or equal to start date");return}O("")},F=z=>{if(!z)return z;const W=z.split("-"),L=W[0].slice(0,4),B=W.slice(1);return B.length?`${L}-${B.join("-")}`:L};React.useEffect(()=>{m&&(m.startDate&&b(F(m.startDate)),m.endDate&&C(F(m.endDate)))},[m]);const q=z=>{const W=F(z.target.value);b(W),D(W,T)},V=z=>{const W=F(z.target.value);C(W),D(E,W)},G=!!(A||E||T),ee=getSizeStyle$1(o),X=({text:z,float:W,showTooltip:L=!0})=>jsxRuntimeExports.jsxs("label",{className:`floating-label-box${W?" float":""}`,children:[jsxRuntimeExports.jsxs("span",{className:"label-text",children:[z,n&&jsxRuntimeExports.jsx("span",{className:"required-star",children:"*"})]}),t&&L&&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:d==="single"?jsxRuntimeExports.jsxs("div",{className:"field-box ",style:ee,children:[jsxRuntimeExports.jsx("input",{type:"date",value:E,name:p,min:I,disabled:g,onChange:z=>{const W=F(z.target.value);b(W),i==null||i({startDate:W,endDate:""})},onFocus:M,onBlur:N}),jsxRuntimeExports.jsx(X,{text:e,float:G,showTooltip:!0})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"field-box ",style:ee,children:[jsxRuntimeExports.jsx("input",{type:"date",value:E,name:p?`${p}-from`:void 0,onChange:q,onFocus:M,onBlur:N,disabled:g}),jsxRuntimeExports.jsx(X,{text:"From",float:!0,showTooltip:!0})]}),jsxRuntimeExports.jsx("span",{className:"range-separator centered",children:"to"}),jsxRuntimeExports.jsxs("div",{className:"field-box ",style:ee,children:[jsxRuntimeExports.jsx("input",{type:"date",value:T,name:p?`${p}-to`:void 0,onChange:V,onFocus:M,onBlur:N,disabled:g}),jsxRuntimeExports.jsx(X,{text:"To",float:!0,showTooltip:!1})]})]})}),j&&d!=="single"&&jsxRuntimeExports.jsx("div",{className:"error-text",children:j})]})},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))},d=[];for(let m=l;m<u;m++)d.push(jsxRuntimeExports.jsx("button",{className:`pagination-page${e===m?" active":""}`,onClick:()=>n(m),disabled:e===m,children:m+1},m));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:"..."}),d,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)},style:{marginLeft:"8px"},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:d,isAddButtonRequired:m,isEditButtonRequired:g,isDeleteButtonRequired:_,isApproveButtonRequired:S,isReassignButtonRequired:E,isCancelButtonRequired:b,isExportAllToExcel:T,handleEditClick:C,handleAddClick:A,handleDeleteClick:R,handleApproveClick:j,handleReassignClick:O,handleCancelClick:I,noOfPagesPerPage:M,clickableColumns:N,conditionalClickableColumns:D,clickableCellPredicate:F,handleCellClick:q,onReload:V,showDownloadIcon:G=!0,downloadOptions:ee,showRefreshIcon:X=!0,showFullViewIcon:z=!0,showColumnVisibilityIcon:W=!0,showSortIcon:L=!0,showFilterIcon:B=!0,defaultSortConfig:U,onDataUpdate:K,isOverrideCSS:H,showPagination:Y=!0,shouldResetSearchOnDataChange:J,pageSizeOptions:te=[10,20,50,100],handleSelectedRows:le,rowsSelected:be,selectionKey:me="id",onPageChange:fe})=>{const[pe,ye]=React.useState({}),[Q,Se]=React.useState([]),[ce,$e]=React.useState([]),[Ie,Pe]=React.useState(!1),[Fe,He]=React.useState(null),[We,ze]=React.useState(new Set),[ke,Ye]=React.useState(null),[Ge,Xe]=React.useState(!1),[Je,Ze]=React.useState(""),[rt,ft]=React.useState(null),[ot,ct]=React.useState("contains"),[mt,it]=React.useState(""),[Ke,pt]=React.useState({}),[st,at]=React.useState(0),[nt,At]=React.useState(M??10),[St,kt]=React.useState(new Set),[xt,yt]=React.useState(""),[wt,_t]=React.useState(!1),[ht,Be]=React.useState(new Set),[lt,bt]=React.useState([]),[Tt,Lt]=React.useState(null),Pt=React.useRef(null),Bt=React.useRef(null),qt=React.useRef(null),jt=React.useRef(null),[Z,ae]=React.useState(new Set),[ne,ie]=React.useState([]),[oe,se]=React.useState(!1),[xe,Te]=React.useState(null),[ge,_e]=React.useState(!1),[Ee,Ce]=React.useState(!0),Oe=React.useRef([]),Ne=()=>_e(!0),Ae=()=>_e(!1),je=ue=>{if(at(ue),typeof fe=="function")try{fe(ue)}catch{}};React.useEffect(()=>{if(typeof fe=="function")try{fe(st)}catch{}},[st]);const De=(ue,he)=>{if(typeof me=="function")try{const de=me(ue);if(de!=null)return de}catch{}else if(typeof me=="string"&&ue&&ue[me]!==void 0)return ue[me];if(he!==void 0)return`__row_${he}`};React.useEffect(()=>{if(typeof le=="function"){const ue=Array.from(We),he=ue.map(de=>{if(typeof de=="string"&&de.startsWith("__row_")){const we=parseInt(de.slice(6),10);return!isNaN(we)&&we>=0&&we<Q.length?Q[we]:void 0}return(ce||Q||[]).find(we=>{const Re=De(we);return Re!==void 0&&(Re===de||String(Re)===String(de))})}).filter(Boolean);try{le.length===1?le({ids:ue,rows:he}):le(he)}catch{try{le(he)}catch{}}}},[We,Q,me]),React.useEffect(()=>{if(!be)return;const ue=Array.from(be),he=ue.every(we=>typeof we=="number"&&we>=0&&we<Q.length),de=new Set(ue.map(we=>{if(he){const Re=Q[we-1];return De(Re,we)??`__row_${we}`}return we}));((we,Re)=>!(we.size!==Re.size||!Array.from(we).every(Me=>Re.has(Me))))(de,We)||ze(de)},[be,Q,me]),React.useEffect(()=>{if(t&&Array.isArray(t)){const ue=stripReactElements(Oe.current),he=stripReactElements(t),de=JSON.stringify(ue)!==JSON.stringify(he);if(t&&Array.isArray(t)&&de){let ve=[...t];if(U){const{column:we,direction:Re}=U;ve.sort((Me,Le)=>{const qe=Me[we],Ue=Le[we],Ve=new Date(qe),et=new Date(Ue),dt=!isNaN(Ve.getTime()),Nt=!isNaN(et.getTime());if(dt&&Nt)return Re==="asc"?Ve.getTime()-et.getTime():et.getTime()-Ve.getTime();const Ft=String(qe||"").toLowerCase(),$t=String(Ue||"").toLowerCase();return Ft.localeCompare($t)}),Re==="desc"&&ve.reverse(),Te(U)}if(Se(ve),$e(ve),Ce(!1),J?(yt(""),pt({})):Et(),p){const we={},Re=Array.isArray(p)?p:[p];ve.forEach((Me,Le)=>{const qe=Me.id??`__row_${Le}`;for(const Ue of Re)if(Me[Ue]===!0){we[qe]={columnId:Ue,rowData:Me};break}}),Qe(we)}Oe.current=t}}else Ce(!0)},[t,U,p]),React.useEffect(()=>{if(Q.length>0){const ue=(n??[]).map(ve=>({id:ve.id,label:ve.label??ve.id,tooltip:ve.tooltip,shouldDisplay:ve.shouldDisplay??!0,shouldVisible:ve.shouldVisible??!0,width:ve.width,elementType:ve.elementType,required:ve.required??!1})),he=Object.keys(Q[0]||{}).map(ve=>({id:ve,label:ve.charAt(0).toUpperCase()+ve.slice(1),shouldDisplay:!0,shouldVisible:!0})),de=ue.length>0?ue:he;if(ie(de),!oe){const ve=de.filter(Re=>Re.shouldDisplay!==!1).map(Re=>Re.id),we=de.filter(Re=>Re.shouldVisible!==!1).map(Re=>Re.id);Be(new Set(ve)),bt(we),se(!0)}}},[Q,n]);const[tt,Qe]=React.useState({}),ut=({rowIndex:ue,columnId:he,rowData:de})=>{const ve=Array.isArray(p)?p:[p],we={...de,...Object.fromEntries(ve.map(Le=>[Le,Le===he]))},Re=de.id??`__row_${ue}`;Qe(Le=>({...Le,[Re]:{columnId:he,rowData:we}}));const Me=Q.map((Le,qe)=>(Le.id??`__row_${qe}`)===Re?{...Le,...Object.fromEntries(ve.map(Ve=>[Ve,Ve===he]))}:Le);Se(Me),$e(Me),K&&K({fullData:Me,updatedRow:we})},Ct=ue=>{var ve;const he=Q.findIndex(we=>we===ue),de=ue.id??`__row_${he}`;return((ve=tt[de])==null?void 0:ve.columnId)||""};React.useEffect(()=>{const ue=Math.ceil(Q.length/nt);st>0&&st>=ue&&at(0)},[Q.length,nt]);const vt=React.useMemo(()=>{const ue=st*nt,he=ue+nt;return Q.slice(ue,he)},[Q,st,nt]),Rt=()=>{yt("");const ue=Ot(ce,Ke,"");Se(ue)},Et=()=>{const ue=Ot(ce,Ke,xt);Se(ue),at(0)},It=ue=>{const he=new Set(ht);he.has(ue)?he.size>1&&he.delete(ue):he.add(ue),Be(he)},gt=(ue,he=null)=>{const de=he?`${ue}-${he}`:`${ue}`,ve=new Set(St);ve.has(de)?ve.delete(de):(Array.from(ve).forEach(we=>{we.startsWith(`${ue}`)&&ve.delete(we)}),ve.add(de)),kt(ve)},Gt=ue=>{Ye(ke===ue?null:ue)};React.useEffect(()=>{const ue=he=>{var Me,Le,qe,Ue;if(!ke)return;const de=he.target,ve=((Me=Bt.current)==null?void 0:Me.contains(de))??!1,we=((Le=qt.current)==null?void 0:Le.contains(de))??!1,Re=((Ue=(qe=he.target)==null?void 0:qe.closest)==null?void 0:Ue.call(qe,".dropdown-trigger"))!=null;!ve&&!we&&!Re&&Ye(null)};return document.addEventListener("click",ue),()=>{document.removeEventListener("click",ue)}},[ke]),React.useMemo(()=>new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}),[]);const Zt=(ue,he)=>{if(ue==null)return 1;if(he==null)return-1;const de=new Date(ue),ve=new Date(he);return!isNaN(de.getTime())&&!isNaN(ve.getTime())?de.getTime()-ve.getTime():!isNaN(Number(ue))&&!isNaN(Number(he))?Number(ue)-Number(he):String(ue).localeCompare(String(he),void 0,{numeric:!0,sensitivity:"base"})},Wt=(ue,he,de)=>{const ve=getColumnValue(ue==null?void 0:ue[de]),we=getColumnValue(he==null?void 0:he[de]);return Zt(ve,we)},Jt=(ue,he)=>{for(let de=1;de<ue.length;de++)if(Wt(ue[de-1],ue[de],he)>0)return!1;return!0},Qt=(ue,he)=>{for(let de=1;de<ue.length;de++)if(Wt(ue[de-1],ue[de],he)<0)return!1;return!0},Ot=(ue,he=Ke,de=xt)=>{let ve=[...ue];if(de&&de.trim()){const we=de.toLowerCase();ve=ve.filter(Re=>Object.entries(Re).some(([Me,Le])=>ht.has(Me)?String(Le??"").toLowerCase().includes(we):!1))}return Object.entries(he||{}).forEach(([we,Re])=>{const{value:Me,operator:Le}=Re,qe=(Me??"").toLowerCase();ve=ve.filter(Ue=>{const Ve=Ue[we],et=String(getColumnValue(Ve)??"").toLowerCase();switch((Le||"").toString()){case"contains":return et.includes(qe);case"equals":return et===qe;case"startsWith":return et.startsWith(qe);case"endsWith":return et.endsWith(qe);case"does not contain":return!et.includes(qe);case"does not equal":return et!==qe;case"is any of":return Me.split(",").map(dt=>dt.trim().toLowerCase()).includes(et);case"Date Range":case"dateRange":{if(!Me)return!0;const dt=Me.split(" - ").map(cr=>cr.trim());if(dt.length!==2)return!1;const Nt=new Date(dt[0]),Ft=new Date(dt[1]);if(isNaN(Nt.getTime())||isNaN(Ft.getTime())||(Nt.setHours(0,0,0,0),Ft.setHours(23,59,59,999),!Ve))return!1;const $t=new Date(Ve);return isNaN($t.getTime())?!1:($t.setHours(0,0,0,0),$t>=Nt&&$t<=Ft)}default:return!0}})}),ve},er=ue=>{if(!ce||ce.length===0)return;const he=Object.keys(Ke).length>0,de=xt.trim().length>0,ve=he||de?Q:ce;let we;(xe==null?void 0:xe.column)===ue?we=xe.direction==="asc"?"desc":"asc":Jt(ve,ue)?we="desc":(Qt(ve,ue),we="asc"),Te({column:ue,direction:we});const Re=[...ce].sort((Le,qe)=>{const Ue=Wt(Le,qe,ue);return we==="asc"?Ue:-Ue});$e(Re);const Me=Ot(Re);Se(Me),at(0)},Kt=()=>{if(!Je){Xe(!1),it(""),Ze(""),at(0);return}if(ot==="Date Range")if(rt&&rt.startDate&&rt.endDate)Mt(Je,void 0,"Date Range");else{Xe(!0);return}else mt&&mt.trim()!==""&&Mt(Je,mt,ot);Xe(!1),it(""),Ze(""),ft(null),at(0)},Mt=(ue,he,de)=>{if(de==="Date Range"&&rt&&ue){const{startDate:ve,endDate:we}=rt;if(!ve||!we){console.warn("Invalid date range:",ve,we);return}const Re=new Date(ve);Re.setHours(0,0,0,0);const Me=new Date(we);Me.setHours(23,59,59,999);const Le=ce.filter(qe=>{const Ue=qe[ue];if(!Ue)return!1;const Ve=new Date(Ue);return isNaN(Ve.getTime())?!1:(Ve.setHours(0,0,0,0),Ve>=Re&&Ve<=Me)});Se(Le),at(0),pt({...Ke,[ue]:{value:`${ve} - ${we}`,operator:"Date Range"}}),Xe(!1),Ye(null),ft(null);return}if(ue){const ve={...Ke};if(he===""&&(de==="contains"||de==="equals")){Ze(ue),ct(de||ot),it(""),Xe(!0);return}else he&&he.trim()!==""?ve[ue]={value:he,operator:de||ot}:delete ve[ue];pt(ve);let we=[...ce];Object.entries(ve).forEach(([Re,Me])=>{const{value:Le,operator:qe}=Me;we=we.filter(Ue=>{const Ve=String(getColumnValue(Ue[Re])||"").toLowerCase(),et=Le.toLowerCase();switch(qe){case"contains":return Ve.includes(et);case"equals":return Ve===et;case"startsWith":return Ve.startsWith(et);case"endsWith":return Ve.endsWith(et);case"does not contain":return!Ve.includes(et);case"does not equal":return Ve!==et;case"is any of":return Le.split(",").map(dt=>dt.trim().toLowerCase()).includes(Ve);default:return!0}})}),Se(we),at(0),Xe(!1)}},tr=ue=>{ue.key==="Enter"&&Mt()};useEscapeKey(()=>{Ye(null),Xe(!1)});const Ut=(ue,he="")=>{const de=ve=>{const we=new Set(Z);we.has(ve)?we.delete(ve):we.add(ve),ae(we)};if(Array.isArray(ue)){const ve=Array.from(new Set(ue.reduce((we,Re)=>typeof Re=="object"&&Re!==null?[...we,...Object.keys(Re)]:we,[])));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:ve.map(we=>jsxRuntimeExports.jsx("th",{children:we.charAt(0).toUpperCase()+we.slice(1)},we))})}),jsxRuntimeExports.jsx("tbody",{children:ue.map((we,Re)=>jsxRuntimeExports.jsx("tr",{children:ve.map(Me=>jsxRuntimeExports.jsx("td",{children:typeof we[Me]=="object"&&we[Me]!==null?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>de(`${he}-${Re}-${Me}`),children:Z.has(`${he}-${Re}-${Me}`)?"▼":"▶"}),Z.has(`${he}-${Re}-${Me}`)&&Ut(we[Me],`${he}-${Re}-${Me}`)]}):String(we[Me]||"")},`${he}-${Re}-${Me}`))},`${he}-${Re}`))})]})})})}else if(typeof ue=="object"&&ue!==null)return jsxRuntimeExports.jsx("div",{className:"nested-object",children:jsxRuntimeExports.jsxs("table",{className:"custom-table nested",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"table-header-cell",children:"Property"}),jsxRuntimeExports.jsx("th",{className:"table-header-cell",children:"Value"})]})}),jsxRuntimeExports.jsx("tbody",{children:Object.entries(ue).map(([ve,we])=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"table-cell",children:jsxRuntimeExports.jsx("strong",{children:ve})}),jsxRuntimeExports.jsx("td",{className:"table-cell",children:typeof we=="object"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>de(`${he}-${ve}`),children:Z.has(`${he}-${ve}`)?"▼":"▶"}),Z.has(`${he}-${ve}`)&&Ut(we,`${he}-${ve}`)]}):String(we)})]},`${he}-${ve}`))})]})});return jsxRuntimeExports.jsx("span",{children:String(ue)})},Xt=ue=>{var he;if(ue){const de=(he=ue.parentElement)==null?void 0:he.querySelector(".dropdown-trigger");if(!de)return;const ve=de.getBoundingClientRect(),we=window.innerHeight,Re=window.innerWidth,Me=ue.offsetHeight,Le=ue.offsetWidth,qe=ve.bottom+Me>we,Ue=ve.left+Le>Re,Ve=ve.left-Le<0;let et,dt;qe?(et=ve.top-Me,ue.classList.add("adjust-top")):(et=ve.bottom,ue.classList.remove("adjust-top")),Ue?(dt=ve.right-Le,ue.classList.add("adjust-left"),ue.classList.remove("adjust-right")):Ve?(dt=ve.left,ue.classList.add("adjust-right"),ue.classList.remove("adjust-left")):(dt=ve.left,ue.classList.remove("adjust-left"),ue.classList.remove("adjust-right")),ue.style.top=`${et}px`,ue.style.left=`${dt}px`,ue.classList.add("dropdown-fixed-position")}};React.useEffect(()=>{const ue=he=>{Ge&&Pt.current&&!Pt.current.contains(he.target)&&Xe(!1)};return document.addEventListener("mousedown",ue),()=>{document.removeEventListener("mousedown",ue)}},[Ge]),React.useEffect(()=>()=>{},[ke]),React.useEffect(()=>{const ue=he=>{wt&&jt.current&&!jt.current.contains(he.target)&&_t(!1)};return document.addEventListener("mousedown",ue),()=>{document.removeEventListener("mousedown",ue)}},[wt]);const rr=(ue,he)=>{ue.preventDefault();const de=ue.pageX,ve=pe[he]||150,we=Me=>{const Le=Math.max(100,ve+(Me.pageX-de));ye(qe=>({...qe,[he]:Le}))},Re=()=>{document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",Re)};document.addEventListener("mousemove",we),document.addEventListener("mouseup",Re)},Ht=(ue,he,de)=>{var we;const ve=String(he??"");if(typeof F=="function")try{if(F(de??{},ue))return!0}catch{}return N!=null&&N.includes(ue)?D!=null&&D[ue]?D[ue].includes(ve):!0:!!((we=D==null?void 0:D._global_)!=null&&we.includes(ve))},nr=(ue,he)=>{Ht(he,ue[he],ue)&&q&&q(ue,he)},Vt=vt.some(ue=>Array.from(ht).some(he=>Array.isArray(ue[he])&&ue[he].length>0&&ue[he].some(de=>typeof de=="object"&&de!==null))),ir=ue=>{const he=/[\\/:*?"<>|]/g;return ue.replace(he,"").trim()},ar=ue=>{try{const he=window.prompt("Enter file name",ue);if(!he)return ue;const de=ir(he);return de.length===0?ue:de.endsWith(".xlsx")?de:`${de}.xlsx`}catch{return ue}},zt=(ue=!1)=>{const he=ne.filter(qe=>ht.has(qe.id)),de=ue||!(Q&&Q.length>0)?ce:Q,ve=de.map(qe=>he.reduce((Ue,Ve)=>(Ue[Ve.label||Ve.id]=getColumnValue(qe[Ve.id]),Ue),{})),we=utils.json_to_sheet(ve),Re=utils.book_new();utils.book_append_sheet(Re,we,"Data");const Le=ar(ue||de===ce?"all-data-export.xlsx":"filtered-search-export.xlsx");writeFileSync(Re,Le)},or=()=>jsxRuntimeExports.jsxs("div",{className:H?"esign-table-container":"table-container",children:[jsxRuntimeExports.jsx("div",{className:"table-scroll-container",children:ht.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:[Vt&&jsxRuntimeExports.jsx("th",{className:"expand-column"}),i&&jsxRuntimeExports.jsx("th",{className:"checkbox-column",children:o?jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:We.size>0,onChange:()=>{ze(new Set)}}):jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:vt.length>0&&vt.every((ue,he)=>{const de=De(ue,st*nt+he);return de!==void 0&&We.has(de)}),onChange:ue=>{const he=new Set(We),de=ce&&ce.length>0?ce:Q||[],ve=vt.map(Re=>{const Me=De(Re);if(Me!==void 0)return Me;const Le=de.indexOf(Re);return Le>=0?`__row_${Le}`:void 0}).filter(Re=>Re!==void 0),we=new Set(ve);if(ue){if(ze(new Set(we)),typeof le=="function"){const Re=Array.from(we),Me=Re.map(Le=>de.find(qe=>{const Ue=De(qe);return Ue!==void 0&&(Ue===Le||String(Ue)===String(Le))})).filter(Boolean);try{le.length===1?le({ids:Re,rows:Me,toggledId:void 0,toggledRow:void 0,toggledChecked:!0}):le(Me)}catch{try{le(Me)}catch{}}}}else{const Re=new Set(he);if(ve.forEach(Me=>Re.delete(Me)),ze(Re),typeof le=="function"){const Me=ve,Le=Me.map(qe=>de.find(Ue=>{const Ve=De(Ue);return Ve!==void 0&&(Ve===qe||String(Ve)===String(qe))})).filter(Boolean);try{le.length===1?le({ids:Array.from(Re),rows:Array.from(Re).map(qe=>de.find(Ue=>{const Ve=De(Ue);return Ve!==void 0&&(Ve===qe||String(Ve)===String(qe))})).filter(Boolean),unselectedIds:Me,unselectedRows:Le,toggledId:void 0,toggledRow:void 0,toggledChecked:!1}):le(Array.from(Re).map(qe=>de.find(Ue=>{const Ve=De(Ue);return Ve!==void 0&&(Ve===qe||String(Ve)===String(qe))})).filter(Boolean))}catch{try{le([])}catch{}}}}}})}),lt.filter(ue=>ne.find(de=>de.id===ue)&&ht.has(ue)).map(ue=>{const he=ne.find(de=>de.id===ue);return he?jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:pe[he.id]?`${pe[he.id]}px`:he.width||"150px",minWidth:"80px",maxWidth:"600px"},children:jsxRuntimeExports.jsxs("div",{className:"column-header",children:[jsxRuntimeExports.jsxs("span",{className:"column-label-with-info",children:[he.label,he.tooltip&&jsxRuntimeExports.jsx("img",{src:InfoIcon,alt:"info",title:he.tooltip,width:14,height:14,className:"info-icon"})]}),jsxRuntimeExports.jsxs("div",{className:"column-actions",children:[L&&jsxRuntimeExports.jsx("img",{src:SortIcon,alt:"Sort",title:"Sort",width:14,height:14,onClick:()=>er(he.id),style:{cursor:"pointer",transition:"transform 0.2s ease-in-out",transform:(xe==null?void 0:xe.column)===he.id?xe.direction==="asc"?"rotate(0deg)":"rotate(180deg)":"none",filter:(xe==null?void 0:xe.column)===he.id?"brightness(0.6)":"none"}}),B&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:he.id===ke?Bt:null,children:[jsxRuntimeExports.jsx("span",{className:`dropdown-trigger ${Ke[he.id]?"filter-active":""}`,onClick:de=>{de.stopPropagation(),Gt(he.id)},title:Ke[he.id]?`Filter: ${Ke[he.id].operator} "${Ke[he.id].value}"`:"Filter options",children:"⋮"}),ke===he.id&&jsxRuntimeExports.jsxs("div",{className:"dropdown-menu",ref:de=>{de&&setTimeout(()=>Xt(de),0)},children:[jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Ze(he.id),Xe(!0),Ye(null)},children:"Filter"}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Mt(he.id,"","contains"),Ye(null)},children:"Contains..."}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Mt(he.id,"","equals"),Ye(null)},children:"Equals..."}),Ke[he.id]&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{const de={...Ke};delete de[he.id],pt(de),it(""),Ze("");const ve=Ot(ce,de,xt);Se(ve),at(0),Ye(null)},children:"Clear Filter"}),Object.keys(Ke).length>0&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{pt({}),it(""),Ze(""),ft(null),yt(""),Se(ce),at(0),Ye(null)},children:"Clear All Filters"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"column-resizer",onMouseDown:de=>rr(de,he.id)})]})},he.id):null}),(g||E||b||S||_||m)&&jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:"150px",textAlign:"center"},children:"Action"})]}),Ie&&jsxRuntimeExports.jsxs("tr",{className:"filter-row",children:[Vt&&jsxRuntimeExports.jsx("td",{}),i&&jsxRuntimeExports.jsx("td",{}),lt.filter(ue=>ne.find(de=>de.id===ue)&&ht.has(ue)).map(ue=>{var de;const he=ne.find(ve=>ve.id===ue);return he?jsxRuntimeExports.jsxs("td",{style:{position:"relative"},children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:`Search ${he.label}`,value:((de=Ke[he.id])==null?void 0:de.value)||"",onChange:ve=>{const we=ve.target.value;it(we),Ze(he.id);const Re={...Ke};we===""?delete Re[he.id]:Re[he.id]={value:we,operator:"contains"},pt(Re);const Me=Ot(ce,Re,xt);Se(Me),at(0)},className:"filter-input-with-clear",style:{paddingRight:"28px"}}),Ke[he.id]&&jsxRuntimeExports.jsx("span",{className:"filter-clear-icon-inside",onClick:()=>{const ve={...Ke};delete ve[he.id],pt(ve),it(""),Ze("");const we=Ot(ce,ve,xt);Se(we),at(0)},title:"Clear",children:"×"})]},`filter-${he.id}`):null}),(g||E||b||S||_||m)&&jsxRuntimeExports.jsx("td",{})]})]}),jsxRuntimeExports.jsx("tbody",{children:vt.length===0?jsxRuntimeExports.jsx("tr",{className:"no-records-row",children:jsxRuntimeExports.jsx("td",{colSpan:(Vt?1:0)+(i?1:0)+Array.from(ht).length+(g||E||b||S||_||m?1:0),className:"no-records-cell",children:xt.trim()||Object.keys(Ke).length>0?"No records found for the search criteria":"No Data found"})}):vt.map((ue,he)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("tr",{onMouseEnter:()=>He(st*nt+he),onMouseLeave:()=>He(null),className:(ue.isNewRow?"table-new-row":he%2===0?`table-row-even ${ue.hasError?"row-error":ue.isModified?"row-invalid":""}`:`table-row-odd ${ue.hasError?"row-error":ue.isModified?"row-invalid":""}`)+(Fe===st*nt+he?" row-hovered":""),title:ue.rowMessage||"",children:[Vt&&jsxRuntimeExports.jsx("td",{className:"expand-column",children:Array.from(ht).some(de=>Array.isArray(ue[de])&&ue[de].length>0&&ue[de].some(ve=>typeof ve=="object"&&ve!==null))&&jsxRuntimeExports.jsx("button",{className:"expand-button",onClick:()=>gt(he),children:Array.from(St).some(de=>de.startsWith(`${he}`))?"▼":"▶"})}),i&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:(()=>{const de=De(ue,st*nt+he);return de!==void 0&&We.has(de)})(),onChange:de=>{const ve=De(ue,st*nt+he);if(ve===void 0)return;let we;o?(we=de?new Set([ve]):new Set,ze(we)):(we=new Set(We),de?we.add(ve):we.delete(ve),ze(we));const Re=ce&&ce.length>0?ce:Q||[],Me=Array.from(we),Le=Me.map(Ue=>{if(typeof Ue=="string"&&Ue.startsWith("__row_")){const Ve=parseInt(Ue.slice(6),10);return!isNaN(Ve)&&Ve>=0&&Ve<Re.length?Re[Ve]:void 0}return Re.find(Ve=>{const et=De(Ve);return et!==void 0&&(et===Ue||String(et)===String(Ue))})}).filter(Boolean),qe={ids:Me,rows:Le,toggledId:ve,toggledRow:ue,toggledChecked:!!de};if(typeof le=="function")try{le.length===1?le(qe):le(Le)}catch{try{le(Le)}catch{}}}})}),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(he))==="selected",onChange:()=>u==null?void 0:u({rowIndex:he,columnId:"selected",rowData:ue})})})}),lt.filter(de=>ne.find(we=>we.id===de)&&ht.has(de)).map(de=>{const ve=ne.find(we=>we.id===de);return ve?jsxRuntimeExports.jsx("td",{style:{width:pe[ve.id]?`${pe[ve.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},className:`table-cell ${Ht(ve.id,ue[ve.id],ue)?"ce-clickable-cell":""}`,onClick:()=>{Ht(ve.id,ue[ve.id],ue)?nr(ue,ve.id):Array.isArray(ue[ve.id])&&ue[ve.id].length>0&&gt(he,ve.id)},children:ue.isNewRow?jsxRuntimeExports.jsx(AddNewRowCell,{row:ue,column:ve,colId:de}):React.isValidElement(ue[ve.id])?ue[ve.id]:(Array.isArray(p)?p.includes(ve.id):p===ve.id)?jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:ve.id,checked:Ct(ue)===ve.id,onChange:()=>ut({rowIndex:he,columnId:ve.id,rowData:ue})})}):Array.isArray(ue[ve.id])?`${ue[ve.id].length}`:typeof ue[ve.id]=="object"&&ue[ve.id]!==null?Object.entries(ue[ve.id]).map(([we,Re])=>`${we}: ${Re}`).join(", "):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(ue[ve.id]??"")})},ve.id):null}),(g||E||b||S||_||m)&&jsxRuntimeExports.jsx("td",{className:"table-cell",style:{textAlign:"center"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px",flexWrap:"wrap"},children:[g&&jsxRuntimeExports.jsx("img",{src:Edit,alt:"Edit",title:"Edit",width:20,height:20,style:{cursor:"pointer"},onClick:()=>C==null?void 0:C(ue,he)}),E&&jsxRuntimeExports.jsx("img",{src:Reassign,alt:"Reassign",width:20,height:20,style:{cursor:"pointer"},onClick:O}),b&&jsxRuntimeExports.jsx("img",{src:Cancel,alt:"Cancel",width:20,height:20,style:{cursor:"pointer"},onClick:()=>I==null?void 0:I(ue,he)}),S&&jsxRuntimeExports.jsx("img",{src:Approve,alt:"Approve",width:20,height:20,style:{cursor:"pointer"},onClick:()=>j==null?void 0:j(ue,he)}),_&&jsxRuntimeExports.jsx("img",{src:Delete,alt:"Delete",width:20,height:20,style:{cursor:"pointer"},onClick:()=>R==null?void 0:R(ue,he)}),m&&jsxRuntimeExports.jsx("img",{src:Add,alt:"Add",width:20,height:20,style:{cursor:"pointer"},onClick:A})]})})]}),Array.from(St).map(de=>{const[ve,we]=de.split("-");if(Number(ve)===he){const Re=we?{[we]:ue[we]}:Object.keys(ue).filter(Me=>Array.isArray(ue[Me])||typeof ue[Me]=="object").reduce((Me,Le)=>({...Me,[Le]:ue[Le]}),{});return jsxRuntimeExports.jsx("tr",{className:"expanded-row",children:jsxRuntimeExports.jsx("td",{colSpan:ht.size+2,className:"expanded-cell",children:Object.entries(Re).map(([Me,Le],qe)=>jsxRuntimeExports.jsxs("div",{className:`expanded-section ${qe%2===0?"expanded-section-even":"expanded-section-odd"}`,style:{backgroundColor:qe%2===0?"#e8f5e9":"#e3f2fd",padding:"10px",marginBottom:"10px",borderRadius:"5px"},children:[jsxRuntimeExports.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:Me.charAt(0).toUpperCase()+Me.slice(1)}),Ut(Le)]},Me))})},`expanded-${de}`)}return null})]},he))})]})}),Y&&jsxRuntimeExports.jsxs("div",{className:"pagination-container",children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"40px"},children:[jsxRuntimeExports.jsx(EntriesInfo,{dataLength:Q.length,currentPage:st,rowsPerPage:nt}),jsxRuntimeExports.jsx(RowsPerPageSelector,{rowsPerPage:nt,setRowsPerPage:At,setCurrentPage:je,pageSizeOptions:te})]}),jsxRuntimeExports.jsx(PaginationControls,{currentPage:st,totalPages:Math.ceil(Q.length/nt),setCurrentPage:je})]}),Ge&&jsxRuntimeExports.jsx("div",{className:"filter-modal",children:jsxRuntimeExports.jsxs("div",{className:"filter-modal-content",ref:Pt,onKeyDown:tr,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:()=>Xe(!1),children:"×"})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-body",children:[jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Column:"}),jsxRuntimeExports.jsx("select",{value:Je,onChange:ue=>Ze(ue.target.value),className:"filter-select","aria-label":"Filter column",title:"Select column to filter",children:ne.map(ue=>jsxRuntimeExports.jsx("option",{value:ue.id,children:ue.label},ue.id))})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Operator:"}),jsxRuntimeExports.jsxs("select",{value:ot,onChange:ue=>ct(ue.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"})]}),ot==="Date Range"&&jsxRuntimeExports.jsx("div",{style:{marginTop:"10px"},children:jsxRuntimeExports.jsx(CEDateRangePicker,{mode:"range",onChange:ue=>{ft({startDate:ue.startDate,endDate:ue.endDate})}})})]}),ot!=="Date Range"&&jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Value:"}),jsxRuntimeExports.jsx("input",{type:"text",value:mt,onChange:ue=>it(ue.target.value),placeholder:"Enter filter value",title:"Filter value",className:"filter-input",autoFocus:!0,onKeyDown:ue=>{ue.key==="Enter"&&Kt(),ue.key==="Escape"&&Xe(!1)}})]}),Object.keys(Ke).length>0&&jsxRuntimeExports.jsxs("div",{className:"active-filters-summary",children:[jsxRuntimeExports.jsx("div",{className:"active-filters-header",children:"Active Filters:"}),Object.entries(Ke).map(([ue,he])=>{const de=ne.find(ve=>ve.id===ue);return jsxRuntimeExports.jsxs("div",{className:"active-filter-item",children:[jsxRuntimeExports.jsxs("span",{children:[(de==null?void 0:de.label)||ue,": "]}),jsxRuntimeExports.jsx("span",{className:"filter-operator",children:he.operator}),jsxRuntimeExports.jsxs("span",{className:"filter-value",children:['"',he.value,'"']})]},ue)})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-footer",children:[jsxRuntimeExports.jsx(CEButton,{onClick:()=>{pt({}),Se(ce),at(0),Xe(!1)},className:"clear-filters-button",variant:"outlined",children:"Clear All"}),jsxRuntimeExports.jsx(CEButton,{onClick:Kt,className:"apply-filter-button",variant:"primary",children:"Apply Filter"})]})]})})]}),sr=()=>{V?(Ce(!0),Promise.resolve(V()).finally(()=>{pt({});try{const ue=ne.filter(de=>de.shouldDisplay!==!1).map(de=>de.id),he=ne.filter(de=>de.shouldVisible!==!1).map(de=>de.id);Be(new Set(ue)),bt(he),_t(!1)}catch{}Ce(!1)})):(Ce(!0),setTimeout(()=>{Se(t),$e(t),at(0),yt(""),it(""),Ze(""),pt({}),Te(null);try{const ue=ne.filter(de=>de.shouldDisplay!==!1).map(de=>de.id),he=ne.filter(de=>de.shouldVisible!==!1).map(de=>de.id);Be(new Set(ue)),bt(he),_t(!1)}catch{}Ce(!1)},300))},lr=ne.filter(ue=>ue.shouldVisible!==!1).every(ue=>ht.has(ue.id));return jsxRuntimeExports.jsxs("div",{className:`datatable-wrapper${ge?" 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:[d&&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 ue=!Ie;Pe(ue),ue||(pt({}),Se(ce),at(0),yt(""))}}),xt&&jsxRuntimeExports.jsx("button",{className:"search-cancel-button",onClick:()=>{yt(""),Rt()},children:"×"})]}),W&&jsxRuntimeExports.jsx("img",{src:ShowOrHideColumn,alt:"Columns",title:"Show/Hide Columns",width:20,height:20,style:{cursor:"pointer",fill:"#808080"},onClick:()=>_t(!0)}),Object.keys(Ke).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:()=>{pt({}),Se(ce),at(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:()=>zt(!0)}),X&&jsxRuntimeExports.jsx("img",{src:ReloadIcon,alt:"Reload",title:"Reload Data",width:20,height:20,className:"ce-reload-icon",style:{cursor:"pointer",fill:"#808080"},onClick:sr}),G&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:qt,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:ue=>{ue.stopPropagation(),ee&&ee.length>0?Gt("download"):zt()}}),(()=>{const ue=ee??[],he=ue.find(we=>we.usedefault===!0),de=ue.filter(we=>!we.usedefault);let ve=[];return ue.length>0?he?ve=[{label:he.label,onClick:()=>{he.forceAll?zt(!0):zt()}},...de]:ve=[...de]:ve=[],ke==="download"&&ve.length>0&&jsxRuntimeExports.jsx("div",{className:"dropdown-menu",ref:we=>{we&&setTimeout(()=>Xt(we),0)},children:ve.map((we,Re)=>jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:Me=>{Me.stopPropagation();try{we.onClick()}finally{Ye(null)}},children:we.label},Re))})})()]}),z&&jsxRuntimeExports.jsx("button",{className:"fullscreen-button",onClick:ge?Ae:Ne,title:ge?"Exit Full Screen":"Full Screen",children:ge?"⤫":"⤢"})]})]}),wt&&jsxRuntimeExports.jsx("div",{className:"column-modal",children:jsxRuntimeExports.jsxs("div",{className:"column-modal-content",ref:jt,children:[jsxRuntimeExports.jsx("div",{className:"column-modal-header",children:jsxRuntimeExports.jsx("button",{className:"modal-close-button",onClick:()=>_t(!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:lr,onChange:ue=>{Be(ue?new Set(ne.filter(he=>he.shouldVisible!==!1).map(he=>he.id)):new Set)}})})}),jsxRuntimeExports.jsx("div",{className:"column-list-container",children:lt.filter(ue=>ne.find(he=>he.id===ue&&he.shouldVisible!==!1)).map(ue=>{const he=ne.find(de=>de.id===ue);return he?jsxRuntimeExports.jsxs("div",{className:`column-item ${Tt===he.id?"dragging":""}`,draggable:!0,onDragStart:de=>{Lt(he.id),de.dataTransfer.effectAllowed="move",de.dataTransfer.setData("text/plain",he.id)},onDragEnd:()=>Lt(null),onDragOver:de=>{de.preventDefault(),de.dataTransfer.dropEffect="move"},onDragEnter:de=>{de.preventDefault(),de.currentTarget.classList.add("drag-over")},onDragLeave:de=>{de.currentTarget.classList.remove("drag-over")},onDrop:de=>{if(de.preventDefault(),de.currentTarget.classList.remove("drag-over"),Tt&&Tt!==he.id){const ve=[...lt],we=ve.indexOf(Tt),Re=ve.indexOf(he.id);we!==-1&&Re!==-1&&(ve.splice(we,1),ve.splice(Re,0,Tt),bt(ve))}},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:he.label??he.id,checked:ht.has(he.id),onChange:()=>It(he.id)})]},he.id):null})})]})}),Ee?jsxRuntimeExports.jsx(CESkeletonTable,{columns:ne.length||5,rows:nt||10}):or()]})},DateInputPart=({value:e,onChange:t,max:n,min:i,length:o,placeholder:l,className:u,onClick:f,id:p,name:d})=>{const m=React.useRef(null),g=E=>{const b=E.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 E;(E=m.current)==null||E.select()},S=()=>{e.length===1&&t(e.padStart(2,"0"))};return jsxRuntimeExports.jsx("input",{ref:m,type:"text",value:e,onChange:g,onFocus:_,onBlur:S,id:p,name:d,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,required:u=!1})=>{const[f,p]=React.useState(!1),[d,m]=React.useState(null),[g,_]=React.useState(new Date),[S,E]=React.useState(!1),[b,T]=React.useState({start:2020,end:2031}),[C,A]=React.useState("left"),[R,j]=React.useState(0),O=React.useRef(null),[I,M]=React.useState(i),[N,D]=React.useState(""),[F,q]=React.useState(""),[V,G]=React.useState(""),[ee,X]=React.useState(!0),[z,W]=React.useState({left:0,top:0}),[L,B]=React.useState("bottom"),U=()=>{p(!1),!N&&!F&&!V&&M(!1)};useEscapeKey(U),React.useEffect(()=>{if(n){const[ye,Q,Se]=n.split("/"),ce=new Date(`${Se}-${ye}-${Q}`);if(!isNaN(ce.getTime())){m(ce),_(ce),D(ye),q(Q),G(Se),X(!0);return}}m(null),D(""),q(""),G(""),X(!0),_(new Date)},[n]);const K=()=>{const ye=O.current;if(!ye)return;const Q=ye.getBoundingClientRect(),Se=window.scrollY||window.pageYOffset,$e=(window.innerHeight||document.documentElement.clientHeight)-Q.bottom,Ie=Q.top;$e<CALENDAR_HEIGHT_PX&&Ie>=CALENDAR_HEIGHT_PX?(B("top"),W({left:Q.left+window.scrollX,top:Q.top+Se-CALENDAR_HEIGHT_PX-GAP_PX})):(B("bottom"),W({left:Q.left+window.scrollX,top:Q.bottom+Se+GAP_PX}))},H=()=>{p(ye=>{const Q=!ye;if(Q){const Se=d||new Date;_(Se),N||D(String(Se.getMonth()+1).padStart(2,"0")),F||q(String(Se.getDate()).padStart(2,"0")),V||G(String(Se.getFullYear())),setTimeout(K,0)}return Q})};React.useEffect(()=>{if(!f)return;const ye=()=>K(),Q=()=>K();return window.addEventListener("scroll",ye,!0),window.addEventListener("resize",Q),()=>{window.removeEventListener("scroll",ye,!0),window.removeEventListener("resize",Q)}},[f]),React.useEffect(()=>{const ye=Q=>{const Se=Q.target;if(!O.current)return;const ce=document.getElementById("ce-datepicker-portal"),$e=O.current.contains(Se),Ie=ce?ce.contains(Se):!1;!$e&&!Ie&&U()};return document.addEventListener("mousedown",ye),()=>document.removeEventListener("mousedown",ye)},[N,F,V]);const Y=ye=>{const Q=new Date(g.getFullYear(),g.getMonth(),ye);m(Q),_(Q);const Se=String(Q.getMonth()+1).padStart(2,"0"),ce=String(Q.getDate()).padStart(2,"0"),$e=String(Q.getFullYear());D(Se),q(ce),G($e),X(!0),e(`${Se}/${ce}/${$e}`),p(!1)},J=ye=>{A(ye>0?"left":"right"),_(Q=>{const Se=new Date(Q.getFullYear(),Q.getMonth()+ye,1);return d&&D(String(Se.getMonth()+1).padStart(2,"0")),j(ce=>ce+1),Se})},te=ye=>T(Q=>({start:Q.start+ye*10,end:Q.end+ye*10})),le=ye=>{const Q=new Date(ye,g.getMonth(),1);_(Q),G(String(ye)),E(!1)},be=()=>{const ye=new Date(g.getFullYear(),g.getMonth(),1),Q=new Date(g.getFullYear(),g.getMonth()+1,0),Se=ye.getDay(),ce=Q.getDate(),$e=new Date,Ie=Fe=>!d&&$e.getDate()===Fe&&$e.getMonth()===g.getMonth()&&$e.getFullYear()===g.getFullYear(),Pe=[];for(let Fe=0;Fe<Se;Fe++)Pe.push(jsxRuntimeExports.jsx("div",{className:"dp-day empty"},`empty-${Fe}`));for(let Fe=1;Fe<=ce;Fe++){const He=(d==null?void 0:d.getDate())===Fe&&(d==null?void 0:d.getMonth())===g.getMonth()&&(d==null?void 0:d.getFullYear())===g.getFullYear();Pe.push(jsxRuntimeExports.jsx("div",{className:`dp-day ${He?"selected":""} ${Ie(Fe)?"today":""}`,onClick:()=>Y(Fe),children:Fe},Fe))}return Pe},me=(ye,Q,Se)=>{if(!ye||!Q||!Se){X(!1),_(new Date),m(null);return}const ce=`${Se}-${ye}-${Q}`,$e=new Date(ce);$e.getFullYear()===parseInt(Se,10)&&$e.getMonth()+1===parseInt(ye,10)&&$e.getDate()===parseInt(Q,10)?(m($e),_($e),X(!0),e(`${ye}/${Q}/${Se}`)):(X(!1),m(null),_(new Date),D(ye),q(Q),G(Se))},fe=jsxRuntimeExports.jsx("div",{className:"dp-wrapper",ref:O,children:jsxRuntimeExports.jsxs("div",{className:`dp-input-container ${I||f?"focused":""} ${d||N||F||V?"has-value":""} ${ee?"":"invalid"}`,"aria-required":u,children:[jsxRuntimeExports.jsxs("div",{className:`dp-label floating ${ee?"":"invalid"}`,children:[t,u&&jsxRuntimeExports.jsx("span",{className:"dp-required",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-input-wrapper",onClick:()=>{M(!0)},children:[jsxRuntimeExports.jsx(DateInputPart,{value:N,onChange:ye=>{D(ye),me(ye,F,V)},max:12,min:1,length:2,placeholder:"MM",onClick:H,id:o?`${o}-month`:void 0,name:l?`${l}-month`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx(DateInputPart,{value:F,onChange:ye=>{q(ye),me(N,ye,V)},placeholder:"DD",max:31,min:1,length:2,onClick:H,id:o?`${o}-day`:void 0,name:l?`${l}-day`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx("input",{type:"text",value:V,onChange:ye=>{const Q=ye.target.value.replace(/\D/g,"");Q.length<=4&&(G(Q),Q.length===4&&me(N,F,Q))},onFocus:ye=>ye.target.select(),onBlur:()=>{V.length===4&&me(N,F,V)},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:H,children:jsxRuntimeExports.jsx("img",{src:DateRangeIcon,alt:"Calendar Icon"})})]})]})}),pe=jsxRuntimeExports.jsxs("div",{id:"ce-datepicker-portal",className:"dp-calendar",style:{position:"absolute",left:Math.max(8,z.left),top:z.top,zIndex:99999},role:"dialog","aria-modal":"true",children:[jsxRuntimeExports.jsxs("div",{className:"dp-header",children:[jsxRuntimeExports.jsxs("div",{className:"dp-title",onClick:()=>E(ye=>!ye),children:[S?`${b.start} - ${b.end}`:`${g.toLocaleString("default",{month:"long"})} ${g.getFullYear()}`,jsxRuntimeExports.jsx("button",{className:"dp-toggle-icon",children:"▾"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-controls",children:[jsxRuntimeExports.jsx("button",{onClick:()=>S?te(-1):J(-1),children:"‹"}),jsxRuntimeExports.jsx("button",{onClick:()=>S?te(1):J(1),children:"›"})]})]}),!S&&jsxRuntimeExports.jsx("div",{className:"dp-weekdays",children:WEEKDAYS.map(ye=>jsxRuntimeExports.jsx("div",{className:"dp-weekday",children:ye},ye))}),S?jsxRuntimeExports.jsx("div",{className:"dp-years-grid",children:Array.from({length:b.end-b.start+1},(ye,Q)=>{const Se=b.start+Q;return jsxRuntimeExports.jsx("div",{className:"dp-year-item",onClick:()=>le(Se),children:Se},Se)})}):jsxRuntimeExports.jsx("div",{className:`dp-days dp-slide-${C}`,children:be()},R)]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[fe,f&&ReactDOM.createPortal(pe,document.body)]})},FieldsInput=({label:e,name:t,placeholder:n="",value:i="",onChange:o,size:l="medium"})=>{const[u,f]=React.useState(!1),[p,d]=React.useState(!1),m=getSizeStyle$1(l);React.useEffect(()=>{i&&i.trim().length>0&&d(!0)},[i]);const g=()=>{f(!0),d(!0)},_=E=>{f(!1),E.target.value.trim()||d(!1)},S=u||!!i;return jsxRuntimeExports.jsxs("div",{className:`floating-input-wrapper${p?" focused":""}`,style:m,children:[jsxRuntimeExports.jsx("label",{htmlFor:t,className:"floating-label",children:e}),jsxRuntimeExports.jsx("input",{id:t,name:t,className:"floating-input",placeholder:S?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,d]=React.useState(n),[m,g]=React.useState(i),_=(E,b)=>{E==="quickActions"?d(T=>T.filter((C,A)=>A!==b)):g(T=>T.filter((C,A)=>A!==b))},S=()=>{u.trim()!==""&&(g(E=>[u,...E]),f(""))};return jsxRuntimeExports.jsxs("div",{className:"ceui-search-bar",children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search...",className:"ceui-search-input",value:u,onChange:E=>f(E.target.value),onFocus:()=>{l(!0),e&&e()},onBlur:()=>{setTimeout(()=>l(!1),200),t&&t()},onKeyDown:E=>{E.key==="Enter"&&S()}}),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((E,b)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[E,jsxRuntimeExports.jsx("button",{className:"close-icon",onClick:()=>_("quickActions",b),children:"✕"})]},b))})]}),m.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"suggestion-category",children:"Recent search"}),jsxRuntimeExports.jsx("div",{className:"suggestions",children:m.map((E,b)=>jsxRuntimeExports.jsxs("span",{className:"suggestion-item",children:[E,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=m=>{f.current&&!f.current.contains(m.target)&&(o(!1),u(!1))},d=()=>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(d,{})}),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:d=!1,showUserInfo:m=!1,showHamburgerButton:g=!1,showDrawer:_=!1,userInfoProps:S,onMenuClick:E,drawerJsonUrl:b="",isDrawerOpen:T=!1,onDrawerClose:C})=>{const A=()=>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(A,{})}),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,{}),d&&jsxRuntimeExports.jsx(CEAvatarMenu,{}),m&&S&&jsxRuntimeExports.jsx(CEUserInfo,{name:S.name,role:S.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:d,name:m,required:g=!1,enableSelectAll:_=!1,selectAllLabel:S="Select All"})=>{const[E,b]=React.useState(!1),[T,C]=React.useState(!1),A=React.useRef(null),j={...getSizeStyle$1(l),...u},O=V=>{if(i){const G=t.includes(V)?t.filter(ee=>ee!==V):[...t,V];n(G)}else n([V]),b(!1)},I=()=>n([]),M=e.filter(V=>t.includes(V.value)).map(V=>V.label);React.useEffect(()=>{const V=G=>{var ee;(ee=A.current)!=null&&ee.contains(G.target)||b(!1)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[]);const N=V=>{const G=t.filter(ee=>ee!==V);n(G)},D=e.map(V=>V==null?void 0:V.value),F=i&&t.length===D.length&&D.length>0,q=()=>{n(F?[]:D)};return jsxRuntimeExports.jsx("div",{className:`dropdown-container ${E||t.length>0?"float":""}`,ref:A,style:j,id:d,"data-name":m,"aria-required":g,children:jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${E?"open":""}`,onClick:()=>b(V=>!V),onFocus:()=>C(!0),onBlur:()=>C(!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,G)=>jsxRuntimeExports.jsxs("span",{className:"chip",children:[V,jsxRuntimeExports.jsx("span",{className:"close-icon",onClick:ee=>{var X;ee.stopPropagation(),N(((X=e.find(z=>z.label===V))==null?void 0:X.value)||"")},children:"×"})]},G)):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(),I()},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"})})}),E&&jsxRuntimeExports.jsxs("ul",{className:"dropdown-options",children:[i&&_&&jsxRuntimeExports.jsxs("li",{className:`dropdown-option select-all ${F?"selected":""}`,onClick:V=>{V.stopPropagation(),q()},children:[jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:F}),S]}),e.map(V=>jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${t.includes(V.value)?"selected":""}`,onClick:G=>{G.stopPropagation(),O(V.value)},children:[i&&jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:t.includes(V.value)}),V.label]},V.value))]})]})})},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,d)=>{n(m=>({...m,[p]:d}))};useEscapeKey(()=>{n({})});const l=p=>p.children&&p.children.length>0,u=p=>p.some(d=>l(d)),f=(p,d="")=>!p||p.length===0?null:jsxRuntimeExports.jsx("ul",{className:d?"ce-submenu":"ce-dropdown",children:p.map(m=>{const g=d?`${d}-${m.name}`:m.name,_=l(m);return jsxRuntimeExports.jsxs("li",{className:`ce-dropdown-item ${_?"has-submenu":""}`,onMouseEnter:()=>_&&i(g,!0),onMouseLeave:()=>_&&i(g,!1),onClick:()=>console.log(`Clicked: ${m.name}`),children:[m.name,_&&jsxRuntimeExports.jsx("span",{className:"ce-icon right",children:"▶"}),_&&t[g]&&f(m.children,g)]},g)})});return jsxRuntimeExports.jsx("div",{className:"ce-menu-bar",children:jsxRuntimeExports.jsx("div",{className:"ce-menu-container",children:e.map(p=>{const d=u(p.items);return jsxRuntimeExports.jsxs("div",{className:"ce-menu-item",onMouseEnter:()=>d&&i(p.title,!0),onMouseLeave:()=>d&&i(p.title,!1),children:[jsxRuntimeExports.jsxs("button",{className:"ce-menu-button",children:[p.title,d&&jsxRuntimeExports.jsx("span",{className:"ce-icon",children:"▼"})]}),d&&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 d=0;d<t;d++)p.push(d);else if(e<7){for(let d=0;d<8;d++)p.push(d);p.push("..."),p.push(t-1)}else if(e>=t-8+1){p.push(0),p.push("...");for(let d=t-8;d<t;d++)p.push(d)}else{p.push(0),p.push("...");for(let d=e-3;d<=e+3;d++)p.push(d);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||""),d=m=>{p(m),i(m)};return jsxRuntimeExports.jsx("div",{className:`radio-button-group ${o}`,role:"radiogroup","aria-labelledby":t,id:l,children:e.map(m=>jsxRuntimeExports.jsx("div",{className:"radio-button",children:jsxRuntimeExports.jsx(CERadioButton,{label:m.label,value:m.value,checked:f===m.value,onChange:d,id:l?`${l}-${m.value}`:void 0,name:u})},m.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 d=React.useRef(null),[m,g]=React.useState("3"),[_,S]=React.useState("Arial"),[E,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(()=>{d.current&&e&&(d.current.innerHTML=e)},[e]);const T=React.useCallback(I=>{try{return document.queryCommandState(I)}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]),A=React.useCallback((I,M="")=>{var F,q;const N=saveSelection(),D=document.getSelection();if(I==="createLink"){const V=prompt("Enter URL:");if(V){restoreSelection(N),document.execCommand("createLink",!1,V);const G=(F=D==null?void 0:D.anchorNode)==null?void 0:F.parentElement;G instanceof HTMLAnchorElement&&(G.target="_blank",G.rel="noopener noreferrer")}}else if(I==="insertImage"){const V=prompt("Enter image URL:");if(V){restoreSelection(N);const G=`<img src="${V}" alt="image" style="max-width: 100%; height: auto;"/>`;document.execCommand("insertHTML",!1,G)}}else I==="fontSize"||I==="fontName"?(restoreSelection(N),document.execCommand(I,!0,M),I==="fontSize"?g(M):S(M)):(restoreSelection(N),document.execCommand(I,!1,M));d.current&&(t==null||t(d.current.innerHTML)),(q=d.current)==null||q.focus(),C()},[t,C]),R=I=>{if(I.key==="Tab"&&(I.preventDefault(),document.execCommand("insertHTML",!1,"&nbsp;&nbsp;&nbsp;&nbsp;")),I.ctrlKey||I.metaKey)switch(I.key.toLowerCase()){case"z":I.preventDefault(),I.shiftKey?A("redo"):A("undo");break;case"y":I.preventDefault(),A("redo");break}},j=[{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"}],O=["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:()=>A("bold"),className:`toolbar-button ${E.bold?"active":""}`,title:"Bold",children:jsxRuntimeExports.jsx("strong",{children:"B"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("italic"),className:`toolbar-button ${E.italic?"active":""}`,title:"Italic",children:jsxRuntimeExports.jsx("em",{children:"I"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("underline"),className:`toolbar-button ${E.underline?"active":""}`,title:"Underline",children:jsxRuntimeExports.jsx("u",{children:"U"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("strikeThrough"),className:`toolbar-button ${E.strikeThrough?"active":""}`,title:"Strike Through",children:jsxRuntimeExports.jsx("s",{children:"S"})})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("subscript"),className:`toolbar-button ${E.subscript?"active":""}`,title:"Subscript",children:"X₂"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("superscript"),className:`toolbar-button ${E.superscript?"active":""}`,title:"Superscript",children:"X²"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("justifyLeft"),className:`toolbar-button ${E.justifyLeft?"active":""}`,title:"Align Left",children:"⇤"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("justifyCenter"),className:`toolbar-button ${E.justifyCenter?"active":""}`,title:"Center",children:"⇔"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("justifyRight"),className:`toolbar-button ${E.justifyRight?"active":""}`,title:"Align Right",children:"⇥"})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>A("justifyFull"),className:`toolbar-button ${E.justifyFull?"active":""}`,title:"Justify",children:"≡"})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>A("insertUnorderedList"),className:"toolbar-button",title:"Bullet List",children:"●"}),jsxRuntimeExports.jsx("button",{onClick:()=>A("insertOrderedList"),className:"toolbar-button",title:"Numbered List",children:"1. 2. 3."})]}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:m,onChange:I=>A("fontSize",I.target.value),className:"toolbar-select",title:"Font Size",children:j.map(I=>jsxRuntimeExports.jsx("option",{value:I.value,children:I.label},I.value))})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:_,onChange:I=>A("fontName",I.target.value),className:"toolbar-select",title:"Font Family",children:O.map(I=>jsxRuntimeExports.jsx("option",{value:I,children:I},I))})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>A("createLink"),className:"toolbar-button",title:"Insert Link",children:"🔗"}),jsxRuntimeExports.jsx("button",{onClick:()=>A("insertImage"),className:"toolbar-button",title:"Insert Image",children:"📷"})]}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>A("undo"),className:"toolbar-button",title:"Undo (Ctrl+Z)",children:"↩"}),jsxRuntimeExports.jsx("button",{onClick:()=>A("redo"),className:"toolbar-button",title:"Redo (Ctrl+Y)",children:"↪"})]})]}),jsxRuntimeExports.jsx("div",{ref:d,className:"editor-content",contentEditable:!0,style:{minHeight:o,maxHeight:l,height:i==="auto"?"auto":"100%",...p},onKeyDown:R,onKeyUp:C,onMouseUp:C,onInput:()=>{d.current&&(t==null||t(d.current.innerHTML)),C()}})]})},CETabView=({tabs:e,renderContent:t})=>{const[n,i]=React.useState(e[0]);return jsxRuntimeExports.jsxs("div",{className:"tabview-container",children:[jsxRuntimeExports.jsx("div",{className:"tabview-sidebar",children:e.map(o=>jsxRuntimeExports.jsx("div",{className:`tabview-tab ${n===o?"tabview-tab-active":""}`,onClick:()=>i(o),children:o},o))}),jsxRuntimeExports.jsx("div",{className:"tabview-content",children:t(n)})]})},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,d]=React.useState(n),[m,g]=React.useState("12"),[_,S]=React.useState("00"),[E,b]=React.useState("AM"),[T,C]=React.useState(!1),[A,R]=React.useState(""),[j,O]=React.useState(""),I=React.useRef(null),M=Array.from({length:12},(W,L)=>String(L+1).padStart(2,"0")),N=Array.from({length:60},(W,L)=>String(L).padStart(2,"0")),D=(W,L)=>{if(!W)return"";const B=parseInt(W);return L==="hours"?B>12?"12":B===0?"01":W.padStart(2,"0"):B>59?"59":W.padStart(2,"0")},F=W=>{const L=W.target.value,B=W.target.selectionStart||0;let U=m,K=_,H=E,Y=p;if(B<=2){const J=L.substring(0,2).replace(/[^0-9]/g,"");if(J){if(J.length===1){const te=parseInt(J);te>=2&&te<=9?(U=J.padStart(2,"0"),setTimeout(()=>{I.current&&I.current.setSelectionRange(3,5)},10)):(U=J,setTimeout(()=>{I.current&&I.current.setSelectionRange(1,1)},10))}else if(J.length===2){const te=parseInt(J);te>=1&&te<=12?(U=J,setTimeout(()=>{I.current&&I.current.setSelectionRange(3,5)},10)):(U=J[0],setTimeout(()=>{I.current&&I.current.setSelectionRange(1,1)},10))}Y=`${U}:${_} ${E}`}}else if(B>=3&&B<=5){const J=L.indexOf(":")+1,te=L.substring(J,J+2).replace(/[^0-9]/g,"");if(te){if(te.length===1)K=te,Y=`${m}:${K} ${E}`,setTimeout(()=>{I.current&&I.current.setSelectionRange(4,4)},10);else if(te.length===2){const le=parseInt(te);le>=0&&le<=59?(K=te,setTimeout(()=>{I.current&&I.current.setSelectionRange(6,8)},10)):(K=te[0],setTimeout(()=>{I.current&&I.current.setSelectionRange(4,4)},10))}Y=`${m}:${K} ${E}`}}else if(B>=6){const te=L.substring(L.lastIndexOf(" ")+1).toUpperCase();te.startsWith("A")?(H="AM",Y=`${m}:${_} AM`):te.startsWith("P")&&(H="PM",Y=`${m}:${_} PM`)}g(U),S(K),b(H),d(Y),f(!1),t==null||t(Y)},q=W=>{if(!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","0","1","2","3","4","5","6","7","8","9",":","A","P","M"," ","a","p","m"].includes(W.key)){W.preventDefault();return}if(W.key==="Enter"||W.key===":"){W.preventDefault();const B=W.currentTarget.selectionStart||0;if(B<=2){if(A){const U=D(A,"hours");g(U),R(""),d(`${U}:${_} ${E}`)}W.currentTarget.setSelectionRange(3,5)}else if(B>=3&&B<=5){if(j){const U=D(j,"minutes");S(U),O(""),d(`${m}:${U} ${E}`)}W.currentTarget.setSelectionRange(6,8)}}},V=W=>{const L=W.currentTarget.selectionStart||0,B=I.current;B&&(L<=1?B.setSelectionRange(0,2):L>=3&&L<=4?B.setSelectionRange(3,5):L>=6&&B.setSelectionRange(6,8))},G=()=>{f(!0),C(!0)},ee=(W,L)=>{const B=W==="hours"?L:m,U=W==="minutes"?L:_,K=W==="period"?L:E;g(B),S(U),b(K);const H=`${B}:${U} ${K}`;d(H),t==null||t(H)},X=()=>{const W=`${m}:${_} ${E}`;d(W),f(!1),t==null||t(W)},z=()=>{d(""),g("12"),S("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:I,type:"text",id:o,name:l,value:p,onChange:F,onKeyDown:q,onClick:W=>{p||G(),V(W)},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:W=>{W.stopPropagation(),G()},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:M.map(W=>jsxRuntimeExports.jsx("div",{className:`time-item ${W===m?"selected":""}`,onClick:()=>ee("hours",W),children:W},W))})]}),jsxRuntimeExports.jsxs("div",{className:"time-section",children:[jsxRuntimeExports.jsx("div",{className:"section-label",children:"Minutes"}),jsxRuntimeExports.jsx("div",{className:"time-list",children:N.map(W=>jsxRuntimeExports.jsx("div",{className:`time-item ${W===_?"selected":""}`,onClick:()=>ee("minutes",W),children:W},W))})]}),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(W=>jsxRuntimeExports.jsx("div",{className:`period-item ${W===E?"selected":""}`,onClick:()=>ee("period",W),children:W},W))})]})]}),jsxRuntimeExports.jsxs("div",{className:"time-picker-actions",children:[jsxRuntimeExports.jsx("button",{className:"time-picker-button cancel",onClick:z,children:"Cancel"}),jsxRuntimeExports.jsx("button",{className:"time-picker-button ok",onClick:X,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([]),[d,m]=React.useState(!0),[g,_]=React.useState(null),[S,E]=React.useState(new Set),[b,T]=React.useState(new Set);React.useEffect(()=>{(async()=>{var I,M;try{m(!0),_(null);const D=(await axios.get(e)).data.items||[];u(D.slice(0,Math.ceil(D.length/2))),p(D.slice(Math.ceil(D.length/2)))}catch(N){_(axios.isAxiosError(N)?((M=(I=N.response)==null?void 0:I.data)==null?void 0:M.message)||N.message:"An error occurred")}finally{m(!1)}})()},[]);const C=O=>{if(O==="available"){const I=l.filter(N=>S.has(N.id)).sort((N,D)=>{const F=parseInt(N.id.replace(/\D/g,"")),q=parseInt(D.id.replace(/\D/g,""));return F-q}),M=l.filter(N=>!S.has(N.id));u(M),p(N=>[...N,...I].sort((F,q)=>{const V=parseInt(F.id.replace(/\D/g,"")),G=parseInt(q.id.replace(/\D/g,""));return V-G})),E(new Set)}else{const I=f.filter(N=>b.has(N.id)).sort((N,D)=>{const F=parseInt(N.id.replace(/\D/g,"")),q=parseInt(D.id.replace(/\D/g,""));return F-q}),M=f.filter(N=>!b.has(N.id));p(M),u(N=>[...N,...I].sort((F,q)=>{const V=parseInt(F.id.replace(/\D/g,"")),G=parseInt(q.id.replace(/\D/g,""));return V-G})),T(new Set)}t(f,l)},A=(O,I,M)=>{M(N=>{const D=new Set(N);return D.has(O)?D.delete(O):D.add(O),D})},R=(O,I,M)=>N=>{const D=new Set(I),F=O.filter(q=>!q.disabled);N?F.forEach(q=>D.add(q.id)):F.forEach(q=>D.delete(q.id)),M(D)},j=(O,I,M,N)=>{const D=O.filter(ee=>!ee.disabled),F=D.length>0&&D.every(ee=>I.has(ee.id)),q=I.size,V=O.length,G=O.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:F,onChange:R(O,I,M),disabled:G})}),jsxRuntimeExports.jsxs("div",{className:"title-section",children:[jsxRuntimeExports.jsx("div",{className:"title",children:N}),jsxRuntimeExports.jsxs("div",{className:"count-text",children:[q,"/",V," selected"]})]})]})}),jsxRuntimeExports.jsx("div",{className:"transfer-items",children:O.map(ee=>jsxRuntimeExports.jsx(TransferItem,{label:ee.label,checked:I.has(ee.id),disabled:ee.disabled,onChange:()=>A(ee.id,I,M)},ee.id))})]})};return d?jsxRuntimeExports.jsx("div",{children:"Loading..."}):g?jsxRuntimeExports.jsxs("div",{children:["Error: ",g]}):jsxRuntimeExports.jsxs("div",{className:`transfer-list-container ${n}`,children:[j(l,S,E,"Choices"),jsxRuntimeExports.jsxs("div",{className:"transfer-buttons",children:[jsxRuntimeExports.jsx(CETransferButton,{label:">>",onClick:()=>C("available"),disabled:S.size===0,className:o}),jsxRuntimeExports.jsx(CETransferButton,{label:"<<",onClick:()=>C("chosen"),disabled:b.size===0,className:o})]}),j(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),d=React.useRef(null),m=e.find(b=>b.value===t),g=b=>{n(b),p(!1)};React.useEffect(()=>{const b=T=>{var C;(C=d.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))},S=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""},E=()=>{if(m){const b={};return m.backgroundColor&&(b.backgroundColor=m.backgroundColor),m.textColor&&(b.color=m.textColor),b}return{}};return jsxRuntimeExports.jsxs("div",{className:`status-dropdown-container ${l?"disabled":""} size-${o}`,ref:d,children:[jsxRuntimeExports.jsxs("div",{className:`status-dropdown-trigger ${f?"open":""} ${m?`has-selection ${S(m)}`:""}`,onClick:()=>!l&&g((m==null?void 0:m.value)||""),onKeyDown:_,tabIndex:l?-1:0,role:"button","aria-haspopup":"listbox","aria-expanded":f?"true":"false","aria-label":u,style:E(),children:[jsxRuntimeExports.jsx("span",{className:"status-text",children:m?m.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":""} ${S(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})=>{const 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",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:e,onChange: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$m=["attr","size","title"];function _objectWithoutProperties$m(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$m(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$m(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$y(){return _extends$y=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$y.apply(this,arguments)}function ownKeys$F(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$F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$F(Object(n),!0).forEach(function(i){_defineProperty$M(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$F(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$M(e,t,n){return t=_toPropertyKey$M(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$M(e){var t=_toPrimitive$M(e,"string");return typeof t=="symbol"?t:t+""}function _toPrimitive$M(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$F({key:n},t.attr),Tree2Element(t.child)))}function GenIcon(e){return t=>React.createElement(IconBase,_extends$y({attr:_objectSpread$F({},e.attr)},t),Tree2Element(e.child))}function IconBase(e){var t=n=>{var{attr:i,size:o,title:l}=e,u=_objectWithoutProperties$m(e,_excluded$m),f=o||n.size||"1em",p;return n.className&&(p=n.className),e.className&&(p=(p?p+" ":"")+e.className),React.createElement("svg",_extends$y({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:p,style:_objectSpread$F(_objectSpread$F({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:d})=>{const[m,g]=React.useState(!1),[_,S]=React.useState(""),[E,b]=React.useState([]),T=React.useRef(null);React.useEffect(()=>{n&&n(E)},[E,n]);const C=e.filter(A=>{var R;return A.label.toLowerCase().includes(_.toLowerCase())||((R=A.subtitle)==null?void 0:R.toLowerCase().includes(_.toLowerCase()))});return React.useEffect(()=>{const A=R=>{var j;(j=T.current)!=null&&j.contains(R.target)||g(!1)};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]),jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:T,style:{width:l},children:[jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${m?"open":""}`,style:{minHeight:u},children:[jsxRuntimeExports.jsx(FaSearch,{className:"search-icon"}),jsxRuntimeExports.jsxs("div",{className:"selected-chips",onClick:()=>g(!0),children:[E.length===0&&jsxRuntimeExports.jsx("input",{type:"text",className:"search-input",id:p,name:d,placeholder:i,value:_,onChange:A=>{S(A.target.value),m||g(!0)},onClick:A=>{A.stopPropagation(),g(!0)},style:{height:u}}),E.map(A=>jsxRuntimeExports.jsxs("div",{className:"selected-item-inline",children:[jsxRuntimeExports.jsx("span",{className:"selected-item-label",children:A.label}),jsxRuntimeExports.jsx("button",{type:"button",className:"selected-item-remove",onClick:R=>{R.stopPropagation(),b(j=>j.filter(O=>O.value!==A.value))},"aria-label":`Remove ${A.label}`,children:"×"})]},A.value))]}),jsxRuntimeExports.jsx(MdKeyboardArrowDown,{className:`dropdown-arrow ${m?"rotated":""}`,onClick:A=>{A.stopPropagation(),g(R=>!R)}})]}),m&&jsxRuntimeExports.jsx("div",{className:"dropdown-options",style:{maxHeight:f},children:jsxRuntimeExports.jsx("ul",{className:"dropdown-list",children:C.length>0?C.map(A=>{const R=E.some(j=>j.value===A.value);return jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${R?"selected":""}`,onClick:j=>{j.stopPropagation(),b(O=>{const I=O.some(N=>N.value===A.value);let M;return I?M=O.filter(N=>N.value!==A.value):M=[...O,A],M}),S(""),t(A),g(!1)},children:[jsxRuntimeExports.jsxs("div",{className:"option-content",children:[jsxRuntimeExports.jsx("div",{className:"option-line-1",children:A.label}),A.subtitle&&jsxRuntimeExports.jsx("div",{className:"option-line-2",children:A.subtitle})]}),A.icon&&jsxRuntimeExports.jsx("div",{className:"option-icon",children:A.icon})]},A.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),[d,m]=React.useState(!1),[g,_]=React.useState(""),S=React.useRef(null),E=React.useRef(null),b=t.filter(A=>A.toLowerCase().includes(g.toLowerCase())),T=A=>{if(o){const R=n.includes(A);i(R?n.filter(j=>j!==A):[...n,A]),_("")}else i([A]),_(A),p(!1)},C=A=>{E.current&&!E.current.contains(A.target)&&(p(!1),m(!1))};return React.useEffect(()=>(document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)),[]),jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:E,children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper always-float ${d||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(A=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[A,jsxRuntimeExports.jsx("button",{onClick:R=>{R.stopPropagation(),i(n.filter(j=>j!==A))},children:"×"})]},A))}),jsxRuntimeExports.jsx("input",{ref:S,type:"text",className:"autocomplete-input",value:g,placeholder:o&&n.length>0?"":"Select Status",onChange:A=>_(A.target.value),onFocus:()=>{m(!0),p(!0)}}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:()=>p(A=>!A),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 A=n.length===t.length;i(A?[]:[...t])}}),"Select All"]})}),b.map(A=>jsxRuntimeExports.jsx("li",{onClick:()=>T(A),children:o&&l?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(A),onChange:()=>T(A),onClick:R=>R.stopPropagation()}),A]}):A},A))]})]})},CEAutoCompleteSelect=({label:e,options:t,value:n,onChange:i,placeholderText:o,multiple:l=!1,showCheckboxes:u=!1,id:f,required:p=!1,showSelectionCountOnly:d=!1})=>{const[m,g]=React.useState(!1),[_,S]=React.useState(!1),[E,b]=React.useState(""),T=React.useRef(null),C=React.useRef(null),A=t.filter(M=>{var N;return(N=M.label)==null?void 0:N.toLowerCase().includes(E==null?void 0:E.toLowerCase())});React.useEffect(()=>{if(l)l&&b("");else{const M=O(n[0]);b(M||"")}},[n,l,t]);const R=M=>{if(l){const N=n.includes(M.value);i(N?n.filter(D=>D!==M.value):[...n,M.value]),b("")}else i([M.value]),b(M.label),g(!1)},j=M=>{C.current&&!C.current.contains(M.target)&&(g(!1),S(!1))};React.useEffect(()=>(document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)),[]);const O=M=>{var N;return((N=t.find(D=>D.value===M))==null?void 0:N.label)||M},I=M=>{M.stopPropagation(),b(""),i([])};return jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:C,id:f,"data-testid":f?`ce-autocomplete-${f}`:"ce-autocomplete",children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper always-float ${_||m?"focused":""} ${n.length>0?"has-value has-clear":""}`,onClick:()=>g(!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:d?jsxRuntimeExports.jsxs("span",{className:"selected-summary",children:["Selected + ",n.length]}):n.map(M=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[O(M),jsxRuntimeExports.jsx("button",{onClick:N=>{N.stopPropagation(),i(n.filter(D=>D!==M))},children:"×"})]},M))}),jsxRuntimeExports.jsx("input",{ref:T,type:"text",className:"autocomplete-input",placeholder:l&&n.length>0?"":o,value:E,onChange:M=>b(M.target.value),onFocus:()=>{S(!0),g(!0)}}),n.length>0&&jsxRuntimeExports.jsx("span",{className:"clear-icon",onClick:I,title:"Clear",children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:M=>{M.stopPropagation(),g(N=>!N)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M6 9l6 6 6-6"})})})]})]}),m&&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 M=n.length===t.length;i(M?[]:t.map(N=>N.value))}}),"Select All"]})}),A.map(M=>jsxRuntimeExports.jsx("li",{onClick:()=>R(M),children:l&&u?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(M.value),onChange:()=>R(M),onClick:N=>N.stopPropagation()}),M.label]}):M.label},M.value))]})]})};var isArray_1,hasRequiredIsArray;function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var e=Array.isArray;return isArray_1=e,isArray_1}var _freeGlobal,hasRequired_freeGlobal;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var e=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=e,_freeGlobal}var _root,hasRequired_root;function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var e=require_freeGlobal(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _root=n,_root}var _Symbol,hasRequired_Symbol;function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var e=require_root(),t=e.Symbol;return _Symbol=t,_Symbol}var _getRawTag,hasRequired_getRawTag;function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var e=require_Symbol(),t=Object.prototype,n=t.hasOwnProperty,i=t.toString,o=e?e.toStringTag:void 0;function l(u){var f=n.call(u,o),p=u[o];try{u[o]=void 0;var d=!0}catch{}var m=i.call(u);return d&&(f?u[o]=p:delete u[o]),m}return _getRawTag=l,_getRawTag}var _objectToString,hasRequired_objectToString;function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var e=Object.prototype,t=e.toString;function n(i){return t.call(i)}return _objectToString=n,_objectToString}var _baseGetTag,hasRequired_baseGetTag;function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var e=require_Symbol(),t=require_getRawTag(),n=require_objectToString(),i="[object Null]",o="[object Undefined]",l=e?e.toStringTag:void 0;function u(f){return f==null?f===void 0?o:i:l&&l in Object(f)?t(f):n(f)}return _baseGetTag=u,_baseGetTag}var isObjectLike_1,hasRequiredIsObjectLike;function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;hasRequiredIsObjectLike=1;function e(t){return t!=null&&typeof t=="object"}return isObjectLike_1=e,isObjectLike_1}var isSymbol_1,hasRequiredIsSymbol;function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol_1;hasRequiredIsSymbol=1;var e=require_baseGetTag(),t=requireIsObjectLike(),n="[object Symbol]";function i(o){return typeof o=="symbol"||t(o)&&e(o)==n}return isSymbol_1=i,isSymbol_1}var _isKey,hasRequired_isKey;function require_isKey(){if(hasRequired_isKey)return _isKey;hasRequired_isKey=1;var e=requireIsArray(),t=requireIsSymbol(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function o(l,u){if(e(l))return!1;var f=typeof l;return f=="number"||f=="symbol"||f=="boolean"||l==null||t(l)?!0:i.test(l)||!n.test(l)||u!=null&&l in Object(u)}return _isKey=o,_isKey}var isObject_1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1;hasRequiredIsObject=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return isObject_1=e,isObject_1}var isFunction_1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var e=require_baseGetTag(),t=requireIsObject(),n="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!t(f))return!1;var p=e(f);return p==i||p==o||p==n||p==l}return isFunction_1=u,isFunction_1}var _coreJsData,hasRequired_coreJsData;function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var e=require_root(),t=e["__core-js_shared__"];return _coreJsData=t,_coreJsData}var _isMasked,hasRequired_isMasked;function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var e=require_coreJsData(),t=function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function n(i){return!!t&&t in i}return _isMasked=n,_isMasked}var _toSource,hasRequired_toSource;function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var e=Function.prototype,t=e.toString;function n(i){if(i!=null){try{return t.call(i)}catch{}try{return i+""}catch{}}return""}return _toSource=n,_toSource}var _baseIsNative,hasRequired_baseIsNative;function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var e=requireIsFunction(),t=require_isMasked(),n=requireIsObject(),i=require_toSource(),o=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,p=u.toString,d=f.hasOwnProperty,m=RegExp("^"+p.call(d).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(_){if(!n(_)||t(_))return!1;var S=e(_)?m:l;return S.test(i(_))}return _baseIsNative=g,_baseIsNative}var _getValue,hasRequired_getValue;function require_getValue(){if(hasRequired_getValue)return _getValue;hasRequired_getValue=1;function e(t,n){return t==null?void 0:t[n]}return _getValue=e,_getValue}var _getNative,hasRequired_getNative;function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var e=require_baseIsNative(),t=require_getValue();function n(i,o){var l=t(i,o);return e(l)?l:void 0}return _getNative=n,_getNative}var _nativeCreate,hasRequired_nativeCreate;function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var e=require_getNative(),t=e(Object,"create");return _nativeCreate=t,_nativeCreate}var _hashClear,hasRequired_hashClear;function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var e=require_nativeCreate();function t(){this.__data__=e?e(null):{},this.size=0}return _hashClear=t,_hashClear}var _hashDelete,hasRequired_hashDelete;function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;hasRequired_hashDelete=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return _hashDelete=e,_hashDelete}var _hashGet,hasRequired_hashGet;function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var e=require_nativeCreate(),t="__lodash_hash_undefined__",n=Object.prototype,i=n.hasOwnProperty;function o(l){var u=this.__data__;if(e){var f=u[l];return f===t?void 0:f}return i.call(u,l)?u[l]:void 0}return _hashGet=o,_hashGet}var _hashHas,hasRequired_hashHas;function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var e=require_nativeCreate(),t=Object.prototype,n=t.hasOwnProperty;function i(o){var l=this.__data__;return e?l[o]!==void 0:n.call(l,o)}return _hashHas=i,_hashHas}var _hashSet,hasRequired_hashSet;function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var e=require_nativeCreate(),t="__lodash_hash_undefined__";function n(i,o){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=e&&o===void 0?t:o,this}return _hashSet=n,_hashSet}var _Hash,hasRequired_Hash;function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var e=require_hashClear(),t=require_hashDelete(),n=require_hashGet(),i=require_hashHas(),o=require_hashSet();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var d=u[f];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,_Hash=l,_Hash}var _listCacheClear,hasRequired_listCacheClear;function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;hasRequired_listCacheClear=1;function e(){this.__data__=[],this.size=0}return _listCacheClear=e,_listCacheClear}var eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;function e(t,n){return t===n||t!==t&&n!==n}return eq_1=e,eq_1}var _assocIndexOf,hasRequired_assocIndexOf;function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();function t(n,i){for(var o=n.length;o--;)if(e(n[o][0],i))return o;return-1}return _assocIndexOf=t,_assocIndexOf}var _listCacheDelete,hasRequired_listCacheDelete;function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype,n=t.splice;function i(o){var l=this.__data__,u=e(l,o);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():n.call(l,u,1),--this.size,!0}return _listCacheDelete=i,_listCacheDelete}var _listCacheGet,hasRequired_listCacheGet;function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();function t(n){var i=this.__data__,o=e(i,n);return o<0?void 0:i[o][1]}return _listCacheGet=t,_listCacheGet}var _listCacheHas,hasRequired_listCacheHas;function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();function t(n){return e(this.__data__,n)>-1}return _listCacheHas=t,_listCacheHas}var _listCacheSet,hasRequired_listCacheSet;function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();function t(n,i){var o=this.__data__,l=e(o,n);return l<0?(++this.size,o.push([n,i])):o[l][1]=i,this}return _listCacheSet=t,_listCacheSet}var _ListCache,hasRequired_ListCache;function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),n=require_listCacheGet(),i=require_listCacheHas(),o=require_listCacheSet();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var d=u[f];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,_ListCache=l,_ListCache}var _Map,hasRequired_Map;function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var e=require_getNative(),t=require_root(),n=e(t,"Map");return _Map=n,_Map}var _mapCacheClear,hasRequired_mapCacheClear;function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var e=require_Hash(),t=require_ListCache(),n=require_Map();function i(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return _mapCacheClear=i,_mapCacheClear}var _isKeyable,hasRequired_isKeyable;function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;hasRequired_isKeyable=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return _isKeyable=e,_isKeyable}var _getMapData,hasRequired_getMapData;function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var e=require_isKeyable();function t(n,i){var o=n.__data__;return e(i)?o[typeof i=="string"?"string":"hash"]:o.map}return _getMapData=t,_getMapData}var _mapCacheDelete,hasRequired_mapCacheDelete;function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var e=require_getMapData();function t(n){var i=e(this,n).delete(n);return this.size-=i?1:0,i}return _mapCacheDelete=t,_mapCacheDelete}var _mapCacheGet,hasRequired_mapCacheGet;function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var e=require_getMapData();function t(n){return e(this,n).get(n)}return _mapCacheGet=t,_mapCacheGet}var _mapCacheHas,hasRequired_mapCacheHas;function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var e=require_getMapData();function t(n){return e(this,n).has(n)}return _mapCacheHas=t,_mapCacheHas}var _mapCacheSet,hasRequired_mapCacheSet;function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var e=require_getMapData();function t(n,i){var o=e(this,n),l=o.size;return o.set(n,i),this.size+=o.size==l?0:1,this}return _mapCacheSet=t,_mapCacheSet}var _MapCache,hasRequired_MapCache;function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var e=require_mapCacheClear(),t=require_mapCacheDelete(),n=require_mapCacheGet(),i=require_mapCacheHas(),o=require_mapCacheSet();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var d=u[f];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,_MapCache=l,_MapCache}var memoize_1,hasRequiredMemoize;function requireMemoize(){if(hasRequiredMemoize)return memoize_1;hasRequiredMemoize=1;var e=require_MapCache(),t="Expected a function";function n(i,o){if(typeof i!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var l=function(){var u=arguments,f=o?o.apply(this,u):u[0],p=l.cache;if(p.has(f))return p.get(f);var d=i.apply(this,u);return l.cache=p.set(f,d)||p,d};return l.cache=new(n.Cache||e),l}return n.Cache=e,memoize_1=n,memoize_1}var _memoizeCapped,hasRequired_memoizeCapped;function require_memoizeCapped(){if(hasRequired_memoizeCapped)return _memoizeCapped;hasRequired_memoizeCapped=1;var e=requireMemoize(),t=500;function n(i){var o=e(i,function(u){return l.size===t&&l.clear(),u}),l=o.cache;return o}return _memoizeCapped=n,_memoizeCapped}var _stringToPath,hasRequired_stringToPath;function require_stringToPath(){if(hasRequired_stringToPath)return _stringToPath;hasRequired_stringToPath=1;var e=require_memoizeCapped(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,i=e(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(t,function(u,f,p,d){l.push(p?d.replace(n,"$1"):f||u)}),l});return _stringToPath=i,_stringToPath}var _arrayMap,hasRequired_arrayMap;function require_arrayMap(){if(hasRequired_arrayMap)return _arrayMap;hasRequired_arrayMap=1;function e(t,n){for(var i=-1,o=t==null?0:t.length,l=Array(o);++i<o;)l[i]=n(t[i],i,t);return l}return _arrayMap=e,_arrayMap}var _baseToString,hasRequired_baseToString;function require_baseToString(){if(hasRequired_baseToString)return _baseToString;hasRequired_baseToString=1;var e=require_Symbol(),t=require_arrayMap(),n=requireIsArray(),i=requireIsSymbol(),o=e?e.prototype:void 0,l=o?o.toString:void 0;function u(f){if(typeof f=="string")return f;if(n(f))return t(f,u)+"";if(i(f))return l?l.call(f):"";var p=f+"";return p=="0"&&1/f==-1/0?"-0":p}return _baseToString=u,_baseToString}var toString_1,hasRequiredToString;function requireToString(){if(hasRequiredToString)return toString_1;hasRequiredToString=1;var e=require_baseToString();function t(n){return n==null?"":e(n)}return toString_1=t,toString_1}var _castPath,hasRequired_castPath;function require_castPath(){if(hasRequired_castPath)return _castPath;hasRequired_castPath=1;var e=requireIsArray(),t=require_isKey(),n=require_stringToPath(),i=requireToString();function o(l,u){return e(l)?l:t(l,u)?[l]:n(i(l))}return _castPath=o,_castPath}var _toKey,hasRequired_toKey;function require_toKey(){if(hasRequired_toKey)return _toKey;hasRequired_toKey=1;var e=requireIsSymbol();function t(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}return _toKey=t,_toKey}var _baseGet,hasRequired_baseGet;function require_baseGet(){if(hasRequired_baseGet)return _baseGet;hasRequired_baseGet=1;var e=require_castPath(),t=require_toKey();function n(i,o){o=e(o,i);for(var l=0,u=o.length;i!=null&&l<u;)i=i[t(o[l++])];return l&&l==u?i:void 0}return _baseGet=n,_baseGet}var get_1,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get_1;hasRequiredGet=1;var e=require_baseGet();function t(n,i,o){var l=n==null?void 0:e(n,i);return l===void 0?o:l}return get_1=t,get_1}var getExports=requireGet();const get=getDefaultExportFromCjs(getExports);var isNil_1,hasRequiredIsNil;function requireIsNil(){if(hasRequiredIsNil)return isNil_1;hasRequiredIsNil=1;function e(t){return t==null}return isNil_1=e,isNil_1}var isNilExports=requireIsNil();const isNil=getDefaultExportFromCjs(isNilExports);var isString_1,hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString_1;hasRequiredIsString=1;var e=require_baseGetTag(),t=requireIsArray(),n=requireIsObjectLike(),i="[object String]";function o(l){return typeof l=="string"||!t(l)&&n(l)&&e(l)==i}return isString_1=o,isString_1}var isStringExports=requireIsString();const isString=getDefaultExportFromCjs(isStringExports);var isFunctionExports=requireIsFunction();const isFunction=getDefaultExportFromCjs(isFunctionExports);var isObjectExports=requireIsObject();const isObject=getDefaultExportFromCjs(isObjectExports);var reactIs={exports:{}},reactIs_production_min={};/**
345
345
  * @license React
346
346
  * react-is.production.min.js
347
347
  *
@@ -44241,7 +44241,7 @@ const CEAdvancedMultiSelectDropdown = ({
44241
44241
  type: "text",
44242
44242
  className: "autocomplete-input",
44243
44243
  value: g,
44244
- placeholder: "Select Status",
44244
+ placeholder: o && n.length > 0 ? "" : "Select Status",
44245
44245
  onChange: (R) => _(R.target.value),
44246
44246
  onFocus: () => {
44247
44247
  m(!0), p(!0);
@@ -44373,7 +44373,7 @@ const CEAdvancedMultiSelectDropdown = ({
44373
44373
  ref: T,
44374
44374
  type: "text",
44375
44375
  className: "autocomplete-input",
44376
- placeholder: o,
44376
+ placeholder: l && n.length > 0 ? "" : o,
44377
44377
  value: E,
44378
44378
  onChange: (M) => b(M.target.value),
44379
44379
  onFocus: () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "1.0.197",
4
+ "version": "1.0.198",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",