⚝
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: 132.284316.js
/*! For license information please see 132.284316.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[132],{510:function(t,r,e){"use strict";e.r(r);var o=e(5),n=e(3),a=e.n(n);function s(t){return(s="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 i(){i=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",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 p?r:p,s=Object.create(a.prototype),i=new E(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 d={};function p(){}function v(){}function h(){}var w={};u(w,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(k([])));g&&g!==r&&e.call(g,a)&&(w=g);var _=h.prototype=p.prototype=Object.create(w);function b(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,a){function i(){return new r((function(n,i){!function o(n,a,i,c){var l=m(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==s(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,a,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 O()}for(e.method=n,e.arg=a;;){var s=e.delegate;if(s){var i=P(s,e);if(i){if(i===d)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===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(o="completed",e.method="throw",e.arg=c.arg)}}}function P(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,P(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=m(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 L(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 E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function k(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=h,o(_,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:v,configurable:!0}),v.displayName=u(h,l,"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,h):(t.__proto__=h,u(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},b(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()}))},b(_),u(_,l,"Generator"),u(_,a,(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=k,E.prototype={constructor:E,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,d):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),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),$(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;$(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),d}},t}function c(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 l(t){return function(){var r=this,e=arguments;return new Promise((function(o,n){var a=t.apply(r,e);function s(t){c(a,o,n,s,i,"next",t)}function i(t){c(a,o,n,s,i,"throw",t)}s(void 0)}))}}var u={middleware:"auth",metaInfo:function(){return{title:this.$t("user_profile.page_title")}},data:function(){return{breadcrumbsCurrent:"user_profile.breadcrumbs_current",breadcrumbs:[{name:"user_profile.breadcrumbs_first",url:"home"},{name:"user_profile.breadcrumbs_active",url:""}],form:new o.a({name:"",email:"",currentPassword:"",newPassword:"",confirmPassword:""}),loading:!0,user:"",isDemoMode:window.config.isDemoMode}},created:function(){this.getUser()},methods:{getUser:function(){var t=this;return l(i().mark((function r(){var e,o;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.a.get(window.location.origin+"/api/user");case 2:e=r.sent,o=e.data,t.user=o.data,t.form.name=o.data.name,t.form.email=o.data.email;case 7:case"end":return r.stop()}}),r)})))()},updateProfile:function(){var t=this;return l(i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.isDemoMode){r.next=5;break}return r.next=3,t.form.post(window.location.origin+"/api/update-profile").then((function(){toast.fire({type:"success",title:t.$t("user_profile.success_msg")})})).catch((function(){toast.fire({type:"error",title:t.$t("common.error_msg")})}));case 3:r.next=6;break;case 5:toast.fire({type:"warning",title:t.$t("You are not allowed to do this in demo version.")});case 6:case"end":return r.stop()}}),r)})))()}}},f=e(1),m=Object(f.a)(u,(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"},[t.user?r("div",{staticClass:"col-md-12 col-lg-3"},[r("div",{staticClass:"card card-primary card-outline"},[r("div",{staticClass:"card-body box-profile"},[r("div",{staticClass:"text-center"},[r("img",{staticClass:"profile-user-img img-fluid img-circle",attrs:{src:t.user.photo_url,alt:t.$t("common.image_alt")}})]),t._v(" "),r("h3",{staticClass:"profile-username text-center"},[t._v(t._s(t.user.name))]),t._v(" "),r("p",{staticClass:"text-muted text-center"},[t._v(t._s(t.user.roles[0]))])])])]):t._e(),t._v(" "),r("div",{staticClass:"col-md-12 col-lg-9"},[r("div",{staticClass:"card"},[r("div",{staticClass:"card-header"},[r("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("user_profile.form_title")))]),t._v(" "),r("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"home"}}},[r("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")])],1),t._v(" "),r("div",{staticClass:"card-body"},[r("form",{staticClass:"form-horizontal",on:{submit:function(r){return r.preventDefault(),t.updateProfile.apply(null,arguments)},keydown:function(r){return t.form.onKeydown(r)}}},[r("div",{staticClass:"form-group row"},[r("label",{staticClass:"col-sm-2 col-form-label",attrs:{for:"name"}},[t._v(t._s(t.$t("common.name"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("div",{staticClass:"col-sm-10"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("name")},attrs:{type:"text",id:"name",placeholder:t.$t("common.name_placeholder")},domProps:{value:t.form.name},on:{input:function(r){r.target.composing||t.$set(t.form,"name",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"name"}})],1)]),t._v(" "),r("div",{staticClass:"form-group row"},[r("label",{staticClass:"col-sm-2 col-form-label",attrs:{for:"email"}},[t._v(t._s(t.$t("common.email"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("div",{staticClass:"col-sm-10"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("email")},attrs:{type:"email",id:"email",placeholder:t.$t("common.email_placeholder")},domProps:{value:t.form.email},on:{input:function(r){r.target.composing||t.$set(t.form,"email",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"email"}})],1)]),t._v(" "),r("div",{staticClass:"form-group row"},[r("label",{staticClass:"col-sm-2 col-form-label",attrs:{for:"currentPassword"}},[t._v(t._s(t.$t("user_profile.current_password")))]),t._v(" "),r("div",{staticClass:"col-sm-10"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.currentPassword,expression:"form.currentPassword"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("currentPassword")},attrs:{type:"password",id:"currentPassword",placeholder:t.$t("user_profile.current_password")},domProps:{value:t.form.currentPassword},on:{input:function(r){r.target.composing||t.$set(t.form,"currentPassword",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"currentPassword"}})],1)]),t._v(" "),r("div",{staticClass:"form-group row"},[r("label",{staticClass:"col-sm-2 col-form-label",attrs:{for:"newPassword"}},[t._v(t._s(t.$t("user_profile.new_password")))]),t._v(" "),r("div",{staticClass:"col-sm-10"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.newPassword,expression:"form.newPassword"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("newPassword")},attrs:{type:"password",id:"newPassword",placeholder:t.$t("user_profile.new_password_placeholder")},domProps:{value:t.form.newPassword},on:{input:function(r){r.target.composing||t.$set(t.form,"newPassword",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"newPassword"}})],1)]),t._v(" "),r("div",{staticClass:"form-group row"},[r("label",{staticClass:"col-sm-2 col-form-label",attrs:{for:"confirmPassword"}},[t._v(t._s(t.$t("user_profile.confirm_password")))]),t._v(" "),r("div",{staticClass:"col-sm-10"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.confirmPassword,expression:"form.confirmPassword"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("confirmPassword")},attrs:{type:"password",id:"confirmPassword",placeholder:t.$t("user_profile.confirm_password_placeholder")},domProps:{value:t.form.confirmPassword},on:{input:function(r){r.target.composing||t.$set(t.form,"confirmPassword",r.target.value)}}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"confirmPassword"}})],1)]),t._v(" "),r("div",{staticClass:"form-group row"},[r("div",{staticClass:"offset-sm-2 col-sm-10"},[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 ")])],1)])])])])])])],1)}),[],!1,null,"29725787",null);r.default=m.exports}}]);
Simpan