⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
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 :
140.c69233.js
/*! For license information please see 140.c69233.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[140],{378:function(t,e,r){"use strict";r.r(e);var n=r(7),a=r.n(n),o=r(3);r(492);function i(t){return(i="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 s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function v(t,e,r,a){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),s=new O(a||[]);return n(i,"_invoke",{value:x(t,r,s)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=v;var p={};function h(){}function m(){}function d(){}var _={};u(_,o,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(E([])));b&&b!==e&&r.call(b,o)&&(_=b);var y=d.prototype=h.prototype=Object.create(_);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){var a;n(this,"_invoke",{value:function(n,o){function s(){return new e((function(a,s){!function n(a,o,s,c){var l=f(t[a],t,o);if("throw"!==l.type){var u=l.arg,v=u.value;return v&&"object"==i(v)&&r.call(v,"__await")?e.resolve(v.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(v).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,c)}))}c(l.arg)}(n,o,a,s)}))}return a=a?a.then(s,s):s()}})}function x(t,e,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return j()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var s=k(i,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function k(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var a=f(n,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,p;var o=a.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return m.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:m,configurable:!0}),m.displayName=u(d,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(C.prototype),u(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new C(v(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(y),u(y,l,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=E,O.prototype={constructor:O,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(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=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 e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){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(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(t,e){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&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;P(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function c(t,e,r,n,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,a)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function i(t){c(o,n,a,i,s,"next",t)}function s(t){c(o,n,a,i,s,"throw",t)}i(void 0)}))}}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("cashbook.accounts.view.page_title")}},data:function(){return{breadcrumbsCurrent:"cashbook.accounts.view.breadcrumbs_current",breadcrumbs:[{name:"cashbook.accounts.view.breadcrumbs_first",url:"home"},{name:"cashbook.accounts.view.breadcrumbs_second",url:"accounts.index"},{name:"cashbook.accounts.view.breadcrumbs_active",url:""}],query:"",allData:"",perPage:10,totalCount:0}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(o.b)("operations",["items","loading","pagination"])),watch:{query:function(t){""===t?this.getTransactions():this.searchTransactions()}},created:function(){this.getAccount(),this.getTransactions()},methods:{updatePerPager:function(){this.pagination.current_page=1,""===this.query?this.getTransactions():this.searchTransactions()},getAccount:function(){var t=this;return l(s().mark((function e(){var r,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.get(window.location.origin+"/api/accounts/"+t.$route.params.slug);case 2:r=e.sent,n=r.data,t.allData=n.data;case 5:case"end":return e.stop()}}),e)})))()},getTransactions:function(){var t=this;return l(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$store.state.operations.loading=!0,e.next=3,t.$store.dispatch("operations/fetchData",{path:"/api/accounts/transactions/"+t.$route.params.slug+"?page=",currentPage:t.pagination.current_page+"&perPage="+t.perPage});case 3:t.totalCount=t.pagination.total;case 4:case"end":return e.stop()}}),e)})))()},searchTransactions:function(){var t=this;return l(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$store.state.operations.loading=!0,e.next=3,t.$store.dispatch("operations/searchData",{term:t.query,path:"/api/accounts/transactions/"+t.$route.params.slug+"/search",currentPage:t.pagination.current_page+"&perPage="+t.perPage});case 3:case"end":return e.stop()}}),e)})))()},paginate:function(){var t=this;return l(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:""===t.query?t.getTransactions():t.searchTransactions();case 1:case"end":return e.stop()}}),e)})))()},resetPagination:function(){var t=this;return l(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.pagination.current_page=1;case 1:case"end":return e.stop()}}),e)})))()},reload:function(){var t=this;return l(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.query="";case 1:case"end":return e.stop()}}),e)})))()},printWindow:function(){window.print()}}},p=r(1),h=Object(p.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-12"},[r("div",{staticClass:"invoice p-3 mb-3"},[r("div",{staticClass:"row invoice-info"},[r("div",{staticClass:"col-sm-4 invoice-col"},[r("CompanyInfo")],1),t._v(" "),t.allData?r("div",{staticClass:"col-sm-6 offset-sm-2 invoice-col float-right text-md-right"},[t.allData.date?r("h5",[t._v("\n "+t._s(t.$t("cashbook.common.account_details"))+"\n ")]):t._e(),t._v(" "),r("strong",[t._v(t._s(t.$t("cashbook.common.bank_name"))+":")]),t._v("\n "+t._s(t.allData.bankName)),r("br"),t._v(" "),t.allData.branchName?r("span",[r("strong",[t._v(t._s(t.$t("cashbook.common.branch_name"))+":")]),t._v("\n "+t._s(t.allData.branchName)),r("br")]):t._e(),t._v(" "),t.allData.accountNumber?r("span",[r("strong",[t._v(t._s(t.$t("cashbook.common.account_number"))+":")]),t._v("\n "+t._s(t.allData.accountNumber)),r("br")]):t._e(),t._v(" "),t.allData.accountNumber?r("span",[r("strong",[t._v(t._s(t.$t("common.created_at"))+":")]),t._v("\n "+t._s(t._f("moment")(t.allData.date,"Do MMM, YYYY"))),r("br")]):t._e()]):t._e()]),t._v(" "),r("div",{staticClass:"row"},[t.pagination?r("div",{staticClass:"col-lg-3 col-6"},[r("div",{staticClass:"small-box bg-info"},[r("div",{staticClass:"inner"},[r("h4",[r("span",[t._v(t._s(t.totalCount))])]),t._v(" "),r("p",[t._v(t._s(t.$t("cashbook.common.total_transactions")))])]),t._v(" "),t._m(0)])]):t._e(),t._v(" "),r("div",{staticClass:"col-lg-3 col-6"},[r("div",{staticClass:"small-box bg-success"},[r("div",{staticClass:"inner"},[r("h4",[t._v(t._s(t._f("withCurrency")(t.allData.totalCredits)))]),t._v(" "),r("p",[t._v(t._s(t.$t("cashbook.common.credit_amount")))])]),t._v(" "),t._m(1)])]),t._v(" "),r("div",{staticClass:"col-lg-3 col-6"},[r("div",{staticClass:"small-box bg-warning"},[r("div",{staticClass:"inner"},[r("h4",[t._v(t._s(t._f("withCurrency")(t.allData.totalDebits)))]),t._v(" "),r("p",[t._v(t._s(t.$t("cashbook.common.debit_amount")))])]),t._v(" "),t._m(2)])]),t._v(" "),r("div",{staticClass:"col-lg-3 col-6"},[r("div",{staticClass:"small-box bg-primary"},[r("div",{staticClass:"inner"},[r("h4",[t._v(t._s(t._f("withCurrency")(t.allData.availableBalance)))]),t._v(" "),r("p",[t._v(t._s(t.$t("common.available_balance")))])]),t._v(" "),t._m(3)])])]),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"w-100 bg-light"},[r("div",[r("div",{staticClass:"row no-print pt-3 px-3"},[r("div",{staticClass:"col-xl-2 col-md-3 col-4"},[r("search",{on:{"reset-pagination":function(e){return t.resetPagination()},reload:t.reload},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})],1),t._v(" "),t.items&&t.items.length>0?r("div",{staticClass:"col-xl-10 col-md-9 col-8 text-right"},[r("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("common.export_table"),expression:"$t('common.export_table')"}],staticClass:"btn btn-secondary",attrs:{href:"/account-transactions/pdf/"+t.allData.slug}},[r("i",{staticClass:"fas fa-file-export"})])]):t._e()])]),t._v(" "),r("div",{staticClass:"card-body"},[r("div",{staticClass:"row"},[r("table-loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),t._v(" "),r("div",{staticClass:"table-responsive table-custom"},[r("table",{staticClass:"table"},[r("thead",[r("tr",[r("th",[t._v(t._s(t.$t("common.s_no")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.reason")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.date")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.type")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.amount")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.status")))]),t._v(" "),r("th",{staticClass:"text-right"},[t._v("\n "+t._s(t.$t("common.created_by"))+"\n ")])])]),t._v(" "),r("tbody",[t._l(t.items,(function(e,n){return r("tr",{directives:[{name:"show",rawName:"v-show",value:t.items.length,expression:"items.length"}],key:n},[r("td",[t._v(t._s(++n))]),t._v(" "),r("td",[t._v(t._s(e.reason))]),t._v(" "),r("td",[e.transactionDate?r("span",[t._v(t._s(t._f("moment")(e.transactionDate,"Do MMM, YYYY")))]):t._e()]),t._v(" "),r("td",[1===e.type?r("span",{staticClass:"badge bg-primary"},[t._v(t._s(t.$t("common.credit")))]):r("span",{staticClass:"badge bg-danger"},[t._v(t._s(t.$t("common.debit")))])]),t._v(" "),r("td",[t._v(t._s(t._f("withCurrency")(e.amount)))]),t._v(" "),r("td",[1===e.status?r("span",{staticClass:"badge bg-success"},[t._v(t._s(t.$t("common.active")))]):r("span",{staticClass:"badge bg-danger"},[t._v(t._s(t.$t("common.in_active")))])]),t._v(" "),e.user?r("td",{staticClass:"text-right"},[t._v("\n "+t._s(e.user.name)+"\n ")]):t._e()])})),t._v(" "),r("tr",{directives:[{name:"show",rawName:"v-show",value:!t.loading&&!t.items.length,expression:"!loading && !items.length"}]},[r("td",{attrs:{colspan:"8"}},[r("EmptyTable")],1)])],2)])])],1)]),t._v(" "),t.pagination&&t.pagination.last_page>1?r("div",{staticClass:"mt-3 clearfix"},[r("div",{staticClass:"dtable-footer"},[r("div",{staticClass:"form-group row display-per-page"},[r("label",[t._v(t._s(t.$t("per_page"))+" ")]),t._v(" "),r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:t.perPage,expression:"perPage"}],staticClass:"form-control form-control-sm ml-1",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.perPage=e.target.multiple?r:r[0]},t.updatePerPager]}},[r("option",{attrs:{value:"10"}},[t._v("10")]),t._v(" "),r("option",{attrs:{value:"25"}},[t._v("25")]),t._v(" "),r("option",{attrs:{value:"50"}},[t._v("50")]),t._v(" "),r("option",{attrs:{value:"100"}},[t._v("100")])])])]),t._v(" "),t.pagination&&t.pagination.last_page>1?r("pagination",{staticClass:"justify-flex-end",attrs:{pagination:t.pagination,offset:5},on:{paginate:t.paginate}}):t._e()],1)]):t._e()])]),t._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:t.allData.length,expression:"allData.length"}],staticClass:"no-print callout callout-danger mt-4 w-100"},[r("h5",[t._v(t._s(t.$t("cashbook.accounts.view.empty_transaction")))]),t._v(" "),r("p",[t._v(t._s(t.$t("cashbook.accounts.view.empty_transaction_msg")))])]),t._v(" "),r("hr"),t._v(" "),r("div",{staticClass:"row no-print mt-5"},[r("div",{staticClass:"col-12"},[r("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"accounts.index"}}},[r("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")]),t._v(" "),r("a",{staticClass:"btn btn-default",attrs:{href:"#"},on:{click:t.printWindow}},[r("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.$t("common.print")))])],1)])])])])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon"},[e("i",{staticClass:"fas fa-coins"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon"},[e("i",{staticClass:"fas fa-sign-in-alt"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon"},[e("i",{staticClass:"fas fa-sign-out-alt"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon"},[e("i",{staticClass:"fas fa-piggy-bank"})])}],!1,null,null,null);e.default=h.exports}}]);