"use strict";(self["webpackChunkacctg_ui"]=self["webpackChunkacctg_ui"]||[]).push([[5143],{5836:function(a,e,t){t.d(e,{q:function(){return l}});var n=t(2262),s=t(6252),o=t(8877);function l(){const a=(0,n.iH)([{alert_container:null}]),e=(0,n.qj)({header:"",icon:null,message:null});function t(a){1===a?(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)((()=>{a.alert_container=new o.u_("#main-alert",{})})),{alertContent:e,setAlertState:t,state:a}}},9791:function(a,e,t){t.d(e,{R:function(){return l}});var n=t(8877),s=t(2262),o=t(6252);function l(){const a=(0,s.iH)([{notification_container:null}]),e=(0,s.iH)(0),t=(0,s.iH)(!0),l=(0,s.qj)({toastHeader:null,toastMessage:null});function c(){e.value=Math.floor(2*Math.random()),t.value=0!==e.value,i(e.value)}function i(a,e){0!==a?(l.toastHeader="Success",l.toastMessage=e,t.value=!0):(l.toastHeader="Failed",l.toastMessage=e,t.value=!1)}return(0,o.bv)((()=>{a.notification_container=new n.FN("#main-notification",{})})),{toastTexts:l,successIcon:t,generateRandom:c,setNotificationMessage:i,state:a}}},5143:function(a,e,t){t.r(e),t.d(e,{default:function(){return k}});var n=t(6252),s=t(2262),o=t(3577),l=t(9963);const c={class:"form-body row"},i=(0,n.uE)('<div class="row" data-v-3bbd2c8a><label for="code" class="col-md-3" data-v-3bbd2c8a>Code</label><div class="col-md-9" data-v-3bbd2c8a><input id="code" type="text" class="form-control" disabled data-v-3bbd2c8a></div></div><div class="row" data-v-3bbd2c8a><label for="desc" class="col-md-3" data-v-3bbd2c8a>Description</label><div class="col-md-9" data-v-3bbd2c8a><input id="desc" type="text" class="form-control" data-v-3bbd2c8a></div></div><div class="row" data-v-3bbd2c8a><label for="amount" class="col-md-3" data-v-3bbd2c8a>Amount</label><div class="col-md-9" data-v-3bbd2c8a><input id="amount" type="number" class="form-control" data-v-3bbd2c8a></div></div>',3),d=[i];function r(a,e){return(0,n.wg)(),(0,n.iD)("div",c,[(0,n._)("form",{onSubmit:e[0]||(e[0]=(0,l.iM)((()=>{}),["prevent"])),id:"BeginningBalanceForm"},d,32)])}var u=t(3744);const b={},m=(0,u.Z)(b,[["render",r],["__scopeId","data-v-3bbd2c8a"]]);var v=m,f=t(4707),g=t(5836),p=t(9791),_=t(5695),S=t(3810),h=t(1764);const w={class:"d-flex justify-content-between"},C=(0,n._)("h2",{class:"page-title"},"Beginning Balances",-1),B={class:"btn-container d-flex justify-content-end"},H=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",null,"Code"),(0,n._)("th",null,"Description"),(0,n._)("th",null,"Amount")])],-1);var U={__name:"BeginningBalancesPage",setup(a){const e=(0,g.q)(),t=(0,p.R)();let l=(0,s.iH)("New Beginning Balance"),c=(0,s.iH)(!0);function i(){}function d(){}const r=(0,f.S)(),u=(0,s.iH)([{data:"dateRange"},{data:"remarks"},{data:"balance"}]);function b(){e.setAlertState(1),e.state.alert_container.show()}return(a,m)=>{const f=(0,n.up)("font-awesome-icon"),g=(0,n.up)("TableContainer"),p=(0,n.up)("CardContainer"),U=(0,n.up)("SplitColumnContainers");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(U,null,{leftSide:(0,n.w5)((()=>[(0,n._)("div",w,[C,(0,n._)("div",B,[(0,n._)("button",{onClick:m[0]||(m[0]=a=>(0,s.SU)(r).collapseComponent("sideColumn")),class:(0,o.C_)(["add-btn btn btn-primary",{"d-none":(0,s.SU)(r).isSideColumnCollapsed}])},[(0,n.Wm)(f,{icon:"fa-solid fa-plus"}),(0,n.Uk)(" Add Beginning Balance ")],2)])]),(0,n.Wm)(g,{tableId:"beginningBalanceDataTable",columns:u.value,data:(0,s.SU)(_),class:"mt-3 column-alignment",style:{cursor:"pointer"}},{tableHeader:(0,n.w5)((()=>[H])),_:1},8,["columns","data"])])),rightSide:(0,n.w5)((()=>[(0,n.Wm)(p,{"card-title":(0,s.SU)(l),class:(0,o.C_)({cardToggled:(0,s.SU)(r).isSideColumnCollapsed}),"is-save-btn":(0,s.SU)(c),"is-edit-btn":!(0,s.SU)(c),"is-cancel-btn":!0,form:"BeginningBalanceForm",onResetAction:d,onCancelAction:b,onSaveAction:i},{cardBody:(0,n.w5)((()=>[(0,n.Wm)(v)])),_:1},8,["card-title","class","is-save-btn","is-edit-btn"])])),_:1}),(0,n.Wm)(S.Z,{isSuccess:(0,s.SU)(t).successIcon.value,message:(0,s.SU)(t).toastTexts.toastMessage,header:(0,s.SU)(t).toastTexts.toastHeader},null,8,["isSuccess","message","header"]),(0,n.Wm)(h.Z,{alertHeader:(0,s.SU)(e).alertContent.header,"close-btn":!0,"proceed-btn":!0},{alertBody:(0,n.w5)((()=>[(0,n.Uk)((0,o.zw)((0,s.SU)(e).alertContent.message),1)])),_:1},8,["alertHeader"])],64)}}};const y=U;var k=y},5695:function(a){a.exports=JSON.parse('[{"code":"BGBL-0001","dateRange":"January - March 2020","description":"Operations","remarks":"From Outstanding Balance in Year XXXX","balance":"P1,050,000.35"}]')}}]);
//# sourceMappingURL=5143.2858af8e.js.map