⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
qda-digital.online
/
public
/
dist
/
js
/
View File Name :
108.faadb3.js
/*! For license information please see 108.faadb3.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[108],{486:function(t,a,e){"use strict";e.r(a);var n=e(3),r=e.n(n),o=e(16),i=e.n(o);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){l=function(){return t};var t={},a=Object.prototype,e=a.hasOwnProperty,n=Object.defineProperty||function(t,a,e){t[a]=e.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function u(t,a,e){return Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[a]}try{u({},"")}catch(t){u=function(t,a,e){return t[a]=e}}function v(t,a,e,r){var o=a&&a.prototype instanceof f?a:f,i=Object.create(o.prototype),s=new E(r||[]);return n(i,"_invoke",{value:D(t,e,s)}),i}function d(t,a,e){try{return{type:"normal",arg:t.call(a,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=v;var _={};function f(){}function h(){}function m(){}var p={};u(p,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(k([])));g&&g!==a&&e.call(g,o)&&(p=g);var b=m.prototype=f.prototype=Object.create(p);function w(t){["next","throw","return"].forEach((function(a){u(t,a,(function(t){return this._invoke(a,t)}))}))}function C(t,a){var r;n(this,"_invoke",{value:function(n,o){function i(){return new a((function(r,i){!function n(r,o,i,l){var c=d(t[r],t,o);if("throw"!==c.type){var u=c.arg,v=u.value;return v&&"object"==s(v)&&e.call(v,"__await")?a.resolve(v.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):a.resolve(v).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}(n,o,r,i)}))}return r=r?r.then(i,i):i()}})}function D(t,a,e){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return P()}for(e.method=r,e.arg=o;;){var i=e.delegate;if(i){var s=x(i,e);if(s){if(s===_)continue;return s}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var l=d(t,a,e);if("normal"===l.type){if(n=e.done?"completed":"suspendedYield",l.arg===_)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(n="completed",e.method="throw",e.arg=l.arg)}}}function x(t,a){var e=a.method,n=t.iterator[e];if(void 0===n)return a.delegate=null,"throw"===e&&t.iterator.return&&(a.method="return",a.arg=void 0,x(t,a),"throw"===a.method)||"return"!==e&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+e+"' method")),_;var r=d(n,t.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,_;var o=r.arg;return o?o.done?(a[t.resultName]=o.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=void 0),a.delegate=null,_):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,_)}function $(t){var a={tryLoc:t[0]};1 in t&&(a.catchLoc=t[1]),2 in t&&(a.finallyLoc=t[2],a.afterLoc=t[3]),this.tryEntries.push(a)}function L(t){var a=t.completion||{};a.type="normal",delete a.arg,t.completion=a}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function k(t){if(t){var a=t[o];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function a(){for(;++n<t.length;)if(e.call(t,n))return a.value=t[n],a.done=!1,a;return a.value=void 0,a.done=!0,a};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=m,n(b,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:h,configurable:!0}),h.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var a="function"==typeof t&&t.constructor;return!!a&&(a===h||"GeneratorFunction"===(a.displayName||a.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(C.prototype),u(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(a,e,n,r,o){void 0===o&&(o=Promise);var i=new C(v(a,e,n,r),o);return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(b),u(b,c,"Generator"),u(b,o,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var a=Object(t),e=[];for(var n in a)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in a)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var a in this)"t"===a.charAt(0)&&e.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function n(e,n){return i.type="throw",i.arg=t,a.next=e,n&&(a.method="next",a.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=e.call(o,"catchLoc"),l=e.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,a){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&e.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=a&&a<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=a,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(i)},complete:function(t,a){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&a&&(this.next=a),_},finish:function(t){for(var a=this.tryEntries.length-1;a>=0;--a){var e=this.tryEntries[a];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),L(e),_}},catch:function(t){for(var a=this.tryEntries.length-1;a>=0;--a){var e=this.tryEntries[a];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var r=n.arg;L(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,a,e){return this.delegate={iterator:k(t),resultName:a,nextLoc:e},"next"===this.method&&(this.arg=void 0),_}},t}function c(t,a,e,n,r,o,i){try{var s=t[o](i),l=s.value}catch(t){return void e(t)}s.done?a(l):Promise.resolve(l).then(n,r)}var u={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("loans.payments.view.page_title")}},data:function(){return{breadcrumbsCurrent:"loans.payments.view.breadcrumbs_current",breadcrumbs:[{name:"loans.payments.view.breadcrumbs_first",url:"home"},{name:"loans.payments.view.breadcrumbs_second",url:"loanPayments.index"},{name:"loans.payments.view.breadcrumbs_active",url:""}],showModal:!1,allData:""}},created:function(){this.getLoanPayment()},methods:{getLoanPayment:function(){var t,a=this;return(t=l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.a.get(window.location.origin+"/api/loan-payments/"+a.$route.params.slug);case 2:e=t.sent,n=e.data,a.allData=n.data;case 5:case"end":return t.stop()}}),t)})),function(){var a=this,e=arguments;return new Promise((function(n,r){var o=t.apply(a,e);function i(t){c(o,n,r,i,s,"next",t)}function s(t){c(o,n,r,i,s,"throw",t)}i(void 0)}))})()},printWindow:function(){window.print()},generatePDF:function(){var t=document.getElementById("content-to-pdf"),a={margin:5,filename:"Loan Payment-"+this.$route.params.slug+".pdf",image:{type:"jpeg",quality:.98},pagebreak:{mode:"avoid-all",before:"#page-break"},html2canvas:{scale:2},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};i()().from(t).set(a).save()}}},v=e(1),d=Object(v.a)(u,(function(){var t=this,a=t._self._c;return a("div",[a("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),a("div",{staticClass:"row no-print mb-2"},[a("div",{staticClass:"w-100 text-right float-right"},[t.allData?a("div",{staticClass:"btn-group"},[a("a",{staticClass:"btn btn-primary",attrs:{href:"#"},on:{click:function(a){return t.generatePDF()}}},[a("i",{staticClass:"fas fa-download"}),t._v(" "+t._s(t.$t("download"))+"\n ")]),t._v(" "),a("a",{staticClass:"btn btn-secondary",attrs:{href:"#"},on:{click:function(a){return t.printWindow()}}},[a("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.$t("common.print"))+"\n ")]),t._v(" "),t.$can("loan-payment-edit")?a("router-link",{staticClass:"btn btn-info",attrs:{to:{name:"loanPayments.edit",params:{slug:t.allData.slug}}}},[a("i",{staticClass:"fas fa-edit"}),t._v(" "+t._s(t.$t("common.edit"))+"\n ")]):t._e(),t._v(" "),a("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"loanPayments.index"}}},[a("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")])],1):t._e()])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12"},[a("div",{staticClass:"invoice p-3 mb-3 w-100",attrs:{id:"content-to-pdf"}},[a("div",{staticClass:"row invoice-info"},[a("div",{staticClass:"col-sm-4 invoice-col"},[a("CompanyInfo")],1),t._v(" "),a("div",{staticClass:"col-sm-6 offset-sm-2 invoice-col float-right text-md-right"},[a("h5",[t._v(t._s(t.$t("loans.common.authority_details")))]),t._v(" "),t.allData.authority?a("div",[a("strong",[t._v(t._s(t.$t("common.name"))+":")]),t._v("\n "+t._s(t.allData.authority.name)),a("br"),t._v(" "),a("strong",[t._v(t._s(t.$t("common.email"))+":")]),t._v("\n "+t._s(t.allData.authority.email)),a("br"),t._v(" "),a("strong",[t._v(t._s(t.$t("common.contact_number"))+":")]),t._v("\n "+t._s(t.allData.authority.contactNumber)),a("br"),t._v(" "),a("strong",[t._v(t._s(t.$t("common.address"))+":")]),t._v("\n "+t._s(t.allData.authority.address)),a("br")]):t._e()])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("div",{staticClass:"table-responsive table-custom"},[a("table",{staticClass:"table"},[a("thead",[a("tr",[a("th",[t._v(t._s(t.$t("common.image")))]),t._v(" "),a("th",[t._v(t._s(t.$t("loans.common.loan_ref")))]),t._v(" "),a("th",[t._v(t._s(t.$t("loans.common.payment_ref")))]),t._v(" "),t.allData.loan?a("th",[t._v(t._s(t.$t("common.payable")))]):t._e(),t._v(" "),a("th",[t._v(t._s(t.$t("loans.common.amount_paid")))]),t._v(" "),a("th",[t._v(t._s(t.$t("loans.common.interetest_paid")))]),t._v(" "),t.allData.account?a("th",[t._v(t._s(t.$t("common.account")))]):t._e(),t._v(" "),t.allData.note?a("th",[t._v(t._s(t.$t("common.note")))]):t._e(),t._v(" "),a("th",[t._v(t._s(t.$t("common.status")))]),t._v(" "),t.allData.date?a("th",[t._v(t._s(t.$t("common.date")))]):t._e(),t._v(" "),a("th",{staticClass:"text-right"},[t._v(t._s(t.$t("common.created_by")))])])]),t._v(" "),t.allData.loan?a("tbody",[a("tr",[a("td",[t.allData.image?a("a",{attrs:{href:"#",id:"show-modal"},on:{click:function(a){t.showModal=!0}}},[a("img",{staticClass:"rounded preview-sm",attrs:{src:t.allData.image,loading:"lazy"}})]):a("div",{staticClass:"bg-secondary rounded no-preview-sm"},[a("small",[t._v(t._s(t.$t("common.no_preview")))])])]),t._v(" "),a("td",[t._v(t._s(t.allData.loan.reference))]),t._v(" "),a("td",[t._v(t._s(t.allData.reference))]),t._v(" "),t.allData.loan?a("td",[t._v("\n "+t._s(t._f("withCurrency")(t.allData.loan.payable))+"\n ")]):t._e(),t._v(" "),a("td",[t._v(t._s(t._f("withCurrency")(t.allData.amount)))]),t._v(" "),a("td",[t._v(t._s(t._f("withCurrency")(t.allData.interest)))]),t._v(" "),t.allData.account?a("td",[t._v("\n "+t._s(t.allData.account.label)+"\n ")]):t._e(),t._v(" "),t.allData.note?a("td",[t._v(t._s(t.allData.note))]):t._e(),t._v(" "),a("td",[1==t.allData.status?a("span",{staticClass:"badge bg-success"},[t._v(t._s(t.$t("common.active")))]):a("span",{staticClass:"badge bg-danger"},[t._v(t._s(t.$t("common.in_active")))])]),t._v(" "),t.allData.date?a("td",[t._v("\n "+t._s(t._f("moment")(t.allData.date,"Do MMM, YYYY"))+"\n ")]):t._e(),t._v(" "),a("td",{staticClass:"text-right"},[t._v(t._s(t.allData.created_by))])])]):t._e()])])])]),t._v(" "),a("div",{staticClass:"row mt-4"},[a("div",{staticClass:"offset-xl-8 col-lg-12 col-xl-4 text-xl-right"},[t.allData.loan?a("div",{staticClass:"table-responsive table-custom table-border-y-0"},[a("table",{staticClass:"table"},[a("tbody",[a("tr",{staticClass:"bg-sub-light text-bold"},[a("th",[t._v(t._s(t.$t("loans.common.loan_amount"))+":")]),t._v(" "),a("td",[t._v("\n "+t._s(t._f("withCurrency")(t.allData.loan.transaction.amount))+"\n ")])]),t._v(" "),a("tr",[a("th",[t._v("\n "+t._s(t.$t("common.interest"))+"\n "),1==t.allData.loan.loanType?a("span",[t._v("("+t._s(t.allData.interestRate)+"%)")]):t._e(),t._v(":\n ")]),t._v(" "),a("td",[a("span",{staticClass:"plus-sign"},[t._v("+")]),t._v("\n "+t._s(t._f("withCurrency")(t.allData.loan.interestAmount))+"\n ")])]),t._v(" "),a("tr",{staticClass:"bg-indigo-light"},[a("th",[t._v(t._s(t.$t("common.payable"))+":")]),t._v(" "),1==t.allData.loan.loanType?a("td",[a("span",{staticClass:"equal-sign"},[t._v("=")]),t._v("\n "+t._s(t._f("withCurrency")(t.allData.loan.payable))+"\n ")]):a("td",[a("span",{staticClass:"equal-sign"},[t._v("=")]),t._v("\n "+t._s(t._f("withCurrency")(t.allData.loan.payable+t.allData.loan.interestAmount))+"\n ")])]),t._v(" "),a("tr",[a("th",[t._v(t._s(t.$t("common.total_paid"))+":")]),t._v(" "),a("td",[a("span",{staticClass:"minus-sign"},[t._v("-")]),t._v(" "),0==t.allData.loan.loanType?a("span",[t._v(t._s(t._f("withCurrency")(t.allData.loan.loanWithInterest)))]):a("span",[t._v(t._s(t._f("withCurrency")(t.allData.loan.totalPaid>0?t.allData.loan.totalPaid:0)))])])]),t._v(" "),a("tr",{staticClass:"bg-red-light"},[a("th",[t._v(t._s(t.$t("common.total_due"))+":")]),t._v(" "),a("td",[t._v(t._s(t._f("withCurrency")(t.allData.loan.due)))])])])])]):t._e()])])])])]),t._v(" "),t.showModal?a("Modal",{on:{close:function(a){t.showModal=!1}}},[a("h5",{attrs:{slot:"header"},slot:"header"},[t._v(t._s(t.$t("common.modal_header")))]),t._v(" "),a("div",{staticClass:"w-100",attrs:{slot:"body"},slot:"body"},[a("img",{staticClass:"rounded img-fluid",attrs:{src:t.allData.image,loading:"lazy"}})])]):t._e()],1)}),[],!1,null,null,null);a.default=d.exports}}]);