403Webshell
Server IP : 34.87.99.72  /  Your IP : 216.73.217.31
Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n
System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
User : bitnami ( 1000)
PHP Version : 7.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/bitnami/apache/htdocs/app/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/bitnami/apache/htdocs/app/public/js/302.js
(self.webpackChunk=self.webpackChunk||[]).push([[302],{7757:(t,e,r)=>{t.exports=r(5666)},6399:(t,e,r)=>{"use strict";r.d(e,{v:()=>o});var o={methods:{errorHandler_:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=this.errorSeparator_(t,e),o=r.a,n=r.b;return Object.keys(n).length>0&&this.alertErrorMessages_(this.computeErrorMessages_(n)),o},errorSeparator_:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r="Something Is Not Right. Please Try Again Later.",o={},n={};if(null==t)this.defaultNotify_(r);else if(t.status&&t.data){var s=t.status,a=t.data;if(422==s){var i=a.errors||a.message;Object.keys(i).forEach((function(t){e.includes(t)?o[t]=i[t]:n[t]=i[t]}))}else r=[400,403].includes(s)?a.message:r,this.defaultNotify_(r)}else console.error(t);return{a:o,b:n}},defaultNotify_:function(t){return this.$toast.warning(t),null},computeErrorMessages_:function(t){var e=Object.keys(t);if(e.length>0){var r=[];return e.forEach((function(e){r.push(t[e][0])})),r}return[]},alertErrorMessages_:function(t){this.$toast.warning(t.join("<br>"))}}}},5748:(t,e,r)=>{"use strict";r.d(e,{b:()=>o});var o={data:function(){return{view_item_:{},view_dialog_:!1,model_loading_:!1,settings_:{},totalData_:0,resourceData_:{},resourceDataSet_:[],options_:{},filters_:{},sort_:{},search_:{search:null,searchBy:null},isReady:!1}},watch:{settings_:{handler:function(){this.isReady?this.getResourceData_():this.isReady=!0},deep:!0}},methods:{initialize_:function(){this.getResourceData_()},getAllRefs_:function(t){return Promise.allSettled(t)},row_classes_:function(t){if(t.deleted_at)return"grey--text font-italic opacity-7"},searchData_:function(){""==this.search_.search&&(this.search_.search=null),this.settings_.page=1,this.getResourceData_()},getResourceData_:function(){console.log("getResourceData_ :: remember to overwrite me.")},viewMore_:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.view_item_=this.cloneDeep_(t),this.view_dialog_=!0},setPagination_:function(){var t=this.settings_;return{page:t.page,itemsPerPage:t.itemsPerPage}},getActivityRefs_:function(){return[{value:1,text:"Active Only"},{value:0,text:"Archived Only"},{value:2,text:"All"}]},downloadFile_:function(t,e){var r=document.createElement("a");r.setAttribute("download",e),r.setAttribute("href",t),document.body.appendChild(r),r.click(),document.body.removeChild(r)}}}},5666:t=>{var e=function(t){"use strict";var e,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var n=e&&e.prototype instanceof m?e:m,s=Object.create(n.prototype),a=new L(o||[]);return s._invoke=function(t,e,r){var o=d;return function(n,s){if(o===h)throw new Error("Generator is already running");if(o===p){if("throw"===n)throw s;return A()}for(r.method=n,r.arg=s;;){var a=r.delegate;if(a){var i=k(a,r);if(i){if(i===v)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(t,e,r);if("normal"===c.type){if(o=r.done?p:f,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=p,r.method="throw",r.arg=c.arg)}}}(t,r,a),s}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",v={};function m(){}function _(){}function g(){}var y={};y[s]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(N([])));b&&b!==r&&o.call(b,s)&&(y=b);var x=g.prototype=m.prototype=Object.create(y);function P(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(n,s,a,i){var c=u(t[n],t,s);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&o.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,i)}),(function(t){r("throw",t,a,i)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,i)}))}i(c.arg)}var n;this._invoke=function(t,o){function s(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(s,s):s()}}function k(t,r){var o=t.iterator[r.method];if(o===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var n=u(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var s=n.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function $(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function N(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:A}}function A(){return{value:e,done:!0}}return _.prototype=x.constructor=g,g.constructor=_,_.displayName=c(g,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,i,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},P(C.prototype),C.prototype[a]=function(){return this},t.AsyncIterator=C,t.async=function(e,r,o,n,s){void 0===s&&(s=Promise);var a=new C(l(e,r,o,n),s);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(x),c(x,i,"Generator"),x[s]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var o=e.pop();if(o in t)return r.value=o,r.done=!1,r}return r.done=!0,r}},t.values=N,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},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 n(o,n){return i.type="throw",i.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=t,a.arg=e,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(a)},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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;E(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:N(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},6302:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>f});var o=r(7757),n=r.n(o),s=r(6399);const a={components:{},mixins:[s.v],props:{visible:{type:Boolean,required:!0}},data:function(){return{form:{},errors:{},submit_loading:!1,has_old_password:null}},created:function(){this.checkAuthPassword()},methods:{closeDialog:function(){this.$emit("update:visible",!1)},checkAuthPassword:function(){var t=this;this.$api.checkAuthPassword().then((function(e){t.has_old_password=e.data.result.has_old_password})).catch((function(e){t.errorHandler_(e)}))},submitForm:function(t){this.saveModel(t)},saveModel:function(t){var e=this;this.submit_loading=!0,this.errors={};var r={current_password:t.current_password,password:t.password,password_confirmation:t.password_confirmation};this.$api.changePassword(r).then((function(){e.$toast.info("Password Successfully Updated, Please Login Again."),window.localStorage.removeItem("config-X"),e.$router.push("/login")})).catch((function(t){e.errors=e.errorHandler_(t,["current_password","password","password_confirmation"])})).finally((function(){e.submit_loading=!1}))}}};var i=r(1900);const c=(0,i.Z)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-card",{staticClass:"radius-10"},[r("v-card-title",[r("span",{staticClass:"headline"},[t._v("Change Password")])]),t._v(" "),r("v-divider",{staticClass:"mb-4"}),t._v(" "),r("v-card-text",{staticClass:"py-4"},[null!=t.has_old_password?r("v-row",{attrs:{dense:""}},[1==t.has_old_password?r("v-col",{staticClass:"pb-2",attrs:{cols:"12",md:"12"}},[r("v-text-field",{attrs:{type:"password",label:"Current Password",dense:"","error-messages":t.errors.current_password},model:{value:t.form.current_password,callback:function(e){t.$set(t.form,"current_password",e)},expression:"form.current_password"}})],1):t._e(),t._v(" "),r("v-col",{staticClass:"pb-2",attrs:{cols:"12",md:"12"}},[r("v-text-field",{attrs:{type:"password",label:"New Password",dense:"","error-messages":t.errors.password},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),r("v-col",{staticClass:"pb-2",attrs:{cols:"12",md:"12"}},[r("v-text-field",{attrs:{type:"password",label:"Confirm New Password",dense:"","error-messages":t.errors.password_confirmation},model:{value:t.form.password_confirmation,callback:function(e){t.$set(t.form,"password_confirmation",e)},expression:"form.password_confirmation"}})],1)],1):r("v-skeleton-loader",{attrs:{type:"paragraph"}})],1),t._v(" "),r("v-card-actions",[r("v-spacer"),t._v(" "),r("v-btn",{attrs:{color:"blue darken-1",text:"",title:"Cancel"},on:{click:function(e){return t.closeDialog()}}},[t._v("\n\t\t\tCancel\n\t\t")]),t._v(" "),r("v-btn",{attrs:{color:"blue darken-1",text:"",title:"Save",loading:t.submit_loading},on:{click:function(e){return t.submitForm(t.form)}}},[t._v("\n\t\t\tSave\n\t\t")])],1)],1)}),[],!1,null,null,null).exports;var l=r(5748);function u(t,e,r,o,n,s,a){try{var i=t[s](a),c=i.value}catch(t){return void r(t)}i.done?e(c):Promise.resolve(c).then(o,n)}const d={components:{ChangePasswordForm:c},mixins:[s.v,l.b],data:function(){return{form:{},errors:{},changePassword_dialog:!1,submit_loading:!1,genders:[]}},computed:{isPartner:function(){return 2==this.$auth.user().role_id}},created:function(){this.form={id:this.$auth.user().id,full_name:this.$auth.user().full_name,gender:this.$auth.user().gender,address:this.$auth.user().address,city:this.$auth.user().city,state:this.$auth.user().state,postcode:this.$auth.user().postcode,company_name:this.$auth.user().company_name,business_reg_num:this.$auth.user().business_reg_num,mobile_num:this.$auth.user().mobile_num},this.getGenderTypes()},methods:{updateAuthProfile:function(){var t=this;this.submit_loading=!0,this.errors={};var e=this.form;this.$api.updateAuthProfile(e).then((function(e){t.$toast.success(e.data.message),t.$auth.fetch()})).catch((function(e){t.errors=t.errorHandler_(e,["full_name","mobile_num"])})).finally((function(){t.submit_loading=!1}))},changePassword:function(){this.changePassword_dialog=!0},getGenderTypes:function(){var t=this;this.$api.getGenderTypes().then(function(){var e,r=(e=n().mark((function e(r){var o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=r.data.result,t.genders=o;case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(o,n){var s=e.apply(t,r);function a(t){u(s,o,n,a,i,"next",t)}function i(t){u(s,o,n,a,i,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}()).catch((function(e){t.errorHandler_(e)}))}}};const f=(0,i.Z)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-container",[r("v-card",{staticClass:"pa-6"},[r("v-row",[r("v-col",{attrs:{cols:"12"}},[r("v-row",[r("v-col",{attrs:{cols:"6"}},[r("div",{staticClass:"headline font-weight-bold pa-2"},[t._v("Profile")])]),t._v(" "),r("v-col",{attrs:{cols:"6"}},[r("v-btn",{staticClass:"text-capitalize float-right",attrs:{color:"warning",outlined:""},on:{click:function(e){return t.$router.push("/my/profile")}}},[t._v("\n\t\t\t\t\t\t\tBack\n\t\t\t\t\t\t")])],1)],1),t._v(" "),r("v-divider",{staticClass:"px-1"}),t._v(" "),r("v-col",{attrs:{cols:"12",md:"6"}},[r("v-row",{attrs:{dense:""}},[r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"12",md:"12"}},[r("v-text-field",{attrs:{label:"Full Name",placeholder:"Full Name",outlined:"",dense:"","error-messages":t.errors.full_name},model:{value:t.form.full_name,callback:function(e){t.$set(t.form,"full_name",e)},expression:"form.full_name"}})],1),t._v(" "),r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"12",md:"12"}},[r("v-select",{attrs:{items:t.genders,label:"Gender",dense:""},model:{value:t.form.gender,callback:function(e){t.$set(t.form,"gender",e)},expression:"form.gender"}})],1),t._v(" "),t.isPartner?r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"12",md:"12"}},[r("v-divider")],1):t._e(),t._v(" "),t.isPartner?r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"12",md:"12"}},[r("v-text-field",{attrs:{label:"Company Name",placeholder:"Company Name",outlined:"",dense:"","error-messages":t.errors.company_name},model:{value:t.form.company_name,callback:function(e){t.$set(t.form,"company_name",e)},expression:"form.company_name"}})],1):t._e(),t._v(" "),t.isPartner?r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"12",md:"12"}},[r("v-text-field",{attrs:{label:"Business Registration Number",placeholder:"Business Registration Number",outlined:"",dense:"","error-messages":t.errors.business_reg_num},model:{value:t.form.business_reg_num,callback:function(e){t.$set(t.form,"business_reg_num",e)},expression:"form.business_reg_num"}})],1):t._e(),t._v(" "),r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"12",md:"12"}},[r("v-divider")],1),t._v(" "),r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"12",md:"12"}},[r("v-text-field",{attrs:{label:"Address",placeholder:"Address",outlined:"",dense:"","error-messages":t.errors.address},model:{value:t.form.address,callback:function(e){t.$set(t.form,"address",e)},expression:"form.address"}})],1),t._v(" "),r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"6",md:"6"}},[r("v-text-field",{attrs:{label:"City",placeholder:"City",outlined:"",dense:"","error-messages":t.errors.city},model:{value:t.form.city,callback:function(e){t.$set(t.form,"city",e)},expression:"form.city"}})],1),t._v(" "),r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"6",md:"6"}},[r("v-text-field",{attrs:{label:"Postcode",placeholder:"Postcode",outlined:"",dense:"","error-messages":t.errors.postcode},model:{value:t.form.postcode,callback:function(e){t.$set(t.form,"postcode",e)},expression:"form.postcode"}})],1),t._v(" "),r("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"12",md:"12"}},[r("v-text-field",{attrs:{label:"State",placeholder:"State",outlined:"",dense:"","error-messages":t.errors.state},model:{value:t.form.state,callback:function(e){t.$set(t.form,"state",e)},expression:"form.state"}})],1),t._v(" "),r("v-col",{staticClass:"pb-2",attrs:{cols:"12",md:"12"}},[r("v-text-field",{attrs:{label:"Mobile Number",placeholder:"Mobile Number",outlined:"",dense:"","error-messages":t.errors.mobile_num},model:{value:t.form.mobile_num,callback:function(e){t.$set(t.form,"mobile_num",e)},expression:"form.mobile_num"}})],1),t._v(" "),r("v-col",{attrs:{cols:"12"}},[r("v-btn",{staticClass:"text-capitalize",attrs:{color:"info",loading:t.submit_loading},on:{click:function(e){return t.updateAuthProfile()}}},[t._v("\n\t\t\t\t\t\t\t\tUpdate Profile\n\t\t\t\t\t\t\t")])],1)],1)],1)],1),t._v(" "),r("v-col",{attrs:{cols:"12"}},[r("div",{staticClass:"headline font-weight-bold pa-2"},[t._v("Change Password")]),t._v(" "),r("v-divider",{staticClass:"px-1"}),t._v(" "),r("div",{staticClass:"caption grey--text pa-1"},[t._v("Changing your account password and logout all login device.")]),t._v(" "),r("v-col",{attrs:{cols:"12",md:"6"}},[r("v-btn",{staticClass:"text-capitalize",attrs:{color:"error",outlined:""},on:{click:function(e){return t.changePassword()}}},[t._v("\n\t\t\t\t\t\tChange Password\n\t\t\t\t\t")])],1)],1)],1)],1),t._v(" "),r("v-dialog",{attrs:{"max-width":"550px",persistent:""},model:{value:t.changePassword_dialog,callback:function(e){t.changePassword_dialog=e},expression:"changePassword_dialog"}},[r("ChangePasswordForm",{attrs:{visible:t.changePassword_dialog},on:{"update:visible":function(e){t.changePassword_dialog=e}}})],1)],1)}),[],!1,null,null,null).exports}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit