⚝
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 :
77.83ffd5.js
/*! For license information please see 77.83ffd5.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[77],{451:function(t,r,e){"use strict";e.r(r);var o=e(5),n=e(4);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 s(){s=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var a=r&&r.prototype instanceof d?r:d,s=Object.create(a.prototype),i=new j(n||[]);return o(s,"_invoke",{value:C(t,e,i)}),s}function m(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var v={};function d(){}function p(){}function h(){}var b={};u(b,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(L([])));g&&g!==r&&e.call(g,i)&&(b=g);var _=h.prototype=d.prototype=Object.create(b);function w(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){var n;o(this,"_invoke",{value:function(o,s){function i(){return new r((function(n,i){!function o(n,s,i,c){var l=m(t[n],t,s);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==a(f)&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):r.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}(o,s,n,i)}))}return n=n?n.then(i,i):i()}})}function C(t,r,e){var o="suspendedStart";return function(n,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw a;return E()}for(e.method=n,e.arg=a;;){var s=e.delegate;if(s){var i=O(s,e);if(i){if(i===v)continue;return i}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===o)throw o="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o="executing";var c=m(t,r,e);if("normal"===c.type){if(o=e.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(o="completed",e.method="throw",e.arg=c.arg)}}}function O(t,r){var e=r.method,o=t.iterator[e];if(void 0===o)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),v;var n=m(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var a=n.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function $(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,n=function r(){for(;++o<t.length;)if(e.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=h,o(_,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(x.prototype),u(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,o,n,a){void 0===a&&(a=Promise);var s=new x(f(r,e,o,n),a);return t.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},w(_),u(_,l,"Generator"),u(_,i,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var o in r)e.push(o);return e.reverse(),function t(){for(;e.length;){var o=e.pop();if(o in r)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=L,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 r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function o(e,o){return s.type="throw",s.arg=t,r.next=e,o&&(r.method="next",r.arg=void 0),!!o}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var i=e.call(a,"catchLoc"),c=e.call(a,"finallyLoc");if(i&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(i){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&e.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=t,s.arg=r,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(s)},complete:function(t,r){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&&r&&(this.next=r),v},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),$(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var o=e.completion;if("throw"===o.type){var n=o.arg;$(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:L(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),v}},t}function i(t,r,e,o,n,a,s){try{var i=t[a](s),c=i.value}catch(t){return void e(t)}i.done?r(c):Promise.resolve(c).then(o,n)}function c(t){return function(){var r=this,e=arguments;return new Promise((function(o,n){var a=t.apply(r,e);function s(t){i(a,o,n,s,c,"next",t)}function c(t){i(a,o,n,s,c,"throw",t)}s(void 0)}))}}function l(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,o)}return e}function u(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==a(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,r||"default");if("object"!==a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===a(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var f={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("cashbook.transfers.create.page_title")}},data:function(){return{breadcrumbsCurrent:"cashbook.transfers.create.breadcrumbs_current",breadcrumbs:[{name:"cashbook.transfers.create.breadcrumbs_first",url:"home"},{name:"cashbook.transfers.create.breadcrumbs_second",url:""},{name:"cashbook.transfers.create.breadcrumbs_third",url:"transferBalances.index"},{name:"cashbook.transfers.create.breadcrumbs_active",url:""}],form:new o.a({fromAccount:null,toAccount:null,transferReason:"",availableBalance:0,amount:"",date:(new Date).toISOString().slice(0,10),note:"",status:1}),loading:!0}},computed:function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?l(Object(e),!0).forEach((function(r){u(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},Object(n.b)("operations",["items","appInfo"])),created:function(){this.getAccoutns()},methods:{getAccoutns:function(){var t=this;return c(s().mark((function r(){var e;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$store.dispatch("operations/allData",{path:"/api/all-accounts"});case 2:t.items&&t.items.length>0&&(e=t.appInfo.defaultAccountSlug,t.form.fromAccount=t.items.find((function(t){return t.slug==e})),t.updateBalance());case 3:case"end":return r.stop()}}),r)})))()},updateBalance:function(){return this.form.availableBalance=this.form.fromAccount.availableBalance},saveTransfer:function(){var t=this;return c(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.form.post(window.location.origin+"/api/balance-transfers").then((function(){toast.fire({type:"success",title:t.$t("cashbook.transfers.create.success_msg")}),t.$router.push({name:"transferBalances.index"})})).catch((function(){toast.fire({type:"error",title:t.$t("common.error_msg")})}));case 2:case"end":return r.stop()}}),r)})))()}}},m=e(1),v=Object(m.a)(f,(function(){var t=this,r=t._self._c;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:"card"},[r("div",{staticClass:"card-header"},[r("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("cashbook.transfers.create.form_title"))+"\n ")]),t._v(" "),r("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"transferBalances.index"}}},[r("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")])],1),t._v(" "),r("form",{attrs:{role:"form"},on:{submit:function(r){return r.preventDefault(),t.saveTransfer.apply(null,arguments)},keydown:function(r){return t.form.onKeydown(r)}}},[r("div",{staticClass:"card-body"},[r("div",{staticClass:"row"},[r("div",{staticClass:"form-group col-md-12"},[r("label",{attrs:{for:"transferReason"}},[t._v(t._s(t.$t("cashbook.common.transfer_reason"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.transferReason,expression:"form.transferReason"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("transferReason")},attrs:{type:"text",id:"transferReason",placeholder:t.$t("common.return_reason_placeholder"),name:"transferReason"},domProps:{value:t.form.transferReason},on:{input:function(r){r.target.composing||t.$set(t.form,"transferReason",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"transferReason"}})],1)]),t._v(" "),t.items?r("div",{staticClass:"row"},[r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"fromAccount"}},[t._v(t._s(t.$t("cashbook.common.from_account"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("v-select",{class:{"is-invalid":t.form.errors.has("fromAccount")},attrs:{options:t.items,label:"label",name:"fromAccount",placeholder:t.$t("common.account_placeholder")},on:{input:t.updateBalance},model:{value:t.form.fromAccount,callback:function(r){t.$set(t.form,"fromAccount",r)},expression:"form.fromAccount"}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"fromAccount"}})],1),t._v(" "),r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"toAccount"}},[t._v(t._s(t.$t("cashbook.common.to_account"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("v-select",{class:{"is-invalid":t.form.errors.has("toAccount")},attrs:{options:t.items,label:"label",name:"toAccount",placeholder:t.$t("common.account_placeholder")},model:{value:t.form.toAccount,callback:function(r){t.$set(t.form,"toAccount",r)},expression:"form.toAccount"}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"toAccount"}})],1)]):t._e(),t._v(" "),t.form.fromAccount?r("div",{staticClass:"row"},[r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"availableBalance"}},[t._v(t._s(t.$t("common.available_balance")))]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.availableBalance,expression:"form.availableBalance"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("availableBalance")},attrs:{id:"availableBalance",type:"number",step:"any",name:"availableBalance",readonly:""},domProps:{value:t.form.availableBalance},on:{input:function(r){r.target.composing||t.$set(t.form,"availableBalance",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"availableBalance"}})],1),t._v(" "),r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"amount"}},[t._v(t._s(t.$t("common.amount"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.amount,expression:"form.amount"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("amount")},attrs:{id:"amount",type:"number",step:"any",name:"amount",placeholder:"Enter an amount"},domProps:{value:t.form.amount},on:{input:function(r){r.target.composing||t.$set(t.form,"amount",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"amount"}})],1)]):t._e(),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"date"}},[t._v(t._s(t.$t("common.date")))]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.date,expression:"form.date"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("date")},attrs:{id:"date",type:"date",name:"date"},domProps:{value:t.form.date},on:{input:function(r){r.target.composing||t.$set(t.form,"date",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"date"}})],1),t._v(" "),r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"status"}},[t._v(t._s(t.$t("common.status")))]),t._v(" "),r("select",{directives:[{name:"model",rawName:"v-model",value:t.form.status,expression:"form.status"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("status")},attrs:{id:"status"},on:{change:function(r){var e=Array.prototype.filter.call(r.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"status",r.target.multiple?e:e[0])}}},[r("option",{attrs:{value:"1"}},[t._v("\n "+t._s(t.$t("common.active"))+"\n ")]),t._v(" "),r("option",{attrs:{value:"0"}},[t._v("\n "+t._s(t.$t("common.in_active"))+"\n ")])]),t._v(" "),r("has-error",{attrs:{form:t.form,field:"status"}})],1)]),t._v(" "),r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"note"}},[t._v(t._s(t.$t("common.note")))]),t._v(" "),r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.note,expression:"form.note"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("note")},attrs:{id:"note",placeholder:t.$t("common.note_placeholder")},domProps:{value:t.form.note},on:{input:function(r){r.target.composing||t.$set(t.form,"note",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"note"}})],1)]),t._v(" "),r("div",{staticClass:"card-footer"},[r("v-button",{staticClass:"btn btn-primary",attrs:{loading:t.form.busy}},[r("i",{staticClass:"fas fa-save"}),t._v(" "+t._s(t.$t("common.save"))+"\n ")]),t._v(" "),r("button",{staticClass:"btn btn-secondary float-right",attrs:{type:"reset"},on:{click:function(r){return t.form.reset()}}},[r("i",{staticClass:"fas fa-power-off"}),t._v(" "+t._s(t.$t("common.reset"))+"\n ")])],1)])])])])],1)}),[],!1,null,null,null);r.default=v.exports}}]);