⚝
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
/
Edit File: 73.a1b44a.js
/*! For license information please see 73.a1b44a.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[73],{447:function(t,r,e){"use strict";e.r(r);var o=e(5),n=e(3),a=e.n(n);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 c(){c=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:{},a=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function m(t,r,e,n){var a=r&&r.prototype instanceof h?r:h,i=Object.create(a.prototype),c=new $(n||[]);return o(i,"_invoke",{value:k(t,e,c)}),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=m;var d={};function h(){}function v(){}function p(){}var b={};l(b,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(E([])));g&&g!==r&&e.call(g,a)&&(b=g);var _=p.prototype=h.prototype=Object.create(b);function w(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function N(t,r){var n;o(this,"_invoke",{value:function(o,a){function c(){return new r((function(n,c){!function o(n,a,c,s){var u=f(t[n],t,a);if("throw"!==u.type){var l=u.arg,m=l.value;return m&&"object"==i(m)&&e.call(m,"__await")?r.resolve(m.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):r.resolve(m).then((function(t){l.value=t,c(l)}),(function(t){return o("throw",t,c,s)}))}s(u.arg)}(o,a,n,c)}))}return n=n?n.then(c,c):c()}})}function k(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 O()}for(e.method=n,e.arg=a;;){var i=e.delegate;if(i){var c=x(i,e);if(c){if(c===d)continue;return c}}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 s=f(t,r,e);if("normal"===s.type){if(o=e.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:e.done}}"throw"===s.type&&(o="completed",e.method="throw",e.arg=s.arg)}}}function x(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,x(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),d;var n=f(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,d;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,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function C(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 L(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var r=t[a];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:O}}function O(){return{value:void 0,done:!0}}return v.prototype=p,o(_,"constructor",{value:p,configurable:!0}),o(p,"constructor",{value:v,configurable:!0}),v.displayName=l(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===v||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(N.prototype),l(N.prototype,s,(function(){return this})),t.AsyncIterator=N,t.async=function(r,e,o,n,a){void 0===a&&(a=Promise);var i=new N(m(r,e,o,n),a);return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(_),l(_,u,"Generator"),l(_,a,(function(){return this})),l(_,"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=E,$.prototype={constructor:$,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 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 i.type="throw",i.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],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=e.call(a,"catchLoc"),s=e.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)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 i=a?a.completion:{};return i.type=t,i.arg=r,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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),d},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),L(e),d}},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;L(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:E(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),d}},t}function s(t,r,e,o,n,a,i){try{var c=t[a](i),s=c.value}catch(t){return void e(t)}c.done?r(s):Promise.resolve(s).then(o,n)}function u(t){return function(){var r=this,e=arguments;return new Promise((function(o,n){var a=t.apply(r,e);function i(t){s(a,o,n,i,c,"next",t)}function c(t){s(a,o,n,i,c,"throw",t)}i(void 0)}))}}var l={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("cashbook.accounts.edit.page_title")}},data:function(){return{breadcrumbsCurrent:"cashbook.accounts.edit.breadcrumbs_current",breadcrumbs:[{name:"cashbook.accounts.edit.breadcrumbs_first",url:"home"},{name:"cashbook.accounts.edit.breadcrumbs_second",url:""},{name:"cashbook.accounts.edit.breadcrumbs_third",url:"accounts.index"},{name:"cashbook.accounts.edit.breadcrumbs_active",url:""}],form:new o.a({accountLabel:"",bankName:"",branchName:"",accountNumber:"",date:"",note:"",status:1}),loading:!0}},mounted:function(){this.getAccount()},methods:{getAccount:function(){var t=this;return u(c().mark((function r(){var e,o;return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.a.get(window.location.origin+"/api/accounts/"+t.$route.params.slug);case 2:e=r.sent,o=e.data,t.form.accountLabel=o.data.accountLabel,t.form.bankName=o.data.bankName,t.form.branchName=o.data.branchName,t.form.accountNumber=o.data.accountNumber,t.form.date=o.data.date,t.form.note=o.data.note,t.form.status=o.data.status;case 11:case"end":return r.stop()}}),r)})))()},updateAccount:function(){var t=this;return u(c().mark((function r(){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.form.patch(window.location.origin+"/api/accounts/"+t.$route.params.slug).then((function(){toast.fire({type:"success",title:t.$t("cashbook.accounts.edit.success_msg")}),t.$router.push({name:"accounts.index"})})).catch((function(){toast.fire({type:"error",title:t.$t("common.error_msg")})}));case 2:case"end":return r.stop()}}),r)})))()}}},m=e(1),f=Object(m.a)(l,(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.accounts.edit.form_title"))+"\n ")]),t._v(" "),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 ")])],1),t._v(" "),r("form",{attrs:{role:"form"},on:{submit:function(r){return r.preventDefault(),t.updateAccount.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:"bankName"}},[t._v(t._s(t.$t("cashbook.common.bank_name"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.bankName,expression:"form.bankName"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("bankName")},attrs:{id:"bankName",type:"text",name:"bankName",placeholder:t.$t("cashbook.common.bank_name_placeholder")},domProps:{value:t.form.bankName},on:{input:function(r){r.target.composing||t.$set(t.form,"bankName",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"bankName"}})],1)]),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"branchName"}},[t._v(t._s(t.$t("cashbook.common.branch_name"))+"\n ")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.branchName,expression:"form.branchName"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("branchName")},attrs:{id:"branchName",type:"text",name:"branchName",placeholder:t.$t("cashbook.common.branch_name_placeholder")},domProps:{value:t.form.branchName},on:{input:function(r){r.target.composing||t.$set(t.form,"branchName",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"branchName"}})],1),t._v(" "),r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"accountNumber"}},[t._v(t._s(t.$t("cashbook.common.account_number"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.accountNumber,expression:"form.accountNumber"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("accountNumber")},attrs:{id:"accountNumber",type:"text",name:"accountNumber",placeholder:t.$t("cashbook.common.account_number_placeholder")},domProps:{value:t.form.accountNumber},on:{input:function(r){r.target.composing||t.$set(t.form,"accountNumber",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"accountNumber"}})],1)]),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(t._s(t.$t("common.active")))]),t._v(" "),r("option",{attrs:{value:"0"}},[t._v(t._s(t.$t("common.in_active")))])]),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-edit"}),t._v(" "+t._s(t.$t("common.save_changes"))+"\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=f.exports}}]);
Simpan