"use strict";(self["webpackChunkacctg_ui"]=self["webpackChunkacctg_ui"]||[]).push([[4413],{5836:function(t,e,a){a.d(e,{q:function(){return r}});var n=a(2262),s=a(6252),o=a(8877);function r(){const t=(0,n.iH)([{alert_container:null}]),e=(0,n.qj)({header:"",icon:null,message:null});function a(t){1===t?(e.header="You have unsaved changes!",e.message="You will lose all changes you made. Are you sure you wish to close?"):alert("Undefined modal scope")}return(0,s.bv)((()=>{t.alert_container=new o.u_("#main-alert",{})})),{alertContent:e,setAlertState:a,state:t}}},9791:function(t,e,a){a.d(e,{R:function(){return r}});var n=a(8877),s=a(2262),o=a(6252);function r(){const t=(0,s.iH)([{notification_container:null}]),e=(0,s.iH)(0),a=(0,s.iH)(!0),r=(0,s.qj)({toastHeader:null,toastMessage:null});function i(){e.value=Math.floor(2*Math.random()),a.value=0!==e.value,u(e.value)}function u(t,e){0!==t?(r.toastHeader="Success",r.toastMessage=e,a.value=!0):(r.toastHeader="Failed",r.toastMessage=e,a.value=!1)}return(0,o.bv)((()=>{t.notification_container=new n.FN("#main-notification",{})})),{toastTexts:r,successIcon:a,generateRandom:i,setNotificationMessage:u,state:t}}},432:function(t,e,a){a.r(e),a.d(e,{default:function(){return _}});a(560);var n=a(6252),s=a(2262),o=a(5113),r=a(4707),i=a(5836),u=a(9791),c=a(2201);const l={class:"p-3"},d={class:"d-flex justify-content-between"},p=(0,n._)("h2",{class:"page-title"},"Edit Particulars",-1),m={class:"btn-container d-flex justify-content-end"},f=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",null,"Transaction Date"),(0,n._)("th",null,"Voucher No."),(0,n._)("th",null,"Particulars"),(0,n._)("th",null,"Total Amount")])],-1);var h={__name:"EditParticularsList",props:["header"],setup(t){const e=(0,c.tv)(),a=((0,r.S)(),(0,i.q)()),h=(0,u.R)(),v=()=>{e.push({name:"editParticularForm"})},_=o,g=[{data:"transactionDate"},{data:"voucherNo"},{data:null,render:(t,e,a,n)=>`<span class="fs-5">${t.description}</span><br /><span>${t.suppliersName}</span>`},{data:"totalAmount"}];return(t,e)=>{const o=(0,n.up)("font-awesome-icon"),r=(0,n.up)("TableContainer"),i=(0,n.up)("Notification"),u=(0,n.up)("AlertContainer");return(0,n.wg)(),(0,n.iD)("div",l,[(0,n._)("div",null,[(0,n._)("div",d,[p,(0,n._)("div",m,[(0,n._)("button",{class:"add-btn btn btn-primary",onClick:v},[(0,n.Wm)(o,{icon:"fa-solid fa-plus"}),(0,n.Uk)(" Add Edit Particular ")])])]),(0,n.Wm)(r,{columns:g,data:(0,s.SU)(_),class:"mt-3"},{tableHeader:(0,n.w5)((()=>[f])),_:1},8,["data"])]),(0,n.Wm)(i,{isSuccess:(0,s.SU)(h).successIcon.value,message:(0,s.SU)(h).toastTexts.toastMessage,header:(0,s.SU)(h).toastTexts.toastHeader},null,8,["isSuccess","message","header"]),(0,n.Wm)(u,{alertHeader:(0,s.SU)(a).alertContent.header,"close-btn":!0,"proceed-btn":!0},null,8,["alertHeader"])])}}};const v=h;var _=v},5113:function(t){t.exports=JSON.parse('[{"transactionDate":"21-Jan-2023","voucherNo":"V0001","description":"Accounting","suppliersName":"Something","totalAmount":"$200,000"},{"transactionDate":"24-May-2023","voucherNo":"V0002","description":"Accounting","suppliersName":"Shiva","totalAmount":"$2,000"},{"transactionDate":"15-Feb-2023","voucherNo":"V0003","description":"Database Services","suppliersName":"Oracle","totalAmount":"$2,000"},{"transactionDate":"24-Mar-2023","voucherNo":"V0004","description":"Furniture","suppliersName":"IKEA","totalAmount":"$2,000"}]')}}]);
//# sourceMappingURL=4413.0f5080e7.js.map