⚝
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
/
View File Name :
26.840a92.js
/*! For license information please see 26.840a92.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[26],{95:function(t,e,n){"use strict";n.r(e);var r=n(3);function a(t){return(a="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 o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,a){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),c=new O(a||[]);return r(i,"_invoke",{value:$(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var v={};function h(){}function d(){}function m(){}var g={};l(g,c,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(j([])));_&&_!==e&&n.call(_,c)&&(g=_);var y=m.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var o;r(this,"_invoke",{value:function(r,i){function c(){return new e((function(o,c){!function r(o,i,c,s){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==a(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}(r,i,o,c)}))}return o=o?o.then(c,c):c()}})}function $(t,e,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return L()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=k(i,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=f(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,v;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,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function P(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function j(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=m,r(y,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:d,configurable:!0}),d.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.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(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(p(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(y),l(y,u,"Generator"),l(y,c,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=j,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(C),!t)for(var e in this)"t"===e.charAt(0)&&n.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 r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.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,v):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),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;C(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},t}function i(t,e,n,r,a,o,i){try{var c=t[o](i),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,a)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function c(t){i(o,r,a,c,s,"next",t)}function s(t){i(o,r,a,c,s,"throw",t)}c(void 0)}))}}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("cashbook.balances.index.page_title")}},data:function(){return{breadcrumbsCurrent:"cashbook.balances.index.breadcrumbs_current",breadcrumbs:[{name:"cashbook.balances.index.breadcrumbs_first",url:"home"},{name:"cashbook.balances.index.breadcrumbs_active",url:""}],query:"",perPage:10}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(r.b)("operations",["items","loading","pagination"])),watch:{query:function(t,e){""===t?this.getData():this.searchData()}},created:function(){this.getData()},methods:{updatePerPager:function(){this.pagination.current_page=1,""===this.query?this.getData():this.searchData()},getData:function(){var t=this;return c(o().mark((function e(){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$store.state.operations.loading=!0,n=t.pagination?t.pagination.current_page:1,e.next=4,t.$store.dispatch("operations/fetchData",{path:"/api/balances?page=",currentPage:n+"&perPage="+t.perPage});case 4:case"end":return e.stop()}}),e)})))()},paginate:function(){var t=this;return c(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:""===t.query?t.getData():t.searchData();case 1:case"end":return e.stop()}}),e)})))()},resetPagination:function(){var t=this;return c(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.pagination.current_page=1;case 1:case"end":return e.stop()}}),e)})))()},searchData:function(){var t=this;return c(o().mark((function e(){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$store.state.operations.loading=!0,n=t.pagination?t.pagination.current_page:1,e.next=4,t.$store.dispatch("operations/searchData",{path:"/api/balances/search",term:t.query,currentPage:n+"&perPage="+t.perPage});case 4:case"end":return e.stop()}}),e)})))()},reload:function(){var t=this;return c(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.query="";case 1:case"end":return e.stop()}}),e)})))()},print:function(){var t=this;return c(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$htmlToPaper("printMe");case 2:case"end":return e.stop()}}),e)})))()},deleteData:function(t){var e=this;return c(o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:Swal.fire({title:e.$t("common.delete_title"),text:e.$t("cashbook.balances.index.delete_warning"),type:"warning",showCancelButton:!0,confirmButtonText:e.$t("common.delete_confirm_text")}).then((function(n){n.value&&e.$store.dispatch("operations/deleteData",{path:"/api/balances/",slug:t}).then((function(t){!0===t?Swal.fire(e.$t("common.deleted"),e.$t("common.delete_success"),"success"):Swal.fire(e.$t("common.failed"),e.$t("cashbook.balances.index.delete_failed"),"warning")}))}));case 1:case"end":return n.stop()}}),n)})))()}}},p=n(1),f=Object(p.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mb-50"},[n("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12"},[t.$can("account-balance-list")||t.$can("account-balance-edit")||t.$can("account-balance-delete")?n("div",[n("div",[n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-2 col-md-3 col-4"},[n("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(" "),n("div",{staticClass:"col-xl-10 col-md-9 col-8 text-right"},[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-secondary",attrs:{href:"/cashbook/add-balances/pdf"}},[n("i",{staticClass:"fas fa-file-export"})]),t._v(" "),n("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("common.print_table"),expression:"$t('common.print_table')"}],staticClass:"btn btn-info",on:{click:t.print}},[n("i",{staticClass:"fas fa-print"})]),t._v(" "),t.$can("account-balance-create")?n("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"balances.create"}}},[t._v("\n "+t._s(t.$t("cashbook.balances.index.add_balance"))+"\n "),n("i",{staticClass:"fas fa-plus-circle d-none d-sm-inline-block"})]):t._e()],1)])])]),t._v(" "),n("div",{staticClass:"card-body p-0 position-relative"},[n("table-loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),t._v(" "),n("div",{staticClass:"table-responsive table-custom mt-3",attrs:{id:"printMe"}},[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("cashbook.common.bank_name")))]),t._v(" "),n("th",[t._v(t._s(t.$t("cashbook.common.account_number")))]),t._v(" "),n("th",[t._v(t._s(t.$t("common.amount")))]),t._v(" "),n("th",[t._v(t._s(t.$t("common.type")))]),t._v(" "),n("th",[t._v(t._s(t.$t("common.date")))]),t._v(" "),n("th",[t._v(t._s(t.$t("common.status")))]),t._v(" "),t.$can("account-balance-edit")||t.$can("account-balance-delete")?n("th",{staticClass:"text-right no-print"},[t._v("\n "+t._s(t.$t("common.action"))+"\n ")]):t._e()])]),t._v(" "),n("tbody",[t._l(t.items,(function(e,r){return n("tr",{directives:[{name:"show",rawName:"v-show",value:t.items.length,expression:"items.length"}],key:r},[n("td",[t.pagination&&t.pagination.current_page>1?n("span",[t._v("\n "+t._s(t.pagination.per_page*(t.pagination.current_page-1)+(r+1))+"\n ")]):n("span",[t._v(t._s(r+1))])]),t._v(" "),n("td",[e.account?n("span",[t._v(t._s(e.account.bankName)+"\n ")]):t._e()]),t._v(" "),n("td",[e.account?n("span",[t._v(t._s(e.account.accountNumber))]):t._e()]),t._v(" "),n("td",[t._v(t._s(t._f("withCurrency")(e.amount)))]),t._v(" "),n("td",[1==e.type?n("span",{staticClass:"badge bg-success"},[t._v(t._s(t.$t("common.add_balance")))]):n("span",{staticClass:"badge bg-danger"},[t._v(t._s(t.$t("common.remove_balance")))])]),t._v(" "),n("td",[e.transactionDate?n("span",[t._v(t._s(t._f("moment")(e.transactionDate,"Do MMM, YYYY")))]):t._e()]),t._v(" "),n("td",[1===e.status?n("span",{staticClass:"badge bg-success"},[t._v(t._s(t.$t("common.active")))]):n("span",{staticClass:"badge bg-danger"},[t._v(t._s(t.$t("common.in_active")))])]),t._v(" "),t.$can("account-balance-edit")||t.$can("account-balance-delete")?n("td",{staticClass:"text-right no-print"},[n("div",{staticClass:"btn-group"},[t.$can("account-balance-edit")?n("router-link",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("common.edit"),expression:"$t('common.edit')"}],staticClass:"btn btn-info btn-sm",attrs:{to:{name:"balances.edit",params:{slug:e.slug}}}},[n("i",{staticClass:"fas fa-edit"})]):t._e(),t._v(" "),t.$can("account-balance-delete")?n("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("common.delete"),expression:"$t('common.delete')"}],staticClass:"btn btn-danger btn-sm",attrs:{href:"#"},on:{click:function(n){return t.deleteData(e.slug)}}},[n("i",{staticClass:"fas fa-trash"})]):t._e()],1)]):t._e()])})),t._v(" "),n("tr",{directives:[{name:"show",rawName:"v-show",value:!t.loading&&!t.items.length,expression:"!loading && !items.length"}]},[n("td",{attrs:{colspan:"8"}},[n("EmptyTable")],1)])],2)])])],1),t._v(" "),n("div",{staticClass:"dtable-footer"},[n("div",{staticClass:"form-group row display-per-page"},[n("label",[t._v(t._s(t.$t("per_page"))+" ")]),t._v(" "),n("div",[n("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 n=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?n:n[0]},t.updatePerPager]}},[n("option",{attrs:{value:"10"}},[t._v("10")]),t._v(" "),n("option",{attrs:{value:"25"}},[t._v("25")]),t._v(" "),n("option",{attrs:{value:"50"}},[t._v("50")]),t._v(" "),n("option",{attrs:{value:"100"}},[t._v("100")])])])]),t._v(" "),t.pagination&&t.pagination.last_page>1?n("pagination",{staticClass:"justify-flex-end",attrs:{pagination:t.pagination,offset:5},on:{paginate:t.paginate}}):t._e()],1)]):t._e()])])],1)}),[],!1,null,null,null);e.default=f.exports}}]);