@zimyo/manage 0.3.18 → 0.3.19
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/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -3271,7 +3271,7 @@ yyyy`);var r=ep(n),i=t?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r
|
|
|
3271
3271
|
}
|
|
3272
3272
|
}
|
|
3273
3273
|
}
|
|
3274
|
-
`);const eNe=({heading:e="",className:n="",actionButtons:t=[],filters:r=T.jsx(T.Fragment,{}),level:i=3})=>T.jsxs(dt,{className:Tn(n),sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[T.jsx(dt,{children:e&&T.jsx(R9t,{level:i,children:e})}),T.jsxs(dt,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[r,t.length>0&&t.filter(o=>{var a;return(a=o.isVisible)!=null?a:!0}).map((o,a)=>T.jsx(xu,{variant:o.variant||"contained",startIcon:o.startIcon,color:o.color||"primary",endIcon:o.endIcon,size:o.size||"medium",sx:G({textTransform:"none"},o.sx||{}),onClick:o.onClick,disabled:o.disabled,children:o.label},a))]})]}),aen=e=>{const n={};return Object.entries(e).forEach(([t,r])=>{r==null||r===""||(typeof r=="object"&&"value"in r?n[t]=r.value:typeof r=="object"&&"from"in r&&"to"in r?n[t]={from:r.from.toISOString(),to:r.to.toISOString()}:n[t]=r)}),n},sen=e=>aen(e),len=()=>{var I,_,k,E,O,A,P,R,z,N,B;const e=wv(),[n,t]=V.useState({page:0,perPage:10}),i=(()=>{const F=new Date,L=F.getFullYear(),j=F.getMonth();let W,U;return j>=3?(W=new Date(L,3,1),U=new Date(L+1,2,31)):(W=new Date(L-1,3,1),U=new Date(L,2,31)),{from:W,to:U}})(),[o,a]=V.useState({from:i.from,to:i.to}),s=sen(G(G({},!!o.from&&{from_date:ki(o.from).format("YYYY-MM-DD")}),o.to&&{to_date:ki(o.to).format("YYYY-MM-DD")})),l=G({},s),{data:u,isFetching:c}=Ca(My,{url:zte,data:G({},l)},"getCustomerLedgers"),d=(_=Math.round((I=u==null?void 0:u.openingBalance)==null?void 0:I.opening_balance))!=null?_:0,f=(E=Math.round((k=u==null?void 0:u.totals)==null?void 0:k.total_debit))!=null?E:0,p=(A=Math.round((O=u==null?void 0:u.totals)==null?void 0:O.total_credit))!=null?A:0,h=(R=Math.round((P=u==null?void 0:u.totals)==null?void 0:P.total_tds))!=null?R:0,g=(B=us[(N=(z=u==null?void 0:u.totals)==null?void 0:z.customer_json)==null?void 0:N.invoice_currency])!=null?B:us[101],v=[{date:ki(o.from).format("YYYY-MM-DD"),source:"Opening Balance",transactions:"-",type:null,amount:null,opening_balance:d,tax_amount:null},...Array.isArray(u==null?void 0:u.data)?u.data:[],{date:null,source:"",transactions:"",type:"",amount:null,opening_balance:d,tax_amount:null}];let m=d;const b=v.map((F,L)=>L===0?ue(G({},F),{opening_balance:d}):(F.type==="DR"?m-=F.amount||0:F.type==="CR"&&(m+=F.amount||0),F.tax_amount&&F.tax_amount>0&&(m+=F.tax_amount),ue(G({},F),{opening_balance:m}))),x=(F,L)=>{t(j=>ue(G({},j),{[F]:L}))},{handleSubmit:C}=Cd({url:zte}),w=()=>{const F=ue(G({},l),{isDownload:1});C(F,null,L=>{di.downloadFileFromBuffer(L==null?void 0:L.data)},L=>{e((L==null?void 0:L.message)||"Error in file download, please try again or contact support")})},S=[{isVisible:!0,id:"date",accessorKey:"date",header:"Date"},{isVisible:!0,id:"source",accessorKey:"source",header:"Transactions"},{isVisible:!0,id:"transactions",accessorKey:"transactions",header:"Details",cell:F=>{var j;const L=(j=F==null?void 0:F.row)==null?void 0:j.original;return!(L!=null&&L.date)&&!(L!=null&&L.source)?T.jsx("b",{children:"Balance Due"}):L==null?void 0:L.transactions}},{isVisible:!0,id:"debit",accessorKey:"debit",header:"Debit",cell:F=>{var U,K,X;const L=(U=F==null?void 0:F.row)==null?void 0:U.original,j=(K=L==null?void 0:L.customer_json)==null?void 0:K.invoice_currency,W=us==null?void 0:us[j];return!(L!=null&&L.date)&&!(L!=null&&L.source)?f?`${g||""} ${f}`:"-":(L==null?void 0:L.type)==="DR"?`${W||""} ${(X=Math.round(L.amount))==null?void 0:X.toLocaleString()}`:"-"}},{isVisible:!0,id:"credit",accessorKey:"credit",header:"Credit",cell:F=>{var U,K,X;const L=(U=F==null?void 0:F.row)==null?void 0:U.original,j=(K=L==null?void 0:L.customer_json)==null?void 0:K.invoice_currency,W=us==null?void 0:us[j];return!(L!=null&&L.date)&&!(L!=null&&L.source)?p?`${g||""} ${p}`:"-":(L==null?void 0:L.type)==="CR"?`${W||""} ${(X=Math.round(L.amount))==null?void 0:X.toLocaleString()}`:"-"}},{isVisible:!0,id:"tax_amount",accessorKey:"tax_amount",header:"TDS",cell:F=>{var U,K;const L=(U=F==null?void 0:F.row)==null?void 0:U.original,j=(K=L==null?void 0:L.customer_json)==null?void 0:K.invoice_currency,W=us==null?void 0:us[j];return!(L!=null&&L.date)&&!(L!=null&&L.source)?h?`${g||""} ${h}`:"-":L!=null&&L.tax_amount&&L.tax_amount>0?`${W||""} ${Math.round(L.tax_amount).toLocaleString()}`:"-"}},{isVisible:!0,id:"opening_balance",accessorKey:"opening_balance",header:"Balance",cell:F=>{var K,X,Z;const L=(K=F==null?void 0:F.row)==null?void 0:K.original,j=(X=L==null?void 0:L.opening_balance)!=null?X:0,W=(Z=L==null?void 0:L.customer_json)==null?void 0:Z.invoice_currency,U=us==null?void 0:us[W];if(!(L!=null&&L.date)&&!(L!=null&&L.source)){if(j<0)return T.jsx("b",{children:`${g||""} ${Math.round(Math.abs(j)).toLocaleString()} DR`});if(j>0)return T.jsx("b",{children:`${g||""} ${Math.round(j).toLocaleString()} CR`})}return j<0?`${U||""} ${Math.round(Math.abs(j)).toLocaleString()} DR`:j>0?`${U||""} ${Math.round(j).toLocaleString()} CR`:"0"}}];return T.jsxs(dt,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[T.jsx(eNe,{filters:T.jsx(dt,{sx:{display:"flex",justifyContent:"flex-end",gap:2.5},children:T.jsx(s8t,{value:{from:o.from,to:o.to},placeholder:"pick a date range",onChange:({from:F,to:L})=>{a(j=>ue(G({},j),{from:F,to:L}))}})}),actionButtons:[{startIcon:T.jsx(p_t,{}),onClick:w,variant:"outlined",label:"Download"}]}),T.jsx(dt,{children:T.jsx(rT,{data:Array.isArray(b)?b:[],columns:S,loading:{loading:c},serverMode:!0,pagination:G({enabled:!1,totalCount:(u==null?void 0:u.totalCount)||0,onPageChange:F=>x("page",F),onPageSizeChange:F=>x("perPage",F),pageSizeOptions:[20,30,50,100]},n)})})]})},FC={LIST_VIEW:"LIST_VIEW",INVOICE_VIEW:"INVOICE_VIEW"},IB={1:"Bank Transfer",2:"UPI"},uen=()=>{const[e,n]=V.useState(FC.LIST_VIEW),[t,r]=V.useState(""),[i,o]=V.useState({page:0,perPage:20}),{data:a,isFetching:s}=Ca(My,{url:n$e,data:{page:i.page,limit:i.perPage}},"customer-subsription"),{handleSubmit:l,isDisabled:u,isLoading:c}=Cd({url:ZD}),d=(h,g=!1)=>{const v={customer_id:h==null?void 0:h.customer_id,invoice_id:h==null?void 0:h.id,isDownload:1};u||l(v,null,m=>{g?(r(`data:application/pdf;base64,${m==null?void 0:m.data.buffer64}`),n(FC.INVOICE_VIEW)):di.downloadFileFromBuffer(m==null?void 0:m.data)},null)},f=(h,g)=>{o(v=>ue(G({},v),{[h]:g}))},p=[{isVisible:!0,id:"invoice_number",accessorKey:"invoice_number",header:"Invoice Number",cell:h=>{var m;const g=(m=h==null?void 0:h.row)==null?void 0:m.original,v=g==null?void 0:g.invoice_number;return T.jsx(V.Fragment,{children:v?T.jsx("span",{onClick:()=>{d(g,!0)},className:"cursor-pointer",children:T.jsx(yz,{label:v})}):"-"})}},{isVisible:!0,id:"reference_number",accessorKey:"reference_number",header:"Reference Number"},{isVisible:!0,id:"invoice_date",accessorKey:"invoice_date",header:"Invoice Date"},{isVisible:!0,id:"invoice_due_date",accessorKey:"invoice_due_date",header:"Invoice Due Date"},{isVisible:!0,id:"description",accessorKey:"description",header:"Description"},{isVisible:!0,id:"payment_date",accessorKey:"payment_date",header:"Payment Date",cell:h=>{var m;const g=(m=h==null?void 0:h.row)==null?void 0:m.original,v=g==null?void 0:g.payment_date;return v?ki(v).format("YYYY-MM-DD"):"-"}},{isVisible:!0,id:"payment_method",accessorKey:"payment_method",header:"Payment Method",cell:h=>{var m;const g=(m=h==null?void 0:h.row)==null?void 0:m.original,v=g==null?void 0:g.payment_method;return(IB==null?void 0:IB[v])||"-"}},{isVisible:!0,id:"grand_total_amount",accessorKey:"grand_total_amount",header:"Amount",cell:h=>{var x,C;const g=(x=h==null?void 0:h.row)==null?void 0:x.original,v=g==null?void 0:g.grand_total_amount,m=(C=g==null?void 0:g.customer_json)==null?void 0:C.invoice_currency;return`${(us==null?void 0:us[m])||""} ${Math.round(Number(v))}`}}];return T.jsxs("div",{children:[T.jsx(Ed,{visible:c}),e===FC.LIST_VIEW?T.jsx("div",{style:{height:"70vh",overflow:"scroll"},children:T.jsx(rT,{loading:{loading:s},data:di.validateDataType(a==null?void 0:a.data,eo.ARRAY)?a.data:[],columns:p,pagination:ue(G({enabled:!0,pageSize:i.perPage,currentPage:i.page,totalCount:(a==null?void 0:a.totalCounts)||0},i),{onPageChange:h=>f("page",h),onPageSizeChange:h=>f("perPage",h)})})}):T.jsx(T.Fragment,{}),e===FC.INVOICE_VIEW?T.jsxs(T.Fragment,{children:[T.jsx("div",{style:{minHeight:"calc(95vh - 120px)",maxWidth:"100%",border:"1px solid lightGrey",borderRadius:"4px",display:"block"},children:T.jsx("object",{width:"100%",style:{height:"calc(95vh - 120px)"},data:t,type:"application/pdf",children:" "})}),T.jsx(ps,{sx:{position:"absolute",bottom:0,left:0,right:0,padding:"0.625rem",background:"white",zIndex:100},elevation:3,children:T.jsx(ey,{direction:"row",gap:2,justifyContent:"flex-end",children:T.jsx(xu,{title:"Back to List",size:"medium",variant:"contained",onClick:()=>n(FC.LIST_VIEW)})})})]}):T.jsx(T.Fragment,{})]})};var tNe={},vK={},mK={},Xy={},yK={},bK={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var n;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(n=e.ElementType||(e.ElementType={}));function t(r){return r.type===n.Tag||r.type===n.Script||r.type===n.Style}e.isTag=t,e.Root=n.Root,e.Text=n.Text,e.Directive=n.Directive,e.Comment=n.Comment,e.Script=n.Script,e.Style=n.Style,e.Tag=n.Tag,e.CDATA=n.CDATA,e.Doctype=n.Doctype})(bK);var $r={},Yv=ci&&ci.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),xI=ci&&ci.__assign||function(){return xI=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xI.apply(this,arguments)};Object.defineProperty($r,"__esModule",{value:!0});$r.cloneNode=$r.hasChildren=$r.isDocument=$r.isDirective=$r.isComment=$r.isText=$r.isCDATA=$r.isTag=$r.Element=$r.Document=$r.CDATA=$r.NodeWithChildren=$r.ProcessingInstruction=$r.Comment=$r.Text=$r.DataNode=$r.Node=void 0;var Bl=bK,xK=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(n){this.parent=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(n){this.prev=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(n){this.next=n},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(n){return n===void 0&&(n=!1),wK(this,n)},e}();$r.Node=xK;var iN=function(e){Yv(n,e);function n(t){var r=e.call(this)||this;return r.data=t,r}return Object.defineProperty(n.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),n}(xK);$r.DataNode=iN;var nNe=function(e){Yv(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bl.ElementType.Text,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),n}(iN);$r.Text=nNe;var rNe=function(e){Yv(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bl.ElementType.Comment,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),n}(iN);$r.Comment=rNe;var iNe=function(e){Yv(n,e);function n(t,r){var i=e.call(this,r)||this;return i.name=t,i.type=Bl.ElementType.Directive,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),n}(iN);$r.ProcessingInstruction=iNe;var oN=function(e){Yv(n,e);function n(t){var r=e.call(this)||this;return r.children=t,r}return Object.defineProperty(n.prototype,"firstChild",{get:function(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),n}(xK);$r.NodeWithChildren=oN;var oNe=function(e){Yv(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bl.ElementType.CDATA,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),n}(oN);$r.CDATA=oNe;var aNe=function(e){Yv(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bl.ElementType.Root,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),n}(oN);$r.Document=aNe;var sNe=function(e){Yv(n,e);function n(t,r,i,o){i===void 0&&(i=[]),o===void 0&&(o=t==="script"?Bl.ElementType.Script:t==="style"?Bl.ElementType.Style:Bl.ElementType.Tag);var a=e.call(this,i)||this;return a.name=t,a.attribs=r,a.type=o,a}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(r){var i,o;return{name:r,value:t.attribs[r],namespace:(i=t["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(o=t["x-attribsPrefix"])===null||o===void 0?void 0:o[r]}})},enumerable:!1,configurable:!0}),n}(oN);$r.Element=sNe;function lNe(e){return(0,Bl.isTag)(e)}$r.isTag=lNe;function uNe(e){return e.type===Bl.ElementType.CDATA}$r.isCDATA=uNe;function cNe(e){return e.type===Bl.ElementType.Text}$r.isText=cNe;function dNe(e){return e.type===Bl.ElementType.Comment}$r.isComment=dNe;function fNe(e){return e.type===Bl.ElementType.Directive}$r.isDirective=fNe;function pNe(e){return e.type===Bl.ElementType.Root}$r.isDocument=pNe;function cen(e){return Object.prototype.hasOwnProperty.call(e,"children")}$r.hasChildren=cen;function wK(e,n){n===void 0&&(n=!1);var t;if(cNe(e))t=new nNe(e.data);else if(dNe(e))t=new rNe(e.data);else if(lNe(e)){var r=n?_B(e.children):[],i=new sNe(e.name,xI({},e.attribs),r);r.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=xI({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=xI({},e["x-attribsPrefix"])),t=i}else if(uNe(e)){var r=n?_B(e.children):[],o=new oNe(r);r.forEach(function(u){return u.parent=o}),t=o}else if(pNe(e)){var r=n?_B(e.children):[],a=new aNe(r);r.forEach(function(u){return u.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),t=a}else if(fNe(e)){var s=new iNe(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),t=s}else throw new Error("Not implemented yet: ".concat(e.type));return t.startIndex=e.startIndex,t.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(t.sourceCodeLocation=e.sourceCodeLocation),t}$r.cloneNode=wK;function _B(e){for(var n=e.map(function(r){return wK(r,!0)}),t=1;t<n.length;t++)n[t].prev=n[t-1],n[t-1].next=n[t];return n}(function(e){var n=ci&&ci.__createBinding||(Object.create?function(s,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,c,d)}:function(s,l,u,c){c===void 0&&(c=u),s[c]=l[u]}),t=ci&&ci.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&n(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=bK,i=$r;t($r,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function s(l,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=o),typeof l=="object"&&(u=l,l=void 0),this.callback=l!=null?l:null,this.options=u!=null?u:o,this.elementCB=c!=null?c:null}return s.prototype.onparserinit=function(l){this.parser=l},s.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(l){this.handleCallback(l)},s.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},s.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new i.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},s.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(l);this.addNode(c),this.lastNode=c}},s.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(l,u){var c=new i.ProcessingInstruction(l,u);this.addNode(c)},s.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},s.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},s}();e.DomHandler=a,e.default=a})(yK);var hNe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(n,t){return n[t.toLowerCase()]=t,n},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(hNe);Object.defineProperty(Xy,"__esModule",{value:!0});Xy.formatAttributes=gNe;Xy.escapeSpecialCharacters=pen;Xy.revertEscapedCharacters=vNe;Xy.formatDOM=mNe;var wk=yK,rM=hNe;function den(e){return rM.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function gNe(e){for(var n={},t=0,r=e.length;t<r;t++){var i=e[t];n[i.name]=i.value}return n}function fen(e){e=e.toLowerCase();var n=den(e);return n||e}function pen(e){return e.replace(rM.CARRIAGE_RETURN_REGEX,rM.CARRIAGE_RETURN_PLACEHOLDER)}function vNe(e){return e.replace(rM.CARRIAGE_RETURN_PLACEHOLDER_REGEX,rM.CARRIAGE_RETURN)}function mNe(e,n,t){n===void 0&&(n=null);for(var r=[],i,o=0,a=e.length;o<a;o++){var s=e[o];switch(s.nodeType){case 1:{var l=fen(s.nodeName);i=new wk.Element(l,gNe(s.attributes)),i.children=mNe(l==="template"?s.content.childNodes:s.childNodes,i);break}case 3:i=new wk.Text(vNe(s.nodeValue));break;case 8:i=new wk.Comment(s.nodeValue);break;default:continue}var u=r[o-1]||null;u&&(u.next=i),i.parent=n,i.prev=u,i.next=null,r.push(i)}return t&&(i=new wk.ProcessingInstruction(t.substring(0,t.indexOf(" ")).toLowerCase(),t),i.next=r[0]||null,i.parent=n,r.unshift(i),r[1]&&(r[1].prev=r[0])),r}Object.defineProperty(mK,"__esModule",{value:!0});mK.default=yen;var hen=Xy,s1e="html",l1e="head",Ck="body",gen=/<([a-zA-Z]+[0-9]?)/,u1e=/<head[^]*>/i,c1e=/<body[^]*>/i,jD=function(e,n){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},vH=function(e,n){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d1e=typeof window=="object"&&window.DOMParser;if(typeof d1e=="function"){var ven=new d1e,men="text/html";vH=function(e,n){return n&&(e="<".concat(n,">").concat(e,"</").concat(n,">")),ven.parseFromString(e,men)},jD=vH}if(typeof document=="object"&&document.implementation){var Sk=document.implementation.createHTMLDocument();jD=function(e,n){if(n){var t=Sk.documentElement.querySelector(n);return t&&(t.innerHTML=e),Sk}return Sk.documentElement.innerHTML=e,Sk}}var Ik=typeof document=="object"&&document.createElement("template"),mH;Ik&&Ik.content&&(mH=function(e){return Ik.innerHTML=e,Ik.content.childNodes});function yen(e){var n,t;e=(0,hen.escapeSpecialCharacters)(e);var r=e.match(gen),i=r&&r[1]?r[1].toLowerCase():"";switch(i){case s1e:{var o=vH(e);if(!u1e.test(e)){var a=o.querySelector(l1e);(n=a==null?void 0:a.parentNode)===null||n===void 0||n.removeChild(a)}if(!c1e.test(e)){var a=o.querySelector(Ck);(t=a==null?void 0:a.parentNode)===null||t===void 0||t.removeChild(a)}return o.querySelectorAll(s1e)}case l1e:case Ck:{var s=jD(e).querySelectorAll(i);return c1e.test(e)&&u1e.test(e)?s[0].parentNode.childNodes:s}default:{if(mH)return mH(e);var a=jD(e,Ck).querySelector(Ck);return a.childNodes}}}var ben=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vK,"__esModule",{value:!0});vK.default=Sen;var xen=ben(mK),wen=Xy,Cen=/<(![a-zA-Z\s]+)>/;function Sen(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var n=e.match(Cen),t=n?n[1]:void 0;return(0,wen.formatDOM)((0,xen.default)(e),null,t)}var aN={},Dd={},sN={},Ien=0;sN.SAME=Ien;var _en=1;sN.CAMELCASE=_en;sN.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const yNe=0,Uv=1,lN=2,uN=3,CK=4,bNe=5,xNe=6;function Men(e){return Cs.hasOwnProperty(e)?Cs[e]:null}function pl(e,n,t,r,i,o,a){this.acceptsBooleans=n===lN||n===uN||n===CK,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=a}const Cs={},Ten=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ten.forEach(e=>{Cs[e]=new pl(e,yNe,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,n])=>{Cs[e]=new pl(e,Uv,!1,n,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Cs[e]=new pl(e,lN,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Cs[e]=new pl(e,lN,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{Cs[e]=new pl(e,uN,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Cs[e]=new pl(e,uN,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Cs[e]=new pl(e,CK,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Cs[e]=new pl(e,xNe,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Cs[e]=new pl(e,bNe,!1,e.toLowerCase(),null,!1,!1)});const SK=/[\-\:]([a-z])/g,IK=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const n=e.replace(SK,IK);Cs[n]=new pl(n,Uv,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const n=e.replace(SK,IK);Cs[n]=new pl(n,Uv,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{const n=e.replace(SK,IK);Cs[n]=new pl(n,Uv,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Cs[e]=new pl(e,Uv,!1,e.toLowerCase(),null,!1,!1)});const Aen="xlinkHref";Cs[Aen]=new pl("xlinkHref",Uv,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Cs[e]=new pl(e,Uv,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:Een,SAME:ken,possibleStandardNames:f1e}=sN,Oen=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Den=Oen+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Pen=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Den+"]*$")),Ren=Object.keys(f1e).reduce((e,n)=>{const t=f1e[n];return t===ken?e[n]=n:t===Een?e[n.toLowerCase()]=n:e[n]=t,e},{});Dd.BOOLEAN=uN;Dd.BOOLEANISH_STRING=lN;Dd.NUMERIC=bNe;Dd.OVERLOADED_BOOLEAN=CK;Dd.POSITIVE_NUMERIC=xNe;Dd.RESERVED=yNe;Dd.STRING=Uv;Dd.getPropertyInfo=Men;Dd.isCustomAttribute=Pen;Dd.possibleStandardNames=Ren;var _K={},MK={},p1e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zen=/\n/g,Nen=/^\s*/,Len=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Fen=/^:\s*/,Ben=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,jen=/^[;\s]*/,Ven=/^\s+|\s+$/g,$en=`
|
|
3274
|
+
`);const eNe=({heading:e="",className:n="",actionButtons:t=[],filters:r=T.jsx(T.Fragment,{}),level:i=3})=>T.jsxs(dt,{className:Tn(n),sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[T.jsx(dt,{children:e&&T.jsx(R9t,{level:i,children:e})}),T.jsxs(dt,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[r,t.length>0&&t.filter(o=>{var a;return(a=o.isVisible)!=null?a:!0}).map((o,a)=>T.jsx(xu,{variant:o.variant||"contained",startIcon:o.startIcon,color:o.color||"primary",endIcon:o.endIcon,size:o.size||"medium",sx:G({textTransform:"none"},o.sx||{}),onClick:o.onClick,disabled:o.disabled,children:o.label},a))]})]}),aen=e=>{const n={};return Object.entries(e).forEach(([t,r])=>{r==null||r===""||(typeof r=="object"&&"value"in r?n[t]=r.value:typeof r=="object"&&"from"in r&&"to"in r?n[t]={from:r.from.toISOString(),to:r.to.toISOString()}:n[t]=r)}),n},sen=e=>aen(e),len=()=>{var I,_,k,E,O,A,P,R,z,N,B;const e=wv(),[n,t]=V.useState({page:0,perPage:10}),i=(()=>{const F=new Date,L=F.getFullYear(),j=F.getMonth();let W,U;return j>=3?(W=new Date(L,3,1),U=new Date(L+1,2,31)):(W=new Date(L-1,3,1),U=new Date(L,2,31)),{from:W,to:U}})(),[o,a]=V.useState({from:i.from,to:i.to}),s=sen(G(G({},!!o.from&&{from_date:ki(o.from).format("YYYY-MM-DD")}),o.to&&{to_date:ki(o.to).format("YYYY-MM-DD")})),l=G({},s),{data:u,isFetching:c}=Ca(My,{url:zte,data:G({},l)},"getCustomerLedgers"),d=(_=Math.round((I=u==null?void 0:u.openingBalance)==null?void 0:I.opening_balance))!=null?_:0,f=(E=Math.round((k=u==null?void 0:u.totals)==null?void 0:k.total_debit))!=null?E:0,p=(A=Math.round((O=u==null?void 0:u.totals)==null?void 0:O.total_credit))!=null?A:0,h=(R=Math.round((P=u==null?void 0:u.totals)==null?void 0:P.total_tds))!=null?R:0,g=(B=us[(N=(z=u==null?void 0:u.totals)==null?void 0:z.customer_json)==null?void 0:N.invoice_currency])!=null?B:us[101],v=[{date:ki(o.from).format("YYYY-MM-DD"),source:"Opening Balance",transactions:"-",type:null,amount:null,opening_balance:d,tax_amount:null},...Array.isArray(u==null?void 0:u.data)?u.data:[],{date:null,source:"",transactions:"",type:"",amount:null,opening_balance:d,tax_amount:null}];let m=d;const b=v.map((F,L)=>L===0?ue(G({},F),{opening_balance:d}):(F.type==="DR"?m-=F.amount||0:F.type==="CR"&&(m+=F.amount||0),F.tax_amount&&F.tax_amount>0&&(m+=F.tax_amount),ue(G({},F),{opening_balance:m}))),x=(F,L)=>{t(j=>ue(G({},j),{[F]:L}))},{handleSubmit:C}=Cd({url:zte}),w=()=>{const F=ue(G({},l),{isDownload:1});C(F,null,L=>{di.downloadFileFromBuffer(L==null?void 0:L.data)},L=>{e((L==null?void 0:L.message)||"Error in file download, please try again or contact support")})},S=[{isVisible:!0,id:"date",accessorKey:"date",header:"Date"},{isVisible:!0,id:"source",accessorKey:"source",header:"Transactions"},{isVisible:!0,id:"transactions",accessorKey:"transactions",header:"Details",cell:F=>{var j;const L=(j=F==null?void 0:F.row)==null?void 0:j.original;return!(L!=null&&L.date)&&!(L!=null&&L.source)?T.jsx("b",{children:"Balance Due"}):L==null?void 0:L.transactions}},{isVisible:!0,id:"debit",accessorKey:"debit",header:"Debit",cell:F=>{var U,K,X;const L=(U=F==null?void 0:F.row)==null?void 0:U.original,j=(K=L==null?void 0:L.customer_json)==null?void 0:K.invoice_currency,W=us==null?void 0:us[j];return!(L!=null&&L.date)&&!(L!=null&&L.source)?f?`${g||""} ${f}`:"-":(L==null?void 0:L.type)==="DR"?`${W||""} ${(X=Math.round(L.amount))==null?void 0:X.toLocaleString()}`:"-"}},{isVisible:!0,id:"credit",accessorKey:"credit",header:"Credit",cell:F=>{var U,K,X;const L=(U=F==null?void 0:F.row)==null?void 0:U.original,j=(K=L==null?void 0:L.customer_json)==null?void 0:K.invoice_currency,W=us==null?void 0:us[j];return!(L!=null&&L.date)&&!(L!=null&&L.source)?p?`${g||""} ${p}`:"-":(L==null?void 0:L.type)==="CR"?`${W||""} ${(X=Math.round(L.amount))==null?void 0:X.toLocaleString()}`:"-"}},{isVisible:!0,id:"tax_amount",accessorKey:"tax_amount",header:"TDS",cell:F=>{var U,K;const L=(U=F==null?void 0:F.row)==null?void 0:U.original,j=(K=L==null?void 0:L.customer_json)==null?void 0:K.invoice_currency,W=us==null?void 0:us[j];return!(L!=null&&L.date)&&!(L!=null&&L.source)?h?`${g||""} ${h}`:"-":L!=null&&L.tax_amount&&L.tax_amount>0?`${W||""} ${Math.round(L.tax_amount).toLocaleString()}`:"-"}},{isVisible:!0,id:"opening_balance",accessorKey:"opening_balance",header:"Balance",cell:F=>{var K,X,Z;const L=(K=F==null?void 0:F.row)==null?void 0:K.original,j=(X=L==null?void 0:L.opening_balance)!=null?X:0,W=(Z=L==null?void 0:L.customer_json)==null?void 0:Z.invoice_currency,U=us==null?void 0:us[W];if(!(L!=null&&L.date)&&!(L!=null&&L.source)){if(j<0)return T.jsx("b",{children:`${g||""} ${Math.round(Math.abs(j)).toLocaleString()} DR`});if(j>0)return T.jsx("b",{children:`${g||""} ${Math.round(j).toLocaleString()} CR`})}return j<0?`${U||""} ${Math.round(Math.abs(j)).toLocaleString()} DR`:j>0?`${U||""} ${Math.round(j).toLocaleString()} CR`:"0"}}];return T.jsxs(dt,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[T.jsx(eNe,{filters:T.jsx(dt,{sx:{display:"flex",justifyContent:"flex-end",gap:2.5},children:T.jsx(s8t,{value:{from:o.from,to:o.to},placeholder:"pick a date range",onChange:({from:F,to:L})=>{a(j=>ue(G({},j),{from:F,to:L}))}})}),actionButtons:[{startIcon:T.jsx(p_t,{}),onClick:w,variant:"outlined",label:"Download"}]}),T.jsx(dt,{children:T.jsx(rT,{data:Array.isArray(b)?b:[],columns:S,loading:{loading:c},serverMode:!0,pagination:G({enabled:!1,totalCount:(u==null?void 0:u.totalCount)||0,onPageChange:F=>x("page",F),onPageSizeChange:F=>x("perPage",F),pageSizeOptions:[20,30,50,100]},n)})})]})},FC={LIST_VIEW:"LIST_VIEW",INVOICE_VIEW:"INVOICE_VIEW"},IB={1:"Bank Transfer",2:"UPI"},uen=()=>{const[e,n]=V.useState(FC.LIST_VIEW),[t,r]=V.useState(""),[i,o]=V.useState({page:0,perPage:20}),{data:a,isFetching:s}=Ca(My,{url:n$e,data:{page:i.page,limit:i.perPage}},"customer-subsription"),{handleSubmit:l,isDisabled:u,isLoading:c}=Cd({url:ZD}),d=(h,g=!1)=>{const v={customer_id:h==null?void 0:h.customer_id,invoice_id:h==null?void 0:h.id,isDownload:1};u||l(v,null,m=>{g?(r(`data:application/pdf;base64,${m==null?void 0:m.data.buffer64}`),n(FC.INVOICE_VIEW)):di.downloadFileFromBuffer(m==null?void 0:m.data)},null)},f=(h,g)=>{o(v=>ue(G({},v),{[h]:g}))},p=[{isVisible:!0,id:"invoice_number",accessorKey:"invoice_number",header:"Invoice Number",cell:h=>{var m;const g=(m=h==null?void 0:h.row)==null?void 0:m.original,v=g==null?void 0:g.invoice_number;return T.jsx(V.Fragment,{children:v?T.jsx("span",{onClick:()=>{d(g,!0)},className:"cursor-pointer",children:T.jsx(yz,{label:v})}):"-"})}},{isVisible:!0,id:"reference_number",accessorKey:"reference_number",header:"Reference Number"},{isVisible:!0,id:"invoice_date",accessorKey:"invoice_date",header:"Invoice Date"},{isVisible:!0,id:"invoice_due_date",accessorKey:"invoice_due_date",header:"Invoice Due Date"},{isVisible:!0,id:"description",accessorKey:"description",header:"Description"},{isVisible:!0,id:"payment_date",accessorKey:"payment_date",header:"Payment Date",cell:h=>{var m;const g=(m=h==null?void 0:h.row)==null?void 0:m.original,v=g==null?void 0:g.payment_date;return v?ki(v).format("YYYY-MM-DD"):"-"}},{isVisible:!0,id:"payment_method",accessorKey:"payment_method",header:"Payment Method",cell:h=>{var m;const g=(m=h==null?void 0:h.row)==null?void 0:m.original,v=g==null?void 0:g.payment_method;return(IB==null?void 0:IB[v])||"-"}},{isVisible:!0,id:"grand_total_amount",accessorKey:"grand_total_amount",header:"Amount",cell:h=>{var x,C;const g=(x=h==null?void 0:h.row)==null?void 0:x.original,v=g==null?void 0:g.grand_total_amount,m=(C=g==null?void 0:g.customer_json)==null?void 0:C.invoice_currency;return`${(us==null?void 0:us[m])||""} ${Math.round(Number(v))}`}}];return T.jsxs("div",{children:[T.jsx(Ed,{visible:c}),e===FC.LIST_VIEW?T.jsx("div",{style:{height:"80vh",overflow:"scroll"},children:T.jsx(rT,{loading:{loading:s},data:di.validateDataType(a==null?void 0:a.data,eo.ARRAY)?a.data:[],columns:p,pagination:ue(G({enabled:!0,pageSize:i.perPage,currentPage:i.page,totalCount:(a==null?void 0:a.totalCounts)||0},i),{onPageChange:h=>f("page",h),onPageSizeChange:h=>f("perPage",h)})})}):T.jsx(T.Fragment,{}),e===FC.INVOICE_VIEW?T.jsxs(T.Fragment,{children:[T.jsx("div",{style:{minHeight:"calc(95vh - 120px)",maxWidth:"100%",border:"1px solid lightGrey",borderRadius:"4px",display:"block"},children:T.jsx("object",{width:"100%",style:{height:"calc(95vh - 120px)"},data:t,type:"application/pdf",children:" "})}),T.jsx(ps,{sx:{position:"absolute",bottom:0,left:0,right:0,padding:"0.625rem",background:"white",zIndex:100},elevation:3,children:T.jsx(ey,{direction:"row",gap:2,justifyContent:"flex-end",children:T.jsx(xu,{title:"Back to List",size:"medium",variant:"contained",onClick:()=>n(FC.LIST_VIEW)})})})]}):T.jsx(T.Fragment,{})]})};var tNe={},vK={},mK={},Xy={},yK={},bK={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var n;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(n=e.ElementType||(e.ElementType={}));function t(r){return r.type===n.Tag||r.type===n.Script||r.type===n.Style}e.isTag=t,e.Root=n.Root,e.Text=n.Text,e.Directive=n.Directive,e.Comment=n.Comment,e.Script=n.Script,e.Style=n.Style,e.Tag=n.Tag,e.CDATA=n.CDATA,e.Doctype=n.Doctype})(bK);var $r={},Yv=ci&&ci.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),xI=ci&&ci.__assign||function(){return xI=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xI.apply(this,arguments)};Object.defineProperty($r,"__esModule",{value:!0});$r.cloneNode=$r.hasChildren=$r.isDocument=$r.isDirective=$r.isComment=$r.isText=$r.isCDATA=$r.isTag=$r.Element=$r.Document=$r.CDATA=$r.NodeWithChildren=$r.ProcessingInstruction=$r.Comment=$r.Text=$r.DataNode=$r.Node=void 0;var Bl=bK,xK=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(n){this.parent=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(n){this.prev=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(n){this.next=n},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(n){return n===void 0&&(n=!1),wK(this,n)},e}();$r.Node=xK;var iN=function(e){Yv(n,e);function n(t){var r=e.call(this)||this;return r.data=t,r}return Object.defineProperty(n.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),n}(xK);$r.DataNode=iN;var nNe=function(e){Yv(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bl.ElementType.Text,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),n}(iN);$r.Text=nNe;var rNe=function(e){Yv(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bl.ElementType.Comment,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),n}(iN);$r.Comment=rNe;var iNe=function(e){Yv(n,e);function n(t,r){var i=e.call(this,r)||this;return i.name=t,i.type=Bl.ElementType.Directive,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),n}(iN);$r.ProcessingInstruction=iNe;var oN=function(e){Yv(n,e);function n(t){var r=e.call(this)||this;return r.children=t,r}return Object.defineProperty(n.prototype,"firstChild",{get:function(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),n}(xK);$r.NodeWithChildren=oN;var oNe=function(e){Yv(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bl.ElementType.CDATA,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),n}(oN);$r.CDATA=oNe;var aNe=function(e){Yv(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bl.ElementType.Root,t}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),n}(oN);$r.Document=aNe;var sNe=function(e){Yv(n,e);function n(t,r,i,o){i===void 0&&(i=[]),o===void 0&&(o=t==="script"?Bl.ElementType.Script:t==="style"?Bl.ElementType.Style:Bl.ElementType.Tag);var a=e.call(this,i)||this;return a.name=t,a.attribs=r,a.type=o,a}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(r){var i,o;return{name:r,value:t.attribs[r],namespace:(i=t["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(o=t["x-attribsPrefix"])===null||o===void 0?void 0:o[r]}})},enumerable:!1,configurable:!0}),n}(oN);$r.Element=sNe;function lNe(e){return(0,Bl.isTag)(e)}$r.isTag=lNe;function uNe(e){return e.type===Bl.ElementType.CDATA}$r.isCDATA=uNe;function cNe(e){return e.type===Bl.ElementType.Text}$r.isText=cNe;function dNe(e){return e.type===Bl.ElementType.Comment}$r.isComment=dNe;function fNe(e){return e.type===Bl.ElementType.Directive}$r.isDirective=fNe;function pNe(e){return e.type===Bl.ElementType.Root}$r.isDocument=pNe;function cen(e){return Object.prototype.hasOwnProperty.call(e,"children")}$r.hasChildren=cen;function wK(e,n){n===void 0&&(n=!1);var t;if(cNe(e))t=new nNe(e.data);else if(dNe(e))t=new rNe(e.data);else if(lNe(e)){var r=n?_B(e.children):[],i=new sNe(e.name,xI({},e.attribs),r);r.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=xI({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=xI({},e["x-attribsPrefix"])),t=i}else if(uNe(e)){var r=n?_B(e.children):[],o=new oNe(r);r.forEach(function(u){return u.parent=o}),t=o}else if(pNe(e)){var r=n?_B(e.children):[],a=new aNe(r);r.forEach(function(u){return u.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),t=a}else if(fNe(e)){var s=new iNe(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),t=s}else throw new Error("Not implemented yet: ".concat(e.type));return t.startIndex=e.startIndex,t.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(t.sourceCodeLocation=e.sourceCodeLocation),t}$r.cloneNode=wK;function _B(e){for(var n=e.map(function(r){return wK(r,!0)}),t=1;t<n.length;t++)n[t].prev=n[t-1],n[t-1].next=n[t];return n}(function(e){var n=ci&&ci.__createBinding||(Object.create?function(s,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,c,d)}:function(s,l,u,c){c===void 0&&(c=u),s[c]=l[u]}),t=ci&&ci.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&n(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=bK,i=$r;t($r,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function s(l,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=o),typeof l=="object"&&(u=l,l=void 0),this.callback=l!=null?l:null,this.options=u!=null?u:o,this.elementCB=c!=null?c:null}return s.prototype.onparserinit=function(l){this.parser=l},s.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(l){this.handleCallback(l)},s.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},s.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new i.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},s.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(l);this.addNode(c),this.lastNode=c}},s.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(l,u){var c=new i.ProcessingInstruction(l,u);this.addNode(c)},s.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},s.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},s}();e.DomHandler=a,e.default=a})(yK);var hNe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(n,t){return n[t.toLowerCase()]=t,n},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(hNe);Object.defineProperty(Xy,"__esModule",{value:!0});Xy.formatAttributes=gNe;Xy.escapeSpecialCharacters=pen;Xy.revertEscapedCharacters=vNe;Xy.formatDOM=mNe;var wk=yK,rM=hNe;function den(e){return rM.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function gNe(e){for(var n={},t=0,r=e.length;t<r;t++){var i=e[t];n[i.name]=i.value}return n}function fen(e){e=e.toLowerCase();var n=den(e);return n||e}function pen(e){return e.replace(rM.CARRIAGE_RETURN_REGEX,rM.CARRIAGE_RETURN_PLACEHOLDER)}function vNe(e){return e.replace(rM.CARRIAGE_RETURN_PLACEHOLDER_REGEX,rM.CARRIAGE_RETURN)}function mNe(e,n,t){n===void 0&&(n=null);for(var r=[],i,o=0,a=e.length;o<a;o++){var s=e[o];switch(s.nodeType){case 1:{var l=fen(s.nodeName);i=new wk.Element(l,gNe(s.attributes)),i.children=mNe(l==="template"?s.content.childNodes:s.childNodes,i);break}case 3:i=new wk.Text(vNe(s.nodeValue));break;case 8:i=new wk.Comment(s.nodeValue);break;default:continue}var u=r[o-1]||null;u&&(u.next=i),i.parent=n,i.prev=u,i.next=null,r.push(i)}return t&&(i=new wk.ProcessingInstruction(t.substring(0,t.indexOf(" ")).toLowerCase(),t),i.next=r[0]||null,i.parent=n,r.unshift(i),r[1]&&(r[1].prev=r[0])),r}Object.defineProperty(mK,"__esModule",{value:!0});mK.default=yen;var hen=Xy,s1e="html",l1e="head",Ck="body",gen=/<([a-zA-Z]+[0-9]?)/,u1e=/<head[^]*>/i,c1e=/<body[^]*>/i,jD=function(e,n){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},vH=function(e,n){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d1e=typeof window=="object"&&window.DOMParser;if(typeof d1e=="function"){var ven=new d1e,men="text/html";vH=function(e,n){return n&&(e="<".concat(n,">").concat(e,"</").concat(n,">")),ven.parseFromString(e,men)},jD=vH}if(typeof document=="object"&&document.implementation){var Sk=document.implementation.createHTMLDocument();jD=function(e,n){if(n){var t=Sk.documentElement.querySelector(n);return t&&(t.innerHTML=e),Sk}return Sk.documentElement.innerHTML=e,Sk}}var Ik=typeof document=="object"&&document.createElement("template"),mH;Ik&&Ik.content&&(mH=function(e){return Ik.innerHTML=e,Ik.content.childNodes});function yen(e){var n,t;e=(0,hen.escapeSpecialCharacters)(e);var r=e.match(gen),i=r&&r[1]?r[1].toLowerCase():"";switch(i){case s1e:{var o=vH(e);if(!u1e.test(e)){var a=o.querySelector(l1e);(n=a==null?void 0:a.parentNode)===null||n===void 0||n.removeChild(a)}if(!c1e.test(e)){var a=o.querySelector(Ck);(t=a==null?void 0:a.parentNode)===null||t===void 0||t.removeChild(a)}return o.querySelectorAll(s1e)}case l1e:case Ck:{var s=jD(e).querySelectorAll(i);return c1e.test(e)&&u1e.test(e)?s[0].parentNode.childNodes:s}default:{if(mH)return mH(e);var a=jD(e,Ck).querySelector(Ck);return a.childNodes}}}var ben=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vK,"__esModule",{value:!0});vK.default=Sen;var xen=ben(mK),wen=Xy,Cen=/<(![a-zA-Z\s]+)>/;function Sen(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var n=e.match(Cen),t=n?n[1]:void 0;return(0,wen.formatDOM)((0,xen.default)(e),null,t)}var aN={},Dd={},sN={},Ien=0;sN.SAME=Ien;var _en=1;sN.CAMELCASE=_en;sN.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const yNe=0,Uv=1,lN=2,uN=3,CK=4,bNe=5,xNe=6;function Men(e){return Cs.hasOwnProperty(e)?Cs[e]:null}function pl(e,n,t,r,i,o,a){this.acceptsBooleans=n===lN||n===uN||n===CK,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=a}const Cs={},Ten=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ten.forEach(e=>{Cs[e]=new pl(e,yNe,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,n])=>{Cs[e]=new pl(e,Uv,!1,n,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Cs[e]=new pl(e,lN,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Cs[e]=new pl(e,lN,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{Cs[e]=new pl(e,uN,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Cs[e]=new pl(e,uN,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Cs[e]=new pl(e,CK,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Cs[e]=new pl(e,xNe,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Cs[e]=new pl(e,bNe,!1,e.toLowerCase(),null,!1,!1)});const SK=/[\-\:]([a-z])/g,IK=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const n=e.replace(SK,IK);Cs[n]=new pl(n,Uv,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const n=e.replace(SK,IK);Cs[n]=new pl(n,Uv,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{const n=e.replace(SK,IK);Cs[n]=new pl(n,Uv,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Cs[e]=new pl(e,Uv,!1,e.toLowerCase(),null,!1,!1)});const Aen="xlinkHref";Cs[Aen]=new pl("xlinkHref",Uv,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Cs[e]=new pl(e,Uv,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:Een,SAME:ken,possibleStandardNames:f1e}=sN,Oen=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Den=Oen+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Pen=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Den+"]*$")),Ren=Object.keys(f1e).reduce((e,n)=>{const t=f1e[n];return t===ken?e[n]=n:t===Een?e[n.toLowerCase()]=n:e[n]=t,e},{});Dd.BOOLEAN=uN;Dd.BOOLEANISH_STRING=lN;Dd.NUMERIC=bNe;Dd.OVERLOADED_BOOLEAN=CK;Dd.POSITIVE_NUMERIC=xNe;Dd.RESERVED=yNe;Dd.STRING=Uv;Dd.getPropertyInfo=Men;Dd.isCustomAttribute=Pen;Dd.possibleStandardNames=Ren;var _K={},MK={},p1e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zen=/\n/g,Nen=/^\s*/,Len=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Fen=/^:\s*/,Ben=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,jen=/^[;\s]*/,Ven=/^\s+|\s+$/g,$en=`
|
|
3275
3275
|
`,h1e="/",g1e="*",o0="",Gen="comment",Wen="declaration",Hen=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(h){var g=h.match(zen);g&&(t+=g.length);var v=h.lastIndexOf($en);r=~v?h.length-v:r+h.length}function o(){var h={line:t,column:r};return function(g){return g.position=new a(h),u(),g}}function a(h){this.start=h,this.end={line:t,column:r},this.source=n.source}a.prototype.content=e;function s(h){var g=new Error(n.source+":"+t+":"+r+": "+h);if(g.reason=h,g.filename=n.source,g.line=t,g.column=r,g.source=e,!n.silent)throw g}function l(h){var g=h.exec(e);if(g){var v=g[0];return i(v),e=e.slice(v.length),g}}function u(){l(Nen)}function c(h){var g;for(h=h||[];g=d();)g!==!1&&h.push(g);return h}function d(){var h=o();if(!(h1e!=e.charAt(0)||g1e!=e.charAt(1))){for(var g=2;o0!=e.charAt(g)&&(g1e!=e.charAt(g)||h1e!=e.charAt(g+1));)++g;if(g+=2,o0===e.charAt(g-1))return s("End of comment missing");var v=e.slice(2,g-2);return r+=2,i(v),e=e.slice(g),r+=2,h({type:Gen,comment:v})}}function f(){var h=o(),g=l(Len);if(g){if(d(),!l(Fen))return s("property missing ':'");var v=l(Ben),m=h({type:Wen,property:v1e(g[0].replace(p1e,o0)),value:v?v1e(v[0].replace(p1e,o0)):o0});return l(jen),m}}function p(){var h=[];c(h);for(var g;g=f();)g!==!1&&(h.push(g),c(h));return h}return u(),p()};function v1e(e){return e?e.replace(Ven,o0):o0}var Yen=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MK,"__esModule",{value:!0});MK.default=Xen;const Uen=Yen(Hen);function Xen(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,Uen.default)(e),i=typeof n=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:a,value:s}=o;i?n(a,s,o):s&&(t=t||{},t[a]=s)}),t}var cN={};Object.defineProperty(cN,"__esModule",{value:!0});cN.camelCase=void 0;var Zen=/^--[a-zA-Z0-9_-]+$/,qen=/-([a-z])/g,Jen=/^[^-]+$/,Ken=/^-(webkit|moz|ms|o|khtml)-/,Qen=/^-(ms)-/,etn=function(e){return!e||Jen.test(e)||Zen.test(e)},ttn=function(e,n){return n.toUpperCase()},m1e=function(e,n){return"".concat(n,"-")},ntn=function(e,n){return n===void 0&&(n={}),etn(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Qen,m1e):e=e.replace(Ken,m1e),e.replace(qen,ttn))};cN.camelCase=ntn;var rtn=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},itn=rtn(MK),otn=cN;function yH(e,n){var t={};return!e||typeof e!="string"||(0,itn.default)(e,function(r,i){r&&i&&(t[(0,otn.camelCase)(r,n)]=i)}),t}yH.default=yH;var atn=yH;(function(e){var n=ci&&ci.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=o,e.setStyleProp=s;var t=V,r=n(atn),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(c,d){return c.includes("-")?!i.has(c):!!(d&&typeof d.is=="string")}var a={reactCompat:!0};function s(c,d){if(typeof c=="string"){if(!c.trim()){d.style={};return}try{d.style=(0,r.default)(c,a)}catch(f){d.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(t.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var l=function(c){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name)};e.canTextBeChildOfNode=l;var u=function(c){return c};e.returnFirstArg=u})(_K);Object.defineProperty(aN,"__esModule",{value:!0});aN.default=ctn;var MS=Dd,y1e=_K,stn=["checked","value"],ltn=["input","select","textarea"],utn={reset:!0,submit:!0};function ctn(e,n){e===void 0&&(e={});var t={},r=!!(e.type&&utn[e.type]);for(var i in e){var o=e[i];if((0,MS.isCustomAttribute)(i)){t[i]=o;continue}var a=i.toLowerCase(),s=b1e(a);if(s){var l=(0,MS.getPropertyInfo)(s);switch(stn.includes(s)&<n.includes(n)&&!r&&(s=b1e("default"+a)),t[s]=o,l&&l.type){case MS.BOOLEAN:t[s]=!0;break;case MS.OVERLOADED_BOOLEAN:o===""&&(t[s]=!0);break}continue}y1e.PRESERVE_CUSTOM_ATTRIBUTES&&(t[i]=o)}return(0,y1e.setStyleProp)(e.style,t),t}function b1e(e){return MS.possibleStandardNames[e]}var TK={},dtn=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TK,"__esModule",{value:!0});TK.default=wNe;var MB=V,ftn=dtn(aN),wI=_K,ptn={cloneElement:MB.cloneElement,createElement:MB.createElement,isValidElement:MB.isValidElement};function wNe(e,n){n===void 0&&(n={});for(var t=[],r=typeof n.replace=="function",i=n.transform||wI.returnFirstArg,o=n.library||ptn,a=o.cloneElement,s=o.createElement,l=o.isValidElement,u=e.length,c=0;c<u;c++){var d=e[c];if(r){var f=n.replace(d,c);if(l(f)){u>1&&(f=a(f,{key:f.key||c})),t.push(i(f,d,c));continue}}if(d.type==="text"){var p=!d.data.trim().length;if(p&&d.parent&&!(0,wI.canTextBeChildOfNode)(d.parent)||n.trim&&p)continue;t.push(i(d.data,d,c));continue}var h=d,g={};htn(h)?((0,wI.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,ftn.default)(h.attribs,h.name));var v=void 0;switch(d.type){case"script":case"style":d.children[0]&&(g.dangerouslySetInnerHTML={__html:d.children[0].data});break;case"tag":d.name==="textarea"&&d.children[0]?g.defaultValue=d.children[0].data:d.children&&d.children.length&&(v=wNe(d.children,n));break;default:continue}u>1&&(g.key=c),t.push(i(s(d.name,g,v),d,c))}return t.length===1?t[0]:t}function htn(e){return wI.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,wI.isCustomComponent)(e.name,e.attribs)}(function(e){var n=ci&&ci.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=s;var t=n(vK);e.htmlToDOM=t.default;var r=n(aN);e.attributesToProps=r.default;var i=n(TK);e.domToReact=i.default;var o=yK;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return o.Text}});var a={lowerCaseAttributeNames:!1};function s(l,u){if(typeof l!="string")throw new TypeError("First argument must be a string");return l?(0,i.default)((0,t.default)(l,(u==null?void 0:u.htmlparser2)||a),u):[]}})(tNe);const x1e=Md(tNe),gtn=x1e.default||x1e,vtn=()=>{const e=[{id:1,title:"Core HR Updates",author:"Product Team",date:"Oct 24, 2025",excerpt:"We've introduced several enhancements to improve flexibility, visibility, and control within the Core HR module.",description:`<!DOCTYPE html>
|
|
3276
3276
|
<html>
|
|
3277
3277
|
<head>
|
package/dist/main.js
CHANGED
|
@@ -145143,7 +145143,7 @@ const mNe = ({
|
|
|
145143
145143
|
];
|
|
145144
145144
|
return /* @__PURE__ */ T.jsxs("div", { children: [
|
|
145145
145145
|
/* @__PURE__ */ T.jsx(Nd, { visible: c }),
|
|
145146
|
-
e === ZC.LIST_VIEW ? /* @__PURE__ */ T.jsx("div", { style: { height: "
|
|
145146
|
+
e === ZC.LIST_VIEW ? /* @__PURE__ */ T.jsx("div", { style: { height: "80vh", overflow: "scroll" }, children: /* @__PURE__ */ T.jsx(
|
|
145147
145147
|
gT,
|
|
145148
145148
|
{
|
|
145149
145149
|
loading: { loading: s },
|