cecomponent 1.0.154 → 1.0.155
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.
package/dist/ce-component-lib.js
CHANGED
|
@@ -338,7 +338,7 @@ i.goToAndStop(b-i.firstFrame-1,!0)}E.type==="loop"&&(m===null||m!==E.frames||i.i
|
|
|
338
338
|
`),p.push(` </office:body>
|
|
339
339
|
`),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(J){return J.forEach(function(X){typeof X=="string"&&u.push(X)})});var f={},p=[],d=CFB.read(t.numbers,{type:"base64"});d.FileIndex.map(function(J,X){return[J,d.FullPaths[X]]}).forEach(function(J){var X=J[0],Q=J[1];if(X.type==2&&X.name.match(/\.iwa/)){var le=X.content,xe=decompress_iwa_file(le),de=parse_iwa_file(xe);de.forEach(function(ue){p.push(ue.id),f[ue.id]={deps:[],location:Q,type:varint_to_i32(ue.messages[0].meta[1][0].data)}})}}),p.sort(function(J,X){return J-X});var m=p.filter(function(J){return J>1}).map(function(J){return[J,write_varint49(J)]});d.FileIndex.map(function(J,X){return[J,d.FullPaths[X]]}).forEach(function(J){var X=J[0];if(J[1],!!X.name.match(/\.iwa/)){var Q=parse_iwa_file(decompress_iwa_file(X.content));Q.forEach(function(le){le.messages.forEach(function(xe){m.forEach(function(de){le.messages.some(function(ue){return varint_to_i32(ue.meta[1][0].data)!=11006&&u8contains(ue.data,de[1])})&&f[de[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),O=parse_iwa_file(decompress_iwa_file(R.content));{for(var I=0;I<O.length&&O[I].id!=A;++I);if(O[I].id!=A)throw"Bad ColumnRowUIDMapArchive";var j=parse_shallow(O[I].messages[0].data);j[1]=[],j[2]=[],j[3]=[];for(var M=0;M<=i.e.c;++M){var N=[];N[1]=N[2]=[{type:0,data:write_varint49(M+420690)}],j[1].push({type:2,data:write_shallow(N)}),j[2].push({type:0,data:write_varint49(M)}),j[3].push({type:0,data:write_varint49(M)})}j[4]=[],j[5]=[],j[6]=[];for(var D=0;D<=i.e.r;++D)N=[],N[1]=N[2]=[{type:0,data:write_varint49(D+726270)}],j[4].push({type:2,data:write_shallow(N)}),j[5].push({type:0,data:write_varint49(D)}),j[6].push({type:0,data:write_varint49(D)});O[I].messages[0].data=write_shallow(j)}R.content=compress_iwa_file(write_iwa_file(O)),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),z=parse_TSP_Reference(q[2][0].data);R=CFB.find(d,f[z].location),O=parse_iwa_file(decompress_iwa_file(R.content));{if(O[0].id!=z)throw"Bad HeaderStorageBucket";var G=parse_shallow(O[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)}}O[0].messages[0].data=write_shallow(G)}R.content=compress_iwa_file(write_iwa_file(O)),R.size=R.content.length;var Y=parse_TSP_Reference(F[2][0].data);R=CFB.find(d,f[Y].location),O=parse_iwa_file(decompress_iwa_file(R.content));{if(O[0].id!=Y)throw"Bad HeaderStorageBucket";for(G=parse_shallow(O[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)};O[0].messages[0].data=write_shallow(G)}R.content=compress_iwa_file(write_iwa_file(O)),R.size=R.content.length;var V=parse_TSP_Reference(F[4][0].data);(function(){for(var J=CFB.find(d,f[V].location),X=parse_iwa_file(decompress_iwa_file(J.content)),Q,le=0;le<X.length;++le){var xe=X[le];xe.id==V&&(Q=xe)}var de=parse_shallow(Q.messages[0].data);{de[3]=[];var ue=[];u.forEach(function(ne,Pe){ue[1]=[{type:0,data:write_varint49(Pe)}],ue[2]=[{type:0,data:write_varint49(1)}],ue[3]=[{type:2,data:stru8(ne)}],de[3].push({type:2,data:write_shallow(ue)})})}Q.messages[0].data=write_shallow(de);var pe=write_iwa_file(X),Ee=compress_iwa_file(pe);J.content=Ee,J.size=J.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 J=CFB.find(d,f[U].location),X=parse_iwa_file(decompress_iwa_file(J.content)),Q,le=0;le<X.length;++le){var xe=X[le];xe.id==U&&(Q=xe)}var de=parse_shallow(Q.messages[0].data);{delete de[6],delete W[7];var ue=new Uint8Array(de[5][0].data);de[5]=[];for(var pe=0,Ee=0;Ee<=i.e.r;++Ee){var ne=parse_shallow(ue);pe+=write_tile_row(ne,l[Ee],u),ne[1][0].data=write_varint49(Ee),de[5].push({data:write_shallow(ne),type:2})}de[1]=[{type:0,data:write_varint49(i.e.c+1)}],de[2]=[{type:0,data:write_varint49(i.e.r+1)}],de[3]=[{type:0,data:write_varint49(pe)}],de[4]=[{type:0,data:write_varint49(i.e.r+1)}]}Q.messages[0].data=write_shallow(de);var Pe=write_iwa_file(X),fe=compress_iwa_file(Pe);J.content=fe,J.size=J.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 O=d.skipHidden&&e["!cols"]||[],I=d.skipHidden&&e["!rows"]||[];for(A=p.s.c;A<=p.e.c;++A)if(!(O[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(!(I[C]||{}).hidden){var j=make_json_row(e,p,C,_,i,l,T,d);(j.isempty===!1||(i===1?d.blankrows!==!1:d.blankrows))&&(S[E++]=j.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:`
|
|
340
340
|
`,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=`
|
|
341
|
-
`;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",O="",I=encode_cell({c:f+S,r:u+T+o});d=ws_get_cell_stub(l,I),A&&typeof A=="object"&&!(A instanceof Date)?l[I]=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)),O=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,O&&(d.z=O)):l[I]=d={t:R,v:A},O&&(d.z=O))})}),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 ExportIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.59%209.5H15V4.5C15%203.95%2014.55%203.5%2014%203.5H10C9.45%203.5%209%203.95%209%204.5V9.5H7.41C6.52%209.5%206.07%2010.58%206.7%2011.21L11.29%2015.8C11.68%2016.19%2012.31%2016.19%2012.7%2015.8L17.29%2011.21C17.92%2010.58%2017.48%209.5%2016.59%209.5ZM5%2019.5C5%2020.05%205.45%2020.5%206%2020.5H18C18.55%2020.5%2019%2020.05%2019%2019.5C19%2018.95%2018.55%2018.5%2018%2018.5H6C5.45%2018.5%205%2018.95%205%2019.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",FileOpenRounded="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%202.5H10.83C10.3%202.5%209.79%202.71%209.41%203.09L4.59%207.91C4.21%208.29%204%208.8%204%209.33V20.5C4%2021.6%204.9%2022.5%206%2022.5H18C19.1%2022.5%2020%2021.6%2020%2020.5V4.5C20%203.4%2019.1%202.5%2018%202.5ZM11.65%2017.15L8.86%2014.36C8.54%2014.04%208.76%2013.5%209.21%2013.5H11V10.51C11%209.96%2011.44%209.52%2011.99%209.51C12.55%209.5%2013%209.95%2013%2010.51V13.5H14.79C15.24%2013.5%2015.46%2014.04%2015.14%2014.35L12.35%2017.14C12.16%2017.34%2011.84%2017.34%2011.65%2017.15Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",ReloadIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.6498%206.84999C16.0198%205.21999%2013.7098%204.27999%2011.1698%204.53999C7.49978%204.90999%204.47978%207.88999%204.06978%2011.56C3.51978%2016.41%207.26978%2020.5%2011.9998%2020.5C15.1898%2020.5%2017.9298%2018.63%2019.2098%2015.94C19.5298%2015.27%2019.0498%2014.5%2018.3098%2014.5C17.9398%2014.5%2017.5898%2014.7%2017.4298%2015.03C16.2998%2017.46%2013.5898%2019%2010.6298%2018.34C8.40978%2017.85%206.61978%2016.04%206.14978%2013.82C5.30978%209.93999%208.25978%206.49999%2011.9998%206.49999C13.6598%206.49999%2015.1398%207.18999%2016.2198%208.27999L14.7098%209.78999C14.0798%2010.42%2014.5198%2011.5%2015.4098%2011.5H18.9998C19.5498%2011.5%2019.9998%2011.05%2019.9998%2010.5V6.90999C19.9998%206.01999%2018.9198%205.56999%2018.2898%206.19999L17.6498%206.84999Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",FilterAltOffRounded="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.7901%206.11003C20.3001%205.45003%2019.8301%204.50003%2019.0001%204.50003H6.83008L14.8001%2012.47L19.7901%206.11003Z'%20fill='black'%20fill-opacity='0.54'/%3e%3cpath%20d='M20.4901%2020.99L3.51012%204.01003C3.12012%203.62003%202.49012%203.62003%202.10012%204.01003C1.71012%204.40003%201.71012%205.03003%202.10012%205.42003L10.0001%2013.5V18.5C10.0001%2019.6%2010.9001%2020.5%2012.0001%2020.5C13.1001%2020.5%2014.0001%2019.6%2014.0001%2018.5V17.33L19.0701%2022.4C19.4601%2022.79%2020.0901%2022.79%2020.4801%2022.4C20.8701%2022.01%2020.8801%2021.38%2020.4901%2020.99Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",CESkeletonTable=({columns:e,rows:t})=>jsxRuntimeExports.jsx("div",{className:"skeleton-table",children:jsxRuntimeExports.jsxs("table",{children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:Array.from({length:e}).map((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})]}),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},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,O,I;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:j=>{var M,N;return(N=(M=e[n])==null?void 0:M.onselect)==null?void 0:N.call(M,j)},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:j=>{var M;return(M=e[n])==null?void 0:M.onchange(j)},value:((C=e[n])==null?void 0:C.value)||"",showError:!1}):f==="number-input"?jsxRuntimeExports.jsx(CEInputBox,{type:"number",onChange:j=>{var M;return(M=e[n])==null?void 0:M.onchange(j)},value:((A=e[n])==null?void 0:A.value)||"",showError:!1}):f==="drop-down-input"?jsxRuntimeExports.jsx(CEDynamicSelectField,{label:"",value:((R=e[n])==null?void 0:R.value)||"",onChange:j=>{var M;(M=e[n])==null||M.onchange(j.target.value)},options:((O=e[n])==null?void 0:O.options)||[],showPlaceholder:!0,placeholderText:""}):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(((I=e[n])==null?void 0:I.value)??"")}))})},CEDateRangePicker=({label:e="Submitted Date",onChange:t,size:n="medium",style:i,inputGroupStyle:o,id:l,name:u,mode:f="range",defaultValue:p,disabled:d=!1})=>{const[m,g]=React.useState(""),[_,S]=React.useState(""),[E,b]=React.useState(!1),[T,C]=React.useState(""),A=j=>{!j.currentTarget.value&&!m&&!_&&b(!1)},R=(j,M)=>{if(t==null||t({startDate:j||"",endDate:M||""}),j&&!M||!j&&M){C("Both start and end dates must be selected");return}if(j&&M&&new Date(M)<new Date(j)){C("End date must be after or equal to start date");return}C("")};React.useEffect(()=>{p&&(p.startDate&&g(p.startDate),p.endDate&&S(p.endDate))},[p]);const O=j=>{const M=j.target.value;g(M),R(M,_)},I=j=>{const M=j.target.value;S(M),R(m,M)};return jsxRuntimeExports.jsxs("div",{className:"date-range-picker",style:i,id:l,"data-testid":l?`${l}-wrapper`:void 0,children:[jsxRuntimeExports.jsx("div",{className:"date-range-field-group",style:o,children:f==="single"?jsxRuntimeExports.jsxs("div",{className:"field-box float",children:[jsxRuntimeExports.jsx("input",{type:"date",value:m,name:u,"data-testid":l?`${l}-input`:void 0,onChange:j=>{const M=j.target.value;g(M),t==null||t({startDate:M,endDate:""})},onFocus:()=>b(!0),onBlur:j=>A(j),disabled:d}),jsxRuntimeExports.jsx("label",{className:"floating-label-box",children:e||"Select Date"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"field-box float",children:[jsxRuntimeExports.jsx("input",{type:"date",value:m,name:u?`${u}-from`:void 0,"data-testid":l?`${l}-from`:void 0,onChange:O,onFocus:()=>b(!0),onBlur:j=>A(j),disabled:d}),jsxRuntimeExports.jsx("label",{className:"floating-label-box",children:"From"})]}),jsxRuntimeExports.jsx("span",{className:"range-separator centered",children:"to"}),jsxRuntimeExports.jsxs("div",{className:"field-box float",children:[jsxRuntimeExports.jsx("input",{type:"date",value:_,name:u?`${u}-to`:void 0,"data-testid":l?`${l}-to`:void 0,onChange:I,onFocus:()=>b(!0),onBlur:j=>A(j),disabled:d}),jsxRuntimeExports.jsx("label",{className:"floating-label-box",children:"To"})]})]})}),T&&f!=="single"&&jsxRuntimeExports.jsx("div",{className:"error-text",children:T})]})},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,isRadioButtonInGrid:o,onRadioChange:l,getSelectedRadioValue:u,renderRadioInColumnId:f,isSearchBoxInGrid:p,isAddButtonRequired:d,isEditButtonRequired:m,isDeleteButtonRequired:g,isApproveButtonRequired:_,isReassignButtonRequired:S,isCancelButtonRequired:E,isExportToExcelRequired:b,isExportAllToExcel:T,handleEditClick:C,handleAddClick:A,handleDeleteClick:R,handleApproveClick:O,handleReassignClick:I,handleCancelClick:j,noOfPagesPerPage:M,clickableColumns:N,conditionalClickableColumns:D,clickableCellPredicate:F,handleCellClick:q,onReload:z,showDownloadIcon:G=!0,downloadOptions:ee,showRefreshIcon:Y=!0,showFullViewIcon:V=!0,showSearchIcon:W=!0,showColumnVisibilityIcon:L=!0,showSortIcon:B=!0,showFilterIcon:U=!0,defaultDownloadLabel:K="Export to Excel",defaultSortConfig:H,onDataUpdate:J,isOverrideCSS:X,showPagination:Q=!0,shouldResetSearchOnDataChange:le,pageSizeOptions:xe=[10,20,50,100],handleSelectedRows:de,rowsSelected:ue,selectionKey:pe="id",onPageChange:Ee})=>{const ne=(ce,he)=>{if(typeof pe=="function")try{const me=pe(ce);if(me!=null)return me}catch{}else if(typeof pe=="string"&&ce&&ce[pe]!==void 0)return ce[pe];if(he!==void 0)return`__row_${he}`},[Pe,fe]=React.useState({}),[Ne,je]=React.useState(!1),[Se,Me]=React.useState([]),[Le,Ve]=React.useState([]),[ze,$e]=React.useState([]),[Qe,Ue]=React.useState(!1),[He,Xe]=React.useState(new Set),[Ge,Ye]=React.useState(null),[ct,tt]=React.useState(!1),[at,ot]=React.useState(""),[xt,ft]=React.useState(null),[_t,bt]=React.useState(null),[vt,Et]=React.useState("contains"),[Tt,dt]=React.useState(""),[et,ut]=React.useState({}),[pt,st]=React.useState(0),[yt,Ft]=React.useState(M??10),Be=ce=>{if(st(ce),typeof Ee=="function")try{Ee(ce)}catch{}};React.useEffect(()=>{if(typeof Ee=="function")try{Ee(pt)}catch{}},[pt]);const[lt,jt]=React.useState(new Set),[St,Ct]=React.useState(""),[Ot,$t]=React.useState(!1),[ht,Rt]=React.useState(new Set),[Z,ae]=React.useState([]),[te,ie]=React.useState(null),oe=React.useRef(null),se=React.useRef(null),ve=React.useRef(null),[Te,ge]=React.useState({top:0,left:0}),_e=React.useRef(null),[be,Re]=React.useState(new Set),[Ce,ke]=React.useState([]),[Ae,Oe]=React.useState(!1),[De,Ze]=React.useState(null),Je=React.useRef([]),[it,At]=React.useState(!1),kt=()=>At(!0),It=()=>At(!1),[Pt,wt]=React.useState(!0);React.useEffect(()=>{if(typeof de=="function"){const ce=Array.from(He),he=ce.map(me=>{if(typeof me=="string"&&me.startsWith("__row_")){const ye=parseInt(me.slice(6),10);return!isNaN(ye)&&ye>=0&&ye<Se.length?Se[ye]:void 0}return Le.find(ye=>{const we=ne(ye);return we!==void 0&&(we===me||String(we)===String(me))})||Se.find(ye=>{const we=ne(ye);return we!==void 0&&(we===me||String(we)===String(me))})}).filter(Boolean);try{de.length===1?de({ids:ce,rows:he}):de(he)}catch{try{de(he)}catch{}}}},[He,Se,de,pe]),React.useEffect(()=>{if(!ue)return;const ce=Array.from(ue),he=ce.every(we=>typeof we=="number"&&we>=0&&we<Se.length),me=new Set(ce.map(we=>{if(he){const Ie=Se[we];return ne(Ie,we)??`__row_${we}`}return we}));((we,Ie)=>{if(we.size!==Ie.size)return!1;const Fe=Array.from(we);for(let qe=0;qe<Fe.length;qe++)if(!Ie.has(Fe[qe]))return!1;return!0})(me,He)||Xe(me)},[ue,Se,pe]),React.useEffect(()=>{if(t&&Array.isArray(t)){const ce=stripReactElements(Je.current),he=stripReactElements(t),me=JSON.stringify(ce)!==JSON.stringify(he);if(t&&Array.isArray(t)&&me){let ye=[...t];if(H){const{column:we,direction:Ie}=H;ye.sort((Fe,qe)=>{const We=Fe[we],rt=qe[we],Ke=new Date(We),nt=new Date(rt),mt=!isNaN(Ke.getTime()),Lt=!isNaN(nt.getTime());if(mt&&Lt)return Ie==="asc"?Ke.getTime()-nt.getTime():nt.getTime()-Ke.getTime();const Bt=String(We||"").toLowerCase(),Nt=String(rt||"").toLowerCase();return Bt.localeCompare(Nt)}),Ie==="desc"&&ye.reverse(),Ze(H)}if(Me(ye),Ve(ye),wt(!1),le?(Ct(""),ut({})):nr(),f){const we={},Ie=Array.isArray(f)?f:[f];ye.forEach((Fe,qe)=>{const We=Fe.id??`__row_${qe}`;for(const rt of Ie)if(Fe[rt]===!0){we[We]={columnId:rt,rowData:Fe};break}}),Kt(we)}Je.current=t}}else wt(!0)},[t,H,f]),React.useEffect(()=>{if(Se.length>0){const ce=(n??[]).map(ye=>({id:ye.id,label:ye.label??ye.id,tooltip:ye.tooltip,shouldDisplay:ye.shouldDisplay??!0,shouldVisible:ye.shouldVisible??!0,width:ye.width,elementType:ye.elementType,required:ye.required??!1})),he=Object.keys(Se[0]||{}).map(ye=>({id:ye,label:ye.charAt(0).toUpperCase()+ye.slice(1),shouldDisplay:!0,shouldVisible:!0})),me=ce.length>0?ce:he;if(ke(me),!Ae){const ye=me.filter(Ie=>Ie.shouldDisplay!==!1).map(Ie=>Ie.id),we=me.filter(Ie=>Ie.shouldVisible!==!1).map(Ie=>Ie.id);Rt(new Set(ye)),ae(we),Oe(!0)}}},[Se,n]);const[gt,Kt]=React.useState({}),er=({rowIndex:ce,columnId:he,rowData:me})=>{const ye=Array.isArray(f)?f:[f],we={...me,...Object.fromEntries(ye.map(qe=>[qe,qe===he]))},Ie=me.id??`__row_${ce}`;Kt(qe=>({...qe,[Ie]:{columnId:he,rowData:we}}));const Fe=Se.map((qe,We)=>(qe.id??`__row_${We}`)===Ie?{...qe,...Object.fromEntries(ye.map(Ke=>[Ke,Ke===he]))}:qe);Me(Fe),Ve(Fe),J&&J({fullData:Fe,updatedRow:we})},tr=ce=>{var ye;const he=Se.findIndex(we=>we===ce),me=ce.id??`__row_${he}`;return((ye=gt[me])==null?void 0:ye.columnId)||""},Wt=React.useMemo(()=>{const ce=pt*yt,he=ce+yt;return Se.slice(ce,he)},[Se,pt,yt]),rr=()=>{Ct("");const ce=Mt(Le,et,"");Me(ce)},nr=()=>{const ce=Mt(Le,et,St);Me(ce),st(0)},ir=ce=>{const he=new Set(ht);he.has(ce)?he.size>1&&he.delete(ce):he.add(ce),Rt(he)},Xt=(ce,he=null)=>{const me=he?`${ce}-${he}`:`${ce}`,ye=new Set(lt);ye.has(me)?ye.delete(me):(Array.from(ye).forEach(we=>{we.startsWith(`${ce}`)&&ye.delete(we)}),ye.add(me)),jt(ye)},Yt=ce=>{Ye(Ge===ce?null:ce)};React.useEffect(()=>{const ce=he=>{var Fe,qe,We,rt;if(!Ge)return;const me=he.target,ye=((Fe=se.current)==null?void 0:Fe.contains(me))??!1,we=((qe=ve.current)==null?void 0:qe.contains(me))??!1,Ie=((rt=(We=he.target)==null?void 0:We.closest)==null?void 0:rt.call(We,".dropdown-trigger"))!=null;!ye&&!we&&!Ie&&Ye(null)};return document.addEventListener("click",ce),()=>{document.removeEventListener("click",ce)}},[Ge]),React.useMemo(()=>new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}),[]);const ar=(ce,he)=>{if(ce==null)return 1;if(he==null)return-1;const me=new Date(ce),ye=new Date(he);return!isNaN(me.getTime())&&!isNaN(ye.getTime())?me.getTime()-ye.getTime():!isNaN(Number(ce))&&!isNaN(Number(he))?Number(ce)-Number(he):String(ce).localeCompare(String(he),void 0,{numeric:!0,sensitivity:"base"})},Ut=(ce,he,me)=>{const ye=getColumnValue(ce==null?void 0:ce[me]),we=getColumnValue(he==null?void 0:he[me]);return ar(ye,we)},or=(ce,he)=>{for(let me=1;me<ce.length;me++)if(Ut(ce[me-1],ce[me],he)>0)return!1;return!0},sr=(ce,he)=>{for(let me=1;me<ce.length;me++)if(Ut(ce[me-1],ce[me],he)<0)return!1;return!0},Mt=(ce,he=et,me=St)=>{let ye=[...ce];if(me&&me.trim()){const we=me.toLowerCase();ye=ye.filter(Ie=>Object.entries(Ie).some(([Fe,qe])=>ht.has(Fe)?String(qe??"").toLowerCase().includes(we):!1))}return Object.entries(he||{}).forEach(([we,Ie])=>{const{value:Fe,operator:qe}=Ie,We=(Fe??"").toLowerCase();ye=ye.filter(rt=>{const Ke=rt[we],nt=String(getColumnValue(Ke)??"").toLowerCase();switch((qe||"").toString()){case"contains":return nt.includes(We);case"equals":return nt===We;case"startsWith":return nt.startsWith(We);case"endsWith":return nt.endsWith(We);case"does not contain":return!nt.includes(We);case"does not equal":return nt!==We;case"is any of":return Fe.split(",").map(mt=>mt.trim().toLowerCase()).includes(nt);case"Date Range":case"dateRange":{if(!Fe)return!0;const mt=Fe.split(" - ").map(vr=>vr.trim());if(mt.length!==2)return!1;const Lt=new Date(mt[0]),Bt=new Date(mt[1]);if(isNaN(Lt.getTime())||isNaN(Bt.getTime())||(Lt.setHours(0,0,0,0),Bt.setHours(23,59,59,999),!Ke))return!1;const Nt=new Date(Ke);return isNaN(Nt.getTime())?!1:(Nt.setHours(0,0,0,0),Nt>=Lt&&Nt<=Bt)}default:return!0}})}),ye},lr=ce=>{if(!Le||Le.length===0)return;const he=Object.keys(et).length>0,me=St.trim().length>0,ye=he||me?Se:Le;let we;(De==null?void 0:De.column)===ce?we=De.direction==="asc"?"desc":"asc":or(ye,ce)?we="desc":(sr(ye,ce),we="asc"),Ze({column:ce,direction:we});const Ie=[...Le].sort((qe,We)=>{const rt=Ut(qe,We,ce);return we==="asc"?rt:-rt});Ve(Ie);const Fe=Mt(Ie);Me(Fe),st(0)},Zt=()=>{if(!at){tt(!1),dt(""),ot(""),st(0);return}if(vt==="Date Range")if(_t&&_t.startDate&&_t.endDate)Dt(at,void 0,"Date Range");else{tt(!0);return}else Tt&&Tt.trim()!==""&&Dt(at,Tt,vt);tt(!1),dt(""),ot(""),bt(null),st(0)},Dt=(ce,he,me)=>{if(me==="Date Range"&&_t&&ce){const{startDate:ye,endDate:we}=_t;if(!ye||!we){console.warn("Invalid date range:",ye,we);return}const Ie=new Date(ye);Ie.setHours(0,0,0,0);const Fe=new Date(we);Fe.setHours(23,59,59,999);const qe=Le.filter(We=>{const rt=We[ce];if(!rt)return!1;const Ke=new Date(rt);return isNaN(Ke.getTime())?!1:(Ke.setHours(0,0,0,0),Ke>=Ie&&Ke<=Fe)});Me(qe),st(0),ut({...et,[ce]:{value:`${ye} - ${we}`,operator:"Date Range"}}),tt(!1),Ye(null),bt(null);return}if(ce){const ye={...et};if(he===""&&(me==="contains"||me==="equals")){ot(ce),Et(me||vt),dt(""),tt(!0);return}else he&&he.trim()!==""?ye[ce]={value:he,operator:me||vt}:delete ye[ce];ut(ye);let we=[...Le];Object.entries(ye).forEach(([Ie,Fe])=>{const{value:qe,operator:We}=Fe;we=we.filter(rt=>{const Ke=String(getColumnValue(rt[Ie])||"").toLowerCase(),nt=qe.toLowerCase();switch(We){case"contains":return Ke.includes(nt);case"equals":return Ke===nt;case"startsWith":return Ke.startsWith(nt);case"endsWith":return Ke.endsWith(nt);case"does not contain":return!Ke.includes(nt);case"does not equal":return Ke!==nt;case"is any of":return qe.split(",").map(mt=>mt.trim().toLowerCase()).includes(Ke);default:return!0}})}),Me(we),$e(we),st(0),tt(!1)}},cr=ce=>{ce.key==="Enter"&&Dt()};useEscapeKey(()=>{Ye(null),tt(!1)});const Ht=(ce,he="")=>{const me=ye=>{const we=new Set(be);we.has(ye)?we.delete(ye):we.add(ye),Re(we)};if(Array.isArray(ce)){const ye=Array.from(new Set(ce.reduce((we,Ie)=>typeof Ie=="object"&&Ie!==null?[...we,...Object.keys(Ie)]: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:ye.map(we=>jsxRuntimeExports.jsx("th",{children:we.charAt(0).toUpperCase()+we.slice(1)},we))})}),jsxRuntimeExports.jsx("tbody",{children:ce.map((we,Ie)=>jsxRuntimeExports.jsx("tr",{children:ye.map(Fe=>jsxRuntimeExports.jsx("td",{children:typeof we[Fe]=="object"&&we[Fe]!==null?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>me(`${he}-${Ie}-${Fe}`),children:be.has(`${he}-${Ie}-${Fe}`)?"▼":"▶"}),be.has(`${he}-${Ie}-${Fe}`)&&Ht(we[Fe],`${he}-${Ie}-${Fe}`)]}):String(we[Fe]||"")},`${he}-${Ie}-${Fe}`))},`${he}-${Ie}`))})]})})})}else if(typeof ce=="object"&&ce!==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(ce).map(([ye,we])=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"table-cell",children:jsxRuntimeExports.jsx("strong",{children:ye})}),jsxRuntimeExports.jsx("td",{className:"table-cell",children:typeof we=="object"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>me(`${he}-${ye}`),children:be.has(`${he}-${ye}`)?"▼":"▶"}),be.has(`${he}-${ye}`)&&Ht(we,`${he}-${ye}`)]}):String(we)})]},`${he}-${ye}`))})]})});return jsxRuntimeExports.jsx("span",{children:String(ce)})},Jt=ce=>{var he;if(ce){const me=(he=ce.parentElement)==null?void 0:he.querySelector(".dropdown-trigger");if(!me)return;const ye=me.getBoundingClientRect(),we=window.innerHeight,Ie=window.innerWidth,Fe=ce.offsetHeight,qe=ce.offsetWidth,We=ye.bottom+Fe>we,rt=ye.left+qe>Ie,Ke=ye.left-qe<0;let nt,mt;We?(nt=ye.top-Fe,ce.classList.add("adjust-top")):(nt=ye.bottom,ce.classList.remove("adjust-top")),rt?(mt=ye.right-qe,ce.classList.add("adjust-left"),ce.classList.remove("adjust-right")):Ke?(mt=ye.left,ce.classList.add("adjust-right"),ce.classList.remove("adjust-left")):(mt=ye.left,ce.classList.remove("adjust-left"),ce.classList.remove("adjust-right")),ce.style.top=`${nt}px`,ce.style.left=`${mt}px`,ce.classList.add("dropdown-fixed-position")}};React.useEffect(()=>{const ce=he=>{ct&&oe.current&&!oe.current.contains(he.target)&&tt(!1)};return document.addEventListener("mousedown",ce),()=>{document.removeEventListener("mousedown",ce)}},[ct]),React.useEffect(()=>()=>{},[Ge]),React.useEffect(()=>{const ce=he=>{Ot&&_e.current&&!_e.current.contains(he.target)&&$t(!1)};return document.addEventListener("mousedown",ce),()=>{document.removeEventListener("mousedown",ce)}},[Ot]);const ur=(ce,he)=>{ce.preventDefault();const me=ce.pageX,ye=Pe[he]||150,we=Fe=>{const qe=Math.max(100,ye+(Fe.pageX-me));fe(We=>({...We,[he]:qe}))},Ie=()=>{document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",Ie)};document.addEventListener("mousemove",we),document.addEventListener("mouseup",Ie)},Gt=(ce,he,me)=>{var we;const ye=String(he??"");if(typeof F=="function")try{if(F(me??{},ce))return!0}catch{}return N!=null&&N.includes(ce)?D!=null&&D[ce]?D[ce].includes(ye):!0:!!((we=D==null?void 0:D._global_)!=null&&we.includes(ye))},pr=(ce,he)=>{Gt(he,ce[he],ce)&&q&&q(ce,he)},Vt=Wt.some(ce=>Array.from(ht).some(he=>Array.isArray(ce[he])&&ce[he].length>0&&ce[he].some(me=>typeof me=="object"&&me!==null))),hr=ce=>{const he=/[\\/:*?"<>|]/g;return ce.replace(he,"").trim()},dr=ce=>{try{const he=window.prompt("Enter file name",ce);if(!he)return ce;const me=hr(he);return me.length===0?ce:me.endsWith(".xlsx")?me:`${me}.xlsx`}catch{return ce}},zt=(ce=!1)=>{const he=Ce.filter(We=>ht.has(We.id)),me=ce||!(Se&&Se.length>0)?Le:Se,ye=me.map(We=>he.reduce((rt,Ke)=>(rt[Ke.label||Ke.id]=getColumnValue(We[Ke.id]),rt),{})),we=utils.json_to_sheet(ye),Ie=utils.book_new();utils.book_append_sheet(Ie,we,"Data");const qe=dr(ce||me===Le?"all-data-export.xlsx":"filtered-search-export.xlsx");writeFileSync(Ie,qe)},mr=()=>jsxRuntimeExports.jsxs("div",{className:X?"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:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:Se.length>0&&Se.every((ce,he)=>{const me=ne(ce,he);return me!==void 0&&He.has(me)}),onChange:ce=>{if(ce){const he=new Set(Se.map((me,ye)=>ne(me,ye)));Xe(he)}else Xe(new Set)}})}),Z.filter(ce=>Ce.find(me=>me.id===ce)&&ht.has(ce)).map(ce=>{const he=Ce.find(me=>me.id===ce);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:[B&&jsxRuntimeExports.jsx("img",{src:SortIcon,alt:"Sort",title:"Sort",width:14,height:14,onClick:()=>lr(he.id),style:{cursor:"pointer",transition:"transform 0.2s ease-in-out",transform:(De==null?void 0:De.column)===he.id?De.direction==="asc"?"rotate(0deg)":"rotate(180deg)":"none",filter:(De==null?void 0:De.column)===he.id?"brightness(0.6)":"none"}}),U&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:he.id===Ge?se:null,children:[jsxRuntimeExports.jsx("span",{className:`dropdown-trigger ${et[he.id]?"filter-active":""}`,onClick:me=>{me.stopPropagation(),Yt(he.id)},title:et[he.id]?`Filter: ${et[he.id].operator} "${et[he.id].value}"`:"Filter options",children:"⋮"}),Ge===he.id&&jsxRuntimeExports.jsxs("div",{className:"dropdown-menu",ref:me=>{me&&setTimeout(()=>Jt(me),0)},children:[jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{ot(he.id),tt(!0),Ye(null)},children:"Filter"}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Dt(he.id,"","contains"),Ye(null)},children:"Contains..."}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Dt(he.id,"","equals"),Ye(null)},children:"Equals..."}),et[he.id]&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{const me={...et};delete me[he.id],ut(me),dt(""),ot("");const ye=Mt(Le,me,St);Me(ye),st(0),Ye(null)},children:"Clear Filter"}),Object.keys(et).length>0&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{ut({}),dt(""),ot(""),bt(null),Ct(""),Me(Le),st(0),Ye(null)},children:"Clear All Filters"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"column-resizer",onMouseDown:me=>ur(me,he.id)})]})},he.id):null}),(m||S||E||_||g||d)&&jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:"150px",textAlign:"center"},children:"Action"})]}),Qe&&jsxRuntimeExports.jsxs("tr",{className:"filter-row",children:[Vt&&jsxRuntimeExports.jsx("td",{}),i&&jsxRuntimeExports.jsx("td",{}),Z.filter(ce=>Ce.find(me=>me.id===ce)&&ht.has(ce)).map(ce=>{var me;const he=Ce.find(ye=>ye.id===ce);return he?jsxRuntimeExports.jsxs("td",{style:{position:"relative"},children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:`Search ${he.label}`,value:((me=et[he.id])==null?void 0:me.value)||"",onChange:ye=>{const we=ye.target.value;dt(we),ot(he.id);const Ie={...et};we===""?delete Ie[he.id]:Ie[he.id]={value:we,operator:"contains"},ut(Ie);const Fe=Mt(Le,Ie,St);Me(Fe),st(0)},className:"filter-input-with-clear",style:{paddingRight:"28px"}}),et[he.id]&&jsxRuntimeExports.jsx("span",{className:"filter-clear-icon-inside",onClick:()=>{const ye={...et};delete ye[he.id],ut(ye),dt(""),ot("");const we=Mt(Le,ye,St);Me(we),st(0)},title:"Clear",children:"×"})]},`filter-${he.id}`):null}),(m||S||E||_||g||d)&&jsxRuntimeExports.jsx("td",{})]})]}),jsxRuntimeExports.jsx("tbody",{children:Wt.length===0?jsxRuntimeExports.jsx("tr",{className:"no-records-row",children:jsxRuntimeExports.jsx("td",{colSpan:(Vt?1:0)+(i?1:0)+Array.from(ht).length+(m||S||E||_||g||d?1:0),className:"no-records-cell",children:St.trim()||Object.keys(et).length>0?"No records found for the search criteria":"No Data found"})}):Wt.map((ce,he)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("tr",{className:ce.isNewRow?"table-new-row":he%2===0?`table-row-even ${ce.hasError?"row-error":ce.isModified?"row-invalid":""}`:`table-row-odd ${ce.hasError?"row-error":ce.isModified?"row-invalid":""}`,title:ce.rowMessage||"",children:[Vt&&jsxRuntimeExports.jsx("td",{className:"expand-column",children:Array.from(ht).some(me=>Array.isArray(ce[me])&&ce[me].length>0&&ce[me].some(ye=>typeof ye=="object"&&ye!==null))&&jsxRuntimeExports.jsx("button",{className:"expand-button",onClick:()=>Xt(he),children:Array.from(lt).some(me=>me.startsWith(`${he}`))?"▼":"▶"})}),i&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:(()=>{const me=ne(ce,pt*yt+he);return me!==void 0&&He.has(me)})(),onChange:me=>{const ye=new Set(He),we=ne(ce,pt*yt+he);we!==void 0&&(me?ye.add(we):ye.delete(we)),Xe(ye)}})}),o&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:"selected",checked:(u==null?void 0:u(he))==="selected",onChange:()=>l==null?void 0:l({rowIndex:he,columnId:"selected",rowData:ce})})})}),Z.filter(me=>Ce.find(we=>we.id===me)&&ht.has(me)).map(me=>{const ye=Ce.find(we=>we.id===me);return ye?jsxRuntimeExports.jsx("td",{style:{width:Pe[ye.id]?`${Pe[ye.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},className:`table-cell ${Gt(ye.id,ce[ye.id],ce)?"ce-clickable-cell":""}`,onClick:()=>{Gt(ye.id,ce[ye.id],ce)?pr(ce,ye.id):Array.isArray(ce[ye.id])&&ce[ye.id].length>0&&Xt(he,ye.id)},children:ce.isNewRow?jsxRuntimeExports.jsx(AddNewRowCell,{row:ce,column:ye,colId:me}):React.isValidElement(ce[ye.id])?ce[ye.id]:(Array.isArray(f)?f.includes(ye.id):f===ye.id)?jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:ye.id,checked:tr(ce)===ye.id,onChange:()=>er({rowIndex:he,columnId:ye.id,rowData:ce})})}):Array.isArray(ce[ye.id])?`${ce[ye.id].length}`:typeof ce[ye.id]=="object"&&ce[ye.id]!==null?Object.entries(ce[ye.id]).map(([we,Ie])=>`${we}: ${Ie}`).join(", "):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(ce[ye.id]??"")})},ye.id):null}),(m||S||E||_||g||d)&&jsxRuntimeExports.jsx("td",{className:"table-cell",style:{textAlign:"center"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px",flexWrap:"wrap"},children:[m&&jsxRuntimeExports.jsx("img",{src:Edit,alt:"Edit",title:"Edit",width:20,height:20,style:{cursor:"pointer"},onClick:C}),S&&jsxRuntimeExports.jsx("img",{src:Reassign,alt:"Reassign",width:20,height:20,style:{cursor:"pointer"},onClick:I}),E&&jsxRuntimeExports.jsx("img",{src:Cancel,alt:"Cancel",width:20,height:20,style:{cursor:"pointer"},onClick:j}),_&&jsxRuntimeExports.jsx("img",{src:Approve,alt:"Approve",width:20,height:20,style:{cursor:"pointer"},onClick:O}),g&&jsxRuntimeExports.jsx("img",{src:Delete,alt:"Delete",width:20,height:20,style:{cursor:"pointer"},onClick:()=>R==null?void 0:R(ce,he)}),d&&jsxRuntimeExports.jsx("img",{src:Add,alt:"Add",width:20,height:20,style:{cursor:"pointer"},onClick:A})]})})]}),Array.from(lt).map(me=>{const[ye,we]=me.split("-");if(Number(ye)===he){const Ie=we?{[we]:ce[we]}:Object.keys(ce).filter(Fe=>Array.isArray(ce[Fe])||typeof ce[Fe]=="object").reduce((Fe,qe)=>({...Fe,[qe]:ce[qe]}),{});return jsxRuntimeExports.jsx("tr",{className:"expanded-row",children:jsxRuntimeExports.jsx("td",{colSpan:ht.size+2,className:"expanded-cell",children:Object.entries(Ie).map(([Fe,qe],We)=>jsxRuntimeExports.jsxs("div",{className:`expanded-section ${We%2===0?"expanded-section-even":"expanded-section-odd"}`,style:{backgroundColor:We%2===0?"#e8f5e9":"#e3f2fd",padding:"10px",marginBottom:"10px",borderRadius:"5px"},children:[jsxRuntimeExports.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:Fe.charAt(0).toUpperCase()+Fe.slice(1)}),Ht(qe)]},Fe))})},`expanded-${me}`)}return null})]},he))})]})}),Q&&jsxRuntimeExports.jsxs("div",{className:"pagination-container",children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"40px"},children:[jsxRuntimeExports.jsx(EntriesInfo,{dataLength:Se.length,currentPage:pt,rowsPerPage:yt}),jsxRuntimeExports.jsx(RowsPerPageSelector,{rowsPerPage:yt,setRowsPerPage:Ft,setCurrentPage:Be,pageSizeOptions:xe})]}),jsxRuntimeExports.jsx(PaginationControls,{currentPage:pt,totalPages:Math.ceil(Se.length/yt),setCurrentPage:Be})]}),ct&&jsxRuntimeExports.jsx("div",{className:"filter-modal",children:jsxRuntimeExports.jsxs("div",{className:"filter-modal-content",ref:oe,onKeyDown:cr,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:()=>tt(!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:at,onChange:ce=>ot(ce.target.value),className:"filter-select","aria-label":"Filter column",title:"Select column to filter",children:Ce.map(ce=>jsxRuntimeExports.jsx("option",{value:ce.id,children:ce.label},ce.id))})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Operator:"}),jsxRuntimeExports.jsxs("select",{value:vt,onChange:ce=>Et(ce.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"})]}),vt==="Date Range"&&jsxRuntimeExports.jsx("div",{style:{marginTop:"10px"},children:jsxRuntimeExports.jsx(CEDateRangePicker,{mode:"range",onChange:ce=>{bt({startDate:ce.startDate,endDate:ce.endDate})}})})]}),vt!=="Date Range"&&jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Value:"}),jsxRuntimeExports.jsx("input",{type:"text",value:Tt,onChange:ce=>dt(ce.target.value),placeholder:"Enter filter value",title:"Filter value",className:"filter-input",autoFocus:!0,onKeyDown:ce=>{ce.key==="Enter"&&Zt(),ce.key==="Escape"&&tt(!1)}})]}),Object.keys(et).length>0&&jsxRuntimeExports.jsxs("div",{className:"active-filters-summary",children:[jsxRuntimeExports.jsx("div",{className:"active-filters-header",children:"Active Filters:"}),Object.entries(et).map(([ce,he])=>{const me=Ce.find(ye=>ye.id===ce);return jsxRuntimeExports.jsxs("div",{className:"active-filter-item",children:[jsxRuntimeExports.jsxs("span",{children:[(me==null?void 0:me.label)||ce,": "]}),jsxRuntimeExports.jsx("span",{className:"filter-operator",children:he.operator}),jsxRuntimeExports.jsxs("span",{className:"filter-value",children:['"',he.value,'"']})]},ce)})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-footer",children:[jsxRuntimeExports.jsx(CEButton,{onClick:()=>{ut({}),Me(Le),st(0),tt(!1)},className:"clear-filters-button",variant:"outlined",children:"Clear All"}),jsxRuntimeExports.jsx(CEButton,{onClick:Zt,className:"apply-filter-button",variant:"primary",children:"Apply Filter"})]})]})})]}),yr=()=>{z?(wt(!0),Promise.resolve(z()).finally(()=>{ut({});try{const ce=Ce.filter(me=>me.shouldDisplay!==!1).map(me=>me.id),he=Ce.filter(me=>me.shouldVisible!==!1).map(me=>me.id);Rt(new Set(ce)),ae(he),$t(!1)}catch{}wt(!1)})):(wt(!0),setTimeout(()=>{Me(t),Ve(t),st(0),Ct(""),dt(""),ot(""),ut({}),Ze(null);try{const ce=Ce.filter(me=>me.shouldDisplay!==!1).map(me=>me.id),he=Ce.filter(me=>me.shouldVisible!==!1).map(me=>me.id);Rt(new Set(ce)),ae(he),$t(!1)}catch{}wt(!1)},300))},xr=Ce.filter(ce=>ce.shouldVisible!==!1).every(ce=>ht.has(ce.id));return jsxRuntimeExports.jsxs("div",{className:`datatable-wrapper${it?" 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:[p&&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 ce=!Qe;Ue(ce),ce||(ut({}),Me(Le),st(0),Ct(""))}}),St&&jsxRuntimeExports.jsx("button",{className:"search-cancel-button",onClick:()=>{Ct(""),rr()},children:"×"})]}),L&&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(et).length>0&&jsxRuntimeExports.jsx("img",{src:FilterAltOffRounded,alt:"Clear Filters",title:"Clear All Filters",width:20,height:20,style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:()=>{ut({}),Me(Le),st(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)}),Y&&jsxRuntimeExports.jsx("img",{src:ReloadIcon,alt:"Reload",title:"Reload Data",width:20,height:20,className:"ce-reload-icon",style:{cursor:"pointer",fill:"#808080"},onClick:yr}),G&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:ve,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:ce=>{ce.stopPropagation(),ee&&ee.length>0?Yt("download"):zt()}}),(()=>{const ce=ee??[],he=ce.find(we=>we.usedefault===!0),me=ce.filter(we=>!we.usedefault);let ye=[];return ce.length>0?he?ye=[{label:he.label,onClick:()=>{he.forceAll?zt(!0):zt()}},...me]:ye=[...me]:ye=[],Ge==="download"&&ye.length>0&&jsxRuntimeExports.jsx("div",{className:"dropdown-menu",ref:we=>{we&&setTimeout(()=>Jt(we),0)},children:ye.map((we,Ie)=>jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:Fe=>{Fe.stopPropagation();try{we.onClick()}finally{Ye(null)}},children:we.label},Ie))})})()]}),V&&jsxRuntimeExports.jsx("button",{className:"fullscreen-button",onClick:it?It:kt,title:it?"Exit Full Screen":"Full Screen",children:it?"⤫":"⤢"})]})]}),Ot&&jsxRuntimeExports.jsx("div",{className:"column-modal",children:jsxRuntimeExports.jsxs("div",{className:"column-modal-content",ref:_e,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:xr,onChange:ce=>{Rt(ce?new Set(Ce.filter(he=>he.shouldVisible!==!1).map(he=>he.id)):new Set)}})})}),jsxRuntimeExports.jsx("div",{className:"column-list-container",children:Z.filter(ce=>Ce.find(he=>he.id===ce&&he.shouldVisible!==!1)).map(ce=>{const he=Ce.find(me=>me.id===ce);return he?jsxRuntimeExports.jsxs("div",{className:`column-item ${te===he.id?"dragging":""}`,draggable:!0,onDragStart:me=>{ie(he.id),me.dataTransfer.effectAllowed="move",me.dataTransfer.setData("text/plain",he.id)},onDragEnd:()=>ie(null),onDragOver:me=>{me.preventDefault(),me.dataTransfer.dropEffect="move"},onDragEnter:me=>{me.preventDefault(),me.currentTarget.classList.add("drag-over")},onDragLeave:me=>{me.currentTarget.classList.remove("drag-over")},onDrop:me=>{if(me.preventDefault(),me.currentTarget.classList.remove("drag-over"),te&&te!==he.id){const ye=[...Z],we=ye.indexOf(te),Ie=ye.indexOf(he.id);we!==-1&&Ie!==-1&&(ye.splice(we,1),ye.splice(Ie,0,te),ae(ye))}},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:()=>ir(he.id)})]},he.id):null})})]})}),Pt?jsxRuntimeExports.jsx(CESkeletonTable,{columns:Ce.length||5,rows:yt||10}):mr()]})},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"],CEDatePicker=({onChange:e,label:t="Calendar",value:n,focused:i=!1,id:o,name:l})=>{const[u,f]=React.useState(!1),[p,d]=React.useState(null),[m,g]=React.useState(new Date),[_,S]=React.useState(!1),[E,b]=React.useState({start:2020,end:2031}),[T,C]=React.useState("left"),[A,R]=React.useState(0),O=React.useRef(null),[I,j]=React.useState(i),[M,N]=React.useState(""),[D,F]=React.useState(""),[q,z]=React.useState(""),[G,ee]=React.useState(!0),Y=()=>{f(!1),!M&&!D&&!q&&j(!1)};useEscapeKey(Y);const V=()=>{f(X=>{if(!X){const Q=p||new Date;g(Q),M||N(String(Q.getMonth()+1).padStart(2,"0")),D||F(String(Q.getDate()).padStart(2,"0")),q||z(String(Q.getFullYear()))}return!X})};React.useEffect(()=>{const X=Q=>{O.current&&!O.current.contains(Q.target)&&Y()};return document.addEventListener("mousedown",X),()=>document.removeEventListener("mousedown",X)},[M,D,q]),React.useEffect(()=>{if(n){const[X,Q,le]=n.split("/"),xe=new Date(`${le}-${X}-${Q}`);isNaN(xe.getTime())||(d(xe),g(xe),N(X),F(Q),z(le),ee(!0))}else d(null),N(""),F(""),z(""),ee(!0),g(new Date)},[n]);const W=X=>{const Q=new Date(m.getFullYear(),m.getMonth(),X);d(Q),g(Q);const le=String(Q.getMonth()+1).padStart(2,"0"),xe=String(Q.getDate()).padStart(2,"0"),de=String(Q.getFullYear());N(le),F(xe),z(de),ee(!0),e(`${le}/${xe}/${de}`),f(!1)},L=X=>{C(X>0?"left":"right"),g(Q=>{const le=new Date(Q.getFullYear(),Q.getMonth()+X,1);return p&&N(String(le.getMonth()+1).padStart(2,"0")),R(xe=>xe+1),le})},B=()=>{S(X=>!X)},U=X=>{b(Q=>({start:Q.start+X*10,end:Q.end+X*10}))},K=X=>{const Q=new Date(X,m.getMonth(),1);g(Q),z(String(X)),S(!1)},H=()=>{const X=new Date(m.getFullYear(),m.getMonth(),1),Q=new Date(m.getFullYear(),m.getMonth()+1,0),le=X.getDay(),xe=Q.getDate(),de=new Date,ue=Ee=>!p&&de.getDate()===Ee&&de.getMonth()===m.getMonth()&&de.getFullYear()===m.getFullYear(),pe=[];for(let Ee=0;Ee<le;Ee++)pe.push(jsxRuntimeExports.jsx("div",{className:"dp-day empty"},`empty-${Ee}`));for(let Ee=1;Ee<=xe;Ee++){const ne=(p==null?void 0:p.getDate())===Ee&&(p==null?void 0:p.getMonth())===m.getMonth()&&(p==null?void 0:p.getFullYear())===m.getFullYear();pe.push(jsxRuntimeExports.jsx("div",{className:`dp-day ${ne?"selected":""} ${ue(Ee)?"today":""}`,onClick:()=>W(Ee),children:Ee},Ee))}return pe},J=(X,Q,le)=>{if(!X||!Q||!le){ee(!1),g(new Date),d(null);return}const xe=`${le}-${X}-${Q}`,de=new Date(xe);if(de.getFullYear()===parseInt(le)&&de.getMonth()+1===parseInt(X)&&de.getDate()===parseInt(Q))d(de),g(de),ee(!0),e(`${X}/${Q}/${le}`);else{const ue=new Date;ee(!1),d(null),g(ue),N(X),F(Q),z(le)}};return jsxRuntimeExports.jsxs("div",{className:"dp-wrapper",ref:O,children:[jsxRuntimeExports.jsxs("div",{className:`dp-input-container ${I||u?"focused":""} ${p||M||D||q?"has-value":""} ${G?"":"invalid"}`,children:[jsxRuntimeExports.jsx("div",{className:`dp-label floating ${G?"":"invalid"}`,children:t}),jsxRuntimeExports.jsxs("div",{className:"dp-input-wrapper",onClick:()=>{j(!0)},children:[jsxRuntimeExports.jsx(DateInputPart,{value:M,onChange:X=>{N(X),J(X,D,q)},max:12,min:1,length:2,placeholder:"MM",onClick:V,id:o?`${o}-month`:void 0,name:l?`${l}-month`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx(DateInputPart,{value:D,onChange:X=>{F(X),J(M,X,q)},placeholder:"DD",max:31,min:1,length:2,onClick:V,id:o?`${o}-day`:void 0,name:l?`${l}-day`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx("input",{type:"text",value:q,onChange:X=>{const Q=X.target.value.replace(/\D/g,"");Q.length<=4&&(z(Q),Q.length===4&&J(M,D,Q))},onFocus:X=>X.target.select(),onBlur:()=>{q.length===4&&J(M,D,q)},className:"date-input-part",id:o?`${o}-year`:void 0,name:l?`${l}-year`:void 0,maxLength:4,placeholder:"YYYY"}),jsxRuntimeExports.jsx("span",{className:"dp-icon",onClick:V,children:jsxRuntimeExports.jsx("img",{src:DateRangeIcon,alt:"Calendar Icon"})})]})]}),u&&jsxRuntimeExports.jsxs("div",{className:"dp-calendar",children:[jsxRuntimeExports.jsxs("div",{className:"dp-header",children:[jsxRuntimeExports.jsxs("div",{className:"dp-title",onClick:B,children:[_?`${E.start} - ${E.end}`:`${m.toLocaleString("default",{month:"long"})} ${m.getFullYear()}`,jsxRuntimeExports.jsx("button",{className:"dp-toggle-icon",children:"▾"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-controls",children:[jsxRuntimeExports.jsx("button",{onClick:()=>_?U(-1):L(-1),children:"‹"}),jsxRuntimeExports.jsx("button",{onClick:()=>_?U(1):L(1),children:"›"})]})]}),!_&&jsxRuntimeExports.jsx("div",{className:"dp-weekdays",children:WEEKDAYS.map(X=>jsxRuntimeExports.jsx("div",{className:"dp-weekday",children:X},X))}),_?jsxRuntimeExports.jsx("div",{className:"dp-years-grid",children:Array.from({length:E.end-E.start+1},(X,Q)=>{const le=E.start+Q;return jsxRuntimeExports.jsx("div",{className:"dp-year-item",onClick:()=>K(le),children:le},le)})}):jsxRuntimeExports.jsx("div",{className:`dp-days dp-slide-${T}`,children:H()},A)]})]})},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})=>{const[g,_]=React.useState(!1),[S,E]=React.useState(!1),b=React.useRef(null),C={...getSizeStyle$1(l),...u},A=j=>{if(i){const M=t.includes(j)?t.filter(N=>N!==j):[...t,j];n(M)}else n([j]),_(!1)},R=()=>n([]),O=e.filter(j=>t.includes(j.value)).map(j=>j.label);React.useEffect(()=>{const j=M=>{var N;(N=b.current)!=null&&N.contains(M.target)||_(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]);const I=j=>{const M=t.filter(N=>N!==j);n(M)};return jsxRuntimeExports.jsx("div",{className:`dropdown-container ${g||t.length>0?"float":""}`,ref:b,style:C,id:d,"data-name":m,children:jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${g?"open":""}`,onClick:()=>_(j=>!j),onFocus:()=>E(!0),onBlur:()=>E(!1),tabIndex:0,children:[jsxRuntimeExports.jsx("label",{className:"floating-placeholder",children:o}),jsxRuntimeExports.jsx("div",{className:"selected-display",children:t.length===0?"":i?p?O.map((j,M)=>jsxRuntimeExports.jsxs("span",{className:"chip",children:[j,jsxRuntimeExports.jsx("span",{className:"close-icon",onClick:N=>{var D;N.stopPropagation(),I(((D=e.find(F=>F.label===j))==null?void 0:D.value)||"")},children:"×"})]},M)):jsxRuntimeExports.jsx("div",{className:"selected-display-label",children:O.join(",")}):jsxRuntimeExports.jsx("span",{children:O[0]})}),f&&t.length>0&&jsxRuntimeExports.jsx("button",{className:"clear-button",onClick:j=>{j.stopPropagation(),R()},children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`dropdown-icon-img ${g?"rotate-icon":""}`,children:jsxRuntimeExports.jsx("path",{d:"M8.12021 9.79006L12.0002 13.6701L15.8802 9.79006C16.2702 9.40006 16.9002 9.40006 17.2902 9.79006C17.6802 10.1801 17.6802 10.8101 17.2902 11.2001L12.7002 15.7901C12.3102 16.1801 11.6802 16.1801 11.2902 15.7901L6.70021 11.2001C6.31021 10.8101 6.31021 10.1801 6.70021 9.79006C7.09021 9.41006 7.73021 9.40006 8.12021 9.79006Z",fill:"black",fillOpacity:"0.54"})})}),g&&jsxRuntimeExports.jsx("ul",{className:"dropdown-options",children:e.map(j=>jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${t.includes(j.value)?"selected":""}`,onClick:M=>{M.stopPropagation(),A(j.value)},children:[i&&jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:t.includes(j.value)}),j.label]},j.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(j=>{try{return document.queryCommandState(j)}catch{return!1}},[]),C=React.useCallback(()=>{b({bold:T("bold"),italic:T("italic"),underline:T("underline"),strikeThrough:T("strikethrough"),subscript:T("subscript"),superscript:T("superscript"),justifyLeft:T("justifyLeft"),justifyCenter:T("justifyCenter"),justifyRight:T("justifyRight"),justifyFull:T("justifyFull")})},[T]),A=React.useCallback((j,M="")=>{var F,q;const N=saveSelection(),D=document.getSelection();if(j==="createLink"){const z=prompt("Enter URL:");if(z){restoreSelection(N),document.execCommand("createLink",!1,z);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(j==="insertImage"){const z=prompt("Enter image URL:");if(z){restoreSelection(N);const G=`<img src="${z}" alt="image" style="max-width: 100%; height: auto;"/>`;document.execCommand("insertHTML",!1,G)}}else j==="fontSize"||j==="fontName"?(restoreSelection(N),document.execCommand(j,!0,M),j==="fontSize"?g(M):S(M)):(restoreSelection(N),document.execCommand(j,!1,M));d.current&&(t==null||t(d.current.innerHTML)),(q=d.current)==null||q.focus(),C()},[t,C]),R=j=>{if(j.key==="Tab"&&(j.preventDefault(),document.execCommand("insertHTML",!1," ")),j.ctrlKey||j.metaKey)switch(j.key.toLowerCase()){case"z":j.preventDefault(),j.shiftKey?A("redo"):A("undo");break;case"y":j.preventDefault(),A("redo");break}},O=[{value:"1",label:"2"},{value:"2",label:"4"},{value:"3",label:"6"},{value:"4",label:"8"},{value:"5",label:"10"},{value:"6",label:"12"},{value:"7",label:"14"}],I=["Arial","Times New Roman","Courier New","Georgia","Verdana","Helvetica","Serif Fonts","Algerian"];return jsxRuntimeExports.jsxs("div",{className:`rich-text-editor ${u}`,style:{width:n,height:i,...f},children:[jsxRuntimeExports.jsxs("div",{className:"toolbar",children:[jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>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:j=>A("fontSize",j.target.value),className:"toolbar-select",title:"Font Size",children:O.map(j=>jsxRuntimeExports.jsx("option",{value:j.value,children:j.label},j.value))})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:_,onChange:j=>A("fontName",j.target.value),className:"toolbar-select",title:"Font Family",children:I.map(j=>jsxRuntimeExports.jsx("option",{value:j,children:j},j))})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>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(""),[O,I]=React.useState(""),j=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,J=p;if(B<=2){const X=L.substring(0,2).replace(/[^0-9]/g,"");if(X){if(X.length===1){const Q=parseInt(X);Q>=2&&Q<=9?(U=X.padStart(2,"0"),setTimeout(()=>{j.current&&j.current.setSelectionRange(3,5)},10)):(U=X,setTimeout(()=>{j.current&&j.current.setSelectionRange(1,1)},10))}else if(X.length===2){const Q=parseInt(X);Q>=1&&Q<=12?(U=X,setTimeout(()=>{j.current&&j.current.setSelectionRange(3,5)},10)):(U=X[0],setTimeout(()=>{j.current&&j.current.setSelectionRange(1,1)},10))}J=`${U}:${_} ${E}`}}else if(B>=3&&B<=5){const X=L.indexOf(":")+1,Q=L.substring(X,X+2).replace(/[^0-9]/g,"");if(Q){if(Q.length===1)K=Q,J=`${m}:${K} ${E}`,setTimeout(()=>{j.current&&j.current.setSelectionRange(4,4)},10);else if(Q.length===2){const le=parseInt(Q);le>=0&&le<=59?(K=Q,setTimeout(()=>{j.current&&j.current.setSelectionRange(6,8)},10)):(K=Q[0],setTimeout(()=>{j.current&&j.current.setSelectionRange(4,4)},10))}J=`${m}:${K} ${E}`}}else if(B>=6){const Q=L.substring(L.lastIndexOf(" ")+1).toUpperCase();Q.startsWith("A")?(H="AM",J=`${m}:${_} AM`):Q.startsWith("P")&&(H="PM",J=`${m}:${_} PM`)}g(U),S(K),b(H),d(J),f(!1),t==null||t(J)},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(O){const U=D(O,"minutes");S(U),I(""),d(`${m}:${U} ${E}`)}W.currentTarget.setSelectionRange(6,8)}}},z=W=>{const L=W.currentTarget.selectionStart||0,B=j.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)},Y=()=>{const W=`${m}:${_} ${E}`;d(W),f(!1),t==null||t(W)},V=()=>{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:j,type:"text",id:o,name:l,value:p,onChange:F,onKeyDown:q,onClick:W=>{p||G(),z(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:V,children:"Cancel"}),jsxRuntimeExports.jsx("button",{className:"time-picker-button ok",onClick:Y,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 j,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=(j=N.response)==null?void 0:j.data)==null?void 0:M.message)||N.message:"An error occurred")}finally{m(!1)}})()},[]);const C=I=>{if(I==="available"){const j=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,...j].sort((F,q)=>{const z=parseInt(F.id.replace(/\D/g,"")),G=parseInt(q.id.replace(/\D/g,""));return z-G})),E(new Set)}else{const j=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,...j].sort((F,q)=>{const z=parseInt(F.id.replace(/\D/g,"")),G=parseInt(q.id.replace(/\D/g,""));return z-G})),T(new Set)}t(f,l)},A=(I,j,M)=>{M(N=>{const D=new Set(N);return D.has(I)?D.delete(I):D.add(I),D})},R=(I,j,M)=>N=>{const D=new Set(j),F=I.filter(q=>!q.disabled);N?F.forEach(q=>D.add(q.id)):F.forEach(q=>D.delete(q.id)),M(D)},O=(I,j,M,N)=>{const D=I.filter(ee=>!ee.disabled),F=D.length>0&&D.every(ee=>j.has(ee.id)),q=j.size,z=I.length,G=I.length===0;return jsxRuntimeExports.jsxs("div",{className:`transfer-box ${i}`,children:[jsxRuntimeExports.jsx("div",{className:"transfer-box-header",children:jsxRuntimeExports.jsxs("div",{className:"header-content",children:[jsxRuntimeExports.jsx("div",{className:"checkbox-wrapper",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:F,onChange:R(I,j,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,"/",z," selected"]})]})]})}),jsxRuntimeExports.jsx("div",{className:"transfer-items",children:I.map(ee=>jsxRuntimeExports.jsx(TransferItem,{label:ee.label,checked:j.has(ee.id),disabled:ee.disabled,onChange:()=>A(ee.id,j,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:[O(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})]}),O(f,b,T,"Chosen")]})},CEBadge=({label:e,backgroundColor:t="#e0e0e0",textColor:n="#000",style:i,id:o,name:l,disable:u=!1})=>jsxRuntimeExports.jsx("span",{id:o,"data-name":l,"aria-disabled":u,style:{backgroundColor:t,color:n,padding:"4px 10px",borderRadius:"12px",fontSize:"12px",display:"inline-block",whiteSpace:"nowrap",...u?{opacity:.6,pointerEvents:"none"}:{},...i},children:e}),chatIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%202.5H4C2.9%202.5%202.01%203.4%202.01%204.5L2%2022.5L6%2018.5H20C21.1%2018.5%2022%2017.6%2022%2016.5V4.5C22%203.4%2021.1%202.5%2020%202.5ZM7%209.5H17C17.55%209.5%2018%209.95%2018%2010.5C18%2011.05%2017.55%2011.5%2017%2011.5H7C6.45%2011.5%206%2011.05%206%2010.5C6%209.95%206.45%209.5%207%209.5ZM13%2014.5H7C6.45%2014.5%206%2014.05%206%2013.5C6%2012.95%206.45%2012.5%207%2012.5H13C13.55%2012.5%2014%2012.95%2014%2013.5C14%2014.05%2013.55%2014.5%2013%2014.5ZM17%208.5H7C6.45%208.5%206%208.05%206%207.5C6%206.95%206.45%206.5%207%206.5H17C17.55%206.5%2018%206.95%2018%207.5C18%208.05%2017.55%208.5%2017%208.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",CEChatbox=({notes:e,onAddNote:t,buttonLabel:n,buttonIcon:i})=>{const[o,l]=React.useState(""),u=()=>{t(o),l("")},f=p=>{p.key==="Enter"&&u()};return jsxRuntimeExports.jsxs("div",{className:"notes-container",children:[jsxRuntimeExports.jsxs("div",{className:"notes-header",children:[jsxRuntimeExports.jsx("img",{src:chatIcon,alt:"Chat Icon",className:"notes-icon"}),jsxRuntimeExports.jsx("span",{className:"notes-title",children:"Notes"})]}),jsxRuntimeExports.jsxs("div",{className:"add-note-section",children:[jsxRuntimeExports.jsx("textarea",{value:o,onChange:p=>l(p.target.value),onKeyPress:f,placeholder:"Add a note...",className:"add-note-input",rows:3}),jsxRuntimeExports.jsx(CEButton,{label:n,icon:i,variant:"outlinedGreen",onClick:u,sx:{width:"100%",marginTop:"10px"},children:void 0})]}),jsxRuntimeExports.jsx("div",{className:"notes-list",children:e.map(p=>jsxRuntimeExports.jsxs("div",{className:"note-item",children:[jsxRuntimeExports.jsx("div",{className:"note-avatar",children:p.initials}),jsxRuntimeExports.jsxs("div",{className:"note-content",children:[jsxRuntimeExports.jsxs("div",{className:"note-header",children:[jsxRuntimeExports.jsx("span",{className:"note-author",children:p.author}),jsxRuntimeExports.jsx("span",{className:"note-timestamp",children:p.timestamp})]}),jsxRuntimeExports.jsx("div",{className:"note-text",children:p.content})]})]},p.id))})]})},CEStatusDropdown=({options:e,selected:t,onChange:n,placeholder:i="Select status...",size:o="medium",disabled:l=!1,ariaLabel:u="Status selection dropdown"})=>{const[f,p]=React.useState(!1),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 O;(O=T.current)!=null&&O.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(O=>O.filter(I=>I.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(O=>O.value===A.value);return jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${R?"selected":""}`,onClick:O=>{O.stopPropagation(),b(I=>{const j=I.some(N=>N.value===A.value);let M;return j?M=I.filter(N=>N.value!==A.value):M=[...I,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})=>{const[u,f]=React.useState(!1),[p,d]=React.useState(!1),[m,g]=React.useState(""),_=React.useRef(null),S=React.useRef(null),E=t.filter(C=>C.toLowerCase().includes(m.toLowerCase())),b=C=>{if(o){const A=n.includes(C);i(A?n.filter(R=>R!==C):[...n,C]),g("")}else i([C]),g(C),f(!1)},T=C=>{S.current&&!S.current.contains(C.target)&&(f(!1),d(!1))};return React.useEffect(()=>(document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)),[]),jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:S,children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper ${p||u?"focused":""} ${n.length>0?"has-value":""}`,children:[jsxRuntimeExports.jsx("label",{className:"autocomplete-label",children:e}),jsxRuntimeExports.jsxs("div",{className:"input-area",children:[o&&n.length>0&&jsxRuntimeExports.jsx("div",{className:"selected-values",children:n.map(C=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[C,jsxRuntimeExports.jsx("button",{onClick:A=>{A.stopPropagation(),i(n.filter(R=>R!==C))},children:"×"})]},C))}),jsxRuntimeExports.jsx("input",{ref:_,type:"text",className:"autocomplete-input",value:m,onChange:C=>g(C.target.value),onFocus:()=>{d(!0),f(!0)}}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:()=>f(C=>!C),children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5H7z",fill:"gray"})})})]})]}),u&&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 C=n.length===t.length;i(C?[]:[...t])}}),"Select All"]})}),E.map(C=>jsxRuntimeExports.jsx("li",{onClick:()=>b(C),children:o&&l?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(C),onChange:()=>b(C),onClick:A=>A.stopPropagation()}),C]}):C},C))]})]})},CEAutoCompleteSelect=({label:e,options:t,value:n,onChange:i,multiple:o=!1,showCheckboxes:l=!1,id:u})=>{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(O=>O.label.toLowerCase().includes(g.toLowerCase()));React.useEffect(()=>{if(!o&&n.length>0){const O=A(n[0]);_(O)}else o&&_("")},[n,o,t]);const T=O=>{if(o){const I=n.includes(O.value);i(I?n.filter(j=>j!==O.value):[...n,O.value]),_("")}else i([O.value]),_(O.label),p(!1)},C=O=>{E.current&&!E.current.contains(O.target)&&(p(!1),m(!1))};React.useEffect(()=>(document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)),[]);const A=O=>{var I;return((I=t.find(j=>j.value===O))==null?void 0:I.label)||O},R=O=>{O.stopPropagation(),_(""),i([])};return jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:E,id:u,"data-testid":u?`ce-autocomplete-${u}`:"ce-autocomplete",children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper ${d||f?"focused":""} ${n.length>0?"has-value":""}`,onClick:()=>p(!0),children:[jsxRuntimeExports.jsx("label",{className:"autocomplete-label",children:e}),jsxRuntimeExports.jsxs("div",{className:"input-area",children:[o&&n.length>0&&jsxRuntimeExports.jsx("div",{className:"selected-values",children:n.map(O=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[A(O),jsxRuntimeExports.jsx("button",{onClick:I=>{I.stopPropagation(),i(n.filter(j=>j!==O))},children:"×"})]},O))}),jsxRuntimeExports.jsx("input",{ref:S,type:"text",className:"autocomplete-input",value:g,onChange:O=>_(O.target.value),onFocus:()=>{m(!0),p(!0)}}),n.length>0&&jsxRuntimeExports.jsx("span",{className:"clear-icon",onClick:R,title:"Clear",children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:O=>{O.stopPropagation(),p(I=>!I)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5H7z",fill:"gray"})})})]})]}),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 O=n.length===t.length;i(O?[]:t.map(I=>I.value))}}),"Select All"]})}),b.map(O=>jsxRuntimeExports.jsx("li",{onClick:()=>T(O),children:o&&l?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(O.value),onChange:()=>T(O),onClick:I=>I.stopPropagation()}),O.label]}):O.label},O.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={};/**
|
|
341
|
+
`;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",O="",I=encode_cell({c:f+S,r:u+T+o});d=ws_get_cell_stub(l,I),A&&typeof A=="object"&&!(A instanceof Date)?l[I]=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)),O=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,O&&(d.z=O)):l[I]=d={t:R,v:A},O&&(d.z=O))})}),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 ExportIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.59%209.5H15V4.5C15%203.95%2014.55%203.5%2014%203.5H10C9.45%203.5%209%203.95%209%204.5V9.5H7.41C6.52%209.5%206.07%2010.58%206.7%2011.21L11.29%2015.8C11.68%2016.19%2012.31%2016.19%2012.7%2015.8L17.29%2011.21C17.92%2010.58%2017.48%209.5%2016.59%209.5ZM5%2019.5C5%2020.05%205.45%2020.5%206%2020.5H18C18.55%2020.5%2019%2020.05%2019%2019.5C19%2018.95%2018.55%2018.5%2018%2018.5H6C5.45%2018.5%205%2018.95%205%2019.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",FileOpenRounded="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%202.5H10.83C10.3%202.5%209.79%202.71%209.41%203.09L4.59%207.91C4.21%208.29%204%208.8%204%209.33V20.5C4%2021.6%204.9%2022.5%206%2022.5H18C19.1%2022.5%2020%2021.6%2020%2020.5V4.5C20%203.4%2019.1%202.5%2018%202.5ZM11.65%2017.15L8.86%2014.36C8.54%2014.04%208.76%2013.5%209.21%2013.5H11V10.51C11%209.96%2011.44%209.52%2011.99%209.51C12.55%209.5%2013%209.95%2013%2010.51V13.5H14.79C15.24%2013.5%2015.46%2014.04%2015.14%2014.35L12.35%2017.14C12.16%2017.34%2011.84%2017.34%2011.65%2017.15Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",ReloadIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.6498%206.84999C16.0198%205.21999%2013.7098%204.27999%2011.1698%204.53999C7.49978%204.90999%204.47978%207.88999%204.06978%2011.56C3.51978%2016.41%207.26978%2020.5%2011.9998%2020.5C15.1898%2020.5%2017.9298%2018.63%2019.2098%2015.94C19.5298%2015.27%2019.0498%2014.5%2018.3098%2014.5C17.9398%2014.5%2017.5898%2014.7%2017.4298%2015.03C16.2998%2017.46%2013.5898%2019%2010.6298%2018.34C8.40978%2017.85%206.61978%2016.04%206.14978%2013.82C5.30978%209.93999%208.25978%206.49999%2011.9998%206.49999C13.6598%206.49999%2015.1398%207.18999%2016.2198%208.27999L14.7098%209.78999C14.0798%2010.42%2014.5198%2011.5%2015.4098%2011.5H18.9998C19.5498%2011.5%2019.9998%2011.05%2019.9998%2010.5V6.90999C19.9998%206.01999%2018.9198%205.56999%2018.2898%206.19999L17.6498%206.84999Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",FilterAltOffRounded="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.7901%206.11003C20.3001%205.45003%2019.8301%204.50003%2019.0001%204.50003H6.83008L14.8001%2012.47L19.7901%206.11003Z'%20fill='black'%20fill-opacity='0.54'/%3e%3cpath%20d='M20.4901%2020.99L3.51012%204.01003C3.12012%203.62003%202.49012%203.62003%202.10012%204.01003C1.71012%204.40003%201.71012%205.03003%202.10012%205.42003L10.0001%2013.5V18.5C10.0001%2019.6%2010.9001%2020.5%2012.0001%2020.5C13.1001%2020.5%2014.0001%2019.6%2014.0001%2018.5V17.33L19.0701%2022.4C19.4601%2022.79%2020.0901%2022.79%2020.4801%2022.4C20.8701%2022.01%2020.8801%2021.38%2020.4901%2020.99Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",CESkeletonTable=({columns:e,rows:t})=>jsxRuntimeExports.jsx("div",{className:"skeleton-table",children:jsxRuntimeExports.jsxs("table",{children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:Array.from({length:e}).map((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})]}),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},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,O,I;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:j=>{var M,N;return(N=(M=e[n])==null?void 0:M.onselect)==null?void 0:N.call(M,j)},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:j=>{var M;return(M=e[n])==null?void 0:M.onchange(j)},value:((C=e[n])==null?void 0:C.value)||"",showError:!1}):f==="number-input"?jsxRuntimeExports.jsx(CEInputBox,{type:"number",onChange:j=>{var M;return(M=e[n])==null?void 0:M.onchange(j)},value:((A=e[n])==null?void 0:A.value)||"",showError:!1}):f==="drop-down-input"?jsxRuntimeExports.jsx(CEDynamicSelectField,{label:"",value:((R=e[n])==null?void 0:R.value)||"",onChange:j=>{var M;(M=e[n])==null||M.onchange(j.target.value)},options:((O=e[n])==null?void 0:O.options)||[],showPlaceholder:!0,placeholderText:""}):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(((I=e[n])==null?void 0:I.value)??"")}))})},CEDateRangePicker=({label:e="Submitted Date",onChange:t,size:n="medium",style:i,inputGroupStyle:o,id:l,name:u,mode:f="range",defaultValue:p,disabled:d=!1})=>{const[m,g]=React.useState(""),[_,S]=React.useState(""),[E,b]=React.useState(!1),[T,C]=React.useState(""),A=j=>{!j.currentTarget.value&&!m&&!_&&b(!1)},R=(j,M)=>{if(t==null||t({startDate:j||"",endDate:M||""}),j&&!M||!j&&M){C("Both start and end dates must be selected");return}if(j&&M&&new Date(M)<new Date(j)){C("End date must be after or equal to start date");return}C("")};React.useEffect(()=>{p&&(p.startDate&&g(p.startDate),p.endDate&&S(p.endDate))},[p]);const O=j=>{const M=j.target.value;g(M),R(M,_)},I=j=>{const M=j.target.value;S(M),R(m,M)};return jsxRuntimeExports.jsxs("div",{className:"date-range-picker",style:i,id:l,"data-testid":l?`${l}-wrapper`:void 0,children:[jsxRuntimeExports.jsx("div",{className:"date-range-field-group",style:o,children:f==="single"?jsxRuntimeExports.jsxs("div",{className:"field-box float",children:[jsxRuntimeExports.jsx("input",{type:"date",value:m,name:u,"data-testid":l?`${l}-input`:void 0,onChange:j=>{const M=j.target.value;g(M),t==null||t({startDate:M,endDate:""})},onFocus:()=>b(!0),onBlur:j=>A(j),disabled:d}),jsxRuntimeExports.jsx("label",{className:"floating-label-box",children:e||"Select Date"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"field-box float",children:[jsxRuntimeExports.jsx("input",{type:"date",value:m,name:u?`${u}-from`:void 0,"data-testid":l?`${l}-from`:void 0,onChange:O,onFocus:()=>b(!0),onBlur:j=>A(j),disabled:d}),jsxRuntimeExports.jsx("label",{className:"floating-label-box",children:"From"})]}),jsxRuntimeExports.jsx("span",{className:"range-separator centered",children:"to"}),jsxRuntimeExports.jsxs("div",{className:"field-box float",children:[jsxRuntimeExports.jsx("input",{type:"date",value:_,name:u?`${u}-to`:void 0,"data-testid":l?`${l}-to`:void 0,onChange:I,onFocus:()=>b(!0),onBlur:j=>A(j),disabled:d}),jsxRuntimeExports.jsx("label",{className:"floating-label-box",children:"To"})]})]})}),T&&f!=="single"&&jsxRuntimeExports.jsx("div",{className:"error-text",children:T})]})},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,isRadioButtonInGrid:o,onRadioChange:l,getSelectedRadioValue:u,renderRadioInColumnId:f,isSearchBoxInGrid:p,isAddButtonRequired:d,isEditButtonRequired:m,isDeleteButtonRequired:g,isApproveButtonRequired:_,isReassignButtonRequired:S,isCancelButtonRequired:E,isExportToExcelRequired:b,isExportAllToExcel:T,handleEditClick:C,handleAddClick:A,handleDeleteClick:R,handleApproveClick:O,handleReassignClick:I,handleCancelClick:j,noOfPagesPerPage:M,clickableColumns:N,conditionalClickableColumns:D,clickableCellPredicate:F,handleCellClick:q,onReload:z,showDownloadIcon:G=!0,downloadOptions:ee,showRefreshIcon:Y=!0,showFullViewIcon:V=!0,showSearchIcon:W=!0,showColumnVisibilityIcon:L=!0,showSortIcon:B=!0,showFilterIcon:U=!0,defaultDownloadLabel:K="Export to Excel",defaultSortConfig:H,onDataUpdate:J,isOverrideCSS:X,showPagination:Q=!0,shouldResetSearchOnDataChange:le,pageSizeOptions:xe=[10,20,50,100],handleSelectedRows:de,rowsSelected:ue,selectionKey:pe="id",onPageChange:Ee})=>{const ne=(ce,he)=>{if(typeof pe=="function")try{const me=pe(ce);if(me!=null)return me}catch{}else if(typeof pe=="string"&&ce&&ce[pe]!==void 0)return ce[pe];if(he!==void 0)return`__row_${he}`},[Pe,fe]=React.useState({}),[Ne,je]=React.useState(!1),[Se,Me]=React.useState([]),[Le,Ve]=React.useState([]),[ze,$e]=React.useState([]),[Qe,Ue]=React.useState(!1),[He,Xe]=React.useState(new Set),[Ge,Ye]=React.useState(null),[ct,tt]=React.useState(!1),[at,ot]=React.useState(""),[xt,ft]=React.useState(null),[_t,bt]=React.useState(null),[vt,Et]=React.useState("contains"),[Tt,dt]=React.useState(""),[et,ut]=React.useState({}),[pt,st]=React.useState(0),[yt,Ft]=React.useState(M??10),Be=ce=>{if(st(ce),typeof Ee=="function")try{Ee(ce)}catch{}};React.useEffect(()=>{if(typeof Ee=="function")try{Ee(pt)}catch{}},[pt]);const[lt,jt]=React.useState(new Set),[St,Ct]=React.useState(""),[Ot,$t]=React.useState(!1),[ht,Rt]=React.useState(new Set),[Z,ae]=React.useState([]),[te,ie]=React.useState(null),oe=React.useRef(null),se=React.useRef(null),ve=React.useRef(null),[Te,ge]=React.useState({top:0,left:0}),_e=React.useRef(null),[be,Re]=React.useState(new Set),[Ce,ke]=React.useState([]),[Ae,Oe]=React.useState(!1),[De,Ze]=React.useState(null),Je=React.useRef([]),[it,At]=React.useState(!1),kt=()=>At(!0),It=()=>At(!1),[Pt,wt]=React.useState(!0);React.useEffect(()=>{if(typeof de=="function"){const ce=Array.from(He),he=ce.map(me=>{if(typeof me=="string"&&me.startsWith("__row_")){const ye=parseInt(me.slice(6),10);return!isNaN(ye)&&ye>=0&&ye<Se.length?Se[ye]:void 0}return Le.find(ye=>{const we=ne(ye);return we!==void 0&&(we===me||String(we)===String(me))})||Se.find(ye=>{const we=ne(ye);return we!==void 0&&(we===me||String(we)===String(me))})}).filter(Boolean);try{de.length===1?de({ids:ce,rows:he}):de(he)}catch{try{de(he)}catch{}}}},[He,Se,de,pe]),React.useEffect(()=>{if(!ue)return;const ce=Array.from(ue),he=ce.every(we=>typeof we=="number"&&we>=0&&we<Se.length),me=new Set(ce.map(we=>{if(he){const Ie=Se[we];return ne(Ie,we)??`__row_${we}`}return we}));((we,Ie)=>{if(we.size!==Ie.size)return!1;const Fe=Array.from(we);for(let qe=0;qe<Fe.length;qe++)if(!Ie.has(Fe[qe]))return!1;return!0})(me,He)||Xe(me)},[ue,Se,pe]),React.useEffect(()=>{if(t&&Array.isArray(t)){const ce=stripReactElements(Je.current),he=stripReactElements(t),me=JSON.stringify(ce)!==JSON.stringify(he);if(t&&Array.isArray(t)&&me){let ye=[...t];if(H){const{column:we,direction:Ie}=H;ye.sort((Fe,qe)=>{const We=Fe[we],rt=qe[we],Ke=new Date(We),nt=new Date(rt),mt=!isNaN(Ke.getTime()),Lt=!isNaN(nt.getTime());if(mt&&Lt)return Ie==="asc"?Ke.getTime()-nt.getTime():nt.getTime()-Ke.getTime();const Bt=String(We||"").toLowerCase(),Nt=String(rt||"").toLowerCase();return Bt.localeCompare(Nt)}),Ie==="desc"&&ye.reverse(),Ze(H)}if(Me(ye),Ve(ye),wt(!1),le?(Ct(""),ut({})):nr(),f){const we={},Ie=Array.isArray(f)?f:[f];ye.forEach((Fe,qe)=>{const We=Fe.id??`__row_${qe}`;for(const rt of Ie)if(Fe[rt]===!0){we[We]={columnId:rt,rowData:Fe};break}}),Kt(we)}Je.current=t}}else wt(!0)},[t,H,f]),React.useEffect(()=>{if(Se.length>0){const ce=(n??[]).map(ye=>({id:ye.id,label:ye.label??ye.id,tooltip:ye.tooltip,shouldDisplay:ye.shouldDisplay??!0,shouldVisible:ye.shouldVisible??!0,width:ye.width,elementType:ye.elementType,required:ye.required??!1})),he=Object.keys(Se[0]||{}).map(ye=>({id:ye,label:ye.charAt(0).toUpperCase()+ye.slice(1),shouldDisplay:!0,shouldVisible:!0})),me=ce.length>0?ce:he;if(ke(me),!Ae){const ye=me.filter(Ie=>Ie.shouldDisplay!==!1).map(Ie=>Ie.id),we=me.filter(Ie=>Ie.shouldVisible!==!1).map(Ie=>Ie.id);Rt(new Set(ye)),ae(we),Oe(!0)}}},[Se,n]);const[gt,Kt]=React.useState({}),er=({rowIndex:ce,columnId:he,rowData:me})=>{const ye=Array.isArray(f)?f:[f],we={...me,...Object.fromEntries(ye.map(qe=>[qe,qe===he]))},Ie=me.id??`__row_${ce}`;Kt(qe=>({...qe,[Ie]:{columnId:he,rowData:we}}));const Fe=Se.map((qe,We)=>(qe.id??`__row_${We}`)===Ie?{...qe,...Object.fromEntries(ye.map(Ke=>[Ke,Ke===he]))}:qe);Me(Fe),Ve(Fe),J&&J({fullData:Fe,updatedRow:we})},tr=ce=>{var ye;const he=Se.findIndex(we=>we===ce),me=ce.id??`__row_${he}`;return((ye=gt[me])==null?void 0:ye.columnId)||""},Wt=React.useMemo(()=>{const ce=pt*yt,he=ce+yt;return Se.slice(ce,he)},[Se,pt,yt]),rr=()=>{Ct("");const ce=Mt(Le,et,"");Me(ce)},nr=()=>{const ce=Mt(Le,et,St);Me(ce),st(0)},ir=ce=>{const he=new Set(ht);he.has(ce)?he.size>1&&he.delete(ce):he.add(ce),Rt(he)},Xt=(ce,he=null)=>{const me=he?`${ce}-${he}`:`${ce}`,ye=new Set(lt);ye.has(me)?ye.delete(me):(Array.from(ye).forEach(we=>{we.startsWith(`${ce}`)&&ye.delete(we)}),ye.add(me)),jt(ye)},Yt=ce=>{Ye(Ge===ce?null:ce)};React.useEffect(()=>{const ce=he=>{var Fe,qe,We,rt;if(!Ge)return;const me=he.target,ye=((Fe=se.current)==null?void 0:Fe.contains(me))??!1,we=((qe=ve.current)==null?void 0:qe.contains(me))??!1,Ie=((rt=(We=he.target)==null?void 0:We.closest)==null?void 0:rt.call(We,".dropdown-trigger"))!=null;!ye&&!we&&!Ie&&Ye(null)};return document.addEventListener("click",ce),()=>{document.removeEventListener("click",ce)}},[Ge]),React.useMemo(()=>new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}),[]);const ar=(ce,he)=>{if(ce==null)return 1;if(he==null)return-1;const me=new Date(ce),ye=new Date(he);return!isNaN(me.getTime())&&!isNaN(ye.getTime())?me.getTime()-ye.getTime():!isNaN(Number(ce))&&!isNaN(Number(he))?Number(ce)-Number(he):String(ce).localeCompare(String(he),void 0,{numeric:!0,sensitivity:"base"})},Ut=(ce,he,me)=>{const ye=getColumnValue(ce==null?void 0:ce[me]),we=getColumnValue(he==null?void 0:he[me]);return ar(ye,we)},or=(ce,he)=>{for(let me=1;me<ce.length;me++)if(Ut(ce[me-1],ce[me],he)>0)return!1;return!0},sr=(ce,he)=>{for(let me=1;me<ce.length;me++)if(Ut(ce[me-1],ce[me],he)<0)return!1;return!0},Mt=(ce,he=et,me=St)=>{let ye=[...ce];if(me&&me.trim()){const we=me.toLowerCase();ye=ye.filter(Ie=>Object.entries(Ie).some(([Fe,qe])=>ht.has(Fe)?String(qe??"").toLowerCase().includes(we):!1))}return Object.entries(he||{}).forEach(([we,Ie])=>{const{value:Fe,operator:qe}=Ie,We=(Fe??"").toLowerCase();ye=ye.filter(rt=>{const Ke=rt[we],nt=String(getColumnValue(Ke)??"").toLowerCase();switch((qe||"").toString()){case"contains":return nt.includes(We);case"equals":return nt===We;case"startsWith":return nt.startsWith(We);case"endsWith":return nt.endsWith(We);case"does not contain":return!nt.includes(We);case"does not equal":return nt!==We;case"is any of":return Fe.split(",").map(mt=>mt.trim().toLowerCase()).includes(nt);case"Date Range":case"dateRange":{if(!Fe)return!0;const mt=Fe.split(" - ").map(vr=>vr.trim());if(mt.length!==2)return!1;const Lt=new Date(mt[0]),Bt=new Date(mt[1]);if(isNaN(Lt.getTime())||isNaN(Bt.getTime())||(Lt.setHours(0,0,0,0),Bt.setHours(23,59,59,999),!Ke))return!1;const Nt=new Date(Ke);return isNaN(Nt.getTime())?!1:(Nt.setHours(0,0,0,0),Nt>=Lt&&Nt<=Bt)}default:return!0}})}),ye},lr=ce=>{if(!Le||Le.length===0)return;const he=Object.keys(et).length>0,me=St.trim().length>0,ye=he||me?Se:Le;let we;(De==null?void 0:De.column)===ce?we=De.direction==="asc"?"desc":"asc":or(ye,ce)?we="desc":(sr(ye,ce),we="asc"),Ze({column:ce,direction:we});const Ie=[...Le].sort((qe,We)=>{const rt=Ut(qe,We,ce);return we==="asc"?rt:-rt});Ve(Ie);const Fe=Mt(Ie);Me(Fe),st(0)},Zt=()=>{if(!at){tt(!1),dt(""),ot(""),st(0);return}if(vt==="Date Range")if(_t&&_t.startDate&&_t.endDate)Dt(at,void 0,"Date Range");else{tt(!0);return}else Tt&&Tt.trim()!==""&&Dt(at,Tt,vt);tt(!1),dt(""),ot(""),bt(null),st(0)},Dt=(ce,he,me)=>{if(me==="Date Range"&&_t&&ce){const{startDate:ye,endDate:we}=_t;if(!ye||!we){console.warn("Invalid date range:",ye,we);return}const Ie=new Date(ye);Ie.setHours(0,0,0,0);const Fe=new Date(we);Fe.setHours(23,59,59,999);const qe=Le.filter(We=>{const rt=We[ce];if(!rt)return!1;const Ke=new Date(rt);return isNaN(Ke.getTime())?!1:(Ke.setHours(0,0,0,0),Ke>=Ie&&Ke<=Fe)});Me(qe),st(0),ut({...et,[ce]:{value:`${ye} - ${we}`,operator:"Date Range"}}),tt(!1),Ye(null),bt(null);return}if(ce){const ye={...et};if(he===""&&(me==="contains"||me==="equals")){ot(ce),Et(me||vt),dt(""),tt(!0);return}else he&&he.trim()!==""?ye[ce]={value:he,operator:me||vt}:delete ye[ce];ut(ye);let we=[...Le];Object.entries(ye).forEach(([Ie,Fe])=>{const{value:qe,operator:We}=Fe;we=we.filter(rt=>{const Ke=String(getColumnValue(rt[Ie])||"").toLowerCase(),nt=qe.toLowerCase();switch(We){case"contains":return Ke.includes(nt);case"equals":return Ke===nt;case"startsWith":return Ke.startsWith(nt);case"endsWith":return Ke.endsWith(nt);case"does not contain":return!Ke.includes(nt);case"does not equal":return Ke!==nt;case"is any of":return qe.split(",").map(mt=>mt.trim().toLowerCase()).includes(Ke);default:return!0}})}),Me(we),$e(we),st(0),tt(!1)}},cr=ce=>{ce.key==="Enter"&&Dt()};useEscapeKey(()=>{Ye(null),tt(!1)});const Ht=(ce,he="")=>{const me=ye=>{const we=new Set(be);we.has(ye)?we.delete(ye):we.add(ye),Re(we)};if(Array.isArray(ce)){const ye=Array.from(new Set(ce.reduce((we,Ie)=>typeof Ie=="object"&&Ie!==null?[...we,...Object.keys(Ie)]: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:ye.map(we=>jsxRuntimeExports.jsx("th",{children:we.charAt(0).toUpperCase()+we.slice(1)},we))})}),jsxRuntimeExports.jsx("tbody",{children:ce.map((we,Ie)=>jsxRuntimeExports.jsx("tr",{children:ye.map(Fe=>jsxRuntimeExports.jsx("td",{children:typeof we[Fe]=="object"&&we[Fe]!==null?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>me(`${he}-${Ie}-${Fe}`),children:be.has(`${he}-${Ie}-${Fe}`)?"▼":"▶"}),be.has(`${he}-${Ie}-${Fe}`)&&Ht(we[Fe],`${he}-${Ie}-${Fe}`)]}):String(we[Fe]||"")},`${he}-${Ie}-${Fe}`))},`${he}-${Ie}`))})]})})})}else if(typeof ce=="object"&&ce!==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(ce).map(([ye,we])=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"table-cell",children:jsxRuntimeExports.jsx("strong",{children:ye})}),jsxRuntimeExports.jsx("td",{className:"table-cell",children:typeof we=="object"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"toggle-button",onClick:()=>me(`${he}-${ye}`),children:be.has(`${he}-${ye}`)?"▼":"▶"}),be.has(`${he}-${ye}`)&&Ht(we,`${he}-${ye}`)]}):String(we)})]},`${he}-${ye}`))})]})});return jsxRuntimeExports.jsx("span",{children:String(ce)})},Jt=ce=>{var he;if(ce){const me=(he=ce.parentElement)==null?void 0:he.querySelector(".dropdown-trigger");if(!me)return;const ye=me.getBoundingClientRect(),we=window.innerHeight,Ie=window.innerWidth,Fe=ce.offsetHeight,qe=ce.offsetWidth,We=ye.bottom+Fe>we,rt=ye.left+qe>Ie,Ke=ye.left-qe<0;let nt,mt;We?(nt=ye.top-Fe,ce.classList.add("adjust-top")):(nt=ye.bottom,ce.classList.remove("adjust-top")),rt?(mt=ye.right-qe,ce.classList.add("adjust-left"),ce.classList.remove("adjust-right")):Ke?(mt=ye.left,ce.classList.add("adjust-right"),ce.classList.remove("adjust-left")):(mt=ye.left,ce.classList.remove("adjust-left"),ce.classList.remove("adjust-right")),ce.style.top=`${nt}px`,ce.style.left=`${mt}px`,ce.classList.add("dropdown-fixed-position")}};React.useEffect(()=>{const ce=he=>{ct&&oe.current&&!oe.current.contains(he.target)&&tt(!1)};return document.addEventListener("mousedown",ce),()=>{document.removeEventListener("mousedown",ce)}},[ct]),React.useEffect(()=>()=>{},[Ge]),React.useEffect(()=>{const ce=he=>{Ot&&_e.current&&!_e.current.contains(he.target)&&$t(!1)};return document.addEventListener("mousedown",ce),()=>{document.removeEventListener("mousedown",ce)}},[Ot]);const ur=(ce,he)=>{ce.preventDefault();const me=ce.pageX,ye=Pe[he]||150,we=Fe=>{const qe=Math.max(100,ye+(Fe.pageX-me));fe(We=>({...We,[he]:qe}))},Ie=()=>{document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",Ie)};document.addEventListener("mousemove",we),document.addEventListener("mouseup",Ie)},Gt=(ce,he,me)=>{var we;const ye=String(he??"");if(typeof F=="function")try{if(F(me??{},ce))return!0}catch{}return N!=null&&N.includes(ce)?D!=null&&D[ce]?D[ce].includes(ye):!0:!!((we=D==null?void 0:D._global_)!=null&&we.includes(ye))},pr=(ce,he)=>{Gt(he,ce[he],ce)&&q&&q(ce,he)},Vt=Wt.some(ce=>Array.from(ht).some(he=>Array.isArray(ce[he])&&ce[he].length>0&&ce[he].some(me=>typeof me=="object"&&me!==null))),hr=ce=>{const he=/[\\/:*?"<>|]/g;return ce.replace(he,"").trim()},dr=ce=>{try{const he=window.prompt("Enter file name",ce);if(!he)return ce;const me=hr(he);return me.length===0?ce:me.endsWith(".xlsx")?me:`${me}.xlsx`}catch{return ce}},zt=(ce=!1)=>{const he=Ce.filter(We=>ht.has(We.id)),me=ce||!(Se&&Se.length>0)?Le:Se,ye=me.map(We=>he.reduce((rt,Ke)=>(rt[Ke.label||Ke.id]=getColumnValue(We[Ke.id]),rt),{})),we=utils.json_to_sheet(ye),Ie=utils.book_new();utils.book_append_sheet(Ie,we,"Data");const qe=dr(ce||me===Le?"all-data-export.xlsx":"filtered-search-export.xlsx");writeFileSync(Ie,qe)},mr=()=>jsxRuntimeExports.jsxs("div",{className:X?"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:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:Se.length>0&&Se.every((ce,he)=>{const me=ne(ce,he);return me!==void 0&&He.has(me)}),onChange:ce=>{if(ce){const he=new Set(Se.map((me,ye)=>ne(me,ye)));Xe(he)}else Xe(new Set)}})}),Z.filter(ce=>Ce.find(me=>me.id===ce)&&ht.has(ce)).map(ce=>{const he=Ce.find(me=>me.id===ce);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:[B&&jsxRuntimeExports.jsx("img",{src:SortIcon,alt:"Sort",title:"Sort",width:14,height:14,onClick:()=>lr(he.id),style:{cursor:"pointer",transition:"transform 0.2s ease-in-out",transform:(De==null?void 0:De.column)===he.id?De.direction==="asc"?"rotate(0deg)":"rotate(180deg)":"none",filter:(De==null?void 0:De.column)===he.id?"brightness(0.6)":"none"}}),U&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:he.id===Ge?se:null,children:[jsxRuntimeExports.jsx("span",{className:`dropdown-trigger ${et[he.id]?"filter-active":""}`,onClick:me=>{me.stopPropagation(),Yt(he.id)},title:et[he.id]?`Filter: ${et[he.id].operator} "${et[he.id].value}"`:"Filter options",children:"⋮"}),Ge===he.id&&jsxRuntimeExports.jsxs("div",{className:"dropdown-menu",ref:me=>{me&&setTimeout(()=>Jt(me),0)},children:[jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{ot(he.id),tt(!0),Ye(null)},children:"Filter"}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Dt(he.id,"","contains"),Ye(null)},children:"Contains..."}),jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{Dt(he.id,"","equals"),Ye(null)},children:"Equals..."}),et[he.id]&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{const me={...et};delete me[he.id],ut(me),dt(""),ot("");const ye=Mt(Le,me,St);Me(ye),st(0),Ye(null)},children:"Clear Filter"}),Object.keys(et).length>0&&jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:()=>{ut({}),dt(""),ot(""),bt(null),Ct(""),Me(Le),st(0),Ye(null)},children:"Clear All Filters"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"column-resizer",onMouseDown:me=>ur(me,he.id)})]})},he.id):null}),(m||S||E||_||g||d)&&jsxRuntimeExports.jsx("th",{className:"table-header-cell",style:{width:"150px",textAlign:"center"},children:"Action"})]}),Qe&&jsxRuntimeExports.jsxs("tr",{className:"filter-row",children:[Vt&&jsxRuntimeExports.jsx("td",{}),i&&jsxRuntimeExports.jsx("td",{}),Z.filter(ce=>Ce.find(me=>me.id===ce)&&ht.has(ce)).map(ce=>{var me;const he=Ce.find(ye=>ye.id===ce);return he?jsxRuntimeExports.jsxs("td",{style:{position:"relative"},children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:`Search ${he.label}`,value:((me=et[he.id])==null?void 0:me.value)||"",onChange:ye=>{const we=ye.target.value;dt(we),ot(he.id);const Ie={...et};we===""?delete Ie[he.id]:Ie[he.id]={value:we,operator:"contains"},ut(Ie);const Fe=Mt(Le,Ie,St);Me(Fe),st(0)},className:"filter-input-with-clear",style:{paddingRight:"28px"}}),et[he.id]&&jsxRuntimeExports.jsx("span",{className:"filter-clear-icon-inside",onClick:()=>{const ye={...et};delete ye[he.id],ut(ye),dt(""),ot("");const we=Mt(Le,ye,St);Me(we),st(0)},title:"Clear",children:"×"})]},`filter-${he.id}`):null}),(m||S||E||_||g||d)&&jsxRuntimeExports.jsx("td",{})]})]}),jsxRuntimeExports.jsx("tbody",{children:Wt.length===0?jsxRuntimeExports.jsx("tr",{className:"no-records-row",children:jsxRuntimeExports.jsx("td",{colSpan:(Vt?1:0)+(i?1:0)+Array.from(ht).length+(m||S||E||_||g||d?1:0),className:"no-records-cell",children:St.trim()||Object.keys(et).length>0?"No records found for the search criteria":"No Data found"})}):Wt.map((ce,he)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("tr",{className:ce.isNewRow?"table-new-row":he%2===0?`table-row-even ${ce.hasError?"row-error":ce.isModified?"row-invalid":""}`:`table-row-odd ${ce.hasError?"row-error":ce.isModified?"row-invalid":""}`,title:ce.rowMessage||"",children:[Vt&&jsxRuntimeExports.jsx("td",{className:"expand-column",children:Array.from(ht).some(me=>Array.isArray(ce[me])&&ce[me].length>0&&ce[me].some(ye=>typeof ye=="object"&&ye!==null))&&jsxRuntimeExports.jsx("button",{className:"expand-button",onClick:()=>Xt(he),children:Array.from(lt).some(me=>me.startsWith(`${he}`))?"▼":"▶"})}),i&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:(()=>{const me=ne(ce,pt*yt+he);return me!==void 0&&He.has(me)})(),onChange:me=>{const ye=new Set(He),we=ne(ce,pt*yt+he);we!==void 0&&(me?ye.add(we):ye.delete(we)),Xe(ye)}})}),o&&jsxRuntimeExports.jsx("td",{className:"checkbox-column",children:jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:"selected",checked:(u==null?void 0:u(he))==="selected",onChange:()=>l==null?void 0:l({rowIndex:he,columnId:"selected",rowData:ce})})})}),Z.filter(me=>Ce.find(we=>we.id===me)&&ht.has(me)).map(me=>{const ye=Ce.find(we=>we.id===me);return ye?jsxRuntimeExports.jsx("td",{style:{width:Pe[ye.id]?`${Pe[ye.id]}px`:"150px",minWidth:"80px",maxWidth:"600px"},className:`table-cell ${Gt(ye.id,ce[ye.id],ce)?"ce-clickable-cell":""}`,onClick:()=>{Gt(ye.id,ce[ye.id],ce)?pr(ce,ye.id):Array.isArray(ce[ye.id])&&ce[ye.id].length>0&&Xt(he,ye.id)},children:ce.isNewRow?jsxRuntimeExports.jsx(AddNewRowCell,{row:ce,column:ye,colId:me}):React.isValidElement(ce[ye.id])?ce[ye.id]:(Array.isArray(f)?f.includes(ye.id):f===ye.id)?jsxRuntimeExports.jsx("div",{className:"radio-center-wrapper",children:jsxRuntimeExports.jsx(CERadioButton,{label:"",value:ye.id,checked:tr(ce)===ye.id,onChange:()=>er({rowIndex:he,columnId:ye.id,rowData:ce})})}):Array.isArray(ce[ye.id])?`${ce[ye.id].length}`:typeof ce[ye.id]=="object"&&ce[ye.id]!==null?Object.entries(ce[ye.id]).map(([we,Ie])=>`${we}: ${Ie}`).join(", "):jsxRuntimeExports.jsx(CETruncatedTextWithTooltip,{text:String(ce[ye.id]??"")})},ye.id):null}),(m||S||E||_||g||d)&&jsxRuntimeExports.jsx("td",{className:"table-cell",style:{textAlign:"center"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px",flexWrap:"wrap"},children:[m&&jsxRuntimeExports.jsx("img",{src:Edit,alt:"Edit",title:"Edit",width:20,height:20,style:{cursor:"pointer"},onClick:()=>C==null?void 0:C(ce,he)}),S&&jsxRuntimeExports.jsx("img",{src:Reassign,alt:"Reassign",width:20,height:20,style:{cursor:"pointer"},onClick:I}),E&&jsxRuntimeExports.jsx("img",{src:Cancel,alt:"Cancel",width:20,height:20,style:{cursor:"pointer"},onClick:()=>j==null?void 0:j(ce,he)}),_&&jsxRuntimeExports.jsx("img",{src:Approve,alt:"Approve",width:20,height:20,style:{cursor:"pointer"},onClick:()=>O==null?void 0:O(ce,he)}),g&&jsxRuntimeExports.jsx("img",{src:Delete,alt:"Delete",width:20,height:20,style:{cursor:"pointer"},onClick:()=>R==null?void 0:R(ce,he)}),d&&jsxRuntimeExports.jsx("img",{src:Add,alt:"Add",width:20,height:20,style:{cursor:"pointer"},onClick:A})]})})]}),Array.from(lt).map(me=>{const[ye,we]=me.split("-");if(Number(ye)===he){const Ie=we?{[we]:ce[we]}:Object.keys(ce).filter(Fe=>Array.isArray(ce[Fe])||typeof ce[Fe]=="object").reduce((Fe,qe)=>({...Fe,[qe]:ce[qe]}),{});return jsxRuntimeExports.jsx("tr",{className:"expanded-row",children:jsxRuntimeExports.jsx("td",{colSpan:ht.size+2,className:"expanded-cell",children:Object.entries(Ie).map(([Fe,qe],We)=>jsxRuntimeExports.jsxs("div",{className:`expanded-section ${We%2===0?"expanded-section-even":"expanded-section-odd"}`,style:{backgroundColor:We%2===0?"#e8f5e9":"#e3f2fd",padding:"10px",marginBottom:"10px",borderRadius:"5px"},children:[jsxRuntimeExports.jsx("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:Fe.charAt(0).toUpperCase()+Fe.slice(1)}),Ht(qe)]},Fe))})},`expanded-${me}`)}return null})]},he))})]})}),Q&&jsxRuntimeExports.jsxs("div",{className:"pagination-container",children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"40px"},children:[jsxRuntimeExports.jsx(EntriesInfo,{dataLength:Se.length,currentPage:pt,rowsPerPage:yt}),jsxRuntimeExports.jsx(RowsPerPageSelector,{rowsPerPage:yt,setRowsPerPage:Ft,setCurrentPage:Be,pageSizeOptions:xe})]}),jsxRuntimeExports.jsx(PaginationControls,{currentPage:pt,totalPages:Math.ceil(Se.length/yt),setCurrentPage:Be})]}),ct&&jsxRuntimeExports.jsx("div",{className:"filter-modal",children:jsxRuntimeExports.jsxs("div",{className:"filter-modal-content",ref:oe,onKeyDown:cr,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:()=>tt(!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:at,onChange:ce=>ot(ce.target.value),className:"filter-select","aria-label":"Filter column",title:"Select column to filter",children:Ce.map(ce=>jsxRuntimeExports.jsx("option",{value:ce.id,children:ce.label},ce.id))})]}),jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Operator:"}),jsxRuntimeExports.jsxs("select",{value:vt,onChange:ce=>Et(ce.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"})]}),vt==="Date Range"&&jsxRuntimeExports.jsx("div",{style:{marginTop:"10px"},children:jsxRuntimeExports.jsx(CEDateRangePicker,{mode:"range",onChange:ce=>{bt({startDate:ce.startDate,endDate:ce.endDate})}})})]}),vt!=="Date Range"&&jsxRuntimeExports.jsxs("div",{className:"filter-form-group",children:[jsxRuntimeExports.jsx("label",{children:"Value:"}),jsxRuntimeExports.jsx("input",{type:"text",value:Tt,onChange:ce=>dt(ce.target.value),placeholder:"Enter filter value",title:"Filter value",className:"filter-input",autoFocus:!0,onKeyDown:ce=>{ce.key==="Enter"&&Zt(),ce.key==="Escape"&&tt(!1)}})]}),Object.keys(et).length>0&&jsxRuntimeExports.jsxs("div",{className:"active-filters-summary",children:[jsxRuntimeExports.jsx("div",{className:"active-filters-header",children:"Active Filters:"}),Object.entries(et).map(([ce,he])=>{const me=Ce.find(ye=>ye.id===ce);return jsxRuntimeExports.jsxs("div",{className:"active-filter-item",children:[jsxRuntimeExports.jsxs("span",{children:[(me==null?void 0:me.label)||ce,": "]}),jsxRuntimeExports.jsx("span",{className:"filter-operator",children:he.operator}),jsxRuntimeExports.jsxs("span",{className:"filter-value",children:['"',he.value,'"']})]},ce)})]})]}),jsxRuntimeExports.jsxs("div",{className:"filter-modal-footer",children:[jsxRuntimeExports.jsx(CEButton,{onClick:()=>{ut({}),Me(Le),st(0),tt(!1)},className:"clear-filters-button",variant:"outlined",children:"Clear All"}),jsxRuntimeExports.jsx(CEButton,{onClick:Zt,className:"apply-filter-button",variant:"primary",children:"Apply Filter"})]})]})})]}),yr=()=>{z?(wt(!0),Promise.resolve(z()).finally(()=>{ut({});try{const ce=Ce.filter(me=>me.shouldDisplay!==!1).map(me=>me.id),he=Ce.filter(me=>me.shouldVisible!==!1).map(me=>me.id);Rt(new Set(ce)),ae(he),$t(!1)}catch{}wt(!1)})):(wt(!0),setTimeout(()=>{Me(t),Ve(t),st(0),Ct(""),dt(""),ot(""),ut({}),Ze(null);try{const ce=Ce.filter(me=>me.shouldDisplay!==!1).map(me=>me.id),he=Ce.filter(me=>me.shouldVisible!==!1).map(me=>me.id);Rt(new Set(ce)),ae(he),$t(!1)}catch{}wt(!1)},300))},xr=Ce.filter(ce=>ce.shouldVisible!==!1).every(ce=>ht.has(ce.id));return jsxRuntimeExports.jsxs("div",{className:`datatable-wrapper${it?" 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:[p&&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 ce=!Qe;Ue(ce),ce||(ut({}),Me(Le),st(0),Ct(""))}}),St&&jsxRuntimeExports.jsx("button",{className:"search-cancel-button",onClick:()=>{Ct(""),rr()},children:"×"})]}),L&&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(et).length>0&&jsxRuntimeExports.jsx("img",{src:FilterAltOffRounded,alt:"Clear Filters",title:"Clear All Filters",width:20,height:20,style:{cursor:"pointer",marginLeft:"8px",fill:"#808080"},onClick:()=>{ut({}),Me(Le),st(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)}),Y&&jsxRuntimeExports.jsx("img",{src:ReloadIcon,alt:"Reload",title:"Reload Data",width:20,height:20,className:"ce-reload-icon",style:{cursor:"pointer",fill:"#808080"},onClick:yr}),G&&jsxRuntimeExports.jsxs("div",{className:"dropdown-container",ref:ve,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:ce=>{ce.stopPropagation(),ee&&ee.length>0?Yt("download"):zt()}}),(()=>{const ce=ee??[],he=ce.find(we=>we.usedefault===!0),me=ce.filter(we=>!we.usedefault);let ye=[];return ce.length>0?he?ye=[{label:he.label,onClick:()=>{he.forceAll?zt(!0):zt()}},...me]:ye=[...me]:ye=[],Ge==="download"&&ye.length>0&&jsxRuntimeExports.jsx("div",{className:"dropdown-menu",ref:we=>{we&&setTimeout(()=>Jt(we),0)},children:ye.map((we,Ie)=>jsxRuntimeExports.jsx("button",{className:"dropdown-item",onClick:Fe=>{Fe.stopPropagation();try{we.onClick()}finally{Ye(null)}},children:we.label},Ie))})})()]}),V&&jsxRuntimeExports.jsx("button",{className:"fullscreen-button",onClick:it?It:kt,title:it?"Exit Full Screen":"Full Screen",children:it?"⤫":"⤢"})]})]}),Ot&&jsxRuntimeExports.jsx("div",{className:"column-modal",children:jsxRuntimeExports.jsxs("div",{className:"column-modal-content",ref:_e,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:xr,onChange:ce=>{Rt(ce?new Set(Ce.filter(he=>he.shouldVisible!==!1).map(he=>he.id)):new Set)}})})}),jsxRuntimeExports.jsx("div",{className:"column-list-container",children:Z.filter(ce=>Ce.find(he=>he.id===ce&&he.shouldVisible!==!1)).map(ce=>{const he=Ce.find(me=>me.id===ce);return he?jsxRuntimeExports.jsxs("div",{className:`column-item ${te===he.id?"dragging":""}`,draggable:!0,onDragStart:me=>{ie(he.id),me.dataTransfer.effectAllowed="move",me.dataTransfer.setData("text/plain",he.id)},onDragEnd:()=>ie(null),onDragOver:me=>{me.preventDefault(),me.dataTransfer.dropEffect="move"},onDragEnter:me=>{me.preventDefault(),me.currentTarget.classList.add("drag-over")},onDragLeave:me=>{me.currentTarget.classList.remove("drag-over")},onDrop:me=>{if(me.preventDefault(),me.currentTarget.classList.remove("drag-over"),te&&te!==he.id){const ye=[...Z],we=ye.indexOf(te),Ie=ye.indexOf(he.id);we!==-1&&Ie!==-1&&(ye.splice(we,1),ye.splice(Ie,0,te),ae(ye))}},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:()=>ir(he.id)})]},he.id):null})})]})}),Pt?jsxRuntimeExports.jsx(CESkeletonTable,{columns:Ce.length||5,rows:yt||10}):mr()]})},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"],CEDatePicker=({onChange:e,label:t="Calendar",value:n,focused:i=!1,id:o,name:l})=>{const[u,f]=React.useState(!1),[p,d]=React.useState(null),[m,g]=React.useState(new Date),[_,S]=React.useState(!1),[E,b]=React.useState({start:2020,end:2031}),[T,C]=React.useState("left"),[A,R]=React.useState(0),O=React.useRef(null),[I,j]=React.useState(i),[M,N]=React.useState(""),[D,F]=React.useState(""),[q,z]=React.useState(""),[G,ee]=React.useState(!0),Y=()=>{f(!1),!M&&!D&&!q&&j(!1)};useEscapeKey(Y);const V=()=>{f(X=>{if(!X){const Q=p||new Date;g(Q),M||N(String(Q.getMonth()+1).padStart(2,"0")),D||F(String(Q.getDate()).padStart(2,"0")),q||z(String(Q.getFullYear()))}return!X})};React.useEffect(()=>{const X=Q=>{O.current&&!O.current.contains(Q.target)&&Y()};return document.addEventListener("mousedown",X),()=>document.removeEventListener("mousedown",X)},[M,D,q]),React.useEffect(()=>{if(n){const[X,Q,le]=n.split("/"),xe=new Date(`${le}-${X}-${Q}`);isNaN(xe.getTime())||(d(xe),g(xe),N(X),F(Q),z(le),ee(!0))}else d(null),N(""),F(""),z(""),ee(!0),g(new Date)},[n]);const W=X=>{const Q=new Date(m.getFullYear(),m.getMonth(),X);d(Q),g(Q);const le=String(Q.getMonth()+1).padStart(2,"0"),xe=String(Q.getDate()).padStart(2,"0"),de=String(Q.getFullYear());N(le),F(xe),z(de),ee(!0),e(`${le}/${xe}/${de}`),f(!1)},L=X=>{C(X>0?"left":"right"),g(Q=>{const le=new Date(Q.getFullYear(),Q.getMonth()+X,1);return p&&N(String(le.getMonth()+1).padStart(2,"0")),R(xe=>xe+1),le})},B=()=>{S(X=>!X)},U=X=>{b(Q=>({start:Q.start+X*10,end:Q.end+X*10}))},K=X=>{const Q=new Date(X,m.getMonth(),1);g(Q),z(String(X)),S(!1)},H=()=>{const X=new Date(m.getFullYear(),m.getMonth(),1),Q=new Date(m.getFullYear(),m.getMonth()+1,0),le=X.getDay(),xe=Q.getDate(),de=new Date,ue=Ee=>!p&&de.getDate()===Ee&&de.getMonth()===m.getMonth()&&de.getFullYear()===m.getFullYear(),pe=[];for(let Ee=0;Ee<le;Ee++)pe.push(jsxRuntimeExports.jsx("div",{className:"dp-day empty"},`empty-${Ee}`));for(let Ee=1;Ee<=xe;Ee++){const ne=(p==null?void 0:p.getDate())===Ee&&(p==null?void 0:p.getMonth())===m.getMonth()&&(p==null?void 0:p.getFullYear())===m.getFullYear();pe.push(jsxRuntimeExports.jsx("div",{className:`dp-day ${ne?"selected":""} ${ue(Ee)?"today":""}`,onClick:()=>W(Ee),children:Ee},Ee))}return pe},J=(X,Q,le)=>{if(!X||!Q||!le){ee(!1),g(new Date),d(null);return}const xe=`${le}-${X}-${Q}`,de=new Date(xe);if(de.getFullYear()===parseInt(le)&&de.getMonth()+1===parseInt(X)&&de.getDate()===parseInt(Q))d(de),g(de),ee(!0),e(`${X}/${Q}/${le}`);else{const ue=new Date;ee(!1),d(null),g(ue),N(X),F(Q),z(le)}};return jsxRuntimeExports.jsxs("div",{className:"dp-wrapper",ref:O,children:[jsxRuntimeExports.jsxs("div",{className:`dp-input-container ${I||u?"focused":""} ${p||M||D||q?"has-value":""} ${G?"":"invalid"}`,children:[jsxRuntimeExports.jsx("div",{className:`dp-label floating ${G?"":"invalid"}`,children:t}),jsxRuntimeExports.jsxs("div",{className:"dp-input-wrapper",onClick:()=>{j(!0)},children:[jsxRuntimeExports.jsx(DateInputPart,{value:M,onChange:X=>{N(X),J(X,D,q)},max:12,min:1,length:2,placeholder:"MM",onClick:V,id:o?`${o}-month`:void 0,name:l?`${l}-month`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx(DateInputPart,{value:D,onChange:X=>{F(X),J(M,X,q)},placeholder:"DD",max:31,min:1,length:2,onClick:V,id:o?`${o}-day`:void 0,name:l?`${l}-day`:void 0}),jsxRuntimeExports.jsx("span",{children:"/"}),jsxRuntimeExports.jsx("input",{type:"text",value:q,onChange:X=>{const Q=X.target.value.replace(/\D/g,"");Q.length<=4&&(z(Q),Q.length===4&&J(M,D,Q))},onFocus:X=>X.target.select(),onBlur:()=>{q.length===4&&J(M,D,q)},className:"date-input-part",id:o?`${o}-year`:void 0,name:l?`${l}-year`:void 0,maxLength:4,placeholder:"YYYY"}),jsxRuntimeExports.jsx("span",{className:"dp-icon",onClick:V,children:jsxRuntimeExports.jsx("img",{src:DateRangeIcon,alt:"Calendar Icon"})})]})]}),u&&jsxRuntimeExports.jsxs("div",{className:"dp-calendar",children:[jsxRuntimeExports.jsxs("div",{className:"dp-header",children:[jsxRuntimeExports.jsxs("div",{className:"dp-title",onClick:B,children:[_?`${E.start} - ${E.end}`:`${m.toLocaleString("default",{month:"long"})} ${m.getFullYear()}`,jsxRuntimeExports.jsx("button",{className:"dp-toggle-icon",children:"▾"})]}),jsxRuntimeExports.jsxs("div",{className:"dp-controls",children:[jsxRuntimeExports.jsx("button",{onClick:()=>_?U(-1):L(-1),children:"‹"}),jsxRuntimeExports.jsx("button",{onClick:()=>_?U(1):L(1),children:"›"})]})]}),!_&&jsxRuntimeExports.jsx("div",{className:"dp-weekdays",children:WEEKDAYS.map(X=>jsxRuntimeExports.jsx("div",{className:"dp-weekday",children:X},X))}),_?jsxRuntimeExports.jsx("div",{className:"dp-years-grid",children:Array.from({length:E.end-E.start+1},(X,Q)=>{const le=E.start+Q;return jsxRuntimeExports.jsx("div",{className:"dp-year-item",onClick:()=>K(le),children:le},le)})}):jsxRuntimeExports.jsx("div",{className:`dp-days dp-slide-${T}`,children:H()},A)]})]})},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})=>{const[g,_]=React.useState(!1),[S,E]=React.useState(!1),b=React.useRef(null),C={...getSizeStyle$1(l),...u},A=j=>{if(i){const M=t.includes(j)?t.filter(N=>N!==j):[...t,j];n(M)}else n([j]),_(!1)},R=()=>n([]),O=e.filter(j=>t.includes(j.value)).map(j=>j.label);React.useEffect(()=>{const j=M=>{var N;(N=b.current)!=null&&N.contains(M.target)||_(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]);const I=j=>{const M=t.filter(N=>N!==j);n(M)};return jsxRuntimeExports.jsx("div",{className:`dropdown-container ${g||t.length>0?"float":""}`,ref:b,style:C,id:d,"data-name":m,children:jsxRuntimeExports.jsxs("div",{className:`dropdown-input ${g?"open":""}`,onClick:()=>_(j=>!j),onFocus:()=>E(!0),onBlur:()=>E(!1),tabIndex:0,children:[jsxRuntimeExports.jsx("label",{className:"floating-placeholder",children:o}),jsxRuntimeExports.jsx("div",{className:"selected-display",children:t.length===0?"":i?p?O.map((j,M)=>jsxRuntimeExports.jsxs("span",{className:"chip",children:[j,jsxRuntimeExports.jsx("span",{className:"close-icon",onClick:N=>{var D;N.stopPropagation(),I(((D=e.find(F=>F.label===j))==null?void 0:D.value)||"")},children:"×"})]},M)):jsxRuntimeExports.jsx("div",{className:"selected-display-label",children:O.join(",")}):jsxRuntimeExports.jsx("span",{children:O[0]})}),f&&t.length>0&&jsxRuntimeExports.jsx("button",{className:"clear-button",onClick:j=>{j.stopPropagation(),R()},children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`dropdown-icon-img ${g?"rotate-icon":""}`,children:jsxRuntimeExports.jsx("path",{d:"M8.12021 9.79006L12.0002 13.6701L15.8802 9.79006C16.2702 9.40006 16.9002 9.40006 17.2902 9.79006C17.6802 10.1801 17.6802 10.8101 17.2902 11.2001L12.7002 15.7901C12.3102 16.1801 11.6802 16.1801 11.2902 15.7901L6.70021 11.2001C6.31021 10.8101 6.31021 10.1801 6.70021 9.79006C7.09021 9.41006 7.73021 9.40006 8.12021 9.79006Z",fill:"black",fillOpacity:"0.54"})})}),g&&jsxRuntimeExports.jsx("ul",{className:"dropdown-options",children:e.map(j=>jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${t.includes(j.value)?"selected":""}`,onClick:M=>{M.stopPropagation(),A(j.value)},children:[i&&jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!0,checked:t.includes(j.value)}),j.label]},j.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(j=>{try{return document.queryCommandState(j)}catch{return!1}},[]),C=React.useCallback(()=>{b({bold:T("bold"),italic:T("italic"),underline:T("underline"),strikeThrough:T("strikethrough"),subscript:T("subscript"),superscript:T("superscript"),justifyLeft:T("justifyLeft"),justifyCenter:T("justifyCenter"),justifyRight:T("justifyRight"),justifyFull:T("justifyFull")})},[T]),A=React.useCallback((j,M="")=>{var F,q;const N=saveSelection(),D=document.getSelection();if(j==="createLink"){const z=prompt("Enter URL:");if(z){restoreSelection(N),document.execCommand("createLink",!1,z);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(j==="insertImage"){const z=prompt("Enter image URL:");if(z){restoreSelection(N);const G=`<img src="${z}" alt="image" style="max-width: 100%; height: auto;"/>`;document.execCommand("insertHTML",!1,G)}}else j==="fontSize"||j==="fontName"?(restoreSelection(N),document.execCommand(j,!0,M),j==="fontSize"?g(M):S(M)):(restoreSelection(N),document.execCommand(j,!1,M));d.current&&(t==null||t(d.current.innerHTML)),(q=d.current)==null||q.focus(),C()},[t,C]),R=j=>{if(j.key==="Tab"&&(j.preventDefault(),document.execCommand("insertHTML",!1," ")),j.ctrlKey||j.metaKey)switch(j.key.toLowerCase()){case"z":j.preventDefault(),j.shiftKey?A("redo"):A("undo");break;case"y":j.preventDefault(),A("redo");break}},O=[{value:"1",label:"2"},{value:"2",label:"4"},{value:"3",label:"6"},{value:"4",label:"8"},{value:"5",label:"10"},{value:"6",label:"12"},{value:"7",label:"14"}],I=["Arial","Times New Roman","Courier New","Georgia","Verdana","Helvetica","Serif Fonts","Algerian"];return jsxRuntimeExports.jsxs("div",{className:`rich-text-editor ${u}`,style:{width:n,height:i,...f},children:[jsxRuntimeExports.jsxs("div",{className:"toolbar",children:[jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("button",{onClick:()=>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:j=>A("fontSize",j.target.value),className:"toolbar-select",title:"Font Size",children:O.map(j=>jsxRuntimeExports.jsx("option",{value:j.value,children:j.label},j.value))})}),jsxRuntimeExports.jsx("div",{className:"toolbar-group",children:jsxRuntimeExports.jsx("select",{value:_,onChange:j=>A("fontName",j.target.value),className:"toolbar-select",title:"Font Family",children:I.map(j=>jsxRuntimeExports.jsx("option",{value:j,children:j},j))})}),jsxRuntimeExports.jsxs("div",{className:"toolbar-group",children:[jsxRuntimeExports.jsx("button",{onClick:()=>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(""),[O,I]=React.useState(""),j=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,J=p;if(B<=2){const X=L.substring(0,2).replace(/[^0-9]/g,"");if(X){if(X.length===1){const Q=parseInt(X);Q>=2&&Q<=9?(U=X.padStart(2,"0"),setTimeout(()=>{j.current&&j.current.setSelectionRange(3,5)},10)):(U=X,setTimeout(()=>{j.current&&j.current.setSelectionRange(1,1)},10))}else if(X.length===2){const Q=parseInt(X);Q>=1&&Q<=12?(U=X,setTimeout(()=>{j.current&&j.current.setSelectionRange(3,5)},10)):(U=X[0],setTimeout(()=>{j.current&&j.current.setSelectionRange(1,1)},10))}J=`${U}:${_} ${E}`}}else if(B>=3&&B<=5){const X=L.indexOf(":")+1,Q=L.substring(X,X+2).replace(/[^0-9]/g,"");if(Q){if(Q.length===1)K=Q,J=`${m}:${K} ${E}`,setTimeout(()=>{j.current&&j.current.setSelectionRange(4,4)},10);else if(Q.length===2){const le=parseInt(Q);le>=0&&le<=59?(K=Q,setTimeout(()=>{j.current&&j.current.setSelectionRange(6,8)},10)):(K=Q[0],setTimeout(()=>{j.current&&j.current.setSelectionRange(4,4)},10))}J=`${m}:${K} ${E}`}}else if(B>=6){const Q=L.substring(L.lastIndexOf(" ")+1).toUpperCase();Q.startsWith("A")?(H="AM",J=`${m}:${_} AM`):Q.startsWith("P")&&(H="PM",J=`${m}:${_} PM`)}g(U),S(K),b(H),d(J),f(!1),t==null||t(J)},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(O){const U=D(O,"minutes");S(U),I(""),d(`${m}:${U} ${E}`)}W.currentTarget.setSelectionRange(6,8)}}},z=W=>{const L=W.currentTarget.selectionStart||0,B=j.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)},Y=()=>{const W=`${m}:${_} ${E}`;d(W),f(!1),t==null||t(W)},V=()=>{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:j,type:"text",id:o,name:l,value:p,onChange:F,onKeyDown:q,onClick:W=>{p||G(),z(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:V,children:"Cancel"}),jsxRuntimeExports.jsx("button",{className:"time-picker-button ok",onClick:Y,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 j,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=(j=N.response)==null?void 0:j.data)==null?void 0:M.message)||N.message:"An error occurred")}finally{m(!1)}})()},[]);const C=I=>{if(I==="available"){const j=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,...j].sort((F,q)=>{const z=parseInt(F.id.replace(/\D/g,"")),G=parseInt(q.id.replace(/\D/g,""));return z-G})),E(new Set)}else{const j=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,...j].sort((F,q)=>{const z=parseInt(F.id.replace(/\D/g,"")),G=parseInt(q.id.replace(/\D/g,""));return z-G})),T(new Set)}t(f,l)},A=(I,j,M)=>{M(N=>{const D=new Set(N);return D.has(I)?D.delete(I):D.add(I),D})},R=(I,j,M)=>N=>{const D=new Set(j),F=I.filter(q=>!q.disabled);N?F.forEach(q=>D.add(q.id)):F.forEach(q=>D.delete(q.id)),M(D)},O=(I,j,M,N)=>{const D=I.filter(ee=>!ee.disabled),F=D.length>0&&D.every(ee=>j.has(ee.id)),q=j.size,z=I.length,G=I.length===0;return jsxRuntimeExports.jsxs("div",{className:`transfer-box ${i}`,children:[jsxRuntimeExports.jsx("div",{className:"transfer-box-header",children:jsxRuntimeExports.jsxs("div",{className:"header-content",children:[jsxRuntimeExports.jsx("div",{className:"checkbox-wrapper",children:jsxRuntimeExports.jsx(CECheckBox,{label:"",checked:F,onChange:R(I,j,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,"/",z," selected"]})]})]})}),jsxRuntimeExports.jsx("div",{className:"transfer-items",children:I.map(ee=>jsxRuntimeExports.jsx(TransferItem,{label:ee.label,checked:j.has(ee.id),disabled:ee.disabled,onChange:()=>A(ee.id,j,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:[O(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})]}),O(f,b,T,"Chosen")]})},CEBadge=({label:e,backgroundColor:t="#e0e0e0",textColor:n="#000",style:i,id:o,name:l,disable:u=!1})=>jsxRuntimeExports.jsx("span",{id:o,"data-name":l,"aria-disabled":u,style:{backgroundColor:t,color:n,padding:"4px 10px",borderRadius:"12px",fontSize:"12px",display:"inline-block",whiteSpace:"nowrap",...u?{opacity:.6,pointerEvents:"none"}:{},...i},children:e}),chatIcon="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%202.5H4C2.9%202.5%202.01%203.4%202.01%204.5L2%2022.5L6%2018.5H20C21.1%2018.5%2022%2017.6%2022%2016.5V4.5C22%203.4%2021.1%202.5%2020%202.5ZM7%209.5H17C17.55%209.5%2018%209.95%2018%2010.5C18%2011.05%2017.55%2011.5%2017%2011.5H7C6.45%2011.5%206%2011.05%206%2010.5C6%209.95%206.45%209.5%207%209.5ZM13%2014.5H7C6.45%2014.5%206%2014.05%206%2013.5C6%2012.95%206.45%2012.5%207%2012.5H13C13.55%2012.5%2014%2012.95%2014%2013.5C14%2014.05%2013.55%2014.5%2013%2014.5ZM17%208.5H7C6.45%208.5%206%208.05%206%207.5C6%206.95%206.45%206.5%207%206.5H17C17.55%206.5%2018%206.95%2018%207.5C18%208.05%2017.55%208.5%2017%208.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e",CEChatbox=({notes:e,onAddNote:t,buttonLabel:n,buttonIcon:i})=>{const[o,l]=React.useState(""),u=()=>{t(o),l("")},f=p=>{p.key==="Enter"&&u()};return jsxRuntimeExports.jsxs("div",{className:"notes-container",children:[jsxRuntimeExports.jsxs("div",{className:"notes-header",children:[jsxRuntimeExports.jsx("img",{src:chatIcon,alt:"Chat Icon",className:"notes-icon"}),jsxRuntimeExports.jsx("span",{className:"notes-title",children:"Notes"})]}),jsxRuntimeExports.jsxs("div",{className:"add-note-section",children:[jsxRuntimeExports.jsx("textarea",{value:o,onChange:p=>l(p.target.value),onKeyPress:f,placeholder:"Add a note...",className:"add-note-input",rows:3}),jsxRuntimeExports.jsx(CEButton,{label:n,icon:i,variant:"outlinedGreen",onClick:u,sx:{width:"100%",marginTop:"10px"},children:void 0})]}),jsxRuntimeExports.jsx("div",{className:"notes-list",children:e.map(p=>jsxRuntimeExports.jsxs("div",{className:"note-item",children:[jsxRuntimeExports.jsx("div",{className:"note-avatar",children:p.initials}),jsxRuntimeExports.jsxs("div",{className:"note-content",children:[jsxRuntimeExports.jsxs("div",{className:"note-header",children:[jsxRuntimeExports.jsx("span",{className:"note-author",children:p.author}),jsxRuntimeExports.jsx("span",{className:"note-timestamp",children:p.timestamp})]}),jsxRuntimeExports.jsx("div",{className:"note-text",children:p.content})]})]},p.id))})]})},CEStatusDropdown=({options:e,selected:t,onChange:n,placeholder:i="Select status...",size:o="medium",disabled:l=!1,ariaLabel:u="Status selection dropdown"})=>{const[f,p]=React.useState(!1),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 O;(O=T.current)!=null&&O.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(O=>O.filter(I=>I.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(O=>O.value===A.value);return jsxRuntimeExports.jsxs("li",{className:`dropdown-option ${R?"selected":""}`,onClick:O=>{O.stopPropagation(),b(I=>{const j=I.some(N=>N.value===A.value);let M;return j?M=I.filter(N=>N.value!==A.value):M=[...I,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})=>{const[u,f]=React.useState(!1),[p,d]=React.useState(!1),[m,g]=React.useState(""),_=React.useRef(null),S=React.useRef(null),E=t.filter(C=>C.toLowerCase().includes(m.toLowerCase())),b=C=>{if(o){const A=n.includes(C);i(A?n.filter(R=>R!==C):[...n,C]),g("")}else i([C]),g(C),f(!1)},T=C=>{S.current&&!S.current.contains(C.target)&&(f(!1),d(!1))};return React.useEffect(()=>(document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)),[]),jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:S,children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper ${p||u?"focused":""} ${n.length>0?"has-value":""}`,children:[jsxRuntimeExports.jsx("label",{className:"autocomplete-label",children:e}),jsxRuntimeExports.jsxs("div",{className:"input-area",children:[o&&n.length>0&&jsxRuntimeExports.jsx("div",{className:"selected-values",children:n.map(C=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[C,jsxRuntimeExports.jsx("button",{onClick:A=>{A.stopPropagation(),i(n.filter(R=>R!==C))},children:"×"})]},C))}),jsxRuntimeExports.jsx("input",{ref:_,type:"text",className:"autocomplete-input",value:m,onChange:C=>g(C.target.value),onFocus:()=>{d(!0),f(!0)}}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:()=>f(C=>!C),children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5H7z",fill:"gray"})})})]})]}),u&&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 C=n.length===t.length;i(C?[]:[...t])}}),"Select All"]})}),E.map(C=>jsxRuntimeExports.jsx("li",{onClick:()=>b(C),children:o&&l?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(C),onChange:()=>b(C),onClick:A=>A.stopPropagation()}),C]}):C},C))]})]})},CEAutoCompleteSelect=({label:e,options:t,value:n,onChange:i,multiple:o=!1,showCheckboxes:l=!1,id:u})=>{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(O=>O.label.toLowerCase().includes(g.toLowerCase()));React.useEffect(()=>{if(!o&&n.length>0){const O=A(n[0]);_(O)}else o&&_("")},[n,o,t]);const T=O=>{if(o){const I=n.includes(O.value);i(I?n.filter(j=>j!==O.value):[...n,O.value]),_("")}else i([O.value]),_(O.label),p(!1)},C=O=>{E.current&&!E.current.contains(O.target)&&(p(!1),m(!1))};React.useEffect(()=>(document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)),[]);const A=O=>{var I;return((I=t.find(j=>j.value===O))==null?void 0:I.label)||O},R=O=>{O.stopPropagation(),_(""),i([])};return jsxRuntimeExports.jsxs("div",{className:"autocomplete-container",ref:E,id:u,"data-testid":u?`ce-autocomplete-${u}`:"ce-autocomplete",children:[jsxRuntimeExports.jsxs("div",{className:`autocomplete-wrapper ${d||f?"focused":""} ${n.length>0?"has-value":""}`,onClick:()=>p(!0),children:[jsxRuntimeExports.jsx("label",{className:"autocomplete-label",children:e}),jsxRuntimeExports.jsxs("div",{className:"input-area",children:[o&&n.length>0&&jsxRuntimeExports.jsx("div",{className:"selected-values",children:n.map(O=>jsxRuntimeExports.jsxs("span",{className:"selected-tag",children:[A(O),jsxRuntimeExports.jsx("button",{onClick:I=>{I.stopPropagation(),i(n.filter(j=>j!==O))},children:"×"})]},O))}),jsxRuntimeExports.jsx("input",{ref:S,type:"text",className:"autocomplete-input",value:g,onChange:O=>_(O.target.value),onFocus:()=>{m(!0),p(!0)}}),n.length>0&&jsxRuntimeExports.jsx("span",{className:"clear-icon",onClick:R,title:"Clear",children:"×"}),jsxRuntimeExports.jsx("span",{className:"dropdown-toggle-icon",onClick:O=>{O.stopPropagation(),p(I=>!I)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5H7z",fill:"gray"})})})]})]}),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 O=n.length===t.length;i(O?[]:t.map(I=>I.value))}}),"Select All"]})}),b.map(O=>jsxRuntimeExports.jsx("li",{onClick:()=>T(O),children:o&&l?jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:n.includes(O.value),onChange:()=>T(O),onClick:I=>I.stopPropagation()}),O.label]}):O.label},O.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={};/**
|
|
342
342
|
* @license React
|
|
343
343
|
* react-is.production.min.js
|
|
344
344
|
*
|