PageSourceSearch

https://alimdaad.co.uk/js/1055.ab7cebe9.js

js alimdaad.co.uk collected 2026-10-04 02:07:26 UTC 7,904 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkalimdaadweb"]=self["webpackChunkalimdaadweb"]||[]).push([[1055],{21055:(e,t,o)=>{o.r(t),o.d(t,{default:()=>z});var l=o(20641),s=o(90033),d=o(53751);const i={class:"row m-0 abs"},n={class:"col-12"},r={class:"row"},a={class:"col-12 col-md-6 mb-2"},c={class:"col-12 col-md-6 mb-2"},u={class:"col-12 col-md-6 mb-2"},b={class:"col-12 bold smallheading my-4"},p={key:0,class:"col-12 my-4"},m={key:1,class:"col-12 my-4"},h={key:0,class:"row"},y={class:"col-12"},v={class:"row d-none d-md-flex align-items-center"},k={class:"col"},C={class:"row"},D={class:"col-12 bold mb-1"},A={class:"col-12 font12"},F={class:"col-auto text-end bold p-0"},g={class:"col-auto text-end bold"},E={class:"col-auto text-end bold p-0"},L={class:"row d-md-none"},T={class:"col"},f={class:"row"},w={class:"col-12 bold mb-1"},_={class:"col-12 font12"},x={class:"col-12 bold mt-2"},B={class:"col-auto text-end bold p-0"},S={class:"col-auto text-end bold p-0"};function V(e,t,o,V,I,K){const $=(0,l.g2)("TextField"),X=(0,l.g2)("SelectAll"),z=(0,l.g2)("CurrencyField"),O=(0,l.g2)("IconArrowForward"),R=(0,l.g2)("CustomButtonComponent"),U=(0,l.g2)("IconEdit"),G=(0,l.g2)("ios-trash-icon"),M=(0,l.g2)("Alert");return(0,l.uX)(),(0,l.CE)("div",i,[(0,l.Lk)("div",n,[(0,l.Lk)("div",r,[t[3]||(t[3]=(0,l.Lk)("div",{class:"col-12 bold smallheading my-4"}," Add Debtors ",-1)),(0,l.Lk)("div",a,[(0,l.bF)($,{type:"text",color:"gold",placeholder:"Description",modelValue:I.debtor.description,"onUpdate:modelValue":t[0]||(t[0]=e=>I.debtor.description=e),id:"description",label:"Description:"},null,8,["modelValue"])]),(0,l.Lk)("div",c,[(0,l.bF)(X,{modelValue:I.debtor.type,"onUpdate:modelValue":t[1]||(t[1]=e=>I.debtor.type=e),id:"type",options:I.debtorsTypes,displayValue:"description",placeholder:"debtorAssets Type",color:"gold",label:"Select Type Of debtorAssets:",width:"full",goUp:!0},null,8,["modelValue","options"])]),(0,l.Lk)("div",u,[(0,l.bF)(z,{type:"text",placeholder:"0.00",id:"amount",color:"gold",modelValue:I.debtor.total,"onUpdate:modelValue":t[2]||(t[2]=e=>I.debtor.total=e),currencySymbol:I.defaultCurrency,label:"Enter Amount:"},null,8,["modelValue","currencySymbol"])]),(0,l.Lk)("div",b," Total: "+(0,s.v_)(I.defaultCurrency)+(0,s.v_)(parseFloat(Math.round(100*K.calculatedAmount)/100).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g," ")),1),I.isEdit?((0,l.uX)(),(0,l.CE)("div",p,[(0,l.bF)(R,{color:"green",btnText:"Update",icon:"arrow",onButtonClicked:K.update,class:"mb-1"},{default:(0,l.k6)((()=>[(0,l.bF)(O,{color:"gold"})])),_:1},8,["onButtonClicked"]),(0,l.bF)(R,{color:"transparent",btnText:"Cancel",onButtonClicked:K.cancel,class:"mb-1 ms-3"},null,8,["onButtonClicked"])])):((0,l.uX)(),(0,l.CE)("div",m,[(0,l.bF)(R,{color:"green",btnText:"Save",icon:"arrow",onButtonClicked:K.save,class:"mb-1",disabled:I.debtor.total<.01},{default:(0,l.k6)((()=>[(0,l.bF)(O,{color:"gold"})])),_:1},8,["onButtonClicked","disabled"])]))]),e.debtorAssets.length>0?((0,l.uX)(),(0,l.CE)("div",h,t[4]||(t[4]=[(0,l.Lk)("div",{class:"col-12 bold smallheading my-4"}," Debtors ",-1)]))):(0,l.Q3)("",!0),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.debtorAssets,((e,t)=>((0,l.uX)(),(0,l.CE)("div",{class:"row py-2 border-bottom align-items-center",key:t},[(0,l.Lk)("div",y,[(0,l.Lk)("div",v,[(0,l.Lk)("div",k,[(0,l.Lk)("div",C,[(0,l.Lk)("div",D,(0,s.v_)(e.description),1),(0,l.Lk)("div",A,(0,s.v_)(K.displayDescription(e.debtorsAssetType)),1)])]),(0,l.Lk)("div",F,[(0,l.bF)(R,{color:"transparent",btnText:"EDIT",icon:"arrow",size:"xsmall",onButtonClicked:o=>K.editIndividual(t,e)},{default:(0,l.k6)((()=>[(0,l.bF)(U,{size:"size16"})])),_:2},1032,["onButtonClicked"])]),(0,l.Lk)("div",g,(0,s.v_)(I.defaultCurrency)+(0,s.v_)(parseFloat(Math.round(100*e.amount)/100).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g," ")),1),(0,l.Lk)("div",E,[(0,l.bF)(R,{color:"transparent",icon:"arrow",size:"small",onButtonClicked:o=>K.showDelete(t,e)},{default:(0,l.k6)((()=>[(0,l.bF)(G,{class:"inline-icon"})])),_:2},1032,["onButtonClicked"])])]),(0,l.Lk)("div",L,[(0,l.Lk)("div",T,[(0,l.Lk)("div",f,[(0,l.Lk)("div",w,(0,s.v_)(e.description),1),(0,l.Lk)("div",_,(0,s.v_)(K.displayDescription(e.debtorsAssetType)),1),(0,l.Lk)("div",x,(0,s.v_)(I.defaultCurrency)+(0,s.v_)(parseFloat(Math.round(100*e.amount)/100).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g," ")),1)])]),(0,l.Lk)("div",B,[(0,l.bF)(R,{color:"transparent",icon:"arrow",size:"xxsmall",onButtonClicked:o=>K.editIndividual(t,e)},{default:(0,l.k6)((()=>[(0,l.bF)(U)])),_:2},1032,["onButtonClicked"])]),(0,l.Lk)("div",S,[(0,l.bF)(R,{color:"transparent",icon:"arrow",size:"xxsmall",onButtonClicked:o=>K.showDelete(t,e)},{default:(0,l.k6)((()=>[(0,l.bF)(G,{class:"inline-icon"})])),_:2},1032,["onButtonClicked"])])])])])))),128))]),(0,l.bF)(d.eB,{name:"fade"},{default:(0,l.k6)((()=>[I.isDelete?((0,l.uX)(),(0,l.Wv)(M,{title:"Are you sure you want to delete this debtor?",message:I.debtor.description,onClose:K.closeDelete,button1:"Delete",button2:"Cancel",align:"center",onDoAction2:K.closeDelete,onDoAction1:K.deleteItem,key:"alert"},null,8,["message","onClose","onDoAction2","onDoAction1"])):(0,l.Q3)("",!0)])),_:1})])}o(44114),o(18111),o(7588);var I=o(66278);const K={components:{Alert:(0,l.$V)((()=>o.e(7411).then(o.bind(o,87411)))),CustomButtonComponent:(0,l.$V)((()=>o.e(5235).then(o.bind(o,85235)))),CurrencyField:(0,l.$V)((()=>o.e(2078).then(o.bind(o,72078)))),SelectAll:(0,l.$V)((()=>
1o.e(8517).then(o.bind(o,68517)))),TextField:(0,l.$V)((()=>o.e(1195).then(o.bind(o,41195)))),IconArrowForward:(0,l.$V)((()=>o.e(8087).then(o.bind(o,98087)))),IconEdit:(0,l.$V)((()=>o.e(8745).then(o.bind(o,48745)))),"ios-trash-icon":(0,l.$V)((()=>o.e(9633).then(o.bind(o,9633))))},name:"AddDebtors",data(){return{defaultCurrency:"£",debtor:{description:"",type:{},debtorsAssetType:"",total:null,amount:null},isEdit:!1,isDelete:!1,currentKey:null,debtorsTypes:[{value:"DEBTS_ASSETS_SOLD",description:"Debts i.r.o. Zakaatable Assets Sold"},{value:"DEBTS_SERVICES_RENDERED",description:"Debts i.r.o. Professional Services Rendered"},{value:"LOANS_GIVEN",description:"Loans Given in Cash/Gold/Silver"},{value:"OTHER_DEBTORS_ASSET_TYPE",description:"Other Debts"}]}},computed:{...(0,I.L8)(["debtorAssets"]),calculatedAmount(){return this.debtor.total?parseFloat(this.debtor.total).toFixed(2):(0).toFixed(2)}},methods:{...(0,I.i0)(["addToDebtors","editDebtors","deleteDebtorsItem","clearDebtors"]),displayDescription(e){if("string"===typeof e||e instanceof String){const t=e.split("_"),o=[];t.forEach((e=>{const t=e.toLowerCase(),l=t.charAt(0).toUpperCase()+t.slice(1);o.push(l)}));const l=o.slice(0,o.length).join(" ");return l}},showDelete(e,t){this.debtor=t,this.currentKey=e,this.isDelete=!0},closeDelete(){this.debtor={description:"",type:{},total:null},this.currentKey=null,this.isDelete=!1},deleteItem(){this.deleteDebtorsItem(this.currentKey),this.debtor={description:"",type:{},total:null},this.currentKey=null,this.isDelete=!1},cancel(){this.debtor={description:"",type:{},total:null},this.isEdit=!1,this.currentKey=null},editIndividual(e,t){this.isEdit=!0,this.debtorsTypes.forEach((e=>{e.value===t.debtorsAssetType&&(this.debtor.type=e)})),this.debtor.description=t.description,this.debtor.total=t.amount,this.currentKey=e},async update(){const e={key:"",item:{description:"",amount:0,debtorsAssetType:""}};e.key=this.currentKey,e.item.debtorsAssetType=this.debtor.type.value,e.item.description=this.debtor.description,e.item.amount=this.debtor.total,this.editDebtors(e),this.debtor={description:"",type:{},total:null},this.isEdit=!1,this.currentKey=null},async save(){const e={description:"",amount:0,debtorsAssetType:""};e.debtorsAssetType=this.debtor.type.value,e.description=this.debtor.description,e.amount=this.debtor.total,this.addToDebtors(e),this.debtor={description:"",type:{},total:null}}}};var $=o(66262);const X=(0,$.A)(K,[["render",V],["__scopeId","data-v-79dd85f1"]]),z=X}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.