⚝
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
/
makarnacimmix.xyz
/
public
/
dist
/
js
/
Edit File: 74.8d57ff.js
/*! For license information please see 74.8d57ff.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[74],{448:function(t,n,r){"use strict";r.r(n);var e=r(3),a=r.n(e),o=r(4);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={},n=Object.prototype,r=n.hasOwnProperty,e=Object.defineProperty||function(t,n,r){t[n]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,r){return t[n]=r}}function v(t,n,r,a){var o=n&&n.prototype instanceof p?n:p,i=Object.create(o.prototype),s=new j(a||[]);return e(i,"_invoke",{value:x(t,r,s)}),i}function f(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=v;var h={};function p(){}function d(){}function m(){}var _={};l(_,o,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(D([])));b&&b!==n&&r.call(b,o)&&(_=b);var y=m.prototype=p.prototype=Object.create(_);function w(t){["next","throw","return"].forEach((function(n){l(t,n,(function(t){return this._invoke(n,t)}))}))}function C(t,n){var a;e(this,"_invoke",{value:function(e,o){function s(){return new n((function(a,s){!function e(a,o,s,c){var u=f(t[a],t,o);if("throw"!==u.type){var l=u.arg,v=l.value;return v&&"object"==i(v)&&r.call(v,"__await")?n.resolve(v.__await).then((function(t){e("next",t,s,c)}),(function(t){e("throw",t,s,c)})):n.resolve(v).then((function(t){l.value=t,s(l)}),(function(t){return e("throw",t,s,c)}))}c(u.arg)}(e,o,a,s)}))}return a=a?a.then(s,s):s()}})}function x(t,n,r){var e="suspendedStart";return function(a,o){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===a)throw o;return L()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var s=k(i,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===e)throw e="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e="executing";var c=f(t,n,r);if("normal"===c.type){if(e=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(e="completed",r.method="throw",r.arg=c.arg)}}}function k(t,n){var r=n.method,e=t.iterator[r];if(void 0===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var a=f(e,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,h;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function O(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function $(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function D(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,a=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=m,e(y,"constructor",{value:m,configurable:!0}),e(m,"constructor",{value:d,configurable:!0}),d.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===d||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(C.prototype),l(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(n,r,e,a,o){void 0===o&&(o=Promise);var i=new C(v(n,r,e,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(y),l(y,u,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=Object(t),r=[];for(var e in n)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=D,j.prototype={constructor:j,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($),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function e(r,e){return i.type="throw",i.arg=t,n.next=r,e&&(n.method="next",n.arg=void 0),!!e}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return e("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 e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=n,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(t,n){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&&n&&(this.next=n),h},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),$(r),h}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var a=e.arg;$(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,n,r,e,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void r(t)}s.done?n(c):Promise.resolve(c).then(e,a)}function u(t){return function(){var n=this,r=arguments;return new Promise((function(e,a){var o=t.apply(n,r);function i(t){c(o,e,a,i,s,"next",t)}function s(t){c(o,e,a,i,s,"throw",t)}i(void 0)}))}}function l(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function v(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?l(Object(r),!0).forEach((function(n){f(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}function f(t,n,r){return(n=function(t){var n=function(t,n){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,n||"default");if("object"!==i(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===i(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var h={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:"",transactions:[],perPage:10,totalCount:0}},computed:v({},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 u(s().mark((function n(){var r,e;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.a.get(window.location.origin+"/api/accounts/"+t.$route.params.slug);case 2:r=n.sent,e=r.data,t.allData=e.data;case 5:case"end":return n.stop()}}),n)})))()},getTransactions:function(){var t=this;return u(s().mark((function n(){var r,e,o;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.$store.state.operations.loading=!0,n.next=3,a.a.get(window.location.origin+"/api/accounts/transactions/"+t.$route.params.slug);case 3:r=n.sent,e=r.data,o=0,t.transactions=e.data.map((function(t){return o=0==t.type?o-t.amount:o+t.amount,v(v({},t),{},{balance:o})})),t.totalCount=t.transactions.length,t.$store.state.operations.loading=!1;case 9:case"end":return n.stop()}}),n)})))()},searchTransactions:function(){var t=this;return u(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.$store.state.operations.loading=!0,n.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 n.stop()}}),n)})))()},paginate:function(){var t=this;return u(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:""===t.query?t.getTransactions():t.searchTransactions();case 1:case"end":return n.stop()}}),n)})))()},resetPagination:function(){var t=this;return u(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.pagination.current_page=1;case 1:case"end":return n.stop()}}),n)})))()},reload:function(){var t=this;return u(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.query="";case 1:case"end":return n.stop()}}),n)})))()},printWindow:function(){window.print()}}},p=r(1),d=Object(p.a)(h,(function(){var t=this,n=t._self._c;return n("div",[n("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),n("div",{staticClass:"row no-print mb-2"},[n("div",{staticClass:"w-100 text-right float-right"},[t.allData?n("div",{staticClass:"btn-group"},[n("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("common.export_table"),expression:"$t('common.export_table')"}],staticClass:"btn btn-primary",attrs:{href:"/account-transactions/pdf/"+t.allData.slug}},[n("i",{staticClass:"fas fa-download"}),t._v(" "+t._s(t.$t("download"))+"\n ")]),t._v(" "),n("a",{staticClass:"btn btn-secondary",attrs:{href:"#"},on:{click:t.printWindow}},[n("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.$t("common.print")))]),t._v(" "),t.$can("account-edit")?n("router-link",{staticClass:"btn btn-info",attrs:{to:{name:"accounts.edit",params:{slug:t.allData.slug}}}},[n("i",{staticClass:"fas fa-edit"}),t._v(" "+t._s(t.$t("common.edit"))+"\n ")]):t._e(),t._v(" "),n("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"accounts.index"}}},[n("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v("\n "+t._s(t.$t("common.back"))+"\n ")])],1):t._e()])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"invoice p-3 mb-3 w-100"},[n("div",{staticClass:"row invoice-info"},[n("div",{staticClass:"col-sm-4 invoice-col"},[n("CompanyInfo")],1),t._v(" "),t.allData?n("div",{staticClass:"col-sm-6 offset-sm-2 invoice-col float-right text-md-right"},[t.allData.date?n("h5",[t._v("\n "+t._s(t.$t("cashbook.common.account_details"))+"\n ")]):t._e(),t._v(" "),n("strong",[t._v(t._s(t.$t("cashbook.common.bank_name"))+":")]),t._v("\n "+t._s(t.allData.bankName)),n("br"),t._v(" "),t.allData.branchName?n("span",[n("strong",[t._v(t._s(t.$t("cashbook.common.branch_name"))+":")]),t._v("\n "+t._s(t.allData.branchName)),n("br")]):t._e(),t._v(" "),t.allData.accountNumber?n("span",[n("strong",[t._v(t._s(t.$t("cashbook.common.account_number"))+":")]),t._v("\n "+t._s(t.allData.accountNumber)),n("br")]):t._e(),t._v(" "),t.allData.accountNumber?n("span",[n("strong",[t._v(t._s(t.$t("common.created_at"))+":")]),t._v("\n "+t._s(t._f("moment")(t.allData.date,"Do MMM, YYYY"))),n("br")]):t._e()]):t._e()]),t._v(" "),n("div",{staticClass:"row"},[t.pagination?n("div",{staticClass:"col-lg-3 col-6"},[n("div",{staticClass:"small-box bg-info"},[n("div",{staticClass:"inner"},[n("h4",[n("span",[t._v(t._s(t.totalCount))])]),t._v(" "),n("p",[t._v(t._s(t.$t("cashbook.common.total_transactions")))])]),t._v(" "),t._m(0)])]):t._e(),t._v(" "),n("div",{staticClass:"col-lg-3 col-6"},[n("div",{staticClass:"small-box bg-success"},[n("div",{staticClass:"inner"},[n("h4",[t._v(t._s(t._f("withCurrency")(t.allData.totalCredits)))]),t._v(" "),n("p",[t._v(t._s(t.$t("cashbook.common.credit_amount")))])]),t._v(" "),t._m(1)])]),t._v(" "),n("div",{staticClass:"col-lg-3 col-6"},[n("div",{staticClass:"small-box bg-secondary"},[n("div",{staticClass:"inner"},[n("h4",[t._v(t._s(t._f("withCurrency")(t.allData.totalDebits)))]),t._v(" "),n("p",[t._v(t._s(t.$t("cashbook.common.debit_amount")))])]),t._v(" "),t._m(2)])]),t._v(" "),n("div",{staticClass:"col-lg-3 col-6"},[n("div",{staticClass:"small-box bg-primary"},[n("div",{staticClass:"inner"},[n("h4",[t._v(t._s(t._f("withCurrency")(t.allData.availableBalance)))]),t._v(" "),n("p",[t._v(t._s(t.$t("common.available_balance")))])]),t._v(" "),t._m(3)])])]),t._v(" "),n("div",{staticClass:"row"},[n("table-loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),t._v(" "),n("div",{staticClass:"table-responsive table-custom"},[n("table",{staticClass:"table"},[n("thead",[n("tr",[n("th",[t._v(t._s(t.$t("common.s_no")))]),t._v(" "),n("th",[t._v(t._s(t.$t("common.particular")))]),t._v(" "),n("th",[t._v(t._s(t.$t("common.date")))]),t._v(" "),n("th",[t._v(t._s(t.$t("common.credit")))]),t._v(" "),n("th",[t._v(t._s(t.$t("common.debit")))]),t._v(" "),n("th",[t._v(t._s(t.$t("common.balance")))])])]),t._v(" "),n("tbody",[t._l(t.transactions,(function(r,e){return n("tr",{directives:[{name:"show",rawName:"v-show",value:t.transactions.length,expression:"transactions.length"}],key:e},[n("td",[t._v(t._s(++e))]),t._v(" "),n("td",[t._v(t._s(r.reason))]),t._v(" "),n("td",[r.transactionDate?n("span",[t._v(t._s(t._f("moment")(r.transactionDate,"Do MMM, YYYY")))]):t._e()]),t._v(" "),n("td",[1===r.type?n("span",[t._v(t._s(t._f("withCurrency")(r.amount)))]):n("span",[t._v(t._s(t._f("withCurrency")(0)))])]),t._v(" "),n("td",[1===r.type?n("span",[t._v(t._s(t._f("withCurrency")(0)))]):n("span",[t._v(t._s(t._f("withCurrency")(r.amount)))])]),t._v(" "),n("td",[t._v(t._s(t._f("withCurrency")(r.balance)))])])})),t._v(" "),n("tr",{directives:[{name:"show",rawName:"v-show",value:!t.loading&&!t.transactions.length,expression:"!loading && !transactions.length"}]},[n("td",{attrs:{colspan:"8"}},[n("EmptyTable")],1)])],2)])])],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.allData.length,expression:"allData.length"}],staticClass:"no-print callout callout-danger mt-4 w-100"},[n("h5",[t._v(t._s(t.$t("cashbook.accounts.view.empty_transaction")))]),t._v(" "),n("p",[t._v(t._s(t.$t("cashbook.accounts.view.empty_transaction_msg")))])])])])],1)}),[function(){var t=this._self._c;return t("div",{staticClass:"icon"},[t("i",{staticClass:"fas fa-coins"})])},function(){var t=this._self._c;return t("div",{staticClass:"icon"},[t("i",{staticClass:"fas fa-sign-in-alt"})])},function(){var t=this._self._c;return t("div",{staticClass:"icon"},[t("i",{staticClass:"fas fa-sign-out-alt"})])},function(){var t=this._self._c;return t("div",{staticClass:"icon"},[t("i",{staticClass:"fas fa-piggy-bank"})])}],!1,null,null,null);n.default=d.exports}}]);
Simpan